/* Skyrend coming-soon page. Built from the game's own pieces: its night sky, gold, Cinzel/Inter,
   its card frames and gold stars, and the rift-lozenge section rule.
   Layout: a full-height hero, the three realm paintings, one card per rarity (1 to 7 stars), a footer.
   The cards use the game's three frame tiers (ui/Card.tsx CardFrame) and rarity colours (index.css). */

@font-face { font-family: "Cinzel"; src: url("/fonts/cinzel-latin.woff2") format("woff2"); font-weight: 400 900; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/fonts/inter-latin.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --ink: #0a0c13;
  --surface: #11141d;
  --text: #f2efe6;
  --text-2: #b6bccb;
  --gold-100: #fbf0cf;
  --gold-300: #f3d98f;
  --gold-500: #d9a93f;
  --gold-700: #9a6f1e;
  --steel: #e2685a;
  --aether: #f3d98f;
  --wilds: #7fd49b;
  --display: "Cinzel", ui-serif, Georgia, serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: max(16px, env(safe-area-inset-left, 0px));
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --ink: #0a0c13; } }
:root[data-theme="dark"] { --ink: #0a0c13; }

* { box-sizing: border-box; }
html { background: var(--ink); }
body { margin: 0; background: var(--ink); color: var(--text); font: 16px/1.6 var(--body); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { display: block; max-width: 100%; }

/* --- Hero -------------------------------------------------------------- */
.hero { position: relative; min-height: 100svh; display: grid; place-items: center; text-align: center; padding: 64px var(--gutter); isolation: isolate; overflow: hidden; }
/* The key art: three champions facing the rift, the left of the frame kept dark for the title.
   Wide screens put the title there; phones, tablets and tall windows show the art as a band with the title underneath. */
.hero-sky { position: absolute; inset: -3%; z-index: -1; background: url("/art/keyart-2.webp") 62% 50% / cover no-repeat; animation: drift 40s ease-in-out infinite alternate; }
.hero-sky::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10,12,19,.8) 0%, rgba(10,12,19,.5) 30%, rgba(10,12,19,0) 56%), linear-gradient(180deg, rgba(10,12,19,0) 62%, var(--ink) 100%); }
@media (min-width: 1024px) and (min-aspect-ratio: 7/5) {
  .hero { place-items: center start; padding-left: clamp(24px, 5vw, 112px); }
  .hero-sky { background-position: 30% 50%; }
  .hero-inner { width: min(440px, 36vw); }
  .wordmark { font-size: clamp(2.6rem, 5.6vw, 5.4rem); }
}
@media (max-width: 1023px), (max-aspect-ratio: 7/5) {
  .hero { min-height: 0; padding: calc(56vw + 8px) var(--gutter) 40px; }
  .hero-sky { inset: 0 0 auto; height: 60vw; background-image: url("/art/keyart-2-sm.webp"); background-position: 70% 50%; animation: none; }
  .hero-sky::after { background: linear-gradient(180deg, rgba(10,12,19,0) 45%, var(--ink) 100%); }
  .mark { width: 96px; margin-top: -40px; }
}
.hero-inner { display: grid; justify-items: center; gap: 18px; }
.mark { width: clamp(132px, 22vw, 200px); height: auto; filter: drop-shadow(0 0 28px rgba(217,169,63,.35)); animation: hover 7s ease-in-out infinite; }
.wordmark {
  margin: 4px 0 0; font-family: var(--display); font-weight: 700; text-transform: uppercase;
  font-size: clamp(2.9rem, 10vw, 6.4rem); line-height: 1; letter-spacing: .08em;
  background: linear-gradient(180deg, var(--gold-100) 0%, var(--gold-300) 38%, var(--gold-500) 70%, var(--gold-700) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 2px 0 rgba(0,0,0,.55)) drop-shadow(0 0 22px rgba(217,169,63,.25));
}
.tagline { margin: 0; color: var(--text-2); font-size: clamp(1rem, 2.4vw, 1.2rem); letter-spacing: .02em; }
.soon { margin: 14px 0 0; width: min(420px, 80vw); display: flex; align-items: center; gap: 12px; color: var(--gold-300); font-family: var(--display); font-weight: 600; font-size: .95rem; letter-spacing: .32em; text-transform: uppercase; }
.soon::before, .soon::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, transparent, rgba(217,169,63,.6), transparent); }
.soon span { position: relative; padding: 0 2px; }

/* --- Intro: the pitch, a few plain lines ------------------------------- */
.intro { max-width: 620px; gap: 14px; text-align: center; color: var(--text-2); font-size: clamp(1rem, 2.2vw, 1.12rem); line-height: 1.7; }
.intro p { margin: 0; }

/* --- Section rule: the rift lozenge between two hairlines --------------- */
main { display: grid; gap: clamp(72px, 12vw, 128px); padding: 24px var(--gutter) 96px; }
section { max-width: 1120px; width: 100%; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr); gap: 36px; }
.rule { margin: 0; display: flex; align-items: center; gap: 16px; font-family: var(--display); font-weight: 600; font-size: clamp(1.1rem, 2.6vw, 1.45rem); letter-spacing: .22em; text-transform: uppercase; color: var(--gold-300); }
.rule::before, .rule::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, transparent, rgba(217,169,63,.5)); }
.rule::after { transform: scaleX(-1); }
.rule span { display: flex; align-items: center; gap: 14px; white-space: nowrap; }
.rule span::before, .rule span::after { content: ""; width: 8px; height: 8px; transform: rotate(45deg); border: 1px solid var(--gold-500); background: rgba(217,169,63,.25); }

/* --- Realms ------------------------------------------------------------ */
.realm-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(10px, 2vw, 22px); }
.realm { position: relative; margin: 0; border-radius: 4px; overflow: hidden; aspect-ratio: 2 / 3; border: 1px solid rgba(217,169,63,.28); box-shadow: 0 24px 60px rgba(0,0,0,.55); }
.realm img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s cubic-bezier(.2,.7,.2,1); }
.realm:hover img { transform: scale(1.04); }
.realm::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 58%, rgba(6,7,12,.9) 100%); pointer-events: none; }
.realm figcaption { position: absolute; left: 0; right: 0; bottom: 18px; z-index: 1; text-align: center; font-family: var(--display); font-weight: 700; font-size: clamp(1.05rem, 2.6vw, 1.6rem); letter-spacing: .24em; text-transform: uppercase; text-shadow: 0 2px 10px #000; }
.realm figcaption::after { content: ""; display: block; width: 36px; height: 2px; margin: 10px auto 0; border-radius: 1px; background: currentColor; opacity: .8; }
.realm-steel figcaption { color: var(--steel); }
.realm-aether figcaption { color: var(--aether); }
.realm-wilds figcaption { color: var(--wilds); }

/* --- Collect them all: a rising row, each card a tier bigger than the last ---- */
.spread { list-style: none; margin: 0 auto; padding: 12px 0 0; display: flex; align-items: flex-end; justify-content: center; gap: clamp(8px, 1.4vw, 16px); }
.tier { --base: clamp(56px, 7.4vw, 96px); --step: clamp(6px, 1.1vw, 13px); flex: 0 0 auto; width: calc(var(--base) + (var(--n) - 1) * var(--step)); transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.tier:hover { transform: translateY(-10px); }
.frame { position: relative; aspect-ratio: 2 / 3; padding: 2px; border-radius: 5px; box-shadow: 0 20px 40px rgba(0,0,0,.55); }
.frame img { width: 100%; height: 100%; object-fit: cover; border-radius: 3px; }
.common .frame { padding: 1px; background: var(--c); }
.common .frame img { border-radius: 4px; }
.rare .frame { background: linear-gradient(150deg, color-mix(in srgb, var(--c) 55%, white) 0%, var(--c) 45%, color-mix(in srgb, var(--c) 45%, black) 100%); box-shadow: 0 0 6px color-mix(in srgb, var(--c) 30%, transparent), 0 20px 40px rgba(0,0,0,.55); }
.premium .frame { background: linear-gradient(150deg, var(--gold-100) 0%, var(--c) 30%, var(--gold-700) 52%, var(--c) 72%, var(--gold-300) 100%); box-shadow: 0 0 14px color-mix(in srgb, var(--c) 45%, transparent), 0 24px 48px rgba(0,0,0,.6); }
.premium .frame::after { content: ""; position: absolute; inset: 2px; border-radius: 3px; pointer-events: none; background: linear-gradient(115deg, transparent 35%, rgba(255,240,200,.28) 50%, transparent 65%) no-repeat; background-size: 260% 100%; animation: sweep 6s ease-in-out infinite; animation-delay: calc(var(--n) * .9s); }
.stars { --star: clamp(9px, 1vw, 12px); position: absolute; left: 50%; bottom: 5%; z-index: 1; width: calc(var(--n) * var(--star)); height: var(--star); transform: translateX(-50%); background: url("/art/star.svg") left center / var(--star) var(--star) repeat-x; filter: drop-shadow(0 1px 2px rgba(0,0,0,.9)); }

.tier-name { display: block; margin-top: 10px; text-align: center; font-family: var(--display); font-weight: 700; font-size: clamp(.66rem, .95vw, .84rem); letter-spacing: .14em; text-transform: uppercase; color: color-mix(in srgb, var(--c) 80%, white); white-space: nowrap; }

/* Phones: nothing scrolls sideways. The three realms sit side by side, small; the rarity row
   becomes two rows of three, ★1–3 and ★4–6, with the Legend alone and larger underneath. */
@media (max-width: 720px) {
  .rule { gap: 10px; font-size: 1rem; letter-spacing: .16em; }
  .rule span { gap: 10px; }
  .realm-row { gap: 8px; }
  .realm figcaption { bottom: 10px; font-size: .78rem; letter-spacing: .14em; }
  .realm figcaption::after { width: 22px; margin-top: 6px; }
  .spread { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px 10px; align-items: end; max-width: 360px; }
  .tier { width: auto; }
  .tier:last-child { grid-column: 1 / -1; justify-self: center; width: 58%; margin-top: 8px; }
  .stars { --star: 10px; }
}

/* --- Footer ------------------------------------------------------------ */
.foot { display: grid; justify-items: center; gap: 10px; padding: 40px var(--gutter) max(40px, env(safe-area-inset-bottom, 0px)); border-top: 1px solid rgba(217,169,63,.14); color: #8f97ab; font-size: .82rem; }
.foot img { opacity: .8; }
.foot p { margin: 0; letter-spacing: .04em; }

/* --- Motion ------------------------------------------------------------ */
@keyframes drift { from { transform: scale(1.02) translate3d(0, 0, 0); } to { transform: scale(1.08) translate3d(-1.5%, 1%, 0); } }
@keyframes hover { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes sweep { 0%, 55% { background-position: 130% 0; } 85%, 100% { background-position: -30% 0; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
