@font-face{font-family:Bricolage;src:url(assets/fonts/bricolage-display.woff2);font-weight:800;font-display:swap}
@font-face{font-family:DM;src:url(assets/fonts/dm-sans.woff2);font-weight:100 1000;font-display:swap}
:root{--ink:#37291f;--paper:#fff6df;--gold:#ffc44f;--green:#2f6957;--line:2.5px solid var(--ink);--shadow:3px 4px 0 var(--ink);font-family:DM,system-ui,sans-serif;color:var(--ink);font-weight:600}
*{box-sizing:border-box}body{margin:0;min-height:100svh;display:flex;flex-direction:column;isolation:isolate;background:#9bd7ce}
#backdrop{position:fixed;inset:0;z-index:-2;background:#9bd7ce url(assets/landscape.svg) center bottom/cover no-repeat;pointer-events:none}
body[data-page="game"] #backdrop:after{content:"";position:absolute;inset:0;background:#dce5bc60}
h1,h2,h3,p,figure{margin:0}h1,h2,h3,button,.brand,.chip,.action,.album-name{font-family:Bricolage,system-ui,sans-serif;font-weight:800}
svg.icon{width:1.22em;height:1.22em;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round;vertical-align:middle;flex:none}
button,a{color:inherit;-webkit-tap-highlight-color:transparent;touch-action:manipulation}
button{cursor:pointer;font-size:inherit}a{text-decoration:none}button:focus-visible,a:focus-visible{outline:3px solid #095d90;outline-offset:4px}button:disabled{cursor:default}
header{z-index:1;width:min(100%,1600px);margin:0 auto;min-height:82px;display:flex;align-items:center;justify-content:space-between;padding:18px clamp(18px,4.5vw,80px);gap:8px}
.brand,.chip,.action,.icon-button{display:inline-flex;align-items:center;justify-content:center;gap:9px;background:var(--paper);border:var(--line);border-radius:9px;box-shadow:var(--shadow)}
.brand{padding:6px 12px 6px 8px;font-size:clamp(16px,1.7vw,23px);letter-spacing:-.045em;transform:rotate(-2deg)}.brand{white-space:nowrap}.brand img{object-fit:contain;transform:rotate(5deg);border-radius:6px}
.utility{display:flex;align-items:center;gap:10px}.chip,.icon-button{padding:8px 11px;min-width:43px;min-height:43px;font-size:17px}.i-coin{color:#503519;fill:#ffbf38!important}.chip.language{font-size:15px}
button:not(:disabled):active,.action:active{translate:1px 2px;box-shadow:none}
#main{flex:1;display:grid;align-items:center;position:relative}
.home{position:relative;width:min(1360px,100%);margin:auto;display:grid;grid-template-columns:1fr 1fr;align-items:center;padding:clamp(18px,3.5vh,50px) clamp(24px,6vw,94px) clamp(34px,6vh,82px);min-height:min(670px,calc(100svh - 160px))}
.home-copy{z-index:1;position:relative;grid-column:1;grid-row:1;align-self:center}
.wordmark{width:max-content;transform:rotate(-5deg) skewX(-4deg);font:800 clamp(78px,min(10.3vw,15.5vh),150px)/.83 Bricolage,system-ui,sans-serif;letter-spacing:-.048em;text-transform:uppercase;margin:0 0 clamp(20px,4.8vh,44px);-webkit-text-stroke:clamp(4px,.65vw,10px) var(--ink);paint-order:stroke fill;filter:drop-shadow(2px 4px 0 var(--ink)) drop-shadow(2px 4px 0 #c46738)}
.wordmark span{display:block;color:var(--paper)}.wordmark span+span{color:var(--gold);margin-left:.12em}
.wordmark b{font:inherit;letter-spacing:-.025em}
.intro{font-size:clamp(17px,1.6vw,23px);line-height:1.35;max-width:30ch;font-weight:800;text-wrap:pretty;color:#2c3327}
.actions{display:flex;gap:14px;align-items:stretch;flex-wrap:wrap;margin-top:clamp(20px,4vh,42px)}
.action{font-size:clamp(17px,1.5vw,22px);padding:13px 21px;line-height:1.1;box-shadow:3px 5px var(--ink);transition:transform .12s}
.action:hover,.chip:is(button):hover,.icon-button:hover{background:#ffe7a5}.action.primary{background:var(--gold);font-size:clamp(21px,2vw,30px);padding-inline:26px}.action.primary:hover{background:#ffd46d}.action .stack{text-align:left}.stack small{display:block;font:700 12px/1.3 DM,sans-serif;margin-top:4px}
.hero-art{position:relative;grid-column:2;grid-row:1;width:100%;height:auto;aspect-ratio:1.18;max-height:500px;isolation:isolate;pointer-events:none}
.hero-art .mascot{position:absolute;left:13%;top:7%;width:73%;height:85%;object-fit:contain;z-index:3;transform:rotate(-7deg);filter:drop-shadow(4px 7px 0 #73523328)}
.hero-art .ground{position:absolute;bottom:5%;left:32%;width:35%;height:5%;border-radius:50%;background:#68432345;transform:rotate(-4deg)}
.print{position:absolute;width:33%;aspect-ratio:.9;padding:2% 2% 5%;background:var(--paper);border:2px solid var(--ink);box-shadow:4px 5px 0 #4734218a;border-radius:3px;overflow:hidden}
.print img{width:100%;height:100%;object-fit:cover;border:1.5px solid var(--ink);background:#94c2ba}
.print.one{left:0;top:48%;transform:rotate(-17deg);z-index:2}.print.two{right:0;top:7%;transform:rotate(14deg)}.print.three{right:0;top:59%;width:26%;transform:rotate(9deg)}
.glint{position:absolute;font:800 clamp(25px,3.5vw,55px)/1 Bricolage;color:var(--paper);-webkit-text-stroke:1.6px var(--ink);paint-order:stroke fill}.glint.a{left:15%;top:15%}.glint.b{right:13%;top:48%;font-size:2.8vw}
#nav{min-height:74px;background:#213f35;color:#fff6df;border-top:3px solid var(--ink);display:flex;justify-content:center;align-items:center;gap:clamp(20px,5vw,82px);padding:12px clamp(14px,3vw,40px)}
#nav button{color:inherit;background:none;border:0;display:flex;align-items:center;gap:9px;min-height:44px;font-size:clamp(14px,1.5vw,18px);padding:4px}
#nav button:hover{color:#ffcf62}#nav small{background:#375a4d;border:1px solid #819786;padding:2px 7px;border-radius:5px;font:700 12px DM}
.game{width:min(1070px,100%);margin:auto;padding:14px 36px 35px;display:grid;grid-template-columns:minmax(0,1.06fr) minmax(0,1fr);gap:clamp(28px,5vw,78px);align-items:center}
.sheet{background:var(--paper);border:3px solid var(--ink);box-shadow:5px 7px 0 #493623;border-radius:7px;padding:clamp(9px,1.4vw,19px);transform:rotate(-1.5deg)}
.sheet-head,.sheet-foot{display:flex;align-items:center;justify-content:space-between;gap:8px}.sheet-head{padding:0 1px 11px;font:800 clamp(18px,2vw,25px)/1 Bricolage}.sheet-head small,.sheet-foot{font:800 12px/1.2 DM}.sheet-foot{padding-top:11px;gap:6px}.sheet-foot span{display:inline-flex;gap:5px;align-items:center}.sheet-foot .icon{width:15px}
.photos{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}
.photo{position:relative;padding:0;overflow:hidden;border:1.8px solid var(--ink);border-radius:3px;aspect-ratio:1.35;background:#e2d8bb}
.photo img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .2s}.photo:hover img{transform:scale(1.04)}
.photo .num{position:absolute;bottom:4px;left:4px;background:var(--paper);border:1px solid var(--ink);font:800 11px/1 DM;padding:3px 5px;border-radius:3px}
.guess{min-width:0}.guess h1{font-size:clamp(32px,4.5vw,62px);line-height:.98;letter-spacing:-.055em;color:var(--paper);-webkit-text-stroke:4px var(--ink);paint-order:stroke fill;filter:drop-shadow(1.5px 2px 0 var(--ink))}
.guess .sub{margin:10px 0 16px;font-size:15px;font-weight:800}.slots{display:flex;gap:5px}.slot,.tile{border:var(--line);border-radius:7px;box-shadow:2px 3px var(--ink);font-family:Bricolage;font-weight:800;text-align:center;display:grid;place-content:center;line-height:1}
.slot{background:#fbefcc;flex:0 1 54px;min-width:0;height:clamp(43px,5vw,59px);font-size:clamp(20px,3vw,36px);position:relative}
.slot:empty:after{content:"";display:block;width:14px;height:3px;background:#9e8f71;border-radius:2px}.slot.fixed{background:#ffe09b}.slot.solved{background:#cee29d}
.game-status{min-height:22px;margin:8px 0 3px;font-size:14px;font-weight:800;color:#61351b}
.rack{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:8px;max-width:387px}
.tile{height:clamp(42px,4.7vw,54px);background:var(--paper);font-size:clamp(21px,2.2vw,30px);padding:0}.tile:hover:enabled{background:#ffe196}.tile:disabled{color:transparent;border:1.5px dashed #796f4c;box-shadow:none;background:#e1d7b785}.tile.cut:disabled{background:repeating-linear-gradient(135deg,#737f5235 0 2px,transparent 2px 7px)}
.tools{display:flex;gap:9px;flex-wrap:wrap;margin-top:17px}.tools button{border:var(--line);background:var(--paper);border-radius:7px;padding:8px 12px;display:inline-flex;align-items:center;gap:7px;min-height:43px;font-size:14px;box-shadow:2px 3px var(--ink)}.tools .joker{background:var(--gold)}
.win{margin-top:15px}.win p{margin:5px 0 15px;font-weight:800}.win h2{font-size:clamp(24px,3.4vw,42px);letter-spacing:-.04em}
dialog{border:3px solid var(--ink);background:var(--paper);color:var(--ink);border-radius:13px;box-shadow:6px 8px var(--ink);width:min(530px,calc(100% - 28px));max-height:85svh;padding:clamp(16px,3vw,30px);overscroll-behavior:contain}
dialog::backdrop{background:#192f2acd;backdrop-filter:blur(3px)}.dialog-head{display:flex;justify-content:space-between;align-items:center;gap:15px;margin-bottom:16px}.dialog-head h2{font-size:clamp(26px,5vw,36px);line-height:1;letter-spacing:-.05em}.icon-button{box-shadow:2px 2px var(--ink);padding:7px;font-size:18px}
#dialog-body p{line-height:1.45;margin:8px 0 15px}#dialog-body ol{padding-left:1.5em;line-height:1.55}#dialog-body li{margin:7px 0}
.menu-list{display:grid;gap:8px}.menu-row{display:flex;align-items:center;gap:13px;width:100%;background:#fffdf2;color:var(--ink);border:2px solid var(--ink);border-radius:8px;padding:9px 13px;text-align:left;min-height:51px}.menu-row:enabled:hover{background:#ffe7a4}.menu-row:disabled{opacity:.65}.menu-row img{width:48px;height:41px;border-radius:4px;object-fit:cover}.menu-row .end{margin-left:auto;font:800 14px DM}.menu-row small{display:block;font:600 13px DM;margin-top:3px}
.level{margin:18px 0 8px;font-size:19px}.rounds{display:flex;gap:8px}.round-pick{background:#f7e5bb;border:2px solid var(--ink);border-radius:6px;min-width:45px;min-height:45px}.round-pick.done{background:#c4d99a}.round-pick:disabled{opacity:.48}
.zoom{display:block;width:100%;height:min(52vh,430px);object-fit:contain;background:#ded9c8;border:2px solid var(--ink)}.credit{font-size:13px;overflow-wrap:anywhere;line-height:1.4}.credit a,.help-link{color:#235b4c;text-decoration:underline}.help-link{border:0;background:none;padding:7px 0;font-size:15px}
.zoom-nav{margin-top:12px;display:flex;justify-content:space-between}.stats-line{display:flex;justify-content:space-between;border-top:1px solid #bcaf91;padding:12px 0}.price{display:flex;align-items:center;gap:5px}
.sr-only{position:absolute;width:1px;height:1px;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
@media(min-width:1450px){.game{width:min(1180px,100%)}}
@media(max-width:780px){.home{padding-inline:5vw}.actions{gap:9px}.action{padding:11px 13px}.action.primary{padding-inline:18px}.game{padding:14px 18px 26px;gap:22px}.rack{gap:6px}.tools button{padding:8px}.sheet-foot{font-size:10px}}
@media(max-width:650px){
 header{padding:12px 16px;min-height:64px}.utility{gap:6px}.chip{padding:7px;min-width:38px;min-height:38px;font-size:15px}.brand{padding:5px 8px;font-size:16px;gap:5px}.brand img{width:22px;height:24px}
 .home{width:100%;display:flex;flex-direction:column;justify-content:center;min-height:0;padding:8px 15px 22px}.home-copy{display:contents}.wordmark{font-size:clamp(64px,min(15.5vw,10.3svh),95px);margin:5px auto 0;position:relative;z-index:2}.wordmark span+span{margin-left:.31em}.hero-art{order:1;max-width:365px;width:min(79vw,40.5svh);aspect-ratio:1.25;margin:0 auto 4px}.intro{order:2;text-align:center;font-size:16px;max-width:32ch}.actions{order:3;justify-content:center;margin:15px 0 0;gap:8px;flex-wrap:nowrap}.actions .action{font-size:16px;min-height:49px;padding:9px 11px}.actions .primary{font-size:21px;padding-inline:17px}.stack small{font-size:10px}.glint.b{font-size:23px}
 #nav{min-height:59px;padding:5px 10px max(5px,env(safe-area-inset-bottom));gap:clamp(10px,4.2vw,27px)}#nav button{font-size:12px;gap:5px}#nav button svg{width:17px}#nav small{display:none}
 .game{width:min(425px,100%);display:flex;flex-direction:column;gap:16px;padding:9px 17px 20px}.sheet{width:100%;padding:9px;transform:rotate(-.65deg);box-shadow:3px 4px var(--ink)}.sheet-head{font-size:20px;padding-bottom:6px}.sheet-head small{font-size:11px}.sheet-foot{padding-top:5px}.photo{aspect-ratio:1.7}.photos{gap:4px}
 .guess{width:100%}.guess h1{font-size:30px;-webkit-text-stroke:2.5px var(--ink)}.guess .sub{margin:4px 0 9px;font-size:13px}.slot{flex:0 1 47px;height:39px;font-size:25px}.game-status{font-size:12px;min-height:16px;margin:6px 0 3px}.rack{max-width:100%;gap:5px}.tile{height:39px;font-size:23px}.tools{margin-top:11px}.tools button{min-height:38px}.win{margin-top:10px}.win .action{font-size:18px}
}
@media(max-width:350px){header{padding-inline:10px}.utility{gap:4px}.chip{min-width:34px}.game{padding-inline:12px}.actions .primary{padding-inline:12px}#nav{gap:9px}#nav button{font-size:11px}}
@media(max-height:530px) and (min-width:651px){header{min-height:54px;padding-block:7px}.home{min-height:0;padding-block:12px}.hero-art{max-height:290px}.wordmark{font-size:70px;margin-bottom:14px}.intro{font-size:16px}.actions{margin-top:13px}#nav{min-height:46px;padding-block:3px}}
@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}
.win-mascot{width:68px;height:72px;object-fit:contain;float:right;animation:celebrate .35s ease-out both}
@keyframes celebrate{from{transform:translateY(12px) rotate(-10deg);opacity:.2}to{transform:translateY(0) rotate(4deg);opacity:1}}
@media(max-width:650px){#nav{justify-content:space-evenly;gap:5px}#nav button{white-space:nowrap}.actions .action{white-space:nowrap}.win-mascot{height:56px;width:48px}}
@media(max-width:350px){.actions .action{font-size:14px;padding:8px;gap:5px}.actions .primary{font-size:19px;padding-inline:11px}.actions .stack small{font-size:9px}#nav button{font-size:11px;gap:3px}.brand{font-size:14px}}
@media(max-width:380px){body[data-page=game] #nav button{flex-direction:column;justify-content:center;gap:3px;padding:3px;min-width:48px}}
.wordmark b{margin-right:.04em}
.tile,.slot{touch-action:none;user-select:none}
.choose-level,.level-switch{display:inline-flex;align-items:center;justify-content:center;gap:6px;color:var(--ink);background:var(--paper);border:2px solid var(--ink);border-radius:7px}
.choose-level{margin-top:15px;font-size:15px;min-height:41px;padding:6px 12px}.choose-level:hover,.level-switch:hover{background:#ffe7a5}
.level-switch{min-height:32px;font-size:13px;padding:3px 8px}.level-switch svg{width:13px}
.level-number{display:grid;place-items:center;border:2px solid var(--ink);border-radius:7px;background:#ffdf97;min-width:34px;height:35px;font-size:18px}
.stage-row .end{text-align:right;font-size:12px;line-height:1.18;max-width:72px}.stage-row{gap:9px}.stage-row small{line-height:1.24}.rounds{flex-wrap:wrap}
.free-tip{margin:0 0 10px;font-size:14px;line-height:1.35}.free-tip summary{cursor:pointer;font-weight:800;width:fit-content}.free-tip p,.win .explanation{display:inline-block;background:var(--paper);border-radius:5px;padding:7px 10px;color:var(--ink);font:650 15px/1.4 DM,system-ui,sans-serif}
.rack[data-size="14"]{grid-template-columns:repeat(7,minmax(0,1fr));max-width:450px}.rack[data-size="15"]{grid-template-columns:repeat(5,minmax(0,1fr));max-width:325px}.rack[data-size="16"]{grid-template-columns:repeat(8,minmax(0,1fr));max-width:490px}
@media(max-width:650px){.choose-level{order:4;margin:10px auto 0;font-size:14px;min-height:37px}.rack[data-size="16"]{grid-template-columns:repeat(4,minmax(0,1fr))}.stage-row .end{max-width:56px}.level-switch{min-height:29px}.free-tip p{margin:5px 0}}
