/* Time Wizard Games 0.17: card proportions, readable decisions and compact analytics. */#header .brand-mark{overflow:visible;align-self:center;flex-shrink:0}#header .brand-mark img{position:static;inset:auto;transform:none;width:100%;height:100%;max-width:100%;object-fit:contain}#header .brand .wordmark{font-size:clamp(20px,1.7vw,29px);line-height:1.15;letter-spacing:-.7px}.duel-modes{gap:18px;align-items:stretch}.duel-modes .mode-card{--mode-accent:#8066e8;position:relative;overflow:hidden;align-items:stretch;border:1px solid color-mix(in srgb,var(--mode-accent) 28%,var(--line));background:linear-gradient(145deg,color-mix(in srgb,var(--mode-accent) 13%,var(--surface)),var(--surface) 75%);border-radius:16px;padding:26px;transition:transform .18s,border-color .18s,box-shadow .18s}.duel-modes .mode-card:nth-child(2){--mode-accent:#00a6b8}.duel-modes .mode-card:nth-child(3){--mode-accent:#df8c12}.duel-modes .mode-card:nth-child(4){--mode-accent:#397cda}.duel-modes .mode-card:before{content:'';position:absolute;left:0;top:0;right:0;height:3px;background:linear-gradient(90deg,var(--mode-accent),transparent)}.duel-modes .mode-card:hover,.duel-modes .mode-card:focus-within{transform:translateY(-4px);border-color:var(--mode-accent);box-shadow:0 12px 28px color-mix(in srgb,var(--mode-accent) 13%,transparent)}.duel-modes .mode-card h3,.duel-modes .mode-card:not(:first-child) h3{margin:8px 0 0;min-height:2.3em}.duel-modes .mode-card .mode-icon{color:var(--mode-accent);background:color-mix(in srgb,var(--mode-accent) 10%,var(--surface));border-radius:12px;padding:10px}.duel-modes .guest-play-note{font-size:12px;order:3}.duel-modes .mode-card p{min-height:3em;order:2}.duel-modes .mode-card>button{order:4;margin-top:auto;min-height:46px}.duel-workspace .duel-center .field-half,.replay-workspace .duel-center .field-half{grid-template-columns:minmax(0,.74fr) repeat(5,minmax(0,1fr)) minmax(0,.74fr);gap:7px 5px}.duel-workspace .duel-center .field-cell-field,.duel-workspace .duel-center .field-cell-deck,.duel-workspace .duel-center .field-cell-fusion,.duel-workspace .duel-center .pile-tabs-cell{--physical-card-height:min(calc((100cqw - 8px)/.685),calc(100cqh - 28px))}.duel-workspace .inspector-heading{grid-template-columns:74px minmax(0,1fr);gap:13px}.duel-workspace .inspector-heading h2{font-size:17px;line-height:1.3;overflow-wrap:normal;word-break:normal}.duel-workspace .inspector-copy>p{font-size:13px;line-height:1.65}.duel-workspace .inspector-heading p{font-size:12px}.duel-workspace .duel-log-panel .event-log{font-size:12px;line-height:1.55}.duel-workspace .event-log time{font-size:12px}.duel-workspace .duel-social{gap:10px;overflow:auto;scrollbar-width:thin}.duel-workspace .duel-table-tools{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}.duel-workspace .duel-table-tools button{max-width:none;min-width:0;font-size:12px;min-height:34px}.duel-workspace .gameplay-controls{gap:9px}.duel-workspace .gameplay-controls label{font-size:12px}.duel-workspace .gameplay-controls select{font-size:12px;min-height:38px}.gameplay-controls details p{font-size:12px;line-height:1.5;margin:8px 0}.duel-workspace .duel-player-identity strong{font-size:12px}.duel-workspace .duel-zone-counts{font-size:12px}.duel-workspace .duel-player-identity small{font-size:12px}.priority-panel-tools{display:flex;justify-content:space-between;align-items:center;padding:6px 10px;border-bottom:1px solid var(--line);gap:8px}.priority-panel-tools button{min-height:30px;font-size:12px;padding:4px 8px}.priority-panel-tools [data-priority-drag]{cursor:move;touch-action:none}.duel-context.is-collapsed .duel-prompt>p,.duel-context.is-collapsed [data-prompt-card],.duel-context.is-collapsed .duel-chain,.duel-context.is-collapsed .duel-response-settings,.duel-context.is-collapsed .action-menu,.duel-context.is-collapsed [data-action-count]{display:none!important}.duel-context.is-collapsed .duel-prompt{padding:8px 12px}.duel-context.is-collapsed .duel-prompt h3{font-size:14px}.duel-context.is-collapsed .duel-prompt .eyebrow{display:none}.selected-card-list,.individual-card-choices{grid-column:1/-1;display:grid;gap:8px}.individual-card-choices{grid-template-columns:repeat(2,minmax(0,1fr))}.individual-card-choice{display:flex;text-align:left;gap:9px;align-items:center;padding:8px;min-width:0;min-height:78px}.individual-card-choice img{width:42px;height:auto;border-radius:3px}.individual-card-choice span{min-width:0}.individual-card-choice strong{font-size:12px;line-height:1.3;display:block}.individual-card-choice small{font-size:12px;display:block;margin-top:6px;color:var(--muted)}.hand-shuffle{flex:0 0 58px;align-self:flex-end;min-width:0;margin:0 0 2px 8px;padding:7px 3px!important;display:flex;flex-direction:column;font-size:15px;min-height:52px!important}.hand-shuffle span,.hand-shuffle small{font-size:12px}.hand-shuffle:disabled{opacity:.35;cursor:default}.sideboard-view-controls{margin-top:14px}
/* Analytics panels follow their content; charts keep a stable footprint. */body[data-page=stats] .overview-composition{width:min(100%,880px);margin-bottom:24px}#stats-content .composition-chart figcaption,#stats-content .composition-chart figcaption>ul{overflow:visible;max-height:none;height:auto}.chart-readout{display:block;height:64px;min-height:64px;overflow:hidden;line-height:1.45;font-size:12px;padding:10px 14px;white-space:normal;contain:layout}.chart-crosshair{pointer-events:none}.chart-values{margin-top:8px}.chart-values table{font-size:12px}.analytics-chart svg text{font-size:12px}.deck-detail-columns{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:24px;align-items:start;margin-bottom:24px}.deck-detail-columns .recommended-build{margin:0 0 16px}.deck-detail-columns .recommended-card-grid{grid-template-columns:repeat(5,minmax(0,1fr))}.deck-detail-columns .panel{min-width:0}.recommended-card>span.card-name{display:none}.stats-content-table{width:fit-content;max-width:100%;min-width:min(100%,600px);margin:20px 0}.stats-content-table .table-wrap{max-height:none}.stats-content-table table{width:auto;min-width:100%}.player-directory{max-width:1000px}.player-directory .table-wrap{max-height:none}.player-directory th button{border:0;background:none;box-shadow:none;color:inherit;padding:4px 0;font:inherit;text-align:left;white-space:nowrap}.player-directory .directory-filters{display:flex;flex-wrap:wrap;gap:12px;padding:15px}.player-directory .directory-filters label{flex:1;min-width:150px;font-size:12px}.card-detail-search{display:flex;gap:10px;align-items:end;max-width:650px;margin-bottom:18px}.card-detail-search label{flex:1}
@media(min-width:851px){#stats-content .panel>.matchup-matrix{overflow:visible;max-height:none;height:auto;width:100%}#stats-content .panel>.matchup-matrix table{width:100%;min-width:0;table-layout:fixed}#stats-content .panel>.matchup-matrix th,#stats-content .panel>.matchup-matrix td{max-width:none;white-space:normal;padding:9px 4px;font-size:12px;word-break:normal;overflow-wrap:anywhere}#stats-content .panel>.matchup-matrix th:first-child{width:120px}#stats-content .panel>.matchup-matrix small{font-size:12px}#stats-content .panel>.matchup-matrix button{font-size:inherit;white-space:normal}}
@media(min-width:851px) and (max-width:1150px){.duel-workspace .inspector-heading{grid-template-columns:55px 1fr;gap:8px;padding:10px}.duel-workspace .inspector-heading h2{font-size:14px}.duel-workspace .duel-player-numbers{flex-wrap:wrap}}
@media(max-width:850px){#header .brand .wordmark{font-size:clamp(18px,4.8vw,25px)!important;line-height:1.15;letter-spacing:-.6px}#header .brand-mark{width:38px;height:40px;flex-basis:38px}#header .brand .wordmark{display:block;white-space:normal}#header .brand-title{display:flex;flex-direction:column;gap:0}.duel-modes .mode-card{padding:18px}.duel-modes .mode-card h3{font-size:20px}.duel-workspace .duel-center .field-half{grid-template-columns:.74fr repeat(5,minmax(0,1fr)) .74fr;gap:4px 3px}.duel-workspace .duel-center .field-cell-field,.duel-workspace .duel-center .field-cell-deck,.duel-workspace .duel-center .field-cell-fusion,.duel-workspace .duel-center .pile-tabs-cell{--physical-card-height:min(calc((100cqw - 5px)/.685),calc(100cqh - 12px))}.hand-shuffle{flex-basis:40px;margin-left:4px}.hand-shuffle span{font-size:12px}.deck-detail-columns{grid-template-columns:1fr}.stats-content-table{width:100%}.individual-card-choices{gap:5px}.individual-card-choice{padding:6px;gap:6px}.individual-card-choice strong{font-size:12px}}
@media(prefers-reduced-motion:reduce){.duel-modes .mode-card{transition:none}.duel-modes .mode-card:hover,.duel-modes .mode-card:focus-within{transform:none}}

@media(min-width:1151px){.duel-workspace [data-player-context]{grid-template-columns:1fr}.duel-workspace .duel-player-card{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:3px 10px;padding:9px 12px}.duel-workspace .duel-player-numbers{margin:0;gap:10px}.duel-workspace .duel-player-numbers>div:first-child strong{font-size:23px}.duel-workspace .duel-clock strong{font-size:19px}.duel-workspace .lp-meter{grid-column:1/-1;margin:4px 0}.duel-workspace .duel-zone-counts{grid-column:1/-1}.duel-workspace .duel-player-identity strong{white-space:normal}.duel-workspace .hand:not(.opponent) .hand-card{flex-basis:clamp(52px,13cqw,86px);width:clamp(52px,13cqw,86px);height:auto;aspect-ratio:.685}}#stats-content .stats-content-table .table-wrap,#stats-content .player-directory .table-wrap{max-height:none;scrollbar-gutter:auto}
