/* Rosie Mae x Gamdom — dark cinematic launch. Built from css-parts/ (01-base, 02-hero, 03-sections). */
/* ==========================================================================
   01 BASE: tokens, fonts, reset, utilities, type, buttons, nav, footer, dock
   ========================================================================== */

:root{color-scheme:dark;--bg:#050907;--bg-2:#09120c;--line:rgba(255,255,255,.1);--line-2:rgba(255,255,255,.18);--text:#eef3ef;--muted:#a0aba4;--dim:#7f8a83;--accent:#01d370;--accent-hi:#2ef08f;--accent-ink:#03140a;--green-deep:#0a5a2c;--radius:14px;--wrap:1240px;--gutter:clamp(16px,4vw,48px);--nav-h:72px;--f-display:"Archivo",system-ui,sans-serif;--f-body:"Hanken Grotesk",system-ui,sans-serif;--ease:cubic-bezier(.16,1,.3,1)}

@font-face{
  font-family:"Archivo";
  src:url("assets/fonts/Archivo-normal.woff2") format("woff2");
  font-weight:100 900;
  font-stretch:62% 125%;
  font-style:normal;
  font-display:swap;
}
@font-face{
  font-family:"Hanken Grotesk";
  src:url("assets/fonts/HankenGrotesk-normal.woff2") format("woff2");
  font-weight:400 700;
  font-style:normal;
  font-display:swap;
}

/* ---------- Reset / base ---------- */
*,*::before,*::after{box-sizing:border-box}
html{
  scroll-behavior:smooth;
  -webkit-text-size-adjust:100%;
  text-size-adjust:100%;
  scrollbar-color:#1d3a28 var(--bg);
}
body{
  margin:0;
  background:var(--bg);
  color:var(--text);
  font:400 1.0625rem/1.6 var(--f-body);
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
  text-rendering:optimizeLegibility;
}
img{display:block;max-width:100%;height:auto}
svg{flex-shrink:0}
a{color:inherit}
button,input{font:inherit;color:inherit}
::selection{background:var(--accent);color:var(--accent-ink)}
:focus-visible{outline:2px solid var(--accent);outline-offset:3px}

@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
}

/* ---------- Utilities ---------- */
.sprite{display:none}
.sr-only{
  position:absolute;width:1px;height:1px;padding:0;margin:-1px;
  overflow:hidden;clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap;border:0;
}
.skip{
  position:absolute;left:12px;top:12px;z-index:100;
  padding:10px 16px;border-radius:999px;
  background:var(--accent);color:var(--accent-ink);
  font-weight:600;text-decoration:none;
  transform:translateY(-200%);
}
.skip:focus,.skip:focus-visible{transform:none}
.wrap{max-width:var(--wrap);margin-inline:auto;padding-inline:var(--gutter)}

/* ---------- Type ---------- */
.display{
  margin:0;
  font-family:var(--f-display);
  font-stretch:125%;
  font-weight:800;
  text-transform:uppercase;
  line-height:.92;
  letter-spacing:-.02em;
  text-wrap:balance;
}
.display em{display:block;font-style:normal;color:var(--accent)}

.h2{
  margin:0 0 .6em;
  font-family:var(--f-display);
  font-stretch:125%;
  font-weight:800;
  text-transform:uppercase;
  font-size:clamp(2rem,4vw,3.25rem);
  line-height:1;
  letter-spacing:-.01em;
}

.lede{
  font-size:clamp(1.08rem,1.4vw,1.25rem);
  color:var(--muted);
  max-width:46ch;
}
.lede strong{color:var(--text);font-weight:600}

/* ---------- Links ---------- */
.link{
  display:inline-flex;align-items:center;gap:8px;
  color:var(--text);
  text-decoration:underline;
  text-decoration-thickness:1px;
  text-underline-offset:5px;
  text-decoration-color:var(--line-2);
  transition:text-decoration-color .25s;
}
.link:hover{text-decoration-color:var(--accent)}
.link svg{width:14px;height:14px;fill:currentColor}

/* ---------- Buttons ---------- */
.btn{
  display:inline-flex;align-items:center;justify-content:center;gap:10px;
  background:var(--accent);
  color:var(--accent-ink);
  font-family:var(--f-display);
  font-stretch:110%;
  font-weight:700;
  line-height:1.1;
  border:0;
  border-radius:999px;
  text-decoration:none;
  white-space:nowrap;
  cursor:pointer;
  box-shadow:0 6px 18px -8px rgba(0,0,0,.7);
  transition:background .25s,transform .35s var(--ease);
}
.btn:hover{background:var(--accent-hi);transform:translateY(-1px)}
.btn svg{width:18px;height:18px;transition:transform .35s var(--ease)}
.btn:hover svg{transform:translateX(3px)}
.btn--sm{padding:10px 18px;font-size:.9rem}
.btn--lg{padding:18px 30px;font-size:1.05rem}

/* ---------- Nav ---------- */
.nav{
  position:absolute;top:0;left:0;right:0;z-index:10;
  height:var(--nav-h);
}
.nav__inner{
  display:flex;align-items:center;justify-content:space-between;gap:16px;
  height:100%;
}

.brand{
  display:flex;align-items:center;gap:10px;
  font-family:var(--f-display);
  font-stretch:125%;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:.12em;
  font-size:.82rem;
  color:var(--text);
  text-decoration:none;
  white-space:nowrap;
}
.brand img{width:34px;height:auto}
.brand .brand__gamdom{width:12px}
.brand__x,.brand__partner{color:var(--muted)}

.nav__links{display:flex;align-items:center;gap:22px}
.nav__links a:not(.btn){
  display:inline-flex;align-items:center;gap:7px;
  color:var(--muted);
  font-size:.85rem;
  letter-spacing:.04em;
  text-decoration:none;
  transition:color .2s;
}
.nav__links a:not(.btn):hover{color:var(--text)}
.nav__links a:not(.btn) svg{width:14px;height:14px;fill:currentColor}

@media (max-width:1100px){
  .nav__links{gap:6px}
  .nav__links a:not(.btn){justify-content:center;width:36px;height:36px}
  .nav__links a:not(.btn) span{display:none}
  .nav__links .btn{margin-left:10px}
}
@media (max-width:600px){
  .brand__x,.brand .brand__gamdom,.brand__partner,.nav .btn--sm{display:none}
  .nav__links{gap:0}
}

/* ---------- Age badge ---------- */
.age{
  display:inline-grid;place-items:center;
  width:28px;height:28px;flex:none;
  margin-right:8px;
  border:1px solid var(--accent);
  border-radius:50%;
  color:var(--accent);
  font-size:.7rem;
  font-weight:700;
  line-height:1;
  vertical-align:middle;
}

/* ---------- Footer ---------- */
.footer{border-top:1px solid var(--line);padding:48px 0 40px}
.footer__top{
  display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:20px;
}
.footer__social{display:flex;flex-wrap:wrap;gap:4px}
.footer__social a{
  display:grid;place-items:center;
  width:40px;height:40px;
  border-radius:50%;
  color:var(--muted);
  transition:color .2s;
}
.footer__social a:hover{color:var(--accent)}
.footer__social svg{width:17px;height:17px;fill:currentColor}
.footer__legal{
  margin-top:28px;padding-top:22px;
  border-top:1px solid var(--line);
  color:var(--dim);
  font-size:.85rem;
}
.footer__legal p{max-width:80ch;margin:0 0 6px}
.footer__legal a{color:var(--accent)}

@media (max-width:760px){
  .footer{padding-bottom:110px}
}

/* ---------- Mobile dock ---------- */
.dock{display:none}

@media (max-width:760px){
  .dock{
    position:fixed;
    left:12px;right:12px;
    bottom:calc(12px + env(safe-area-inset-bottom));
    z-index:20;
    display:flex;align-items:center;justify-content:space-between;gap:12px;
    padding:8px 8px 8px 18px;
    border:1px solid var(--line-2);
    border-radius:999px;
    background:rgba(8,18,12,.92);
    color:var(--text);
    text-decoration:none;
    box-shadow:0 14px 36px -10px rgba(0,0,0,.85);
    transform:translateY(140%);
    transition:transform .5s var(--ease);
  }
  .dock.is-shown{transform:none}
}
.dock__time{
  color:var(--muted);
  font-size:.9rem;
  font-variant-numeric:tabular-nums;
  white-space:nowrap;
}
.dock__cta{
  display:inline-flex;align-items:center;gap:10px;
  padding:10px 16px;
  border-radius:999px;
  background:var(--accent);
  color:var(--accent-ink);
  font-family:var(--f-display);
  font-stretch:110%;
  font-weight:700;
  font-size:.9rem;
  line-height:1.1;
  white-space:nowrap;
  transition:background .25s;
}
.dock:hover .dock__cta{background:var(--accent-hi)}
.dock__cta svg{width:18px;height:18px}

@media (prefers-reduced-motion:reduce){
  .btn,.btn svg,.dock{transition:none}
}

/* ==========================================================================
   02 · Hero
   ========================================================================== */

.hero {
  position: relative;
  min-height: max(680px, 100svh);
  display: flex;
  align-items: center;
  isolation: isolate;
  overflow: hidden;
  background: var(--bg);
}

/* Gamdom green glow over the photo and the black, like the Gamdom banners */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(0deg, var(--bg) 0%, rgba(5, 9, 7, 0) 22%),
    radial-gradient(ellipse 65% 70% at 100% 85%, rgba(1, 211, 112, .42), rgba(1, 211, 112, 0) 70%),
    radial-gradient(ellipse 55% 60% at 0% 85%, rgba(10, 90, 44, .45), rgba(10, 90, 44, 0) 75%);
}

/* ---------- Media (right side, faded into the black) ---------- */
.hero__media {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 54%;
  z-index: -1;
  overflow: hidden; /* keep the zoom-in inside the frame so the fades always cover it */
}

.hero__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}

.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg,
      var(--bg) 0%,
      rgba(5, 9, 7, .82) 14%,
      rgba(5, 9, 7, .45) 28%,
      rgba(5, 9, 7, .12) 39%,
      rgba(5, 9, 7, 0) 45%),
    linear-gradient(0deg,
      var(--bg) 0%,
      rgba(5, 9, 7, .6) 14%,
      rgba(5, 9, 7, 0) 34%);
}

/* ---------- Copy ---------- */
.hero__inner {
  width: 100%;
  padding-top: calc(var(--nav-h) + 24px);
  padding-bottom: 64px;
}

.hero__copy {
  max-width: 600px;
}

.hero .display {
  font-size: clamp(3.2rem, 7.4vw, 6.4rem);
}

.hero__sub {
  max-width: 44ch;
  margin: 24px 0 32px;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.3vw, 1.2rem);
}

.hero__sub strong {
  color: var(--text);
  font-weight: 600;
}

/* ---------- Countdown ---------- */
.timer {
  margin-bottom: 32px;
}

.timer__row {
  display: flex;
  gap: 10px;
}

.tbox {
  width: 88px;
  padding: 14px 8px 10px;
  text-align: center;
  border: 1px solid var(--line-2);
  border-radius: 12px;
  background: rgba(1, 211, 112, .06);
}

.tbox span {
  display: block;
  font-family: var(--f-display);
  font-stretch: 110%;
  font-weight: 600;
  font-size: 2.1rem;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}

.tbox small {
  font-size: .66rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--dim);
}

.timer__note {
  margin: 12px 0 0;
  font-size: .85rem;
  color: var(--dim);
}

.timer.is-closed .timer__row {
  display: none;
}

/* ---------- Actions ---------- */
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
}

/* ---------- Motion (opt-in: JS present and motion allowed) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .hero__media img {
    animation: hero-media 1.6s var(--ease) both;
  }

  .js .hero__copy > * {
    animation: hero-rise .9s var(--ease) both;
  }
  .js .hero__copy > :nth-child(1) { animation-delay: .15s; }
  .js .hero__copy > :nth-child(2) { animation-delay: .24s; }
  .js .hero__copy > :nth-child(3) { animation-delay: .32s; }
  .js .hero__copy > :nth-child(4) { animation-delay: .40s; }

  .tbox span.tick {
    animation: tbox-tick .4s var(--ease);
  }
}

@keyframes hero-media {
  from { opacity: 0; transform: scale(1.06); }
  to   { opacity: 1; transform: scale(1); }
}

@keyframes hero-rise {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}

@keyframes tbox-tick {
  from { opacity: .4; transform: translateY(-3px); }
  to   { opacity: 1; transform: none; }
}

/* ---------- ≤900px: image on top, copy below ---------- */
@media (max-width: 900px) {
  .hero {
    display: block;
    min-height: auto;
  }

  .hero__media {
    position: relative;
    width: 100%;
    height: clamp(320px, 62vw, 520px);
    z-index: auto;
  }

  .hero__media::after {
    background: linear-gradient(0deg,
      var(--bg) 0%,
      rgba(5, 9, 7, .7) 18%,
      rgba(5, 9, 7, 0) 48%);
  }

  .hero__inner {
    position: relative;
    padding-top: 0;
    margin-top: -60px;
  }

  .hero__copy {
    max-width: none;
  }
}

/* ---------- ≤480px ---------- */
@media (max-width: 480px) {
  .hero .display {
    font-size: clamp(2.7rem, 13vw, 3.4rem);
  }

  .timer__row {
    gap: 8px;
  }

  .tbox {
    flex: 1;
    width: auto;
  }

  .tbox span {
    font-size: 1.7rem;
  }

  .hero__actions .btn {
    width: 100%;
    justify-content: center;
  }
}

/* Top fade so the nav links over the image stay legible */
.hero__media::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: calc(var(--nav-h) + 72px);
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(5, 9, 7, .85) 0%, rgba(5, 9, 7, .45) 55%, rgba(5, 9, 7, 0) 100%);
}

/* ==========================================================================
   03 — Sections: how to enter, prize (watch + Malta), chip visual, close
   ========================================================================== */

/* ---------- How to enter ---------- */
.enter {
  padding: clamp(80px, 10vw, 136px) 0;
  background: radial-gradient(ellipse 60% 55% at 0% 0%, rgba(1, 211, 112, .1), rgba(1, 211, 112, 0) 70%);
}

.steps {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.step { padding: 32px 32px 36px; }
.step:not(:last-child) { border-right: 1px solid var(--line); }
.step:first-child { padding-left: 0; }
.step:last-child { padding-right: 0; }

.step__n {
  display: block;
  margin-bottom: 18px;
  font-family: var(--f-display);
  font-stretch: 125%;
  font-weight: 700;
  font-size: .8rem;
  letter-spacing: .14em;
  color: var(--accent);
}

.step h3 {
  margin: 0 0 10px;
  font-family: var(--f-display);
  font-stretch: 110%;
  font-weight: 700;
  font-size: 1.3rem;
  line-height: 1.2;
}

.step p {
  margin: 0 0 16px;
  max-width: 34ch;
  color: var(--muted);
}

.step__links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}
.step__links .link svg { width: 15px; height: 15px; flex: none; }

/* Ticket calculator */
.calc { margin-top: 6px; }

.calc label {
  display: block;
  margin-bottom: 4px;
  font-size: .75rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--dim);
}

.calc__field {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  padding: 4px 2px;
  border-bottom: 1px solid var(--line-2);
  transition: border-color .25s var(--ease);
}
.calc__field:focus-within { border-bottom-color: var(--accent); }

.calc__field span {
  font-family: var(--f-display);
  font-size: 1.6rem;
  color: var(--accent);
}

.calc__field input {
  width: 7ch;
  padding: 0;
  border: 0;
  outline: none;
  background: transparent;
  color: var(--text);
  caret-color: var(--accent);
  font-family: var(--f-display);
  font-stretch: 110%;
  font-weight: 600;
  font-size: 1.8rem;
  font-variant-numeric: tabular-nums;
  -moz-appearance: textfield;
  appearance: textfield;
}
.calc__field input::-webkit-outer-spin-button,
.calc__field input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.calc__out {
  display: block;
  margin-top: 8px;
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--accent);
}

/* Rules */
.rules {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 40px;
  color: var(--muted);
  font-size: .95rem;
}
.rules li {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.rules li svg {
  width: 18px;
  height: 18px;
  flex: none;
  color: var(--accent);
  stroke: currentColor;
}

/* ---------- Prizes (watch + Malta, side by side) ---------- */
.prizes {
  padding: clamp(72px, 9vw, 128px) 0;
  border-top: 1px solid var(--line);
  background: radial-gradient(ellipse 70% 60% at 100% 50%, rgba(1, 211, 112, .1), rgba(1, 211, 112, 0) 70%);
}

.prizes__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 40px);
  align-items: stretch;
}

.prize {
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding: clamp(16px, 2vw, 24px) clamp(16px, 2vw, 24px) clamp(24px, 3vw, 36px);
  border: 1px solid var(--line);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(1, 211, 112, .07), rgba(1, 211, 112, 0) 60%), var(--bg-2);
}

.prize .h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); }
.prize__copy { padding-inline: clamp(4px, 1vw, 12px); }

.prize__img {
  margin: 0;
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--bg);
  outline: 1px solid var(--line);
}
.prize__img img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.spec {
  margin: 28px 0 0;
  border-top: 1px solid var(--line-2);
}
.spec div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}
.spec dt { color: var(--dim); font-size: .9rem; }
.spec dd {
  margin: 0;
  color: var(--text);
  font-weight: 500;
  text-align: right;
}

.perks {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  display: grid;
  gap: 18px;
}
.perks li {
  display: flex;
  align-items: center;
  gap: 16px;
}
.perks li svg {
  flex: none;
  width: 46px;
  height: 46px;
  padding: 11px;
  border-radius: 12px;
  border: 1px solid var(--line-2);
  color: var(--accent);
}
.perks b {
  display: block;
  font-family: var(--f-display);
  font-stretch: 110%;
  font-weight: 700;
  font-size: 1.05rem;
}
.perks span {
  display: block;
  color: var(--muted);
  font-size: .95rem;
}

/* ---------- Chip visual ---------- */
.chip-stage {
  position: relative;
  margin: 0;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 16px;
  overflow: hidden;
  background: var(--bg);
  outline: 1px solid var(--line);
}
.chip-stage > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.chip-stage__art { display: none; }

.chip-stage.is-empty > img { display: none; }
.chip-stage.is-empty .chip-stage__art {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  place-items: center;
}

/* Neutral stage: a pool of light from above onto a floor ellipse */
.chip-stage.is-empty::before,
.chip-stage.is-empty::after {
  content: "";
  position: absolute;
  pointer-events: none;
}
.chip-stage.is-empty::before {
  inset: 0;
  background: radial-gradient(ellipse 55% 75% at 50% 0%, rgba(255, 255, 255, .06), transparent 70%);
}
.chip-stage.is-empty::after {
  left: 12%;
  right: 12%;
  bottom: 4%;
  height: 20%;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: radial-gradient(ellipse at 50% 50%, rgba(255, 255, 255, .06), transparent 70%);
}

.chip {
  width: 62%;
  height: auto;
  overflow: visible;
  transform: rotate(-10deg);
  filter: drop-shadow(0 30px 28px rgba(0, 0, 0, .6)) drop-shadow(0 6px 8px rgba(0, 0, 0, .45));
}

.chip__arc {
  font-family: var(--f-display);
  font-stretch: 125%;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: .32em;
  text-transform: uppercase;
  fill: var(--muted);
}
.chip__value {
  font-family: var(--f-display);
  font-stretch: 110%;
  font-weight: 800;
  font-size: 42px;
  fill: var(--accent);
}
.chip__sub {
  font-family: var(--f-display);
  font-size: 11px;
  letter-spacing: .4em;
  text-transform: uppercase;
  fill: var(--dim);
}

@media (prefers-reduced-motion: no-preference) {
  .js .chip-stage .chip {
    opacity: 0;
    transform: translateY(-30px) rotate(-30deg);
    transition: opacity .9s var(--ease), transform .9s var(--ease);
  }
  .js .chip-stage.is-in .chip {
    opacity: 1;
    transform: rotate(-10deg);
  }
}

/* ---------- Close ---------- */
.close {
  padding: clamp(96px, 12vw, 170px) 0;
  border-top: 1px solid var(--line);
  text-align: center;
  background:
    radial-gradient(ellipse 50% 70% at 100% 100%, rgba(1, 211, 112, .5), rgba(1, 211, 112, 0) 70%),
    linear-gradient(120deg, #020403 0%, #04120a 55%, var(--green-deep) 100%);
}

.close__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.display--close { font-size: clamp(2.6rem, 6vw, 5rem); }

.close__time {
  margin: 22px 0 32px;
  min-height: 1.6em;
  font-family: var(--f-display);
  font-stretch: 110%;
  font-weight: 600;
  font-size: 1.25rem;
  font-variant-numeric: tabular-nums;
  color: var(--text);
}

.close__note {
  margin: 22px 0 0;
  color: var(--text);
  font-size: .92rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .steps { grid-template-columns: 1fr; }
  .step,
  .step:first-child,
  .step:last-child { padding: 28px 0; }
  .step:not(:last-child) {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .prizes__grid { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 480px) {
  .rules {
    flex-direction: column;
    align-items: flex-start;
  }
}
