/* 99 Club Studio · Colour Logic + Mobile Balance v1.96 */
.tt99-colourlogic-online,.tt99-mobile-online{display:grid;gap:14px;width:min(100%,820px);margin-inline:auto}
.tt99-cl-key{display:flex;justify-content:center;gap:7px;flex-wrap:wrap}.tt99-cl-key span{display:inline-flex;align-items:center;gap:6px;padding:6px 9px;border:1px solid #d2e0df;border-radius:999px;background:#fff;color:#4b676b;font-size:.72rem}.tt99-cl-key b{display:grid;place-items:center;width:24px;height:24px;border-radius:50%;background:var(--cl);color:#fff;font-size:.7rem;box-shadow:inset 0 0 0 1px rgba(0,0,0,.08)}
.tt99-cl-layout{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(250px,.95fr);gap:16px;align-items:start}.tt99-cl-layout>div:last-child{padding:11px 12px;border:1px solid #d2e0df;border-radius:12px;background:#f8fbfb}.tt99-cl-layout>div:last-child>small{font-size:.58rem;font-weight:900;letter-spacing:.07em;color:#6f8588}.tt99-cl-rules{margin:7px 0 0;padding-left:1.45rem;display:grid;gap:6px}.tt99-cl-rules li{padding:3px 5px;border-radius:6px;color:#385c61;font-size:.78rem;line-height:1.34}.tt99-cl-rules li.is-hint{background:#fff3c8;box-shadow:inset 0 0 0 1px #d8b04c}.tt99-cl-row{display:grid;grid-template-columns:repeat(var(--cl-count,5),minmax(48px,1fr));gap:7px}.tt99-cl-row button,.tt99-cl-grid button{appearance:none;position:relative;display:grid;place-items:center;min-width:0;border:1px solid #9eb7b8;background:#fff;cursor:pointer;touch-action:manipulation}.tt99-cl-row button{aspect-ratio:1/1;border-radius:12px}.tt99-cl-row button small{position:absolute;left:6px;top:4px;color:#779094;font-size:.52rem;font-weight:800}.tt99-cl-row button b,.tt99-cl-grid button b{display:grid;place-items:center;width:70%;height:70%;border-radius:50%;background:var(--cl);color:#fff;font:900 clamp(.8rem,3vw,1.1rem)/1 inherit;opacity:0}.tt99-cl-row button.has-colour b,.tt99-cl-grid button.has-colour b{opacity:1}.tt99-cl-row button.is-wrong,.tt99-cl-grid button.is-wrong{box-shadow:inset 0 0 0 3px #c77763;background:#fff4ef}.tt99-cl-grid{display:grid;grid-template-columns:repeat(var(--cl-n),1fr);width:min(100%,360px);margin-inline:auto;border:2px solid #6f8f91;border-radius:10px;overflow:hidden}.tt99-cl-grid button{aspect-ratio:1/1;border-radius:0;border:0;border-right:1px solid #b6c9c8;border-bottom:1px solid #b6c9c8}.tt99-cl-tap{text-align:center;margin:8px 0 0;color:#6d8387;font-size:.65rem}
.tt99-v196-keypad{display:grid;grid-template-columns:repeat(3,minmax(48px,78px));justify-content:center;gap:6px}.tt99-v196-keypad button{appearance:none;min-height:42px;border:1px solid #a8bcbc;border-radius:9px;background:#fff;color:#294e53;font:850 .92rem/1 inherit;cursor:pointer}.tt99-v196-keypad button:disabled{opacity:.45;cursor:not-allowed}
.tt99-mobile-stage{padding:8px 10px 2px;border:1px solid #d1dfde;border-radius:16px;background:linear-gradient(#f4fbfc,#edf7f6)}.tt99-mobile-svg{display:block;width:100%;max-height:390px;overflow:visible}.tt99-mobile-svg .bar{stroke:#607e82;stroke-width:7;stroke-linecap:round}.tt99-mobile-svg .string,.tt99-mobile-svg .top-string,.tt99-mobile-svg .top-total line{stroke:#698689;stroke-width:2.1}.tt99-mobile-svg .mobile-bar{transform-box:fill-box;transform-origin:center;transform:rotate(var(--tilt,0deg));transition:transform .28s ease}.tt99-mobile-svg .mobile-bar circle{fill:#f7fbfb;stroke:#607e82;stroke-width:2}.tt99-mobile-svg .shape{stroke:rgba(0,0,0,.12);stroke-width:1}.tt99-mobile-svg .s-circle{fill:var(--circle)}.tt99-mobile-svg .s-square{fill:var(--square)}.tt99-mobile-svg .s-triangle{fill:var(--triangle)}.tt99-mobile-svg .s-diamond{fill:var(--diamond)}.tt99-mobile-svg .s-star{fill:var(--star)}.tt99-mobile-svg .top-total circle{fill:#fff;stroke:#607e82;stroke-width:2}.tt99-mobile-svg .top-total text{fill:#294e53;text-anchor:middle;font:800 17px/1 sans-serif}.tt99-mobile-values{display:flex;justify-content:center;gap:8px;flex-wrap:wrap}.tt99-mobile-values>button,.tt99-mobile-values>.given{display:flex;align-items:center;gap:6px;min-width:145px;padding:7px 10px;border:1px solid #a8bebe;border-radius:10px;background:#fff;color:#31565b}.tt99-mobile-values>button{appearance:none;cursor:pointer}.tt99-mobile-values>button.is-selected{box-shadow:inset 0 0 0 3px #5b9cc3;border-color:#5b9cc3;background:#eef7fc}.tt99-mobile-values>button.is-wrong{box-shadow:inset 0 0 0 3px #c77763;border-color:#c77763;background:#fff3ee}.tt99-mobile-values>button.is-hint{box-shadow:inset 0 0 0 3px #d1aa3c;border-color:#d1aa3c;background:#fff8df}.tt99-mobile-values svg{width:28px;height:28px;flex:0 0 28px}.tt99-mobile-values b{font-size:.78rem}.tt99-mobile-values em{display:inline-block;min-width:32px;border-bottom:1px solid #81999b;font-style:normal;font-size:.9rem;text-align:center;color:#194f52}

/* Printable preview */
.tt99-colourlogic-print .tt99-cl-print-row{display:grid;gap:8px}.tt99-cl-print-key{display:flex;gap:5px;flex-wrap:wrap}.tt99-cl-print-key span{display:inline-flex;gap:4px;align-items:center;padding:3px 6px;border:1px solid #aabfbe;border-radius:6px;font-size:.56rem}.tt99-cl-print-key b{font-size:.63rem;color:#0f6f68}.tt99-cl-paper-row{display:grid;grid-template-columns:repeat(var(--cl-count),1fr);gap:5px;max-width:430px}.tt99-cl-paper-row span{display:grid;place-items:center;aspect-ratio:1/1;border:1px solid #8fa9aa;border-radius:7px;color:#0f6f68;font-weight:900}.tt99-cl-paper-grid{display:grid;grid-template-columns:repeat(var(--cl-n),1fr);width:min(230px,52%);border:1.5px solid #6d888a}.tt99-cl-paper-grid span{display:grid;place-items:center;aspect-ratio:1/1;border-right:1px solid #aebebe;border-bottom:1px solid #aebebe;font-weight:900;color:#0f6f68}.tt99-cl-print-rules{margin:0;padding-left:1.2rem;display:grid;gap:2px;font-size:.61rem;line-height:1.25}.tt99-cl-paper-layout{display:flex;gap:14px;align-items:flex-start}.tt99-cl-paper-layout .tt99-cl-print-rules{flex:1}
.tt99-mobilebalance-print .tt99-mobile-paper-wrap{display:grid;grid-template-columns:minmax(0,1fr) 150px;gap:12px;align-items:center}.tt99-mobile-paper-svg{width:100%;max-height:180px}.tt99-mobile-paper-svg .bar{stroke:#607e82;stroke-width:6;stroke-linecap:round}.tt99-mobile-paper-svg .string,.tt99-mobile-paper-svg .top-total line{stroke:#6f8b8e;stroke-width:1.8}.tt99-mobile-paper-svg .pivot{fill:#fff;stroke:#607e82;stroke-width:1.6}.tt99-mobile-paper-svg .top-total circle{fill:#fff;stroke:#607e82;stroke-width:1.7}.tt99-mobile-paper-svg .top-total text{fill:#294e53;text-anchor:middle;font:800 12px/1 sans-serif}.tt99-mobile-paper-svg .s-circle{fill:#668ba8}.tt99-mobile-paper-svg .s-square{fill:#c88946}.tt99-mobile-paper-svg .s-triangle{fill:#62987a}.tt99-mobile-paper-svg .s-diamond{fill:#a96d64}.tt99-mobile-paper-svg .s-star{fill:#856b99}.tt99-mobile-paper-values{display:grid;gap:6px}.tt99-mobile-paper-values span{display:flex;align-items:center;gap:7px;padding:5px 7px;border:1px solid #a9bdbc;border-radius:7px;font-size:.62rem}.tt99-mobile-paper-values svg{width:22px;height:22px}.tt99-mobile-paper-values b{flex:1}.tt99-mobile-paper-values em{min-width:40px;border-bottom:1px solid #81999b;font-style:normal;text-align:center}
@media(max-width:700px){.tt99-cl-layout{grid-template-columns:1fr}.tt99-cl-row{--cl-count:5}.tt99-mobile-values>button,.tt99-mobile-values>.given{min-width:130px}.tt99-mobile-stage{padding-inline:2px}}
@media print{.tt99-mobile-stage,.tt99-cl-layout>div:last-child{background:#fff}.tt99-colourlogic-print,.tt99-mobilebalance-print{break-inside:avoid}}
