/* KAZINO MICKŪNAI — code-only design. No images, no screenshot hitboxes:
   every card, chip, wheel and light is drawn with CSS. */

:root {
  color-scheme: dark;
  --bg: #07050a;
  --gold: #f5c96b;
  --gold-light: #fff3cf;
  --gold-deep: #a96c16;
  --wine: #85182c;
  --wine-dark: #4d0c1a;
  --felt: #0b3b2f;
  --cream: #f8efd9;
  --muted: #c2ad86;
  --font-display: Georgia, 'Times New Roman', serif;
  --font-ui: 'Segoe UI', Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  min-height: 100%;
  background: var(--bg);
  color: var(--cream);
}

body {
  overflow-x: hidden;
  font-family: var(--font-ui);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.page {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  isolation: isolate;
}

/* Deep casino-night backdrop: wine light, gold dust and green felt. */
.page::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -3;
  background:
    radial-gradient(ellipse 52% 42% at 50% 38%, rgba(133, 24, 44, 0.42), transparent 72%),
    radial-gradient(ellipse 38% 34% at 84% 16%, rgba(245, 201, 107, 0.14), transparent 70%),
    radial-gradient(ellipse 44% 40% at 10% 88%, rgba(11, 59, 47, 0.38), transparent 74%),
    radial-gradient(ellipse 30% 26% at 92% 86%, rgba(133, 24, 44, 0.22), transparent 72%),
    linear-gradient(180deg, #0d0912 0%, #07050a 52%, #050407 100%);
}

.page::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  opacity: 0.5;
  background-image:
    radial-gradient(circle, rgba(245, 201, 107, 0.32) 0.7px, transparent 1px),
    linear-gradient(rgba(245, 201, 107, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(245, 201, 107, 0.045) 1px, transparent 1px);
  background-size: 31px 31px, 62px 62px, 62px 62px;
  background-position: 0 0, 0 0, 0 0;
  -webkit-mask-image: radial-gradient(ellipse at 50% 42%, #000 0%, transparent 78%);
  mask-image: radial-gradient(ellipse at 50% 42%, #000 0%, transparent 78%);
  box-shadow: inset 0 0 200px 60px rgba(0, 0, 0, 0.72);
}

/* ---------- Header ---------- */
.topbar {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  padding: 20px clamp(16px, 4vw, 46px) 18px;
}

.topbar::after {
  content: '';
  position: absolute;
  left: clamp(16px, 4vw, 46px);
  right: clamp(16px, 4vw, 46px);
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(245, 201, 107, 0.55), transparent);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: inherit;
  text-decoration: none;
}

.brand__mark {
  position: relative;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: none;
  border: 1px solid rgba(245, 201, 107, 0.6);
  border-radius: 50%;
  background: radial-gradient(circle at 35% 25%, rgba(245, 201, 107, 0.24), rgba(245, 201, 107, 0.04) 70%);
  box-shadow: 0 0 24px rgba(245, 201, 107, 0.22), inset 0 0 14px rgba(245, 201, 107, 0.12);
  color: var(--gold-light);
  font-size: 18px;
  text-shadow: 0 0 12px rgba(245, 201, 107, 0.7);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.brand:hover .brand__mark {
  transform: rotate(14deg) scale(1.06);
  box-shadow: 0 0 34px rgba(245, 201, 107, 0.42), inset 0 0 18px rgba(245, 201, 107, 0.2);
}

.brand__mark::before {
  content: '';
  position: absolute;
  inset: 4px;
  border: 1px dashed rgba(245, 201, 107, 0.35);
  border-radius: 50%;
}

.brand__name {
  font-family: var(--font-display);
  font-size: clamp(14px, 2.4vw, 19px);
  letter-spacing: 0.12em;
  white-space: nowrap;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.8);
}
.brand__name b { color: var(--gold); font-weight: 600; }

.topnav__link {
  position: relative;
  display: inline-block;
  padding: 8px 2px;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-decoration: none;
  text-transform: uppercase;
  transition: color 0.2s ease;
}
.topnav__link::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 2px;
  width: 0;
  height: 1px;
  background: var(--gold);
  transform: translateX(-50%);
  transition: width 0.25s ease;
}
.topnav__link:hover,
.topnav__link:focus-visible { color: var(--gold-light); }
.topnav__link:hover::after,
.topnav__link:focus-visible::after { width: 100%; }

.lang {
  display: flex;
  gap: 5px;
  padding: 4px;
  border: 1px solid rgba(245, 201, 107, 0.34);
  border-radius: 999px;
  background: rgba(9, 6, 4, 0.72);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 6px 20px rgba(0, 0, 0, 0.45);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.lang button {
  min-width: 46px;
  height: 38px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font: 700 12px/1 var(--font-ui);
  letter-spacing: 0.1em;
  cursor: pointer;
  touch-action: manipulation;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.lang button:hover { color: var(--gold-light); transform: translateY(-1px); }
.lang button[aria-pressed="true"] {
  background: linear-gradient(180deg, #ffe9a8 0%, var(--gold) 48%, var(--gold-deep) 100%);
  box-shadow: 0 0 20px rgba(245, 201, 107, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.8);
  color: #221304;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.35);
  transform: translateY(-1px);
}

.lang button:focus-visible,
.cta:focus-visible,
.topnav__link:focus-visible {
  outline: 2px solid var(--gold-light);
  outline-offset: 3px;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  flex: 1;
  display: grid;
  place-items: center;
  padding: clamp(30px, 5vw, 64px) 16px clamp(96px, 12vh, 130px);
}

.hero__glow {
  position: absolute;
  z-index: -1;
  top: 46%;
  left: 50%;
  width: min(92vw, 760px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(133, 24, 44, 0.5) 0%, rgba(245, 201, 107, 0.14) 40%, transparent 70%);
  filter: blur(16px);
  transform: translate(-50%, -50%);
  pointer-events: none;
}

/* A soft oval of green felt under the cards. */
.hero__table {
  position: absolute;
  z-index: 0;
  top: 57%;
  left: 50%;
  width: min(1100px, 118vw);
  height: min(470px, 62vh);
  border: 1px solid rgba(245, 201, 107, 0.12);
  border-radius: 50%;
  background: radial-gradient(ellipse at 50% 45%, rgba(13, 68, 53, 0.72) 0%, rgba(7, 35, 28, 0.5) 48%, transparent 74%);
  box-shadow: inset 0 0 130px rgba(0, 0, 0, 0.8), 0 0 100px rgba(245, 201, 107, 0.07);
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.hero__table::before,
.hero__table::after {
  content: '';
  position: absolute;
  border: 1px solid rgba(245, 201, 107, 0.14);
  border-radius: 50%;
  inset: 38px 70px;
}
.hero__table::after {
  inset: 84px 150px;
  border-style: dashed;
  border-color: rgba(245, 201, 107, 0.1);
}

/* Tiny drifting gold motes. */
.hero__sparkles { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.hero__sparkles i {
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--gold-light);
  box-shadow: 0 0 12px 2px rgba(245, 201, 107, 0.65);
  animation: twinkle 3.4s ease-in-out infinite;
  opacity: 0.25;
}
.hero__sparkles i:nth-child(1) { left: 17%; top: 24%; animation-delay: 0s; }
.hero__sparkles i:nth-child(2) { left: 31%; top: 71%; width: 2px; height: 2px; animation-delay: 0.7s; }
.hero__sparkles i:nth-child(3) { left: 68%; top: 20%; width: 2px; height: 2px; animation-delay: 1.4s; }
.hero__sparkles i:nth-child(4) { left: 79%; top: 66%; animation-delay: 2.1s; }
.hero__sparkles i:nth-child(5) { left: 52%; top: 13%; width: 2px; height: 2px; animation-delay: 2.7s; }
.hero__sparkles i:nth-child(6) { left: 8%; top: 56%; width: 2px; height: 2px; animation-delay: 1.1s; }
@keyframes twinkle {
  0%, 100% { opacity: 0.18; transform: scale(0.7); }
  50% { opacity: 1; transform: scale(1.5); }
}

.hero__content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 780px;
  text-align: center;
}

.ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 14px;
  color: var(--gold);
}
.ornament span {
  width: 42px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold));
}
.ornament span:last-child { transform: scaleX(-1); }
.ornament i { font-size: 9px; font-style: normal; text-shadow: 0 0 12px rgba(245, 201, 107, 0.8); }

.kicker {
  color: var(--gold);
  font-size: clamp(12px, 2.3vw, 17px);
  letter-spacing: 0.38em;
  text-transform: uppercase;
  text-shadow: 0 0 18px rgba(245, 201, 107, 0.35);
}

.title {
  margin-top: 10px;
  font-family: var(--font-display);
  font-size: clamp(44px, 9vw, 90px);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: 0.015em;
  text-wrap: balance;
  background: linear-gradient(180deg, #fffdf2 0%, #ffe9a8 32%, var(--gold) 62%, #8f5610 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter:
    drop-shadow(0 2px 0 rgba(0, 0, 0, 0.55))
    drop-shadow(0 14px 32px rgba(245, 201, 107, 0.25));
}

.subtitle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 20px;
  padding: 9px 22px;
  border-top: 1px solid rgba(245, 201, 107, 0.18);
  border-bottom: 1px solid rgba(245, 201, 107, 0.18);
  border-radius: 999px;
  background: rgba(5, 3, 6, 0.32);
  color: var(--cream);
  font-size: clamp(14px, 2.3vw, 19px);
  letter-spacing: 0.04em;
}
.subtitle span[aria-hidden] {
  color: var(--gold);
  font-size: 0.82em;
  text-shadow: 0 0 12px rgba(245, 201, 107, 0.6);
}

.cta {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  width: min(100%, 340px);
  height: 62px;
  margin-top: 32px;
  padding: 0 26px;
  overflow: hidden;
  border: 1px solid #fff6d9;
  border-radius: 18px;
  background: linear-gradient(180deg, #ffe9a8 0%, #f5c96b 48%, #a96c16 100%);
  box-shadow:
    0 0 0 2px rgba(245, 201, 107, 0.35),
    0 0 0 6px rgba(245, 201, 107, 0.08),
    0 18px 40px rgba(245, 201, 107, 0.3),
    0 0 34px rgba(245, 201, 107, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.85),
    inset 0 -9px 18px rgba(120, 65, 5, 0.35);
  color: #231304;
  font: 800 15px/1 var(--font-ui);
  letter-spacing: 0.14em;
  cursor: pointer;
  touch-action: manipulation;
  transition: transform 0.2s ease, box-shadow 0.3s ease;
  animation: cta-breathe 3.6s ease-in-out infinite;
}
.cta::before {
  content: '';
  position: absolute;
  top: 3px;
  left: 26px;
  right: 26px;
  height: 1px;
  background: rgba(255, 255, 255, 0.4);
  border-radius: 50%;
}
.cta::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 34%, rgba(255, 255, 255, 0.45) 50%, transparent 66%);
  transform: translateX(-120%);
  transition: transform 0.65s ease;
}
.cta:hover {
  transform: translateY(-3px);
  box-shadow:
    0 0 0 4px rgba(245, 201, 107, 0.5),
    0 0 0 9px rgba(245, 201, 107, 0.12),
    0 24px 52px rgba(245, 201, 107, 0.42),
    0 0 50px rgba(245, 201, 107, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
}
.cta:hover::after { transform: translateX(120%); }
.cta:active { transform: scale(0.97); animation: none; }
.cta__icon {
  position: relative;
  width: 20px;
  height: 20px;
  flex: none;
}
.cta__icon::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 2px;
  border-top: 9px solid transparent;
  border-bottom: 9px solid transparent;
  border-left: 14px solid #231304;
  transform: translateY(-50%);
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.35));
}
@keyframes cta-breathe {
  0%, 100% { box-shadow: 0 0 0 2px rgba(245, 201, 107, 0.35), 0 0 0 6px rgba(245, 201, 107, 0.08), 0 18px 40px rgba(245, 201, 107, 0.28), 0 0 30px rgba(245, 201, 107, 0.2), inset 0 1px 0 rgba(255,255,255,.85), inset 0 -9px 18px rgba(120,65,5,.35); }
  50% { box-shadow: 0 0 0 4px rgba(245, 201, 107, 0.5), 0 0 0 9px rgba(245, 201, 107, 0.13), 0 20px 48px rgba(245, 201, 107, 0.42), 0 0 50px rgba(245, 201, 107, 0.32), inset 0 1px 0 rgba(255,255,255,.95), inset 0 -9px 18px rgba(120,65,5,.35); }
}

/* ---------- CSS-drawn casino details ---------- */
.decor { position: absolute; z-index: 1; pointer-events: none; }

/* Roulette with rim ticks, inner rings and a top marker. */
.decor--roulette {
  --wheel-size: clamp(200px, 27vw, 330px);
  z-index: 0;
  right: 3%;
  top: 52%;
  transform: translateY(-50%);
  opacity: 0.85;
}
.decor--roulette::after {
  content: '';
  position: absolute;
  top: -20px;
  left: 50%;
  width: 0;
  height: 0;
  border-left: 9px solid transparent;
  border-right: 9px solid transparent;
  border-top: 15px solid var(--gold-light);
  filter: drop-shadow(0 0 8px rgba(245, 201, 107, 0.8));
  transform: translateX(-50%);
}
.roulette {
  position: relative;
  display: block;
  width: var(--wheel-size);
  aspect-ratio: 1;
  border: 9px solid #0b0705;
  border-radius: 50%;
  background:
    repeating-conic-gradient(from 0deg,
      var(--wine-dark) 0deg 13deg,
      var(--wine) 13deg 26deg,
      #120a09 26deg 39deg,
      var(--gold-deep) 39deg 45deg,
      #120a09 45deg 58deg,
      var(--gold) 58deg 60deg);
  box-shadow:
    0 0 0 2px rgba(245, 201, 107, 0.65),
    0 0 0 13px #080503,
    0 0 0 15px rgba(245, 201, 107, 0.32),
    0 0 0 24px #060403,
    0 0 80px rgba(245, 201, 107, 0.24),
    inset 0 0 60px rgba(0, 0, 0, 0.9);
  animation: spin 26s linear infinite;
}
.roulette::before {
  content: '';
  position: absolute;
  inset: -19px;
  border-radius: 50%;
  background: repeating-conic-gradient(from 0deg, var(--gold-light) 0deg 1.1deg, transparent 1.1deg 15deg);
  -webkit-mask-image: radial-gradient(circle, transparent 0 88%, #000 89% 94%, transparent 95%);
  mask-image: radial-gradient(circle, transparent 0 88%, #000 89% 94%, transparent 95%);
  opacity: 0.8;
}
.roulette::after {
  content: '';
  position: absolute;
  inset: 32%;
  border: 3px solid var(--gold-light);
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, #ff4d63 0 8%, var(--gold) 9% 13%, #1a0b09 14% 100%),
    conic-gradient(from 0deg, #2a160d, #5b3218, #2a160d, #5b3218, #2a160d);
  box-shadow: 0 0 0 6px #0a0604, 0 0 24px rgba(0, 0, 0, 0.9), inset 0 0 14px rgba(0, 0, 0, 0.8);
}
.roulette__ring {
  position: absolute;
  inset: 23%;
  border: 1px dashed rgba(245, 201, 107, 0.55);
  border-radius: 50%;
  box-shadow: 0 0 14px rgba(245, 201, 107, 0.25), inset 0 0 14px rgba(0, 0, 0, 0.7);
  pointer-events: none;
}
.roulette__num {
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 50%;
  display: grid;
  place-items: center;
  width: 1.9em;
  height: 1.9em;
  margin: -0.95em 0 0 -0.95em;
  border: 1px solid rgba(245, 201, 107, 0.6);
  border-radius: 50%;
  background: radial-gradient(circle at 35% 25%, #211510, #070403 78%);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.9), inset 0 0 7px rgba(245, 201, 107, 0.2);
  color: var(--gold-light);
  font: 700 clamp(10px, 1.2vw, 14px)/1 var(--font-ui);
  transform: rotate(var(--a)) translateY(calc(var(--wheel-size) * -0.35)) rotate(calc(var(--a) * -1));
}
.roulette__num:nth-child(even) {
  border-color: rgba(255, 123, 116, 0.7);
  color: #ff9d92;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.9), inset 0 0 7px rgba(255, 123, 116, 0.22);
}
.roulette__ball {
  position: absolute;
  z-index: 3;
  left: 50%;
  top: 50%;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, #fff 0 18%, #f3e3b6 38%, #b8862c 70%, #5a3a0d 100%);
  box-shadow: 0 0 12px 2px rgba(255, 243, 207, 0.75), 0 3px 5px rgba(0, 0, 0, 0.8);
  animation: ball-orbit 4.5s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes ball-orbit {
  from { transform: translate(-50%, -50%) rotate(0deg) translateX(calc(var(--wheel-size) * 0.37)); }
  to { transform: translate(-50%, -50%) rotate(360deg) translateX(calc(var(--wheel-size) * 0.37)); }
}

/* Thick black 3D cards. */
.deck {
  position: absolute;
  z-index: 2;
  left: 7.5%;
  top: 50%;
  width: clamp(132px, 17vw, 214px);
  aspect-ratio: 1 / 0.8;
  perspective: 1100px;
  transform: translateY(-50%);
  pointer-events: none;
}

.card3d {
  position: absolute;
  inset: 0;
  width: 62%;
  height: 100%;
  border-radius: 14px;
  transform-style: preserve-3d;
  transform-origin: 50% 100%;
  backface-visibility: hidden;
  will-change: transform;
}

/* Layered card edge: reads as a solid stack of black plastic. */
.card3d::before {
  content: '';
  position: absolute;
  inset: 5px -8px -11px 6px;
  border-radius: 14px;
  background: linear-gradient(135deg, #05040a 0%, #3a3142 52%, #0a0710 100%);
  box-shadow:
    0 2px 0 #4b4055,
    0 5px 0 #231b2d,
    0 9px 0 #0b0710,
    0 26px 42px rgba(0, 0, 0, 0.78),
    0 0 0 1px rgba(245, 201, 107, 0.22);
  transform: translateZ(-11px);
}

/* Glossy face with a double gold frame. */
.card3d::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 1px solid rgba(245, 201, 107, 0.72);
  border-radius: 14px;
  background:
    linear-gradient(115deg, transparent 28%, rgba(255, 255, 255, 0.13) 37%, transparent 45%),
    radial-gradient(circle at 22% 12%, rgba(255, 255, 255, 0.22), transparent 30%),
    radial-gradient(circle at 80% 88%, rgba(245, 201, 107, 0.12), transparent 42%),
    linear-gradient(150deg, #2b2635 0%, #120e19 44%, #06050b 100%);
  background-size: 260% 100%, auto, auto, auto;
  box-shadow:
    inset 0 0 0 3px rgba(0, 0, 0, 0.72),
    inset 0 0 0 4px rgba(245, 201, 107, 0.18),
    inset 0 -26px 36px rgba(0, 0, 0, 0.72),
    0 0 26px rgba(245, 201, 107, 0.14);
  animation: card-sheen 7s ease-in-out infinite;
}

.card3d__suit,
.card3d__corner {
  position: absolute;
  z-index: 2;
  color: #ff4764;
  font-family: var(--font-display);
  line-height: 1;
  transform: translateZ(1px);
}

.card3d__suit {
  inset: 0;
  display: grid;
  place-items: center;
  font-size: clamp(56px, 9vw, 106px);
  background: radial-gradient(circle at 50% 48%, rgba(255, 71, 100, 0.2), transparent 58%);
  text-shadow:
    0 0 12px rgba(255, 71, 100, 0.95),
    0 0 36px rgba(255, 71, 100, 0.6),
    0 3px 3px rgba(0, 0, 0, 0.9);
}

.card3d__corner {
  top: 10px;
  left: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: clamp(16px, 2.2vw, 23px);
  font-weight: 700;
  letter-spacing: -0.04em;
  text-shadow: 0 0 12px rgba(255, 71, 100, 0.7), 0 2px 2px rgba(0, 0, 0, 0.9);
}
.card3d__corner small { font-size: 0.74em; }
.card3d__corner--bottom {
  top: auto;
  left: auto;
  right: 12px;
  bottom: 10px;
  transform: rotate(180deg) translateZ(1px);
}

.card3d__pip {
  position: absolute;
  z-index: 2;
  color: #ff4764;
  font-family: var(--font-display);
  font-size: clamp(10px, 1.5vw, 17px);
  line-height: 1;
  opacity: 0.78;
  text-shadow: 0 0 9px rgba(255, 71, 100, 0.65), 0 1px 2px rgba(0, 0, 0, 0.9);
  transform: translateZ(1px);
}
.card3d__pip--tl { top: 22%; left: 20%; }
.card3d__pip--tr { top: 22%; right: 20%; }
.card3d__pip--ml { top: 49%; left: 14%; }
.card3d__pip--mr { top: 49%; right: 14%; }
.card3d__pip--bl { bottom: 22%; left: 20%; }
.card3d__pip--br { bottom: 22%; right: 20%; }

.card3d--queen {
  z-index: 0;
  transform: translateX(-32%) translateZ(-78px) rotate(-28deg) rotateY(9deg);
  opacity: 0.7;
  animation: queen-float 6.4s ease-in-out infinite;
}
.card3d--queen .card3d__suit { font-size: clamp(44px, 7vw, 82px); }
.card3d--queen .card3d__corner { font-size: clamp(14px, 1.9vw, 20px); }

.card3d--ace {
  z-index: 3;
  transform: translateX(-18%) rotate(-14deg) rotateY(-16deg);
  animation: ace-float 5.4s ease-in-out infinite;
}
.card3d--king {
  z-index: 2;
  transform: translateX(16%) translateZ(-26px) rotate(11deg) rotateY(12deg);
  animation: king-float 5.4s ease-in-out infinite;
}
.card3d--king .card3d__suit {
  color: #f6ecd2;
  background: radial-gradient(circle at 50% 48%, rgba(246, 236, 210, 0.14), transparent 58%);
  text-shadow: 0 0 18px rgba(246, 236, 210, 0.5), 0 3px 3px rgba(0, 0, 0, 0.9);
}
.card3d--king .card3d__corner {
  color: #f6ecd2;
  text-shadow: 0 0 10px rgba(246, 236, 210, 0.45), 0 2px 2px rgba(0, 0, 0, 0.9);
}

.card3d--back {
  z-index: 1;
  transform: translateX(38%) translateZ(-52px) rotate(24deg) rotateY(-10deg);
  opacity: 0.82;
  animation: back-float 7s ease-in-out infinite;
}
.card3d--back::after {
  border-color: rgba(133, 24, 44, 0.85);
  background:
    radial-gradient(circle at 50% 50%, rgba(245, 201, 107, 0.4) 0 5%, transparent 6%),
    repeating-linear-gradient(45deg, rgba(133, 24, 44, 0.4) 0 6px, transparent 6px 12px),
    repeating-linear-gradient(-45deg, rgba(245, 201, 107, 0.2) 0 6px, transparent 6px 12px),
    linear-gradient(150deg, #26111e, #08050b);
  box-shadow:
    inset 0 0 0 4px rgba(0, 0, 0, 0.75),
    inset 0 0 0 5px rgba(245, 201, 107, 0.28),
    inset 0 -22px 30px rgba(0, 0, 0, 0.75),
    0 0 22px rgba(133, 24, 44, 0.28);
}

@keyframes queen-float {
  0%, 100% { transform: translateX(-32%) translateZ(-78px) rotate(-28deg) rotateY(9deg) translateY(0); }
  50% { transform: translateX(-32%) translateZ(-78px) rotate(-25deg) rotateY(3deg) translateY(8px); }
}
@keyframes ace-float {
  0%, 100% { transform: translateX(-18%) rotate(-14deg) rotateY(-16deg) translateY(0); }
  50% { transform: translateX(-18%) rotate(-11deg) rotateY(-9deg) translateY(-9px); }
}
@keyframes king-float {
  0%, 100% { transform: translateX(16%) translateZ(-26px) rotate(11deg) rotateY(12deg) translateY(0); }
  50% { transform: translateX(16%) translateZ(-26px) rotate(8deg) rotateY(5deg) translateY(7px); }
}
@keyframes back-float {
  0%, 100% { transform: translateX(38%) translateZ(-52px) rotate(24deg) rotateY(-10deg) translateY(0); }
  50% { transform: translateX(38%) translateZ(-52px) rotate(21deg) rotateY(-4deg) translateY(-5px); }
}
@keyframes card-sheen {
  0%, 100% { background-position: 130% 0, 0 0, 0 0, 0 0; }
  50% { background-position: -130% 0, 0 0, 0 0, 0 0; }
}

/* Poker chips with a visible rim and soft glow. */
.chips {
  position: absolute;
  z-index: 3;
  left: 26%;
  bottom: 8%;
  width: clamp(150px, 21vw, 250px);
  height: clamp(62px, 8vw, 100px);
  perspective: 800px;
  pointer-events: none;
}
.chip3d {
  position: absolute;
  bottom: 0;
  width: clamp(54px, 7vw, 86px);
  aspect-ratio: 1;
  border-radius: 50%;
  transform: rotateX(58deg) rotateZ(var(--spin, 0deg));
  transform-style: preserve-3d;
  box-shadow:
    0 4px 0 var(--chip-side, #2a1014),
    0 8px 0 var(--chip-rim, #12070a),
    0 16px 24px rgba(0, 0, 0, 0.72),
    inset 0 0 0 5px var(--chip-edge, rgba(255, 255, 255, 0.65)),
    inset 0 0 0 9px rgba(0, 0, 0, 0.22),
    inset 0 -9px 15px rgba(0, 0, 0, 0.5),
    0 0 22px var(--chip-glow, transparent);
  background:
    radial-gradient(circle at 30% 22%, rgba(255, 255, 255, 0.5), transparent 27%),
    radial-gradient(circle at 50% 50%, transparent 0 25%, var(--chip-edge, rgba(255, 255, 255, 0.65)) 25% 31%, transparent 31% 100%),
    repeating-conic-gradient(from 0deg, var(--chip-light, #ff9b95) 0deg 18deg, var(--chip-dark, #85182c) 18deg 36deg);
}
.chip3d::after {
  content: '';
  position: absolute;
  inset: 30%;
  border: 3px solid var(--chip-edge, rgba(255, 255, 255, 0.65));
  border-radius: 50%;
  background: radial-gradient(circle at 40% 30%, var(--chip-light, #ff9b95) 0 22%, var(--chip-dark, #85182c) 24% 100%);
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.7), 0 0 8px rgba(0, 0, 0, 0.5);
}
.chip3d b {
  position: absolute;
  z-index: 2;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--chip-edge, #fff);
  font: 800 clamp(8px, 1.1vw, 13px)/1 var(--font-ui);
  letter-spacing: -0.02em;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.95), 0 0 6px rgba(0, 0, 0, 0.7);
  transform: translateZ(1px);
}
@keyframes chip-bob {
  0%, 100% { transform: rotateX(58deg) rotateZ(var(--spin, 0deg)) translateY(0); }
  50% { transform: rotateX(58deg) rotateZ(var(--spin, 0deg)) translateY(-7px); }
}

.chip3d--red {
  left: 0;
  --chip-light: #ff8b83;
  --chip-dark: #a3122a;
  --chip-edge: #ffe6df;
  --chip-side: #6d0f20;
  --chip-rim: #2a0a11;
  --chip-glow: rgba(255, 80, 90, 0.32);
  --spin: -14deg;
  animation: chip-bob 4.6s ease-in-out infinite;
}
.chip3d--gold {
  left: 27%;
  bottom: 12%;
  --chip-light: #ffe08a;
  --chip-dark: #b8791c;
  --chip-edge: #fff4c7;
  --chip-side: #8a5710;
  --chip-rim: #342006;
  --chip-glow: rgba(245, 201, 107, 0.4);
  --spin: 12deg;
  animation: chip-bob 5.2s ease-in-out 0.7s infinite;
}
.chip3d--dark {
  left: 54%;
  --chip-light: #7d7189;
  --chip-dark: #17121f;
  --chip-edge: #d3ad5c;
  --chip-side: #100d17;
  --chip-rim: #05040a;
  --chip-glow: rgba(211, 173, 92, 0.24);
  --spin: 4deg;
  animation: chip-bob 6s ease-in-out 1.3s infinite;
}

/* ---------- Message ---------- */
.message {
  position: fixed;
  z-index: 20;
  left: 50%;
  bottom: calc(24px + env(safe-area-inset-bottom));
  max-width: calc(100vw - 32px);
  padding: 12px 22px;
  border: 1px solid rgba(245, 201, 107, 0.7);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(38, 21, 7, 0.97), rgba(9, 5, 2, 0.98));
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.75), 0 0 32px rgba(245, 201, 107, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  color: var(--gold-light);
  font-size: 13px;
  text-align: center;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 14px);
  transition: opacity 0.25s ease, transform 0.3s ease;
}
.message.visible { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Phones ---------- */
@media (max-width: 700px) {
  .topbar { gap: 8px; padding: 16px 16px 12px; }
  .brand__mark { width: 36px; height: 36px; font-size: 16px; }
  .brand__name { font-size: 14px; letter-spacing: 0.08em; }
  .topnav { order: 3; width: 100%; }
  .topnav__link { font-size: 11px; }
  .lang button { min-width: 48px; height: 44px; }

  /* Top-align the text so the cards and chips get their own visible space. */
  .hero {
    place-items: start center;
    padding: 24px 16px 96px;
  }
  .hero__glow { top: 40%; width: 140vw; }
  .hero__table {
    top: 68%;
    width: 155vw;
    height: 56vh;
    opacity: 0.85;
  }
  .hero__sparkles i:nth-child(n+4) { display: none; }

  .ornament { margin-bottom: 10px; }
  .ornament span { width: 30px; }
  .kicker { font-size: 11px; letter-spacing: 0.3em; }
  .title {
    margin-top: 8px;
    font-size: clamp(40px, 11.5vw, 58px);
    line-height: 1;
  }
  .subtitle {
    gap: 8px;
    margin-top: 16px;
    padding: 7px 14px;
    font-size: 13px;
  }
  .cta {
    width: min(100%, 340px);
    height: 58px;
    margin-top: 26px;
    font-size: 14px;
  }
  .decor--roulette {
    --wheel-size: 230px;
    right: -8%;
    top: 66%;
    bottom: auto;
    opacity: 0.72;
  }
  .decor--roulette::after { display: none; }
  .roulette { animation-duration: 12s; }
  .roulette__ball { animation-duration: 3s; }
  .roulette__num { font-size: 9px; }
  .roulette__ring { inset: 21%; }

  .deck {
    left: 50%;
    top: 66%;
    width: 228px;
    transform: translate(-50%, -50%) scale(0.86);
    opacity: 0.95;
  }
  .chips {
    left: 50%;
    bottom: 15%;
    width: 180px;
    height: 60px;
    transform: translateX(-50%);
    opacity: 0.9;
  }
  .chip3d { width: 58px; }

  .message { font-size: 12.5px; white-space: normal; }
}

@media (max-width: 360px) {
  .topbar { gap: 6px; padding: 12px 12px 10px; }
  .brand { gap: 7px; }
  .brand__mark { width: 30px; height: 30px; font-size: 14px; }
  .brand__name { font-size: 12px; letter-spacing: 0.05em; }
  .lang { gap: 3px; padding: 3px; }
  .lang button { min-width: 42px; height: 40px; font-size: 11px; }
  .title { font-size: 38px; }
  .subtitle { gap: 6px; font-size: 12px; }
  .deck { transform: translate(-50%, -50%) scale(0.74); opacity: 0.85; }
  .chips { bottom: 17%; transform: translateX(-50%) scale(0.9); opacity: 0.8; }
  .hero__table { top: 70%; }
  .decor--roulette { --wheel-size: 200px; right: -12%; opacity: 0.6; }
}

@media (max-height: 650px) and (max-width: 700px) {
  .hero { padding-top: 16px; padding-bottom: 84px; }
  .title { font-size: 36px; }
  .subtitle { margin-top: 12px; font-size: 12px; }
  .cta { margin-top: 20px; height: 54px; }
  .deck { top: 62%; transform: translate(-50%, -50%) scale(0.7); }
  .chips { bottom: 17%; }
  .decor--roulette { --wheel-size: 210px; top: 68%; }
  .roulette { animation-duration: 10s; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
