:root {
  color-scheme: dark;
  --bg: #050303;
  --panel: rgba(10, 8, 8, 0.86);
  --panel-strong: rgba(3, 3, 4, 0.94);
  --gold: #f1c863;
  --gold-soft: rgba(241, 200, 99, 0.35);
  --red: #e83d33;
  --green: #28e078;
  --ink: #fff7df;
  --muted: rgba(255, 247, 223, 0.62);
  --line: rgba(241, 200, 99, 0.24);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-height: 100%;
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic", "Segoe UI", sans-serif;
}

body {
  overflow-x: hidden;
  -webkit-tap-highlight-color: transparent;
}

button,
input {
  font: inherit;
}

button {
  border: 0;
  color: inherit;
  cursor: pointer;
}

.app-shell {
  width: 100%;
  max-width: 430px;
  min-height: 100svh;
  margin: 0 auto;
  background:
    radial-gradient(circle at 50% 0%, rgba(241, 200, 99, 0.16), transparent 32%),
    linear-gradient(180deg, #100807 0%, #050303 38%, #090505 100%);
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-left: 1px solid rgba(255, 255, 255, 0.06);
  border-right: 1px solid rgba(255, 255, 255, 0.06);
}

.topbar {
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr) minmax(92px, auto);
  align-items: center;
  gap: 8px;
  padding: calc(10px + env(safe-area-inset-top, 0px)) 12px 10px;
  background: rgba(0, 0, 0, 0.72);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
  z-index: 10;
}

.sound-button {
  width: 74px;
  height: 32px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(9, 5, 4, 0.96));
  border: 1px solid rgba(241, 200, 99, 0.28);
  color: rgba(255, 247, 223, 0.72);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.05em;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 0 12px rgba(0, 0, 0, 0.35);
}

.sound-button.sound-on {
  background: linear-gradient(180deg, #f8d779, #9d6419);
  border-color: rgba(255, 236, 170, 0.74);
  color: #160900;
  box-shadow: 0 0 16px rgba(241, 200, 99, 0.42);
}

.brand-lockup {
  min-width: 0;
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.brand-kicker {
  font-size: 8px;
  letter-spacing: 0.22em;
  color: var(--muted);
  white-space: nowrap;
}

.brand-lockup strong {
  margin-top: 3px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(16px, 5vw, 20px);
  letter-spacing: 0.08em;
  color: var(--gold);
  text-shadow: 0 0 14px rgba(241, 200, 99, 0.45);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wallet {
  min-width: 92px;
  padding: 6px 7px;
  border-radius: 7px;
  background: #060203;
  border: 1px solid rgba(40, 224, 120, 0.45);
  box-shadow: inset 0 0 14px rgba(40, 224, 120, 0.09);
  text-align: right;
}

.wallet span {
  display: block;
  font-size: 8px;
  letter-spacing: 0.16em;
  color: rgba(40, 224, 120, 0.75);
}

.wallet strong {
  display: block;
  font-family: "Courier New", monospace;
  font-size: clamp(12px, 3.7vw, 17px);
  color: var(--green);
  text-shadow: 0 0 10px rgba(40, 224, 120, 0.42);
}

.wallet.flash-debit {
  animation: debitFlash 0.48s ease;
}

.wallet.flash-credit {
  animation: creditFlash 0.62s ease;
}

.wallet.value-pop,
.wallet strong.value-pop {
  animation: walletValuePop 0.44s ease;
}

@keyframes debitFlash {
  0%, 100% { border-color: rgba(40, 224, 120, 0.45); }
  45% { border-color: rgba(232, 61, 51, 0.9); box-shadow: 0 0 18px rgba(232, 61, 51, 0.4); }
}

@keyframes creditFlash {
  0%, 100% { border-color: rgba(40, 224, 120, 0.45); }
  45% { border-color: rgba(241, 200, 99, 1); box-shadow: 0 0 22px rgba(241, 200, 99, 0.55); }
}

@keyframes walletValuePop {
  45% { transform: scale(1.04); }
}

.game-tabs {
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1px;
  padding: 7px 8px;
  background: rgba(0, 0, 0, 0.58);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  z-index: 9;
}

.tab {
  min-width: 0;
  height: 36px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 247, 223, 0.72);
  font-size: clamp(9px, 2.75vw, 11px);
  font-weight: 800;
  letter-spacing: 0.05em;
}

.tab.active {
  background: linear-gradient(180deg, #f6d77a, #9d6419);
  color: #160900;
  box-shadow: 0 2px 12px rgba(241, 200, 99, 0.32);
}

.view {
  display: none;
  flex: 1 1 auto;
  min-height: 0;
}

.view.active {
  display: flex;
  flex-direction: column;
}

.photo-scene {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
  background: #050303;
}

.photo-scene > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.04) contrast(1.04) brightness(0.82);
  transform: scale(1.012);
}

.scene-vignette,
.slot-reflection {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.scene-vignette {
  background:
    radial-gradient(ellipse at 50% 47%, transparent 0%, rgba(0, 0, 0, 0.04) 44%, rgba(0, 0, 0, 0.72) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.35));
}

.bj-status-panel {
  position: absolute;
  left: 12px;
  right: 12px;
  top: 10px;
  z-index: 8;
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.56);
  border: 1px solid rgba(241, 200, 99, 0.3);
  backdrop-filter: blur(10px);
}

.bj-status-panel span {
  flex: 0 0 auto;
  font-size: 9px;
  letter-spacing: 0.16em;
  color: var(--gold);
}

.bj-status-panel strong {
  min-width: 0;
  font-size: clamp(11px, 3vw, 14px);
  text-align: right;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bj-result-banner {
  position: absolute;
  left: 50%;
  top: 58%;
  z-index: 5;
  width: min(90%, 350px);
  min-height: 88px;
  display: grid;
  place-items: center;
  gap: 2px;
  padding: 9px 13px 10px;
  border-radius: 10px;
  text-align: center;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.92);
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.18), transparent 38%),
    linear-gradient(180deg, rgba(4, 3, 3, 0.9), rgba(0, 0, 0, 0.72));
  border: 1px solid rgba(241, 200, 99, 0.42);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.58), inset 0 0 24px rgba(241, 200, 99, 0.1);
  backdrop-filter: blur(5px);
}

.bj-result-banner.show {
  opacity: 1;
  animation: bjResultPop 1.9s ease both;
}

.bj-result-banner span {
  color: rgba(255, 247, 223, 0.78);
  font-size: clamp(9px, 2.6vw, 12px);
  font-weight: 900;
  letter-spacing: 0.18em;
}

.bj-result-banner strong {
  font-family: Impact, "Arial Black", sans-serif;
  color: var(--gold);
  font-size: clamp(31px, 10.5vw, 54px);
  line-height: 0.9;
  letter-spacing: 0;
  text-shadow: 0 3px 0 #431000, 0 0 22px rgba(241, 200, 99, 0.72);
  white-space: nowrap;
}

.bj-result-banner em {
  color: var(--green);
  font-family: "Courier New", monospace;
  font-size: clamp(13px, 4.2vw, 20px);
  font-style: normal;
  font-weight: 900;
  text-shadow: 0 0 18px rgba(40, 224, 120, 0.6);
}

.bj-result-banner small {
  max-width: 100%;
  color: rgba(255, 247, 223, 0.86);
  font-family: "Courier New", monospace;
  font-size: clamp(9px, 2.9vw, 12px);
  font-weight: 900;
  letter-spacing: 0.04em;
  line-height: 1.15;
  overflow-wrap: anywhere;
  text-shadow: 0 0 12px rgba(0, 0, 0, 0.86);
}

.bj-result-banner.result-lose strong,
.bj-result-banner.result-bust strong {
  color: #ff534d;
  text-shadow: 0 3px 0 #3b0403, 0 0 20px rgba(255, 56, 56, 0.68);
}

.bj-result-banner.result-lose em,
.bj-result-banner.result-bust em {
  color: #ff8b84;
  text-shadow: 0 0 14px rgba(255, 56, 56, 0.52);
}

.bj-result-banner.result-push strong {
  color: #f7f1df;
  text-shadow: 0 3px 0 #2b2010, 0 0 18px rgba(255, 255, 255, 0.42);
}

.bj-result-banner.result-blackjack strong {
  color: #ffe27b;
  text-shadow: 0 3px 0 #5b2100, 0 0 30px rgba(241, 200, 99, 0.86);
}

@keyframes bjResultPop {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(0.86); }
  12% { opacity: 1; transform: translate(-50%, -50%) scale(1.04); }
  86% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
  100% { opacity: 0.92; transform: translate(-50%, -50%) scale(1); }
}

.dealer-zone,
.player-zone {
  position: absolute;
  left: 18px;
  right: 18px;
  z-index: 7;
}

.dealer-zone {
  top: 30%;
}

.player-zone {
  bottom: 12px;
}

.zone-label {
  margin-bottom: 5px;
  color: var(--gold);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.9);
}

.card-row {
  min-height: 76px;
  display: flex;
  gap: 7px;
  align-items: center;
}

.dealer-cards {
  justify-content: center;
}

.player-cards {
  justify-content: center;
}

.card {
  width: clamp(42px, 13.5vw, 62px);
  aspect-ratio: 0.68;
  border-radius: 6px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(226, 220, 204, 0.94));
  color: #100806;
  border: 1px solid rgba(0, 0, 0, 0.18);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.52);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 5px;
  font-weight: 900;
  line-height: 1;
  transform: rotate(var(--rot, 0deg));
  animation: cardIn 0.28s ease both;
}

.card.red {
  color: #b70d16;
}

.card.back {
  background:
    radial-gradient(circle at 50% 50%, rgba(241, 200, 99, 0.4), transparent 34%),
    repeating-linear-gradient(45deg, #190605 0 5px, #370a09 5px 10px);
  color: transparent;
}

.card .rank {
  font-size: 16px;
}

.card .suit {
  align-self: center;
  font-size: 23px;
}

.card .rank.bottom {
  align-self: flex-end;
  transform: rotate(180deg);
}

@keyframes cardIn {
  from { opacity: 0; transform: translateY(-10px) rotate(var(--rot, 0deg)) scale(0.92); }
  to { opacity: 1; transform: translateY(0) rotate(var(--rot, 0deg)) scale(1); }
}

.control-deck {
  flex: 0 0 auto;
  padding: 10px 10px calc(12px + var(--safe-bottom));
  background:
    linear-gradient(180deg, rgba(3, 3, 4, 0.68), rgba(3, 3, 4, 0.98)),
    radial-gradient(circle at 50% 0%, rgba(241, 200, 99, 0.12), transparent 60%);
  border-top: 1px solid var(--line);
}

.bet-strip {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) 52px 52px;
  gap: 6px;
  align-items: stretch;
  margin-bottom: 9px;
}

.bet-strip button,
.action-grid button,
.wide-action {
  min-height: 46px;
  border-radius: 8px;
  background: linear-gradient(180deg, #241c15, #070504);
  border: 1px solid rgba(241, 200, 99, 0.28);
  color: var(--ink);
  font-weight: 900;
  font-size: 13px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 4px 12px rgba(0, 0, 0, 0.35);
}

.bet-strip button:active,
.action-grid button:active,
.wide-action:active,
.spin-button:active {
  transform: translateY(1px) scale(0.99);
}

.bet-readout {
  min-width: 0;
  border-radius: 8px;
  padding: 6px 9px;
  background: rgba(0, 0, 0, 0.72);
  border: 1px solid rgba(40, 224, 120, 0.28);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.bet-readout span {
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--muted);
}

.bet-readout strong {
  min-width: 0;
  color: var(--green);
  font-family: "Courier New", monospace;
  font-size: clamp(13px, 4vw, 16px);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bj-round-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  margin-top: 7px;
}

.bj-round-strip span {
  min-width: 0;
  padding: 7px 8px;
  border-radius: 7px;
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(241, 200, 99, 0.24);
  color: var(--muted);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.bj-round-strip strong {
  display: block;
  margin-top: 3px;
  color: var(--green);
  font-family: "Courier New", monospace;
  font-size: clamp(12px, 3.8vw, 16px);
  letter-spacing: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bj-round-strip strong.value-pop {
  animation: meterValuePop 0.48s ease;
}

.bj-round-strip .win-positive {
  color: var(--gold);
  text-shadow: 0 0 12px rgba(241, 200, 99, 0.5);
}

.bj-round-strip .win-zero {
  color: rgba(255, 247, 223, 0.54);
}

@keyframes meterValuePop {
  45% { transform: scale(1.07); filter: brightness(1.25); }
}

.action-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.9fr 0.95fr 1fr 0.8fr;
  gap: 6px;
}

.action-grid button {
  min-width: 0;
  padding-left: 4px;
  padding-right: 4px;
  font-size: clamp(10px, 2.9vw, 13px);
}

.action-grid button:disabled,
.spin-button:disabled,
.wide-action:disabled {
  opacity: 0.38;
  cursor: not-allowed;
}

.primary-action,
.spin-button,
.wide-action {
  background: linear-gradient(180deg, #f8d779, #b8731a 58%, #653006) !important;
  color: #180900 !important;
  border-color: rgba(255, 236, 170, 0.75) !important;
}

.slot-scene > img {
  object-position: center center;
  filter: saturate(1.08) contrast(1.05) brightness(0.78);
}

.slot-reflection {
  background:
    linear-gradient(110deg, transparent 0%, rgba(255, 255, 255, 0.1) 24%, transparent 38%),
    radial-gradient(circle at 50% 37%, transparent 0 30%, rgba(0, 0, 0, 0.48) 58%, rgba(0, 0, 0, 0.82) 100%);
  mix-blend-mode: screen;
  opacity: 0.7;
}

.slot-led {
  position: absolute;
  top: 5.2%;
  left: 10%;
  right: 10%;
  text-align: center;
  padding: 5px 8px 7px;
  overflow: hidden;
  border-radius: 10px;
  background: rgba(5, 2, 8, 0.54);
  border: 1px solid rgba(241, 200, 99, 0.26);
  box-shadow: inset 0 0 18px rgba(26, 56, 255, 0.18), 0 0 12px rgba(0, 0, 0, 0.48);
}

.slot-led span {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(13px, 4.8vw, 21px);
  line-height: 0.92;
  letter-spacing: 0.04em;
  color: var(--gold);
  text-shadow: 0 2px 0 #3b1600, 0 0 11px rgba(241, 200, 99, 0.46);
}

.slot-led strong {
  display: block;
  margin-top: 4px;
  font-family: "Courier New", monospace;
  font-size: clamp(18px, 7vw, 31px);
  line-height: 1;
  color: #ff3838;
  text-shadow: 0 0 7px rgba(255, 48, 48, 0.75), 0 0 15px rgba(255, 0, 0, 0.34);
}

.slot-reel-window {
  position: absolute;
  left: 6.5%;
  right: 6.5%;
  top: 25.8%;
  height: 34%;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: repeat(3, minmax(0, 1fr));
  gap: 6px;
  padding: 8px;
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(18, 12, 8, 0.86), rgba(0, 0, 0, 0.84)),
    radial-gradient(circle at 50% 50%, rgba(241, 200, 99, 0.1), transparent 68%);
  border: 2px solid rgba(255, 230, 160, 0.72);
  box-shadow: inset 0 0 28px rgba(0, 0, 0, 0.92), 0 0 19px rgba(25, 72, 255, 0.3);
}

.payline {
  position: absolute;
  z-index: 6;
  pointer-events: none;
  opacity: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 43, 35, 0.86), rgba(241, 200, 99, 0.74), rgba(255, 43, 35, 0.86), transparent);
  box-shadow: 0 0 8px rgba(255, 48, 48, 0.76), 0 0 16px rgba(241, 200, 99, 0.28);
  transition: opacity 0.16s ease;
}

.payline.active {
  opacity: 0.9;
}

.payline.near-line {
  background: linear-gradient(90deg, transparent, rgba(241, 200, 99, 0.85), rgba(255, 255, 255, 0.72), rgba(241, 200, 99, 0.85), transparent);
}

.line-h1,
.line-h2,
.line-h3 {
  left: 6%;
  right: 6%;
  height: 2px;
}

.line-h1 { top: 18.5%; }
.line-h2 { top: 50%; transform: translateY(-50%); }
.line-h3 { bottom: 18.5%; }

.line-v1,
.line-v2,
.line-v3 {
  top: 6%;
  bottom: 6%;
  width: 2px;
}

.line-v1 { left: 18.5%; }
.line-v2 { left: 50%; transform: translateX(-50%); }
.line-v3 { right: 18.5%; }

.line-d1,
.line-d2 {
  left: -11%;
  top: 50%;
  width: 122%;
  height: 2px;
  transform-origin: center;
}

.line-d1 {
  transform: rotate(39deg);
}

.line-d2 {
  transform: rotate(-39deg);
}

.reel {
  position: relative;
  overflow: hidden;
  border-radius: 7px;
  padding: 3px;
  background:
    linear-gradient(180deg, #fff6d8 0%, #ffc871 8%, #fff3cf 19%, #fffdf0 100%);
  border: 1px solid rgba(255, 194, 96, 0.94);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 0 8px rgba(126, 62, 9, 0.24), 0 2px 7px rgba(0, 0, 0, 0.36);
}

.reel::after {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 6px;
  background:
    linear-gradient(118deg, rgba(255, 255, 255, 0.34), transparent 34%),
    radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.22), transparent 46%);
  pointer-events: none;
  z-index: 4;
  mix-blend-mode: screen;
}

.symbol-face {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  min-width: 0;
  padding: 1px;
  overflow: hidden;
  border-radius: 5px;
  background:
    radial-gradient(circle at 46% 10%, rgba(255, 255, 255, 0.96), transparent 30%),
    linear-gradient(180deg, #fffdf1 0%, #fff1d1 54%, #fff8e4 100%);
  border: 1px solid rgba(255, 214, 143, 0.86);
  position: relative;
  z-index: 2;
  box-shadow: inset 0 0 9px rgba(177, 103, 34, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.86);
}

.symbol-face::before {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 5px;
  background:
    linear-gradient(140deg, rgba(255, 255, 255, 0.74), transparent 31%),
    linear-gradient(180deg, rgba(255, 255, 249, 0.55), rgba(255, 229, 185, 0.16));
  border: 1px solid rgba(255, 224, 169, 0.45);
  z-index: 0;
}

.symbol-face::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(118deg, rgba(255, 255, 255, 0.16), transparent 32%);
  pointer-events: none;
  z-index: 3;
}

.slot-art {
  position: relative;
  z-index: 1;
  display: block;
  width: 150%;
  height: 150%;
  max-width: none;
  max-height: none;
  filter: drop-shadow(0 3px 1px rgba(96, 42, 24, 0.34)) drop-shadow(0 0 5px rgba(255, 255, 255, 0.48));
}

.slot-art-wide {
  width: 154%;
  height: 128%;
}

.slot-symbol-img {
  position: absolute;
  inset: -4px;
  z-index: 1;
  display: block;
  width: calc(100% + 8px);
  height: calc(100% + 8px);
  max-width: none;
  max-height: none;
  object-fit: contain;
  border-radius: 5px;
  filter: drop-shadow(0 4px 2px rgba(96, 42, 24, 0.3)) saturate(1.04) contrast(1.02);
}

.art-plate {
  fill: rgba(255, 246, 231, 0.9);
  stroke: rgba(255, 255, 255, 0.88);
  stroke-width: 1.5;
}

.red-plate { fill: #ffe3e9; stroke: #ff8fa0; }
.bar-plate { fill: #e9fbff; stroke: #77cde8; }
.crown-plate { fill: #fff0c8; stroke: #ffd66d; }
.heart-plate { fill: #ffe0f0; stroke: #ff8cc5; }
.dragon-plate { fill: #dff8ef; stroke: #7bd7b4; }
.bell-plate { fill: #fff4cf; stroke: #ffd96f; }
.cherry-plate { fill: #ffe5ed; stroke: #ff8fa3; }
.star-plate { fill: #fff6cb; stroke: #ffd776; }
.scatter-plate { fill: #efe4ff; stroke: #c6a8ff; }

.art-shine {
  fill: rgba(255, 255, 255, 0.38);
  opacity: 0.62;
}

.art-seven,
.art-seven-shadow,
.art-bar {
  font-family: Impact, "Arial Black", sans-serif;
  font-weight: 900;
  letter-spacing: 0;
}

.art-seven {
  fill: #ff2f35;
  font-size: 74px;
  stroke: #fff1a8;
  stroke-width: 2.2;
  paint-order: stroke fill;
}

.art-seven-shadow {
  fill: #8f1c2b;
  font-size: 75px;
}

.bar-inner {
  fill: #fffdf5;
  stroke: #48a9d0;
}

.art-bar {
  fill: #47526d;
  font-size: 29px;
  stroke: #ffffff;
  stroke-width: 1.4;
  paint-order: stroke fill;
}

.crown-body {
  fill: #ffd55a;
  stroke: #9b6a15;
  stroke-width: 2;
}

.crown-base,
.bell-rim,
.bell-knob,
.bell-clapper {
  fill: #ffd85f;
  stroke: #9a6e1c;
  stroke-width: 1.4;
}

.gem-red { fill: #ff718f; }
.gem-blue { fill: #62cfff; }
.gem-mint { fill: #73e1be; }

.heart-gem {
  fill: #ff75bf;
  stroke: #ffffff;
  stroke-width: 2.2;
}

.heart-cut {
  fill: none;
  stroke: rgba(255, 255, 255, 0.72);
  stroke-width: 1.7;
}

.dragon-frill {
  fill: #8ee9c9;
  stroke: #267f77;
  stroke-width: 1.5;
}

.dragon-face {
  fill: #71d6bd;
  stroke: #266d74;
  stroke-width: 2;
}

.dragon-snout {
  fill: #f7fff3;
  stroke: #266d74;
  stroke-width: 1.4;
}

.dragon-eye {
  fill: #fff7ca;
  stroke: #266d74;
  stroke-width: 1.2;
}

.dragon-eye-core {
  fill: #49305f;
}

.dragon-nose,
.dragon-smile,
.dragon-horn {
  fill: none;
  stroke: #49305f;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.bell-dome {
  fill: #ffd866;
  stroke: #9d7220;
  stroke-width: 2;
}

.stem {
  fill: none;
  stroke: #65bc7a;
  stroke-width: 4;
  stroke-linecap: round;
}

.leaf { fill: #6bd28d; stroke: #fff7cc; stroke-width: 1; }
.cherry-left,
.cherry-right {
  fill: #ff4965;
  stroke: #fff2f4;
  stroke-width: 2;
}

.cherry-shine {
  fill: rgba(255, 255, 255, 0.58);
}

.star-body {
  fill: #ffcf4f;
  stroke: #fff8c8;
  stroke-width: 2;
}

.star-core {
  fill: rgba(255, 126, 189, 0.5);
}

.pastel-dot,
.star-dot,
.scatter-dot {
  stroke: #ffffff;
  stroke-width: 1;
}

.mint-dot,
.dot-mint { fill: #70e0bc; }
.cream-dot { fill: #fff5c8; }
.dot-blue { fill: #6ccfff; }
.dot-pink { fill: #ff8bc9; }

.scatter-orb {
  fill: #c9a8ff;
  stroke: #ffffff;
  stroke-width: 2;
}

.scatter-swirl {
  fill: none;
  stroke: #fff7d2;
  stroke-width: 5;
  stroke-linecap: round;
}

.scatter-text {
  font-family: Impact, "Arial Black", sans-serif;
  font-size: 13px;
  fill: #6d4d9b;
  stroke: #ffffff;
  stroke-width: 0.8;
  paint-order: stroke fill;
}

.seven-shadow {
  fill: #7c1717;
  opacity: 0.78;
}

.seven-main {
  fill: #f51f28;
  stroke: #fff0a5;
  stroke-width: 4;
  stroke-linejoin: round;
  paint-order: stroke fill;
}

.seven-gloss {
  fill: rgba(255, 255, 255, 0.56);
}

.bar-frame {
  fill: #e2b24a;
  stroke: #a36c13;
  stroke-width: 2.5;
}

.bar-face {
  fill: #27844d;
  stroke: #f9d875;
  stroke-width: 2;
}

.bar-vine {
  fill: none;
  stroke: #71c887;
  stroke-width: 3;
  stroke-linecap: round;
}

.bar-bolt {
  fill: #fff0a5;
  stroke: #a36c13;
  stroke-width: 1;
}

.art-bar {
  fill: #fff7d6;
  font-size: 34px;
  stroke: #225031;
  stroke-width: 1.6;
  paint-order: stroke fill;
}

.crown-shadow,
.bell-shadow,
.star-shadow {
  fill: rgba(114, 72, 14, 0.52);
}

.crown-body {
  fill: #f7c245;
  stroke: #9b6515;
  stroke-width: 2.2;
  stroke-linejoin: round;
}

.crown-base {
  fill: #f0ab31;
  stroke: #9b6515;
  stroke-width: 1.8;
}

.crown-pearl {
  fill: #fff6b9;
  stroke: #c2861f;
  stroke-width: 1.2;
}

.crown-heart {
  fill: #ff5e93;
  stroke: #fff5d6;
  stroke-width: 1.4;
}

.gem-blue { fill: #49c8ff; stroke: #fff5d6; stroke-width: 1; }
.gem-mint { fill: #70ddb2; stroke: #fff5d6; stroke-width: 1; }

.diamond-back {
  fill: #1b96e8;
  stroke: #ffffff;
  stroke-width: 2.4;
  stroke-linejoin: round;
}

.diamond-top { fill: #95ecff; }
.diamond-left { fill: #1aa6ef; }
.diamond-center { fill: #55d7ff; }
.diamond-right { fill: #0f78d2; }

.diamond-cut {
  fill: none;
  stroke: rgba(255, 255, 255, 0.72);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.gem-shine {
  fill: rgba(255, 255, 255, 0.62);
}

.dragon-mane {
  fill: #ffbf38;
  stroke: #bf4b17;
  stroke-width: 1.7;
  stroke-linejoin: round;
}

.dragon-head {
  fill: #f57928;
  stroke: #9f3217;
  stroke-width: 2.2;
}

.dragon-snout,
.dragon-jaw {
  fill: #ffd07a;
  stroke: #9f3217;
  stroke-width: 1.6;
}

.dragon-brow,
.dragon-horn,
.dragon-nostril,
.dragon-smile {
  fill: none;
  stroke: #733016;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.dragon-eye {
  fill: #fff7c6;
  stroke: #733016;
  stroke-width: 1.4;
}

.dragon-eye-core {
  fill: #21110b;
}

.bell-dome {
  fill: #f6c449;
  stroke: #9a6515;
  stroke-width: 2.3;
}

.bell-rim,
.bell-knob,
.bell-clapper {
  fill: #efaa2e;
  stroke: #9a6515;
  stroke-width: 1.5;
}

.bell-shine {
  fill: rgba(255, 250, 205, 0.5);
}

.orange-slice {
  fill: #ffa13d;
  stroke: #fff0b1;
  stroke-width: 2;
}

.orange-line {
  fill: none;
  stroke: rgba(255, 255, 255, 0.68);
  stroke-width: 1.2;
}

.stem {
  fill: none;
  stroke: #4a9d4e;
  stroke-width: 4.2;
  stroke-linecap: round;
}

.leaf {
  fill: #5fc060;
  stroke: #2d7d38;
  stroke-width: 1.4;
}

.cherry-left,
.cherry-right {
  fill: #ed3345;
  stroke: #8d1c23;
  stroke-width: 1.9;
}

.cherry-shine {
  fill: rgba(255, 255, 255, 0.62);
}

.star-body {
  fill: #ffa928;
  stroke: #fff1a7;
  stroke-width: 3;
  stroke-linejoin: round;
}

.star-core {
  fill: #ffd95a;
  opacity: 0.74;
}

.star-shine {
  fill: rgba(255, 255, 255, 0.48);
}

.scatter-bubble {
  fill: #fff0ca;
  stroke: #ffb14a;
  stroke-width: 2.2;
}

.pineapple {
  fill: #f7b238;
  stroke: #986215;
  stroke-width: 1.7;
}

.pineapple-leaf {
  fill: #61bf55;
  stroke: #2e7d35;
  stroke-width: 1.5;
  stroke-linejoin: round;
}

.fruit-dot {
  fill: none;
  stroke: rgba(255, 255, 255, 0.74);
  stroke-width: 2;
  stroke-linecap: round;
}

.scatter-fruit {
  stroke: #ffffff;
  stroke-width: 1.4;
}

.blue-fruit { fill: #5ecbff; }
.pink-fruit { fill: #ff669a; }

.scatter-text {
  fill: #e03629;
  font-size: 15px;
  stroke: #fff5c7;
  stroke-width: 1.4;
  paint-order: stroke fill;
}

.reel.symbol-scatter .symbol-face {
  background:
    radial-gradient(circle at 50% 12%, rgba(255, 255, 255, 0.86), transparent 34%),
    linear-gradient(180deg, #fffdf0, #fff0ca 52%, #ffe3b4);
  border-color: rgba(255, 179, 74, 0.78);
}

.reel.spinning .symbol-face {
  animation: reelBlur 0.1s linear infinite;
}

.reel.spinning::before {
  content: "";
  position: absolute;
  inset: -130% 0;
  z-index: 1;
  background:
    repeating-linear-gradient(
      180deg,
      rgba(255, 255, 255, 0) 0 18px,
      rgba(255, 255, 255, 0.42) 18px 24px,
      rgba(0, 0, 0, 0.16) 24px 42px
    );
  opacity: 0.7;
  animation: reelStreak 0.22s linear infinite;
}

.reel.win-cell {
  border-color: rgba(255, 218, 107, 0.96);
  box-shadow: inset 0 0 22px rgba(255, 48, 48, 0.18), 0 0 16px rgba(241, 200, 99, 0.7);
}

.reel.near-cell {
  border-color: rgba(241, 200, 99, 0.9);
  box-shadow: inset 0 0 18px rgba(241, 200, 99, 0.18), 0 0 13px rgba(241, 200, 99, 0.42);
}

.reel.miss-cell .symbol-face {
  filter: brightness(0.78) saturate(0.85);
}

.reel.scatter-cell {
  border-color: rgba(211, 152, 255, 0.9);
  box-shadow: inset 0 0 18px rgba(211, 152, 255, 0.2), 0 0 14px rgba(211, 152, 255, 0.48);
}

@keyframes reelBlur {
  0% { transform: translateY(-38%); filter: blur(0); }
  50% { transform: translateY(38%); filter: blur(2.5px); }
  100% { transform: translateY(-38%); filter: blur(0); }
}

@keyframes reelStreak {
  from { transform: translateY(-18%); }
  to { transform: translateY(18%); }
}

.slot-machine-win {
  animation: machineWin 0.62s ease 2;
}

.slot-machine-near {
  animation: nearPulse 0.42s ease 2;
}

.slot-brand-cover {
  position: absolute;
  left: 37%;
  right: 37%;
  top: 59.7%;
  min-height: 28px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  background:
    linear-gradient(180deg, rgba(25, 15, 10, 0.94), rgba(5, 3, 3, 0.96)),
    radial-gradient(circle at 50% 0%, rgba(241, 200, 99, 0.28), transparent 58%);
  border: 1px solid rgba(241, 200, 99, 0.42);
  color: var(--gold);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(7px, 2vw, 10px);
  font-weight: 900;
  letter-spacing: 0.08em;
  text-align: center;
  text-shadow: 0 0 10px rgba(241, 200, 99, 0.42);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
  pointer-events: none;
}

.cabinet-spin-glow {
  position: absolute;
  left: 50%;
  top: var(--cabinet-spin-top, 70.55%);
  width: var(--cabinet-spin-width, clamp(78px, 21vw, 90px));
  height: var(--cabinet-spin-height, clamp(30px, 7.9vw, 36px));
  transform: translate(-50%, -50%);
  border-radius: 48% 48% 44% 44% / 52% 52% 48% 48%;
  pointer-events: none;
  z-index: 5;
  opacity: 0;
  border: 0;
  background:
    radial-gradient(ellipse at 50% 32%, rgba(255, 248, 218, 0.68), transparent 24%),
    radial-gradient(ellipse at 50% 56%, rgba(255, 44, 35, 0.78), rgba(255, 26, 20, 0.42) 48%, transparent 76%);
  filter: saturate(1.25) brightness(1.05);
  mix-blend-mode: screen;
  box-shadow:
    0 0 18px rgba(255, 28, 24, 0.55),
    0 0 30px rgba(255, 180, 96, 0.18);
}

.cabinet-spin-glow::before {
  content: "";
  position: absolute;
  inset: 12% 23% 54%;
  border-radius: 999px;
  background:
    linear-gradient(90deg, transparent, rgba(255, 248, 224, 0.7), transparent),
    radial-gradient(ellipse at 50% 50%, rgba(255, 255, 255, 0.66), transparent 72%);
}

.cabinet-spin-glow::after {
  content: none;
}

.slot-scene.button-press .cabinet-spin-glow {
  opacity: 1;
  animation: cabinetButtonGlow 0.78s ease-out;
}

@keyframes machineWin {
  50% { filter: brightness(1.35) saturate(1.25); box-shadow: 0 0 30px rgba(241, 200, 99, 0.8); }
}

@keyframes nearPulse {
  50% { filter: brightness(1.12) saturate(1.12); box-shadow: 0 0 22px rgba(241, 200, 99, 0.42); }
}

.slot-meter {
  position: absolute;
  min-width: 24%;
  padding: 5px 7px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.74);
  border: 1px solid rgba(255, 230, 160, 0.35);
  text-align: center;
}

.slot-meter span {
  display: block;
  font-size: 8px;
  color: rgba(255, 247, 223, 0.72);
  letter-spacing: 0.12em;
}

.slot-meter strong {
  display: block;
  margin-top: 2px;
  font-family: "Courier New", monospace;
  color: #ff3838;
  font-size: clamp(14px, 4.8vw, 22px);
  text-shadow: 0 0 8px rgba(255, 56, 56, 0.65);
}

.meter-win.win-pop {
  transform: scale(1.06);
  border-color: rgba(241, 200, 99, 0.8);
  box-shadow: 0 0 18px rgba(241, 200, 99, 0.38);
}

.meter-win.win-pop strong {
  color: var(--gold);
  font-size: clamp(20px, 6vw, 27px);
}

.meter-credits {
  left: 7%;
  top: 63.2%;
}

.meter-win {
  right: 7%;
  top: 63.2%;
}

.meter-bet {
  left: 7%;
  top: 75.4%;
  min-width: 19%;
}

.paytable-mini {
  position: absolute;
  left: 6%;
  right: 6%;
  bottom: 4.3%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
}

.paytable-mini span {
  min-width: 0;
  padding: 4px 5px;
  border-radius: 5px;
  background: rgba(0, 0, 0, 0.62);
  border: 1px solid rgba(241, 200, 99, 0.2);
  color: var(--gold);
  font-size: clamp(7px, 1.9vw, 9px);
  font-weight: 900;
  text-align: center;
  white-space: nowrap;
}

@keyframes cabinetButtonGlow {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(0.96); filter: saturate(1.05) brightness(1); }
  14% { opacity: 0.86; transform: translate(-50%, -50%) scale(1); filter: saturate(1.65) brightness(1.58); }
  45% { opacity: 0.72; transform: translate(-50%, -50%) scale(1.01); filter: saturate(1.45) brightness(1.34); }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(1.02); filter: saturate(1.05) brightness(1); }
}

.help-grid {
  display: grid;
  gap: 12px;
}

.rule-card {
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--panel);
  padding: 13px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
}

.rule-card h2 {
  margin: 0 0 10px;
  color: var(--gold);
  font-size: 18px;
}

.rule-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 1.35em;
  color: rgba(255, 247, 223, 0.86);
  font-size: 13px;
  line-height: 1.58;
}

.rule-list li {
  overflow-wrap: anywhere;
}

.line-guide {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
  margin-top: 12px;
}

.line-guide span {
  min-width: 0;
  padding: 8px 6px;
  border-radius: 7px;
  background: rgba(232, 61, 51, 0.13);
  border: 1px solid rgba(232, 61, 51, 0.38);
  color: #ffd7d3;
  text-align: center;
  font-size: 12px;
  font-weight: 900;
}

.slot-actions {
  display: grid;
}

.spin-button {
  position: relative;
  overflow: hidden;
  min-height: 62px;
  border-radius: 999px;
  font-size: clamp(22px, 7vw, 26px);
  font-weight: 1000;
  letter-spacing: 0.14em;
  box-shadow: 0 6px 22px rgba(232, 61, 51, 0.3), inset 0 2px 0 rgba(255, 255, 255, 0.35);
}

.spin-button.spinning {
  opacity: 0.72;
  color: #2b1300 !important;
  background: linear-gradient(180deg, #c79b48, #6c4217 58%, #291306) !important;
}

.spin-button.spinning::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(90deg, transparent 0 12px, rgba(255, 255, 255, 0.18) 12px 16px);
  animation: spinButtonSweep 0.36s linear infinite;
}

@keyframes spinButtonSweep {
  from { transform: translateX(-24px); }
  to { transform: translateX(24px); }
}

.slot-status {
  margin: 8px 0 0;
  min-height: 18px;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

.panel-view {
  padding: 12px 12px calc(14px + var(--safe-bottom));
  gap: 12px;
  overflow-y: auto;
  background:
    radial-gradient(circle at 50% 0%, rgba(241, 200, 99, 0.1), transparent 36%),
    #070404;
}

.panel-head {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
}

.panel-head span {
  display: block;
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--muted);
}

.panel-head strong {
  display: block;
  margin-top: 4px;
  font-size: 22px;
  color: var(--gold);
}

.cash-grid {
  display: grid;
  gap: 12px;
}

.cash-card,
.pending-box {
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--panel);
  padding: 13px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
}

.cash-card h2 {
  margin: 0 0 10px;
  font-size: 18px;
}

.amount-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 7px;
}

.amount-row button {
  min-height: 42px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-weight: 900;
}

.manual-amount {
  display: grid;
  gap: 5px;
  margin: 10px 0;
}

.manual-amount span {
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--muted);
}

.manual-amount input {
  width: 100%;
  min-height: 45px;
  border-radius: 8px;
  border: 1px solid rgba(40, 224, 120, 0.28);
  background: rgba(0, 0, 0, 0.55);
  color: var(--green);
  padding: 0 12px;
  font-family: "Courier New", monospace;
  font-size: 18px;
  font-weight: 900;
}

.wide-action {
  width: 100%;
  min-height: 48px;
}

.wide-action.danger {
  background: linear-gradient(180deg, #5e1715, #260605) !important;
  color: #ffe4df !important;
  border-color: rgba(232, 61, 51, 0.55) !important;
}

.wide-action.ghost {
  background: rgba(255, 255, 255, 0.06) !important;
  color: var(--muted) !important;
}

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

.pending-box span {
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 0.18em;
}

.pending-box strong {
  min-width: 0;
  font-size: 14px;
  color: var(--gold);
  text-align: right;
}

.ledger-list {
  display: grid;
  gap: 8px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.ledger-list li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  padding: 10px 11px;
  border-radius: 9px;
  background: var(--panel);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.ledger-title {
  min-width: 0;
}

.ledger-title strong {
  display: block;
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ledger-title span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
}

.ledger-amount {
  text-align: right;
  font-family: "Courier New", monospace;
  font-weight: 900;
}

.ledger-amount.credit {
  color: var(--green);
}

.ledger-amount.debit {
  color: #ff7770;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(20px + var(--safe-bottom));
  transform: translateX(-50%) translateY(30px);
  z-index: 80;
  width: min(92vw, 420px);
  padding: 12px 14px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.9);
  border: 1px solid rgba(241, 200, 99, 0.32);
  color: var(--ink);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
  text-align: center;
  font-size: 13px;
}

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

.money-float {
  position: absolute;
  right: 16px;
  top: calc(68px + env(safe-area-inset-top, 0px));
  z-index: 85;
  pointer-events: none;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.16);
  font-family: "Courier New", monospace;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 0;
  animation: moneyFloat 0.95s ease-out both;
}

.money-float.credit {
  color: var(--green);
  box-shadow: 0 0 16px rgba(40, 224, 120, 0.28);
}

.money-float.debit {
  color: #ff7770;
  box-shadow: 0 0 16px rgba(232, 61, 51, 0.3);
}

@keyframes moneyFloat {
  0% { opacity: 0; transform: translateY(10px) scale(0.96); }
  18% { opacity: 1; transform: translateY(0) scale(1); }
  100% { opacity: 0; transform: translateY(-24px) scale(0.98); }
}

.win-overlay {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: grid;
  place-content: center;
  gap: 10px;
  text-align: center;
  background: radial-gradient(circle, rgba(241, 200, 99, 0.18), rgba(0, 0, 0, 0.76));
  opacity: 0;
  pointer-events: none;
  transform: scale(0.92);
}

.win-overlay.show {
  animation: winOverlay 1.5s ease both;
}

.win-overlay span {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(42px, 16vw, 80px);
  color: var(--gold);
  text-shadow: 0 3px 0 #4a1700, 0 0 28px rgba(241, 200, 99, 0.72);
}

.win-overlay strong {
  font-family: "Courier New", monospace;
  font-size: clamp(26px, 9vw, 48px);
  color: var(--green);
  text-shadow: 0 0 18px rgba(40, 224, 120, 0.72);
}

@keyframes winOverlay {
  0% { opacity: 0; transform: scale(0.9); }
  14% { opacity: 1; transform: scale(1.04); }
  76% { opacity: 1; transform: scale(1); }
  100% { opacity: 0; transform: scale(1.08); }
}

@media (max-height: 740px) {
  .topbar {
    padding-top: calc(7px + env(safe-area-inset-top, 0px));
    padding-bottom: 7px;
  }

  .game-tabs {
    padding-top: 5px;
    padding-bottom: 5px;
  }

  .tab {
    height: 32px;
    font-size: 10px;
  }

  .control-deck {
    padding-top: 7px;
  }

  .bj-result-banner {
    top: 56%;
    min-height: 74px;
    padding: 7px 10px 8px;
  }

  .bj-result-banner strong {
    font-size: clamp(28px, 9.4vw, 44px);
  }

  .bj-result-banner em {
    font-size: clamp(12px, 3.8vw, 17px);
  }

  .dealer-zone {
    top: 28%;
  }

  .card-row {
    min-height: 62px;
  }

  .card {
    width: clamp(36px, 12vw, 50px);
  }
}

@media (max-width: 600px) {
  .bj-result-banner {
    top: auto;
    bottom: clamp(104px, 24%, 132px);
    width: min(66%, 252px);
    min-height: 0;
    gap: 1px;
    padding: 6px 10px 7px;
    transform: translateX(-50%) scale(0.9);
    background:
      radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.16), transparent 40%),
      linear-gradient(180deg, rgba(4, 3, 3, 0.82), rgba(0, 0, 0, 0.62));
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.46), inset 0 0 16px rgba(241, 200, 99, 0.08);
    backdrop-filter: blur(3px);
  }

  .bj-result-banner.show {
    animation: bjResultMobileSettle 1.05s ease both;
  }

  .bj-result-banner span {
    display: none;
  }

  .bj-result-banner strong {
    font-size: clamp(24px, 7.9vw, 34px);
    line-height: 0.86;
  }

  .bj-result-banner em {
    font-size: clamp(10px, 3vw, 13px);
    line-height: 1;
  }

  .bj-result-banner small {
    font-size: clamp(8px, 2.45vw, 10px);
    line-height: 1.08;
    letter-spacing: 0.03em;
  }
}

@keyframes bjResultMobileSettle {
  0% { opacity: 0; transform: translateX(-50%) translateY(-8px) scale(1.08); }
  34% { opacity: 1; transform: translateX(-50%) translateY(0) scale(1); }
  100% { opacity: 0.9; transform: translateX(-50%) translateY(0) scale(0.9); }
}

@media (min-width: 700px) {
  body {
    background:
      radial-gradient(circle at 50% 0%, rgba(241, 200, 99, 0.13), transparent 38%),
      #020101;
  }

  .app-shell {
    margin-top: 16px;
    margin-bottom: 16px;
    min-height: calc(100svh - 32px);
    border-radius: 18px;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
  }
}
