:root{color-scheme:light;font-family:"Aptos","Segoe UI",system-ui,sans-serif;color:#182c25;background:#eef2e9;--ink:#182c25;--muted:#58685e;--strong:#173c30;--paper:#fffef9;--line:#d6dfd2;--green:#245b47;--leaf:#dfeadb;--orange:#f7dac6}
*{box-sizing:border-box}
body{margin:0}
button,input,select{font:inherit}
button{cursor:pointer}
button:disabled{cursor:default;opacity:.56}
button:focus-visible,input:focus-visible,select:focus-visible,a:focus-visible{outline:3px solid #84703b;outline-offset:3px}
[hidden]{display:none!important}
.shell{max-width:1132px;margin:auto;padding:14px clamp(10px,2vw,24px) 16px}
.toolbar{display:flex;justify-content:space-between;align-items:center;gap:10px;margin:0 0 14px}
.modes,.utility{display:flex;gap:5px;align-items:center}
.modes{border:1px solid var(--line);border-radius:15px;background:#e2eadf;padding:4px}
.modes button,.utility button{min-height:40px;border:0;border-radius:10px;padding:7px 14px;font-size:.94rem;font-weight:700;white-space:nowrap;color:var(--strong);background:transparent}
.modes button[aria-pressed=true]{color:#f9fff5;background:var(--strong);box-shadow:0 2px 5px #122e232b}
.modes button:not([aria-pressed=true]):hover,.utility button:hover,.text-button:hover{background:#d7e5d6}
.utility button{background:var(--paper);border:1px solid var(--line)}
.utility button:last-child{min-width:42px;padding-inline:8px}
.utility button span:first-child{font-size:1.1rem;margin-right:5px}
.utility button:last-child span{margin-right:0}
.game-grid{display:grid;grid-template-columns:minmax(0,1.46fr) minmax(300px,1fr);gap:14px;align-items:start}
.photo-card,.play-card{min-width:0;background:var(--paper);border:1px solid var(--line);border-radius:20px;box-shadow:0 5px 16px #23372c0a}
.photo-card{overflow:hidden}
.photo-top,.photo-bottom{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:13px 15px}
.photo-top>div{display:flex;align-items:center;flex-wrap:wrap;gap:6px 12px}
.kicker{font-weight:800;font-size:.76rem;letter-spacing:.09em;text-transform:uppercase;color:#265742;line-height:1.3;margin:0}
.round-meta,.photo-bottom span{color:var(--muted);font-size:.83rem;font-weight:600}
.viewfinder{height:clamp(310px,40vw,455px);background:#14251e;position:relative;container-type:size;display:grid;place-items:center;overflow:hidden}
.viewfinder::before{content:"";position:absolute;inset:0;pointer-events:none;background:radial-gradient(ellipse at center,#263c31,transparent 75%),repeating-linear-gradient(0deg,transparent 0 27px,#b1c6ac14 28px),repeating-linear-gradient(90deg,transparent 0 27px,#b1c6ac14 28px)}
.photo-paper{--ratio:1.5;position:relative;width:min(100cqw,calc(100cqh * var(--ratio)));height:min(100cqh,calc(100cqw / var(--ratio)));isolation:isolate;background:#273c31;overflow:hidden}
.photo-paper img,.tiles{width:100%;height:100%;position:absolute;inset:0;display:block}
.photo-paper img{object-fit:contain;user-select:none}
.tiles{display:grid;grid-template-columns:repeat(6,1fr);grid-template-rows:repeat(5,1fr)}
.tile{background-color:#233b31;background-image:linear-gradient(135deg,#ffffff05,#00000009);border:1px solid #a8c5af1e;opacity:1;transition:opacity .32s ease}
.tile:nth-child(3n){background-color:#284137}.tile:nth-child(2n){background-color:#20382e}
.tile.open{opacity:0}
.photo-message{position:absolute;inset:auto 10% 10%;text-align:center;padding:11px;background:#11251eea;color:#fff;border-radius:10px;font-weight:650}
.photo-bottom{justify-content:flex-start}
.photo-bottom .photo-credit{margin-left:auto;min-height:32px;padding:4px 6px;white-space:nowrap;font-size:.79rem}
.exposure-track{display:flex;gap:5px;flex:1;max-width:245px}
.exposure-track span{height:6px;flex:1;background:#dee7dc;border-radius:100px}.exposure-track .on{background:#398165}
.play-card{padding:clamp(14px,2vw,22px)}
.panel-top{display:flex;justify-content:space-between;align-items:flex-start;gap:7px}
h1{font-family:Georgia,"Times New Roman",serif;font-size:clamp(1.75rem,3vw,2.55rem);line-height:1.04;font-weight:650;margin:0;letter-spacing:-.035em}
.attempt-pill{background:#e3eee0;color:#234c3a;border:1px solid #d1e3d2;white-space:nowrap;border-radius:9px;padding:5px 8px;font-weight:750;font-size:.81rem;margin-top:2px}
.intro{color:var(--muted);margin:10px 0 15px;font-size:.95rem;line-height:1.42}
.guess-form{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:7px}
.search-wrap{position:relative;min-width:0}
input{display:block;width:100%;height:48px;border:1px solid #bbcaba;border-radius:10px;background:#fbfdf8;color:var(--ink);padding:8px 11px;font-size:1rem}
.primary,.secondary,.text-button{min-height:38px;border-radius:9px;padding:7px 11px;font-size:.9rem;font-weight:750}
.primary{border:1px solid #194a38;background:#235842;color:#fff}
.primary:hover:not(:disabled){background:#184330}
.guess-form .primary{padding-inline:15px}
.secondary{border:1px solid #cadacd;background:#ebf2e8;color:#244934}
.secondary:hover:not(:disabled){background:#dfecdc}
.text-button{border:0;background:transparent;color:#295842}
#suggestions{z-index:5;position:absolute;top:100%;left:0;right:0;margin:5px 0 0;padding:4px;list-style:none;background:#fffef9;border:1px solid #c2d5c5;border-radius:10px;box-shadow:0 8px 22px #1a3a2b39;max-height:245px;overflow:auto}
#suggestions li{display:flex;align-items:center;min-height:40px;border-radius:6px;padding:6px 8px;cursor:pointer;font-size:.92rem;font-weight:650}
#suggestions li[aria-selected=true],#suggestions li:hover{background:var(--leaf)}
.actions{display:flex;justify-content:space-between;align-items:center;gap:6px;margin-top:9px}
.clues{margin-top:10px;background:#fcf3db;border:1px solid #f0deab;border-radius:8px;padding:8px 10px;font-size:.88rem;line-height:1.4}
.clues p{margin:2px 0}
.feedback{color:#3d594a;font-size:.87rem;line-height:1.35;margin:7px 0 0}.feedback:empty{display:none}
.history{margin-top:16px}
.history h2{font-size:.95rem;margin:0 0 7px}
.history ol{padding:0;margin:0;list-style:none;display:grid;gap:4px}
.history li{display:grid;grid-template-columns:1.5rem minmax(0,1fr) auto;gap:5px;align-items:center;border-radius:8px;background:#f0f4eb;min-height:31px;padding:4px 8px;font-size:.83rem}
.history .empty{color:#5a6a62;background:transparent;border:1px dashed #dce4d9}
.history .won{background:#dbeedd;color:#214b37}
.turn-number{font-variant-numeric:tabular-nums;color:#547361}
.guess-name{overflow-wrap:anywhere;font-weight:650}
.geo{font-variant-numeric:tabular-nums;color:#345745;font-weight:700;white-space:nowrap}
.route-menu{margin:-4px 0 10px;display:flex;gap:9px;align-items:center;flex-wrap:wrap;color:var(--strong);font-size:.92rem}
select{border:1px solid var(--line);color:var(--ink);background:var(--paper);border-radius:8px;min-height:38px;padding:5px 10px}
.result{border-top:1px solid var(--line);padding-top:12px}
.result h2{font-family:Georgia,serif;font-size:1.55rem;line-height:1.15;margin:0 0 5px}
.result p{font-size:.92rem;line-height:1.45;margin:6px 0}
.result .place{font-weight:750;color:#295e44}
.result a,.dialog-body a{color:#245b47}
.result .credit{font-size:.78rem;color:#55645a;margin-top:8px}
.result .buttons{display:flex;flex-wrap:wrap;gap:7px;margin:11px 0 4px}
.bonus{padding:9px;margin-top:11px;background:#eff3e9;border:1px solid var(--line);border-radius:10px}
.bonus p:first-child{margin-top:0;font-weight:700}
.bonus div{display:flex;gap:5px;flex-wrap:wrap}
.bonus button{min-height:36px}
.bonus [data-answer=correct]{background:#cde6d1;color:#173e2d;opacity:1}
.bonus [data-answer=wrong]{background:var(--orange);color:#6e331e;opacity:1}
dialog{width:min(560px,calc(100% - 24px));max-height:84vh;max-height:84dvh;inset:12px 0 auto;margin:0 auto;overflow:auto;border:1px solid var(--line);border-radius:16px;background:var(--paper);color:var(--ink);padding:16px;box-shadow:0 14px 60px #172c2580}
dialog::backdrop{background:#0c251da8}
.dialog-top{display:flex;align-items:center;justify-content:space-between;gap:10px}
.dialog-top h2{font-family:Georgia,serif;font-size:1.6rem;margin:0}
#dialog-body{padding-top:10px}
.rules{line-height:1.5;padding-left:22px}
.rules li{margin:5px 0}
.mode-guide dt{font-weight:750;margin-top:8px}
.mode-guide dd{margin:3px 0 0;color:var(--muted);line-height:1.42}
.help-site{margin:14px 0 0;padding-top:12px;border-top:1px solid var(--line);line-height:1.45}
.help-site a{font-weight:750}
.stat-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:7px}
.stat-grid div{padding:7px;text-align:center;border-radius:8px;background:#e9f1e7;font-size:.83rem;color:var(--muted)}
.stat-grid strong{display:block;font-size:1.3rem;color:var(--ink)}
.region-row,.archive-row{display:flex;justify-content:space-between;align-items:center;gap:5px;margin:5px 0;min-height:39px;padding:5px 8px;background:#eff4ec;border-radius:8px}
.archive-row{width:100%;border:1px solid var(--line);text-align:left;color:var(--ink)}
.archive-row:hover{background:#dfeadb}
.region-row small,.archive-row small{font-weight:700;color:var(--muted)}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media(max-width:760px){
  .game-grid{grid-template-columns:1fr;gap:10px}
  .viewfinder{height:clamp(215px,64vw,370px)}
  .play-card{padding:13px}
  .photo-top,.photo-bottom{padding:7px 10px}
  .photo-top .text-button{min-height:35px}
  .toolbar{margin-bottom:8px}
}
@media(max-width:420px){
  .shell{padding:8px 8px 12px}
  .toolbar,.utility{gap:4px}
  .modes{gap:2px}
  .modes button,.utility button{font-size:.83rem;padding-inline:8px}
  .utility button:last-child{min-width:34px}
  .utility button span:first-child{margin:0}
  .utility-word{display:none}
  .photo-card,.play-card{border-radius:14px}
  .intro{margin:7px 0 10px}
  .kicker{font-size:.7rem}
}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{transition:none!important;animation:none!important}}
