:root {
  color-scheme: dark;
  --graphite-0: #121214;
  --graphite-1: #1a1a1e;
  --graphite-2: #242328;
  --line: rgba(212, 175, 55, 0.2);
  --copper: #b87333;
  --gold: #d4af37;
  --amber: #ffbf00;
  --text: #f1e8d1;
  --muted: #9c927f;
  --danger: #e0643d;
  --radius: 8px;
  --shadow-gold: 0 0 18px rgba(255, 191, 0, 0.18), 0 0 46px rgba(184, 115, 51, 0.16);
}

.bonus-status-card {
  display: block;
  width: 100%;
  margin: 16px 0;
  padding: 16px;
  border: 1px solid rgba(211, 172, 46, 0.55);
  background: rgba(5, 19, 15, 0.92);
}

.bonus-status-card > summary { list-style: none; }
.bonus-status-card > summary::-webkit-details-marker { display: none; }
.bonus-status-summary { cursor: pointer; position: relative; padding-right: 28px; }
.bonus-status-summary::after { content: "⌄"; position: absolute; top: 0; right: 0; color: #f0cf62; font-size: 1.25rem; line-height: 1; }
.bonus-status-card[open] .bonus-status-summary::after { content: "⌃"; }
.bonus-status-summary-title { display: block; margin-bottom: 10px; font-size: 1rem; letter-spacing: 0; color: #f0cf62; }
.bonus-status-summary-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; min-height: 24px; padding: 3px 0; }
.bonus-status-summary-row > span { color: #bba866; font-size: 0.78rem; }
.bonus-status-summary-row > strong { color: #fff0a8; font-size: 0.9rem; text-align: right; overflow-wrap: anywhere; }
.bonus-status-details { margin-top: 10px; }
.bonus-status-row { padding: 14px 0; border-top: 1px solid rgba(211, 172, 46, 0.25); }
.bonus-status-row p { margin: 6px 0 0; font-size: 0.86rem; line-height: 1.5; overflow-wrap: anywhere; }
.bonus-status-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.bonus-status-heading span { font-size: 0.72rem; color: #bba866; }
.bonus-status-heading strong { color: #fff0a8; text-align: right; }
.bonus-status-progress { height: 6px; margin-top: 10px; overflow: hidden; background: rgba(255, 255, 255, 0.1); }
.bonus-status-progress i { display: block; width: 0; height: 100%; background: #d7ad2d; transition: width 220ms ease; }

@media (max-width: 640px) {
  .bonus-status-card { padding: 14px; }
  .bonus-status-heading, .bonus-status-summary-row { align-items: flex-start; }
  .bonus-status-summary-row > span { flex: 0 0 auto; }
  .bonus-status-summary-row > strong { max-width: 58%; }
  .bonus-status-heading strong { max-width: 58%; }
}

* {
  box-sizing: border-box;
}

.manual-point-grants { margin-top:24px; padding:16px; border:1px solid #92763b; border-radius:12px; background:rgba(5,24,16,.5); }
.manual-point-grants .text-input { width:100%; min-width:0; box-sizing:border-box; }
.manual-point-grants button { margin-top:10px; }
.manual-point-grants .field-label:has(input[type="checkbox"]) { display:flex; align-items:flex-start; gap:8px; }
.manual-point-grants input[type="checkbox"] { flex:none; margin-top:5px; }
.manual-point-grants article { padding:12px 0; border-bottom:1px solid #92763b55; overflow-wrap:anywhere; }
.manual-point-grants .manual-point-success { padding:12px; border:1px solid #b9974a; border-radius:8px; color:#ffe6a0; background:#173324; }

[hidden] {
  display: none !important;
}

html,
body {
  min-height: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

.asset-sync-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  background: rgba(5, 7, 5, 0.86);
  backdrop-filter: blur(12px);
}

.asset-sync-overlay[hidden] {
  display: none;
}

.asset-sync-overlay > div {
  width: min(86vw, 360px);
  border: 1px solid rgba(212, 175, 55, 0.42);
  background: linear-gradient(180deg, rgba(19, 34, 24, 0.96), rgba(8, 10, 8, 0.96));
  padding: 28px;
  text-align: center;
  color: #f3ead8;
  box-shadow: 0 0 60px rgba(212, 175, 55, 0.18);
}

.asset-sync-overlay strong {
  display: block;
  margin-top: 14px;
  color: #d4af37;
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: 1.35rem;
}

.asset-sync-overlay p {
  margin: 10px 0 0;
  color: rgba(243, 234, 216, 0.72);
}

.reward-ad-overlay,
.reward-burst-overlay {
  position: fixed;
  z-index: 1600;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px 16px;
  background:
    radial-gradient(circle at 50% 34%, rgba(255, 191, 0, 0.12), transparent 20rem),
    rgba(3, 4, 3, 0.94);
  backdrop-filter: blur(14px);
}

.reward-ad-overlay[hidden],
.reward-burst-overlay[hidden] {
  display: none;
}

.reward-ad-card,
.reward-burst-card {
  width: min(100%, 390px);
  border: 1px solid rgba(255, 191, 0, 0.55);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(19, 34, 24, 0.98), rgba(7, 7, 7, 0.98)),
    #070808;
  box-shadow: 0 0 70px rgba(255, 191, 0, 0.22), 0 20px 70px rgba(0, 0, 0, 0.72);
  padding: 26px 20px;
  text-align: center;
}

.reward-ad-card h2 {
  margin: 8px 0 10px;
  color: #ffe27a;
  font-size: 1.28rem;
}

.ad-reel-icon {
  display: grid;
  width: 74px;
  height: 74px;
  margin: 0 auto 12px;
  place-items: center;
  border: 1px solid rgba(255, 191, 0, 0.44);
  border-radius: 50%;
  background: radial-gradient(circle, #f5dc86, #b87333 58%, #140d05);
  box-shadow: 0 0 34px rgba(255, 191, 0, 0.34);
  font-size: 2rem;
}

#rewardAdTimer {
  display: block;
  margin: 6px auto 4px;
  color: #ffbf00;
  font-family: "SF Mono", Consolas, monospace;
  font-size: clamp(4rem, 18vw, 5.6rem);
  line-height: 1;
  text-shadow: 0 0 28px rgba(255, 191, 0, 0.42);
}

#rewardAdMessage,
#rewardBurstMessage {
  margin: 10px auto 0;
  color: rgba(243, 234, 216, 0.8);
  font-size: 0.92rem;
  line-height: 1.55;
}

.ad-progress {
  height: 8px;
  margin: 20px 0 18px;
  overflow: hidden;
  border: 1px solid rgba(255, 191, 0, 0.24);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.5);
}

.ad-progress i {
  display: block;
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #b87333, #ffbf00, #fff1a6);
  box-shadow: 0 0 18px rgba(255, 191, 0, 0.55);
  transition: width 260ms linear;
}

.reward-burst-overlay {
  background:
    radial-gradient(circle at 50% 45%, rgba(255, 252, 194, 0.34), transparent 11rem),
    radial-gradient(circle at 50% 52%, rgba(255, 191, 0, 0.24), transparent 24rem),
    rgba(3, 4, 3, 0.88);
}

.reward-burst-card {
  animation: reward-burst-pop 1.05s ease-out both;
}

.reward-coin {
  display: grid;
  width: min(54vw, 190px);
  aspect-ratio: 1;
  margin: 0 auto 10px;
  place-items: center;
  border: 3px solid rgba(255, 241, 166, 0.82);
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 30%, #fff6bb, #ffbf00 34%, #b87333 70%, #2d1705);
  box-shadow: 0 0 34px rgba(255, 191, 0, 0.7), 0 0 90px rgba(255, 191, 0, 0.28);
  font-size: clamp(3.4rem, 17vw, 5.8rem);
}

#rewardBurstTitle {
  display: block;
  color: #ffe88a;
  font-family: "SF Mono", Consolas, monospace;
  font-size: clamp(2.1rem, 11vw, 4.2rem);
  line-height: 1;
  text-shadow: 0 0 30px rgba(255, 191, 0, 0.58);
}

.sync-spinner {
  display: inline-block;
  width: 44px;
  height: 44px;
  border: 2px solid rgba(212, 175, 55, 0.18);
  border-top-color: #ffbf00;
  border-radius: 50%;
  animation: sync-spin 900ms linear infinite;
}

@keyframes sync-spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes pt-earn-pulse {
  0%,
  100% {
    transform: translateY(0);
    box-shadow: 0 0 20px rgba(255, 191, 0, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.55);
  }
  50% {
    transform: translateY(-1px);
    box-shadow: 0 0 32px rgba(255, 191, 0, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.68);
  }
}

@keyframes reward-burst-pop {
  0% {
    opacity: 0;
    transform: scale(0.72) rotate(-2deg);
    filter: brightness(0.78);
  }
  42% {
    opacity: 1;
    transform: scale(1.06) rotate(1deg);
    filter: brightness(1.34);
  }
  100% {
    opacity: 1;
    transform: scale(1);
    filter: brightness(1);
  }
}

.compliance-notice {
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  margin: 0 0 18px;
  border: 1px solid rgba(255, 191, 0, 0.38);
  background: rgba(48, 21, 12, 0.72);
  padding: 14px;
  color: #f3ead8;
}

.compliance-notice strong {
  color: #ffbf00;
}

.compliance-notice p {
  margin: 4px 0 0;
  font-size: 0.82rem;
  color: rgba(243, 234, 216, 0.78);
}

body {
  margin: 0;
  font-family:
    "Noto Serif JP",
    "Yu Mincho",
    "Hiragino Mincho ProN",
    "Yu Gothic",
    "Meiryo",
    Georgia,
    serif;
  color: var(--text);
  background:
    radial-gradient(ellipse at 50% 34%, rgba(6, 72, 37, 0.58), transparent 27rem),
    radial-gradient(circle at 50% -10%, rgba(184, 115, 51, 0.14), transparent 36rem),
    linear-gradient(160deg, #030403, var(--graphite-0) 48%, var(--graphite-1));
  letter-spacing: 0;
}

h1,
h2,
.points-readout,
.serial,
.edge-pill {
  font-family:
    "Noto Serif JP",
    "Yu Mincho",
    "Hiragino Mincho ProN",
    "Yu Gothic",
    "Meiryo",
    Georgia,
    serif;
}

body::after {
  position: fixed;
  z-index: 45;
  inset: 0;
  pointer-events: none;
  content: "";
  opacity: 0;
}

body::before {
  position: fixed;
  z-index: 0;
  inset: -18%;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 22% 24%, rgba(255, 255, 255, 0.08), transparent 22rem),
    radial-gradient(ellipse at 84% 42%, rgba(255, 191, 0, 0.08), transparent 18rem),
    linear-gradient(120deg, transparent 18%, rgba(255, 255, 255, 0.045), transparent 44%),
    linear-gradient(55deg, transparent 38%, rgba(255, 255, 255, 0.035), transparent 62%);
  content: "";
  filter: blur(28px);
  opacity: 0.58;
  animation: table-fog 8s ease-in-out infinite alternate;
}

body.flash-red::after {
  animation: result-flash-red 520ms ease-out;
}

body.flash-black::after {
  animation: result-flash-black 520ms ease-out;
}

body.flash-gold::after {
  animation: result-flash-gold 680ms ease-out;
}

button,
input {
  font: inherit;
}

button {
  -webkit-tap-highlight-color: transparent;
  position: relative;
  overflow: hidden;
  transition: transform 140ms ease, box-shadow 140ms ease, filter 140ms ease;
}

button::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 0 34%, rgba(255, 255, 255, 0.34) 46%, transparent 58%);
  content: "";
  transform: translateX(-130%);
  transition: transform 420ms ease;
}

button:active {
  transform: translateY(3px) scale(0.985);
  box-shadow: inset 0 5px 14px rgba(0, 0, 0, 0.52), 0 0 10px rgba(255, 191, 0, 0.18);
  filter: brightness(0.88);
}

button:active::after {
  transform: translateX(130%);
}

.login-gate {
  position: relative;
  z-index: 2;
  display: grid;
  min-height: 100vh;
  padding: 24px 16px;
  place-items: center;
}

.login-card {
  width: min(100%, 380px);
  border: 1px solid rgba(212, 175, 55, 0.34);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(15, 32, 22, 0.94), rgba(7, 8, 8, 0.96)),
    #070808;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.5), var(--shadow-gold);
  padding: 28px;
}

.login-card h1 {
  margin: 8px 0 22px;
  color: #f6d77a;
  font-size: 2rem;
  letter-spacing: 0.08em;
}

.login-card label {
  display: grid;
  gap: 8px;
  margin-top: 14px;
  color: rgba(241, 232, 209, 0.76);
  font-size: 0.82rem;
}

.login-card input {
  width: 100%;
  border: 1px solid rgba(212, 175, 55, 0.28);
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.42);
  color: var(--text);
  padding: 13px 12px;
  outline: none;
}

.login-card input:focus {
  border-color: rgba(255, 191, 0, 0.72);
  box-shadow: 0 0 0 3px rgba(255, 191, 0, 0.12);
}

.login-card .primary-action {
  width: 100%;
  margin-top: 20px;
}

.register-link {
  display: block;
  width: fit-content;
  margin: 16px auto 0;
  color: rgba(246, 215, 122, 0.86);
  font-size: 0.84rem;
}

.login-card .primary-action:disabled {
  cursor: not-allowed;
  filter: grayscale(0.9) brightness(0.58);
  opacity: 0.55;
}

.login-error {
  margin: 12px 0 0;
  color: #ffb38f;
  font-size: 0.82rem;
}

.app-shell {
  position: relative;
  z-index: 1;
  width: min(100%, 480px);
  max-width: 480px;
  overflow-x: hidden;
  min-height: 100vh;
  margin: 0 auto;
  padding: max(18px, env(safe-area-inset-top)) 16px max(24px, env(safe-area-inset-bottom));
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 54px;
}

.account-metrics {
  display: grid;
  grid-template-columns: auto;
  gap: 2px;
  margin-left: auto;
  text-align: right;
}

.account-metrics span {
  color: rgba(241, 232, 209, 0.58);
  font-family: "SF Mono", Consolas, monospace;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.account-metrics strong {
  max-width: 150px;
  overflow: hidden;
  color: #ffe7a0;
  font-family: "SF Mono", Consolas, monospace;
  font-size: 11px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.eyebrow,
.status-label {
  margin: 0;
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
}

.topbar h1 {
  max-width: 310px;
  margin: 5px 0 0;
  overflow: hidden;
  color: var(--gold);
  font-size: 13px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.icon-button,
.modal-close {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--gold);
  background: rgba(255, 255, 255, 0.03);
}

.status-band {
  display: block;
  position: relative;
  margin-top: 22px;
  padding: 24px 18px 18px;
  border: 2px solid rgba(212, 175, 55, 0.28);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.015)),
    linear-gradient(160deg, rgba(184, 115, 51, 0.08), rgba(18, 18, 20, 0.2));
  box-shadow: var(--shadow-gold);
}

.status-band::before {
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  background: linear-gradient(90deg, transparent, rgba(255, 191, 0, 0.16), transparent);
  content: "";
  opacity: 0.45;
}

.points-readout {
  margin-top: 6px;
  font-size: clamp(42px, 12vw, 62px);
  font-weight: 800;
  line-height: 1;
  color: transparent;
  background: linear-gradient(92deg, #8e4d20, #ffdc73 36%, #b87333 68%, #f2c95e);
  -webkit-background-clip: text;
  background-clip: text;
  text-shadow: 0 0 28px rgba(255, 191, 0, 0.18);
}

.pt-earn-button {
  display: inline-flex;
  width: 100%;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  margin-top: 14px;
  border: 1px solid rgba(255, 191, 0, 0.58);
  border-radius: 999px;
  color: #171006;
  background:
    linear-gradient(135deg, #fff3aa, #ffbf00 38%, #b87333 74%, #ffe27a),
    #ffbf00;
  box-shadow: 0 0 24px rgba(255, 191, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.55);
  font-size: 0.92rem;
  font-weight: 900;
  letter-spacing: 0;
  text-align: center;
  animation: pt-earn-pulse 1.7s ease-in-out infinite;
}

.pt-earn-button:disabled {
  cursor: not-allowed;
  color: rgba(241, 232, 209, 0.62);
  background: linear-gradient(135deg, rgba(85, 85, 85, 0.92), rgba(24, 24, 24, 0.95));
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow: none;
  filter: grayscale(1);
  animation: none;
}

.daily-free-pt-button,
#ptEarnButton {
  display: grid;
  min-height: 54px;
  gap: 2px;
  padding: 7px 14px;
  line-height: 1.15;
}

.daily-free-pt-button span,
.daily-free-pt-button small,
#ptEarnButton span,
#ptEarnButton small {
  display: block;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.daily-free-pt-button span,
#ptEarnButton span {
  font-size: 0.9rem;
  font-weight: 900;
}

.daily-free-pt-button small,
#ptEarnButton small {
  font-size: 0.68rem;
  font-weight: 700;
  opacity: 0.82;
}

.daily-reward {
  margin: 9px 0 0;
  color: rgba(241, 232, 209, 0.8);
  font-size: 14px;
}

.deposit-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(212, 175, 55, 0.16);
  color: var(--muted);
  font-size: 13px;
}

.deposit-line strong {
  color: var(--amber);
  font-size: 18px;
}

.zero-state {
  margin-top: 14px;
  padding: 13px 14px;
  border: 1px solid rgba(255, 191, 0, 0.28);
  border-radius: var(--radius);
  background: rgba(255, 191, 0, 0.07);
  color: #ffe4a0;
  font-size: 13px;
  line-height: 1.55;
}

.zero-state p {
  margin: 0;
}

.mode-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 18px 0;
}

.mode-tab {
  min-height: 44px;
  border: 1px solid rgba(212, 175, 55, 0.18);
  border-radius: var(--radius);
  color: var(--muted);
  background: rgba(255, 255, 255, 0.035);
}

.mode-tab.active {
  color: #17110b;
  background: linear-gradient(120deg, #8f5624, #f0c654 54%, #b87333);
  box-shadow: 0 0 22px rgba(255, 191, 0, 0.2);
}

.image-mode-tabs {
  gap: 10px;
  align-items: stretch;
}

.image-mode-tab {
  position: relative;
  min-height: clamp(74px, 18vw, 132px);
  padding: 0;
  overflow: hidden;
  border-color: rgba(212, 175, 55, 0.38);
  background: #030403;
  box-shadow: inset 0 0 24px rgba(0, 0, 0, 0.75), 0 12px 28px rgba(0, 0, 0, 0.25);
}

.image-mode-tab::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 0%, rgba(255, 229, 155, 0.18) 42%, transparent 58%);
  opacity: 0;
  transform: translateX(-45%);
  transition: opacity 180ms ease, transform 420ms ease;
  pointer-events: none;
}

.image-mode-tab img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
  filter: saturate(1.08) contrast(1.08);
}

.image-mode-tab.active {
  color: inherit;
  background: #030403;
  border-color: rgba(255, 191, 0, 0.72);
  box-shadow: 0 0 0 1px rgba(255, 221, 135, 0.26), 0 0 26px rgba(255, 191, 0, 0.24);
}

.image-mode-tab:active {
  transform: translateY(2px) scale(0.992);
}

.image-mode-tab:hover::after,
.image-mode-tab.active::after {
  opacity: 1;
  transform: translateX(35%);
}

.view {
  display: none;
}

.view[hidden] {
  display: none !important;
}

.view.active {
  display: block;
}

.referral-entry-banner,
.referral-hero-banner {
  position: relative;
  width: 100%;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 191, 0, 0.48);
  border-radius: var(--radius);
  background: #030403;
  box-shadow: inset 0 0 28px rgba(0, 0, 0, 0.7), 0 16px 34px rgba(0, 0, 0, 0.32);
}

.referral-entry-banner {
  display: block;
  min-height: clamp(88px, 24vw, 154px);
  margin: 0 0 14px;
}

.referral-entry-banner img,
.referral-hero-banner img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(1.08) contrast(1.08);
}

.referral-entry-banner::after,
.referral-hero-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 0%, rgba(255, 240, 180, 0.22) 48%, transparent 64%);
  transform: translateX(-120%);
  animation: exchangeGlint 3.4s ease-in-out infinite;
  pointer-events: none;
}

.referral-entry-banner:active,
.referral-hero-banner:active {
  transform: translateY(2px) scale(0.995);
}

.referral-view {
  padding-bottom: 28px;
}

.referral-page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 12px;
}

.referral-page-header span {
  color: #ffdf73;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.referral-hero-banner {
  display: block;
  min-height: clamp(172px, 48vw, 340px);
  margin-bottom: 14px;
}

.referral-code-section,
.referral-page-card {
  border: 1px solid rgba(212, 175, 55, 0.34);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 82% 0%, rgba(255, 191, 0, 0.14), transparent 54%),
    linear-gradient(145deg, rgba(12, 38, 26, 0.96), rgba(6, 6, 7, 0.96));
  box-shadow: inset 0 0 32px rgba(255, 191, 0, 0.07), 0 16px 34px rgba(0, 0, 0, 0.28);
}

.referral-code-section {
  display: grid;
  gap: 10px;
  margin-bottom: 12px;
  padding: 16px;
}

.referral-code-section span {
  color: rgba(241, 232, 209, 0.7);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.referral-code-section strong {
  color: #ffdf73;
  font-family: "SF Mono", Consolas, monospace;
  font-size: clamp(26px, 9vw, 42px);
  letter-spacing: 0.08em;
  text-shadow: 0 0 24px rgba(255, 191, 0, 0.34);
}

.referral-code-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 9px;
}

.referral-card-action,
.referral-card-download {
  min-height: 44px;
}

.referral-card-download {
  align-items: center;
  justify-content: center;
  text-align: center;
  text-decoration: none;
}

.referral-card-preview {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  margin-top: 4px;
  border: 1px solid rgba(255, 191, 0, 0.32);
  border-radius: 8px;
  background: #000;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.34);
}

.referral-card-preview[hidden],
.referral-card-download[hidden] {
  display: none;
}

.referral-card-note {
  color: rgba(241, 232, 209, 0.62);
  font-size: 11px;
  line-height: 1.6;
}

.friend-rank-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  gap: 14px;
  margin-bottom: 12px;
  padding: 18px;
  border: 1px solid rgba(255, 220, 115, 0.68);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 82% 10%, rgba(40, 255, 129, 0.15), transparent 42%),
    radial-gradient(circle at 8% 0%, rgba(255, 191, 0, 0.14), transparent 38%),
    linear-gradient(145deg, #07140e, #020303 72%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 236, 160, 0.08),
    inset 0 0 42px rgba(36, 255, 130, 0.05),
    0 0 28px rgba(22, 197, 95, 0.1),
    0 18px 38px rgba(0, 0, 0, 0.38);
}

.friend-rank-card::before,
.friend-rank-card::after {
  position: absolute;
  z-index: -1;
  content: "";
}

.friend-rank-card::before {
  inset: 6px;
  border: 1px solid rgba(212, 175, 55, 0.18);
  border-radius: calc(var(--radius) - 3px);
}

.friend-rank-card::after {
  top: -70%;
  left: -18%;
  width: 34%;
  height: 220%;
  transform: rotate(24deg);
  background: linear-gradient(90deg, transparent, rgba(255, 241, 168, 0.12), transparent);
  animation: friend-rank-sheen 6s ease-in-out infinite;
}

.friend-rank-card-glint {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fff1a8;
  box-shadow: 0 0 8px #fff1a8, -26px 18px 0 -2px #36d879, -26px 18px 8px #36d879;
}

.friend-rank-card-header,
.friend-rank-progress-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.friend-rank-card-header span {
  color: #ffdf73;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.18em;
}

.friend-rank-card-header small {
  color: #62eb9a;
  font-size: 10px;
  font-weight: 900;
}

.friend-rank-title {
  display: flex;
  align-items: center;
  gap: 13px;
}

.friend-rank-crown {
  display: grid;
  width: 50px;
  height: 50px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(255, 220, 115, 0.55);
  border-radius: 50%;
  color: #ffdf73;
  background: rgba(255, 191, 0, 0.08);
  font-size: 27px;
  box-shadow: inset 0 0 16px rgba(255, 191, 0, 0.1), 0 0 18px rgba(42, 217, 113, 0.16);
}

.friend-rank-title small,
.friend-rank-metrics span,
.friend-rank-total span {
  display: block;
  color: rgba(241, 232, 209, 0.62);
  font-size: 10px;
  font-weight: 900;
}

.friend-rank-title strong {
  display: block;
  margin-top: 3px;
  color: #fff1a8;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(25px, 8vw, 38px);
  text-shadow: 0 0 20px rgba(255, 191, 0, 0.28);
}

.friend-rank-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.friend-rank-metrics article,
.friend-rank-total {
  min-width: 0;
  padding: 11px;
  border: 1px solid rgba(212, 175, 55, 0.18);
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.22);
}

.friend-rank-metrics strong,
.friend-rank-total strong {
  display: block;
  margin-top: 5px;
  overflow-wrap: anywhere;
  color: #f8e7ad;
  font-family: "SF Mono", Consolas, monospace;
  font-size: 16px;
}

.friend-rank-metrics .friend-rank-rate {
  border-color: rgba(53, 223, 125, 0.4);
  box-shadow: inset 0 0 18px rgba(53, 223, 125, 0.06);
}

.friend-rank-metrics .friend-rank-rate strong {
  color: #5ff19c;
  font-size: 22px;
  text-shadow: 0 0 14px rgba(53, 223, 125, 0.32);
}

.friend-rank-total {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
}

.friend-rank-total strong {
  color: #ffdf73;
  font-size: 20px;
  white-space: nowrap;
}

.friend-rank-history {
  position: relative;
  margin: 12px 0 0;
  border: 1px solid rgba(212, 175, 55, .35);
  border-radius: 10px;
  padding: 12px 14px;
  color: #ead68a;
}
.friend-rank-history summary { cursor: pointer; font-weight: 700; }
.friend-rank-history .partner-reward-row { border-top: 1px solid rgba(212, 175, 55, .25); padding: 12px 0; }
.friend-rank-history .reward-record-id { display: block; overflow-wrap: anywhere; opacity: .75; }
.friend-rank-routes p { font-size: 12px; line-height: 1.7; letter-spacing: normal; }
.friend-rank-route-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 14px 0; }
.friend-rank-route { border: 1px solid rgba(212, 175, 55, .35); background: rgba(0, 20, 13, .5); border-radius: 10px; padding: 12px; min-width: 0; }
.friend-rank-route h3 { margin: 0; font-size: 13px; line-height: 1.6; letter-spacing: normal; }
.friend-rank-route > strong { display: block; font-size: 17px; color: #ffe485; overflow-wrap: anywhere; }
.friend-rank-route > span { display: block; margin: 6px 0; font-size: 12px; }
#friendRankCard [hidden] { display: none !important; }
@media (max-width: 639px) { .friend-rank-route-grid { grid-template-columns: 1fr; } }

.friend-rank-progress {
  display: grid;
  gap: 9px;
  padding: 12px;
  border: 1px solid rgba(212, 175, 55, 0.28);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.22);
}

.friend-rank-next {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  color: #f8e7ad;
  font-size: 14px;
}

.friend-rank-next strong {
  min-width: 0;
  overflow-wrap: anywhere;
}

.friend-rank-progress .friend-rank-progress-caption {
  margin: 0;
  color: #62eb9a;
  font-size: 14px;
  font-weight: 700;
}

.friend-rank-progress-label span,
.friend-rank-progress-label strong {
  color: rgba(241, 232, 209, 0.72);
  font-family: "SF Mono", Consolas, monospace;
  font-size: 13px;
}

.friend-rank-progress-label strong {
  color: #62eb9a;
}

.friend-rank-progress-track {
  overflow: hidden;
  height: 9px;
  border: 1px solid rgba(212, 175, 55, 0.25);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.58);
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.7);
}

.friend-rank-progress-track span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #7f5d16, #d4af37 48%, #3ce281);
  box-shadow: 0 0 16px rgba(60, 226, 129, 0.44);
  transition: width 700ms cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes friend-rank-sheen {
  0%,
  68% {
    transform: translateX(-180%) rotate(24deg);
  }

  100% {
    transform: translateX(460%) rotate(24deg);
  }
}

.referral-page-card {
  display: grid;
  gap: 10px;
  margin-bottom: 12px;
  padding: 16px;
}

.referral-page-card h2 {
  margin: 0;
  color: #ffe7a0;
  font-size: 19px;
}

.referral-page-card p,
.referral-note-list li {
  margin: 0;
  color: rgba(241, 232, 209, 0.76);
  font-size: 13px;
  line-height: 1.7;
}

.referral-points-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
}

.referral-points-box {
  min-width: 0;
  padding: 14px;
  border: 2px solid;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.28);
  overflow-wrap: anywhere;
}

.referral-points-box--eligible { border-color: #5ba779; }
.referral-points-box--excluded { border-color: #bc9550; }

.referral-points-box h3 {
  margin: 0 0 12px;
  color: #fff0be;
  font-size: 18px;
  line-height: 1.5;
}

.referral-points-box--eligible h3 { color: #9cf1b9; }

.referral-points-prefix {
  display: block;
  margin-bottom: 3px;
  font-size: 13px;
  font-weight: 400;
}

.referral-points-box ul {
  display: grid;
  gap: 9px;
  padding-left: 19px;
  margin: 0 0 12px;
  color: #f1e8d1;
  font-size: 13px;
  line-height: 1.7;
}

.referral-points-box li span {
  display: block;
  color: rgba(241, 232, 209, 0.72);
  font-size: 12px;
}

@media (min-width: 640px) {
  .app-shell:has(#referralView.active) {
    width: min(100%, 900px);
    max-width: 900px;
  }
  .referral-points-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.referral-steps {
  display: grid;
  gap: 9px;
}

.referral-steps article {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 10px;
  border: 1px solid rgba(255, 191, 0, 0.2);
  border-radius: var(--radius);
  background: rgba(0, 0, 0, 0.2);
}

.referral-steps span {
  color: #ffbf00;
  font-family: "SF Mono", Consolas, monospace;
  font-size: 12px;
  font-weight: 900;
}

.referral-note-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 18px;
}

.referral-guideline-card {
  background:
    radial-gradient(circle at 20% 0%, rgba(112, 255, 128, 0.1), transparent 42%),
    radial-gradient(circle at 90% 8%, rgba(255, 191, 0, 0.14), transparent 48%),
    linear-gradient(145deg, rgba(9, 27, 20, 0.98), rgba(5, 5, 6, 0.98));
}

.referral-guideline-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.referral-guideline-grid article,
.referral-disclaimer {
  padding: 12px;
  border: 1px solid rgba(212, 175, 55, 0.22);
  border-radius: var(--radius);
  background: rgba(0, 0, 0, 0.22);
}

.referral-guideline-card h3 {
  margin: 0 0 8px;
  color: #ffdf73;
  font-size: 14px;
}

.referral-guideline-card ul {
  display: grid;
  gap: 5px;
  margin: 0;
  padding-left: 18px;
}

.referral-guideline-card li {
  color: rgba(241, 232, 209, 0.76);
  font-size: 12px;
  line-height: 1.55;
}

.referral-page-faq {
  display: grid;
  gap: 8px;
}

.referral-page-faq details {
  padding: 10px 11px;
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: var(--radius);
  background: rgba(0, 0, 0, 0.2);
}

.referral-page-faq summary {
  color: #ffe7a0;
  cursor: pointer;
  font-size: 13px;
  font-weight: 900;
}

.referral-page-faq p {
  margin-top: 8px;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  margin-top: 4px;
}

.section-head h2 {
  margin: 0;
  color: var(--gold);
  font-size: 18px;
}

.section-head span {
  color: var(--muted);
  font-size: 12px;
}

.asset-value-panel {
  margin: 2px 0 14px;
  padding: 15px 14px;
  border: 1px solid rgba(212, 175, 55, 0.28);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 86% 0%, rgba(255, 191, 0, 0.12), transparent 46%),
    linear-gradient(145deg, rgba(16, 43, 28, 0.88), rgba(5, 6, 7, 0.94));
  box-shadow: inset 0 0 30px rgba(255, 191, 0, 0.05), 0 16px 34px rgba(0, 0, 0, 0.28);
}

.asset-value-panel h2 {
  margin: 4px 0 6px;
  color: #ffe7a0;
  font-size: 17px;
}

.asset-value-panel > strong {
  display: block;
  color: #ffbf00;
  font-family: "SF Mono", Consolas, monospace;
  font-size: clamp(26px, 8vw, 38px);
  line-height: 1;
  text-shadow: 0 0 24px rgba(255, 191, 0, 0.34);
}

.point-cap-notice {
  margin: 0 0 18px;
  padding: 16px;
  border: 1px solid rgba(255, 191, 0, 0.48);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 84% 0%, rgba(255, 191, 0, 0.16), transparent 48%),
    linear-gradient(145deg, rgba(49, 11, 11, 0.92), rgba(7, 7, 8, 0.94));
  box-shadow: inset 0 0 34px rgba(255, 191, 0, 0.08), 0 16px 34px rgba(0, 0, 0, 0.34);
}

.point-cap-notice strong {
  display: block;
  color: #ffbf00;
  font-size: 17px;
  letter-spacing: 0;
}

.point-cap-notice dl {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 12px 0;
}

.point-cap-notice dl > div {
  min-width: 0;
  padding: 10px;
  border: 1px solid rgba(212, 175, 55, 0.18);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.28);
}

.point-cap-notice dt {
  color: rgba(241, 232, 209, 0.66);
  font-size: 11px;
}

.point-cap-notice dd {
  margin: 4px 0 0;
  color: #ffe7a0;
  font-family: "SF Mono", Consolas, monospace;
  font-size: 16px;
}

.point-cap-notice p {
  margin: 0;
  color: rgba(241, 232, 209, 0.78);
  font-size: 12px;
  line-height: 1.6;
}

.bonus-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.bonus-row span {
  min-width: 0;
  padding: 9px 8px;
  border: 1px solid rgba(212, 175, 55, 0.16);
  border-radius: var(--radius);
  color: rgba(241, 232, 209, 0.68);
  background: rgba(0, 0, 0, 0.22);
  font-size: 11px;
}

.bonus-row b {
  display: block;
  margin-top: 2px;
  color: #ffe7a0;
  font-family: "SF Mono", Consolas, monospace;
  font-size: 12px;
}

.collection-rail {
  display: grid;
  grid-auto-columns: minmax(236px, 74%);
  grid-auto-flow: column;
  gap: 12px;
  margin: 14px -16px 0;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 0 16px 12px;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
}

.ingot-card {
  min-height: 228px;
  scroll-snap-align: start;
  border: 1px solid rgba(212, 175, 55, 0.18);
  border-radius: var(--radius);
  background:
    linear-gradient(150deg, rgba(212, 175, 55, 0.1), transparent 40%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015));
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.36);
  padding: 16px;
}

.serial {
  font-family: "SF Mono", Consolas, monospace;
  color: var(--gold);
  font-size: 32px;
  font-weight: 800;
}

.ingot-status {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  margin-top: 8px;
  padding: 0 9px;
  border-radius: 999px;
  color: #221508;
  background: linear-gradient(90deg, #d4af37, #b87333);
  font-size: 12px;
  font-weight: 700;
}

.ingot-status.recovered {
  color: #ffdf84;
  background: rgba(255, 191, 0, 0.11);
  border: 1px solid rgba(255, 191, 0, 0.35);
}

.price-line,
.countdown-line {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 13px;
}

.price-line strong {
  color: var(--text);
}

.countdown-line strong {
  color: var(--amber);
}

.primary-action,
.secondary-action,
.danger-action {
  width: 100%;
  min-height: 48px;
  border: 2px solid rgba(212, 175, 55, 0.28);
  border-radius: var(--radius);
  font-weight: 800;
}

.primary-action {
  margin-top: 22px;
  color: #18100b;
  background: linear-gradient(120deg, #9b5b25, #f3ce62 52%, #b87333);
  box-shadow: 0 0 18px rgba(255, 191, 0, 0.22);
}

.secondary-action {
  color: var(--gold);
  background: rgba(255, 255, 255, 0.04);
}

.danger-action {
  color: #fff1d3;
  background: linear-gradient(120deg, #5c2417, #b87333);
}

.primary-action:disabled,
.secondary-action:disabled,
.danger-action:disabled {
  cursor: not-allowed;
  opacity: 0.44;
  box-shadow: none;
}

.secondary-action.armed {
  color: #18100b;
  background: linear-gradient(120deg, #ffdc73, #b87333);
  box-shadow: 0 0 26px rgba(255, 191, 0, 0.38);
}

.game-stack {
  display: grid;
  gap: 14px;
}

.single-game-active .topbar,
.single-game-active .status-band,
.single-game-active .zero-state,
.single-game-active .mode-tabs {
  display: none;
}

.single-game-active .app-shell {
  padding-top: max(10px, env(safe-area-inset-top));
}

.game-router {
  position: relative;
  min-height: 62vh;
}

.game-router.floor-shift {
  animation: floor-fade 420ms ease-out;
}

.game-route {
  display: none;
}

.game-route.active {
  display: block;
}

.lobby-route {
  min-height: calc(100vh - 260px);
  padding: 16px 0 22px;
  background:
    radial-gradient(ellipse at 50% 16%, rgba(12, 92, 49, 0.34), transparent 20rem),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.025) 0 2px, transparent 2px 10px);
}

.lobby-head {
  padding: 10px 2px 14px;
}

.lobby-head h2 {
  margin: 4px 0 6px;
  color: transparent;
  background: linear-gradient(92deg, #8e4d20, #ffdc73 42%, #b87333 72%, #fff1a8);
  -webkit-background-clip: text;
  background-clip: text;
  font-size: 30px;
  line-height: 1.05;
}

.lobby-head p:last-child {
  margin: 0;
  color: rgba(241, 232, 209, 0.72);
  font-size: 13px;
}

.lobby-hero {
  display: grid;
  gap: 6px;
  justify-items: center;
  margin: 0 0 12px;
  text-align: center;
}

.lobby-hero img {
  width: min(78%, 420px);
  display: block;
  max-height: 260px;
  aspect-ratio: auto;
  object-fit: contain;
  object-position: center;
  border: 0;
  background: transparent;
  filter: drop-shadow(0 18px 28px rgba(0, 0, 0, 0.72)) drop-shadow(0 0 18px rgba(255, 191, 0, 0.14));
}

.lobby-hero p {
  margin: 0;
  color: #ffe39a;
  font-family: "Noto Serif JP", "Yu Mincho", "Hiragino Mincho ProN", "Yu Gothic", "Meiryo", serif;
  font-size: clamp(18px, 5vw, 28px);
  font-weight: 900;
  letter-spacing: 0;
  text-shadow: 0 0 8px rgba(255, 191, 0, 0.5), 0 0 18px rgba(184, 115, 51, 0.44);
  animation: lastLaughGlow 2.6s ease-in-out infinite;
}

.game-lobby-point-meter {
  width: min(100%, 420px);
  margin: 2px auto 0;
  padding: 7px 10px 6px;
  border-top: 1px solid rgba(212, 175, 55, 0.42);
  border-bottom: 1px solid rgba(212, 175, 55, 0.24);
  color: rgba(241, 232, 209, 0.78);
  text-align: left;
}

.game-lobby-point-meter__summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: baseline;
  gap: 8px;
  min-width: 0;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

.game-lobby-point-meter__summary span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.game-lobby-point-meter__summary strong {
  color: #ffe39a;
  font-family: "SF Mono", Consolas, monospace;
  font-size: 13px;
}

.game-lobby-point-meter__summary small {
  color: rgba(255, 227, 154, 0.72);
  font-family: "SF Mono", Consolas, monospace;
  font-size: 10px;
}

.game-lobby-point-meter__track {
  height: 5px;
  margin-top: 5px;
  overflow: hidden;
  border: 1px solid rgba(212, 175, 55, 0.25);
  border-radius: 999px;
  background: rgba(3, 14, 9, 0.82);
}

.game-lobby-point-meter__track i {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #a67c22, #f4d35e, #fff1a8);
  transition: width 180ms ease-out;
}

.game-lobby-point-meter__warning {
  display: block;
  margin-top: 3px;
  color: #f3c86a;
  font-size: 10px;
  font-weight: 800;
}

@keyframes lastLaughGlow {
  0%,
  100% {
    filter: brightness(0.96);
    text-shadow: 0 0 8px rgba(255, 191, 0, 0.38), 0 0 18px rgba(184, 115, 51, 0.34);
  }

  50% {
    filter: brightness(1.12);
    text-shadow: 0 0 12px rgba(255, 226, 150, 0.72), 0 0 26px rgba(255, 191, 0, 0.42);
  }
}

.lobby-balance-panel {
  position: relative;
  z-index: 12;
  top: 8px;
  display: grid;
  gap: 5px;
  margin: 4px 0 16px;
  padding: 11px 14px 10px;
  border: 2px solid rgba(212, 175, 55, 0.34);
  border-radius: var(--radius);
  background:
    linear-gradient(120deg, rgba(9, 41, 25, 0.96), rgba(5, 8, 6, 0.94)),
    radial-gradient(circle at 50% 0%, rgba(255, 191, 0, 0.18), transparent 72%);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.42), var(--shadow-gold);
  backdrop-filter: blur(10px);
}

.asset-balance-panel {
  top: 0;
  margin-top: 0;
}

.vault-asset-dashboard {
  margin-bottom: 14px;
}

#homeView {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 0;
}

#homeView > * {
  grid-column: 1 / -1;
}

#homeView > .asset-balance-panel,
#homeView > .vault-asset-dashboard,
#homeView > .asset-value-panel {
  position: relative;
  margin: 0;
  border-color: rgba(212, 175, 55, 0.28);
  background:
    radial-gradient(circle at 92% 0%, rgba(255, 191, 0, 0.12), transparent 48%),
    linear-gradient(145deg, rgba(7, 42, 34, 0.9), rgba(6, 12, 13, 0.95));
  box-shadow: inset 0 0 24px rgba(255, 191, 0, 0.05);
}

#homeView > .asset-balance-panel {
  grid-column: 1 / 2;
  min-height: 96px;
  align-content: center;
  border-width: 1px 0 1px 1px;
  border-radius: var(--radius) 0 0 0;
  padding: 14px 16px;
}

#homeView > .vault-asset-dashboard {
  grid-column: 2 / 3;
  align-self: stretch;
}

#homeView > .vault-asset-dashboard .dashboard-card {
  height: 100%;
  padding: 14px 14px 12px;
  border-width: 1px 1px 1px 0;
  border-radius: 0 var(--radius) 0 0;
  background: transparent;
  box-shadow: none;
}

#homeView > .vault-asset-dashboard .dashboard-card h3 {
  margin: 3px 0 5px;
  font-size: 14px;
}

#homeView > .vault-asset-dashboard .dashboard-card strong {
  margin-bottom: 8px;
  font-size: clamp(18px, 4.8vw, 24px);
}

#homeView > .vault-asset-dashboard .compact-action {
  min-height: 36px;
  padding: 0 12px;
  font-size: 12px;
}

#homeView > .asset-value-panel {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 4px 14px;
  align-items: end;
  padding: 13px 16px 14px;
  border-width: 0 1px 1px;
  border-radius: 0 0 var(--radius) var(--radius);
}

#homeView > .asset-value-panel .eyebrow,
#homeView > .asset-value-panel h2,
#homeView > .asset-value-panel > strong {
  grid-column: 1 / 2;
}

#homeView > .asset-value-panel h2 {
  margin: 2px 0 4px;
  font-size: 15px;
}

#homeView > .asset-value-panel > strong {
  font-size: clamp(25px, 7vw, 34px);
}

#homeView > .asset-value-panel .bonus-row {
  grid-column: 2 / 3;
  align-self: stretch;
  margin-top: 0;
}

#homeView > .section-head {
  margin-top: 16px;
}

.asset-summary-card {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 0;
  margin: 0 0 16px;
}

.asset-summary-card > .asset-balance-panel,
.asset-summary-card > .vault-asset-dashboard,
.asset-summary-card > .asset-value-panel {
  position: relative;
  margin: 0;
  border-color: rgba(212, 175, 55, 0.28);
  background:
    radial-gradient(circle at 92% 0%, rgba(255, 191, 0, 0.12), transparent 48%),
    linear-gradient(145deg, rgba(7, 42, 34, 0.9), rgba(6, 12, 13, 0.95));
  box-shadow: inset 0 0 24px rgba(255, 191, 0, 0.05);
}

.asset-summary-card > .asset-balance-panel {
  grid-column: 1 / 2;
  min-height: 96px;
  align-content: center;
  border-width: 1px 0 1px 1px;
  border-radius: var(--radius) 0 0 0;
  padding: 14px 16px;
}

.asset-summary-card > .vault-asset-dashboard {
  grid-column: 2 / 3;
  align-self: stretch;
}

.asset-summary-card > .vault-asset-dashboard .dashboard-card {
  height: 100%;
  padding: 14px 14px 12px;
  border-width: 1px 1px 1px 0;
  border-radius: 0 var(--radius) 0 0;
  background: transparent;
  box-shadow: none;
}

.asset-summary-card > .vault-asset-dashboard .dashboard-card h3 {
  margin: 3px 0 5px;
  font-size: 14px;
}

.asset-summary-card > .vault-asset-dashboard .dashboard-card strong {
  margin-bottom: 8px;
  font-size: clamp(18px, 4.8vw, 24px);
}

.asset-summary-card > .vault-asset-dashboard .compact-action {
  min-height: 36px;
  padding: 0 12px;
  font-size: 12px;
}

.asset-summary-card > .asset-value-panel {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 4px 14px;
  align-items: end;
  padding: 13px 16px 14px;
  border-width: 0 1px 1px;
  border-radius: 0 0 var(--radius) var(--radius);
}

.asset-summary-card > .asset-value-panel .eyebrow,
.asset-summary-card > .asset-value-panel h2,
.asset-summary-card > .asset-value-panel > strong {
  grid-column: 1 / 2;
}

.asset-summary-card > .asset-value-panel h2 {
  margin: 2px 0 4px;
  font-size: 15px;
}

.asset-summary-card > .asset-value-panel > strong {
  font-size: clamp(25px, 7vw, 34px);
}

.asset-summary-card > .asset-value-panel .bonus-row {
  grid-column: 2 / 3;
  align-self: stretch;
  margin-top: 0;
}

.game-action-hub {
  display: grid;
  gap: 10px;
  margin: 0 0 14px;
}

.game-referral-banner {
  margin: 0;
}

.vault-referral-banner {
  margin: 0 0 16px;
}

.game-top-hero {
  display: none;
}

body:has(#gamesView.active) .game-top-hero {
  display: grid;
}

body.single-game-active .game-top-hero {
  display: none;
}

body:has(#referralView.active) .vault-referral-banner {
  display: none;
}

body:has(#gamesView.active) .vault-referral-banner {
  display: none;
}

.game-action-hub .lobby-pt-earn-button {
  width: 100%;
  min-height: 48px;
}

.lobby-balance-panel span {
  color: rgba(241, 232, 209, 0.72);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.16em;
}

.lobby-balance-panel strong {
  color: transparent;
  background: linear-gradient(92deg, #fff1a8, #ffbf00 42%, #b87333 74%, #f7dd8a);
  -webkit-background-clip: text;
  background-clip: text;
  font-family: "SF Mono", Consolas, monospace;
  font-size: clamp(20px, 6vw, 28px);
  line-height: 1;
  text-shadow: 0 0 26px rgba(255, 191, 0, 0.28);
}

.asset-dashboard {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-bottom: 14px;
}

.dashboard-card {
  min-width: 0;
  padding: 13px 12px;
  border: 1px solid rgba(212, 175, 55, 0.28);
  border-radius: var(--radius);
  background:
    linear-gradient(150deg, rgba(20, 37, 28, 0.96), rgba(7, 8, 8, 0.94)),
    radial-gradient(circle at 20% 0%, rgba(255, 191, 0, 0.12), transparent 72%);
  box-shadow: inset 0 0 28px rgba(255, 191, 0, 0.05), 0 14px 32px rgba(0, 0, 0, 0.32);
}

.dashboard-card h3 {
  margin: 4px 0 8px;
  color: #ffe7a0;
  font-size: 16px;
}

.dashboard-card strong {
  display: block;
  margin-bottom: 10px;
  color: #ffbf00;
  font-family: "SF Mono", Consolas, monospace;
  font-size: 20px;
}

.dashboard-card p:not(.eyebrow) {
  margin: 0 0 10px;
  color: rgba(241, 232, 209, 0.74);
  font-size: 12px;
  line-height: 1.55;
}

.ingot-purchase-panel {
  display: grid;
  gap: 14px;
  margin: 0 0 18px;
  padding: 16px;
  max-width: 100%;
  box-sizing: border-box;
  border: 2px solid rgba(212, 175, 55, 0.38);
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, rgba(2, 28, 17, 0.96), rgba(7, 7, 8, 0.94)),
    radial-gradient(circle at 18% 0%, rgba(255, 191, 0, 0.2), transparent 58%);
  box-shadow: inset 0 0 34px rgba(255, 191, 0, 0.08), 0 18px 42px rgba(0, 0, 0, 0.42);
}

.ingot-purchase-panel.locked {
  border-color: rgba(255, 191, 0, 0.72);
  box-shadow: inset 0 0 44px rgba(255, 191, 0, 0.14), 0 0 28px rgba(255, 191, 0, 0.2);
}

.ingot-purchase-panel h3 {
  margin: 3px 0 6px;
  color: #ffe7a0;
  font-size: 21px;
}

.ingot-purchase-panel p {
  margin: 0;
  color: rgba(241, 232, 209, 0.76);
  font-size: 13px;
  line-height: 1.6;
}

.cap-message-line {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.detail-button {
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid rgba(212, 175, 55, 0.36);
  border-radius: 999px;
  color: #ffe7a0;
  background: rgba(0, 0, 0, 0.28);
  font-size: 11px;
  font-weight: 900;
  white-space: nowrap;
}

.detail-button:active {
  transform: translateY(1px);
}

.cap-meter {
  position: relative;
  overflow: hidden;
  height: 28px;
  margin-top: 12px;
  border: 1px solid rgba(212, 175, 55, 0.28);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.42);
}

.cap-meter span {
  position: relative;
  z-index: 1;
  display: grid;
  height: 100%;
  place-items: center;
  color: #fff1a8;
  font-family: "SF Mono", Consolas, monospace;
  font-size: 12px;
  font-weight: 900;
}

.cap-meter i {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0%;
  background: linear-gradient(90deg, rgba(184, 115, 51, 0.62), rgba(255, 191, 0, 0.82));
  box-shadow: 0 0 18px rgba(255, 191, 0, 0.28);
}

.exchange-button {
  position: relative;
  width: 100%;
  min-height: 48px;
  margin-top: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 221, 135, 0.52);
  border-radius: var(--radius);
  color: #1c1207;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.28), transparent 35%, rgba(255, 255, 255, 0.16) 62%, transparent),
    linear-gradient(135deg, #8f5624, #ffdc73 45%, #b87333 72%, #5c3217);
  box-shadow: inset 0 -4px 0 rgba(66, 34, 10, 0.36), 0 0 24px rgba(255, 191, 0, 0.22);
  font-family: "Noto Serif JP", "Yu Mincho", "Hiragino Mincho ProN", "Yu Gothic", "Meiryo", serif;
  font-size: 17px;
  font-weight: 900;
}

.exchange-button::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 0%, rgba(255, 255, 255, 0.32) 48%, transparent 64%);
  transform: translateX(-120%);
  animation: exchangeGlint 3.1s ease-in-out infinite;
  pointer-events: none;
}

.exchange-button:active {
  transform: translateY(2px);
  box-shadow: inset 0 3px 8px rgba(0, 0, 0, 0.34), 0 0 14px rgba(255, 191, 0, 0.18);
}

@keyframes exchangeGlint {
  0%,
  44% {
    transform: translateX(-120%);
  }

  64%,
  100% {
    transform: translateX(120%);
  }
}

.purchase-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.exchange-options.open {
  animation: exchangeReveal 220ms ease-out both;
}

.exchange-view {
  min-height: 100vh;
  padding: 0 0 30px;
}

.exchange-dedicated-route {
  display: block;
  min-height: 100vh;
  padding: 0 0 28px;
}

.exchange-screen-panel {
  display: grid;
  gap: 14px;
  margin-top: 14px;
  padding: 18px 16px;
  border: 2px solid rgba(212, 175, 55, 0.42);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 191, 0, 0.14), transparent 54%),
    linear-gradient(145deg, rgba(15, 43, 28, 0.96), rgba(6, 7, 8, 0.96));
  box-shadow: inset 0 0 44px rgba(255, 191, 0, 0.08), 0 18px 44px rgba(0, 0, 0, 0.34);
}

.exchange-screen-panel h2 {
  margin: 0;
  color: #ffe7a0;
  font-size: 24px;
}

.exchange-screen-panel p:not(.eyebrow) {
  margin: 0;
  color: rgba(241, 232, 209, 0.76);
  font-size: 13px;
  line-height: 1.7;
}

.exchange-category {
  display: grid;
  gap: 10px;
}

.exchange-category h3 {
  margin: 4px 0 0;
  color: #ffdf6f;
  font-size: 15px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

@keyframes exchangeReveal {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.purchase-card {
  display: grid;
  gap: 6px;
  min-height: 106px;
  padding: 13px 10px;
  border: 1px solid rgba(212, 175, 55, 0.42);
  border-radius: var(--radius);
  color: #fff1a8;
  background:
    linear-gradient(150deg, rgba(22, 47, 31, 0.96), rgba(5, 5, 6, 0.96)),
    radial-gradient(circle at 50% 0%, rgba(255, 191, 0, 0.18), transparent 66%);
  box-shadow: inset 0 0 22px rgba(255, 191, 0, 0.08);
  text-align: left;
}

.purchase-card:active {
  transform: translateY(2px) scale(0.99);
}

.purchase-card span {
  color: rgba(241, 232, 209, 0.74);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.purchase-card strong {
  font-family: "SF Mono", Consolas, monospace;
  font-size: clamp(19px, 5vw, 26px);
}

.purchase-card em {
  color: #ffbf00;
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
}

.purchase-card b {
  color: #f7efd2;
  font-family: "SF Mono", Consolas, monospace;
  font-size: 15px;
}

.purchase-card small {
  color: rgba(241, 232, 209, 0.76);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.5;
}

.exchange-product-card {
  gap: 8px;
  min-height: 0;
}

.exchange-card-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 4px;
}

.exchange-card-actions .compact-action {
  min-height: 42px;
  padding-inline: 8px;
  font-size: 12px;
}

.purchase-card.keyholder-card {
  border-color: rgba(215, 215, 215, 0.42);
  background:
    linear-gradient(150deg, rgba(34, 39, 37, 0.96), rgba(5, 5, 6, 0.96)),
    radial-gradient(circle at 50% 0%, rgba(230, 230, 230, 0.14), transparent 66%);
}

.purchase-card.keyholder-card em {
  color: #c9c9c9;
}

.purchased-products-panel {
  display: grid;
  gap: 12px;
  margin: 0 0 18px;
  padding: 16px;
  border: 1px solid rgba(212, 175, 55, 0.34);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 14% 0%, rgba(255, 191, 0, 0.12), transparent 58%),
    linear-gradient(145deg, rgba(11, 33, 22, 0.95), rgba(5, 6, 7, 0.96));
  box-shadow: inset 0 0 30px rgba(255, 191, 0, 0.06), 0 16px 38px rgba(0, 0, 0, 0.32);
}

.purchased-products-panel .section-head {
  margin: 0;
}

.shipping-note {
  margin: 0;
  color: rgba(255, 231, 160, 0.78);
  font-size: 12px;
  line-height: 1.65;
}

.purchase-list {
  display: grid;
  gap: 9px;
}

.award-inventory-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 9px;
}

.award-inventory-card {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  min-width: 0;
  min-height: 62px;
  padding: 10px;
  border: 1px solid rgba(212, 175, 55, 0.28);
  border-radius: var(--radius);
  color: #fff1a8;
  background:
    linear-gradient(145deg, rgba(18, 48, 32, 0.92), rgba(5, 7, 7, 0.96)),
    rgba(0, 0, 0, 0.24);
  text-align: left;
}

.award-inventory-card:active {
  transform: translateY(2px);
}

.award-inventory-icon {
  font-size: 24px;
  line-height: 1;
}

.award-inventory-card strong {
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: 14px;
}

.award-inventory-label {
  display: grid;
  gap: 3px;
  min-width: 0;
  text-align: left;
}

.award-inventory-label small {
  color: #64e99b;
  font-size: 9px;
  font-weight: 900;
}

.award-inventory-card b {
  color: #ffdf73;
  font-size: 14px;
  white-space: nowrap;
}

.rebate-history-panel {
  display: grid;
  gap: 8px;
  min-width: 0;
  padding-top: 4px;
  border-top: 1px solid rgba(212, 175, 55, 0.18);
}

.rebate-history-head,
.rebate-history-item div {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  gap: 4px;
  min-width: 0;
}

.rebate-history-head strong {
  min-width: 0;
  color: #ffe7a0;
  font-size: 13px;
  overflow-wrap: anywhere;
}

.rebate-history-head span,
.rebate-history-item span {
  min-width: 0;
  color: rgba(241, 232, 209, 0.56);
  font-size: 10px;
  overflow-wrap: anywhere;
}

.rebate-history-list {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.rebate-history-item {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 9px 10px;
  border: 1px solid rgba(212, 175, 55, 0.18);
  border-radius: var(--radius);
  background: rgba(0, 0, 0, 0.18);
}

.rebate-history-item strong,
.rebate-history-item b {
  min-width: 0;
  color: #ffe7a0;
  font-size: 12px;
  overflow-wrap: anywhere;
}

.rebate-history-item p,
.empty-rebate-history {
  min-width: 0;
  margin: 0;
  color: rgba(241, 232, 209, 0.68);
  font-size: 11px;
  overflow-wrap: anywhere;
}

.rebate-history-head,
.rebate-history-past-toggle,
.rebate-history-month-head {
  width: 100%;
  min-height: 44px;
  margin: 0;
  padding: 8px 4px;
  border: 0;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  touch-action: manipulation;
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.rebate-history-head {
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 8px;
  background: transparent;
}

.rebate-history-head strong {
  overflow-wrap: anywhere;
}

.rebate-history-count,
.rebate-history-month-count {
  color: rgba(241, 232, 209, 0.64);
  font-size: 11px;
  white-space: nowrap;
}

.rebate-history-chevron {
  min-width: 18px;
  color: #ffdf73;
  font-size: 16px;
  line-height: 1;
  text-align: center;
}

.rebate-history-body,
.rebate-history-past-body,
.rebate-history-month-body {
  min-width: 0;
}

.rebate-history-month-label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
  padding: 4px 4px 7px;
  color: #ffe7a0;
  font-size: 12px;
}

.rebate-history-month-label span {
  color: rgba(241, 232, 209, 0.64);
  font-size: 11px;
  white-space: nowrap;
}

.rebate-history-past-toggle,
.rebate-history-month-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  border-top: 1px solid rgba(212, 175, 55, 0.16);
  background: transparent;
  color: #ffe7a0;
  font-size: 12px;
}

.rebate-history-month-head {
  min-height: 40px;
  margin-top: 4px;
  padding-inline: 8px;
  border: 1px solid rgba(212, 175, 55, 0.18);
  border-radius: var(--radius);
  background: rgba(0, 0, 0, 0.12);
}

.rebate-history-month-group + .rebate-history-month-group {
  margin-top: 6px;
}

.rebate-history-month-body .rebate-history-list {
  margin-top: 6px;
}

.rebate-history-body[hidden],
.rebate-history-past-body[hidden],
.rebate-history-month-body[hidden] {
  display: none;
}

.award-detail-list {
  display: grid;
  gap: 8px;
  margin: 14px 0;
}

.award-detail-list div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  padding: 10px;
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: var(--radius);
  background: rgba(255, 191, 0, 0.045);
}

.award-detail-list dt {
  color: rgba(241, 232, 209, 0.7);
  font-size: 12px;
}

.award-detail-list dd {
  margin: 0;
  color: #ffe7a0;
  font-size: 13px;
  font-weight: 900;
  text-align: right;
}

.award-shipping-quantity {
  display: grid;
  gap: 9px;
  margin: 14px 0;
  padding: 12px;
  border: 1px solid rgba(212, 175, 55, 0.28);
  border-radius: var(--radius);
  background: rgba(0, 0, 0, 0.24);
}

.award-shipping-quantity label {
  color: #ffe7a0;
  font-size: 13px;
  font-weight: 900;
}

.award-shipping-quantity small {
  color: rgba(241, 232, 209, 0.62);
  font-size: 10px;
}

.award-shipping-stepper {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 44px;
  gap: 8px;
  min-height: 44px;
}

.award-shipping-stepper button,
.award-shipping-stepper input {
  min-width: 0;
  border: 1px solid rgba(212, 175, 55, 0.38);
  border-radius: 6px;
  color: #fff1a8;
  background: rgba(4, 18, 11, 0.92);
  font: 900 18px "SF Mono", Consolas, monospace;
  text-align: center;
}

.award-shipping-stepper input {
  width: 100%;
  appearance: textfield;
}

.award-shipping-stepper input::-webkit-inner-spin-button,
.award-shipping-stepper input::-webkit-outer-spin-button {
  margin: 0;
  appearance: none;
}

.purchase-item,
.empty-purchase {
  border: 1px solid rgba(212, 175, 55, 0.24);
  border-radius: var(--radius);
  background: rgba(0, 0, 0, 0.22);
  padding: 11px;
}

.purchase-item {
  display: grid;
  gap: 8px;
}

.purchase-item div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.purchase-item strong {
  color: #fff1a8;
  font-size: 15px;
}

.purchase-item span {
  flex: 0 0 auto;
  padding: 3px 7px;
  border: 1px solid rgba(255, 191, 0, 0.28);
  border-radius: 999px;
  color: #ffbf00;
  background: rgba(255, 191, 0, 0.08);
  font-size: 10px;
  font-weight: 900;
}

.purchase-item p,
.empty-purchase {
  margin: 0;
  color: rgba(241, 232, 209, 0.68);
  font-size: 12px;
  line-height: 1.55;
}

@media (max-width: 520px) {
  .award-inventory-grid {
    grid-template-columns: 1fr;
  }

  #homeView {
    grid-template-columns: 1fr;
  }

  #homeView > .asset-balance-panel,
  #homeView > .vault-asset-dashboard,
  #homeView > .asset-value-panel {
    grid-column: 1 / -1;
  }

  #homeView > .asset-balance-panel {
    min-height: auto;
    border-width: 1px 1px 0;
    border-radius: var(--radius) var(--radius) 0 0;
    padding: 12px 14px 10px;
  }

  #homeView > .vault-asset-dashboard .dashboard-card {
    border-width: 0 1px;
    border-radius: 0;
    padding: 12px 14px;
  }

  #homeView > .asset-value-panel {
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 12px 14px 13px;
  }

  #homeView > .asset-value-panel .eyebrow,
  #homeView > .asset-value-panel h2,
  #homeView > .asset-value-panel > strong,
  #homeView > .asset-value-panel .bonus-row {
    grid-column: 1 / -1;
  }

  .asset-summary-card {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 8px 0;
    margin-bottom: 12px;
  }

  .asset-summary-card > .asset-balance-panel {
    grid-column: 1 / 2;
    min-height: auto;
    border-width: 1px 0 1px 1px;
    border-radius: var(--radius) 0 0 var(--radius);
    padding: 10px 12px;
  }

  .asset-summary-card > .vault-asset-dashboard {
    grid-column: 2 / 3;
    align-self: stretch;
  }

  .asset-summary-card > .vault-asset-dashboard .dashboard-card {
    display: grid;
    align-content: center;
    min-height: 100%;
    border-width: 1px 1px 1px 0;
    border-radius: 0 var(--radius) var(--radius) 0;
    padding: 10px 12px;
  }

  .asset-summary-card > .vault-asset-dashboard .dashboard-card h3 {
    margin: 2px 0 3px;
    font-size: 12px;
  }

  .asset-summary-card > .vault-asset-dashboard .dashboard-card strong {
    margin-bottom: 6px;
    font-size: clamp(17px, 5.2vw, 22px);
  }

  .asset-summary-card > .vault-asset-dashboard .compact-action {
    justify-self: start;
    min-height: 32px;
    padding: 0 10px;
    font-size: 11px;
  }

  .asset-summary-card > .asset-value-panel {
    grid-column: 1 / -1;
    grid-template-columns: 1fr;
    gap: 5px;
    padding: 11px 12px 12px;
    border-width: 1px;
    border-radius: var(--radius);
  }

  .asset-summary-card > .asset-value-panel .eyebrow,
  .asset-summary-card > .asset-value-panel h2,
  .asset-summary-card > .asset-value-panel > strong,
  .asset-summary-card > .asset-value-panel .bonus-row {
    grid-column: 1 / -1;
  }

  .asset-summary-card > .asset-value-panel h2 {
    margin: 1px 0 2px;
    font-size: 14px;
  }

  .asset-summary-card > .asset-value-panel > strong {
    font-size: clamp(24px, 8vw, 32px);
  }
}

.referral-panel {
  display: grid;
  gap: 12px;
  margin: 0 0 18px;
  padding: 16px;
  border: 1px solid rgba(212, 175, 55, 0.34);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 80% 0%, rgba(255, 191, 0, 0.14), transparent 58%),
    linear-gradient(145deg, rgba(12, 38, 26, 0.96), rgba(6, 6, 7, 0.96));
  box-shadow: inset 0 0 34px rgba(255, 191, 0, 0.07), 0 16px 38px rgba(0, 0, 0, 0.32);
}

.referral-head {
  margin: 0;
}

.referral-code-box {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  padding: 12px;
  border: 1px solid rgba(255, 191, 0, 0.26);
  border-radius: var(--radius);
  background: rgba(0, 0, 0, 0.24);
}

.referral-code-box span {
  grid-column: 1 / -1;
  color: rgba(241, 232, 209, 0.7);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.referral-code-box strong {
  color: #ffdf73;
  font-family: "SF Mono", Consolas, monospace;
  font-size: 20px;
  letter-spacing: 0.08em;
}

.referral-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.referral-stats div {
  padding: 12px;
  border: 1px solid rgba(212, 175, 55, 0.22);
  border-radius: var(--radius);
  background: rgba(0, 0, 0, 0.2);
}

.referral-stats span,
.referral-direct-list h3 {
  display: block;
  color: rgba(241, 232, 209, 0.68);
  font-size: 11px;
  font-weight: 800;
}

.referral-stats strong {
  display: block;
  margin-top: 5px;
  color: #fff1a8;
  font-family: "SF Mono", Consolas, monospace;
  font-size: 18px;
}

.referral-direct-list {
  display: grid;
  gap: 8px;
}

.referral-direct-list h3,
.referral-direct-list p {
  margin: 0;
}

.referral-direct-list ul {
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.referral-direct-list li {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 10px;
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: var(--radius);
  background: rgba(0, 0, 0, 0.18);
}

.referral-direct-list li span {
  color: #ffe7a0;
  font-weight: 800;
}

.referral-direct-list li small,
.referral-direct-list p {
  color: rgba(241, 232, 209, 0.62);
  font-size: 12px;
}

.referral-faq {
  display: grid;
  gap: 7px;
}

.referral-faq details {
  padding: 9px 10px;
  border: 1px solid rgba(212, 175, 55, 0.18);
  border-radius: var(--radius);
  background: rgba(0, 0, 0, 0.18);
}

.referral-faq summary {
  color: #ffe7a0;
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
}

.referral-faq p {
  margin: 8px 0 0;
  color: rgba(241, 232, 209, 0.68);
  font-size: 12px;
  line-height: 1.6;
}

.lobby-card.game-locked {
  filter: grayscale(0.7) brightness(0.62);
}

.lobby-card.game-locked .primary-action {
  cursor: not-allowed;
  opacity: 0.55;
}

.lobby-section {
  position: relative;
  margin-top: 16px;
  padding-top: 15px;
  border-top: 2px solid rgba(212, 175, 55, 0.24);
}

.lobby-section::before {
  position: absolute;
  top: -2px;
  left: 14px;
  width: 42%;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(255, 191, 0, 0.78), transparent);
  content: "";
}

.lobby-section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.lobby-section-head span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.14em;
}

.lobby-section-head strong {
  color: #ffe7a0;
  font-size: 16px;
  text-shadow: 0 0 18px rgba(255, 191, 0, 0.24);
}

.lobby-grid {
  display: grid;
  gap: 16px;
  justify-items: center;
}

.lobby-card {
  position: relative;
  overflow: hidden;
  width: calc(100% / 1.27);
  max-width: 100%;
  box-sizing: border-box;
  min-height: clamp(250px, 66vw, 380px);
  border: 2px solid rgba(212, 175, 55, 0.3);
  border-radius: var(--radius);
  background-image:
    var(--lobby-card-image),
    var(--lobby-card-fallback),
    linear-gradient(180deg, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.76));
  background-color: #000;
  background-size: contain, contain, 100% 100% !important;
  background-position: center center, center center, center center !important;
  background-repeat: no-repeat, no-repeat, no-repeat !important;
  box-shadow: inset 0 0 80px rgba(0, 0, 0, 0.42), 0 20px 48px rgba(0, 0, 0, 0.48);
}

.beginner-grid .lobby-card {
  width: 100%;
  min-height: calc(clamp(250px, 66vw, 380px) * 1.2);
  margin-right: auto;
  margin-left: auto;
}

.lobby-card::after {
  position: absolute;
  z-index: 1;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 46%, rgba(0, 0, 0, 0.72));
  content: "";
}

.lobby-card > img {
  display: none;
}

.lobby-card-body {
  position: absolute;
  z-index: 2;
  right: 14px;
  bottom: 14px;
  left: 14px;
}

.lobby-card-body h3 {
  margin: 3px 0 4px;
  color: #ffe7a0;
  font-size: 25px;
  line-height: 1.05;
  text-shadow: 0 0 20px rgba(255, 191, 0, 0.34);
}

.lobby-card-body span {
  display: block;
  color: rgba(241, 232, 209, 0.8);
  font-size: 13px;
  line-height: 1.45;
}

.lobby-card-body .primary-action {
  margin-top: 12px;
}

.expert-area {
  margin-top: 22px;
  padding: 17px 10px 10px;
  overflow: hidden;
  border: 2px solid rgba(255, 191, 0, 0.34);
  border-radius: var(--radius);
  background:
    radial-gradient(ellipse at 50% 0%, rgba(255, 191, 0, 0.1), transparent 68%),
    rgba(0, 0, 0, 0.18);
  box-shadow: inset 0 0 38px rgba(255, 191, 0, 0.06), 0 18px 44px rgba(0, 0, 0, 0.34);
}

.expert-card {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  margin-right: auto;
  margin-left: auto;
  min-height: calc(clamp(250px, 66vw, 380px) * 1.2);
  border-color: rgba(255, 220, 115, 0.58);
  box-shadow:
    0 0 0 1px rgba(255, 241, 168, 0.24),
    0 0 34px rgba(255, 191, 0, 0.24),
    0 0 78px rgba(184, 115, 51, 0.18),
    0 24px 54px rgba(0, 0, 0, 0.58);
  animation: expert-glow 2.8s ease-in-out infinite;
}

.expert-card::before {
  position: absolute;
  z-index: 1;
  inset: -42%;
  pointer-events: none;
  background:
    radial-gradient(circle at 18% 28%, rgba(255, 241, 168, 0.95) 0 2px, transparent 3px),
    radial-gradient(circle at 72% 18%, rgba(255, 191, 0, 0.84) 0 2px, transparent 4px),
    radial-gradient(circle at 44% 64%, rgba(255, 220, 115, 0.82) 0 1px, transparent 3px),
    radial-gradient(circle at 82% 76%, rgba(255, 247, 207, 0.72) 0 1px, transparent 3px),
    radial-gradient(circle at 26% 82%, rgba(255, 191, 0, 0.64) 0 1px, transparent 4px),
    conic-gradient(from 0deg, transparent 0 22%, rgba(255, 220, 115, 0.18) 28%, transparent 34% 100%);
  opacity: 0.86;
  mix-blend-mode: screen;
  animation: expert-sparkle 5.4s linear infinite;
}

.expert-card::after {
  background:
    linear-gradient(180deg, transparent 38%, rgba(0, 0, 0, 0.78)),
    linear-gradient(115deg, transparent 0 42%, rgba(255, 241, 168, 0.16) 48%, transparent 56% 100%);
}

.expert-card .lobby-card-body {
  z-index: 3;
}

@keyframes expert-glow {
  0%,
  100% {
    border-color: rgba(255, 220, 115, 0.52);
    box-shadow:
      0 0 0 1px rgba(255, 241, 168, 0.2),
      0 0 28px rgba(255, 191, 0, 0.22),
      0 0 68px rgba(184, 115, 51, 0.14),
      0 24px 54px rgba(0, 0, 0, 0.58);
  }

  50% {
    border-color: rgba(255, 241, 168, 0.92);
    box-shadow:
      0 0 0 1px rgba(255, 241, 168, 0.42),
      0 0 58px rgba(255, 191, 0, 0.44),
      0 0 110px rgba(184, 115, 51, 0.24),
      0 28px 62px rgba(0, 0, 0, 0.62);
  }
}

@keyframes expert-sparkle {
  0% {
    transform: rotate(0deg) translate3d(0, 0, 0);
  }

  100% {
    transform: rotate(360deg) translate3d(0, 0, 0);
  }
}

.single-game-route {
  min-height: 100vh;
}

.game-screen-header {
  position: sticky;
  z-index: 25;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 0 -16px 12px;
  padding: max(10px, env(safe-area-inset-top)) 14px 10px;
  border-bottom: 1px solid rgba(212, 175, 55, 0.24);
  background:
    linear-gradient(180deg, rgba(4, 12, 8, 0.96), rgba(4, 12, 8, 0.82)),
    radial-gradient(circle at 20% 0%, rgba(255, 191, 0, 0.14), transparent 58%);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.36);
  backdrop-filter: blur(14px);
}

.game-balance {
  display: grid;
  gap: 2px;
}

.game-balance span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
}

.game-balance strong {
  color: var(--amber);
  font-family: "SF Mono", Consolas, monospace;
  font-size: 18px;
  line-height: 1;
  text-shadow: 0 0 16px rgba(255, 191, 0, 0.38);
}

.game-screen-actions {
  display: grid;
  grid-template-columns: auto auto;
  gap: 7px;
}

#gameLobby > .audio-toggle-button {
  display: flex;
  width: fit-content;
  min-width: 0;
  margin: 0 0 12px auto;
  align-items: center;
  justify-content: center;
}

.compact-action {
  width: auto;
  min-height: 38px;
  padding: 0 10px;
  white-space: nowrap;
  font-size: 12px;
}

.rule-overlay {
  position: fixed;
  z-index: 80;
  inset: 0;
  display: grid;
  place-items: center;
  padding: max(20px, env(safe-area-inset-top)) 14px max(20px, env(safe-area-inset-bottom));
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(12px);
}

.rule-overlay img {
  display: block;
  width: min(100%, 560px);
  max-height: 94vh;
  border: 2px solid rgba(212, 175, 55, 0.46);
  border-radius: var(--radius);
  object-fit: contain;
  box-shadow: 0 0 44px rgba(255, 191, 0, 0.22), 0 24px 90px rgba(0, 0, 0, 0.78);
}

.rule-skip-control {
  position: fixed;
  right: max(14px, env(safe-area-inset-right));
  bottom: max(14px, env(safe-area-inset-bottom));
  z-index: 81;
  display: flex;
  align-items: center;
  gap: 9px;
  max-width: min(360px, calc(100vw - 28px));
  padding: 10px 12px;
  border: 1px solid rgba(255, 220, 115, 0.48);
  border-radius: 8px;
  background: rgba(8, 12, 8, 0.84);
  color: #ffe7a0;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.25;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5), 0 0 22px rgba(255, 191, 0, 0.14);
  backdrop-filter: blur(10px);
}

.rule-skip-control input {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  accent-color: var(--amber);
}

.rule-close {
  position: fixed;
  z-index: 81;
  top: max(12px, env(safe-area-inset-top));
  right: 12px;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(212, 175, 55, 0.42);
  border-radius: 50%;
  color: var(--gold);
  background: rgba(0, 0, 0, 0.64);
  font-size: 26px;
}

.game-panel {
  padding: 16px;
  border: 2px solid rgba(212, 175, 55, 0.24);
  border-radius: var(--radius);
  background:
    radial-gradient(ellipse at 50% 28%, rgba(16, 86, 47, 0.62), transparent 62%),
    repeating-linear-gradient(105deg, rgba(255, 255, 255, 0.025) 0 2px, transparent 2px 10px),
    linear-gradient(145deg, rgba(2, 29, 16, 0.92), rgba(5, 9, 7, 0.96));
  box-shadow: inset 0 0 0 1px rgba(255, 220, 115, 0.08), 0 18px 44px rgba(0, 0, 0, 0.42);
}

.odds-strip {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  margin-top: 8px;
  padding: 7px 10px;
  border: 1px solid rgba(255, 220, 115, 0.48);
  border-radius: 999px;
  color: #ffdf84;
  background: rgba(0, 0, 0, 0.48);
  box-shadow: 0 0 18px rgba(255, 191, 0, 0.16), inset 0 0 16px rgba(255, 191, 0, 0.06);
  font-size: clamp(10px, 2.8vw, 12px);
  font-weight: 900;
  line-height: 1.2;
  white-space: normal;
}

.roulette-minimal-panel > .odds-strip {
  margin: 0 0 12px;
}

.gamble-status .odds-strip,
.game-head .odds-strip {
  justify-self: center;
}

.casino-table {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(212, 175, 55, 0.26);
  border-radius: var(--radius);
  background:
    radial-gradient(ellipse at 50% 48%, rgba(25, 103, 55, 0.78), rgba(4, 36, 20, 0.92) 58%, rgba(1, 8, 5, 0.98)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.028) 0 1px, transparent 1px 9px);
  box-shadow:
    inset 0 0 80px rgba(0, 0, 0, 0.66),
    inset 0 0 0 3px rgba(151, 95, 31, 0.18),
    0 22px 54px rgba(0, 0, 0, 0.5);
}

.casino-table::before {
  position: absolute;
  inset: -28%;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 20% 45%, rgba(255, 255, 255, 0.1), transparent 15rem),
    radial-gradient(ellipse at 70% 20%, rgba(255, 191, 0, 0.07), transparent 13rem),
    linear-gradient(85deg, transparent 20%, rgba(255, 255, 255, 0.045), transparent 54%);
  content: "";
  filter: blur(22px);
  opacity: 0.55;
  animation: table-fog 7s ease-in-out infinite alternate;
}

.game-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}

.game-head h2 {
  margin: 4px 0 0;
  font-size: 19px;
}

.game-head h2,
#royalSixGame .royal-six-heading h2,
#gambleGame .gamble-status h2 {
  color: transparent;
  background: linear-gradient(92deg, #8e4d20, #ffdc73 42%, #b87333 72%, #fff1a8);
  -webkit-background-clip: text;
  background-clip: text;
}

.edge-pill {
  flex: 0 0 auto;
  min-height: 28px;
  padding: 6px 9px;
  border: 1px solid rgba(255, 191, 0, 0.28);
  border-radius: 999px;
  color: var(--amber);
  background: rgba(255, 191, 0, 0.08);
  font-size: 11px;
  font-weight: 800;
}

.roulette-stage {
  position: relative;
  display: grid;
  gap: 12px;
  place-items: center;
  min-height: 310px;
  margin-top: 14px;
  padding: 14px 12px 18px;
}

.roulette-minimal-panel {
  min-height: calc(100vh - 88px);
  display: grid;
  align-content: start;
  gap: 16px;
  padding: 18px 14px 16px;
}

.roulette-minimal-panel .game-result {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.roulette-minimal-panel .roulette-stage {
  min-height: 330px;
  margin-top: 0;
  padding: 22px 12px;
  background:
    radial-gradient(ellipse at 50% 44%, rgba(23, 110, 58, 0.68), rgba(4, 39, 21, 0.9) 58%, rgba(1, 8, 5, 0.98)),
    repeating-linear-gradient(115deg, rgba(255, 255, 255, 0.026) 0 2px, transparent 2px 10px);
}

.pierrot-four-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: center;
  gap: clamp(8px, 2.5vw, 16px);
  width: min(100%, 760px);
  margin: 10px auto 0;
  perspective: 1200px;
}

.roulette-reveal-card {
  position: relative;
  display: grid;
  place-items: center;
  min-width: 0;
  padding: clamp(4px, 1.5vw, 8px);
  border: 1px solid rgba(212, 175, 55, 0.38);
  border-radius: 10px;
  background: linear-gradient(145deg, rgba(255, 220, 115, 0.1), rgba(0, 0, 0, 0.54));
  box-shadow: inset 0 0 18px rgba(255, 191, 0, 0.06), 0 18px 34px rgba(0, 0, 0, 0.45);
  transform: translateY(0) rotateY(0deg);
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease, filter 220ms ease;
}

.roulette-reveal-card img {
  display: block;
  width: 100%;
  max-height: min(42vh, 230px);
  aspect-ratio: 2 / 3;
  object-fit: contain;
  border-radius: 8px;
  backface-visibility: hidden;
  filter: drop-shadow(0 16px 22px rgba(0, 0, 0, 0.45));
}

.roulette-reveal-card.selected {
  transform: translateY(-10px) scale(1.035);
  border-color: rgba(255, 220, 115, 0.96);
  box-shadow: 0 0 28px rgba(255, 191, 0, 0.35), 0 24px 42px rgba(0, 0, 0, 0.55);
}

.roulette-reveal-card.revealed {
  animation: pierrot-card-flip 520ms cubic-bezier(0.16, 0.9, 0.18, 1);
}

.roulette-reveal-card.revealed-fast {
  animation: pierrot-card-flip-fast 260ms cubic-bezier(0.16, 0.9, 0.18, 1);
}

.roulette-reveal-card.result-card {
  box-shadow: 0 0 34px rgba(255, 191, 0, 0.48), 0 24px 46px rgba(0, 0, 0, 0.58);
}

.pierrot-four-grid.shuffling .roulette-reveal-card {
  animation: pierrot-card-shuffle 620ms ease-in-out infinite alternate;
}

.pierrot-four-grid.shuffling .roulette-reveal-card:nth-child(2) {
  animation-delay: 90ms;
}

.pierrot-four-grid.shuffling .roulette-reveal-card:nth-child(3) {
  animation-delay: 170ms;
}

.pierrot-four-grid.shuffling .roulette-reveal-card:nth-child(4) {
  animation-delay: 250ms;
}

@media (max-width: 520px) {
  .pierrot-four-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: min(100%, 340px);
  }

  .roulette-reveal-card img {
    max-height: 28vh;
  }
}

.roulette-minimal-panel .dealer-zone {
  display: none;
}

.roulette-minimal-panel .dealer-zone > span {
  color: #ffe0a0;
  font-size: 13px;
  letter-spacing: 0.2em;
  text-shadow: 0 0 18px rgba(255, 191, 0, 0.32);
}

.roulette-minimal-panel .dealer-card {
  width: min(35vw, 132px);
  filter: drop-shadow(0 18px 28px rgba(0, 0, 0, 0.55));
}

.roulette-minimal-panel .roulette-card {
  display: none;
}

.roulette-minimal-panel .card-choice-grid {
  display: none;
}

.roulette-minimal-panel .card-choice {
  padding: 5px;
  border-color: rgba(212, 175, 55, 0.34);
  background: linear-gradient(145deg, rgba(255, 220, 115, 0.12), rgba(2, 22, 12, 0.88));
}

.roulette-minimal-panel .card-choice.selected {
  transform: translateY(-10px) scale(1.045);
  border-color: rgba(255, 220, 115, 0.98);
  box-shadow: 0 0 30px rgba(255, 191, 0, 0.38), 0 24px 42px rgba(0, 0, 0, 0.58);
}

.roulette-trend-board {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 9px 10px;
  border: 1px solid rgba(212, 175, 55, 0.26);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.46), rgba(2, 35, 18, 0.62)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 8px);
  box-shadow: inset 0 0 18px rgba(255, 191, 0, 0.05), 0 12px 24px rgba(0, 0, 0, 0.24);
}

.roulette-trend-board > span {
  color: #ffe0a0;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-shadow: 0 0 12px rgba(255, 191, 0, 0.22);
  white-space: nowrap;
}

.trend-dots {
  display: grid;
  grid-template-columns: repeat(10, minmax(0, 1fr));
  gap: 6px;
  min-width: 0;
}

.trend-dot {
  aspect-ratio: 1;
  min-width: 0;
  border: 1px solid rgba(255, 220, 115, 0.46);
  border-radius: 999px;
  box-shadow: inset 0 0 8px rgba(255, 255, 255, 0.12), 0 0 12px rgba(0, 0, 0, 0.38);
  animation: trend-dot-in 240ms ease-out;
}

.trend-dot.red {
  background: radial-gradient(circle at 35% 28%, #ffb49b, #a82018 58%, #310806);
  box-shadow: 0 0 12px rgba(210, 44, 32, 0.38), inset 0 0 10px rgba(255, 255, 255, 0.13);
}

.trend-dot.black {
  background: radial-gradient(circle at 35% 28%, #9f9585, #171512 58%, #000);
  box-shadow: 0 0 10px rgba(241, 232, 209, 0.18), inset 0 0 10px rgba(255, 255, 255, 0.1);
}

.trend-dot.green {
  background: radial-gradient(circle at 35% 28%, #a9ffc8, #0e6e35 58%, #03170b);
  box-shadow: 0 0 16px rgba(64, 255, 137, 0.34), inset 0 0 10px rgba(255, 255, 255, 0.14);
}

.trend-dot.yellow {
  background: radial-gradient(circle at 35% 28%, #fff8ad, #c59616 58%, #3b2604);
  box-shadow: 0 0 16px rgba(255, 207, 45, 0.34), inset 0 0 10px rgba(255, 255, 255, 0.14);
}

.trend-dot.empty {
  border-color: rgba(212, 175, 55, 0.16);
  background: rgba(0, 0, 0, 0.34);
  box-shadow: inset 0 0 8px rgba(255, 191, 0, 0.04);
}

.roulette-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(120px, 0.92fr);
  gap: 10px;
  align-items: stretch;
}

.bet-control-stack {
  display: grid;
  min-width: 0;
  gap: 6px;
}

.bet-step-selector {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 5px;
  min-width: 0;
}

.bet-step-option {
  min-width: 0;
  min-height: 30px;
  padding: 4px 5px;
  border: 1px solid rgba(212, 175, 55, 0.38);
  border-radius: 6px;
  color: rgba(255, 229, 158, 0.82);
  background: rgba(2, 14, 7, 0.88);
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.32);
  font: inherit;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
}

.bet-step-option.selected {
  border-color: rgba(255, 220, 115, 0.94);
  color: #1b1106;
  background: linear-gradient(120deg, #ffe07a, #d4af37 56%, #a85f22);
  box-shadow: 0 0 13px rgba(255, 191, 0, 0.28), inset 0 0 8px rgba(255, 255, 255, 0.3);
}

[data-bet-step-option],
[data-stake-step],
[data-gamble-stake-step],
[data-baccarat-stake-step],
#rouletteBetButton,
#gambleStartButton,
#baccaratPlayButton {
  touch-action: manipulation;
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.bet-adjust {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 42px;
  min-height: 58px;
  border: 1px solid rgba(212, 175, 55, 0.28);
  border-radius: var(--radius);
  overflow: hidden;
  background: rgba(0, 0, 0, 0.22);
}

.bet-adjust input {
  width: 100%;
  min-width: 0;
  border: 0;
  color: var(--amber);
  background: rgba(255, 255, 255, 0.035);
  font-family: "SF Mono", Consolas, monospace;
  font-size: 18px;
  font-weight: 900;
  text-align: center;
}

.stake-step {
  border: 0;
  color: #1b1106;
  background: linear-gradient(120deg, #8f5624, #f0c654 58%, #b87333);
  font-size: 24px;
  font-weight: 900;
}

.roulette-bet-button,
.roulette-controls .double-boost {
  min-height: 58px;
  margin-top: 0;
  letter-spacing: 0.08em;
}

.roulette-controls .double-boost {
  color: #1b1106;
  background: linear-gradient(120deg, #ffe07a, #b87333 62%, #7d3f18);
  box-shadow: 0 0 26px rgba(255, 191, 0, 0.34);
}

.roulette-result-burst {
  position: absolute;
  z-index: 8;
  inset: clamp(8px, 2.5vw, 16px);
  display: grid;
  place-content: center;
  pointer-events: none;
  text-align: center;
  opacity: 0;
  transform: scale(0.88);
  max-width: calc(100% - clamp(16px, 5vw, 32px));
  max-height: calc(100% - clamp(16px, 5vw, 32px));
  margin: auto;
  padding: clamp(12px, 4vw, 24px);
  border: 1px solid rgba(255, 220, 115, 0.28);
  border-radius: var(--radius);
  overflow: hidden;
  background: rgba(0, 0, 0, 0.38);
  backdrop-filter: blur(4px);
}

.roulette-result-burst span {
  color: transparent;
  background: linear-gradient(92deg, #fff4b8, #d4af37 45%, #b87333);
  -webkit-background-clip: text;
  background-clip: text;
  font-size: clamp(42px, 16vw, 76px);
  font-weight: 900;
  line-height: 0.92;
  text-shadow: 0 0 28px rgba(255, 191, 0, 0.34);
}

.roulette-result-burst strong {
  margin-top: 8px;
  color: var(--amber);
  font-family: "SF Mono", Consolas, monospace;
  font-size: clamp(26px, 9vw, 42px);
  text-shadow: 0 0 30px rgba(255, 191, 0, 0.72);
}

.roulette-result-burst.lose span,
.roulette-result-burst.lose strong {
  color: rgba(241, 232, 209, 0.78);
  background: none;
  -webkit-background-clip: initial;
  background-clip: initial;
  text-shadow: 0 0 22px rgba(0, 0, 0, 0.9);
}

.roulette-result-burst.show {
  animation: roulette-result-pop 1300ms cubic-bezier(0.16, 0.9, 0.18, 1) forwards;
}

.roulette-result-burst.last-laugh {
  position: fixed;
  inset: 0;
  z-index: 120;
  max-width: none;
  max-height: none;
  width: 100vw;
  height: 100vh;
  border: 0;
  border-radius: 0;
  background:
    radial-gradient(circle at 50% 48%, rgba(255, 255, 210, 0.38), transparent 34%),
    linear-gradient(rgba(0, 0, 0, 0.28), rgba(0, 0, 0, 0.62)),
    url("./assets/cards/yellow.png");
  background-size: auto, auto, 112px auto;
  background-repeat: no-repeat, no-repeat, repeat;
  animation: last-laugh-fill 1500ms ease-out forwards, rainbow-clown 900ms linear infinite;
}

.gamble-panel {
  display: grid;
  gap: 14px;
  min-height: calc(100vh - 88px);
}

.gamble-table {
  position: relative;
  display: grid;
  gap: 12px;
  min-height: 520px;
  padding: 14px;
  align-content: stretch;
}

.gamble-seat {
  position: relative;
  z-index: 1;
  padding: 13px;
  border: 1px solid rgba(212, 175, 55, 0.24);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 191, 0, 0.08), transparent 58%),
    rgba(0, 0, 0, 0.22);
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.gamble-seat.winner-seat {
  border-color: rgba(255, 220, 115, 0.84);
  box-shadow: 0 0 34px rgba(255, 191, 0, 0.3), inset 0 0 28px rgba(255, 191, 0, 0.08);
  transform: translateY(-6px);
}

.gamble-status {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  min-height: 130px;
  padding: 14px;
  border: 1px solid rgba(255, 191, 0, 0.28);
  border-radius: var(--radius);
  background:
    radial-gradient(ellipse at 50% 50%, rgba(255, 191, 0, 0.1), transparent 72%),
    rgba(0, 0, 0, 0.28);
  text-align: center;
}

.gamble-status h2 {
  margin: 3px 0 5px;
  font-size: 28px;
  line-height: 1;
  text-shadow: 0 0 22px rgba(255, 191, 0, 0.28);
}

.gamble-message {
  min-height: 26px;
  color: var(--amber);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-shadow: 0 0 16px rgba(255, 191, 0, 0.38);
}

.gamble-card-row {
  min-height: 94px;
  margin-top: 10px;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  overflow: hidden;
  padding-inline: 6px;
}

.gamble-card-row .back-card {
  filter: saturate(0.9) brightness(0.72);
  box-shadow: 0 0 22px rgba(255, 191, 0, 0.16), 0 14px 24px rgba(0, 0, 0, 0.48);
}

.gamble-card-row .gamble-hand-card {
  position: relative;
  transition: margin 220ms ease, transform 220ms ease, width 220ms ease;
}

.gamble-card-row .gamble-hand-card.gamble-animating {
  will-change: transform, opacity;
}

.gamble-card-row .gamble-hand-card.card-deal-in {
  animation: gamble-card-deal-in 280ms cubic-bezier(0.18, 0.9, 0.28, 1.1);
}

.gamble-card-row .gamble-hand-card.card-flip-in {
  animation: gamble-card-flip-in 360ms cubic-bezier(0.18, 0.82, 0.22, 1);
}

.gamble-card-row .gamble-hand-card.stacked-card {
  margin-left: clamp(-42px, -8vw, -28px);
}

.gamble-card-row .gamble-hand-card.latest-card {
  transform: translateX(clamp(8px, 3vw, 16px)) translateY(-2px);
}

.gamble-card-row .gamble-hand-card:nth-child(n+7) {
  width: clamp(40px, 10vw, 52px);
  height: auto;
  aspect-ratio: 58 / 82;
}

.gamble-stake-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(116px, 0.8fr);
  gap: 10px;
}

.gamble-action-panel {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.gamble-action-panel .primary-action,
.gamble-action-panel .secondary-action {
  min-height: 56px;
  margin-top: 0;
  letter-spacing: 0.06em;
}

.baccarat-result-burst.last-laugh span,
.baccarat-result-burst.last-laugh strong {
  color: transparent;
  background: linear-gradient(92deg, #fff7c8, #ffbf00 36%, #b87333 68%, #fff1a8);
  -webkit-background-clip: text;
  background-clip: text;
  text-shadow: 0 0 34px rgba(255, 191, 0, 0.64), 0 0 70px rgba(255, 191, 0, 0.28);
}

.baccarat-result-burst.last-laugh {
  position: fixed;
  inset: 0;
  z-index: 120;
  max-width: none;
  max-height: none;
  width: 100vw;
  height: 100vh;
  border: 0;
  border-radius: 0;
  background:
    radial-gradient(circle at 50% 48%, rgba(255, 255, 210, 0.34), transparent 34%),
    linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.66)),
    url("./assets/cards/yellow.png");
  background-size: auto, auto, 112px auto;
  background-repeat: no-repeat, no-repeat, repeat;
  animation: last-laugh-fill 1500ms ease-out forwards, rainbow-clown 900ms linear infinite;
}

#gambleResultBurst.last-laugh {
  position: fixed;
  z-index: 120;
  inset: 0;
  max-width: none;
  max-height: none;
  width: 100vw;
  height: 100vh;
  border: 0;
  border-radius: 0;
  background:
    radial-gradient(circle at 50% 48%, rgba(255, 255, 210, 0.46), transparent 34%),
    linear-gradient(rgba(0, 0, 0, 0.34), rgba(0, 0, 0, 0.6)),
    url("./assets/cards/yellow.png");
  background-size: auto, auto, 112px auto;
  background-repeat: no-repeat, no-repeat, repeat;
  animation: last-laugh-fill 1500ms ease-out forwards, rainbow-clown 900ms linear infinite;
}

#gambleResultBurst.last-laugh span {
  font-size: clamp(46px, 15vw, 84px);
}

#gambleResultBurst.last-laugh.show {
  animation: last-laugh-fill 1500ms ease-out forwards, rainbow-clown 900ms linear infinite;
}

.gamble-table.last-laugh-active {
  animation: camera-zoom 900ms ease-out;
}

.dealer-zone {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 8px;
  place-items: center;
}

.dealer-zone > span {
  color: rgba(241, 232, 209, 0.72);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.dealer-card {
  width: min(28vw, 96px);
  aspect-ratio: 0.68;
  transform-style: preserve-3d;
}

.dealer-card img,
.roulette-card img,
.card-choice img,
.mini-card {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.46);
}

.dealer-card img,
.roulette-card img {
  border: 2px solid rgba(255, 220, 115, 0.62);
}

.particle-field {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
}

.particle-field::before,
.particle-field::after {
  position: absolute;
  left: 50%;
  bottom: 28px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow:
    -70px -8px 0 rgba(255, 220, 115, 0.8),
    -42px -38px 0 rgba(255, 191, 0, 0.7),
    -12px -18px 0 rgba(255, 244, 180, 0.9),
    26px -42px 0 rgba(255, 191, 0, 0.7),
    58px -18px 0 rgba(255, 220, 115, 0.8),
    78px -62px 0 rgba(255, 244, 180, 0.6);
  content: "";
}

.particle-field.active {
  animation: particle-rise 560ms ease-out;
}

.roulette-card {
  position: relative;
  z-index: 1;
  display: block;
  width: min(54vw, 180px);
  aspect-ratio: 0.72;
  margin: 0 auto;
  border: 7px double rgba(212, 175, 55, 0.86);
  border-radius: 10px;
  background: #050403;
  box-shadow: 0 20px 52px rgba(0, 0, 0, 0.58), var(--shadow-gold);
  transform-style: preserve-3d;
}

.roulette-card.spinning {
  animation: card-spin 520ms cubic-bezier(0.2, 0.8, 0.3, 1);
}

.roulette-card[data-color="red"] {
  box-shadow: 0 0 32px rgba(210, 40, 28, 0.42), 0 20px 52px rgba(0, 0, 0, 0.58);
}

.roulette-card[data-color="black"] {
  box-shadow: 0 0 28px rgba(255, 220, 115, 0.18), 0 20px 52px rgba(0, 0, 0, 0.68);
}

.roulette-card[data-color="green"] {
  box-shadow: 0 0 34px rgba(255, 191, 0, 0.58), 0 0 80px rgba(255, 191, 0, 0.2);
}

.roulette-buttons,
.card-choice-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
  margin-top: 14px;
}

.card-choice {
  min-width: 0;
  aspect-ratio: 0.68;
  border: 2px solid rgba(212, 175, 55, 0.42);
  border-radius: 10px;
  background: linear-gradient(145deg, rgba(255, 220, 115, 0.18), rgba(2, 9, 5, 0.86));
  padding: 4px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.42);
}

.card-choice:hover,
.card-choice.selected {
  transform: translateY(-8px) scale(1.03);
  box-shadow: 0 0 26px rgba(255, 191, 0, 0.28), 0 18px 34px rgba(0, 0, 0, 0.52);
}

.card-choice.selected {
  border-color: rgba(255, 220, 115, 0.94);
}

.color-action {
  min-height: 58px;
  border: 2px solid rgba(212, 175, 55, 0.42);
  border-radius: var(--radius);
  color: #fff2d2;
  font-weight: 900;
}

.emblem {
  display: block;
  font-size: 28px;
  line-height: 1;
  text-shadow: 0 0 14px rgba(255, 191, 0, 0.28);
}

.red-choice {
  background: linear-gradient(135deg, #581512, #c83d30);
}

.black-choice {
  background: linear-gradient(135deg, #050505, #2b2a30);
}

.green-choice {
  color: #1d1205;
  background: linear-gradient(135deg, #127557, #ffdc73);
}

.stake-field {
  display: grid;
  gap: 7px;
  margin-top: 14px;
  color: var(--muted);
  font-size: 13px;
}

.stake-field input {
  width: 100%;
  min-height: 48px;
  border: 1px solid rgba(212, 175, 55, 0.22);
  border-radius: var(--radius);
  color: var(--gold);
  background: rgba(255, 255, 255, 0.04);
  font-family: "SF Mono", Consolas, monospace;
  font-size: 20px;
  font-weight: 800;
  padding: 0 12px;
}

.duel-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 12px;
}

.duel-buttons .primary-action,
.duel-buttons .danger-action {
  margin-top: 0;
  min-height: 58px;
}

.game-result {
  min-height: 48px;
  margin-top: 12px;
  padding: 12px;
  border: 1px solid rgba(255, 191, 0, 0.18);
  border-radius: var(--radius);
  color: rgba(241, 232, 209, 0.84);
  background: rgba(255, 255, 255, 0.03);
  font-size: 13px;
  line-height: 1.55;
}

.baccarat-table {
  position: relative;
  display: grid;
  gap: 14px;
  margin-top: 14px;
  padding: 14px;
  min-height: 318px;
}

.baccarat-table .dealer-seat {
  order: 1;
}

.baccarat-table .player-seat {
  order: 2;
}

#baccaratTable.dealing .mini-card.banker-reveal,
#baccaratTable.dealing .mini-card.clown-reveal {
  animation: deal-slide 360ms cubic-bezier(0.18, 0.9, 0.28, 1.1);
}

#baccaratTable.dealing .mini-card.slow-deal {
  animation: suspense-deal 460ms cubic-bezier(0.12, 0.72, 0.22, 1);
}

.baccarat-table.zooming {
  animation: camera-zoom 720ms ease-out;
}

.baccarat-table > div {
  position: relative;
  z-index: 1;
  padding: 13px;
  border: 1px solid rgba(212, 175, 55, 0.22);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 191, 0, 0.08), transparent 60%),
    rgba(0, 0, 0, 0.22);
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.baccarat-seat.baccarat-winner-seat {
  border-color: rgba(255, 220, 115, 0.82);
  box-shadow: 0 0 34px rgba(255, 191, 0, 0.28), inset 0 0 28px rgba(255, 191, 0, 0.08);
  animation: baccarat-seat-win 1200ms cubic-bezier(0.2, 0.95, 0.22, 1.12);
}

.baccarat-seat.baccarat-last-laugh-seat {
  border-color: rgba(255, 224, 117, 0.96);
  box-shadow: 0 0 42px rgba(255, 191, 0, 0.44), inset 0 0 32px rgba(255, 191, 0, 0.12);
}

.baccarat-seat.baccarat-draw-seat {
  border-color: rgba(255, 220, 115, 0.52);
  box-shadow: 0 0 18px rgba(255, 191, 0, 0.16), inset 0 0 16px rgba(255, 191, 0, 0.05);
}

.seat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.baccarat-table span {
  color: #ffe2a2;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-shadow: 0 0 14px rgba(255, 191, 0, 0.28);
}

.score-badge {
  display: none;
  width: 46px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(255, 191, 0, 0.34);
  border-radius: 8px;
  color: var(--amber);
  background: rgba(0, 0, 0, 0.32);
  font-family: "SF Mono", Consolas, monospace;
  font-size: 24px;
  line-height: 1;
  text-shadow: 0 0 18px rgba(255, 191, 0, 0.55);
}

.seat-play {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 76px;
  gap: 12px;
  align-items: center;
  margin-top: 10px;
}

.card-row {
  display: flex;
  gap: 9px;
  min-height: 86px;
  margin-top: 8px;
  align-items: center;
}

.baccarat-table .card-row {
  margin-top: 0;
  min-height: 92px;
}

.score-formula {
  display: grid;
  min-height: 72px;
  place-items: center;
  border: 1px solid rgba(255, 191, 0, 0.34);
  border-radius: 8px;
  color: var(--amber);
  background:
    radial-gradient(circle at 50% 30%, rgba(255, 191, 0, 0.12), transparent 72%),
    rgba(0, 0, 0, 0.26);
  font-family: "SF Mono", Consolas, monospace;
  font-size: 42px;
  font-weight: 900;
  text-align: center;
  line-height: 1;
  text-shadow: 0 0 22px rgba(255, 191, 0, 0.64);
}

.score-pop {
  animation: score-pop 380ms cubic-bezier(0.18, 0.86, 0.24, 1.22);
}

.mini-card {
  display: block;
  width: 58px;
  height: 82px;
  flex: 0 0 auto;
  border: 2px solid rgba(255, 220, 115, 0.52);
  border-radius: 7px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.28);
  object-fit: cover;
}

.mini-card.red {
  box-shadow: 0 0 18px rgba(210, 40, 28, 0.28), 0 10px 20px rgba(0, 0, 0, 0.28);
}

.mini-card.black {
  box-shadow: 0 0 16px rgba(245, 234, 208, 0.08), 0 10px 20px rgba(0, 0, 0, 0.34);
}

.mini-card.green {
  box-shadow: 0 0 20px rgba(255, 191, 0, 0.32), 0 10px 20px rgba(0, 0, 0, 0.28);
}

.winner-row {
  transform: translateY(-4px);
  filter: drop-shadow(0 0 22px rgba(255, 191, 0, 0.52));
}

.mini-card.winner-card {
  animation: winner-bounce 820ms cubic-bezier(0.2, 0.95, 0.22, 1.12), winner-glow 1200ms ease-out;
}

#baccaratTable .mini-card.baccarat-draw-card {
  animation: baccarat-draw-glow 900ms ease-out;
}

.baccarat-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(120px, 0.92fr);
  gap: 10px;
  align-items: stretch;
  margin-top: 14px;
}

.judge-side-selector {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 14px;
}

.judge-side-selector .secondary-action {
  min-height: 48px;
  border-color: rgba(212, 175, 55, 0.36);
  background: linear-gradient(145deg, rgba(9, 28, 17, 0.86), rgba(18, 18, 20, 0.92));
  color: rgba(245, 230, 190, 0.78);
  font-family: "Noto Serif JP", "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-weight: 900;
}

.judge-side-selector .secondary-action.selected {
  color: #161006;
  border-color: rgba(255, 224, 122, 0.95);
  background: linear-gradient(120deg, #fff0a8, #d4af37 48%, #9c6024);
  box-shadow: 0 0 24px rgba(255, 191, 0, 0.38), inset 0 0 12px rgba(255, 255, 255, 0.18);
}

/* JUDGE only: three betting fields on a green felt rail. */
#baccaratGame .judge-side-selector {
  grid-template-columns: minmax(0, 1fr) minmax(0, .86fr) minmax(0, 1fr);
  gap: 8px;
  padding: 10px;
  border: 1px solid rgba(218, 185, 100, .6);
  border-radius: 20px 20px 46px 46px;
  background: radial-gradient(ellipse at 50% 0%, #194c35, #09281f 70%);
  box-shadow: inset 0 0 0 3px rgba(5, 16, 12, .7), 0 10px 28px rgba(0, 0, 0, .2);
}
#baccaratGame .judge-bet-area {
  --judge-accent: #89c4ff;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 0;
  min-height: 132px;
  padding: 22px 5px 14px;
  border: 1px solid rgba(137, 196, 255, .5);
  border-radius: 12px 12px 22px 22px;
  background: linear-gradient(165deg, #12394b, #09222e);
  color: #f5f1df;
  transition: border-color .18s ease, box-shadow .18s ease;
}
#baccaratGame .judge-bet-area[data-baccarat-side="tie"] {
  --judge-accent: #9ce6af;
  border-color: rgba(156, 230, 175, .5);
  background: linear-gradient(165deg, #1e5738, #103523);
}
#baccaratGame .judge-bet-area[data-baccarat-side="dealer"] {
  --judge-accent: #ffa4a0;
  border-color: rgba(255, 164, 160, .5);
  background: linear-gradient(165deg, #5b252a, #33171d);
}
#baccaratGame .judge-bet-area.selected {
  color: #fff7d5;
  border-color: #f3d789;
  box-shadow: inset 0 0 0 2px rgba(243, 215, 137, .8), 0 0 17px rgba(243, 215, 137, .2);
}
#baccaratGame .judge-bet-area.selected::before {
  content: "BET";
  position: absolute;
  top: -9px;
  padding: 3px 11px;
  border: 1px solid #f8e7ae;
  border-radius: 20px;
  background: #dec06d;
  color: #201907;
  font: 800 10px/1.2 sans-serif;
  letter-spacing: .12em;
}
#baccaratGame .judge-bet-area:focus-visible {
  outline: 3px solid #fff3b6;
  outline-offset: 4px;
}
#baccaratGame .judge-bet-name {
  color: var(--judge-accent);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(13px, 2.5vw, 22px);
  letter-spacing: .07em;
  line-height: 1.25;
}
#baccaratGame .judge-bet-odds {
  color: #fff5d6;
  font: 600 clamp(28px, 4vw, 38px)/1.1 Georgia, serif;
}
#baccaratGame .judge-bet-odds span { font-size: .65em; margin-left: 2px; }
#baccaratGame .judge-bet-area small { font: 11px/1.4 sans-serif; color: #e2e8dc; }
#baccaratGame .judge-bet-summary {
  margin: 12px 4px;
  color: #dccfa6;
  font-size: 12px;
  line-height: 1.7;
  text-align: center;
}
#baccaratGame .judge-special-rule {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin: 10px 0 16px;
  padding: 11px 12px;
  border: 1px solid rgba(216, 181, 86, .3);
  border-radius: 10px;
  background: linear-gradient(110deg, rgba(126, 79, 19, .14), rgba(0, 0, 0, .15));
}
#baccaratGame .judge-special-title { color: #f6d783; font: 700 14px/1.5 Georgia, serif; letter-spacing: .06em; }
#baccaratGame .judge-special-title strong { margin-left: 8px; color: #fff2bd; }
#baccaratGame .judge-special-rule p { margin: 0; color: #c9c6b5; font-size: 11px; line-height: 1.6; }
.game-rule-viewer .judge-rule-addition { padding: 12px; border: 1px solid #648a62; border-radius: 8px; background: #123325; color: #ece7d1; font-size: 13px; line-height: 1.7; }
@media (max-width: 430px) {
  #baccaratGame .judge-side-selector { padding: 8px; gap: 5px; border-radius: 15px 15px 30px 30px; }
  #baccaratGame .judge-bet-area { min-height: 112px; border-radius: 9px 9px 17px 17px; }
  #baccaratGame .judge-bet-name { font-size: 13px; letter-spacing: .02em; }
  #baccaratGame .judge-bet-area small { font-size: 10px; }
  #baccaratGame .judge-special-rule { gap: 5px 12px; text-align: center; }
}

.baccarat-bet-button,
.baccarat-controls .double-boost {
  min-height: 58px;
  margin-top: 0;
  letter-spacing: 0.08em;
}

.baccarat-controls .double-boost {
  color: #1b1106;
  background: linear-gradient(120deg, #ffe07a, #b87333 62%, #7d3f18);
  box-shadow: 0 0 26px rgba(255, 191, 0, 0.34);
}

.baccarat-result-burst {
  position: absolute;
  z-index: 6;
  inset: 0;
  display: grid;
  place-content: center;
  pointer-events: none;
  text-align: center;
  opacity: 0;
  transform: scale(0.88);
}

.baccarat-result-burst span {
  color: transparent;
  background: linear-gradient(92deg, #fff4b8, #d4af37 45%, #b87333);
  -webkit-background-clip: text;
  background-clip: text;
  font-size: clamp(42px, 16vw, 76px);
  font-weight: 900;
  line-height: 0.92;
  text-shadow: 0 0 28px rgba(255, 191, 0, 0.34);
}

.baccarat-result-burst strong {
  margin-top: 8px;
  color: var(--amber);
  font-family: "SF Mono", Consolas, monospace;
  font-size: clamp(26px, 9vw, 42px);
  text-shadow: 0 0 30px rgba(255, 191, 0, 0.72);
}

.result-bonus {
  display: block;
  margin-top: 8px;
  color: #c9c9c9;
  font-family: "Noto Serif JP", "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: clamp(13px, 3.8vw, 18px);
  font-weight: 900;
  letter-spacing: 0;
  text-shadow: 0 0 14px rgba(255, 255, 255, 0.24), 0 0 24px rgba(160, 160, 160, 0.18);
}

.baccarat-result-burst.lose span,
.baccarat-result-burst.lose strong {
  color: rgba(241, 232, 209, 0.78);
  background: none;
  -webkit-background-clip: initial;
  background-clip: initial;
  text-shadow: 0 0 22px rgba(0, 0, 0, 0.9);
}

.baccarat-result-burst.draw span,
.baccarat-result-burst.draw strong {
  color: transparent;
  background: linear-gradient(92deg, #f1e8d1, #ffbf00 48%, #9c927f);
  -webkit-background-clip: text;
  background-clip: text;
  text-shadow: 0 0 24px rgba(255, 191, 0, 0.38);
}

.baccarat-result-burst.show {
  animation: roulette-result-pop 1300ms cubic-bezier(0.16, 0.9, 0.18, 1) forwards;
}

#baccaratResultBurst,
#royalSixResultBurst {
  position: absolute;
  z-index: 8;
  inset: clamp(8px, 2.5vw, 16px);
  width: auto;
  height: auto;
  box-sizing: border-box;
  display: grid;
  place-items: center;
  align-content: center;
  justify-items: center;
  overflow: hidden;
  max-width: calc(100% - clamp(16px, 5vw, 32px));
  max-height: calc(100% - clamp(16px, 5vw, 32px));
  margin: auto;
  padding: clamp(12px, 4vw, 24px);
  border: 1px solid rgba(255, 220, 115, 0.34);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 50% 45%, rgba(255, 191, 0, 0.24), transparent 16rem),
    linear-gradient(180deg, rgba(0, 0, 0, 0.42), rgba(0, 0, 0, 0.82));
  backdrop-filter: blur(5px);
  transform: scale(1);
}

#baccaratResultBurst span,
#royalSixResultBurst span {
  display: block;
  max-width: 100%;
  font-size: clamp(28px, 11vw, 58px);
  line-height: 0.9;
  letter-spacing: 0;
  overflow-wrap: normal;
  white-space: nowrap;
}

#baccaratResultBurst strong,
#royalSixResultBurst strong {
  display: block;
  max-width: 100%;
  margin-top: 10px;
  font-size: clamp(18px, 6vw, 32px);
  line-height: 1.05;
  overflow-wrap: anywhere;
}

#baccaratResultBurst.lose,
#royalSixResultBurst.lose {
  background:
    radial-gradient(circle at 50% 44%, rgba(70, 70, 70, 0.25), transparent 15rem),
    linear-gradient(180deg, rgba(0, 0, 0, 0.56), rgba(0, 0, 0, 0.86));
}

#baccaratResultBurst.draw,
#royalSixResultBurst.draw {
  background:
    radial-gradient(circle at 50% 44%, rgba(255, 255, 255, 0.12), transparent 15rem),
    linear-gradient(180deg, rgba(12, 12, 10, 0.58), rgba(0, 0, 0, 0.84));
}

#baccaratResultBurst.show,
#royalSixResultBurst.show {
  animation: baccarat-full-result 1100ms cubic-bezier(0.16, 0.9, 0.18, 1) forwards;
}

#rouletteResultBurst.global-result-overlay.last-laugh,
#gambleResultBurst.global-result-overlay.last-laugh,
#baccaratResultBurst.global-result-overlay.last-laugh {
  position: fixed;
  inset: 0;
  z-index: 240;
  display: grid;
  place-content: center;
  width: 100vw;
  height: 100vh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: clamp(24px, 7vw, 58px);
  border: 0;
  border-radius: 0;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(circle at 50% 50%, rgba(0, 0, 0, 0.72) 0 20%, rgba(0, 0, 0, 0.24) 34%, transparent 58%),
    radial-gradient(circle at 50% 48%, rgba(255, 255, 210, 0.42), transparent 34%),
    linear-gradient(rgba(0, 0, 0, 0.34), rgba(0, 0, 0, 0.72)),
    url("./assets/cards/yellow.png");
  background-size: auto, auto, auto, 112px auto;
  background-repeat: no-repeat, no-repeat, no-repeat, repeat;
  backdrop-filter: none;
  transform: scale(1);
  animation: last-laugh-fill 1500ms ease-out forwards, rainbow-clown 900ms linear infinite;
}

#rouletteResultBurst.global-result-overlay.last-laugh::after,
#gambleResultBurst.global-result-overlay.last-laugh::after,
#baccaratResultBurst.global-result-overlay.last-laugh::after {
  content: "";
  position: absolute;
  z-index: 0;
  left: 50%;
  top: 50%;
  width: min(84vw, 520px);
  height: min(42vh, 280px);
  border: 1px solid rgba(255, 220, 115, 0.42);
  border-radius: 18px;
  background:
    radial-gradient(circle at 50% 20%, rgba(255, 191, 0, 0.18), transparent 58%),
    rgba(0, 0, 0, 0.62);
  box-shadow: 0 0 46px rgba(255, 191, 0, 0.34), inset 0 0 30px rgba(255, 191, 0, 0.08);
  transform: translate(-50%, -50%);
}

#rouletteResultBurst.global-result-overlay.last-laugh span,
#gambleResultBurst.global-result-overlay.last-laugh span,
#baccaratResultBurst.global-result-overlay.last-laugh span {
  position: relative;
  z-index: 1;
  max-width: 92vw;
  font-size: clamp(46px, 14vw, 112px);
  line-height: 0.92;
  white-space: normal;
  text-shadow: 0 0 22px rgba(0, 0, 0, 0.98), 0 0 42px rgba(255, 191, 0, 0.72);
}

#rouletteResultBurst.global-result-overlay.last-laugh strong,
#gambleResultBurst.global-result-overlay.last-laugh strong,
#baccaratResultBurst.global-result-overlay.last-laugh strong,
#rouletteResultBurst.global-result-overlay.last-laugh .result-bonus,
#gambleResultBurst.global-result-overlay.last-laugh .result-bonus,
#baccaratResultBurst.global-result-overlay.last-laugh .result-bonus {
  position: relative;
  z-index: 1;
  text-shadow: 0 0 18px rgba(0, 0, 0, 1), 0 0 34px rgba(255, 191, 0, 0.7);
}

#rouletteResultBurst.global-result-overlay.last-laugh.show,
#gambleResultBurst.global-result-overlay.last-laugh.show,
#baccaratResultBurst.global-result-overlay.last-laugh.show {
  animation: last-laugh-fill 1500ms ease-out forwards, rainbow-clown 900ms linear infinite;
}

.dealer-card.revealing {
  animation: dealer-flip 780ms cubic-bezier(0.18, 0.8, 0.22, 1);
}

.modal-card:has(.point-circulation), .modal-card:has(.point-operating) { width: min(720px, calc(100vw - 24px)); max-width: 720px; }
.point-operating { --op-gold:#dec17b; --op-green:#69ca98; --op-red:#f29991; color:#e9e4d3; font:14px/1.65 system-ui,-apple-system,sans-serif; }
.point-operating * { box-sizing:border-box; }
.point-operating button { min-height:44px; border:1px solid #6c5c30; border-radius:8px; background:#11251a; color:#e8cf8e; padding:7px 14px; cursor:pointer; font:inherit; }
.point-operating button:focus-visible,.point-operating summary:focus-visible { outline:2px solid #f6dc94; outline-offset:3px; }
.point-operating p { margin:7px 0; }.op-subtitle { color:#b4c2b4; font-size:13px; }
.op-toolbar { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:10px; margin:18px 0 0; }
.op-mode { color:#d4c28f; font-size:11px; letter-spacing:.02em; border-left:2px solid #ad8f43; padding-left:9px; }
.op-periods { display:flex; gap:4px; }.op-periods button { font-size:12px; padding:7px 13px; }.op-periods button[aria-pressed=true] { background:#9a7d3c; border-color:#e3c672; color:#fff7d7; }
.op-status { text-align:right; min-height:35px; font-size:12px; }.point-operating .op-link { background:transparent; border:none; min-height:34px; padding:3px 0; font-size:11px; text-decoration:underline; text-underline-offset:4px; }
.op-hero { padding:22px 12px 27px; text-align:center; border:1px solid #61733c; border-radius:14px; background:radial-gradient(ellipse at center,#23412c44,transparent 75%),#0a1b13; margin-bottom:14px; }
.op-kicker { color:#c2ac72; font-size:10px; letter-spacing:.16em; }.point-operating h3 { color:#e9d398; font-size:17px; line-height:1.45; margin:3px 0 12px; }
.op-hero h3 { font-size:18px; margin:10px 0 12px; }.op-total { color:var(--op-gold); font-size:clamp(30px,7vw,54px); font-weight:650; letter-spacing:-.04em; font-variant-numeric:tabular-nums; white-space:nowrap; max-width:100%; overflow-x:auto; line-height:1.35; }
.op-total small { font-size:17px; letter-spacing:0; font-weight:400; }.op-verdict { display:inline-block; border:1px solid currentColor; padding:3px 13px; border-radius:20px; font-size:13px; margin:13px 0 7px; }
.op-negative .op-total,.op-negative .op-verdict { color:var(--op-red); }.op-positive .op-total,.op-positive .op-verdict { color:var(--op-green); }.op-zero .op-total,.op-zero .op-verdict { color:var(--op-gold); }
.op-unreconciled .op-total,.op-unreconciled .op-verdict { color:#c8c3ad; }.op-equation { display:flex; flex-wrap:wrap; justify-content:center; gap:3px 12px; margin-top:16px; font-size:11px; color:#c1c8b9; }
.op-card { border:1px solid #55613c; border-radius:12px; background:linear-gradient(130deg,#152f20,#0b1a12); padding:19px; margin:0 0 14px; }
.op-flow { text-align:left; }.op-flow>[data-flow-row] { border-bottom:1px solid #6a7b4a55; }.op-flow>.op-row { font-size:15px; min-height:52px; padding:12px 0; }.op-flow>.op-row>strong { white-space:nowrap; }.op-final { margin-top:22px; }.op-neutral strong { color:var(--op-gold); }.op-unknown strong { color:#c8c3ad; }
.op-flow>.op-main-details { margin:0; border:0; border-bottom:1px solid #6a7b4a55; border-radius:0; background:none; }.op-flow>.op-main-details>summary { display:flex; justify-content:space-between; align-items:baseline; gap:8px; padding:12px 0; min-height:52px; font-size:15px; list-style:none; }.op-main-details>summary::-webkit-details-marker { display:none; }.op-main-details>summary small { font-size:10px; color:#d9c48b; white-space:nowrap; }.op-main-details>summary strong { white-space:nowrap; font-weight:550; }.op-main-details>.op-detail-body { border-left:2px solid #8c783f; padding:8px 10px 12px; margin:4px 0 12px; }
@media(max-width:450px) { .op-flow>.op-row,.op-flow>.op-main-details>summary { font-size:13px; }.op-main-details>summary strong,.op-flow>.op-row>strong { font-size:16px; }.op-flow>.op-row>span { max-width:62%; } }
.op-section-head { display:flex; justify-content:space-between; align-items:baseline; gap:10px; }.op-section-head>span { color:#b3c2b2; font-size:10px; }
.op-row { display:flex; justify-content:space-between; align-items:baseline; gap:12px; border-bottom:1px solid #6a7b4a30; padding:10px 0; font-size:12px; }.op-row>span { color:#b9c7ba; max-width:61%; }.op-row strong { color:#e8dab5; font-weight:550; font-variant-numeric:tabular-nums; text-align:right; overflow-wrap:anywhere; min-width:0; }
.op-hero>.op-issued { text-align:left; font-size:15px; min-height:52px; padding:12px 0; border-bottom:1px solid #6a7b4a55; }.op-hero>.op-issued>span,.op-hero>.op-issued>strong { color:var(--op-gold); }.op-hero>.op-issued>strong { white-space:nowrap; }@media(max-width:450px) { .op-hero>.op-issued { font-size:13px; }.op-hero>.op-issued>strong { font-size:16px; } }
/* Owner monthly business dashboard: isolated names, no changes to game/point styles. */
.business-finance { color:#dfd8bf; font:14px/1.65 system-ui,-apple-system,sans-serif; width:100%; min-width:0; }
.business-finance * { box-sizing:border-box; }.business-finance [hidden] { display:none!important; }
.business-finance button { font:inherit; cursor:pointer; min-height:44px; border:1px solid #87733d; border-radius:10px; background:#142c20; color:#e4ca83; padding:8px 12px; }.business-finance button:disabled { opacity:.55; cursor:wait; }
.business-finance input,.business-finance select,.business-finance textarea { display:block; width:100%; min-width:0; max-width:100%; border:1px solid #83713e; border-radius:9px; background:#0a1d13; color:#eee3bd; font:16px/1.5 system-ui; padding:11px 10px; color-scheme:dark; }
.business-finance label { display:block; text-align:left; margin-bottom:13px; color:#d7c48d; }.business-finance label>input,.business-finance label>select,.business-finance label>textarea { margin-top:6px; }
.bf-toolbar { display:flex; flex-wrap:wrap; justify-content:space-between; align-items:center; gap:10px; margin:12px 0; }.bf-toolbar label { margin:0; flex:1 1 140px; }.bf-scope { width:100%; color:#c8ac60; border-left:3px solid #a98a3f; padding-left:9px; font-size:12px; }.bf-message { margin:10px 0; font-size:12px; overflow-wrap:anywhere; }
.bf-hero,.bf-card { border:1px solid #687c4b; border-radius:16px; padding:20px; margin:18px 0; background:linear-gradient(140deg,#183a28,#071a11); text-align:left; min-width:0; }.bf-hero { text-align:center; padding:25px 16px; }.business-finance h3 { margin:0 0 14px; color:#e2ce90; font-size:19px; line-height:1.5; }.bf-hero h3 small { display:block; font-size:12px; font-weight:400; }.bf-hero>p:first-child { color:#c9ad67; font-size:12px; letter-spacing:.08em; }
.bf-profit { font-size:clamp(28px,8vw,44px); font-weight:700; font-variant-numeric:tabular-nums; overflow-wrap:anywhere; margin:18px 0; }.bf-plus .bf-profit,.business-finance strong.bf-plus { color:#78d3ac; }.bf-minus .bf-profit,.business-finance strong.bf-minus { color:#ef9c94; }.bf-zero .bf-profit,.business-finance strong.bf-zero { color:#e4ca83; }.bf-unknown .bf-profit { color:#c4c0b1; }.bf-equation { font-size:12px; color:#c9d2c4; }
.bf-row { display:flex; justify-content:space-between; align-items:baseline; gap:10px; border-bottom:1px solid #8d98622e; padding:12px 0; font-size:13px; }.bf-row>span { max-width:58%; color:#bac9b9; }.bf-row>strong { text-align:right; color:#e2d7ae; font-variant-numeric:tabular-nums; min-width:0; overflow-wrap:anywhere; }
.bf-heading { display:flex; align-items:baseline; justify-content:space-between; gap:12px; }.bf-heading>strong { color:#e6ca79; font-size:20px; min-width:0; overflow-wrap:anywhere; }.bf-note,.bf-disclaimer { font-size:11px; color:#b4c2ae; line-height:1.8; overflow-wrap:anywhere; }.bf-warning { color:#f0b49a; }.bf-actions { display:flex; flex-wrap:wrap; gap:8px; margin-top:12px; }.business-finance .bf-primary { background:linear-gradient(105deg,#b48b3e,#efd073,#b48635); color:#191e0d; border-color:#bca155; font-weight:650; }.bf-card>.bf-primary { width:100%; margin:8px 0; }
.bf-expenses article { border-top:1px solid #87966a50; padding:18px 0 4px; margin-top:14px; }.bf-expenses article>p { overflow-wrap:anywhere; white-space:pre-wrap; }.bf-expenses .bf-heading>span { color:#c8c3a6; font-size:12px; }.business-finance details { margin-top:14px; }.business-finance summary { cursor:pointer; min-height:44px; padding:8px 0; color:#d9c58a; }.bf-history-row { display:grid; grid-template-columns:1fr 1fr; gap:6px 12px; width:100%; text-align:left; margin:8px 0; font-size:12px!important; }
@media(max-width:450px) { .bf-card { padding:17px 12px; }.bf-hero { padding:22px 10px; }.bf-toolbar>button { flex:1 1 125px; font-size:12px; }.business-finance h3 { font-size:17px; }.bf-row { font-size:12px; gap:7px; }.bf-heading>strong { font-size:18px; }.bf-profit { font-size:clamp(28px,9vw,36px); }.bf-actions>button { flex:1 1 auto; } }
.op-plus strong { color:var(--op-green); }.op-minus strong { color:var(--op-red); }.op-subtotal { border-bottom:1px solid #82865775; margin-bottom:8px; padding-bottom:13px; }
.op-note { color:#aebcae; font-size:11px; }.op-components>.op-note { margin-top:12px; }
.op-balances { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; margin:18px 0; }.op-balances>div { padding:12px; border:1px solid #56603c; border-radius:9px; background:#091b12; }.op-balances span { display:block; font-size:11px; }.op-balances strong { display:block; font-size:22px; font-variant-numeric:tabular-nums; white-space:nowrap; overflow-x:auto; }.op-d { color:var(--op-gold); }.op-e { color:var(--op-green); }
.op-details { border:1px solid #58613c; border-radius:9px; margin:10px 0; background:#081b1255; }.op-details summary { color:#dfcb94; padding:13px 12px; min-height:44px; cursor:pointer; font-size:12px; overflow-wrap:anywhere; }.op-detail-body { padding:0 12px 13px; }.op-details .op-details { background:#102319; }
.op-digital { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; margin:18px 0; }.op-digital span { color:#afbeab; font-size:11px; }.op-digital strong { display:block; font-size:27px; color:#f0d58a; }.op-digital small { font-size:12px; color:#b4c0ac; }
.op-allocation h4 { color:#dbc68b; font-size:12px; margin:14px 0 4px; }.op-disclaimer { color:#c0b28c; font-size:11px; border-left:2px solid #9e854b; padding:4px 11px; }.op-asof { color:#a3b1a3; font-size:10px; }.op-warning { background:#3d2e1d66; border:1px solid #9c7a47; border-radius:8px; padding:11px; color:#f0d5ad; font-size:12px; text-align:left; }.op-empty { padding:20px 5px; }
@media(max-width:450px) { .point-operating { font-size:13px; }.op-card { padding:16px 12px; }.op-hero { padding:20px 9px 23px; }.op-periods button { padding:7px 12px; }.op-toolbar { gap:9px; }.op-balances strong { font-size:18px; }.op-row { gap:8px; padding:9px 0; font-size:12px; }.op-detail-body { padding:0 10px 12px; }.op-details summary { font-size:12px; }.op-total { font-size:clamp(28px,9vw,40px); }.op-equation { font-size:10px; gap:2px 8px; } }
.point-circulation { --pc-gold:#dbb85b; --pc-green:#57b585; color:#e8e5d6; font:14px/1.65 system-ui,sans-serif; }
.point-circulation * { box-sizing:border-box; }
.point-circulation button { cursor:pointer; min-height:44px; color:#e2c77d; background:#14241c; border:1px solid #665831; border-radius:8px; padding:8px 13px; font:inherit; }
.point-circulation button:focus-visible, .point-circulation summary:focus-visible { outline:2px solid #f5d57a; outline-offset:3px; }
.pc-scope { display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:8px; }
.pc-mode { font-size:12px; letter-spacing:.05em; color:#d8c896; border-left:2px solid #af8c3d; padding-left:10px; }
.point-circulation .pc-link { background:transparent; border:none; padding:4px 0; text-decoration:underline; text-underline-offset:4px; font-size:12px; }
.pc-status { text-align:right; min-height:44px; }
.pc-hero,.pc-empty { text-align:center; padding:16px 12px 26px; }
.point-circulation p { margin:7px 0; }
.pc-kicker { font-size:10px; letter-spacing:.17em; color:#c1ac73; }
.pc-caption { font-size:12px; color:#aebcaf; }
.pc-total { font:600 clamp(32px,7vw,54px)/1.3 system-ui,sans-serif; font-variant-numeric:tabular-nums; letter-spacing:-.035em; color:#f3d780; margin:10px 0 20px; overflow-wrap:anywhere; }
.pc-total small { font-size:18px; letter-spacing:0; color:#c3ae70; }
.pc-donut { width:168px; height:168px; margin:12px auto 24px; border-radius:50%; display:grid; place-items:center; background:conic-gradient(var(--empty-ring,var(--pc-gold)) 0 var(--d-share),var(--empty-ring,var(--pc-green)) var(--d-share) 100%); position:relative; box-shadow:0 0 35px #b69d2820; }
.pc-donut::before { content:''; position:absolute; inset:18px; border-radius:50%; background:#0c1b15; border:1px solid #5e602e; }
.pc-donut span { position:relative; color:#e9dab0; font-size:23px; letter-spacing:.13em; }
.pc-donut small { display:block; font-size:10px; color:#9cac9f; letter-spacing:.1em; }
.pc-legend,.pc-sides { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
.pc-legend>div { display:grid; gap:2px; }
.pc-legend span { font-size:12px; }
.pc-legend strong { font-size:20px; font-variant-numeric:tabular-nums; overflow-wrap:anywhere; }
.pc-legend small { color:#aab7ac; font-size:13px; }
.pc-d { color:var(--pc-gold); }.pc-e { color:var(--pc-green); }
.pc-card { border:1px solid #4d5437; background:linear-gradient(135deg,#142c20,#0b1712); border-radius:13px; padding:20px; margin:0 0 14px; }
.point-circulation h3 { margin:0 0 10px; font-size:18px; color:#ead28e; }
.pc-advantage h3 { font-size:25px; margin:5px 0 2px; }
.pc-sides { margin:18px 0; }
.pc-sides>div { background:#071a13; border:1px solid #304d38; border-radius:9px; padding:13px; }
.pc-sides>div+div { border-color:#5a4c2c; }
.pc-sides span,.pc-sides strong,.pc-sides small { display:block; }
.pc-sides span { font-size:12px; color:#b9c2ad; }.pc-sides strong { font-size:29px; color:#f2d77e; }.pc-sides small { font-size:14px; font-variant-numeric:tabular-nums; overflow-wrap:anywhere; }
.pc-explain { color:#b7c5b9; font-size:12px; padding-bottom:8px; }
.pc-row { display:flex; justify-content:space-between; gap:14px; padding:9px 0; border-bottom:1px solid #64714b35; font-size:13px; align-items:baseline; }
.pc-row span { color:#b9c3b8; }.pc-row strong { color:#e8dab0; text-align:right; font-variant-numeric:tabular-nums; overflow-wrap:anywhere; min-width:0; }
.pc-digital { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px; margin:18px 0; }
.pc-digital span { font-size:11px; color:#aebeac; }.pc-digital strong { display:block; font-size:26px; color:#f2d77e; }.pc-digital small { font-size:12px; color:#b9c3ad; }
.pc-flow-head { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:8px; margin-bottom:12px; }
.pc-periods { display:flex; gap:5px; }.pc-periods button { font-size:12px; padding:6px 12px; }.pc-periods button[aria-pressed=true] { background:#9b7b35; color:#fff8dc; border-color:#e1c46e; }
.point-circulation details { margin-top:16px; font-size:12px; }.point-circulation summary { min-height:40px; padding:8px 0; color:#d3bf84; cursor:pointer; }
.pc-checks { background:#272a18; padding:6px 12px; border:1px solid #6c6638; border-radius:8px; }.pc-checks ul { padding-left:18px; }.pc-checks li { margin-bottom:8px; }
.pc-disclaimer { border-left:2px solid #9e8548; padding:4px 10px; color:#baad88; font-size:12px; }.pc-asof { font-size:10px; }.pc-error { color:#ffd2ad; border:1px solid #8f633e; padding:12px; text-align:left; }
@media(max-width:450px) { .pc-card { padding:16px 13px; }.pc-legend strong { font-size:18px; }.pc-sides { gap:8px; }.pc-row { font-size:12px; gap:9px; }.pc-row span { max-width:65%; }.pc-donut { width:150px; height:150px; }.pc-hero { padding-top:7px; }.pc-advantage h3 { font-size:23px; } }
.finance-dashboard { color: #e9e3cc; font-family: system-ui, sans-serif; font-size: 14px; line-height: 1.65; }
.finance-dashboard [hidden] { display: none !important; }
.finance-dashboard h3 { font-size: 15px; margin: 12px 0 6px; color: #f4d782; }
.finance-disclaimer, .finance-note { color: #bdb7a3; font-size: 12px; overflow-wrap: anywhere; }
.finance-disclaimer { border-left: 3px solid #bb9650; padding: 8px 12px; background: #1b211b; }
.finance-filters, .finance-input-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; margin: 16px 0; }
.finance-filters { grid-template-columns: repeat(2,minmax(0,1fr)) auto; align-items: end; }
.finance-dashboard label { display: flex; flex-direction: column; gap: 5px; min-width: 0; font-size: 12px; }
.finance-dashboard input, .finance-dashboard select, .finance-dashboard textarea { box-sizing: border-box; width: 100%; min-height: 42px; padding: 8px; background: #111611; color: #f2e8c8; border: 1px solid #67592f; border-radius: 5px; }
.finance-dashboard textarea { min-height: 75px; resize: vertical; }
.finance-tabs, .finance-actions { display: flex; gap: 8px; flex-wrap: wrap; margin: 16px 0; }
.finance-tabs button { min-height: 42px; background: #1a201a; color: #f5d77c; border: 1px solid #67592f; padding: 7px 14px; border-radius: 6px; }
.finance-tabs button[aria-pressed="true"] { background: #514222; border-color: #f5d77c; }
.finance-signals { border: 1px solid #6f736f; border-radius: 8px; padding: 12px 16px; margin: 12px 0; }
.finance-signals ul { margin: 8px 0; padding-left: 20px; }
.finance-signals details { margin: 8px 0 0; padding: 6px 8px; }
.finance-red { background: #391917; border-color: #f2857d; }
.finance-yellow { background: #352c13; border-color: #e6c156; }
.finance-blue { background: #102d40; border-color: #77c6f1; }
.finance-gray { background: #242827; border-color: #9caba4; }
.finance-cards { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; }
.finance-card { background: #121b16; border: 1px solid #544726; border-radius: 8px; padding: 12px; overflow-wrap: anywhere; }
.finance-card strong { display: block; font-size: 20px; color: #ffe9a1; font-variant-numeric: tabular-nums; }
.finance-table-wrap { overflow-x: auto; margin: 10px 0 20px; }
.finance-dashboard table { width: 100%; border-collapse: collapse; font-size: 12px; }
.finance-dashboard th, .finance-dashboard td { text-align: left; vertical-align: top; border-bottom: 1px solid #4b442b; padding: 9px 8px; overflow-wrap: anywhere; min-width: 75px; }
.finance-dashboard [data-panel="games"] td, .finance-dashboard [data-panel="circulation"] td { white-space: nowrap; overflow-wrap: normal; }
.finance-dashboard details { margin: 20px 0; padding: 12px; border: 1px solid #67592f; border-radius: 8px; }
.finance-dashboard details label { margin: 10px 0; }
@media (max-width: 600px) {
  .finance-cards, .finance-input-grid { grid-template-columns: 1fr; }
  .finance-filters { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .finance-filters button { grid-column: 1 / -1; }
  .finance-card strong { font-size: 22px; }
  .finance-signals { padding: 10px; }
  .finance-tabs { gap: 5px; }
  .finance-tabs button { flex: 1 0 auto; padding: 7px; white-space: nowrap; }
}
.modal-card:has(.game-rule-viewer) {
  width: min(1200px, calc(100vw - 24px));
  max-width: 1200px;
}

.game-rule-help {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 13px;
}

.game-rule-image-scroll {
  max-height: min(68vh, max(140px, calc(100dvh - 280px)), 820px);
  overflow: auto;
  overscroll-behavior: contain;
  touch-action: pan-x pan-y pinch-zoom;
}

.game-rule-image-scroll img {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: min(64vh, max(140px, calc(100dvh - 280px)), 760px);
  height: auto;
  margin: 0 auto;
}

.game-rule-image-scroll img[hidden] {
  display: none;
}

.game-rule-image-scroll.is-zoomed img {
  width: auto;
  max-width: none;
  max-height: none;
  margin: 0;
}

.game-rule-viewer [data-game-rule-error] {
  color: #ffd4b3;
}

.modal-layer {
  position: fixed;
  z-index: 50;
  inset: 0;
  display: grid;
  place-items: end center;
  padding: 18px 12px;
  background: rgba(5, 5, 6, 0.72);
  backdrop-filter: blur(16px);
}

.modal-card {
  position: relative;
  width: min(100%, 456px);
  max-height: calc(100vh - 36px);
  overflow: auto;
  border: 1px solid rgba(212, 175, 55, 0.24);
  border-radius: var(--radius);
  background:
    linear-gradient(160deg, rgba(36, 35, 40, 0.96), rgba(18, 18, 20, 0.98)),
    radial-gradient(circle at 50% 0%, rgba(184, 115, 51, 0.22), transparent 70%);
  box-shadow: 0 26px 80px rgba(0, 0, 0, 0.66), var(--shadow-gold);
  padding: 22px 16px 16px;
}

.modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 34px;
  height: 34px;
}

.modal-title {
  margin: 0 44px 10px 0;
  color: var(--gold);
  font-size: 20px;
}

.modal-copy {
  margin: 0 0 16px;
  color: rgba(241, 232, 209, 0.82);
  font-size: 14px;
  line-height: 1.7;
}

body.modal-open {
  overflow: hidden;
}

.commerce-law-content {
  display: grid;
  gap: 14px;
  min-width: 0;
  color: rgba(241, 232, 209, 0.82);
  font-size: 13px;
  line-height: 1.75;
  overflow-wrap: anywhere;
}

.commerce-law-content section {
  min-width: 0;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(212, 175, 55, 0.18);
}

.commerce-law-content section:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.commerce-law-content h3,
.commerce-law-content h4 {
  margin: 0 0 6px;
  color: #ffe7a0;
  line-height: 1.4;
}

.commerce-law-content h3 {
  font-size: 15px;
}

.commerce-law-content h4 {
  margin-top: 10px;
  font-size: 13px;
}

.commerce-law-content p {
  margin: 0 0 8px;
}

.commerce-law-content p:last-child {
  margin-bottom: 0;
}

.commerce-law-content ul {
  display: grid;
  gap: 4px;
  margin: 6px 0 8px;
  padding-left: 20px;
}

.commerce-law-content a {
  color: #ffdf73;
  overflow-wrap: anywhere;
}

.modal-actions {
  display: grid;
  gap: 10px;
}

/* Administrator QR printing only; does not alter member registration forms. */
.admin-ingot-qr form,
.admin-ingot-qr label,
.admin-ingot-qr [data-qr-results] {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.admin-ingot-qr label { margin-bottom: 8px; }
.admin-ingot-qr input,
.admin-ingot-qr select {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid rgba(212, 175, 55, 0.4);
  border-radius: 8px;
  color: #f1e8d1;
  background: #151b18;
  font: inherit;
}
.admin-ingot-qr p,
.admin-ingot-qr button { overflow-wrap: anywhere; }
.admin-ingot-qr [data-qr-message] { margin-top: 12px; }
.admin-ingot-qr button:disabled { cursor: not-allowed; opacity: 0.65; }

.exchange-inline-error {
  margin: 14px 0 0;
  padding: 10px 12px;
  border: 1px solid rgba(255, 116, 116, 0.72);
  background: rgba(73, 10, 10, 0.72);
  color: #ffe1e1;
  font-size: 0.9rem;
  line-height: 1.5;
}

.id-form {
  display: grid;
  gap: 12px;
}

.file-field {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
}

.file-field input {
  min-height: 46px;
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: var(--radius);
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  padding: 10px;
}

.buyback-terms {
  margin: 14px 0;
  padding: 13px;
  border: 1px solid rgba(255, 191, 0, 0.24);
  border-radius: var(--radius);
  background: rgba(255, 191, 0, 0.055);
}

.buyback-terms p {
  margin: 0 0 10px;
  color: rgba(241, 232, 209, 0.84);
  font-size: 13px;
  line-height: 1.7;
}

.buyback-terms p:last-child {
  margin-bottom: 0;
}

.agreement-check {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 10px;
  margin: 14px 0;
  padding: 12px;
  border: 1px solid rgba(212, 175, 55, 0.26);
  border-radius: var(--radius);
  background: rgba(0, 0, 0, 0.2);
  color: rgba(241, 232, 209, 0.82);
  font-size: 13px;
  line-height: 1.55;
}

.agreement-check input {
  width: 18px;
  height: 18px;
  accent-color: #d4af37;
}

.legal-footer {
  display: grid;
  gap: 6px;
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid rgba(212, 175, 55, 0.18);
  color: rgba(241, 232, 209, 0.62);
  font-size: 11px;
  line-height: 1.55;
}

.legal-footer strong {
  color: #d4af37;
  font-weight: 800;
}

.legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  align-items: center;
}

.text-link {
  width: max-content;
  padding: 0;
  border: 0;
  color: #ffbf00;
  background: transparent;
  font-size: 12px;
  font-weight: 900;
  text-decoration: underline;
}

.legal-definition-list {
  display: grid;
  gap: 8px;
  margin: 14px 0;
}

.legal-definition-list div {
  display: grid;
  grid-template-columns: minmax(88px, 0.34fr) minmax(0, 1fr);
  gap: 10px;
  padding: 10px;
  border: 1px solid rgba(212, 175, 55, 0.18);
  border-radius: var(--radius);
  background: rgba(255, 191, 0, 0.045);
}

.legal-definition-list dt {
  color: #d4af37;
  font-size: 12px;
  font-weight: 900;
}

.legal-definition-list dd {
  margin: 0;
  color: rgba(241, 232, 209, 0.86);
  font-size: 13px;
  line-height: 1.65;
}

.legal-page-copy,
.faq-list {
  display: grid;
  gap: 10px;
  margin: 14px 0;
}

.legal-page-copy p,
.faq-list article,
.faq-list details {
  margin: 0;
  padding: 12px;
  border: 1px solid rgba(212, 175, 55, 0.18);
  border-radius: var(--radius);
  background: rgba(255, 191, 0, 0.045);
}

.legal-page-copy p,
.faq-list p {
  color: rgba(241, 232, 209, 0.84);
  font-size: 13px;
  line-height: 1.7;
}

.legal-page-copy strong,
.faq-list h3,
.faq-list summary {
  color: #ffe7a0;
}

.faq-list details {
  overflow: hidden;
}

.faq-list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 900;
  line-height: 1.55;
  list-style: none;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  content: "+";
  display: grid;
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  place-items: center;
  border: 1px solid rgba(255, 191, 0, 0.34);
  border-radius: 50%;
  color: #ffbf00;
  background: rgba(0, 0, 0, 0.24);
  font-family: "SF Mono", Consolas, monospace;
}

.faq-list details[open] summary::after {
  content: "-";
}

.faq-answer {
  padding-top: 10px;
}

.faq-answer p {
  margin: 0 0 8px;
}

.faq-answer p:last-child {
  margin-bottom: 0;
}

.trade-note {
  margin: 12px 0 0;
  padding: 12px;
  border: 1px solid rgba(255, 191, 0, 0.34);
  border-radius: var(--radius);
  color: #ffe7a0;
  background: rgba(255, 191, 0, 0.08);
  font-size: 13px;
  font-weight: 900;
  line-height: 1.65;
}

.legal-subtitle {
  margin: 14px 0 8px;
  color: #ffe7a0;
  font-size: 15px;
}

.terms-guide-action {
  margin: 12px 0;
}

.terms-guide-action a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 48px;
  padding: 11px 14px;
  border: 1px solid rgba(255, 191, 0, 0.42);
  border-radius: var(--radius);
  color: #ffe7a0;
  background: rgba(255, 191, 0, 0.08);
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
}

.terms-guide-action a::after {
  content: "↗";
  color: #ffbf00;
  font-size: 18px;
}

.terms-accordion {
  display: grid;
  gap: 8px;
  margin: 14px 0;
}

.terms-article {
  overflow: hidden;
  border: 1px solid rgba(212, 175, 55, 0.24);
  border-radius: var(--radius);
  background: rgba(255, 191, 0, 0.045);
}

.terms-article summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 14px;
  color: #ffe7a0;
  cursor: pointer;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.5;
  list-style: none;
}

.terms-article summary::-webkit-details-marker {
  display: none;
}

.terms-article summary::after {
  content: "+";
  display: grid;
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  place-items: center;
  border: 1px solid rgba(255, 191, 0, 0.38);
  border-radius: 50%;
  color: #ffbf00;
  background: rgba(0, 0, 0, 0.28);
  font-family: "SF Mono", Consolas, monospace;
}

.terms-article[open] summary {
  border-bottom: 1px solid rgba(212, 175, 55, 0.18);
  background: rgba(255, 191, 0, 0.06);
}

.terms-article[open] summary::after {
  content: "-";
}

.terms-article-body {
  padding: 13px 14px 14px;
}

.terms-article-body p {
  margin: 0 0 10px;
  color: rgba(241, 232, 209, 0.84);
  font-size: 13px;
  line-height: 1.7;
}

.terms-article-body p:last-child {
  margin-bottom: 0;
}

.terms-clause-list {
  display: grid;
  gap: 8px;
  margin: 12px 0 14px;
  padding: 0;
  list-style: none;
  counter-reset: terms;
}

.terms-clause-list > li {
  position: relative;
  min-height: 34px;
  padding: 10px 10px 10px 42px;
  border: 1px solid rgba(212, 175, 55, 0.18);
  border-radius: var(--radius);
  color: rgba(241, 232, 209, 0.86);
  background: rgba(255, 191, 0, 0.045);
  font-size: 12px;
  line-height: 1.65;
}

.terms-clause-list > li::before {
  counter-increment: terms;
  content: counter(terms);
  position: absolute;
  top: 10px;
  left: 10px;
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border: 1px solid rgba(255, 191, 0, 0.38);
  border-radius: 50%;
  color: #ffbf00;
  background: rgba(0, 0, 0, 0.28);
  font-family: "SF Mono", Consolas, monospace;
  font-size: 11px;
  font-weight: 900;
}

.terms-bullet-list {
  display: grid;
  gap: 4px;
  margin: 8px 0 0;
  padding-left: 18px;
  list-style: disc;
}

.terms-bullet-list li {
  min-height: 0;
  padding: 0;
  border: 0;
  color: inherit;
  background: transparent;
  font-size: inherit;
}

.modal-layer.locked-modal {
  backdrop-filter: blur(8px);
}

.primary-action:disabled,
.danger-action:disabled,
.secondary-action:disabled {
  cursor: not-allowed;
  filter: grayscale(0.8) brightness(0.62);
  opacity: 0.62;
}

.faq-list h3 {
  margin: 0 0 6px;
  font-size: 14px;
}

.faq-list p {
  margin: 0;
}

@media (max-width: 380px) {
  .asset-dashboard {
    grid-template-columns: 1fr;
  }

  .account-metrics strong {
    max-width: 116px;
  }
}

.toast {
  position: fixed;
  left: 50%;
  bottom: max(18px, env(safe-area-inset-bottom));
  z-index: 60;
  width: min(calc(100% - 24px), 440px);
  min-height: 48px;
  padding: 13px 14px;
  border: 1px solid rgba(255, 191, 0, 0.32);
  border-radius: var(--radius);
  color: #251707;
  background: linear-gradient(120deg, #ffdf78, #b87333);
  box-shadow: 0 0 24px rgba(255, 191, 0, 0.28);
  font-size: 13px;
  font-weight: 800;
  opacity: 0;
  transform: translate(-50%, 20px);
  transition: opacity 180ms ease, transform 180ms ease;
  pointer-events: none;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

@media (min-width: 720px) {
  .modal-layer {
    place-items: center;
  }

  .collection-rail {
    grid-auto-columns: 260px;
  }

  .beginner-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .lobby-card {
    min-height: 320px;
  }

  .beginner-grid .lobby-card {
    min-height: calc(320px * 1.2);
  }

  .expert-card {
    width: 100%;
    max-width: 100%;
    min-height: calc(320px * 1.2);
    justify-self: center;
  }
}

@keyframes gamble-card-deal-in {
  from { opacity: 0; transform: translateY(16px) scale(0.92); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes gamble-card-flip-in {
  0% { opacity: 0.55; transform: rotateY(86deg) scale(0.96); }
  55% { opacity: 1; transform: rotateY(-8deg) scale(1.02); }
  100% { opacity: 1; transform: rotateY(0) scale(1); }
}

@keyframes card-spin {
  0% {
    transform: rotateY(0deg) translateX(0);
    filter: blur(0);
  }
  48% {
    transform: rotateY(900deg) translateX(12px);
    filter: blur(1px);
  }
  100% {
    transform: rotateY(1800deg) translateX(0);
    filter: blur(0);
  }
}

@keyframes table-fog {
  0% {
    transform: translate3d(-2%, -1%, 0) scale(1);
    opacity: 0.42;
  }
  100% {
    transform: translate3d(3%, 2%, 0) scale(1.08);
    opacity: 0.68;
  }
}

@keyframes floor-fade {
  0% {
    opacity: 0;
    transform: translateY(18px) scale(0.985);
    filter: blur(8px) brightness(0.65);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0) brightness(1);
  }
}

@keyframes roulette-result-pop {
  0% {
    opacity: 0;
    transform: scale(0.74) translateY(12px);
    filter: blur(8px) brightness(0.8);
  }
  18% {
    opacity: 1;
    transform: scale(1.08) translateY(0);
    filter: blur(0) brightness(1.28);
  }
  70% {
    opacity: 1;
    transform: scale(1);
    filter: brightness(1);
  }
  100% {
    opacity: 0;
    transform: scale(0.98) translateY(-10px);
    filter: brightness(0.9);
  }
}

@keyframes pierrot-card-flip {
  0% {
    transform: translateY(0) rotateY(0deg) scale(0.98);
    filter: brightness(0.75);
  }
  48% {
    transform: translateY(-12px) rotateY(86deg) scale(1.03);
    filter: brightness(1.25);
  }
  100% {
    transform: translateY(-6px) rotateY(0deg) scale(1);
    filter: brightness(1);
  }
}

@keyframes pierrot-card-flip-fast {
  0% { opacity: 0.75; transform: rotateY(86deg) scale(0.96); }
  65% { opacity: 1; transform: rotateY(-5deg) scale(1.01); }
  100% { opacity: 1; transform: rotateY(0) scale(1); }
}

@keyframes pierrot-card-shuffle {
  0% {
    transform: translate3d(-4px, 0, 0) rotateZ(-1.2deg);
  }
  100% {
    transform: translate3d(4px, -4px, 0) rotateZ(1.2deg);
  }
}

@keyframes trend-dot-in {
  from {
    opacity: 0;
    transform: translateX(8px) scale(0.68);
  }
  to {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

@keyframes baccarat-full-result {
  0% {
    opacity: 0;
    transform: scale(0.92);
    filter: blur(8px) brightness(0.86);
  }
  18% {
    opacity: 1;
    transform: scale(1);
    filter: blur(0) brightness(1.18);
  }
  78% {
    opacity: 1;
    transform: scale(1);
    filter: brightness(1);
  }
  100% {
    opacity: 0;
    transform: scale(0.98);
    filter: brightness(0.92);
  }
}

@keyframes dealer-flip {
  0% {
    transform: rotateY(-180deg) scale(0.96);
    filter: brightness(0.8);
  }
  48% {
    transform: rotateY(92deg) scale(1.08);
    filter: brightness(1.35);
  }
  100% {
    transform: rotateY(0deg) scale(1);
    filter: brightness(1);
  }
}

@keyframes deal-slide {
  0% {
    opacity: 0;
    transform: translate3d(-140px, -84px, 0) rotate(-18deg) scale(0.92);
  }
  78% {
    opacity: 1;
    transform: translate3d(4px, 2px, 0) rotate(2deg) scale(1.02);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0) rotate(0deg) scale(1);
  }
}

@keyframes suspense-deal {
  0% {
    opacity: 0;
    transform: translate3d(-170px, -96px, 0) rotate(-22deg) scale(0.9);
    filter: brightness(0.65) blur(1px);
  }
  46% {
    opacity: 1;
    transform: translate3d(-26px, -18px, 0) rotate(-8deg) scale(0.98);
    filter: brightness(0.82) blur(0.6px);
  }
  72% {
    transform: translate3d(7px, 3px, 0) rotate(2.5deg) scale(1.05);
    filter: brightness(1.24) blur(0);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0) rotate(0deg) scale(1);
    filter: brightness(1);
  }
}

@keyframes card-impact {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  35% {
    transform: translateY(3px) rotate(-1.2deg);
  }
  65% {
    transform: translateY(-2px) rotate(0.8deg);
  }
}

@keyframes winner-bounce {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }
  28% {
    transform: translateY(-15px) scale(1.08) rotate(-1.5deg);
  }
  52% {
    transform: translateY(4px) scale(1.02) rotate(1deg);
  }
  74% {
    transform: translateY(-7px) scale(1.05);
  }
}

@keyframes baccarat-seat-win {
  0%,
  100% {
    transform: translateY(0);
  }
  36% {
    transform: translateY(-6px);
  }
  68% {
    transform: translateY(1px);
  }
}

@keyframes baccarat-draw-glow {
  0%,
  100% {
    filter: brightness(1);
  }
  46% {
    filter: brightness(1.15);
    box-shadow: 0 0 16px rgba(255, 220, 115, 0.28), 0 10px 20px rgba(0, 0, 0, 0.28);
  }
}

@keyframes winner-glow {
  0% {
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.28);
    filter: brightness(1);
  }
  36% {
    box-shadow: 0 0 28px rgba(255, 191, 0, 0.78), 0 0 54px rgba(255, 220, 115, 0.34), 0 14px 24px rgba(0, 0, 0, 0.36);
    filter: brightness(1.35);
  }
  100% {
    box-shadow: 0 0 18px rgba(255, 191, 0, 0.32), 0 10px 20px rgba(0, 0, 0, 0.28);
    filter: brightness(1);
  }
}

@keyframes score-pop {
  0% {
    transform: scale(0.82);
    filter: brightness(0.78);
  }
  58% {
    transform: scale(1.2);
    filter: brightness(1.42);
  }
  100% {
    transform: scale(1);
    filter: brightness(1);
  }
}

@keyframes result-flash-red {
  0%,
  100% {
    opacity: 0;
  }
  35% {
    opacity: 0.42;
    background: rgba(215, 71, 54, 0.85);
  }
}

@keyframes result-flash-black {
  0%,
  100% {
    opacity: 0;
  }
  35% {
    opacity: 0.52;
    background: rgba(0, 0, 0, 0.92);
  }
}

@keyframes result-flash-gold {
  0%,
  100% {
    opacity: 0;
  }
  40% {
    opacity: 0.76;
    background:
      radial-gradient(circle at 50% 45%, rgba(255, 255, 210, 0.82), transparent 34%),
      rgba(255, 191, 0, 0.72);
  }
}

/* Only LAST LAUGH cycles rainbow hues; keep ordinary results in their existing palette. */
#rouletteResultBurst.global-result-overlay.last-laugh,
#gambleResultBurst.global-result-overlay.last-laugh,
#baccaratResultBurst.global-result-overlay.last-laugh,
#rouletteResultBurst.global-result-overlay.last-laugh.show,
#gambleResultBurst.global-result-overlay.last-laugh.show,
#baccaratResultBurst.global-result-overlay.last-laugh.show {
  animation: last-laugh-fill 2400ms ease-out forwards, rainbow-clown 900ms linear infinite;
}

/* Preserve the existing completion event while reducing motion and disabling hue cycling. */
@media (prefers-reduced-motion: reduce) {
  #rouletteResultBurst.global-result-overlay.last-laugh,
  #gambleResultBurst.global-result-overlay.last-laugh,
  #baccaratResultBurst.global-result-overlay.last-laugh,
  #rouletteResultBurst.global-result-overlay.last-laugh.show,
  #gambleResultBurst.global-result-overlay.last-laugh.show,
  #baccaratResultBurst.global-result-overlay.last-laugh.show {
    animation: last-laugh-fill 2400ms ease-out forwards;
    transform: none !important;
    filter: none !important;
  }
}

#rouletteResultBurst.global-result-overlay.last-laugh span,
#gambleResultBurst.global-result-overlay.last-laugh span,
#baccaratResultBurst.global-result-overlay.last-laugh span,
#rouletteResultBurst.global-result-overlay.last-laugh strong,
#gambleResultBurst.global-result-overlay.last-laugh strong,
#baccaratResultBurst.global-result-overlay.last-laugh strong {
  color: #fff4b8;
  background: linear-gradient(100deg, #ff929e 0%, #ffc875 16%, #fff799 32%, #9dffc6 49%, #8deaff 65%, #b9b0ff 82%, #ffb0ea 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: none;
  filter: drop-shadow(0 2px 1px #000) drop-shadow(0 0 10px rgba(255, 228, 171, 0.3));
}

#rouletteResultBurst.global-result-overlay.last-laugh span,
#gambleResultBurst.global-result-overlay.last-laugh span,
#baccaratResultBurst.global-result-overlay.last-laugh span {
  font-size: clamp(28px, 9vw, 100px);
  line-height: 1.12;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

@keyframes last-laugh-fill {
  0% {
    opacity: 0;
    transform: scale(0.92);
  }
  18% {
    opacity: 1;
    transform: scale(1.03);
  }
  62% {
    opacity: 1;
    transform: scale(1);
  }
  100% {
    opacity: 0;
    transform: scale(1.08);
  }
}

@keyframes rainbow-clown {
  0% {
    filter: hue-rotate(0deg) saturate(1.25) contrast(1.05);
  }
  50% {
    filter: hue-rotate(180deg) saturate(1.7) contrast(1.18);
  }
  100% {
    filter: hue-rotate(360deg) saturate(1.25) contrast(1.05);
  }
}

@keyframes particle-rise {
  0% {
    opacity: 0;
    transform: translateY(28px) scale(0.8);
  }
  20% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translateY(-70px) scale(1.35);
  }
}

@keyframes squeeze-card {
  0% {
    transform: rotateY(0deg) translateX(0);
  }
  45% {
    transform: rotateY(58deg) translateX(8px) skewY(-3deg);
    filter: brightness(0.72);
  }
  100% {
    transform: rotateY(0deg) translateX(0);
  }
}

@keyframes camera-pop {
  0%,
  100% {
    filter: brightness(1);
  }
  50% {
    filter: brightness(1.34);
    transform: scale(1.08);
  }
}

@keyframes camera-zoom {
  0%,
  100% {
    transform: scale(1);
  }
  42% {
    transform: scale(1.035);
    filter: brightness(1.2);
  }
}

@media (max-width: 640px) {
  #gambleGame {
    padding-bottom: calc(92px + env(safe-area-inset-bottom));
  }

  #gambleGame .game-screen-header {
    margin-bottom: 8px;
  }

  #gambleGame .gamble-panel {
    gap: 8px;
    min-height: 0;
    padding-bottom: calc(14px + env(safe-area-inset-bottom));
  }

  #gambleGame .gamble-table {
    gap: 7px;
    min-height: 0;
    padding: 8px;
  }

  #gambleGame .gamble-seat {
    padding: 8px;
    border-radius: 10px;
  }

  #gambleGame .seat-head {
    gap: 8px;
  }

  #gambleGame .score-formula {
    min-width: 46px;
    padding: 6px 8px;
    font-size: clamp(22px, 8vw, 34px);
    line-height: 1;
  }

  #gambleGame .gamble-card-row {
    min-height: 68px;
    margin-top: 6px;
    padding-inline: 3px;
  }

  #gambleGame .gamble-card-row .gamble-hand-card {
    width: 48px;
    height: 68px;
  }

  #gambleGame .gamble-card-row .gamble-hand-card.stacked-card {
    margin-left: clamp(-34px, -9vw, -24px);
  }

  #gambleGame .gamble-card-row .gamble-hand-card.latest-card {
    transform: translateX(clamp(6px, 2.4vw, 12px)) translateY(-1px);
  }

  #gambleGame .gamble-status {
    min-height: 82px;
    padding: 9px;
    border-radius: 10px;
  }

  #gambleGame .gamble-status .eyebrow {
    font-size: 10px;
  }

  #gambleGame .gamble-status h2 {
    margin: 1px 0 4px;
    font-size: 22px;
  }

  #gambleGame .gamble-message {
    min-height: 20px;
    font-size: 12px;
  }

  #gambleGame .gamble-action-panel {
    position: sticky;
    bottom: calc(8px + env(safe-area-inset-bottom));
    z-index: 24;
    gap: 6px;
    padding: 7px;
    border: 1px solid rgba(212, 175, 55, 0.24);
    border-radius: 12px;
    background:
      linear-gradient(180deg, rgba(4, 18, 10, 0.94), rgba(2, 8, 5, 0.9)),
      radial-gradient(circle at 50% 0%, rgba(255, 191, 0, 0.14), transparent 64%);
    box-shadow: 0 -12px 26px rgba(0, 0, 0, 0.36);
    backdrop-filter: blur(12px);
  }

  @supports (-webkit-touch-callout: none) {
    #gambleGame .gamble-action-panel {
      background:
        linear-gradient(180deg, rgba(4, 18, 10, 0.985), rgba(2, 8, 5, 0.975)),
        radial-gradient(circle at 50% 0%, rgba(255, 191, 0, 0.1), transparent 64%);
      -webkit-backdrop-filter: none;
      backdrop-filter: none;
    }
  }

  #gambleGame .gamble-action-panel:not(:has(button:not([hidden]))) {
    display: none;
  }

  #gambleGame .gamble-action-panel .primary-action,
  #gambleGame .gamble-action-panel .secondary-action {
    min-height: 46px;
    padding-inline: 7px;
    font-size: 12px;
    letter-spacing: 0.02em;
  }

  #gambleGame .gamble-stake-panel {
    grid-template-columns: minmax(0, 1fr) minmax(108px, 0.78fr);
    gap: 8px;
    margin-bottom: calc(12px + env(safe-area-inset-bottom));
  }

  #gambleGame .bet-adjust {
    min-height: 50px;
    grid-template-columns: 36px minmax(0, 1fr) 36px;
  }

  #gambleGame .bet-adjust input {
    font-size: 16px;
  }

  #gambleGame .stake-step {
    font-size: 20px;
  }

  #gambleGame #gambleStartButton {
    min-height: 50px;
  }

  .referral-guideline-grid {
    grid-template-columns: 1fr;
  }

  .referral-code-actions {
    grid-template-columns: 1fr;
  }

  .point-cap-notice dl {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 360px) {
  .asset-summary-card {
    grid-template-columns: 1fr;
  }

  .asset-summary-card > .asset-balance-panel,
  .asset-summary-card > .vault-asset-dashboard,
  .asset-summary-card > .asset-value-panel {
    grid-column: 1 / -1;
  }

  .asset-summary-card > .asset-balance-panel {
    border-width: 1px 1px 0;
    border-radius: var(--radius) var(--radius) 0 0;
  }

  .asset-summary-card > .vault-asset-dashboard .dashboard-card {
    border-width: 0 1px 1px;
    border-radius: 0 0 var(--radius) var(--radius);
  }
}
:is(.partner-management, .partner-reward-history) .modal-copy {
  overflow-wrap: anywhere;
}
.partner-management [data-partner-results] {
  display: grid;
  gap: 8px;
}
.partner-management [data-partner-detail] {
  margin-top: 18px;
}
.partner-management .field-label {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
}
.partner-management .text-input {
  box-sizing: border-box;
  width: 100%;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--graphite-0);
  color: var(--text);
  font: inherit;
}
.partner-reward-row {
  padding: 12px 0;
  border-top: 1px solid rgba(212, 175, 55, .25);
}

/* JUDGE compact table: keep the full BET controls within a short viewport. */
#baccaratGame { min-height: 0; }
#baccaratGame .game-screen-header {
  gap: 6px;
  margin-bottom: 6px;
  padding: max(6px, env(safe-area-inset-top)) 10px 6px;
}
#baccaratGame .game-screen-actions { display: flex; align-items: center; gap: 4px; }
#baccaratGame .game-screen-actions button {
  min-width: 0;
  min-height: 32px;
  padding: 0 7px;
  font-size: 10px;
  line-height: 1.2;
}
#baccaratGame .game-panel { padding: 10px; }
#baccaratGame .game-head { gap: 6px; }
#baccaratGame .game-head h2 { margin: 0; font-size: 18px; line-height: 1.25; }
#baccaratGame #baccaratTable {
  height: clamp(164px, 30svh, 204px);
  min-height: 0;
  margin-top: 6px;
  padding: 7px;
  gap: 6px;
}
#baccaratGame #baccaratTable .baccarat-seat { padding: 6px; }
#baccaratGame #baccaratTable .seat-play { margin-top: 0; gap: 4px; }
#baccaratGame #baccaratTable .score-formula {
  min-height: 30px;
  margin: 0;
  font-size: 30px;
  line-height: 1;
}
#baccaratGame #baccaratTable .card-row { min-height: 72px; margin: 0; padding-inline: 2px; }
#baccaratGame #baccaratTable .mini-card { width: clamp(38px, 10vw, 50px); height: auto; }
#baccaratGame #baccaratTable .seat-head { margin-top: 4px; font-size: 12px; }
#baccaratGame .baccarat-trend-board { min-height: 24px; margin-top: 5px; padding: 3px 7px; gap: 8px; }
#baccaratGame .baccarat-trend-board > span { font-size: 10px; letter-spacing: .08em; }
#baccaratGame .baccarat-trend-board .trend-dots { gap: 4px; }
#baccaratGame .baccarat-trend-board .trend-dot { width: 14px; height: 14px; }
#baccaratGame .judge-side-selector { margin-top: 7px; padding: 6px; gap: 5px; border-radius: 13px 13px 25px 25px; }
#baccaratGame .judge-bet-area { height: 76px; min-height: 0; gap: 2px; padding: 12px 4px 6px; border-radius: 8px 8px 16px 16px; }
#baccaratGame .judge-bet-area.selected::before { top: -5px; padding: 2px 8px; font-size: 8px; }
#baccaratGame .judge-bet-name { font-size: 14px; letter-spacing: .035em; }
#baccaratGame .judge-bet-odds { font-size: 26px; }
#baccaratGame .judge-bet-area small { font-size: 10px; line-height: 1.2; }
#baccaratGame .judge-bet-summary { margin: 4px 2px; font-size: 10px; line-height: 1.4; }
#baccaratGame .judge-special-rule { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 9px; margin: 4px 0 6px; padding: 6px 8px; }
#baccaratGame .judge-special-title { font-size: 11.5px; letter-spacing: .025em; white-space: nowrap; }
#baccaratGame .judge-special-title strong { margin-left: 5px; }
#baccaratGame .judge-special-rule p { font-size: 9.5px; line-height: 1.35; }
#baccaratGame .baccarat-controls { margin-top: 6px; gap: 8px; grid-template-columns: minmax(0, 1fr) minmax(100px, .92fr); }
#baccaratGame .bet-control-stack { gap: 4px; }
#baccaratGame .bet-step-option { min-height: 24px; padding: 3px; font-size: 10px; }
#baccaratGame .bet-adjust { min-height: 44px; grid-template-columns: 36px minmax(0, 1fr) 36px; }
#baccaratGame .bet-adjust input { font-size: 16px; }
#baccaratGame .stake-step { font-size: 22px; }
#baccaratGame #baccaratPlayButton { min-height: 72px; font-size: 16px; }
@media (max-width: 430px) {
  #baccaratGame .judge-bet-area { height: 72px; }
  #baccaratGame .judge-bet-name { font-size: 12px; letter-spacing: .01em; }
  #baccaratGame .judge-bet-odds { font-size: 24px; }
  #baccaratGame .judge-special-rule { gap: 4px 7px; }
}

/* Compact condition notices: display only, with clear space for BET. */
[data-backup-restore] { display: grid; gap: 12px; margin-top: 12px; }
[data-backup-restore] .field-label { display: grid; gap: 6px; min-width: 0; }
[data-backup-restore] textarea { display: block; box-sizing: border-box; width: 100%; min-height: 64px; }
[data-backup-restore] input[type="file"] { display: block; width: 100%; min-width: 0; max-width: 100%; font: inherit; }
[data-backup-restore-status] { margin: 0; }
#rouletteGame .game-special-rule,
#gambleGame .game-special-rule {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 4px 9px;
  margin: 0;
  padding: 6px 8px;
  border: 1px solid rgba(212, 175, 55, .32);
  border-radius: 8px;
  background: rgba(8, 20, 13, .75);
  color: var(--text);
}
#rouletteGame .game-special-title,
#gambleGame .game-special-title {
  color: var(--gold);
  font-size: 11.5px;
  letter-spacing: .025em;
  white-space: nowrap;
}
#rouletteGame .game-special-title strong,
#gambleGame .game-special-title strong { margin-left: 5px; }
#rouletteGame .game-special-rule p,
#gambleGame .game-special-rule p { margin: 0; font-size: 10.5px; line-height: 1.45; }
#gambleGame .game-special-rule small { font-size: 10px; }
#rouletteGame .roulette-minimal-panel { min-height: 0; gap: 8px; }
#gambleGame .gamble-panel { min-height: 0; align-content: start; gap: 8px; }
#gambleGame .gamble-table { min-height: 0; gap: 8px; padding: 8px; }
#gambleGame .gamble-seat { padding: 8px; }
#gambleGame .score-formula { min-height: 38px; padding: 5px 7px; font-size: 28px; line-height: 1; }
#gambleGame .gamble-card-row { min-height: 68px; margin-top: 6px; }
#gambleGame .gamble-status { min-height: 82px; padding: 9px; }
@media (max-width: 640px) {
  #rouletteGame .game-screen-header,
  #gambleGame .game-screen-header { gap: 6px; margin-bottom: 6px; padding: max(6px, env(safe-area-inset-top)) 10px 6px; }
  #rouletteGame .game-screen-actions,
  #gambleGame .game-screen-actions { display: flex; align-items: center; gap: 4px; }
  #rouletteGame .game-screen-actions button,
  #gambleGame .game-screen-actions button { min-width: 0; min-height: 32px; padding: 0 7px; font-size: 10px; line-height: 1.2; }
  #rouletteGame .roulette-reveal-card img { max-height: 20svh; }
}
/* Short phone viewports: retain the table and controls, but leave BET fully visible.
   No fixed-height clipping or hidden scrolling; rules/results remain accessible. */
@media (max-width: 640px) and (max-height: 740px) {
  #rouletteGame,
  #gambleGame { min-height: 0; }
  #rouletteGame .roulette-minimal-panel { padding: 10px; }
  #rouletteGame .roulette-stage { min-height: clamp(210px, 42svh, 280px); padding: 12px 8px; }
  #rouletteGame .roulette-reveal-card img { max-height: clamp(72px, 16svh, 102px); }
  #rouletteGame .roulette-controls { gap: 8px; }
  #gambleGame { padding-bottom: max(12px, env(safe-area-inset-bottom)); }
  #gambleGame .gamble-panel { padding: 10px; gap: 6px; }
  #gambleGame .gamble-table { padding: 6px; gap: 6px; }
  #gambleGame .gamble-seat { padding: 6px; }
  #gambleGame .score-formula { min-height: 28px; padding: 3px 6px; font-size: 24px; }
  #gambleGame .gamble-card-row { min-height: 60px; margin-top: 4px; }
  #gambleGame .gamble-card-row .gamble-hand-card { width: 42px; height: 60px; }
  #gambleGame .gamble-status { min-height: 66px; padding: 6px; }
  #gambleGame .gamble-status h2 { font-size: 21px; margin: 1px 0 3px; }
  #gambleGame .gamble-stake-panel { margin-bottom: 0; }
}
@media (max-width: 430px) {
  #rouletteGame .game-special-rule,
  #gambleGame .game-special-rule { gap: 4px 7px; }
  #rouletteGame .game-special-title,
  #gambleGame .game-special-title { font-size: 10.5px; }
  #rouletteGame .game-special-rule p,
  #gambleGame .game-special-rule p { font-size: 10px; }
}

/* Game selection: show the complete image above a separate copy/action area. */
#gameLobby .lobby-card {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-height: 0;
  background-image: none !important;
}
#gameLobby .lobby-card::after { display: none; }
#gameLobby .lobby-card > img {
  display: block;
  position: static;
  flex-shrink: 0;
  width: 100%;
  height: auto;
  margin: 0;
  object-fit: contain;
}
#gameLobby .lobby-card-body {
  position: relative;
  inset: auto;
  width: 100%;
  padding: 14px;
  background: linear-gradient(0deg, #050c08fa, #07180cea);
}
#rouletteGame .game-head h2 { margin: 0; font-size: 19px; line-height: 1.25; }

/* JUDGE results: Player blue, Tie green, Banker red. Other games are unchanged. */
.baccarat-trend-board .trend-dot.blue {
  background: radial-gradient(circle at 35% 28%, #a9d8ff, #176fc4 58%, #061d46);
  box-shadow: 0 0 12px rgba(54, 139, 255, 0.38), inset 0 0 10px rgba(255, 255, 255, 0.13);
}
