/* ============================================================
   Baccarat — casino styling
   - Full-screen 3D canvas sits behind an absolutely-positioned UI overlay.
   - Overlay containers are pointer-events:none so OrbitControls keeps
     working on empty areas; interactive widgets re-enable pointer-events.
   ============================================================ */

:root {
  --gold: #d4af37;
  --gold-soft: #e8cf7a;
  --gold-dim: #8a6d1f;
  --felt-dark: #0a2a18;
  --felt-mid: #11512f;
  --ink: #06140c;
  --panel: rgba(8, 26, 16, 0.82);
  --panel-border: rgba(212, 175, 55, 0.55);
  --text: #f3ead0;
  --player: #2f6fd6;
  --banker: #c8443a;
  --tie: #2faa5a;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  font-family: "Trebuchet MS", "Segoe UI", system-ui, sans-serif;
  color: var(--text);
  /* Radial felt as a fallback behind the WebGL canvas */
  background:
    radial-gradient(ellipse at center, var(--felt-mid) 0%, var(--felt-dark) 60%, var(--ink) 100%);
  -webkit-user-select: none;
  user-select: none;
}

/* ---- 3D canvas host: fixed, fills the viewport, sits behind UI ---- */
#canvas-container {
  position: fixed;
  inset: 0;
  z-index: 0;
}
#canvas-container canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
}

/* ---- UI overlay root: transparent, passes clicks through by default ---- */
#ui-root {
  position: fixed;
  inset: 0;
  z-index: 10;
  pointer-events: none;   /* empty areas let OrbitControls receive drags */
}

/* Any interactive widget opts back in */
.ui-interactive,
.chip,
.btn,
.bet-spot {
  pointer-events: auto;
}

/* ============================================================
   HUD: top bar (balance + message)
   ============================================================ */
.hud-top {
  position: absolute;
  top: 0; left: 0; right: 0;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 14px 20px;
  gap: 16px;
}

.balance-box {
  pointer-events: auto;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 12px;
  padding: 10px 18px;
  box-shadow: 0 4px 18px rgba(0,0,0,0.45), inset 0 0 12px rgba(212,175,55,0.08);
  text-align: left;
  min-width: 150px;
}
.balance-label {
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold-soft);
  opacity: 0.85;
}
.balance-value {
  font-size: 28px;
  font-weight: bold;
  color: var(--gold);
  text-shadow: 0 1px 2px rgba(0,0,0,0.6);
  line-height: 1.1;
}

.message-box {
  pointer-events: none;
  flex: 1 1 auto;
  max-width: 520px;
  margin: 0 auto;
  text-align: center;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 12px;
  padding: 12px 18px;
  font-size: 17px;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 18px rgba(0,0,0,0.45);
  align-self: center;
}

/* Title brand chip on the right (purely decorative) */
.brand-box {
  pointer-events: none;
  text-align: right;
  min-width: 150px;
}
.brand-box .brand-title {
  font-size: 22px;
  font-weight: bold;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--gold);
  text-shadow: 0 2px 4px rgba(0,0,0,0.6);
}
.brand-box .brand-sub {
  font-size: 11px;
  letter-spacing: 3px;
  color: var(--gold-soft);
  opacity: 0.7;
}

/* ============================================================
   Totals readout (player / banker scores near top center)
   ============================================================ */
.totals {
  position: absolute;
  top: 86px; left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 28px;
  pointer-events: none;
}
.total-pill {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 999px;
  padding: 6px 16px;
  font-size: 15px;
  letter-spacing: 1px;
  display: flex;
  gap: 8px;
  align-items: center;
}
.total-pill .lbl { color: var(--gold-soft); text-transform: uppercase; font-size: 12px; }
.total-pill .val { font-weight: bold; font-size: 18px; min-width: 22px; text-align: center; }
.total-pill.player .lbl { color: #9cc0ff; }
.total-pill.banker .lbl { color: #f3a59e; }

/* ============================================================
   History bead row
   ============================================================ */
.history {
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: none; /* shown via .history.visible if used; default packs into bottom */
}

.history-row {
  position: absolute;
  right: 20px;
  top: 96px;
  pointer-events: auto;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 10px;
  padding: 8px;
  max-width: 220px;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.4);
}
.history-row:empty { display: none; }

.bead {
  width: 22px; height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: bold;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.35);
  box-shadow: inset 0 0 4px rgba(0,0,0,0.4);
}
.bead.player { background: var(--player); }
.bead.banker { background: var(--banker); }
.bead.tie    { background: var(--tie); }

/* ============================================================
   Bet spots (center of screen, over the table)
   ============================================================ */
.bet-spots {
  position: absolute;
  bottom: 170px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 16px;
  align-items: flex-end;
  pointer-events: none;
}

.bet-spot {
  pointer-events: auto;
  position: relative;
  width: 120px;
  min-height: 84px;
  border: 2px dashed var(--gold);
  border-radius: 14px;
  background: rgba(8, 40, 24, 0.55);
  backdrop-filter: blur(2px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s ease, box-shadow 0.15s ease, transform 0.1s ease;
  text-align: center;
  padding: 8px 6px;
}
.bet-spot:hover {
  background: rgba(212, 175, 55, 0.18);
  box-shadow: 0 0 16px rgba(212, 175, 55, 0.4);
}
.bet-spot:active { transform: translateY(1px); }

.bet-spot .spot-name {
  font-size: 16px;
  font-weight: bold;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--gold);
}
.bet-spot .spot-pay {
  font-size: 10px;
  letter-spacing: 0.5px;
  color: var(--gold-soft);
  opacity: 0.8;
  margin-top: 2px;
}
.bet-spot .spot-stake {
  margin-top: 6px;
  font-size: 16px;
  font-weight: bold;
  color: #fff;
  min-height: 20px;
  text-shadow: 0 1px 2px rgba(0,0,0,0.6);
}
.bet-spot .spot-stake:empty::after { content: ""; }

/* Color-coded accents per spot */
.bet-spot.player { border-color: #4f86e0; }
.bet-spot.player .spot-name { color: #9cc0ff; }
.bet-spot.banker { border-color: #e0635a; }
.bet-spot.banker .spot-name { color: #f3a59e; }
.bet-spot.tie    { border-color: #46c47a; }
.bet-spot.tie .spot-name { color: #8be3ad; }
.bet-spot.playerPair, .bet-spot.bankerPair { width: 92px; min-height: 70px; }
.bet-spot.playerPair .spot-name,
.bet-spot.bankerPair .spot-name { font-size: 13px; }

/* Invalid-bet flash */
.bet-spot.flash-invalid {
  animation: flashInvalid 0.4s ease;
}
@keyframes flashInvalid {
  0%, 100% { box-shadow: 0 0 0 rgba(220,40,40,0); }
  30%      { box-shadow: 0 0 22px rgba(220,40,40,0.9); background: rgba(180,30,30,0.35); }
}

/* Disabled state for spots during dealing */
.bet-spots.disabled .bet-spot {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

/* ============================================================
   Bottom control bar: chips + buttons
   ============================================================ */
.control-bar {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 28px;
  padding: 16px 20px 22px;
  pointer-events: none;
}

.chip-tray, .button-tray {
  pointer-events: auto;
  display: flex;
  gap: 12px;
  align-items: center;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 16px;
  padding: 12px 16px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.5);
}

/* ---- Chips ---- */
.chip {
  width: 54px; height: 54px;
  border-radius: 50%;
  border: 3px dashed rgba(255,255,255,0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 15px;
  color: #fff;
  cursor: pointer;
  position: relative;
  box-shadow: 0 3px 8px rgba(0,0,0,0.5), inset 0 0 0 4px rgba(0,0,0,0.15);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
  text-shadow: 0 1px 2px rgba(0,0,0,0.6);
}
.chip:hover { transform: translateY(-4px) scale(1.04); }

/* Denomination colors */
.chip[data-value="5"]   { background: radial-gradient(circle at 50% 38%, #e85d5d, #b32424); }
.chip[data-value="25"]  { background: radial-gradient(circle at 50% 38%, #4caf6e, #1f7a44); }
.chip[data-value="100"] { background: radial-gradient(circle at 50% 38%, #3a3a3a, #111); }
.chip[data-value="500"] { background: radial-gradient(circle at 50% 38%, #8a55c9, #5b2c91); }

/* Selected chip glows gold */
.chip.selected {
  border-color: var(--gold);
  box-shadow: 0 0 18px rgba(212,175,55,0.85), 0 3px 8px rgba(0,0,0,0.5), inset 0 0 0 4px rgba(212,175,55,0.25);
  transform: translateY(-4px) scale(1.08);
}

/* ---- Buttons ---- */
.btn {
  pointer-events: auto;
  cursor: pointer;
  border: 1px solid var(--gold);
  border-radius: 10px;
  padding: 12px 22px;
  font-size: 15px;
  font-weight: bold;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--ink);
  background: linear-gradient(180deg, var(--gold-soft), var(--gold) 55%, var(--gold-dim));
  box-shadow: 0 3px 10px rgba(0,0,0,0.5);
  transition: filter 0.12s ease, transform 0.1s ease;
}
.btn:hover { filter: brightness(1.12); }
.btn:active { transform: translateY(1px); }

.btn.secondary {
  color: var(--text);
  background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
  border-color: var(--panel-border);
}
.btn.secondary:hover { filter: brightness(1.2); }

.btn:disabled,
.chip.disabled {
  opacity: 0.4;
  cursor: not-allowed;
  filter: grayscale(0.4);
  transform: none;
  box-shadow: 0 2px 6px rgba(0,0,0,0.4);
}
.btn:disabled:hover { filter: grayscale(0.4); }

/* ============================================================
   Responsive tweaks
   ============================================================ */
@media (max-width: 720px) {
  .balance-value { font-size: 22px; }
  .brand-box { display: none; }
  .bet-spot { width: 92px; min-height: 70px; }
  .bet-spot .spot-name { font-size: 13px; }
  .chip { width: 46px; height: 46px; font-size: 13px; }
  .control-bar { gap: 14px; flex-wrap: wrap; }
  .bet-spots { bottom: 150px; gap: 8px; }
  .history-row { max-width: 120px; }
}

/* ============================================================
   EXPERIMENT SHELL — screens, landing, buy-in, ruin, verify
   (appended for the Baccarat Ruin Experiment)
   ============================================================ */

/* Canvas + observer HUD only visible on the observer screen */
#canvas-container { display: none; }
body[data-screen="observer"] #canvas-container { display: block; }
#observer-ui { display: none; }
body[data-screen="observer"] #observer-ui { display: block; }

/* Rounds-left HUD pill (mirrors balance-box) */
.rounds-box {
  pointer-events: auto;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 12px;
  padding: 10px 18px;
  box-shadow: 0 4px 18px rgba(0,0,0,0.45);
  text-align: right;
  min-width: 130px;
}
.rounds-value { font-size: 24px; font-weight: bold; color: var(--gold); line-height: 1.1; display: block; }

/* ---- generic screen ---- */
.screen {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  overflow-y: auto;
}
.screen.active { display: flex; animation: fadeIn 0.35s ease; }
.modal.active { background: rgba(4, 12, 8, 0.88); backdrop-filter: blur(6px); }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.linklike {
  background: none; border: none; color: var(--gold-soft);
  text-decoration: underline; cursor: pointer; font: inherit; padding: 0;
}
.linklike:hover { color: var(--gold); }
.dot { opacity: 0.5; margin: 0 8px; }

/* ============================================================
   LANDING (proof-first)
   ============================================================ */
.landing {
  max-width: 720px; text-align: center; display: flex;
  flex-direction: column; align-items: center; gap: 8px;
}
.landing-kicker { letter-spacing: 5px; font-size: 12px; color: var(--gold-soft); opacity: 0.8; }
.landing-title {
  font-size: clamp(34px, 7vw, 68px); margin: 4px 0 0; letter-spacing: 2px;
  color: var(--gold); text-shadow: 0 3px 20px rgba(0,0,0,0.7);
}
.landing-sub { max-width: 520px; color: var(--text); opacity: 0.85; line-height: 1.5; margin: 6px 0 18px; }

.landing-stats { display: flex; gap: 40px; flex-wrap: wrap; justify-content: center; margin-bottom: 26px; }
.stat { display: flex; flex-direction: column; gap: 6px; }
.stat-value {
  font-size: clamp(46px, 10vw, 86px); font-weight: 900; line-height: 1;
  color: var(--gold); font-variant-numeric: tabular-nums;
  text-shadow: 0 2px 12px rgba(212,175,55,0.3);
}
.stat-pnl .stat-value.negative { color: #ff5b5b; text-shadow: 0 2px 16px rgba(255,60,60,0.4); }
.stat-label { font-size: 12px; letter-spacing: 2px; text-transform: uppercase; color: var(--gold-soft); opacity: 0.75; }

.landing-cta {
  font-size: 18px; padding: 16px 30px; margin-bottom: 12px;
  animation: pulseGlow 2.4s ease-in-out infinite;
}
@keyframes pulseGlow {
  0%,100% { box-shadow: 0 3px 10px rgba(0,0,0,0.5); }
  50% { box-shadow: 0 0 26px rgba(212,175,55,0.7), 0 3px 10px rgba(0,0,0,0.5); }
}
.landing-meta { font-size: 13px; color: var(--gold-soft); opacity: 0.8; margin-bottom: 26px; }

.ruin-feed { width: 100%; max-width: 460px; }
.ruin-feed.empty { display: none; }
.ruin-feed-title { font-size: 11px; letter-spacing: 3px; color: var(--gold-soft); opacity: 0.6; margin-bottom: 8px; }
.ruin-feed-list { display: flex; flex-direction: column; gap: 4px; }
.ruin-row {
  display: flex; gap: 10px; align-items: baseline; font-size: 13px;
  background: var(--panel); border: 1px solid rgba(212,175,55,0.18);
  border-radius: 8px; padding: 7px 12px; text-align: left;
}
.ruin-hash { color: #ff7b7b; font-weight: bold; min-width: 42px; }
.ruin-who { font-family: ui-monospace, monospace; color: var(--text); opacity: 0.8; flex: 1; }
.ruin-rounds { color: var(--gold-soft); opacity: 0.8; }
.ruin-when { color: var(--text); opacity: 0.45; font-size: 11px; }

/* ============================================================
   BUY-IN + VERIFY cards
   ============================================================ */
.buyin, .verify {
  width: 100%; max-width: 440px; background: var(--panel);
  border: 1px solid var(--panel-border); border-radius: 16px; padding: 22px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.6); text-align: left;
}
.buyin-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.buyin-title { margin: 0; font-size: 19px; color: var(--gold); }
.buyin-close { background: none; border: none; color: var(--text); font-size: 18px; cursor: pointer; opacity: 0.7; }
.buyin-close:hover { opacity: 1; }

.buyin-tabs { display: flex; gap: 8px; margin-bottom: 16px; }
.buyin-tab {
  flex: 1; padding: 10px; border-radius: 10px; cursor: pointer; font-weight: bold;
  background: rgba(255,255,255,0.04); color: var(--text); border: 1px solid var(--panel-border);
}
.buyin-tab.active { background: linear-gradient(180deg, var(--gold-soft), var(--gold)); color: var(--ink); }

.buyin-body { display: flex; flex-direction: column; gap: 12px; align-items: stretch; }
.buyin-instr { font-size: 13px; line-height: 1.5; color: var(--text); opacity: 0.9; margin: 0; }
.qr { align-self: center; border-radius: 10px; background: #fff; padding: 6px; }
.field { display: flex; flex-direction: column; gap: 4px; }
.field-label { font-size: 11px; letter-spacing: 1px; text-transform: uppercase; color: var(--gold-soft); }
.field-value { font-size: 13px; word-break: break-all; padding: 8px 10px; background: rgba(0,0,0,0.3); border-radius: 8px; }
.field-value.memo { color: var(--gold); font-weight: bold; letter-spacing: 1px; }
.mono { font-family: ui-monospace, "SF Mono", Menlo, monospace; }
.copy-btn {
  align-self: flex-start; margin-top: 2px; font-size: 12px; padding: 6px 12px;
  border-radius: 8px; cursor: pointer; border: 1px solid var(--panel-border);
  background: rgba(255,255,255,0.05); color: var(--text);
}
.copy-btn:hover { background: rgba(212,175,55,0.18); }
.tx-input {
  width: 100%; padding: 9px 11px; border-radius: 8px; margin: 8px 0;
  border: 1px solid var(--panel-border); background: rgba(0,0,0,0.3); color: var(--text);
  font-family: ui-monospace, monospace; font-size: 12px;
}
.buyin-manual { margin-top: 6px; font-size: 13px; color: var(--gold-soft); }
.buyin-manual summary { cursor: pointer; }
.buyin-status { min-height: 20px; margin-top: 12px; font-size: 13px; text-align: center; }
.buyin-status.ok { color: #4fd07a; }
.buyin-status.warn { color: var(--gold-soft); }
.buyin-status.err { color: #ff6b6b; }
.buyin-disclaimer { margin-top: 14px; font-size: 11px; line-height: 1.4; color: var(--text); opacity: 0.55; text-align: center; }

/* ============================================================
   RUIN takeover
   ============================================================ */
#screen-ruin.active { background: radial-gradient(ellipse at center, #2a0808 0%, #0a0202 70%); }
.ruin-screen {
  text-align: center; display: flex; flex-direction: column; align-items: center;
  gap: 10px; transform: scale(0.96); opacity: 0; transition: transform 0.5s ease, opacity 0.5s ease;
}
.ruin-screen.show { transform: scale(1); opacity: 1; }
.ruin-stamp {
  font-size: clamp(48px, 12vw, 120px); font-weight: 900; letter-spacing: 6px; color: #ff3b3b;
  text-shadow: 0 0 30px rgba(255,40,40,0.6); border: 5px solid #ff3b3b; padding: 4px 24px;
  border-radius: 10px; transform: rotate(-4deg);
}
.ruin-number { font-size: clamp(22px, 5vw, 38px); font-weight: bold; color: var(--gold); margin-top: 14px; }
.ruin-detail { color: var(--text); opacity: 0.85; }
.ruin-kept { color: #ff8a8a; font-size: 15px; margin-top: 4px; }
.ruin-repeat { color: var(--gold-soft); font-size: 13px; font-style: italic; max-width: 420px; margin-top: 6px; }
.ruin-actions { display: flex; gap: 14px; margin-top: 22px; flex-wrap: wrap; justify-content: center; }
.ruin-links { margin-top: 18px; font-size: 13px; }

/* ============================================================
   VERIFY output
   ============================================================ */
.verify { max-width: 560px; }
.verify-intro { font-size: 13px; line-height: 1.5; opacity: 0.85; }
.verify-form { display: flex; gap: 8px; margin: 10px 0; }
.verify-form .tx-input { margin: 0; }
.verify-out { font-size: 13px; }
.verify-row { display: flex; gap: 10px; padding: 5px 0; border-bottom: 1px solid rgba(255,255,255,0.06); }
.verify-k { min-width: 160px; color: var(--gold-soft); }
.verify-v { word-break: break-all; }
.verify-note { color: var(--gold-soft); opacity: 0.8; }
.verify-rounds { margin-top: 12px; max-height: 260px; overflow-y: auto; }
.verify-rounds-title { font-size: 12px; color: var(--gold-soft); margin-bottom: 6px; }
.verify-round { font-family: ui-monospace, monospace; font-size: 12px; padding: 2px 0; opacity: 0.85; }
.verify-round.player { color: #9cc0ff; }
.verify-round.banker { color: #f3a59e; }
.verify-round.tie { color: #8be3ad; }

/* ============================================================
   Disclaimer bar
   ============================================================ */
#disclaimer-bar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 30;
  text-align: center; font-size: 11px; letter-spacing: 1px; padding: 6px;
  color: var(--text); opacity: 0.4; pointer-events: none;
}
body[data-screen="observer"] #disclaimer-bar { display: none; }

/* ============================================================
   OBSERVER HUD (read-only watch view)
   ============================================================ */
.obs-overlay { position: fixed; inset: 0; z-index: 10; pointer-events: none; }
.obs-overlay > * { pointer-events: none; }
.obs-back { pointer-events: auto; position: absolute; top: 16px; left: 50%; transform: translateX(-50%); }

.obs-run-box {
  position: absolute; top: 16px; left: 20px;
  background: var(--panel); border: 1px solid var(--panel-border); border-radius: 12px;
  padding: 10px 16px; box-shadow: 0 4px 18px rgba(0,0,0,0.45);
}
.obs-life { font-size: 20px; font-weight: 900; color: var(--gold); letter-spacing: 1px; }
.obs-round { font-size: 12px; letter-spacing: 1px; color: var(--gold-soft); opacity: 0.8; text-transform: uppercase; }

.obs-balance-box {
  position: absolute; top: 16px; right: 20px; text-align: right;
  background: var(--panel); border: 1px solid var(--panel-border); border-radius: 12px;
  padding: 10px 18px; box-shadow: 0 4px 18px rgba(0,0,0,0.45); min-width: 130px;
}
.obs-balance { font-size: 30px; font-weight: bold; color: var(--gold); line-height: 1.05; font-variant-numeric: tabular-nums; }
.obs-balance.low { color: #ff6b6b; }

.obs-bottom {
  position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px; width: min(560px, 92vw);
}
.obs-graph-wrap {
  width: 100%; background: var(--panel); border: 1px solid var(--panel-border);
  border-radius: 12px; padding: 10px 12px 6px; box-shadow: 0 4px 18px rgba(0,0,0,0.45);
}
.obs-graph-title { font-size: 10px; letter-spacing: 2px; color: var(--gold-soft); opacity: 0.7; margin-bottom: 4px; }
.obs-graph { width: 100%; height: auto; display: block; }
.obs-lostfact {
  font-size: 13px; color: var(--gold-soft); opacity: 0.9; text-align: center;
  background: rgba(8,26,16,0.6); border-radius: 999px; padding: 6px 16px;
}

/* transient ruin flourish (machine auto-resets) */
.obs-ruin {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 14px;
  background: radial-gradient(ellipse at center, rgba(120,10,10,0.55) 0%, rgba(10,2,2,0.75) 70%);
  opacity: 0; pointer-events: none; transition: opacity 0.4s ease; z-index: 12;
}
.obs-ruin.show { opacity: 1; }
.obs-ruin-stamp {
  font-size: clamp(46px, 11vw, 104px); font-weight: 900; letter-spacing: 6px; color: #ff3b3b;
  text-shadow: 0 0 30px rgba(255,40,40,0.7); border: 5px solid #ff3b3b; padding: 4px 22px;
  border-radius: 10px; transform: rotate(-4deg);
}
.obs-ruin-line { font-size: clamp(14px, 3vw, 20px); color: #ffd9d9; letter-spacing: 1px; }
