:root{--ink:#17324d;--paper:#f7f1e5;--gold:#e66a3c;--blue:#145da0;--success:#4f8a5b;--muted:#576778;--line:#e6ddd0;color-scheme:light}
body{background:radial-gradient(ellipse at 10% 0,#fffaf1 0,transparent 65%),var(--paper);color:var(--ink);font-family:'Trebuchet MS',-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif}
header{max-width:1140px;border-bottom:0;padding-block:18px;gap:16px}header>a{display:flex;align-items:center;font-size:23px}header select{border:1px solid #17324d25;background:#ffffff90;font-weight:700;max-width:165px}
.brand-lockup{display:flex;align-items:center;gap:10px;line-height:1}.brand-lockup>img{width:36px;height:36px}.brand-word{font-family:'Arial Black','Segoe UI',sans-serif;font-weight:950;text-transform:uppercase;letter-spacing:-.065em;font-size:27px;white-space:nowrap}.brand-word b{color:var(--gold);font-weight:950}.brand-large{flex-direction:column;gap:12px;text-align:center}.brand-large>img{width:96px;height:96px}.brand-large .brand-word{font-size:clamp(42px,7vw,72px)}.brand-tagline{font-size:12px;letter-spacing:.24em;text-transform:uppercase;font-weight:800;line-height:1.6}
main{padding-top:20px}#app:has(.home-hero){max-width:1140px}.home-hero{position:relative;isolation:isolate;overflow:hidden;display:flex;flex-direction:column;align-items:center;justify-content:space-between;min-height:650px;padding:40px 22px 22px;border-radius:32px;background:#bdd8e7 url('assets/home-hero.png') center/cover;box-shadow:0 12px 35px #17324d12}.home-hero:before{content:'';position:absolute;z-index:-1;inset:0;background:linear-gradient(#faf7ef70,transparent 45%,#f7f1e545)}.home-intro{width:100%;max-width:440px;padding:24px;border:1px solid #ffffffb0;border-radius:28px;background:#fffaf1ef;box-shadow:0 8px 26px #17324d12;backdrop-filter:blur(8px);text-align:center}.home-intro h1{font-size:clamp(25px,5.5vw,34px);line-height:1.14;margin:0 0 12px;font-weight:900;letter-spacing:-.04em}.home-intro p{line-height:1.6;margin:10px 0 20px}.hero-features{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));margin:22px 0;font-size:12px;line-height:1.35}.hero-features>span{display:flex;align-items:center;gap:8px;flex-direction:column;padding:0 6px}.hero-features>span+span{border-left:1px solid var(--line)}.hero-features .ui-icon{width:24px;height:24px}.ui-icon{width:22px;height:22px;flex:none;vertical-align:middle}
button,.button{border-radius:999px;background:linear-gradient(120deg,#14557e,#17324d);font-weight:800;display:inline-flex;align-items:center;justify-content:center;gap:10px;min-height:48px;line-height:1.35;box-shadow:none}button:hover,.button:hover{filter:brightness(.96)}.gold{background:linear-gradient(110deg,#ed703f,#da5827);color:#fff;font-size:20px;min-height:56px;box-shadow:0 5px 14px #e66a3c22;border:1px solid #ffb28b}.secondary{background:#fffaf3;color:var(--ink);border:1px solid #d8c6ad}.actions>.secondary{box-shadow:none}.card,.mission-editor{box-shadow:0 6px 20px #17324d05;border-color:var(--line);border-radius:24px}.notice{background:#fff0dc;border-left-color:var(--gold)}input:not([type=checkbox]):not([type=radio]):not([type=file]),textarea{border-color:#d9d6d0}input:not([type=checkbox]):not([type=radio]):not([type=file]):focus,textarea:focus{border-color:var(--blue);box-shadow:0 0 0 4px #145da015}input[type=checkbox],input[type=radio]{accent-color:var(--blue)}:focus-visible{outline:3px solid var(--blue);outline-offset:4px}
#home-nav{gap:8px}#home-nav button{font-size:13px;padding:9px 14px;background:transparent;border:1px solid #17324d25;color:var(--ink);border-radius:999px;min-height:40px}#home-nav #developer-game{background:var(--ink);border-color:var(--ink);color:#fff}
.catalog-section{padding-top:42px}.section-heading{display:flex;align-items:end;justify-content:space-between;gap:16px}.section-heading h2{margin:6px 0 0;font-size:32px}.section-heading .eyebrow{color:var(--blue);font-size:11px}.catalog-filters{display:grid;grid-template-columns:1.3fr 1fr 1fr;gap:16px;padding:22px}.filter-field{min-width:0}.filter-field label{margin:0 0 7px;font-size:13px}.filter-field select,.filter-field input{width:100%;border:1px solid #d9d6d0;border-radius:12px;min-height:48px;background:#fff;font-size:16px;padding:10px 12px}.catalog-filters>.portal-actions{grid-column:1/-1;display:flex;margin:0;gap:10px}.catalog-filters>.portal-actions button{min-height:44px;width:auto;padding:10px 18px;font-size:14px}.catalog-filters>[role=status]{grid-column:1/-1;margin:0;font-size:14px}.catalog-filters>[role=status]:empty{display:none}
#catalog,#game-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}#catalog .game-tile,#game-options .game-tile{position:relative;display:grid;grid-template-columns:100px minmax(0,1fr);column-gap:16px;row-gap:3px;align-items:center;padding:16px 32px 16px 16px;border-radius:22px;background:#fffdf9;border:1px solid var(--line);box-shadow:0 4px 12px #17324d04;color:var(--ink);font-weight:500}#catalog .game-tile:after,#game-options .game-tile:after{content:'›';font-size:30px;position:absolute;right:12px;top:50%;transform:translateY(-50%);color:var(--blue)}#catalog .game-tile img,#game-options .game-tile img{grid-column:1;grid-row:1/7;width:100px;height:112px;object-fit:cover;border-radius:14px;aspect-ratio:auto}#catalog .game-tile>span,#game-options .game-tile>span{grid-column:2;padding:0;font-size:19px;line-height:1.2;font-weight:800}#catalog .game-tile>small,#game-options .game-tile>small{grid-column:2;padding:0;font-size:12px;line-height:1.4}#catalog .game-tile>small:last-of-type{color:#785017}#catalog .game-tile:focus-visible,#game-options .game-tile:focus-visible{outline-offset:2px}
.meta{font-size:13px}.progress{height:5px;background:#dddcd8;margin-bottom:20px}.progress div{background:var(--blue)}.reference{background:#eee6d8;border-radius:26px}.task-heading{text-align:center}.task-heading h2{font-size:30px;margin:8px 0 10px}.task-heading .mission-name{font-size:14px;margin:8px 0 20px;color:var(--muted)}#app[data-view=task]>p:not(.error){text-align:center}#app[data-view=task]>.actions:first-of-type{margin-top:4px}#app[data-view=task] #camera{width:100%}#hint,#distance-hint{font-size:15px;min-height:46px}#coordinate-form{padding:20px}#coordinate-form .muted{font-size:13px;line-height:1.5}.progress-dots{display:flex;flex-wrap:wrap;justify-content:center;gap:7px;margin:26px 0}.progress-dot{width:10px;height:10px;flex:none;background:#d8d6ce;border:1px solid #d1cfc7;border-radius:50%}.progress-dot.is-done{background:var(--success);border-color:#3f784d}.progress-dot.is-active{background:var(--blue);border-color:#0a4a84}
.success{display:flex;align-items:center;justify-content:center;width:76px;height:76px;margin:26px auto 18px;background:var(--success);color:#fff;border-radius:50%;box-shadow:0 6px 20px #4f8a5b22}.success .ui-icon{width:42px;height:42px;stroke-width:3}.success+h1,.success+h2{text-align:center;color:#397d49;font-size:clamp(30px,7vw,44px)}#app[data-view=success]>p{text-align:center}.compare{margin:24px 0;gap:16px}.compare img{height:320px;background:#eee6d8;border-radius:22px;object-fit:contain}.compare figcaption{text-align:center;color:var(--ink);font-weight:700;font-size:14px}.stats{background:#fffaf5}.stats strong{color:var(--blue)}.rating-stars button{box-shadow:none;background:transparent;border-radius:10px;color:#b2aaa0}.rating-stars button.selected{color:#c88118}.rating-stars button:focus-visible{outline-color:var(--blue)}.game-story h2{color:var(--blue)}.hero:after{background:linear-gradient(transparent,#17324d60)}dialog{background:#fffaf4;color:var(--ink);border:1px solid #e4d7c6;border-radius:26px;box-shadow:0 18px 90px #17324d33}dialog::backdrop{background:#17324d88;backdrop-filter:blur(3px)}.mission-tile.done{border-color:var(--success)}.mission-tile.done small{color:#397d49}footer{color:#566779}#admin .company-tabs button[aria-selected=true]{background:var(--blue);color:#fff}#admin .admin-status{background:#fffaf4}#admin .empty-cover{background:#eee6d8;color:var(--muted)}
@media(min-width:760px){.home-hero{min-height:510px;flex-direction:row;justify-content:space-between;padding:46px;background-position:center 45%}.home-hero .brand-large{align-self:start;max-width:50%;padding-top:24px}.home-intro{max-width:380px;align-self:end}.home-intro h1{font-size:32px}.home-hero:before{background:linear-gradient(90deg,#fff8ec8a,transparent 65%)}}
@media(max-width:700px){header{padding:14px 18px;gap:12px}.brand-word{font-size:22px}.brand-lockup>img{width:31px;height:31px}header select{max-width:125px;font-size:14px;padding:8px 10px}#home-nav{flex-basis:100%;justify-content:flex-start;overflow:visible;gap:6px}#home-nav button{font-size:11px;padding:8px 10px;min-height:38px}#home-nav #developer-game{flex:1}main{padding:12px 16px 30px}h1{font-size:36px}h2{font-size:26px}.home-hero{min-height:640px;padding:28px 16px 16px;border-radius:26px;background-position:42% center}.home-hero .brand-large>img{width:72px;height:72px}.brand-large .brand-word{font-size:43px}.brand-tagline{font-size:10px;letter-spacing:.18em}.home-intro{padding:20px 18px}.home-intro h1{font-size:27px}.home-intro p{font-size:14px}.hero-features{font-size:10px}.home-intro button{font-size:17px}.home-intro .gold{font-size:20px}.catalog-section{padding-top:30px}.section-heading h2{font-size:28px}.catalog-filters{grid-template-columns:1fr 1fr;gap:12px;padding:16px;border-radius:20px}.catalog-filters>.filter-field:first-child{grid-column:1/-1}.catalog-filters>.portal-actions button{padding:8px 14px}#catalog,#game-options{grid-template-columns:1fr;gap:12px}#catalog .game-tile,#game-options .game-tile{grid-template-columns:84px minmax(0,1fr);padding:13px 30px 13px 13px;column-gap:12px;border-radius:20px}#catalog .game-tile img,#game-options .game-tile img{width:84px;height:108px}#catalog .game-tile>span,#game-options .game-tile>span{font-size:17px}#catalog .game-tile>small,#game-options .game-tile>small{font-size:11px}.task-heading h2{font-size:28px}.compare{gap:10px}.compare img{height:220px;border-radius:18px}.compare figcaption{font-size:12px}.meta{flex-wrap:wrap;gap:2px 10px}.actions{gap:8px}.actions>*{min-width:0}.progress-dots{gap:6px}.card{padding:20px}.success{width:66px;height:66px}.success .ui-icon{width:36px;height:36px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}.home-intro{backdrop-filter:none}dialog::backdrop{backdrop-filter:none}}

.brand-tagline:after{content:"";display:block;width:76px;height:4px;border-radius:50%;background:var(--gold);margin:10px auto 0;transform:rotate(-3deg)}#home-nav button{min-height:44px}

#admin button.game-tile{border-radius:20px;padding:0;text-align:left;overflow:hidden;background:#fff;border:1px solid var(--line)}
#admin .game-tile img{border-radius:0;width:100%;height:145px;object-fit:cover}


.users-table-wrap{overflow-x:auto}.users-table-wrap td{overflow-wrap:anywhere}.users-table-wrap table{width:100%}

/* Full reference photos remain visible, including text at the edges. */
#app .mission-tile:not(.game-tile){border-radius:6px}
#app .mission-tile:not(.game-tile) img{object-fit:contain;background:var(--paper);border-radius:4px}
#app .reference,#app .compare img{border-radius:4px;object-fit:contain}
#app .mission-tile.done{background:#e6f2e8;border:3px solid var(--success)}
#app .mission-tile.done small,.readiness-success{color:#245d31;font-weight:800}

.ranking-scroll{max-height:31rem;overflow:auto;overscroll-behavior:contain;border:1px solid var(--line);border-radius:8px}.ranking-scroll table{width:100%;table-layout:fixed}.ranking-scroll th,.ranking-scroll td{height:2.8rem;overflow-wrap:anywhere;padding:.6rem}.ranking-scroll th{position:sticky;top:0;background:var(--paper);z-index:1}.ranking-scroll th:first-child{width:24%}.ranking-scroll th:last-child{width:27%}.ranking-scroll td:last-child{text-align:right;font-variant-numeric:tabular-nums}.ranking-scroll:focus-visible{outline:3px solid var(--blue);outline-offset:3px}

/* Keep total-score heading intact on narrow phones without truncating player names. */
.ranking-scroll th:first-child{width:20%}.ranking-scroll th:last-child{width:35%;font-size:.75rem;white-space:nowrap}.ranking-scroll th,.ranking-scroll td{padding:.45rem}

.ranking-scroll th{font-size:12px;white-space:nowrap}.ranking-scroll th:first-child{width:22%}

/* Player flow: reserve image geometry before Safari image decode; never crop text. */
#app .mission-tile:not(.game-tile){display:flex;flex-direction:column;align-items:stretch;overflow:visible;border-radius:5px;text-align:left;min-width:0;white-space:normal}
#app .mission-tile .mission-photo{position:relative;display:block;width:100%;aspect-ratio:1;padding:0;overflow:visible;flex:none}
#app .mission-tile .mission-photo img{width:100%;height:100%;object-fit:contain;display:block;aspect-ratio:1}
#app .mission-tile .found-overlay{position:absolute;right:7px;top:7px;display:grid;place-items:center;width:48px;height:48px;padding:0;border-radius:50%;background:#187335;color:white;border:3px solid white;box-shadow:0 2px 9px #17324d44;font-size:34px;font-weight:900}
#app .mission-tile .mission-caption,#app .mission-tile .mission-result{display:block;flex:none;white-space:normal;overflow:visible;overflow-wrap:anywhere;line-height:1.45;padding:10px 10px 4px;min-width:0}
#app .mission-tile .mission-result{padding-bottom:12px;font-size:14px}
.start-place{margin:12px 0;padding:16px;background:#fff0dc}.start-place h2{margin:0 0 8px;font-size:18px}.start-place p{margin:0;line-height:1.55}.choose-any{font-weight:700}.game-more{margin-top:26px}
#app[data-view=task]>.reference{aspect-ratio:4/3;max-height:calc(100svh - 220px);min-height:170px;width:100%;object-fit:contain;border-radius:4px}
#app .hint-control{min-height:56px;min-width:0;border-radius:14px;justify-content:flex-start;text-align:left;padding:12px;background:#f5f9fe;border:1px solid #145da0;color:#17324d}
.hint-control span{min-width:0;overflow-wrap:anywhere}.hint-control small{display:block;font-size:12px;font-weight:600;margin-top:4px}.hint-cost{font-size:12px;color:var(--muted)}
.success-panel{text-align:center}.success-points{font-size:28px;font-weight:900}.continue-area{min-height:140px;border-radius:20px;font-size:22px}.test-card #upload-photo{width:100%}.test-card #status,#recovery{white-space:normal}#device-settings{padding:16px;border:1px solid var(--line);border-radius:8px}#device-settings[hidden]{display:none}#app[data-view=final]>details{border:1px solid var(--line);padding:0 12px;border-radius:8px}#result-sync:not(:empty){padding:12px;background:#fff0dc}.final-navigation{margin-top:36px}

/* Non-interactive view headings receive focus for announcement, not a button outline. */
#app h1[tabindex="-1"]:focus,#app h2[tabindex="-1"]:focus{outline:none}

/* Entry facts stay compact; the starting place belongs after the device tests. */
.launch-bonus-details{margin:10px 0 18px;border:0;background:none;padding:0}.launch-bonus-details summary{display:flex;align-items:center;gap:7px;list-style:none;width:fit-content;max-width:100%;padding:9px 11px;border:1px solid #f6d1aa;border-radius:12px;background:#fff0dd;color:#833a17;font-size:12px;font-weight:700;cursor:pointer}.launch-bonus-details summary::-webkit-details-marker{display:none}.launch-bonus-details summary svg{width:16px;height:16px;flex-shrink:0}.launch-bonus-details summary:focus-visible{outline:3px solid #145da0;outline-offset:3px}.launch-bonus-details>p{font-size:13px;line-height:1.6;margin:9px 4px 0;color:var(--muted)}.completion-panel{max-width:620px;margin:24px auto}.completion-panel h1{font-size:clamp(27px,5vw,36px)}.completion-stats{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:24px 0 10px}.completion-stats>div{display:flex;flex-direction:column;gap:8px;padding:18px 10px;border:1px solid var(--line);background:#fffdf9;border-radius:18px}.completion-stats span{font-size:13px;color:var(--muted)}.completion-stats strong{font-size:26px}.completion-panel #next{display:flex;justify-content:center;gap:12px;margin-top:22px}.completion-panel #completion-sync,.completion-panel #completion-provisional{font-size:14px;line-height:1.6}.completion-panel #completion-bonus{font-weight:700;color:#8b3e1c}
.launch-hero{position:relative;isolation:isolate;min-height:220px;display:flex;align-items:flex-end;overflow:hidden;border-radius:24px;background:#17324d;margin:4px 0 16px}.launch-hero>img{position:absolute;z-index:-2;inset:0;width:100%;height:100%;object-fit:cover;object-position:50% 68%}.launch-hero:after{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(180deg,#102c4022,#102c40e8)}.launch-hero-copy{padding:26px;color:#fff;min-width:0}.launch-eyebrow{font-size:11px;font-weight:800;letter-spacing:.14em;text-transform:uppercase;margin:0 0 10px;color:#ffe3cb}.launch-hero h1{font-size:clamp(30px,5vw,44px);color:#fff;margin:0 0 9px;overflow-wrap:anywhere}.launch-tagline{margin:0;font-size:15px;color:#fff4e6}.launch-facts{display:flex;flex-wrap:wrap;gap:8px}.launch-facts>span{display:inline-flex;align-items:center;gap:6px;padding:8px 11px;border:1px solid #dce4e5;border-radius:999px;background:#fffdf9;font-size:12px;font-weight:700;line-height:1.35}.launch-facts svg,.launch-action p svg{width:16px;height:16px;flex-shrink:0}.launch-facts>.launch-bonus{background:#fff0dd;border-color:#f6d1aa;color:#833a17}.launch-bonus-note{font-size:12px;line-height:1.5;margin:9px 2px 20px;color:var(--muted)}.launch-route{margin:20px 0 24px}.launch-route>h2{font-size:19px;letter-spacing:-.02em;margin:0 0 7px}.launch-route>p{font-size:15px;line-height:1.6;margin:0 0 17px}.launch-place{display:flex;gap:12px;padding:18px;background:#fffdf9;border:1px solid var(--line);border-radius:18px}.launch-pin{width:34px;height:34px;flex-shrink:0;display:grid;place-items:center;background:#fff0dd;border-radius:11px;color:#c24e20}.launch-pin svg{width:21px;height:21px}.launch-place h3{font-size:13px;color:#8b3e1c;margin:0 0 7px}.launch-place p{font-size:15px;line-height:1.6;margin:0}.launch-action .gold{display:flex;justify-content:center;gap:12px;width:100%;min-height:58px}.launch-action>p{display:flex;align-items:center;justify-content:center;gap:7px;font-size:12px;color:var(--muted);margin:11px 0 0}#app[data-view=ready]{max-width:760px;margin-inline:auto}.launch-action{margin-bottom:24px}@media(max-width:480px){.launch-hero{min-height:195px;border-radius:20px}.launch-hero-copy{padding:22px 20px}.launch-place{padding:15px;gap:10px}.launch-route{margin-top:18px}}
.entry-details{margin:14px 0 24px}.entry-details h2{font-size:16px;letter-spacing:0;margin:14px 0 4px}.entry-details p{font-size:15px;line-height:1.5;margin:4px 0}.entry-details .game-details-summary{font-size:15px}.start-instructions p{line-height:1.6}.start-instructions .muted{font-size:14px}#app[data-view=ready]>p{font-size:15px}
