/* Heart Haven styles.
   Performance rules: animate ONLY transform and opacity. No blur filters, no
   mix-blend-mode, no backdrop-filter. Heavy static art lives in its own layers. */
:root {
  --gold1: #f6dd8f; --gold2: #d4a63a; --gold3: #8a5f12;
  --felt1: #0f6b4f; --felt2: #0a4a38; --felt3: #06281f;
  --ink: #12202b; --ivory: #fbf6e8;
  --red: #c0262d;
  /* set by app.js on every resize */
  --cw: 56px; --ch: 78px; --step: 24px; --raise: 16px;
  --tw: 44px; --th: 62px; --av: 40px; --rf: 18px;
  --top: 40px; --strip: 36px; --foot: 60px;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; background: #06281f; color: #fff; overflow: hidden;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
#app { position: fixed; inset: 0; }
.screen { position: absolute; inset: 0; }
[hidden] { display: none !important; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; }
button:focus-visible, input:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }

/* ---------- buttons ---------- */
.gold { position: relative; padding: 12px 18px; border-radius: 12px; font-weight: 800; color: #3a2503;
  background: linear-gradient(#f9e7a6, #e0b445 55%, #b98418); box-shadow: 0 2px 0 #7a5410, 0 4px 10px rgba(0,0,0,.35);
  min-height: 44px; }
.gold:active { transform: translateY(1px); }
.gold.sm { padding: 8px 12px; min-height: 40px; font-size: 14px; }
.gold.big { width: 100%; padding: 18px; font-size: 22px; border-radius: 16px; }
.gold[disabled] { opacity: .45; }
.ghost { padding: 12px 18px; border-radius: 12px; background: rgba(255,255,255,.12); min-height: 44px; font-weight: 700; }
/* glow = a separate pseudo-layer whose OPACITY pulses (cheap) */
.glow::after { content: ""; position: absolute; inset: -4px; border-radius: inherit; pointer-events: none;
  box-shadow: 0 0 18px 6px rgba(255, 214, 90, .85); opacity: .15; animation: pulse 1.8s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .75; } }
.chip { background: rgba(0,0,0,.35); border-radius: 999px; padding: 6px 12px; font-weight: 700; }
.chip.sm { padding: 4px 10px; font-size: 12px; }
.chip.heart { color: #ff9aa0; }

/* ---------- home ---------- */
#home { background: radial-gradient(120% 90% at 50% 0%, #137a5a 0%, #0a4a38 55%, #06281f 100%); overflow-y: auto; }
.home-inner { max-width: 460px; margin: 0 auto; padding: 24px 18px 40px; display: flex; flex-direction: column; gap: 14px; }
.logo { margin: 8px 0 0; text-align: center; font-family: Georgia, "Times New Roman", serif; font-size: 40px; letter-spacing: .5px;
  background: linear-gradient(#fff4c4, #e0b445 70%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.logo-heart { color: #e23a44; -webkit-text-fill-color: #e23a44; }
.tagline { margin: -6px 0 6px; text-align: center; opacity: .85; }
.hint, .muted { margin: 0; text-align: center; font-size: 14px; opacity: .8; }
.row { display: flex; gap: 10px; } .row.two > * { flex: 1; }
.join { background: rgba(0,0,0,.25); border-radius: 14px; padding: 12px; }
.join label { font-weight: 700; display: block; margin-bottom: 8px; }
.join-row { display: flex; gap: 8px; }
.join input { flex: 1; min-width: 0; padding: 12px; font-size: 20px; letter-spacing: 3px; text-transform: uppercase; text-align: center;
  border-radius: 10px; border: 0; background: #fff; color: var(--ink); }
.error { color: #ffb4b4; min-height: 1.2em; margin: 6px 0 0; font-size: 14px; }
.tables h2 { font-size: 16px; margin: 6px 0; }
#table-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
#table-list li { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: rgba(0,0,0,.28); border-radius: 12px; padding: 10px 12px; }
.you { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 6px; }
.check { display: flex; gap: 10px; align-items: center; font-size: 15px; opacity: .92; min-height: 36px; }
.check input { width: 22px; height: 22px; }

/* ---------- dialogs (home only) ---------- */
.dialog { position: absolute; inset: 0; background: rgba(0,0,0,.6); display: flex; align-items: center; justify-content: center; padding: 18px; z-index: 50; }
.dialog-card { background: #0d3a2d; border: 2px solid var(--gold2); border-radius: 18px; padding: 18px; max-width: 420px; width: 100%; max-height: 90%; overflow: auto; }
.dialog-card h3 { margin: 0 0 8px; font-size: 22px; }
.dialog-card ol { padding-left: 20px; margin: 8px 0 14px; line-height: 1.5; }
.dialog-card input[type=text] { width: 100%; padding: 12px; font-size: 18px; border-radius: 10px; border: 0; margin: 8px 0 12px; color: var(--ink); }
.dialog-card .row { justify-content: flex-end; }

/* ---------- table: static layers ---------- */
.felt { position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 75% 60% at 50% 46%, rgba(255,255,255,.10), rgba(255,255,255,0) 70%),
    radial-gradient(ellipse at 50% 45%, var(--felt1) 0%, var(--felt2) 62%, var(--felt3) 100%);
  box-shadow: inset 0 0 0 3px var(--gold3), inset 0 0 0 6px #5a3b0a, inset 0 0 40px rgba(0,0,0,.55); }
.topbar { position: absolute; left: 0; right: 0; top: 0; height: var(--top); padding: 0 max(8px, env(safe-area-inset-left)); display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.bar-btn { background: rgba(0,0,0,.4); border-radius: 10px; padding: 0 12px; min-height: 34px; font-weight: 700; font-size: 14px; }
.chips { display: flex; gap: 6px; align-items: center; }
.strip { position: absolute; left: 8px; right: 8px; top: var(--top); height: var(--strip); display: flex; align-items: center; justify-content: center; text-align: center;
  font-size: 14px; line-height: 1.2; font-weight: 600; text-shadow: 0 1px 2px rgba(0,0,0,.7); overflow: hidden; }
.strip.coach { color: #ffe9a0; }

/* ---------- seats ---------- */
.seat { position: absolute; display: flex; flex-direction: column; align-items: center; gap: 2px; width: 84px; text-align: center; }
.seat .av { width: var(--av); height: var(--av); border-radius: 50%; border: 2px solid var(--gold2); background: #274; overflow: hidden;
  display: flex; align-items: center; justify-content: center; font-weight: 800; color: #fff; flex: none; }
.seat .av img { width: 100%; height: 100%; object-fit: cover; display: block; }
.seat .nm { font-size: 12px; font-weight: 700; max-width: 84px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-shadow: 0 1px 2px #000; }
.seat .pt { font-size: 11px; opacity: .9; }
.seat.turn .av { border-color: #fff; box-shadow: 0 0 0 3px rgba(255,220,100,.9); }
.seat.empty .av { border-style: dashed; opacity: .6; }
.seat .cnt { font-size: 11px; opacity: .85; }
.me { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.me .row1 { display: flex; align-items: center; gap: 8px; }
.me .av { width: var(--av); height: var(--av); border-radius: 50%; border: 2px solid var(--gold2); overflow: hidden; background: #274;
  display: flex; align-items: center; justify-content: center; font-weight: 800; }
.me .av img { width: 100%; height: 100%; object-fit: cover; }
.me.turn .av { border-color: #fff; box-shadow: 0 0 0 3px rgba(255,220,100,.9); }
.me .nm { font-size: 13px; font-weight: 700; max-width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.timer { width: 90px; height: 4px; background: rgba(255,255,255,.2); border-radius: 2px; overflow: hidden; }
.timer i { display: block; width: 100%; height: 100%; background: #ffd25a; transform-origin: left center; }

/* ---------- cards (transform/opacity only for motion) ---------- */
.card { position: absolute; left: 0; top: 0; width: var(--cw); height: var(--ch); border-radius: calc(var(--cw) * .1);
  background: linear-gradient(160deg, #fffdf6, var(--ivory) 60%, #efe6cc); border: 1px solid #b89c55; box-shadow: 0 2px 5px rgba(0,0,0,.45);
  color: var(--ink); font-family: Georgia, "Times New Roman", serif; user-select: none; touch-action: manipulation;
  transition: transform 160ms ease-out, opacity 160ms; will-change: transform; contain: layout paint; }
.card.red { color: var(--red); }
.card .tl { position: absolute; left: 3px; top: 1px; display: flex; flex-direction: column; align-items: center; line-height: 1; font-weight: 700; font-size: var(--rf); }
.card .tl small { font-size: calc(var(--rf) * .85); line-height: 1; }
.card .big { position: absolute; right: 8%; bottom: 6%; font-size: calc(var(--cw) * .5); line-height: 1; opacity: .9; }
.card.sel { outline: 3px solid #ffd25a; }
.card.new { box-shadow: 0 0 0 2px #7fe3ff, 0 2px 5px rgba(0,0,0,.45); }
.card.dim::before { content: ""; position: absolute; inset: 0; border-radius: inherit; background: rgba(10, 28, 40, .5); pointer-events: none; }
.card.hint::after { content: ""; position: absolute; inset: -4px; border-radius: inherit; box-shadow: 0 0 14px 5px rgba(255,214,90,.95); pointer-events: none; animation: pulse 1.2s ease-in-out infinite; }
.card.back { background: repeating-linear-gradient(45deg, #7d1820 0 6px, #6a1119 6px 12px); border: 2px solid var(--gold2); }
.card.back::after { content: "\2665"; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: var(--gold1); font-size: calc(var(--cw) * .5); }
.hand { position: absolute; left: 0; right: 0; }
.trick { position: absolute; left: 0; top: 0; width: 0; height: 0; }
.trick .card { width: var(--tw); height: var(--th); --rf: calc(var(--tw) * .3); pointer-events: none; }
.trick .card .big { font-size: calc(var(--tw) * .5); }

.foot { position: absolute; left: 0; right: 0; bottom: 0; height: var(--foot); padding: 0 max(8px, env(safe-area-inset-left)) env(safe-area-inset-bottom);
  display: flex; align-items: center; justify-content: space-between; }
.foot > button { min-width: 84px; }

/* ---------- panels (kept inside the area above the hand) ---------- */
.panel { position: absolute; left: 50%; transform: translateX(-50%); width: min(94%, 420px); background: rgba(8,40,30,.97); border: 2px solid var(--gold2);
  border-radius: 14px; padding: 12px; overflow: auto; z-index: 20; }
.panel h3 { margin: 0 0 8px; font-size: 17px; }
.panel table { width: 100%; border-collapse: collapse; font-size: 15px; }
.panel td, .panel th { padding: 4px 6px; text-align: left; } .panel td:last-child, .panel th:last-child { text-align: right; }
.panel .row { margin-top: 10px; justify-content: flex-end; }

@media (prefers-reduced-motion: reduce) {
  .glow::after, .card.hint::after { animation: none; opacity: .5; }
  .card { transition: none; }
}
body.reduce .glow::after, body.reduce .card.hint::after { animation: none; opacity: .5; }
body.reduce .card { transition: none; }

/* landscape phones: compact top opponent, chips next to Leave */
body.land .topbar { justify-content: flex-start; }
body.land .chips { margin-left: 8px; }
body.land #btn-scores { margin-left: auto; }
body.land .s-top { flex-direction: row; align-items: center; gap: 6px; width: 210px; text-align: left; }
body.land .s-top .cnt { display: none; }
body.land .s-top .nm { max-width: 110px; }

/* ---------- account bar, tiles, stakes ---------- */
.coin { display: inline-block; width: 1.05em; height: 1.05em; border-radius: 50%; vertical-align: -0.15em; margin-right: .3em;
  background: radial-gradient(circle at 35% 30%, #fff3b0, #e0b445 55%, #9a6a12); box-shadow: inset 0 0 0 2px #b98418, 0 1px 2px rgba(0,0,0,.4); }
.acct { display: flex; align-items: center; gap: 10px; justify-content: space-between; }
.acct-me { display: flex; align-items: center; gap: 10px; background: rgba(0,0,0,.3); border-radius: 999px; padding: 4px 14px 4px 4px; min-height: 52px; text-align: left; flex: 1; min-width: 0; }
.acct-txt { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.acct-txt b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acct-txt small { opacity: .8; font-size: 12px; }
.xpbar { display: block; height: 5px; border-radius: 3px; background: rgba(255,255,255,.2); overflow: hidden; margin-top: 3px; }
.xpbar b { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, #f6dd8f, #d4a63a); transform-origin: left center; }
.xpbar.wide { height: 8px; margin-top: 6px; }
.coins { background: rgba(0,0,0,.35); border: 1px solid var(--gold3); border-radius: 999px; padding: 10px 14px; font-weight: 800; font-size: 17px; white-space: nowrap; }
.av { border-radius: 50%; border: 2px solid var(--gold2); overflow: hidden; display: flex; align-items: center; justify-content: center; font-weight: 800; flex: none; position: relative; }
.av img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.av.sm { width: 42px; height: 42px; font-size: 15px; } .av.lg { width: 84px; height: 84px; font-size: 28px; }
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.tile { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 12px 4px; border-radius: 14px; font-weight: 700; font-size: 14px;
  background: linear-gradient(rgba(255,255,255,.14), rgba(255,255,255,.06)); border: 1px solid rgba(255,255,255,.18); min-height: 78px; }
.tile-ic { font-size: 26px; line-height: 1; }
.dot { position: absolute; top: 6px; right: 8px; width: 14px; height: 14px; border-radius: 50%; background: #ff4b55; box-shadow: 0 0 0 2px #0a4a38; }
.stake-box { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: center; }
.stake-label { font-weight: 700; font-size: 14px; opacity: .9; }
.stakes { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; }
.stakes button { padding: 8px 12px; border-radius: 999px; background: rgba(0,0,0,.35); font-weight: 700; min-height: 40px; border: 2px solid transparent; }
.stakes button.on { border-color: var(--gold1); background: rgba(212,166,58,.3); }
.stakes button[disabled] { opacity: .4; }

/* ---------- overlays ---------- */
.overlay { position: absolute; inset: 0; z-index: 60; background: rgba(0,0,0,.65); display: flex; align-items: center; justify-content: center; padding: 14px; }
.ov-card { position: relative; background: #0d3a2d; border: 2px solid var(--gold2); border-radius: 18px; padding: 16px; width: 100%; max-width: 460px; max-height: 100%; overflow-y: auto; }
.ov-card h3 { margin: 0 0 8px; font-size: 22px; } .ov-card h4 { margin: 14px 0 4px; }
.ov-head { display: flex; align-items: center; justify-content: space-between; }
.ov-x { position: absolute; top: 8px; right: 8px; width: 44px; height: 44px; border-radius: 50%; background: rgba(0,0,0,.4); font-size: 18px; z-index: 2; }
.ov-head .ov-x { position: static; flex: none; }
.center { text-align: center; } .small { font-size: 13px; }
.overlay .row { justify-content: flex-end; margin-top: 12px; } .overlay .row.center { justify-content: center; }
.gift-box { font-size: 72px; text-align: center; line-height: 1.2; }
.overlay.full { background: radial-gradient(120% 90% at 50% 20%, #1b7d5c, #08382b 60%, #031a14); }
.overlay.full .ov-card { background: transparent; border: 0; max-width: none; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 0; overflow: hidden; }
.overlay.full .ov-x { top: 6px; right: 6px; }
.wheel-title { font-family: Georgia, serif; font-size: 26px; background: linear-gradient(#fff4c4, #e0b445 70%); -webkit-background-clip: text; background-clip: text; color: transparent; margin: 0 0 6px !important; }
.wheel-wrap { position: relative; flex: none; display: flex; align-items: center; justify-content: center; }
.wheel { will-change: transform; border-radius: 50%; box-shadow: 0 6px 20px rgba(0,0,0,.6); }
.pointer { position: absolute; top: 2px; left: 50%; margin-left: -16px; width: 0; height: 0; z-index: 3; border-left: 16px solid transparent; border-right: 16px solid transparent; border-top: 34px solid #ffd25a; filter: none; }
.lights { position: absolute; inset: 0; pointer-events: none; }
.lights i { position: absolute; left: 50%; top: 50%; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: #fff6c0; box-shadow: 0 0 8px 3px rgba(255,210,90,.9);
  transform: rotate(var(--a)) translateY(calc(var(--R) * -1)); animation: chase 1.2s linear infinite; animation-delay: var(--d); opacity: .25; }
.lights.fast i { animation-duration: .45s; }
.lights.still i { animation: none; opacity: .8; } .lights.still i:nth-child(odd) { opacity: .3; }
@keyframes chase { 0% { opacity: 1; } 35% { opacity: .2; } 100% { opacity: .2; } }
.wheel-msg { min-height: 2.4em; margin: 8px 12px 0; font-size: 16px; }
.won { font-size: 24px; font-weight: 800; color: #ffd25a; }
.overlay.full .row.center { width: min(86%, 360px); }

/* leaderboard + profile */
.tabs { display: flex; gap: 6px; margin: 8px 0; }
.tabs button { flex: 1; padding: 9px 4px; border-radius: 10px; background: rgba(0,0,0,.3); font-weight: 700; font-size: 14px; min-height: 40px; }
.tabs button.on { background: linear-gradient(#f9e7a6, #e0b445); color: #3a2503; }
.lb-list { display: flex; flex-direction: column; gap: 6px; max-height: 60vh; overflow-y: auto; }
.lb-row { display: flex; align-items: center; gap: 10px; background: rgba(0,0,0,.25); border-radius: 12px; padding: 6px 10px 6px 8px; }
.lb-row.mine { outline: 2px solid var(--gold1); }
.lb-row .rk { width: 26px; text-align: center; font-weight: 800; opacity: .85; }
.lb-row .who { flex: 1; min-width: 0; display: flex; flex-direction: column; } .lb-row .who b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .lb-row small { opacity: .75; font-size: 12px; }
.lb-row .val { white-space: nowrap; }
.prof-top { display: flex; gap: 14px; align-items: center; } .prof-id { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.name-row { display: flex; gap: 6px; margin-bottom: 4px; } .name-row input { flex: 1; min-width: 0; padding: 10px; border-radius: 10px; border: 0; font-size: 17px; font-weight: 700; color: var(--ink); }
.photo-row { justify-content: flex-start !important; } .filebtn { display: inline-flex; align-items: center; cursor: pointer; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 10px 0; }
.stats div { background: rgba(0,0,0,.25); border-radius: 12px; padding: 10px 4px; text-align: center; display: flex; flex-direction: column; }
.stats b { font-size: 20px; } .stats small { opacity: .75; font-size: 12px; }
.acct-box form { display: flex; flex-direction: column; gap: 8px; }
.acct-box input { padding: 12px; border-radius: 10px; border: 0; font-size: 16px; color: var(--ink); }

/* table: bet chip + home overflow */
@media (prefers-reduced-motion: reduce) { .lights i { animation: none; opacity: .8; } .lights i:nth-child(odd) { opacity: .3; } }
body.reduce .lights i { animation: none; opacity: .8; } body.reduce .lights i:nth-child(odd) { opacity: .3; }

.overlay.full .ov-card.land { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 20px; align-content: center; justify-items: center; padding: 0 16px; }
.overlay.full .ov-card.land .wheel-wrap { grid-row: 1 / 3; grid-column: 1; }
.overlay.full .ov-card.land .wheel-title { grid-column: 2; grid-row: 1; align-self: end; }
.overlay.full .ov-card.land .wheel-side { grid-column: 2; grid-row: 2; align-self: start; width: 100%; display: flex; flex-direction: column; align-items: center; }
.overlay.full .ov-card.land .gold.big { padding: 12px; font-size: 18px; }
.wheel-side { width: 100%; display: flex; flex-direction: column; align-items: center; }
.prize { margin: 10px 0 0; text-align: center; font-size: 16px; } .prize .xp { opacity: .85; margin-left: 6px; }

/* keep the top bar on one line, even with the bet chip showing */
.chip { white-space: nowrap; }
.chips { gap: 4px; min-width: 0; flex-wrap: nowrap; }
.chip.sm { padding: 4px 8px; font-size: 12px; }
.bar-btn { padding: 0 9px; white-space: nowrap; }
/* a spinning square box sticks out at some angles; clip it to its own frame so the screen never pans sideways */
.wheel-wrap { overflow: hidden; }

/* ---------- Stage 5: logo, small tiles, settings, rules, helper, chat ---------- */
.logo-mark { display: block; margin: 4px auto 0; width: 72px; height: 72px; border-radius: 16px; box-shadow: 0 4px 14px rgba(0,0,0,.45); }
.tiles.small { margin-top: 12px; grid-template-columns: repeat(2, 1fr); }
.foot-note { text-align: center; font-size: 12px; opacity: .75; margin: 14px 0 6px; } .foot-note a { color: var(--gold2); }
.rules h4 { margin: 12px 0 4px; color: var(--gold2); } .rules p, .rules li { font-size: 15px; line-height: 1.4; margin: 0 0 4px; } .rules ul { margin: 0; padding-left: 20px; }
.panel .rules { max-height: 100%; }
.tracks { display: grid; gap: 8px; }
.tracks button { display: flex; flex-direction: column; align-items: flex-start; text-align: left; padding: 10px 12px; border-radius: 12px; border: 2px solid rgba(255,255,255,.18); background: rgba(0,0,0,.25); color: inherit; min-height: 48px; }
.tracks button.on { border-color: var(--gold2); background: rgba(212,166,58,.18); } .tracks small { opacity: .75; }
.slider { display: flex; align-items: center; gap: 10px; margin: 12px 0 4px; } .slider input { flex: 1; min-height: 32px; }
.overlay .check { display: flex; gap: 10px; align-items: center; margin: 10px 0; font-size: 15px; } .overlay .check input { width: 22px; height: 22px; flex: none; }
.chatlog { height: min(46vh, 320px); overflow-y: auto; display: flex; flex-direction: column; gap: 8px; padding: 6px 2px; }
.msg { max-width: 86%; padding: 9px 12px; border-radius: 14px; font-size: 15px; line-height: 1.35; white-space: pre-wrap; }
.msg.bot { align-self: flex-start; background: rgba(255,255,255,.12); } .msg.me { align-self: flex-end; background: #a4781f; color: #fff; } .msg.wait { opacity: .6; }
.sugg { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; } .sugg button { padding: 8px 12px; border-radius: 16px; background: rgba(0,0,0,.3); border: 1px solid var(--gold2); color: inherit; font-size: 13px; min-height: 36px; }
.hl-form { display: flex; gap: 8px; } .hl-form input { flex: 1; min-width: 0; min-height: 44px; border-radius: 10px; border: 0; padding: 0 12px; font-size: 16px; }
.qc { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; } .qc button { padding: 8px 12px; border-radius: 16px; background: rgba(0,0,0,.3); border: 1px solid var(--gold2); color: inherit; font-size: 14px; min-height: 40px; }
.qc.em button { font-size: 22px; padding: 4px 10px; }
#bubbles { position: absolute; inset: 0; pointer-events: none; z-index: 30; }
.bubble { position: absolute; max-width: 150px; padding: 6px 10px; border-radius: 12px; background: #fff; color: #222; font-size: 13px; font-weight: 700; box-shadow: 0 2px 8px rgba(0,0,0,.5); animation: pop .2s ease-out; }
@keyframes pop { from { transform: scale(.7); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.me .nm.say { color: #ffe08a; max-width: 150px; }
.foot > #btn-chat, .foot > #btn-action { min-width: 84px; }
.felt { background-image: url(/felt.png), radial-gradient(120% 90% at 50% 40%, #1e8a63, #0b4a38 60%, #052a20); }
#chat { padding: 8px 10px; } #chat h3 { margin: 0 0 6px; font-size: 15px; }
#chat .qc { gap: 5px; margin-bottom: 5px; } #chat .qc button { padding: 4px 10px; min-height: 34px; font-size: 13px; }
#chat .qc.em button { font-size: 18px; padding: 2px 8px; min-height: 34px; } #chat .row { margin-top: 4px; }
