:root {
  --sea-1: #123a7a;
  --sea-2: #0b2457;
  --sea-3: #081638;
  --sea-4: #050b22;
  --sea-5: #03060f;
  --ink: #eef3ff;
  --muted: #9fb0d6;
  --line: rgba(160, 190, 255, .14);
  --panel: rgba(12, 24, 62, .62);
  --panel-solid: #0c1a42;
  --gold-1: #ffd34d;
  --gold-2: #ffad1f;
  --gold-3: #f08a1c;
  --gold-edge: #a65406;
  --tile-1: #4a82ff;
  --tile-2: #2f62d9;
  --tile-edge: #1a3a94;
  --green-1: #4be060;
  --green-2: #2fbf47;
  --green-edge: #1a7d2c;
  --red: #e2424a;
  --radius: 22px;
  --wrap: 1240px;
  --nav-h: 76px;
  --display: "Archivo Black", "Kanit", system-ui, sans-serif;
  --text: "Kanit", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); }
html, body { margin: 0; }
body {
  font-family: var(--text);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background:
    linear-gradient(180deg, var(--sea-1) 0, var(--sea-2) 900px, var(--sea-3) 32%, var(--sea-4) 70%, var(--sea-5) 100%);
  background-color: var(--sea-5);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 400; letter-spacing: -.01em; line-height: 1.04; }
p { margin: 0; }
button { font: inherit; }
.gold {
  background: linear-gradient(180deg, var(--gold-1), var(--gold-3));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.wrap { width: min(100% - 48px, var(--wrap)); margin-inline: auto; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--gold-2); color: #2a1500; padding: 10px 16px; border-radius: 10px; font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--gold-1); outline-offset: 3px; }

.btn {
  --edge: 6px;
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; padding: 0 28px;
  border: 0; border-radius: 16px;
  font-family: var(--display); font-size: 17px; letter-spacing: .01em; text-transform: uppercase;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transform: translateY(0);
  transition: transform .12s ease, box-shadow .12s ease, filter .2s ease;
}
.btn svg { width: 20px; height: 20px; fill: currentColor; }
.btn:hover { transform: translateY(-2px); filter: brightness(1.06); }
.btn:active { transform: translateY(calc(var(--edge) - 1px)); }
.btn--gold {
  color: #3b1d00;
  background: linear-gradient(180deg, var(--gold-1) 0%, var(--gold-2) 55%, var(--gold-3) 100%);
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, .55), 0 var(--edge) 0 var(--gold-edge), 0 14px 30px rgba(255, 160, 30, .28);
}
.btn--gold:hover { box-shadow: inset 0 2px 0 rgba(255, 255, 255, .55), 0 calc(var(--edge) + 2px) 0 var(--gold-edge), 0 18px 40px rgba(255, 160, 30, .4); }
.btn--gold:active { box-shadow: inset 0 2px 0 rgba(255, 255, 255, .55), 0 1px 0 var(--gold-edge), 0 6px 14px rgba(255, 160, 30, .3); }
.btn--green {
  color: #fff; text-shadow: 0 2px 0 rgba(0, 0, 0, .2);
  background: linear-gradient(180deg, var(--green-1), var(--green-2));
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, .4), 0 var(--edge) 0 var(--green-edge), 0 12px 26px rgba(60, 220, 90, .25);
}
.btn--green:active { box-shadow: inset 0 2px 0 rgba(255, 255, 255, .4), 0 1px 0 var(--green-edge); }
.btn--glass {
  --edge: 5px;
  color: var(--ink);
  background: rgba(255, 255, 255, .08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18), 0 var(--edge) 0 rgba(0, 0, 0, .35);
  backdrop-filter: blur(10px);
}
.btn--glass:active { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18), 0 1px 0 rgba(0, 0, 0, .35); }
.btn--sm { --edge: 4px; min-height: 44px; padding: 0 20px; font-size: 14px; border-radius: 12px; }
.btn--block { width: 100%; }

.nav {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--nav-h);
  transition: background .3s ease, box-shadow .3s ease, height .3s ease;
}
.nav.is-scrolled { background: rgba(6, 14, 40, .78); backdrop-filter: blur(14px); box-shadow: 0 1px 0 var(--line); --nav-h: 66px; }
.nav__bar { height: 100%; display: flex; align-items: center; gap: 32px; }
.nav__logo img { height: 46px; width: auto; filter: drop-shadow(0 4px 10px rgba(0, 0, 0, .4)); transition: transform .2s ease; }
.nav__logo:hover img { transform: rotate(-3deg) scale(1.04); }
.nav__links { display: flex; gap: 6px; margin-left: auto; }
.nav__links a {
  padding: 8px 14px; border-radius: 10px; text-decoration: none; font-weight: 500; font-size: 15px; color: var(--muted);
  transition: color .2s ease, background .2s ease;
}
.nav__links a:hover, .nav__links a.is-active { color: var(--ink); background: rgba(255, 255, 255, .07); }
.nav__toggle { display: none; }

.gauge {
  position: fixed; right: 26px; top: 50%; z-index: 40; transform: translateY(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  font-family: var(--display); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted);
  opacity: 0; transition: opacity .4s ease;
}
.gauge.is-on { opacity: 1; }
.gauge__label { writing-mode: vertical-rl; transform: rotate(180deg); }
.gauge__track { position: relative; width: 4px; height: 34vh; border-radius: 4px; background: rgba(255, 255, 255, .1); }
.gauge__fill { position: absolute; inset: 0 0 auto; height: 0; border-radius: 4px; background: linear-gradient(var(--gold-1), var(--gold-3)); }
.gauge__dot { position: absolute; left: 50%; top: 0; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background: var(--gold-1); box-shadow: 0 0 0 4px rgba(255, 211, 77, .25), 0 0 18px rgba(255, 190, 50, .7); }
.gauge__value { color: var(--gold-1); min-width: 64px; text-align: center; }

.hero {
  position: relative; min-height: min(100svh, 1000px); display: flex; align-items: center;
  padding: calc(var(--nav-h) + 24px) 0 90px; overflow: hidden; isolation: isolate;
}
.hero__rays {
  position: absolute; inset: -20% -10% 30%; z-index: -3; pointer-events: none;
  background:
    repeating-conic-gradient(from 180deg at 50% -10%, rgba(140, 200, 255, .16) 0 4deg, transparent 4deg 13deg);
  -webkit-mask-image: radial-gradient(ellipse 60% 70% at 50% 0%, #000 0%, transparent 75%);
  mask-image: radial-gradient(ellipse 60% 70% at 50% 0%, #000 0%, transparent 75%);
  animation: rays 18s ease-in-out infinite alternate;
}
@keyframes rays { from { transform: rotate(-3deg) scale(1.05); } to { transform: rotate(3deg) scale(1.1); } }
.hero__world {
  position: absolute; inset: auto 0 0; height: 62%; z-index: -2; pointer-events: none;
  background: url("../img/bg.jpg") center bottom / cover no-repeat;
  opacity: .55; mix-blend-mode: screen;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 45%, #000 80%, transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0%, #000 45%, #000 80%, transparent 100%);
  transform: translate3d(calc(var(--mx, 0) * -14px), 0, 0);
}
.hero::after {
  content: ""; position: absolute; inset: auto 0 0; height: 220px; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, transparent, var(--sea-2));
}
.bubbles { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.bubbles i {
  position: absolute; bottom: -30px; border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, .7), rgba(160, 210, 255, .12) 60%, transparent 70%);
  border: 1px solid rgba(190, 225, 255, .35);
  animation: rise linear infinite;
}
@keyframes rise {
  0% { transform: translate3d(0, 0, 0); opacity: 0; }
  10% { opacity: .9; }
  100% { transform: translate3d(var(--drift, 20px), -110vh, 0); opacity: 0; }
}
.float {
  position: absolute; z-index: -1; pointer-events: none; width: 90px;
  filter: drop-shadow(0 18px 24px rgba(0, 0, 0, .45));
  transform: translate3d(calc(var(--mx, 0) * var(--px, 20px)), calc(var(--my, 0) * var(--px, 20px)), 0);
}
.float--a { --px: 40px; top: 18%; left: 44%; width: 70px; animation: bob 6s ease-in-out infinite; }
.float--b { --px: 26px; top: 70%; left: 4%; width: 58px; filter: blur(2px) drop-shadow(0 18px 24px rgba(0, 0, 0, .45)); animation: bob 7s ease-in-out -2s infinite; }
.float--c { --px: 55px; top: 12%; right: 3%; width: 110px; animation: bob 8s ease-in-out -1s infinite; }
.float--d { --px: 34px; bottom: 9%; right: 38%; width: 52px; filter: blur(1.5px) drop-shadow(0 18px 24px rgba(0, 0, 0, .45)); animation: bob 5.5s ease-in-out -3s infinite; }
.float--e { --px: 18px; top: 58%; left: 40%; width: 64px; opacity: .55; filter: blur(3px); animation: bob 9s ease-in-out -4s infinite; }
@keyframes bob { 0%, 100% { translate: 0 0; rotate: -6deg; } 50% { translate: 0 -18px; rotate: 6deg; } }

.hero__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 620px); gap: 48px; align-items: center; }
.hero__grid > * { min-width: 0; }
.tag {
  display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px 8px 12px; margin-bottom: 26px;
  border-radius: 999px; background: rgba(255, 255, 255, .07); box-shadow: inset 0 0 0 1px var(--line);
  font-weight: 500; font-size: 14px; letter-spacing: .04em; text-transform: uppercase; color: var(--gold-1);
}
.tag__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green-1); box-shadow: 0 0 0 4px rgba(75, 224, 96, .2); animation: pulse 1.8s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 8px rgba(75, 224, 96, 0); } }
.hero h1 { font-family: "Bricolage Grotesque", var(--display); font-weight: 800; font-stretch: 100%; font-variation-settings: "opsz" 96; letter-spacing: -.005em; font-size: clamp(42px, 4.6vw, 72px); line-height: .96; text-shadow: 0 6px 30px rgba(0, 10, 40, .5); }
.hero h1 .gold { background-image: linear-gradient(180deg, #ffe27a 10%, var(--gold-2) 60%, var(--gold-3)); }
.lead { margin-top: 22px; max-width: 34em; font-size: 19px; color: #c8d5f5; }
.actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 34px; }
.stats { display: flex; gap: 36px; margin: 36px 0 0; padding: 0; list-style: none; }
.stats li { display: flex; flex-direction: column; }
.stats strong { font-family: var(--display); font-size: 34px; font-weight: 400; line-height: 1; color: var(--ink); }
.stats span { margin-top: 6px; font-size: 14px; color: var(--muted); }

.hero__copy > * { opacity: 0; transform: translateY(24px); animation: enter .8s cubic-bezier(.2, .8, .2, 1) forwards; }
.hero__copy > :nth-child(2) { animation-delay: .08s; }
.hero__copy > :nth-child(3) { animation-delay: .16s; }
.hero__copy > :nth-child(4) { animation-delay: .24s; }
.hero__copy > :nth-child(5) { animation-delay: .32s; }
.hero__game { opacity: 0; animation: enter-game 1.1s cubic-bezier(.2, .8, .2, 1) .2s forwards; }
@keyframes enter { to { opacity: 1; transform: none; } }
@keyframes enter-game { from { opacity: 0; transform: translateY(60px) scale(.94); } to { opacity: 1; transform: none; } }

.game {
  --g-panel: #17123a;
  --g-line: rgba(160, 130, 255, .22);
  --g-chip: rgba(255, 255, 255, .045);
  --g-violet-1: #a57bff;
  --g-violet-2: #7b4be0;
  position: relative; padding: 18px; border-radius: 30px;
  background: linear-gradient(180deg, rgba(36, 26, 86, .9), rgba(16, 12, 44, .94));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12), 0 0 0 1px var(--g-line), 0 40px 80px rgba(0, 0, 20, .55), 0 0 120px rgba(120, 90, 255, .2);
  backdrop-filter: blur(16px);
  transform: perspective(1400px) rotateX(calc(var(--my, 0) * -3deg)) rotateY(calc(var(--mx, 0) * 5deg));
  transition: transform .2s ease-out;
}
.game { display: grid; grid-template-columns: minmax(0, 1fr) 210px; gap: 16px; }
.game__main {
  position: relative; display: flex; flex-direction: column; gap: 10px; padding: 12px; border-radius: 24px; overflow: hidden;
  background: radial-gradient(ellipse 80% 60% at 50% 60%, rgba(110, 80, 230, .22), transparent 70%), linear-gradient(180deg, #1d1546, #120d30);
  box-shadow: inset 0 0 0 1px var(--g-line), inset 0 2px 0 rgba(255, 255, 255, .05);
}
.game__side { display: flex; flex-direction: column; gap: 12px; }
.game__balance { display: flex; align-items: baseline; justify-content: space-between; padding: 0 4px; line-height: 1.2; }
.game__balance small { font-size: 12px; color: var(--muted); }
.game__balance strong { font-family: var(--display); font-weight: 400; font-size: 16px; }
.game__balance strong.is-up { animation: flash-up .8s ease; }
@keyframes flash-up { 30% { color: var(--green-1); } }
.game__history { display: flex; gap: 8px; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); }
.game__history span {
  flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; min-width: 66px; padding: 5px 8px; border-radius: 12px;
  background: var(--g-chip); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06); line-height: 1.15;
}
.game__history span.is-new { animation: slide-in .5s cubic-bezier(.2, .8, .2, 1); }
@keyframes slide-in { from { opacity: 0; transform: translateX(-20px) scale(.9); } }
.game__history small { font-size: 11px; color: var(--muted); }
.game__history b { font-family: var(--display); font-weight: 400; font-size: 14px; }
.c-red { color: #ff5d6c; } .c-green { color: #3ee6a4; } .c-gold { color: #ffd34d; }
.game__status {
  display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 14px 10px; border-radius: 20px; text-align: center;
  background: linear-gradient(180deg, #1d1546, #120d30); box-shadow: inset 0 0 0 1px var(--g-line);
}
.state { display: inline-flex; align-items: center; gap: 8px; font-family: var(--display); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: #ffb4ba; }
.state i { width: 10px; height: 10px; border-radius: 50%; background: #ff5d6c; }
.state.is-live { color: #b8ffd9; }
.state.is-live i { background: var(--green-1); box-shadow: 0 0 0 4px rgba(75, 224, 96, .2); animation: pulse 1.4s ease-in-out infinite; }
.state.is-wait { color: var(--muted); }
.state.is-wait i { background: var(--gold-2); }
.game__big {
  font-family: var(--display); font-weight: 400; font-size: 42px; line-height: 1; letter-spacing: -.01em;
  background: linear-gradient(180deg, #fff3b0, var(--gold-1) 45%, var(--gold-2)); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 3px 0 rgba(120, 60, 0, .5)) drop-shadow(0 0 18px rgba(255, 190, 60, .35));
}
.game__big.is-tick { animation: tick .35s ease; }
@keyframes tick { 40% { transform: scale(1.14); } }
.game__big.is-boom { background: linear-gradient(180deg, #ffb199, #ff5a4f 60%, #d6283a); -webkit-background-clip: text; background-clip: text; filter: drop-shadow(0 3px 0 rgba(90, 0, 10, .5)) drop-shadow(0 0 22px rgba(255, 80, 80, .5)); animation: boom-text .6s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes boom-text { from { transform: scale(.4); } }
.game__big.is-wait { background: linear-gradient(180deg, #fff, #b9c3ff); -webkit-background-clip: text; background-clip: text; filter: none; font-size: 26px; padding: 8px 0; }
.game__counts { display: inline-flex; align-items: center; gap: 6px; font-family: var(--display); font-size: 14px; }
.game__counts img { width: 20px; height: 20px; }
.game__counts b { font-weight: 400; margin-right: 8px; }
.board-stage { perspective: 1200px; padding: 0 4px 6px; }
.board {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 9px; padding: 14px; border-radius: 22px;
  background: linear-gradient(180deg, rgba(40, 30, 100, .7), rgba(22, 16, 60, .85));
  box-shadow: inset 0 0 0 2px rgba(150, 120, 255, .3), 0 0 40px rgba(120, 90, 255, .25), 0 20px 40px rgba(0, 0, 0, .45);
  transform: rotateX(10deg); transform-origin: 50% 70%; transform-style: preserve-3d;
}
.board.is-boom { animation: shake .5s ease; }
@keyframes shake { 20% { translate: -8px 0; } 40% { translate: 7px 2px; } 60% { translate: -5px -1px; } 80% { translate: 3px 0; } }
.tile {
  position: relative; aspect-ratio: 1; border-radius: 12px;
  display: grid; place-items: center;
  font-family: var(--display); font-size: clamp(16px, 1.7vw, 24px); color: #fff; text-shadow: 0 2px 0 rgba(30, 30, 120, .45);
  background: linear-gradient(180deg, #8a98ff, #5865ee 55%, #4b54dc);
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, .55), inset 0 -3px 0 rgba(30, 30, 140, .35), 0 6px 0 #2f35a8, 0 10px 16px rgba(0, 0, 30, .5);
  transition: transform .3s ease, background .3s ease, box-shadow .3s ease;
}
.tile img { width: 92%; height: 92%; object-fit: contain; }
.tile.is-coin, .tile.is-mine, .tile.is-shown { background: rgba(5, 4, 20, .55); box-shadow: inset 0 3px 8px rgba(0, 0, 0, .6); color: transparent; text-shadow: none; transform: translateY(6px); }
.tile.is-coin img { transform: translateY(-8px); filter: drop-shadow(0 0 10px rgba(255, 190, 40, .75)) drop-shadow(0 6px 4px rgba(0, 0, 0, .45)); animation: pop .5s cubic-bezier(.3, 1.6, .5, 1); }
.tile.is-mine { background: radial-gradient(circle, rgba(255, 70, 70, .75), rgba(120, 10, 30, .7) 70%); box-shadow: 0 0 40px rgba(255, 60, 60, .7), inset 0 2px 8px rgba(0, 0, 0, .4); }
.tile.is-mine img { transform: translateY(-6px) scale(1.12); filter: drop-shadow(0 8px 6px rgba(0, 0, 0, .5)); animation: boom .6s cubic-bezier(.3, 1.6, .5, 1); }
.tile.is-shown img { opacity: .32; filter: grayscale(.3); }
@keyframes pop { from { transform: translateY(10px) scale(.2) rotateY(180deg); } to { transform: translateY(-8px); } }
@keyframes boom { 0% { transform: scale(.3); } 50% { transform: translateY(-6px) scale(1.45); } 100% { transform: translateY(-6px) scale(1.12); } }
.game__strip { min-width: 0; display: flex; gap: 8px; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 88%, transparent); }
.game__strip span {
  flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; min-width: 64px; padding: 6px 8px; border-radius: 12px; line-height: 1.1;
  background: var(--g-chip); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08);
  transition: transform .3s ease;
}
.game__strip b { font-family: var(--display); font-weight: 400; font-size: 14px; }
.game__strip small { font-size: 10px; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.game__strip span.is-on { color: #3b1d00; background: linear-gradient(180deg, var(--gold-1), var(--gold-2)); box-shadow: inset 0 -3px 0 var(--gold-edge), 0 0 20px rgba(255, 190, 50, .4); }
.game__strip span.is-on small { color: rgba(59, 29, 0, .7); }
.mines-btn {
  width: 100%; min-height: 44px; padding: 0 16px; border: 0; border-radius: 14px; cursor: pointer;
  font-family: var(--display); font-size: 14px; text-transform: uppercase; color: #fff;
  background: linear-gradient(180deg, var(--g-violet-1), var(--g-violet-2));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 4px 0 #4f2a9c, 0 0 24px rgba(150, 100, 255, .35);
  transition: transform .12s ease;
}
.mines-btn:active { transform: translateY(3px); }
.game__timer { display: flex; align-items: center; gap: 12px; padding: 0 4px; }
.game__timer > span:first-child { min-width: 48px; font-family: var(--display); font-size: 14px; }
.game__timer .bar { flex: 1; height: 6px; border-radius: 6px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.game__timer .bar i { display: block; height: 100%; width: 0; border-radius: 6px; background: linear-gradient(90deg, var(--gold-2), var(--gold-1)); box-shadow: 0 0 12px rgba(255, 200, 60, .6); }
.betbox { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px; border-radius: 16px; background: rgba(0, 0, 0, .3); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06); }
.betbox strong { font-family: var(--display); font-weight: 400; font-size: 20px; }
.betbox__side { display: grid; gap: 6px; }
.betbox button {
  min-width: 46px; height: 30px; border: 0; border-radius: 9px; cursor: pointer;
  font-family: var(--display); font-size: 12px; text-transform: uppercase; color: #fff;
  background: linear-gradient(180deg, var(--g-violet-1), var(--g-violet-2)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), 0 3px 0 #4f2a9c;
}
.betbox button:active { transform: translateY(2px); box-shadow: 0 1px 0 #4f2a9c; }
.betbox button:disabled { opacity: .4; cursor: not-allowed; }
.betbtn {
  width: 100%; min-height: 72px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; padding: 10px 18px;
  border: 0; border-radius: 18px; cursor: pointer; color: #fff;
  background: linear-gradient(180deg, #7df5ae, #34d27a 60%, #22b866);
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, .5), 0 6px 0 #158a4a, 0 0 30px rgba(60, 230, 140, .35);
  transition: transform .12s ease, filter .2s ease;
}
.betbtn b { font-family: var(--display); font-weight: 400; font-size: 26px; line-height: 1; text-transform: uppercase; text-shadow: 0 2px 0 rgba(0, 80, 40, .35); }
.betbtn small { font-size: 12px; font-weight: 500; opacity: .9; }
.betbtn:hover { filter: brightness(1.06); }
.betbtn:active { transform: translateY(5px); box-shadow: inset 0 2px 0 rgba(255, 255, 255, .5), 0 1px 0 #158a4a; }
.betbtn.is-placed { background: linear-gradient(180deg, #5a5f86, #3e4268); box-shadow: inset 0 2px 0 rgba(255, 255, 255, .25), 0 6px 0 #262944; }
.betbtn.is-cash { color: #3b1d00; background: linear-gradient(180deg, var(--gold-1), var(--gold-2) 55%, var(--gold-3)); box-shadow: inset 0 2px 0 rgba(255, 255, 255, .55), 0 6px 0 var(--gold-edge), 0 0 34px rgba(255, 180, 40, .5); }
.betbtn.is-cash b { font-size: 20px; text-shadow: none; }
.game__msg { grid-column: 1 / -1; margin: 0; min-height: 1.6em; text-align: center; font-size: 14px; line-height: 1.6; color: var(--muted); }
.game__msg b { color: var(--gold-1); font-weight: 600; }
.game__msg a { color: var(--gold-1); font-weight: 500; }
.game__note { grid-column: 1 / -1; margin: -6px 0 0; text-align: center; font-size: 12px; line-height: 1.4; color: var(--muted); opacity: .7; }
.coin-burst { position: absolute; z-index: 5; width: 34px; pointer-events: none; animation: burst .9s cubic-bezier(.2, .7, .3, 1) forwards; }
@keyframes burst { to { transform: translate(var(--bx), var(--by)) rotate(var(--br)); opacity: 0; } }

.hero__scroll { position: absolute; left: 50%; bottom: 28px; width: 28px; height: 46px; margin-left: -14px; border-radius: 16px; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .3); }
.hero__scroll span { position: absolute; left: 50%; top: 9px; width: 4px; height: 9px; margin-left: -2px; border-radius: 2px; background: var(--gold-1); animation: scroll 1.8s ease-in-out infinite; }
@keyframes scroll { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

.dive { position: relative; padding: 130px 0; }
.dive__head { max-width: 760px; margin-bottom: 56px; }
.dive__meta {
  display: flex; align-items: center; gap: 14px; margin-bottom: 20px;
  font-weight: 500; font-size: 14px; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-1);
}
.dive__no {
  display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px;
  font-family: var(--display); font-size: 15px; letter-spacing: 0; color: #3b1d00;
  background: linear-gradient(180deg, var(--gold-1), var(--gold-2)); box-shadow: inset 0 -3px 0 var(--gold-edge);
}
.dive h2 { font-size: clamp(34px, 4.2vw, 58px); }
.dive__head > p:not(.dive__meta), .operators__text > p:not(.dive__meta) { margin-top: 18px; font-size: 19px; color: var(--muted); max-width: 36em; }

.card, .feature, .platform, .qr, .player {
  position: relative; border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(26, 48, 110, .55), rgba(10, 20, 56, .55));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12), 0 0 0 1px var(--line), 0 30px 60px rgba(0, 0, 20, .35);
  backdrop-filter: blur(10px);
}
.card, .feature, .platform { transition: transform .25s ease, box-shadow .25s ease; }
.card:hover, .feature:hover, .platform:hover { transform: translateY(-6px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16), 0 0 0 1px rgba(255, 211, 77, .35), 0 40px 70px rgba(0, 0, 20, .45); }
.card h3, .feature h3, .platform h3, .qr h3 { font-size: 23px; }
.card p, .feature p, .platform p, .qr p { margin-top: 10px; color: var(--muted); }

.cards { display: grid; gap: 24px; }
.cards--3 { grid-template-columns: repeat(3, 1fr); }
.cards .card { padding: 14px 14px 30px; }
.card__art { aspect-ratio: 4 / 3; margin-bottom: 22px; border-radius: 14px; overflow: hidden; background: radial-gradient(ellipse at 50% 30%, #1a2f6b, #081231); }
.card__art img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.card:hover .card__art img { transform: scale(1.06); }
.card__step, .card h3, .card p { margin-inline: 14px; }
.card__step { display: inline-block; margin-bottom: 10px; font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-1); }

.dive--watch { padding: 0; }
.player-track { position: relative; height: 340vh; }
.player-sticky { position: sticky; top: 0; height: 100vh; display: flex; align-items: center; }
.player-sticky > .wrap { display: flex; flex-direction: column; padding-top: var(--nav-h); }
.watch__head { position: relative; z-index: 1; margin-bottom: 28px; opacity: var(--head-o, 1); transform: translateY(var(--head-y, 0)); }
.player {
  --s: 1; --ty: 0px; --blur: 0px; --op: 1;
  position: relative; z-index: 2; opacity: var(--op); filter: blur(var(--blur));
  overflow: hidden; aspect-ratio: 16 / 9; padding: 0; background: #000;
  width: min(100%, (100vh - var(--nav-h) - 268px) * 16 / 9);
  transform: translateY(var(--ty)) scale(var(--s)); transform-origin: 50% 50%;
  border-radius: calc(var(--radius) / var(--s));
  will-change: transform;
}
.player.is-full { box-shadow: none; }
.player video { width: 100%; height: 100%; display: block; object-fit: cover; }
.player__play {
  position: absolute; left: 50%; top: 50%; width: 112px; height: 112px; margin: -56px 0 0 -56px;
  display: grid; place-items: center; border: 0; border-radius: 50%; cursor: pointer; color: #3b1d00;
  background: linear-gradient(180deg, var(--gold-1), var(--gold-3));
  box-shadow: inset 0 3px 0 rgba(255, 255, 255, .5), 0 8px 0 var(--gold-edge), 0 0 0 14px rgba(255, 211, 77, .18), 0 30px 60px rgba(0, 0, 0, .5);
  transition: transform .2s ease;
  animation: ring 2.4s ease-out infinite;
}
.player__play svg { width: 44px; height: 44px; fill: currentColor; margin-left: 6px; }
.player__play:hover { transform: scale(1.08); }
@keyframes ring { 0% { box-shadow: inset 0 3px 0 rgba(255, 255, 255, .5), 0 8px 0 var(--gold-edge), 0 0 0 0 rgba(255, 211, 77, .4), 0 30px 60px rgba(0, 0, 0, .5); } 100% { box-shadow: inset 0 3px 0 rgba(255, 255, 255, .5), 0 8px 0 var(--gold-edge), 0 0 0 34px rgba(255, 211, 77, 0), 0 30px 60px rgba(0, 0, 0, .5); } }
.player.is-playing .player__play { opacity: 0; pointer-events: none; }

.icon {
  display: inline-grid; place-items: center; width: 56px; height: 56px; margin-bottom: 22px; border-radius: 16px;
  background: linear-gradient(180deg, rgba(255, 211, 77, .2), rgba(240, 138, 28, .12)); box-shadow: inset 0 0 0 1px rgba(255, 211, 77, .3);
}
.icon svg { width: 28px; height: 28px; fill: none; stroke: var(--gold-1); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.icon img { width: 28px; height: 28px; filter: brightness(0) saturate(100%) invert(84%) sepia(52%) saturate(900%) hue-rotate(340deg); }

.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.feature { padding: 32px; }
.feature--wide { grid-column: span 4; display: grid; grid-template-columns: 1fr 1.1fr; gap: 40px; align-items: center; padding: 48px; overflow: hidden; }
.feature--wide h3 { font-size: 34px; }
.feature--wide p { font-size: 18px; }
.feature--wide::before {
  content: ""; position: absolute; right: -10%; top: 50%; width: 70%; aspect-ratio: 1; translate: 0 -50%; pointer-events: none;
  background: radial-gradient(circle, rgba(255, 190, 60, .22), rgba(90, 120, 255, .12) 45%, transparent 70%);
}
.screens { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: start; padding: 8px 0 24px; }
.screen {
  display: block; width: 100%; height: auto; aspect-ratio: 476 / 508; object-fit: cover; border-radius: 20px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .1), 0 24px 50px rgba(0, 0, 20, .55);
  transition: transform .5s cubic-bezier(.2, .8, .2, 1), box-shadow .5s ease;
}
.screen--back { margin-top: 28px; }
.screen--front { box-shadow: 0 0 0 1px rgba(255, 211, 77, .35), 0 24px 50px rgba(0, 0, 20, .6), 0 0 60px rgba(255, 190, 60, .16); }
.feature--wide:hover .screen--back { transform: translateY(-6px); }
.feature--wide:hover .screen--front { transform: translateY(-10px); }

.platforms { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.qr { grid-column: span 3; display: grid; grid-template-columns: auto 1fr; gap: 40px; align-items: center; padding: 32px; }
.qr img { width: 210px; border-radius: 18px; background: #fff; padding: 10px; box-shadow: 0 0 0 6px rgba(255, 211, 77, .25), 0 20px 50px rgba(0, 0, 0, .4); }
.qr h3 { font-size: 32px; }
.qr p { max-width: 30em; font-size: 18px; }
.qr .btn { margin-top: 24px; }
.platform { padding: 32px; }

.operators { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.operators__art { position: relative; margin-top: 40px; display: flex; justify-content: center; }
.operators__art::before {
  content: ""; position: absolute; left: 50%; top: 50%; width: 120%; max-width: 520px; aspect-ratio: 1; translate: -50% -50%; pointer-events: none;
  background: radial-gradient(circle, rgba(140, 100, 255, .32), rgba(255, 190, 60, .1) 45%, transparent 68%);
}
.device {
  position: relative; width: min(250px, 60%); padding: 9px; border-radius: 34px;
  background: linear-gradient(160deg, #34306a, #100e26 55%, #1d1a40);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16), inset 0 0 0 4px #06050f, 0 40px 70px rgba(0, 0, 20, .6), 0 0 70px rgba(130, 100, 255, .22);
  rotate: -4deg;
  transition: rotate .6s cubic-bezier(.2, .8, .2, 1), translate .6s cubic-bezier(.2, .8, .2, 1);
}
.device img { width: 100%; height: auto; aspect-ratio: 628 / 884; object-fit: cover; border-radius: 26px; }
.device::before { content: ""; position: absolute; top: 18px; left: 50%; width: 54px; height: 6px; margin-left: -27px; border-radius: 6px; background: rgba(0, 0, 0, .55); z-index: 1; }
.device::after { content: ""; position: absolute; inset: 9px; border-radius: 26px; pointer-events: none; background: linear-gradient(120deg, rgba(255, 255, 255, .12), transparent 32%); }
.operators__text:hover .device { rotate: -1deg; translate: 0 -6px; }
.form { padding: 32px; display: grid; gap: 18px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 8px; }
.field > span { font-size: 14px; font-weight: 500; color: #c8d5f5; }
.field em { font-style: normal; color: var(--muted); font-weight: 300; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 52px; padding: 12px 16px; border: 0; border-radius: 14px;
  font: 400 16px/1.4 var(--text); color: var(--ink);
  background: rgba(3, 8, 28, .6); box-shadow: inset 0 0 0 1px var(--line), inset 0 2px 6px rgba(0, 0, 0, .35);
  transition: box-shadow .2s ease;
}
.field textarea { resize: vertical; min-height: 110px; }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--gold-1) 50%), linear-gradient(135deg, var(--gold-1) 50%, transparent 50%); background-position: calc(100% - 22px) 50%, calc(100% - 16px) 50%; background-size: 6px 6px; background-repeat: no-repeat; }
.field select option { background: var(--panel-solid); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; box-shadow: inset 0 0 0 2px var(--gold-2), 0 0 0 4px rgba(255, 173, 31, .15); }
.field.is-invalid input { box-shadow: inset 0 0 0 2px var(--red); }
.form .btn { margin-top: 6px; }
.form__status { min-height: 1.5em; font-size: 15px; text-align: center; color: var(--muted); }
.form__status.is-ok { color: var(--green-1); }
.form__status.is-err { color: #ff8a8f; }

.footer { position: relative; overflow: hidden; padding: 160px 0 48px; text-align: center; isolation: isolate; }
.footer__world {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: url("../img/bg.jpg") center top / cover no-repeat; opacity: .35;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 40%); mask-image: linear-gradient(180deg, transparent, #000 40%);
}
.footer__inner { display: flex; flex-direction: column; align-items: center; }
.footer__logo { width: min(340px, 70%); filter: drop-shadow(0 20px 40px rgba(0, 0, 0, .6)); animation: bob 7s ease-in-out infinite; }
.footer__line { margin: 24px 0 32px; font-family: var(--display); font-size: clamp(22px, 2.6vw, 32px); }
.footer__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 28px; margin-top: 64px; }
.footer__links a { text-decoration: none; color: var(--muted); font-weight: 500; }
.footer__links a:hover { color: var(--gold-1); }
.footer__legal { margin-top: 28px; font-size: 14px; color: rgba(159, 176, 214, .7); }

.js .reveal { opacity: 0; transform: translateY(40px); transition: opacity .8s cubic-bezier(.2, .8, .2, 1), transform .8s cubic-bezier(.2, .8, .2, 1); }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .reveal.is-in:hover { transform: translateY(-6px); transition-duration: .25s; }

@media (max-width: 1180px) {
  .gauge { display: none; }
  .hero__grid { gap: 36px; }
  .features { grid-template-columns: repeat(2, 1fr); }
  .feature--wide { grid-column: span 2; }
}

@media (max-width: 980px) {
  .nav__links {
    position: fixed; inset: var(--nav-h) 0 auto; flex-direction: column; gap: 4px; padding: 16px 24px 28px;
    background: rgba(6, 14, 40, .97); box-shadow: 0 20px 40px rgba(0, 0, 0, .5);
    transform: translateY(-12px); opacity: 0; pointer-events: none; transition: opacity .2s ease, transform .2s ease;
  }
  .nav__links a { padding: 14px 12px; font-size: 18px; }
  .nav.is-open { background: rgba(6, 14, 40, .97); }
  .nav.is-open .nav__links { transform: none; opacity: 1; pointer-events: auto; }
  .nav__cta { margin-left: auto; }
  .nav__toggle {
    display: grid; place-content: center; gap: 6px; width: 46px; height: 46px; border: 0; border-radius: 12px; cursor: pointer;
    background: rgba(255, 255, 255, .08);
  }
  .nav__toggle span { display: block; width: 20px; height: 2px; border-radius: 2px; background: var(--ink); transition: transform .2s ease; }
  .nav.is-open .nav__toggle span:first-child { transform: translateY(4px) rotate(45deg); }
  .nav.is-open .nav__toggle span:last-child { transform: translateY(-4px) rotate(-45deg); }
  .hero { min-height: auto; padding-bottom: 100px; }
  .hero__grid { grid-template-columns: minmax(0, 1fr); }
  .hero__copy { text-align: center; }
  .lead { margin-inline: auto; }
  .actions, .stats { justify-content: center; }
  .hero__game { max-width: 620px; width: 100%; justify-self: center; }
  .float--a { left: 78%; top: 14%; }
  .float--e { display: none; }
  .cards--3 { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; }
  .platforms { grid-template-columns: 1fr; }
  .qr { grid-column: auto; }
  .operators { grid-template-columns: 1fr; gap: 40px; }
  .operators__art { display: none; }
  .dive { padding: 96px 0; }
  .dive--watch { padding: 96px 0; }
  .player-track { height: auto; }
  .player-sticky { position: static; height: auto; display: block; }
  .player-sticky > .wrap { padding-top: 0; }
  .player { width: 100%; transform: none; border-radius: var(--radius); filter: none; opacity: 1; }
}

@media (max-width: 640px) {
  :root { --nav-h: 64px; }
  .game { grid-template-columns: 1fr; }
  .game__status { flex-direction: row; justify-content: space-between; padding: 10px 14px; }
  .game__big { font-size: 32px; }
  body { font-size: 16px; }
  .nav__logo img { height: 38px; }
  .nav__cta { display: none; }
  .nav__toggle { margin-left: auto; }
  .hero { padding-top: calc(var(--nav-h) + 28px); }
  .hero h1 { font-size: clamp(38px, 11vw, 50px); }
  .lead { font-size: 17px; }
  .actions { flex-direction: column; }
  .actions .btn { width: 100%; }
  .stats { gap: 28px; }
  .stats strong { font-size: 28px; }
  .game { padding: 12px; border-radius: 24px; gap: 12px; }
  .game__main { padding: 10px 8px; }
  .board { gap: 6px; padding: 9px; }
  .tile { border-radius: 9px; }
  .features { grid-template-columns: 1fr; }
  .feature--wide { grid-column: auto; grid-template-columns: 1fr; padding: 28px; gap: 24px; }
  .screens { gap: 10px; }
  .screen { border-radius: 14px; }
  .screen--back { margin-top: 16px; }
  .feature--wide h3 { font-size: 28px; }
  .qr { grid-template-columns: 1fr; text-align: center; justify-items: center; padding: 28px; }
  .qr img { width: 180px; }
  .form { padding: 22px; }
  .form__row { grid-template-columns: 1fr; }
  .player__play { width: 84px; height: 84px; margin: -42px 0 0 -42px; }
  .player__play svg { width: 34px; height: 34px; }
  .float { display: none; }
}

@media (max-width: 640px) {
  .game { --fit-h: calc(100svh - var(--nav-h) - 16px); gap: 8px; padding: 10px; }
  .game__main { gap: 8px; padding: 8px; border-radius: 20px; }
  .game__history span, .game__strip span { min-width: 56px; padding: 4px 6px; border-radius: 10px; }
  .game__history small { font-size: 10px; }
  .game__history b, .game__strip b { font-size: 13px; }
  .game__strip small { font-size: 9px; }
  .board-stage { width: min(100%, max(200px, calc(var(--fit-h) - 382px))); margin-inline: auto; padding: 0 2px 4px; }
  .board { gap: 5px; padding: 7px; border-radius: 16px; }
  .tile { border-radius: 8px; font-size: clamp(13px, 4.2vw, 20px); }
  .game__side { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; }
  .game__status { grid-column: 1 / -1; gap: 8px; padding: 6px 12px; border-radius: 16px; white-space: nowrap; }
  .state { font-size: 10px; letter-spacing: .06em; }
  .game__counts { font-size: 13px; }
  .game__counts img { width: 17px; height: 17px; }
  .game__big { font-size: 26px; }
  .game__big.is-wait { font-size: 18px; padding: 4px 0; }
  .mines-btn { min-height: 38px; border-radius: 12px; font-size: 13px; }
  .game__timer { gap: 8px; padding: 0; }
  .game__timer > span:first-child { min-width: 0; font-size: 12px; white-space: nowrap; }
  .game__balance { grid-column: 1 / -1; padding: 0 2px; }
  .game__balance small { font-size: 11px; }
  .game__balance strong { font-size: 14px; }
  .betbox { padding: 6px 8px; border-radius: 14px; }
  .betbox strong { font-size: 16px; }
  .betbox__side { gap: 4px; }
  .betbox button { min-width: 38px; height: 24px; border-radius: 8px; font-size: 11px; }
  .betbtn { min-height: 0; height: 100%; padding: 6px 10px; border-radius: 14px; }
  .betbtn b { font-size: 20px; }
  .betbtn.is-cash b { font-size: 16px; }
  .betbtn small { font-size: 10px; }
  .game__note { margin-top: -4px; font-size: 10.5px; }
  .game__msg { font-size: 12px; line-height: 1.4; min-height: 2.8em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
}

@media (max-width: 380px) {
  .state > span { display: none; }
  .game__big.is-wait { font-size: 16px; }
}

@media (max-width: 640px) and (max-height: 640px) {
  .game__history { display: none; }
  .game__msg { display: none; }
  .board-stage { width: min(100%, max(180px, calc(var(--fit-h) - 298px))); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
  .bubbles { display: none; }
  .dive--watch { padding: 96px 0; }
  .player-track { height: auto; }
  .player-sticky { position: static; height: auto; display: block; }
  .player-sticky > .wrap { padding-top: 0; }
  .player { width: 100%; transform: none; border-radius: var(--radius); filter: none; opacity: 1; }
}

body:has(.player.is-full) .gauge { opacity: 0; }
