@font-face { font-family: 'Fredoka'; src: url('/fonts/fredoka.woff2') format('woff2'); font-weight: 300 700; font-display: swap; }
:root { --ink: #1d2a5c; --bg: #fff6d6; --sun: #ffcf3f; --blue: #5b8cff; --green: #2fcf74; --orange: #ff8a3d; --pink: #ff4d6d; --card: #fff; --line: 4px solid var(--ink); --r: 20px; }
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--ink); font-family: 'Fredoka', ui-rounded, system-ui, sans-serif; font-weight: 500; }
body { background-image: radial-gradient(#ffe48a 2px, transparent 2px); background-size: 26px 26px; }
#main { position: fixed; inset: 0 0 calc(86px + env(safe-area-inset-bottom)) 0; overflow-y: auto; padding: calc(14px + env(safe-area-inset-top)) 14px 24px; max-width: 900px; margin: 0 auto; }
h1, h2, h3 { margin: 8px 0; font-weight: 700; }
h1 { font-size: 2.2rem; } h2 { font-size: 1.7rem; }
.center { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px; padding-top: 12px; position: relative; }
.say { font-size: 1.3rem; margin: 4px 0; }
.title { font-size: 2.6rem; color: var(--blue); -webkit-text-stroke: 2px var(--ink); }
button { font-family: inherit; color: var(--ink); cursor: pointer; }
button:active { transform: scale(0.93); }
button { transition: transform 0.08s; }
.btn { border: var(--line); border-radius: var(--r); padding: 14px 22px; font-size: 1.4rem; font-weight: 700; background: #fff; box-shadow: 0 6px 0 var(--ink); }
.btn:active { box-shadow: 0 2px 0 var(--ink); transform: translateY(4px) scale(0.97); }
.btn.huge { font-size: 1.8rem; padding: 18px 30px; min-width: 260px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; }
.btn.go { background: var(--sun); }
.btn.yes { background: var(--green); color: #fff; -webkit-text-stroke: 1px var(--ink); }
.btn.no { background: var(--orange); color: #fff; -webkit-text-stroke: 1px var(--ink); }
.btn.ask { background: #b9a4ff; }
.btn.soft { background: transparent; box-shadow: none; border-color: transparent; text-decoration: underline; font-size: 1.2rem; }
.btn.toggle { background: #ddd; } .btn.toggle.on { background: var(--green); color: #fff; }
.yesno { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; width: 100%; max-width: 520px; }
.yesno .btn { font-size: 1.9rem; padding: 26px 8px; }
.mascot-wrap { width: 90px; height: 90px; } .mascot-wrap svg { width: 100%; height: 100%; }
.mascot-wrap.big { width: 150px; height: 150px; } .mascot-wrap.tiny { width: 44px; height: 44px; }
.bob { animation: bob 1.4s ease-in-out infinite; } .think { animation: wiggle 0.8s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-10px); } }
@keyframes wiggle { 25% { transform: rotate(-6deg); } 75% { transform: rotate(6deg); } }
.who { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; width: 100%; max-width: 520px; }
.who-tile { border: var(--line); border-radius: 24px; background: var(--blue); color: #fff; font-size: 2rem; font-weight: 700; padding: 18px 8px; display: flex; flex-direction: column; align-items: center; gap: 8px; box-shadow: 0 6px 0 var(--ink); -webkit-text-stroke: 1px var(--ink); }
.who-tile.poppy { background: var(--orange); }
.vv { background: var(--sun); border: var(--line); border-radius: 24px; padding: 10px 18px; text-align: center; box-shadow: 0 6px 0 var(--ink); margin: 0 auto 12px; max-width: 420px; }
.vv-n { font-size: 3.4rem; font-weight: 700; line-height: 1; }
.vv-l { font-size: 1.1rem; letter-spacing: 2px; } .vv-s { font-size: 0.85rem; opacity: 0.7; }
.search { width: 100%; font: inherit; font-size: 1.3rem; padding: 12px 16px; border: var(--line); border-radius: var(--r); margin-bottom: 10px; background: #fff; color: var(--ink); }
.chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 8px; }
.chip { border: 3px solid var(--ink); border-radius: 999px; background: #fff; padding: 8px 14px; font-size: 1.1rem; font-weight: 700; white-space: nowrap; }
.chip.on { background: var(--blue); color: #fff; } .chip.sort.on { background: var(--pink); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin-top: 6px; }
.cell { position: relative; border: var(--line); border-radius: 16px; background: var(--card); padding: 6px 6px 8px; display: flex; flex-direction: column; gap: 4px; box-shadow: 0 5px 0 var(--ink); }
.cell img { width: 100%; aspect-ratio: 5 / 7; object-fit: cover; border-radius: 10px; background: #eee; }
.cell-n { font-size: 1rem; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cell-v { font-size: 1.3rem; font-weight: 700; color: #138a4a; } .cell-v.soon { color: #888; font-size: 1rem; }
.qty { position: absolute; top: 0; right: 0; background: var(--pink); color: #fff; border: 3px solid var(--ink); border-radius: 999px; padding: 2px 10px; font-weight: 700; }
.big-card { max-width: min(78vw, 340px); max-height: 46vh; border: var(--line); border-radius: 18px; box-shadow: 0 8px 0 var(--ink); background: #fff; }
.big-card.small { max-height: 30vh; }
.name { font-size: 1.8rem; font-weight: 700; }
.meta { font-size: 1.1rem; margin: 0; opacity: 0.85; }
.val { display: flex; gap: 10px; align-items: center; justify-content: center; flex-wrap: wrap; }
.val .v { font-size: 2.2rem; font-weight: 700; color: #138a4a; }
.src { border: 3px solid var(--ink); border-radius: 999px; padding: 4px 12px; background: var(--green); color: #fff; font-weight: 700; }
.src.soon { background: #bbb; color: var(--ink); }
.have { font-size: 1.4rem; font-weight: 700; color: var(--pink); } .have.ask { color: #7a5cff; }
.alts { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; width: 100%; }
.alt { border: var(--line); border-radius: 16px; background: #fff; padding: 8px; display: flex; flex-direction: column; gap: 4px; font-size: 1.1rem; font-weight: 700; box-shadow: 0 5px 0 var(--ink); }
.alt img { width: 100%; aspect-ratio: 5 / 7; object-fit: cover; border-radius: 10px; }
.conds { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; width: 100%; max-width: 520px; }
.cond { border: var(--line); border-radius: 22px; padding: 18px 6px; font-size: 1.5rem; font-weight: 700; display: flex; flex-direction: column; align-items: center; gap: 6px; box-shadow: 0 6px 0 var(--ink); }
.cond .face { font-size: 3rem; }
.cond.perfect { background: #ffe66b; } .cond.great { background: #8ee6a8; } .cond.played { background: #9cc0ff; } .cond.beat { background: #ffb38a; }
.yay { font-size: 2.6rem; color: var(--green); -webkit-text-stroke: 2px var(--ink); }
.xpline { font-size: 1.6rem; font-weight: 700; } .xpline.big { font-size: 2.2rem; }
#tabs { position: fixed; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-around; align-items: flex-end; background: #fff; border-top: var(--line); padding: 8px 6px calc(8px + env(safe-area-inset-bottom)); height: calc(86px + env(safe-area-inset-bottom)); }
.tab { border: 0; background: none; display: flex; flex-direction: column; align-items: center; font-weight: 700; font-size: 0.95rem; flex: 1; opacity: 0.6; }
.tab.on { opacity: 1; } .ti { font-size: 1.9rem; }
.scan-tab { opacity: 1; } .scan-tab .ti { background: var(--pink); border: var(--line); border-radius: 50%; width: 76px; height: 76px; display: flex; align-items: center; justify-content: center; font-size: 2.2rem; margin-top: -40px; box-shadow: 0 5px 0 var(--ink); }
.sheet { position: fixed; inset: 0; background: rgba(29, 42, 92, 0.55); display: flex; align-items: flex-end; justify-content: center; z-index: 20; }
.sheet-in { position: relative; background: var(--bg); width: 100%; max-width: 640px; max-height: 92vh; overflow-y: auto; border: var(--line); border-radius: 28px 28px 0 0; padding: 20px 16px calc(24px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.x { position: absolute; top: 10px; right: 12px; border: 3px solid var(--ink); border-radius: 50%; width: 44px; height: 44px; background: #fff; font-size: 1.3rem; font-weight: 700; }
.hint { font-size: 0.95rem; opacity: 0.7; margin: 0; }
.gear { position: absolute; top: 0; right: 0; border: 0; background: none; font-size: 1.8rem; opacity: 0.6; }
.dots { display: flex; gap: 14px; } .dots span { width: 22px; height: 22px; border: 3px solid var(--ink); border-radius: 50%; } .dots span.on { background: var(--ink); }
.keys { display: grid; grid-template-columns: repeat(3, 80px); gap: 12px; margin-top: 10px; }
.key { height: 70px; border: var(--line); border-radius: 18px; background: #fff; font-size: 1.8rem; font-weight: 700; box-shadow: 0 4px 0 var(--ink); }
.spin { width: 54px; height: 54px; border: 7px solid #fff; border-top-color: var(--blue); border-radius: 50%; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.confetti { position: fixed; inset: 0; width: 100vw; height: 100vh; pointer-events: none; z-index: 50; }
.xp-pop { position: fixed; left: 50%; top: 36%; transform: translate(-50%, 0); font-size: 3.6rem; font-weight: 700; color: var(--sun); -webkit-text-stroke: 3px var(--ink); z-index: 60; animation: xp 1.8s ease-out forwards; pointer-events: none; }
@keyframes xp { 0% { transform: translate(-50%, 30px) scale(0.4); opacity: 0; } 20% { transform: translate(-50%, 0) scale(1.25); opacity: 1; } 70% { opacity: 1; } 100% { transform: translate(-50%, -80px) scale(1); opacity: 0; } }
.poppy { display: flex; flex-direction: column; gap: 8px; }
.prow { display: grid; grid-template-columns: 50px 1fr auto; gap: 10px; align-items: center; border: 3px solid var(--ink); border-radius: 14px; background: #fff; padding: 6px 10px; text-align: left; font-size: 1.1rem; }
.prow img { width: 50px; height: 70px; object-fit: cover; border-radius: 6px; }
.pform { display: flex; flex-direction: column; gap: 8px; width: 100%; text-align: left; }
.pform label { display: flex; flex-direction: column; font-size: 1rem; }
.pform input, .pform select { font: inherit; font-size: 1.1rem; padding: 8px; border: 3px solid var(--ink); border-radius: 10px; }
.small { font-size: 0.9rem; opacity: 0.7; }
@media (min-width: 700px) { .grid { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); } }

/* ---------- Round 2: blocky game skin (original art, no borrowed assets) ---------- */
@font-face { font-family: 'Lilita One'; src: url('/fonts/lilita-one.woff2') format('woff2'); font-display: swap; }
:root { --game: 'Lilita One', 'Fredoka', ui-rounded, system-ui, sans-serif; --r: 14px; }
body { background: #8fdcff; background-image: none; }
#scenery { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: -1; }
h1, h2, h3, .btn, .vv-n, .name, .tl, .xp-pop, .yay, .title, .cell-v, .val .v, .xpline, .chip, .who-tile, .key, .cond { font-family: var(--game); font-weight: 400; letter-spacing: 0.5px; }
h1, h2 { color: #fff; -webkit-text-stroke: 2px var(--ink); paint-order: stroke fill; text-shadow: 0 4px 0 var(--ink); }
.say, .meta { background: rgba(255, 255, 255, 0.85); border: 3px solid var(--ink); border-radius: 12px; padding: 4px 12px; }
.sheet .meta, .sheet .say, .poppy .say, .poppy .meta, .panel .meta { background: none; border: 0; }
/* buttons: thick outline, flat fill, darker bottom lip that squishes */
.btn { border: 4px solid var(--ink); border-radius: var(--r); box-shadow: inset 0 -7px 0 rgba(0, 0, 0, 0.22), 0 5px 0 var(--ink); text-shadow: none; transition: transform 0.06s, box-shadow 0.06s; }
.btn:active { transform: translateY(5px); box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.22), 0 0 0 var(--ink); }
.btn.go { background: #ffd23a; } .btn.yes { background: #35d36f; color: #fff; -webkit-text-stroke: 1.5px var(--ink); paint-order: stroke fill; }
.btn.no { background: #ff6a3d; color: #fff; -webkit-text-stroke: 1.5px var(--ink); paint-order: stroke fill; }
.btn.soft { box-shadow: none; background: rgba(255, 255, 255, 0.85); border: 3px solid var(--ink); text-decoration: none; padding: 8px 18px; }
.btn.soft:active { transform: translateY(2px); }
.who-tile, .cond, .alt, .key, .cell { border-radius: var(--r); box-shadow: inset 0 -6px 0 rgba(0, 0, 0, 0.18), 0 5px 0 var(--ink); }
.who-tile:active, .cond:active, .alt:active, .key:active, .cell:active { transform: translateY(4px); box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.18), 0 1px 0 var(--ink); }
/* panels and sticker banners */
.panel { background: #fff8e6; border: 4px solid var(--ink); border-radius: 18px; padding: 12px; box-shadow: 0 6px 0 var(--ink); width: 100%; position: relative; }
.sticker { display: inline-block; font-family: var(--game); font-size: 2rem; color: #fff; background: #3c7bff; border: 4px solid var(--ink); border-radius: 12px; padding: 4px 22px; transform: rotate(-3deg); box-shadow: 0 5px 0 var(--ink); -webkit-text-stroke: 1.5px var(--ink); paint-order: stroke fill; }
.sticker.pink { background: #ff4d8a; } .sticker.gold { background: #ffc21a; font-size: 1.4rem; }
.center.tight { gap: 6px; padding-top: 4px; margin-bottom: 10px; } .small-say { font-size: 1.05rem; }
/* HUD */
#hud { position: fixed; top: 0; left: 0; right: 0; z-index: 15; display: flex; align-items: center; gap: 10px; padding: calc(8px + env(safe-area-inset-top)) 12px 8px; background: #2a3a7a; border-bottom: 4px solid #121a3a; box-shadow: 0 4px 0 rgba(0, 0, 0, 0.25); }
body.hud-on #main { top: calc(76px + env(safe-area-inset-top)); padding-top: 14px; }
.face-frame { width: 56px; height: 56px; flex: none; background: #9fd7ff; border: 4px solid #121a3a; border-radius: 10px; box-shadow: inset 0 0 0 3px #fff; overflow: hidden; }
.face-frame img, .face-frame svg { width: 100%; height: 100%; object-fit: cover; display: block; }
.hud-mid { flex: 1; min-width: 0; }
.hud-name { font-family: var(--game); font-size: 1.25rem; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lvbar { display: flex; align-items: center; gap: 6px; }
.lv { font-family: var(--game); font-size: 0.95rem; color: #121a3a; background: #7dff9e; border: 3px solid #121a3a; border-radius: 6px; padding: 0 6px; }
.bar { flex: 1; height: 14px; background: #121a3a; border: 3px solid #121a3a; border-radius: 6px; overflow: hidden; }
.bar i { display: block; height: 100%; background: linear-gradient(#7dff9e 50%, #3fd36b 50%); border-radius: 3px; transition: width 0.6s; }
.hud-coins { display: flex; align-items: center; gap: 6px; background: #121a3a; border: 3px solid #ffcf3f; border-radius: 12px; padding: 4px 10px 4px 6px; }
.hud-coins.pulse { animation: pulse 0.25s ease-in-out infinite alternate; }
@keyframes pulse { to { transform: scale(1.12); } }
.coin-n { font-family: var(--game); font-size: 1.4rem; color: #ffd84a; min-width: 2ch; text-align: right; }
.coin-i { display: inline-flex; } .coin { width: 28px; height: 28px; }
/* VAULT = inventory backpack */
.grid.inv { grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 0; }
.cell { aspect-ratio: 1; padding: 6px; background: #3b4a86; border: 4px solid var(--ink); gap: 2px; justify-content: space-between; overflow: hidden; }
.cell img { width: auto; height: 62%; aspect-ratio: auto; object-fit: contain; margin: 0 auto; border-radius: 4px; background: none; }
.cell-n { color: #fff; font-size: 0.8rem; } .cell-v { font-size: 1rem; color: #7dff9e; } .cell-v.soon { color: #c9d2ff; font-size: 0.8rem; }
.cell.empty { background: #2c3868; opacity: 0.7; box-shadow: inset 0 4px 0 rgba(0, 0, 0, 0.3); }
.r-gray { box-shadow: inset 0 0 0 3px #a8a8a8, 0 5px 0 var(--ink); }
.r-green { box-shadow: inset 0 0 0 3px #3fe07a, 0 0 14px #3fe07a, 0 5px 0 var(--ink); }
.r-blue { box-shadow: inset 0 0 0 3px #46a8ff, 0 0 16px #46a8ff, 0 5px 0 var(--ink); }
.r-purple { box-shadow: inset 0 0 0 3px #c065ff, 0 0 18px #c065ff, 0 5px 0 var(--ink); }
.r-gold { box-shadow: inset 0 0 0 3px #ffd02a, 0 0 22px #ffcf3f, 0 5px 0 var(--ink); animation: shine 1.6s ease-in-out infinite alternate; }
@keyframes shine { to { filter: brightness(1.15); } }
.qty { font-family: var(--game); font-weight: 400; border-radius: 8px; top: 3px; right: 3px; padding: 0 7px; }
@media (min-width: 700px) { .grid.inv { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); } }
/* loot drop */
.loot { position: fixed; inset: 0; z-index: 40; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; background: rgba(18, 26, 58, 0.82); overflow: hidden; --t: #cfcfcf; }
.loot.t-green { --t: #3fe07a; } .loot.t-blue { --t: #46a8ff; } .loot.t-purple { --t: #c065ff; } .loot.t-gold { --t: #ffcf3f; }
.rays { position: absolute; left: 50%; top: 52%; width: 160vmax; height: 160vmax; margin: -80vmax 0 0 -80vmax; background: repeating-conic-gradient(var(--t) 0 10deg, transparent 10deg 24deg); border-radius: 50%; opacity: 0; transform: scale(0.2); -webkit-mask: radial-gradient(circle, #000 0, transparent 60%); mask: radial-gradient(circle, #000 0, transparent 60%); }
.loot.open .rays { animation: rays-in 0.5s 0.3s ease-out forwards, rays-spin 9s linear infinite; }
@keyframes rays-in { to { opacity: 0.55; transform: scale(1); } }
@keyframes rays-spin { to { rotate: 360deg; } }
.loot-stage { position: relative; width: 240px; height: 360px; }
.chest-wrap { position: absolute; left: 20px; bottom: 0; width: 200px; animation: shake 0.16s 4 linear; }
.chest { width: 200px; overflow: visible; }
.chest-lid { transform-origin: 20px 70px; transform-box: view-box; transition: transform 0.35s cubic-bezier(.3, 1.6, .6, 1); }
.loot.open .chest-lid { transform: rotate(-38deg) translate(-12px, -20px); }
@keyframes shake { 25% { transform: rotate(-4deg); } 75% { transform: rotate(4deg); } }
.loot-card { position: absolute; left: 50%; bottom: 60px; width: 150px; margin-left: -75px; border: 4px solid var(--ink); border-radius: 10px; background: #fff; opacity: 0; transform: translateY(80px) scale(0.3); box-shadow: 0 0 30px var(--t), 0 0 0 4px var(--t); }
.loot.open .loot-card { animation: fly 1.1s 0.25s cubic-bezier(.2, .9, .3, 1.1) forwards; }
@keyframes fly { 0% { opacity: 1; transform: translateY(80px) scale(0.3) rotateY(0); } 60% { transform: translateY(-140px) scale(1.05) rotateY(300deg); } 100% { opacity: 1; transform: translateY(-110px) scale(1) rotateY(360deg); } }
.loot.open .chest-wrap { animation: none; }
.loot-banner { position: relative; font-family: var(--game); font-size: 2.8rem; color: var(--t); -webkit-text-stroke: 2px var(--ink); paint-order: stroke fill; text-shadow: 0 5px 0 var(--ink); transform: rotate(-4deg) scale(0); }
.loot-banner.small { font-size: 2rem; }
.loot.open .loot-banner { animation: bannerpop 0.5s 0.7s cubic-bezier(.3, 1.8, .5, 1) forwards; }
@keyframes bannerpop { to { transform: rotate(-4deg) scale(1); } }
.loot-name { position: relative; font-family: var(--game); font-size: 1.8rem; color: #fff; -webkit-text-stroke: 1.5px var(--ink); paint-order: stroke fill; opacity: 0; }
.loot.open .loot-name { animation: fade 0.3s 1.2s forwards; }
@keyframes fade { to { opacity: 1; } }
.collect { position: relative; opacity: 0; pointer-events: none; transition: opacity 0.3s; } .collect.show { opacity: 1; pointer-events: auto; }
.loot .collect { box-shadow: inset 0 -7px 0 rgba(0, 0, 0, 0.22), 0 5px 0 #000; }
/* level up */
.levelup { position: fixed; inset: 0; z-index: 55; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; background: radial-gradient(circle, #ffe27a 0, #ff9d2a 55%, #c2410c 100%); }
.lu-banner { font-family: var(--game); font-size: 4rem; color: #fff; -webkit-text-stroke: 3px var(--ink); paint-order: stroke fill; text-shadow: 0 6px 0 var(--ink); animation: bannerpop2 0.6s cubic-bezier(.3, 1.8, .5, 1); }
@keyframes bannerpop2 { from { transform: scale(0) rotate(-10deg); } }
.lu-face { width: 150px; height: 150px; border-width: 6px; animation: bob 0.7s ease-in-out infinite; }
.lu-lv { font-family: var(--game); font-size: 2.2rem; color: #fff; background: var(--ink); border-radius: 12px; padding: 4px 18px; }
.lu-tap { background: none; border: 0; }
/* ME: character select */
.stage { position: relative; display: flex; flex-direction: column; align-items: center; margin-top: 4px; }
.nametag { font-family: var(--game); font-size: 1.3rem; color: #fff; background: rgba(18, 26, 58, 0.8); border-radius: 8px; padding: 2px 12px; margin-bottom: -6px; z-index: 1; }
.hero { width: 230px; height: 230px; object-fit: contain; animation: idle 2.2s ease-in-out infinite; margin-bottom: -24px; position: relative; z-index: 1; }
.hero-m { animation: idle 2.2s ease-in-out infinite; margin-bottom: 8px; }
@keyframes idle { 50% { transform: translateY(-10px); } }
.pedestal { width: 200px; height: 46px; background: #9aa6c8; border: 4px solid var(--ink); border-radius: 8px; box-shadow: inset 0 10px 0 #c9d2ea, 0 6px 0 var(--ink); display: flex; align-items: flex-end; justify-content: center; padding-bottom: 2px; }
.pedestal span { font-family: var(--game); color: var(--ink); font-size: 1.1rem; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; width: 100%; max-width: 420px; }
.stat { background: #2a3a7a; border: 4px solid var(--ink); border-radius: 12px; color: #fff; padding: 6px 4px; display: flex; flex-direction: column; align-items: center; }
.stat b { font-family: var(--game); font-weight: 400; font-size: 1.5rem; display: flex; align-items: center; gap: 4px; } .stat b .coin { width: 22px; height: 22px; }
.stat span { font-size: 0.85rem; opacity: 0.85; }
.fav { display: flex; flex-direction: column; align-items: center; gap: 8px; max-width: 420px; padding-top: 26px; margin-top: 18px; }
.fav .sticker { position: absolute; top: -20px; }
.fav-slot { position: relative; background: #3b4a86; border: 4px solid var(--ink); border-radius: 14px; padding: 10px; }
.fav-slot img { width: 170px; display: block; border-radius: 8px; }
.crown { position: absolute; top: -26px; left: 50%; transform: translateX(-50%) rotate(-8deg); font-size: 2.4rem; }
.fav-n { font-family: var(--game); font-size: 1.5rem; }
.gear { z-index: 2; background: rgba(255, 255, 255, 0.7); border-radius: 10px; }
.poppy .panel { display: flex; flex-direction: column; gap: 8px; }
.poppy h1, .poppy h3 { color: var(--ink); -webkit-text-stroke: 0; text-shadow: none; }
.sheet h2 { color: var(--ink); -webkit-text-stroke: 0; text-shadow: none; }
/* round 2 fixes after screenshots */
html { background: #8fdcff; } body { background: transparent; }
.cell { padding: 6px 4px; }
.cell img { height: 58%; flex: none; }
.cell-n, .cell-v { line-height: 1.15; flex: none; display: block; width: 100%; text-align: center; }
.cell-n { font-size: 0.78rem; }
.chest-lid { transform-origin: 16px 76px; }
.loot.open .chest-lid { transform: rotate(-24deg) translateY(-6px); }
.hero { margin-bottom: -58px; }
.pedestal { width: 150px; }
.fav { padding-top: 34px; }
.crown { top: -22px; font-size: 2rem; }

/* Round 3: 3D vault lobby fills the space between the HUD and the tabs. */
#lobby { position: fixed; left: 0; right: 0; top: calc(76px + env(safe-area-inset-top)); bottom: calc(86px + env(safe-area-inset-bottom)); background: #1d2550; overflow: hidden; z-index: 5; }
#lobby canvas { display: block; width: 100%; height: 100%; touch-action: none; -webkit-tap-highlight-color: transparent; }
.lobby-load { height: 100%; display: flex; align-items: center; justify-content: center; }
.lobby-tip { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%) rotate(-2deg); background: #ffcf3f; color: #5a3b00; border: 4px solid #5a3b00; border-radius: 16px; padding: 8px 16px; font-family: 'Lilita One', system-ui; font-size: 1.3rem; pointer-events: none; animation: tipbob 1.2s ease-in-out infinite; white-space: nowrap; }
@keyframes tipbob { 50% { transform: translateX(-50%) rotate(2deg) translateY(-4px); } }
body.lobby-on #main { display: none; }
#tabs { z-index: 6; }

/* ---------- Round 4: game layer ---------- */
.hud-name { display: flex; align-items: center; gap: 8px; }
.flame { display: inline-flex; align-items: center; gap: 2px; font-family: var(--game); font-size: 0.95rem; color: #ffcf3f; -webkit-text-stroke: 0.6px #5a1f00; }
.flame .fl { width: 16px; height: 19px; } .flame.cold { filter: grayscale(1); opacity: 0.6; }
.lv.rank { font-size: 0.72rem; white-space: nowrap; }
.modes { display: grid; grid-template-columns: 1.4fr 1fr; gap: 12px; width: 100%; max-width: 520px; }
.mode { border: var(--line); border-radius: var(--r); background: #fff; box-shadow: 0 5px 0 var(--ink); padding: 10px 6px; font-family: var(--game); font-size: 1.25rem; display: flex; flex-direction: column; align-items: center; gap: 4px; opacity: 0.7; }
.mode.big { font-size: 1.5rem; } .mode.on { background: var(--sun); opacity: 1; box-shadow: inset 0 -6px 0 rgba(0,0,0,.15), 0 5px 0 var(--ink); }
.mode .mi svg { width: 44px; height: 44px; }
.page-count { font-family: var(--game); font-size: 1.3rem; background: var(--ink); color: #fff; border-radius: 12px; padding: 2px 14px; }
.page-pair { display: flex; gap: 10px; justify-content: center; }
.page-pair .crop { width: 42vw; max-width: 220px; aspect-ratio: 5 / 7; object-fit: contain; border: var(--line); border-radius: 12px; background: #fff; box-shadow: 0 5px 0 var(--ink); }
.cond.pre { outline: 6px solid #fff; box-shadow: 0 0 0 10px var(--ink), 0 6px 0 var(--ink); }
.page-loot .loot-stage { width: 300px; }
.pop-card { position: absolute; left: 50%; bottom: 60px; width: 130px; margin-left: -65px; border: 4px solid var(--ink); border-radius: 10px; background: #fff; animation: popout 0.55s cubic-bezier(.2, .9, .3, 1.2) forwards; }
.pop-card.stack { animation: tostack 0.4s ease-in forwards; }
@keyframes popout { from { transform: translateY(80px) scale(0.3); opacity: 0; } to { transform: translateY(-120px) scale(1) rotate(var(--rot)); opacity: 1; } }
@keyframes tostack { from { transform: translateY(-120px) rotate(var(--rot)); } to { transform: translate(var(--dx), -150px) scale(0.55) rotate(var(--rot)); opacity: 0.9; } }
.page-thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; width: 100%; max-width: 360px; }
.page-thumbs img { width: 100%; aspect-ratio: 5 / 7; object-fit: contain; background: #3b4a86; border: 3px solid var(--ink); border-radius: 8px; }
.lu-rank { font-family: var(--game); font-size: 3rem; color: #ffcf3f; -webkit-text-stroke: 2px var(--ink); paint-order: stroke fill; animation: bob 1.2s ease-in-out infinite; }
.toast-b { position: fixed; left: 50%; top: calc(80px + env(safe-area-inset-top)); z-index: 90; transform: translateX(-50%); display: flex; align-items: center; gap: 10px; background: #fff8e6; border: 4px solid var(--ink); border-radius: 18px; padding: 8px 16px; box-shadow: 0 6px 0 var(--ink); font-family: var(--game); font-size: 1.2rem; white-space: nowrap; }
.toast-b .badge-art { width: 46px; height: 48px; } .toast-b b { color: #ff4d8a; } .q-ico { font-size: 2rem; }
.toast { animation: toastin 3.2s ease forwards; }
@keyframes toastin { 0% { transform: translate(-50%, -140px); } 12%, 85% { transform: translate(-50%, 0); } 100% { transform: translate(-50%, -140px); } }
.streak-box { display: flex; align-items: center; gap: 12px; background: linear-gradient(#ffb15c, #ff8a3d); border: 4px solid var(--ink); border-radius: 18px; box-shadow: 0 6px 0 var(--ink); padding: 10px 16px; width: 100%; text-align: left; color: #fff; }
.streak-box.cold { background: linear-gradient(#aab3c8, #8c93a6); }
.streak-box div { display: flex; flex-direction: column; } .streak-box b { font-family: var(--game); font-size: 1.6rem; -webkit-text-stroke: 1px var(--ink); font-weight: 400; } .streak-box small { opacity: 0.9; }
.big-flame .fl { width: 52px; height: 60px; animation: bob 1s ease-in-out infinite; }
.qlist { display: flex; flex-direction: column; gap: 10px; }
.quest { display: flex; align-items: center; gap: 10px; background: #fff; border: 3px solid var(--ink); border-radius: 14px; padding: 10px; text-align: left; }
.quest.done:not(.claimed) { background: #fff3b0; animation: shine 1.2s ease-in-out infinite alternate; } .quest.claimed { opacity: 0.6; } .quest.weekly { background: #f1e6ff; }
.q-main { flex: 1; display: flex; flex-direction: column; gap: 5px; } .q-label { font-family: var(--game); font-size: 1.25rem; }
.q-reward { font-size: 0.95rem; display: flex; align-items: center; gap: 2px; } .q-reward .coin { width: 18px; height: 18px; }
.q-n { font-family: var(--game); font-size: 1.3rem; min-width: 52px; text-align: center; }
.q-claimed { font-size: 1.8rem; color: var(--green); min-width: 52px; text-align: center; }
.btn.claim { padding: 8px 12px; font-size: 1.1rem; }
.badge-wall { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; }
.badge { background: none; border: none; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 4px; }
.badge .badge-art { width: 64px; height: 68px; filter: drop-shadow(0 4px 0 rgba(29, 42, 92, 0.6)); }
.badge:not(.got) .badge-art { opacity: 0.55; } .badge small { font-family: var(--game); font-size: 0.8rem; line-height: 1.1; }
.badge.got .badge-art { animation: bob 2.4s ease-in-out infinite; }
.rankbox { display: flex; flex-direction: column; gap: 4px; } .rankbox .lv.rank { font-size: 1rem; }
.trophy-case { background: #4a2a12; display: flex; flex-direction: column; align-items: center; gap: 0; padding-top: 18px; }
.trophy-case .sticker { position: absolute; top: -18px; font-size: 1.1rem; background: #b46bff; }
.tc-top, .tc-row { display: flex; justify-content: center; gap: 10px; padding-top: 10px; width: 100%; }
.tc-shelf { width: 100%; height: 14px; background: #b4642a; border: 3px solid #2b1606; border-radius: 4px; }
.trophy { position: relative; background: none; border: none; padding: 0 0 8px; width: 21%; }
.trophy.first { width: 34%; } .trophy img { width: 100%; aspect-ratio: 5 / 7; object-fit: contain; display: block; border-radius: 6px; }
.trophy .stand { position: absolute; left: 15%; right: 15%; bottom: 0; height: 9px; background: #c0c6d6; border: 2px solid #2b1606; border-radius: 3px; } .trophy.first .stand { background: #ffcf3f; }
.trophy.empty .q { display: flex; align-items: center; justify-content: center; aspect-ratio: 5 / 7; background: rgba(255,255,255,0.12); border: 3px dashed rgba(255,255,255,0.4); border-radius: 6px; color: #fff; font-family: var(--game); font-size: 2rem; }
.trophy[class*='r-'] { box-shadow: none; animation: none; }
.binder { position: relative; width: 100%; max-width: 520px; background: #2b3f8f; border: 4px solid var(--ink); border-radius: 18px; box-shadow: 0 6px 0 var(--ink); padding: 14px 12px 10px 30px; perspective: 1400px; }
.rings { position: absolute; left: 6px; top: 0; bottom: 50px; display: flex; flex-direction: column; justify-content: space-around; }
.rings i { width: 22px; height: 14px; border: 4px solid #c0c6d6; border-radius: 10px; background: #2b3f8f; }
.bpage { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; background: #e8ecf7; border: 3px solid var(--ink); border-radius: 10px; padding: 8px; transform-origin: left center; touch-action: pan-y; }
.pocket { position: relative; aspect-ratio: 5 / 7; background: rgba(255,255,255,0.6); border: 2px solid #9aa8cc; border-radius: 6px; padding: 3px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.pocket img { width: 100%; height: 100%; object-fit: contain; } .pocket.empty { background: rgba(255,255,255,0.35); box-shadow: inset 0 0 0 2px rgba(255,255,255,0.7); }
.pocket .qty { position: absolute; right: 2px; top: 2px; }
.pocket::after { content: ''; position: absolute; inset: 0; background: linear-gradient(120deg, rgba(255,255,255,0.35), transparent 40%); pointer-events: none; }
.turn-next { animation: turnNext 0.26s ease-in forwards; } .turn-prev { animation: turnPrev 0.26s ease-in forwards; }
.in-next { animation: inNext 0.3s ease-out; } .in-prev { animation: inPrev 0.3s ease-out; }
@keyframes turnNext { to { transform: rotateY(-90deg); filter: brightness(0.7); } }
@keyframes turnPrev { to { transform: translateX(30%) rotateY(60deg); opacity: 0; } }
@keyframes inNext { from { transform: translateX(20%); opacity: 0.2; } }
@keyframes inPrev { from { transform: rotateY(-90deg); } }
.bnav { display: flex; align-items: center; justify-content: space-between; padding-top: 10px; }
.bnum { font-family: var(--game); color: #fff; font-size: 1.3rem; -webkit-text-stroke: 1px var(--ink); }
.barrow { border: var(--line); border-radius: 14px; background: var(--sun); box-shadow: 0 4px 0 var(--ink); font-size: 1.4rem; width: 60px; height: 48px; }
.barrow:disabled { opacity: 0.35; }
.page-loot .loot-banner { font-size: 2.1rem; text-align: center; max-width: 92vw; line-height: 1.1; }
.page-loot .loot-banner.small { font-size: 1.8rem; }

/* ---------- Round 5: Pet Heist (silver pet coins are game only, gold stays real card value) ---------- */
.hud-coins.pet { border-color: #c9d1dc; padding-left: 8px; }
.hud-coins.pet .pet-n, .hz-coins b { font-family: var(--game); font-size: 1.25rem; color: #e6ebf2; }
.silver-i, .hz-silver { width: 22px; height: 22px; border-radius: 7px; background: radial-gradient(circle at 35% 35%, #ffffff, #b8c2cf 60%, #8a95a5); border: 3px solid #3a4352; display: inline-block; }
@media (max-width: 380px) { .hud-coins.pet .pet-n { font-size: 1.05rem; } .hud-coins { padding: 3px 6px; } }
.hz-ui { position: absolute; inset: 0; pointer-events: none; font-family: var(--game); }
.hz-ui button, .hz-shop { pointer-events: auto; }
.hz-top { position: absolute; top: 8px; left: 8px; right: 8px; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.hz-exit { border: 3px solid #121a3a; border-radius: 12px; background: #fff; font-family: var(--game); font-size: 1.05rem; padding: 6px 12px; box-shadow: 0 4px 0 #121a3a; }
.hz-coins { display: flex; align-items: center; gap: 6px; background: #121a3a; border: 3px solid #c9d1dc; border-radius: 12px; padding: 4px 10px; color: #fff; }
.hz-coins small { color: #9fe0a8; font-size: 0.85rem; }
.hz-power { position: absolute; top: 58px; left: 8px; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.hz-chip { border: 3px solid #121a3a; border-radius: 12px; background: #fff; font-family: var(--game); font-size: 0.95rem; padding: 3px 9px; box-shadow: 0 3px 0 #121a3a; color: var(--ink); line-height: 1.3; }
.hz-chip.hz-boost { background: #7cf0ff; } .hz-chip.hz-decoy { background: #fff8e7; } .hz-chip.hz-key { background: #ffcf3f; }
.hz-chip:disabled { opacity: 0.55; }
.hz-hint { background: rgba(18, 26, 58, 0.8); color: #fff; border-radius: 10px; padding: 4px 8px; font-size: 0.9rem; }
.hz-act { position: absolute; right: 18px; bottom: 18px; width: 116px; height: 116px; border-radius: 50%; border: 5px solid #121a3a; font-family: var(--game); font-size: 1.7rem; color: #fff; -webkit-text-stroke: 1px #121a3a; box-shadow: 0 7px 0 #121a3a; background: #ff4d8d; animation: pulse 0.5s ease-in-out infinite alternate; }
.hz-act.drop { background: #3ddc84; } .hz-act.key { background: #ffcf3f; font-size: 1.4rem; }
.hz-act:active { transform: translateY(5px); box-shadow: 0 2px 0 #121a3a; }
.hz-banner { position: absolute; left: 50%; top: 42%; transform: translate(-50%, -50%) scale(0); font-size: 1.55rem; color: #fff; -webkit-text-stroke: 2px #121a3a; paint-order: stroke fill; text-shadow: 0 4px 0 #121a3a; text-align: center; width: 92%; transition: transform 0.2s cubic-bezier(.3, 1.8, .5, 1); }
.hz-banner.show { transform: translate(-50%, -50%) scale(1); }
.hz-banner.gold { color: #ffcf3f; } .hz-banner.red { color: #ff5a5a; } .hz-banner.blue { color: #7cf0ff; }
.hz-banner.caught { font-size: 3.4rem; animation: bonk 0.4s ease-in-out 2; }
@keyframes bonk { 0%, 100% { transform: translate(-50%, -50%) rotate(0); } 30% { transform: translate(-50%, -50%) rotate(-8deg) scale(1.15); } 70% { transform: translate(-50%, -50%) rotate(6deg); } }
.hz-shop { position: absolute; inset: 0; background: rgba(10, 14, 34, 0.55); display: flex; align-items: flex-end; justify-content: center; font-family: inherit; }
.hz-shop-in { position: relative; width: 100%; max-width: 520px; background: var(--bg); border: 4px solid #121a3a; border-radius: 24px 24px 0 0; padding: 16px; text-align: center; }
.hz-shop-rows { display: flex; flex-direction: column; gap: 10px; }
.hz-row { display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto auto; gap: 2px 10px; align-items: center; background: #fff; border: 3px solid #121a3a; border-radius: 14px; padding: 8px 10px; text-align: left; }
.hz-row-n { font-size: 1.2rem; } .hz-row-s { font-family: 'Fredoka', system-ui; font-size: 0.95rem; grid-row: 2; }
.hz-row .btn { grid-row: 1 / span 2; grid-column: 2; font-size: 1.1rem; padding: 8px 14px; }
/* Round 6: top tiers, Spawn Pad, Vault Keeper */
.hz-chip.hz-charm { background: #ff9ae0; } .hz-chip.hz-lucky { background: #3ddc84; color: #fff; -webkit-text-stroke: 0.6px #121a3a; animation: pulse 0.6s ease-in-out infinite alternate; } .hz-chip.hz-next { background: #e8fbff; font-size: 0.85rem; }
.hz-chip[hidden] { display: none; }
.hz-banner.t-legendary { color: #ffcf3f; } .hz-banner.t-mythic { color: #ff5fd2; }
.hz-banner.t-infernal { color: #ff7a1c; text-shadow: 0 0 14px #ff4a1c, 0 4px 0 #3a0800; }
.hz-banner.t-cosmic { color: #c9b8ff; text-shadow: 0 0 16px #6a4dff, 0 4px 0 #0a0630; }
.hz-banner.divine { font-size: 2.6rem; color: #fff6c8; text-shadow: 0 0 20px #ffd75e, 0 0 40px #ffcf3f, 0 5px 0 #7a5a00; }
.hz-arrow { position: absolute; left: 0; top: 0; font-size: 2.6rem; -webkit-text-stroke: 2px #121a3a; text-shadow: 0 0 10px currentColor; transform-origin: 50% 50%; pointer-events: none; transition: color 0.3s; }
.hz-arrow[hidden] { display: none; }
.hz-flash { position: absolute; inset: 0; pointer-events: none; opacity: 0; background: radial-gradient(circle, #fffbe0 0%, #ffd75e 55%, rgba(255, 207, 63, 0) 100%); }
.hz-flash.go { animation: goldflash 1.6s ease-out; }
@keyframes goldflash { 0% { opacity: 0; } 12% { opacity: 0.95; } 30% { opacity: 0.4; } 45% { opacity: 0.8; } 100% { opacity: 0; } }
.badge-divine .badge-art, .toast-b .badge-divine { animation: divineglow 1.2s ease-in-out infinite alternate; }
@keyframes divineglow { from { filter: drop-shadow(0 0 2px #ffd75e) brightness(1); } to { filter: drop-shadow(0 0 12px #ffcf3f) brightness(1.2); transform: rotate(-4deg) scale(1.06); } }
.kp-face { width: 96px; height: 96px; }
.kp-log { width: 100%; display: flex; flex-direction: column; gap: 8px; max-height: 38vh; overflow-y: auto; padding: 4px; }
.kp-msg { font-family: var(--game); font-size: 1.35rem; line-height: 1.25; border: 3px solid var(--ink); border-radius: 18px; padding: 8px 12px; max-width: 88%; text-align: left; }
.kp-msg.kid { align-self: flex-end; background: #7cf0ff; } .kp-msg.keeper { align-self: flex-start; background: #fff3c4; }
.kp-asks { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; width: 100%; }
.kp-asks .btn { font-size: 1.05rem; padding: 10px 6px; min-height: 58px; }
.kp-row { display: flex; gap: 8px; width: 100%; align-items: center; }
.kp-row input { flex: 1; min-width: 0; font-size: 1.3rem; padding: 12px; border: 3px solid var(--ink); border-radius: 16px; font-family: inherit; }
.kp-mic { width: 64px; height: 64px; border-radius: 50%; font-size: 1.8rem; padding: 0; }
.kp-flag { background: #ffe1e1 !important; }
.red-dot { display: inline-block; width: 14px; height: 14px; border-radius: 50%; background: #ff3b3b; border: 2px solid #fff; margin-left: 6px; vertical-align: middle; }
.kp-row .btn { flex: none; padding: 10px 14px; }
/* Round 7: HEIST MAP, levels, sprint, treadmill */
.lv-map { position: absolute; inset: 0; overflow-y: auto; background: linear-gradient(#8fdcff, #bff0a0); font-family: var(--game); padding: 64px 12px 24px; text-align: center; }
.lv-title { font-size: 2.4rem; color: #fff; -webkit-text-stroke: 2px #121a3a; margin: 0; }
.lv-sub { color: #121a3a; margin: 4px 0 10px; } .lv-sub.small { font-size: 0.9rem; }
.lv-path { display: flex; flex-direction: column; gap: 10px; max-width: 560px; margin: 0 auto; }
.lv-row { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; } .lv-row.rev { direction: rtl; }
.lv-tile { position: relative; direction: ltr; aspect-ratio: 1; border: 3px solid #121a3a; border-radius: 14px; background: #ffcf3f; box-shadow: 0 4px 0 #121a3a; font-family: var(--game); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 0; }
.lv-tile b { font-size: 1.4rem; } .lv-tile .lv-stars { font-size: 0.7rem; color: #a35a00; letter-spacing: -1px; }
.lv-tile.locked { background: #b9bfcc; color: #6b7080; } .lv-tile.boss { background: #ff7a5c; } .lv-tile.boss.locked { background: #c9a9a0; }
.lv-tile.next { animation: pulse 0.6s ease-in-out infinite alternate; background: #3ddc84; }
.lv-crown { position: absolute; top: -10px; right: -6px; font-style: normal; font-size: 1.1rem; }
.lv-bar { display: flex; gap: 10px; justify-content: center; margin: 14px 0 6px; flex-wrap: wrap; }
.lv-big { border: 4px solid #121a3a; border-radius: 16px; background: #ffcf3f; font-family: var(--game); font-size: 1.25rem; padding: 10px 16px; box-shadow: 0 5px 0 #121a3a; pointer-events: auto; }
.lv-big.free { background: #3ddc84; } .lv-big.tm { background: #7cf0ff; }
.lv-bolt { background: #fff27a; }
.hz-exit.lv-open { font-size: 0.9rem; padding: 5px 8px; }
.lv-goal { position: absolute; top: 58px; left: 50%; transform: translateX(-50%); background: #fff; border: 3px solid #121a3a; border-radius: 12px; padding: 4px 12px; font-size: 1rem; box-shadow: 0 3px 0 #121a3a; white-space: nowrap; max-width: 94vw; overflow: hidden; text-overflow: ellipsis; }
.lv-meter { position: absolute; left: 10px; bottom: 18px; display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
.lv-meter b, .lv-meter i, .lv-meter em { background: #fff27a; border: 3px solid #121a3a; border-radius: 10px; padding: 2px 8px; font-style: normal; font-weight: normal; box-shadow: 0 3px 0 #121a3a; }
.lv-meter i { background: #fff; } .lv-meter em { background: #ff9a2e; color: #fff; }
.lv-sprint { position: absolute; right: 18px; bottom: 18px; width: 110px; height: 110px; border-radius: 50%; border: 5px solid #121a3a; background: #ff4d8d; color: #fff; font-family: var(--game); font-size: 1.4rem; -webkit-text-stroke: 1px #121a3a; box-shadow: 0 6px 0 #121a3a; overflow: hidden; pointer-events: auto; }
.lv-sprint.free { right: 146px; width: 84px; height: 84px; font-size: 1.05rem; }
.lv-sprint:disabled { background: #9aa3b5; } .lv-sprint.on { background: #ffcf3f; }
.lv-ring { position: absolute; inset: -5px; border-radius: 50%; background: conic-gradient(rgba(255,255,255,0.55) var(--p, 100%), transparent 0); pointer-events: none; }
.lv-sprint:not(:disabled) .lv-ring { display: none; }
.lv-warp, .lv-boost { position: absolute; right: 140px; bottom: 30px; border: 4px solid #121a3a; border-radius: 14px; background: #6a4dff; color: #fff; font-family: var(--game); font-size: 1.1rem; padding: 8px 12px; box-shadow: 0 4px 0 #121a3a; pointer-events: auto; }
.lv-boost { background: #7cf0ff; color: #121a3a; bottom: 84px; }
.lv-result { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); background: #fff; border: 5px solid #121a3a; border-radius: 22px; padding: 18px 22px; text-align: center; box-shadow: 0 8px 0 #121a3a; pointer-events: auto; width: min(92vw, 420px); }
.lv-result h2 { margin: 0; font-size: 2rem; color: #ffcf3f; -webkit-text-stroke: 2px #121a3a; }
.lv-bigstars { font-size: 3rem; color: #ffcf3f; -webkit-text-stroke: 2px #121a3a; letter-spacing: 4px; }
.lv-gift { color: #b46bff; font-size: 1.2rem; }
.lv-dial { display: flex; gap: 8px; }
#lobby.lv-zoom::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: repeating-conic-gradient(from 0deg at 50% 50%, rgba(255,255,255,0.18) 0 2deg, transparent 2deg 12deg); -webkit-mask: radial-gradient(circle, transparent 35%, #000 75%); mask: radial-gradient(circle, transparent 35%, #000 75%); }
.tm-panel { position: absolute; top: 64px; left: 50%; transform: translateX(-50%); background: #fff; border: 4px solid #121a3a; border-radius: 16px; padding: 10px 14px; width: min(92vw, 420px); text-align: center; box-shadow: 0 5px 0 #121a3a; pointer-events: auto; }
.tm-level { font-size: 1.6rem; }
.tm-bar { height: 22px; border: 3px solid #121a3a; border-radius: 12px; background: #e6e9f2; overflow: hidden; margin: 6px 0; } .tm-bar i { display: block; height: 100%; background: linear-gradient(90deg, #ffcf3f, #ff9a2e); transition: width 0.3s; }
.tm-note { font-size: 0.85rem; color: #555; }
.tm-up { margin-top: 8px; border: 3px solid #121a3a; border-radius: 12px; background: #3ddc84; font-family: var(--game); font-size: 1rem; padding: 6px 10px; box-shadow: 0 3px 0 #121a3a; } .tm-up:disabled { background: #c8ccd6; }
.tm-run { position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); width: 150px; height: 150px; border-radius: 50%; border: 6px solid #121a3a; background: #ff4d4d; color: #fff; font-family: var(--game); font-size: 2.2rem; -webkit-text-stroke: 1.5px #121a3a; box-shadow: 0 8px 0 #121a3a; pointer-events: auto; touch-action: none; user-select: none; -webkit-user-select: none; }
.tm-run:active { transform: translateX(-50%) translateY(6px); box-shadow: 0 2px 0 #121a3a; }
.tm-pops { position: absolute; inset: 0; pointer-events: none; }
.tm-pop { position: absolute; left: 50%; top: 42%; font-size: 1.8rem; color: #ffcf3f; -webkit-text-stroke: 1.5px #121a3a; animation: tmpop 0.9s ease-out forwards; } .tm-pop.big { font-size: 2.6rem; left: 50%; transform: translateX(-50%); color: #3ddc84; }
@keyframes tmpop { from { opacity: 1; translate: 0 0; } to { opacity: 0; translate: 0 -90px; } }
/* ---------- Round 8: Brainrot Mixer, Idea Workshop, Idea Board, Brainrot Book ---------- */
.sticker.blue { background: #2f6fd6; } .sticker.purple { background: #9b4dff; }
.mixer-sheet .sheet-in, .workshop-sheet .sheet-in, .book-sheet .sheet-in { max-height: 96vh; }
.mx-machine { position: relative; width: 170px; height: 190px; margin: 4px auto; }
.mx-funnel { position: absolute; left: 25px; top: 0; width: 120px; height: 0; border-top: 54px solid #ffcf3f; border-left: 30px solid transparent; border-right: 30px solid transparent; filter: drop-shadow(0 4px 0 var(--ink)); }
.mx-tank { position: absolute; left: 25px; top: 54px; width: 120px; height: 120px; background: #3ddc84; border: var(--line); border-radius: 22px 22px 30px 30px; overflow: hidden; }
.mx-goo { position: absolute; left: 14px; right: 14px; top: 18px; bottom: 18px; border-radius: 16px; background: linear-gradient(180deg, #ff5fd2, #b46bff); animation: goo 2s ease-in-out infinite alternate; border: 3px solid var(--ink); }
.mx-bubbles i { position: absolute; bottom: 20px; width: 12px; height: 12px; border-radius: 50%; background: #fff; opacity: .8; animation: bub 1.6s linear infinite; }
.mx-bubbles i:nth-child(1) { left: 30px; } .mx-bubbles i:nth-child(2) { left: 58px; animation-delay: .5s; } .mx-bubbles i:nth-child(3) { left: 82px; animation-delay: 1s; }
.mx-crank { position: absolute; right: 0; top: 90px; width: 28px; height: 8px; background: #c4281c; border: 3px solid var(--ink); transform-origin: left center; animation: crank 3s linear infinite; }
.mx-crank::after { content: ''; position: absolute; right: -10px; top: -8px; width: 16px; height: 16px; border-radius: 50%; background: #ff4d4d; border: 3px solid var(--ink); }
.mx-steam i { position: absolute; top: -10px; width: 20px; height: 20px; border-radius: 50%; background: rgba(255,255,255,.85); animation: steam 1.8s ease-out infinite; }
.mx-steam i:nth-child(1) { left: 60px; } .mx-steam i:nth-child(2) { left: 85px; animation-delay: .6s; } .mx-steam i:nth-child(3) { left: 105px; animation-delay: 1.2s; }
.mx-machine.shake { animation: mxshake .12s linear infinite; } .mx-machine.shake .mx-crank { animation-duration: .4s; } .mx-machine.shake .mx-steam i { animation-duration: .6s; }
@keyframes goo { to { transform: translateY(8px) scaleX(1.06); } } @keyframes bub { from { transform: translateY(0); opacity: .9; } to { transform: translateY(-80px); opacity: 0; } }
@keyframes crank { to { transform: rotate(360deg); } } @keyframes steam { from { transform: translateY(0) scale(.5); opacity: .9; } to { transform: translateY(-50px) scale(1.4); opacity: 0; } }
@keyframes mxshake { 0% { transform: translate(-3px, 0) rotate(-2deg); } 50% { transform: translate(3px, -2px) rotate(2deg); } 100% { transform: translate(-3px, 0) rotate(-2deg); } }
.mx-slots { display: flex; gap: 10px; justify-content: center; }
.mx-slot { width: 86px; height: 86px; border: var(--line); border-radius: 18px; background: #fff; font-size: 2.3rem; display: flex; flex-direction: column; align-items: center; justify-content: center; border-style: dashed; }
.mx-slot.on { border-style: solid; background: #fff1b8; } .mx-slot small { font-size: .7rem; max-width: 80px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.mx-cost { font-size: 1.1rem; margin: 0; }
.mx-group { width: 100%; } .mx-group h3 { margin: 6px 0 2px; text-align: left; }
.mx-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); gap: 8px; }
.mx-ing { border: var(--line); border-radius: 16px; background: #fff; padding: 6px 2px; display: flex; flex-direction: column; align-items: center; box-shadow: 0 4px 0 var(--c, var(--ink)); }
.mx-ing span { font-size: 2.2rem; line-height: 1.1; } .mx-ing small { font-size: .78rem; font-weight: 700; }
.mx-ing.wild { background: #fff1b8; }
.mix-result { --t: var(--rc); }
.mix-result .x { position: absolute; top: calc(12px + env(safe-area-inset-top)); right: 14px; z-index: 3; font-size: 1.6rem; background: #fff; border: var(--line); border-radius: 50%; width: 48px; height: 48px; }
.mx-stage { position: relative; width: min(92vw, 420px); }
.mx-rarity { position: relative; font-family: var(--game); font-size: 2rem; color: #fff; background: var(--rc); border: 4px solid var(--ink); border-radius: 12px; padding: 2px 20px; transform: rotate(-3deg); -webkit-text-stroke: 1.5px var(--ink); paint-order: stroke fill; }
.mx-name { position: relative; font-family: var(--game); font-size: clamp(2rem, 9vw, 3.4rem); color: #fff; text-align: center; line-height: 1.05; max-width: 94vw; -webkit-text-stroke: 2px var(--ink); paint-order: stroke fill; text-shadow: 0 5px 0 var(--ink); }
.mx-chant { position: relative; color: #fff; font-size: 1.2rem; max-width: 88vw; text-align: center; font-style: italic; }
.mx-btns { position: relative; display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; max-width: 94vw; }
.ws-face { position: relative; } .ws-face .hardhat { position: absolute; top: -18px; left: 50%; transform: translateX(-50%); font-size: 2.4rem; }
.ws-dots { display: flex; gap: 6px; justify-content: center; } .ws-dots i { width: 14px; height: 14px; border-radius: 50%; border: 3px solid var(--ink); background: #fff; } .ws-dots i.on { background: var(--sun); }
.ws-body { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.ws-q { font-size: 1.6rem; margin: 4px 0; }
.ws-pics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; width: 100%; } .ws-pics.small { grid-template-columns: repeat(4, 1fr); } .ws-pics.small .btn { padding: 10px 4px; font-size: 1rem; }
.ws-pic { border: var(--line); border-radius: 20px; background: #fff; padding: 12px 4px; box-shadow: 0 6px 0 var(--ink); display: flex; flex-direction: column; align-items: center; }
.ws-pic span { font-size: 3rem; } .ws-pic small { font-size: 1rem; font-weight: 700; }
.ws-pic.on, .btn.on, .ws-tier.on { background: #fff1b8; outline: 4px solid var(--sun); }
.ws-colors { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; } .ws-col { width: 50px; height: 50px; border-radius: 50%; border: var(--line); } .ws-col.on { outline: 5px solid var(--sun); transform: scale(1.1); }
.ws-tiers { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; } .ws-tier { border: 3px solid var(--ink); border-radius: 12px; background: #fff; padding: 6px 10px; font-weight: 700; box-shadow: 0 3px 0 var(--rc); }
.ws-nav { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; } .ws-nav .btn.huge { min-width: 150px; }
.ws-preview { width: 100%; min-height: 200px; display: flex; justify-content: center; background: #1d2550; border: var(--line); border-radius: 20px; overflow: hidden; }
.ws-map { width: 100%; max-width: 420px; image-rendering: pixelated; }
.ws-sketch { font-size: .95rem; margin: 0; opacity: .8; }
.ws-stamp, .bp-stamp { display: inline-block; font-family: var(--game); color: #c4281c; border: 4px solid #c4281c; border-radius: 10px; padding: 2px 12px; transform: rotate(-8deg); font-size: 1.8rem; background: rgba(255,255,255,.7); }
.ws-stamp { animation: bannerpop .5s cubic-bezier(.3, 1.8, .5, 1); } .ws-stamp.poppy { color: #9b4dff; border-color: #9b4dff; }
.idea-btn { margin: 4px 0; background: var(--sun); }
.idea-board { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; width: 100%; }
.bp-card { position: relative; background: #2f6fd6; background-image: linear-gradient(rgba(255,255,255,.15) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.15) 1px, transparent 1px); background-size: 16px 16px; color: #fff; border: var(--line); border-radius: 14px; padding: 10px; text-align: left; min-height: 110px; display: flex; flex-direction: column; gap: 4px; }
.bp-card b { font-size: 1.2rem; } .bp-type { font-size: .85rem; opacity: .9; }
.bp-card .bp-stamp { font-size: 1rem; align-self: flex-end; margin-top: auto; }
.bp-card.s-approved .bp-stamp { color: #2fcf74; border-color: #2fcf74; } .bp-card.s-building .bp-stamp { color: #ff8a3d; border-color: #ff8a3d; }
.bp-card.s-live { background-color: #e6a800; } .bp-card.s-live .bp-stamp { color: #9b4dff; border-color: #9b4dff; } .bp-card.s-not_now { opacity: .7; } .bp-card.s-not_now .bp-stamp { color: #555; border-color: #555; }
.bp-by { font-weight: 700; background: #fff; color: var(--ink); border-radius: 8px; padding: 1px 8px; align-self: flex-start; } .bp-by.big { position: relative; font-size: 1.4rem; }
.idea-live .hero { position: relative; }
.book-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; width: 100%; }
.book-card { background: #fff; border: var(--line); border-radius: 16px; padding: 8px; display: flex; flex-direction: column; align-items: center; gap: 2px; box-shadow: 0 5px 0 var(--rc); }
.book-pic { width: 120px; height: 120px; background: #1d2550; border-radius: 12px; } .book-card b { font-size: 1.05rem; line-height: 1.1; } .book-card p { font-size: .85rem; margin: 2px 0; font-style: italic; }
.book-tier { font-weight: 700; color: var(--rc); -webkit-text-stroke: .4px var(--ink); } .book-row { display: flex; gap: 8px; align-items: center; } .book-row .btn { padding: 4px 10px; font-size: 1rem; }
.pi-card { text-align: left; } .pi-card .bp-stamp { font-size: 1rem; } .pi-spec { white-space: pre-wrap; font-size: .85rem; background: #fff; padding: 8px; border-radius: 8px; max-height: 50vh; overflow: auto; }
.poppy textarea { width: 100%; font-family: inherit; font-size: 1rem; border: 3px solid var(--ink); border-radius: 10px; padding: 6px; }
.mix-result { justify-content: flex-start; padding-top: calc(70px + env(safe-area-inset-top)); overflow-y: auto; gap: 6px; }
.hz-mixer { position: absolute; left: 10px; bottom: calc(100px + env(safe-area-inset-bottom)); pointer-events: auto; background: #b46bff; color: #fff; -webkit-text-stroke: 1px #121a3a; paint-order: stroke fill; font-size: 1.2rem; padding: 10px 14px; }
.mixer-sheet .sheet-in > *, .workshop-sheet .sheet-in > *, .book-sheet .sheet-in > * { flex-shrink: 0; }
.pi-card .bp-stamp { align-self: flex-start; }

/* Round 9: Bray's Library - warm wood, books, a shelf of his Jellycats */
body.bray-on { background: #f3e3c3; }
body.bray-on #scenery { display: none; }
.bray { padding: 14px 14px 40px; max-width: 760px; margin: 0 auto; }
.bray-top { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.bray-top .btn { font-size: 1.05rem; padding: 8px 14px; }
.bray-title { margin: 6px 0; font-size: 2.2rem; color: #ffcf3f; -webkit-text-stroke: 2px #4a2a12; }
.bray-sign { margin: 10px auto 0; width: fit-content; background: #7a4a22; color: #fff3d6; border: 4px solid #4a2a12; border-radius: 14px; padding: 8px 18px; font-size: 1.4rem; font-weight: 700; box-shadow: 0 5px 0 #4a2a12; }
.jelly-shelf { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 16px; padding: 14px 12px 22px; border: 4px solid #4a2a12; border-radius: 16px; background: #c98d55; box-shadow: inset 0 0 0 6px #a8703f, 0 6px 0 #4a2a12; }
@media (min-width: 600px) { .jelly-shelf { grid-template-columns: repeat(3, 1fr); } }
html:has(body.bray-on) { background: #f3e3c3; }
.jelly-card { border: 4px solid #4a2a12; border-radius: 16px; background: #fff8ea; padding: 6px 6px 10px; display: flex; flex-direction: column; align-items: center; gap: 6px; box-shadow: 0 6px 0 #4a2a12; }
.jelly-card:active { transform: translateY(4px) scale(0.97); box-shadow: 0 2px 0 #4a2a12; }
.jelly-card img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 10px; background: #eee; }
.jelly-name { font-size: 1.25rem; font-weight: 700; color: #4a2a12; }
.bray-say { text-align: center; font-size: 1.15rem; color: #4a2a12; }
.jelly-big { max-width: min(86vw, 420px); max-height: 58vh; border: 5px solid #4a2a12; border-radius: 18px; box-shadow: 0 8px 0 #4a2a12; background: #fff; }
.jelly-big-name { font-size: 2rem; margin: 12px 0 0; color: #4a2a12; }
.jelly-input { max-width: 260px; margin: 0; }
.bray .row { display: flex; gap: 10px; align-items: center; justify-content: center; flex-wrap: wrap; margin: 10px 0 16px; }
.who-tile.bray { background: #c98d55; }
/* Round 10: Bray's Grand Library skin. Deep wood, dark green leather, brass, cream paper. EB Garamond (OFL, self-hosted) for headings. */
@font-face { font-family: 'EB Garamond'; src: url('/fonts/eb-garamond.woff2') format('woff2'); font-weight: 400 800; font-display: swap; }
body.bray-on { --acc: #c9a23a; --wood: #3a2314; --wood2: #57341c; --leather: #1f3a2a; --paper: #f4ead2; --pink: #6b2a1e; background: radial-gradient(ellipse at 50% 0%, #6b4424 0%, #3a2314 55%, #24150b 100%) fixed; color: var(--paper); }
html:has(body.bray-on) { background: #24150b; }
body.bray-on .lib { font-family: system-ui, -apple-system, sans-serif; font-weight: 500; }
.lib .bray-title, .lib .lib-h, .lib .nook-h, .lib .jelly-big-name { font-family: 'EB Garamond', Georgia, serif; -webkit-text-stroke: 0; color: var(--acc); letter-spacing: 0.02em; }
.lib .bray-title { font-size: 2.3rem; font-weight: 700; text-shadow: 0 2px 0 #000a; }
.lib-h { font-size: 1.7rem; margin: 22px 0 8px; border-bottom: 2px solid color-mix(in srgb, var(--acc) 50%, transparent); padding-bottom: 4px; }
.lib .bray-say { color: var(--paper); font-size: 1.05rem; }
.btn.lb { font-family: 'EB Garamond', Georgia, serif; font-size: 1.2rem; padding: 10px 16px; background: var(--leather); color: var(--paper); border: 2px solid var(--acc); border-radius: 10px; box-shadow: 0 4px 0 #0008; }
.btn.lb:active { box-shadow: 0 1px 0 #0008; }
.btn.lb.gold { background: var(--acc); color: #24150b; font-weight: 700; }
.btn.lb.big { display: flex; flex-direction: column; align-items: center; font-size: 1.8rem; padding: 22px 12px; flex: 1; }
.btn.lb.big small { font-size: 0.95rem; font-family: system-ui, sans-serif; }
.lib-hud { display: flex; gap: 10px; margin: 10px 0; }
.lib-rank, .lib-stat { background: var(--paper); color: var(--wood); border: 2px solid var(--acc); border-radius: 10px; padding: 8px 10px; }
.lib-rank { flex: 1; display: flex; flex-direction: column; gap: 4px; } .lib-rank b { font-family: 'EB Garamond', Georgia, serif; font-size: 1.3rem; }
.lib-stat { display: flex; flex-direction: column; align-items: center; min-width: 64px; }
.lib-stat .num { font-family: 'Lilita One', 'Fredoka', sans-serif; font-size: 1.7rem; line-height: 1; }
.lib-bar { height: 10px; background: #0003; border-radius: 6px; overflow: hidden; } .lib-bar i { display: block; height: 100%; background: var(--acc); }
.nook { background: linear-gradient(#2a4a36, var(--leather)); border: 2px solid var(--acc); border-radius: 14px; padding: 12px; box-shadow: 0 0 40px #ffb54a33; }
.nook-h { font-size: 1.4rem; margin-bottom: 8px; }
.nook-row { display: flex; gap: 12px; align-items: center; } .nook-info { flex: 1; display: flex; flex-direction: column; gap: 4px; }
.nook-btns { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-top: 10px; }
.bcover { width: 64px; height: 96px; object-fit: cover; border-radius: 4px; box-shadow: 0 4px 10px #0008; background: #ddd; }
.bcover.none { display: flex; align-items: center; justify-content: center; text-align: center; color: var(--paper); font-family: 'EB Garamond', Georgia, serif; font-size: 0.8rem; padding: 4px; box-sizing: border-box; }
.bcover.sm { width: 36px; height: 54px; } .bcover.big { width: 150px; height: 225px; font-size: 1.2rem; }
.lib-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; } .lib-actions .btn { flex: 1; }
.lib-sort { display: flex; gap: 8px; flex-wrap: wrap; }
.chip.lchip { background: var(--paper); color: var(--wood); border-color: var(--acc); } .chip.lchip.on { background: var(--acc); color: #24150b; }
.bookcase { background: var(--wood); border: 6px solid var(--wood2); border-radius: 6px; padding: 8px 8px 0; box-shadow: inset 0 0 30px #000a; }
.shelf-row { display: flex; align-items: flex-end; gap: 2px; min-height: 150px; padding: 0 4px; border-bottom: 12px solid var(--wood2); margin-bottom: 8px; overflow: hidden; box-shadow: 0 6px 6px -4px #000a; }
.spine { flex: none; border: 0; border-radius: 3px 3px 0 0; padding: 4px 0; display: flex; align-items: center; justify-content: center; box-shadow: inset 3px 0 0 #fff2, inset -3px 0 0 #0004; color: var(--paper); }
.spine span { writing-mode: vertical-rl; transform: rotate(180deg); font-family: 'EB Garamond', Georgia, serif; font-size: 0.78rem; font-weight: 700; max-height: 92%; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.spine:not(.dust)::after { content: ''; position: absolute; }
.spine.done { box-shadow: inset 3px 0 0 #fff2, inset -3px 0 0 #0004, inset 0 -8px 0 var(--acc); }
.spine.dust { background: transparent; border: 1px dashed #f4ead233; }
.want { display: flex; flex-direction: column; gap: 6px; }
.want-row { display: flex; gap: 10px; align-items: center; background: var(--paper); color: var(--wood); border: 2px solid var(--acc); border-radius: 10px; padding: 6px 10px; font-size: 1.05rem; text-align: left; }
.lib .jelly-shelf.gallery { background: linear-gradient(#ffffff22, #ffffff08); border: 3px solid var(--acc); box-shadow: inset 0 0 0 4px var(--wood2), 0 0 30px #ffe6a022; }
.lib .jelly-card { background: #ffffff18; border: 2px solid #ffffff55; box-shadow: none; }
.lib .jelly-name.plate { background: linear-gradient(#e2c26a, #a8822c); color: #2a1a08; font-family: 'EB Garamond', Georgia, serif; border-radius: 4px; padding: 1px 10px; font-size: 1.1rem; }
.lib .jelly-big { border-color: var(--acc); box-shadow: 0 8px 30px #000a; }
.lib-quests { display: grid; gap: 8px; } .lquest { background: var(--paper); color: var(--wood); border: 2px solid var(--acc); border-radius: 10px; padding: 8px 10px; display: grid; gap: 4px; } .lquest.claimed { opacity: 0.6; }
.lib-badges { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; } @media (min-width: 600px) { .lib-badges { grid-template-columns: repeat(4, 1fr); } }
.lbadge { border: 2px dashed #f4ead255; border-radius: 10px; padding: 8px; display: flex; flex-direction: column; opacity: 0.55; } .lbadge.got { border: 2px solid var(--acc); background: #0003; opacity: 1; } .lbadge b { font-family: 'EB Garamond', Georgia, serif; color: var(--acc); font-size: 1.15rem; }
.fam { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; } .fam-kid { background: var(--paper); color: var(--wood); border: 2px solid var(--acc); border-radius: 10px; padding: 8px; display: flex; flex-direction: column; } .fam-kid b { font-family: 'EB Garamond', Georgia, serif; font-size: 1.3rem; }
.chip.accent-brass { border-color: #c9a23a; } .chip.accent-emerald { border-color: #2f8a5a; } .chip.accent-burgundy { border-color: #8a2a3a; }
.stars { display: flex; gap: 4px; justify-content: center; } .star { background: none; border: 0; font-size: 2.2rem; color: #f4ead244; } .star.on { color: var(--acc); }
.scan-video { width: min(92vw, 480px); aspect-ratio: 4 / 3; object-fit: cover; border: 3px solid var(--acc); border-radius: 12px; background: #000; }
.scan-choice { display: flex; gap: 12px; width: min(92vw, 480px); margin: 10px 0 18px; }
.book-page .lib-h { border: 0; text-align: center; }
.fly-spine { position: fixed; left: 50%; top: 40%; width: 26px; height: 120px; border-radius: 3px; z-index: 50; animation: flyspine 0.9s ease-in forwards; box-shadow: 0 4px 12px #000a; }
@keyframes flyspine { 0% { transform: translate(-50%, -50%) rotate(-20deg) scale(1.4); } 100% { transform: translate(-50%, 60vh) rotate(0deg) scale(0.6); opacity: 0.2; } }
/* Poppy can switch Bray to Laio's bright skin */
body.bray-on.bray-bright { --acc: #ffcf3f; --wood: #1d2a5c; --wood2: #5b8cff; --leather: #5b8cff; --paper: #fff; background: #8fdcff; color: var(--ink); }
body.bray-bright .lib .bray-say { color: var(--ink); }
.lib h1, .lib h2 { text-shadow: 0 2px 0 #0009; -webkit-text-stroke: 0; }
body.bray-on #main { bottom: 0; padding-bottom: calc(24px + env(safe-area-inset-bottom)); }
body.bray-on #lobby.lib3d { top: 0; bottom: 0; background: #1a0f08; }
.lib3d-bar { position: absolute; top: calc(10px + env(safe-area-inset-top)); left: 10px; right: 10px; display: flex; gap: 8px; flex-wrap: wrap; z-index: 2; }
.lib3d-panel { position: absolute; left: 10px; right: 10px; bottom: calc(12px + env(safe-area-inset-bottom)); max-height: 40%; overflow-y: auto; background: #f4ead2ee; color: #3a2314; border: 2px solid var(--acc); border-radius: 12px; padding: 10px; z-index: 2; font-family: system-ui, sans-serif; }
.lib3d-panel b { font-family: 'EB Garamond', Georgia, serif; font-size: 1.3rem; } .lib3d-list { display: grid; gap: 6px; margin-top: 6px; }
.walk3d { width: 100%; margin: 8px 0 4px; font-size: 1.35rem; }
/* Round 11: each boy's own Kitt */
.kitt-face { display: inline-block; width: 84px; height: 84px; }
.kitt-face svg { width: 100%; height: 100%; }
.kitt-face.big { width: 140px; height: 140px; }
.kitt-face.pop { animation: kittPop 0.9s ease-out; }
.kitt-face.wave { animation: kittWave 1.6s ease-in-out 2; transform-origin: 50% 90%; }
@keyframes kittPop { 0% { transform: scale(0.2) rotate(-200deg); filter: brightness(3); } 70% { transform: scale(1.2) rotate(10deg); } 100% { transform: scale(1); } }
@keyframes kittWave { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-8deg); } 75% { transform: rotate(8deg); } }
.kitt-stage { text-align: center; min-height: 170px; }
.kitt-stage.lvl .kp-face { display: inline-block; animation: kittCharge 1.4s ease-in forwards; }
@keyframes kittCharge { 0% { transform: scale(1); filter: none; } 60% { transform: scale(1.15) rotate(8deg); filter: brightness(1.8) drop-shadow(0 0 12px #fff27a); } 100% { transform: scale(0.1) rotate(360deg); filter: brightness(4); } }
.kitt-burst { font-family: 'Lilita One', system-ui; font-size: 26px; color: #ff9f1c; text-shadow: 2px 2px 0 #1d2a5c; animation: kittPop 0.8s ease-out; }
.kitt-form { text-align: center; }
.kitt-preview { display: flex; flex-direction: column; align-items: center; }
.kitt-name-tag { font-family: 'Lilita One', system-ui; font-size: 22px; background: #1d2a5c; color: #fff; padding: 2px 12px; border-radius: 10px; }
.kitt-name-in { font-size: 22px; padding: 8px 12px; border-radius: 12px; border: 3px solid #1d2a5c; text-align: center; width: 70%; }
.kitt-swatches { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.kitt-sw { width: 46px; height: 46px; border-radius: 12px; border: 4px solid #1d2a5c; }
.kitt-accs, .kitt-modes { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin: 6px 0; }
.kitt-log .kp-msg { font-size: 20px; line-height: 1.35; }
.kitt-bray .kitt-log .kp-msg { font-size: 17px; font-family: 'EB Garamond', Georgia, serif; }
.kitt-bray .sheet-in { background: #f4ead7; }
.kitt-mic { width: 100%; touch-action: none; user-select: none; -webkit-user-select: none; }
.kitt-mic.on { filter: brightness(1.2); transform: scale(1.03); box-shadow: 0 0 0 6px #ffcf3f88; }
.kitt-in { flex: 1; font-size: 18px; padding: 10px; border-radius: 12px; border: 3px solid #1d2a5c; }
.kitt-bottom { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.kitt-letters { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.kitt-letters span { font-family: 'Lilita One', system-ui; font-size: 44px; background: #ffcf3f; border: 4px solid #1d2a5c; border-radius: 10px; padding: 0 10px; opacity: 0; animation: kittLetter 0.4s forwards; }
@keyframes kittLetter { from { opacity: 0; transform: translateY(20px) scale(0.5); } to { opacity: 1; transform: none; } }
.kitt-bubble { position: fixed; right: 14px; bottom: 96px; z-index: 40; width: 62px; height: 62px; border-radius: 50%; font-size: 30px; background: #ffcf3f; border: 4px solid #1d2a5c; box-shadow: 0 5px 0 #1d2a5c; }
body.bray-on .kitt-bubble { background: var(--acc, #c9a24a); bottom: 24px; }
.kitt-tick { margin-right: 10px; white-space: nowrap; }
/* Round 12: Bray's heist look, collector and rare stamps, torch, Poppy idea lists per kid */
.heist-lib .hz-exit, .heist-lib .hz-top button { background: #4a2e1a; color: #f3dfa8; border-color: #c9a23a; font-family: "EB Garamond", Georgia, serif; font-size: 15px; white-space: nowrap; }
.heist-lib .hz-ui { color: #f3dfa8; }
.cv-stamp { display: inline-block; margin: 4px auto; padding: 3px 12px; border: 2px solid var(--acc, #c9a23a); border-radius: 6px; color: var(--acc, #c9a23a); font-weight: 700; letter-spacing: 1px; text-transform: uppercase; transform: rotate(-3deg); }
.cv-stamp.rare { color: #e3b341; border-color: #e3b341; box-shadow: 0 0 14px rgba(227, 179, 65, .6); }
.torch { margin: 6px auto; }
.pi-kid { margin: 18px 0 6px; }
.pb-items .btn.toggle { display: block; width: 100%; text-align: left; margin: 3px 0; padding: 6px 10px; font-size: 14px; box-shadow: none; }
.bray-on .sheet .sheet-in { background: #f3e6c8; border-color: #6b4423; }
.bray-on .sheet h2 { font-family: 'EB Garamond', Georgia, serif; color: #4a2e1a; }
/* Round 12: Bray's look picker */
.look-fig { position: relative; width: 120px; height: 200px; margin: 8px auto 14px; }
.look-fig i { position: absolute; display: block; border-radius: 3px; box-shadow: inset 0 -6px 0 rgba(0,0,0,.15); }
.lf-head { left: 30px; top: 10px; width: 60px; height: 58px; }
.lf-hair { left: 27px; top: 2px; width: 66px; height: 20px; z-index: 2; }
.lf-glasses { position: absolute; left: 7px; top: 22px; width: 46px; height: 12px; border: 3px solid #1a1a1a; border-radius: 6px; background: linear-gradient(90deg, transparent 44%, #1a1a1a 44% 56%, transparent 56%); }
.lf-body { left: 25px; top: 70px; width: 70px; height: 66px; }
.lf-arm { top: 70px; width: 20px; height: 62px; }
.lf-arm.l { left: 3px; } .lf-arm.r { left: 97px; }
.lf-legs { left: 28px; top: 136px; width: 64px; height: 60px; background-image: linear-gradient(90deg, transparent 48%, rgba(0,0,0,.25) 48% 52%, transparent 52%) !important; }
.look-row { display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap; margin: 6px 0; }
.look-row small { width: 52px; text-align: right; }
.swatch { width: 38px; height: 38px; border-radius: 50%; border: 3px solid rgba(0,0,0,.25); padding: 0; }
.swatch.on { border-color: var(--acc, #c9a23a); box-shadow: 0 0 0 3px #fff8e6, 0 0 0 6px var(--acc, #c9a23a); }

/* Round 13: family Messages. iMessage feel, our own look: blue-violet sender bubbles, gray family bubbles. */
.fm { width: 100%; max-width: 640px; margin: 0 auto; display: flex; flex-direction: column; min-height: 100dvh; background: #fff; color: #111; font-family: -apple-system, system-ui, sans-serif; text-align: left; }
.fm-top { display: grid; grid-template-columns: 70px 1fr 70px; align-items: center; padding: 10px 8px; border-bottom: 1px solid #e5e5ea; position: sticky; top: 0; background: rgba(255,255,255,.94); backdrop-filter: blur(10px); z-index: 2; }
.fm-top h2 { margin: 0; text-align: center; font-size: 1.15rem; }
.fm-backbtn { background: none; border: 0; color: #3a6df0; font-size: 1.15rem; text-align: left; padding: 6px; }
.fm-who { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: .8rem; }
.fm-ava { display: inline-flex; width: 40px; height: 40px; border-radius: 50%; align-items: center; justify-content: center; color: #fff; font-weight: 700; flex: none; }
.fm-pins { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; padding: 14px; }
.fm-pin { background: none; border: 0; display: flex; flex-direction: column; align-items: center; gap: 4px; position: relative; font-size: .85rem; }
.fm-pin .fm-ava { width: 66px; height: 66px; font-size: 1.6rem; }
.fm-pin .fm-dot { position: absolute; left: 0; top: 4px; }
.fm-rows { display: flex; flex-direction: column; }
.fm-row { display: grid; grid-template-columns: 12px 48px 1fr auto; gap: 10px; align-items: center; background: none; border: 0; border-bottom: 1px solid #f0f0f3; padding: 10px 12px; text-align: left; width: 100%; }
.fm-row .fm-ava { width: 48px; height: 48px; }
.fm-row-t { display: flex; flex-direction: column; min-width: 0; }
.fm-row-t span { color: #8e8e93; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: .92rem; }
.fm-row small { color: #8e8e93; align-self: start; padding-top: 4px; }
.fm-dot { width: 10px; height: 10px; border-radius: 50%; background: #3a6df0; display: inline-block; }
.fm-dot.off { background: transparent; }
.fm-hint { color: #8e8e93; font-size: .8rem; text-align: center; padding: 16px; }
.fm-msgs { flex: 1; overflow-y: auto; padding: 10px 10px 4px; display: flex; flex-direction: column; gap: 2px; }
.fm-day, .fm-sys { text-align: center; color: #8e8e93; font-size: .75rem; margin: 10px 0 4px; }
.fm-line { display: flex; align-items: flex-end; gap: 6px; }
.fm-line.me { justify-content: flex-end; }
.fm-line .fm-ava { width: 28px; height: 28px; font-size: .8rem; }
.fm-col { display: flex; flex-direction: column; max-width: 76%; }
.fm-line.me .fm-col { align-items: flex-end; }
.fm-name { color: #8e8e93; font-size: .7rem; margin: 4px 0 1px 12px; }
.fm-b { position: relative; padding: 8px 13px; border-radius: 19px; font-size: 1.05rem; line-height: 1.3; word-wrap: break-word; white-space: pre-wrap; margin: 1px 0; cursor: pointer; }
.fm-b.me { background: linear-gradient(#4f7cff, #3a5ef0); color: #fff; border-bottom-right-radius: 6px; }
.fm-b.them { background: #e9e9ee; color: #111; border-bottom-left-radius: 6px; }
.fm-b.k-sticker { background: none; font-size: 3.4rem; padding: 0 4px; }
.fm-quote { font-size: .8rem; opacity: .75; border-left: 3px solid currentColor; padding-left: 6px; margin-bottom: 4px; }
.fm-share { display: flex; flex-direction: column; gap: 4px; } .fm-share img { max-width: 180px; border-radius: 10px; }
.fm-tap { position: absolute; top: -14px; right: -6px; background: #fff; border: 1px solid #e5e5ea; border-radius: 14px; padding: 1px 6px; font-size: .85rem; }
.fm-b.me .fm-tap { right: auto; left: -6px; }
.fm-edited, .fm-receipt { color: #8e8e93; font-size: .7rem; margin: 1px 6px; }
.fm-typing { display: flex; gap: 4px; padding: 12px 14px; } .fm-typing i { width: 8px; height: 8px; border-radius: 50%; background: #9a9aa2; animation: fmdot 1.2s infinite; } .fm-typing i:nth-child(2) { animation-delay: .2s; } .fm-typing i:nth-child(3) { animation-delay: .4s; }
@keyframes fmdot { 0%, 60%, 100% { opacity: .3; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }
.fm-bar { position: sticky; bottom: 0; background: #fff; border-top: 1px solid #e5e5ea; padding: 6px 8px calc(8px + env(safe-area-inset-bottom)); }
.fm-row2 { display: flex; align-items: flex-end; gap: 6px; }
.fm-in { flex: 1; border: 1px solid #d1d1d6; border-radius: 20px; padding: 9px 14px; font-size: 1.1rem; resize: none; font-family: inherit; max-height: 120px; }
.fm-plus, .fm-fx { width: 38px; height: 38px; border-radius: 50%; border: 0; background: #e9e9ee; font-size: 1.3rem; }
.fm-fx.on { background: #ffd23a; }
.fm-send { width: 44px; height: 44px; border-radius: 50%; border: 0; background: #3a5ef0; color: #fff; font-size: 1.5rem; font-weight: 800; }
.fm-replybar { display: flex; justify-content: space-between; align-items: center; font-size: .8rem; color: #555; padding: 4px 8px; } .fm-replybar.hide { display: none; } .fm-replybar button { background: none; border: 0; }
.fm-taps { display: flex; gap: 10px; background: #fff; border-radius: 30px; padding: 8px 14px; box-shadow: 0 2px 10px rgba(0,0,0,.15); }
.fm-taps button { background: none; border: 0; font-size: 1.9rem; }
.fm-fxgrid, .fm-stickers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; width: 100%; }
.fm-stickers { grid-template-columns: repeat(4, 1fr); } .fm-stickers button { font-size: 2.6rem; background: none; border: 0; }
.fm-toast { position: fixed; left: 50%; bottom: 110px; transform: translateX(-50%); background: #1d2a5c; color: #fff; padding: 12px 16px; border-radius: 16px; z-index: 40; max-width: 88vw; display: flex; flex-direction: column; gap: 8px; text-align: center; }
.fm-b.fx-slam { animation: fmslam .5s ease-out; } @keyframes fmslam { 0% { transform: scale(3); opacity: 0; } 70% { transform: scale(.9); } 100% { transform: scale(1); } }
.fm-b.fx-loud { animation: fmloud .6s ease-out; } @keyframes fmloud { 0% { transform: scale(1); } 30% { transform: scale(1.6) rotate(-3deg); } 100% { transform: scale(1); } }
.fm-b.fx-gentle { animation: fmgentle 1.6s ease-out; } @keyframes fmgentle { 0% { transform: scale(.5); opacity: .2; } 100% { transform: scale(1); opacity: 1; } }
.fm-b.fx-ink .fm-text { filter: blur(6px); transition: filter .4s; } .fm-b.fx-ink:active .fm-text, .fm-b.fx-ink:hover .fm-text { filter: none; }
.fm-fxlayer { position: fixed; inset: 0; pointer-events: none; z-index: 50; overflow: hidden; }
.fm-fxlayer span { position: absolute; bottom: -60px; animation: fmrise 2.6s ease-in forwards; }
.fm-fxlayer.fx-confetti span, .fm-fxlayer.fx-coins span { top: -60px; bottom: auto; animation-name: fmfall; }
@keyframes fmrise { to { transform: translateY(-115vh) rotate(25deg); } } @keyframes fmfall { to { transform: translateY(115vh) rotate(-30deg); } }
.fm-bray { background: #fbf4e6; } .fm-bray .fm-top, .fm-bray .fm-bar { background: rgba(251,244,230,.95); }
.fm-bray .fm-b.me { background: linear-gradient(#8a2b3a, #6e1f2c); } .fm-bray .fm-b.them { background: #ece2cf; } .fm-bray .fm-backbtn { color: #8a2b3a; } .fm-bray .fm-send { background: #8a2b3a; }
.btn.fam-msg { background: #5b8cff; color: #fff; }
body:has(.fm) .kitt-bubble { display: none; }
.fm { position: fixed; inset: 0; z-index: 60; min-height: 0; height: 100dvh; overflow-y: auto; box-shadow: 0 0 0 100vmax rgba(0,0,0,.25); }
.fm-thread { overflow: hidden; } .fm-thread .fm-msgs { min-height: 0; }
body:has(.fm) .sheet { z-index: 70; } .fm-toast { z-index: 75; } .fm-fxlayer { z-index: 80; }
body:has(.fm) #main { z-index: 55; }
.fm-card { margin: 10px 12px; padding: 12px 14px; border-radius: 16px; background: #eef3ff; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.fm-bray .fm-card { background: #f1e6cf; }
.fm-steps { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 4px; }
.fm-share-ico { display: inline-block; border: 1.5px solid #3a6df0; color: #3a6df0; border-radius: 5px; padding: 0 4px; font-size: .8rem; }
.fm-b.k-photo { padding: 4px; background: none; } .fm-b.k-photo .fm-text:empty { display: none; } .fm-b.k-photo .fm-text { display: block; padding: 4px 8px; }
.fm-line.me .fm-b.k-photo .fm-text { background: #3a5ef0; color: #fff; border-radius: 14px; margin-top: 2px; }
.fm-photo { display: block; max-width: 220px; max-height: 300px; border-radius: 16px; }
.fm-viewer { position: fixed; inset: 0; z-index: 85; background: #000; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; color: #fff; padding: 12px; text-align: center; }
.fm-viewer img { max-width: 100%; max-height: 80vh; object-fit: contain; }
/* Round 14: grown-up base and PLAY TOGETHER */
.pl-face { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%; border: 3px solid var(--ink, #1d2a5c); color: #fff; font-weight: 800; font-size: 1.1rem; flex: none; }
.pl-face.big { width: 56px; height: 56px; font-size: 1.7rem; }
.pl-base, .pl-start, .pl-lobby, .pl-result, .pl-boardpage, .pl-gift { gap: 12px; padding-bottom: 40px; }
.pl-hello { display: flex; align-items: center; gap: 12px; justify-content: center; }
.pl-modes { display: grid; gap: 10px; width: min(420px, 92vw); }
.pl-mode { display: flex; flex-direction: column; align-items: flex-start; text-align: left; }
.pl-mode span { font-size: 0.95rem; font-weight: 600; opacity: 0.8; }
.pl-join { display: flex; gap: 8px; justify-content: center; }
.pl-code-in { width: 130px; font-size: 1.8rem; text-align: center; text-transform: uppercase; letter-spacing: 6px; border: 4px solid var(--ink, #1d2a5c); border-radius: 14px; padding: 8px; }
.pl-code { font-size: 3.4rem; font-weight: 900; letter-spacing: 12px; background: #fff; border: 4px solid var(--ink, #1d2a5c); border-radius: 18px; padding: 6px 18px 6px 30px; }
.pl-row { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.pl-inv { display: flex; flex-direction: column; align-items: center; gap: 4px; background: #fff; border: 3px solid var(--ink, #1d2a5c); border-radius: 16px; padding: 10px; min-width: 84px; font-weight: 700; }
.pl-inv:disabled { opacity: 0.5; } .pl-inv.in { background: #e8ffe9; }
.pl-chip { font-size: 1rem; padding: 8px 12px; } .pl-chip.on { background: #ffd23a; }
.pl-game { position: fixed; inset: 0; z-index: 30; background: #101318; touch-action: none; }
.pl-cv { position: absolute; inset: 0; width: 100%; height: 100%; }
.pl-hud { position: absolute; top: calc(10px + env(safe-area-inset-top)); left: 50%; transform: translateX(-50%); background: #fff; border: 3px solid #1d2a5c; border-radius: 14px; padding: 4px 14px; font-weight: 800; font-size: 1.2rem; white-space: pre; }
.pl-board { position: absolute; top: calc(10px + env(safe-area-inset-top)); right: 10px; background: #ffffffdd; border: 3px solid #1d2a5c; border-radius: 12px; padding: 4px 10px; font-weight: 700; font-size: 0.9rem; }
.pl-goal { position: absolute; top: calc(52px + env(safe-area-inset-top)); left: 10px; right: 10px; text-align: center; color: #fff; font-weight: 800; text-shadow: 0 2px 0 #000; pointer-events: none; }
.pl-emo { position: absolute; left: 10px; bottom: calc(14px + env(safe-area-inset-bottom)); display: flex; gap: 6px; }
.pl-emo button { font-size: 1.6rem; width: 46px; height: 46px; border-radius: 50%; border: 3px solid #1d2a5c; background: #fff; }
.pl-grab { position: absolute; right: 14px; bottom: calc(14px + env(safe-area-inset-bottom)); width: 96px; height: 96px; border-radius: 50%; font-size: 1.3rem; padding: 0; }
.pl-sprint { position: absolute; right: 120px; bottom: calc(24px + env(safe-area-inset-bottom)); width: 64px; height: 64px; border-radius: 50%; padding: 0; font-size: 1.6rem; }
body.pl-on #tabs, body.pl-on #hud { display: none; }
.pl-score { width: min(440px, 92vw); } .pl-srow { display: flex; align-items: center; gap: 10px; padding: 6px 0; } .pl-srow span { margin-left: auto; font-size: 0.95rem; }
.pl-brow { display: flex; gap: 12px; align-items: center; text-align: left; width: min(480px, 94vw); } .pl-brow .small { font-size: 0.85rem; }
.pl-pets { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; max-width: 520px; }
.pl-pet { display: flex; flex-direction: column; border: 4px solid; border-radius: 12px; background: #fff; padding: 8px 10px; font-size: 0.95rem; } .pl-pet.on { background: #ffd23a; transform: scale(1.06); }
.pl-banner { position: fixed; z-index: 60; left: 10px; right: 10px; top: calc(10px + env(safe-area-inset-top)); display: flex; align-items: center; gap: 10px; background: #fff; border: 4px solid #1d2a5c; border-radius: 18px; padding: 10px 12px; font-weight: 800; box-shadow: 0 6px 0 #1d2a5c; }
.pl-banner span { flex: 1; } .pl-x { border: none; background: none; font-size: 1.3rem; }
.pl-pop { position: fixed; z-index: 61; left: 50%; top: 40%; transform: translate(-50%, -50%); background: #fff; border: 6px solid; border-radius: 22px; padding: 22px; font-size: 1.5rem; font-weight: 800; text-align: center; display: flex; flex-direction: column; gap: 12px; width: min(360px, 88vw); }
.pl-me { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 10px 0; }
.hz-play { position: absolute; left: 10px; bottom: calc(156px + env(safe-area-inset-bottom)); pointer-events: auto; background: #35d36f; color: #fff; -webkit-text-stroke: 1px #121a3a; paint-order: stroke fill; font-size: 1.1rem; padding: 10px 14px; }
/* Dan's Blackout skin for his own player */
body.pl-blackout { background: #0d0f14; color: #e8eaf0; } body.pl-blackout #scenery { display: none; }
body.pl-blackout .btn { background: #1c2030; color: #e8eaf0; border-color: #3a4160; box-shadow: 0 5px 0 #000; } body.pl-blackout .btn.go { background: #c9a227; color: #111; } body.pl-blackout .btn.yes { background: #2e8b57; }
body.pl-blackout .title, body.pl-blackout .say, body.pl-blackout .meta { color: #e8eaf0; -webkit-text-stroke: 0; } body.pl-blackout .panel { background: #161a26; color: #e8eaf0; border-color: #3a4160; }
body.pl-blackout .pl-inv, body.pl-blackout .pl-code { background: #161a26; color: #e8eaf0; border-color: #3a4160; }
body.pl-blackout .say, body.pl-blackout .meta { background: transparent; border-color: transparent; box-shadow: none; }
.pl-hud, .pl-board { color: #1d2a5c; } .pl-board { background: #ffffffee; }

/* Round 16: every 3D screen fills the whole viewport (behind the notch and home bar). Only the HUD respects the safe area. */
#hud[hidden], #tabs[hidden] { display: none !important; }
body { --ui-top: env(safe-area-inset-top, 0px); --ui-bot: env(safe-area-inset-bottom, 0px); --ui-l: env(safe-area-inset-left, 0px); --ui-r: env(safe-area-inset-right, 0px); --lcol: 140px; }
body.hud-on { --ui-top: calc(76px + env(safe-area-inset-top, 0px)); }
body:has(#tabs:not([hidden])) { --ui-bot: calc(86px + env(safe-area-inset-bottom, 0px)); }
#lobby, body.bray-on #lobby.lib3d { top: 0; left: 0; right: 0; bottom: auto; height: 100dvh; }
@supports not (height: 100dvh) { #lobby, body.bray-on #lobby.lib3d { height: var(--app-h, 100%); } }
.pl-game { height: 100dvh; bottom: auto; }
@supports not (height: 100dvh) { .pl-game { height: var(--app-h, 100%); } }
html:has(body.lobby-on) { background: #1d2550; } html:has(body.pl-blackout) { background: #0d0f14; } html:has(body.pl-on) { background: #101318; }
.hz-ui { inset: var(--ui-top) var(--ui-r) var(--ui-bot) var(--ui-l); }
.lobby-tip { bottom: calc(var(--ui-bot) + 18px); }
.lv-map { padding-top: calc(var(--ui-top) + 64px); padding-bottom: calc(var(--ui-bot) + 24px); padding-left: calc(var(--ui-l) + 12px); padding-right: calc(var(--ui-r) + 12px); }
.lv-map > .hz-top { top: calc(var(--ui-top) + 8px); left: calc(var(--ui-l) + 8px); right: calc(var(--ui-r) + 8px); }
.lib3d-bar { top: calc(var(--ui-top) + 10px); left: calc(var(--ui-l) + 10px); right: calc(var(--ui-r) + 10px); }
.lib3d-panel { bottom: calc(var(--ui-bot) + 12px); }
.pl-hud, .pl-board { top: calc(10px + env(safe-area-inset-top, 0px)); } .pl-board { right: calc(10px + env(safe-area-inset-right, 0px)); }
/* top bar: never wider than the screen; the coin counter stays inside */
.hz-top { flex-wrap: nowrap; } .hz-top > * { flex-shrink: 0; } .hz-top .hz-coins { margin-left: auto; white-space: nowrap; }
@media (max-width: 480px) { .hz-top .hz-lbl { display: none; } .hz-top .lv-open { font-size: 1.1rem; padding: 4px 8px; } .hz-coins small { font-size: 0.75rem; } }
/* left column: chips on top, PLAY TOGETHER and MIXER at the bottom, all in one flow so they never stack on each other */
.hz-left { position: absolute; left: 8px; top: 54px; bottom: 10px; width: var(--lcol); display: flex; flex-direction: column; flex-wrap: wrap; align-content: flex-start; align-items: flex-start; gap: 6px; pointer-events: none; }
.hz-left .hz-power { display: contents; }
.hz-left .hz-gap { flex: 1 1 0; min-height: 0; }
.hz-left .hz-chip { max-width: var(--lcol); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hz-left > button.hz-play, .hz-left > button.hz-mixer { position: static; max-width: var(--lcol); white-space: normal; text-align: left; line-height: 1.15; font-size: 1.05rem; padding: 8px 10px; }
/* banner lane: top center, right of the left column; banners and hints never sit on a button */
.hz-lane { position: absolute; top: 54px; left: calc(var(--lcol) + 16px); right: 8px; display: flex; flex-direction: column; align-items: center; gap: 6px; pointer-events: none; text-align: center; }
.hz-lane .hz-banner { position: static; transform: scale(0); width: auto; max-width: 100%; font-size: clamp(1.1rem, 5.2vw, 1.55rem); overflow-wrap: anywhere; }
.hz-lane .hz-banner.show { transform: scale(1); } .hz-lane .hz-banner:not(.show) { position: absolute; }
.hz-lane .hz-banner.caught { font-size: clamp(1.8rem, 9vw, 3.4rem); } .hz-lane .hz-banner.divine { font-size: clamp(1.6rem, 7vw, 2.6rem); }
.hz-lane .hz-hint { white-space: pre-line; font-size: 0.95rem; } .hz-hint[hidden] { display: none; }
@media (min-width: 700px) { .hz-lane { left: 25%; right: 25%; } }
@media (max-width: 400px) { body { --lcol: 126px; } }
@media (max-height: 500px) { body { --lcol: 132px; } .hz-left { width: 46%; } .hz-lane { left: calc(46% + 12px); right: 8px; } }
body.lobby-on #tabs { background: #fff6d6; }
/* Round 17: the 2D page area reaches the bottom of the screen when the kid tab bar is hidden (grown-ups, Bray, Poppy mode); it used to stop 86px plus the home bar early. */
html { min-height: 100%; min-height: 100dvh; }
#main { bottom: 0; padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px)); }
body:has(#tabs:not([hidden])) #main { bottom: calc(86px + env(safe-area-inset-bottom, 0px)); padding-bottom: 24px; }
#scenery { height: 100lvh; }
.sheet-in { max-height: 92dvh; }
#tabs { background: #fff6d6; } /* Round 17: cream, never a pure white strip under the tab icons */
.fm-top { padding-top: calc(10px + env(safe-area-inset-top, 0px)); } /* Round 17: Messages header sits below the status bar in the Home Screen app */

/* Round 18: console-style controls. Floating stick (our art: see-through ring, solid knob in the player's color),
   big JUMP bottom right, GRAB/DROP above it, SPRINT to its left. hz-ui already sits inside the safe area. */
.ct-stick { position: absolute; width: 132px; height: 132px; margin: -66px 0 0 -66px; border-radius: 50%; background: rgba(255,255,255,0.18); border: 4px solid rgba(255,255,255,0.55); box-shadow: 0 0 0 3px rgba(18,26,58,0.35); pointer-events: none; z-index: 3; }
.ct-knob { position: absolute; left: 50%; top: 50%; width: 60px; height: 60px; margin: -30px 0 0 -30px; border-radius: 50%; background: var(--ct, #ffcf3f); border: 4px solid #121a3a; box-shadow: 0 4px 0 #121a3a; }
.ct-jump { position: absolute; right: 18px; bottom: 18px; width: 108px; height: 108px; border-radius: 50%; border: 5px solid #121a3a; background: #3fb6ff; color: #fff; font-family: var(--game); font-size: 1.45rem; -webkit-text-stroke: 1px #121a3a; box-shadow: 0 6px 0 #121a3a; pointer-events: auto; touch-action: none; -webkit-user-select: none; user-select: none; }
.ct-jump.on, .ct-jump:active { transform: translateY(5px); box-shadow: 0 1px 0 #121a3a; background: #7cd2ff; }
.hz-ui .lv-sprint.free { right: 136px; bottom: 18px; width: 80px; height: 80px; }
.hz-ui .hz-act { right: 22px; bottom: 140px; width: 100px; height: 100px; font-size: 1.45rem; }
@media (max-height: 420px) { .ct-jump { width: 88px; height: 88px; font-size: 1.15rem; } .hz-ui .lv-sprint.free { right: 114px; width: 68px; height: 68px; font-size: 0.9rem; } .hz-ui .hz-act { bottom: 18px; right: 194px; width: 84px; height: 84px; font-size: 1.2rem; } }
.ct-set { align-items: center; margin-top: 8px; } .ct-lbl { font-family: var(--game); margin-right: 6px; }
/* Round 18: in Stick mode the lower left is the thumb zone, so PLAY TOGETHER and MIXER ride up under the chips,
   and Kitt's bubble sits above GRAB instead of on top of JUMP. */
.hz-ui:not(.ct-tap) .hz-left .hz-gap { display: none; }
body.lobby-on .kitt-bubble { bottom: calc(var(--ui-bot, 86px) + 252px); right: 22px; }
@media (max-height: 420px) { body.lobby-on .kitt-bubble { bottom: calc(var(--ui-bot, 86px) + 112px); } }
.hz-left > button.ct-mode { position: static; max-width: var(--lcol); font-size: 1.0rem; padding: 6px 10px; } .hz-left > button.ct-mode .hz-lbl { display: inline; }

/* ---------- Round 19: TAP FOR SPEED treadmill. Landscape first: left button stack, stats bottom left, huge TAP! right thumb. ---------- */
.tm19 .tm-run.tm-tap { left: auto; right: 18px; bottom: 18px; transform: none; width: 168px; height: 168px; display: grid; place-items: center; align-content: center; gap: 0; background: radial-gradient(circle at 35% 30%, #ff8a8a, #ff3b3b 60%, #d81f1f); font-size: 2.6rem; z-index: 3; }
.tm19 .tm-run.tm-tap:active { transform: none; }
.tm19 .tm-run b { position: relative; z-index: 1; line-height: 1; }
.tm19 .tm-combo { position: relative; z-index: 1; font-size: 1.05rem; -webkit-text-stroke: 1px #121a3a; color: #fff6d6; }
.tm19 .tm-ring { position: absolute; inset: -14px; border-radius: 50%; border: 6px solid transparent; pointer-events: none; transition: border-color 0.2s, box-shadow 0.2s; }
.tm19 .tm-tap[data-combo="1"] .tm-ring { border-color: #ffcf3f; box-shadow: 0 0 14px #ffcf3f; }
.tm19 .tm-tap[data-combo="2"] .tm-ring { border-color: #ff9a2e; box-shadow: 0 0 22px #ff9a2e; }
.tm19 .tm-tap[data-combo="3"] .tm-ring { border-color: #b05cff; box-shadow: 0 0 34px #b05cff, inset 0 0 18px #b05cff; animation: tmglow 0.5s ease-in-out infinite alternate; }
@keyframes tmglow { from { transform: scale(1); } to { transform: scale(1.06); } }
.tm19 .tm-zone { position: absolute; right: 0; top: 64px; bottom: 0; width: 50%; pointer-events: auto; touch-action: none; user-select: none; -webkit-user-select: none; -webkit-tap-highlight-color: transparent; }
.tm19 .tm-panel { top: 6px; width: min(46vw, 360px); padding: 6px 10px; z-index: 2; }
.tm19 .tm-level { font-size: 1.05rem; } .tm19 .tm-bar { height: 14px; margin: 3px 0; } .tm19 .tm-note { font-size: 0.72rem; } .tm19 .tm-up { margin-top: 4px; font-size: 0.85rem; padding: 4px 8px; }
.tm19 .hz-top { z-index: 2; }
.tm-left { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; gap: 8px; z-index: 2; }
.tm-big { pointer-events: auto; min-width: 118px; padding: 9px 10px; border: 4px solid #121a3a; border-radius: 16px; font-family: var(--game); font-size: 1.05rem; color: #fff; -webkit-text-stroke: 1px #121a3a; box-shadow: 0 4px 0 #121a3a; text-align: left; }
.tm-big.shop { background: #3ddc84; } .tm-big.index { background: #4da3ff; } .tm-big.reb { background: #b05cff; } .tm-big.x2 { background: #8a93a8; }
.tm-big.reb.ready { animation: tmglow 0.6s ease-in-out infinite alternate; box-shadow: 0 4px 0 #121a3a, 0 0 18px #ffcf3f; }
.tm-big.x2.on { background: #ff9a2e; }
.tm-stats { position: absolute; left: 10px; bottom: 10px; font-family: var(--game); color: #fff; -webkit-text-stroke: 1.2px #121a3a; text-shadow: 0 3px 0 #121a3a; pointer-events: none; z-index: 2; }
.tm-cash { font-size: 1.5rem; color: #7dffb0; } .tm-pow { font-size: 1.8rem; color: #ffcf3f; }
.tm-banner { position: absolute; left: 50%; top: 32%; transform: translateX(-50%); font-family: var(--game); font-size: 2.6rem; color: #3ddc84; -webkit-text-stroke: 2px #121a3a; white-space: nowrap; opacity: 0; pointer-events: none; z-index: 4; }
.tm-banner.show { animation: tmbanner 1.8s ease-out forwards; }
@keyframes tmbanner { 0% { opacity: 0; transform: translateX(-50%) scale(0.5); } 15% { opacity: 1; transform: translateX(-50%) scale(1.15); } 25% { transform: translateX(-50%) scale(1); } 80% { opacity: 1; } 100% { opacity: 0; transform: translateX(-50%) translateY(-30px); } }
.tm19 .tm-pop { position: absolute; top: 0; left: 0; animation: none; font-size: 1.6rem; color: #ffcf3f; -webkit-text-stroke: 1.5px #121a3a; white-space: nowrap; will-change: transform, opacity; z-index: 4; }
.tm19 .tm-pop.big { font-size: 2.2rem; color: #3ddc84; }
.tm-spark { position: absolute; width: 10px; height: 10px; border-radius: 50%; background: #ffe25e; box-shadow: 0 0 6px #fff4c2; will-change: transform, opacity; }
.tm-lines { position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity 0.2s; background: repeating-conic-gradient(from 0deg at 50% 50%, transparent 0deg 7deg, rgba(255,255,255,0.55) 7deg 8deg); -webkit-mask: radial-gradient(circle at 50% 50%, transparent 38%, #000 70%); mask: radial-gradient(circle at 50% 50%, transparent 38%, #000 70%); }
.tm-say { position: absolute; transform: translate(-50%, -100%); background: #fff; border: 3px solid #121a3a; border-radius: 14px; padding: 5px 10px; font-family: var(--game); font-size: 1rem; color: #121a3a; white-space: nowrap; pointer-events: auto; z-index: 3; }
.tm-say::after { content: ''; position: absolute; left: 50%; bottom: -10px; border: 7px solid transparent; border-top-color: #121a3a; transform: translateX(-50%); }
.tm-auto { position: absolute; right: 196px; bottom: 18px; pointer-events: auto; border: 3px solid #121a3a; border-radius: 12px; background: #fff6d6; font-family: var(--game); padding: 6px 10px; z-index: 3; }
.tm-sheet { position: absolute; inset: 0; background: rgba(18,26,58,0.55); display: grid; place-items: center; pointer-events: auto; z-index: 6; }
.tm-card { background: #fff6d6; border: 5px solid #121a3a; border-radius: 22px; padding: 16px 20px; width: min(88vw, 420px); text-align: center; box-shadow: 0 6px 0 #121a3a; }
.tm-card h2 { font-family: var(--game); font-size: 1.8rem; margin: 0 0 6px; } .tm-card p { font-size: 1.05rem; margin: 0 0 12px; }
.tm-row { display: flex; gap: 10px; justify-content: center; }
.tm-btn { font-family: var(--game); font-size: 1.4rem; border: 4px solid #121a3a; border-radius: 16px; padding: 10px 22px; box-shadow: 0 4px 0 #121a3a; }
.tm-btn.yes { background: #3ddc84; } .tm-btn.no { background: #e6e9f2; }
/* the treadmill owns the whole screen: no kid HUD bar or tab bar (STOP gets him out), Kitt mic bubble top right */
body.tm-on #hud, body.tm-on #tabs { display: none !important; }
html body.tm-on:has(#lobby) { --ui-top: env(safe-area-inset-top, 0px); --ui-bot: env(safe-area-inset-bottom, 0px); }
body.tm-on.lobby-on .kitt-bubble { top: calc(var(--ui-top) + 8px); bottom: auto; right: calc(var(--ui-r) + 10px); width: 52px; height: 52px; font-size: 24px; }
.tm-left { top: 62px; transform: none; }
.tm19 .tm-panel { width: min(40vw, 330px); }
/* portrait: stack sits above the stats, TAP button a bit smaller */
@media (orientation: portrait) { .tm-left { top: auto; bottom: 92px; } .tm-big { min-width: 104px; font-size: 0.92rem; padding: 7px 8px; } .tm19 .tm-panel { top: 56px; width: min(92vw, 380px); } .tm19 .tm-zone { top: 200px; } .tm19 .tm-run.tm-tap { width: 150px; height: 150px; bottom: 92px; } .tm-cash { font-size: 1.2rem; } .tm-pow { font-size: 1.45rem; } }
/* short landscape phones */
@media (orientation: landscape) and (max-height: 430px) { .tm-big { padding: 5px 8px; font-size: 0.88rem; min-width: 100px; border-width: 3px; } .tm-left { gap: 5px; top: 58px; } .tm19 .tm-run.tm-tap { width: 140px; height: 140px; font-size: 2.2rem; } .tm19 .tm-note { display: none; } .tm-cash { font-size: 1.15rem; } .tm-pow { font-size: 1.4rem; } .tm-auto { right: 170px; } }
.tm19 .hz-top { justify-content: flex-start; gap: 8px; right: auto; }
/* Round 20: shift lock button (left column, next to Stick / Tap) */
.hz-left > button.ct-lock { position: static; max-width: var(--lcol); font-size: 1.0rem; padding: 6px 10px; }
.hz-left > button.ct-lock .hz-lbl { display: inline; }
.hz-left > button.ct-lock.on { background: #ffcf3f; color: #2a1a00; box-shadow: 0 0 0 3px #fff inset; }
.ct-locked::after { content: ''; position: absolute; left: 50%; top: 50%; width: 10px; height: 10px; margin: -5px 0 0 -5px; border: 2px solid #fff; border-radius: 50%; box-shadow: 0 0 4px #000; pointer-events: none; }

/* Round 21: farm loop on the treadmill. +N/step, wooden upgrade sign, family board, world clock chips, night */
.tm-step { position: absolute; transform: translate(-50%, -100%); font-family: var(--game); font-size: 2.1rem; color: #7dffb0; -webkit-text-stroke: 1.8px #121a3a; text-shadow: 0 3px 0 #121a3a; white-space: nowrap; pointer-events: none; z-index: 2; }
.tm19 .tm-pop.cash { color: #7dffb0; font-size: 1.3rem; }
.tm-sign { position: absolute; transform: translate(-50%, -50%); display: grid; gap: 1px; padding: 6px 10px; background: #b07a3e; border: 4px solid #5a3412; border-radius: 10px; box-shadow: 0 4px 0 #3b220b; font-family: var(--game); color: #fff6d6; -webkit-text-stroke: 0.6px #3b220b; pointer-events: auto; z-index: 3; text-align: center; white-space: nowrap; }
.tm-sign b { font-size: 0.95rem; } .tm-sign span { font-size: 0.85rem; } .tm-sign i { font-style: normal; font-size: 1rem; color: #7dffb0; }
.tm-sign.ready { animation: tmsign 0.6s ease-in-out infinite alternate; box-shadow: 0 4px 0 #3b220b, 0 0 16px #7dffb0; }
.tm-board { position: absolute; right: 10px; top: 68px; width: 214px; background: rgba(18,26,58,0.82); border: 3px solid #121a3a; border-radius: 12px; padding: 4px 6px 6px; color: #fff; font-family: var(--game); pointer-events: auto; z-index: 2; }
.tm-board > b { font-size: 0.85rem; } .tm-board table { width: 100%; border-collapse: collapse; font-size: 0.72rem; } .tm-board th { text-align: left; color: #ffcf3f; font-weight: normal; }
.tm-board td { padding: 1px 2px; white-space: nowrap; overflow: hidden; max-width: 80px; text-overflow: ellipsis; } .tm-board tr.me td { color: #7dffb0; } .tm-board tr.bot td { color: #5fd4ff; }
.tm-board-x { position: absolute; right: 4px; top: 2px; background: none; border: 0; color: #fff; font-size: 0.9rem; pointer-events: auto; }
.tm-board-open { position: absolute; right: 10px; top: 68px; width: 44px; height: 44px; border: 3px solid #121a3a; border-radius: 12px; background: #ffcf3f; font-size: 1.2rem; pointer-events: auto; z-index: 2; }
.tm-world { position: absolute; left: 50%; bottom: 10px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 4px; pointer-events: none; z-index: 2; }
.tm-wchip { font-family: var(--game); font-size: 0.9rem; color: #fff; -webkit-text-stroke: 0.8px #121a3a; background: rgba(18,26,58,0.6); border-radius: 10px; padding: 2px 10px; white-space: nowrap; }
.tm-wchip.sky.on { background: #8e44ff; animation: tmglow 0.6s ease-in-out infinite alternate; }
.tm-arrow { display: inline-block; color: #c8ccd6; font-size: 0.8em; } .tm-arrow.up { color: #3ddc84; animation: tmglow 0.4s ease-in-out infinite alternate; }
@media (orientation: landscape) and (max-height: 430px) { .tm-step { font-size: 1.6rem; } .tm-board { width: 190px; top: 64px; } .tm-board table { font-size: 0.66rem; } .tm-sign b { font-size: 0.8rem; } .tm-sign span, .tm-sign i { font-size: 0.75rem; } .tm-wchip { font-size: 0.75rem; } .tm-board td { padding: 0 2px; } }
@media (orientation: portrait) { .tm-board { top: 252px; width: 180px; } .tm-board-open { top: 252px; } .tm-world { bottom: auto; top: 184px; left: 10px; transform: none; align-items: flex-start; } }
@keyframes tmsign { from { filter: brightness(1); } to { filter: brightness(1.3); } }
.tm-big.games { background: #ff4fd8; } .tm-sheet.games .tm-row { flex-wrap: wrap; } .tm-sheet.games .tm-btn { font-size: 1.05rem; padding: 8px 12px; }

/* Round 25 MY LOGO + MY APP ICON */
.lg-page { gap: 10px; }
.lg-top { display: flex; gap: 14px; align-items: center; justify-content: center; flex-wrap: wrap; }
.lg-prev { width: 180px; height: 180px; background: repeating-conic-gradient(#0000000d 0 25%, #fff0 0 50%) 0 0 / 20px 20px; border-radius: 18px; }
.lg-acts { display: flex; flex-direction: column; gap: 8px; }
.lg-row { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.lg-emb { font-size: 22px; min-width: 48px; }
.lg-lock { opacity: .55; }
.lg-sw { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.lg-dot { width: 40px; height: 40px; border-radius: 50%; border: 3px solid #1d2a5c33; }
.lg-dot.on { border-color: #1d2a5c; transform: scale(1.12); box-shadow: 0 0 0 3px #fff; }
.lg-textrow { display: flex; gap: 8px; align-items: center; justify-content: center; margin-top: 8px; }
.lg-text { width: 90px; font: 24px "Lilita One", system-ui; text-align: center; text-transform: uppercase; border-radius: 10px; border: 3px solid #1d2a5c; padding: 4px; }
.lg-pad { display: block; width: min(320px, 80vw); height: auto; aspect-ratio: 1; margin: 10px auto 0; touch-action: none; border: 3px solid #1d2a5c; border-radius: 8px; }
.lg-pad[hidden] { display: none; }
.lg-shelf { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.lg-old { width: 64px; height: 64px; cursor: pointer; }
.lg-who { width: 72px; height: 72px; }
.lg-tag { width: 26px; height: 26px; vertical-align: middle; margin-right: 6px; }
img.lg-face { padding: 0; object-fit: contain; background: transparent !important; }
.lg-phone { display: grid; grid-template-columns: repeat(4, 64px); gap: 14px 18px; padding: 22px 18px; border-radius: 28px; background: linear-gradient(160deg, #3a6bd8, #b26bff); justify-content: center; margin: 0 auto; }
.lg-app { display: flex; flex-direction: column; align-items: center; gap: 3px; color: #fff; font: 11px system-ui; }
.lg-fake, .lg-ico { width: 60px; height: 60px; border-radius: 14px; background: #ffffffcc; display: grid; place-items: center; font-size: 30px; }
.lg-ico { background: none; }
.lg-icons { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 10px; max-width: 560px; margin: 0 auto; }
.lg-icbtn { display: flex; flex-direction: column; align-items: center; gap: 4px; background: #fff; border: 3px solid #1d2a5c22; border-radius: 16px; padding: 8px 4px; font: 12px system-ui; }
.lg-icbtn img { width: 60px; height: 60px; border-radius: 13px; }
.lg-icbtn.on { border-color: #35d36f; box-shadow: 0 0 0 3px #35d36f55; }
.lg-help ol { text-align: left; margin: 6px 0 0 18px; }
.lg-help[hidden] { display: none; }
