/* Time Wizard Games: coherent branding, contextual play, compact evidence. */#header .brand-mark{width:48px;height:48px;flex:0 0 48px;background:none;border:0;box-shadow:none}#header .brand-mark img{width:100%;height:100%;object-fit:contain;display:block}#header .wordmark{font-family:var(--font-body);font-size:clamp(19px,1.7vw,29px);font-weight:850;letter-spacing:-.8px;white-space:nowrap;color:var(--ink)}#header .wordmark>span{color:var(--accent)}#header .brand-title{gap:9px}.brand-tagline{letter-spacing:.1em}.brand{gap:8px}.duel-modes .mode-card{background:var(--surface);border:1px solid var(--line);box-shadow:none;display:flex;flex-direction:column;align-items:flex-start;padding:24px}.duel-modes .mode-card:before,.duel-modes .mode-card:after{content:none}.duel-modes .mode-card h3{font-size:23px;line-height:1.15;min-height:2.3em}.duel-modes .mode-card p{flex:1;min-height:3.2em}.duel-modes .mode-card>button{width:100%;margin-top:18px}.guest-play-note{font-size:12px;color:var(--accent);min-height:16px}.duel-modes .mode-card:not(:first-child) h3{margin-bottom:26px}
/* Three columns: card/log reference, enlarged field, chat and table controls. */.duel-workspace .duel-reference{grid-area:reference}.duel-workspace .duel-center{grid-area:center;position:relative;grid-template-rows:auto minmax(0,1fr) auto}.duel-workspace .duel-social{grid-area:social}.duel-workspace .duel-context{position:absolute;z-index:90;left:50%;bottom:15%;transform:translateX(-50%);width:min(480px,94%);height:auto;max-height:58%;display:block;overflow:auto;box-shadow:0 12px 40px #0005;border-radius:12px}.duel-workspace .duel-context[hidden]{display:none!important}.duel-workspace .duel-action-panel{height:auto;display:block;overflow:visible;max-height:none}.duel-workspace .duel-context .action-menu{max-height:260px;height:auto;overflow:auto;grid-template-columns:repeat(2,minmax(0,1fr));padding:10px}.duel-workspace .duel-context .duel-prompt{padding:12px 14px}.duel-workspace .duel-context .duel-response-settings:has(label[style*='display: none']){display:none}.table-status-strip{font-size:12px;line-height:1.4;padding:4px 6px}.table-status-strip>[data-window-status]{display:block;font-weight:700;min-height:20px}.table-status-strip [data-inactivity]{padding:8px 10px;border:1px solid #dc9b21;background:var(--surface);border-radius:8px;color:var(--ink)}.table-request{padding:9px;margin:5px 0;background:var(--surface);border:1px solid var(--accent);border-radius:8px}.gameplay-controls{display:grid;gap:8px;margin:0 0 12px}.gameplay-controls [data-mode-switch]{width:100%;font-weight:750;border:1px solid var(--accent);color:var(--ink);background:var(--surface)}.gameplay-controls label{font-size:12px}.gameplay-controls select{width:100%;font-size:12px;min-height:38px}.gameplay-controls details{font-size:12px}.gameplay-controls summary{cursor:pointer}.gameplay-controls p{font-size:12px;margin:8px 0;line-height:1.5}.duel-social .duel-options{overflow:visible}.duel-workspace .duel-mobile-bar [data-mobile-panel=actions]{display:none}.hand-card.is-usable>.card-tile{outline:2px solid #20dfb5;box-shadow:0 0 9px #20dfb5b8}.hand-card.is-unavailable>.card-tile{filter:brightness(.78) saturate(.8)}.hand-card.is-unavailable:hover>.card-tile{filter:none}.manual-table-tools{display:flex;flex-wrap:wrap;align-items:center;gap:5px;padding:6px 0}.manual-table-tools button,.manual-table-tools select{min-height:32px;font-size:12px;padding:5px 7px}.manual-table-tools label{display:flex;align-items:center;gap:5px}.manual-table-tools details{position:relative;font-size:12px}.manual-lp-presets{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;margin:15px 0}.duel-hand-label [data-manual-hand]{padding:2px 7px;font-size:12px;min-height:25px;margin-right:10px}.card-hover-actions{display:flex;flex-direction:column;gap:4px;padding:7px;max-width:280px;max-height:60dvh}.card-hover-actions button{text-align:left;font-size:12px;white-space:normal}.inspector-silhouette{font-size:14px;letter-spacing:0;text-align:center}.rewind-dialog{max-width:1250px;width:calc(100% - 28px)}.rewind-comparison{display:grid;grid-template-columns:1fr 1fr;gap:18px}.rewind-comparison h3{margin:8px 0}.rewind-preview{pointer-events:none;user-select:none;min-height:280px;--zone-height:65px;padding:10px;overflow:hidden}.rewind-preview *{pointer-events:none!important}.rewind-preview .hand{min-height:65px;max-height:88px}.rewind-preview .hand-card{width:44px;flex-basis:44px}.rewind-preview .phase-bar{font-size:12px}.rewind-preview .duel-player{font-size:12px}.rewind-log{max-height:180px;overflow:auto;font-size:12px;padding:8px;background:var(--surface-alt)}.rewind-log p{margin:4px 0}body[data-page=stats] #main{max-width:1450px}.stats-shared{gap:10px;align-items:end}.stats-shared label{min-width:130px;flex:0 1 190px}.rating-explanation{margin:12px 0;font-size:12px}.rating-explanation summary{cursor:pointer;font-weight:650}.rating-explanation p{max-width:900px;line-height:1.6}.history-weighting{padding:12px;background:var(--surface);border:1px solid var(--line);border-radius:9px}.history-weighting p{max-width:650px;font-size:12px;margin:0}.stats-summary{display:flex;align-items:center;gap:16px;flex-wrap:wrap;font-size:13px;margin:12px 0}body[data-page=stats] .table-wrap{max-width:100%;overflow:auto;padding-right:8px;scrollbar-gutter:stable;max-height:70dvh}body[data-page=stats] table{width:auto;min-width:min(100%,520px);table-layout:auto}body[data-page=stats] th,body[data-page=stats] td{white-space:normal;overflow-wrap:break-word;padding:11px 14px;max-width:360px;line-height:1.45}body[data-page=stats] th{position:sticky;top:0;z-index:2;background:var(--surface)}body[data-page=stats] td:first-child{min-width:135px}body[data-page=stats] .matchup-matrix table{width:100%}.composition-chart{display:grid;grid-template-columns:minmax(170px,290px) minmax(280px,540px);gap:30px;justify-content:start;padding:20px}.composition-chart svg{max-height:290px}.composition-chart figcaption{max-width:540px}.composition-chart figcaption>ul{padding:0;margin:10px 0;list-style:none;max-height:420px;overflow:auto;padding-right:12px;scrollbar-gutter:stable}.composition-chart li{display:grid;grid-template-columns:10px minmax(110px,1fr) 65px 52px;gap:10px;align-items:start;padding:6px 0;font-size:12px}.composition-chart li>i{width:9px;height:9px;border-radius:50%;margin-top:5px}.composition-chart li>b,.composition-chart li>small{text-align:right;font-variant-numeric:tabular-nums}.composition-chart details ul{padding-left:0}.composition-chart .link-button{text-align:left;white-space:normal}.composition-chart details{min-width:0}.chart-readout{white-space:pre-line;min-height:42px}.chart-crosshair{pointer-events:none;stroke:var(--ink);stroke-dasharray:3 3;opacity:.5}.analytics-chart svg{touch-action:pan-y}.analytics-chart .chart-active{r:6px}.recommended-build{margin:16px 0}.recommended-build .panel-head{align-items:start;flex-wrap:wrap}.recommended-build .panel-head p{font-size:12px;margin:4px 0}.recommended-card-grid{display:grid;grid-template-columns:repeat(10,minmax(0,1fr));gap:7px;padding:16px}.recommended-card{border:0;padding:0;background:none;min-width:0;display:block;height:auto;box-shadow:none}.recommended-card img{width:100%;aspect-ratio:0.687;object-fit:cover;border-radius:5px}.recommended-card>span{display:block;font-size:12px;line-height:1.3;text-align:left;padding:3px 1px;white-space:normal}.unfilled-card{aspect-ratio:.687;border:1px dashed var(--line);display:grid;place-items:center;border-radius:5px;font-size:12px;color:var(--muted);align-self:start}.analytics-detail-head{display:flex;align-items:center;gap:14px;margin:18px 0}.analytics-detail-head h2{font-size:25px}.analytics-trends{margin:20px 0}.coach-results-grid{display:block}
@media(max-width:1100px) and (min-width:851px){#header .brand-mark{width:36px;height:40px;flex-basis:36px}#header .wordmark{font-size:18px}.recommended-card-grid{grid-template-columns:repeat(8,minmax(0,1fr))}}
@media(max-width:850px){#header .brand{gap:5px}#header .brand-mark{display:block!important;width:32px;height:37px;flex-basis:32px}#header .wordmark{font-size:clamp(14px,3.5vw,23px)!important;letter-spacing:-.5px}#header .brand-title{gap:2px;display:block}#header .release-label{display:flex;justify-content:center;font-size:12px;gap:5px}#header .brand-tagline{display:none}#header .brand-lockup{min-width:0}.duel-modes{grid-template-columns:repeat(2,minmax(0,1fr))}.duel-modes .mode-card{padding:16px}.duel-modes .mode-card h3{font-size:20px}.duel-modes .mode-card p{font-size:12px}.duel-workspace .duel-center{display:grid;height:var(--table-height)}.duel-workspace .duel-context{position:absolute!important;bottom:12%;display:block!important;left:50%;width:94%;max-height:55%;z-index:95}.duel-workspace .duel-context[hidden]{display:none!important}.duel-workspace .duel-reference,.duel-workspace .duel-social{max-height:none}.duel-workspace[data-mobile-panel=tools] .duel-social{display:block;position:relative;height:auto}.duel-workspace .duel-mobile-bar{position:sticky;top:0}.recommended-card-grid{grid-template-columns:repeat(5,minmax(0,1fr));gap:6px;padding:10px}.composition-chart{grid-template-columns:1fr;padding:16px;gap:12px}.composition-chart svg{width:200px;justify-self:center}.rewind-comparison{grid-template-columns:1fr}.rewind-preview{--zone-height:48px}.analytics-trends.grid.two{grid-template-columns:1fr}.stats-shared label{min-width:115px;flex:1 1 40%}body[data-page=stats] td,body[data-page=stats] th{padding:9px;max-width:180px}body[data-page=stats] table{min-width:100%}}
@media(prefers-reduced-motion:reduce){.hand-card.is-usable>.card-tile{box-shadow:none}}
@media(max-width:850px){#header .brand-title .release-label{position:static;left:auto;top:auto;flex-direction:row;align-items:center;justify-content:center;margin-top:3px;gap:5px}}
/* Historical views reuse field geometry within an isolated, inert board. */.rewind-comparison>.duel-center{display:block;grid-column:auto;grid-row:auto;width:100%;min-width:0;min-height:0;height:auto}.rewind-comparison .rewind-preview.duel-board{height:590px;min-height:590px;padding:8px;overflow:hidden;display:flex;flex-direction:column;gap:0}.rewind-preview button{opacity:1!important;cursor:default}.rewind-preview>.duel-player{flex:0 0 42px;min-height:42px;padding:5px 7px;gap:5px}.rewind-preview .duel-player .avatar{width:22px;height:22px}.rewind-preview .duel-player .identity{min-width:0;gap:5px}.rewind-preview .duel-player strong{font-size:12px}.rewind-preview .duel-player small{font-size:12px}.rewind-preview .duel-player .lp strong{font-size:21px}.rewind-preview .field-half{flex:1 1 0;grid-template-rows:repeat(2,minmax(0,1fr));gap:5px 4px;padding:4px 0}.rewind-preview .field-slot{font-size:12px}.rewind-preview .field-slot .stat{font-size:12px}.rewind-preview .field-cell .pile>span:first-child{font-size:12px}.rewind-preview .field-cell .pile>strong{font-size:12px}.rewind-preview .pile-stack .pile-tabs button{font-size:12px;min-height:18px;padding:2px}.rewind-preview .pile-stack .pile-tabs b,.rewind-preview .pile-stack .pile-tab-short{font-size:12px}.rewind-preview .hand{flex:0 0 74px;height:74px;min-height:0;max-height:74px;gap:4px;padding:5px 0;overflow:hidden;justify-content:center}.rewind-preview .hand .hand-card{flex:0 0 44px;width:44px;height:64px;margin:0}.rewind-preview .hand .hand-card>.card-tile,.rewind-preview .hand .hand-card>.card-back{height:100%;width:100%;transform:none!important}.rewind-preview .hand.opponent{height:30px;flex-basis:30px;padding:3px 0}.rewind-preview .hand.opponent .hand-card{width:16px;height:24px;flex-basis:16px}.rewind-preview .duel-hand-label{font-size:12px;line-height:18px;flex:0 0 18px;text-align:center}.rewind-preview .phase-bar{flex:0 0 26px;flex-wrap:nowrap;gap:2px;padding:2px;margin:2px 0}.rewind-preview .phase-bar>.tag{font-size:12px;flex-basis:auto}.rewind-preview .phase{min-height:22px;font-size:12px;padding:3px}
@media(max-width:850px){.rewind-comparison .rewind-preview.duel-board{height:550px;min-height:550px}}
