:root {
  color-scheme: dark;
  --cream: #fff7e2;
  --muted: #baa7a4;
  --panel: #241015;
  --panel-deep: #10070a;
  --line: rgba(255, 218, 141, .16);
  --gold: #ffc94f;
  --gold-light: #fff0ad;
  --amber: #e98c20;
  --red: #e12e47;
  --red-deep: #82172b;
  --green: #55db94;
  --shadow: 0 24px 65px rgba(4, 0, 1, .48);
}

* { box-sizing: border-box; }
html { min-width: 320px; background: #090405; }
body {
  min-height: 100vh;
  margin: 0;
  color: var(--cream);
  background:
    radial-gradient(circle at 12% 5%, rgba(133, 22, 44, .36), transparent 29rem),
    radial-gradient(circle at 91% 22%, rgba(193, 88, 19, .2), transparent 28rem),
    linear-gradient(180deg, #16070b 0, #090405 48rem, #0c0507 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
button, input { font: inherit; }
button { -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }

.demo-ribbon {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 29px;
  padding: 5px 16px;
  gap: 10px;
  color: #241300;
  background: linear-gradient(90deg, #ce791b, #ffe49c 46%, #cf7a1b);
  font-size: 9px;
  letter-spacing: .04em;
}
.demo-ribbon strong { font-size: 9px; letter-spacing: .14em; }
.demo-ribbon span { opacity: .75; }

.shell { width: min(1010px, calc(100% - 28px)); margin: 0 auto; padding: 0 0 28px; }
.topbar { display: flex; justify-content: space-between; align-items: center; min-height: 78px; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 11px; color: inherit; text-decoration: none; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 43px;
  height: 43px;
  border: 1px solid rgba(255, 222, 151, .4);
  border-radius: 14px;
  background: linear-gradient(145deg, #8c1730, #351018);
  box-shadow: inset 0 1px rgba(255,255,255,.13), 0 10px 25px rgba(0,0,0,.3);
  font-size: 23px;
}
.brand-copy { display: grid; }
.brand b { color: #fff1ce; font-size: 16px; letter-spacing: .055em; }
.brand small { margin-top: 2px; color: #a28e8f; font-size: 9px; letter-spacing: .08em; text-transform: uppercase; }
.account-strip { display: grid; grid-template-columns: auto auto; align-items: center; gap: 1px 12px; text-align: right; }
.account-strip .status { grid-row: 1 / 3; }
.balance-label { color: #927f81; font-size: 8px; letter-spacing: .12em; }
#balance { color: var(--gold-light); font-size: 17px; font-variant-numeric: tabular-nums; }
.status {
  display: inline-flex;
  align-items: center;
  padding: 7px 9px;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #bba8aa;
  background: rgba(22, 8, 12, .78);
  font-size: 9px;
}
.status i { width: 6px; height: 6px; border-radius: 50%; background: #78686a; }
.status-online i { background: var(--green); box-shadow: 0 0 10px var(--green); }
.status-warning i { background: var(--gold); }
.status-offline i { background: var(--red); }

.facts-bar {
  display: flex;
  align-items: center;
  min-height: 43px;
  padding: 7px 13px;
  gap: 8px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(28, 9, 14, .87);
  box-shadow: 0 12px 30px rgba(0,0,0,.16);
  scrollbar-width: none;
}
.facts-bar::-webkit-scrollbar { display: none; }
.facts-bar > span { display: inline-flex; flex: 0 0 auto; align-items: center; padding: 5px 9px; gap: 6px; border-right: 1px solid rgba(255,255,255,.06); color: #a99596; font-size: 11px; line-height: 1.35; letter-spacing: .045em; }
.facts-bar > span:last-child { margin-left: auto; border-right: 0; }
.facts-bar i { color: var(--gold); font-size: 12px; font-style: normal; font-weight: 900; }
.facts-bar .verified { color: #e5c77d; }

.maintenance-notice {
  display: flex;
  align-items: center;
  margin-top: 12px;
  padding: 12px 14px;
  gap: 11px;
  border: 1px solid rgba(255,190,82,.28);
  border-radius: 13px;
  color: #f7dfb0;
  background: linear-gradient(135deg,rgba(89,43,16,.96),rgba(43,19,17,.96));
  box-shadow: 0 10px 28px rgba(0,0,0,.2);
}
.maintenance-notice[hidden] { display: none; }
.maintenance-notice > span { font-size: 25px; }
.maintenance-notice strong { color: #ffd273; font-size: 10px; letter-spacing: .1em; }
.maintenance-notice p { margin: 3px 0 0; color: #d7c4b2; font-size: 9px; line-height: 1.45; }
.game-disabled .game-stage,.game-disabled .play-layout { filter: saturate(.42); }

.game-stage {
  position: relative;
  min-height: 600px;
  margin-top: 14px;
  padding-bottom: 18px;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid rgba(255, 214, 124, .22);
  border-radius: 24px;
  background:
    radial-gradient(circle at 50% 35%, rgba(191, 36, 63, .24), transparent 23rem),
    radial-gradient(circle at 50% 108%, rgba(184, 99, 21, .18), transparent 25rem),
    linear-gradient(155deg, #321018, #16090d 56%, #1d0a0f);
  box-shadow: var(--shadow), inset 0 1px rgba(255,255,255,.05);
}
.game-stage::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: .18;
  background-image: radial-gradient(rgba(255,226,160,.3) .8px, transparent .8px);
  background-size: 24px 24px;
  content: "";
}
.game-stage::after { position: absolute; inset: 0; z-index: -1; border-radius: inherit; box-shadow: inset 0 0 100px rgba(0,0,0,.52); content: ""; }
.machine-glow { position: absolute; top: 72px; left: 50%; z-index: -1; width: min(680px, 86vw); height: 370px; border-radius: 50%; opacity: .45; background: radial-gradient(circle, rgba(239, 70, 74, .4), rgba(166, 64, 14, .12) 50%, transparent 72%); transform: translateX(-50%); filter: blur(24px); transition: opacity .3s, background .3s; }
.game-stage.is-win .machine-glow { opacity: .8; background: radial-gradient(circle, rgba(255, 207, 74, .54), rgba(225, 46, 71, .18) 52%, transparent 72%); }
.stage-toolbar { position: absolute; top: 14px; right: 16px; left: 16px; display: flex; justify-content: space-between; align-items: center; }
.spin-status, .free-spin-badge { padding: 7px 10px; border: 1px solid rgba(255,255,255,.09); border-radius: 999px; color: #bba7a9; background: rgba(9,3,5,.54); font-size: 11px; line-height: 1.3; letter-spacing: .07em; }
.game-stage.spinning .spin-status { color: #ffe184; border-color: rgba(255,201,79,.3); }
.free-spin-badge { color: #ffe288; border-color: rgba(255,201,79,.28); background: rgba(92,46,5,.55); }
.free-spin-badge b { color: white; font-size: 10px; }
.machine-heading { padding: 54px 16px 8px; text-align: center; }
.machine-heading > span { color: #bc9b70; font-size: 12px; font-weight: 800; letter-spacing: .12em; }
.machine-heading h1 { margin: 2px 0 0; color: transparent; background: linear-gradient(180deg, #fff8dc 4%, #ffd86c 48%, #cf701a 92%); background-clip: text; -webkit-background-clip: text; filter: drop-shadow(0 4px 15px rgba(244,160,35,.2)); font-size: clamp(29px, 5vw, 48px); line-height: 1; letter-spacing: .075em; }
.machine-heading p { margin: 7px 0 0; color: #b7a1a3; font-size: 13px; line-height: 1.45; }

.slot-cabinet {
  position: relative;
  isolation: isolate;
  width: min(640px, calc(100% - 42px));
  margin: 12px auto 0;
  padding: 20px 23px;
  border: 1px solid #4d1609;
  border-radius: 27px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.48), transparent 7%, transparent 88%, rgba(55,12,5,.42)),
    linear-gradient(105deg, #64200b 0%, #d88922 8%, #ffe8a3 17%, #a54a12 34%, #f5c45b 51%, #7d2b0d 72%, #dfa03b 91%, #591a09 100%);
  box-shadow:
    inset 0 0 0 2px rgba(255,229,157,.48),
    inset 0 0 0 6px rgba(67,17,7,.55),
    inset 0 -11px 19px rgba(48,10,4,.3),
    0 21px 46px rgba(0,0,0,.48),
    0 0 30px rgba(238,153,35,.13);
  transition: box-shadow .25s ease;
}
.slot-cabinet::before {
  position: absolute;
  inset: 7px;
  z-index: 0;
  pointer-events: none;
  border: 1px solid rgba(255,235,178,.38);
  border-radius: 20px;
  background:
    radial-gradient(circle at 7px 7px, #fff5c5 0 1px, #c97a22 1.5px 3px, #4b1408 3.5px 4.5px, transparent 5px),
    radial-gradient(circle at calc(100% - 7px) 7px, #fff5c5 0 1px, #c97a22 1.5px 3px, #4b1408 3.5px 4.5px, transparent 5px),
    radial-gradient(circle at 7px calc(100% - 7px), #fff5c5 0 1px, #c97a22 1.5px 3px, #4b1408 3.5px 4.5px, transparent 5px),
    radial-gradient(circle at calc(100% - 7px) calc(100% - 7px), #fff5c5 0 1px, #c97a22 1.5px 3px, #4b1408 3.5px 4.5px, transparent 5px);
  box-shadow: inset 0 0 0 1px rgba(66,16,7,.72), 0 1px rgba(255,243,199,.14);
  content: "";
}
.slot-cabinet::after {
  position: absolute;
  top: 3px;
  right: 42px;
  left: 42px;
  z-index: 0;
  height: 2px;
  pointer-events: none;
  border-radius: 50%;
  background: linear-gradient(90deg, transparent, rgba(255,248,207,.88), transparent);
  box-shadow: 0 1px 4px rgba(255,220,130,.36);
  content: "";
}
.reels-window {
  --reel-symbol-size: 86px;
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  height: 306px;
  padding: 9px;
  gap: 7px;
  overflow: visible;
  border: 5px solid transparent;
  border-radius: 17px;
  background:
    linear-gradient(#160709,#0e0406) padding-box,
    linear-gradient(135deg, #4a1409 0%, #dd982e 16%, #fff0ad 31%, #8f3510 55%, #eba63b 77%, #471208 100%) border-box;
  box-shadow:
    inset 0 0 0 3px #190608,
    inset 0 14px 30px rgba(0,0,0,.8),
    inset 0 -12px 28px rgba(0,0,0,.68),
    0 2px 0 rgba(255,238,184,.36),
    0 8px 16px rgba(48,9,4,.3);
}
.reel-column { position: relative; display: grid; grid-template-rows: repeat(3,1fr); min-width: 0; overflow: hidden; contain: paint; border: 1px solid rgba(91,45,35,.66); border-radius: 10px; background: linear-gradient(90deg, rgba(116,69,61,.19), transparent 13%, transparent 87%, rgba(116,69,61,.19)), linear-gradient(180deg,#e9dcc7,#fff9ea 50%,#e0d0ba); box-shadow: inset 0 0 20px rgba(70,29,27,.32), 0 0 0 1px rgba(255,229,176,.08); transform: translateZ(0); }
.reel-column::before,.reel-column::after { position: absolute; right: 0; left: 0; z-index: 4; height: 21%; pointer-events: none; content: ""; }
.reel-column::before { top: 0; background: linear-gradient(180deg,rgba(39,12,16,.34),transparent); }
.reel-column::after { bottom: 0; background: linear-gradient(0deg,rgba(39,12,16,.28),transparent); }
.reel-cell,.reel-motion-cell { position: relative; display: grid; place-items: center; min-height: 0; overflow: visible; color: transparent; border-top: 1px solid rgba(112,64,59,.13); font-size: 0; line-height: 1; }
.reel-cell:first-child,.reel-motion-cell:first-child { border-top: 0; }
.reel-cell::before,.reel-motion-cell::before {
  width: var(--reel-symbol-size);
  height: var(--reel-symbol-size);
  max-width: 90%;
  aspect-ratio: 1;
  background-image: url("/game/assets/slot-symbol-atlas-v1.png?v=20260802-slot8");
  background-repeat: no-repeat;
  background-position: 100% 100%;
  background-size: 400% 200%;
  filter: drop-shadow(0 6px 7px rgba(57,19,15,.25));
  transform: translateZ(0);
  content: "";
}
.reel-cell[data-symbol="DIAMOND"]::before,.reel-motion-cell[data-symbol="DIAMOND"]::before { background-position: 0 0; }
.reel-cell[data-symbol="STAR"]::before,.reel-motion-cell[data-symbol="STAR"]::before { background-position: 33.333% 0; }
.reel-cell[data-symbol="BELL"]::before,.reel-motion-cell[data-symbol="BELL"]::before { background-position: 66.667% 0; }
.reel-cell[data-symbol="CHERRY"]::before,.reel-motion-cell[data-symbol="CHERRY"]::before { background-position: 100% 0; }
.reel-cell[data-symbol="LEMON"]::before,.reel-motion-cell[data-symbol="LEMON"]::before { background-position: 0 100%; }
.reel-cell[data-symbol="SEVEN"]::before,.reel-cell[data-symbol="WILD"]::before,.reel-motion-cell[data-symbol="SEVEN"]::before,.reel-motion-cell[data-symbol="WILD"]::before { background-position: 33.333% 100%; }
.reel-cell[data-symbol="SCATTER"]::before,.reel-cell[data-symbol="BONUS"]::before,.reel-motion-cell[data-symbol="SCATTER"]::before,.reel-motion-cell[data-symbol="BONUS"]::before { background-position: 66.667% 100%; }
.reel-motion-track { position: absolute; top: 0; right: 0; left: 0; z-index: 2; will-change: transform; transform: translate3d(0,0,0); backface-visibility: hidden; }
.reel-column.is-reel-active > .reel-cell { opacity: 0; }
.reel-column.is-accelerating .reel-motion-cell::before { filter: blur(.5px) saturate(1.12) drop-shadow(0 8px 7px rgba(57,19,15,.18)); }
.reel-column.is-cruising .reel-motion-cell::before { filter: blur(1.8px) saturate(1.2) drop-shadow(0 10px 7px rgba(57,19,15,.14)); transform: translate3d(0,2px,0) scaleY(1.04); }
.reel-column.is-decelerating .reel-motion-cell::before { filter: blur(.65px) saturate(1.13) drop-shadow(0 7px 7px rgba(57,19,15,.2)); }
.pay-cell { position: relative; background: rgba(255,226,126,.08); }
.center-payline { position: absolute; top: 50%; right: 5px; left: 5px; z-index: 5; height: 2px; pointer-events: none; background: linear-gradient(90deg,transparent,#ef2f4f 9%,#ffd061 50%,#ef2f4f 91%,transparent); box-shadow: 0 0 9px rgba(239,47,79,.68); transform: translate3d(0,-50%,0); }
.payline-arrow { position: absolute; top: 50%; z-index: 6; display: grid; place-items: center; width: 26px; height: 26px; border: 1px solid #efb443; border-radius: 50%; color: #fff0a6; background: radial-gradient(circle at 35% 28%, #e9503d, #9c1827 54%, #4b0d16 100%); box-shadow: inset 0 1px 1px rgba(255,242,177,.55), 0 0 0 2px rgba(76,18,11,.78), 0 0 11px rgba(226,44,66,.58); font-size: 11px; line-height: 1; text-shadow: 0 1px 2px #4f070c; transform: translateY(-50%); }
.payline-arrow-left { left: -25px; }
.payline-arrow-right { right: -25px; }
.cabinet-lights { position: absolute; right: 28px; left: 28px; z-index: 5; display: flex; justify-content: space-between; pointer-events: none; }
.cabinet-lights-top { top: 6px; }
.cabinet-lights-bottom { bottom: 6px; }
.cabinet-lights i { width: 7px; height: 7px; border: 1px solid rgba(91,37,8,.72); border-radius: 50%; background: radial-gradient(circle at 34% 28%, #fffceb 0 16%, #ffe18a 28%, #e88b20 68%, #75300d 100%); box-shadow: 0 0 5px #fff0a1, 0 0 9px rgba(255,139,25,.78); animation: bulb 1.15s ease-in-out infinite alternate; }
.cabinet-lights i:nth-child(2n) { animation-delay: -.5s; }
.game-stage.is-win .slot-cabinet { box-shadow: inset 0 0 0 2px rgba(255,237,179,.58), inset 0 0 0 6px rgba(67,17,7,.5), inset 0 -11px 19px rgba(48,10,4,.26), 0 21px 46px rgba(0,0,0,.46), 0 0 36px rgba(255,196,67,.28); }
.reel-column.is-landed { z-index: 3; border-color: rgba(255,195,53,.68); box-shadow: inset 0 0 20px rgba(70,29,27,.3),0 0 21px rgba(255,188,35,.25); animation: reel-land .18s ease-out; }
.game-stage.is-win .center-payline { animation: payline-win .72s ease-in-out infinite alternate; }
.reel-cell.is-winning { z-index: 3; background: radial-gradient(circle,rgba(255,238,157,.4),rgba(255,193,31,.13) 54%,transparent 76%); box-shadow: inset 0 0 25px rgba(255,199,42,.38); animation: cell-win .66s ease-in-out infinite alternate; }
.reel-cell.is-winning::before { animation: symbol-win .66s ease-in-out infinite alternate; }
.reel-cell.is-bonus-winning { z-index: 3; background: radial-gradient(circle,rgba(255,106,139,.38),rgba(245,56,86,.12) 57%,transparent 78%); box-shadow: inset 0 0 25px rgba(245,56,86,.3); animation: scatter-cell 1s ease-in-out infinite; }
.reel-cell.is-wild-winning::after,.reel-cell.is-bonus-winning::after { position: absolute; inset: 8%; z-index: -1; border: 2px solid rgba(255,211,79,.78); border-radius: 50%; opacity: .8; pointer-events: none; content: ""; animation: symbol-ring .9s ease-out infinite; }
.reel-cell.is-wild-winning::after { border-color: rgba(255,48,80,.78); box-shadow: 0 0 16px rgba(255,45,80,.42),inset 0 0 13px rgba(255,219,97,.36); }
.game-stage.has-wild-win .machine-glow { animation: wild-glow .75s ease-in-out infinite alternate; }
.game-stage.has-scatter-win .machine-glow { animation: scatter-glow .82s ease-in-out infinite alternate; }

.result-slot { display: grid; place-items: center; min-height: 49px; margin-top: 5px; }
.result-banner { display: flex; justify-content: center; align-items: baseline; width: fit-content; min-width: 250px; margin: 0 auto; padding: 7px 15px; gap: 10px; border: 1px solid rgba(255,207,80,.3); border-radius: 999px; color: var(--gold-light); background: rgba(92,39,6,.64); box-shadow: 0 9px 30px rgba(237,143,25,.16); animation: result-in .3s ease both; }
.result-banner > span { font-size: 9px; font-weight: 850; letter-spacing: .12em; }
.result-banner strong { color: var(--gold); font-size: 20px; }
.result-banner small { color: #e7bc67; font-size: 10px; }
.result-banner.no-win { color: #a89294; border-color: rgba(255,255,255,.1); background: rgba(9,3,5,.6); box-shadow: none; }
.result-banner.no-win strong,.result-banner.no-win small { color: #b5a2a4; }
.result-banner.bonus { border-color: rgba(246,78,102,.5); background: linear-gradient(90deg,rgba(128,18,42,.78),rgba(111,52,5,.72)); }
.spin-summary { display: grid; grid-template-columns: repeat(3,1fr); width: min(640px,calc(100% - 42px)); margin: 13px auto 0; overflow: hidden; border: 1px solid rgba(255,255,255,.075); border-radius: 12px; background: rgba(7,2,4,.42); }
.spin-summary > div { display: grid; justify-items: center; padding: 9px 7px; border-left: 1px solid rgba(255,255,255,.06); }
.spin-summary > div:first-child { border-left: 0; }
.spin-summary span { color: #887477; font-size: 9px; letter-spacing: .1em; }
.spin-summary strong { margin-top: 2px; color: #ded0c2; font-size: 15px; font-variant-numeric: tabular-nums; }
.spin-summary .win-value strong { color: var(--gold); }

.play-layout { display: block; margin-top: 14px; }
.spin-card,.paytable-card { min-width: 0; padding: 17px; border: 1px solid var(--line); border-radius: 18px; background: linear-gradient(145deg,rgba(36,14,20,.98),rgba(15,7,10,.98)); box-shadow: 0 15px 38px rgba(0,0,0,.22); }
.play-layout .paytable-card { width: min(640px,100%); margin-inline: auto; }
.stage-controls {
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(150px,.44fr);
  grid-template-areas:
    "heading heading"
    "quick quick"
    "amount spin"
    "autoplay autoplay"
    "notice notice"
    "help help";
  width: min(640px,calc(100% - 42px));
  margin: 13px auto 0;
  padding: 14px;
  gap: 8px 12px;
  border-color: rgba(255,211,111,.2);
  background: linear-gradient(145deg,rgba(40,14,18,.88),rgba(12,5,8,.92));
  box-shadow: inset 0 1px rgba(255,255,255,.035),0 12px 28px rgba(0,0,0,.2);
}
.stage-controls .card-heading { grid-area: heading; min-height: 36px; }
.stage-controls .amount-field { grid-area: amount; margin-top: 0; }
.stage-controls .quick-values { grid-area: quick; margin-top: 0; }
.stage-controls .spin-action { grid-area: spin; align-self: end; min-height: 48px; margin-top: 0; }
.stage-controls .auto-spin-row { grid-area: autoplay; margin-top: 0; }
.stage-controls .free-spin-notice { grid-area: notice; margin-top: 0; }
.stage-controls .spin-help { grid-area: help; margin-top: 0; }
.stage-controls button:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 2px; }
.card-heading { display: flex; justify-content: space-between; align-items: flex-start; min-height: 42px; gap: 10px; }
.card-heading h2 { margin: 2px 0 0; color: #f7e8d2; font-size: 17px; }
.eyebrow { color: #b59364; font-size: 9px; font-weight: 800; letter-spacing: .13em; }
.stake-range,.wild-note { padding: 6px 8px; border-radius: 999px; color: #d6aa58; background: rgba(255,200,75,.07); font-size: 10px; }
.wild-note b { color: #ef3452; font-family: Impact,sans-serif; font-size: 13px; }
.amount-field { display: block; margin-top: 11px; }
.amount-field > span { display: block; margin-bottom: 6px; color: #927e81; font-size: 10px; letter-spacing: .07em; }
.amount-field > div { display: grid; grid-template-columns: 44px 26px 1fr 44px; align-items: center; overflow: hidden; border: 1px solid rgba(255,216,139,.17); border-radius: 12px; background: #0d0508; }
.amount-field > div:focus-within { border-color: rgba(255,216,139,.58); box-shadow: 0 0 0 1px rgba(255,216,139,.2); }
.amount-step,.quick-values button,.auto-spin-row button { border: 0; cursor: pointer; }
.amount-step { height: 48px; color: var(--gold); background: rgba(255,255,255,.02); font-size: 22px; }
.currency-prefix { color: #a58f87; text-align: right; font-size: 15px; }
.amount-input { width: 100%; min-width: 0; padding: 12px 7px 12px 3px; border: 0; outline: 0; color: #fff1d4; background: transparent; font-size: 17px; font-weight: 850; font-variant-numeric: tabular-nums; }
.amount-input:disabled { color: #ad999b; }
.amount-step:disabled,.quick-values button:disabled { opacity: .34; cursor: not-allowed; }
.quick-values { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 7px; margin: 9px 0 0; }
.quick-values button { min-width: 0; min-height: 44px; padding: 8px 3px; border: 1px solid var(--line); border-radius: 9px; color: #c0aaac; background: rgba(255,255,255,.035); font-size: 10px; font-weight: 800; }
.quick-values button.active { color: #2c1600; border-color: var(--gold); background: var(--gold); }
.spin-action { display: flex; justify-content: center; align-items: center; width: 100%; min-height: 62px; margin-top: 13px; padding: 9px; gap: 10px; border: 1px solid #ffd46c; border-radius: 13px; color: #2b1500; background: linear-gradient(180deg,#ffea92,#f0a22e 58%,#c96b18); box-shadow: inset 0 1px rgba(255,255,255,.65),0 11px 28px rgba(224,126,23,.23); cursor: pointer; }
.spin-action .spin-icon { font-size: 29px; font-weight: 500; line-height: 1; }
.spin-action > span:last-child { display: grid; text-align: left; }
.spin-action b { font-size: 18px; letter-spacing: .08em; }
.spin-action small { font-size: 10px; font-weight: 750; opacity: .72; }
.spin-action:active:not(:disabled) { transform: translateY(1px); }
.spin-action:disabled { color: #7e6d70; border-color: rgba(255,255,255,.07); background: #231317; box-shadow: none; cursor: not-allowed; }
.spinning .spin-action .spin-icon { animation: spin-icon .5s linear infinite; }
.auto-spin-row { display: grid; justify-items: start; align-items: center; min-height: 67px; margin-top: 8px; padding-top: 4px; gap: 6px; color: #a18b8e; font-size: 10px; letter-spacing: .09em; }
.auto-spin-row > div { display: flex; justify-content: flex-start; min-height: 42px; gap: 6px; }
.auto-spin-row button { width: 50px; min-height: 42px; padding: 7px 6px; border: 1px solid var(--line); border-radius: 9px; color: #d6c1c3; background: rgba(255,255,255,.045); font-size: 11px; font-weight: 850; }
.auto-spin-row .stop-auto { width: 84px; min-width: 84px; color: #ffe4a1; border-color: rgba(255,202,76,.25); background: rgba(142,69,13,.35); }
.free-spin-notice { display: flex; align-items: center; margin-top: 4px; padding: 9px 10px; gap: 9px; border: 1px solid rgba(255,201,73,.2); border-radius: 10px; background: rgba(113,54,7,.18); }
.free-spin-notice > span { font-size: 20px; }
.free-spin-notice > div { display: grid; }
.free-spin-notice strong { color: #ffe095; font-size: 9px; letter-spacing: .07em; }
.free-spin-notice small { margin-top: 2px; color: #a9908a; font-size: 7px; line-height: 1.35; }
.spin-help { margin: 7px 2px 0; color: #806d70; font-size: 8px; line-height: 1.45; }
.spin-help span { color: var(--green); }

.paytable { display: grid; margin-top: 6px; }
.paytable-row { display: grid; grid-template-columns: 1.05fr 1fr auto; align-items: center; min-height: 42px; padding: 6px 2px; gap: 8px; border-top: 1px solid rgba(255,255,255,.055); }
.paytable-row:first-child { border-top: 0; }
.paytable-row > span { color: #fff0cf; font-size: 16px; font-weight: 850; letter-spacing: .035em; }
.paytable-row small { color: #ad999c; font-size: 11px; }
.paytable-row strong { color: var(--gold); font-size: 15px; font-variant-numeric: tabular-nums; }
.paytable-row.jackpot { border-radius: 8px; background: linear-gradient(90deg,rgba(255,201,70,.08),transparent); }
.bonus-rule { display: flex; align-items: center; margin-top: 7px; padding: 9px; gap: 9px; border: 1px solid rgba(238,52,83,.18); border-radius: 10px; background: rgba(126,17,37,.13); }
.scatter-symbol { display: grid; flex: 0 0 auto; place-items: center; width: 51px; height: 38px; border: 2px solid #f14a65; border-radius: 9px; color: #ffd86b; background: #82172d; box-shadow: inset 0 0 10px rgba(0,0,0,.35); font-size: 8px; font-weight: 950; transform: rotate(-3deg); }
.bonus-rule > div { display: grid; }
.bonus-rule strong { color: #f2d5c2; font-size: 9px; }
.bonus-rule small { margin-top: 2px; color: #987f82; font-size: 7px; line-height: 1.35; }

.feed-card { min-width: 0; margin-top: 14px; overflow: hidden; border: 1px solid var(--line); border-radius: 17px; background: rgba(17,7,10,.92); }
.feed-tabs { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); padding: 8px; gap: 5px; border-bottom: 1px solid var(--line); }
.feed-tab { min-width: 0; min-height: 36px; padding: 8px 13px; border: 0; border-radius: 8px; color: #9a8588; background: transparent; cursor: pointer; font-size: 10px; }
.feed-tab.active { color: #2b1600; background: var(--gold); font-weight: 850; }
.spin-feed { min-width: 0; }
.feed-head,.feed-row { display: grid; grid-template-columns: minmax(0,1.25fr) repeat(3,minmax(0,1fr)); align-items: center; gap: 10px; padding: 10px 15px; }
.feed-head { color: #725f63; font-size: 8px; letter-spacing: .1em; text-transform: uppercase; }
.feed-row { border-top: 1px solid rgba(255,255,255,.045); color: #c9b5b6; font-size: 10px; }
.feed-row span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.feed-row .line-symbols { color: #f4ddbd; font-size: 12px; letter-spacing: .03em; }
.feed-row .win { color: var(--gold); font-weight: 850; }
.feed-row .loss { color: #8d797c; }
.empty-feed { padding: 25px; color: #79666a; text-align: center; font-size: 9px; }
.feed-pagination { display: grid; grid-template-columns: minmax(96px,1fr) auto minmax(96px,1fr); align-items: center; min-width: 0; padding: 10px 12px; gap: 10px; border-top: 1px solid var(--line); }
.feed-pagination button { min-width: 0; min-height: 38px; padding: 8px 12px; overflow: hidden; border: 1px solid rgba(255,210,101,.2); border-radius: 9px; color: #e2c58d; background: rgba(103,52,11,.3); font-size: 10px; font-weight: 750; text-overflow: ellipsis; white-space: nowrap; cursor: pointer; }
.feed-pagination button:last-child { justify-self: stretch; }
.feed-pagination button:disabled { opacity: .34; cursor: not-allowed; }
.feed-pagination span { min-width: 58px; color: #a99286; font-size: 10px; font-variant-numeric: tabular-nums; text-align: center; white-space: nowrap; }

footer { display: flex; justify-content: space-between; gap: 22px; padding: 18px 4px 0; color: #705e62; font-size: 8px; line-height: 1.5; }
footer p { max-width: 48%; margin: 0; }
.toast-region { position: fixed; z-index: 30; right: 16px; bottom: max(16px,env(safe-area-inset-bottom)); display: grid; width: min(330px,calc(100% - 32px)); gap: 8px; }
.toast { padding: 11px 13px; border: 1px solid var(--line); border-radius: 10px; color: #eadbd7; background: #2a1218; box-shadow: var(--shadow); font-size: 9px; animation: toast-in .2s ease; }
.toast.error { border-color: rgba(225,46,71,.45); }

@keyframes bulb { to { opacity: .42; box-shadow: 0 0 3px #fff1aa; } }
@keyframes reel-land { 0%,100% { transform: translate3d(0,0,0) scaleY(1); } 48% { transform: translate3d(0,2px,0) scaleY(.996); } 76% { transform: translate3d(0,-1px,0) scaleY(1.002); } }
@keyframes payline-win { to { opacity: 1; height: 4px; filter: brightness(1.28); box-shadow: 0 0 8px #fff6c3,0 0 21px #ffc22e,0 0 34px rgba(239,47,79,.82); } }
@keyframes cell-win { to { filter: brightness(1.12); box-shadow: inset 0 0 34px rgba(255,201,48,.58),0 0 18px rgba(255,190,29,.28); } }
@keyframes symbol-win { to { filter: brightness(1.18) saturate(1.15) drop-shadow(0 7px 9px rgba(112,44,4,.34)); transform: translate3d(0,-3px,0) scale(1.075); } }
@keyframes symbol-ring { 0% { opacity: .88; transform: scale(.7); } 80%,100% { opacity: 0; transform: scale(1.16); } }
@keyframes scatter-cell { 50% { filter: brightness(1.16); transform: translateZ(0) scale(.985); } }
@keyframes wild-glow { to { opacity: .92; filter: blur(19px) saturate(1.25); transform: translateX(-50%) scale(1.04); } }
@keyframes scatter-glow { to { opacity: .96; background: radial-gradient(circle,rgba(255,74,117,.68),rgba(255,178,45,.24) 52%,transparent 72%); filter: blur(20px); transform: translateX(-50%) scale(1.055); } }
@keyframes result-in { from { opacity: 0; transform: translateY(6px) scale(.95); } }
@keyframes spin-icon { to { transform: rotate(360deg); } }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } }

@media (max-width:720px) {
  .demo-ribbon { justify-content: flex-start; overflow: hidden; white-space: nowrap; }
  .demo-ribbon span { overflow: hidden; text-overflow: ellipsis; }
  .shell { width: min(100% - 16px,620px); padding-bottom: 18px; }
  .topbar { min-height: 67px; }
  .brand-mark { width: 38px; height: 38px; border-radius: 12px; font-size: 20px; }
  .brand b { font-size: 13px; }
  .brand small,.balance-label,.account-strip .status { display: none; }
  #balance { font-size: 14px; }
  .facts-bar { min-height: 40px; padding-inline: 7px; }
  .facts-bar > span { padding-inline: 7px; font-size: 11px; }
  .facts-bar > span:last-child { margin-left: 0; }
  .maintenance-notice { margin-top: 8px; padding: 10px 11px; }
  .game-stage { min-height: 0; margin-top: 9px; padding-bottom: max(10px,env(safe-area-inset-bottom)); border-radius: 18px; }
  .stage-toolbar { top: 9px; right: 10px; left: 10px; }
  .spin-status,.free-spin-badge { padding: 6px 8px; font-size: 11px; }
  .machine-heading { padding-top: 44px; }
  .machine-heading h1 { font-size: 29px; }
  .machine-heading p { margin-top: 5px; font-size: 13px; }
  .slot-cabinet { width: calc(100% - 20px); margin-top: 9px; padding: 14px 13px; border-radius: 20px; box-shadow: inset 0 0 0 2px rgba(255,229,157,.45), inset 0 0 0 5px rgba(67,17,7,.55), inset 0 -8px 14px rgba(48,10,4,.28), 0 15px 30px rgba(0,0,0,.44), 0 0 20px rgba(238,153,35,.11); }
  .slot-cabinet::before { inset: 5px; border-radius: 15px; }
  .slot-cabinet::after { right: 24px; left: 24px; }
  .reels-window { --reel-symbol-size: 70px; height: 250px; padding: 7px; gap: 5px; border-width: 4px; border-radius: 13px; }
  .reel-column { border-radius: 8px; }
  .payline-arrow { width: 20px; height: 20px; font-size: 9px; }
  .payline-arrow-left { left: -14px; }
  .payline-arrow-right { right: -14px; }
  .cabinet-lights { right: 17px; left: 17px; }
  .cabinet-lights-top { top: 4px; }
  .cabinet-lights-bottom { bottom: 4px; }
  .cabinet-lights i { width: 5px; height: 5px; }
  .result-slot { min-height: 43px; margin-top: 3px; }
  .result-banner { min-width: 210px; padding: 6px 12px; }
  .result-banner strong { font-size: 17px; }
  .spin-summary { width: calc(100% - 20px); margin-top: 0; }
  .spin-summary > div { padding-block: 7px; }
  .play-layout { margin-top: 9px; }
  .spin-card,.paytable-card { padding: 14px; border-radius: 15px; }
  .paytable-card { order: 2; }
  .stage-controls { width: calc(100% - 20px); margin-top: 8px; padding: 10px; grid-template-columns: minmax(0,1fr) minmax(118px,.68fr); gap: 6px 7px; }
  .stage-controls .card-heading { min-height: 32px; }
  .amount-field > div { grid-template-columns: 39px 24px 1fr 39px; }
  .amount-step { height: 44px; }
  .amount-input { padding-block: 10px; font-size: 16px; }
  .quick-values { grid-template-columns: repeat(5,minmax(0,1fr)); }
  .stage-controls .quick-values { grid-template-columns: repeat(5,minmax(0,1fr)); gap: 6px; overflow: visible; padding: 0; margin: 0; }
  .stage-controls .quick-values button { min-height: 44px; padding: 7px 2px; font-size: 10px; }
  .stage-controls .spin-action { min-height: 48px; height: 48px; padding: 5px; gap: 6px; border-radius: 10px; }
  .stage-controls .spin-action .spin-icon { font-size: 23px; }
  .stage-controls .spin-action b { font-size: 15px; }
  .stage-controls .spin-action small { font-size: 9px; }
  .stage-controls .auto-spin-row { min-height: 67px; margin-top: 3px; padding-top: 4px; }
  .stage-controls .auto-spin-row button { width: 50px; min-height: 42px; padding-block: 7px; font-size: 11px; }
  .stage-controls .auto-spin-row .stop-auto { width: 84px; min-width: 84px; }
  .stage-controls .free-spin-notice { min-height: 34px; padding: 6px 8px; }
  .stage-controls .free-spin-notice > span { font-size: 16px; }
  .stage-controls .spin-help { display: none; }
  .feed-card { margin-top: 9px; }
  .feed-tabs { overflow: hidden; }
  .feed-head,.feed-row { grid-template-columns: 1.1fr .9fr 1fr 1fr; gap: 6px; padding-inline: 10px; }
  .feed-head { font-size: 7px; }
  .feed-row { font-size: 8px; }
  .feed-row .line-symbols { font-size: 10px; }
  .feed-pagination { grid-template-columns: minmax(0,1fr) auto minmax(0,1fr); padding: 8px; gap: 7px; }
  .feed-pagination button { min-height: 40px; padding-inline: 7px; font-size: 9px; }
  .feed-pagination span { min-width: 50px; font-size: 9px; }
  footer { display: block; }
  footer p { max-width: none; }
  footer p + p { margin-top: 6px; }
}

@media (max-width:600px) {
  .facts-bar { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); min-height: 34px; padding: 3px; gap: 0; overflow: hidden; }
  .facts-bar > span { justify-content: center; width: 100%; min-width: 0; padding: 3px 1px; gap: 2px; overflow: hidden; font-size: 10px; font-weight: 600; letter-spacing: 0; white-space: nowrap; }
  .facts-bar > span:last-child { margin-left: 0; }
  .facts-bar i { flex: 0 0 auto; font-size: 11px; }
}

@media (max-width:420px) {
  .topbar { min-height: 56px; }
  .brand-mark { width: 34px; height: 34px; border-radius: 10px; font-size: 18px; }
  .facts-bar { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); min-height: 32px; padding: 3px; gap: 0; overflow: hidden; }
  .facts-bar > span { justify-content: center; width: 100%; min-width: 0; padding: 3px 2px; gap: 3px; overflow: hidden; font-size: 10px; font-weight: 600; letter-spacing: 0; white-space: nowrap; }
  .facts-bar i { flex: 0 0 auto; font-size: 11px; }
  .facts-bar > span:nth-child(3) { display: none; }
  .game-stage { margin-top: 7px; }
  .stage-toolbar { top: 7px; }
  .machine-heading { padding: 36px 10px 3px; }
  .machine-heading > span { display: none; }
  .machine-heading h1 { font-size: 25px; }
  .machine-heading p { margin-top: 3px; font-size: 12px; }
  .slot-cabinet { margin-top: 7px; padding: 12px 11px; }
  .reels-window { --reel-symbol-size: 64px; height: clamp(228px,29vh,242px); }
  .result-slot { min-height: 39px; margin-top: 1px; }
  .result-banner { min-width: 198px; padding-block: 5px; }
  .result-banner strong { font-size: 16px; }
  .spin-summary { margin-top: 0; }
  .spin-summary > div { padding-block: 5px; }
  .stage-controls { margin-top: 7px; padding: 9px; }
  .stage-controls .card-heading { display: none; }
  .stage-controls .amount-field > span { display: none; }
  .stage-controls .amount-field > div { height: 48px; }
  .stage-controls .amount-step { height: 46px; }
  .stage-controls .auto-spin-row > span { font-size: 10px; }
}

@media (max-width:380px) {
  .brand-copy small { display: none; }
  .reels-window { --reel-symbol-size: 62px; height: clamp(224px,29vh,236px); }
  .spin-summary strong { font-size: 13px; }
}

[data-motion="lite"] .machine-glow { filter: none; }
[data-motion="lite"] .reel-column { transform: none; }
[data-motion="lite"] .reel-column.is-landed { animation: none; }
[data-motion="lite"] .reel-column > .reel-cell::before,
[data-motion="lite"] .reel-column .reel-motion-cell::before { filter: none; transform: none; }
[data-motion="lite"] .cabinet-lights i { animation: none; opacity: .72; }
[data-motion="lite"] .game-stage.is-win .slot-cabinet {
  box-shadow: inset 0 0 0 2px rgba(255,237,179,.58), inset 0 0 0 6px rgba(67,17,7,.5), 0 14px 28px rgba(0,0,0,.42);
}
[data-motion="lite"] .game-stage.is-win .center-payline,
[data-motion="lite"] .reel-cell.is-winning,
[data-motion="lite"] .reel-cell.is-winning::before,
[data-motion="lite"] .reel-cell.is-bonus-winning,
[data-motion="lite"] .reel-cell.is-wild-winning::after,
[data-motion="lite"] .reel-cell.is-bonus-winning::after,
[data-motion="lite"] .game-stage.has-wild-win .machine-glow,
[data-motion="lite"] .game-stage.has-scatter-win .machine-glow { animation: none; }
[data-motion="lite"] .game-stage.is-win .center-payline { box-shadow: 0 0 9px rgba(255,207,74,.72); }
[data-motion="lite"] .reel-cell.is-winning { box-shadow: inset 0 0 0 2px rgba(255,199,42,.58); }
[data-motion="lite"] .reel-cell.is-bonus-winning { box-shadow: inset 0 0 0 2px rgba(245,56,86,.52); }
[data-motion="lite"] .reel-cell.is-wild-winning::after { box-shadow: none; }
[data-motion="lite"] .win-share-backdrop { backdrop-filter: none; animation: none; }
[data-motion="lite"] .win-share-card { box-shadow: 0 14px 34px rgba(0,0,0,.58), inset 0 1px rgba(255,255,255,.06); animation: none; }

[data-quality="low"] .machine-glow { filter: none; opacity: .32; }
[data-quality="low"] .cabinet-lights i { animation: none; box-shadow: 0 0 3px rgba(255,209,105,.45); }
[data-quality="low"] .reel-cell::before,
[data-quality="low"] .reel-motion-cell::before { filter: none; transform: none; }
[data-quality="low"] .game-stage.is-win .center-payline,
[data-quality="low"] .reel-cell.is-winning,
[data-quality="low"] .reel-cell.is-winning::before,
[data-quality="low"] .reel-cell.is-bonus-winning,
[data-quality="low"] .reel-cell.is-wild-winning::after,
[data-quality="low"] .reel-cell.is-bonus-winning::after,
[data-quality="low"] .game-stage.has-wild-win .machine-glow,
[data-quality="low"] .game-stage.has-scatter-win .machine-glow { animation: none; }

@media (prefers-reduced-motion:reduce) {
  *,*::before,*::after { scroll-behavior:auto!important; animation-duration:.01ms!important; animation-iteration-count:1!important; transition-duration:.01ms!important; }
  .reel-column.is-reel-active .reel-motion-cell::before { filter:none; }
}

[data-motion="reduced"] .reel-column.is-reel-active .reel-motion-cell::before { filter:none; }
[data-motion="reduced"] .game-stage.is-reduced-pending .reels-window { border-color:rgba(255,201,79,.6); }
[data-motion="reduced"] .game-stage.is-reduced-pending .center-payline { opacity:.7; }
[data-motion="reduced"] .machine-glow,[data-motion="reduced"] .cabinet-lights i { animation:none; }
[data-motion="reduced"] .reel-cell.is-winning,[data-motion="reduced"] .reel-cell.is-winning::before,[data-motion="reduced"] .reel-cell.is-bonus-winning,[data-motion="reduced"] .reel-cell.is-wild-winning::after,[data-motion="reduced"] .reel-cell.is-bonus-winning::after { animation:none; }
[data-motion="reduced"] .game-stage.is-win .center-payline { animation:none; box-shadow:0 0 12px rgba(255,207,74,.7); }

.wallet-bar {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(118px,1fr) minmax(118px,1fr) auto;
  align-items: center;
  min-height: 64px;
  margin-bottom: 10px;
  padding: 8px 10px;
  gap: 9px;
  border: 1px solid rgba(255,210,96,.24);
  border-radius: 14px;
  background: linear-gradient(115deg,rgba(58,15,25,.98),rgba(24,9,13,.98) 48%,rgba(78,40,8,.92));
  box-shadow: 0 13px 30px rgba(0,0,0,.22),inset 0 1px rgba(255,255,255,.04);
}
.wallet-back { display:grid; place-items:center; min-width:46px; min-height:42px; border:1px solid var(--line); border-radius:10px; color:#f4d690; background:rgba(255,255,255,.035); font-size:17px; line-height:1; text-decoration:none; }
.wallet-back span { font-size:9px; letter-spacing:.06em; }
.wallet-balance { display:grid; min-width:0; padding:4px 9px; border-left:1px solid rgba(255,255,255,.065); }
.wallet-balance span { color:#927e81; font-size:11px; line-height:1.3; letter-spacing:.06em; }
.wallet-balance strong { margin-top:3px; overflow:hidden; color:#fff0c8; font-size:15px; font-variant-numeric:tabular-nums; text-overflow:ellipsis; white-space:nowrap; }
.wallet-actions { display:flex; gap:6px; }
.wallet-actions button { display:grid; min-width:98px; min-height:42px; padding:6px 10px; border:1px solid rgba(255,214,111,.3); border-radius:10px; color:#301700; background:linear-gradient(180deg,#ffe798,#eaa039); box-shadow:inset 0 1px rgba(255,255,255,.5); cursor:pointer; }
.wallet-actions button:last-child { color:#f2d49c; border-color:rgba(255,210,101,.2); background:rgba(103,52,11,.46); box-shadow:none; }
.wallet-actions b { font-size:10px; letter-spacing:.05em; }
.wallet-actions small { margin-top:2px; font-size:9px; opacity:.72; }
.wallet-actions button:disabled { opacity:.38; cursor:not-allowed; }
.wallet-access-notice { grid-column:1 / -1; margin:0; padding:6px 9px; border:1px solid rgba(255,210,96,.2); border-radius:8px; color:#f5d47e; background:rgba(82,39,7,.42); font-size:10px; line-height:1.35; text-align:center; }
.wallet-pending { position:absolute; right:10px; bottom:-18px; margin:0; color:#e1b65b; font-size:9px; }

.exchange-modal { position:fixed; inset:0; z-index:60; display:grid; place-items:center; padding:18px; }
.exchange-backdrop { position:absolute; inset:0; width:100%; height:100%; border:0; background:rgba(3,1,2,.78); backdrop-filter:blur(5px); }
.exchange-card { position:relative; z-index:1; width:min(390px,100%); padding:23px; border:1px solid rgba(255,211,111,.28); border-radius:19px; background:linear-gradient(145deg,#35121b,#12070a 62%,#3e2109); box-shadow:0 30px 80px rgba(0,0,0,.6); }
.exchange-card h2 { margin:5px 0 3px; color:#fff0d0; font-size:21px; }
.exchange-card > p { margin:0; color:#a68f86; font-size:9px; }
.exchange-rate-version { display:block; margin-top:5px; color:#d1a85f; font-size:9px; letter-spacing:.04em; }
.exchange-close { position:absolute; top:12px; right:12px; width:31px; height:31px; border:1px solid var(--line); border-radius:50%; color:#d8bdac; background:rgba(255,255,255,.04); cursor:pointer; }
.exchange-field { display:block; margin-top:18px; }
.exchange-field > span { display:block; margin-bottom:6px; color:#9a8380; font-size:8px; letter-spacing:.1em; }
.exchange-field > div { display:grid; grid-template-columns:auto 1fr; align-items:center; min-height:54px; padding:0 15px; gap:10px; border:1px solid rgba(255,213,122,.2); border-radius:12px; background:#0d0507; }
.exchange-field b { color:var(--gold); font-size:15px; }
.exchange-field input { width:100%; border:0; outline:0; color:#fff1d1; background:transparent; font-size:22px; font-weight:850; font-variant-numeric:tabular-nums; }
.exchange-card .exchange-available { margin-top:8px; text-align:right; }
.exchange-available strong { color:#dfbd7b; }
.exchange-card .exchange-receive { display:flex; align-items:center; justify-content:space-between; margin-top:12px; padding:10px 12px; border:1px solid rgba(255,213,122,.14); border-radius:9px; background:rgba(255,255,255,.035); }
.exchange-receive strong { color:#ffe08b; font-size:13px; font-variant-numeric:tabular-nums; }
.exchange-confirm { width:100%; min-height:49px; margin-top:17px; border:1px solid #ffe079; border-radius:11px; color:#2c1600; background:linear-gradient(180deg,#ffe990,#e99a2c); font-size:11px; font-weight:900; letter-spacing:.08em; cursor:pointer; }
.exchange-confirm:disabled { opacity:.4; cursor:not-allowed; }
.exchange-card .exchange-note { margin-top:10px; line-height:1.45; text-align:center; }

body.modal-open { overflow: hidden; }
.win-share-modal {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: grid;
  place-items: center;
  padding:
    max(18px, env(safe-area-inset-top))
    max(18px, env(safe-area-inset-right))
    max(18px, env(safe-area-inset-bottom))
    max(18px, env(safe-area-inset-left));
  overflow: hidden;
  overscroll-behavior: contain;
}
.win-share-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: rgba(3,1,2,.82);
  backdrop-filter: blur(6px);
  cursor: pointer;
  animation: win-share-fade-in .2s ease both;
}
.win-share-card {
  position: relative;
  z-index: 1;
  width: min(420px,100%);
  max-height: calc(100vh - 36px);
  max-height: calc(100dvh - 36px);
  padding: 29px 25px 24px;
  overflow-y: auto;
  overscroll-behavior: contain;
  border: 1px solid rgba(255,211,111,.36);
  border-radius: 21px;
  background:
    radial-gradient(circle at 50% -10%,rgba(255,204,75,.19),transparent 42%),
    linear-gradient(145deg,#461522,#14070b 60%,#462607);
  box-shadow: 0 32px 90px rgba(0,0,0,.68),inset 0 1px rgba(255,255,255,.06);
  text-align: center;
  animation: win-share-card-in .24s ease both;
}
.win-share-card::before {
  display: block;
  width: 56px;
  height: 56px;
  margin: 0 auto 12px;
  border: 1px solid rgba(255,225,143,.45);
  border-radius: 18px;
  background: linear-gradient(145deg,#9b1935,#451019);
  box-shadow: 0 13px 28px rgba(0,0,0,.32),inset 0 1px rgba(255,255,255,.13);
  content: "🍒";
  font-size: 29px;
  line-height: 56px;
}
.win-share-close {
  position: absolute;
  top: 10px;
  right: 10px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: #e6cdb9;
  background: rgba(255,255,255,.045);
  cursor: pointer;
  font-size: 21px;
}
.win-share-eyebrow {
  display: block;
  color: #e9b54d;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .17em;
}
.win-share-card h2 { margin: 7px 0 0; color: #fff1ce; font-size: 27px; }
.win-share-card .win-share-message { margin: 11px 0 0; color: #efd9ce; font-size: 14px; line-height: 1.5; }
.win-share-message strong { color: var(--gold-light); font-size: 20px; font-variant-numeric: tabular-nums; }
.win-share-card .win-share-hint { margin: 7px auto 0; max-width: 330px; color: #bca3a0; font-size: 11px; line-height: 1.55; }
.win-share-preview {
  display: block;
  width: 100%;
  min-height: 108px;
  margin-top: 18px;
  padding: 13px 14px;
  resize: vertical;
  border: 1px solid rgba(255,213,122,.2);
  border-radius: 12px;
  outline: 0;
  color: #f5e5d5;
  background: #0d0507;
  font-size: 13px;
  line-height: 1.55;
  text-align: left;
  -webkit-user-select: text;
  user-select: text;
}
.win-share-preview:focus { border-color: rgba(255,216,115,.55); box-shadow: 0 0 0 3px rgba(255,199,63,.1); }
.win-share-copy {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  min-height: 50px;
  margin-top: 14px;
  padding: 11px 16px;
  border: 1px solid #ffe079;
  border-radius: 11px;
  color: #2c1600;
  background: linear-gradient(180deg,#ffe990,#e99a2c);
  box-shadow: inset 0 1px rgba(255,255,255,.48),0 10px 24px rgba(216,119,20,.2);
  cursor: pointer;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
  text-decoration: none;
}
.win-share-copy[aria-disabled="true"] { opacity: .52; cursor: wait; }
.win-share-close:focus-visible,.win-share-copy:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 3px; }

@keyframes win-share-fade-in { from { opacity: 0; } }
@keyframes win-share-card-in { from { opacity: 0; transform: translateY(10px) scale(.97); } }

@media (max-width:720px) {
  .wallet-bar { grid-template-columns:40px 1fr 1fr; min-height:100px; margin-bottom:8px; padding:7px; gap:5px; }
  .wallet-back { grid-row:1; min-width:40px; min-height:38px; }
  .wallet-balance { min-height:38px; padding:3px 7px; }
  .wallet-balance strong { font-size:15px; }
  .wallet-actions { grid-column:1 / -1; display:grid; grid-template-columns:1fr 1fr; }
  .wallet-actions button { min-width:0; min-height:42px; padding:5px 8px; }
  .wallet-access-notice { font-size:9px; }
  .wallet-pending { right:8px; bottom:3px; }
}

@media (max-width:420px) {
  .win-share-modal {
    padding:
      max(12px, env(safe-area-inset-top))
      max(12px, env(safe-area-inset-right))
      max(12px, env(safe-area-inset-bottom))
      max(12px, env(safe-area-inset-left));
  }
  .win-share-card { max-height: calc(100vh - 24px); max-height: calc(100dvh - 24px); padding: 24px 17px 18px; border-radius: 18px; }
  .win-share-card::before { width: 50px; height: 50px; margin-bottom: 9px; font-size: 26px; line-height: 50px; }
  .win-share-card h2 { font-size: 24px; }
  .win-share-card .win-share-message { font-size: 13px; }
  .win-share-message strong { font-size: 18px; }
  .win-share-card .win-share-hint { font-size: 11px; }
  .win-share-preview { min-height: 100px; margin-top: 14px; font-size: 12px; }
  .win-share-copy { min-height: 50px; }
}

@media (prefers-reduced-motion:reduce) {
  .win-share-backdrop,.win-share-card { animation: none; transition: none; }
}
