/* ==========================================================
   VESSELS OF OLYMPUS — Quatro Casino pre-lander
   ========================================================== */

*, *::before, *::after { box-sizing: border-box; }

html, body {
  margin: 0; padding: 0; height: 100%;
  background: #0b0d11;
  overscroll-behavior: none;
}
body { -webkit-font-smoothing: antialiased; }
button { font: inherit; }
a { color: #e0bd6a; text-decoration: none; }
a:hover { color: #f6e5b0; }

:root {
  --gold: #e0bd6a;
  --gold-light: #f6e5b0;
  --gold-deep: #bd943a;
  --cyan: #6fc8ff;
  --ivory: #f1ece1;
  --ivory-bright: #fbf5e8;
  --muted: #a9a18d;
  --muted-dim: #948c79;
  --body-text: #b6ae9d;
  --font-display: Marcellus, Georgia, serif;
  --font-caps: 'Marcellus SC', Georgia, serif;
  --font-body: Barlow, system-ui, sans-serif;
}

/* ---------- Stage ---------- */
.stage {
  position: fixed; inset: 0;
  display: flex; flex-direction: column;
  overflow: hidden;
  font-family: var(--font-body);
  color: var(--ivory);
  background:
    radial-gradient(ellipse 90% 45% at 50% -8%, rgba(111,200,255,.16) 0%, transparent 60%),
    radial-gradient(ellipse 70% 40% at 12% 30%, rgba(224,189,106,.11) 0%, transparent 62%),
    radial-gradient(ellipse 70% 45% at 88% 74%, rgba(200,110,60,.14) 0%, transparent 62%),
    linear-gradient(178deg, #151821 0%, #0d1016 46%, #08090d 100%);
}

.stage-specks {
  position: absolute; inset: 0;
  pointer-events: none; opacity: .55;
  background-image:
    radial-gradient(circle at 22% 18%, rgba(224,189,106,.09) 0 2px, transparent 3px),
    radial-gradient(circle at 78% 62%, rgba(111,200,255,.09) 0 2px, transparent 3px),
    radial-gradient(circle at 42% 84%, rgba(224,189,106,.07) 0 2px, transparent 3px);
}

.motes { position: absolute; left: 0; right: 0; bottom: -6%; height: 120%; pointer-events: none; overflow: hidden; }
.mote { position: absolute; bottom: 0; border-radius: 50%; animation: vsMote 17s linear infinite; }
.mote-1 { left: 14%; width: 5px; height: 5px; background: rgba(224,189,106,.85); box-shadow: 0 0 10px rgba(224,189,106,.8); animation-duration: 15s; }
.mote-2 { left: 38%; width: 4px; height: 4px; background: rgba(111,200,255,.8);  box-shadow: 0 0 10px rgba(111,200,255,.8); animation-duration: 19s; animation-delay: 3s; }
.mote-3 { left: 63%; width: 5px; height: 5px; background: rgba(224,189,106,.7);  box-shadow: 0 0 10px rgba(224,189,106,.7); animation-duration: 17s; animation-delay: 7s; }
.mote-4 { left: 86%; width: 4px; height: 4px; background: rgba(111,200,255,.7);  box-shadow: 0 0 10px rgba(111,200,255,.7); animation-duration: 21s; animation-delay: 11s; }

.shell {
  position: relative;
  display: flex; flex-direction: column;
  height: 100%; width: 100%; max-width: 600px; margin: 0 auto;
  padding: max(8px, env(safe-area-inset-top)) 14px max(8px, env(safe-area-inset-bottom));
}

/* ---------- Header ---------- */
.site-header { flex: 0 0 auto; text-align: center; padding: 14px 0 4px; }

.logo-row { display: flex; align-items: center; justify-content: center; gap: 10px; }
.logo-row .rule { height: 1px; flex: 1; }
.logo-row .rule-l { background: linear-gradient(90deg, transparent, rgba(224,189,106,.5)); }
.logo-row .rule-r { background: linear-gradient(270deg, transparent, rgba(224,189,106,.5)); }
.logo-word { font-family: var(--font-caps); font-size: 17px; letter-spacing: .3em; color: var(--ivory); }
.logo-word.gold { color: var(--gold); }

.meander {
  height: 9px; margin: 7px auto 0; width: min(320px, 80%); opacity: .75;
  background-image: repeating-linear-gradient(90deg,
    rgba(224,189,106,.75) 0 2px, transparent 2px 6px,
    rgba(224,189,106,.75) 6px 8px, transparent 8px 17px);
  animation: vsDrift 9s ease-in-out infinite;
}

.page-title {
  margin: 8px 0 5px;
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(26px, 8vw, 38px); line-height: 1.05; letter-spacing: .05em;
  color: var(--ivory-bright); text-shadow: 0 0 30px rgba(111,200,255,.3);
}
.page-title span { color: var(--gold); }

.hint {
  flex: 0 0 auto; margin: 9px 0 0; text-align: center;
  font-size: 13px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
  color: var(--muted-dim); animation: vsPulse 2.6s ease-in-out infinite;
}

/* ---------- Seals-left pill ---------- */
.chances-bar { flex: 0 0 auto; display: flex; align-items: center; justify-content: center; margin: 10px 0 18px; }
.chances-pill {
  display: flex; align-items: center; gap: 11px;
  padding: 8px 20px; border: 1px solid rgba(224,189,106,.45); border-radius: 3px;
  background: linear-gradient(180deg, rgba(241,236,225,.08), rgba(0,0,0,.28));
}
.chances-label { font-size: 13px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: #b3ab95; }
.chances-count {
  font-family: var(--font-display); font-size: 24px; line-height: 1;
  color: var(--gold); min-width: 16px; text-align: center;
  transition: transform .25s ease;
}
.chances-count.bump { transform: scale(1.35); }

/* ---------- Grid ---------- */
.board {
  flex: 1 1 auto; min-height: 0; min-width: 0; width: 100%;
  container-type: size;
  display: flex; align-items: flex-start; justify-content: center; overflow: hidden;
}
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, 1fr);
  gap: clamp(6px, 2vw, 12px);
  width: min(100%, 100cqh);
  aspect-ratio: 1; margin: 0 auto;
}

.cell {
  position: relative; min-height: 0; min-width: 0; padding: 0;
  border: 1px solid rgba(224,189,106,.24); border-radius: 3px;
  background: linear-gradient(165deg, rgba(241,236,225,.085) 0%, rgba(241,236,225,.02) 42%, rgba(0,0,0,.32) 100%);
  cursor: pointer; overflow: hidden;
  -webkit-tap-highlight-color: transparent;
  transition: border-color .3s, box-shadow .3s;
}
.cell:hover { border-color: rgba(224,189,106,.8); box-shadow: 0 0 24px rgba(224,189,106,.2) inset, 0 0 18px rgba(224,189,106,.18); }
.cell:active { transform: scale(.96); }
.cell.is-open { cursor: default; }

.cell::before, .cell::after { content: ''; position: absolute; width: 10px; height: 10px; }
.cell::before { top: 4px; left: 4px; border-top: 1px solid rgba(224,189,106,.55); border-left: 1px solid rgba(224,189,106,.55); }
.cell::after { bottom: 4px; right: 4px; border-bottom: 1px solid rgba(224,189,106,.55); border-right: 1px solid rgba(224,189,106,.55); }

.cell-halo {
  position: absolute; inset: 0; pointer-events: none; display: none;
  background: radial-gradient(circle at 50% 52%, rgba(224,189,106,.4) 0%, rgba(111,200,255,.16) 40%, transparent 70%);
  animation: vsHalo 2s ease-in-out infinite;
}
.cell.is-ember .cell-halo, .cell.is-prize .cell-halo { display: block; }

.cell-art {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  transition: transform .4s ease, filter .4s ease, opacity .4s ease;
}
.cell-art img { width: 94%; height: 94%; object-fit: contain; pointer-events: none; transition: opacity .2s ease; }
.cell.is-shaking .cell-art { animation: vsShake .42s ease; }
.cell.is-dust  .cell-art { filter: brightness(.62) saturate(.5); opacity: .72; transform: scale(.9); }
.cell.is-ember .cell-art { filter: brightness(1.12); transform: scale(1.04); }
.cell.is-prize .cell-art { filter: brightness(1.18) saturate(1.15); transform: scale(1.08); }

/* ---------- Footer ---------- */
.tagline {
  flex: 0 0 auto; margin: 18px 0 6px; text-align: center;
  font-size: 14px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--muted);
}
.legal { flex: 0 0 auto; margin: 0; text-align: center; font-size: 11px; letter-spacing: .06em; color: rgba(241,236,225,.35); }

/* ==========================================================
   MODALS
   ========================================================== */
.overlay {
  position: fixed; inset: 0; z-index: 60;
  display: flex; align-items: center; justify-content: center;
  padding: 14px; background: rgba(4,5,7,.86);
  backdrop-filter: blur(7px);
  animation: vsFade .3s ease both;
}
.overlay[hidden] { display: none; }
.overlay-locked { z-index: 70; padding: 12px; background: rgba(4,5,7,.92); backdrop-filter: blur(8px); }

.card {
  position: relative; width: 100%; max-width: 420px; max-height: 94dvh; overflow-y: auto;
  padding: 26px 22px 20px; text-align: center;
  border: 1px solid rgba(224,189,106,.55); border-radius: 4px;
  background: linear-gradient(170deg, #1c1f28 0%, #111420 58%, #0b0d11 100%);
  box-shadow: 0 0 70px rgba(224,189,106,.16), 0 30px 90px rgba(0,0,0,.8);
  animation: vsRise .4s cubic-bezier(.17,.89,.32,1.28) both;
}
.card-topline { position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, transparent, var(--gold), transparent); }

.card-plain { max-width: 400px; border-color: rgba(241,236,225,.2); background: linear-gradient(170deg, #1c1f28, #0b0d11); box-shadow: 0 30px 90px rgba(0,0,0,.8); }
.card-near  { max-width: 410px; padding: 24px 22px 20px; border-color: rgba(111,200,255,.5); background: linear-gradient(170deg, #141d28, #101420 55%, #0b0d11); box-shadow: 0 0 60px rgba(111,200,255,.16), 0 30px 90px rgba(0,0,0,.8); }
.card-jackpot { max-width: 440px; max-height: 96dvh; padding: 22px 20px 20px; border-color: rgba(224,189,106,.7); background: linear-gradient(170deg, #221f18 0%, #111420 55%, #0b0d11 100%); box-shadow: 0 0 80px rgba(224,189,106,.22), 0 30px 90px rgba(0,0,0,.85); }

.badge {
  display: inline-block; margin-bottom: 14px; padding: 6px 16px;
  font-size: 12px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase;
  color: #12100a; background: linear-gradient(180deg, var(--gold-light), var(--gold)); border-radius: 3px;
}
.badge-green { margin-bottom: 12px; font-size: 12.5px; letter-spacing: .2em; color: #0b0d11; background: linear-gradient(180deg, #9fe0b4, #4fae6c); }

.card-art { margin: 0 auto 12px; width: 84px; height: 84px; animation: vsFloat 3.4s ease-in-out infinite; }
.card-art img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 0 18px rgba(111,200,255,.45)); }
.card-art-near { width: 72px; height: 72px; margin-bottom: 8px; animation: vsBreathe 2.4s ease-in-out infinite; }
.card-art-near img { filter: drop-shadow(0 0 20px rgba(111,200,255,.6)); }
.card-art-win { width: 104px; height: 104px; margin-bottom: 6px; animation: vsBreathe 2.6s ease-in-out infinite; }
.card-art-win img { filter: drop-shadow(0 0 26px rgba(224,189,106,.65)); }

.card-title { margin: 0 0 8px; font-family: var(--font-display); font-weight: 400; font-size: 29px; line-height: 1.15; letter-spacing: .04em; color: var(--ivory-bright); }
.card-title-lg { margin: 0 0 14px; font-size: 30px; letter-spacing: .04em; color: var(--ivory); }
.card-title-near { margin: 0 0 14px; font-size: 28px; line-height: 1.2; }
.card-title-win { margin: 0 0 6px; font-size: clamp(26px, 7.4vw, 32px); letter-spacing: .04em; color: var(--gold); text-shadow: 0 0 30px rgba(224,189,106,.45); }
.card-title-sm { margin: 0 0 10px; font-size: 25px; line-height: 1.25; letter-spacing: .02em; }

.eyebrow { margin: 0 0 4px; font-size: 13px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.eyebrow-dim { margin: 0 0 8px; letter-spacing: .24em; color: var(--muted-dim); }
.eyebrow-cyan { margin: 0 0 6px; letter-spacing: .24em; color: var(--cyan); }

.divider { margin: 14px auto; width: 66%; height: 1px; background: linear-gradient(90deg, transparent, rgba(224,189,106,.65), transparent); }

.card-body { margin: 0 0 20px; font-size: 18px; line-height: 1.6; color: #d6cfc0; text-wrap: pretty; }
.card-body strong { color: var(--gold-light); }
.card-body-muted { margin: 0 0 22px; font-size: 18px; line-height: 1.6; color: var(--body-text); }

/* Buttons */
.btn {
  position: relative; overflow: hidden; display: block; width: 100%;
  padding: 18px; font-size: 17px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: #140d05; border: none; border-radius: 3px;
  background: linear-gradient(180deg, var(--gold-light), var(--gold) 55%, var(--gold-deep));
  box-shadow: 0 6px 26px rgba(224,189,106,.38); cursor: pointer;
}
.btn:hover { filter: brightness(1.08); }
.btn:active { transform: translateY(1px); }
.btn-lg { padding: 20px; font-size: 19px; letter-spacing: .16em; box-shadow: 0 6px 30px rgba(224,189,106,.45); }
.btn-claim { padding: 20px; font-size: 18px; letter-spacing: .12em; box-shadow: 0 6px 30px rgba(224,189,106,.48); }
.btn-ghost {
  display: block; width: 100%; padding: 17px;
  font-size: 16px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--ivory-bright); border: 1px solid rgba(224,189,106,.6); border-radius: 3px;
  background: rgba(224,189,106,.1); cursor: pointer;
}
.btn-ghost:hover { background: rgba(224,189,106,.2); }
.sheen {
  position: absolute; top: 0; left: -70%; width: 45%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.45), transparent);
  animation: vsSheen 2.8s ease-in-out infinite 1s;
}

.card-note { margin: 12px 0 0; font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: rgba(241,236,225,.4); }
.card-note-plain { margin: 12px 0 0; font-size: 13px; letter-spacing: .04em; color: rgba(241,236,225,.42); text-transform: none; font-weight: 400; }
.seals-note { margin: 14px 0 0; font-size: 13px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: rgba(241,236,225,.45); }
.seals-note strong { color: var(--gold); }

/* Reward panels */
.reward-near { margin: 0 0 18px; padding: 16px 12px; border: 1px solid rgba(224,189,106,.5); border-radius: 3px; background: rgba(224,189,106,.09); }
.reward-near-title { margin: 0 0 4px; font-family: var(--font-display); font-size: 23px; letter-spacing: .03em; color: var(--gold); }
.reward-near-sub { margin: 0; font-size: 15px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: #d6cfc0; }

.reward-win {
  margin: 0 0 16px; padding: 18px 12px;
  border: 1px solid rgba(224,189,106,.55); border-radius: 3px;
  background: linear-gradient(180deg, rgba(224,189,106,.14), rgba(224,189,106,.04));
  animation: vsGlow 2.6s ease-in-out infinite;
}
.reward-win-big { margin: 0 0 5px; font-family: var(--font-display); font-size: clamp(25px, 6.8vw, 31px); line-height: 1.1; letter-spacing: .02em; color: var(--gold-light); }
.reward-win-mid { margin: 0 0 9px; font-size: 16px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--ivory); }
.reward-win-rule { margin: 0 auto 9px; width: 50%; height: 1px; background: rgba(224,189,106,.4); }
.reward-win-jack { margin: 0; font-size: 14.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: #ea9d5f; }

.prize-list {
  margin: 0 0 16px; padding: 18px; text-align: left;
  border: 1px solid rgba(224,189,106,.55); border-radius: 3px;
  background: linear-gradient(180deg, rgba(224,189,106,.15), rgba(224,189,106,.05));
  animation: vsGlow 2.6s ease-in-out infinite;
}
.prize-list p { margin: 0 0 11px; padding-bottom: 11px; border-bottom: 1px solid rgba(241,236,225,.14); font-family: var(--font-display); font-size: 22px; line-height: 1.2; letter-spacing: .02em; color: var(--gold-light); }
.prize-list p:last-child { margin: 0; padding: 0; border-bottom: none; }

/* ---------- Quiz ---------- */
.quiz-screen { animation: vsSlide .35s ease both; }
.quiz-screen[hidden] { display: none; }

.progress { width: 100%; height: 4px; margin-bottom: 14px; border-radius: 4px; background: rgba(241,236,225,.12); overflow: hidden; }
.progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--cyan), var(--gold)); transition: width .4s ease; }

.step-label { margin: 0 0 10px; font-size: 13px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }
.question { margin: 0 0 18px; font-family: var(--font-display); font-size: 21px; line-height: 1.45; color: var(--ivory-bright); text-wrap: pretty; }
.question-intro { margin: 0 0 10px; font-size: 16.5px; line-height: 1.55; color: #d6cfc0; text-wrap: pretty; }
.question-intro strong { color: var(--gold-light); }

.rtp-note { margin: 0 0 16px; padding: 14px 15px; text-align: left; border-left: 3px solid var(--cyan); background: rgba(241,236,225,.05); }
.rtp-note p { margin: 0 0 8px; font-size: 16px; line-height: 1.55; color: #d6cfc0; }
.rtp-note p:last-child { margin: 0; }
.rtp-note strong { color: var(--gold-light); }

.options { display: flex; flex-direction: column; gap: 10px; }
.opt {
  width: 100%; padding: 16px 18px; text-align: left;
  font-size: 16.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  color: var(--ivory-bright);
  border: 1px solid rgba(241,236,225,.18); border-radius: 3px;
  background: rgba(241,236,225,.05); cursor: pointer;
  transition: background .18s, border-color .18s;
}
.opt:hover { background: rgba(224,189,106,.16); border-color: rgba(224,189,106,.65); }
.opt-primary { padding: 17px 18px; font-size: 17px; letter-spacing: .08em; border-color: rgba(224,189,106,.45); background: rgba(224,189,106,.1); }
.opt-primary:hover { background: rgba(224,189,106,.2); border-color: rgba(224,189,106,.85); }
.opt-quiet { color: #a49b89; border-color: rgba(241,236,225,.16); background: rgba(241,236,225,.04); }
.opt-quiet:hover { background: rgba(241,236,225,.1); border-color: rgba(241,236,225,.16); }

/* ---------- Testimonial ---------- */
.testimonial { margin: 0 0 14px; padding: 16px 16px 14px; text-align: left; border: 1px solid rgba(224,189,106,.3); border-radius: 3px; background: rgba(241,236,225,.05); }
.testimonial-head { display: flex; align-items: center; gap: 11px; margin-bottom: 9px; }
.testimonial-photo { flex: 0 0 auto; width: 52px; height: 52px; border-radius: 50%; overflow: hidden; border: 1px solid rgba(224,189,106,.55); box-shadow: 0 0 14px rgba(224,189,106,.2); }
.testimonial-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.testimonial-meta { display: flex; flex-direction: column; gap: 2px; }
.stars { font-size: 17px; letter-spacing: .06em; color: var(--gold); }
.verified { font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.testimonial-quote { margin: 0 0 8px; font-size: 17px; line-height: 1.55; color: var(--ivory); text-wrap: pretty; }
.testimonial-name { margin: 0; font-size: 14px; font-weight: 600; letter-spacing: .08em; color: var(--muted); }

.trust-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 18px; }
.trust { padding: 8px 12px; font-size: 13.5px; font-weight: 600; letter-spacing: .04em; border-radius: 3px; }
.trust-green { color: #9fe0b4; border: 1px solid rgba(120,210,150,.4); background: rgba(120,210,150,.09); }
.trust-gold { color: var(--gold-light); border: 1px solid rgba(224,189,106,.4); background: rgba(224,189,106,.09); }

.fun-question { margin: 0 0 18px; font-family: var(--font-display); font-size: 26px; line-height: 1.3; color: var(--ivory-bright); text-wrap: pretty; }

.result-sub { margin: 0 0 14px; font-size: 14px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.result-body { margin: 0 0 18px; font-size: 16.5px; line-height: 1.6; color: var(--body-text); }

/* ---------- Animations ---------- */
@keyframes vsRise   { from { opacity: 0; transform: translateY(14px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes vsFade   { from { opacity: 0 } to { opacity: 1 } }
@keyframes vsSlide  { from { opacity: 0; transform: translateX(16px); } to { opacity: 1; transform: none; } }
@keyframes vsPulse  { 0%,100% { opacity: .5 } 50% { opacity: 1 } }
@keyframes vsGlow   { 0%,100% { box-shadow: 0 0 0 1px rgba(224,189,106,.35), 0 0 18px rgba(224,189,106,.10); } 50% { box-shadow: 0 0 0 1px rgba(224,189,106,.75), 0 0 34px rgba(224,189,106,.3); } }
@keyframes vsShake  { 0%,100% { transform: translateX(0) rotate(0) } 20% { transform: translateX(-5px) rotate(-3deg) } 40% { transform: translateX(5px) rotate(3deg) } 60% { transform: translateX(-4px) rotate(-2deg) } 80% { transform: translateX(4px) rotate(2deg) } }
@keyframes vsSheen  { 0% { left: -70% } 100% { left: 140% } }
@keyframes vsFloat  { 0%,100% { transform: translateY(0) } 50% { transform: translateY(-6px) } }
@keyframes vsBreathe{ 0%,100% { transform: scale(1) } 50% { transform: scale(1.045) } }
@keyframes vsHalo   { 0%,100% { opacity: .35; transform: scale(.94) } 50% { opacity: .95; transform: scale(1.06) } }
@keyframes vsMote   { 0% { transform: translateY(0) scale(1); opacity: 0 } 15% { opacity: .75 } 85% { opacity: .5 } 100% { transform: translateY(-70vh) scale(.7); opacity: 0 } }
@keyframes vsDrift  { 0%,100% { background-position: 0 0 } 50% { background-position: 34px 0 } }
