/* Frost Social Online Casino — Aurora Ice. Light minimalist, cool, airy. */

:root {
  --ice: #f2f8fb;
  --ice-deep: #e7f1f6;
  --surface: #ffffff;
  --ink: #102b3a;
  --ink-soft: #4a6373;
  --ink-faint: #7c93a0;
  --cyan: #3fd8d4;
  --cyan-deep: #1f9e9b;
  --violet: #8e7cff;
  --violet-deep: #6a55e0;
  --line: #dde9ef;
  --line-soft: #e9f1f5;
  --shadow: 0 1px 2px rgba(16, 43, 58, 0.04);
  --shadow-lift: 0 6px 22px rgba(16, 43, 58, 0.07);
  --gold: #e7b24c;
  --font-display: "Unbounded", "Trebuchet MS", sans-serif;
  --font-body: "Manrope", "Segoe UI", system-ui, sans-serif;
  --radius: 14px;
  --radius-sm: 10px;
  --wrap: 1140px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--ice);
  color: var(--ink);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--cyan-deep); text-decoration: none; }
a:hover { color: var(--violet-deep); }
img { max-width: 100%; display: block; }

.shell { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

h1, h2, h3 { font-family: var(--font-display); font-weight: 700; letter-spacing: -0.01em; color: var(--ink); }

/* ---------- aurora ambient layer ---------- */
.aurora-field {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}
.aurora-field span {
  position: absolute;
  width: 60vw;
  height: 60vw;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.16;
  animation: drift 26s ease-in-out infinite;
}
.aurora-field span:nth-child(1) { top: -20vw; left: -10vw; background: var(--cyan); }
.aurora-field span:nth-child(2) { bottom: -24vw; right: -8vw; background: var(--violet); animation-delay: -9s; }
@keyframes drift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(4vw, 3vw) scale(1.08); }
}

/* ---------- top bar ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(242, 248, 251, 0.82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.topbar .shell {
  display: flex;
  align-items: center;
  gap: 22px;
  height: 68px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
}
.logo:hover { color: var(--ink); }
.logo .mark { width: 34px; height: 34px; flex: none; }
.logo .word {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.18rem;
  letter-spacing: 0.02em;
  line-height: 1;
}
.logo .word small {
  display: block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.56rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-top: 4px;
}
.topnav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 22px;
  font-weight: 600;
  font-size: 0.9rem;
}
.topnav .link { color: var(--ink-soft); }
.topnav .link:hover { color: var(--ink); }

.purse {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 14px 6px 8px;
  font-weight: 800;
  font-size: 0.92rem;
  color: var(--ink);
  white-space: nowrap;
  box-shadow: var(--shadow);
}
.token {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #d6fffd, var(--cyan) 60%, var(--cyan-deep));
  box-shadow: inset 0 0 0 2px rgba(31, 158, 155, 0.35);
  flex: none;
}
.age-chip {
  width: 32px;
  height: 32px;
  flex: none;
  display: grid;
  place-items: center;
  border: 1.5px solid var(--violet);
  color: var(--violet-deep);
  border-radius: 50%;
  font-weight: 800;
  font-size: 0.7rem;
  font-family: var(--font-body);
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 700;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
  letter-spacing: 0.01em;
}
.btn:active { transform: scale(0.98); }
.btn-primary {
  background: var(--ink);
  color: var(--ice);
}
.btn-primary:hover { background: #1c3e50; color: var(--ice); box-shadow: var(--shadow-lift); }
.btn-accent {
  background: var(--cyan);
  color: var(--ink);
}
.btn-accent:hover { background: var(--cyan-deep); color: #fff; box-shadow: 0 6px 22px rgba(63, 216, 212, 0.3); }
.btn-quiet {
  background: var(--surface);
  border-color: var(--line);
  color: var(--ink);
}
.btn-quiet:hover { border-color: var(--cyan); color: var(--cyan-deep); }
.btn-lg { font-size: 1.05rem; padding: 14px 30px; }
.btn-md { font-size: 0.92rem; padding: 10px 20px; }
.btn[disabled] { opacity: 0.4; cursor: not-allowed; box-shadow: none; }

/* ---------- hero ---------- */
.hero { position: relative; padding: 80px 0 72px; }
.hero .shell {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 40px;
}
.hero-art {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 30%;
  opacity: 0.32;
  mask-image: radial-gradient(120% 90% at 70% 35%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(120% 90% at 70% 35%, #000 30%, transparent 75%);
  pointer-events: none;
}
.hero-copy { position: relative; }
.eyebrow {
  display: inline-block;
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cyan-deep);
  margin-bottom: 18px;
}
.hero h1 {
  font-size: clamp(2.3rem, 5vw, 3.7rem);
  line-height: 1.06;
  letter-spacing: -0.02em;
}
.hero h1 .glow {
  background: linear-gradient(100deg, var(--cyan-deep), var(--violet-deep));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero .lede {
  margin-top: 20px;
  font-size: 1.12rem;
  color: var(--ink-soft);
  max-width: 30em;
}
.hero .lede strong { color: var(--ink); font-weight: 800; }
.hero .cta-row { margin-top: 28px; display: flex; gap: 12px; flex-wrap: wrap; }
.fine {
  margin-top: 20px;
  font-size: 0.8rem;
  color: var(--ink-faint);
  font-weight: 600;
}
.hero-mascot {
  position: relative;
  justify-self: center;
  width: min(380px, 88%);
  filter: drop-shadow(0 20px 40px rgba(16, 43, 58, 0.16));
  animation: bob 6s ease-in-out infinite;
}
@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* ---------- reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.7s cubic-bezier(0.16,1,0.3,1), transform 0.7s cubic-bezier(0.16,1,0.3,1); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- section scaffold ---------- */
.band { padding: 72px 0; }
.band-head { margin-bottom: 36px; max-width: 40em; }
.band-head .eyebrow { margin-bottom: 12px; }
.band-head h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); line-height: 1.12; }
.band-head p { margin-top: 12px; color: var(--ink-soft); font-size: 1.02rem; }

/* ---------- lobby ---------- */
.lobby-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.slot-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.slot-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lift);
  border-color: var(--cyan);
}
.slot-card .art {
  aspect-ratio: 3 / 2;
  background: var(--ice-deep);
  background-size: cover;
  background-position: center;
}
.slot-card .body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px 18px;
}
.slot-card h3 { font-size: 1.04rem; letter-spacing: -0.01em; }
.slot-card .tag { margin-top: 3px; font-size: 0.78rem; color: var(--ink-faint); font-weight: 600; }

/* ---------- features (bento) ---------- */
.bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.cell {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 28px;
  box-shadow: var(--shadow);
}
.cell .glyph {
  width: 42px;
  height: 42px;
  margin-bottom: 18px;
  color: var(--cyan-deep);
}
.cell h3 { font-size: 1.08rem; margin-bottom: 8px; }
.cell p { color: var(--ink-soft); font-size: 0.96rem; }

/* ---------- daily bonus ---------- */
.daily {
  display: grid;
  grid-template-columns: 0.5fr 1.5fr;
  gap: 32px;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--shadow);
}
.daily img { width: min(220px, 100%); margin: 0 auto; }
.daily h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
.daily p { margin: 12px 0 22px; color: var(--ink-soft); }
#daily-state { margin-top: 14px; font-size: 0.86rem; font-weight: 700; color: var(--cyan-deep); }

/* ---------- compliance footer ---------- */
.footer {
  background: var(--ink);
  color: #c4d6df;
  padding: 52px 0 30px;
  font-size: 0.88rem;
}
.footer h3 { color: #fff; font-size: 0.96rem; margin-bottom: 12px; }
.age-banner {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(142, 124, 255, 0.12);
  border: 1px solid rgba(142, 124, 255, 0.35);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  margin-bottom: 36px;
  font-weight: 600;
  color: #e6ecf0;
}
.age-banner .age-chip { color: #c3b9ff; border-color: #8e7cff; }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 32px;
}
.footer p { color: #9fb4bf; line-height: 1.6; }
.footer ul { list-style: none; display: grid; gap: 9px; }
.footer ul a { color: #c4d6df; font-weight: 600; }
.footer ul a:hover { color: var(--cyan); }
.footer .copy {
  margin-top: 36px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #7c93a0;
  font-size: 0.82rem;
}

/* ---------- game page ---------- */
.game { padding: 40px 0 76px; }
.game-top {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 26px;
}
.game-top .back { font-weight: 700; font-size: 0.9rem; color: var(--ink-soft); }
.game-top .back:hover { color: var(--cyan-deep); }
.game-top h1 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); }

.cabinet {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(16px, 3vw, 28px);
  box-shadow: var(--shadow-lift);
}
.reel-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: clamp(6px, 1.2vw, 12px);
  background: var(--ice);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  padding: clamp(8px, 1.6vw, 14px);
}
.reel {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-sm);
  background: linear-gradient(180deg, #fff, var(--ice-deep));
  border: 1px solid var(--line-soft);
  aspect-ratio: 1 / 3;
}
.reel .strip {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  display: grid;
  will-change: transform;
}
.reel .cell {
  display: grid;
  place-items: center;
  padding: 9%;
}
.reel .cell img {
  width: 84%;
  height: 84%;
  object-fit: contain;
  filter: drop-shadow(0 3px 6px rgba(16, 43, 58, 0.1));
}
.reel.lit { animation: lit 0.9s ease 2; }
@keyframes lit {
  0%, 100% { box-shadow: inset 0 0 0 0 rgba(63, 216, 212, 0); }
  50% { box-shadow: inset 0 0 0 2px var(--cyan), 0 0 18px rgba(63, 216, 212, 0.4); }
}

.deck {
  margin-top: 20px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
}
.stake {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--ice);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
}
.stake .lbl { font-size: 0.66rem; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-faint); }
.stake button {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  font-weight: 800;
  font-size: 1.05rem;
  cursor: pointer;
  transition: background 0.16s ease, border-color 0.16s ease;
}
.stake button:hover { background: var(--ice-deep); border-color: var(--cyan); }
#stake-value { font-weight: 800; min-width: 72px; text-align: center; color: var(--cyan-deep); }
.payout {
  text-align: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1rem, 2.2vw, 1.4rem);
  color: var(--violet-deep);
  min-height: 1.5em;
}
.payout.flash { animation: flash 0.5s ease; }
@keyframes flash {
  0% { transform: scale(0.8); opacity: 0; }
  60% { transform: scale(1.12); }
  100% { transform: scale(1); opacity: 1; }
}

/* paytable */
.pays {
  margin-top: 32px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 26px;
  box-shadow: var(--shadow);
}
.pays h2 { font-size: 1.12rem; margin-bottom: 16px; }
.pays table { width: 100%; border-collapse: collapse; }
.pays th, .pays td { padding: 9px 10px; text-align: left; border-bottom: 1px solid var(--line-soft); font-size: 0.92rem; }
.pays th { color: var(--ink-faint); font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 700; }
.pays td { font-weight: 600; }
.pays img { width: 38px; height: 38px; object-fit: contain; }
.pays .note { margin-top: 14px; font-size: 0.8rem; color: var(--ink-faint); font-weight: 600; }

/* toast */
.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%) translateY(140%);
  background: var(--ink);
  color: var(--ice);
  font-weight: 700;
  font-size: 0.92rem;
  border-radius: 999px;
  padding: 13px 26px;
  box-shadow: var(--shadow-lift);
  transition: transform 0.34s cubic-bezier(0.2, 0.9, 0.3, 1.15);
  z-index: 90;
  max-width: 88vw;
  text-align: center;
}
.toast.show { transform: translateX(-50%) translateY(0); }

/* legal pages */
.legal { padding: 56px 0 84px; max-width: 760px; }
.legal h1 { font-size: 2rem; margin-bottom: 6px; }
.legal .stamp { color: var(--ink-faint); font-weight: 600; font-size: 0.85rem; margin-bottom: 30px; }
.legal h2 { font-size: 1.12rem; margin: 28px 0 8px; }
.legal p, .legal li { color: var(--ink-soft); margin-bottom: 10px; }
.legal ul { padding-left: 22px; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .hero .shell { grid-template-columns: 1fr; text-align: center; }
  .hero-mascot { order: -1; width: min(280px, 72%); }
  .hero .cta-row { justify-content: center; }
  .hero .lede { margin-left: auto; margin-right: auto; }
  .lobby-grid { grid-template-columns: repeat(2, 1fr); }
  .bento { grid-template-columns: 1fr; }
  .daily { grid-template-columns: 1fr; text-align: center; }
  .footer-grid { grid-template-columns: 1fr; }
  .deck { grid-template-columns: 1fr; justify-items: center; gap: 14px; }
}
@media (max-width: 560px) {
  .topnav { gap: 14px; }
  .topnav .link { display: none; }
  .lobby-grid { grid-template-columns: 1fr; }
}

/* language switcher (injected) */
.lang-switch { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 22px; font-weight: 800; font-size: 0.8rem; letter-spacing: 1px; }
.lang-switch a, .lang-switch .current { display: inline-block; padding: 8px 10px; color: inherit; opacity: 0.65; text-decoration: none; }
.lang-switch a:hover { opacity: 1; }
.lang-switch .current { opacity: 1; font-weight: 900; border-bottom: 2px solid currentColor; }
