@font-face{font-family:Literata;src:url(assets/literata-cyrillic-wght-normal.woff2);font-weight:200 900;font-display:swap;unicode-range:U+0400-052F}
@font-face{font-family:Literata;src:url(assets/literata-latin-wght-normal.woff2);font-weight:200 900;font-display:swap;unicode-range:U+0000-024F,U+2000-206F}
@font-face{font-family:Manrope;src:url(assets/manrope-cyrillic-wght-normal.woff2);font-weight:200 800;font-display:swap;unicode-range:U+0400-052F}
@font-face{font-family:Manrope;src:url(assets/manrope-latin-wght-normal.woff2);font-weight:200 800;font-display:swap;unicode-range:U+0000-024F,U+2000-206F}
:root{--ink:#282d25;--muted:#66685a;--green:#204a3e;--gold:#dcc18c;--rule:#d8d1bd;--serif:Literata,Georgia,serif;--sans:Manrope,Arial,sans-serif;font-family:var(--sans);color:var(--ink);background:#f7f5eb}
*{box-sizing:border-box}body{margin:0;min-width:280px;background-image:url(assets/grain.svg)}button{font:inherit;color:inherit;cursor:pointer}button:focus-visible{outline:3px solid #ae592d;outline-offset:3px}.defs{position:absolute;width:0;height:0;overflow:hidden}.icon{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.75;stroke-linecap:round;stroke-linejoin:round;flex:none}.wrap{max-width:1328px;padding:0 clamp(20px,4.5vw,68px);margin:auto}header{background:#1e463b;color:#fcf8e9;position:relative}header:after{content:"";position:absolute;bottom:0;left:0;right:0;height:4px;background:repeating-linear-gradient(45deg,transparent 0 4px,#c3ad76 4px 5px,transparent 5px 9px);opacity:.72}.bar{height:74px;display:flex;align-items:center;justify-content:space-between}.brand,.header-actions,.how,.share,.heading,.section-head,.progress-title,.eyebrow,.plate,.orn,footer,footer button,.primary{display:flex;align-items:center}.brand{gap:12px;font:550 23px/1 var(--serif);letter-spacing:-.7px}.brand img{width:41px;height:41px;border:1px solid #bca56f;border-radius:9px}.header-actions{gap:24px}.how,.share{gap:9px;font-size:14px;font-weight:650}.how{background:none;border:0;color:#faf8ed;padding:9px 3px}.how:hover{color:#f5d99e}.share{border:1px solid #aeb8a1;border-radius:8px;background:#fffdf107;color:#fff9e8;padding:10px 16px}.share:hover{background:#ffffff16}.intro{padding:34px 0 25px;position:relative}.eyebrow{gap:9px;font-size:12px;letter-spacing:1.8px;font-weight:800;color:#995138;text-transform:uppercase}.star{font:22px/1 Georgia;color:#ad5a3f}.intro h1{font:570 clamp(44px,4.5vw,68px)/1.13 var(--serif);letter-spacing:-2.7px;margin:6px 0 10px}.intro p,.instruction{margin:0;color:#5d6154;font-size:16px;line-height:1.55}.board{display:grid;grid-template-columns:minmax(290px,.85fr) minmax(0,1.45fr);gap:22px;align-items:stretch}.portrait{min-height:475px;isolation:isolate;position:relative;display:flex;align-items:center;flex-direction:column;justify-content:space-between;background:#efe5cb;border:1px solid #bdaf8c;border-radius:13px;overflow:hidden;transition:box-shadow .16s}.portrait.hovering{box-shadow:0 0 0 4px #65947c}.scene{position:absolute;inset:0;z-index:-1;background:url(assets/grain.svg),url(assets/palace.svg) center/100% 100% no-repeat}.frame{position:absolute;inset:10px;border:1px solid #a8936380;border-radius:5px;pointer-events:none;z-index:2}.frame i{position:absolute;background:url(assets/corner.svg) center/contain no-repeat;width:38px;height:38px}.frame i:nth-child(1){top:-3px;left:-3px}.frame i:nth-child(2){right:-3px;top:-3px;transform:rotate(90deg)}.frame i:nth-child(3){bottom:-3px;right:-3px;transform:rotate(180deg)}.frame i:nth-child(4){bottom:-3px;left:-3px;transform:rotate(270deg)}.plate{position:relative;gap:8px;margin-top:24px;color:#65583b;font-weight:800;font-size:11px;letter-spacing:1.5px;text-transform:uppercase}.plate span{font-size:7px;color:#9e8251}#figure{position:absolute;inset:50px 12px 64px;pointer-events:none}#figure svg,.win-figure svg{width:100%;height:100%;display:block}.caption{position:absolute;bottom:20px;left:0;right:0;text-align:center}.caption h2{font:550 24px/1.35 var(--serif);letter-spacing:-.7px;margin:0;color:#423a28}.orn{justify-content:center;gap:6px;color:#9e8251;font:17px/1 Georgia;margin-bottom:3px}.orn b{height:1px;width:33px;background:#ad986b}.controls{display:flex;flex-direction:column;gap:15px}.wardrobe,.progress{background:#fffcf4;border:1px solid var(--rule);border-radius:13px}.wardrobe{padding:22px 23px 23px;flex:1}.section-head,.progress-title{justify-content:space-between;gap:8px}.heading{gap:11px}.heading h2,.progress h2,dialog h2{font:550 clamp(23px,2.1vw,30px)/1.28 var(--serif);letter-spacing:-1px;margin:0}.icon-box{display:grid;place-items:center;width:37px;height:37px;background:#e8eddf;color:#375646;border-radius:9px}.icon-box .icon{width:23px;height:23px}.counter{white-space:nowrap;font-size:12px;font-weight:700;color:#686b59;background:#f2efe4;border:1px solid #dedacc;padding:5px 9px;border-radius:15px}.instruction{margin:10px 0 17px;font-size:14px}.rack{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.tile{position:relative;display:flex;align-items:center;justify-content:flex-end;flex-direction:column;gap:4px;padding:9px 5px 11px;background:linear-gradient(145deg,#fbf7ea,#f3ecdb);border:1px solid #dcd1b9;border-radius:8px;cursor:grab;user-select:none;touch-action:manipulation;min-width:0;transition:border-color .15s,background .15s,box-shadow .15s}.tile:hover:not(:disabled){background:#f5eddb;border-color:#a99871;box-shadow:0 2px 6px #59462d15}.tile:active{cursor:grabbing}.tile .item-art{width:95%;height:clamp(72px,6.6vw,99px);display:block;pointer-events:none}.item-art>svg{height:100%;width:100%;display:block}.tile-label{font-weight:680;line-height:1.25;font-size:14px;text-align:center;text-wrap:balance;min-height:1.25em}.tile>.icon{position:absolute;right:5px;top:5px;width:14px;height:14px;color:#a89c83}.tile.worn{background:#e8eee1;border-color:#a6b69b;cursor:default}.tile.worn>.icon{color:#456d48}.tile.miss{animation:wiggle .35s ease;border-color:#ae6445}.tile.dragging{opacity:.52}@keyframes wiggle{25%{transform:translateX(-3px)}75%{transform:translateX(3px)}}.progress{padding:17px 22px 14px;background:#f1f3e8;border-color:#ced4c2}.progress h2{font-size:19px;letter-spacing:-.5px}.progress-title strong{font-size:14px;font-weight:800;color:#385743}.segments{display:flex;gap:5px;margin:11px 0}.segments i{height:7px;flex:1;background:#dbe0ce;border-radius:3px}.segments i.filled{background:#527758}.progress p{font-size:13px;color:#525d4d;line-height:1.5;display:flex;gap:8px;align-items:center;margin:0;min-height:21px}.progress p .icon{width:17px;height:17px}.progress p.wrong{color:#93452e}footer{gap:15px;margin:21px 0 26px;color:#86836d}footer:before{content:"";width:20px;height:1px;background:var(--rule)}footer:after{content:"";height:1px;background:var(--rule);flex:1}.flourish{font:10px Georgia;margin-left:-7px;margin-right:-7px}footer button{order:1;gap:7px;border:0;background:transparent;font-size:13px;font-weight:650;color:#626757;padding:8px 0 8px 2px}footer button .icon{width:16px;height:16px}footer button:hover{color:var(--green)}
dialog{border:1px solid #c0b394;box-shadow:0 28px 100px #15251e44;border-radius:16px;padding:0;background:#fffcf2;color:var(--ink);width:min(420px,calc(100% - 32px));max-height:90dvh;}dialog::backdrop{background:#13241cca;backdrop-filter:blur(3px)}.dialog-inner{position:relative;padding:32px;text-align:center}dialog h2{font-size:28px;margin:10px 0}dialog p{font-size:15px;line-height:1.6;color:var(--muted);margin:10px 0 18px}.close{position:absolute;top:10px;right:10px;border:0;background:transparent;color:var(--muted);padding:7px;display:flex}.modal-mark{color:#94683b;font:32px Georgia}.qr{display:block;width:min(210px,100%);height:auto;margin:15px auto;border:1px solid var(--rule);border-radius:8px}.link{display:block;color:var(--green);font-weight:700;overflow-wrap:anywhere;font-size:14px}.primary{justify-content:center;gap:9px;width:100%;border:0;border-radius:8px;background:var(--green);color:white;padding:12px;margin:18px 0 0;font-weight:650}.primary:hover{background:#315c4d}.steps{text-align:left;padding-left:23px;color:#525848;font-size:15px;line-height:1.6}.steps li{padding-left:4px;margin:8px 0}.win-figure{height:min(205px,27vh);background:radial-gradient(ellipse,#eee2bf,transparent 70%)}.drag-image{position:fixed;pointer-events:none;width:84px;height:84px;z-index:99;transform:translate(-50%,-55%);filter:drop-shadow(0 6px 4px #40382744)}.drag-image svg{width:100%;height:100%}
@media(min-width:1500px){.intro{padding-top:45px;padding-bottom:30px}}
@media(max-width:980px) and (min-width:701px){.wrap{padding-inline:26px}.board{grid-template-columns:minmax(215px,.72fr) minmax(0,1.45fr);gap:14px}.wardrobe{padding:17px 15px}.rack{gap:6px}.tile-label{font-size:13px}.controls{gap:12px}.progress{padding:14px}.heading{gap:7px}.tile{min-height:108px}}
@media(max-width:700px){.wrap{padding-inline:16px}.bar{height:62px}.brand{font-size:20px;gap:8px}.brand img{width:34px;height:34px}.header-actions{gap:12px}.how span{display:none}.share{font-size:13px;padding:8px 10px;gap:6px}.how .icon,.share .icon{width:17px;height:17px}.intro{padding:23px 0 17px}.intro h1{font-size:clamp(36px,8vw,48px);letter-spacing:-1.7px}.intro p{font-size:14px}.eyebrow{font-size:10px;letter-spacing:1.4px}.board{grid-template-columns:1fr;gap:13px}.portrait{min-height:260px;height:clamp(260px,57vw,352px)}#figure{inset:10px 14px 41px}.plate{align-self:flex-start;margin:22px 0 0 23px;font-size:9px;letter-spacing:.7px;gap:5px}.plate span:last-child{display:none}.caption{bottom:13px}.caption h2{font-size:18px}.orn{font-size:11px;margin:0}.scene{background-size:auto,100% 100%}.frame{inset:7px}.frame i{width:26px;height:26px}.wardrobe{padding:14px 12px}.heading h2{font-size:22px}.icon-box{width:32px;height:32px}.instruction{font-size:13px;margin:8px 0 12px}.rack{gap:6px}.tile{padding:7px 3px 8px;gap:4px}.tile .item-art{height:clamp(49px,13vw,80px)}.tile-label{font-size:clamp(11px,3vw,14px)}.progress{padding:15px}.controls{gap:12px}footer{margin:10px 0 15px}}
@media(max-width:360px){.header-actions{gap:8px}.brand{font-size:17px}.board .plate{font-size:8px;gap:3px}.wrap{padding-inline:10px}.dialog-inner{padding:24px 18px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important}}
