/* ==========================================================================
   Kira (奇乐) — kira.fans public site · 星界 (star-realm) edition
   A night sky, gold as the action colour, lavender and a little candy pink as
   accents — the app's own free 星界 theme (packages/ui-tokens starRealmNight),
   so the site and the screenshots in it are one world. Real app screens sit
   in CSS phone frames. No scripts, no third-party requests; the one webfont is
   a self-hosted subset of the app's rounded CJK face (江城圆体, OFL).

   Contrast: body text is --ink (#FCEFF7) / --muted (#B9A3C4, 8:1 on --bg);
   text on gold uses --on-gold (#2A1030). Gold and lavender are never used
   for small text on the night ground below AA.
   ========================================================================== */

@font-face {
  font-family: "Kira Round";
  src: url("/assets/fonts/kira-round.e24d580de4.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #1b0e22; /* starRealm sky0 */
  --bg-deep: #120818;
  --surface: #2a1030; /* sky1 */
  --surface-alt: #3a1743;
  --surface-soft: #341539;
  --panel: rgba(42, 16, 48, 0.72);
  --border: #4a2b52;
  --border-soft: rgba(74, 43, 82, 0.6);
  --ink: #fceff7;
  --muted: #b9a3c4;
  --gold: #f7c948;
  --gold-soft: #f7dfa5;
  --gold-ink: #f0c46b;
  --on-gold: #2a1030;
  --lav: #c9a0e8;
  --lav-soft: rgba(201, 160, 232, 0.18);
  --pink: #ffb3db;
  --pink-deep: #ff97d0;
  --glow-gold: rgba(247, 201, 72, 0.28);

  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 26px;
  --pill: 999px;

  --font-body: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", "Nunito",
    "Quicksand", system-ui, sans-serif;
  --font-display: "Kira Round", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",
    "Noto Sans SC", "Nunito", system-ui, sans-serif;

  --shell: min(1120px, 100% - 2.5rem);
  --measure: min(38em, 100% - 2.5rem);

  --star-clip: polygon(50% 0%, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0% 50%, 39% 39%);
  --shadow-deep: 0 30px 60px -28px rgba(0, 0, 0, 0.85);
  --sticker-outline: drop-shadow(3px 0 0 #fff) drop-shadow(-3px 0 0 #fff) drop-shadow(0 3px 0 #fff)
    drop-shadow(0 -3px 0 #fff) drop-shadow(2px 2px 0 #fff) drop-shadow(-2px -2px 0 #fff)
    drop-shadow(2px -2px 0 #fff) drop-shadow(-2px 2px 0 #fff);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  color-scheme: dark;
}

body {
  margin: 0;
  color: var(--ink);
  background-color: var(--bg);
  background-image: radial-gradient(60% 40% at 50% -5%, rgba(247, 201, 72, 0.14), transparent 70%),
    radial-gradient(50% 35% at 85% 20%, rgba(201, 160, 232, 0.16), transparent 70%),
    radial-gradient(40% 30% at 10% 60%, rgba(255, 151, 208, 0.1), transparent 70%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-deep) 100%);
  background-attachment: fixed;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--gold-soft);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--gold);
}

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  padding: 0.5rem 0.9rem;
  background: var(--surface);
  border-radius: var(--pill);
  z-index: 10;
}

.skip-link:focus {
  top: 1rem;
}

h1,
h2 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  margin: 0;
  letter-spacing: 0.01em;
}

/* ---------- the sky: three drifting star layers (CSS only) ---------- */

.sky {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.stars {
  position: absolute;
  inset: -20%;
  background-repeat: repeat;
  opacity: 0.9;
}

.s1 {
  background-image: radial-gradient(1.2px 1.2px at 12% 18%, #fff, transparent 60%),
    radial-gradient(1px 1px at 48% 72%, #fff, transparent 60%),
    radial-gradient(1.4px 1.4px at 78% 30%, #fff8e0, transparent 60%),
    radial-gradient(1px 1px at 30% 88%, #fff, transparent 60%),
    radial-gradient(1px 1px at 88% 80%, #fff, transparent 60%),
    radial-gradient(1.2px 1.2px at 64% 12%, #fff, transparent 60%);
  background-size: 420px 420px;
  animation: drift 90s linear infinite;
}

.s2 {
  background-image: radial-gradient(1px 1px at 22% 44%, #f7dfa5, transparent 60%),
    radial-gradient(1.6px 1.6px at 70% 60%, #fff, transparent 60%),
    radial-gradient(1px 1px at 8% 76%, #fff, transparent 60%),
    radial-gradient(1px 1px at 56% 28%, #c9a0e8, transparent 60%),
    radial-gradient(1.2px 1.2px at 92% 12%, #fff, transparent 60%);
  background-size: 640px 640px;
  opacity: 0.7;
  animation: twinkle 6s ease-in-out infinite;
}

.s3 {
  background-image: radial-gradient(2px 2px at 40% 20%, #f7c948, transparent 60%),
    radial-gradient(2px 2px at 82% 66%, #ffb3db, transparent 60%),
    radial-gradient(1.8px 1.8px at 16% 62%, #fff, transparent 60%);
  background-size: 900px 900px;
  opacity: 0.8;
  animation: twinkle 9s ease-in-out infinite reverse;
}

/* ---------- drawn motifs (never a glyph from the emoji font) ---------- */

.star {
  display: inline-block;
  width: 0.85em;
  height: 0.85em;
  background: var(--gold);
  clip-path: var(--star-clip);
  vertical-align: -0.08em;
  margin-right: 0.4em;
}

.star-gold {
  margin: 0;
  width: 0.7em;
  height: 0.7em;
}

.stamp {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  color: var(--gold-ink);
  border: 3px double var(--gold-ink);
  border-radius: 8px;
  padding: 0.3em 0.8em;
  transform: rotate(-5deg);
  opacity: 0.95;
  white-space: nowrap;
}

/* ---------- top bar ---------- */

.top {
  width: var(--shell);
  margin: 0 auto;
  padding: 1.4rem 0 0.2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-block;
  filter: var(--sticker-outline);
}

.logo {
  width: 124px;
}

/* ---------- hero ---------- */

.hero {
  width: var(--shell);
  margin: 1rem auto 0;
  text-align: center;
}

.eyebrow {
  margin: 0 0 0.6rem;
  font-size: 0.9rem;
  color: var(--muted);
  letter-spacing: 0.06em;
}

.hero h1 {
  font-size: clamp(2.4rem, 8vw, 4.6rem);
  color: var(--ink);
  text-shadow: 0 0 40px rgba(247, 201, 72, 0.18);
}

.lede {
  margin: 1rem auto 0;
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--gold-soft);
  text-wrap: balance;
}

.lede-en {
  margin: 0.35rem auto 0;
  color: var(--muted);
  max-width: 36ch;
}

.stores {
  margin-top: 1.4rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.8rem;
}

.store {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 10.5rem;
  padding: 0.55rem 1.1rem;
  background: var(--panel);
  border: 2px dashed var(--border);
  border-radius: 14px;
  color: var(--ink);
  text-decoration: none;
  backdrop-filter: blur(6px);
}

.store-kicker {
  font-size: 0.72rem;
  color: var(--gold-ink);
  letter-spacing: 0.1em;
}

.store-name {
  font-family: var(--font-display);
  font-size: 1.1rem;
}

.is-pending {
  color: var(--muted);
}

.stores-note {
  margin: 0.8rem 0 0;
  font-size: 0.9rem;
  color: var(--muted);
}

/* ---------- the showcase: three real screens in phone frames ---------- */

.showcase {
  position: relative;
  width: var(--shell);
  margin: 2.2rem auto 2.6rem;
}

.phones {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding: 0 14vw;
  padding: 1.2rem 14vw 1.4rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.phones::-webkit-scrollbar {
  display: none;
}

.phone {
  margin: 0;
  flex: 0 0 min(280px, 72vw);
  scroll-snap-align: center;
  position: relative;
  padding: 9px;
  border-radius: 38px;
  background: #0d0713;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-deep), inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.phone::before {
  /* the notch */
  content: "";
  position: absolute;
  top: 9px;
  left: 50%;
  width: 38%;
  height: 20px;
  background: #0d0713;
  border-radius: 0 0 14px 14px;
  transform: translateX(-50%);
  z-index: 1;
}

.screen {
  aspect-ratio: 1125 / 2277; /* the owner's iPhone screenshots */
  overflow: hidden;
  border-radius: 30px;
  background: var(--surface);
}

.screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

.phone.c {
  box-shadow: var(--shadow-deep), 0 0 90px var(--glow-gold), inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.phone.c .screen {
  border-radius: 30px;
}

.mascot-peek {
  position: absolute;
  width: 96px;
  left: -8px;
  bottom: 1.6rem;
  filter: var(--sticker-outline);
  animation: bob 5.5s ease-in-out infinite;
  z-index: 2;
}

.showcase-note {
  margin: 0;
  text-align: center;
  font-size: 0.85rem;
  color: var(--muted);
  letter-spacing: 0.1em;
}

/* ---------- the board: glass panels (星界's card family) ---------- */

.board {
  width: var(--shell);
  margin: 0 auto 2.4rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.1rem;
}

.panel {
  position: relative;
  padding: 1.3rem 1.3rem 1.4rem;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  backdrop-filter: blur(8px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), var(--shadow-deep);
}

.panel::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 1.3rem;
  width: 3.2rem;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), transparent);
}

.kicker {
  margin: 0;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  color: var(--gold-ink);
  font-family: var(--font-display);
}

.panel h2 {
  font-size: 1.35rem;
  margin-top: 0.3rem;
  color: var(--ink);
}

.panel p {
  margin: 0.45rem 0 0;
  color: var(--muted);
}

.rail {
  margin-top: 1rem;
  padding-top: 0.7rem;
  border-top: 2px dashed var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 0.3em;
  color: var(--gold-ink);
}

.chips {
  list-style: none;
  margin: 0.9rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.chips li {
  padding: 0.15rem 0.75rem;
  border-radius: var(--pill);
  background: var(--lav-soft);
  border: 1.5px solid var(--lav);
  font-size: 0.85rem;
  font-family: var(--font-display);
  color: var(--ink);
}

.bubble {
  position: absolute;
  right: 1rem;
  bottom: -14px;
  padding: 0.35rem 0.85rem;
  background: var(--gold);
  color: var(--on-gold);
  border-radius: 14px 14px 4px 14px;
  font-family: var(--font-display);
  font-size: 0.85rem;
  transform: rotate(-2deg);
  box-shadow: 0 10px 24px -12px rgba(247, 201, 72, 0.7);
}

/* ---------- themes + gallery ---------- */

.themes {
  width: var(--shell);
  margin: 0 auto 2.4rem;
  text-align: center;
}

.theme-dots {
  list-style: none;
  margin: 0.6rem 0 0;
  padding: 0;
  display: flex;
  justify-content: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-size: 0.95rem;
}

.theme-dots li {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.25rem 0.9rem;
  border-radius: var(--pill);
  border: 1.5px solid var(--border);
  color: var(--muted);
}

.theme-dots li.is-on {
  color: var(--on-gold);
  background: var(--gold);
  border-color: var(--gold);
}

.dot {
  width: 0.7em;
  height: 0.7em;
  border-radius: 50%;
  display: inline-block;
}

.dot-candy {
  background: var(--pink-deep);
}

.dot-star {
  background: transparent;
  border: 2px solid currentColor;
}

.dot-meadow {
  background: #7dc76a;
}

.gallery {
  margin-top: 1.4rem;
  display: flex;
  gap: 0.9rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 0.6rem 0.4rem 1rem;
  scrollbar-width: none;
}

.gallery::-webkit-scrollbar {
  display: none;
}

.phone.mini {
  flex: 0 0 min(180px, 46vw);
  padding: 6px;
  border-radius: 26px;
}

.phone.mini::before {
  height: 12px;
  top: 6px;
}

.phone.mini .screen {
  border-radius: 20px;
}

.phone.mini figcaption {
  margin-top: 0.55rem;
  font-size: 0.8rem;
  color: var(--muted);
  letter-spacing: 0.06em;
}

/* ---------- contact + footer ---------- */

.contact {
  width: var(--shell);
  margin: 0 auto 2rem;
  text-align: center;
}

.contact p {
  margin: 0;
  color: var(--muted);
}

.contact a {
  display: inline-block;
  margin-left: 0.4rem;
  padding: 0.25rem 0.9rem;
  background: var(--panel);
  border: 1.5px solid var(--border);
  border-radius: var(--pill);
  font-weight: 600;
  text-decoration: none;
  color: var(--gold-soft);
}

.site-foot {
  width: var(--shell);
  margin: 0 auto;
  padding: 1.6rem 0 2.4rem;
  border-top: 1px dashed var(--border);
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
}

.foot-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem 1.2rem;
}

.foot-nav a {
  font-weight: 600;
  text-decoration: none;
}

.foot-nav a[aria-current="page"] {
  color: var(--ink);
  border-bottom: 2px solid var(--gold);
}

.foot-lang {
  padding: 0 0.7rem;
  border: 1.5px solid var(--border);
  border-radius: var(--pill);
  background: var(--panel);
}

.foot-note {
  margin: 1rem 0 0;
}

.foot-copy {
  margin: 0.3rem 0 0;
  font-size: 0.8rem;
}

/* ---------- 404 ---------- */

.notfound main {
  width: var(--shell);
  margin: 2rem auto;
  text-align: center;
}

.polaroid-404 {
  position: relative;
  width: min(260px, 76%);
  margin: 0 auto 1.6rem;
  padding: 10px 10px 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
}

.polaroid-404 .tape {
  display: none;
}

.polaroid-404 .photo {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 4px;
  background: radial-gradient(circle at 50% 60%, #3a1743, var(--bg) 70%);
}

.polaroid-404 .mascot {
  width: 90%;
  margin: 5% auto 0;
  filter: var(--sticker-outline);
}

.polaroid-404 .caption {
  margin: 0.5rem 0 0;
  font-family: var(--font-display);
  color: var(--gold-ink);
  letter-spacing: 0.2em;
}

.notfound h1 {
  font-size: 2rem;
}

.notfound-back {
  margin-top: 1.4rem;
}

/* ---------- documents ---------- */

.doc-head {
  width: var(--measure);
  margin: 0 auto;
  padding: 1.4rem 0 0.4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.doc-home {
  display: inline-block;
  filter: var(--sticker-outline);
}

.doc-home img {
  width: 92px;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  padding: 0.2rem;
  background: var(--panel);
  border: 1.5px solid var(--border);
  border-radius: var(--pill);
  font-size: 0.85rem;
}

.lang-switch a,
.lang-switch span {
  padding: 0.15rem 0.75rem;
  border-radius: var(--pill);
  text-decoration: none;
  color: var(--muted);
}

.lang-switch span[aria-current] {
  background: var(--gold);
  color: var(--on-gold);
  font-weight: 700;
}

.doc-body {
  position: relative;
  width: var(--measure);
  margin: 1.2rem auto 2rem;
  padding: 2.2rem clamp(1.1rem, 4vw, 2.6rem) 2.4rem;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  backdrop-filter: blur(8px);
  font-size: 1rem;
  line-height: 1.85;
}

.tape-doc {
  display: none;
}

.doc-body h1 {
  font-size: clamp(1.7rem, 4.5vw, 2.3rem);
}

.doc-meta {
  margin: 0.4rem 0 1.6rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.doc-body h2 {
  font-family: var(--font-body);
  font-size: 1.12rem;
  margin: 1.8rem 0 0.5rem;
  padding-left: 1.1em;
  position: relative;
  color: var(--ink);
}

.doc-body h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.42em;
  width: 0.7em;
  height: 0.7em;
  background: var(--gold);
  clip-path: var(--star-clip);
}

.doc-body p {
  margin: 0.7rem 0;
}

.doc-body ul {
  margin: 0.5rem 0 0.9rem;
  padding-left: 1.3rem;
}

.doc-body li {
  margin: 0.35rem 0;
}

.doc-body li::marker {
  color: var(--gold-ink);
}

.stub-flag {
  display: inline-block;
  padding: 0.1rem 0.7rem;
  border-radius: var(--pill);
  background: var(--lav-soft);
  border: 1.5px solid var(--lav);
  color: var(--ink);
  font-size: 0.85rem;
}

/* ---------- motion ---------- */

@keyframes bob {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-7px);
  }
}

@keyframes twinkle {
  0%,
  100% {
    opacity: 0.35;
  }
  50% {
    opacity: 0.95;
  }
}

@keyframes drift {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(-60px, -40px, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .mascot-peek,
  .stars {
    animation: none;
  }
}

/* ---------- wider screens ---------- */

@media (min-width: 720px) {
  .logo {
    width: 150px;
  }

  .lede {
    font-size: 1.15rem;
  }

  .board {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.4rem;
  }

  .phones {
    overflow: visible;
    justify-content: center;
    align-items: flex-end;
    gap: 0;
    padding: 2rem 0 1.6rem;
  }

  .phone {
    flex: 0 0 240px;
  }

  /* DOM order is world-first (so the phone strip on mobile opens on it);
     the desktop fan puts it back in the middle. */
  .phone.l {
    order: 1;
    transform: rotate(-7deg) translate(28px, 22px) scale(0.92);
    z-index: 0;
  }

  .phone.c {
    order: 2;
    flex-basis: 262px;
    z-index: 2;
  }

  .phone.r {
    order: 3;
    transform: rotate(7deg) translate(-28px, 22px) scale(0.92);
    z-index: 0;
  }

  .mascot-peek {
    width: 130px;
    left: calc(50% - 350px);
    bottom: 2.2rem;
  }

  .gallery {
    overflow: visible;
    justify-content: center;
  }

  .phone.mini {
    flex-basis: 170px;
  }
}

@media (min-width: 1000px) {
  .hero h1 {
    font-size: clamp(3rem, 5vw, 4.8rem);
  }

  .phone {
    flex-basis: 270px;
  }

  .phone.c {
    flex-basis: 300px;
  }

  .mascot-peek {
    left: calc(50% - 420px);
  }
}

/* ---------- legal index ---------- */

.idx {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
}

.idx li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 0.8rem 0;
  border-top: 1px dashed var(--border);
}

.idx li:last-child {
  border-bottom: 1px dashed var(--border);
}

.idx li > a {
  font-family: var(--font-display);
  font-size: 1.1rem;
  text-decoration: none;
  color: var(--ink);
}

.idx-other a {
  font-size: 0.85rem;
  color: var(--muted);
  text-decoration: none;
}


/* ---------- apply (kira.fans/beta) ---------- */

.cta {
  margin: 1.4rem 0 0;
}

.apply-btn,
.submit {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.6rem;
  border-radius: var(--pill);
  background: var(--gold);
  color: var(--on-gold);
  font-family: var(--font-display);
  font-size: 1.05rem;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  box-shadow: 0 14px 30px -14px rgba(247, 201, 72, 0.8);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.apply-btn:hover,
.submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 34px -14px rgba(247, 201, 72, 0.95);
  color: var(--on-gold);
}

.star-btn {
  background: var(--on-gold);
  margin: 0;
  width: 0.7em;
  height: 0.7em;
}

.apply-main {
  width: min(560px, 100% - 2.5rem);
  margin: 0 auto 2.5rem;
}

.apply-intro {
  text-align: center;
  margin: 1rem 0 1.6rem;
}

.apply-intro h1 {
  font-size: clamp(2.2rem, 7vw, 3.2rem);
}

.apply-form {
  position: relative;
  padding: 1.6rem clamp(1.1rem, 4vw, 2rem) 1.8rem;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(8px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), var(--shadow-deep);
}

.apply-form::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 1.5rem;
  width: 3.2rem;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), transparent);
}

.field {
  margin: 0 0 1.1rem;
  padding: 0;
  border: 0;
  min-width: 0;
}

.field > label,
.field > legend {
  display: block;
  font-family: var(--font-display);
  font-size: 0.95rem;
  margin: 0 0 0.4rem;
  color: var(--ink);
}

.req,
.opt {
  font-family: var(--font-body);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  margin-left: 0.4rem;
  color: var(--gold-ink);
}

.opt {
  color: var(--muted);
}

.field input[type="email"],
.field input[type="text"],
.field select {
  width: 100%;
  padding: 0.75rem 0.95rem;
  border-radius: 12px;
  border: 1.5px solid var(--border);
  background: rgba(27, 14, 34, 0.7);
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
  outline: none;
  transition: border-color 140ms ease, box-shadow 140ms ease;
}

.field input:focus,
.field select:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(247, 201, 72, 0.18);
}

.field input::placeholder {
  color: rgba(185, 163, 196, 0.6);
}

.hint {
  margin: 0.4rem 0 0;
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.55;
}

.select-wrap {
  position: relative;
}

.select-wrap::after {
  content: "";
  position: absolute;
  right: 1rem;
  top: 50%;
  width: 0.55rem;
  height: 0.55rem;
  border-right: 2px solid var(--gold-ink);
  border-bottom: 2px solid var(--gold-ink);
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}

.field select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 2.4rem;
}

.tiles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.7rem;
}

.tile {
  position: relative;
  cursor: pointer;
}

.tile input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

.tile-body {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  padding: 0.85rem 1rem;
  border-radius: 14px;
  border: 1.5px solid var(--border);
  background: rgba(27, 14, 34, 0.7);
  transition: border-color 140ms ease, background 140ms ease, transform 140ms ease;
}

.tile-body b {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--ink);
}

.tile-body small {
  font-size: 0.78rem;
  color: var(--muted);
}

.tile input:checked + .tile-body {
  border-color: var(--gold);
  background: rgba(247, 201, 72, 0.12);
  transform: translateY(-1px);
}

.tile input:focus-visible + .tile-body {
  box-shadow: 0 0 0 3px rgba(247, 201, 72, 0.25);
}

.tile input:checked + .tile-body b::after {
  content: "";
  display: inline-block;
  width: 0.6em;
  height: 0.6em;
  margin-left: 0.45em;
  background: var(--gold);
  clip-path: var(--star-clip);
  vertical-align: -0.02em;
}

.hp {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.consents {
  margin: 0.4rem 0 1.2rem;
  display: grid;
  gap: 0.6rem;
}

.check {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.9rem;
  color: var(--muted);
  cursor: pointer;
}

.check input {
  flex: 0 0 auto;
  width: 1.15rem;
  height: 1.15rem;
  margin-top: 0.15rem;
  accent-color: var(--gold);
}

.check a {
  color: var(--gold-soft);
}

.submit {
  width: 100%;
  justify-content: center;
  font-size: 1.1rem;
  padding: 0.95rem 1.4rem;
}

.fine {
  margin: 0.9rem 0 0;
  font-size: 0.78rem;
  color: var(--muted);
  text-align: center;
  line-height: 1.55;
}

.thanks-card {
  position: relative;
  text-align: center;
  padding: 2.2rem clamp(1.1rem, 4vw, 2rem) 2rem;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(8px);
  margin-top: 3.4rem;
}

.mascot-thanks {
  width: 140px;
  margin: -5.4rem auto 0.4rem;
  filter: var(--sticker-outline);
  animation: bob 5.5s ease-in-out infinite;
}

.thanks-card h1 {
  font-size: 2.2rem;
}

.next-steps {
  list-style: none;
  margin: 1.2rem 0 0;
  padding: 0;
  text-align: left;
  display: grid;
  gap: 0.6rem;
  color: var(--muted);
}

.next-steps li {
  padding-left: 1.2em;
  position: relative;
}

.next-steps li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 0.6em;
  height: 0.6em;
  background: var(--gold);
  clip-path: var(--star-clip);
}

.next-steps b {
  color: var(--ink);
}

@media (prefers-reduced-motion: reduce) {
  .mascot-thanks {
    animation: none;
  }
}
