/* The home page: header with the two links, the red star rule, the headline with the turning dice, a ticker, the six faces, then the Desire section and the rest. */
.top { position: fixed; z-index: 45; left: 0; right: 0; top: 64px; transform: translateY(-50%); display: flex; justify-content: space-between; padding: 0 clamp(18px, 5vw, 90px); pointer-events: none; opacity: 0; transition: opacity 1.4s ease .5s; }
.ready .top { opacity: 1; }
.nav { pointer-events: auto; font: italic 700 clamp(.82rem, 1.55vw, 1.3rem)/1 Poppins, Montserrat, "Arial Black", sans-serif; letter-spacing: .02em; text-transform: uppercase; color: #fff; background: none; border: 0; padding: 8px 0; cursor: pointer; text-decoration: none; position: relative; }
.nav::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 2px; background: #ff3b30; transform: scaleX(0); transform-origin: left; transition: transform .35s cubic-bezier(.2, .8, .2, 1); }
.nav:hover::after, .nav:focus-visible::after { transform: none; }
.nav:focus-visible { outline: none; }

.rule { display: block; width: min(72vw, 700px); margin: 0 auto; overflow: visible; opacity: 0; }
.ready .rule { animation: fade 1.6s .6s ease-out forwards; }
.rule .rstar { transform-box: fill-box; transform-origin: center; animation: twinkle 3.4s ease-in-out infinite; }
.rule.small { width: min(60vw, 420px); opacity: 1; animation: none; margin-bottom: 18px; }
@keyframes twinkle { 0%, 100% { opacity: .85; } 50% { opacity: 1; filter: drop-shadow(0 0 7px rgba(255, 59, 48, .9)); } }

/* sign in: the header control, its small menu, the Google button in the sign-up card, and the notice shown after a sign-in attempt */
.side { display: flex; align-items: center; gap: clamp(16px, 3vw, 44px); pointer-events: auto; }
.menu { position: fixed; z-index: 46; right: clamp(18px, 5vw, 90px); top: 98px; min-width: 230px; padding: 16px 18px; background: rgba(10, 9, 11, .96); border: 1px solid rgba(255, 255, 255, .14); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.menu p { margin: 0; } .mname { font: italic 700 1rem/1.2 Poppins, sans-serif; color: #fff; } .mmail { margin: 4px 0 14px !important; font: 500 .72rem/1.3 Montserrat, "Helvetica Neue", Arial, sans-serif; letter-spacing: .06em; color: #8e8e96; word-break: break-all; }
.menu .ghost { background: none; border: 0; border-bottom: 1px solid rgba(255, 255, 255, .4); cursor: pointer; }
.gbtn { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 13px 16px; background: #fff; color: #1f1f1f; font: 600 .78rem/1 Poppins, "Helvetica Neue", Arial, sans-serif; letter-spacing: .03em; text-decoration: none; transition: background .25s, box-shadow .25s; }
.gbtn:hover, .gbtn:focus-visible { background: #f1f1f4; box-shadow: 0 0 24px rgba(255, 255, 255, .25); outline: none; }
.or { margin: -4px 0 0; text-align: center; font: 500 .62rem/1 Montserrat, "Helvetica Neue", Arial, sans-serif; letter-spacing: .3em; text-transform: uppercase; color: #6f6f77; }
#toast { position: fixed; z-index: 60; left: 50%; bottom: 28px; translate: -50% 0; max-width: 90vw; padding: 12px 18px; background: #0a090b; border: 1px solid rgba(255, 255, 255, .18); font: italic 500 .95rem/1.3 "Playfair Display", Georgia, serif; color: #ececf0; text-align: center; }

/* hero: the headline on the left, a big dice on the right with a red glow and slowly turning rings behind it */
.lead { position: relative; box-sizing: border-box; min-height: 100vh; min-height: 100svh; padding: 124px 0 64px; display: flex; flex-direction: column; justify-content: flex-start; gap: clamp(4px, 1.6vh, 20px); overflow: clip; }
.lead-grid { flex: 1; width: 100%; margin: 0 auto; padding: 0 clamp(20px, 5vw, 120px); box-sizing: border-box; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr); align-items: center; gap: 2vw; }
.kicker { margin: 0 0 clamp(18px, 3vh, 34px); display: flex; align-items: center; gap: 14px; font: 600 clamp(.62rem, .9vw, .8rem)/1 Montserrat, "Helvetica Neue", Arial, sans-serif; letter-spacing: .42em; text-transform: uppercase; color: #ff6a5e; }
.kicker i { width: 46px; height: 1px; background: #ff3b30; box-shadow: 0 0 10px #ff3b30; }
.copy h2 { margin: 0; font: italic 700 clamp(2.2rem, 4.5vw, 5.2rem)/1.16 Poppins, Montserrat, "Arial Black", sans-serif; letter-spacing: .035em; color: #fff; max-width: 13em; }
.copy .sub { margin: clamp(28px, 6vh, 80px) 0 0; font: 500 clamp(1rem, 1.7vw, 1.6rem)/1.55 Montserrat, "Helvetica Neue", Arial, sans-serif; letter-spacing: .1em; color: #f1f1f4; max-width: 26em; }
.cta-row { margin-top: clamp(26px, 5vh, 56px); display: flex; flex-wrap: wrap; align-items: center; gap: 14px 30px; }
.cta-row .cta { margin-top: 0; background: #ff3b30; border-color: #ff3b30; color: #fff; }
.cta-row .cta:hover, .cta-row .cta:focus-visible { background: #fff; border-color: #fff; color: #050203; box-shadow: 0 0 30px rgba(255, 59, 48, .55); }
.ghost { font: italic 700 .8rem/1 Poppins, Montserrat, sans-serif; letter-spacing: .24em; text-transform: uppercase; color: #fff; text-decoration: none; padding: 6px 0; border-bottom: 1px solid rgba(255, 255, 255, .4); transition: border-color .3s, color .3s; }
.ghost:hover, .ghost:focus-visible { border-color: #ff3b30; color: #ff6a5e; outline: none; }
.copy > * { opacity: 0; transform: translateY(18px); }
.ready .copy > * { animation: rise2 1.4s cubic-bezier(.2, .7, .2, 1) forwards; }
.ready .copy > :nth-child(1) { animation-delay: .3s; } .ready .copy > :nth-child(2) { animation-delay: .5s; } .ready .copy > :nth-child(3) { animation-delay: 1s; } .ready .copy > :nth-child(4) { animation-delay: 1.3s; }
@keyframes rise2 { to { opacity: 1; transform: none; } }

.stage { position: relative; width: min(100%, calc(100svh - 170px), 980px); aspect-ratio: 1; justify-self: center; }
.stage::before { content: ""; position: absolute; inset: -6%; background: radial-gradient(closest-side, rgba(255, 59, 48, .34), rgba(255, 59, 48, .1) 55%, transparent 75%); filter: blur(10px); opacity: 0; }
.ready .stage::before { animation: fade 2.4s .2s ease-out forwards, glow 6s 2.6s ease-in-out infinite alternate; }
@keyframes glow { from { transform: scale(.94); opacity: .8; } to { transform: scale(1.06); opacity: 1; } }
.rings { position: absolute; inset: -4%; width: 108%; height: 108%; opacity: 0; animation: spin 90s linear infinite; }
.ready .rings { opacity: 1; transition: opacity 2s .6s; }
@keyframes spin { to { transform: rotate(360deg); } }
/* the dice: a flip-book of 48 drawings (assets/dice-sheet.webp, 8 x 6) played over and over by js/flip.js */
.dice { position: absolute; inset: 0; background: #050203 url(../assets/dice-sheet.webp) 0 0 / 800% 600% no-repeat; opacity: 0; will-change: background-position, transform; -webkit-mask: radial-gradient(closest-side, #000 82%, transparent 100%); mask: radial-gradient(closest-side, #000 82%, transparent 100%); }
.ready .dice { animation: fade 1.8s .3s ease-out forwards; }
.hint { position: absolute; left: 50%; bottom: 22px; translate: -50% 0; display: flex; flex-direction: column; align-items: center; gap: 10px; font: 600 .56rem/1 Montserrat, "Helvetica Neue", Arial, sans-serif; letter-spacing: .5em; text-indent: .5em; text-transform: uppercase; color: #77777f; opacity: 0; }
.ready .hint { animation: fade 1.6s 3s ease-out forwards; }
.hint i { width: 1px; height: 38px; background: linear-gradient(#ff3b30, transparent); animation: drip 2.2s ease-in-out infinite; transform-origin: top; }
@keyframes drip { 0% { transform: scaleY(0); } 60% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

/* the ticker */
.ticker { overflow: hidden; border-top: 1px solid rgba(255, 255, 255, .1); border-bottom: 1px solid rgba(255, 255, 255, .1); padding: clamp(14px, 2.6vh, 26px) 0; background: #050203; }
.track { display: flex; align-items: center; gap: clamp(22px, 3vw, 54px); width: max-content; white-space: nowrap; animation: marq 46s linear infinite; font: italic 700 clamp(1.5rem, 3.6vw, 3.4rem)/1 Poppins, Montserrat, "Arial Black", sans-serif; text-transform: uppercase; letter-spacing: .04em; }
.track span { color: #fff; } .track em { font-style: italic; color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, .55); }
.track b { color: #ff3b30; font-size: .6em; text-shadow: 0 0 14px rgba(255, 59, 48, .8); }
@keyframes marq { to { transform: translateX(-50%); } }

footer .rule.small { margin-top: 0; }
footer { display: flex; flex-direction: column; align-items: center; }
footer p { margin: 0; }

@media (max-width: 900px) {
  .top { top: 96px; } .menu { top: 134px; }
  .lead { padding-top: 140px; }
  .lead-grid { grid-template-columns: 1fr; gap: 24px; }
  .copy { text-align: center; } .copy h2, .copy .sub { margin-left: auto; margin-right: auto; } .kicker, .cta-row { justify-content: center; }
  .stage { width: min(100%, 520px); }
  .logo.docked { width: clamp(170px, 46vw, 220px); }
  .hint { display: none; }
}
@media (prefers-reduced-motion: reduce) { .copy > *, .dice, .rule, .hint { animation: none !important; opacity: 1; transform: none; } .top { transition: none; opacity: 1; } .rule .rstar, .rings, .track, .stage::before { animation: none !important; } .stage::before { opacity: 1; } .rings { opacity: 1; } }
