/* =========================================================
   GOLDEN LUCK  |  lobby
   ========================================================= */

.lobby-page { display: flex; flex-direction: column; gap: 52px; padding-top: 22px; }

.btn-lg { min-height: 54px; padding: 0 26px; font-size: 16px; border-radius: 12px; }
.btn-sm { min-height: 44px; padding: 0 14px; font-size: 13px; }
.btn-sm svg { width: 15px; height: 15px; }
a.btn { text-decoration: none; }

.gold-text {
  background: linear-gradient(180deg, #fff2b8 0%, var(--gold) 55%, #d98f12 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  align-items: center;
  gap: 16px;
  padding: 56px 56px 56px 60px;
  min-height: 460px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background:
    radial-gradient(620px 360px at 82% 40%, rgba(255, 200, 61, .13), transparent 70%),
    radial-gradient(520px 340px at 8% 110%, rgba(0, 231, 1, .13), transparent 70%),
    radial-gradient(420px 300px at 60% -20%, rgba(155, 107, 255, .14), transparent 70%),
    linear-gradient(135deg, #1b3141 0%, #12242f 55%, #0e1d27 100%);
  box-shadow: var(--shadow-stage);
  overflow: hidden;
  isolation: isolate;
  animation: fade-up .6s var(--ease-out) both;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(ellipse 70% 80% at 70% 50%, #000 0%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 80% at 70% 50%, #000 0%, transparent 75%);
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: conic-gradient(from var(--ang), transparent 0 68%, rgba(0, 231, 1, .85) 84%, rgba(255, 200, 61, .7) 92%, transparent 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  animation: edge-spin 9s linear infinite;
  pointer-events: none;
}

.hero-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; min-width: 0; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 14px 7px 12px;
  border-radius: 999px;
  background: rgba(0, 231, 1, .08);
  border: 1px solid rgba(0, 231, 1, .28);
  color: #8dffa0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.eyebrow-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 rgba(0, 231, 1, .6); animation: dot-pulse 2s ease-out infinite; }

.hero h1 {
  font-size: clamp(36px, 5.2vw, 64px);
  line-height: 1.04;
  font-weight: 800;
  letter-spacing: -.03em;
  color: var(--white);
}
.hero-lead { max-width: 480px; font-size: 17px; line-height: 1.55; color: var(--text); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 4px; }
.hero-cta .btn svg { width: 18px; height: 18px; }

.hero-facts { display: flex; flex-wrap: wrap; gap: 10px 32px; margin-top: 8px; padding-top: 22px; border-top: 1px solid rgba(47, 69, 83, .8); width: 100%; max-width: 520px; }
.hero-facts li { display: flex; flex-direction: column; gap: 2px; }
.hero-facts b { font-size: 24px; font-weight: 800; color: var(--white); letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.hero-facts span { font-size: 12px; font-weight: 600; color: var(--muted); letter-spacing: .02em; }

.hero-art-wrap { position: relative; display: grid; place-items: center; min-width: 0; align-self: stretch; }
.hero-art { width: 100%; max-width: 520px; height: auto; overflow: visible; filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .35)); }
.hero-art g[transform] > g, .hero-art g.hero-float { transform-box: fill-box; transform-origin: center; }
.hero-float { animation: hero-float 6s ease-in-out infinite; animation-delay: calc(var(--d, 0s) * -1); }
.hero-gem { filter: drop-shadow(0 0 28px rgba(255, 200, 61, .55)); }
.hero-art .orbit { transform-box: fill-box; transform-origin: center; animation: orbit 60s linear infinite; }
.mine-gem { filter: drop-shadow(0 0 8px rgba(0, 231, 1, .7)); }

/* ---------- sections ---------- */
.section { display: flex; flex-direction: column; gap: 18px; scroll-margin-top: 96px; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.section-head h2, .session-head h2 { font-size: 24px; font-weight: 800; letter-spacing: -.015em; color: var(--white); }
.section-sub { margin-top: 3px; font-size: 13px; font-weight: 500; color: var(--muted); }
.count-badge {
  flex: none;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--panel);
  border: 1px solid var(--line);
  color: var(--text);
  font-size: 12px;
  font-weight: 700;
}

/* ---------- tiles ---------- */
.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; perspective: 1200px; }

.tile {
  --accent: var(--green);
  --accent-rgb: 0, 231, 1;
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: 18px;
  background: var(--panel);
  border: 1px solid var(--line);
  overflow: hidden;
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(var(--lift, 0px));
  transition: transform .28s var(--ease-out), border-color .25s, box-shadow .35s;
  box-shadow: 0 18px 36px -22px rgba(0, 0, 0, .8);
  animation: fade-up .6s var(--ease-out) both;
  animation-delay: calc(var(--i, 0) * 70ms + 120ms);
  will-change: transform;
  -webkit-tap-highlight-color: transparent;
}
.tile--scratch { --accent: #ffc83d; --accent-rgb: 255, 200, 61; }
.tile--dice { --accent: #9b6bff; --accent-rgb: 155, 107, 255; }
.tile--mines { --accent: #00e701; --accent-rgb: 0, 231, 1; }
.tile--plinko { --accent: #ff8a3d; --accent-rgb: 255, 138, 61; }
.tile--limbo { --accent: #3dd9ff; --accent-rgb: 61, 217, 255; }
.tile--crash { --accent: #00e701; --accent-rgb: 0, 231, 1; }
.tile--blackjack { --accent: #ffc83d; --accent-rgb: 255, 200, 61; }
.tile--roulette { --accent: #ff4d6a; --accent-rgb: 255, 77, 106; }
.tile--slots { --accent: #ff6ad5; --accent-rgb: 255, 106, 213; }

.tile:hover, .tile:focus-visible {
  --lift: -8px;
  border-color: rgba(var(--accent-rgb), .75);
  box-shadow: 0 34px 60px -26px rgba(0, 0, 0, .9), 0 0 0 1px rgba(var(--accent-rgb), .35), 0 0 48px -12px rgba(var(--accent-rgb), .55);
}
.tile:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; border-radius: 18px; }
.tile:active { --lift: -3px; }

.tile-art {
  position: relative;
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-bottom: 1px solid rgba(47, 69, 83, .7);
  background:
    radial-gradient(circle at 50% 38%, rgba(var(--accent-rgb), .30), transparent 62%),
    linear-gradient(180deg, #223a49 0%, #14252f 100%);
}
.tile--mines .tile-art { background: radial-gradient(circle at 50% 45%, rgba(0, 231, 1, .20), transparent 65%), linear-gradient(180deg, #1c3a3a 0%, #12252d 100%); }
.tile--plinko .tile-art { background: radial-gradient(circle at 50% 30%, rgba(255, 138, 61, .26), transparent 62%), linear-gradient(180deg, #33322f 0%, #1a2128 100%); }
.tile--limbo .tile-art { background: radial-gradient(circle at 70% 25%, rgba(61, 217, 255, .28), transparent 60%), linear-gradient(180deg, #1b3649 0%, #10212e 100%); }
.tile--crash .tile-art { background: radial-gradient(circle at 75% 30%, rgba(0, 231, 1, .24), transparent 60%), linear-gradient(180deg, #13302a 0%, #0f1f28 100%); }
.tile--blackjack .tile-art { background: radial-gradient(circle at 50% 40%, rgba(255, 200, 61, .22), transparent 62%), linear-gradient(180deg, #17402d 0%, #0e2420 100%); }
.tile--slots .tile-art { background: radial-gradient(circle at 50% 40%, rgba(255, 106, 213, .26), transparent 62%), linear-gradient(180deg, #3a1f45 0%, #171d29 100%); }
.tile--roulette .tile-art { background: radial-gradient(circle at 50% 45%, rgba(255, 77, 106, .22), transparent 62%), linear-gradient(180deg, #3a1f2a 0%, #171d29 100%); }
.tile--dice .tile-art { background: radial-gradient(circle at 50% 35%, rgba(155, 107, 255, .32), transparent 62%), linear-gradient(180deg, #2a2f4f 0%, #151f33 100%); }
.tile-art::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, .09) 1px, transparent 1.4px);
  background-size: 16px 16px;
  -webkit-mask-image: radial-gradient(circle at 50% 45%, #000, transparent 75%);
  mask-image: radial-gradient(circle at 50% 45%, #000, transparent 75%);
  opacity: .8;
}
.art-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; transition: transform .45s var(--ease-out); }
.tile:hover .art-svg, .tile:focus-visible .art-svg { transform: scale(1.06); }
.art-svg .px-1 { transform: translate(calc(var(--mx, 0) * -5px), calc(var(--my, 0) * -5px)); transition: transform .25s var(--ease-out); }
.art-svg .px-2 { transform: translate(calc(var(--mx, 0) * 8px), calc(var(--my, 0) * 8px)); transition: transform .25s var(--ease-out); }
.art-svg g, .art-svg path, .art-svg circle { transform-box: fill-box; }
.art-svg .art-float { transform-origin: center; animation: art-float 5s ease-in-out infinite; animation-delay: calc(var(--d, 0s) * -1); }
.art-svg .art-pop { transform-origin: center; animation: art-pop 3.2s ease-in-out infinite; animation-delay: var(--d, 0s); }
.art-svg .twinkle { transform-origin: center; animation: twinkle 2.6s ease-in-out infinite; animation-delay: var(--d, 0s); }
.art-svg .plinko-ball { animation: ball-bob 2.4s ease-in-out infinite; transform-origin: center; }
.art-svg .bucket-hit { transform-origin: center bottom; animation: bucket-bump 2.4s ease-in-out infinite; }
.art-svg .dice-handle { animation: handle-slide 4s ease-in-out infinite; }
.art-svg .limbo-line { stroke-dasharray: 400; stroke-dashoffset: 0; animation: limbo-draw 4s ease-in-out infinite; }
.art-svg .limbo-head { transform-origin: center; animation: limbo-pulse 4s ease-in-out infinite; }

.tile-shine {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at var(--sx, 50%) var(--sy, 30%), rgba(255, 255, 255, .20), transparent 52%);
  opacity: 0;
  transition: opacity .3s;
}
.tile:hover .tile-shine { opacity: 1; }

.tile-play {
  position: absolute;
  left: 50%;
  bottom: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 16px 0 18px;
  border-radius: 999px;
  background: linear-gradient(180deg, #19ff1a 0%, var(--green) 60%, #00cf01 100%);
  color: var(--green-ink);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .02em;
  box-shadow: 0 10px 24px -8px rgba(0, 231, 1, .7), 0 1px 0 rgba(255, 255, 255, .5) inset;
  opacity: 0;
  transform: translate(-50%, 12px) scale(.9);
  transition: opacity .25s, transform .35s var(--ease-pop);
  pointer-events: none;
}
.tile-play svg { width: 16px; height: 16px; }
.tile:hover .tile-play, .tile:focus-visible .tile-play { opacity: 1; transform: translate(-50%, 0) scale(1); }

.tile-body { display: flex; flex-direction: column; gap: 14px; padding: 16px 16px 18px; background: linear-gradient(180deg, rgba(255, 255, 255, .02), transparent); }
.tile-title { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.tile-names { min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.tile-names h3 { font-size: 20px; font-weight: 800; letter-spacing: -.01em; color: var(--white); }
.tile-blurb { font-size: 12px; font-weight: 500; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile-go {
  flex: none;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--panel-2);
  border: 1px solid var(--line);
  color: var(--text);
  transition: background-color .2s, color .2s, transform .3s var(--ease-pop), border-color .2s, box-shadow .25s;
}
.tile-go svg { width: 16px; height: 16px; }
.tile:hover .tile-go, .tile:focus-visible .tile-go { background: var(--green); color: var(--green-ink); border-color: var(--green); transform: translateX(3px); box-shadow: 0 0 18px -2px rgba(0, 231, 1, .7); }

.tile-meta { display: grid; grid-template-columns: 1fr auto; gap: 8px 16px; margin: 0; padding-top: 12px; border-top: 1px solid rgba(47, 69, 83, .6); }
.tile-meta div { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.tile-meta dt { font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.tile-meta dd { margin: 0; font-size: 15px; font-weight: 800; color: var(--white); font-variant-numeric: tabular-nums; white-space: nowrap; }
.tile-meta div:first-child dd { color: var(--accent); }

/* ---------- session ---------- */
.card.session { padding: 22px 22px 20px; border-radius: 18px; display: flex; flex-direction: column; gap: 18px; background: linear-gradient(180deg, #1d303c 0%, var(--panel) 100%); }
.session-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.session-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.s-stat {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px 16px;
  min-width: 0;
  background: var(--bg-deep);
  border: 1px solid rgba(47, 69, 83, .8);
  border-radius: 12px;
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, .4);
}
.s-label { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.s-value { display: flex; align-items: center; gap: 8px; font-size: 24px; font-weight: 800; color: var(--white); font-variant-numeric: tabular-nums; min-width: 0; }
.s-value > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; transition: color .25s; }
.s-value .gem { width: 20px; height: 20px; }
.s-value .is-pos { color: var(--green); }
.s-value .is-neg { color: var(--red); }

.by-game { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.bg-item { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 0 14px; min-height: 44px; border-radius: 10px; background: rgba(33, 55, 67, .45); border: 1px solid rgba(47, 69, 83, .7); font-variant-numeric: tabular-nums; }
.bg-name { font-size: 13px; font-weight: 700; color: var(--text); }
.bg-val { font-size: 13px; font-weight: 800; color: var(--muted); }
.bg-item.is-pos .bg-val { color: var(--green); }
.bg-item.is-neg .bg-val { color: var(--red); }

/* ---------- how it works ---------- */
.how { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; counter-reset: none; position: relative; }
.how-step {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 24px 22px 24px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  transition: border-color .25s, transform .3s var(--ease-out);
}
.how-step:hover { border-color: #3d5767; transform: translateY(-3px); }
.how-step::after { content: ""; position: absolute; right: -40px; top: -40px; width: 140px; height: 140px; border-radius: 50%; background: radial-gradient(circle, rgba(0, 231, 1, .10), transparent 70%); pointer-events: none; }
.how-num {
  position: absolute;
  right: 18px;
  top: 6px;
  font-size: 68px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.04em;
  color: rgba(255, 255, 255, .05);
  pointer-events: none;
}
.how-ico { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; background: rgba(0, 231, 1, .09); border: 1px solid rgba(0, 231, 1, .28); color: var(--green); }
.how-ico svg { width: 24px; height: 24px; }
.how-step h3 { font-size: 18px; font-weight: 800; color: var(--white); margin-top: 6px; }
.how-step p { font-size: 14px; line-height: 1.55; color: var(--text); }

/* ---------- notice ---------- */
.notice {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 20px 22px;
  border-radius: 16px;
  background: linear-gradient(90deg, rgba(255, 200, 61, .09), rgba(26, 44, 56, .6) 60%);
  border: 1px solid rgba(255, 200, 61, .32);
}
.notice-ico { flex: none; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; background: rgba(255, 200, 61, .12); border: 1px solid rgba(255, 200, 61, .4); color: var(--gold); }
.notice-ico svg { width: 24px; height: 24px; }
.notice-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.notice-text h3 { font-size: 16px; font-weight: 800; color: var(--white); }
.notice-text p { font-size: 13.5px; line-height: 1.55; color: var(--text); }
.age-badge { flex: none; display: grid; place-items: center; min-width: 52px; height: 52px; border-radius: 50%; border: 2px solid var(--gold); color: var(--gold); font-weight: 800; font-size: 15px; }

/* ---------- keyframes ---------- */
@keyframes dot-pulse { 0% { box-shadow: 0 0 0 0 rgba(0, 231, 1, .55); } 70%, 100% { box-shadow: 0 0 0 9px rgba(0, 231, 1, 0); } }
@keyframes hero-float { 0%, 100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-9px) rotate(1.2deg); } }
@keyframes orbit { to { transform: rotate(360deg); } }
@keyframes art-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
@keyframes art-pop { 0%, 78%, 100% { transform: scale(1); } 86% { transform: scale(1.07); } }
@keyframes twinkle { 0%, 100% { opacity: .25; transform: scale(.7) rotate(0deg); } 50% { opacity: 1; transform: scale(1.1) rotate(20deg); } }
@keyframes ball-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes bucket-bump { 0%, 70%, 100% { transform: translateY(0); } 80% { transform: translateY(3px); } 90% { transform: translateY(-2px); } }
@keyframes handle-slide { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(26px); } }
@keyframes limbo-draw { 0% { stroke-dashoffset: 400; } 55%, 100% { stroke-dashoffset: 0; } }
@keyframes limbo-pulse { 0%, 45% { opacity: 0; transform: scale(.4); } 60% { opacity: 1; transform: scale(1.25); } 100% { opacity: 1; transform: scale(1); } }

/* ---------- responsive ---------- */
@media (max-width: 1099px) {
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tile .tile-art { aspect-ratio: 2 / 1; }
  .hero { padding: 44px 36px; }
}

@media (max-width: 899px) {
  .hero { grid-template-columns: 1fr; padding: 36px 28px 20px; min-height: 0; gap: 0; }
  .hero-art-wrap { max-width: 440px; width: 100%; margin: 0 auto; }
  .session-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .by-game { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 719px) {
  .lobby-page { gap: 40px; padding-top: 16px; }
  .hero { padding: 28px 20px 8px; border-radius: 18px; }
  .hero h1 { font-size: 36px; }
  .hero-lead { font-size: 15px; }
  .hero-cta { width: 100%; gap: 10px; flex-wrap: nowrap; }
  .hero-cta .btn { flex: 1 1 0; min-width: 0; padding: 0 10px; font-size: 15px; white-space: nowrap; gap: 6px; }
  .hero-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; padding-top: 16px; }
  .hero-facts b { font-size: 20px; }
  .hero-facts span { font-size: 11px; line-height: 1.3; }
  .section-head h2, .session-head h2 { font-size: 21px; }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .tile { grid-column: span 1; }
  .tile .tile-art { aspect-ratio: 1 / 1; }
  .tile-body { padding: 12px 12px 14px; gap: 10px; }
  .tile-names h3 { font-size: 17px; }
  .tile-blurb { display: none; }
  .tile-go { width: 32px; height: 32px; }
  .tile-meta { grid-template-columns: 1fr; gap: 6px; padding-top: 10px; }
  .tile-meta div { flex-direction: row; align-items: baseline; justify-content: space-between; gap: 8px; }
  .tile-meta dd { font-size: 14px; }
  .tile-play { display: none; }
  .card.session { padding: 18px 14px 16px; }
  .session-head { align-items: flex-start; }
  .s-value { font-size: 20px; }
  .s-stat { padding: 12px 12px; }
  .by-game { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .how { grid-template-columns: 1fr; }
  .notice { flex-wrap: wrap; align-items: flex-start; padding: 18px 16px; gap: 14px; }
  .notice-text { flex-basis: calc(100% - 64px); }
  .age-badge { display: none; }
}

@media (hover: none) {
  .tile-play { display: none; }
  .tile:hover { --lift: 0px; }
}

@media (max-width: 360px) {
  .hero h1 { font-size: 32px; }
}

@media (prefers-reduced-motion: reduce) {
  .tile, .tile:hover { transform: none !important; }
  .art-svg .px-1, .art-svg .px-2 { transform: none !important; }
}
