/* ===== Tokens ===== */
:root {
  --c-fire: #CC3300;
  --c-fire-2: #FF6600;
  --c-gold: #CC8800;
  --c-gold-2: #FFCC00;
  --c-amber: #FFAA00;
  --c-jade: #008844;
  --c-jade-2: #00CC66;
  --c-purple: #6600AA;
  --c-purple-2: #330066;
  --c-teal: #007788;
  --c-teal-2: #00AACC;
  --c-bg: #0A0614;
  --c-surface: #1A0A2E;
  --c-surface-2: #221038;
  --c-cream: #F5EED8;
  --c-stone: #665566;
  --c-line: rgba(255,170,0,.18);
  --c-line-strong: rgba(255,170,0,.35);
  --ease: cubic-bezier(.22,1,.36,1);
  --grad-fire: linear-gradient(135deg, #CC3300 0%, #FF6600 50%, #FFAA00 100%);
  --grad-gold: linear-gradient(135deg, #CC8800 0%, #FFAA00 50%, #FFCC00 100%);
  --grad-bg: linear-gradient(180deg, #0A0614 0%, #15082A 100%);
  --grad-purple: linear-gradient(135deg, #330066 0%, #6600AA 100%);
  --header-offset: 72px;
  --radius: 10px;
  --radius-lg: 16px;
  --shadow-glow: 0 0 28px rgba(255,102,0,.35);
  --shadow-card: 0 18px 40px rgba(0,0,0,.55);
}

/* ===== Reset & base ===== */
*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  overflow-x: clip;
  width: 100%; max-width: 100%;
  min-height: 100vh;
  display: flex; flex-direction: column;
  font-family: 'Lora', 'Iowan Old Style', 'Georgia', serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--c-cream);
  background: var(--c-bg);
  background-image:
    radial-gradient(ellipse at 20% 0%, rgba(102,0,170,.16) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 100%, rgba(204,51,0,.10) 0%, transparent 60%);
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; background: none; border: 0; color: inherit; }
main { flex: 1; }

h1, h2, h3, h4, h5, h6 {
  margin: 0 0 .6em;
  line-height: 1.18;
  font-family: 'Cinzel', 'Cinzel Decorative', 'Trajan Pro', serif;
  font-weight: 700;
  color: var(--c-cream);
  letter-spacing: .005em;
  overflow-wrap: break-word;
  word-break: break-word;
}
h1 { font-family: 'Cinzel Decorative', 'Cinzel', serif; font-size: clamp(34px, 5.5vw, 56px); }
h2 { font-size: clamp(26px, 3.4vw, 36px); }
h3 { font-size: clamp(18px, 2vw, 22px); }
h4 { font-size: 17px; }
p { margin: 0 0 1em; }
a { overflow-wrap: break-word; word-break: break-word; }
.mono { font-family: 'Space Mono', 'Roboto Mono', monospace; font-variant-numeric: tabular-nums; }

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}
.container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
@media (max-width: 520px) { .container { padding: 0 16px; } }

section { padding: 84px 0; }
@media (max-width: 820px) { section { padding: 60px 0; } }

.eyebrow {
  display: inline-block;
  font-family: 'Cinzel', serif; font-weight: 600;
  font-size: 12px; letter-spacing: .22em; text-transform: uppercase;
  color: var(--c-amber);
  margin-bottom: 14px;
}
.section-head { max-width: 760px; margin-bottom: 40px; }
.section-head__sub { color: var(--c-cream); opacity: .78; font-size: 17px; }

.text-gold { background: var(--grad-gold); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }
.text-fire { background: var(--grad-fire); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }

/* ===== Top notice ===== */
.top-notice {
  background: rgba(204,136,0,.10);
  border-bottom: 1px solid var(--c-line);
  padding: 8px 16px;
  text-align: center;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  color: var(--c-cream);
  letter-spacing: .03em;
}
.top-notice strong { color: var(--c-amber); }

/* ===== Header ===== */
.site-header {
  position: sticky; top: 0; z-index: 60;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: rgba(10,6,20,.78);
  border-bottom: 1px solid var(--c-line);
  overflow: visible;
}
.site-header__row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px;
  padding-block: 12px;
}
.brand {
  display: flex; align-items: center; gap: 12px;
  font-family: 'Cinzel Decorative', serif;
  letter-spacing: .02em;
}
.brand-mark {
  width: 42px; height: 42px;
  flex-shrink: 0;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name { font-size: 18px; font-weight: 700; color: var(--c-cream); letter-spacing: .04em; }
.brand-tagline { font-family: 'Inter', sans-serif; font-size: 11px; color: var(--c-stone); margin-top: 3px; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; }
@media (max-width: 520px) {
  .brand-tagline { letter-spacing: 0; }
}

.nav { display: flex; align-items: center; gap: 26px; }
.nav a {
  font-family: 'Inter', sans-serif;
  font-weight: 500; font-size: 14px;
  color: var(--c-cream);
  position: relative;
  padding: 6px 0;
  transition: color .2s var(--ease);
}
.nav a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: var(--grad-fire); transform: scaleX(0); transform-origin: left;
  transition: transform .35s var(--ease);
}
.nav a:hover { color: var(--c-amber); }
.nav a:hover::after, .nav a.is-active::after { transform: scaleX(1); }
.nav a.is-active { color: var(--c-amber); }

.lang-switch {
  display: inline-flex; align-items: center;
  border: 1px solid var(--c-line-strong);
  border-radius: 6px;
  overflow: hidden;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 600;
}
.lang-switch a, .lang-switch span {
  padding: 6px 10px;
  color: var(--c-cream);
  background: transparent;
  border-right: 1px solid var(--c-line);
  letter-spacing: .04em;
}
.lang-switch a:last-child, .lang-switch span:last-child { border-right: 0; }
.lang-switch .is-active {
  background: var(--c-amber); color: var(--c-bg);
}

.header-cta { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 20px;
  font-family: 'Cinzel', sans-serif;
  font-weight: 600; font-size: 14px; letter-spacing: .05em;
  border-radius: 6px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .12s var(--ease), background .2s var(--ease), border-color .2s var(--ease), box-shadow .2s var(--ease), color .2s var(--ease);
  text-align: center;
  -webkit-tap-highlight-color: transparent;
  -webkit-user-select: none; user-select: none;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn--fire {
  background: var(--grad-fire);
  color: #fff;
  box-shadow: var(--shadow-glow);
}
.btn--fire:hover { box-shadow: 0 0 36px rgba(255,102,0,.55); filter: brightness(1.06); }
.btn--gold {
  background: var(--grad-gold);
  color: var(--c-bg);
}
.btn--gold:hover { filter: brightness(1.06); }
.btn--ghost {
  background: transparent;
  border-color: var(--c-line-strong);
  color: var(--c-cream);
}
.btn--ghost:hover { border-color: var(--c-amber); color: var(--c-amber); }
.btn--block { width: 100%; }
.btn--lg { padding: 16px 28px; font-size: 16px; height: 52px; }

.burger {
  display: none;
  width: 44px; height: 44px;
  position: relative; z-index: 110;
  flex-shrink: 0;
  border-radius: 8px;
  background: transparent;
  border: 1px solid var(--c-line-strong);
  color: var(--c-amber);
  -webkit-tap-highlight-color: transparent;
  -webkit-user-select: none; user-select: none;
  touch-action: manipulation;
}
.burger span {
  position: absolute;
  left: 12px; right: 12px; height: 2px;
  background: var(--c-amber);
  border-radius: 2px;
  transition: transform .3s var(--ease), opacity .2s var(--ease), top .3s var(--ease);
}
.burger span:nth-child(1) { top: 15px; }
.burger span:nth-child(2) { top: 21px; }
.burger span:nth-child(3) { top: 27px; }
.burger[aria-expanded="true"] span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { top: 21px; transform: rotate(-45deg); }

@media (max-width: 1220px) {
  .burger { display: block; }
  .header-cta .btn { display: none; }
  .header-cta .lang-switch { display: none; }
  .header-cta { gap: 6px; }

  .nav {
    position: absolute;
    top: 100%; left: 0; right: 0;
    width: 100%; max-width: 100vw;
    max-height: calc(100dvh - var(--header-offset, 72px));
    z-index: 100;
    box-sizing: border-box;
    display: flex; flex-direction: column; align-items: stretch;
    gap: 0;
    padding: 16px 24px 28px;
    background: linear-gradient(180deg, #0A0614 0%, #1A0A2E 100%);
    border-top: 1px solid var(--c-line);
    box-shadow: 0 18px 40px rgba(0,0,0,.7);
    overflow-y: auto;
    overscroll-behavior: contain;
    transform: translateY(-12px);
    opacity: 0; visibility: hidden; pointer-events: none;
    transition: transform .3s var(--ease), opacity .25s var(--ease), visibility 0s linear .3s;
  }
  .nav[data-open="true"] {
    transform: translateY(0); opacity: 1; visibility: visible; pointer-events: auto;
    transition: transform .3s var(--ease), opacity .25s var(--ease), visibility 0s linear 0s;
  }
  .nav a {
    width: 100%; padding: 14px 0;
    font-size: 17px; text-align: left;
    border-bottom: 1px solid var(--c-line);
    font-family: 'Cinzel', serif;
  }
  .nav a::after { display: none; }
  .nav-mobile-actions {
    display: flex; flex-direction: column; gap: 10px;
    padding-top: 18px;
  }
  .nav-mobile-actions .btn { padding: 12px 16px; border-bottom: 0 !important; }
  .nav-mobile-actions .btn--fire { color: #fff !important; }
  .nav-mobile-actions .btn--ghost { color: var(--c-cream) !important; }
  .nav-mobile-actions .lang-switch {
    align-self: center;
    margin-top: 6px;
    font-size: 14px;
  }
  .nav-mobile-actions .lang-switch a,
  .nav-mobile-actions .lang-switch span { padding: 10px 18px; }
  body[data-nav-open="true"] .site-header {
    backdrop-filter: none; -webkit-backdrop-filter: none;
    background: var(--c-bg);
  }
}
@media (min-width: 1221px) {
  .nav-mobile-actions { display: none; }
}

/* ===== Hero ===== */
.hero {
  position: relative;
  padding: 96px 0 92px;
  overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 80% 30%, rgba(204,51,0,.25) 0%, transparent 55%),
    radial-gradient(ellipse at 30% 80%, rgba(102,0,170,.30) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}
.hero::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0;
  height: 3px;
  background: var(--grad-fire);
  z-index: 2;
}
.hero__inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px;
  align-items: center;
}
.hero__left { max-width: 620px; }
.hero h1 { line-height: 1.05; margin-bottom: 14px; }
.hero h1 .accent { background: var(--grad-fire); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }
.hero__sub { font-size: clamp(15px, 1.6vw, 18px); color: var(--c-cream); opacity: .82; margin-bottom: 28px; max-width: 580px; }
.hero__media {
  position: relative;
  display: grid; place-items: center;
}
.hero__media img {
  width: 100%; max-width: 560px;
  animation: floaty 8s ease-in-out infinite;
}
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}
.hero__disclaimer {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  color: var(--c-stone);
  margin: 18px 0 0;
}
@media (max-width: 980px) {
  .hero__inner { grid-template-columns: 1fr; gap: 32px; text-align: left; }
  .hero__media { order: -1; max-width: 340px; margin: 0 auto; }
  .hero__media img { max-width: 320px; }
}
@media (max-width: 820px) {
  .hero { padding: 48px 0 44px; }
}
@media (max-width: 520px) {
  .hero { padding: 32px 0 28px; }
}

/* ===== Hero CTA row ===== */
.hero__cta-row {
  display: flex; flex-wrap: wrap; gap: 12px;
  margin-top: 24px;
}

/* ===== Subscription zone (single, homepage pre-footer band) ===== */
.sub-zone {
  background:
    radial-gradient(ellipse at 20% 0%, rgba(204,51,0,.20) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 100%, rgba(102,0,170,.22) 0%, transparent 60%),
    linear-gradient(180deg, var(--c-surface) 0%, #0F051E 100%);
  border-top: 1px solid var(--c-line-strong);
  position: relative;
}
.sub-zone::before, .sub-zone::after {
  content: ''; position: absolute; left: 0; right: 0; height: 2px;
  background: var(--grad-fire);
}
.sub-zone::before { top: 0; }
.sub-zone::after  { bottom: 0; }
.sub-zone__inner {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px;
  align-items: center;
}
.sub-zone__copy h2 { font-family: 'Cinzel Decorative', serif; color: var(--c-amber); margin-bottom: 8px; }
.sub-zone__form {
  background: transparent;
  border: 0;
  padding: 0;
}
@media (max-width: 980px) {
  .sub-zone__inner { grid-template-columns: 1fr; gap: 28px; }
}

/* legacy alias kept for any reference */
.sub-card { background: var(--c-surface); border-radius: 14px; padding: 28px; }
.sub-card h3 { font-family: 'Cinzel Decorative', serif; color: var(--c-amber); font-size: 22px; margin: 0 0 6px; }
.sub-card {
  background: linear-gradient(160deg, rgba(26,10,46,.95) 0%, rgba(34,16,56,.95) 100%);
  border: 2px solid;
  border-image: linear-gradient(135deg, #CC8800, #FFAA00, #CC8800) 1;
  border-radius: 14px;
  padding: 28px 28px;
  position: relative;
  box-shadow: 0 0 50px rgba(255,170,0,.18);
  margin-top: 30px;
}
.sub-card::before, .sub-card::after {
  content: ''; position: absolute;
  width: 26px; height: 26px;
  border: 2px solid var(--c-amber);
  pointer-events: none;
}
.sub-card::before { top: -2px; left: -2px; border-right: 0; border-bottom: 0; }
.sub-card::after { bottom: -2px; right: -2px; border-left: 0; border-top: 0; }
.sub-card h3 {
  font-family: 'Cinzel Decorative', serif;
  color: var(--c-amber);
  font-size: 22px;
  margin: 0 0 6px;
}
.sub-card p.sub-card__lead {
  font-size: 14px;
  color: var(--c-cream);
  opacity: .85;
  margin: 0 0 18px;
}
#subscription-form { display: flex; flex-direction: column; gap: 12px; margin: 0; }
#sub-email {
  width: 100%;
  background: var(--c-bg);
  border: 2px solid var(--c-gold);
  border-radius: 6px;
  padding: 13px 14px;
  font: inherit;
  font-size: 15px;
  color: var(--c-cream);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
#sub-email::placeholder { color: rgba(245,238,216,.5); }
#sub-email:focus {
  outline: none;
  border-color: var(--c-amber);
  box-shadow: 0 0 0 3px rgba(255,170,0,.18);
}
#sub-email.is-error { border-color: var(--c-fire); box-shadow: 0 0 0 3px rgba(204,51,0,.25); }
.sub-form {
  width: 100%;
  height: 52px;
  background: var(--grad-fire);
  color: #fff;
  font-family: 'Cinzel', serif;
  font-weight: 600;
  font-size: 16px;
  letter-spacing: .05em;
  border: 0;
  border-radius: 6px;
  cursor: pointer;
  box-shadow: 0 0 20px rgba(255,102,0,.55);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  transition: filter .2s var(--ease), box-shadow .2s var(--ease), transform .12s var(--ease);
}
.sub-form:hover { filter: brightness(1.1); box-shadow: 0 0 32px rgba(255,102,0,.75); }
.sub-form:active { transform: translateY(1px); }
.sub-form[disabled] { opacity: .8; cursor: progress; }
.sub-card label.sub-consent {
  display: flex; align-items: flex-start; gap: 10px;
  font-family: 'Inter', sans-serif;
  font-size: 12px; color: var(--c-cream); opacity: .82;
  line-height: 1.45;
}
.sub-consent input { margin-top: 2px; accent-color: var(--c-amber); }
.sub-consent a { color: var(--c-amber); text-decoration: underline; text-underline-offset: 2px; }
.sub-card__status {
  margin-top: 10px;
  font-family: 'Cinzel Decorative', serif;
  font-style: italic;
  font-size: 13px;
  color: var(--c-amber);
  min-height: 18px;
}

/* ===== Game cards ===== */
.games-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.games-row--six {
  grid-template-columns: repeat(3, 1fr);
}
@media (max-width: 1100px) { .games-row, .games-row--six { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .games-row, .games-row--six { grid-template-columns: 1fr; } }

.game-card {
  background: linear-gradient(180deg, var(--c-surface) 0%, var(--c-surface-2) 100%);
  border: 1px solid var(--c-line);
  border-radius: 14px;
  overflow: hidden;
  display: flex; flex-direction: column;
  position: relative;
  box-shadow: var(--shadow-card);
  transition: transform .25s var(--ease), border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.game-card:hover { transform: translateY(-4px); border-color: var(--c-amber); box-shadow: 0 22px 50px rgba(255,170,0,.15); }
.game-card__media {
  aspect-ratio: 16 / 10;
  position: relative;
  background: var(--c-bg);
}
.game-card__media img { width: 100%; height: 100%; object-fit: cover; }
.game-card__media::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(10,6,20,.7) 100%);
}
.game-card__badge {
  position: absolute; top: 12px; left: 12px;
  background: rgba(10,6,20,.85);
  border: 1px solid var(--c-line-strong);
  border-radius: 999px;
  padding: 4px 10px;
  font-family: 'Cinzel', serif;
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--c-amber);
  z-index: 2;
}
.game-card__badge--free {
  background: rgba(0,136,68,.18);
  border-color: rgba(0,204,102,.4);
  color: var(--c-jade-2);
}
.game-card__body {
  padding: 18px 20px 22px;
  display: flex; flex-direction: column;
  gap: 8px;
  flex: 1;
}
.game-card__title {
  font-family: 'Cinzel Decorative', serif;
  font-size: 20px;
  color: var(--c-cream);
  margin: 0;
}
.game-card__text {
  margin: 0;
  flex: 1;
  font-size: 14px;
  color: var(--c-cream);
  opacity: .78;
}
.game-card__cta {
  margin-top: 8px;
}

.game-card.is-locked .game-card__media::before {
  content: '';
  position: absolute; inset: 0;
  background: url('/assets/img/ui/sleeping-dragon.avif') center/cover no-repeat,
              linear-gradient(180deg, rgba(10,6,20,.4) 0%, rgba(10,6,20,.85) 100%);
  background-blend-mode: multiply;
  z-index: 1;
}
.game-card.is-locked .game-card__media img { opacity: .35; filter: grayscale(.45); }
.game-card.is-locked .game-card__media::after {
  background: linear-gradient(180deg, rgba(10,6,20,.6) 0%, rgba(10,6,20,.95) 100%);
}
.game-card__lock {
  position: absolute;
  z-index: 3;
  inset: auto 16px 16px;
  background: rgba(10,6,20,.85);
  border: 1px solid var(--c-line-strong);
  border-radius: 8px;
  padding: 10px 12px;
  display: flex; align-items: center; gap: 10px;
  font-family: 'Cinzel', serif;
  font-size: 12.5px;
  color: var(--c-amber);
  letter-spacing: .04em;
}
.game-card__lock svg { width: 18px; height: 18px; color: var(--c-amber); flex-shrink: 0; }

/* Fire-unlock animation */
@keyframes fireUnlock {
  0%   { transform: scale(1); filter: brightness(1); }
  30%  { transform: scale(1.04); filter: brightness(1.6) saturate(1.4); box-shadow: 0 0 60px rgba(255,102,0,.9); }
  100% { transform: scale(1); filter: brightness(1); }
}
.game-card.is-unlocking { animation: fireUnlock 1.5s var(--ease); }

/* ===== Free / Locked section heads ===== */
.games-free .eyebrow { color: var(--c-jade-2); }
.games-locked .eyebrow { color: var(--c-amber); }
.games-teaser {
  margin-top: 26px;
  text-align: center;
  font-family: 'Cinzel Decorative', serif;
  font-style: italic;
  font-size: clamp(15px, 1.6vw, 18px);
  color: var(--c-cream);
  opacity: .85;
  max-width: 760px; margin-left: auto; margin-right: auto;
}
.games-locked .center-cta { margin-top: 28px; text-align: center; }

/* ===== Dragon Night countdown ===== */
.dn {
  position: relative;
  background:
    linear-gradient(180deg, rgba(10,6,20,.78) 0%, rgba(10,6,20,.94) 100%),
    url('/assets/img/ui/dragon-night.avif') center/cover no-repeat;
  border-block: 1px solid var(--c-line);
}
.dn__inner {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  gap: 18px;
}
.dn h2 { font-family: 'Cinzel Decorative', serif; }
.countdown {
  display: inline-flex; gap: 14px;
  margin-top: 4px;
  flex-wrap: wrap; justify-content: center;
  max-width: 100%;
}
.countdown__unit {
  background: rgba(255,170,0,.06);
  border: 1px solid var(--c-line-strong);
  border-radius: 10px;
  padding: 12px 16px;
  min-width: 78px;
  display: flex; flex-direction: column; align-items: center;
}
@media (max-width: 520px) {
  .countdown { gap: 8px; }
  .countdown__unit { min-width: 0; flex: 1 1 64px; padding: 10px 8px; }
}
.countdown__unit b {
  font-family: 'Space Mono', monospace;
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 700;
  color: var(--c-amber);
  line-height: 1;
}
.countdown__unit span {
  font-family: 'Inter', sans-serif;
  font-size: 10.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--c-cream);
  opacity: .65;
  margin-top: 6px;
}

/* ===== About Dora ===== */
.about-dora {
  background: linear-gradient(180deg, transparent 0%, rgba(102,0,170,.12) 100%);
}
.about-dora__inner {
  display: grid; grid-template-columns: 1fr 1.3fr; gap: 56px; align-items: center;
}
.about-dora__media {
  display: grid; place-items: center;
}
.about-dora__media img {
  max-width: 380px;
}
@media (max-width: 980px) {
  .about-dora__inner { grid-template-columns: 1fr; gap: 28px; }
  .about-dora__media img { max-width: 280px; }
}

/* ===== Why subscribe ===== */
.why {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.why-item {
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: 12px;
  padding: 22px 20px;
  display: flex; flex-direction: column; gap: 10px;
}
.why-item__icon {
  width: 46px; height: 46px;
  border-radius: 50%;
  background: rgba(255,170,0,.10);
  border: 1px solid var(--c-line-strong);
  display: grid; place-items: center;
  color: var(--c-amber);
}
.why-item__icon svg { width: 22px; height: 22px; }
.why-item__title { font-family: 'Cinzel', serif; font-size: 16px; color: var(--c-amber); margin: 0; }
.why-item__text { margin: 0; font-size: 14px; color: var(--c-cream); opacity: .8; }
@media (max-width: 980px) { .why { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .why { grid-template-columns: 1fr; } }

/* ===== Dragon Ranks ===== */
.ranks {
  display: grid; grid-template-columns: repeat(6, 1fr);
  gap: 14px;
}
.rank {
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: 12px;
  padding: 18px 14px;
  text-align: center;
  position: relative;
}
.rank__icon {
  width: 60px; height: 60px;
  margin: 0 auto 10px;
  border-radius: 50%;
  background: var(--grad-purple);
  display: grid; place-items: center;
  color: var(--c-amber);
}
.rank__icon svg { width: 32px; height: 32px; }
.rank--top .rank__icon { background: var(--grad-fire); }
.rank__name { font-family: 'Cinzel', serif; font-size: 14px; color: var(--c-cream); margin: 0 0 4px; }
.rank__coins { font-family: 'Space Mono', monospace; font-size: 12px; color: var(--c-amber); }
@media (max-width: 980px) { .ranks { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 520px) { .ranks { grid-template-columns: repeat(2, 1fr); } }

/* ===== Prophecies ===== */
.prophecies { background: linear-gradient(180deg, transparent 0%, rgba(204,51,0,.08) 100%); }
.prophecies-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
}
.prophecy-card {
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: 12px;
  padding: 22px 22px 20px;
  position: relative;
}
.prophecy-card--jp { border-color: var(--c-amber); box-shadow: 0 0 30px rgba(255,170,0,.18); }
.prophecy-card__tag {
  display: inline-block;
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--c-amber);
  margin-bottom: 10px;
}
.prophecy-card blockquote {
  font-family: 'Cinzel Decorative', serif;
  font-style: italic;
  font-size: 16px;
  color: var(--c-cream);
  margin: 0 0 8px;
  line-height: 1.5;
}
.prophecy-card cite {
  font-family: 'Cinzel Decorative', serif;
  font-style: italic;
  font-size: 14px;
  color: rgba(245,238,216,.6);
  display: block;
}
@media (max-width: 980px) { .prophecies-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .prophecies-grid { grid-template-columns: 1fr; } }

/* ===== Symbols grid ===== */
.symbols-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.sym {
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: 10px;
  padding: 18px 14px;
  text-align: center;
  display: flex; flex-direction: column; gap: 6px;
}
.sym--wild { border-color: var(--c-amber); }
.sym--bonus { border-color: var(--c-jade-2); }
.sym__tier {
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--c-amber);
}
.sym__emoji { font-size: 40px; line-height: 1; margin: 6px 0; }
.sym__name { font-family: 'Cinzel', serif; font-size: 14px; color: var(--c-cream); }
.sym__pay { font-family: 'Space Mono', monospace; font-size: 12px; color: rgba(245,238,216,.7); }
@media (max-width: 820px) { .symbols-grid { grid-template-columns: repeat(2, 1fr); } }

/* ===== Dragon Prophecy Numbers ===== */
.dpn { background: rgba(0,136,68,.05); border-block: 1px solid var(--c-line); }
.dpn .lb-table tbody td { font-size: 14px; }
.dpn .lb-table tbody td:first-child { font-family: 'Cinzel', serif; color: var(--c-amber); }

/* ===== Trust grid ===== */
.trust { background: linear-gradient(180deg, transparent 0%, rgba(102,0,170,.10) 100%); }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.trust-card {
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: 12px;
  padding: 22px 20px;
  text-align: center;
}
.trust-card__icon {
  width: 52px; height: 52px;
  margin: 0 auto 12px;
  background: rgba(255,170,0,.10);
  border: 1px solid var(--c-line-strong);
  border-radius: 50%;
  display: grid; place-items: center;
  color: var(--c-amber);
}
.trust-card__icon svg { width: 26px; height: 26px; }
.trust-card h3 { font-family: 'Cinzel', serif; font-size: 16px; color: var(--c-amber); margin: 0 0 8px; }
.trust-card p { margin: 0; font-size: 13.5px; color: rgba(245,238,216,.8); line-height: 1.5; }
@media (max-width: 980px) { .trust-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .trust-grid { grid-template-columns: 1fr; } }

/* ===== Page hero ===== */
.page-hero {
  padding: 88px 0 64px;
  border-bottom: 3px solid;
  border-image: var(--grad-fire) 1;
  background: linear-gradient(180deg, rgba(102,0,170,.15) 0%, transparent 100%);
}
.page-hero h1 { margin-bottom: 12px; }
.page-hero__sub { font-size: clamp(15px, 1.5vw, 18px); color: var(--c-cream); opacity: .8; max-width: 760px; }

/* ===== Generic content / prose ===== */
.prose { color: var(--c-cream); font-size: 16px; }
.prose h2, .prose h3 { color: var(--c-amber); margin-top: 1.6em; }
.prose h2:first-child, .prose h3:first-child { margin-top: 0; }
.prose ul, .prose ol { padding-left: 22px; margin: 0 0 1em; }
.prose ul li, .prose ol li { margin-bottom: .4em; }
.prose a { color: var(--c-amber); text-decoration: underline; text-underline-offset: 3px; }

.legal-box {
  background: transparent;
  color: var(--c-cream);
  padding: 56px 0;
  position: relative;
}
.legal-box h1 { font-family: 'Cinzel Decorative', serif; color: var(--c-amber); margin-bottom: 14px; }
.legal-box h2 { color: var(--c-amber); font-family: 'Cinzel', serif; margin-top: 1.8em; }
.legal-box h3 { color: var(--c-cream); font-family: 'Cinzel', serif; }
.legal-box p, .legal-box li { color: rgba(245,238,216,.82); }
.legal-box a { color: var(--c-amber); text-decoration: underline; text-underline-offset: 3px; }
.legal-box em { color: rgba(245,238,216,.65); }
.legal-box strong { color: var(--c-cream); }
.legal-box table { background: var(--c-surface); }
.legal-box table thead th { background: rgba(255,170,0,.06); color: var(--c-amber); }
.legal-box table tbody td { color: rgba(245,238,216,.85); border-bottom-color: var(--c-line); }

/* ===== Play page (game stub) ===== */
.play-shell {
  display: grid; grid-template-columns: 1fr;
  gap: 18px;
  padding: 36px 0 80px;
}
.play-machine {
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: 16px;
  padding: 28px;
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px; align-items: center;
}
.play-machine__visual { border-radius: 12px; overflow: hidden; aspect-ratio: 16/10; }
.play-machine__visual img { width: 100%; height: 100%; object-fit: cover; }
.play-machine h1 { font-family: 'Cinzel Decorative', serif; margin-bottom: 8px; }
.play-machine__theme { font-family: 'Inter', sans-serif; font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--c-amber); margin-bottom: 8px; }
.play-reels {
  display: grid; grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  margin: 20px 0;
}
.reel {
  aspect-ratio: 1;
  background: var(--c-bg);
  border: 1px solid var(--c-line-strong);
  border-radius: 8px;
  display: grid; place-items: center;
  font-size: clamp(20px, 6vw, 32px);
  color: var(--c-amber);
  position: relative;
  overflow: hidden;
  min-width: 0;
}
@media (max-width: 520px) {
  .play-reels { gap: 6px; margin: 14px 0; }
  .reel { border-radius: 6px; }
}
@media (max-width: 380px) {
  .play-reels { gap: 4px; }
}
.reel.spinning {
  animation: spinReel .4s linear infinite;
}
@keyframes spinReel { from { transform: translateY(-100%); opacity: 0; } 50% { opacity: 1; } to { transform: translateY(100%); opacity: 0; } }
.play-actions { display: flex; align-items: center; gap: 14px; margin-top: 12px; flex-wrap: wrap; }
.balance-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 14px;
  background: rgba(255,170,0,.08);
  border: 1px solid var(--c-line-strong);
  border-radius: 8px;
  font-family: 'Space Mono', monospace;
  font-weight: 700;
  color: var(--c-amber);
}
.bet-control {
  display: inline-flex; align-items: center; gap: 6px;
}
.bet-control button {
  width: 32px; height: 32px;
  border-radius: 6px;
  background: var(--c-surface-2);
  border: 1px solid var(--c-line-strong);
  color: var(--c-amber);
  font-weight: 700;
}
.bet-control input {
  width: 90px;
  text-align: center;
  padding: 7px 8px;
  background: var(--c-bg);
  border: 1px solid var(--c-line-strong);
  border-radius: 6px;
  color: var(--c-cream);
  font-family: 'Space Mono', monospace;
}
.play-locked {
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: 16px;
  padding: 60px 28px;
  margin-block: 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
@media (max-width: 520px) {
  .play-locked { padding: 36px 16px; margin-block: 24px; }
  .play-locked .btn { white-space: normal; padding: 12px 14px; font-size: 13px; max-width: 100%; }
  .play-machine { padding: 18px; gap: 20px; }
}
.play-locked::before {
  content: ''; position: absolute; inset: 0;
  background: url('/assets/img/ui/sleeping-dragon.avif') center/cover no-repeat;
  opacity: .25;
  filter: saturate(.6);
}
.play-locked > * { position: relative; z-index: 1; }
.play-locked h1 { font-family: 'Cinzel Decorative', serif; color: var(--c-amber); }
.play-locked p { max-width: 540px; margin: 0 auto 24px; color: var(--c-cream); opacity: .85; }

@media (max-width: 900px) {
  .play-machine { grid-template-columns: 1fr; }
}

/* Sticky disclaimer */
.play-disclaimer {
  position: sticky; bottom: 0;
  background: rgba(10,6,20,.95);
  border-top: 2px solid var(--c-amber);
  padding: 10px 16px;
  text-align: center;
  font-family: 'Inter', sans-serif;
  font-size: 11.5px;
  color: var(--c-cream);
  letter-spacing: .04em;
  z-index: 40;
}

/* ===== Footer ===== */
.site-footer {
  background: #06030E;
  color: rgba(245,238,216,.72);
  padding: 60px 0 28px;
  margin-top: auto;
  border-top: 3px solid;
  border-image: var(--grad-fire) 1;
}
.site-footer__cols {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255,170,0,.10);
}
.site-footer h2 {
  font-family: 'Cinzel', serif;
  font-size: 13px;
  color: var(--c-amber);
  letter-spacing: .14em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 9px; }
.site-footer ul a {
  font-family: 'Inter', sans-serif;
  font-size: 13.5px;
  color: rgba(245,238,216,.7);
  transition: color .2s var(--ease);
  display: inline-flex; align-items: center; gap: 6px;
}
.site-footer ul a:hover { color: var(--c-amber); }
.site-footer ul a svg { width: 13px; height: 13px; opacity: .55; }
.site-footer__brand { display: flex; flex-direction: column; gap: 12px; }
.site-footer__brand .brand-name { color: var(--c-cream); font-size: 19px; font-family: 'Cinzel Decorative', serif; letter-spacing: .03em; }
.site-footer__brand .brand-tagline { font-size: 11px; color: rgba(245,238,216,.78); letter-spacing: .04em; }
.site-footer__legal {
  padding-top: 22px;
  font-family: 'Inter', sans-serif;
  font-size: 11.5px;
  color: rgba(245,238,216,.55);
  line-height: 1.6;
}
.site-footer__legal p { margin: 0 0 10px; }
.site-footer__legal strong { color: var(--c-amber); }
@media (max-width: 980px) {
  .site-footer__cols { grid-template-columns: 1fr 1fr; gap: 28px; }
}
@media (max-width: 520px) {
  .site-footer__cols { grid-template-columns: 1fr; }
}

/* ===== Cookie banner ===== */
.cookie-banner {
  position: fixed; left: 16px; right: 16px; bottom: 16px;
  z-index: 70;
  background: var(--c-surface);
  border: 1px solid var(--c-line-strong);
  border-radius: 12px;
  padding: 16px 20px;
  box-shadow: 0 24px 60px rgba(0,0,0,.6);
  display: flex; align-items: center; gap: 16px;
  max-width: 760px; margin: 0 auto;
  transform: translateY(160%);
  opacity: 0;
  transition: transform .4s var(--ease), opacity .3s var(--ease);
}
.cookie-banner[data-show="true"] { transform: translateY(0); opacity: 1; }
.cookie-banner__text { font-size: 13px; color: var(--c-cream); opacity: .85; flex: 1; margin: 0; }
.cookie-banner .btn { flex-shrink: 0; }
@media (max-width: 520px) {
  .cookie-banner { flex-direction: column; align-items: stretch; gap: 10px; padding: 14px; }
}

/* ===== Age gate ===== */
.age-gate {
  position: fixed; inset: 0; z-index: 300;
  background: rgba(6,3,14,.96);
  display: grid; place-items: center;
  opacity: 0; pointer-events: none;
  transition: opacity .3s var(--ease);
}
.age-gate[data-show="true"] { opacity: 1; pointer-events: auto; }
.age-gate__box {
  background: var(--c-surface);
  border: 2px solid;
  border-image: var(--grad-gold) 1;
  border-radius: 14px;
  padding: 36px 32px;
  max-width: min(440px, calc(100vw - 32px));
  text-align: center;
  box-shadow: 0 0 70px rgba(255,170,0,.25);
}
.age-gate__box h2 {
  font-family: 'Cinzel Decorative', serif;
  color: var(--c-amber);
  font-size: 26px;
  margin-bottom: 8px;
}
.age-gate__box p { color: var(--c-cream); opacity: .85; font-size: 14px; margin-bottom: 20px; }
.age-gate__actions { display: flex; gap: 10px; flex-wrap: wrap; }
.age-gate__actions .btn { flex: 1 1 120px; min-width: 0; }
@media (max-width: 360px) {
  .age-gate__actions { flex-direction: column; }
  .age-gate__box { padding: 28px 20px; }
}

/* ===== Prophecy popup ===== */
.prophecy {
  position: fixed; right: 24px; bottom: 24px;
  z-index: 80;
  max-width: 280px;
  background: var(--c-surface);
  border: 1px solid var(--c-amber);
  border-radius: 12px;
  padding: 14px 16px 14px 56px;
  box-shadow: 0 0 28px rgba(255,170,0,.4);
  transform: translateY(20px) scale(.96);
  opacity: 0; pointer-events: none;
  transition: transform .3s var(--ease), opacity .25s var(--ease);
}
.prophecy[data-show="true"] { transform: translateY(0) scale(1); opacity: 1; }
.prophecy::before {
  content: '🐉';
  position: absolute; top: 50%; left: 14px;
  transform: translateY(-50%);
  font-size: 28px;
}
.prophecy__label {
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--c-amber);
  margin-bottom: 4px;
}
.prophecy__text {
  font-family: 'Cinzel Decorative', serif;
  font-style: italic;
  font-size: 14px;
  color: var(--c-cream);
}

/* ===== Toast (general) ===== */
.toast-root {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(6,3,14,.5);
  display: grid; place-items: center;
  opacity: 0; pointer-events: none;
  transition: opacity .25s var(--ease);
}
.toast-root[data-show="true"] { opacity: 1; pointer-events: auto; }
.toast {
  background: var(--c-surface);
  border: 1px solid var(--c-amber);
  border-radius: 14px;
  padding: 22px 26px;
  min-width: 280px; max-width: min(420px, calc(100vw - 32px));
  text-align: center;
  box-shadow: 0 24px 60px rgba(0,0,0,.6);
  transform: scale(.92);
  transition: transform .25s var(--ease);
}
.toast-root[data-show="true"] .toast { transform: scale(1); }
.toast__title { font-family: 'Cinzel Decorative', serif; color: var(--c-amber); font-size: 19px; margin-bottom: 6px; }
.toast__text { font-size: 14px; color: var(--c-cream); opacity: .9; margin: 0; }
.toast__icon {
  width: 52px; height: 52px;
  margin: 0 auto 10px;
  background: var(--grad-fire);
  border-radius: 50%;
  display: grid; place-items: center;
  color: #fff;
}
.toast__icon svg { width: 26px; height: 26px; }

/* ===== Center cta ===== */
.center-cta { text-align: center; margin-top: 28px; }

/* ===== Leaderboard ===== */
.lb-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: 12px;
  overflow: hidden;
  font-family: 'Inter', sans-serif;
}
.lb-table thead th {
  background: rgba(255,170,0,.06);
  color: var(--c-amber);
  font-family: 'Cinzel', serif;
  font-size: 13px;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid var(--c-line);
}
.lb-table tbody td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--c-line);
  font-size: 14px;
  color: var(--c-cream);
}
.lb-table tbody tr:last-child td { border-bottom: 0; }
.lb-table tbody td.coins { font-family: 'Space Mono', monospace; color: var(--c-amber); font-weight: 700; }
.lb-table-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 12px;
  border: 1px solid var(--c-line);
}
.lb-table-wrap .lb-table { border: 0; border-radius: 0; min-width: 100%; }
@media (max-width: 520px) {
  .lb-table-wrap .lb-table { min-width: 480px; }
  .lb-table thead th, .lb-table tbody td { padding: 10px 12px; font-size: 13px; }
}

/* ===== FAQ ===== */
.faq details {
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: 10px;
  padding: 16px 18px;
  margin-bottom: 12px;
}
.faq details[open] { border-color: var(--c-line-strong); }
.faq summary {
  font-family: 'Cinzel', serif;
  font-size: 16px;
  color: var(--c-amber);
  cursor: pointer;
  list-style: none;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--c-amber); font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: '−'; }
.faq details p { margin-top: 12px; color: var(--c-cream); opacity: .85; font-size: 14.5px; }

/* ===== Ontario block page ===== */
.geo-block {
  min-height: calc(100vh - 200px);
  display: grid; place-items: center;
  padding: 40px 24px;
  text-align: center;
}
.geo-block__box { max-width: 580px; }
.geo-block h1 { font-family: 'Cinzel Decorative', serif; color: var(--c-amber); }
.geo-block p { color: var(--c-cream); opacity: .85; }

/* ===== Chat widget (Oracle's Whisper) ===== */
.chat-fab {
  position: fixed; right: 22px; bottom: 22px;
  z-index: 90;
  min-width: 70px; height: 52px;
  padding: 0 8px;
  border-radius: 14px;
  background: var(--grad-fire);
  color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 14px 32px rgba(204,51,0,.45), 0 0 0 1px rgba(255,170,0,.45) inset;
  cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.chat-fab:hover { transform: translateY(-2px) scale(1.04); box-shadow: 0 18px 40px rgba(204,51,0,.55), 0 0 28px rgba(255,170,0,.45); }
.chat-fab:focus-visible { outline: 2px solid var(--c-amber); outline-offset: 3px; }
.chat-fab__label {
  font-family: 'Cinzel Decorative', 'Cinzel', serif;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.chat-fab__badge {
  position: absolute; top: -4px; right: -4px;
  min-width: 20px; height: 20px; padding: 0 5px;
  background: var(--c-jade-2); color: #0A0614;
  border-radius: 10px;
  font: 700 11px/20px 'Inter', sans-serif;
  text-align: center;
  box-shadow: 0 0 0 2px var(--c-bg);
}
.chat-fab[data-open="true"] .chat-fab__badge { display: none; }

.chat-panel {
  position: fixed; right: 22px; bottom: 92px;
  z-index: 91;
  width: min(360px, calc(100vw - 32px));
  max-height: min(560px, calc(100vh - 130px));
  background: var(--c-surface);
  border: 1px solid var(--c-line-strong);
  border-radius: 16px;
  box-shadow: 0 28px 60px rgba(0,0,0,.65), 0 0 30px rgba(255,170,0,.18);
  display: flex; flex-direction: column;
  transform: translateY(16px) scale(.96);
  opacity: 0; pointer-events: none;
  transition: transform .28s var(--ease), opacity .22s var(--ease);
  overflow: hidden;
}
.chat-panel[data-open="true"] { transform: translateY(0) scale(1); opacity: 1; pointer-events: auto; }

.chat-head {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px;
  background: var(--grad-purple);
  border-bottom: 1px solid var(--c-line-strong);
}
.chat-head__avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--grad-fire);
  display: grid; place-items: center;
  font-size: 22px;
  flex-shrink: 0;
  box-shadow: 0 0 18px rgba(255,170,0,.5);
}
.chat-head__meta { flex: 1; min-width: 0; }
.chat-head__name {
  font-family: 'Cinzel', serif;
  font-size: 15px;
  color: var(--c-amber);
  letter-spacing: .04em;
  line-height: 1.2;
}
.chat-head__status {
  font-family: 'Inter', sans-serif;
  font-size: 11.5px;
  color: var(--c-cream);
  opacity: .8;
  display: flex; align-items: center; gap: 6px;
  margin-top: 2px;
}
.chat-head__status::before {
  content: '';
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--c-jade-2);
  box-shadow: 0 0 8px var(--c-jade-2);
  animation: chatPulse 1.8s ease-in-out infinite;
}
@keyframes chatPulse { 0%, 100% { opacity: 1; } 50% { opacity: .4; } }
.chat-head__close {
  width: 32px; height: 32px;
  border-radius: 50%;
  display: grid; place-items: center;
  color: var(--c-cream);
  opacity: .75;
  transition: opacity .2s var(--ease), background .2s var(--ease);
}
.chat-head__close:hover { opacity: 1; background: rgba(255,255,255,.08); }
.chat-head__close svg { width: 18px; height: 18px; }

.chat-thread {
  flex: 1;
  padding: 14px 14px 6px;
  overflow-y: auto;
  display: flex; flex-direction: column; gap: 10px;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(102,0,170,.12) 0%, transparent 60%),
    var(--c-surface);
  scrollbar-width: thin;
  scrollbar-color: var(--c-amber) transparent;
}
.chat-thread::-webkit-scrollbar { width: 6px; }
.chat-thread::-webkit-scrollbar-thumb { background: rgba(255,170,0,.35); border-radius: 3px; }

.chat-msg {
  max-width: 82%;
  padding: 10px 13px;
  border-radius: 14px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  line-height: 1.45;
  word-wrap: break-word;
  overflow-wrap: break-word;
  animation: chatFade .3s var(--ease);
}
@keyframes chatFade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
.chat-msg--bot {
  align-self: flex-start;
  background: rgba(102,0,170,.22);
  border: 1px solid rgba(255,170,0,.18);
  color: var(--c-cream);
  border-bottom-left-radius: 4px;
}
.chat-msg--user {
  align-self: flex-end;
  background: var(--grad-fire);
  color: #fff;
  border-bottom-right-radius: 4px;
  box-shadow: 0 6px 16px rgba(204,51,0,.35);
}
.chat-msg__time {
  display: block;
  margin-top: 4px;
  font-size: 10.5px;
  opacity: .55;
  letter-spacing: .04em;
}

.chat-typing {
  align-self: flex-start;
  padding: 12px 14px;
  background: rgba(102,0,170,.22);
  border: 1px solid rgba(255,170,0,.18);
  border-radius: 14px;
  border-bottom-left-radius: 4px;
  display: inline-flex; gap: 4px;
}
.chat-typing span {
  width: 6px; height: 6px;
  background: var(--c-amber);
  border-radius: 50%;
  animation: chatDot 1.2s ease-in-out infinite;
}
.chat-typing span:nth-child(2) { animation-delay: .2s; }
.chat-typing span:nth-child(3) { animation-delay: .4s; }
@keyframes chatDot { 0%, 80%, 100% { transform: scale(.6); opacity: .4; } 40% { transform: scale(1); opacity: 1; } }

.chat-quick {
  padding: 0 14px 8px;
  display: flex; flex-wrap: wrap; gap: 6px;
  background: var(--c-surface);
}
.chat-quick__btn {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255,170,0,.08);
  border: 1px solid var(--c-line);
  color: var(--c-amber);
  transition: background .2s var(--ease), border-color .2s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.chat-quick__btn:hover { background: rgba(255,170,0,.18); border-color: var(--c-line-strong); }

.chat-form {
  display: flex; gap: 8px;
  padding: 10px 12px 12px;
  border-top: 1px solid var(--c-line);
  background: var(--c-surface-2);
}
.chat-form__input {
  flex: 1; min-width: 0;
  background: rgba(10,6,20,.6);
  border: 1px solid var(--c-line);
  border-radius: 10px;
  padding: 10px 12px;
  font: 14px/1.4 'Inter', sans-serif;
  color: var(--c-cream);
  outline: none;
  transition: border-color .2s var(--ease);
}
.chat-form__input:focus { border-color: var(--c-amber); }
.chat-form__input::placeholder { color: rgba(245,238,216,.4); }
.chat-form__send {
  width: 42px; height: 42px;
  border-radius: 10px;
  background: var(--grad-fire);
  color: #fff;
  display: grid; place-items: center;
  flex-shrink: 0;
  transition: transform .2s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.chat-form__send:hover { transform: scale(1.05); }
.chat-form__send:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.chat-form__send svg { width: 18px; height: 18px; }

@media (max-width: 520px) {
  .chat-fab { right: 16px; bottom: 16px; height: 46px; min-width: 80px; padding: 0 18px; }
  .chat-fab__label { font-size: 13px; }
  .chat-panel {
    right: 12px; left: 12px; bottom: 74px;
    width: auto;
    max-height: calc(100vh - 110px);
  }
}
