/* Escape Vault · styles. Deep teal night, brass and old paper. */
:root {
  --bg: #10201f; --bg2: #172d2b; --panel: #1e3836; --panel2: #24433f; --line: #35574f;
  --ink: #2a1d15; --text: #f3ead6; --muted: #b9c2b4; --brass: #e0b04e; --brass2: #b8862e;
  --paper: #f6ecd2; --good: #5fc27a; --bad: #e86a55; --hint: #f2c95c;
  --r: 16px; --font: 'Nunito', system-ui, -apple-system, 'Segoe UI', sans-serif; --head: 'Fredoka', 'Nunito', system-ui, sans-serif;
  --safe-t: env(safe-area-inset-top, 0px); --safe-b: env(safe-area-inset-bottom, 0px);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { overflow-x: hidden; margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); font-size: 16px; line-height: 1.45; }
body { min-height: 100vh; min-height: 100dvh; background: radial-gradient(120% 60% at 50% -10%, #23463f 0%, var(--bg) 60%) fixed; overscroll-behavior: none; }
button { font: inherit; color: inherit; cursor: pointer; touch-action: manipulation; }
h1, h2, h3 { font-family: var(--head); font-weight: 600; margin: 0; letter-spacing: .01em; }
p { margin: .4em 0; }
.meta { color: var(--muted); font-size: .88rem; }
.center { text-align: center; }
.eyebrow { font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--brass); margin: 0 0 .2em; font-weight: 800; }
.row { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; margin-top: .7rem; }
.row.center { justify-content: center; } .row.end { justify-content: flex-end; }
#app { max-width: 980px; margin: 0 auto; padding-bottom: calc(24px + var(--safe-b)); }
:focus-visible { outline: 3px solid var(--brass); outline-offset: 2px; }

/* buttons */
.btn { border: 2px solid var(--ink); background: var(--panel2); color: var(--text); padding: .6rem 1rem; border-radius: 12px; font-weight: 800; box-shadow: 0 3px 0 var(--ink); transition: transform .08s; }
.btn:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--ink); }
.btn.primary { background: linear-gradient(#ecc061, var(--brass2)); color: #2a1d15; }
.btn.big { padding: .85rem 1.4rem; font-size: 1.06rem; }
.btn.small { padding: .35rem .7rem; font-size: .85rem; }
.btn[disabled] { opacity: .5; }
.ib { width: 44px; height: 44px; border-radius: 12px; border: 2px solid var(--ink); background: var(--panel2); font-size: 1.5rem; line-height: 1; display: grid; place-items: center; box-shadow: 0 3px 0 var(--ink); flex: none; }
.ib[disabled] { opacity: .35; }
.linkbtn { background: none; border: 0; color: var(--brass); text-decoration: underline; padding: .3rem 0; font-weight: 700; }
.pill { background: var(--panel); border: 2px solid var(--line); border-radius: 99px; padding: .25rem .65rem; font-weight: 800; font-size: .9rem; color: var(--brass); }
.pill.gem { color: #9fdcf0; }
.tag { font-size: .78rem; font-weight: 800; background: var(--panel2); border-radius: 8px; padding: .2rem .5rem; color: var(--muted); }
.tag.go { background: var(--brass); color: var(--ink); }

/* top bar */
.bar { display: flex; align-items: center; gap: .6rem; padding: calc(10px + var(--safe-t)) 14px 10px; position: sticky; top: 0; z-index: 5; background: linear-gradient(var(--bg) 70%, transparent); }
.bar h1 { flex: 1; font-size: 1.15rem; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bar h1 small { display: block; font-family: var(--font); font-size: .72rem; color: var(--brass); letter-spacing: .08em; text-transform: uppercase; font-weight: 800; }
.bar-r { display: flex; gap: .4rem; align-items: center; }
.brand { display: flex; align-items: center; gap: .5rem; font-family: var(--head); font-size: 1.25rem; }
.logo { width: 38px; height: 38px; }
.acct { border: 2px solid var(--line); background: var(--panel); border-radius: 99px; padding: .3rem .7rem; font-weight: 800; font-size: .85rem; color: var(--good); max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acct.guest { color: var(--text); }

/* home */
.home { padding: 0 14px; display: grid; gap: 16px; }
.hero { background: var(--panel); border: 2px solid var(--ink); border-radius: 22px; overflow: hidden; box-shadow: 0 6px 0 var(--ink); display: grid; }
.hero-art .scene { display: block; width: 100%; height: auto; pointer-events: none; }
.hero-txt { padding: 16px 18px 20px; }
.hero-txt h2 { font-size: 1.7rem; }
.prog { height: 10px; background: var(--bg2); border-radius: 99px; overflow: hidden; margin-top: .6rem; border: 2px solid var(--ink); }
.prog i { display: block; height: 100%; background: linear-gradient(90deg, var(--brass2), var(--brass)); }
@media (min-width: 760px) { .hero { grid-template-columns: 1.3fr 1fr; align-items: center; } }
.cards { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .cards { grid-template-columns: 1fr 1fr; } }
.card { text-align: left; background: var(--panel); border: 2px solid var(--ink); border-radius: var(--r); padding: 14px 16px; box-shadow: 0 4px 0 var(--ink); }
.card h3 { font-size: 1.15rem; } .card p { color: var(--muted); margin: .2rem 0 0; font-size: .92rem; }
.card.daily { background: linear-gradient(135deg, #3b2f58, #23433f); }

/* campaign map */
.map { padding: 6px 14px; display: grid; gap: 10px; max-width: 620px; margin: 0 auto; position: relative; }
.node { display: flex; align-items: center; gap: 12px; text-align: left; background: var(--panel); border: 2px solid var(--ink); border-radius: var(--r); padding: 10px 12px; box-shadow: 0 4px 0 var(--ink); width: 88%; }
.node.r { margin-left: 12%; } .node.locked { opacity: .55; } .node.done { background: var(--panel2); }
.node .num { width: 42px; height: 42px; border-radius: 50%; background: var(--brass); color: var(--ink); display: grid; place-items: center; font-family: var(--head); font-size: 1.2rem; border: 2px solid var(--ink); flex: none; }
.node .nt { flex: 1; min-width: 0; } .node .nt b { display: block; font-family: var(--head); font-weight: 600; } .node small { color: var(--muted); }
.stars i { font-style: normal; color: #4a5a52; font-size: 1.05rem; } .stars i.on { color: var(--brass); }

/* difficulty tiers */
.tiers { padding: 6px 14px; display: grid; gap: 10px; max-width: 720px; margin: 0 auto; }
.tier { display: flex; align-items: center; gap: 12px; text-align: left; background: var(--panel); border: 2px solid var(--ink); border-left: 10px solid var(--tc); border-radius: var(--r); padding: 12px; box-shadow: 0 4px 0 var(--ink); }
.tb { width: 40px; height: 40px; border-radius: 12px; background: var(--tc); color: #fff; display: grid; place-items: center; font-family: var(--head); font-size: 1.2rem; border: 2px solid var(--ink); flex: none; }
.tt { flex: 1; } .tt b { font-family: var(--head); font-size: 1.15rem; font-weight: 600; } .tt small { display: block; color: var(--brass); font-weight: 800; } .tt em { display: block; font-style: normal; color: var(--muted); font-size: .88rem; }
.tp { text-align: right; font-weight: 800; } .tp small { display: block; color: var(--brass); }
.tier-page { padding: 6px 14px; max-width: 720px; margin: 0 auto; }
.chap { display: flex; align-items: center; gap: 12px; justify-content: space-between; background: var(--panel); border: 2px solid var(--ink); border-radius: var(--r); padding: 10px; box-shadow: 0 4px 0 var(--ink); text-align: center; margin-bottom: 12px; }
.lvgrid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.lv { aspect-ratio: 1; background: var(--panel); border: 2px solid var(--ink); border-radius: 14px; box-shadow: 0 3px 0 var(--ink); display: grid; place-items: center; align-content: center; gap: 2px; }
.lv b { font-family: var(--head); font-size: 1.2rem; font-weight: 600; } .lv small { font-size: .7rem; color: var(--muted); } .lv .stars i { font-size: .7rem; }
.lv.done { background: var(--panel2); border-color: var(--tc); } .lv.locked { opacity: .4; }

/* play */
.play { max-width: 620px; margin: 0 auto; display: flex; flex-direction: column; min-height: 100dvh; }
.play-bar { background: var(--bg); }
.clock { font-family: var(--head); font-variant-numeric: tabular-nums; background: var(--panel); border: 2px solid var(--line); border-radius: 10px; padding: .25rem .55rem; min-width: 58px; text-align: center; }
.btn.hint { padding: .35rem .6rem; display: flex; align-items: center; gap: .25rem; }
.btn.hint small { font-size: .72rem; }
.rooms { display: flex; gap: 6px; padding: 0 12px 8px; overflow-x: auto; } .rooms .rt { flex: 1; }
.rt { border: 2px solid var(--ink); background: var(--panel); border-radius: 10px; padding: .35rem .8rem; font-weight: 800; white-space: nowrap; }
.rt.cur { background: var(--brass); color: var(--ink); } .rt[disabled] { opacity: .45; }
.stage { position: relative; margin: 0 10px; border-radius: 18px; overflow: hidden; border: 3px solid var(--ink); box-shadow: 0 6px 0 var(--ink), 0 0 60px -20px var(--glow); background: #000; }
.scene { display: block; width: 100%; height: auto; user-select: none; -webkit-user-select: none; }
.room-name { position: absolute; left: 10px; bottom: 6px; margin: 0; font-size: .75rem; font-weight: 800; background: rgba(0, 0, 0, .45); padding: .15rem .5rem; border-radius: 8px; pointer-events: none; }
.hs { cursor: pointer; outline: none; }
.hs > g { transition: transform .15s; transform-box: fill-box; transform-origin: 50% 100%; }
.hs:hover > g, .hs:focus-visible > g { transform: scale(1.04); filter: brightness(1.12); }
.hs:focus-visible > rect:first-child { stroke: var(--brass); stroke-width: 3; stroke-dasharray: 6 4; }
.hs.done.k-decoy, .hs.done.k-open, .hs.done.k-read { opacity: .78; }
.hs.shake { animation: shake .4s; } .shake { animation: shake .4s; }
@keyframes shake { 20% { transform: translateX(-4px); } 40% { transform: translateX(4px); } 60% { transform: translateX(-3px); } 80% { transform: translateX(2px); } }
.hs.pulse > rect:first-child { stroke: var(--hint); stroke-width: 4; animation: pulse 1s infinite; }
@keyframes pulse { 50% { stroke-opacity: .2; } }
.spark { animation: twinkle 1.6s infinite; } @keyframes twinkle { 50% { opacity: .2; } }
.msg { margin: 12px 12px 0; min-height: 3.2em; background: var(--paper); color: var(--ink); border: 2px solid var(--ink); border-radius: 14px; padding: .6rem .85rem; font-weight: 600; box-shadow: 0 3px 0 var(--ink); }
.msg.good { background: #e3f4d8; } .msg.bad { background: #f8dcd4; } .msg.hint { background: #fff1bf; }
.gemmsg { color: #2a8fb8; font-weight: 800; }
.bag { margin: 12px; background: var(--panel); border: 2px solid var(--ink); border-radius: 16px; padding: 8px 10px 10px; box-shadow: 0 4px 0 var(--ink); }
.bag-h { margin: 0 0 6px; font-size: .78rem; color: var(--muted); font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.bag-row { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scroll-snap-type: x proximity; }
.it { flex: none; width: 76px; background: var(--paper); color: var(--ink); border: 2px solid var(--ink); border-radius: 12px; padding: 6px 4px 5px; display: grid; justify-items: center; gap: 2px; scroll-snap-align: start; box-shadow: 0 3px 0 var(--ink); }
.it span { font-size: .68rem; font-weight: 800; line-height: 1.1; text-align: center; max-height: 2.3em; overflow: hidden; }
.it.sel { background: var(--brass); transform: translateY(-4px); box-shadow: 0 6px 0 var(--ink); }
.it.note { background: #fff6dd; }
.it.new { animation: pop .6s; } @keyframes pop { 0% { transform: scale(.4); } 70% { transform: scale(1.12); } }
.ink { color: var(--ink); }

/* sheets and overlays */
.overlay { position: fixed; inset: 0; z-index: 20; background: rgba(6, 14, 13, .72); display: flex; align-items: flex-end; justify-content: center; padding: 10px; padding-bottom: calc(10px + var(--safe-b)); backdrop-filter: blur(3px); }
.overlay.anim { animation: fade .2s; } .overlay.anim .sheet { animation: rise .25s; }
@media (min-width: 640px) { .overlay { align-items: center; } }
@keyframes fade { from { opacity: 0; } }
.sheet { width: 100%; max-width: 560px; overflow-x: hidden; max-height: 92dvh; overflow-y: auto; background: var(--panel); border: 3px solid var(--ink); border-radius: 22px; padding: 16px; box-shadow: 0 8px 0 var(--ink); }
@keyframes rise { from { transform: translateY(30px); opacity: 0; } }
.sheet-h { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; margin-bottom: 10px; }
.sheet h2 { font-size: 1.8rem; } .lead { font-size: 1.05rem; }
.tip { display: grid; gap: 2px; background: var(--bg2); border-left: 5px solid var(--brass); border-radius: 10px; padding: .55rem .75rem; margin: .5rem 0; }
.tip.lock { border-color: #7fd3c0; } .tip span { color: var(--muted); font-size: .92rem; }
.fb { margin-top: 10px; background: var(--bg2); border-radius: 10px; padding: .5rem .75rem; font-weight: 700; }
.fb.bad { color: #ffb4a6; } .fb.good { color: #b8f0c4; } .fb.hint { color: var(--hint); }
.clue { background: var(--bg2); border-radius: 12px; padding: .4rem .6rem; margin-bottom: 10px; }
.clue summary { font-weight: 800; cursor: pointer; padding: .2rem 0; color: var(--brass); }
.nt-t { font-weight: 800; margin: .5rem 0 .2rem; font-size: .85rem; }
.paper { background: var(--paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence baseFrequency='.8'/%3E%3CfeColorMatrix values='0 0 0 0 .4 0 0 0 0 .3 0 0 0 0 .2 0 0 0 .08 0'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)'/%3E%3C/svg%3E"); color: var(--ink); border-radius: 6px; padding: .8rem 1rem; transform: rotate(-.6deg); box-shadow: 2px 3px 0 rgba(0, 0, 0, .35); font-family: 'Patrick Hand', 'Comic Sans MS', cursive; font-size: 1.08rem; }
.paper .nhead { font-weight: 700; margin-top: 0; }
.nbig { font-size: 1.9rem; letter-spacing: .15em; text-align: center; margin: .3rem 0; font-family: var(--head); }
.nbig.sym { letter-spacing: .4em; }
.ndots { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; } .dg { display: grid; grid-template-columns: repeat(3, 12px); gap: 4px; padding: 6px; border: 2px dashed #9a8a6a; border-radius: 8px; } .dg i { width: 12px; height: 12px; border-radius: 50%; background: var(--ink); }
.nsw { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin: .4rem 0; } .nsw i { width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--ink); display: grid; place-items: center; font-style: normal; color: #fff; font-size: 1rem; }
.nstaff { display: flex; justify-content: center; }
.ngrid { display: grid; gap: 3px; width: 140px; margin: .4rem auto; } .ngrid i { aspect-ratio: 1; border: 2px solid var(--ink); border-radius: 3px; background: #fff; } .ngrid i.on { background: var(--ink); }

/* lock widgets */
.pzbody { display: grid; justify-items: center; gap: 10px; }
.pbtn { border: 2px solid var(--ink); background: var(--paper); color: var(--ink); border-radius: 12px; font-weight: 800; min-height: 48px; min-width: 48px; box-shadow: 0 3px 0 var(--ink); }
.pbtn:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--ink); }
.pbtn.go { background: linear-gradient(#ecc061, var(--brass2)); padding: 0 1.2rem; }
.pbtn.ghost { background: transparent; color: var(--text); border-color: var(--line); box-shadow: none; min-height: 40px; padding: 0 1rem; }
.disp { display: flex; gap: 6px; } .disp span { width: 46px; height: 56px; border: 2px solid var(--ink); border-radius: 10px; background: #0e1a19; color: #9fe2a4; display: grid; place-items: center; font-family: var(--head); font-size: 1.7rem; }
.disp.small span { width: 38px; height: 44px; font-size: 1.3rem; }
.keypad { display: grid; grid-template-columns: repeat(3, minmax(56px, 72px)); gap: 8px; } .keypad .pbtn { font-size: 1.35rem; height: 58px; }
.crow { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; } .cbtn { width: 58px; height: 58px; border-radius: 50%; }
.dials { display: flex; gap: 10px; } .dial { width: 72px; height: 92px; display: grid; place-items: center; align-content: center; } .dial b { font-size: 2rem; } .dial small { font-size: .62rem; color: #7a6a52; }
.tiles { display: grid; gap: 4px; width: min(300px, 82vw); aspect-ratio: 3 / 2; background: var(--ink); padding: 4px; border-radius: 10px; }
.tile { padding: 0; min-height: 0; border-radius: 6px; overflow: hidden; position: relative; } .tile svg { width: 100%; height: 100%; display: block; } .tile em { position: absolute; left: 4px; top: 2px; font-style: normal; font-size: .75rem; background: rgba(255, 255, 255, .8); border-radius: 4px; padding: 0 3px; }
.gap { background: #0b1414; border-radius: 6px; }
.lights { display: grid; gap: 8px; } .lamp { width: 56px; height: 56px; border-radius: 50%; background: #3d3a30; } .lamp.on { background: radial-gradient(#fff8c4, #f2c232); box-shadow: 0 0 18px #f2c23299, 0 3px 0 var(--ink); } .lamp.flash { outline: 3px solid var(--hint); }
.wires { display: grid; gap: 8px; width: 100%; max-width: 360px; } .wire { display: flex; align-items: center; gap: 10px; padding: 0 12px; text-align: left; } .wire i { flex: 1; height: 10px; border-radius: 6px; border: 2px solid var(--ink); } .wire span { width: 70px; } .wire.cut i { background-image: linear-gradient(90deg, transparent 45%, var(--panel) 45% 55%, transparent 55%) !important; opacity: .6; }
.enc { display: flex; gap: 4px; justify-content: center; width: 100%; } .enc span { flex: 1; max-width: 34px; min-width: 0; height: 44px; background: #0e1a19; color: var(--brass); border-radius: 8px; display: grid; place-items: center; font-family: var(--head); font-size: 1.4rem; border: 2px solid var(--ink); }
.alpha { display: grid; grid-template-columns: repeat(13, 1fr); gap: 2px; width: 100%; max-width: 420px; font-size: .72rem; overflow: hidden; text-align: center; color: var(--muted); font-weight: 800; }
.cform { display: flex; gap: 8px; width: 100%; max-width: 360px; } .cform button { flex: none; } .cform input { flex: 1; min-width: 0; width: 100%; font: inherit; font-size: 1.2rem; padding: .6rem .8rem; border-radius: 12px; border: 2px solid var(--ink); text-transform: uppercase; letter-spacing: .1em; }
.pipes-wrap { position: relative; padding: 0 22px; } .pipes { display: grid; gap: 3px; width: min(300px, 74vw); background: #2b2722; padding: 4px; border-radius: 10px; border: 2px solid var(--ink); }
.pipe { padding: 0; border-radius: 4px; background: #4a4136; min-height: 0; aspect-ratio: 1; box-shadow: none; } .pipe svg { width: 100%; height: 100%; display: block; }
.src { position: absolute; left: -2px; top: 50%; transform: translateY(-50%); font-size: 1.1rem; } .drain { position: absolute; right: -2px; transform: translateY(-50%); font-size: 1.1rem; }
.mirrors { display: grid; gap: 3px; width: min(300px, 80vw); background: #0d1018; padding: 4px; border-radius: 10px; border: 2px solid var(--ink); }
.mcell { aspect-ratio: 1; background: #1b2130; border-radius: 4px; display: grid; place-items: center; min-height: 0; min-width: 0; padding: 0; box-shadow: none; border: 0; font-size: 1.1rem; }
.mcell.lit { background: #4a2030; box-shadow: inset 0 0 12px #ff5a5a; } .mcell.start { border-left: 4px solid #ff5a5a; } .mcell.mir { background: #c7d6e6; color: var(--ink); } .mcell.mir b { font-size: 1.5rem; } .mcell.mir.lit { background: #ffd0d0; } .mcell.tgt.hit { background: #2a6a8a; }
.piano { display: flex; gap: 3px; width: 100%; justify-content: center; } .key { flex: 1; max-width: 44px; min-width: 0; height: 130px; background: #fffef8; border-radius: 0 0 10px 10px; display: flex; align-items: flex-end; justify-content: center; padding-bottom: 8px; } .key em { font-style: normal; font-size: .85rem; }
.jig { display: grid; gap: 3px; width: min(300px, 80vw); background: var(--ink); padding: 3px; border-radius: 8px; } .jp { padding: 0; aspect-ratio: 3 / 2; min-height: 0; border-radius: 4px; overflow: hidden; box-shadow: none; } .jp svg { width: 100%; height: 100%; display: block; } .jp.sel { outline: 4px solid var(--brass); z-index: 1; }
.hlist { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; } .hlist span { display: flex; align-items: center; gap: 4px; background: var(--paper); color: var(--ink); border-radius: 99px; padding: 2px 10px 2px 4px; font-weight: 800; font-size: .82rem; } .hlist span.got { opacity: .45; text-decoration: line-through; }
.hbox { width: 100%; max-width: 460px; border: 3px solid var(--ink); border-radius: 12px; overflow: hidden; } .hbox svg { display: block; width: 100%; } .hi { cursor: pointer; color: var(--ink); }
.clockwrap svg { display: block; }
.arrowpad { display: grid; grid-template-columns: repeat(3, 64px); grid-template-rows: repeat(3, 56px); gap: 6px; } .arrowpad .pbtn { font-size: 1.6rem; } .arrowpad .up { grid-area: 1 / 2; } .arrowpad .lf { grid-area: 2 / 1; } .arrowpad .rt { grid-area: 2 / 3; } .arrowpad .dn { grid-area: 3 / 2; }
.pat { display: grid; gap: 5px; width: min(260px, 70vw); } .pcell { aspect-ratio: 1; min-height: 0; min-width: 0; padding: 0; background: #56616b; } .pcell.on { background: #7fd3c0; box-shadow: 0 0 14px #7fd3c088, 0 3px 0 var(--ink); }
.scalewrap svg { width: min(320px, 82vw); display: block; } .weights { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; } .wbtn { display: grid; justify-items: center; padding: 4px 8px; } .wbtn span { font-size: .8rem; } .wbtn.on { background: var(--brass); transform: translateY(-3px); }
.simon { display: grid; grid-template-columns: repeat(2, 96px); gap: 10px; } .simon.six { grid-template-columns: repeat(3, 84px); }
.sp { aspect-ratio: 1; border-radius: 20px; opacity: .55; } .sp.lit { opacity: 1; filter: brightness(1.4); box-shadow: 0 0 24px #fff8, 0 3px 0 var(--ink); }
.sp0 { background: #e0473a; } .sp1 { background: #3faf55; } .sp2 { background: #3a78d8; } .sp3 { background: #f1c232; } .sp4 { background: #8c56cc; } .sp5 { background: #f08a2c; }

/* winning */
.win { text-align: center; }
.bigstars { font-size: 3.2rem; letter-spacing: .1em; margin: .3rem 0; } .bigstars i { font-style: normal; color: #3a4a44; display: inline-block; } .bigstars i.on { color: var(--brass); animation: starpop .5s both; }
@keyframes starpop { from { transform: scale(0) rotate(-60deg); } 70% { transform: scale(1.3); } }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: .5rem 0; } .stats span { background: var(--bg2); border-radius: 10px; padding: .4rem; } .stats b { display: block; font-family: var(--head); font-size: 1.2rem; } .stats small { color: var(--muted); font-size: .72rem; }
blockquote { margin: .8rem 0; padding: .6rem .9rem; background: var(--paper); color: var(--ink); border-radius: 10px; font-family: 'Patrick Hand', cursive; font-size: 1.1rem; text-align: left; }

/* shop and account */
.shopbar { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; background: var(--bg2); border-radius: 12px; padding: .5rem .75rem; margin-bottom: 8px; font-size: .9rem; }
.shopgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; margin-bottom: 8px; }
.sitem { position: relative; display: grid; gap: 4px; background: var(--bg2); border: 2px solid var(--line); border-radius: 14px; padding: 10px; } .sitem.feat { border-color: var(--brass); } .sitem span { color: var(--muted); font-size: .85rem; } .sitem .btn { margin-top: 4px; }
.stag { position: absolute; top: -10px; right: 8px; background: var(--brass); color: var(--ink) !important; font-weight: 800; font-size: .7rem !important; padding: 1px 8px; border-radius: 99px; }
.owned { color: var(--good) !important; font-weight: 800; }
.gateform { display: grid; gap: 6px; } .gateform input { font: inherit; padding: .7rem .8rem; border-radius: 12px; border: 2px solid var(--ink); } .gateform label { font-weight: 800; font-size: .9rem; }
.gatelinks { display: flex; flex-direction: column; align-items: flex-start; margin-top: 6px; }
.sw { display: flex; gap: .6rem; align-items: center; padding: .6rem 0; font-weight: 700; } .sw input { width: 22px; height: 22px; accent-color: var(--brass); }
.acct-box { background: var(--bg2); border-radius: 12px; padding: .6rem .8rem; margin: .5rem 0; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
