:root{color-scheme:dark;--bg:#141411;--card:#1d1d18;--line:#37382d;--txt:#f7f3e4;--soft:#b4b3a3;--lime:#dcfa79;--ink:#1c2210;--radius:21px;font:16px/1.55 system-ui,-apple-system,"PingFang SC",sans-serif;color:var(--txt);background:var(--bg)}
*{box-sizing:border-box}[hidden]{display:none!important}body{margin:0}button,input,select{font:inherit;color:inherit}a{color:var(--soft)}a:hover{color:var(--lime)}button{border:1px solid var(--line);border-radius:11px;background:transparent;padding:8px 13px;min-height:44px;cursor:pointer}button:hover{background:#2c2e22;border-color:#777956}button:disabled{cursor:default;opacity:.45}button.primary{background:var(--lime);border-color:var(--lime);color:var(--ink);font-weight:820}button.primary:hover{background:#e8ff9d}:focus-visible{outline:2px solid var(--lime);outline-offset:3px}
.page{max-width:870px;margin:auto;padding:0 28px}.nav{display:flex;justify-content:space-between;gap:16px;align-items:center;padding:21px 0;border-bottom:1px solid var(--line)}.wordmark{font-weight:900;letter-spacing:.08em;color:var(--txt);text-decoration:none}.wordmark span,.intro h1 span{color:var(--lime)}.nav nav{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:5px}.nav button,footer button,.minor button{border-color:transparent;color:var(--soft);font-size:.85rem}.screen{max-width:655px;margin:auto}.intro{padding:46px 0 18px}.edition,.eyebrow{letter-spacing:.09em;font-size:.77rem;font-weight:700;color:var(--soft)}.edition>span:first-child{display:inline-block;width:8px;height:8px;background:var(--lime);border-radius:50%;margin-right:6px}
h1,h2,p{margin:0 0 11px}h1{font-size:clamp(2.3rem,6vw,4.15rem);line-height:1.12;letter-spacing:-.065em;margin-top:10px}.intro p,.muted,.specimen{color:var(--soft)}.card{border:1px solid var(--line);background:var(--card);border-radius:var(--radius);padding:23px}.pick label,dialog label{font-size:.85rem;font-weight:750;display:block;margin-bottom:5px}.input-wrap{display:flex;gap:8px}.input-wrap button{white-space:nowrap}input,select{width:100%;background:#141510;border:1px solid #64684b;border-radius:10px;padding:9px 11px;min-height:44px;min-width:0}
.subbar,.startbar,.stage-head,.dialog-title,.actions,footer{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}.subbar{margin:9px 0 7px;color:var(--soft);font-size:.83rem}.subbar button{border:0;padding:3px 6px;min-height:32px}.wordgrid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:6px}.wordgrid button{font-size:.85rem;line-height:1.2;min-height:38px;padding:4px;overflow-wrap:anywhere}.wordgrid button.chosen{border-color:var(--lime);color:var(--lime)}.startbar{justify-content:flex-start;margin-top:16px}.startbar .primary{min-width:155px}.primary span{margin-left:12px}.specimen{font-size:.77rem;margin:11px 0 0}
#play{padding-top:45px}.stage-head{color:var(--soft);font-size:.84rem}.ticks{display:grid;grid-template-columns:repeat(10,1fr);gap:6px;margin:14px 0}.ticks i{height:4px;border-radius:9px;background:#34372a}.ticks .ok{background:var(--lime)}.ticks .skipped{background:#8f8d74}.ticks .now{background:#748644}.game-card h1{font-size:clamp(1.75rem,4vw,3rem);line-height:1.22;margin-bottom:16px}.answers{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;margin-top:14px}.minor{margin-top:4px}.actions{justify-content:flex-start;margin:12px 0}.actions:empty{display:none}#guesses{display:grid;grid-template-columns:1fr 1fr;column-gap:20px;padding-left:30px}li{padding:4px 0;overflow-wrap:anywhere}#guesses .chosen{color:var(--lime);font-weight:800}#challenge{background:#343222;border-radius:10px;padding:12px;margin-top:10px}#challenge button{margin-right:5px}#turns{padding:12px 4px;color:var(--soft);font-size:.85rem}summary{cursor:pointer}.notice,.status{margin:12px auto;padding:10px 12px;max-width:655px;background:#2c3020;color:var(--txt);border-radius:11px;font-size:.89rem;white-space:pre-line;overflow-wrap:anywhere}
footer{margin:25px 0 18px;padding-top:11px;border-top:1px solid var(--line);color:var(--soft);font-size:.82rem}footer a{margin-left:8px}
dialog{width:min(94vw,540px);max-height:86vh;background:var(--card);border:1px solid #50523b;border-radius:17px;color:var(--txt);padding:21px}dialog::backdrop{background:#0a0b07cc}.dialog-title{margin-bottom:12px}.dialog-title h2{margin:0}.dialog-title button{min-width:44px;font-size:1.2rem}dialog input,dialog select{margin-bottom:12px}dialog p{font-size:.9rem}#photo{margin:0 0 8px}#photo img{display:block;max-width:100%;max-height:290px;border-radius:12px;object-fit:contain}figcaption{font-size:.75rem;color:var(--soft);margin-top:5px}.record{border-top:1px solid var(--line);padding:10px 0}.record summary{font-size:.89rem}.record p,.record ol{margin:8px 0;color:var(--soft);font-size:.82rem}
@media(max-width:480px){.page{padding:0 15px}.nav{gap:4px}.nav nav{gap:0}.nav button{padding:5px}.intro{padding-top:30px}.card{padding:15px}.wordgrid{grid-template-columns:repeat(5,minmax(0,1fr));gap:4px}.wordgrid button{font-size:.75rem}.startbar button{flex:1 1 auto}}
.animal-label{margin:0 0 5px}.animal-label label{margin:0}.animal-label button{min-height:27px}
.answers #yes,.answers #no{font-weight:800;background:#323628;border-color:#666d4a}.answers #yes:hover,.answers #no:hover{background:#424a32;border-color:var(--lime)}

.opponentbar{display:flex;justify-content:space-between;align-items:center;gap:8px 18px;flex-wrap:wrap;padding:12px 0;border-bottom:1px solid var(--line)}
#model-provider,#model-effort,#live-cost{font-size:.79rem;color:var(--soft)}
#model-line{color:var(--lime);font-size:1.03rem;overflow-wrap:anywhere}
.peek-actions{display:flex;gap:6px;flex-wrap:wrap}.peek-actions button{min-height:32px;font-size:.78rem;padding:4px 9px}

#challenge .actions{margin:5px 0 7px}#challenge p,#no-challenge{font-size:.88rem;margin:6px 0}
#dispute-actions{border-top:1px solid #64634b;padding-top:8px}#judgments{margin:6px 0;padding-left:25px;font-size:.84rem}
#lexicon{width:min(94vw,660px)}.lex-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}.lex-grid button,.lex-grid span{font-size:.84rem;overflow-wrap:anywhere;text-align:center}.lex-grid span{padding:7px 4px;border:1px solid var(--line);border-radius:8px}
.lex-paging{justify-content:space-between}

.opponent-control{display:flex;align-items:baseline;gap:8px;flex-wrap:wrap;min-width:0;border-color:transparent;padding:4px 8px 4px 0;min-height:38px;text-align:left}
.opponent-control .opponent-arrow{color:var(--soft);font-size:.77rem}.opponent-control:not(:disabled):hover .opponent-arrow{color:var(--lime)}
.key-tip{padding:9px 11px;background:#292c20;border-radius:8px;margin:-5px 0 12px;font-size:.82rem;color:var(--soft)}
.key-tip p{margin:0;font-size:inherit}.key-tip a{font-size:.77rem}
.rule-list{padding-left:1.3rem;font-size:.92rem}
.checkpoints{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;margin:9px 0 4px}
.checkpoints span{padding:5px 4px;background:#2e3423;color:var(--txt);border-radius:7px;text-align:center;font-size:.8rem}
.checkpoints strong{display:block;color:var(--lime)}

/* A small shared palette keeps alerts, forms and game states readable in both styles. */
:root{
 --control:#141510;--field:#64684b;--muted-plate:#292c20;--strong-plate:#2e3423;--hover:#2c2e22;
 --hover-line:#777956;--backdrop:#0a0b07cc;--dialog-line:#50523b;--accent:#dcfa79;--button-hover:#e8ff9d;
 --answer:#323628;--answer-hover:#424a32;--answer-line:#666d4a;
 --caution:#343222;--rail:#34372a;--skipped:#8f8d74;--now:#748644;
}
:root[data-theme="light"]{
 color-scheme:light;
 --bg:#f5f2e8;--card:#fffcf3;--line:#d9d4c3;--txt:#262b1d;--soft:#535a45;--lime:#d4eb86;--ink:#253015;
 --control:#fffdf7;--field:#8b9277;--muted-plate:#eeeddf;--strong-plate:#e8efd6;--hover:#eeeddf;
 --hover-line:#75835f;--backdrop:#25251988;--dialog-line:#a7ae90;--accent:#36560f;--button-hover:#e1f1a2;
 --answer:#eef3df;--answer-hover:#e1eccb;--answer-line:#8d9c75;
 --caution:#f5ecd4;--rail:#dedccc;--skipped:#797862;--now:#809454;
}
input,select{background:var(--control);border-color:var(--field)}
button:hover{background:var(--hover);border-color:var(--hover-line)}
button.primary:hover{background:var(--button-hover)}
:focus-visible{outline-color:var(--accent)}
a:hover,.wordmark span,.intro h1 span,#model-line,#guesses .chosen,.checkpoints strong,.opponent-control:not(:disabled):hover .opponent-arrow{color:var(--accent)}
.wordgrid button.chosen{color:var(--accent);border-color:var(--accent)}
dialog{border-color:var(--dialog-line);max-height:calc(100dvh - 36px)}
dialog::backdrop{background:var(--backdrop)}
.key-tip,.notice,.status{background:var(--muted-plate)}
.checkpoints span{background:var(--strong-plate)}
.ticks i{background:var(--rail)}.ticks .ok{background:var(--accent)}.ticks .skipped{background:var(--skipped)}.ticks .now{background:var(--now)}
#challenge{background:var(--caution)}
.answers #yes,.answers #no{background:var(--answer);border-color:var(--answer-line)}
.answers #yes:hover,.answers #no:hover{background:var(--answer-hover);border-color:var(--accent)}
.nav nav{align-items:center}.nav #theme-toggle{display:flex;align-items:center;gap:4px}
#theme-toggle svg{width:17px;height:17px;flex:none}
.edition{display:flex;align-items:center;gap:10px;flex-wrap:wrap;letter-spacing:.02em}
.edition button{display:inline-flex;align-items:center;gap:7px;font-size:inherit;min-height:36px;padding:3px 9px;color:var(--txt)}
.archive-dot{width:7px;height:7px;border-radius:50%;background:var(--accent)}
#lex-count{color:var(--soft);font-variant-numeric:tabular-nums}
.archive-entry{width:100%;display:flex;justify-content:space-between;align-items:center;gap:8px;padding:11px 14px;text-align:left;background:var(--muted-plate)}
.archive-entry strong,.archive-entry small,.model-table caption small{display:block}
.archive-entry small,.model-table caption small{font-size:.78rem;color:var(--soft)}
.archive-note{margin-top:12px}.tag{font-size:.75rem;color:var(--accent);white-space:nowrap}
.bench-lead{font-weight:750}
.bench-steps{padding-left:1.35rem;margin:13px 0;font-size:.9rem;color:var(--soft)}
#bench-start span{margin-inline-start:5px;color:var(--soft)}
.wide-dialog,#lexicon{width:min(94vw,690px);min-width:0}
.wide-dialog .dialog-title .eyebrow{margin-bottom:3px}
.wide-dialog th,.wide-dialog td{text-align:left;overflow-wrap:anywhere;vertical-align:middle}
.model-table,.score-guide,.score-strip table{width:100%;border-collapse:collapse;table-layout:fixed;font-size:.87rem}
.provider-scores{margin-top:14px}
.provider-scores h3{font-size:.79rem;letter-spacing:.04em;color:var(--soft);margin:0 0 5px}
.model-table{margin-bottom:12px}
.model-table caption{font-size:1rem;font-weight:800;text-align:left;background:var(--muted-plate);border-radius:10px 10px 0 0;padding:7px 11px;overflow-wrap:anywhere}
.model-table th,.model-table td{padding:6px 9px;border-bottom:1px solid var(--line)}
.model-table thead th{color:var(--soft);font-size:.76rem;font-weight:650}
.model-table th:first-child{width:35%}
.model-table th:last-child{width:64px}
.model-table td:not(:last-child){font-variant-numeric:tabular-nums}
.model-table .average,.record-score{color:var(--accent);font-weight:820}
.detail-link,#records-back{color:var(--accent);padding:4px 6px;font-size:.82rem;min-height:40px}
#records-detail-title{overflow-wrap:anywhere;font-size:1.03rem;margin:9px 0 4px}
.detail-overview,.records-foot{color:var(--soft);margin:7px 0 10px}
.records-empty,.score-strip{border:1px solid var(--line);border-radius:11px;background:var(--muted-plate);padding:10px 12px}
.records-empty p{margin:3px 0 0;color:var(--soft)}
.record summary>span:first-child{display:inline-flex;flex-direction:column;max-width:calc(100% - 95px);vertical-align:top}
.record summary small{color:var(--soft);font-size:.74rem}
.record-score{float:right;text-align:right;margin-top:3px;font-variant-numeric:tabular-nums}
.score-strip table{font-size:.85rem}
.score-strip caption{text-align:left;color:var(--soft);margin-bottom:7px}
.score-strip td,.score-strip th{text-align:center;padding:5px 2px}

.score-guide{margin-top:13px;color:var(--soft)}
.score-guide td,.score-guide th{border-bottom:1px solid var(--line);padding:8px 5px;vertical-align:top}
.score-guide th{width:6em;color:var(--txt)}
.lex-toolbar{display:flex;align-items:end;gap:12px}
.lex-toolbar div{flex:1;min-width:0}.lex-toolbar input{margin-bottom:0}.lex-toolbar a{font-size:.81rem;display:flex;align-items:center;min-height:44px;white-space:nowrap}
.lex-filters{display:flex;gap:6px;margin:8px 0}
.lex-filters button[aria-pressed="true"]{background:var(--strong-plate);border-color:var(--hover-line);color:var(--accent);font-weight:700}
.lex-filters button{font-size:.81rem;min-height:38px}
.lex-ledger-head,.word-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.4fr) 54px;align-items:center;gap:7px;padding:5px 10px}
.lex-ledger-head{color:var(--soft);font-size:.76rem;background:var(--muted-plate);border-radius:9px 9px 0 0}
.word-row{border-bottom:1px solid var(--line);font-size:.86rem;overflow-wrap:anywhere;min-height:48px}
.word-row:hover{background:var(--muted-plate)}
.lex-alias{font-size:.79rem;color:var(--soft)}
.use-word{font-size:.78rem;padding:3px;min-height:40px;color:var(--accent)}
.lex-empty{padding:12px;color:var(--soft)}
.lex-paging{display:flex;justify-content:space-between;align-items:center;margin-top:8px;gap:4px}
.lex-paging button{min-width:44px}.lex-paging p{margin:0;text-align:center;font-size:.79rem}
@media(max-width:480px){
 .nav{padding:12px 0}.nav #theme-toggle{padding-inline:8px}.opponentbar{padding-block:8px}
 .intro{padding-top:20px}.intro h1{font-size:clamp(1.98rem,9vw,2.65rem)}
 .wordgrid button,.startbar button,.answers button{min-height:44px}
 .wordgrid button{font-size:.76rem;padding-inline:2px}
 .page{padding-inline:max(12px,env(safe-area-inset-left)) max(12px,env(safe-area-inset-right))}
 #play{padding-top:23px}.peek-actions button{min-height:40px}
 dialog{width:calc(100vw - 18px);padding:13px;max-height:calc(100dvh - 18px)}
 .wide-dialog,#lexicon{width:calc(100vw - 18px)}
 .model-table th,.model-table td{padding-inline:4px}
 .model-table th:last-child{width:56px}
 .score-guide th{width:5.2em}
 .word-row,.lex-ledger-head{grid-template-columns:minmax(0,1fr) minmax(0,1fr) 44px;padding-inline:5px;gap:5px}
 .lex-toolbar{gap:7px}
 .lex-toolbar input{font-size:16px}
}
button,a{-webkit-tap-highlight-color:transparent}
/* One cell, one model and effort. Keep labels visible when a narrow screen scrolls. */
.table-scroll{overflow-x:auto;max-width:100%;overscroll-behavior-x:contain;border:1px solid var(--line);border-radius:10px}
.standings,#score-matrix{width:100%;border-collapse:separate;border-spacing:0;font-size:.85rem;text-align:left}
.standings th,.standings td,#score-matrix th,#score-matrix td{padding:7px 8px;border-bottom:1px solid var(--line);text-align:center;min-width:61px}
.standings tbody tr:last-child>* ,#score-matrix tbody tr:last-child>*{border-bottom:0}
.matrix-table th:first-child,.rank-table th:first-child,#score-matrix th:first-child{position:sticky;left:0;z-index:1;text-align:left;background:var(--card);box-shadow:1px 0 var(--line)}
.standings thead th,.standings thead th:first-child,#score-matrix thead th,#score-matrix thead th:first-child{background:var(--muted-plate);color:var(--soft)}
.standings th:first-child{min-width:115px;max-width:174px;overflow-wrap:anywhere}
.standings th small,.game-entry small{display:block;color:var(--soft);font-weight:400}
.standings th small{font-size:.72rem}.standings th strong{font-size:.88rem}
.score-cell{display:inline-block;padding:4px 7px;min-height:36px;white-space:nowrap;color:var(--accent);font-weight:780;font-variant-numeric:tabular-nums}
.record-controls,.record-tabs{display:flex;align-items:center;gap:6px}.record-controls{justify-content:space-between;flex-wrap:wrap;margin-bottom:8px}
.record-controls select{margin-bottom:0;width:auto}
.record-tabs button{min-height:41px}
.record-tabs [aria-pressed=true]{background:var(--strong-plate);color:var(--accent)}
.sr-only{position:absolute!important;width:1px;height:1px;padding:0!important;margin:-1px!important;clip-path:inset(50%);overflow:hidden;white-space:nowrap}
.game-entry,.ai-config{display:flex;align-items:center;justify-content:space-between;gap:9px;text-align:left;width:100%;padding:8px 10px;margin:0 0 6px}
.game-entry strong,.ai-config strong{display:block;overflow-wrap:anywhere}
.game-entry>span:first-child,.ai-config>div{min-width:0}
.game-entry>span:last-child,.ai-config button{white-space:nowrap;flex:none}
#records-detail-title,#record-game-title{min-width:0;overflow-wrap:anywhere}
.record-transcript{padding-left:1.45rem}
#score-matrix td,#score-matrix th{white-space:nowrap}
#score-matrix{font-variant-numeric:tabular-nums}

.score-strip.table-scroll{padding:0}
.ai-config{border:1px solid var(--line);border-radius:9px}
.ai-config span{font-size:.81rem;color:var(--soft)}
#ai-rounds{width:92px}
#ai-form>button{margin-right:6px}
@media(max-width:480px){.standings th:first-child{min-width:99px;max-width:115px}.standings td,.standings th{padding-inline:5px}.score-cell{min-height:42px}}
#lex-info{font-size:.82rem;margin:0 0 7px}
.lex-filters{align-items:center}.lex-filters select{width:auto;max-width:66%;margin:0;font-size:.84rem}
.lex-filters button{white-space:nowrap}
.lex-ledger{max-height:min(46dvh,455px);overflow:auto;overscroll-behavior:contain}
.lex-ledger-head{position:sticky;top:0;z-index:1}
.lex-word small{display:block;font-size:.72rem;color:var(--soft)}
.lex-jump{display:flex;align-items:center;gap:6px}
.lex-jump label{margin:0;white-space:nowrap}
.lex-jump select{margin:0;width:auto;font-size:.82rem}
.score-note{margin:8px 0 0}
/* Keep reference tables quiet: tabular numbers, compact headers, one emphasized path. */
#score-matrix th,#score-matrix td{min-width:43px;padding:7px 8px;font-weight:400}
#score-matrix th:first-child{min-width:69px}
#score-matrix thead th{text-align:center;background:var(--card);font-size:.8rem}
#score-matrix thead th:first-child{text-align:left;background:var(--muted-plate)}
#score-matrix tbody th:first-child{background:var(--muted-plate);font-size:.81rem}
#score-matrix tbody td{background:var(--card);color:var(--txt)}
#score-matrix tbody .score-diagonal{font-weight:780;color:var(--accent);background:var(--strong-plate)}
#score-matrix tbody tr:nth-child(5) td{border-bottom-color:var(--dialog-line)}
#archive-list{display:grid;gap:7px}
#lex-archives{margin-top:0}
#lex-archives button{white-space:nowrap}
.lex-toolbar button{min-height:44px;white-space:nowrap;font-size:.8rem}
.lex-table-wrap{max-height:min(46dvh,455px);overflow-y:auto;overscroll-behavior:contain}
.lex-table{width:100%;min-width:485px;border-collapse:separate;border-spacing:0;font-size:.86rem;table-layout:fixed}
.lex-table th,.lex-table td{padding:6px 10px;border-bottom:1px solid var(--line)}
.lex-table th:first-child{width:31%;position:sticky;left:0;z-index:1;background:var(--card);box-shadow:1px 0 var(--line);font-weight:700}
.lex-table th:nth-child(2){width:26%}.lex-table th:last-child{width:60px}
.lex-table thead th{position:sticky;top:0;z-index:2;background:var(--muted-plate);color:var(--soft);font-weight:650;font-size:.77rem}
.lex-table thead th:first-child{z-index:3;background:var(--muted-plate)}
.lex-table .use-word{white-space:nowrap;padding:3px 5px}
.lex-table tbody tr:last-child>*{border-bottom:0}
@media(max-width:480px){
 #score-matrix th,#score-matrix td{padding:6px 7px;min-width:51px}
 .lex-table th:first-child{width:124px}
 #lex-archives button{padding-inline:8px}
 .lex-toolbar button{padding-inline:7px}
}

@media(max-width:480px){#lex-info::after{content:" · 左右滑动查看各列"}}

/* Less chrome: spacing and surface color separate groups; keep outlines for fields and focus. */
:root{--quiet-surface:#24261b;--quiet-choice:#26291e}
:root[data-theme="light"]{--quiet-surface:#ede9da;--quiet-choice:#ebe7d8}
.nav,.opponentbar,footer{border:0}
.opponentbar{padding-top:3px}
.intro{padding-top:31px}
.pick,.game-card{padding-inline:0;border:0;border-radius:0;background:transparent}
.pick{padding-block:13px 0}.game-card{padding-block:16px 0}
.subbar{margin-top:13px}
.wordgrid button{background:var(--quiet-choice);border-color:transparent;border-radius:9px}
.wordgrid button:hover,.wordgrid button.chosen{background:var(--strong-plate);border-color:transparent}
.wordgrid button.chosen{box-shadow:inset 0 -2px var(--accent)}
.opponent-control,.dialog-title button,.minor button,#lex-archives button,.pick .subbar button{border-color:transparent}
#ai-start{border-color:transparent;color:var(--accent)}
#game-photo,#peek{border-color:transparent;color:var(--soft)}
.answers #yes,.answers #no,.answers #unknown{border-color:transparent;background:var(--quiet-choice);border-radius:10px}
.answers #yes:hover,.answers #no:hover,.answers #unknown:hover{border-color:transparent;background:var(--strong-plate)}
dialog{border:0;box-shadow:0 16px 62px #0004}
.score-strip.table-scroll,.lex-table-wrap,.record-controls+div>.table-scroll{border-color:var(--line)}
#archive-list .archive-entry,.ai-config,.game-entry{border-color:transparent;background:var(--quiet-choice)}
#archive-list .archive-entry:hover,.ai-config:hover,.game-entry:hover{background:var(--strong-plate)}
#photo{margin:0 0 13px}
#photo-next-image{display:block;width:100%;min-height:0;padding:0;border:0;background:var(--quiet-surface);border-radius:12px;overflow:hidden}
#photo-next-image:disabled{opacity:1}
#photo img{width:100%;height:min(42dvh,315px);max-height:none;margin:auto;border-radius:0;object-fit:contain}
.photo-nav{display:flex;align-items:center;justify-content:center;gap:12px;margin:3px 0}
.photo-nav button{border:0;min-width:44px;font-size:1.3rem;padding:1px 8px}
#photo-position{font-size:.81rem;font-variant-numeric:tabular-nums;color:var(--soft)}
#photo-credit{margin-top:5px}
@media(max-width:480px){.intro{padding-top:18px}.pick{padding-top:8px}.game-card{padding-top:12px}}

.stage-head{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:8px;min-height:44px}
.stage-head #stop{font-size:.78rem;font-weight:600;color:var(--soft);border-color:transparent;min-width:79px;white-space:nowrap}
.stage-head #stop:hover{color:var(--txt);background:var(--quiet-choice)}
#play>.peek-actions{margin-top:0;justify-content:flex-end}
#hint-bar{margin-top:12px}
#hint-bar .hint-control{display:inline-flex;align-items:center;gap:7px;color:var(--accent);font-size:.88rem;font-weight:700;background:var(--strong-plate);border-color:transparent;border-radius:9px;padding-inline:13px;min-height:44px}
#hint-bar .hint-control:hover{color:var(--txt);background:var(--answer-hover)}
@media(max-width:480px){#play>.peek-actions button{min-height:36px}}

/* The homepage picture carries the theme; the play image stays beside the controls. */
.illustrated-intro{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);align-items:center;gap:16px;padding-bottom:14px}
.illustrated-intro h1{font-size:clamp(2.1rem,5vw,3.65rem);margin-bottom:7px}
.home-illustration{width:100%;height:auto;aspect-ratio:2.35;object-fit:cover;object-position:center;border-radius:14px;display:block}
.photo-note{margin-top:3px}
.round-grid{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,.8fr);gap:22px;align-items:start}
.round-grid.is-result{grid-template-columns:minmax(0,1fr)}
.player-photo{margin:12px 0 0;min-width:0}
.photo-heading{display:flex;align-items:center;justify-content:space-between;gap:5px;color:var(--soft);font-size:.81rem}
.photo-heading button{color:var(--soft);font-size:.81rem;border-color:transparent;min-height:38px;padding:5px 7px}
#inline-status{margin:7px 0;font-size:.81rem}
#inline-next-image{display:block;width:100%;padding:0;min-height:0;background:var(--quiet-surface);border:0;border-radius:10px;overflow:hidden}
#inline-next-image:disabled{opacity:1}
#inline-image{display:block;width:100%;height:min(35dvh,235px);object-fit:contain}
#inline-position{font-size:.81rem;color:var(--soft);font-variant-numeric:tabular-nums}
#inline-credit{overflow-wrap:anywhere}
.player-photo .photo-nav{margin:1px 0}
@media(max-width:540px){
 .illustrated-intro{grid-template-columns:1fr;gap:9px}
 .illustrated-intro h1{font-size:clamp(2.15rem,9.5vw,2.8rem)}
 .home-illustration{height:clamp(94px,25vw,130px);aspect-ratio:auto}
 .round-grid{grid-template-columns:1fr;gap:7px}
 .player-photo{margin-top:0}
 #inline-image{height:min(27dvh,182px)}
}

/* V16: a guessing game, with one visual rhythm from the opening scene to the answer. */
:root{--bg:#131b1a;--card:#1b2623;--txt:#f2f0e2;--soft:#b5beb0;--accent:#dafa87;--lime:#dafa87;--line:#3c4a42;--quiet-choice:#293930;--quiet-surface:#1f2d27;--strong-plate:#344832;--control:#192420;--field:#6e816c;--hero-base:#1a2621;--action-quiet:#344832}
:root[data-theme="light"]{--bg:#f6f2e4;--card:#fff9e9;--txt:#253323;--soft:#576650;--accent:#345521;--lime:#d5ea9d;--line:#d7d9c7;--quiet-choice:#eae8d8;--quiet-surface:#eeead7;--strong-plate:#e1ebca;--control:#fff9ec;--field:#849674;--hero-base:#f0ecdd;--action-quiet:#e0eac8}
.page{max-width:1080px}
.nav{padding-block:19px;border-bottom:1px solid var(--line)}
.wordmark{font-size:1rem;letter-spacing:.04em}
.opponentbar{padding-block:9px}
.screen{max-width:920px}
.illustrated-intro{position:relative;isolation:isolate;min-height:270px;margin:12px 0 8px;padding:28px 0 25px;display:flex;align-items:center;overflow:hidden;background:var(--hero-base);border-radius:0 42px 0 0}
.intro-copy{position:relative;z-index:2;width:55%;padding-left:clamp(16px,3.5vw,38px)}
.home-kicker{color:var(--soft);font-size:.75rem;letter-spacing:.16em;margin-bottom:9px}
.illustrated-intro .edition{margin:0 0 12px}
.illustrated-intro h1{font-size:clamp(2.1rem,5.5vw,4rem);line-height:1.02;letter-spacing:-.06em;margin:0 0 12px}
.illustrated-intro h1 span{display:block;margin-top:2px}
.illustrated-intro p{max-width:30ch;font-size:.92rem;margin-bottom:0}
.home-illustration{position:absolute;right:0;inset-block:0;width:65%;height:100%;object-fit:cover;object-position:54% 50%;border-radius:0;z-index:0}
.illustrated-intro::after{position:absolute;inset:0;content:"";pointer-events:none;z-index:1;background:linear-gradient(90deg,var(--hero-base) 0%,var(--hero-base) 32%,transparent 58%)}
.illustrated-intro .edition button{border-color:transparent;background:var(--quiet-choice);color:var(--accent)}
.pick{display:block;padding-block:17px 0;max-width:730px}
#pick-form{display:block}
.pick .animal-label>label{font-size:1.18rem;font-weight:800;letter-spacing:.015em;color:var(--txt)}
.pick .input-wrap input{min-height:49px;font-size:1rem}
.pick .wordgrid button{min-height:39px;background:transparent;color:var(--txt);box-shadow:inset 0 -1px var(--line);border-radius:4px}
.pick .wordgrid button:hover,.pick .wordgrid button.chosen{background:var(--strong-plate);color:var(--accent);box-shadow:none}
.pick .startbar{display:grid;grid-template-columns:minmax(150px,1.1fr) minmax(130px,.9fr);max-width:530px;gap:8px;margin-top:15px}
.startbar .primary,.startbar #ai-start{display:flex;justify-content:space-between;align-items:center;padding:10px 14px;text-align:left;min-height:48px}
.startbar .primary span{margin:0}
.startbar #ai-start{background:var(--quiet-choice)}
#play{padding-top:19px}
#play .ticks{margin:8px 0 18px}
.round-grid{gap:clamp(17px,4vw,38px);grid-template-columns:minmax(0,1.15fr) minmax(0,.85fr)}
.game-card{padding-top:8px}
.game-card h1{font-size:clamp(2rem,4vw,3.45rem);line-height:1.12;margin:6px 0 12px;letter-spacing:-.05em}
.game-card .eyebrow{color:var(--accent)}
#stage{margin:0}
.answers{grid-template-columns:1fr 1fr 1.35fr;margin-top:23px;gap:7px}
.answers button{min-height:55px;font-size:1rem}
.answers #yes{background:var(--lime);color:var(--ink)}
.answers #yes:hover{background:var(--button-hover);color:var(--ink)}
.answers #no{background:var(--quiet-choice);color:var(--txt)}
.answers #unknown{display:inline-flex;justify-content:center;align-items:center;gap:5px;color:var(--accent);font-weight:750;background:transparent;box-shadow:inset 0 -2px var(--strong-plate);white-space:nowrap;font-size:.87rem}
#unknown svg{flex:none}
.player-photo{margin:0;padding:0;min-width:0}
#inline-next-image{border-radius:10px 10px 0 0}
#inline-image{height:min(40dvh,285px)}
#inline-credit a,#photo-credit a{color:var(--accent)}
#reference{width:min(95vw,636px)}
#reference-rule{font-size:.79rem;margin-bottom:7px}
#reference .ref-media{margin-bottom:7px}
.photo-load{display:block;width:100%;height:4px;appearance:none;accent-color:var(--accent);margin:7px 0 8px}
.photo-load::-webkit-progress-bar{background:var(--quiet-choice);border-radius:4px}
.photo-load::-webkit-progress-value{background:var(--accent)}
#reference-photo-status{font-size:.79rem;margin:4px 0}
#reference-article{padding-top:9px;margin-top:11px;border-top:1px solid var(--line)}
#reference-article h3{font-size:.84rem;margin:0 0 4px;color:var(--accent)}
#reference-excerpt{font-size:.88rem;line-height:1.56;display:-webkit-box;-webkit-line-clamp:4;-webkit-box-orient:vertical;overflow:hidden;margin:0}
#reference-actions{margin:10px 0 3px}
#get-hint{border:0;background:var(--action-quiet);color:var(--accent);font-weight:750}
.answer-advice{margin:9px 0;padding:8px 10px;background:var(--action-quiet);border-radius:7px;white-space:pre-line}
#reference-answer{margin-top:13px;padding-top:9px;border-top:1px solid var(--line)}
#reference-answer p{font-size:.79rem;margin-bottom:6px}
.reference-choices{display:grid;grid-template-columns:1fr 1fr 1.5fr;gap:6px}
.reference-choices button{border-color:transparent;background:var(--quiet-choice);min-height:46px;white-space:nowrap}
#confirm-unknown{color:var(--accent)}
@media(max-width:580px){
 .nav{padding-block:12px}.opponentbar{padding-block:5px}
 .illustrated-intro{display:block;min-height:0;margin-top:1px;padding:16px 0 0;overflow:hidden;border-radius:0;background:none}
 .intro-copy{width:auto;padding:0 0 12px}
 .home-kicker{display:none}
 .illustrated-intro h1{font-size:clamp(2rem,9vw,3.05rem);margin-bottom:6px}
 .illustrated-intro h1 span{display:inline;margin-left:.04em}
 .illustrated-intro::after{display:none}
 .home-illustration{position:static;width:100%;height:clamp(105px,29vw,154px);border-radius:0 17px 0 0;object-position:center}
 .pick{padding-top:4px}
 .pick .startbar{grid-template-columns:minmax(0,1.1fr) minmax(0,.9fr)}
 .round-grid{grid-template-columns:1fr;gap:12px}
 .game-card h1{font-size:clamp(1.9rem,7.5vw,2.55rem)}
 .answers{margin-top:15px}
 #inline-image{height:min(25dvh,184px)}
}
/* Yes and no must have equal visual weight: the result should follow the player. */
.answers #yes,.answers #no{background:var(--quiet-choice);color:var(--txt)}
.answers #yes:hover,.answers #no:hover{background:var(--strong-plate);color:var(--txt)}
@media(max-width:580px){
 #reference #photo img{height:min(25dvh,190px)}
 #reference-answer{position:sticky;bottom:-13px;background:var(--card);padding-bottom:5px;z-index:2}
}

/* One visible action hierarchy, including on a narrow phone. */
.illustrated-intro{min-height:230px;padding-block:20px;margin-bottom:0}
.illustrated-intro h1{font-size:clamp(2.2rem,4.8vw,3.35rem)}
.illustrated-intro::after{background:linear-gradient(90deg,var(--hero-base) 0%,var(--hero-base) 33%,transparent 56%)}
.pick{padding-top:12px}
.archive-switch{display:flex;align-items:center;gap:7px 12px;justify-content:space-between;flex-wrap:wrap;margin-bottom:5px}
#archive-tabs{display:flex;align-items:center;gap:5px;flex-wrap:wrap}
#archive-tabs button{border:0;background:transparent;color:var(--soft);border-radius:7px;min-height:40px;font-size:.84rem;padding:6px 10px}
#archive-tabs button[aria-pressed=true]{background:var(--strong-plate);color:var(--accent);font-weight:750}
.archive-switch>#archive-button{border:0;color:var(--soft);font-size:.78rem;padding:4px 6px;min-height:36px}
.pick .animal-label{margin-top:6px}
.pick .wordgrid button{background:var(--quiet-choice);box-shadow:none;border-radius:7px}
.pick .wordgrid button:hover,.pick .wordgrid button.chosen{background:var(--strong-plate);color:var(--accent)}
.pick .startbar{max-width:none}
.startbar small{display:block;font-size:.72rem;font-weight:600;opacity:.78}.startbar small:empty{display:none}
#reference-question{font-weight:750;margin-bottom:8px;color:var(--txt)}
#reference .answer-advice{font-weight:750;margin:6px 0 8px}
.reference-choices #confirm-unknown{background:transparent;color:var(--soft);text-decoration:underline;text-underline-offset:4px}
.reference-choices #confirm-unknown:hover{color:var(--txt);background:var(--quiet-surface)}
.photo-load:not([value]){background:linear-gradient(90deg,var(--quiet-choice) 10%,var(--accent) 50%,var(--quiet-choice) 90%) 0/210% 100%;animation:loading-sweep 1.05s linear infinite}
.photo-load:not([value])::-webkit-progress-bar{background:none}
@keyframes loading-sweep{to{background-position:210% 0}}
@media(prefers-reduced-motion:reduce){.photo-load{animation:none!important}}
@media(max-width:580px){
 .illustrated-intro{min-height:0;padding:10px 0 0}
 .illustrated-intro h1{font-size:clamp(1.9rem,8vw,2.6rem)}
 .intro-copy{padding-bottom:9px}.home-illustration{height:clamp(92px,24vw,130px)}
 .pick{padding-top:8px}.pick .input-wrap input{min-height:45px}
 #archive-tabs button{min-height:37px;padding:4px 8px}
 .archive-switch{gap:2px 4px}
 .archive-switch>#archive-button{padding:0 2px}
 .pick .wordgrid button{min-height:34px}
 .round-offline .opponentbar{display:none}
 .answers button{min-height:48px}
 .game-card h1{margin-bottom:8px}
 #inline-image{height:min(21dvh,145px)}
}
.pick .startbar{align-items:stretch}
@media(prefers-reduced-motion:no-preference){
 .pick .wordgrid button,.answers button,.startbar button{transition:background-color .15s,color .15s,transform .15s}
 .pick .wordgrid button:active,.answers button:active,.startbar button:active{transform:translateY(1px)}
}

/* V18 review candidate: local links belong to their content; the end control has a unique shape/color. */
:root{--stop-bg:#41302c;--stop-fg:#ffd3c1;--stop-hover:#58392e}
:root[data-theme="light"]{--stop-bg:#f4ddcf;--stop-fg:#8f3c25;--stop-hover:#f0c9b6}
.stage-head #stop{display:inline-flex;align-items:center;gap:7px;min-height:44px;background:var(--stop-bg);color:var(--stop-fg);padding:8px 13px;font-size:.84rem;font-weight:750;border-radius:8px}
.stage-head #stop:hover{color:var(--stop-fg);background:var(--stop-hover)}
.stop-square{display:block;width:.66em;height:.66em;background:currentColor;border-radius:2px;flex:none}
.photo-heading{align-items:end;margin:0 0 9px}
.photo-heading strong{display:block;color:var(--txt);font-size:1.36rem;line-height:1.17;overflow-wrap:anywhere}
.photo-heading small{white-space:nowrap;color:var(--soft)}
.reference-links{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-top:7px}
.reference-links:not(:has(a:not([hidden]))){display:none}
.reference-links a{display:inline-flex;align-items:center;min-height:42px;padding:5px 11px;border-radius:7px;background:var(--quiet-choice);color:var(--accent);font-size:.8rem;font-weight:650;text-decoration:none;white-space:nowrap}
.reference-links a:hover{background:var(--strong-plate)}
.inline-links{margin-top:10px}
#reference-article{margin-top:17px;padding-top:12px}
#reference .ref-media{margin-bottom:14px}
@media(max-width:580px){.reference-links a{min-height:44px}}

/* A conversation between two players and a row of question stamps. */
@media(max-width:580px){.illustrated-intro h1 span{display:block;margin:1px 0 0}}
.stage-head{margin-bottom:2px}
#counter{font-size:.88rem;font-weight:750;color:var(--txt)}
#play .ticks{display:flex;align-items:center;gap:clamp(3px,1.3vw,9px);margin:7px 0 17px;min-height:28px}
#play .ticks i{display:grid;place-items:center;width:22px;height:22px;flex:none;background:none;color:var(--soft);font-size:.71rem;font-weight:800;font-style:normal}
#play .ticks i::before{content:attr(data-mark);display:grid;place-items:center;width:10px;height:10px;border-radius:50%;background:var(--quiet-choice);line-height:1}
#play .ticks i.ok::before{width:18px;height:18px;background:var(--strong-plate);color:var(--accent)}
#play .ticks i.skipped::before{width:16px;height:16px;background:none;box-shadow:inset 0 0 0 1px var(--field)}
#play .ticks i.now::before{width:22px;height:22px;background:var(--lime);color:var(--ink);box-shadow:0 0 0 2px var(--strong-plate)}
.last-reply{display:flex;justify-content:flex-end;align-items:center;gap:6px;margin:0 0 8px;color:var(--soft);font-size:.76rem}
.last-reply strong{background:var(--strong-plate);color:var(--accent);font-size:.86rem;padding:4px 12px;border-radius:11px 11px 3px 11px}
.guesser{display:flex;align-items:center;gap:9px;color:var(--soft);font-size:.81rem;font-weight:700;min-height:40px;margin-bottom:9px}
.guesser-face{width:39px;height:39px;flex:none}
.dialogue{position:relative;background:var(--quiet-surface);padding:15px 18px 17px;border-radius:3px 17px 17px 17px}
.dialogue:before{content:"";position:absolute;top:-5px;left:13px;width:11px;height:11px;transform:rotate(45deg);background:var(--quiet-surface)}
.game-card .dialogue h1{font-size:clamp(1.85rem,4vw,3.1rem);margin:0;letter-spacing:-.045em}
.dialogue #round-note:not([hidden]){margin:8px 0 0;font-size:.82rem}
.game-card .answers{margin-top:11px}
#round-tally{font-size:.78rem;margin:8px 0 0}
.live-round footer{display:none}
@media(max-width:580px){
 #play{padding-top:11px}
 #play .ticks{margin-bottom:12px}
 .game-card{padding-top:3px}
 .guesser{min-height:32px;margin-bottom:7px}
 .guesser-face{width:32px;height:32px}
 .dialogue{padding:11px 12px 12px}
 .game-card .dialogue h1{font-size:clamp(1.75rem,7vw,2.3rem)}
 .player-photo{margin-top:3px}
 #inline-image{height:min(22dvh,152px)}
}
@media(prefers-reduced-motion:no-preference){
 .guesser.thinking .guesser-face{animation:guesser-thinking .9s ease-in-out infinite alternate}
}
@keyframes guesser-thinking{to{transform:translateY(-2px)}}

.live-round .opponent-control:disabled{opacity:1;cursor:default}
.live-round .opponent-control .opponent-arrow{display:none}

/* V19: one connection action, steady form rows and equal-height controls. */
#settings{width:min(94vw,520px);padding:24px;border:1px solid var(--line);border-radius:20px}
#settings .dialog-title{margin:0 0 20px;align-items:center;flex-wrap:nowrap}
#settings .dialog-title h2{font-size:1.65rem;line-height:1.25;letter-spacing:-.03em}
#settings .dialog-title button{width:44px;height:44px;min-height:44px;padding:0;flex:none;border:0;border-radius:50%}
#settings .setting-field{margin:0 0 18px}
#settings label{font-size:.84rem;font-weight:650;margin:0 0 7px}
#settings input,#settings select{display:block;width:100%;min-width:0;height:48px;min-height:48px;margin:0;padding:10px 12px;border-radius:10px;font-size:16px;line-height:1.3}
#settings .input-wrap{display:grid;grid-template-columns:minmax(0,1fr) 100px;align-items:start;gap:8px}
#settings .input-wrap:has(#fetch-models[hidden]){grid-template-columns:1fr}
#settings #fetch-models{height:48px;min-height:48px;margin:0;padding:8px;border-radius:10px;font-size:.85rem;white-space:nowrap;background:var(--quiet-choice);border:0}
#settings .key-tip{margin:7px 0 0;padding:0;background:none;border-radius:0;font-size:.75rem;line-height:1.55}
#settings .key-tip a{display:inline-flex;align-items:center;min-height:32px;font-size:.75rem;text-underline-offset:3px}
#settings .settings-privacy,#settings #connection-note{margin:0;font-size:.75rem;color:var(--soft);line-height:1.5}
#settings #setting-status{margin:14px 0;padding:10px 12px;border-radius:9px;font-size:.84rem;overflow-wrap:anywhere;line-height:1.5}
#settings #setting-status[data-state=passed]{background:var(--strong-plate);color:var(--accent)}
#settings #setting-status[data-state=failed]{background:var(--stop-bg);color:var(--stop-fg)}
#settings .settings-actions{margin-top:18px}
#settings #settings-submit{display:block;width:100%;height:48px;min-height:48px;padding:10px 14px;border-radius:10px;font-size:1rem}
#settings #connection-note{margin-top:8px;text-align:center}
@media(max-width:580px){#settings{padding:20px;max-height:calc(100dvh - 28px)}#settings .dialog-title{margin-bottom:17px}#settings .dialog-title h2{font-size:1.5rem}#settings .setting-field{margin-bottom:16px}}

/* V20 score scope: community numbers stay private at the game-detail level. */
.records-scope{display:flex;align-items:center;gap:5px;margin:0 0 10px}
.records-scope button{border:0;background:transparent;min-height:44px;padding:8px 18px;border-radius:9px}
.records-scope button[aria-pressed=true]{background:var(--strong-plate);color:var(--accent);font-weight:750}
.records-scope #records-reload{margin-left:auto;font-size:.8rem;color:var(--soft);padding:8px 12px}
#records-scope-note,#records-status,#records-sync{font-size:.8rem;line-height:1.5;margin:0 0 10px}
#records-status,#records-sync{color:var(--soft)}
.community-score{display:inline-block;min-width:60px;padding:9px 7px;font-variant-numeric:tabular-nums}
.score-sharing-note{font-size:.73rem;color:var(--soft);line-height:1.6;margin:17px 0 0;padding-top:12px;border-top:1px solid var(--line)}

.matrix-table th:not(:first-child){white-space:nowrap;min-width:74px}

/* V21: site-owned pickers, with the same palette and touch rhythm as the game. */
#settings .themed-select{display:flex;align-items:center;justify-content:space-between;gap:10px;width:100%;height:48px;min-height:48px;margin:0;padding:10px 12px;border:1px solid var(--field);border-radius:10px;background:var(--control);font-size:16px;text-align:left;font-weight:400}
.themed-select>span:first-child{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.select-chevron{flex:none;font-size:1.25rem;line-height:1;color:var(--soft)}
#choice-picker{width:min(94vw,540px);max-height:80dvh;padding:20px;background:var(--card);border:1px solid var(--line);border-radius:20px;overflow:auto}
#choice-picker .dialog-title{display:flex;flex-wrap:nowrap;align-items:center;margin:0 0 10px}
#choice-picker h2{font-size:1.25rem;letter-spacing:-.02em}
#choice-picker .dialog-title button{border:0;border-radius:50%;width:44px;height:44px;min-height:44px;padding:0}
#choice-picker [data-choice-search]{height:44px;margin:0 0 12px;font-size:16px}
.choice-list h3{margin:13px 0 7px;font-size:.74rem;color:var(--soft);font-weight:600}
.choice-list h3:first-child{margin-top:0}
.choice-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}
.choice-options button{display:flex;align-items:center;justify-content:space-between;gap:8px;min-width:0;height:56px;min-height:56px;padding:9px 11px;border:0;border-radius:9px;background:var(--quiet-choice);font-size:.84rem;text-align:left;font-weight:550}
.choice-options button>span:first-child{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere;line-height:1.35}
.choice-options button>span:last-child{flex:none;width:14px;color:var(--accent)}
.choice-options button[aria-pressed=true]{background:var(--strong-plate);color:var(--accent)}
.choice-options button:hover{background:var(--strong-plate)}
.choice-options.model-options{grid-template-columns:1fr}
.choice-options.model-options button{height:56px;min-height:56px;font-variant-numeric:tabular-nums}
#choice-picker .choice-refresh{display:block;width:100%;border:0;margin:12px 0 0;color:var(--accent);font-size:.82rem;min-height:44px;background:transparent}
#settings .remember-config{margin:2px 0 0}
#settings .remember-choice{display:flex;align-items:center;gap:9px;min-height:44px;font-size:.83rem;font-weight:550;margin:0}
#settings #remember-config{display:block;width:18px;height:18px;min-height:18px;flex:none;padding:0;margin:0;accent-color:var(--accent)}
#settings #remember-note,#settings #remember-status{font-size:.74rem;line-height:1.5;color:var(--soft);margin:5px 0 0}
#settings #forget-config{border:0;background:transparent;color:var(--soft);min-height:44px;margin:2px 0 0;padding:5px 0;font-size:.76rem;text-decoration:underline;text-underline-offset:3px}
@media(max-width:580px){#choice-picker{width:100%;max-width:100%;max-height:78dvh;margin:auto 0 0;padding:16px 20px max(16px,env(safe-area-inset-bottom));border:0;border-radius:22px 22px 0 0;box-shadow:0 -10px 50px #0002}}
@media(prefers-reduced-motion:no-preference){#choice-picker[open]{animation:picker-enter .14s ease-out}@keyframes picker-enter{from{transform:translateY(8px)}to{transform:none}}}

/* V22 — a conversation, with a compact reply dock and player-only reference. */
#play .stage-head{display:flex;justify-content:space-between;align-items:center;margin:0 0 2px}
#play #stop{font-size:.8rem;min-height:44px;padding:8px 12px;background:var(--stop-bg);color:var(--stop-fg);border:0;border-radius:9px}
.chat-progress{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:12px}
#play .chat-progress .ticks{gap:3px;margin:0;min-height:20px}
#play .chat-progress .ticks i{width:13px;height:13px;font-size:.5rem}
#play .chat-progress .ticks i::before,#play .chat-progress .ticks i.now::before,#play .chat-progress .ticks i.ok::before,#play .chat-progress .ticks i.skipped::before{width:7px;height:7px;content:'';box-shadow:none}
#play .chat-progress .ticks i.now::before{width:9px;height:9px}
#round-tally{font-size:.7rem;margin:0;white-space:nowrap}
#play .round-grid{display:grid;grid-template-columns:minmax(0,1fr) 230px;gap:32px;align-items:start}
#play .round-grid.is-result{grid-template-columns:1fr}
#play .game-card{padding:0;background:transparent;border:0;min-width:0}
.conversation{height:clamp(340px,53dvh,610px);overflow-y:auto;overscroll-behavior-y:contain;padding:16px 18px 22px;background:var(--quiet-surface);border-radius:18px;scrollbar-width:thin;scrollbar-color:var(--field) transparent}
.chat-hello{text-align:center;font-size:.72rem;color:var(--soft);margin:0 0 23px}
.chat-message{display:flex;flex-direction:column;align-items:flex-start;margin:0 0 18px;gap:5px;max-width:90%;min-width:0}
.chat-meta{font-size:.69rem;color:var(--soft);padding:0 3px;line-height:1.5}
.chat-bubble,#play .dialogue{background:var(--card);padding:11px 14px;border-radius:3px 14px 14px 14px;margin:0;color:var(--txt);font-size:1rem;line-height:1.7;overflow-wrap:anywhere}
.from-player{align-items:flex-end;margin-left:auto;max-width:78%}
.from-player .chat-bubble{background:var(--strong-plate);color:var(--accent);border-radius:14px 3px 14px 14px;min-width:50px;text-align:center}
#play .dialogue:before{display:none}
#play .game-card .dialogue h1{font-size:1.05rem;line-height:1.7;font-weight:500;letter-spacing:0;margin:0}
#play .guesser{font-size:.7rem;min-height:24px;margin:0;gap:6px}
.chat-avatar{width:24px;height:24px;display:grid;place-items:center;color:var(--accent);background:var(--strong-plate);border-radius:50%;font-size:1rem}
#play .dialogue #round-note{font-size:.8rem;line-height:1.65}
#chat-current{margin-bottom:0}
.question-tools{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:7px 0 2px}
.question-tools>div{display:flex;align-items:center;gap:6px}
.question-tools button{min-height:44px;padding:7px 8px;border:0;background:transparent;font-size:.76rem;color:var(--accent);font-weight:600}
.question-tools small{font-size:.65rem;color:var(--soft)}
#play .chat-composer{display:grid;grid-template-columns:1fr 1fr .9fr;gap:8px;margin:7px 0 0;padding:10px 0 max(8px,env(safe-area-inset-bottom));border-top:1px solid var(--line)}
#play .chat-composer button{min-height:48px;border:0;border-radius:12px;font-size:1rem;background:var(--quiet-choice);padding:10px}
#play .chat-composer #yes{background:var(--lime);color:var(--ink);font-weight:750}
#play .chat-composer #unknown{font-size:.87rem;color:var(--soft)}
.wait-state{display:flex;flex-wrap:wrap;align-items:center;gap:7px;padding:9px 0 0;font-size:.74rem;color:var(--accent);font-variant-numeric:tabular-nums}
.wait-state small{display:block;flex-basis:100%;font-size:.68rem;line-height:1.6;color:var(--soft)}
.typing-dots{display:flex;gap:3px;padding:0 2px}.typing-dots i{width:4px;height:4px;background:var(--accent);border-radius:50%}
@media(prefers-reduced-motion:no-preference){.typing-dots i{animation:typing 1.1s ease-in-out infinite}.typing-dots i:nth-child(2){animation-delay:.14s}.typing-dots i:nth-child(3){animation-delay:.28s}}
@keyframes typing{0%,70%,100%{opacity:.35;transform:none}35%{opacity:1;transform:translateY(-3px)}}
.cost-breakdown{border-top:1px solid var(--line);margin:20px 0 0;padding-top:18px;font-size:.8rem}
.cost-breakdown h3{font-size:1rem;margin:0 0 9px}.cost-total{font-weight:650;line-height:1.65;margin:0 0 12px;color:var(--accent)}
.cost-table{width:100%;border-collapse:collapse;min-width:310px;font-size:.76rem}
.cost-table th{text-align:left;color:var(--soft);font-weight:500;padding:9px 8px;border-bottom:1px solid var(--line);white-space:nowrap}
.cost-table td{padding:11px 8px;border-bottom:1px solid var(--line);white-space:nowrap}.cost-breakdown>.muted{font-size:.7rem;line-height:1.65;margin:9px 0}.balance-line{font-size:.78rem;line-height:1.65}
.request-details{font-size:.73rem;margin:12px 0}.request-details summary{cursor:pointer;min-height:40px;display:flex;align-items:center}.request-details li{padding:5px 0;line-height:1.65}
#play .player-photo{padding:2px 0 0;margin:0;background:transparent;border:0;border-radius:0;min-width:0}
#play .player-photo .photo-heading{margin-bottom:10px}#play .player-photo .photo-heading span{font-size:.7rem}#play .player-photo .photo-heading strong{font-size:1.2rem;margin-top:3px}#play .player-photo .photo-heading small{font-size:.65rem}
#play #inline-image{height:190px;border-radius:12px;object-fit:cover}
#play .inline-links{gap:5px}#play .inline-links a{font-size:.65rem;padding:5px 7px;min-height:36px}
#advice{width:min(94vw,500px);border-radius:20px;padding:24px}#advice h2{font-size:1.3rem}.advice-question{background:var(--quiet-surface);padding:12px 14px;border-radius:12px;font-size:1rem;line-height:1.7}.advice-actions{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin-top:20px}.advice-actions button{font-size:.87rem;min-height:48px;padding:10px 8px}#advice-result{padding:14px 0;background:transparent}#advice-result strong{font-size:1.2rem;color:var(--accent)}#advice-reason{font-size:.9rem;line-height:1.75;margin:9px 0}#advice-status,#advice-cost{font-size:.76rem;line-height:1.65}
@media(max-width:760px){#play .round-grid{grid-template-columns:1fr;gap:17px}.conversation{height:clamp(300px,51dvh,540px)}#play .player-photo #inline-body{display:grid;grid-template-columns:104px minmax(0,1fr);column-gap:14px;align-items:center}#play #inline-next-image{grid-column:1;grid-row:1/5}#play #inline-image{width:104px;height:104px}#play .player-photo .photo-heading{margin-bottom:8px}#play .photo-heading>div{display:flex;align-items:center;gap:9px}#play .photo-heading strong{margin:0;font-size:1rem}#play .photo-nav{grid-column:2;justify-content:flex-start;gap:14px;margin:0}#play .photo-nav button{width:32px;min-height:32px;height:32px;padding:0}#play #inline-credit{grid-column:2;font-size:.6rem;margin:3px 0}#play .inline-links{grid-column:2;margin-top:3px}#play .inline-links a{min-height:32px}#play #inline-status,#play #inline-loading{grid-column:1/-1}#play .game-card .dialogue h1{font-size:1rem}}
@media(max-width:380px){.conversation{padding:13px 12px 18px}.question-tools small{display:none}.question-tools button{font-size:.73rem;padding:7px 3px}.chat-message{max-width:96%}.advice-actions{grid-template-columns:1fr}.chat-progress{gap:3px}#round-tally{font-size:.64rem}}

/* V23: the chosen word owns its photos and encyclopedia; no duplicate chat entry. */
.question-tools{justify-content:flex-end}
.inline-photo-actions{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:3px 8px;margin-top:6px}
#play .inline-photo-actions .photo-nav{display:flex;align-items:center;gap:5px;justify-content:flex-start;margin:0;font-size:.74rem}
#play .inline-photo-actions .photo-nav button{width:36px;height:36px;min-height:36px;padding:0;border:0;background:transparent}
.inline-photo-actions>a,.inline-article>a{display:inline-flex;align-items:center;min-height:36px;font-size:.73rem;color:var(--accent);text-decoration:none;text-underline-offset:3px}
.inline-photo-actions>a:hover,.inline-article>a:hover{text-decoration:underline}
#play #inline-credit{font-size:.65rem;margin:2px 0;color:var(--soft);line-height:1.6}
#inline-credit details{margin:0}#inline-credit summary{min-height:30px;padding:3px 0;cursor:pointer}#inline-credit p{margin:3px 0 9px;line-height:1.65;font-size:inherit;overflow-wrap:anywhere}
.inline-article{margin-top:11px;padding-top:10px;border-top:1px solid var(--line)}
#inline-excerpt{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden;font-size:.8rem;line-height:1.7;color:var(--soft);margin:0}
@media(max-width:760px){
 #play .player-photo #inline-body{row-gap:0}
 #play .inline-photo-actions{grid-column:2;grid-row:1;align-self:start;margin-top:0;justify-content:flex-start;gap:0 8px}
 #play .inline-photo-actions .photo-nav{gap:3px;grid-column:auto}
 #play #inline-credit{grid-column:2;grid-row:2;align-self:start;font-size:.62rem}
 #play #inline-next-image{grid-row:1/4;align-self:start}
 #play .inline-article{grid-column:1/-1;grid-row:4;margin-top:10px}
 #play #inline-excerpt{-webkit-line-clamp:2;font-size:.76rem}
 #play .inline-photo-actions>a,#play .inline-article>a{font-size:.73rem;min-height:40px}
}

/* Make the optional advice action visible beside the live conversation. */
.question-tools{padding:10px 0 4px}
.question-tools>div{gap:10px}
#ask-advice{display:inline-flex;align-items:center;justify-content:center;min-height:48px;padding:10px 18px;border:0;border-radius:12px;background:var(--strong-plate);color:var(--accent);font-size:1rem;font-weight:750;line-height:1.4}
#ask-advice:not(:disabled):hover{background:var(--lime);color:var(--ink)}
.question-tools small{display:block;font-size:.69rem;line-height:1.5}

/* V24: less empty chat space, and a side-by-side reference on phones. */
.conversation{height:clamp(260px,40dvh,430px)}
@media(max-width:760px){
 .conversation{height:clamp(200px,30dvh,280px)}
 #play .player-photo #inline-body{grid-template-columns:112px minmax(0,1fr);column-gap:12px;align-items:start}
 #play #inline-next-image{grid-column:1;grid-row:1;align-self:start}
 #play #inline-image{width:112px;height:112px}
 #play .inline-article{grid-column:2;grid-row:1;align-self:start;margin:0;padding:0;border:0}
 #play #inline-excerpt{-webkit-line-clamp:4;font-size:.76rem;line-height:1.65}
 #play .inline-article>a{min-height:32px}
 #play .inline-photo-actions{grid-column:1/-1;grid-row:2;align-items:center;justify-content:space-between;gap:0 10px;margin-top:3px}
 #play #inline-credit{grid-column:1/-1;grid-row:3;margin:0}
 #play #inline-credit summary{min-height:26px;padding:2px 0}
}
#play .game-card>.actions:not(:has(>button:not([hidden]))){display:none}

/* V25: one advice action and two coherent reference columns. */
.question-tools{display:block;padding:8px 0 4px}
#ask-advice{display:flex;width:100%;justify-content:space-between;gap:12px;padding:10px 14px;text-align:left}
.advice-button-note{display:inline-flex;align-items:center;gap:12px;flex:none;font-weight:400}
.advice-button-note>span{font-size:1.2rem;line-height:1}
#ask-advice small{display:block;font-size:.7rem;color:var(--soft);font-weight:400}
.inline-media{min-width:0}
#play .inline-media .photo-nav{display:flex;align-items:center;justify-content:center;gap:4px;margin:3px 0 0;font-size:.74rem}
#play .inline-media .photo-nav button{width:36px;height:36px;min-height:36px;padding:0;border:0;background:transparent}
.inline-reference-links{display:flex;align-items:center;flex-wrap:wrap;gap:2px 16px;margin-top:2px}
.inline-reference-links>a{display:inline-flex;align-items:center;min-height:36px;font-size:.73rem;color:var(--accent);text-decoration:none}
.inline-reference-links>a:hover{text-decoration:underline}
#play .inline-article #inline-credit{margin:1px 0 0}
#play .inline-article #inline-credit summary{min-height:26px;padding:2px 0}
@media(max-width:760px){
 #play .player-photo #inline-body{grid-template-columns:112px minmax(0,1fr);gap:0 12px}
 #play .inline-media{grid-column:1;grid-row:1}
 #play #inline-next-image{display:block;width:100%}
 #play .inline-media .photo-nav{gap:0;grid-column:auto;grid-row:auto;justify-content:space-between;margin-top:2px}
 #play .inline-media .photo-nav button{width:32px;min-height:32px;height:32px}
 #play .inline-article{grid-column:2;grid-row:1;margin:0;padding:0;border:0}
 #play .inline-reference-links{gap:0 10px}
 #play .inline-reference-links>a{min-height:32px;font-size:.72rem}
 #play .inline-article #inline-credit{font-size:.59rem;grid-column:auto;grid-row:auto;line-height:1.5}
}
#play .inline-media .photo-nav button{min-width:34px}
#inline-position{white-space:nowrap;flex:none}
@media(max-width:760px){#play .inline-media .photo-nav button{width:34px;height:36px;min-height:36px}}
#ask-advice:not(:disabled):hover small{color:var(--ink)}

/* V26: the result unfolds inside the same conversation. */
.ending-guesses{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:3px 24px;padding-left:22px;margin:10px 0 0;font-size:.9rem;line-height:1.6}
#settlement{padding:15px 0 6px}#settlement h2{font-size:1.2rem;color:var(--accent);margin:0 0 6px}#settlement p{font-size:.78rem;margin:0;line-height:1.6}
#challenge{padding:10px 0;background:none;border:0;border-radius:0;margin:0}
.challenge-actions{display:grid;grid-template-columns:1fr 1fr 1.2fr;gap:8px;margin-top:10px}
.challenge-actions button{min-height:46px;font-size:.86rem;padding:8px;background:var(--quiet-choice);border:0}
#challenge #judge{background:var(--strong-plate);color:var(--accent)}
#challenge .subtle-link{border:0;color:var(--accent);min-height:36px;padding:6px 0;font-size:.76rem}
#challenge #judge-disclaimer,#challenge #judge-status{font-size:.73rem;line-height:1.6;margin:5px 0}
.ending-actions{display:flex;gap:8px}.ending-actions:not(:has(button:not([hidden]))){display:none}.ending-actions button{font-size:.8rem;min-height:40px;margin-top:8px}
.cost-detail{font-size:.76rem}.cost-detail>summary{min-height:44px;display:flex;align-items:center;color:var(--accent);cursor:pointer;gap:8px}.cost-detail>summary:before{content:'▸'}.cost-detail[open]>summary:before{content:'▾'}
.cost-detail p,.cost-detail>a{font-size:.72rem;line-height:1.65}.cost-detail>a{display:inline-flex;align-items:center;min-height:36px}.cost-total{font-size:1rem}
.feedback-panel{border-top:1px solid var(--line);padding:15px 0 0;margin:15px 0 0}.feedback-panel h3{font-size:.94rem;margin:0 0 9px}.feedback-actions{display:flex;gap:8px;margin-bottom:8px}.feedback-actions button{min-height:44px;min-width:85px;border:0;background:var(--quiet-choice);font-size:.86rem}.feedback-actions button[aria-pressed=true]{background:var(--strong-plate);color:var(--accent);font-weight:700}
.feedback-panel textarea{display:block;resize:vertical;width:100%;min-height:72px;max-height:200px;padding:10px 12px;margin:8px 0;border:1px solid var(--line);border-radius:10px;background:var(--control);color:var(--txt);font:inherit;font-size:16px;line-height:1.6}
.feedback-panel>button{font-size:.78rem;min-height:40px}.feedback-panel>.muted{font-size:.7rem;line-height:1.6;margin-left:8px}.feedback-panel>p.muted{margin-left:0}
.rating-stat{display:block;white-space:nowrap;font-size:.65rem;color:var(--soft);font-weight:400;margin-top:4px}.community-score:empty{padding:0}
@media(max-width:380px){.challenge-actions{gap:5px}.challenge-actions button{font-size:.76rem}.ending-guesses{font-size:.82rem;column-gap:17px}}

/* V27: advice has one clear primary action; close remains in its header. */
.advice-actions{grid-template-columns:1fr}.advice-actions:has(#retry-advice:not([hidden])){grid-template-columns:1fr 1fr}#inline-retry{padding:6px 0;min-height:36px;border:0;background:none;color:var(--accent);font-size:.73rem}

/* V27: a compact ending in the conversation, with one-line cost and two votes. */
#play .round-grid.is-result{max-width:760px;margin-inline:auto;width:100%}
#play:has(.is-result)>.stage-head,#play:has(.is-result)>.chat-progress{max-width:760px;margin-inline:auto}
.is-result .conversation{height:auto;min-height:0;max-height:min(60dvh,490px)}
#settlement{padding:0}#settlement-title:empty,#settlement-note:empty{display:none}
.cost-breakdown{padding-top:12px;margin-top:14px}.cost-detail>summary{display:flex;align-items:center;flex-wrap:wrap;gap:5px 9px;font-size:.85rem;min-height:36px}.cost-detail>summary .cost-total{margin:0}.cost-expand{margin-left:auto;color:var(--soft);font-size:.72rem}.cost-detail[open] .cost-expand{transform:rotate(90deg)}
.feedback-panel{display:flex;align-items:center;flex-wrap:wrap;gap:10px;margin-top:10px;padding-top:12px}.feedback-panel h3{font-size:.83rem;font-weight:500;margin:0 auto 0 0}.feedback-actions{margin:0;gap:8px}.feedback-actions button{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-width:66px;min-height:42px;padding:8px 13px;border:1px solid var(--line);background:transparent;border-radius:999px}.feedback-actions svg{width:19px;height:19px}.feedback-actions button:hover,.feedback-actions button[aria-pressed=true]{border-color:var(--accent);background:var(--strong-plate)}.feedback-panel>p.muted{flex-basis:100%;margin:0}.feedback-panel>p[hidden]{display:none}
#advice-model{font-size:.7rem;line-height:1.6;color:var(--soft);margin:0 0 10px}
@media(max-width:760px){.is-result .conversation{max-height:55dvh}.cost-detail>summary{font-size:.8rem}.feedback-panel h3{font-size:.76rem}}

/* V28: keep speaking roles aligned and make the saved summary readable in place. */
#play .from-ai,#play #chat-current{align-items:flex-start;margin-left:0;margin-right:auto;text-align:left}
#play .from-player{align-items:flex-end;margin-left:auto;margin-right:0;text-align:right}
#play .from-player .chat-bubble{text-align:right}.chat-hello{text-align:left}
#inline-read{display:block;border:0;background:none;padding:0;margin:0;color:inherit;text-align:left;width:100%;min-height:44px;font-weight:400}#inline-read .read-label{display:block;color:var(--accent);font-size:.73rem;margin-top:4px}#inline-read:hover .read-label{text-decoration:underline}
#article-detail{max-width:680px}#article-detail-text{white-space:pre-wrap;line-height:1.9;font-size:1rem;text-align:left}#article-detail-source{font-size:.8rem}
/* V28 retry controls share the conversation's quiet green action style. */
#retry,#ending-retry,#retry-advice,#inline-retry{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:10px 17px;border:1px solid var(--line);border-radius:12px;background:var(--strong-plate);color:var(--accent);font:inherit;font-size:.88rem;font-weight:650;cursor:pointer;transition:background .15s,transform .1s}
#retry::before,#ending-retry::before,#retry-advice::before,#inline-retry::before{content:'↻';font-size:1.2em;line-height:1}
#retry:hover,#ending-retry:hover,#retry-advice:hover,#inline-retry:hover{background:var(--lime);color:var(--ink)}
#retry:active,#ending-retry:active,#retry-advice:active,#inline-retry:active{transform:translateY(1px)}
#retry:focus-visible,#ending-retry:focus-visible,#retry-advice:focus-visible,#inline-retry:focus-visible{outline:2px solid var(--accent);outline-offset:3px}
#retry:disabled,#ending-retry:disabled,#retry-advice:disabled,#inline-retry:disabled{opacity:.55;cursor:wait}

#stop{position:relative;overflow:hidden;touch-action:none;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none}#stop small{font-size:.65rem;font-weight:400;margin-left:5px;opacity:.85}#stop::after{content:'';position:absolute;left:0;bottom:0;height:4px;width:var(--hold-progress,0%);background:currentColor;pointer-events:none}#stop.holding{filter:brightness(.95)}
/* V29: readable reference and consistent dismiss controls. */
.dialog-title>button[data-close][aria-label^="关闭"]{display:inline-grid;place-items:center;width:40px;height:40px;min-width:40px;min-height:40px;padding:0;border:0;border-radius:50%;background:transparent;color:var(--soft);font-size:1.6rem;font-weight:400;line-height:1;flex:none}
.dialog-title>button[data-close][aria-label^="关闭"]:hover{background:var(--quiet-surface);color:var(--txt)}
#article-detail{width:min(92vw,660px);padding:26px 30px}#article-detail h2{font-size:1.35rem;letter-spacing:0}#article-detail .dialog-title{gap:20px;margin-bottom:22px;align-items:center}.article-copy{max-width:56ch;margin:0 auto;color:var(--txt);font-size:1rem;line-height:1.85;white-space:normal}.article-copy p{margin:0 0 1.25em}.article-copy p:last-child{margin-bottom:0}#article-detail-source{display:inline-flex;margin-top:24px;font-size:.78rem;color:var(--soft)}
#photo-zoom{width:min(94vw,1040px);padding:20px;max-height:94dvh}.zoom-stage{display:flex;justify-content:center;align-items:center;min-height:120px;background:var(--quiet-surface);border-radius:14px;overflow:auto}.zoom-stage img{display:block;max-width:100%;max-height:72dvh;object-fit:contain;width:auto;height:auto;min-width:min(480px,100%)}.zoom-controls{display:flex;align-items:center;justify-content:center;gap:20px;margin:10px 0}.zoom-controls button{min-width:44px;min-height:44px;border:0;background:transparent;font-size:1.5rem}#zoom-credit{font-size:.72rem;line-height:1.6;margin:0}#inline-next-image,#photo-next-image{cursor:zoom-in}
/* Cost explanation is a separate popover; expanded labels never rotate. */
.cost-heading{display:flex;justify-content:flex-end;margin-bottom:-36px;position:relative;z-index:1;pointer-events:none}.info-button{pointer-events:auto;display:inline-grid;place-items:center;border:1px solid var(--line);border-radius:50%;width:28px;min-height:28px;height:28px;padding:0;background:transparent;color:var(--soft);font-family:Georgia,serif;font-size:.9rem;font-weight:650}.cost-detail>summary{padding-right:40px;font-size:.88rem}.cost-detail[open] .cost-expand{transform:none}.cost-expand{writing-mode:horizontal-tb;white-space:nowrap;line-height:1.4}.cost-recap{font-size:.82rem;line-height:1.85;color:var(--soft);margin:12px 0 0}#fee-info{max-width:540px}#fee-info .article-copy{font-size:.9rem}
/* Keep the accepted model × reasoning matrix, with calmer density and clear cells. */
#records{width:min(96vw,1120px);padding:28px}#records .dialog-title{margin-bottom:20px}#records h2{font-size:1.6rem;margin:0}#records .eyebrow{font-size:.75rem;margin-bottom:5px}.records-scope{padding-bottom:12px;border-bottom:1px solid var(--line);gap:4px}.records-scope button[aria-pressed=true]{background:var(--strong-plate);border-radius:999px}.records-archives{display:flex;gap:7px;flex-wrap:wrap;margin:15px 0 8px}.records-archives button{min-height:36px;padding:5px 12px;border:0;border-radius:999px;background:transparent;color:var(--soft);font-size:.78rem}.records-archives button[aria-pressed=true]{background:var(--quiet-surface);color:var(--txt);font-weight:650}.records-summary{font-size:.85rem;color:var(--txt);margin:14px 0}.record-controls{display:flex;justify-content:space-between;align-items:center;gap:12px;margin:12px 0}.record-tabs{display:flex;gap:4px}.record-tabs button{border:0;border-radius:8px;padding:7px 14px;min-height:36px;background:transparent;color:var(--soft)}.record-tabs button[aria-pressed=true]{background:var(--quiet-surface);color:var(--txt)}
#records .table-scroll{border:0;border-radius:0;background:transparent}#records .standings th,#records .standings td{padding:15px 12px;border-bottom:1px solid var(--line);font-size:.82rem}#records .standings thead th{font-size:.73rem;font-weight:500;color:var(--soft);background:var(--card);white-space:nowrap}#records .standings th:first-child{min-width:178px;background:var(--card)}#records .standings th strong{font-size:.9rem;line-height:1.5}#records .standings th small{font-size:.7rem;margin-top:4px}#records .score-cell{display:inline-flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;min-height:46px;min-width:70px;border:0;background:transparent;border-radius:9px;font-size:1rem;font-weight:650;color:var(--txt)}#records button.score-cell:hover{background:var(--strong-plate);color:var(--accent)}#records .rating-stat{font-size:.63rem;font-weight:400;color:var(--soft)}#records-mode,#records-scope-note{font-size:.74rem;color:var(--soft);line-height:1.65}.score-sharing-note{font-size:.72rem;line-height:1.6;margin-top:18px;color:var(--soft)}
@media(max-width:580px){#article-detail{padding:22px 20px}#article-detail h2{font-size:1.2rem}.article-copy{font-size:1rem;line-height:1.9}.article-copy p{margin-bottom:1.3em}#records{padding:22px 16px}#records .standings th:first-child{min-width:140px;max-width:160px}#records .standings th,#records .standings td{padding:12px 8px}.records-archives{gap:3px}.records-archives button{padding-inline:10px}#photo-zoom{padding:14px}.zoom-stage img{min-width:0;width:100%;max-height:70dvh}}
.dialog-title>button[data-close][aria-label^="关闭"]{position:relative;font-size:0!important;min-width:44px;min-height:44px}
.dialog-title>button[data-close][aria-label^="关闭"]::before,.dialog-title>button[data-close][aria-label^="关闭"]::after{content:'';position:absolute;left:50%;top:50%;width:16px;height:1.7px;background:currentColor;border-radius:2px;transform:translate(-50%,-50%) rotate(45deg)}
.dialog-title>button[data-close][aria-label^="关闭"]::after{transform:translate(-50%,-50%) rotate(-45deg)}
.cost-table{font-size:.82rem;line-height:1.65}.cost-table th,.cost-table td{font-family:inherit;writing-mode:horizontal-tb}
.home-illustration{object-fit:contain}
.ai-runrow{display:grid;grid-template-columns:auto minmax(80px,1fr) auto;gap:8px;align-items:center}.ai-runrow label{display:flex;gap:6px;align-items:center;margin:0;font-size:.85rem;white-space:nowrap}.ai-runrow #ai-rounds{width:60px;min-width:0;height:44px;padding:7px;margin:0}.ai-runrow button{min-height:44px;padding:8px 12px;font-size:.86rem}#ai-budget{font-size:.72rem;line-height:1.6;margin:10px 0 0}.ai-live-rounds{display:grid;gap:0;margin-top:20px;max-height:430px;overflow:auto}.ai-live-round{display:block;width:100%;text-align:left;border:0;border-bottom:1px solid var(--line);border-radius:0;background:transparent;padding:14px 4px}.ai-live-round:hover{background:var(--quiet-surface)}.ai-live-top{display:flex;justify-content:space-between;gap:10px;align-items:center}.ai-live-top strong{font-size:.88rem}.ai-live-top small,.ai-live-round>small{font-size:.72rem;color:var(--soft);font-weight:400}.ai-live-round progress{display:block;width:100%;height:4px;margin:10px 0;accent-color:var(--accent)}#ai-conversation{width:min(94vw,740px)}.ai-conversation-log{max-height:65dvh;overflow:auto;background:var(--quiet-surface);border-radius:14px;padding:18px}.ai-conversation-log .chat-message{display:flex;flex-direction:column;align-items:flex-start;max-width:90%;margin-bottom:15px}.ai-conversation-log .from-player{align-items:flex-end;margin-left:auto;text-align:right}.ai-conversation-log .from-player .chat-bubble{text-align:right}#ai-conversation-status{font-size:.8rem}

.migration-status{max-width:72rem;margin:0 auto;padding:.6rem 1rem;background:var(--soft);color:var(--muted);font:inherit}.migration-status button{margin-inline-start:.8rem;text-decoration:underline}
