:root{color-scheme:dark;--bg:#102628;--ink:#f7f4e8;--gold:#edc48c;--faint:#a8b9b5;--pad:clamp(22px,5.3vw,108px);font:16px/1.45 "Segoe UI",Arial,sans-serif}
*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink)}button{color:inherit;font:inherit;border:0;cursor:pointer;background:transparent;-webkit-tap-highlight-color:transparent}button:disabled{opacity:.34;cursor:default}button:focus-visible{outline:3px solid #ffdca6;outline-offset:4px}svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round;display:block}.symbols{position:absolute;width:0;height:0;visibility:hidden;overflow:hidden}[hidden]{display:none!important}h1,h2,h3,p{margin:0}h1,h2,h3,.brand{font-family:Georgia,"Times New Roman",serif;font-weight:400}
#album{max-width:2400px;min-height:100svh;margin:auto;position:relative;background:#102628}.mast,.game-head,.tools{display:flex;align-items:center;justify-content:space-between}.mast{position:absolute;top:0;width:100%;z-index:2;padding:22px var(--pad);background:linear-gradient(180deg,#08191fb0,transparent)}.brand{display:flex;align-items:center;gap:.6rem;font-size:clamp(23px,2.2vw,35px);letter-spacing:-.055em;text-shadow:0 2px 15px #0019}.emblem{color:var(--gold)}.emblem svg{width:37px;height:37px}.utility,.toolgroup,.pages{display:flex;align-items:center;gap:8px}.ico,.hero-preview{display:grid;place-items:center;width:42px;height:42px;border-radius:50%;transition:background .18s,transform .18s}.mast .ico,.hero-preview{border:1px solid #eceddd4a;background:#132a2e95;backdrop-filter:blur(9px)}.ico:hover:enabled,.tool:hover,.hero-preview:hover{background:#66838348}.ico:active:enabled,.primary:active{transform:scale(.96)}
.hero{position:relative;isolation:isolate;overflow:hidden;display:flex;align-items:center;min-height:480px;height:clamp(490px,64svh,810px);background:#18383b}.hero-image,.veil{position:absolute;inset:0;z-index:-1}.hero-image{background-size:cover;background-position:50% 52%}.hero-image.reveal{animation:appear .45s ease-out}@keyframes appear{from{opacity:.65}to{opacity:1}}.veil{background:linear-gradient(90deg,rgba(8,27,31,.97) 0%,rgba(9,28,32,.91) 13%,rgba(9,28,32,.68) 31%,rgba(9,28,32,.18) 57%,transparent 76%),linear-gradient(0deg,#102628 0%,rgba(16,38,40,.6) 5%,transparent 27%)}.hero-inner{width:100%;padding:80px var(--pad) 15px}.kicker,.card-meta,.smalltype{font-size:12px;font-weight:650;letter-spacing:.17em;text-transform:uppercase;color:var(--gold)}.kicker{display:flex;align-items:center;gap:12px}.line{width:38px;height:1px;background:var(--gold)}h1{font-size:clamp(64px,7.2vw,122px);line-height:.97;letter-spacing:-.065em;margin:22px 0 21px;max-width:11ch;text-wrap:balance;text-shadow:0 3px 30px #0713162b}#description{font-size:clamp(15px,1.3vw,20px);color:#e0e7df;max-width:34ch;line-height:1.6;text-wrap:pretty}.primary,.secondary{font-weight:650;font-size:15px;border-radius:8px;padding:13px 23px;display:inline-flex;align-items:center;justify-content:center;gap:10px;transition:transform .16s,background .16s}.primary{background:#f1c890;color:#182b2a;box-shadow:0 4px 22px #06101030}.primary:hover{background:#ffddaa;transform:translateY(-1px)}.primary svg{width:17px;height:17px}.hero .primary{margin-top:25px}.hero-preview{position:absolute;right:var(--pad);bottom:38px}
.gallery{padding:13px var(--pad) clamp(32px,5vh,70px);background:radial-gradient(ellipse at 45% 130%,#1a3537,transparent 73%)}.section-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:18px}.section-heading h2{font-size:clamp(25px,2.15vw,36px);letter-spacing:-.042em}.section-heading>span{font-size:13px;color:var(--faint)}#cards{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}.card{position:relative;isolation:isolate;min-width:0;text-align:left;height:clamp(112px,16vh,195px);border-radius:9px;overflow:hidden;border:1px solid #dee8de39;box-shadow:0 6px 20px #08151635;padding:17px 20px;display:flex;flex-direction:column;justify-content:flex-end;background:#183134;transition:border-color .2s,transform .2s}.card::before,.card::after{content:"";position:absolute;inset:0;z-index:-1}.card::before{background-image:var(--thumb);background-size:cover;background-position:center 55%;transition:transform .3s}.card::after{background:linear-gradient(0deg,#071b20ee,rgba(12,30,32,.45) 59%,rgba(12,30,32,.08))}.card:hover::before{transform:scale(1.045)}.card.selected{border:2px solid var(--gold);padding:16px 19px}.card.selected::after{background:linear-gradient(0deg,#112527f5,#1628295c 70%,transparent)}.card-meta{font-size:11px;letter-spacing:.13em;color:#f2d8ae}.card h3{font-size:clamp(20px,2vw,32px);letter-spacing:-.04em;line-height:1.14;margin-top:4px}.card-mark{position:absolute;top:10px;right:11px;border:1px solid #e5ece04d;background:#0e2528c7;color:#fff2db;border-radius:22px;font-size:12px;line-height:1;padding:5px 8px}.card-mark:empty{display:none}
#table{height:100vh;height:100dvh;display:flex;flex-direction:column;background:#102628}.game-head,.tools{flex:0 0 auto;padding:9px clamp(12px,3vw,52px);gap:15px}.game-head{border-bottom:1px solid #d2e5d721;background:#102629}.game-title{display:flex;align-items:center;gap:12px}.game-title h2{font-size:clamp(19px,2vw,29px);letter-spacing:-.035em}.game-progress{margin:auto;min-width:86px;text-align:center;font-size:14px;color:#f5d7aa;font-variant-numeric:tabular-nums}.track{margin-top:4px;height:3px;background:#b0c4bb25;border-radius:2px;overflow:hidden}.track b{height:100%;display:block;width:0;background:var(--gold);transition:width .23s}.stage{min-height:0;flex:1;position:relative}canvas{position:absolute;width:100%;height:100%;touch-action:none;display:block}#hint{position:absolute;left:50%;top:10px;transform:translateX(-50%);background:#0e2528ed;color:#f7ead7;border:1px solid #daba8247;border-radius:20px;padding:6px 15px;font-size:13px;text-align:center;white-space:nowrap;pointer-events:none;transition:opacity .25s}#hint.gone{opacity:0}.tools{border-top:1px solid #fff2;background:#122d30;min-height:58px;display:grid;grid-template-columns:1fr auto 1fr}.tool{border:1px solid #c5d3c52a;border-radius:7px;display:flex;align-items:center;gap:8px;padding:8px 10px;font-size:14px;color:#e2e8dc}.tool[aria-pressed=true]{color:var(--gold);border-color:#efc68e60}.tool svg{width:17px;height:17px}.zoom{justify-content:flex-end}.pages{font-size:14px;color:#dce5d9;font-variant-numeric:tabular-nums}.tools .ico{width:36px;height:36px}.game-head .ico{background:#ffffff08}.pages .ico{border:1px solid #ccd9cc22}
dialog{max-width:min(94vw,1000px);max-height:94dvh;background:#132b2e;color:var(--ink);border:1px solid #cbb58d75;border-radius:14px;padding:clamp(16px,2vw,28px);box-shadow:0 25px 90px #0008}dialog::backdrop{background:#061416cc;backdrop-filter:blur(8px)}.viewer-head{display:flex;align-items:center;justify-content:space-between;gap:28px;margin-bottom:14px}.viewer-head h2{font-size:clamp(24px,3vw,42px);letter-spacing:-.04em}.viewer-head .kicker{font-size:10px}.viewer-head .ico{border:1px solid #fff3}#viewImage{display:block;max-width:100%;max-height:64dvh;object-fit:contain;margin:auto;border-radius:5px}#finishActions{display:flex;justify-content:flex-end;gap:12px;margin-top:16px}.secondary{border:1px solid #e3dace50}
@media(max-width:700px){.mast{padding-top:14px}.hero{height:58svh;min-height:400px}.hero-image{background-position:60% 50%}.veil{background:linear-gradient(90deg,#0c2028af,transparent 90%),linear-gradient(0deg,#102628 0%,#0b2024ae 26%,transparent 80%)}.hero-inner{align-self:end;padding:80px var(--pad) 29px}.kicker{font-size:10px}h1{font-size:58px;margin:13px 0 9px}.hero .primary{margin-top:16px}.hero-preview{bottom:29px}.gallery{padding-top:10px}.section-heading{margin-bottom:12px}#cards{gap:9px}.card,.card.selected{padding:9px 8px;min-height:110px}.card.selected{padding:8px 7px}.card-meta{font-size:9px;letter-spacing:.045em}.card h3{font-size:19px}.card-mark{font-size:10px}.tools{gap:4px;padding:6px}.tools .tool span{display:none}.toolgroup,.pages{gap:3px}.game-head{padding:6px 8px;gap:6px}.game-title{gap:5px}.game-head .ico{width:34px;height:34px}.game-head .full{display:none}.game-progress{min-width:60px}.section-heading>span{font-size:11px}.utility{gap:5px}}
@media(max-height:550px) and (orientation:landscape){.hero{min-height:400px}.game-head,.tools{padding-block:2px;min-height:36px}.game-head .ico,.tools .ico{height:30px}.tool{padding-block:3px}#hint{top:3px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important}}
@media(pointer:coarse){
  .tools .ico,.game-head .ico{min-height:42px;min-width:42px}
  .tools .tool{min-height:42px;min-width:42px;justify-content:center}
}
@media(pointer:coarse) and (max-width:370px){
  .tools{gap:2px}.tools .ico,.tools .tool{min-width:36px}
}
button{touch-action:manipulation}button svg,button svg *{pointer-events:none}
