/*
 * Redice landing, sign-in and sign-up pages: plain CSS.
 *
 * This is the Tailwind utility markup of the Next.js app written out by hand, plus the few global
 * rules those pages rely on (app/globals.css). Breakpoints follow Tailwind's: sm 640, md 768, lg 1024,
 * xl 1280. The game window of the landing page lives in game-window.css.
 */

/* ───────── reset (Tailwind's preflight, the part these pages need) ───────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; border: 0 solid; }
html { height: 100%; line-height: 1.5; -webkit-text-size-adjust: 100%; tab-size: 4; -webkit-tap-highlight-color: transparent; }
h1, h2, h3, h4, h5, h6 { font-size: inherit; font-weight: inherit; }
a { color: inherit; text-decoration: inherit; }
img, svg, canvas, video { display: block; vertical-align: middle; }
img, video { max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; font-feature-settings: inherit; letter-spacing: inherit; color: inherit; border-radius: 0; background-color: transparent; opacity: 1; }
button { cursor: pointer; }
button:disabled { cursor: default; }
::placeholder { opacity: 1; color: color-mix(in oklab, currentcolor 50%, transparent); }
textarea { resize: vertical; }

/* ───────── tokens ───────── */
:root {
  --font-oswald: 'Oswald';
  --font-exo: 'Exo 2';
  --font-crimson: 'Crimson Pro';
  --font-cinzel-decorative: 'Cinzel Decorative';
  --safe-b: env(safe-area-inset-bottom, 0px);
  --bg-app: #070809;
}

body {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  background: var(--bg-app);
  color: #98A0AA;
  font-family: var(--font-exo), 'Exo 2', sans-serif;
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

::-webkit-scrollbar { width: 3px; height: 3px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(148, 148, 148, 0.1); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: rgba(148, 148, 148, 0.3); }

/* The display face of the site's chrome: a condensed uppercase look (the app calls it .font-cinzel). */
.font-cinzel { font-family: var(--font-oswald), 'Oswald', 'Arial Narrow', sans-serif; letter-spacing: 0.01em; }

.hero-subtitle, .section-label span, .section-title, .cta-title, .nav-play, .nav-login, .lang-btn, .lang-item,
.hero-scroll span, .footer-links a, .auth-label span, .field-label, .auth-terms-link, .auth-submit, .auth-switch a, .cta-play {
  font-family: var(--font-oswald), 'Oswald', 'Arial Narrow', sans-serif;
}

@keyframes rotate-ring { to { transform: rotate(360deg); } }
@keyframes fade-in { to { opacity: 1; } }
@keyframes rise { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: none; } }
@keyframes float-y { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes pulse { 50% { opacity: .5; } }

.rise { opacity: 0; animation: rise var(--d, .6s) ease-out var(--delay, 0s) forwards; }
@media (prefers-reduced-motion: reduce) { .rise { animation-duration: .01s; } }

/* Scroll reveal: .is-visible is added by common.js when the block enters the viewport. */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .4s cubic-bezier(.4, 0, .2, 1), transform .4s cubic-bezier(.4, 0, .2, 1); will-change: transform, opacity; }
.reveal.is-visible { opacity: 1; transform: none; }

/* ───────── shared pieces ───────── */

/* Silver metal button (landing hero): a brushed-steel plate with dark condensed type on it. */
.silver-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 50px;
  padding: 0 34px;
  font-family: var(--font-oswald), 'Oswald', 'Arial Narrow', sans-serif;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  color: #0E1013;
  cursor: pointer;
  background: linear-gradient(180deg, #C9CDD3 0%, #AEB3BA 40%, #8B9199 100%);
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7), inset 0 -2px 0 rgba(255, 255, 255, 0.18), 0 8px 24px rgba(0, 0, 0, 0.55);
  transition: transform 0.25s ease, filter 0.25s ease, box-shadow 0.25s ease;
}
.silver-btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 1), inset 0 -2px 0 rgba(255, 255, 255, 0.36), 0 12px 30px rgba(0, 0, 0, 0.6), 0 0 28px rgba(226, 232, 240, 0.28);
}
.silver-btn:active { transform: translateY(0); filter: brightness(0.96); }
.silver-btn > svg { width: 18px; height: 18px; flex: none; }
.silver-btn--ghost {
  color: #F4F6F9;
  background: rgba(13, 17, 23, 0.5);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(244, 246, 249, 0.6);
  box-shadow: none;
}
.silver-btn--ghost:hover { filter: none; background: rgba(244, 246, 249, 0.1); border-color: rgba(244, 246, 249, 0.7); box-shadow: 0 0 24px rgba(244, 246, 249, 0.18); }

/* The game's steel with the parchment film over it. */
.land-page {
  background-color: #0D1117;
  background-image: linear-gradient(rgba(13, 17, 23, 0.72), rgba(13, 17, 23, 0.72)), url('../map/paperTile.webp'), linear-gradient(180deg, #1B222C, #0D1117);
  background-size: auto, 1536px auto, auto;
  background-repeat: no-repeat, repeat, no-repeat;
  background-blend-mode: normal, overlay, normal;
}
.land-panel {
  border: 1px solid rgba(92, 100, 110, 0.6);
  background-image: linear-gradient(rgba(13, 17, 23, 0.75), rgba(13, 17, 23, 0.75)), url('../map/paperTile.webp'), linear-gradient(180deg, #1B222C, #0D1117);
  background-size: auto, 1536px auto, auto;
  background-repeat: no-repeat, repeat, no-repeat;
  background-position: 0 0, center, 0 0;
  background-blend-mode: normal, overlay, normal;
  background-clip: padding-box;
}
.land-bar {
  border-bottom: 1px solid rgba(244, 246, 249, 0.1);
  background-image: linear-gradient(rgba(13, 17, 23, 0.82), rgba(13, 17, 23, 0.82)), url('../map/paperTile.webp'), linear-gradient(180deg, #1B222C, #0D1117);
  background-size: auto, 1536px auto, auto;
  background-repeat: no-repeat, repeat, no-repeat;
  background-position: 0 0, center, 0 0;
  background-blend-mode: normal, overlay, normal;
  background-clip: padding-box;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
}

.diamond { width: 8px; height: 8px; transform: rotate(45deg); background: #F4F6F9; box-shadow: 0 0 8px 2px rgba(244, 246, 249, 0.4); flex: none; }

/* Section label: a small caps title between two fading rules. */
.section-label { display: flex; align-items: center; justify-content: center; gap: 20px; margin-bottom: 20px; }
.section-label::before, .section-label::after { content: ""; flex: 1 1 0%; max-width: 120px; height: 1px; }
.section-label::before { background: linear-gradient(to right, transparent, rgba(92, 100, 110, .7)); }
.section-label::after { background: linear-gradient(to left, transparent, rgba(92, 100, 110, .7)); }
.section-label span { font-size: 10px; font-weight: 600; letter-spacing: .5em; text-transform: uppercase; color: #F4F6F9; }

.section-title {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: #fff;
  filter: drop-shadow(0 0 40px rgba(255, 255, 255, .1));
}

/* ───────── landing ───────── */
.land-page { position: relative; overflow: hidden; color: #ECEFF3; font-family: var(--font-crimson), Georgia, serif; }

/* nav */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 50; }
.nav-fade { position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(13, 17, 23, .85) 0%, transparent 100%); pointer-events: none; }
.nav-bar { position: absolute; inset: 0; opacity: 0; transition: opacity .3s; pointer-events: none; }
.nav-bar.is-on { opacity: 1; }
.nav-inner { position: relative; display: flex; align-items: center; justify-content: space-between; padding: 20px 48px; }
.nav-logo { position: relative; display: block; width: 48px; height: 48px; filter: drop-shadow(0 0 20px rgba(244, 246, 249, .4)); }
.nav-logo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.nav-actions { display: flex; align-items: center; gap: 16px; }
.play-wrap { position: relative; display: inline-flex; flex-direction: column; align-items: center; }
.nav-play {
  display: inline-block;
  font-size: 11px; font-weight: 700; letter-spacing: .15em; text-transform: uppercase;
  color: #0E1013;
  background: linear-gradient(180deg, #C9CDD3 0%, #AEB3BA 40%, #8B9199 100%);
  border: 1px solid rgba(255, 255, 255, .55);
  padding: 10px 22px;
  cursor: pointer;
  transition: all .3s;
}
.nav-play:hover { filter: brightness(1.1); box-shadow: 0 0 20px rgba(244, 246, 249, .25); }
.nav-login {
  font-size: 11px; font-weight: 600; letter-spacing: .15em; text-transform: uppercase;
  color: #F4F6F9;
  background: transparent;
  border: 1px solid rgba(244, 246, 249, .4);
  padding: 10px 22px;
  transition: all .3s;
}
.nav-login:hover { background: rgba(244, 246, 249, .1); box-shadow: 0 0 20px rgba(244, 246, 249, .2), inset 0 1px 0 rgba(244, 246, 249, .2); }

/* language picker */
.lang { position: relative; }
.lang-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 12px;
  background: transparent;
  border: 1px solid rgba(244, 246, 249, .2);
  font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  color: #a6a09b;
  transition: all .2s;
}
.lang-btn:hover { color: #F4F6F9; border-color: rgba(244, 246, 249, .4); }
.lang-flag { font-size: 14px; line-height: 1; text-align: center; transform: translateY(-2px); }
.lang-btn svg { width: 12px; height: 12px; transition: transform .2s; }
.lang-btn[aria-expanded="true"] svg { transform: rotate(180deg); }
.lang-menu { position: absolute; top: 100%; right: 0; margin-top: 8px; width: 208px; padding: 6px; box-shadow: 0 20px 50px rgba(0, 0, 0, .6); }
.lang-menu[hidden] { display: none; }
.lang-item {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  padding: 10px 12px;
  font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  color: #98A0AA;
  border-left: 1px solid transparent;
  transition: all .2s;
}
.lang-item:hover { color: #EDEEF4; background: rgba(92, 100, 110, .15); }
.lang-item.is-active { color: #EDEEF4; background: rgba(92, 100, 110, .25); border-left-color: #98A0AA; }
.lang-item-label { display: flex; align-items: center; gap: 12px; }
.lang-item-flag { font-size: 14px; opacity: .6; }
.lang-item.is-active .lang-item-flag { opacity: 1; }
.lang-item .diamond { display: none; }
.lang-item.is-active .diamond { display: block; }

/* hero */
.hero {
  position: relative;
  min-height: 100vh;
  padding: 112px 0 128px;
  display: flex; align-items: flex-start; justify-content: center;
  overflow: hidden;
  text-align: center;
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, rgba(0,0,0,1) 52%, rgba(0,0,0,.98) 56%, rgba(0,0,0,.926) 60%, rgba(0,0,0,.844) 64%, rgba(0,0,0,.741) 68%, rgba(0,0,0,.624) 72%, rgba(0,0,0,.5) 76%, rgba(0,0,0,.376) 80%, rgba(0,0,0,.259) 84%, rgba(0,0,0,.156) 88%, rgba(0,0,0,.074) 92%, rgba(0,0,0,.02) 96%, rgba(0,0,0,0) 100%);
  mask-image: linear-gradient(to bottom, #000 0%, rgba(0,0,0,1) 52%, rgba(0,0,0,.98) 56%, rgba(0,0,0,.926) 60%, rgba(0,0,0,.844) 64%, rgba(0,0,0,.741) 68%, rgba(0,0,0,.624) 72%, rgba(0,0,0,.5) 76%, rgba(0,0,0,.376) 80%, rgba(0,0,0,.259) 84%, rgba(0,0,0,.156) 88%, rgba(0,0,0,.074) 92%, rgba(0,0,0,.02) 96%, rgba(0,0,0,0) 100%);
}
.hero-bg > * { position: absolute; }
.hero-shade-1 { inset: 0; background: radial-gradient(ellipse 60% 50% at 30% 70%, rgba(13, 17, 23, .6) 0%, transparent 70%); }
.hero-shade-2 { inset: 0; background: radial-gradient(ellipse 80% 60% at 70% 30%, rgba(13, 17, 23, .5) 0%, transparent 70%); }
.hero-glow { bottom: -20px; left: 50%; transform: translateX(-50%); width: 900px; height: 500px; opacity: .12; background: radial-gradient(ellipse 40% 60% at 50% 100%, rgba(152, 160, 170, .25) 0%, transparent 60%); pointer-events: none; }
.hero-canvas { inset: 0; z-index: 1; }
.hero-vignette {
  inset: 0; z-index: 3;
  background:
    radial-gradient(ellipse 100% 50% at 50% 0%, rgba(3, 5, 8, .9) 0%, transparent 60%),
    radial-gradient(ellipse 100% 40% at 50% 100%, rgba(3, 5, 8, 1) 0%, transparent 60%),
    radial-gradient(ellipse 30% 100% at 0% 50%, rgba(3, 5, 8, .7) 0%, transparent 60%),
    radial-gradient(ellipse 30% 100% at 100% 50%, rgba(3, 5, 8, .7) 0%, transparent 60%);
}
.hero-art { inset: 0; z-index: 4; pointer-events: none; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-img--wide { display: block; object-position: 18% center; }
.hero-img--tall { display: none; object-position: center; }
.hero-tint { inset: 0; z-index: 5; pointer-events: none; background: linear-gradient(270deg, rgba(8, 10, 14, .6) 0%, rgba(8, 10, 14, .45) 38%, transparent 78%); }

.hero-content { position: relative; z-index: 10; padding: 0 24px; width: 100%; }
.hero-subtitle { font-size: 14px; font-weight: 600; letter-spacing: .32em; text-transform: uppercase; color: #EDEEF4; margin-bottom: 24px; filter: drop-shadow(0 2px 10px rgba(0, 0, 0, .9)); }
.hero-title {
  font-family: var(--font-cinzel-decorative), 'Cinzel Decorative', serif;
  font-size: clamp(40px, 4.8vw, 84px);
  font-weight: 700; line-height: 1.15; letter-spacing: -.01em;
  margin-bottom: 28px;
}
.hero-title span { display: block; text-shadow: 0 4px 28px rgba(0, 0, 0, .75); }
.hero-title span:first-child { color: #F4F6F9; }
.hero-title span:last-child { color: #fff; }
.hero-text {
  font-size: 17px; font-weight: 400; line-height: 1.55;
  color: #EDEEF4; text-shadow: 0 2px 14px rgba(0, 0, 0, .85);
  margin: 0 auto 40px;
  text-wrap: balance;
}
.hero-actions { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; }
.hero-nosignup { display: none; }
.hero-scroll {
  position: absolute; bottom: 32px; left: 50%; translate: -50% 0; z-index: 10;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  opacity: 0;
  animation: fade-in 1s 2s forwards, float-y 3s ease-in-out infinite;
}
.hero-scroll span { font-size: 11px; letter-spacing: .4em; text-transform: uppercase; color: #8A93A3; }
.hero-scroll i { display: block; width: 1px; height: 40px; background: linear-gradient(to bottom, #F4F6F9, transparent); animation: pulse 2s cubic-bezier(.4, 0, .6, 1) infinite; }

/* features (the game window) */
.features { position: relative; padding: 100px 48px; overflow: hidden; }
.features-ambient {
  display: none; position: absolute; inset: 0; pointer-events: none;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,.12) 10%, rgba(0,0,0,.45) 22%, rgba(0,0,0,.85) 36%, #000 46%, #000 54%, rgba(0,0,0,.85) 64%, rgba(0,0,0,.45) 78%, rgba(0,0,0,.12) 90%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,.12) 10%, rgba(0,0,0,.45) 22%, rgba(0,0,0,.85) 36%, #000 46%, #000 54%, rgba(0,0,0,.85) 64%, rgba(0,0,0,.45) 78%, rgba(0,0,0,.12) 90%, transparent 100%);
}
.features-ambient img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; opacity: .55; }
.features-inner { position: relative; z-index: 10; max-width: 1200px; margin: 0 auto; }
.features-head { text-align: center; margin-bottom: 48px; }

/* final call to action */
.cta { position: relative; overflow: hidden; padding: 120px 48px; text-align: center; border-top: 1px solid rgba(92, 100, 110, .55); background: #0D1117; }
.cta-skyline { position: absolute; inset: 0; pointer-events: none; -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 40%); mask-image: linear-gradient(to bottom, transparent 0%, #000 40%); }
.cta-skyline img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: bottom; mix-blend-mode: screen; opacity: .05; }
.cta-glow { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse 70% 70% at 50% 50%, rgba(244, 246, 249, .04) 0%, transparent 70%); }
.cta-inner { position: relative; z-index: 10; max-width: 800px; margin: 0 auto; }
.cta-title { font-size: clamp(32px, 5vw, 60px); font-weight: 700; text-transform: uppercase; color: #fff; letter-spacing: .06em; margin-bottom: 20px; filter: drop-shadow(0 0 60px rgba(255, 255, 255, .1)); }
.cta-text { font-size: 20px; font-weight: 300; color: rgba(232, 226, 213, .5); margin: 0 auto 52px; max-width: 520px; }
.cta-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.cta-play {
  display: inline-block; position: relative; overflow: hidden;
  font-size: 12px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase;
  color: #0a0804; background: #F4F6F9; border: none;
  padding: 20px 48px; cursor: pointer;
  box-shadow: 0 0 30px rgba(244, 246, 249, .3), 0 4px 20px rgba(0, 0, 0, .5);
  transition: all .3s;
}
.cta-play::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom right, rgba(255, 255, 255, .2), transparent); }
.cta-play:hover { box-shadow: 0 0 60px rgba(244, 246, 249, .5), 0 8px 30px rgba(0, 0, 0, .6); }

/* footer */
.footer { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 48px; background: rgba(13, 17, 23, .8); border-top: 1px solid rgba(92, 100, 110, .4); }
.footer-brand { justify-self: start; font-family: var(--font-cinzel-decorative), 'Cinzel Decorative', serif; font-size: 16px; color: rgba(244, 246, 249, .4); }
.footer-links { display: flex; gap: 28px; }
.footer-links a { font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: #8A93A3; transition: color .2s; }
.footer-links a:hover { color: #F4F6F9; }
.footer-rights { justify-self: end; font-size: 12px; color: #8A93A3; letter-spacing: .05em; }

/* ───────── sign-in / sign-up ───────── */
.auth-page { position: relative; min-height: 100vh; overflow: hidden; background: #030508; color: #ECEFF3; font-family: var(--font-crimson), Georgia, serif; }
.auth-bg { position: fixed; inset: 0; z-index: 0; }
.auth-bg > * { position: absolute; }
.auth-bg-1 { inset: 0; background: radial-gradient(ellipse 120% 80% at 50% 60%, rgba(0, 50, 80, .35) 0%, transparent 65%); }
.auth-bg-2 { inset: 0; background: radial-gradient(ellipse 60% 50% at 30% 70%, rgba(10, 5, 0, .6) 0%, transparent 70%); }
.auth-bg-3 { inset: 0; background: radial-gradient(ellipse 80% 60% at 70% 30%, rgba(20, 10, 0, .5) 0%, transparent 70%); }
.auth-rings { top: 50%; left: 50%; transform: translate(-50%, -50%); width: 700px; height: 700px; }
.auth-rings i { position: absolute; border-radius: 9999px; }
.auth-ring-1 { inset: 0; border: 1px solid rgba(244, 246, 249, .06); animation: rotate-ring 60s linear infinite; }
.auth-ring-2 { inset: 40px; border: 1px solid rgba(0, 212, 255, .04); animation: rotate-ring 40s linear infinite reverse; }
.auth-ring-3 { inset: 90px; border: 1px dashed rgba(244, 246, 249, .05); animation: rotate-ring 25s linear infinite; }
.auth-glow { bottom: -20px; left: 50%; transform: translateX(-50%); width: 900px; height: 500px; opacity: .12; background: radial-gradient(ellipse 40% 60% at 50% 100%, rgba(0, 212, 255, .3) 0%, transparent 60%); pointer-events: none; }
.auth-rock { inset: 0; z-index: 1; pointer-events: none; }
.auth-rock img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .05; }
.auth-vignette {
  inset: 0; z-index: 2;
  background:
    radial-gradient(ellipse 100% 50% at 50% 0%, rgba(3, 5, 8, .9) 0%, transparent 60%),
    radial-gradient(ellipse 100% 40% at 50% 100%, rgba(3, 5, 8, 1) 0%, transparent 60%),
    radial-gradient(ellipse 30% 100% at 0% 50%, rgba(3, 5, 8, .7) 0%, transparent 60%),
    radial-gradient(ellipse 30% 100% at 100% 50%, rgba(3, 5, 8, .7) 0%, transparent 60%);
}
.auth-main { position: relative; z-index: 10; min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 96px 16px; }
.auth-box { width: 100%; max-width: 448px; }
.auth-head { text-align: center; margin-bottom: 40px; }
.auth-label { display: flex; align-items: center; justify-content: center; gap: 20px; margin-bottom: 20px; }
.auth-label::before, .auth-label::after { content: ""; flex: 1 1 0%; max-width: 120px; height: 1px; }
.auth-label::before { background: linear-gradient(to right, transparent, rgba(244, 246, 249, .4)); }
.auth-label::after { background: linear-gradient(to left, transparent, rgba(244, 246, 249, .4)); }
.auth-label span { font-size: 10px; font-weight: 600; letter-spacing: .5em; text-transform: uppercase; color: #F4F6F9; }
.auth-card {
  padding: 32px;
  border-radius: 6px;
  border: 1px solid rgba(244, 246, 249, .1);
  background: rgba(9, 11, 15, .75);
  -webkit-backdrop-filter: blur(24px);
  backdrop-filter: blur(24px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, .6);
}
.auth-form > :not(:last-child) { margin-bottom: 20px; }
.auth-error { padding: 12px; font-size: 14px; text-align: center; font-weight: 300; background: rgba(251, 44, 54, .1); border: 1px solid rgba(251, 44, 54, .2); color: #ff6467; }
.auth-error[hidden] { display: none; }
.field-label { display: block; margin-bottom: 8px; font-size: 10px; font-weight: 600; color: #79716b; text-transform: uppercase; letter-spacing: .2em; }
.field-input {
  width: 100%;
  padding: 12px 16px;
  border-radius: 4px;
  background: rgba(3, 5, 8, .6);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(244, 246, 249, .15);
  outline: none;
  transition: all .15s cubic-bezier(.4, 0, .2, 1);
  color: #ECEFF3;
  font-size: 15px; font-weight: 300;
}
.field-input::placeholder { color: #44403b; }
.field-input:focus { border-color: rgba(244, 246, 249, .4); box-shadow: 0 0 20px rgba(244, 246, 249, .05); }
.field-input--code { letter-spacing: .15em; }
.field-hint { margin-top: 8px; font-size: 13px; font-weight: 300; color: #57534d; line-height: 1.625; }
.auth-note { font-size: 13px; font-weight: 300; color: #57534d; line-height: 1.625; }
.auth-terms-link { margin-left: 4px; color: #F4F6F9; font-size: 10px; font-weight: 600; letter-spacing: .15em; text-transform: uppercase; transition: color .15s; }
.auth-submit {
  position: relative;
  width: 100%;
  padding: 16px 0;
  border-radius: 4px;
  font-size: 11px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase;
  text-align: center;
  color: #0a0804;
  background: #F4F6F9;
  border: none;
  cursor: pointer;
  box-shadow: 0 0 30px rgba(244, 246, 249, .3), 0 4px 20px rgba(0, 0, 0, .5);
  transition: all .3s;
}
.auth-submit::after { content: ""; position: absolute; inset: 0; border-radius: 4px; background: linear-gradient(to bottom right, rgba(255, 255, 255, .2), transparent); }
.auth-submit:hover { box-shadow: 0 0 60px rgba(244, 246, 249, .5), 0 8px 30px rgba(0, 0, 0, .6); }
.auth-submit:disabled { opacity: .5; cursor: not-allowed; }
.auth-divider { position: relative; margin: 32px 0; height: 1px; background: linear-gradient(to right, transparent, rgba(244, 246, 249, .2), transparent); }
.auth-switch { text-align: center; font-size: 15px; font-weight: 300; color: #57534d; }
.auth-switch a { color: #F4F6F9; font-size: 11px; font-weight: 600; letter-spacing: .15em; text-transform: uppercase; transition: color .15s; }

/* the "I agree" checkbox of sign-up */
.check { display: flex; align-items: center; gap: 12px; cursor: pointer; user-select: none; }
.check input {
  position: relative; flex-shrink: 0;
  width: 16px; height: 16px;
  -webkit-appearance: none; appearance: none;
  border: 1px solid rgba(244, 246, 249, .4);
  background: transparent;
  transition: all .15s;
  cursor: pointer;
}
.check input:checked { background: #F4F6F9; }
.check input::after {
  content: ""; position: absolute; top: 1px; left: 4px;
  width: 6px; height: 10px;
  border-right: 2px solid #030508; border-bottom: 2px solid #030508;
  transform: rotate(45deg);
  opacity: 0;
  transition: opacity .15s;
}
.check input:checked::after { opacity: 1; }
.check span { font-size: 13px; font-weight: 300; color: #57534d; line-height: 1.625; }
.check input:focus-visible, .field-input:focus-visible { outline: none; }

/* ───────── from md (768px) up ───────── */
@media (min-width: 768px) {
  .features-ambient { display: block; }
  .auth-card { padding: 40px; }
}

/* ───────── from sm (640px) up ───────── */
@media (min-width: 640px) {
  .hero-text { font-size: 22px; line-height: 1.6; }
}

/* ───────── from lg (1024px) up ───────── */
@media (min-width: 1024px) {
  .hero { align-items: center; justify-content: flex-end; padding-right: 10vw; text-align: right; }
  .hero-content { width: 52vw; }
  .hero-text { margin-right: 0; margin-left: auto; }
  .hero-actions { justify-content: flex-end; }
}
@media (min-width: 1280px) {
  .hero { padding-right: 14vw; }
  .hero-content { width: 45vw; }
  .hero-img--wide { object-position: center; }
}

/* The wide cut of the artwork, or the portrait cut for tall narrow screens. */
@media (max-aspect-ratio: 1/1) and (max-width: 1023px) {
  .hero-img--wide { display: none; }
  .hero-img--tall { display: block; }
}
@media (max-width: 1023.98px) {
  .hero-tint { background: linear-gradient(180deg, rgba(8, 10, 14, .6) 0%, rgba(8, 10, 14, .5) 50%, rgba(8, 10, 14, .12) 85%, transparent 100%); }
}

/* ───────── below md (768px) ───────── */
@media (max-width: 767.98px) {
  .nav-inner { padding: 20px 24px; }
  .nav-logo { width: 40px; height: 40px; }
  .nav-login { display: none; }
  .hero-glow, .auth-glow { display: none; }
  .features { padding: 100px 24px; }
  .features-head { margin-bottom: 32px; }
  .cta { padding: 120px 24px; }
  .footer { display: flex; flex-direction: column; gap: 20px; text-align: center; padding: 48px 24px; }
  .footer-links { flex-wrap: wrap; justify-content: center; }
  .auth-rings { width: 400px; height: 400px; }
}

/* ───────── below sm (640px): phones ───────── */
@media (max-width: 639.98px) {
  .hero-actions { flex-direction: column; align-items: stretch; gap: 12px; }
  .hero-actions .play-wrap .silver-btn { width: 100%; min-height: 64px; justify-content: center; font-size: 18px; }
  .hero-nosignup { display: block; margin-top: -4px; text-align: center; font-size: 14px; color: #C9CDD3; text-shadow: 0 2px 10px rgba(0, 0, 0, .9); }

  .auth-bg { overflow: hidden; }
  .auth-main { min-height: 100dvh; align-items: flex-start; padding-top: calc(3.5rem + env(safe-area-inset-top)); padding-bottom: calc(2.5rem + var(--safe-b)); }
  .auth-head { margin-bottom: 24px; }
  .auth-label span { font-size: 12px; letter-spacing: .35em; text-align: center; }
  .auth-card { padding: 24px 20px; border-radius: 5px; }
  .field-label { font-size: 11px; }
  .field-input { min-height: 48px; font-size: 16px; }
  .field-hint, .auth-note, .check span { font-size: 14px; }
  .auth-terms-link { font-size: 12px; padding: 8px 0; }
  .auth-submit { min-height: 48px; font-size: 13px; letter-spacing: .14em; }
  .auth-submit:active { transform: scale(.98); }
  .auth-divider { margin: 24px 0; }
  .auth-switch a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 8px; font-size: 13px; }
  .check { min-height: 48px; padding: 4px 0; }
  .check input { width: 20px; height: 20px; }
  .check input::after { left: 6px; top: 2px; }
}
