:root {
  --void: #08080c;
  --panel: rgba(14, 14, 20, 0.86);
  --panel-solid: #12121a;
  --line: rgba(255, 255, 255, 0.10);
  --text: #f2f2f5;
  --muted: #9a9aa8;
  --accent: #c6ff3d;
  --accent-ink: #10140a;
  --danger: #ff5c6c;
  --radius: 14px;
  /* phone notches, and in Telegram fullscreen the space under Telegram's own Close / ⋯ buttons (Telegram sets --tg-*) */
  --safe-b: max(env(safe-area-inset-bottom, 0px), calc(var(--tg-safe-area-inset-bottom, 0px) + var(--tg-content-safe-area-inset-bottom, 0px)));
  --safe-t: max(env(safe-area-inset-top, 0px), calc(var(--tg-safe-area-inset-top, 0px) + var(--tg-content-safe-area-inset-top, 0px)));
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; overflow: hidden; background: var(--void); color: var(--text);
  font-family: "Space Grotesk", system-ui, -apple-system, Segoe UI, Roboto, sans-serif; font-size: 15px; }
button { font: inherit; color: inherit; cursor: pointer; }
.hidden { display: none !important; }
.muted { color: var(--muted); }
.small { font-size: 12.5px; }

#scene { position: fixed; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; }

/* ---------- Screens ---------- */
.screen { position: fixed; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 18px; padding: calc(24px + var(--safe-t)) 16px calc(24px + var(--safe-b)); z-index: 10; }
#screen-loading { background: radial-gradient(ellipse at 50% 55%, #120c1d 0%, #05030a 70%); }
.logo { font-weight: 700; font-size: clamp(30px, 9vw, 52px); letter-spacing: 0.14em; text-shadow: 0 0 28px rgba(155, 123, 214, 0.45); }
.logo span { color: var(--accent); }
.logo.title { font-size: clamp(32px, 10vw, 58px); }
.spinner { width: 28px; height: 28px; border: 3px solid var(--line); border-top-color: var(--accent); border-radius: 50%;
  animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

#screen-select { justify-content: space-between; pointer-events: none; }
#screen-select > * { pointer-events: auto; }
.select-head { text-align: center; }
.select-head h1 { margin: 0; }
.select-head p { margin: 6px 0 0; }
.select-stage { display: flex; align-items: center; justify-content: space-between; width: 100%; max-width: 520px; margin-top: auto; }
.select-name { white-space: nowrap; font-size: clamp(17px, 5.6vw, 26px); font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  background: var(--panel); border: 1px solid var(--line); border-radius: 999px; padding: 6px 20px; }
.nav-arrow { width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--line); background: var(--panel);
  font-size: 30px; line-height: 1; }
.dots { display: flex; gap: 8px; }
.dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--line); }
.dots i.on { background: var(--accent); }

/* ---------- Buttons ---------- */
.btn { border: 1px solid var(--line); background: #1c1c26; border-radius: 10px; padding: 10px 14px; font-weight: 500; }
.btn.primary { background: var(--accent); color: var(--accent-ink); border-color: transparent; font-weight: 700; }
.btn.ghost { background: transparent; }
.btn.big { font-size: 20px; padding: 14px 40px; white-space: nowrap; border-radius: 999px; letter-spacing: 0.08em; text-transform: uppercase; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: 0.5; }
.icon-btn { width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--line); background: var(--panel); font-size: 17px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 8px; }
.small-btn { margin-top: 10px; width: 100%; }

/* ---------- HUD ---------- */
#hud { position: fixed; inset: 0; pointer-events: none; z-index: 5; }
#hud > * { pointer-events: auto; }
.topbar { position: absolute; top: calc(10px + var(--safe-t)); left: 10px; right: 10px; display: flex; justify-content: space-between;
  align-items: center; gap: 8px; pointer-events: none; }
.topbar > * { pointer-events: auto; }
.room-tag { background: var(--panel); border: 1px solid var(--line); border-radius: 999px; padding: 7px 14px; font-weight: 500;
  max-width: 60vw; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.room-tag.visiting { border-color: var(--accent); }
.top-actions { display: flex; align-items: center; gap: 8px; }

/* First-person crosshair and the context button that appears when you look at a wall */
.crosshair { position: absolute; left: 50%; top: 50%; width: 8px; height: 8px; margin: -4px 0 0 -4px; border-radius: 50%;
  background: rgba(255,255,255,0.9); box-shadow: 0 0 0 2px rgba(8,8,12,0.55); pointer-events: none !important; transition: transform .12s; }
.crosshair.target { transform: scale(1.6); background: var(--accent); }
.look-btn { position: absolute; left: 50%; top: calc(50% + 34px); transform: translateX(-50%); border: 0; border-radius: 999px;
  background: var(--accent); color: var(--accent-ink); font-weight: 700; font-size: 16px; padding: 12px 22px; box-shadow: 0 6px 24px rgba(0,0,0,0.35); }
.look-btn.danger { background: #1c1c26; color: #fff; border: 1px solid var(--danger); }
.hint { position: absolute; bottom: calc(66px + var(--safe-b)); left: 50%; transform: translateX(-50%); background: var(--panel);
  border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; font-size: 13px; color: var(--muted); white-space: nowrap; pointer-events: none; }
.hint:empty { display: none; }


/* Sit / Stand: bottom-center (above the phone controls) */
.seat-btn { position: absolute; left: 50%; bottom: calc(112px + var(--safe-b)); transform: translateX(-50%); border: 0; border-radius: 999px;
  background: #f2f2f5; color: #111; font-weight: 700; font-size: 16px; padding: 12px 24px; box-shadow: 0 6px 24px rgba(0,0,0,0.35); white-space: pre; }
.seat-btn.ghost { background: rgba(14,14,20,0.86); color: #fff; border: 1px solid var(--line); }
.seat-btn:disabled { opacity: 0.7; }
body.touch .seat-btn { bottom: calc(196px + var(--safe-b)); }

/* ---------- Controls ---------- */
body:not(.touch) .touch-only { display: none !important; }
body.touch .desk-only { display: none !important; }

/* Phone: walk arrows, bottom-left */
.dpad { position: absolute; left: 16px; bottom: calc(18px + var(--safe-b)); width: 156px; height: 156px; touch-action: none; user-select: none; -webkit-user-select: none; }
.dpad .arrow { position: absolute; width: 52px; height: 52px; display: grid; place-items: center; border-radius: 14px; font-size: 18px; color: #fff;
  background: rgba(10, 10, 16, 0.45); border: 1px solid var(--line); backdrop-filter: blur(4px); transition: background .08s, transform .08s; }
.dpad .up { left: 52px; top: 0; } .dpad .down { left: 52px; bottom: 0; }
.dpad .left { left: 0; top: 52px; } .dpad .right { right: 0; top: 52px; }
.dpad .arrow.on { background: var(--accent); color: var(--accent-ink); transform: scale(0.94); }

.jump-btn { position: absolute; right: 26px; bottom: calc(40px + var(--safe-b)); width: 76px; height: 76px; border-radius: 50%; font-size: 30px;
  border: 1px solid var(--line); background: rgba(10, 10, 16, 0.45); font-size: 24px; backdrop-filter: blur(4px); }

/* PC: controls line */
.pc-help { position: absolute; right: 10px; bottom: calc(14px + var(--safe-b)); max-width: calc(100vw - 420px); text-align: right; font-size: 12.5px; line-height: 1.5;
  color: rgba(255,255,255,0.85); background: rgba(10,10,16,0.55); border: 1px solid var(--line); border-radius: 14px; padding: 6px 14px; pointer-events: none !important; }
@media (max-width: 760px) { .pc-help { display: none; } }   /* small windows: the chat bar needs the room */
.pc-help b { color: var(--accent); font-weight: 500; }
.pc-help.cta { top: 50%; bottom: auto; transform: translate(-50%, -88px); font-size: 14px; padding: 9px 18px; }

/* Desktop browser: Telegram login */
.tg-login { text-align: center; max-width: 340px; }
.tg-login p { margin: 8px 0; }
#tg-login-widget { min-height: 48px; display: flex; justify-content: center; margin: 14px 0; }

/* Settings button on the left side of the screen */
.side-btn { position: absolute; left: 10px; top: calc(60px + var(--safe-t)); width: 58px; height: 54px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--panel); display: flex; flex-direction: column; align-items: center; justify-content: center;
  font-size: 20px; gap: 1px; }
.side-btn span { font-size: 10.5px; color: var(--muted); }

/* Add NFT sheet: no dark backdrop and shorter, so you can watch your hands on the wall while choosing */
#sheet-nfts { background: transparent; }
#sheet-nfts .sheet-card { max-height: 56vh; }

/* ---------- Settings ---------- */
.char-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.char-card { position: relative; border: 1px solid var(--line); border-radius: 12px; background: #0b0b11; padding: 0 0 6px; overflow: hidden; }
.char-card img { width: 100%; aspect-ratio: 4 / 5; object-fit: contain; display: block; background: radial-gradient(circle at 50% 70%, #1c1c26, #0b0b11 70%); }
.char-card .ph { width: 100%; aspect-ratio: 4 / 5; }
.char-card b { display: block; font-size: 13px; font-weight: 500; margin-top: 4px; }
.char-card.on { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.char-card.on::after { content: "✓"; position: absolute; top: 6px; right: 8px; color: var(--accent-ink); background: var(--accent);
  border-radius: 999px; width: 20px; height: 20px; font-size: 12px; line-height: 20px; font-weight: 700; }
.char-card:disabled { opacity: 0.6; }
.wallet-list { list-style: none; margin: 0 0 8px; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.wallet-list li { display: flex; justify-content: space-between; align-items: center; gap: 10px; border: 1px solid var(--line);
  border-radius: 10px; padding: 9px 12px; font-family: ui-monospace, Menlo, monospace; font-size: 13.5px; }
.wallet-list li .tag { font-family: inherit; font-size: 11px; color: var(--accent); border: 1px solid var(--accent); border-radius: 999px; padding: 1px 8px; }
.wallet-list li button { background: none; border: 0; color: var(--muted); font-size: 12px; }

/* ---------- Chat ---------- */
.chat { position: absolute; left: 10px; bottom: calc(10px + var(--safe-b)); width: min(380px, calc(100vw - 20px));
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; backdrop-filter: blur(8px); }
.chat-toggle { width: 100%; text-align: left; background: none; border: 0; padding: 10px 14px; font-weight: 500; display: flex; gap: 8px; align-items: center; }
.badge { background: var(--accent); color: var(--accent-ink); border-radius: 999px; padding: 0 7px; font-size: 12px; }
.chat.collapsed .chat-body { display: none; }
.chat-log { list-style: none; margin: 0; padding: 0 14px; height: 30vh; max-height: 260px; overflow-y: auto; overscroll-behavior: contain; }
.chat-log li { padding: 3px 0; font-size: 14px; line-height: 1.35; word-wrap: break-word; }
.chat-log li b { color: var(--accent); font-weight: 500; margin-right: 6px; }
.chat-log li.me b { color: #fff; }
.chat-form { display: flex; gap: 6px; padding: 10px; border-top: 1px solid var(--line); }
.chat-form input { flex: 1; min-width: 0; background: #0b0b11; border: 1px solid var(--line); border-radius: 10px; color: var(--text); padding: 9px 11px; font: inherit; }
.chat-form input:focus { outline: none; border-color: var(--accent); }

/* Phone: chat lives under Settings (bottom-left is for the walk arrows) */
body.touch .chat { top: calc(122px + var(--safe-t)); bottom: auto; width: auto; max-width: calc(100vw - 20px); }
body.touch .chat.collapsed .chat-title { display: none; }
body.touch .chat.collapsed .chat-toggle { width: 58px; height: 54px; padding: 0; justify-content: center; font-size: 20px; position: relative; }
body.touch .chat.collapsed .badge { position: absolute; top: 4px; right: 4px; }
body.touch .chat:not(.collapsed) { width: min(360px, calc(100vw - 20px)); }
body.touch .chat-log { height: 26vh; }
body.touch .hint { bottom: auto; top: calc(60px + var(--safe-t)); max-width: calc(100vw - 160px); white-space: normal; text-align: center; }

/* ---------- Sheets ---------- */
.sheet { position: fixed; inset: 0; z-index: 20; background: rgba(0, 0, 0, 0.5); display: flex; align-items: flex-end; justify-content: center; }
.sheet-card { width: min(560px, 100%); max-height: min(86vh, calc(100vh - 20px - var(--safe-t))); overflow-y: auto; background: var(--panel-solid); border: 1px solid var(--line);
  border-radius: 18px 18px 0 0; padding: 16px 16px calc(20px + var(--safe-b)); }
@media (min-width: 700px) { .sheet { align-items: center; } .sheet-card { border-radius: 18px; } }
.sheet-head { display: flex; justify-content: space-between; align-items: center; }
.sheet-head h2 { margin: 0; font-size: 20px; }
.sheet h3 { margin: 18px 0 8px; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
.row { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 8px 0; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.seg button { background: none; border: 0; padding: 8px 14px; color: var(--muted); }
.seg button.on { background: var(--accent); color: var(--accent-ink); font-weight: 700; }
.invite-box { background: #0b0b11; border: 1px solid var(--line); border-radius: 10px; padding: 10px; margin-bottom: 8px; overflow-x: auto; }
.invite-box code { font-size: 12.5px; white-space: nowrap; }
.room-list { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.room-list li { display: flex; justify-content: space-between; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; }
.room-list .meta { font-size: 12.5px; color: var(--muted); }
.nft-group h4 { margin: 16px 0 8px; font-size: 13px; font-weight: 500; color: var(--muted); font-family: ui-monospace, Menlo, monospace; }
.nft-group h4 b { color: var(--text); }
.nft-actions { margin-top: 16px; }
.nft-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.nft-grid button { padding: 0; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: #0b0b11; aspect-ratio: 1; position: relative; }
.nft-grid img { width: 100%; height: 100%; object-fit: contain; display: block; background: #0b0b11; }   /* whole picture, never cropped (some NFTs aren't square) */
.nft-grid span { position: absolute; left: 0; right: 0; bottom: 0; font-size: 11px; padding: 3px 5px; background: rgba(0,0,0,0.6);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: left; }

.toast { position: fixed; left: 50%; top: 38%; transform: translateX(-50%); z-index: 30; background: var(--panel-solid);
  border: 1px solid var(--line); border-radius: 12px; padding: 10px 16px; max-width: 90vw; text-align: center; }
.toast.error { border-color: var(--danger); }

/* ---- Welcome popups (first visit) ---- */
.intro { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: calc(16px + var(--safe-t)) 16px calc(16px + var(--safe-b));
  background: rgba(4, 4, 8, 0.72); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.intro.hidden { display: none; }
.intro-card { width: min(460px, 100%); max-height: calc(100vh - 32px - var(--safe-t) - var(--safe-b)); overflow-y: auto; background: #12121a; border: 1px solid var(--line);
  border-radius: 18px; padding: 26px 22px 18px; box-shadow: 0 20px 60px rgba(0,0,0,0.6), 0 0 40px rgba(155,123,214,0.15); text-align: center; }
.intro-step h2 { margin: 6px 0 10px; font-size: 21px; }
.intro-step p { margin: 0 0 6px; line-height: 1.5; color: #d6d6de; }
.intro-step a { color: var(--accent); font-weight: 600; }
.flexbot-link { color: var(--accent); text-decoration: underline; cursor: pointer; } .flexbot-link b { color: inherit; }
.intro-logo { font-size: 30px; margin-bottom: 6px; }
.intro-icon { font-size: 38px; line-height: 1; margin-bottom: 4px; }
.intro-check { display: flex; gap: 10px; align-items: flex-start; text-align: left; margin-top: 16px; padding: 12px; cursor: pointer;
  border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,0.03); font-size: 14px; line-height: 1.4; }
.intro-check input { width: 20px; height: 20px; flex: none; margin: 1px 0 0; accent-color: var(--accent); cursor: pointer; }
.intro-check.nudge { border-color: #ff6b6b; animation: introShake 0.3s; }
@keyframes introShake { 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }
.intro-img { display: block; width: 100%; margin-top: 12px; border-radius: 12px; border: 1px solid var(--line); }
.intro-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 20px; }
.intro-dots { margin: 0; }
#intro-ok { min-width: 120px; padding: 12px 18px; }
#intro-ok.off { opacity: 0.4; cursor: not-allowed; }
.intro-card.pop-in { animation: introPopIn 0.28s cubic-bezier(.2,.9,.3,1.25); }
.intro-card.pop-out { animation: introPopOut 0.22s ease-in forwards; }
@keyframes introPopIn { from { opacity: 0; transform: scale(0.8) translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes introPopOut { to { opacity: 0; transform: scale(0.85); } }

/* ---- Wallet verification steps ---- */
.verify-steps { list-style: none; counter-reset: vs; margin: 14px 0 12px; padding: 0; display: grid; gap: 10px; }
.verify-steps li { counter-increment: vs; position: relative; padding: 10px 12px 10px 46px; border: 1px solid var(--line); border-radius: 12px;
  background: rgba(255,255,255,0.03); line-height: 1.45; font-size: 14px; }
.verify-steps li::before { content: counter(vs); position: absolute; left: 12px; top: 10px; width: 24px; height: 24px; border-radius: 50%;
  display: grid; place-items: center; background: var(--accent); color: var(--accent-ink); font-weight: 700; font-size: 13px; }
.verify-steps code { background: rgba(255,255,255,0.08); padding: 1px 6px; border-radius: 6px; color: var(--accent); }
/* 👛 Add a wallet inside the game */
.vw-step { display: flex; gap: 12px; align-items: flex-start; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; margin: 12px 0 10px; }
.vw-step > b { flex: 0 0 24px; height: 24px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; font-size: 13px; }
.vw-step > div { flex: 1; min-width: 0; display: grid; gap: 6px; }
.vw-code { display: flex; gap: 8px; align-items: center; }
.vw-code code { flex: 1; min-width: 0; overflow-wrap: anywhere; background: rgba(255,255,255,0.08); padding: 8px 10px; border-radius: 8px; color: var(--accent); font-size: 16px; user-select: all; -webkit-user-select: all; }
.vw-add { display: flex; gap: 8px; }
.vw-add input { flex: 1; min-width: 0; background: rgba(255,255,255,0.06); border: 1px solid var(--line); border-radius: 10px; color: inherit; padding: 9px 10px; font: inherit; font-size: 16px; }
.vw-multi { margin: 0 0 4px; font-size: 14px; }
.vw-ways { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; background: rgba(255,255,255,0.05); padding: 4px; border-radius: 12px; }
.vw-ways button { border: 0; border-radius: 9px; padding: 8px 6px; background: transparent; color: inherit; font: inherit; font-size: 14px; cursor: pointer; opacity: 0.75; }
.vw-ways button.on { background: var(--accent); color: var(--accent-ink); opacity: 1; font-weight: 600; }
#vw-os, #vw-send { display: grid; gap: 8px; }
#vw-os.hidden, #vw-send.hidden { display: none; }
.vw-multi summary { cursor: pointer; padding: 4px 2px; }
.vw-multi img { width: 100%; height: auto; max-height: 72vh; object-fit: contain; border-radius: 10px; margin-top: 6px; display: block; cursor: zoom-in; background: #111019; }
.vw-multi { min-width: 0; } .vw-multi[open] { overflow: visible; }
#img-zoom { position: fixed; inset: 0; z-index: 9999; background: rgba(4,3,8,.92); display: flex; align-items: center; justify-content: center; padding: 12px; cursor: zoom-out; }
#img-zoom img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 10px; }
.vw-list { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; margin: 0 0 12px; }
.vw-list:empty { display: none; }
.vw-row { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; font-size: 14px; }
.vw-row span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: ui-monospace, monospace; }
.vw-row button { flex: 0 0 auto; }
.vw-code .btn, .vw-row .btn { padding: 6px 10px; font-size: 13px; min-height: 0; }
.vw-row button.armed { background: #ff5a5f; color: #fff; }
.verify-result { margin: 0 0 12px; padding: 10px 12px; border-radius: 12px; font-size: 14px; border: 1px solid var(--line); }
.verify-result.ok { border-color: var(--accent); color: var(--accent); background: rgba(198,255,61,0.07); }

/* "My room" button next to the room name while visiting someone */
.go-home-btn { margin-left: 8px; border: 1px solid var(--accent); background: var(--panel); color: var(--text); border-radius: 999px;
  padding: 7px 12px; font-size: 13px; font-weight: 600; cursor: pointer; }
.top-left { display: flex; align-items: center; gap: 0; flex-wrap: wrap; pointer-events: auto; }
.go-home-btn.hidden { display: none; }
/* falling into the void: a quick fade back in */
.void-flash { position: fixed; inset: 0; background: #05030a; opacity: 0; pointer-events: none; z-index: 40; }
.void-flash.on { animation: voidFlash 0.9s ease-out; }
@keyframes voidFlash { 0% { opacity: 1; } 100% { opacity: 0; } }

/* small second line inside a big button, e.g. "Generate Box (this cannot be undone)" */
.btn-note { display: block; font-size: 12px; letter-spacing: 0.02em; text-transform: none; font-weight: 500; opacity: 0.75; margin-top: 2px; }

/* Emotes in Settings */
.emote-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.emote-btn { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 12px 6px; border-radius: 12px;
  border: 1px solid var(--line); background: #1c1c26; font-weight: 600; font-size: 14px; cursor: pointer; }
.emote-btn span { font-size: 26px; line-height: 1; }
.emote-btn small { position: absolute; top: 6px; right: 8px; font-size: 11px; opacity: 0.55; font-weight: 500; }
.emote-btn:active { transform: scale(0.97); }
body.touch .desk-only { display: none; }

/* Info card for the hung NFT you're looking at */
.nft-info { position: absolute; left: 50%; top: calc(50% + 84px); transform: translateX(-50%); display: flex; align-items: center; gap: 12px;
  max-width: min(92vw, 460px); background: rgba(12,12,18,0.88); border: 1px solid var(--line); border-radius: 14px; padding: 9px 10px 9px 14px;
  backdrop-filter: blur(8px); box-shadow: 0 8px 28px rgba(0,0,0,0.4); pointer-events: auto; }
.nft-info-text { display: flex; flex-direction: column; min-width: 0; }
.nft-info-text b { font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nft-info-text span { font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nft-info-text span:empty { display: none; }
.nft-info-btn { flex: none; border: 0; border-radius: 999px; padding: 9px 14px; font-weight: 700; font-size: 13.5px; cursor: pointer;
  background: #2081e2; color: #fff; }                 /* OpenSea blue */
.nft-info-btn small { font-weight: 500; opacity: 0.8; }

/* Hub */
.nft-info-btn.hub-visit { background: var(--accent); color: var(--accent-ink); }
.nft-info-btn.hidden { display: none; }
.hub-go { width: 100%; margin-top: 4px; }

/* Settings tabs */
.tabs { display: flex; gap: 4px; margin: 14px 0 12px; padding: 4px; background: rgba(255,255,255,0.04); border: 1px solid var(--line); border-radius: 12px; }
.tab { flex: 1; border: 0; background: none; color: var(--muted); padding: 9px 4px; border-radius: 9px; font-weight: 600; font-size: 13px; cursor: pointer; white-space: nowrap; }
.tab.on { background: #2a2a38; color: var(--text); }
.tab-panel.hidden { display: none; }
@media (max-width: 380px) { .tab { font-size: 12px; } }
/* Coins */
.coin-pill { margin-left: 8px; border: 1px solid rgba(255,206,77,0.55); background: var(--panel); color: #ffd66b; border-radius: 999px; padding: 7px 12px; font-size: 13px; cursor: pointer; }
.coin-pill b { color: #fff; }
.coin-balance { display: flex; align-items: baseline; gap: 8px; margin: 4px 0 2px; }
.coin-balance span { font-size: 26px; }
.coin-balance b { font-size: 30px; }
.coin-balance small { color: var(--muted); font-size: 14px; }
.coin-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; margin: 10px 0; }
.coin-card { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #17171f; display: flex; flex-direction: column; }
.coin-card img { width: 100%; aspect-ratio: 1; object-fit: contain; background: #222230; display: block; }
.coin-card .cc-body { padding: 7px 8px 8px; display: flex; flex-direction: column; gap: 3px; flex: 1; }
.coin-card .cc-name { font-size: 12.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.coin-card .cc-coll { font-size: 11px; color: var(--muted); }
.coin-card button { margin-top: auto; border: 0; border-radius: 8px; padding: 7px 4px; font-weight: 700; font-size: 12.5px; cursor: pointer; background: #ffd66b; color: #2a1d00; }
.coin-card button:disabled { background: #2a2a36; color: var(--muted); cursor: default; }

/* Companion Shop (Hub) + companion picker (Settings → Character) */
.nft-info-btn.shop-buy { background: #ffd66b; color: #2a1d00; }
.nft-info-btn.shop-buy.need { background: #2a2a38; color: var(--text); }
.nft-info-btn.shop-buy:disabled { opacity: 0.6; cursor: default; }
.sub-head { font-size: 14px; margin: 16px 0 8px; }
.pet-row { display: flex; flex-wrap: wrap; gap: 8px; }
.pet-btn { display: flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 999px; border: 1px solid var(--line);
  background: #17171f; color: var(--text); font-weight: 600; font-size: 13px; cursor: pointer; }
.pet-btn span { font-size: 17px; line-height: 1; }
.pet-btn.on { border-color: #ffd66b; background: #2b2410; }

/* Welcome popups: free-to-play note, coin rates, shop prices */
.intro-note { margin-top: 14px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,0.03); }
.intro-note p { margin: 0 0 4px; font-size: 14px; }
.intro-note p:last-child { margin: 0; }
.ens-copy { border: 0; background: rgba(198,255,61,0.12); color: var(--accent); font: inherit; font-weight: 700; padding: 1px 8px; border-radius: 999px; cursor: pointer; }
.intro-rates { list-style: none; margin: 8px 0 6px; padding: 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.intro-rates li { display: flex; justify-content: space-between; gap: 12px; padding: 9px 12px; font-size: 14px; }
.intro-rates li + li { border-top: 1px solid var(--line); }
.intro-rates b { color: #ffd66b; white-space: nowrap; }
.intro-small { font-size: 13px; color: var(--muted) !important; }

/* Settings → Character → Companions */
.pet-card .ph.none { display: grid; place-items: center; font-size: 34px; }
#pet-note.empty-note { padding: 14px; border: 1px dashed var(--line); border-radius: 12px; text-align: center; color: var(--text); }
#pet-note a { color: var(--accent); font-weight: 700; }
#char-more { margin-top: 8px; }

/* Coins tab: Coin Checker */
.coin-check { margin: 12px 0 14px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,0.03); }
.coin-check .cc-head { font-weight: 700; font-size: 14px; margin-bottom: 8px; }
.coin-check .cc-head small { display: block; font-weight: 500; font-size: 12px; color: var(--muted); margin-top: 2px; }
.coin-check .cc-row { display: flex; gap: 6px; }
.coin-check select, .coin-check input { min-width: 0; background: #0b0b11; color: var(--text); border: 1px solid var(--line); border-radius: 10px; padding: 9px 10px; font: inherit; font-size: 14px; }
.coin-check select { flex: 1; padding-right: 4px; }
.coin-check input { flex: none; width: 76px; }
.coin-check .btn { flex: none; padding: 9px 14px; }
.coin-check .cc-result { margin-top: 10px; padding: 10px 12px; border-radius: 10px; font-size: 13px; background: #17171f; }
.coin-check .cc-result b { display: block; font-size: 13.5px; margin-bottom: 2px; }
.coin-check .cc-result span { color: var(--muted); }
.coin-check .cc-result.yes { background: rgba(198,255,61,0.08); border: 1px solid rgba(198,255,61,0.35); }
.coin-check .cc-result.no { background: rgba(255,107,107,0.08); border: 1px solid rgba(255,107,107,0.35); }
.coin-check .cc-result.hidden { display: none; }

/* Coins: rarity tags */
.coin-card .cc-tags { display: flex; flex-wrap: wrap; gap: 4px; min-height: 0; }
.coin-card .cc-tags span { font-size: 10.5px; padding: 1px 6px; border-radius: 999px; background: #22222e; color: var(--muted); white-space: nowrap; }
.coin-card .cc-tags .rar { font-weight: 700; color: #111; }
.rar.legendary { background: #ffd66b !important; }
.rar.epic { background: #c79bff !important; }
.rar.rare { background: #7cc7ff !important; }
.rar.trait { background: #8ef0b0 !important; }
.coin-check .cc-result .cc-rank { display: block; margin-top: 4px; font-size: 12px; }

/* Trading */
.trade-btn { bottom: calc(168px + var(--safe-b)); background: #ffd66b; color: #2a1d00; }
body.touch .trade-btn { bottom: calc(252px + var(--safe-b)); }
.trade { position: fixed; left: 50%; top: calc(64px + var(--safe-t, 0px)); transform: translateX(-50%); z-index: 25; width: min(540px, calc(100% - 20px)); }
.trade.hidden { display: none; }
.trade-card { background: var(--panel-solid); border: 1px solid var(--line); border-radius: 16px; padding: 14px; max-height: calc(100vh - 150px); overflow-y: auto;
  box-shadow: 0 12px 40px rgba(0,0,0,0.5); animation: introPopIn 0.25s cubic-bezier(.2,.9,.3,1.2); }
.trade-head b { display: block; font-size: 16px; }
.trade-head span { display: block; font-size: 13px; color: var(--muted); margin-top: 3px; }
.trade-head span:empty { display: none; }
.trade-body:empty { display: none; }
.trade-body { margin-top: 10px; }
.trade-sec { font-size: 12px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); margin: 10px 0 6px; }
.trade-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(82px, 1fr)); gap: 8px; }
.trade-item { position: relative; border: 1px solid var(--line); border-radius: 10px; background: #0b0b11; padding: 0 0 5px; color: var(--text); cursor: pointer; overflow: hidden; }
.trade-item img, .trade-item .ph { width: 100%; aspect-ratio: 1; object-fit: contain; display: block; background: radial-gradient(circle at 50% 70%, #1c1c26, #0b0b11 70%); }
.trade-item b { display: block; font-size: 11.5px; font-weight: 600; padding: 0 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.trade-item small { display: block; font-size: 10px; color: var(--muted); }
.trade-item.on { border-color: #ffd66b; box-shadow: inset 0 0 0 1px #ffd66b; }
.trade-item.on::after { content: "✓"; position: absolute; top: 4px; right: 6px; background: #ffd66b; color: #2a1d00; border-radius: 999px; width: 18px; height: 18px;
  font-size: 12px; font-weight: 800; display: grid; place-items: center; }
.trade-item:disabled { opacity: 0.35; cursor: default; }
.trade-empty { font-size: 13px; color: var(--muted); padding: 8px 0; }
.trade-actions { display: flex; gap: 8px; margin-top: 12px; }
.trade-actions .btn { flex: 1; padding: 11px 10px; }
.trade-actions .btn.danger { background: #2a1a1f; border-color: #5a2a33; color: #ffb3b3; }
.trade-wait { display: inline-block; width: 14px; height: 14px; border: 2px solid var(--muted); border-top-color: transparent; border-radius: 50%; vertical-align: -2px;
  margin-right: 6px; animation: spin 0.9s linear infinite; }

/* Settings: Go to the Hub + How to play */
.settings-top { flex-wrap: wrap; }
.settings-top .hub-go { flex: 1 1 30%; width: auto; margin-top: 4px; white-space: nowrap; min-width: 0; }
.settings-top .how-to { flex: 1 1 30%; margin-top: 4px; white-space: nowrap; }

.nft-info-btn.shop-sell { background: #2a2a38; color: var(--text); border: 1px solid var(--line); }
.nft-info-btn.shop-sell.hidden { display: none; }
.nft-info-btn.shop-sell.need { opacity: .75; }
/* shop card: name + price on top, the buttons (Use / Buy another / Sell 1 extra) in a row underneath */
#shop-info { flex-wrap: wrap; justify-content: center; gap: 8px; padding: 10px 12px; width: min(94vw, 440px); box-sizing: border-box; }
#shop-info .nft-info-text { flex: 1 0 100%; align-items: center; text-align: center; }
#shop-info .nft-info-text span { white-space: normal; }
#shop-info .nft-info-btn { padding: 9px 11px; font-size: 13px; }
/* welcome popup Shop page: pictures of the companions and skins for sale */
.intro-shop { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 10px 0; }
@media (max-width: 380px) { .intro-shop { grid-template-columns: repeat(3, 1fr); } }
.is-item { background: #1a1824; border: 1px solid var(--line); border-radius: 10px; padding: 6px 4px 7px; display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 0; }
.is-pic { width: 100%; aspect-ratio: 1; display: grid; place-items: center; border-radius: 8px; background: radial-gradient(circle at 50% 40%, #2a2440, #14121c); overflow: hidden; }
.is-pic span { font-size: 26px; opacity: .55; }
.is-pic img { width: 100%; height: 100%; object-fit: contain; }
.is-item b { font-size: 11px; line-height: 1.2; text-align: center; max-width: 100%; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.4em; }
.is-item small { font-size: 11px; color: #ffd66b; font-weight: 600; }
/* PC: keyboard hints */
.key-hint { font: 600 11px/1 "Space Grotesk", system-ui, sans-serif; color: var(--text); background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.22); border-bottom-width: 2px; border-radius: 5px; padding: 3px 6px; margin-left: 2px; }
.chat:not(.collapsed) .chat-toggle .key-hint { display: none; }
/* PC: shown while the mouse is free (after Esc or tabbing out): one click on the game looks around again */
.click-look { position: absolute; left: 50%; top: 58%; transform: translateX(-50%); pointer-events: none; z-index: 4;
  background: rgba(8,8,12,.72); border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; font-size: 13.5px; color: var(--text); }
/* PC: keyboard highlight in pop-ups */
.kb-focus { outline: 3px solid var(--accent, #c6ff3d) !important; outline-offset: 2px; box-shadow: 0 0 0 6px rgba(198,255,61,.18) !important; }
.seg kbd, .btn kbd, .trade-item kbd, .ask kbd { font: 600 10px/1 "Space Grotesk", system-ui, sans-serif; color: var(--text); background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.22); border-bottom-width: 2px; border-radius: 4px; padding: 2px 4px; margin-left: 6px; vertical-align: 1px; }
.trade-item { position: relative; }
.trade-item kbd { position: absolute; top: 4px; left: 4px; margin: 0; }
/* a question in the game (instead of the browser's own pop-up): Enter = yes, Esc = no */
.ask { position: fixed; inset: 0; z-index: 70; display: grid; place-items: center; padding: 16px; background: rgba(4,4,8,.6); }
.ask.hidden { display: none; }
.ask-card { width: min(400px, 100%); background: #12121a; border: 1px solid var(--line); border-radius: 16px; padding: 18px 18px 14px; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.ask-card p { margin: 0 0 14px; white-space: pre-line; line-height: 1.45; }
.ask-card .btn-row { justify-content: flex-end; }
/* five Settings tabs on a narrow phone */
@media (max-width: 420px) { .tab { font-size: 11.5px; padding: 8px 2px; } .tabs { gap: 2px; } }
.side-btn { height: auto; min-height: 54px; padding: 6px 0; }
.side-key { font: 600 9.5px/1 "Space Grotesk", system-ui, sans-serif; color: var(--text); background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.22); border-bottom-width: 2px; border-radius: 4px; padding: 2px 4px; margin-top: 3px; }
.seg .on kbd { color: var(--accent-ink); background: rgba(0,0,0,.12); border-color: rgba(0,0,0,.35); }
/* Add NFT: which frame sizes fit the spot you're looking at */
#size-seg button.nofit { text-decoration: line-through; opacity: .55; }
#size-seg button.nofit.on { background: #ff5c6c; color: #fff; opacity: 1; text-decoration: none; }
.size-note { margin: 8px 0 4px; font-size: 13px; line-height: 1.4; padding: 8px 10px; border-radius: 10px; }
.size-note.ok { background: rgba(198,255,61,.1); color: #d9ff8a; border: 1px solid rgba(198,255,61,.3); }
.size-note.bad { background: rgba(255,92,108,.12); color: #ffb3bb; border: 1px solid rgba(255,92,108,.4); }
.size-note.hidden { display: none; }
/* the NFT picker leaves the wall visible, so you can watch the outline change as you pick a size */
#sheet-nfts { background: transparent; }
#sheet-nfts .sheet-card { max-height: min(48vh, calc(100vh - 20px - var(--safe-t))); box-shadow: 0 -10px 40px rgba(0,0,0,.45); }
@media (min-width: 700px) { #sheet-nfts { justify-content: flex-end; align-items: center; padding-right: 18px; }
  #sheet-nfts .sheet-card { width: min(400px, 40vw); max-height: 86vh; } }
#size-seg button { padding: 8px 10px; }
/* ---- PvP Arena */
.pvp-hud.hidden { display: none; }
.pvp-hp { position: fixed; left: 50%; bottom: calc(62px + var(--safe-b)); transform: translateX(-50%); z-index: 6; display: flex; align-items: center; gap: 8px;
  background: rgba(8,8,12,.6); border: 1px solid rgba(255,255,255,.15); border-radius: 999px; padding: 6px 12px; font: 700 14px/1 "Space Grotesk", system-ui, sans-serif; color: #fff; pointer-events: none; }
.pvp-hp span { color: #ff5c6c; }
.pvp-hp-bar { width: 140px; height: 8px; background: rgba(255,255,255,.12); border-radius: 99px; overflow: hidden; }
.pvp-hp-bar i { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, #ff5c6c, #ffb35c); transition: width .15s; }
.fire-btn { position: fixed; right: calc(122px + env(safe-area-inset-right)); bottom: calc(40px + var(--safe-b)); z-index: 7; width: 74px; height: 74px; border-radius: 50%;
  border: 2px solid rgba(255,92,108,.8); background: rgba(40,10,16,.65); font-size: 30px; touch-action: none; }
body:not(.touch) .fire-btn { display: none; }
/* CS-style crosshair in the Arena: four lines that open up while you spray, move or jump */
body.in-arena .crosshair { width: 0; height: 0; margin: 0; background: none; border: 0; box-shadow: none; --spread: 4px; }
body.in-arena .crosshair::before, body.in-arena .crosshair::after { content: ''; position: absolute; background: #c6ff3d; box-shadow: 0 0 2px #000; }
body.in-arena .crosshair::before { width: 2px; height: 22px; left: -1px; top: -11px;
  -webkit-mask: linear-gradient(#000 0 0) top / 2px 7px no-repeat, linear-gradient(#000 0 0) bottom / 2px 7px no-repeat;
  mask: linear-gradient(#000 0 0) top / 2px 7px no-repeat, linear-gradient(#000 0 0) bottom / 2px 7px no-repeat;
  height: calc(14px + var(--spread) * 2); top: calc(-7px - var(--spread)); }
body.in-arena .crosshair::after { height: 2px; top: -1px;
  -webkit-mask: linear-gradient(#000 0 0) left / 7px 2px no-repeat, linear-gradient(#000 0 0) right / 7px 2px no-repeat;
  mask: linear-gradient(#000 0 0) left / 7px 2px no-repeat, linear-gradient(#000 0 0) right / 7px 2px no-repeat;
  width: calc(14px + var(--spread) * 2); left: calc(-7px - var(--spread)); }
.pvp-hitmark { position: fixed; left: 50%; top: 50%; width: 22px; height: 22px; margin: -11px 0 0 -11px; pointer-events: none; z-index: 6; opacity: 0;
  background: linear-gradient(45deg, transparent 45%, #fff 45% 55%, transparent 55%), linear-gradient(-45deg, transparent 45%, #fff 45% 55%, transparent 55%); }
.pvp-hitmark.on { animation: hitm .25s ease-out; }
.pvp-hitmark.head { filter: drop-shadow(0 0 3px #ffd66b) sepia(1) saturate(6) hue-rotate(5deg); }
.pvp-hitmark.kill { filter: drop-shadow(0 0 3px #ff5c6c) sepia(1) saturate(8) hue-rotate(-40deg); animation-duration: .5s; }
@keyframes hitm { from { opacity: 1; transform: scale(1.3); } to { opacity: 0; transform: scale(1); } }
.pvp-hurt { position: fixed; inset: 0; pointer-events: none; z-index: 5; opacity: 0; box-shadow: inset 0 0 120px 30px rgba(255,40,60,.65); }
.pvp-hurt.on { animation: hurt .45s ease-out; }
@keyframes hurt { from { opacity: 1; } to { opacity: 0; } }
.pvp-feed { position: fixed; right: 12px; top: calc(64px + var(--safe-t)); margin: 0; padding: 0; list-style: none; z-index: 6; pointer-events: none; display: flex; flex-direction: column; gap: 4px; align-items: flex-end; }
.pvp-feed li { background: rgba(8,8,12,.65); border: 1px solid rgba(255,92,108,.35); border-radius: 8px; padding: 4px 9px; font: 600 12.5px/1.3 "Space Grotesk", system-ui, sans-serif; color: #f2f2f5; }

/* ---- Moving / placing NFTs: drag on the wall. The NFT list lets taps and clicks through to the wall around it. */
#sheet-nfts { pointer-events: none; }
#sheet-nfts .sheet-card { pointer-events: auto; }
body.drag-wall canvas { cursor: grab; }
body.drag-wall.dragging canvas { cursor: grabbing; }
.frame-btns { position: absolute; left: 50%; top: calc(50% + 34px); transform: translateX(-50%); display: flex; gap: 8px; pointer-events: none; }
.frame-btns .look-btn { position: static; transform: none; pointer-events: auto; white-space: nowrap; padding: 12px 16px; }
.frame-btns .look-btn.hidden { display: none; }
.move-bar { position: fixed; left: 50%; bottom: calc(18px + var(--safe-b)); transform: translateX(-50%); z-index: 40; width: min(420px, calc(100vw - 24px));
  background: #12121a; border: 1px solid var(--line); border-radius: 16px; padding: 12px 14px; box-shadow: 0 14px 40px rgba(0,0,0,.5); text-align: center; }
.move-bar.hidden { display: none; }
.move-bar p { margin: 0 0 10px; line-height: 1.4; }
.move-bar .btn-row { justify-content: center; }
.btn.danger { border-color: var(--danger); }

#sheet-settings .tabs { flex-wrap: wrap; }

/* ---- Phone held upright: a hint to turn it sideways (only while standing still, until it's been turned once) */
.rotate-hint { position: fixed; left: 50%; top: calc(18% + var(--safe-t)); transform: translateX(-50%); z-index: 30; display: flex; align-items: center; gap: 10px;
  max-width: calc(100vw - 32px); padding: 10px 16px; border-radius: 999px; background: rgba(10,10,16,.85); border: 1px solid var(--line);
  color: #fff; font-weight: 600; font-size: 14px; pointer-events: none; box-shadow: 0 8px 30px rgba(0,0,0,.4); animation: rotin .25s ease-out; }
.rotate-hint.hidden { display: none; }
.rotate-hint .rot-ico { font-size: 22px; display: inline-block; animation: rotphone 1.8s ease-in-out infinite; }
@keyframes rotphone { 0%, 30% { transform: rotate(0); } 60%, 100% { transform: rotate(-90deg); } }
@keyframes rotin { from { opacity: 0; transform: translate(-50%, -6px); } to { opacity: 1; transform: translate(-50%, 0); } }

/* How to play (from Settings): a ✕ to close it at any page */
.intro-card { position: relative; }
.intro-close { position: absolute; top: 10px; right: 10px; z-index: 2; }

/* Character select: big arrows out to the left and right of the character, at its middle */
#screen-select .select-stage { justify-content: center; }
#screen-select .nav-arrow { position: fixed; top: 46%; transform: translateY(-50%); z-index: 3; width: 78px; height: 78px; font-size: 52px;
  display: grid; place-items: center; padding-bottom: 6px; background: rgba(20,16,30,.75); border: 2px solid rgba(198,255,61,.55); box-shadow: 0 6px 24px rgba(0,0,0,.45); }
#screen-select .nav-arrow:active { transform: translateY(-50%) scale(0.94); }
#sel-prev { left: max(14px, calc(50% - 300px)); }
#sel-next { right: max(14px, calc(50% - 300px)); }
@media (max-width: 480px) { #screen-select .nav-arrow { width: 64px; height: 64px; font-size: 44px; } }

/* ---- Casino */
.casino-sheet { pointer-events: none; background: transparent; }
.casino-sheet .sheet-card { pointer-events: auto; max-height: min(52vh, calc(100vh - 20px - var(--safe-t))); }
@media (min-width: 700px) { .casino-sheet { justify-content: flex-end; align-items: center; padding-right: 18px; }
  .casino-sheet .sheet-card { width: min(380px, 38vw); max-height: 88vh; } }
.rl-status { font-weight: 700; padding: 10px 12px; border-radius: 12px; background: rgba(255,255,255,.05); border: 1px solid var(--line); margin-bottom: 8px; }
.rl-status.live { border-color: #ffc94a; color: #ffd76b; }
.rl-status.win { border-color: var(--accent); color: var(--accent); }
.rl-status.lose { border-color: var(--danger); }
.rl-history { display: flex; gap: 4px; flex-wrap: wrap; min-height: 22px; margin-bottom: 8px; }
.rl-history i { width: 22px; height: 22px; border-radius: 50%; font: 700 10px/22px system-ui, sans-serif; font-style: normal; text-align: center; color: #fff; }
.rl-history .red, .rl-red { background: #c0141e; } .rl-history .black, .rl-black { background: #151515; } .rl-history .green, .rl-green { background: #0a8a3a; }
.rl-colors { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 8px; }
.rl-colors button { border: 2px solid transparent; border-radius: 12px; padding: 10px 4px; color: #fff; font-weight: 800; font-size: 15px; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.rl-colors button small { font-weight: 500; font-size: 11px; opacity: .8; }
.rl-colors button.on { border-color: #ffc94a; box-shadow: 0 0 0 2px rgba(255,201,74,.35); }
.rl-chips { margin-bottom: 8px; width: 100%; } .rl-chips button { flex: 1; }
.rl-place { width: 100%; margin-bottom: 6px; }
.rl-bets { list-style: none; padding: 0; margin: 4px 0 8px; display: flex; flex-direction: column; gap: 4px; max-height: 140px; overflow: auto; }
.rl-bets li { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 6px 10px; border-radius: 10px; background: rgba(255,255,255,.04); }
.rl-bets li .chip { padding: 2px 8px; border-radius: 999px; font-weight: 700; font-size: 12px; color: #fff; }
.rl-bet-right { display: flex; align-items: center; gap: 6px; }
.rl-cancel { border: 1px solid rgba(255,107,122,.6); background: transparent; color: #ff8a96; border-radius: 999px; padding: 2px 9px; font-size: 12px; font-weight: 600; cursor: pointer; }
.rl-cancel:hover { background: rgba(255,107,122,.12); }
.rl-cancel:disabled { opacity: .5; cursor: default; }
.slots-ui { position: fixed; left: 50%; bottom: calc(10px + var(--safe-b)); transform: translateX(-50%); z-index: 45; width: min(440px, calc(100vw - 16px));
  background: linear-gradient(#2a1838, #160c22); border: 2px solid #ffc94a; border-radius: 18px; padding: 10px 12px 8px; box-shadow: 0 16px 50px rgba(0,0,0,.6), 0 0 24px rgba(255,201,74,.2); }
.slots-ui.hidden { display: none; }
.slots-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.slots-head > b { color: #ffd34d; letter-spacing: .12em; font-size: 16px; flex: 1; }
.slots-bal { font-size: 14px; }
.slots-window { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; background: #ffc94a; padding: 6px; border-radius: 12px; --cell: min(76px, 18vh, 24vw); }
.slots-window .reel { height: calc(var(--cell) * 3); overflow: hidden; background: #fff6e0; border-radius: 8px; position: relative; }
.slots-window .strip { position: absolute; left: 0; right: 0; top: 0; will-change: transform; }
.slots-window .strip img { display: block; width: 100%; height: var(--cell); object-fit: contain; padding: 6px; box-sizing: border-box; }
.slots-window .payline { position: absolute; left: 0; right: 0; top: 50%; height: 3px; margin-top: -1.5px; background: rgba(192,20,30,.85); pointer-events: none; }
.slots-window.win .payline { background: #2bd96b; box-shadow: 0 0 12px #2bd96b; }
.slots-window.jackpot { animation: jackpot .25s linear infinite alternate; }
@keyframes jackpot { from { box-shadow: 0 0 10px #ffd34d; } to { box-shadow: 0 0 40px #ff3b4a; } }
.slots-msg { text-align: center; font-weight: 700; margin: 8px 0; min-height: 22px; }
.slots-msg.win { color: var(--accent); font-size: 18px; } .slots-msg.lose { color: var(--muted); }
.slots-controls { display: flex; gap: 8px; align-items: stretch; }
.slots-controls .seg { flex: 1; } .slots-controls .seg button { flex: 1; padding: 8px 4px; }
.slots-spin { min-width: 104px; font-size: 18px; letter-spacing: .08em; background: linear-gradient(#ff5c6c, #c0141e) !important; color: #fff !important; }
.slots-spin:disabled { opacity: .6; }
.slots-fast { display: flex; align-items: center; gap: 6px; flex-wrap: nowrap; }
.slots-fast span { font: 800 13px/1 system-ui, sans-serif; color: #ffd23d; }
.slots-fast button { padding: 9px 11px; border-radius: 12px; border: 2px solid #ffc94a; background: rgba(0,0,0,.45); color: #fff; font: 900 15px/1 "Space Grotesk", system-ui, sans-serif; cursor: pointer; }
.slots-fast button:disabled { opacity: .5; cursor: default; }
.slots-pay-btn { display: block; margin: 6px auto 0; background: none; border: 0; color: var(--muted); font-size: 12px; }
.slots-pay { max-height: 34vh; overflow: auto; margin-top: 6px; font-size: 13px; }
.slots-pay table { width: 100%; border-collapse: collapse; } .slots-pay td { padding: 3px 4px; border-bottom: 1px solid rgba(255,255,255,.06); }
.slots-pay td:last-child { text-align: right; font-weight: 700; color: #ffd34d; }
.slots-pay img { width: 26px; height: 26px; object-fit: contain; vertical-align: middle; background: #fff6e0; border-radius: 5px; margin-right: 2px; }
body.at-slots .crosshair, body.at-slots #pc-help, body.at-slots .dpad, body.at-slots .jump-btn { display: none !important; }
@media (min-width: 900px) { .slots-ui { left: auto; right: 18px; bottom: auto; top: 50%; transform: translateY(-50%); } }
.bet-row { display: flex; align-items: center; gap: 8px; margin: 8px 0; }
.bet-row label { font-weight: 700; }
.bet-row input { width: 96px; padding: 8px 10px; border-radius: 10px; border: 1px solid var(--line); background: #0f0b18; color: #fff; font: 700 16px system-ui, sans-serif; }
.bet-row span { color: var(--muted); font-size: 13px; }
.casino-note { border-top: 1px solid var(--line); padding-top: 8px; }
.slots-ui .bet-row { justify-content: center; margin: 6px 0 0; }
.slots-controls .bet-row { flex: 1; margin: 0; justify-content: flex-start; }
.slots-controls .bet-row input { width: 110px; }
.invite-note.warn { color: #ffb36b; }

/* 🔊 volume: a small see-through slider at the top right (and a full one in Settings → Sound) */
.vol-pill { display: flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px; background: rgba(12,10,20,.35);
  border: 1px solid rgba(255,255,255,.12); backdrop-filter: blur(4px); opacity: .7; transition: opacity .2s; cursor: pointer; align-self: flex-start; }
.vol-pill:hover, .vol-pill:focus-within { opacity: 1; }
.vol-pill input { width: 84px; accent-color: var(--accent); cursor: pointer; margin: 0; }
.vol-ico { font-size: 14px; line-height: 1; user-select: none; }
.vol-row { gap: 10px; }
.vol-row input { flex: 1; accent-color: var(--accent); cursor: pointer; }
.vol-num { min-width: 42px; text-align: right; font-size: 13px; }
@media (max-width: 600px) { .vol-pill input { width: 64px; } }

/* after the nic bong: a green haze over the view for a few seconds */
.high-tint { position: fixed; inset: 0; pointer-events: none; z-index: 5; opacity: 0; transition: opacity .15s linear;
  background: radial-gradient(ellipse at center, rgba(90,255,140,.10) 0%, rgba(40,210,110,.28) 60%, rgba(10,120,60,.45) 100%);
  mix-blend-mode: screen; }

/* 🕹 TV arcade: the game fills the TV (the camera frames it); only a small controls bar at the bottom */
.arcade { position: fixed; left: 0; right: 0; bottom: calc(10px + var(--safe-b)); z-index: 46; display: flex; justify-content: center; pointer-events: none; }
.arcade.hidden { display: none; }
#arcade-canvas { position: fixed; left: -10000px; top: 0; width: 600px; height: 338px; }   /* drawn on the TV, not shown here */
.arcade-bar { pointer-events: auto; display: flex; align-items: center; gap: 12px; padding: 8px 12px; border-radius: 16px;
  background: rgba(14,11,22,.72); border: 1px solid rgba(198,255,61,.3); backdrop-filter: blur(4px); }
.arcade-exit { padding: 12px 22px; font: 800 16px/1 "Space Grotesk", system-ui, sans-serif; letter-spacing: .04em; color: #fff; cursor: pointer;
  background: linear-gradient(180deg, #ff4d5e, #d81b3a); border: 2px solid #fff; border-radius: 14px; box-shadow: 0 0 0 0 rgba(255,77,94,.7), 0 4px 14px rgba(0,0,0,.45);
  animation: arcadeExitPulse 1.6s ease-out infinite; touch-action: manipulation; }
.arcade-exit small { font-weight: 600; opacity: .85; font-size: 13px; }
.arcade-exit:hover { filter: brightness(1.1); }
.arcade-exit:active { transform: scale(.96); }
@keyframes arcadeExitPulse { 0% { box-shadow: 0 0 0 0 rgba(255,77,94,.7), 0 4px 14px rgba(0,0,0,.45); } 70% { box-shadow: 0 0 0 12px rgba(255,77,94,0), 0 4px 14px rgba(0,0,0,.45); } 100% { box-shadow: 0 0 0 0 rgba(255,77,94,0), 0 4px 14px rgba(0,0,0,.45); } }
.arcade-pad { display: flex; gap: 8px; }
.arcade-pad button { width: 58px; height: 46px; border-radius: 12px; border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.08);
  color: var(--text); font-size: 20px; cursor: pointer; touch-action: manipulation; user-select: none; }
.arcade-pad button:active { background: rgba(198,255,61,.25); }
.arcade-help { font-size: 13px; color: rgba(225,218,245,.75); }
@media (hover: hover) and (pointer: fine) { .arcade-pad { display: none; } }
body.at-arcade #hud > *:not(#btn-settings) { visibility: hidden; }
body.at-arcade #hud .frame-btns, body.at-arcade #btn-unuse { display: none !important; }

/* AK-47 ammo counter (next to your health) and the phone's reload button */
.pvp-ammo { margin-left: 10px; padding-left: 10px; border-left: 1px solid rgba(255,255,255,.18); color: var(--text); font-size: 13px; white-space: nowrap; }
.pvp-ammo b { font-size: 16px; color: #ffe08a; }
.pvp-ammo small { color: rgba(225,218,245,.6); }
.pvp-ammo.low b { color: #ff5c6c; }
.pvp-ammo.reloading { color: #ffb35c; font-weight: 700; letter-spacing: .04em; }
.reload-btn { position: fixed; right: calc(206px + env(safe-area-inset-right)); bottom: calc(52px + var(--safe-b)); z-index: 7; width: 54px; height: 54px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.25); background: rgba(20,16,30,.7); color: #fff; font-size: 22px; touch-action: manipulation; }
body:not(.touch) .reload-btn { display: none; }

/* ❓ Item Shop help sheet */
.shophelp { max-height: min(86vh, 760px); overflow-y: auto; }
.shophelp .sh-sec { padding: 10px 2px 12px; border-top: 1px solid rgba(255,255,255,.08); }
.shophelp .sh-sec:first-of-type { border-top: 0; }
.shophelp h3 { margin: 4px 0 6px; font-size: 16px; color: #c6ff3d; }
.shophelp p { margin: 6px 0; line-height: 1.45; }

/* ♟ Chess panel: chess.com-style board (green theme), clocks, side panel */
.chess-ui { position: fixed; inset: 0; z-index: 48; display: flex; align-items: center; justify-content: center; padding: calc(8px + var(--safe-t)) 10px calc(8px + var(--safe-b));
  background: rgba(10,8,16,.55); backdrop-filter: blur(2px); }
.chess-ui.hidden { display: none; }
.ch-card { display: flex; gap: 14px; align-items: stretch; max-width: 100%; max-height: 100%; }
.ch-main { display: flex; flex-direction: column; gap: 6px; --bs: min(78vh, calc(100vw - 340px), 640px); }
.ch-pbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: var(--bs); color: #f2f2f5; font-size: 15px; min-height: 34px; }
.ch-who { display: flex; align-items: center; gap: 8px; min-width: 0; overflow: hidden; white-space: nowrap; }
.ch-cap { display: flex; align-items: center; gap: 4px; font-size: 16px; }
.ch-took { font-family: "Segoe UI Symbol", "DejaVu Sans", "Noto Sans Symbols2", "Noto Sans Symbols", serif; letter-spacing: -3px; opacity: .85; }
.ch-took.w { color: #ff4b50; } .ch-took.b { color: #5b8dff; }
.ch-lead { font-size: 12px; color: #c9c9d1; }
.ch-clock { font: 700 22px/1 "Space Grotesk", ui-monospace, monospace; padding: 6px 10px; border-radius: 6px; background: #262330; color: #8d8a99; min-width: 92px; text-align: right; }
.ch-clock.run { background: #f2f2f5; color: #111; }
.ch-clock.run.low { background: #e74c3c; color: #fff; } .ch-clock.low { color: #ff8a80; }
.ch-boardwrap { position: relative; width: var(--bs); height: var(--bs); box-shadow: 0 8px 28px rgba(0,0,0,.5); border-radius: 4px; overflow: hidden; touch-action: none; }
.ch-board { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); grid-template-rows: repeat(8, minmax(0, 1fr)); width: 100%; height: 100%; user-select: none; -webkit-user-select: none; }
.ch-sq { position: relative; display: flex; align-items: center; justify-content: center; cursor: pointer; min-width: 0; min-height: 0; overflow: hidden; }   /* (every square exactly 1/8: a piece picture never stretches its row) */
.ch-sq.l { background: var(--sq-l, #ebecd0); } .ch-sq.d { background: var(--sq-d, #739552); }
.ch-sq.last::after, .ch-sq.sel::after { content: ''; position: absolute; inset: 0; background: rgba(255, 238, 0, .42); pointer-events: none; }
.ch-sq.pre::after { content: ''; position: absolute; inset: 0; background: rgba(160, 30, 200, .45); pointer-events: none; }
.ch-sq.check::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle, rgba(255,0,0,.95) 0%, rgba(231,0,0,.6) 35%, rgba(169,0,0,0) 72%); }
.ch-rank, .ch-file { position: absolute; font: 700 calc(var(--bs) / 48)/1 system-ui, sans-serif; pointer-events: none; }
.ch-rank { top: 3px; left: 4px; } .ch-file { bottom: 3px; right: 4px; }
.ch-sq.l .ch-rank, .ch-sq.l .ch-file { color: var(--sq-d, #739552); } .ch-sq.d .ch-rank, .ch-sq.d .ch-file { color: var(--sq-l, #ebecd0); }
.ch-pc { position: relative; z-index: 1; font-family: "Segoe UI Symbol", "DejaVu Sans", "Noto Sans Symbols2", "Noto Sans Symbols", serif; font-size: calc(var(--bs) / 8 * 0.8); line-height: 1; pointer-events: none; }
/* the two sides: Red (moves first) and Blue */
.ch-pc.w { color: #e3262b; -webkit-text-stroke: calc(var(--bs) / 330) #fff; text-shadow: 0 2px 3px rgba(0,0,0,.45); }
.ch-pc.b { color: #1e5ee6; -webkit-text-stroke: calc(var(--bs) / 330) #fff; text-shadow: 0 2px 3px rgba(0,0,0,.45); }
.ch-pc.lifted { opacity: .35; }
.ch-dot { position: absolute; width: 33%; height: 33%; border-radius: 50%; background: rgba(128,128,128,.55); pointer-events: none; z-index: 2; }
.ch-ring { position: absolute; inset: 3%; border-radius: 50%; border: calc(var(--bs) / 110) solid rgba(128,128,128,.6); pointer-events: none; z-index: 2; }
.ch-ghost { position: absolute; left: 0; top: 0; display: none; align-items: center; justify-content: center; pointer-events: none; z-index: 5; }
.ch-ghost.on { display: flex; } .ch-ghost .ch-pc { font-size: inherit; }
.ch-promo, .ch-result { position: absolute; inset: 0; z-index: 6; display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,.35); }
.ch-promo.hidden, .ch-result.hidden { display: none; }
.ch-promocard { display: flex; align-items: center; gap: 6px; background: #f2f2f5; color: #222; border-radius: 10px; padding: 10px 12px; font-weight: 700; }
.ch-promocard button { width: calc(var(--bs) / 8); height: calc(var(--bs) / 8); border: 0; border-radius: 8px; background: #dcdce4; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.ch-promocard button:hover { background: #f5f682; } .ch-promocard .ch-pc { font-size: calc(var(--bs) / 8 * .75); pointer-events: none; }
.ch-pcancel { width: 32px !important; height: 32px !important; font-size: 16px; }
.ch-rcard { background: #262330; color: #f2f2f5; border-radius: 14px; padding: 18px 22px; text-align: center; min-width: 220px; box-shadow: 0 10px 30px rgba(0,0,0,.5); border: 1px solid rgba(255,255,255,.12); }
.ch-rcard.win { border-color: #c6ff3d; }
.ch-rtitle { font: 800 26px/1.2 "Space Grotesk", system-ui, sans-serif; } .ch-rsub { margin-top: 4px; color: #c9c9d1; }
.ch-rcoins { margin: 10px 0 2px; font: 800 22px/1 "Space Grotesk", system-ui, sans-serif; color: #ffd34d; }
.ch-rclose { margin-top: 12px; }
.ch-side { width: 300px; display: flex; flex-direction: column; gap: 10px; background: rgba(22,19,31,.92); border: 1px solid rgba(255,255,255,.1); border-radius: 14px; padding: 12px; color: #e6e3ef; max-height: calc(var(--bs) + 80px); }
.ch-head { font-size: 15px; } .ch-head b { color: #c6ff3d; }
.ch-status { font-size: 14px; line-height: 1.45; min-height: 20px; }
.ch-panel { display: flex; flex-wrap: wrap; gap: 8px; } .ch-panel:empty { display: none; }
.ch-wagerbox { display: flex; align-items: center; gap: 6px; width: 100%; }
.ch-wagerbox input { flex: 1; font-size: 20px; padding: 8px 10px; border-radius: 10px; border: 1px solid rgba(255,255,255,.2); background: #0f0d16; color: #fff; }
.ch-quick { display: flex; flex-wrap: wrap; gap: 6px; } .ch-quick .chip { padding: 5px 10px; border-radius: 999px; border: 1px solid rgba(255,255,255,.2); background: rgba(255,255,255,.06); color: #fff; cursor: pointer; }
.ch-moves { flex: 1; min-height: 60px; overflow-y: auto; margin: 0; padding: 4px 4px 4px 34px; background: rgba(0,0,0,.25); border-radius: 8px; font: 14px/1.7 ui-monospace, monospace; }
.ch-moves li span { display: inline-block; min-width: 72px; }
.ch-actions { display: flex; flex-wrap: wrap; gap: 8px; } .ch-actions .btn { flex: 1; min-width: 90px; }
.chess-ui.watching .ch-board { cursor: default; }
@media (max-width: 760px), (max-aspect-ratio: 1/1) {
  .ch-card { flex-direction: column; gap: 8px; align-items: center; overflow-y: auto; }
  .ch-main { --bs: min(94vw, 58vh); }
  .ch-side { width: var(--bs); max-height: none; padding: 10px; }
  .ch-moves { max-height: 70px; flex: none; }
  .ch-clock { font-size: 19px; min-width: 80px; }
}
body.at-chess .crosshair, body.at-chess #pc-help, body.at-chess .dpad, body.at-chess .jump-btn, body.at-chess #casino-info { display: none !important; }

/* 🃏 Blackjack panel: docked along the bottom so the 3D table and Coach stay in view above it */
.bj-ui { position: fixed; left: 0; right: 0; bottom: 0; z-index: 48; display: flex; justify-content: center; padding: 0 8px calc(8px + var(--safe-b)); pointer-events: none; }
.bj-ui.hidden { display: none; }
.bj-wrap { pointer-events: auto; position: relative; width: min(840px, 100%); max-height: 60vh; overflow-y: auto; background: rgba(16,13,24,.93); border: 1px solid rgba(255,255,255,.12); border-radius: 16px;
  padding: 10px 12px 12px; color: #ece9f4; box-shadow: 0 10px 30px rgba(0,0,0,.5); display: flex; flex-direction: column; gap: 8px; }
.bj-head { display: flex; align-items: center; gap: 4px; font-size: 14px; flex-wrap: wrap; }
.bj-head b { color: #ffd34d; font-size: 16px; } .bj-rules, .bj-status { color: #b9b5c6; }
.bj-head .bj-leave { margin-left: auto; padding: 6px 14px; } .bj-head .bj-close { margin-left: 4px; }
.bj-head .bj-leave.hidden + .bj-close { margin-left: auto; }
.bj-coach { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 6px 8px; border-radius: 10px; background: rgba(255,211,77,.07); }
.bj-who { font-weight: 800; } .bj-dcards { display: flex; gap: 3px; } .bj-dt { color: #ffd34d; font-size: 17px; }
.bj-say { color: #d9d4e8; font-size: 14px; flex: 1; min-width: 160px; }
.bj-seats { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; }
.bj-seat { display: flex; flex-direction: column; gap: 3px; min-width: 0; padding: 6px 7px; border-radius: 10px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08); font-size: 12px; }
.bj-seat b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 13px; } .bj-seat small { color: #c9c4d6; }
.bj-seat.empty { opacity: .45; } .bj-seat.me { border-color: #c6ff3d; } .bj-seat.turn { background: rgba(255,211,77,.14); border-color: #ffd34d; }
.bj-mini { display: flex; align-items: center; flex-wrap: wrap; gap: 2px; } .bj-mini span { font-size: 11px; margin-left: 3px; color: #e6e3ef; }
.bj-mini.now { outline: 1px solid #ffd34d; border-radius: 4px; }
.bj-mini.win span, .bj-mini.blackjack span, .bj-hand.win .bj-lbl, .bj-hand.blackjack .bj-lbl { color: #c6ff3d; }
.bj-mini.lose span, .bj-hand.lose .bj-lbl { color: #ff8a80; }
.bj-card { width: 44px; height: 62px; border-radius: 5px; box-shadow: 0 2px 5px rgba(0,0,0,.45); user-select: none; }
.bj-card.sm { width: 34px; height: 48px; border-radius: 4px; } .bj-card.xs { width: 20px; height: 28px; border-radius: 3px; } .bj-card.big { width: 54px; height: 76px; }
.bj-slot { display: inline-block; width: 34px; height: 48px; border-radius: 4px; border: 1px dashed rgba(255,255,255,.18); }
.bj-me { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.bj-myhands { display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; }
.bj-hand { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; justify-content: center; }
.bj-hand .bj-lbl { font: 700 16px/1.2 "Space Grotesk", system-ui, sans-serif; color: #c6ff3d; margin-left: 6px; } .bj-hand small { width: 100%; text-align: center; color: #b9b5c6; }
.bj-net { margin: 0; font: 800 17px/1.2 "Space Grotesk", system-ui, sans-serif; } .bj-net.up { color: #c6ff3d; } .bj-net.down { color: #ff8a80; }
.bj-note { margin: 0; color: #c9c4d6; font-size: 14px; text-align: center; }
.bj-actions { display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap; } .bj-actions:empty { display: none; }
.bj-actions > .btn { min-width: 92px; } .bj-actions kbd { font-size: 10px; opacity: .7; margin-left: 3px; }
.bj-chips { display: flex; gap: 5px; }
.bj-chip { width: 40px; height: 40px; border-radius: 50%; border: 3px dashed rgba(255,255,255,.85); color: #fff; font: 800 13px/1 system-ui; cursor: pointer; box-shadow: 0 2px 5px rgba(0,0,0,.4); }
.bj-chip.c1 { background: #e0302f; } .bj-chip.c5 { background: #2f6fe0; } .bj-chip.c10 { background: #2fae4f; } .bj-chip.c25 { background: #222; } .bj-chip.c50 { background: #d9a400; }
.bj-chip:disabled { opacity: .35; cursor: default; }
.bj-amt { width: 76px; font-size: 18px; padding: 6px 8px; border-radius: 9px; border: 1px solid rgba(255,255,255,.2); background: #0f0d16; color: #fff; }
.bj-timer { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(255,255,255,.06); }
.bj-timer i { display: block; height: 100%; width: 0; background: #ffd34d; transition: width .2s linear; } .bj-timer i.low { background: #ff6b5e; }
@media (max-width: 640px) {
  .bj-seats { grid-template-columns: repeat(3, 1fr); }
  .bj-card.big { width: 44px; height: 62px; } .bj-wrap { max-height: 58vh; padding: 8px 8px 10px; }
  .bj-chip { width: 36px; height: 36px; font-size: 12px; } .bj-rules { display: none; }
}
body.at-bj .crosshair, body.at-bj #pc-help, body.at-bj .dpad, body.at-bj .jump-btn, body.at-bj #casino-info, body.at-bj #click-look, body.at-bj #btn-trade,
body:has(#bj-ui:not(.hidden)) #click-look, body:has(#bj-ui:not(.hidden)) #btn-trade { display: none !important; }

/* the game's own 3D chess pieces, as pictures on the board */
.ch-pc.pic { width: 96%; height: 96%; display: flex; align-items: flex-end; justify-content: center; -webkit-text-stroke: 0; text-shadow: none; }
.ch-pc.pic img { width: 100%; height: 100%; object-fit: contain; object-position: center bottom; filter: drop-shadow(0 2px 2px rgba(0,0,0,.45)); user-select: none; -webkit-user-drag: none; pointer-events: none; }
.ch-ghost .ch-pc.pic { width: 100%; height: 100%; }
.ch-promocard button .ch-pc.pic { width: 90%; height: 90%; }
.ch-took.pic { display: inline-flex; align-items: center; letter-spacing: 0; }
.ch-took.pic img { width: 18px; height: 21px; object-fit: contain; margin-right: -5px; }

/* the intro's shop page: a picture still being drawn gently pulses */
.is-pic.loading span { animation: isPulse 1.2s ease-in-out infinite; }
@keyframes isPulse { 0%, 100% { opacity: .35; } 50% { opacity: .9; } }

.intro-again { margin-top: 10px; padding: 8px 10px; border-radius: 10px; background: rgba(198,255,61,.08); border: 1px solid rgba(198,255,61,.25); font-size: 14px; }
.cc-noimg { width: 100%; aspect-ratio: 1; display: flex; align-items: center; justify-content: center; text-align: center; padding: 10px; box-sizing: border-box;
  background: linear-gradient(135deg, #2a2340, #1b1828); color: rgba(225,218,245,.75); font-weight: 600; font-size: 13px; }
.intro-again.top { margin: 0 0 12px; font-size: 14.5px; line-height: 1.4; text-align: center; }
/* frame-size picker: always fits the screen (Large was getting cut off on narrow phones) */
#size-row { flex-wrap: wrap; gap: 6px 12px; }
#size-seg { display: flex; flex: 1 1 240px; max-width: 100%; min-width: 0; }
#size-seg button { flex: 1 1 0; min-width: 0; padding: 8px 4px; white-space: nowrap; font-size: 14px; display: inline-flex; align-items: center; justify-content: center; gap: 4px; }
@media (max-width: 380px) { #size-seg button { font-size: 13px; padding: 8px 2px; } #size-seg kbd { display: none; } }
/* the shop stand: walk up → a small prompt; interact → the buy panel (with your cursor), ✕ to step back */
#shop-info { position: fixed; }
#shop-info.open { padding-top: 12px; }
#shop-info .shop-close { position: absolute; top: -12px; right: -10px; width: 34px; height: 34px; padding: 0; border-radius: 50%; font-size: 16px;
  background: #1c1530; border: 1px solid rgba(255,255,255,.35); color: #fff; box-shadow: 0 2px 10px rgba(0,0,0,.4); }
#shop-info .shop-look { background: rgba(255,255,255,.12); color: #fff; }
/* the welcome popups: ← Back to the one before */
.intro-back { padding: 12px 14px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18); color: inherit; border-radius: 12px; white-space: nowrap; }
.intro-back.hidden { display: inline-block; visibility: hidden; }
@media (max-width: 380px) { .intro-foot { gap: 6px; } .intro-back { padding: 10px 10px; } #intro-ok { min-width: 96px; } }
#stereo-info { flex-wrap: wrap; justify-content: center; gap: 8px; padding: 10px 12px; width: min(94vw, 420px); box-sizing: border-box; }
#stereo-info .nft-info-text { flex: 1 0 100%; align-items: center; text-align: center; }
#stereo-info .nft-info-text span { white-space: normal; }
#stereo-info .nft-info-btn { padding: 10px 14px; font-size: 14px; }
#stereo-info { top: calc(50% - 190px); bottom: auto; }
.char-head { display: flex; align-items: center; gap: 12px; }
.char-head p { flex: 1; margin: 0; }
.get-skins { flex: none; padding: 10px 14px; white-space: nowrap; }
@media (max-width: 380px) { .char-head { flex-direction: column; align-items: stretch; } }
.bhop-demo { width: 100%; max-width: 360px; display: block; margin: 6px auto 4px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1); border-radius: 12px; }
.bhop-demo .bh-key { font: 700 12px system-ui, sans-serif; fill: #e9e9f2; text-anchor: middle; }
.bhop-demo .bh-speed { font: 600 11px system-ui, sans-serif; fill: #8a8aa0; }
.bhop-demo .bh-speed.fast { fill: #c6ff3d; }
.bhop-steps { margin: 6px 0 4px 18px; padding: 0; text-align: left; font-size: 14px; line-height: 1.45; }
.bhop-steps li { margin: 3px 0; }
/* lines from the game itself in the chat (someone entered the Arena, wants a chess game, traded) */
#chat-log li.chat-event { color: #cbb8ff; font-size: 12.5px; font-style: italic; }
#chat-log .chat-join { margin-left: 6px; padding: 2px 10px; border-radius: 999px; border: 1px solid rgba(198,255,61,.6); background: rgba(198,255,61,.15);
  color: #c6ff3d; font: 700 12px system-ui, sans-serif; font-style: normal; cursor: pointer; }

/* Settings → Coins: your verified wallets (used to be their own tab) */
.coin-wallets { margin: 10px 0; padding: 10px; border-radius: 12px; background: rgba(255,255,255,.04); border: 1px solid var(--line); }
.cw-head { font-weight: 700; margin-bottom: 6px; } .cw-head small { font-weight: 400; color: var(--muted); margin-left: 4px; }
/* 🎰 the slots BONUS (free spins) */
.slots-msg.bonus { color: #ffd34d !important; font-weight: 800; }
.pay-bonus td { color: #ffd34d; font-weight: 700; }
.bj-clock { text-align: center; font: 700 15px/1.2 "Space Grotesk", system-ui, sans-serif; color: #ffd34d; min-height: 18px; } .bj-clock:empty { display: none; } .bj-clock.low { color: #ff6b5e; }
.trade-coins { display: flex; align-items: center; gap: 8px; margin: 4px 0 10px; font-size: 14px; flex-wrap: wrap; }
.trade-coins input { width: 110px; font-size: 16px; padding: 6px 8px; border-radius: 9px; border: 1px solid rgba(255,255,255,.2); background: #0f0d16; color: #fff; }
.trade-coins-line { font-weight: 800; color: #ffd34d; padding: 6px 10px; border-radius: 10px; background: rgba(255,211,77,.1); }
/* chat commands: typing / shows them */
.chat-cmds { list-style: none; margin: 0 0 6px; padding: 4px; border-radius: 10px; background: rgba(14,12,22,.96); border: 1px solid rgba(255,255,255,.14); max-height: 210px; overflow-y: auto; }
.chat-cmds.hidden { display: none; }
.chat-cmds li { display: flex; gap: 10px; align-items: baseline; padding: 6px 8px; border-radius: 7px; cursor: pointer; font-size: 13.5px; }
.chat-cmds li b { color: #c6ff3d; min-width: 64px; } .chat-cmds li span { color: #c9c4d6; }
.chat-cmds li.on, .chat-cmds li:hover { background: rgba(198,255,61,.12); }

/* 🍭 Coins Bonanza / Apu Bonanza: the full-screen game (the player sees only this; people walking by see the machine's screen) */
.cv-ui { position: fixed; inset: 0; z-index: 48; display: grid; grid-template-rows: auto 1fr auto; gap: 6px; overflow: hidden; color: #fff;
  padding: calc(6px + var(--safe-t)) 10px calc(8px + var(--safe-b)); font-family: "Space Grotesk", system-ui, sans-serif; }
.cv-ui.hidden { display: none; }
/* candy land behind the reels: sky, clouds, candy hills, sparkles (night-time purple in the free spins) */
.cv-bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; background: linear-gradient(180deg, #6fd0ff 0%, #a9c8ff 38%, #ffb3dc 75%, #ff85c0 100%); transition: background .8s; }
.cv-ui[data-theme="apu"] .cv-bg { background: linear-gradient(180deg, #7fe0b0 0%, #bfe8a0 40%, #ffd98a 78%, #ffae5c 100%); }
.cv-ui.fs .cv-bg { background: radial-gradient(ellipse at 50% 30%, #ff5fb6 0%, #8d2bd6 45%, #2a0b5e 100%); }
.cv-cloud { position: absolute; width: 260px; height: 80px; border-radius: 80px; background: rgba(255,255,255,.75); filter: blur(2px); animation: cvCloud 60s linear infinite; }
.cv-cloud::before, .cv-cloud::after { content: ""; position: absolute; background: inherit; border-radius: 50%; }
.cv-cloud::before { width: 120px; height: 110px; left: 40px; top: -55px; } .cv-cloud::after { width: 90px; height: 80px; left: 130px; top: -35px; }
.cv-cloud.a { top: 12%; left: -20%; } .cv-cloud.b { top: 30%; left: -60%; animation-duration: 85s; transform: scale(.7); } .cv-cloud.c { top: 6%; left: -90%; animation-duration: 110s; transform: scale(1.2); }
.cv-ui.fs .cv-cloud { opacity: .15; }
@keyframes cvCloud { to { margin-left: 180vw; } }
.cv-hill { position: absolute; bottom: -30%; width: 70vw; height: 60vh; border-radius: 50%; background: repeating-linear-gradient(115deg, #ff7ac6 0 26px, #fff 26px 52px); opacity: .55; }
.cv-hill.l { left: -20vw; } .cv-hill.r { right: -25vw; background: repeating-linear-gradient(65deg, #8fe3ff 0 26px, #fff 26px 52px); }
.cv-ui[data-theme="apu"] .cv-hill.l { background: repeating-linear-gradient(115deg, #61c24a 0 26px, #b8f08a 26px 52px); }
.cv-ui[data-theme="apu"] .cv-hill.r { background: repeating-linear-gradient(65deg, #ff9d3d 0 26px, #ffe08a 26px 52px); }
.cv-sparkles { position: absolute; inset: 0; background-image: radial-gradient(2px 2px at 10% 20%, #fff, transparent), radial-gradient(2px 2px at 70% 15%, #fff, transparent), radial-gradient(3px 3px at 40% 60%, #fff8, transparent), radial-gradient(2px 2px at 85% 70%, #fff, transparent), radial-gradient(2px 2px at 25% 85%, #fffc, transparent); animation: cvTwinkle 2.4s ease-in-out infinite alternate; }
@keyframes cvTwinkle { from { opacity: .3; } to { opacity: 1; } }
.cv-ui.shake .cv-frame { animation: none; }   /* (round 28: the screen stays still when the bombs add up) */
@keyframes cvShake { 20% { transform: translate(-6px, 3px); } 40% { transform: translate(5px, -4px); } 60% { transform: translate(-4px, -2px); } 80% { transform: translate(3px, 3px); } }
/* top: the logo, the info bar and the ? / ✕ buttons */
.cv-top { display: flex; align-items: center; gap: 10px; min-width: 0; }
.cv-logo { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.cv-logo .cv-li { height: clamp(34px, 7vh, 58px); width: auto; filter: drop-shadow(0 3px 0 rgba(0,0,0,.25)); animation: cvBob 1.6s ease-in-out infinite; }
.cv-logo .cv-li:last-child { animation-delay: .8s; }
@keyframes cvBob { 50% { transform: translateY(-5px) rotate(6deg); } }
.cv-name { font: 900 clamp(22px, 4.6vh, 44px)/1 "Space Grotesk", system-ui, sans-serif; letter-spacing: 1px; color: #fff; -webkit-text-stroke: 2px #c2187a; paint-order: stroke fill;
  text-shadow: 0 4px 0 #8e0f5a, 0 0 18px rgba(255,120,200,.9); background: linear-gradient(180deg, #fff 30%, #ffd1ef); -webkit-background-clip: text; }
.cv-ui[data-theme="apu"] .cv-name { -webkit-text-stroke-color: #2f7a1e; text-shadow: 0 4px 0 #1d5212, 0 0 18px rgba(160,255,120,.9); }
.cv-infobar { flex: 1; display: flex; justify-content: center; align-items: center; gap: 8px; flex-wrap: wrap; min-width: 0; }
.cv-pill { display: inline-flex; align-items: center; gap: 5px; padding: 5px 14px; border-radius: 999px; background: rgba(60,8,90,.72); border: 2px solid #ffe066; font-weight: 800; font-size: clamp(12px, 2vh, 17px); white-space: nowrap; box-shadow: 0 3px 0 rgba(0,0,0,.25); }
.cv-pill b { color: #ffe066; font-size: 1.15em; } .cv-pill.gold { background: linear-gradient(180deg, #ffcf3a, #ff8a00); color: #4a1600; border-color: #fff3b0; } .cv-pill.gold b { color: #fff; text-shadow: 0 2px 0 #a33a00; }
.cv-pill.bomb { background: #1d1d26; border-color: #ff7a1a; } .cv-pill.bomb b { color: #ffb347; }
.cv-pill .cv-li, .cv-howto .cv-li, .cv-retrig .cv-li { height: 1.9em; width: auto; vertical-align: middle; margin: -.3em 0; }
.cv-topbtns { display: flex; gap: 6px; flex-shrink: 0; }
.cv-round { width: 40px; height: 40px; border-radius: 50%; border: 3px solid #fff; background: linear-gradient(180deg, #ff6ab8, #c2187a); color: #fff; font: 900 18px/1 "Space Grotesk", system-ui, sans-serif; cursor: pointer; box-shadow: 0 3px 0 #7a0d4c; }
.cv-round:disabled { filter: grayscale(.7); cursor: default; }
/* middle: BUY FREE SPINS on the left, the reels, the WIN counter on the right */
.cv-mid { display: flex; align-items: center; justify-content: center; gap: clamp(8px, 2vw, 22px); min-height: 0; }
.cv-side { display: flex; flex-direction: column; gap: 8px; width: clamp(96px, 13vw, 170px); flex-shrink: 0; }
.cv-buy { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 14px 6px; min-height: clamp(130px, 30vh, 240px); border: 4px solid #fff3b0; border-radius: 18px; cursor: pointer;
  background: linear-gradient(180deg, #ffe066 0%, #ff9d00 55%, #e05a00 100%); color: #5a1d00; box-shadow: 0 6px 0 #a33a00, 0 0 22px rgba(255,190,40,.8); text-align: center; animation: cvBuyGlow 1.6s ease-in-out infinite; }
.cv-buy:active { transform: translateY(3px); box-shadow: 0 3px 0 #a33a00; }
.cv-buy:disabled { filter: grayscale(.6) brightness(.85); animation: none; cursor: default; }
.cv-buy-t { font: 900 clamp(16px, 3vh, 26px)/1.02 "Space Grotesk", system-ui, sans-serif; letter-spacing: .5px; text-shadow: 0 2px 0 #fff6c0; }
.cv-buy-n { font-weight: 900; font-size: clamp(12px, 1.8vh, 15px); } .cv-buy small { font-weight: 900; font-size: clamp(12px, 1.9vh, 16px); background: rgba(255,255,255,.65); border-radius: 999px; padding: 3px 9px; }
@keyframes cvBuyGlow { 50% { box-shadow: 0 6px 0 #a33a00, 0 0 34px rgba(255,220,80,1); } }
.cv-howto { font-size: clamp(11px, 1.7vh, 14px); font-weight: 700; line-height: 1.3; text-align: center; color: #5a1d6a; background: rgba(255,255,255,.8); border-radius: 12px; padding: 7px 5px; }
.cv-howto b { color: #b0127a; }
.cv-frame { position: relative; aspect-ratio: 6 / 5; height: min(100%, calc((100vw - clamp(96px, 13vw, 170px) - clamp(170px, 22vw, 300px) - 80px) / 1.2)); max-height: 100%; padding: clamp(6px, 1.2vh, 12px); border-radius: 22px;
  background: linear-gradient(180deg, rgba(255,255,255,.55), rgba(255,220,240,.45)); border: 5px solid #fff; box-shadow: 0 0 0 4px #ff7ac6, 0 10px 30px rgba(80,0,60,.45), inset 0 0 30px rgba(255,255,255,.6); }
.cv-ui[data-theme="apu"] .cv-frame { box-shadow: 0 0 0 4px #61c24a, 0 10px 30px rgba(20,60,0,.45), inset 0 0 30px rgba(255,255,255,.6); }
.cv-ui.fs .cv-frame { background: linear-gradient(180deg, rgba(255,255,255,.35), rgba(255,160,230,.3)); box-shadow: 0 0 0 4px #ffe066, 0 0 40px #ff5fb6, inset 0 0 30px rgba(255,255,255,.4); animation: cvFsGlow 1.4s ease-in-out infinite alternate; }
@keyframes cvFsGlow { to { box-shadow: 0 0 0 4px #ffe066, 0 0 70px #ffd23d, inset 0 0 30px rgba(255,255,255,.4); } }
.cv-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); grid-template-rows: repeat(5, minmax(0, 1fr)); gap: clamp(2px, .5vh, 5px); width: 100%; height: 100%; overflow: hidden; border-radius: 14px; }
.cv-cell { position: relative; display: flex; align-items: center; justify-content: center; min-width: 0; min-height: 0; border-radius: 12px; background: rgba(255,255,255,.28); will-change: transform; }
.cv-cell img { width: 92%; height: 92%; object-fit: contain; user-select: none; -webkit-user-drag: none; pointer-events: none; transition: transform .2s, opacity .2s; filter: drop-shadow(0 3px 2px rgba(0,0,0,.25)); }
.cv-cell.win { background: rgba(255,224,102,.85); box-shadow: 0 0 0 3px #ffe066, 0 0 22px #fff; animation: cvPulse .35s ease-in-out infinite alternate; z-index: 2; }
.cv-cell.gone img { transform: scale(1.6) rotate(20deg); opacity: 0; }
@keyframes cvPulse { from { transform: scale(1); } to { transform: scale(1.1); } }
.cv-banner { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 6; padding: 18px 30px; border-radius: 22px; text-align: center; white-space: nowrap;
  font: 900 clamp(22px, 4.5vh, 40px)/1.15 "Space Grotesk", system-ui, sans-serif; color: #ffe066; background: radial-gradient(circle at 50% 30%, #b03cff, #3d0a6e); border: 4px solid #ffe066; text-shadow: 0 3px 0 #7a1f6a; box-shadow: 0 0 40px rgba(255,210,60,.8); }
.cv-banner b { font-size: 1.25em; color: #fff; -webkit-text-stroke: 1px #c2187a; } .cv-banner small { font-size: .6em; color: #ffd1ef; }
.cv-banner .cv-bl-li { height: 1.3em; width: auto; vertical-align: middle; }
.cv-banner.hidden { display: none; } .cv-banner.pop { animation: cvPop .4s cubic-bezier(.3,1.6,.5,1); }
@keyframes cvPop { from { transform: translate(-50%, -50%) scale(.3); } to { transform: translate(-50%, -50%) scale(1); } }
.cv-right { display: flex; flex-direction: column; gap: 8px; width: clamp(170px, 22vw, 300px); flex-shrink: 0; align-self: stretch; min-height: 0; }
.cv-winbox { display: flex; flex-direction: column; align-items: center; padding: 10px 6px; border-radius: 16px; background: rgba(40,6,70,.78); border: 3px solid #ffe066; }
.cv-winbox small { font-weight: 900; letter-spacing: 2px; color: #ffd1ef; } .cv-win { font: 900 clamp(20px, 4.4vh, 40px)/1.1 "Space Grotesk", system-ui, sans-serif; color: #ffe066; text-shadow: 0 3px 0 #7a1f00; word-break: break-all; text-align: center; }
.cv-winbox.on { animation: cvBuyGlow 1s ease-in-out infinite; }
.cv-msg { font-weight: 800; font-size: clamp(11px, 1.8vh, 15px); text-align: center; white-space: pre-line; background: rgba(40,6,70,.6); border-radius: 12px; padding: 7px 6px; min-height: 2.6em; }
.cv-msg.win { color: #ffe066; }
/* bottom: credit (or in the bonus: how to win more spins), the bet, the big round SPIN, auto */
.cv-bottom { display: grid; grid-template-columns: 1fr auto auto 1fr; align-items: center; gap: clamp(8px, 2vw, 22px); }
.cv-bl { justify-self: start; display: flex; flex-direction: column; padding: 6px 14px; border-radius: 14px; background: rgba(40,6,70,.72); border: 2px solid rgba(255,255,255,.5); }
.cv-bl small, .cv-betctl small { font-weight: 900; letter-spacing: 2px; font-size: 11px; color: #ffd1ef; } .cv-betctl small { background: rgba(40,6,70,.78); border-radius: 999px; padding: 1px 10px; } .cv-bal { font-size: clamp(15px, 2.6vh, 22px); }
.cv-retrig { font-weight: 900; font-size: clamp(13px, 2.2vh, 19px); color: #fff; } .cv-retrig b { color: #ffe066; font-size: 1.2em; }
.cv-ui.fs .cv-bl { border-color: #ffe066; animation: cvBuyGlow 1.2s ease-in-out infinite; background: linear-gradient(180deg, #b03cff, #5a128e); }
.cv-betctl { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.cv-betrow { display: flex; align-items: center; gap: 6px; }
.cv-betrow input { width: 96px; text-align: center; font: 900 20px/1 "Space Grotesk", system-ui, sans-serif; padding: 7px 6px; border-radius: 12px; border: 3px solid #fff; background: rgba(40,6,70,.8); color: #ffe066; }
.cv-spin { width: clamp(70px, 12vh, 104px); height: clamp(70px, 12vh, 104px); border-radius: 50%; border: 5px solid #fff; cursor: pointer; position: relative;
  background: radial-gradient(circle at 35% 30%, #9dff6a, #22b83a 60%, #127a22); color: #fff; box-shadow: 0 6px 0 #0b5a17, 0 0 26px rgba(120,255,120,.75); }
.cv-spin span { font: 900 clamp(34px, 6vh, 54px)/1 system-ui, sans-serif; display: inline-block; text-shadow: 0 3px 0 #0b5a17; }
.cv-spin kbd { position: absolute; bottom: -4px; left: 50%; transform: translateX(-50%); font-size: 10px; background: rgba(0,0,0,.45); color: #fff; border-radius: 6px; padding: 1px 5px; border: 0; }
.cv-spin.busy span { animation: cvSpinIcon .7s linear infinite; } .cv-spin:disabled { cursor: default; filter: saturate(.7); }
.cv-spin:not(:disabled):active { transform: translateY(3px); box-shadow: 0 3px 0 #0b5a17; }
@keyframes cvSpinIcon { to { transform: rotate(360deg); } }
.cv-autobox { justify-self: start; display: flex; align-items: center; }
.cv-auto { display: inline-flex; align-items: center; gap: 5px; padding: 6px 10px; border-radius: 14px; background: rgba(40,6,70,.72); }
.cv-auto button, .cv-stop { font: 900 14px/1 "Space Grotesk", system-ui, sans-serif; padding: 8px 10px; border-radius: 10px; border: 2px solid #fff; background: linear-gradient(180deg, #ff6ab8, #c2187a); color: #fff; cursor: pointer; }
.cv-auto button:disabled { filter: grayscale(.7); } .cv-auto.hidden, .cv-stop.hidden { display: none; }
.cv-stop { background: linear-gradient(180deg, #ff5a5a, #b31010); padding: 12px 16px; animation: cvBuyGlow 1.2s ease-in-out infinite; }
/* the "how it pays" card and the BIG WIN show */
.cv-help { position: absolute; inset: 0; z-index: 8; display: flex; align-items: center; justify-content: center; background: rgba(20,4,40,.6); padding: 12px; }
.cv-help.hidden { display: none; }
.cv-help-card { position: relative; width: min(620px, 100%); max-height: 100%; overflow-y: auto; background: linear-gradient(180deg, #5a128e, #2a0b5e); border: 4px solid #ffe066; border-radius: 20px; padding: 14px 16px; font-size: 14px; }
.cv-help-card h3 { margin: 0 0 6px; color: #ffe066; } .cv-help-x { position: absolute; right: 10px; top: 10px; width: 34px; height: 34px; font-size: 15px; }
.cv-help img { width: 26px; height: 26px; vertical-align: middle; } .cv-help table { width: 100%; border-collapse: collapse; } .cv-help td { padding: 3px 4px; border-bottom: 1px solid rgba(255,255,255,.12); }
.cv-bigwin { position: absolute; inset: 0; z-index: 9; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; cursor: pointer; overflow: hidden;
  background: radial-gradient(circle, rgba(255,210,60,.35), rgba(30,0,50,.85) 70%); }
.cv-bigwin.hidden { display: none; }
.cv-bw-t { font: 900 clamp(46px, 11vh, 110px)/1 "Space Grotesk", system-ui, sans-serif; color: #ffe066; -webkit-text-stroke: 3px #c2187a; paint-order: stroke fill; text-shadow: 0 8px 0 #7a0d4c, 0 0 40px #fff; animation: cvBig .6s cubic-bezier(.3,1.7,.5,1), cvBigPulse .8s ease-in-out .6s infinite alternate; }
.cv-bigwin.mega .cv-bw-t { color: #7ff0ff; } .cv-bigwin.superb .cv-bw-t { color: #ff9dff; } .cv-bigwin.sensational .cv-bw-t { color: #fff; -webkit-text-stroke-color: #ff7a00; }
.cv-bw-n { font: 900 clamp(40px, 9vh, 90px)/1 "Space Grotesk", system-ui, sans-serif; color: #fff; text-shadow: 0 5px 0 #a33a00, 0 0 30px #ffd23d; }
.cv-bigwin small { opacity: .75; font-weight: 700; }
@keyframes cvBig { from { transform: scale(.2) rotate(-8deg); } to { transform: scale(1) rotate(0); } }
@keyframes cvBigPulse { to { transform: scale(1.07); } }
.cv-rain { position: absolute; inset: 0; pointer-events: none; }
.cv-rain i { position: absolute; top: -10%; font-style: normal; font-size: clamp(22px, 4vh, 40px); animation: cvRain linear infinite; }
@keyframes cvRain { to { transform: translateY(125vh) rotate(540deg); } }
/* portrait phones: the reels full width on top, BUY + WIN side by side under them, then the bet / SPIN / auto */
.cv-ui, .cv-ui * { box-sizing: border-box; }
@media (orientation: portrait) {
  .cv-ui { grid-template-rows: auto minmax(0, 1fr) auto; padding: calc(4px + var(--safe-t)) 8px calc(6px + var(--safe-b)); gap: 5px; }
  .cv-top { flex-wrap: wrap; gap: 4px 6px; }
  .cv-logo { order: 1; min-width: 0; flex: 1; } .cv-logo .cv-li { height: 30px; } .cv-name { font-size: clamp(17px, 6vw, 28px); -webkit-text-stroke-width: 1.5px; white-space: nowrap; }
  .cv-topbtns { order: 2; } .cv-round { width: 34px; height: 34px; font-size: 15px; }
  .cv-infobar { order: 3; flex-basis: 100%; gap: 4px; } .cv-pill { font-size: 11px; padding: 3px 9px; }
  .cv-mid { flex-direction: column; justify-content: center; gap: 6px; min-width: 0; }
  .cv-frame { order: 1; width: 100%; height: auto; max-width: calc((100vh - 400px) * 1.2); max-width: calc((100dvh - 400px) * 1.2); padding: 5px; border-width: 4px; border-radius: 16px; }
  .cv-side { order: 2; flex-direction: row; width: 100%; max-width: 560px; gap: 6px; }
  .cv-buy { flex: 1.3; min-width: 0; min-height: 0; flex-direction: row; flex-wrap: wrap; gap: 4px 8px; padding: 7px 8px; border-width: 3px; border-radius: 14px; }
  .cv-buy-t { font-size: 17px; } .cv-buy-t br { display: none; }
  .cv-howto { flex: 1; min-width: 0; display: block; align-self: center; padding: 4px; font-size: 11px; } .cv-howto br { display: none; }
  .cv-right { order: 3; flex-direction: row; width: 100%; max-width: 560px; gap: 6px; }
  .cv-winbox { flex: 1; flex-direction: row; justify-content: center; gap: 10px; padding: 5px 8px; } .cv-win { font-size: 24px; }
  .cv-msg { flex: 1.3; min-width: 0; font-size: 11px; min-height: 0; display: flex; align-items: center; justify-content: center; }
  .cv-bottom { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px 10px; }
  .cv-bl { order: 0; width: 100%; flex-direction: row; justify-content: center; align-items: center; gap: 8px; padding: 4px 10px; }
  .cv-betctl { order: 1; } .cv-spin { order: 2; width: 74px; height: 74px; } .cv-spin span { font-size: 36px; }
  .cv-autobox { order: 3; } .cv-auto { flex-direction: column; padding: 4px 6px; gap: 3px; } .cv-auto small { display: none; } .cv-auto button { padding: 5px 8px; font-size: 12px; }
  .cv-betrow input { width: 70px; font-size: 18px; } .cv-betrow .cv-round { width: 32px; height: 32px; }
}
body.at-candy .crosshair, body.at-candy #pc-help, body.at-candy .dpad, body.at-candy .jump-btn, body.at-candy #casino-info, body.at-candy #click-look, body.at-candy #btn-trade, body.at-candy #chat:not(.chat-over) { display: none !important; }
body.at-candy .toast { z-index: 60; }
.os-credit { margin: 2px 0 6px; } .os-link { color: var(--accent); text-decoration: underline; }
/* 💣 the bombs going off */
.cv-cell.fuse { animation: cvFuse .09s linear infinite; z-index: 3; }
@keyframes cvFuse { 0% { transform: translate(-2px, 1px) scale(1.12); } 50% { transform: translate(2px, -1px) scale(1.18); } 100% { transform: translate(-1px, -2px) scale(1.12); } }
.cv-cell.boom { z-index: 4; animation: cvBoom .55s ease-out; }
@keyframes cvBoom { 0% { transform: scale(1.4); background: #fff; box-shadow: 0 0 50px 26px #ffe066; } 40% { transform: scale(1.05); background: #ffb347; } 100% { transform: scale(1); } }
.cv-blast { position: absolute; inset: 0; pointer-events: none; }
.cv-blast i { position: absolute; left: 50%; top: 50%; width: 10px; height: 10px; margin: -5px; border-radius: 50%; animation: cvSpark .55s ease-out forwards; }
@keyframes cvSpark { from { transform: translate(0, 0) scale(1.3); opacity: 1; } to { transform: translate(var(--dx), var(--dy)) scale(.2); opacity: 0; } }
.cv-mult { position: absolute; left: 50%; top: 40%; transform: translate(-50%, -50%); font: 900 clamp(26px, 5vh, 44px)/1 "Space Grotesk", system-ui, sans-serif; color: #ffe066; -webkit-text-stroke: 2px #7a1f00; animation: cvMult .6s ease-out forwards; white-space: nowrap; }
@keyframes cvMult { from { transform: translate(-50%, -20%) scale(.6); opacity: 1; } to { transform: translate(-50%, -180%) scale(1.4); opacity: 0; } }

/* the rules & odds, always on screen at the right; Double Chance; the lollipops' moment */
.cv-rules { flex: 1; min-height: 0; overflow-y: auto; padding: 8px 10px; border-radius: 14px; background: rgba(40,6,70,.78); border: 2px solid rgba(255,255,255,.45); font-size: clamp(10.5px, 1.55vh, 13px); line-height: 1.3; }
.cv-rules h4 { margin: 8px 0 3px; color: #ffe066; font-size: 1.05em; letter-spacing: .5px; display: flex; align-items: center; gap: 5px; } .cv-rules h4:first-child { margin-top: 0; }
.cv-rules h4 small { color: #ffd1ef; font-weight: 700; } .cv-rules p { margin: 0; color: #f4e9ff; } .cv-rules b { color: #fff; }
.cv-rules img { width: 26px; height: 26px; object-fit: contain; vertical-align: middle; } .cv-rules h4 img { width: 22px; height: 22px; }
.cv-rules table { width: 100%; border-collapse: collapse; } .cv-rules td { padding: 2px 3px; border-bottom: 1px solid rgba(255,255,255,.1); vertical-align: middle; font-size: .95em; }
.cv-rules td:first-child { width: 34px; } .cv-rules td b { color: #ffe066; display: inline-block; min-width: 36px; }
.cv-ante { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 7px 5px; border-radius: 14px; border: 3px solid #fff; cursor: pointer; color: #fff; background: linear-gradient(180deg, #8a8aa0, #4a4a5e); font-family: inherit; }
.cv-ante b { font-size: clamp(12px, 1.9vh, 15px); letter-spacing: .5px; } .cv-ante-s { font-weight: 900; font-size: clamp(13px, 2.2vh, 18px); } .cv-ante small { font-size: 10.5px; opacity: .9; }
.cv-ante.on { background: linear-gradient(180deg, #4ce06a, #13932b); box-shadow: 0 0 18px rgba(120,255,120,.8); } .cv-ante:disabled { filter: grayscale(.5); cursor: default; }
.cv-ui.party .cv-cell:not(.party) { opacity: .35; transition: opacity .3s; }
.cv-cell.party { z-index: 5; background: radial-gradient(circle, rgba(255,255,255,.95), rgba(255,210,80,.6) 60%, transparent 75%); animation: cvParty .5s ease-in-out infinite alternate; box-shadow: 0 0 0 4px #ffe066, 0 0 34px 10px #ff7ac6; }
.cv-cell.party img { transform: scale(1.45); }
@keyframes cvParty { from { transform: scale(1.12) rotate(-9deg); } to { transform: scale(1.3) rotate(9deg) translateY(-6%); } }
@media (orientation: portrait) {
  .cv-rules { display: none; }
  .cv-ante { flex: 1; min-width: 0; padding: 4px; } .cv-ante small { display: none; }
}

/* 🚀 Crash: the play panel */
.cr-ui { position: fixed; inset: 0; z-index: 48; display: flex; align-items: center; justify-content: center; padding: calc(8px + var(--safe-t)) 8px calc(8px + var(--safe-b)); background: rgba(3,6,14,.55); }
.cr-ui.hidden { display: none; }
.cr-card { width: min(1000px, 100%); max-height: 100%; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; padding: 10px 12px 12px; border-radius: 18px;
  background: linear-gradient(180deg, #121a33, #080b16); border: 2px solid #2fe08a; box-shadow: 0 0 30px rgba(47,224,138,.35), 0 14px 40px rgba(0,0,0,.6); color: #fff; font-family: "Space Grotesk", system-ui, sans-serif; }
.cr-head { display: flex; align-items: center; gap: 10px; } .cr-head b { font-size: 22px; color: #2fe08a; letter-spacing: 1px; } .cr-sub { flex: 1; font-size: 12.5px; opacity: .75; }
.cr-chart { width: 100%; height: auto; max-height: 56vh; aspect-ratio: 960 / 430; border-radius: 12px; display: block; }
.cr-controls { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px; }
.cr-f { display: flex; flex-direction: column; gap: 3px; } .cr-f small { font-weight: 800; letter-spacing: 1.5px; font-size: 10.5px; color: #9aa7c7; }
.cr-f input { width: 130px; font: 800 18px/1 "Space Grotesk", system-ui, sans-serif; padding: 9px 10px; border-radius: 10px; border: 2px solid #2a3558; background: #0b1020; color: #fff; }
.cr-quick { display: flex; gap: 4px; } .cr-quick button { font: 800 15px/1 "Space Grotesk", system-ui, sans-serif; padding: 10px 12px; border-radius: 10px; border: 2px solid #2a3558; background: #18213f; color: #fff; cursor: pointer; }
.cr-go { flex: 1; min-width: 220px; font: 900 20px/1 "Space Grotesk", system-ui, sans-serif; padding: 14px 16px; border-radius: 12px; border: 0; cursor: pointer; color: #062312;
  background: linear-gradient(180deg, #5dff9e, #1fb865); box-shadow: 0 4px 0 #0f6b39, 0 0 18px rgba(47,224,138,.55); }
.cr-go.cash { background: linear-gradient(180deg, #ffe066, #ff9d00); color: #3a1700; box-shadow: 0 4px 0 #a35a00, 0 0 22px rgba(255,200,60,.7); animation: cvBuyGlow 0.8s ease-in-out infinite; }
.cr-go.cancel { background: linear-gradient(180deg, #ff8a8a, #d43c3c); color: #fff; box-shadow: 0 4px 0 #7a1414; }
.cr-go.won { background: #1c3b2a; color: #5dff9e; box-shadow: none; } .cr-go.lost { background: #3b1c1c; color: #ff8a8a; box-shadow: none; }
.cr-go:disabled { cursor: default; } .cr-go:disabled:not(.won):not(.lost) { background: #1d2440; color: #9aa7c7; box-shadow: none; }
.cr-note { font-size: 12px; opacity: .7; }
@media (max-width: 560px) { .cr-f input { width: 100px; } .cr-go { min-width: 100%; } .cr-sub { display: none; } }

/* 💬 the chat on top of the blackjack / chess / roulette panels (lifted out of the HUD while one is open) */
#chat.chat-over { position: fixed; z-index: 58; }
body.touch #chat.chat-over { top: calc(122px + var(--safe-t)); }
/* blackjack: up in the top-left corner, above the table's panel */
body.chat-at-bj:not(.touch) #chat.chat-over { top: 140px; bottom: auto; width: 320px; }
body.chat-at-bj:not(.touch) #chat.chat-over .chat-log { height: 170px; }
/* chess: the board moves over to make room for the chat on the left */
@media (min-width: 900px) {
  body.chat-at-chess:not(.touch) .chess-ui { padding-left: 330px; }
  body.chat-at-chess:not(.touch) #chat.chat-over { width: 310px; }
}

/* ===== 🐸 Bonanza themes: the moving background, win pops, and each machine's own look ===== */
.cv-fx { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.cv-pop { position: absolute; z-index: 7; transform: translate(-50%, -50%); pointer-events: none; font: 900 clamp(20px, 4.2vh, 38px)/1 "Space Grotesk", system-ui, sans-serif;
  color: #fff; -webkit-text-stroke: 2px #7a1f00; paint-order: stroke fill; text-shadow: 0 4px 0 rgba(0,0,0,.35); animation: cvPopUp 1.25s ease-out forwards; }
@keyframes cvPopUp { 0% { opacity: 0; transform: translate(-50%, -20%) scale(.5); } 15% { opacity: 1; transform: translate(-50%, -50%) scale(1.25); } 30% { transform: translate(-50%, -60%) scale(1); } 100% { opacity: 0; transform: translate(-50%, -190%) scale(1); } }
.cv-shout { position: absolute; z-index: 7; left: 50%; top: 10%; transform: translate(-50%, 0) rotate(-6deg); pointer-events: none; white-space: nowrap; font: 900 clamp(22px, 5vh, 46px)/1 "Space Grotesk", system-ui, sans-serif;
  color: #ffe066; -webkit-text-stroke: 3px #7a1f00; paint-order: stroke fill; animation: cvShout 1.15s cubic-bezier(.3,1.6,.5,1) forwards; }
@keyframes cvShout { 0% { opacity: 0; transform: translate(-50%, 0) rotate(-6deg) scale(.3); } 25% { opacity: 1; transform: translate(-50%, 0) rotate(-6deg) scale(1.15); } 80% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, -30px) rotate(-6deg) scale(1); } }

/* --- Apu Bonanza: the frens in the matrix. Night black with falling green code, fren blue and frog green, gold FRENS --- */
.cv-ui[data-theme="apu"] .cv-bg { background: radial-gradient(ellipse at 50% 40%, #0b2a16 0%, #03100a 60%, #000 100%); }
.cv-ui[data-theme="apu"] .cv-cloud, .cv-ui[data-theme="apu"] .cv-hill, .cv-ui[data-theme="apu"] .cv-sparkles { display: none; }
.cv-ui[data-theme="apu"].fs .cv-bg { background: radial-gradient(ellipse at 50% 35%, #1f9a3a 0%, #063a14 45%, #000 100%); }
.cv-ui[data-theme="apu"] .cv-name { color: #8dff6a; -webkit-text-stroke: 2px #063a14; text-shadow: 0 4px 0 #1f9a3a, 0 0 22px rgba(80,255,120,.9); letter-spacing: 2px; }
.cv-ui[data-theme="apu"] .cv-pill { background: rgba(10,90,30,.85); border-color: #8dff6a; }
.cv-ui[data-theme="apu"] .cv-pill b { color: #8dff6a; }
.cv-ui[data-theme="apu"] .cv-pill.gold { background: linear-gradient(180deg, #8dff6a, #2e9a2a); color: #04210a; border-color: #eaffd8; } .cv-ui[data-theme="apu"] .cv-pill.gold b { color: #fff; text-shadow: 0 2px 0 #0d4a10; }
.cv-ui[data-theme="apu"] .cv-frame { background: linear-gradient(180deg, rgba(14,110,40,.55), rgba(4,30,14,.75)); box-shadow: 0 0 0 4px #1f9a3a, 0 0 0 8px #8dff6a, 0 0 40px rgba(80,255,120,.55), inset 0 0 30px rgba(80,255,120,.25); }
.cv-ui[data-theme="apu"].fs .cv-frame { box-shadow: 0 0 0 4px #8dff6a, 0 0 50px #4cff7a, inset 0 0 30px rgba(140,255,160,.4); }
.cv-ui[data-theme="apu"] .cv-cell { background: rgba(141,255,106,.12); border: 1px solid rgba(141,255,106,.25); }
.cv-ui[data-theme="apu"] .cv-cell.win { background: rgba(141,255,106,.85); box-shadow: 0 0 0 3px #eaffd8, 0 0 24px #4cff7a; }
.cv-ui[data-theme="apu"] .cv-round, .cv-ui[data-theme="apu"] .cv-auto button { background: linear-gradient(180deg, #3ccf5a, #0f6a24); border-color: #8dff6a; }
.cv-ui[data-theme="apu"] .cv-spin { background: radial-gradient(circle at 40% 30%, #b8ff9a, #2e9a2a 70%); border-color: #eaffd8; box-shadow: 0 6px 0 #0d4a10, 0 0 30px rgba(80,255,120,.75); }
.cv-ui[data-theme="apu"] .cv-buy { background: linear-gradient(180deg, #3ccf5a, #0f6a24); border-color: #8dff6a; color: #fff; box-shadow: 0 6px 0 #04300f, 0 0 26px rgba(80,255,120,.7); }
.cv-ui[data-theme="apu"] .cv-buy-t { color: #8dff6a; text-shadow: 0 2px 0 #04300f; } .cv-ui[data-theme="apu"] .cv-buy small { background: rgba(141,255,106,.9); color: #04210a; }
.cv-ui[data-theme="apu"] .cv-howto { background: rgba(4,30,14,.85); color: #d8ffd0; border: 2px solid #1f9a3a; } .cv-ui[data-theme="apu"] .cv-howto b { color: #8dff6a; }
.cv-ui[data-theme="apu"] .cv-winbox, .cv-ui[data-theme="apu"] .cv-msg, .cv-ui[data-theme="apu"] .cv-bl, .cv-ui[data-theme="apu"] .cv-auto, .cv-ui[data-theme="apu"] .cv-betrow input { background: rgba(6,70,24,.82); border-color: #8dff6a; }
.cv-ui[data-theme="apu"] .cv-win, .cv-ui[data-theme="apu"] .cv-msg.win, .cv-ui[data-theme="apu"] .cv-betrow input { color: #8dff6a; text-shadow: 0 3px 0 #04300f; }
.cv-ui[data-theme="apu"] .cv-winbox small, .cv-ui[data-theme="apu"] .cv-bl small, .cv-ui[data-theme="apu"] .cv-betctl small { color: #b8ffb0; }
.cv-ui[data-theme="apu"] .cv-banner { background: linear-gradient(180deg, rgba(20,140,50,.95), rgba(4,60,20,.95)); border-color: #8dff6a; box-shadow: 0 0 40px rgba(80,255,120,.8); }
.cv-ui[data-theme="apu"] .cv-banner b { -webkit-text-stroke-color: #0d4a10; color: #8dff6a; }
.cv-ui[data-theme="apu"] .cv-pop { color: #b8ff9a; -webkit-text-stroke-color: #04300f; }
.cv-ui[data-theme="apu"] .cv-shout { color: #8dff6a; -webkit-text-stroke-color: #0f6a24; }
.cv-ui[data-theme="apu"] .cv-rules, .cv-ui[data-theme="apu"] .cv-help-card { background: rgba(4,50,18,.88); border-color: #8dff6a; }
.cv-ui[data-theme="apu"] .cv-rules h4, .cv-ui[data-theme="apu"] .cv-help-card h3 { color: #8dff6a; }
.cv-ui[data-theme="apu"] .cv-bigwin { background: radial-gradient(circle, rgba(20,150,60,.85), rgba(0,0,0,.92)); }
.cv-ui[data-theme="apu"] .cv-bigwin .cv-bw-t { color: #8dff6a; -webkit-text-stroke-color: #0f6a24; }
.cv-ui[data-theme="apu"] .cv-cell.party { background: radial-gradient(circle, rgba(234,255,216,.95), rgba(141,255,106,.6) 60%, transparent 75%); box-shadow: 0 0 0 4px #8dff6a, 0 0 34px 10px #1f9a3a; }

/* --- Coins Bonanza: the gold vault. Deep dark gold, coins showering down, everything shines --- */
.cv-ui[data-theme="coins"] .cv-bg { background: radial-gradient(ellipse at 50% 30%, #6a4300 0%, #2a1700 50%, #0c0600 100%); }
.cv-ui[data-theme="coins"] .cv-cloud, .cv-ui[data-theme="coins"] .cv-hill { display: none; }
.cv-ui[data-theme="coins"].fs .cv-bg { background: radial-gradient(ellipse at 50% 30%, #ffb21a 0%, #8a4a00 40%, #1a0c00 100%); }
.cv-ui[data-theme="coins"] .cv-name { color: #fff3a0; -webkit-text-stroke: 2px #7a3e00; text-shadow: 0 4px 0 #a35a00, 0 0 22px rgba(255,200,60,.9); }
.cv-ui[data-theme="coins"] .cv-pill { background: rgba(60,30,0,.82); border-color: #ffc21a; } .cv-ui[data-theme="coins"] .cv-pill b { color: #ffd34d; }
.cv-ui[data-theme="coins"] .cv-frame { background: linear-gradient(180deg, rgba(255,220,120,.25), rgba(90,45,0,.55)); box-shadow: 0 0 0 4px #ffc21a, 0 0 0 8px #7a3e00, 0 0 40px rgba(255,190,40,.6), inset 0 0 30px rgba(255,230,140,.35); }
.cv-ui[data-theme="coins"].fs .cv-frame { box-shadow: 0 0 0 4px #fff3a0, 0 0 60px #ffb21a, inset 0 0 30px rgba(255,240,170,.5); }
.cv-ui[data-theme="coins"] .cv-cell { background: rgba(255,214,90,.16); border: 1px solid rgba(255,214,90,.3); }
.cv-ui[data-theme="coins"] .cv-round, .cv-ui[data-theme="coins"] .cv-auto button { background: linear-gradient(180deg, #ffd34d, #c47a00); border-color: #fff3b0; color: #4a1600; }
.cv-ui[data-theme="coins"] .cv-spin { background: radial-gradient(circle at 40% 30%, #fff3a0, #e0a000 70%); border-color: #fff8d0; box-shadow: 0 6px 0 #7a3e00, 0 0 30px rgba(255,200,60,.8); }
.cv-ui[data-theme="coins"] .cv-spin span { text-shadow: 0 3px 0 #7a3e00; }
.cv-ui[data-theme="coins"] .cv-winbox, .cv-ui[data-theme="coins"] .cv-msg, .cv-ui[data-theme="coins"] .cv-bl, .cv-ui[data-theme="coins"] .cv-auto, .cv-ui[data-theme="coins"] .cv-betrow input { background: rgba(50,24,0,.82); border-color: #ffc21a; }
.cv-ui[data-theme="coins"] .cv-winbox small, .cv-ui[data-theme="coins"] .cv-bl small, .cv-ui[data-theme="coins"] .cv-betctl small { color: #ffe9a8; }
.cv-ui[data-theme="coins"] .cv-howto { background: rgba(50,24,0,.85); color: #ffe9a8; } .cv-ui[data-theme="coins"] .cv-howto b { color: #ffd34d; }
.cv-ui[data-theme="coins"] .cv-banner { background: linear-gradient(180deg, rgba(255,190,40,.96), rgba(150,70,0,.96)); border-color: #fff3a0; box-shadow: 0 0 50px rgba(255,200,60,.9); }
.cv-ui[data-theme="coins"] .cv-rules, .cv-ui[data-theme="coins"] .cv-help-card { background: rgba(40,20,0,.9); border-color: #ffc21a; }
.cv-ui[data-theme="coins"] .cv-rules h4, .cv-ui[data-theme="coins"] .cv-help-card h3 { color: #ffd34d; }
.cv-ui[data-theme="coins"] .cv-bigwin { background: radial-gradient(circle, rgba(255,180,30,.8), rgba(30,14,0,.94)); }
.cv-ui[data-theme="coins"] .cv-cell.party { box-shadow: 0 0 0 4px #fff3a0, 0 0 34px 10px #ffb21a; }
/* hotkey hints on the green buttons (Bet Enter, Hit H, ...): dark on the green so they can be read */
.btn.primary kbd { color: var(--accent-ink); background: rgba(0,0,0,.14); border-color: rgba(0,0,0,.4); opacity: 1; }
/* 💬 the open chat's ▾ arrow (top right): tap / click to fold the chat away (on phones too) */
.chat-caret { margin-left: auto; display: none; align-items: center; justify-content: center; min-width: 38px; height: 30px; border-radius: 10px; font-size: 20px; line-height: 1;
  background: rgba(255,255,255,.08); border: 1px solid var(--line); color: var(--text); }
.chat:not(.collapsed) .chat-caret { display: inline-flex; }
.chat-caret:hover { background: rgba(255,255,255,.16); }
body.touch .chat:not(.collapsed) .chat-caret { min-width: 46px; height: 36px; font-size: 22px; }
.cv-ui[data-theme="apu"] .cv-pop { color: #fff; -webkit-text-stroke: 3px #0f6a24; text-shadow: 0 0 18px rgba(80,255,120,.9); }
.cv-ui[data-theme="coins"] .cv-pop { color: #fff8d0; -webkit-text-stroke: 3px #7a3e00; text-shadow: 0 0 18px rgba(255,200,60,.9); }
.cv-ui[data-theme="apu"] .cv-ante { background: linear-gradient(180deg, #0f6a24, #04300f); border-color: #8dff6a; color: #d8ffd0; }
.cv-ui[data-theme="apu"] .cv-ante.on { background: linear-gradient(180deg, #8dff6a, #2e9a2a); color: #04210a; }
.cv-ui[data-theme="coins"] .cv-ante { background: linear-gradient(180deg, #5a3000, #2a1500); border-color: #ffc21a; color: #ffe9a8; }
.cv-ui[data-theme="coins"] .cv-ante.on { background: linear-gradient(180deg, #ffd34d, #c47a00); color: #4a1600; }

/* ===== 🎰 Meme Slots, full screen for the player (everyone else watches on the machine's own screen in 3D) ===== */
.slots-ui { inset: 0; left: 0; right: 0; top: 0; bottom: 0; transform: none; width: auto; border: 0; border-radius: 0; z-index: 48;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(250px, 330px); grid-template-rows: auto 1fr auto auto auto; column-gap: clamp(12px, 3vw, 40px); row-gap: 8px;
  grid-template-areas: "head head" "win pay" "msg pay" "ctl pay" "pbtn pay";
  padding: calc(12px + var(--safe-t)) clamp(12px, 3vw, 40px) calc(14px + var(--safe-b));
  background: radial-gradient(ellipse at 50% 35%, #6a1a5e 0%, #2a0b3a 45%, #0b0414 100%); box-shadow: none; overflow: hidden; }
.slots-ui::before { content: ""; position: absolute; inset: 8px; border-radius: 22px; pointer-events: none; z-index: 0;
  background: radial-gradient(circle, #ffe680 0 3px, transparent 4px) 0 0 / 26px 26px; opacity: .55;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; padding: 10px; animation: slotsBulbs 1s steps(2) infinite; }
@keyframes slotsBulbs { 50% { background-position: 13px 13px; opacity: .85; } }
.slots-ui > * { position: relative; z-index: 1; }
@media (min-width: 900px) { .slots-ui { left: 0; right: 0; top: 0; bottom: 0; transform: none; } }
.slots-head { grid-area: head; margin: 0 4px; }
.slots-head > b { font: 900 clamp(24px, 5vh, 44px)/1 "Space Grotesk", system-ui, sans-serif; letter-spacing: .06em; color: #ffe680; -webkit-text-stroke: 2px #8a2a00; paint-order: stroke fill; text-shadow: 0 4px 0 #8a2a00, 0 0 24px rgba(255,200,60,.8); }
.slots-bal { font: 800 clamp(15px, 2.4vh, 20px)/1 "Space Grotesk", system-ui, sans-serif; background: rgba(0,0,0,.45); border: 2px solid #ffc94a; border-radius: 999px; padding: 7px 14px; }
.slots-window { grid-area: win; align-self: center; justify-self: center; --cell: min(19vh, 15vw, 170px); padding: 10px; gap: 10px; border-radius: 22px;
  background: linear-gradient(180deg, #ffe066, #ff9d1f); box-shadow: 0 0 0 5px #8a2a00, 0 0 50px rgba(255,190,40,.55), inset 0 0 20px rgba(255,255,255,.5); }
.slots-window .reel { width: calc(var(--cell) * 1.05); border-radius: 14px; box-shadow: inset 0 10px 18px rgba(0,0,0,.25), inset 0 -10px 18px rgba(0,0,0,.25); }
.slots-window .payline { height: 5px; margin-top: -2.5px; }
.slots-window.win { animation: slotsWin .45s ease-in-out infinite alternate; }
@keyframes slotsWin { to { box-shadow: 0 0 0 5px #2bd96b, 0 0 80px rgba(43,217,107,.9), inset 0 0 20px rgba(255,255,255,.6); } }
.slots-msg { grid-area: msg; margin: 0; font: 800 clamp(15px, 2.6vh, 22px)/1.25 "Space Grotesk", system-ui, sans-serif; }
.slots-msg.win { font-size: clamp(20px, 3.6vh, 32px); color: #7dff9a; text-shadow: 0 0 18px rgba(80,255,120,.8); }
.slots-controls { grid-area: ctl; justify-content: center; align-items: center; gap: 14px; flex-wrap: wrap; }
.slots-controls .bet-row { flex: 0 0 auto; background: rgba(0,0,0,.4); border: 2px solid #ffc94a; border-radius: 16px; padding: 6px 12px; }
.slots-controls .bet-row input { width: 120px; font: 900 20px/1 "Space Grotesk", system-ui, sans-serif; text-align: center; }
.slots-spin { min-width: clamp(130px, 18vw, 200px); min-height: clamp(54px, 8vh, 72px); font-size: clamp(22px, 3.6vh, 30px) !important; border-radius: 999px !important;
  border: 4px solid #fff3c4 !important; box-shadow: 0 6px 0 #6a0a10, 0 0 30px rgba(255,80,90,.7); }
.slots-spin:not(:disabled):active { transform: translateY(4px); box-shadow: 0 2px 0 #6a0a10; }
.slots-spin kbd { color: #fff !important; background: rgba(0,0,0,.3) !important; border-color: rgba(255,255,255,.4) !important; }
.slots-pay-btn { grid-area: pbtn; font-size: 14px; }
.slots-pay { grid-area: pay; align-self: stretch; max-height: none; margin: 0; overflow-y: auto; min-height: 0; background: rgba(0,0,0,.42); border: 2px solid #ffc94a; border-radius: 16px; padding: 10px 12px; }
@media (min-width: 760px) { .slots-pay.hidden { display: block; } .slots-pay-btn { display: none; } }
@media (max-width: 759px) {
  .slots-ui { grid-template-columns: 1fr; grid-template-rows: auto 1fr auto auto auto; grid-template-areas: "head" "win" "msg" "ctl" "pbtn"; }
  .slots-window { --cell: min(17vh, 26vw); }
  .slots-pay:not(.hidden) { position: absolute; inset: calc(64px + var(--safe-t)) 10px calc(80px + var(--safe-b)); z-index: 3; background: rgba(20,8,32,.97); }
}
/* the win: "+12.5" bursting out of the reels */
.slots-pop { position: absolute; left: 50%; top: 50%; z-index: 4; pointer-events: none; white-space: nowrap; font: 900 clamp(34px, 8vh, 72px)/1 "Space Grotesk", system-ui, sans-serif;
  color: #fff; -webkit-text-stroke: 3px #0b5a17; paint-order: stroke fill; text-shadow: 0 0 30px rgba(80,255,120,.9); animation: slotsPop 1.6s cubic-bezier(.3,1.5,.5,1) forwards; }
@keyframes slotsPop { 0% { opacity: 0; transform: translate(-50%, -50%) scale(.3); } 20% { opacity: 1; transform: translate(-50%, -50%) scale(1.15); } 70% { opacity: 1; transform: translate(-50%, -70%) scale(1); } 100% { opacity: 0; transform: translate(-50%, -110%) scale(1); } }
body.at-slots .toast { z-index: 60; }
body.at-slots #casino-info, body.at-slots #click-look, body.at-slots #btn-trade { display: none !important; }
.slots-head > b { white-space: nowrap; font-size: clamp(20px, min(5vh, 7vw), 44px); }
.slots-head { gap: 8px; }
.slots-bal { white-space: nowrap; flex-shrink: 0; }
/* the WIN at the top of the Bonanza (the old box on the right is gone); the bomb multiplier shows right under it */
.cv-winbox { display: none !important; }
.cv-topwin { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: clamp(130px, 18vw, 240px); padding: 4px 16px 6px; border-radius: 16px;
  background: rgba(40,6,70,.82); border: 3px solid #ffe066; line-height: 1; flex-shrink: 0; }
.cv-topwin small { font-weight: 900; letter-spacing: 3px; font-size: 11px; color: #ffd1ef; }
.cv-tw-n { font: 900 clamp(24px, 5vh, 46px)/1.05 "Space Grotesk", system-ui, sans-serif; color: #ffe066; text-shadow: 0 3px 0 #7a1f00; }
.cv-topwin.on { animation: cvBuyGlow 1s ease-in-out infinite; }
.cv-tw-x { display: none; font: 800 clamp(12px, 2vh, 17px)/1.1 "Space Grotesk", system-ui, sans-serif; color: #fff; margin-top: 2px; white-space: nowrap; }
.cv-tw-x.on { display: block; } .cv-tw-x b { color: #ff9d3d; }
.cv-topwin.boom { animation: cvTwBoom .5s cubic-bezier(.3,1.6,.5,1); }
@keyframes cvTwBoom { 0% { transform: scale(1); } 35% { transform: scale(1.28); box-shadow: 0 0 40px #ff9d3d; } 100% { transform: scale(1); } }
.cv-ui[data-theme="apu"] .cv-topwin { background: rgba(6,70,24,.9); border-color: #8dff6a; } .cv-ui[data-theme="apu"] .cv-tw-n { color: #8dff6a; text-shadow: 0 3px 0 #04300f; }
.cv-ui[data-theme="apu"] .cv-topwin small { color: #b8ffb0; } .cv-ui[data-theme="apu"] .cv-tw-x b { color: #8dff6a; }
.cv-ui[data-theme="coins"] .cv-topwin { background: rgba(50,24,0,.88); border-color: #ffc21a; } .cv-ui[data-theme="coins"] .cv-topwin small { color: #ffe9a8; }
@media (orientation: portrait) {
  .cv-topwin { order: 3; flex-basis: 100%; flex-direction: row; gap: 10px; padding: 3px 10px; min-width: 0; } .cv-tw-n { font-size: 26px; } .cv-infobar { order: 4; }
  .cv-tw-x.on { margin: 0; }
}
/* 🥴 drunk: the edges of the view go dark and blurry-red; 💫 passed out: everything goes black for a few seconds */
.drunk-fx { position: fixed; inset: 0; pointer-events: none; z-index: 4; opacity: 0; background: radial-gradient(ellipse at center, transparent 45%, rgba(60,0,20,.55) 80%, rgba(10,0,5,.9) 100%); transition: opacity .8s; }
.blackout { position: fixed; inset: 0; pointer-events: none; z-index: 70; opacity: 0; background: #000; display: none; align-items: center; justify-content: center; }
#blackout:not(.zzz) b { display: none; }
.blackout.on { display: flex; } .blackout b { font-size: 46px; opacity: .6; animation: cvBob 1.6s ease-in-out infinite; }
/* 🎁 the BUY FREE SPINS button: its machine's lollipop over a turning sunburst, a shine sweeping across, the theme's colours */
.cv-buy { position: relative; overflow: hidden; isolation: isolate; }
.cv-buy::after { content: ""; position: absolute; top: -20%; bottom: -20%; width: 40%; left: -60%; z-index: 2; pointer-events: none; transform: skewX(-20deg);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.65), transparent); animation: cvBuyShine 2.6s ease-in-out infinite; }
@keyframes cvBuyShine { 0%, 55% { left: -60%; } 100% { left: 140%; } }
.cv-buy:disabled::after { animation: none; display: none; }
.cv-buy-burst { position: absolute; left: 50%; top: 30%; width: 220%; aspect-ratio: 1; transform: translate(-50%, -50%); z-index: -1; pointer-events: none; opacity: .35;
  background: repeating-conic-gradient(from 0deg, rgba(255,255,255,.9) 0 9deg, transparent 9deg 22deg); animation: cvBurst 12s linear infinite; border-radius: 50%; }
@keyframes cvBurst { to { transform: translate(-50%, -50%) rotate(360deg); } }
.cv-buy-ico { position: relative; z-index: 1; display: block; line-height: 0; }
.cv-buy-li { height: clamp(34px, 7vh, 62px); width: auto; filter: drop-shadow(0 4px 0 rgba(0,0,0,.3)); animation: cvBob 1.4s ease-in-out infinite; }
.cv-buy > span, .cv-buy > small { position: relative; z-index: 1; }
.cv-ui[data-theme="coins"] .cv-buy-li { transform: rotate(-34deg); animation: none; }
.cv-ui[data-theme="coins"] .cv-buy { background: radial-gradient(circle at 50% 28%, #fff7c2 0%, #ffd23d 35%, #e08a00 75%, #8a4a00 100%); border-color: #fff3b0;
  box-shadow: 0 6px 0 #6a3500, 0 0 0 3px #8a4a00, 0 0 30px rgba(255,200,60,.85); color: #4a1600; }
.cv-ui[data-theme="coins"] .cv-buy-t { color: #fff; -webkit-text-stroke: 1.5px #8a3a00; paint-order: stroke fill; text-shadow: 0 3px 0 #8a3a00; }
.cv-ui[data-theme="coins"] .cv-buy small { background: #3a1a00; color: #ffd34d; border: 2px solid #ffd34d; }
.cv-ui[data-theme="coins"] .cv-buy-burst { background: repeating-conic-gradient(from 0deg, rgba(255,255,255,.95) 0 8deg, transparent 8deg 20deg); opacity: .45; }
.cv-ui[data-theme="apu"] .cv-buy { background: radial-gradient(circle at 50% 28%, #7dff9a 0%, #1f9a3a 45%, #04300f 100%); border-color: #8dff6a;
  box-shadow: 0 6px 0 #050a30, 0 0 0 3px #2e9a2a, 0 0 32px rgba(80,255,120,.75); }
.cv-ui[data-theme="apu"] .cv-buy-t { color: #8dff6a; -webkit-text-stroke: 1.5px #04300f; paint-order: stroke fill; text-shadow: 0 0 14px rgba(80,255,120,.9), 0 3px 0 #04300f; }
.cv-ui[data-theme="apu"] .cv-buy-burst { background: repeating-conic-gradient(from 0deg, rgba(141,255,106,.9) 0 8deg, transparent 8deg 20deg); opacity: .3; }
.cv-ui[data-theme="apu"] .cv-buy::after { background: linear-gradient(90deg, transparent, rgba(141,255,106,.7), transparent); }
@media (orientation: portrait) { .cv-buy-li { height: 30px; } .cv-buy-burst { top: 50%; width: 140%; } }
.intro-cmds { margin: 8px 0 0; padding-left: 18px; text-align: left; line-height: 1.6; font-size: 14px; } .intro-cmds b { color: var(--accent); }
.cv-buy-burst { top: 40%; } .cv-buy-li { height: clamp(44px, 10vh, 84px); }
@media (orientation: portrait) { .cv-buy-li { height: 30px; } .cv-buy-burst { top: 50%; } }
/* (the "or land 4+ lollipops = 10 free spins" box: the bar at the top already says it, so it isn't said twice) */
.cv-howto { display: none !important; }
/* 💸 the dancer card with two buttons: her name on top, the buttons in a row under it */
#casino-info.two-btn { flex-wrap: wrap; justify-content: center; }
#casino-info.two-btn .nft-info-text { flex-basis: 100%; }
#casino-info .nft-info-text span { white-space: normal; overflow: visible; line-height: 1.3; }   /* (round 28: the rakeback stand says everything, wrapped, not cut off with …) */
#casino-info { max-width: min(560px, 94vw); }

/* ---------- 📦 Case Opening (js/cases.js): a CS:GO-style panel ---------- */
.cs-ui { position: fixed; inset: 0; z-index: 48; display: flex; align-items: center; justify-content: center; padding: calc(8px + var(--safe-t)) 8px calc(8px + var(--safe-b)); background: rgba(3,6,14,.6); }
.cs-ui.hidden { display: none; }
.cs-card { width: min(980px, 100%); max-height: 100%; overflow: auto; background: linear-gradient(180deg, #1b1f2a, #12151d); border: 1px solid #2c3242; border-radius: 14px; box-shadow: 0 20px 60px rgba(0,0,0,.6); color: #e6e9f0; }
.cs-head { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; gap: 12px; padding: 10px 12px; background: #161a23; border-bottom: 1px solid #2c3242; }
.cs-head > b { font-size: 15px; letter-spacing: .08em; color: #e4ae39; white-space: nowrap; }
.cs-tabs { display: flex; gap: 6px; flex: 1; overflow-x: auto; }
.cs-tabs button { border: 1px solid #2c3242; background: #1f2431; color: #b8bfd0; border-radius: 8px; padding: 7px 11px; font-weight: 700; font-size: 13px; white-space: nowrap; cursor: pointer; }
.cs-tabs button.on { background: #e4ae39; color: #1b1300; border-color: #e4ae39; }
.cs-body { padding: 12px; }
.cs-reel { position: relative; height: 150px; overflow: hidden; border-radius: 10px; background: #0d1017; border: 1px solid #2c3242; box-shadow: inset 0 0 30px rgba(0,0,0,.7), 0 0 0 1px color-mix(in srgb, var(--cc, #e4ae39) 30%, transparent); }
.cs-reel.small { height: 118px; }
.cs-reel::before, .cs-reel::after { content: ''; position: absolute; top: 0; bottom: 0; width: 70px; z-index: 1; pointer-events: none; }
.cs-reel::before { left: 0; background: linear-gradient(90deg, #0d1017, transparent); }
.cs-reel::after { right: 0; background: linear-gradient(-90deg, #0d1017, transparent); }
.cs-strip { display: flex; gap: 6px; padding: 9px 0; height: 100%; will-change: transform; }
.cs-line { position: absolute; left: 50%; top: 0; bottom: 0; width: 3px; margin-left: -1.5px; background: #ffd23d; box-shadow: 0 0 10px #ffd23d; z-index: 2; }
.cs-line::before, .cs-line::after { content: ''; position: absolute; left: 50%; margin-left: -7px; border: 7px solid transparent; }
.cs-line::before { top: 0; border-top-color: #ffd23d; }
.cs-line::after { bottom: 0; border-bottom-color: #ffd23d; }
.cs-item { flex: 0 0 110px; position: relative; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; border-radius: 6px; padding: 4px 4px 9px;
  background: radial-gradient(ellipse at 50% 30%, color-mix(in srgb, var(--tc) 32%, #232836), #171b25 75%); border-bottom: 5px solid var(--tc); overflow: hidden; }
.cs-reel.small .cs-item { flex-basis: 88px; }
.cs-item .cs-ph { flex: 1; width: 100%; background: center / contain no-repeat; }
.cs-item span { font-size: 11px; font-weight: 700; line-height: 1.15; text-align: center; color: #fff; max-height: 2.3em; overflow: hidden; }
.cs-item.won { box-shadow: 0 0 0 2px var(--tc), 0 0 24px var(--tc); animation: csWon .9s ease-out; }
@keyframes csWon { 0% { transform: scale(1); } 40% { transform: scale(1.08); } 100% { transform: scale(1); } }
.cs-act { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin: 12px 0; }
.cs-open { border: 0; border-radius: 10px; padding: 13px 20px; font-weight: 900; font-size: 15px; letter-spacing: .04em; color: #fff; cursor: pointer;
  background: linear-gradient(135deg, var(--cc, #5b8a2a), var(--cc2, #2fe08a)); box-shadow: 0 6px 18px color-mix(in srgb, var(--cc, #5b8a2a) 45%, transparent), inset 0 1px 0 rgba(255,255,255,.3); }
.cs-open:disabled { filter: grayscale(.6) brightness(.7); cursor: default; }
.cs-result { font-size: 16px; font-weight: 800; }
.cs-odds { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 6px; }
.cs-tier { border-left: 4px solid var(--tc); background: #1a1e29; border-radius: 6px; padding: 7px 9px; display: grid; grid-template-columns: 1fr auto; gap: 2px 8px; font-size: 12px; }
.cs-tier b { color: var(--tc); } .cs-tier small { color: #fff; font-weight: 800; }
.cs-tier span { grid-column: 1 / -1; color: #aab2c4; } .cs-tier i { color: #6f7890; font-style: normal; }
.cs-sub { margin: 14px 0 8px; font-size: 13px; color: #e4ae39; letter-spacing: .06em; text-transform: uppercase; }
.cs-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 7px; }
.cs-grid .cs-item { flex: none; height: 150px; }
.cs-item em { font-style: normal; font-size: 10px; color: #c9cfdc; text-align: center; margin-top: 2px; }
.cs-note { color: #8790a6; font-size: 12px; line-height: 1.45; margin: 10px 0 0; }
.cb-new { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; background: #1a1e29; border-radius: 10px; padding: 10px; }
.cb-new label { display: flex; gap: 8px; align-items: center; font-size: 13px; } .cb-new input[type=range] { width: 140px; }
.cb-new .seg button { padding: 6px 10px; }
.cb-list { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; }
.cb-row { display: grid; grid-template-columns: 1.3fr 1.6fr .8fr auto; gap: 8px; align-items: center; background: #1a1e29; border-radius: 8px; padding: 8px 10px; font-size: 13px; }
.cb-row button, .cb-back { border: 0; border-radius: 8px; padding: 7px 12px; font-weight: 800; cursor: pointer; background: #e4ae39; color: #1b1300; }
.cb-row .cb-cancel { background: #3a4152; color: #fff; } .cb-row .cb-watch { background: #3d6bff; color: #fff; }
.cb-row.running { box-shadow: inset 3px 0 0 #3d6bff; } .cb-row.open { box-shadow: inset 3px 0 0 #e4ae39; }
.cb-title { margin: 10px 0; font-weight: 800; color: #e4ae39; }
.cb-sides { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cb-side { min-width: 0; background: #161a23; border: 1px solid #2c3242; border-radius: 10px; padding: 8px; transition: box-shadow .3s; }
.cb-side.winner { box-shadow: 0 0 0 2px #e4ae39, 0 0 24px rgba(228,174,57,.4); }
.cb-who { display: flex; justify-content: space-between; margin-bottom: 6px; } .cb-tot { font-weight: 900; color: #ffd23d; }
.cb-drops { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.cb-drops .cs-item { flex: 0 0 64px; height: 70px; padding: 2px 2px 6px; } .cb-drops .cs-item span { font-size: 9px; }
.cb-win { margin-top: 12px; text-align: center; font-size: 17px; color: #ffd23d; min-height: 1.4em; }
@media (max-width: 640px) { .cs-item { flex-basis: 92px; } .cs-reel { height: 128px; } .cb-row { grid-template-columns: 1fr 1fr; } .cb-sides { grid-template-columns: 1fr; } .cs-head > b { display: none; } }
/* 🌀 Settings → Teleport */
.tp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.tp-btn { display: grid; grid-template-columns: auto 1fr; gap: 2px 8px; align-items: center; text-align: left; border: 1px solid var(--line); background: rgba(255,255,255,.04); color: inherit; border-radius: 12px; padding: 10px; cursor: pointer; }
.tp-btn span { grid-row: span 2; font-size: 24px; } .tp-btn b { font-size: 14px; } .tp-btn small { font-size: 11px; opacity: .65; line-height: 1.25; }
.tp-btn:hover { border-color: #c6ff3d; }
/* 🏠 the screen going black (taking her home) */
#blackout { position: fixed; inset: 0; z-index: 90; background: #000; opacity: 0; pointer-events: none; transition: opacity .7s ease; }
#blackout.on { opacity: 1; pointer-events: auto; }
.cs-body, .cb-sides { min-width: 0; }

/* ---------- 🌲 Sproto Ranch Wilderness (js/wildui.js): the Merchant and Home Upgrades panels ---------- */
.sprout-pill img { width: 17px; height: 17px; vertical-align: -3px; }
.sp-ic { width: 1.05em; height: 1.05em; vertical-align: -0.18em; }
.chat-rank { font-style: normal; font-weight: 800; font-size: 11px; color: #9dff3d; margin-right: 4px; }
.wd-ui { position: fixed; inset: 0; z-index: 48; display: flex; align-items: center; justify-content: center; padding: calc(8px + var(--safe-t)) 8px calc(8px + var(--safe-b)); background: rgba(6,10,4,.5); }
.wd-ui.hidden { display: none; }
.wd-card { width: min(720px, 100%); max-height: 100%; overflow: auto; color: #f4eedd; border-radius: 16px; border: 3px solid #6b4a2a;
  background: linear-gradient(180deg, #3a2a1c, #2a1e14); box-shadow: 0 18px 50px rgba(0,0,0,.6), inset 0 0 0 2px #8a6438; }
.wd-head { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: #4a3422; border-bottom: 2px solid #6b4a2a; }
.wd-title { font-size: 16px; white-space: nowrap; } .wd-title small { display: block; font-size: 12px; color: #c9ff8a; font-weight: 700; }
.wd-tabs { display: flex; gap: 6px; flex: 1; overflow-x: auto; }
.wd-tabs button { border: 2px solid #6b4a2a; background: #2a1e14; color: #e8d8b8; border-radius: 9px; padding: 7px 11px; font-weight: 800; cursor: pointer; white-space: nowrap; }
.wd-tabs button.on { background: #9dff3d; color: #1a2a08; border-color: #9dff3d; }
.wd-body { padding: 12px; }
.wd-body h4 { margin: 14px 0 6px; color: #ffd27a; font-size: 13px; letter-spacing: .05em; text-transform: uppercase; }
.wd-list { display: flex; flex-direction: column; gap: 5px; }
.wd-row { display: grid; grid-template-columns: 1.4fr .6fr 1fr .8fr; gap: 6px; align-items: center; background: rgba(0,0,0,.25); border-radius: 8px; padding: 8px 10px; font-size: 14px; }
.wd-row b { text-align: right; color: #c9ff8a; }
.wd-go { width: 100%; margin-top: 10px; border: 0; border-radius: 11px; padding: 14px; font-size: 16px; font-weight: 900; letter-spacing: .03em; cursor: pointer; color: #1a2a08;
  background: linear-gradient(180deg, #c9ff6a, #6fd12a); box-shadow: 0 4px 0 #3f7a14, 0 8px 18px rgba(0,0,0,.35); }
.wd-go:disabled { filter: grayscale(.8) brightness(.7); cursor: default; }
.wd-earn { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; margin: 2px 0 12px; padding: 12px 14px; border-radius: 14px; background: linear-gradient(135deg, #2f5d1f, #4d8a22); border: 2px solid #9dff3d; box-shadow: 0 0 14px rgba(157,255,61,.35); color: #f4ffe6; }
.wd-earn b { font-size: 17px; display: flex; align-items: center; gap: 6px; } .wd-earn b img { width: 22px; height: 22px; }
.wd-earn span { font-size: 13.5px; line-height: 1.4; }
.wd-earn button { background: #9dff3d; color: #173000; font-weight: 800; border: 0; border-radius: 10px; padding: 8px 14px; font-size: 14px; cursor: pointer; }
.wd-note { color: #cdbd9c; font-size: 13px; line-height: 1.45; }
.wd-prices { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 6px; }
.wd-prices > div { background: rgba(0,0,0,.22); border-radius: 8px; padding: 8px; display: flex; flex-direction: column; gap: 2px; font-size: 12.5px; }
.wd-prices > div b { color: #ffd27a; } .wd-prices > div.locked { opacity: .45; }
.wd-rankbig { font-size: 20px; font-weight: 900; text-align: center; margin: 6px 0 10px; } .wd-rankbig b { color: #9dff3d; } .wd-rankbig small { display: block; font-size: 13px; color: #cdbd9c; font-weight: 600; }
.wd-req { display: grid; grid-template-columns: 1.2fr 2fr auto; gap: 10px; align-items: center; margin: 7px 0; font-size: 14px; }
.wd-bar { height: 12px; border-radius: 6px; background: rgba(0,0,0,.4); overflow: hidden; } .wd-bar i { display: block; height: 100%; background: linear-gradient(90deg, #ffb23a, #ffd23d); }
.wd-req.done .wd-bar i { background: linear-gradient(90deg, #6fd12a, #c9ff6a); } .wd-req.done b { color: #9dff3d; }
.wd-tp { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.wd-tp button { border: 2px solid #6b4a2a; background: rgba(0,0,0,.3); color: #f4eedd; border-radius: 12px; padding: 12px; font-weight: 800; font-size: 15px; cursor: pointer; text-align: left; }
.wd-tp button small { display: block; font-weight: 600; font-size: 12px; color: #cdbd9c; } .wd-tp button:disabled { opacity: .45; cursor: default; }
.wd-tp button:not(:disabled):hover { border-color: #9dff3d; }
.wd-shop { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; }
.wd-item { position: relative; display: flex; flex-direction: column; gap: 4px; background: rgba(0,0,0,.25); border: 2px solid #5a3e24; border-radius: 10px; padding: 10px; }
.wd-item small { color: #cdbd9c; font-size: 12px; } .wd-item.owned { border-color: #6fd12a; } .wd-item.locked { opacity: .6; }
.wd-item button, .wd-plain { align-self: flex-start; border: 0; border-radius: 8px; padding: 7px 14px; font-weight: 800; cursor: pointer; background: #9dff3d; color: #1a2a08; }
.wd-item button:disabled { background: #4a5a3a; color: #9aa88a; cursor: default; } .wd-item em { font-style: normal; font-size: 12.5px; color: #ffd27a; font-weight: 700; }
.wd-price { font-weight: 800; color: #c9ff8a; }
.wd-swatch { width: 100%; height: 22px; border-radius: 6px; border: 2px solid rgba(0,0,0,.3); }
@media (max-width: 560px) { .wd-row { grid-template-columns: 1fr 1fr; } .wd-req { grid-template-columns: 1fr 1fr; } .wd-req .wd-bar { grid-column: 1 / -1; order: 3; } .wd-title small { display: none; } }
/* +1 Oak Log, over the crosshair */
#wild-pop { position: fixed; left: 50%; top: 42%; transform: translate(-50%, 0); z-index: 30; pointer-events: none; font-weight: 900; font-size: 18px; color: #c9ff8a;
  text-shadow: 0 2px 6px rgba(0,0,0,.8); opacity: 0; }
#wild-pop.on { animation: wildPop 1.1s ease-out forwards; }
@keyframes wildPop { 0% { opacity: 0; transform: translate(-50%, 8px) scale(.9); } 15% { opacity: 1; transform: translate(-50%, 0) scale(1.05); } 100% { opacity: 0; transform: translate(-50%, -26px) scale(1); } }
/* 🎒 the wilderness hotbar (like Minecraft's): what you carry, along the bottom */
.wild-hotbar { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(58px + var(--safe-b)); z-index: 12; display: flex; gap: 3px; padding: 4px;
  background: rgba(20,20,24,.72); border: 3px solid #3a3a3e; box-shadow: inset 0 0 0 2px #6a6a70; pointer-events: none; image-rendering: pixelated; }
.wild-hotbar.hidden { display: none; }
.hb-slot { position: relative; width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; background: #8b8b8b;
  box-shadow: inset 2px 2px 0 #373737, inset -2px -2px 0 #ffffff; }
.hb-slot span { font-size: 24px; filter: drop-shadow(1px 1px 0 rgba(0,0,0,.4)); }
.hb-slot b { position: absolute; right: 3px; bottom: 1px; font: 800 13px/1 system-ui, sans-serif; color: #fff; text-shadow: 2px 2px 0 #3f3f3f; }
.hb-slot.none span { opacity: .35; } .hb-slot.empty { background: #7a7a7a; }
.hb-slot.up { animation: hbUp .5s ease-out; }
@keyframes hbUp { 0% { transform: scale(1.25); box-shadow: inset 2px 2px 0 #373737, inset -2px -2px 0 #fff, 0 0 12px #c9ff8a; } 100% { transform: scale(1); } }
@media (max-width: 560px) { .hb-slot { width: 34px; height: 34px; } .hb-slot span { font-size: 18px; } .hb-slot b { font-size: 11px; } .wild-hotbar { bottom: calc(150px + var(--safe-b)); } }
/* phones: no blur on the Bonanza's drifting clouds (a moving blur is expensive to draw) */
@media (hover: none) { .cv-cloud { filter: none; } }

/* 🔄 update in progress: the game is restarting */
.restart-overlay { position: fixed; inset: 0; z-index: 9000; display: grid; place-items: center; background: rgba(6, 7, 12, 0.72); backdrop-filter: blur(3px); }
.restart-overlay.soft { background: transparent; backdrop-filter: none; place-items: start center; padding-top: calc(70px + var(--tg-safe-area-inset-top, 0px)); pointer-events: none; }
.restart-card { background: #15171f; border: 1px solid var(--line); border-radius: 16px; padding: 18px 22px; max-width: min(92vw, 380px); text-align: center; display: grid; gap: 8px; justify-items: center; box-shadow: 0 10px 40px rgba(0,0,0,0.5); }
.restart-card p { margin: 0; font-size: 14px; opacity: 0.85; line-height: 1.4; }
.restart-spin { width: 28px; height: 28px; border-radius: 50%; border: 3px solid rgba(255,255,255,0.15); border-top-color: var(--accent); animation: rsSpin 0.9s linear infinite; }
@keyframes rsSpin { to { transform: rotate(360deg); } }
/* 🍭 Bonanza: the WIN, big, in the top middle of the game (in the bonus: this spin's win, the bombs multiply it there) */
.cv-top { flex-wrap: wrap; }
.cv-top::after { content: ''; order: 40; flex-basis: 100%; height: 0; }      /* (a line break: the WIN gets its own row, centred) */
.cv-topwin { order: 41; margin: 2px auto 0; min-width: clamp(170px, 26vw, 340px); padding: 6px 22px 8px; }
.cv-topwin small { font-size: 13px; }
.cv-tw-n { font-size: clamp(34px, 7.5vh, 68px); }
.cv-tw-x { font-size: clamp(14px, 2.6vh, 22px); }
/* "or land 4 🍭 = 10 FREE SPINS" on the buy button itself */
.cv-buy-or { display: block; margin-top: 4px; font: 800 clamp(9px, 1.5vh, 12px)/1.15 "Space Grotesk", system-ui, sans-serif; color: #fff; text-shadow: 0 1px 0 rgba(0,0,0,.5); white-space: normal; }
.cv-buy-or img { width: auto; height: 1.6em; object-fit: contain; vertical-align: middle; }   /* (round 28: its real shape, not squashed into a square) */
.cv-howto:empty { display: none; }

/* 💬 the chat at a Bonanza (over the rules, on the right) and at Crash (bottom left) */
body.chat-at-candy:not(.touch) #chat.chat-over { top: 150px; right: 10px; left: auto; bottom: auto; width: 300px; }
body.chat-at-candy:not(.touch) #chat.chat-over .chat-log { height: 190px; }
body.chat-at-candy:not(.touch) #chat.chat-over.collapsed { top: 64px; }   /* (folded: just its bar, clear of the paytable and the machine's speech bubble) */
body.chat-at-crash:not(.touch) #chat.chat-over { left: 10px; bottom: 10px; top: auto; width: 320px; }
body.chat-at-crash:not(.touch) #chat.chat-over .chat-log { height: 200px; }
/* ➕ adding a wallet, right in Settings → Coins (above your wallets) */
.cw-add { margin-bottom: 14px; padding: 10px 12px; border-radius: 14px; background: rgba(198,255,61,.06); border: 1px solid rgba(198,255,61,.25); }
.cw-add .vw-list { margin-top: 10px; }
.cw-add .vw-list::before { content: '👛 Your wallets'; display: block; font-weight: 800; margin-bottom: 6px; }
/* (FlexBot answering: its list, with Remove, is right under the add steps; the plain list is only for when it isn't) */
.coin-wallets.has-live .cw-head.yours, .coin-wallets.has-live #wallet-list { display: none; }
/* ⚔️ new case battle: how many of each case */
.cb-pick { display: flex; flex-direction: column; gap: 6px; margin: 6px 0; }
.cb-pk { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 6px 10px; border-radius: 12px; background: rgba(255,255,255,.06); }
.cb-step { display: flex; align-items: center; gap: 8px; }
.cb-step button { width: 34px; height: 34px; border-radius: 50%; border: 0; background: #7a5cff; color: #fff; font: 900 20px/1 system-ui; cursor: pointer; }
.cb-step b { min-width: 22px; text-align: center; font-size: 18px; }
.cb-step button[data-d="5"], .cb-step button[data-d="-5"] { font-size: 13px; background: #5a44c0; }
@media (max-width: 420px) { .cb-step { gap: 4px; } .cb-step button { width: 30px; height: 30px; } }
/* 🍭 in the bonus: the bonus total so far, under THIS SPIN */
.cv-tw-tot { display: none; margin-top: 4px; font: 800 clamp(13px, 2.2vh, 19px)/1.1 "Space Grotesk", system-ui, sans-serif; color: #fff; white-space: nowrap; }
.cv-tw-tot.on { display: block; } .cv-tw-tot b { color: #7dffb0; }
.cv-tw-tot.bump { animation: cvTotBump .6s cubic-bezier(.3,1.6,.5,1); }
@keyframes cvTotBump { 0% { transform: scale(1); } 40% { transform: scale(1.25); color: #7dffb0; } 100% { transform: scale(1); } }
/* ⚔️ the new-battle form: a fixed layout, so nothing moves when you change the number of cases */
.cb-new { display: grid !important; grid-template-columns: 1fr; gap: 8px; }
.cb-pick { margin: 0; }
.cb-step b, .cb-cost { font-variant-numeric: tabular-nums; }
.cb-step b { display: inline-block; width: 2.2ch; }
.cb-new .cb-go { width: 100%; justify-self: stretch; }
.cb-new .cs-note { margin: 0; }
/* ⚔️ watching a battle: which case is being opened now; the winner's total */
.cb-now { display: inline-block; padding: 2px 10px; border-radius: 999px; background: var(--cc, #7a5cff); color: #fff; animation: cbNow 1.2s ease-in-out infinite; }
@keyframes cbNow { 50% { box-shadow: 0 0 16px var(--cc, #7a5cff); } }
.cb-win small { display: block; margin-top: 4px; font-size: 13px; opacity: .85; font-weight: 600; }
/* 🃏 blackjack: the chat in the bottom right corner; your own cards and bet bigger */
body.chat-at-bj:not(.touch) #chat.chat-over { top: auto !important; bottom: 12px; right: 12px; left: auto; width: 320px; }
body.chat-at-bj:not(.touch) #chat.chat-over .chat-log { height: 190px; }
.bj-card.big { width: 82px; height: 115px; border-radius: 8px; }
.bj-hand .bj-lbl { font-size: 22px; }
.bj-myhands { gap: 26px; }
.bj-mybet { font: 800 20px/1.2 "Space Grotesk", system-ui, sans-serif; color: #fff; margin-right: 10px; } .bj-mybet b { color: #ffd23d; font-size: 24px; }
.bj-me .bj-note { font-size: 17px; } .bj-me .bj-note b { font-size: 20px; }
.bj-amt { font-size: 20px !important; min-width: 90px; }
.bj-net { font-size: 22px !important; }
@media (max-height: 700px) { .bj-card.big { width: 62px; height: 87px; } }
@media (min-width: 900px) { body.chat-at-bj:not(.touch) .bj-ui { padding-right: 344px; } }   /* (the table's panel stays clear of the chat) */
/* 🍭 the Bonanza screen stays perfectly still in the bonus: the lines under the WIN keep their space (shown / hidden
   without changing the layout), and the top bar never changes height */
.cv-tw-x { display: block !important; visibility: hidden; min-height: 1.15em; }
.cv-tw-x.on { visibility: visible; }
.cv-tw-tot { display: block !important; visibility: hidden; min-height: 1.15em; }
.cv-tw-tot.on { visibility: visible; }
@media (orientation: landscape) { .cv-infobar { flex-wrap: nowrap; overflow: hidden; min-height: 34px; } }
@media (orientation: portrait) { .cv-infobar { min-height: 52px; align-content: center; } }
.cv-bl .cv-retrig { margin-top: 4px; }
/* ===== 💣 Mines ===== */
.mn-ui { position: fixed; inset: 0; z-index: 48; display: flex; align-items: center; justify-content: center; padding: calc(8px + var(--safe-t)) 8px calc(8px + var(--safe-b)); background: rgba(5,4,12,.72); }
.mn-ui.hidden { display: none; }
.mn-card { width: min(900px, 100%); max-height: 100%; overflow-y: auto; background: linear-gradient(180deg, #141a2e, #0d1020); border: 1px solid rgba(47,224,138,.35); border-radius: 18px; box-shadow: 0 20px 60px rgba(0,0,0,.6); color: #fff; }
.mn-head { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid rgba(255,255,255,.08); }
.mn-head b { font: 900 22px/1 "Space Grotesk", system-ui, sans-serif; letter-spacing: .03em; }
.mn-bal { margin-left: auto; font-weight: 800; color: #ffd23d; }
.mn-body { display: grid; grid-template-columns: 280px 1fr; gap: 16px; padding: 16px; }
.mn-side { display: flex; flex-direction: column; gap: 12px; }
.mn-side label { display: flex; flex-direction: column; gap: 6px; font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #9fb0d0; }
.mn-row { display: flex; gap: 6px; }
.mn-row input, .mn-row select { flex: 1; min-width: 0; background: #0a0d18; border: 1px solid #2a3550; border-radius: 10px; color: #fff; font: 800 18px/1 "Space Grotesk", system-ui, sans-serif; padding: 10px 12px; }
.mn-row button { width: 44px; border: 0; border-radius: 10px; background: #2a3550; color: #fff; font-weight: 900; font-size: 16px; cursor: pointer; }
.mn-row button:disabled, .mn-row input:disabled, .mn-row select:disabled { opacity: .45; cursor: default; }
.mn-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.mn-stats div { background: #0a0d18; border-radius: 10px; padding: 8px 10px; display: flex; flex-direction: column; gap: 2px; }
.mn-stats small { font-size: 11px; color: #9fb0d0; text-transform: uppercase; letter-spacing: .06em; font-weight: 800; }
.mn-stats b { font: 900 18px/1.1 "Space Grotesk", system-ui, sans-serif; font-variant-numeric: tabular-nums; }
.mn-go { border: 0; border-radius: 12px; padding: 16px; font: 900 18px/1 "Space Grotesk", system-ui, sans-serif; color: #04140b; background: linear-gradient(180deg, #5dffa8, #20c46e); box-shadow: 0 5px 0 #11804a; cursor: pointer; }
.mn-go.cash { background: linear-gradient(180deg, #ffe066, #ff9d00); box-shadow: 0 5px 0 #a35a00; color: #3a1a00; }
.mn-go:disabled { opacity: .55; cursor: default; }
.mn-pick-rand { border: 1px solid #2a3550; background: transparent; color: #c9d4ee; border-radius: 10px; padding: 10px; font-weight: 800; cursor: pointer; }
.mn-pick-rand:disabled { opacity: .4; cursor: default; }
.mn-note { margin: 0; font-size: 13px; color: #9fb0d0; line-height: 1.4; }
.mn-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; align-content: center; }
.mn-grid.shake { animation: mnShake .45s; }
@keyframes mnShake { 20% { transform: translateX(-8px); } 40% { transform: translateX(7px); } 60% { transform: translateX(-5px); } 80% { transform: translateX(3px); } }
.mn-tile { aspect-ratio: 1; border: 0; border-radius: 12px; background: linear-gradient(180deg, #2f3b5c, #222b45); box-shadow: 0 5px 0 #151b2e; font-size: clamp(22px, 4.5vw, 40px); color: #fff; cursor: pointer; transition: transform .12s, filter .12s; }
.mn-tile:not(:disabled):hover { transform: translateY(-3px); filter: brightness(1.25); }
.mn-tile:disabled { cursor: default; }
.mn-tile.flip { animation: mnFlip .3s; }
@keyframes mnFlip { 50% { transform: scale(.85); } }
.mn-tile.gem { background: radial-gradient(circle at 50% 40%, #1d5a40, #0f2a20); box-shadow: 0 0 18px rgba(47,224,138,.55), 0 5px 0 #0a1d16; animation: mnPop .35s cubic-bezier(.3,1.6,.5,1); }
.mn-tile.bomb { background: radial-gradient(circle at 50% 40%, #6a1414, #2a0808); box-shadow: 0 5px 0 #1d0505; }
.mn-tile.bomb.hit { box-shadow: 0 0 26px rgba(255,61,61,.9), 0 5px 0 #1d0505; animation: mnPop .35s cubic-bezier(.3,1.6,.5,1); }
.mn-tile.dim { opacity: .45; box-shadow: none; animation: none; }
@keyframes mnPop { 0% { transform: scale(.6); } 100% { transform: scale(1); } }
@media (max-width: 700px) { .mn-body { grid-template-columns: 1fr; } .mn-grid { order: -1; gap: 7px; } }
/* 🎣 a fish is biting: impossible to miss */
#fish-bite { position: fixed; left: 50%; top: 20%; z-index: 40; transform: translateX(-50%) scale(.6); opacity: 0; pointer-events: none; display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 14px 28px 18px; border-radius: 20px; background: rgba(8,40,70,.9); border: 3px solid #5df0ff; box-shadow: 0 0 40px rgba(93,240,255,.8); transition: opacity .12s, transform .18s cubic-bezier(.3,1.6,.5,1); }
#fish-bite.on { opacity: 1; transform: translateX(-50%) scale(1); pointer-events: auto; animation: fishPulse .45s ease-in-out infinite alternate; }
#fish-bite .fb-fish { display: flex; align-items: center; justify-content: center; height: clamp(56px, 11vw, 96px); }
#fish-bite .fb-ic { height: 100%; width: auto; filter: drop-shadow(0 0 12px #5df0ff); }
#fish-bite .fb-ic.emo { font-size: clamp(44px, 9vw, 80px); line-height: 1; }
#fish-bite b { font: 900 clamp(34px, 7vw, 64px)/1 "Space Grotesk", system-ui, sans-serif; color: #fff; text-shadow: 0 0 18px #5df0ff, 0 4px 0 #0a3a5a; letter-spacing: .04em; }
#fish-bite small { font: 900 clamp(12px, 2.2vw, 17px)/1 "Space Grotesk", system-ui, sans-serif; color: #ffe066; letter-spacing: .12em; }
#fish-bite i { display: block; width: 100%; height: 6px; margin-top: 6px; border-radius: 3px; background: linear-gradient(90deg, #ff5a5a, #ffe066, #5dffa8); transform-origin: left; }
@keyframes fishPulse { to { box-shadow: 0 0 70px rgba(93,240,255,1); border-color: #fff; } }
#btn-casino.bite { animation: fishPulse .45s ease-in-out infinite alternate; background: linear-gradient(180deg, #5df0ff, #1aa0d0) !important; color: #032 !important; }
/* 💬 at Mines: the chat on the right, the game panel moved over to the left of it */
body.chat-at-mines:not(.touch) #chat.chat-over { top: auto; bottom: 12px; right: 12px; left: auto; width: 320px; }
body.chat-at-mines:not(.touch) #chat.chat-over .chat-log { height: 220px; }
@media (min-width: 1000px) { body.chat-at-mines:not(.touch) .mn-ui { padding-right: 344px; } }
@media (max-width: 999px) { body.chat-at-mines:not(.touch) #chat.chat-over { top: 12px; bottom: auto; } body.chat-at-mines:not(.touch) #chat.chat-over .chat-log { height: 120px; } }
/* ⛏🪓 holding to mine / chop: the bar under the crosshair */
#dig-bar { position: fixed; left: 50%; top: calc(50% + 34px); z-index: 30; transform: translateX(-50%); width: 180px; height: 22px; border-radius: 11px; background: rgba(10,10,18,.75); border: 2px solid rgba(255,255,255,.35); overflow: hidden; opacity: 0; pointer-events: none; transition: opacity .1s; }
#dig-bar.on { opacity: 1; }
#dig-bar i { position: absolute; inset: 0; background: linear-gradient(90deg, #ffd23d, #ff8a1a); transform-origin: left; transform: scaleX(0); }
#dig-bar span { position: relative; display: block; text-align: center; font: 800 12px/18px "Space Grotesk", system-ui, sans-serif; color: #fff; text-shadow: 0 1px 2px #000; }
/* 💣 a gem: your multiplier and what cashing out pays now, popping out of the tile */
.mn-tile { position: relative; }
.mn-pop { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; pointer-events: none; white-space: nowrap; animation: mnPopUp 1.4s ease-out forwards; z-index: 2; }
.mn-pop b { font: 900 clamp(16px, 2.6vw, 24px)/1 "Space Grotesk", system-ui, sans-serif; color: #5dffa8; text-shadow: 0 2px 0 #04140b, 0 0 12px rgba(93,255,168,.8); }
.mn-pop small { font: 800 clamp(11px, 1.8vw, 15px)/1.2 "Space Grotesk", system-ui, sans-serif; color: #ffe066; text-shadow: 0 1px 0 #000; }
@keyframes mnPopUp { 0% { opacity: 0; transform: translate(-50%, -30%) scale(.6); } 20% { opacity: 1; transform: translate(-50%, -70%) scale(1.15); } 100% { opacity: 0; transform: translate(-50%, -140%) scale(1); } }
.mn-x.bump { animation: cvTotBump .6s cubic-bezier(.3,1.6,.5,1); color: #5dffa8; }
/* 🍭 the bombs' multiplier inside the big number: a bit smaller so "0.04 × 16x" fits */
.cv-tw-n.x { font-size: clamp(26px, 5.6vh, 52px); white-space: nowrap; } .cv-tw-n.x b { color: #ff9d3d; }
/* 🍭 "Land 4 🍭 = 10 FREE BONUS SPINS", big, at the top of the buy button, then "or" BUY 10 FREE BONUS SPINS */
.cv-buy-or { margin: 0 0 6px; font-size: clamp(12px, 2.1vh, 17px); line-height: 1.15; color: #5a1d00; text-shadow: none; font-weight: 900; }
.cv-buy-or b { color: #3a0d00; }
.cv-buy-or em { display: block; font-style: normal; font-size: .8em; margin-top: 3px; opacity: .8; letter-spacing: .1em; }
/* the paytable, laid out like Sweet Bonanza's: 12-30 / 10-11 / 8-9 and what each pays at your bet */
.cv-pt td:last-child { display: grid; grid-template-columns: auto 1fr; gap: 0 8px; align-items: center; }
.cv-pt td:last-child span { font-size: 11px; opacity: .75; font-weight: 800; } .cv-pt td:last-child b { text-align: right; font-variant-numeric: tabular-nums; }
/* 🛠 Box Upgrades: right under My Box (or on its own when you're in your own box) */
.go-home-col { display: inline-flex; flex-direction: column; gap: 4px; align-items: stretch; }
.go-home-btn.go-up-btn { font-size: 12px; padding: 4px 10px; opacity: .92; }
/* 📖 the help popups: short lists and the two-currencies card */
.intro-list { margin: 10px 0 0; padding: 0; list-style: none; text-align: left; display: grid; gap: 7px; font-size: 14.5px; line-height: 1.4; }
.intro-list li { padding: 7px 10px; border-radius: 10px; background: rgba(255,255,255,0.04); }
.intro-cur { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 8px 0 6px; text-align: left; }
.intro-cur > div { padding: 10px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255,255,255,0.04); display: grid; gap: 4px; }
.intro-cur b { font-size: 15px; } .intro-cur small { font-size: 12.5px; opacity: .85; line-height: 1.35; }
@media (max-width: 380px) { .intro-cur { grid-template-columns: 1fr; } }
/* 📱 phones: the Ranch's tool bar sat over the action button (Talk / Mine / Chop...), so taps never reached it. The
   card is now always on top, and on touch screens the bar sits right at the bottom edge, out of the way */
#casino-info { z-index: 20; }
@media (pointer: coarse) and (min-width: 561px) { .wild-hotbar { bottom: calc(6px + var(--safe-b)); pointer-events: none; } .wild-hotbar .hb-slot { pointer-events: auto; } }
.coin-pill img { width: 17px; height: 17px; vertical-align: -3px; }
.wd-item .wd-remove { background: #3a2230 !important; color: #ffb3c8 !important; }
.mn-tile .mn-tx { display: block; font-size: 11px; font-weight: 800; color: #c6ff3d; line-height: 1; margin-top: 2px; text-shadow: 0 1px 2px rgba(0,0,0,.6); }
/* 🔭 looking through the telescope: a round eyepiece */
body.scope-on #game-canvas, body.scope-on canvas#c { }
body.scope-on::after { content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 5; background: radial-gradient(circle at 50% 50%, transparent 0 34vmin, rgba(0,0,0,.92) 36vmin); }
/* 📦 opening several cases at once: a count picker, and a small reel per case */
.cs-n { display: inline-flex; gap: 4px; margin-right: 8px; }
.cs-n button { border: 1px solid #2c3242; background: #151a26; color: #cfd6e6; border-radius: 8px; padding: 6px 9px; font-weight: 700; cursor: pointer; }
.cs-n button.on { background: #c6ff3d; color: #111; border-color: #c6ff3d; }
.cs-reels { display: grid; gap: 6px; }
.cs-reel.cs-mini { height: 92px; }
.cs-reel.cs-mini .cs-item { flex-basis: 74px; }
.cs-reel.hidden { display: none; }
/* 🎒 Ranch resource pictures (logs in their bark colour, blocks like the mine's, the pond's own fish) */
.hb-ic { width: 32px; height: 32px; object-fit: contain; image-rendering: auto; filter: drop-shadow(1px 1px 0 rgba(0,0,0,.4)); }
span.hb-ic.emo { width: auto; height: auto; font-size: 24px; }
.hb-slot.none .hb-ic { opacity: .35; }
.res-ic { width: 1.35em; height: 1.35em; object-fit: contain; vertical-align: -0.3em; }
span.res-ic.emo { width: auto; height: auto; }
.pop-ic { width: 1.4em; height: 1.4em; object-fit: contain; vertical-align: -0.3em; }
span.pop-ic.emo { width: auto; height: auto; }
@media (max-width: 560px) { .hb-ic { width: 25px; height: 25px; } span.hb-ic.emo { font-size: 18px; } }
#aks-grid .char-card small { display: block; font-size: 12px; font-weight: 700; color: #ffd23d; margin-top: 2px; }
/* 🎯 the first welcome page: the purpose of the game, big and simple */
.intro-purpose-q { margin-top: 6px !important; font-size: 16px; }
.intro-list.intro-purpose li { font-size: 17px; padding: 6px 0; }
/* ✅ new players: verify a wallet (or later), right after the welcome popups */
#onboard .ob-card { width: min(520px, 100%); text-align: left; }
#onboard h2 { text-align: center; margin: 6px 0 8px; font-size: 21px; }
#onboard .intro-icon { text-align: center; }
.ob-why { line-height: 1.5; color: #d6d6de; margin: 0 0 12px; }
.ob-ways { display: grid; gap: 10px; }
.ob-way { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; background: rgba(255,255,255,0.03); font-size: 14px; }
.ob-way ol { margin: 6px 0 0; padding-left: 20px; line-height: 1.5; color: #d6d6de; }
.ob-img { display: block; width: 100%; margin: 12px 0 4px; border-radius: 12px; border: 1px solid var(--line); cursor: zoom-in; }
.ob-img.big { position: fixed; inset: 0; z-index: 80; width: 100%; height: 100%; object-fit: contain; background: rgba(0,0,0,0.92); border-radius: 0; margin: 0; cursor: zoom-out; }
#ob-wallet { margin-top: 12px; }
#ob-coins { margin-top: 14px; border-top: 1px solid var(--line); padding-top: 12px; }
#ob-coins.hidden { display: none; }
.ob-coins-head { font-weight: 700; font-size: 15px; margin-bottom: 8px; }
#ob-coins .coin-grid { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); }
.ob-foot { display: flex; gap: 10px; justify-content: space-between; margin-top: 16px; flex-wrap: wrap; }
.ob-foot .btn { flex: 1 1 160px; padding: 12px 14px; }
.ob-foot small { opacity: 0.75; font-weight: 400; }
/* 💣 big bombs (Sweet Bonanza style): a 50x / 100x pulses and glows on the screen; 20x-25x glow a little.
   A free spin with no win: the bombs fizzle out (shake, then go dim) */
.cv-cell.orb-big > img { animation: cvBigBomb .8s ease-in-out infinite; filter: drop-shadow(0 0 10px #ff3df0) drop-shadow(0 0 18px #ffd23d); }
.cv-cell.orb-mid > img { filter: drop-shadow(0 0 7px #ffb43d); }
@keyframes cvBigBomb { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.14) rotate(-4deg); } }
.cv-cell.fizzle > img { animation: cvFizzle .45s ease-in forwards; }
@keyframes cvFizzle { 0% { transform: none; } 30% { transform: translateX(-3px) rotate(-6deg); } 60% { transform: translateX(3px) rotate(6deg); } 100% { transform: scale(.85); opacity: .35; filter: grayscale(1); } }
.cv-shout.bomb { color: #ff4fd8; -webkit-text-stroke: 2px #3a0730; top: 4%; }

/* 🪙 the game's own coin picture inline in text (the same on every phone and PC, unlike the 🪙 emoji) */
.ci { height: 1.05em; width: auto; vertical-align: -0.18em; display: inline-block; }
/* 📱 the pick-your-skin / Generate Box screen on phones: small title and text, so they never cover the skin in the middle */
body.touch #screen-select { gap: 6px; padding-top: calc(10px + var(--safe-t)); padding-bottom: calc(10px + var(--safe-b)); }
body.touch #screen-select .logo.title { font-size: clamp(18px, 5.5vw, 26px); letter-spacing: 0.1em; text-shadow: 0 0 14px rgba(155, 123, 214, 0.4); }
body.touch #screen-select .select-head p { font-size: 12px; margin-top: 2px; }
body.touch #screen-select .select-name { font-size: 15px; }
body.touch #screen-select #btn-play { font-size: 14px; padding: 9px 20px; letter-spacing: 0.05em; white-space: normal; max-width: min(92vw, 440px); }
body.touch #screen-select #btn-play .btn-note { font-size: 10.5px; }
/* phone turned sideways (short screen): even smaller, the title and the hello on one line */
@media (max-height: 500px) {
  #screen-select .select-head { display: flex; align-items: baseline; gap: 10px; justify-content: center; }
  #screen-select .logo.title { font-size: 18px; }
  #screen-select .select-head p { font-size: 11px; margin: 0; }
  #screen-select .select-name { font-size: 14px; }
  #screen-select #btn-play { font-size: 13px; padding: 7px 18px; }
  #screen-select .dots { margin: 0; }
}

/* Settings → Box: a Box Upgrades button to the left of Private / Public */
.vis-wrap { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.vis-wrap .vis-upg { padding: 7px 12px; font-size: 13px; white-space: nowrap; min-height: 0; width: auto; margin: 0; }

/* 📱 Phone: the top bar can wrap onto a 2nd row (held upright); Settings, the chat and the hints always sit just under
   it (main.js measures the bar into --top-h), so nothing overlaps */
body.touch .side-btn { top: calc(var(--top-h, 50px) + 10px); }
body.touch .chat, body.touch #chat.chat-over { top: calc(var(--top-h, 50px) + 72px); }
body.touch .hint { top: calc(var(--top-h, 50px) + 10px); }
@media (orientation: portrait) {
  body.touch .topbar { align-items: flex-start; }
  body.touch .top-left { gap: 6px 0; }
  body.touch .room-tag { padding: 5px 10px; font-size: 13px; max-width: 46vw; }
  body.touch .go-home-btn, body.touch .coin-pill { margin-left: 6px; padding: 5px 9px; font-size: 12.5px; }
  body.touch .vol-pill input { width: 48px; }
}
/* the "turn your phone sideways" card: right in the middle of the screen while you stand still */
.rotate-hint.mid { top: 50%; transform: translate(-50%, -50%); flex-direction: column; text-align: center; border-radius: 18px; padding: 16px 20px; font-size: 15px; animation: rotin2 .25s ease-out; }
.rotate-hint.mid .rot-ico { font-size: 34px; }
@keyframes rotin2 { from { opacity: 0; } to { opacity: 1; } }
/* 🎒 the Ranch hotbar grows with your rank (one slot per resource unlocked): it wraps onto a second row when it doesn't fit */
.wild-hotbar { flex-wrap: wrap; justify-content: center; max-width: calc(100vw - 16px); }
@media (max-width: 560px) { .wild-hotbar { max-width: calc(9 * 37px + 8px); } }
/* 🐝 a bee sting: a quick red flash round the edges of the screen */
#bee-flash { position: fixed; inset: 0; z-index: 60; pointer-events: none; opacity: 0; box-shadow: inset 0 0 120px 30px rgba(255, 30, 30, .75); }
#bee-flash.on { animation: beeFlash .55s ease-out; }
@keyframes beeFlash { 0% { opacity: 1; } 100% { opacity: 0; } }

/* 🎰 round 17: nothing on the Bonanza screen may change size while you play (growing win numbers, the bomb line, the bonus
   line under CREDIT, longer messages): every box keeps its size, so the reels never move */
.cv-tw-n, .cv-bal, .cv-tw-x, .cv-tw-tot, .cv-win, .cv-pill b, .cv-bw-n { font-variant-numeric: tabular-nums; white-space: nowrap; }
.cv-tw-x { display: block !important; visibility: hidden; min-height: 1.1em; } .cv-tw-x.on { visibility: visible; }
.cv-topwin { width: clamp(170px, 22vw, 290px); min-width: 0; overflow: hidden; }
.cv-bl { min-width: clamp(150px, 20vw, 260px); }
.cv-bl .cv-retrig { visibility: hidden; } .cv-bl .cv-retrig.on { visibility: visible; }
.cv-msg { overflow: hidden; }
@media (orientation: landscape) { .cv-msg { height: 4.2em; display: flex; align-items: center; justify-content: center; } }
@media (orientation: portrait) { .cv-topwin { width: auto; } .cv-msg { height: 2.9em; } .cv-bl { min-width: 0; } }
/* (the BUY button's turning sunburst sits behind its words: it must never take up room, or the button grows and pushes the reels) */
.cv-buy > .cv-buy-burst { position: absolute; }
@media (orientation: portrait) { .cv-bl { flex-wrap: nowrap; overflow: hidden; } .cv-bl .cv-bal { white-space: nowrap; } .cv-bl .cv-retrig { white-space: nowrap; font-size: 12px; margin-top: 0; } }
/* (long numbers never widen the screen: every row is held to the screen's width) */
.cv-ui { grid-template-columns: minmax(0, 1fr); } .cv-ui > * { min-width: 0; max-width: 100%; }
@media (orientation: portrait) { .cv-bl { max-width: 100%; min-width: 0; } }
/* low landscape screens (phones held sideways): the WIN box is one line, so the reels keep their room */
@media (orientation: landscape) and (max-height: 520px) {
  .cv-topwin { flex-direction: row; flex-wrap: nowrap; justify-content: center; align-items: center; gap: 0 8px; padding: 3px 10px; width: min(50vw, 440px); height: 44px; }
  .cv-tw-n { font-size: clamp(20px, 6vh, 30px); } .cv-tw-x, .cv-tw-tot { margin-top: 0; font-size: 12px; }
}
/* phones held upright: a compact BUY button and a two-line WIN box, so the whole Bonanza fits the screen with nothing on top of the reels */
@media (orientation: portrait) {
  .cv-buy .cv-buy-or { display: none; }
  .cv-buy { flex-wrap: nowrap; justify-content: center; align-items: center; }
  .cv-topwin { flex-wrap: wrap; align-content: center; justify-content: center; height: 66px; overflow: hidden; gap: 0 8px; }
  .cv-topwin > small { flex-basis: auto; } .cv-tw-x, .cv-tw-tot { font-size: 12px; margin-top: 0; }
  .cv-frame { max-width: calc((100vh - 490px) * 1.2); max-width: calc((100dvh - 490px) * 1.2); }
  .cv-mid { justify-content: safe center; }
}
@media (orientation: landscape) and (max-height: 520px) {
  .cv-buy { min-height: 0; padding: 6px 4px; gap: 3px; } .cv-buy .cv-buy-or { display: none; } .cv-buy-t { font-size: 14px; }
  .cv-ante small { display: none; } .cv-side { justify-content: center; } .cv-mid { align-items: safe center; }
}
@media (orientation: portrait) { .cv-tw-n { font-size: 26px; } }
@media (orientation: landscape) and (max-height: 520px) {
  .cv-topwin { width: min(58vw, 500px); } .cv-tw-n { font-size: 22px; }
  .cv-buy-t { font-size: 13px; } .cv-buy-t br { display: none; } .cv-buy-li { height: 26px; }
  .cv-ante { padding: 3px; } .cv-ante b { font-size: 11px; } .cv-ante-s { font-size: 12px; }
}
@media (orientation: portrait) {
  .cv-topwin { height: 84px; }
  .cv-bl { flex-wrap: wrap; height: 54px; align-content: center; justify-content: center; gap: 0 8px; }
  .cv-bl .cv-retrig { flex-basis: 100%; text-align: center; }
}
/* 🎁 Meme Slots BONUS: the scatters light up, then the big "BONUS! 10 FREE SPINS" over the whole machine */
.slots-window .strip img.sc-hit { animation: scHit .5s ease-in-out infinite alternate; filter: drop-shadow(0 0 10px #ffd34d) drop-shadow(0 0 22px #ff8a00); position: relative; z-index: 2; }
@keyframes scHit { from { transform: scale(1); } to { transform: scale(1.18); } }
.slots-ui > .slots-hype { position: absolute; inset: 0; z-index: 20; display: flex; align-items: center; justify-content: center; overflow: hidden; background: radial-gradient(circle, rgba(60,10,90,.55), rgba(0,0,0,.82)); animation: shIn .25s ease-out; cursor: pointer; }
.slots-hype.out { animation: shOut .28s ease-in forwards; }
@keyframes shIn { from { opacity: 0; } } @keyframes shOut { to { opacity: 0; transform: scale(1.06); } }
.slots-hype .sh-rays { position: absolute; left: 50%; top: 50%; width: 220vmax; height: 220vmax; transform: translate(-50%, -50%); background: repeating-conic-gradient(from 0deg, rgba(255,211,77,.28) 0 10deg, transparent 10deg 24deg); animation: shRays 6s linear infinite; pointer-events: none; }
@keyframes shRays { to { transform: translate(-50%, -50%) rotate(360deg); } }
.slots-hype .sh-card { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 18px 26px; border-radius: 24px; text-align: center;
  background: linear-gradient(180deg, #ffcf3a, #ff8a00 60%, #c24a00); border: 4px solid #fff3b0; box-shadow: 0 0 60px rgba(255,190,40,.9), 0 10px 0 #7a2a00; color: #4a1600; animation: shPop .6s cubic-bezier(.3,1.7,.5,1); }
@keyframes shPop { 0% { transform: scale(.2) rotate(-8deg); } 100% { transform: scale(1) rotate(0); } }
.slots-hype .sh-t { font: 900 clamp(34px, 9vw, 64px)/1 "Space Grotesk", system-ui, sans-serif; color: #fff; -webkit-text-stroke: 2px #8a3a00; paint-order: stroke fill; text-shadow: 0 4px 0 #8a3a00; animation: shBeat .45s ease-in-out infinite alternate; }
@keyframes shBeat { to { transform: scale(1.08); } }
.slots-hype .sh-sc { display: flex; gap: 8px; } .slots-hype .sh-sc img { width: clamp(46px, 13vw, 76px); height: auto; filter: drop-shadow(0 0 12px #fff); animation: scHit .4s ease-in-out infinite alternate; }
.slots-hype .sh-sc img:nth-child(2) { animation-delay: .13s; } .slots-hype .sh-sc img:nth-child(3) { animation-delay: .26s; }
.slots-hype .sh-3 { font-weight: 900; letter-spacing: 3px; font-size: 13px; }
.slots-hype .sh-n { font: 900 clamp(26px, 7vw, 46px)/1 "Space Grotesk", system-ui, sans-serif; color: #fff; -webkit-text-stroke: 1.5px #0b5a17; paint-order: stroke fill; text-shadow: 0 0 20px rgba(80,255,120,.9), 0 3px 0 #0b5a17; }
.slots-hype .sh-tap { font-weight: 700; font-size: 12px; opacity: .85; }
.slots-hype.again .sh-card { background: linear-gradient(180deg, #b45cff, #6a12c8); color: #fff; border-color: #f0d4ff; box-shadow: 0 0 60px rgba(190,100,255,.9), 0 10px 0 #3a0870; }
.slots-window .slots-fs { position: absolute; left: 50%; top: 6px; transform: translateX(-50%); z-index: 5; white-space: nowrap; padding: 4px 12px; border-radius: 999px; background: rgba(60,8,90,.88); border: 2px solid #ffd34d; color: #fff; font: 800 14px/1.2 "Space Grotesk", system-ui, sans-serif; font-variant-numeric: tabular-nums; pointer-events: none; }
.slots-window .slots-fs span { color: #ffd34d; font-size: 1.2em; } .slots-window .slots-fs em { font-style: normal; margin-left: 8px; color: #7dffb0; }
/* 🔁 Crash auto bet */
.cr-autobet { display: inline-flex; width: fit-content; max-width: 100%; align-self: flex-start; align-items: flex-end; gap: 8px; padding: 6px 8px; border-radius: 12px; background: #0e1530; border: 2px solid #2a3558; }
.cr-autobet > b { align-self: center; color: #2fe08a; letter-spacing: 1px; font-size: 14px; }
.cr-autobet .cr-f input { width: 64px; } .cr-autobet input:disabled, .cr-controls input:disabled, .cr-quick button:disabled { opacity: .55; }
.cr-ab-how { flex: 1; min-width: 150px; align-self: center; font-size: 11.5px; opacity: .7; }
.cr-ab-go { font: 900 14px/1 "Space Grotesk", system-ui, sans-serif; padding: 10px 12px; white-space: nowrap; border-radius: 10px; border: 0; cursor: pointer; color: #062312; background: linear-gradient(180deg, #5dff9e, #1fae5c); box-shadow: 0 3px 0 #0b5a2c; }
.cr-ab-go.on { background: linear-gradient(180deg, #ff8a8a, #d43c3c); color: #fff; box-shadow: 0 3px 0 #7a1414; animation: cvBuyGlow 1.2s ease-in-out infinite; }
/* (round 28: auto bet is a small box: label, rounds, start) */

/* 🐍 Snake on the upstairs Gaming Desk (snake.js) */
#snake-ui { position: fixed; inset: 0; z-index: 60; display: flex; align-items: center; justify-content: center; background: rgba(5, 4, 10, .55); }
#snake-ui.hidden { display: none; }
#snake-ui .sn-box { background: #15121f; border: 1px solid rgba(143, 114, 255, .45); border-radius: 16px; padding: 12px; width: min(360px, calc(100vw - 32px)); box-shadow: 0 10px 40px rgba(0, 0, 0, .5); color: #f2f2f5; }
#snake-ui .sn-top { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
#snake-ui .sn-top b { font-size: 17px; }
#snake-ui .sn-score { flex: 1; text-align: right; font-size: 14px; color: #c6ff3d; }
#snake-ui .sn-x { background: #2a2236; color: #fff; border: 0; border-radius: 8px; width: 32px; height: 32px; font-size: 16px; cursor: pointer; }
#snake-ui .sn-wrap canvas { display: block; width: 100%; height: auto; aspect-ratio: 1; border-radius: 10px; touch-action: none; image-rendering: pixelated; }
#snake-ui .sn-pad { display: none; flex-direction: column; align-items: center; gap: 6px; margin-top: 10px; }
#snake-ui .sn-pad div { display: flex; gap: 6px; }
#snake-ui .sn-pad button { width: 58px; height: 46px; border-radius: 10px; border: 0; background: #2a2236; color: #c6ff3d; font-size: 20px; touch-action: manipulation; }
@media (hover: none), (pointer: coarse) { #snake-ui .sn-pad { display: flex; } #snake-ui .sn-help { display: none; } }
#snake-ui .sn-help { margin: 8px 0 0; font-size: 12px; color: #a9a3bb; text-align: center; }
/* round 23: case battles with 6 at a time (a small reel for each), what each side paid; the chat over the cases panel */
.cb-reels.multi { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.cb-reels.multi .cs-reel.cs-mini { height: 78px; }
.cb-reels.multi .cs-reel.cs-mini .cs-item { flex-basis: 64px; }
.cb-reels .cs-reel.hidden { visibility: hidden; }
.cb-paid { color: #9aa3b8; font-size: 12px; font-weight: 700; align-self: center; }
.cb-drops { max-height: 240px; overflow-y: auto; }
body.chat-at-cases:not(.touch) #chat.chat-over { left: 10px; bottom: 10px; top: auto; width: 300px; z-index: 58; }
body.chat-at-cases:not(.touch) #chat.chat-over .chat-log { height: 180px; }
@media (min-width: 1000px) { body.chat-at-cases:not(.touch) .cs-ui { padding-left: 320px; } }
/* round 23: 🎁 items in Crash (under AUTO BET): select to bet, sell for coins, cash out as items */
.cr-items { margin-top: 8px; padding: 8px 10px; border-radius: 12px; background: #0e1530; border: 2px solid #2a3558; }
.cr-items-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.cr-items-head > b { color: #ffd23d; letter-spacing: 1px; font-size: 14px; }
.cr-prize { display: flex; align-items: center; gap: 6px; font-weight: 800; font-size: 13px; color: #e6e9f0; cursor: pointer; }
.cr-prize input { width: 18px; height: 18px; accent-color: #2fe08a; }
.cr-items-how { display: block; color: #9aa3b8; font-size: 12px; margin: 4px 0; }
.cr-items-sel { color: #2fe08a; font-weight: 800; font-size: 13px; min-height: 2px; }
.cr-items-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 6px; max-height: 210px; overflow-y: auto; margin-top: 6px; }
.cr-it { display: flex; align-items: center; gap: 10px; padding: 6px 8px; border-radius: 10px; background: #161d38; border: 1px solid #2a3558; }
.cr-it.on { border-color: #2fe08a; box-shadow: 0 0 0 1px #2fe08a inset; }
.cr-it .cr-ph { flex: 0 0 56px; height: 56px; border-radius: 8px; background: #0b1024 center/cover no-repeat; }
.cr-it > span { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.cr-it > span b { font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cr-it > span small { color: #9aa3b8; font-size: 12.5px; }
.cr-it button { padding: 8px 12px; border-radius: 9px; border: 1px solid #2a3558; background: #1d2750; color: #fff; font-weight: 800; font-size: 13.5px; cursor: pointer; }
.cr-it.on .cr-sel { background: #1f6b46; border-color: #2fe08a; }
.cr-it .cr-sell { background: #4a2a12; border-color: #ff9a3c; }
.cr-items-none { color: #9aa3b8; font-size: 13px; margin: 4px 0; }
/* round 25: a card whose picture couldn't load still shows something (its emoji) */
.char-card .ph.ph-fb { display: grid; place-items: center; font-size: 38px; }
/* ===== round 25: 🚀 Crash full screen (chart + your bet's item on the left, your items on the right, the chat stays) ===== */
.cr-ui { padding: 0; background: radial-gradient(1200px 700px at 30% 20%, #16234d 0%, #0a0f22 55%, #05070f 100%); }
.cr-ui .cr-card { width: 100%; height: 100%; max-height: none; border-radius: 0; border: 0; padding: calc(10px + var(--safe-t)) 14px calc(10px + var(--safe-b)); background: transparent; box-shadow: none; overflow: hidden; }
.cr-head { flex: 0 0 auto; } .cr-head b { font-size: 26px; text-shadow: 0 0 18px rgba(47,224,138,.65); }
.cr-back { font: 900 15px/1 "Space Grotesk", system-ui, sans-serif; padding: 10px 14px; border-radius: 12px; border: 2px solid #2a3558; background: #121a36; color: #fff; cursor: pointer; }
.cr-back:hover { border-color: #2fe08a; }
.cr-bal { font: 900 17px/1 "Space Grotesk", system-ui, sans-serif; padding: 9px 13px; border-radius: 999px; background: #10182f; border: 2px solid #3a3a12; color: #ffd23d; }
.cr-main { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 10px; overflow-y: auto; }
.cr-left, .cr-right { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.cr-stage { position: relative; border-radius: 14px; box-shadow: 0 0 0 2px #22305e, 0 0 40px rgba(47,224,138,.12); }
.cr-stage .cr-chart { max-height: 62vh; }
.cr-stake { position: absolute; left: 12px; top: 12px; max-width: min(58%, 420px); padding: 9px 12px; border-radius: 14px; background: rgba(8,12,28,.82); border: 2px solid #2fe08a;
  box-shadow: 0 0 24px rgba(47,224,138,.35); backdrop-filter: blur(4px); pointer-events: none; animation: crStakeIn .25s ease-out; }
.cr-stake.hidden { display: none; }
@keyframes crStakeIn { from { transform: translateY(-6px); opacity: 0; } }
.cr-stake small { display: block; font-weight: 900; letter-spacing: 1.4px; font-size: 11px; color: #9fe8c4; margin-bottom: 5px; }
.cr-stake .cr-row { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.cr-stake .cr-row b { font: 900 22px/1 "Space Grotesk", system-ui, sans-serif; color: #fff; }
.cr-stake .cr-live { color: #5dff9e !important; text-shadow: 0 0 14px rgba(93,255,158,.6); }
.cr-stake em { font-style: normal; font-weight: 900; color: #ffd23d; }
.cr-pic { display: inline-block; width: 40px; height: 40px; border-radius: 9px; background: rgba(255,210,61,.14) center/cover no-repeat; border: 1px solid rgba(255,210,61,.45); flex: 0 0 auto; }
.cr-pic.big { width: 78px; height: 78px; border-radius: 12px; border-width: 2px; box-shadow: 0 0 22px rgba(255,210,61,.55); animation: crPicPulse 1s ease-in-out infinite; }
@keyframes crPicPulse { 50% { box-shadow: 0 0 34px rgba(255,210,61,.85); } }
.cr-stake .cr-big { display: flex; align-items: center; gap: 10px; }
.cr-stake .cr-big span { display: flex; flex-direction: column; gap: 3px; } .cr-stake .cr-big b { font: 900 20px/1.1 "Space Grotesk", system-ui, sans-serif; color: #ffd23d; }
.cr-stake .cr-now { margin-top: 6px; display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 800; color: #c9d3ee; } .cr-stake .cr-now .cr-pic { width: 30px; height: 30px; }
.cr-ui .cr-items { margin-top: 0; flex: 0 0 auto; display: flex; flex-direction: column; }
.cr-ui .cr-items-head { justify-content: flex-start; } .cr-ui .cr-items-head .cr-items-how { margin: 0; }
.cr-ui .cr-items-list { max-height: 330px; overflow-y: auto; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); }   /* (round 26: under the game, scroll for more) */
.cr-go:not(:disabled):hover { filter: brightness(1.08); }
.cr-main { overflow-y: auto; }
@media (min-width: 900px) {
  body.chat-at-crash:not(.touch) .cr-main { padding-right: 396px; }
  body.chat-at-crash:not(.touch) #chat.chat-over { left: auto; right: 14px; bottom: calc(12px + var(--safe-b)); top: auto; width: 370px; }
  body.chat-at-crash:not(.touch) #chat.chat-over .chat-log { height: min(52vh, 460px); }
}
@media (max-width: 560px) { .cr-head b { font-size: 21px; } .cr-bal { font-size: 14px; } .cr-stake { max-width: 80%; } .cr-pic.big { width: 58px; height: 58px; } }

/* ===== round 27: 📱 phones: a smaller Ranch hotbar and a smaller fishing BITE (portrait and landscape) ===== */
body.touch .hb-slot { width: 28px; height: 28px; }
body.touch .hb-slot b { font-size: 9px; right: 2px; }
body.touch .hb-ic { width: 20px; height: 20px; } body.touch span.hb-ic.emo, body.touch .hb-slot span { font-size: 15px; }
body.touch .wild-hotbar { gap: 2px; padding: 3px; max-width: calc(9 * 30px + 8px); }
body.touch #fish-bite { top: 14%; gap: 2px; }
body.touch #fish-bite .fb-fish { height: 40px; }
body.touch #fish-bite .fb-ic.emo { font-size: 32px; }
body.touch #fish-bite b { font-size: 24px; }
body.touch #fish-bite small { font-size: 10px; }
body.touch #fish-bite i { height: 4px; margin-top: 3px; }

/* Playtest: on a sideways phone the open chat must not cover the walk pad or jump button */
body.touch .dpad, body.touch .jump-btn { z-index: 6; }
@media (max-height: 520px) {
  body.touch .chat-log { height: 18vh; }
  body.touch .chat:not(.collapsed), body.touch #chat.chat-over:not(.collapsed) { left: calc(184px + var(--safe-l, 0px)); width: min(320px, calc(100vw - 300px)); }
}

/* (round 34) website login page: Play in Telegram + Game guide */
.tg-login { max-width: 380px; }
.tg-go { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin: 14px 0 6px; }
.tg-go .btn { text-decoration: none; display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 18px; font-size: 16px; }
.tg-go .tg-go-play { font-size: 17px; padding: 0 22px; }
.tg-or { display: flex; align-items: center; gap: 10px; margin: 18px 0 6px; color: var(--muted, #9a9ab0); font-size: 12px; }
.tg-or::before, .tg-or::after { content: ''; flex: 1; height: 1px; background: rgba(255,255,255,.12); }
.tg-go a.btn { color: #f2f2f7; }
.tg-go a.btn.primary { color: var(--accent-ink); }
