/* PlayWin Gamz public page. Tokens: "Monte Carlo Deco, Rouge edition" (client LuxTheme.cs). Dark only. */
@font-face { font-family: "Cinzel"; src: url("cinzel-bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Montserrat"; src: url("montserrat-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }

:root {
  --bg-top: #16151A; --bg-base: #0B0B0D; --bg-bottom: #060607; --bg-warm: #1C1A16;
  --gold-50: #FBF3DF; --gold-100: #F1DFB6; --gold-300: #E3C58A; --gold-500: #C9A35E; --gold-700: #9C7A3C; --gold-900: #5E4722;
  --text: #F4EEE2; --text-2: #CFC6B4; --muted: #8E887C; --on-gold: #1A140A; --ruby: #A3192E;
  --line: rgba(227, 197, 138, .30); --line-strong: rgba(227, 197, 138, .75);
  --foil: linear-gradient(180deg, #FBF3DF 0%, #F1DFB6 18%, #D9B877 50%, #C49A4A 51%, #A9864A 80%, #7A5C2E 100%);
  --badge: min(42vw, 66vh, 580px);
  color-scheme: dark;
}

* { box-sizing: border-box; }

/* Never allow scrolling on any device */
html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  min-height: 100%;
  max-height: 100%;
  overflow: hidden;
  overscroll-behavior: none;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
html::-webkit-scrollbar,
body::-webkit-scrollbar,
.hero::-webkit-scrollbar {
  display: none;
}

body {
  position: fixed;
  inset: 0;
  background: var(--bg-base);
  background-image: radial-gradient(120% 90% at 50% 0%, var(--bg-top) 0%, var(--bg-base) 55%, var(--bg-bottom) 100%);
  color: var(--text);
  font: 400 17px/1.55 "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  user-select: none;
  -webkit-user-select: none;
}

/* the curtain: plain black, lifts once the badge has built in */
.curtain { position: fixed; inset: 0; background: #000; z-index: 10; transform: translateY(0); pointer-events: none; }
.curtain.lift { transition: transform .7s cubic-bezier(.65, 0, .35, 1); transform: translateY(-101%); }
.curtain.gone { display: none; }

/* layout: fits 100% within viewport on all devices */
.hero {
  width: 100%;
  height: 100%;
  height: 100dvh;
  max-height: 100dvh;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr minmax(0, 520px);
  align-items: center;
  justify-content: center;
  gap: clamp(20px, 4vw, 56px);
  padding: clamp(16px, 3vh, 48px) clamp(24px, 4vw, 64px);
  max-width: 1400px;
  margin: 0 auto;
}
.stage {
  margin: 0;
  display: grid;
  place-items: center;
  position: relative;
  z-index: 11;
}
.copy {
  max-width: 46ch;
}

/* the badge: the game's own layers, in the login's geometry (frame = 2.25 R, see badge.json) */
.badge { position: relative; width: var(--badge); aspect-ratio: 1; user-select: none; -webkit-user-drag: none; }
.badge .layer { position: absolute; inset: 0; width: 100%; height: 100%; display: block; pointer-events: none; }
.arrive, .rotor { position: absolute; inset: 0; }
.rotor { will-change: transform; }   /* the idle spin (script); the arrival sits on .arrive so the two transforms do not fight */
.castshadow, .plaque, .words i, .ball { position: absolute; display: block; pointer-events: none; }
.words i { background-image: url("badge_text.webp"); background-repeat: no-repeat; }
.plaque-group { position: absolute; inset: 0; }
.ball {
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #FFFDF6 0%, #EFE8D8 45%, #B9AE98 80%, #7E7462 100%);
  box-shadow: 0 .18em .35em rgba(0, 0, 0, .55);
}

/* build-in (the loader): the plaque lands, the wheel arrives, the words come up; the ball is driven by the script */
.badge.building .arrive { transform: scale(1.4) rotate(-120deg); opacity: 0; }
.badge.building .plaque-group { transform: translateY(-28%); opacity: 0; }
.badge.building .words { opacity: 0; }
.badge.building .castshadow { opacity: 0; }
.badge.building .ball { opacity: 0; }
.badge.landing .plaque-group { transition: transform .55s cubic-bezier(.2, .9, .3, 1.15), opacity .3s; transform: none; opacity: 1; }
.badge.arriving .arrive { transition: transform 1s cubic-bezier(.2, .8, .2, 1), opacity .5s; transform: none; opacity: 1; }
.badge.arriving .castshadow { transition: opacity .8s .3s; opacity: 1; }
.badge.lit .words { transition: opacity .4s; opacity: 1; }

/* ?slow=N (review only, see site.js): the same build-in five times slower */
html.slow .curtain.lift { transition-duration: 3.5s; }
html.slow .badge.landing .plaque-group { transition-duration: 2.75s, 1.5s; }
html.slow .badge.arriving .arrive { transition-duration: 5s, 2.5s; }
html.slow .badge.arriving .castshadow { transition-duration: 4s; transition-delay: 1.5s; }
html.slow .badge.lit .words { transition-duration: 2s; }
.badge.lit .ball { opacity: 1; }

/* copy column */
.wordmark {
  margin: 0 0 .35em; font: 700 clamp(40px, 5.5vw, 72px)/1 "Cinzel", Georgia, serif; letter-spacing: .06em;
  background: var(--foil); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 1px 0 rgba(0, 0, 0, .6));
}
.tagline {
  margin: 0 0 clamp(16px, 2.5vw, 28px);
  font: 700 clamp(18px, 2.5vw, 28px)/1.2 "Cinzel", Georgia, serif;
  letter-spacing: .08em;
  background: var(--foil);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 1px 0 rgba(0, 0, 0, .6));
}
.lede { margin: 0 0 clamp(16px, 2.5vw, 32px); font-size: clamp(15px, 1.5vw, 19px); color: var(--text-2); max-width: 38ch; line-height: 1.45; }

.downloads { display: grid; gap: 12px; margin-bottom: clamp(14px, 2vh, 20px); }
.dl {
  display: grid; gap: 2px; padding: clamp(10px, 1.6vh, 14px) clamp(14px, 2vw, 20px); text-decoration: none; color: var(--on-gold);
  background: var(--foil); border: 1px solid var(--gold-700); border-radius: 3px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), 0 10px 24px -14px rgba(227, 197, 138, .5);
  transition: transform .15s ease, filter .15s ease;
}
.dl:hover { filter: brightness(1.06); transform: translateY(-1px); }
.dl:active { transform: translateY(0); filter: brightness(0.96); }
.dl:focus-visible { outline: 2px solid var(--gold-300); outline-offset: 3px; }
.dl-title { font: 600 clamp(15px, 1.4vw, 18px)/1.2 "Montserrat", "Segoe UI", sans-serif; }
.dl-meta { font-size: clamp(11.5px, 1.1vw, 13px); line-height: 1.3; color: rgba(26, 20, 10, .82); }

.notes { margin: 0 0 clamp(14px, 2vh, 20px); padding: 0 0 0 1.2em; color: var(--text-2); font-size: clamp(13px, 1.2vw, 14.5px); line-height: 1.4; }
.notes li { margin: 3px 0; }
.disclaimer { margin: 0 0 clamp(12px, 1.8vh, 18px); padding-top: clamp(10px, 1.5vh, 14px); border-top: 1px solid var(--line); color: var(--muted); font-size: clamp(12px, 1.1vw, 13.5px); line-height: 1.4; }
.foot { display: flex; gap: 20px; flex-wrap: wrap; color: var(--muted); font-size: clamp(11.5px, 1vw, 12.5px); }

/* Responsive adjustments for phones & portrait tablets */
@media (max-width: 900px) and (min-height: 520px) {
  :root { --badge: min(54vw, 25vh, 200px); }
  .hero {
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    align-items: center;
    text-align: center;
    gap: clamp(8px, 1.8vh, 16px);
    padding: clamp(10px, 2vh, 18px) clamp(14px, 3.5vw, 22px);
  }
  .stage {
    flex-shrink: 0;
  }
  .copy {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    max-width: 460px;
    width: 100%;
    margin: 0 auto;
    gap: clamp(6px, 1.2vh, 10px);
  }
  .wordmark {
    font-size: clamp(26px, 5.5vw, 38px);
    margin: 0;
  }
  .tagline {
  margin: 0 0 clamp(16px, 2.5vw, 28px);
  font: 700 clamp(18px, 2.5vw, 28px)/1.2 "Cinzel", Georgia, serif;
  letter-spacing: .08em;
  background: var(--foil);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 1px 0 rgba(0, 0, 0, .6));
}
.lede {
    font-size: clamp(12.5px, 3vw, 14.5px);
    margin: 0;
    max-width: 38ch;
    line-height: 1.35;
  }
  .downloads {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(8px, 2.5vw, 12px);
    width: 100%;
    margin: 0;
  }
  .dl {
    padding: clamp(8px, 1.3vh, 11px) clamp(8px, 2vw, 12px);
    gap: 1px;
    text-align: center;
  }
  .dl-title {
    font-size: clamp(12.5px, 2.8vw, 14.5px);
  }
  .dl-meta {
    font-size: clamp(10px, 2vw, 11.5px);
  }
  .notes {
    margin: 0;
    padding: 0 0 0 1.1em;
    font-size: clamp(11px, 2.3vw, 12px);
    line-height: 1.35;
    text-align: left;
    max-width: 42ch;
  }
  .notes li {
    margin: 2px 0;
  }
  .disclaimer {
    margin: 0;
    padding-top: clamp(6px, 1vh, 8px);
    font-size: clamp(10.5px, 2.1vw, 11.5px);
    line-height: 1.35;
  }
  .foot {
    font-size: clamp(10px, 2vw, 11px);
    gap: 14px;
    justify-content: center;
    margin: 0;
  }
}

/* Compact landscape phones */
@media (max-height: 520px) {
  :root { --badge: min(34vw, 68vh, 210px); }
  .hero {
    grid-template-columns: auto 1fr;
    gap: 20px;
    padding: 10px 24px;
  }
  .wordmark {
    font-size: clamp(22px, 4vw, 30px);
    margin: 0 0 .15em;
  }
  .tagline {
  margin: 0 0 clamp(16px, 2.5vw, 28px);
  font: 700 clamp(18px, 2.5vw, 28px)/1.2 "Cinzel", Georgia, serif;
  letter-spacing: .08em;
  background: var(--foil);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 1px 0 rgba(0, 0, 0, .6));
}
.lede {
    font-size: 12.5px;
    margin: 0 0 8px;
    line-height: 1.3;
  }
  .downloads {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 6px;
  }
  .dl {
    padding: 6px 10px;
  }
  .dl-title {
    font-size: 12.5px;
  }
  .dl-meta {
    font-size: 10.5px;
  }
  .notes {
    font-size: 10.5px;
    margin-bottom: 6px;
    line-height: 1.3;
  }
  .notes li { margin: 1px 0; }
  .disclaimer {
    font-size: 9.5px;
    margin: 0 0 4px;
    padding-top: 4px;
    line-height: 1.25;
  }
  .foot {
    font-size: 9.5px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .curtain.lift { transition: none; }
  .badge.landing .plaque-group, .badge.arriving .arrive, .badge.arriving .castshadow, .badge.lit .words { transition: none; }
}

/* Disabled Download Card & Coming Soon Badge */
.dl.dl-disabled {
  background: rgba(24, 24, 28, 0.8) !important;
  border: 1px solid rgba(235, 190, 80, 0.25) !important;
  box-shadow: none !important;
  cursor: not-allowed !important;
  opacity: 0.85;
  filter: none !important;
  transform: none !important;
  pointer-events: none;
}
.dl.dl-disabled .dl-title {
  color: #d0d0d8 !important;
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: inherit;
}
.dl.dl-disabled .dl-meta {
  color: #888894 !important;
}
.badge-coming-soon {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 2px 7px;
  background: rgba(235, 190, 80, 0.15);
  color: #ebbe50;
  border: 1px solid rgba(235, 190, 80, 0.45);
  border-radius: 3px;
  line-height: 1.2;
  vertical-align: middle;
}
