:root {
  --ink: #0d1510; --panel: rgba(16, 26, 20, 0.84); --panel2: rgba(20, 31, 24, 0.97); --line: rgba(255, 214, 140, 0.16); --line2: rgba(255, 214, 140, 0.32);
  --text: #f1ead9; --muted: #a8a28f; --gold: #ffcf6a; --gold2: #e8a93a; --up: #6ee07a; --down: #ff6f6a; --leaf: #5fae4a;
  --px: "Lilita One", "Rubik", system-ui, sans-serif; --body: "Rubik", system-ui, -apple-system, "Segoe UI", sans-serif;
  --sat: env(safe-area-inset-top, 0px); --sab: env(safe-area-inset-bottom, 0px); --sal: env(safe-area-inset-left, 0px); --sar: env(safe-area-inset-right, 0px);
}
* { box-sizing: border-box; }
html, body { font-synthesis: none; margin: 0; height: 100%; overflow: hidden; background: #13241a; color: var(--text); font: 14px/1.4 var(--body); -webkit-font-smoothing: antialiased; touch-action: none; user-select: none; -webkit-user-select: none; }
#gl { position: fixed; inset: 0; }
#gl canvas { display: block; width: 100%; height: 100%; outline: none; }
#vignette { position: fixed; inset: 0; pointer-events: none; background: radial-gradient(ellipse at 50% 45%, transparent 55%, rgba(6, 12, 8, 0.45) 100%); }
[hidden] { display: none !important; }
button { font: inherit; color: inherit; }
kbd { display: inline-grid; place-items: center; min-width: 26px; height: 26px; padding: 0 6px; font: 700 12px var(--body); color: var(--ink); background: var(--gold); border-radius: 4px; box-shadow: 0 3px 0 var(--gold2); }
.k { font: 600 10.5px var(--body); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.muted { color: var(--muted); } .small { font-size: 12px; } .tiny { font-size: 11px; margin: 10px 2px 0; }
.dot { display: inline-block; width: 8px; height: 8px; background: var(--up); border-radius: 2px; box-shadow: 0 0 10px var(--up); }
.dot.live { animation: blink 1.6s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0.35; } }

.panel { background: var(--panel); border: 2px solid var(--line); border-radius: 6px; box-shadow: 0 4px 0 rgba(0, 0, 0, 0.35); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 11px 18px; font: 400 15px var(--px); letter-spacing: 0.02em; color: var(--text); background: #2a3a2e; border: 2px solid var(--line2); border-radius: 6px; box-shadow: 0 4px 0 #0c140f; cursor: pointer; text-decoration: none; transition: transform 0.08s, background 0.15s; }
.btn:hover { background: #34483a; } .btn:active { transform: translateY(3px); box-shadow: 0 1px 0 #0c140f; }
.btn.primary { color: var(--ink); background: var(--gold); border-color: #fff0c0; box-shadow: 0 4px 0 var(--gold2); }
.btn.primary:hover { background: #ffd984; } .btn.primary:disabled { opacity: 0.5; cursor: default; }
.btn.gold { color: var(--ink); background: var(--gold); border-color: #fff0c0; box-shadow: 0 4px 0 var(--gold2); }
.btn.sm { padding: 8px 12px; font-size: 13px; }
.btn.on { border-color: var(--gold); color: var(--gold); }

/* loader: the entry screen is the first impression, so it gets a real hero image */
#loader { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: max(16px, var(--sat)) 16px max(16px, var(--sab)); overflow: auto; background: radial-gradient(ellipse at 50% 15%, rgba(201, 150, 79, 0.2), transparent 60%), linear-gradient(rgba(8, 16, 11, 0.86), rgba(12, 22, 15, 0.9) 60%, rgba(16, 30, 20, 0.92)); backdrop-filter: blur(9px) saturate(1.05); -webkit-backdrop-filter: blur(9px) saturate(1.05); transition: opacity 0.6s; }
#loader.gone { opacity: 0; pointer-events: none; }
.loader-card { width: min(470px, 100%); overflow: hidden; background: linear-gradient(180deg, rgba(23, 38, 28, 0.96), rgba(14, 24, 18, 0.98)); border: 1px solid var(--line2); border-radius: 20px; box-shadow: 0 30px 70px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(0, 0, 0, 0.4); }

/* no max-height here: Safari keeps the ratio by shrinking the WIDTH, which left a gap beside the image */
.hero { position: relative; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%; transform: scale(1.02); }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(190deg, rgba(8, 16, 11, 0.55) 0%, transparent 30%, rgba(10, 18, 13, 0.6) 72%, #101c14 100%); }
.hero .eyebrow { position: absolute; top: 12px; right: 14px; z-index: 2; display: inline-flex; align-items: center; gap: 7px; margin: 0; padding: 5px 10px; font: 600 10.5px var(--body); letter-spacing: 0.14em; color: #e9e2cf; background: rgba(8, 15, 10, 0.6); border: 1px solid var(--line); border-radius: 999px; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.hero-title { position: absolute; left: 16px; right: 16px; bottom: 8px; z-index: 2; }
#loader h1 { margin: 0; line-height: 0; }
.wordmark { display: block; width: min(100%, 420px); height: auto; filter: drop-shadow(0 8px 22px rgba(0, 0, 0, 0.55)); }
.hero-title .dom { color: var(--gold); text-decoration: none; border-bottom: 1px solid rgba(255, 207, 106, 0.45); }
.hero-title .dom:hover { border-bottom-color: var(--gold); }
.brand .dom-sm { font: 400 11px var(--px); color: var(--gold2); letter-spacing: 0.04em; opacity: 0.9; }
.hero-title .tag { margin: 4px 0 0; font-size: 13px; color: #ded6c2; text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7); }

.card-body { padding: 14px 18px 18px; text-align: center; }
.facts { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 0 0 14px; padding: 0; list-style: none; }
.facts li { padding: 5px 9px; font-size: 11.5px; color: var(--muted); background: rgba(0, 0, 0, 0.3); border: 1px solid var(--line); border-radius: 999px; }
.facts b { color: var(--text); font-weight: 600; }

.who { display: flex; flex-direction: column; align-items: stretch; gap: 10px; margin: 0 auto 14px; max-width: 340px; }
.field { display: flex; flex-direction: column; gap: 5px; width: 100%; text-align: left; }
.field input { width: 100%; padding: 12px 13px; font: 600 16px var(--body); color: var(--text); background: rgba(0, 0, 0, 0.38); border: 1px solid var(--line2); border-radius: 10px; outline: none; user-select: text; -webkit-user-select: text; }
.field input:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(255, 207, 106, 0.16); }
.swatches { display: flex; gap: 7px; flex-wrap: wrap; justify-content: center; }
.swatch { width: 30px; height: 30px; border-radius: 9px; border: 2px solid rgba(255, 255, 255, 0.22); box-shadow: inset -4px -4px 0 rgba(0, 0, 0, 0.25); cursor: pointer; padding: 0; transition: transform 0.12s; }
.swatch:hover { transform: translateY(-2px); }
.swatch[aria-checked="true"] { border-color: #fff; outline: 2px solid var(--gold); outline-offset: 2px; }

#enter { width: 100%; max-width: 340px; font-size: 19px; padding: 15px 24px; border-radius: 12px; }
#enter:not(:disabled) { animation: pulse-cta 2.6s ease-in-out infinite; }
@keyframes pulse-cta { 50% { box-shadow: 0 4px 0 var(--gold2), 0 0 26px rgba(255, 207, 106, 0.35); } }
.bar { height: 5px; margin: 12px auto 7px; max-width: 340px; padding: 0; background: rgba(0, 0, 0, 0.45); border: none; border-radius: 999px; overflow: hidden; }
.bar b { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--gold2), var(--gold)); border-radius: 999px; transition: width 0.25s; }
#loader-status { margin: 0; font: 500 11.5px var(--body); color: var(--muted); min-height: 15px; }
.check { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 12px 0 0; color: var(--muted); cursor: pointer; font-size: 13px; }
.check input { accent-color: var(--gold); width: 16px; height: 16px; }
.keys { display: flex; flex-wrap: wrap; justify-content: center; gap: 7px 12px; margin: 14px 0 0; padding: 12px 0 0; list-style: none; color: var(--muted); font-size: 11.5px; border-top: 1px solid var(--line); }
.keys li { display: flex; align-items: center; gap: 4px; }
.keys kbd { min-width: 20px; height: 20px; font-size: 10.5px; }

@media (max-height: 700px) { .hero { aspect-ratio: auto; height: 26vh; min-height: 120px; } .card-body { padding: 12px 16px 14px; } .facts { margin-bottom: 10px; } }

/* chat */
#chat { position: fixed; z-index: 11; left: calc(12px + var(--sal)); bottom: calc(12px + var(--sab)); width: 360px; display: flex; flex-direction: column; gap: 6px; pointer-events: none; }
#chat-log { display: flex; flex-direction: column; gap: 3px; max-height: 210px; overflow: hidden; justify-content: flex-end; }
.cl { align-self: flex-start; max-width: 100%; padding: 4px 9px; font: 400 13.5px/1.35 var(--body); color: var(--text); background: rgba(12, 20, 15, 0.72); border-radius: 5px; overflow-wrap: anywhere; transition: opacity 0.6s; user-select: text; -webkit-user-select: text; }
.cl b { font-weight: 700; margin-right: 6px; }
.cl.sys { color: var(--muted); font-style: italic; }
.cl.me { background: rgba(40, 56, 34, 0.8); }
.cl.old { opacity: 0; }
body.chatting .cl.old, #chat:hover .cl.old { opacity: 1; }
body.chatting #chat-log { overflow-y: auto; pointer-events: auto; }
#chat-form { display: flex; gap: 6px; pointer-events: auto; }
#chat-input { flex: 1; min-width: 0; padding: 8px 10px; font: 400 14px var(--body); color: var(--text); background: rgba(12, 20, 15, 0.7); border: 2px solid var(--line); border-radius: 6px; outline: none; user-select: text; -webkit-user-select: text; }
#chat-input:focus { border-color: var(--gold); background: rgba(12, 20, 15, 0.92); }
.chip-btn { padding: 0 10px; font: 400 13px var(--px); color: var(--text); background: rgba(12, 20, 15, 0.7); border: 2px solid var(--line); border-radius: 6px; cursor: pointer; }
body.chat-off #chat { display: none; }
body.card-open #chat { opacity: 0.35; }

/* ask an animal */
#ask { display: flex; gap: 6px; margin-top: 12px; }
#ask input { flex: 1; min-width: 0; padding: 9px 10px; font: 400 14px var(--body); color: var(--text); background: rgba(0, 0, 0, 0.3); border: 2px solid var(--line); border-radius: 6px; outline: none; user-select: text; -webkit-user-select: text; }
#ask input:focus { border-color: var(--gold); }
#ask .chip-btn.on { border-color: var(--down); color: var(--down); }
#ask-reply { display: flex; flex-direction: column; gap: 3px; margin: 8px 2px 0; min-height: 0; color: #d8d0bc; font-style: italic; }
#ask-reply .you { color: var(--muted); font-style: normal; font-size: 12px; }
#ask-reply.think { opacity: 0.6; }

/* top hud */
#hud-top { position: fixed; top: calc(12px + var(--sat)); left: calc(12px + var(--sal)); right: calc(12px + var(--sar)); display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; pointer-events: none; z-index: 10; }
.stack { display: flex; flex-direction: column; gap: 8px; pointer-events: auto; }
.stack.right { align-items: flex-end; }
.row { display: flex; align-items: center; gap: 8px; }
.brand { display: flex; align-items: center; gap: 9px; padding: 8px 12px; font: 400 15px var(--px); letter-spacing: 0.06em; }
.brand .muted { font: 500 12px var(--body); letter-spacing: 0; }
body.card-open #hud-top .stack.right { opacity: 0; pointer-events: none; }
#hud-top .stack.right { transition: opacity 0.2s; }
.mood { width: 230px; padding: 9px 12px; }
.mood .row { justify-content: space-between; } .mood strong { font: 400 16px var(--px); } .mood em { font: 400 13px var(--px); font-style: normal; }
.meter { height: 8px; margin: 7px 0 6px; background: rgba(0, 0, 0, 0.45); border-radius: 2px; overflow: hidden; }
.meter b { display: block; height: 100%; width: 50%; background: linear-gradient(90deg, var(--down), var(--gold) 50%, var(--up)); transition: width 0.8s; }
.mood[data-mood="bull"] strong, .mood[data-mood="bull"] em { color: var(--up); } .mood[data-mood="bear"] strong, .mood[data-mood="bear"] em { color: var(--down); }
.next { display: flex; align-items: baseline; gap: 8px; padding: 8px 12px; width: 230px; } .next strong { font: 400 13px var(--px); flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .next em { font: 400 13px var(--px); font-style: normal; color: var(--gold); }
.icon { width: 42px; height: 42px; display: grid; place-items: center; cursor: pointer; color: var(--text); } .icon svg { width: 18px; height: 18px; }
.king { display: flex; align-items: center; gap: 10px; padding: 8px 12px; min-width: 210px; }
.king .crown { width: 26px; height: 20px; color: var(--gold); filter: drop-shadow(0 0 6px rgba(255, 207, 106, 0.6)); }
.king div { display: flex; flex-direction: column; flex: 1; } .king strong { font: 400 17px var(--px); color: var(--gold); } .king em { font: 400 15px var(--px); font-style: normal; color: var(--up); }
#menu { width: 280px; padding: 10px; }
.menu-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.menu-grid .gold { grid-column: span 2; }

/* event banner + toasts + prompt */
#event { position: fixed; top: calc(14px + var(--sat)); left: 50%; transform: translateX(-50%); z-index: 12; display: flex; align-items: center; gap: 10px; padding: 9px 14px; background: var(--panel2); border: 2px solid var(--gold); border-radius: 6px; box-shadow: 0 4px 0 rgba(0, 0, 0, 0.4), 0 0 30px rgba(255, 207, 106, 0.25); white-space: nowrap; }
#event .tag { font: 700 11px var(--body); color: var(--ink); background: var(--gold); padding: 3px 6px; border-radius: 3px; animation: blink 1.2s steps(2) infinite; }
#event strong { font: 400 15px var(--px); } #event span { color: var(--muted); font-size: 13px; } #event em { font: 400 14px var(--px); font-style: normal; color: var(--gold); }
#toasts { position: fixed; left: 50%; top: calc(70px + var(--sat)); transform: translateX(-50%); z-index: 12; display: flex; flex-direction: column; align-items: center; gap: 6px; pointer-events: none; }
.toast { padding: 8px 14px; font: 400 14px var(--px); background: var(--panel2); border: 2px solid var(--line2); border-radius: 6px; box-shadow: 0 4px 0 rgba(0, 0, 0, 0.35); animation: toast 4s forwards; white-space: nowrap; }
.toast.gold { border-color: var(--gold); color: var(--gold); } .toast.up { border-color: var(--up); } .toast.down { border-color: var(--down); }
@keyframes toast { 0% { opacity: 0; transform: translateY(-8px); } 8%, 85% { opacity: 1; transform: none; } 100% { opacity: 0; transform: translateY(-6px); } }
#prompt { position: fixed; left: 50%; bottom: calc(120px + var(--sab)); transform: translateX(-50%); z-index: 11; display: flex; align-items: center; gap: 10px; padding: 8px 14px 8px 8px; font: 400 15px var(--px); background: var(--panel2); border: 2px solid var(--line2); border-radius: 6px; box-shadow: 0 4px 0 rgba(0, 0, 0, 0.35); transition: opacity 0.2s, transform 0.2s; cursor: pointer; }
#prompt.hide { opacity: 0; transform: translate(-50%, 8px); pointer-events: none; }
body.touch #prompt { padding: 12px 20px 12px 12px; font-size: 17px; }

/* bottom */
#hud-bottom { position: fixed; left: calc(386px + var(--sal)); right: calc(12px + var(--sar)); bottom: calc(12px + var(--sab)); z-index: 10; display: flex; align-items: flex-end; justify-content: flex-start; gap: 10px; pointer-events: none; }
.mini { position: relative; width: 168px; height: 168px; padding: 4px; pointer-events: auto; }
.mini canvas { width: 100%; height: 100%; display: block; border-radius: 3px; image-rendering: pixelated; }
.mini-label { position: absolute; top: 6px; left: 50%; transform: translateX(-50%); font: 400 11px var(--px); color: var(--gold); text-shadow: 0 1px 0 #000; }
#chips { display: flex; gap: 6px; pointer-events: auto; max-width: 100%; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; }
#chips::-webkit-scrollbar { display: none; }
.chip { flex: none; display: flex; align-items: center; gap: 6px; padding: 5px 9px 5px 5px; font: 400 12px var(--px); background: var(--panel); border: 2px solid var(--line); border-radius: 5px; cursor: pointer; box-shadow: 0 3px 0 rgba(0, 0, 0, 0.3); }
.chip img { width: 20px; height: 20px; border-radius: 3px; } .chip em { font-style: normal; } .chip .up { color: var(--up); } .chip .down { color: var(--down); }
.chip.king { border-color: var(--gold); }

/* card */
#card { position: fixed; z-index: 20; top: calc(12px + var(--sat)); right: calc(12px + var(--sar)); bottom: calc(12px + var(--sab)); width: 360px; padding: 18px; overflow-y: auto; background: var(--panel2); border: 2px solid var(--line2); border-radius: 8px; box-shadow: 0 6px 0 rgba(0, 0, 0, 0.4); transform: translateX(calc(100% + 30px)); transition: transform 0.35s cubic-bezier(0.2, 0.9, 0.2, 1.05); user-select: text; -webkit-user-select: text; }
#card.open { transform: none; }
.close { position: absolute; top: 12px; right: 12px; width: 34px; height: 34px; display: grid; place-items: center; background: #2a3a2e; border: 2px solid var(--line2); border-radius: 5px; cursor: pointer; color: var(--text); } .close svg { width: 14px; height: 14px; }
.card-head { display: flex; gap: 14px; align-items: center; margin-right: 40px; }
#card-logo { width: 64px; height: 64px; border-radius: 6px; border: 2px solid var(--gold); background: #000; object-fit: cover; flex: none; }
#card-ticker { font: 400 24px var(--px); color: var(--gold); }
.name { font: 600 15px var(--body); }
.badge { font: 700 10px var(--body); letter-spacing: 0.06em; padding: 3px 6px; border-radius: 3px; background: #2a3a2e; border: 1px solid var(--line2); }
.badge.gold { background: var(--gold); color: var(--ink); border-color: var(--gold); }
.badge[data-mood="happy"], .badge[data-mood="euphoric"] { color: var(--up); border-color: var(--up); } .badge[data-mood="sad"], .badge[data-mood="crash"] { color: var(--down); border-color: var(--down); }
.price { display: flex; align-items: baseline; justify-content: space-between; margin: 16px 0 10px; }
#card-price { font: 400 30px var(--px); } .chg { font: 400 18px var(--px); } .up { color: var(--up); } .down { color: var(--down); }
.chips3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.chips3 div { display: flex; justify-content: space-between; align-items: baseline; padding: 7px 9px; background: rgba(0, 0, 0, 0.25); border-radius: 4px; } .chips3 b { font: 400 13px var(--px); }
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin: 8px 0 0; }
.grid div { padding: 8px 10px; background: rgba(0, 0, 0, 0.25); border-radius: 4px; } .grid dt { font: 600 10.5px var(--body); color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; } .grid dd { margin: 2px 0 0; font: 400 15px var(--px); }
.hold { display: flex; align-items: baseline; gap: 8px; margin-top: 8px; padding: 9px 10px; border: 2px solid var(--gold); border-radius: 5px; } .hold strong { font: 400 15px var(--px); color: var(--gold); } .hold em { font-style: normal; color: var(--muted); margin-left: auto; }
#card-lore { margin: 14px 0; color: #d8d0bc; font-size: 13.5px; line-height: 1.5; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; }
.mint { display: flex; align-items: center; gap: 8px; width: 100%; margin-top: 12px; padding: 8px 10px; text-align: left; background: rgba(0, 0, 0, 0.25); border: 1px dashed var(--line2); border-radius: 4px; cursor: pointer; }
.mint code { font: 12px ui-monospace, "SF Mono", Menlo, monospace; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

#passport { position: fixed; z-index: 21; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(440px, calc(100vw - 24px)); max-height: calc(100vh - 40px); overflow-y: auto; padding: 22px; background: var(--panel2); border: 2px solid var(--gold); border-radius: 8px; box-shadow: 0 6px 0 rgba(0, 0, 0, 0.45); }
#passport h2 { margin: 0 0 14px; font: 400 26px var(--px); color: var(--gold); } #passport h3 { margin: 16px 0 4px; font: 400 15px var(--px); } #passport p { margin: 4px 0; color: #d8d0bc; }
.pp-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; } .pp-stats div { padding: 10px; background: rgba(0, 0, 0, 0.3); border-radius: 5px; display: flex; flex-direction: column; } .pp-stats strong { font: 400 26px var(--px); color: var(--gold); }

/* touch */
#touch { display: none; }
body.touch #touch { display: block; }
#joy { position: fixed; z-index: 9; width: 112px; height: 112px; margin: -56px 0 0 -56px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, 0.25); background: rgba(0, 0, 0, 0.2); opacity: 0; pointer-events: none; transition: opacity 0.15s; }
#joy.on { opacity: 1; } #joy b { position: absolute; left: 50%; top: 50%; width: 46px; height: 46px; margin: -23px 0 0 -23px; border-radius: 12px; background: var(--gold); box-shadow: 0 3px 0 var(--gold2); }
.tbtns { position: fixed; z-index: 11; right: calc(14px + var(--sar)); bottom: calc(18px + var(--sab)); display: grid; grid-template-columns: 64px 64px; grid-template-areas: ". chat" "ride jump"; gap: 10px; }
.tbtn { width: 64px; height: 64px; font: 400 13px var(--px); color: var(--text); background: var(--panel2); border: 2px solid var(--line2); border-radius: 12px; box-shadow: 0 4px 0 rgba(0, 0, 0, 0.4); }
.tbtn:active { transform: translateY(3px); box-shadow: none; }
#t-talk { grid-area: talk; background: var(--gold); color: var(--ink); border-color: #fff0c0; } #t-ride { grid-area: ride; } #t-jump { grid-area: jump; }
#t-talk.dim { opacity: 0.45; }
.tbtns { grid-template-areas: ". chat" "ride jump"; } #t-chat { grid-area: chat; }
#fps { position: fixed; right: 8px; bottom: 4px; font: 10px monospace; color: rgba(255, 255, 255, 0.35); pointer-events: none; z-index: 30; }

@media (max-width: 760px) {
  .mood, .next { width: 190px; } .mood { padding: 7px 10px; } .next { display: none; }
  .king { min-width: 0; padding: 6px 10px; } .king strong { font-size: 15px; }
  .brand { padding: 6px 10px; font-size: 13px; } .brand .muted { font-size: 11px; }
  .mini { width: 108px; height: 108px; }
  #hud-bottom { left: calc(12px + var(--sal)); } body.touch #hud-bottom { bottom: calc(10px + var(--sab)); }
  body.touch #chips { display: none; }
  #card .mint, #card-lore { display: none; } #card .price { margin: 10px 0 8px; } #card-price { font-size: 26px; }
  #prompt { bottom: calc(196px + var(--sab)); }
  #chat { width: calc(100vw - 168px); bottom: calc(150px + var(--sab)); }
  #chat-log { max-height: 118px; } .cl { font-size: 12.5px; padding: 3px 7px; }
  body.touch #chat-form { display: none; }
  body.touch.chatting #chat-form { display: flex; position: fixed; left: 8px; right: 8px; top: calc(8px + var(--sat)); z-index: 40; }
  body.touch.chatting #chat-input { font-size: 16px; padding: 11px 12px; }
  #card { top: auto; left: calc(8px + var(--sal)); right: calc(8px + var(--sar)); bottom: calc(8px + var(--sab)); width: auto; max-height: 52vh; transform: translateY(calc(100% + 30px)); padding: 16px; }
  #card.open { transform: none; }
  #event { top: calc(122px + var(--sat)); left: calc(50% - 62px); font-size: 12px; padding: 6px 10px; max-width: calc(100vw - 150px); } #event span { display: none; }
  #toasts { top: calc(166px + var(--sat)); width: calc(100vw - 24px); } .toast { white-space: normal; text-align: center; }
  #menu { width: min(280px, calc(100vw - 24px)); }
}
@media (max-width: 420px) { .mood { width: 150px; padding: 6px 9px; } .mood strong { font-size: 14px; } .mood .small { display: none; } .king em { display: none; } .king { max-width: 168px; gap: 7px; } .king .crown { width: 20px; height: 16px; } .king strong { font-size: 14px; } .brand { font-size: 12px; } }
body.touch .keys { display: none; }
body.touch #vignette { opacity: 0.55; }
body.touch .touch-tip { display: block; }
.touch-tip { display: none; margin: 16px 0 0; color: var(--muted); font-size: 12px; }
