@font-face { font-family: "Marcellus"; src: url("assets/fonts/marcellus-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("assets/fonts/poppins-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("assets/fonts/poppins-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("assets/fonts/poppins-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("assets/fonts/poppins-latin-800-normal.woff2") format("woff2"); font-weight: 800; font-display: swap; }

/* FogWright: night sea, aurora, ember heart and lantern gold, the game's own colours */
:root {
  --deep: #071321;
  --night: #0b1a29;
  --sea: #10283a;
  --aurora: #4fe0b6;
  --ember: #ff7c3e;
  --gold: #f3c35b;
  --gold-deep: #c8912c;
  --mist: #d6e2ec;
  --muted: #93a7b9;
  --violet: #8f7fd8;
  --line: rgba(214, 226, 236, 0.12);
  --display: "Marcellus", "Palatino Linotype", Georgia, serif;
  --ui: "Poppins", system-ui, sans-serif;
  --wrap: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--deep);
  color: var(--mist);
  font: 400 17px/1.65 var(--ui);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--gold); text-underline-offset: 3px; }
a:hover { color: #ffd98a; }
:focus-visible { outline: 3px solid var(--aurora); outline-offset: 3px; border-radius: 6px; }

h2 {
  font: 400 clamp(34px, 4.6vw, 54px)/1.1 var(--display);
  color: #fff;
  margin: 0 0 18px;
  letter-spacing: 0.01em;
}
h3 { font: 600 19px/1.3 var(--ui); color: #fff; margin: 0 0 6px; }
p { margin: 0 0 14px; }
.lede { font-size: 19px; color: var(--mist); max-width: 62ch; }
.lede-wide { max-width: none; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 28px; }
.narrow { max-width: 780px; }
section { padding: 64px 0; position: relative; }

/* ---------- nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 28px;
  background: linear-gradient(to bottom, rgba(7, 19, 33, 0.85), rgba(7, 19, 33, 0));
}
.nav-brand { display: flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; font: 600 18px var(--ui); }
.nav-brand img { border-radius: 10px; }
.nav-brand .nav-logo { border-radius: 0; height: 66px; width: auto; display: block; filter: drop-shadow(0 2px 6px rgba(0,0,0,.45)); }
@media (max-width: 640px) { .nav-brand .nav-logo { height: 50px; } }
.nav nav { display: flex; gap: 26px; }
.nav nav a { color: var(--mist); text-decoration: none; font-weight: 500; font-size: 15px; }
.nav nav a:hover { color: var(--gold); }

/* ---------- hero: the fog parts once, like the game's own opening ---------- */
.hero {
  min-height: 100svh;
  display: flex; align-items: center;
  padding: 120px 0 100px;
  overflow: hidden;
  isolation: isolate;
}
.hero {
  background:
    radial-gradient(ellipse 60% 50% at 18% 8%, rgba(79, 224, 182, 0.16), rgba(79, 224, 182, 0) 70%),
    radial-gradient(ellipse 50% 60% at 10% 90%, rgba(143, 127, 216, 0.10), rgba(143, 127, 216, 0) 70%),
    var(--deep);
}
.hero-video {
  position: absolute; top: 50%; right: -2vw; width: 64vw; height: auto; aspect-ratio: 16 / 9;
  transform: translateY(-50%);
  object-fit: cover; z-index: -3;
  -webkit-mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 62%, transparent 100%);
          mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 62%, transparent 100%);
}
.hero-shade {
  position: absolute; inset: 0; z-index: -2;
  background:
    linear-gradient(to right, rgba(7, 19, 33, 0.55) 0%, rgba(7, 19, 33, 0.35) 36%, rgba(7, 19, 33, 0) 56%),
    linear-gradient(to bottom, rgba(7, 19, 33, 0.35) 0%, rgba(7, 19, 33, 0) 22%, rgba(7, 19, 33, 0) 72%, var(--deep) 100%);
}
.fog-veil { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.bank {
  position: absolute; width: 95vw; height: 70vh;
  background: radial-gradient(closest-side, rgba(190, 212, 230, 0.95), rgba(150, 178, 204, 0.55) 55%, rgba(150, 178, 204, 0) 100%);
  filter: blur(8px);
  animation: part 3.4s cubic-bezier(0.55, 0, 0.25, 1) 0.35s forwards;
}
.b1 { left: -30vw; top: -12vh; --dx: -70vw; --dy: -10vh; }
.b2 { right: -30vw; top: 4vh; --dx: 70vw; --dy: -6vh; }
.b3 { left: -18vw; bottom: -20vh; --dx: -55vw; --dy: 20vh; }
.b4 { right: -18vw; bottom: -16vh; --dx: 60vw; --dy: 18vh; }
@keyframes part {
  to { transform: translate(var(--dx), var(--dy)) scale(1.2); opacity: 0; }
}
.hero-inner { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 28px; animation: rise 1.6s ease-out 1.5s both; }
.hero-copy { max-width: 560px; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
.hero h1 { margin: 0 0 0 -14px; }
.wordmark { width: min(500px, 86vw); height: auto; filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.55)); }
.hero-line {
  font: 400 clamp(26px, 2.9vw, 38px)/1.22 var(--display);
  color: #fff; margin: 22px 0 12px;
}
.hero-sub { color: var(--mist); max-width: 44ch; margin: 0 0 32px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-note { margin-top: 18px; font-size: 14px; color: var(--muted); }
.invite { margin-left: 6px; color: var(--gold); font-weight: 600; text-decoration: underline; text-decoration-color: rgba(243, 195, 91, 0.45); text-underline-offset: 4px; white-space: nowrap; }
.invite:hover { text-decoration-color: var(--gold); }
@media (max-width: 760px) {
  .hero { align-items: flex-end; padding-top: 52vh; }
  .hero-video { top: 0; right: 0; transform: none; width: 100%; height: 64vh; aspect-ratio: auto; object-position: 50% 50%; -webkit-mask-image: linear-gradient(to bottom, #000 70%, transparent); mask-image: linear-gradient(to bottom, #000 70%, transparent); }
  .hero-shade { background: linear-gradient(to bottom, rgba(7, 19, 33, 0.2) 0%, rgba(7, 19, 33, 0) 30%, rgba(7, 19, 33, 0.85) 58%, var(--deep) 66%); }
  .hero h1 { margin-left: -8px; }
}

/* buttons: gold goes forward, grey waits (the game's own rule) */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 56px; padding: 0 30px; border-radius: 14px;
  font: 600 16px var(--ui); text-decoration: none; letter-spacing: 0.02em;
}
.btn-gold {
  color: #2a1a04;
  background: linear-gradient(to bottom, #ffd77a, var(--gold) 45%, var(--gold-deep));
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.5) inset, 0 -3px 0 rgba(0, 0, 0, 0.22) inset, 0 10px 24px rgba(0, 0, 0, 0.35);
}
.btn-gold:hover { color: #2a1a04; filter: brightness(1.07); }
.play-ic { width: 24px; height: 24px; margin: 0 10px 0 -6px; flex: none; }
.play-ic circle { fill: #2a1a04; }
.play-ic path { fill: #ffd77a; }
.btn-soon {
  color: var(--mist);
  background: rgba(16, 40, 58, 0.7);
  border: 1px solid var(--line);
  backdrop-filter: blur(6px);
}

/* ---------- trailer ---------- */
.trailer { padding-top: 8px; text-align: center; }
.video-frame {
  margin: 34px auto 0; max-width: 1000px;
  border-radius: 20px; overflow: hidden;
  border: 1px solid rgba(243, 195, 91, 0.35);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55), 0 0 0 8px rgba(16, 40, 58, 0.6);
  background: #000;
}
.video-frame video { width: 100%; display: block; aspect-ratio: 16 / 9; }

/* ---------- how a match goes ---------- */
.play { background: linear-gradient(to bottom, var(--deep), var(--night)); }
.play-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 64px; align-items: center; }
.steps { list-style: none; counter-reset: step; padding: 0; margin: 34px 0 0; }
.steps li {
  counter-increment: step; position: relative;
  padding: 0 0 24px 66px; margin-bottom: 24px;
  border-bottom: 1px solid var(--line);
}
.steps li:last-child { border-bottom: 0; margin-bottom: 0; }
.steps li::before {
  content: counter(step);
  position: absolute; left: 0; top: -4px;
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  font: 400 22px var(--display); color: var(--gold);
  border: 1.5px solid rgba(243, 195, 91, 0.55);
}
.steps p { color: var(--muted); margin: 0; }
.phone { margin: 0; justify-self: center; }
.phone img {
  width: min(360px, 80vw); height: auto; aspect-ratio: 9 / 16; border-radius: 34px;
  border: 10px solid #17222e;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 40px 90px rgba(0, 0, 0, 0.6), 0 0 120px rgba(79, 224, 182, 0.12);
}

/* ---------- land ---------- */
.land { background: var(--night); }
.kit { list-style: none; padding: 0; margin: 40px 0 48px; display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }
.kit li { text-align: center; }
.kit img { width: 100%; max-width: 150px; height: 170px; object-fit: contain; object-position: 50% 100%; margin: 0 auto 12px; filter: drop-shadow(0 12px 14px rgba(0, 0, 0, 0.45)); }
.kit span { font-weight: 600; font-size: 15px; color: #fff; }
.rules-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; padding: 40px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.rule { display: grid; grid-template-columns: 64px minmax(0, 252px); gap: 16px; align-items: center; justify-content: center; }
.rule img { width: 64px; height: 112px; object-fit: contain; }
.more-grid img { width: 96px; height: 96px; object-fit: contain; filter: drop-shadow(0 8px 12px rgba(0, 0, 0, 0.45)); }
.rule p { color: var(--muted); margin: 0; }

/* ---------- foes ---------- */
.foes { background: linear-gradient(to bottom, var(--sea), var(--night)); }
.hint { color: var(--muted); font-size: 15px; margin: -6px 0 0; }
.foe-list, .masters { list-style: none; padding: 0; margin: 34px 0 0; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 18px; }
.foe-list li, .masters li { position: relative; text-align: center; cursor: default; outline-offset: 6px; }
.foe-list img, .masters img { width: 100%; max-width: 140px; aspect-ratio: 1; object-fit: contain; margin: 0 auto 10px; filter: drop-shadow(0 12px 16px rgba(0, 0, 0, 0.5)); transition: transform 0.2s ease; }
.foe-list span { display: block; font-weight: 600; font-size: 15px; color: #fff; white-space: nowrap; }
.masters span { display: block; font-weight: 600; font-size: 13px; color: var(--gold); line-height: 1.3; white-space: nowrap; }
.foe-list li:hover img, .foe-list li:focus img, .masters li:hover img, .masters li:focus img { transform: translateY(-6px) scale(1.04); }
/* the game's own tooltip: slate-violet, a faint gold edge, a little arrow */
.tip {
  position: absolute; left: 50%; bottom: calc(100% - 6px); z-index: 5;
  width: 220px; margin: 0; padding: 14px 16px;
  transform: translate(-50%, 8px); opacity: 0; pointer-events: none;
  background: rgba(38, 36, 62, 0.97); border: 1px solid rgba(243, 195, 91, 0.45); border-radius: 14px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55);
  color: var(--mist); font-size: 14px; line-height: 1.5; text-align: center;
  transition: opacity 0.18s ease, transform 0.18s ease;
}
.tip::after {
  content: ""; position: absolute; left: 50%; top: 100%; width: 12px; height: 12px;
  background: inherit; border-right: inherit; border-bottom: inherit;
  transform: translate(-50%, -6px) rotate(45deg);
}
.foe-list li:hover .tip, .foe-list li:focus .tip, .masters li:hover .tip, .masters li:focus .tip { opacity: 1; transform: translate(-50%, 0); }
.masters-title { margin: 48px 0 20px; font: 400 clamp(24px, 2.6vw, 32px)/1.2 var(--display); }
.masters { margin-top: 0; }
@media (max-width: 960px) { .foe-list, .masters { grid-template-columns: repeat(4, minmax(0, 1fr)); row-gap: 30px; } }
@media (max-width: 560px) { .foe-list, .masters { grid-template-columns: repeat(3, minmax(0, 1fr)); } .tip { width: 180px; } }

/* ---------- seven roads ---------- */
.roads { background: var(--sea); overflow: hidden; }
.road-strip {
  list-style: none; margin: 0; padding: 0 0 4px;
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(250px, 284px); gap: 22px;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
}
.road-strip > li {
  scroll-snap-align: start; border-radius: 20px; overflow: hidden;
  background: var(--deep); border: 1px solid var(--line);
}
.road-strip > li > img { aspect-ratio: 3 / 4; object-fit: cover; width: 100%; }
.road-strip > li > div { padding: 18px 20px 20px; }
.road-strip p { color: var(--muted); font-size: 15px; margin: 0 0 12px; white-space: nowrap; }
.road-strip .boss { display: flex; align-items: center; gap: 10px; margin: 0; color: var(--gold); font-weight: 600; font-size: 14px; }
.road-strip .boss img { width: 40px; height: 40px; object-fit: contain; }

/* ---------- more ---------- */
.more { background: var(--night); }
.more-layout { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 56px; align-items: center; }
.more-right > h2 { margin-bottom: 56px; }
.camp { margin: 0; }
.camp img { width: 100%; height: auto; border-radius: 22px; border: 1px solid var(--line); box-shadow: 0 30px 70px rgba(0, 0, 0, 0.5); }
.camp figcaption { color: var(--muted); font-size: 15px; margin-top: 14px; text-align: center; }
.more-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 28px; }
.more-grid > div { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 16px; align-items: start; }
.more-grid p { color: var(--muted); font-size: 16px; margin: 0; }

/* ---------- make it yours ---------- */
.yours { background: var(--night); }
.bg-row, .fit-row { list-style: none; padding: 0; display: grid; gap: 14px 8px; }
.bg-row { grid-template-columns: repeat(9, minmax(0, 1fr)); margin: 36px 0 30px; }
.bg-row img { border-radius: 12px; aspect-ratio: 9 / 16; object-fit: cover; width: 100%; border: 1px solid var(--line); }
.bg-row span, .fit-row span { display: block; font-size: 13px; color: var(--muted); margin-top: 8px; text-align: center; line-height: 1.3; white-space: nowrap; letter-spacing: -0.01em; }
.fit-row { grid-template-columns: repeat(9, minmax(0, 1fr)); margin: 0; }
.fit-row img { height: 150px; width: 100%; object-fit: contain; filter: drop-shadow(0 10px 10px rgba(0, 0, 0, 0.45)); }

/* ---------- gallery ---------- */
.gallery { background: linear-gradient(to bottom, var(--night), var(--deep)); }
.shots {
  list-style: none; padding: 10px 0 4px; margin: 0;
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(210px, 240px); gap: 22px;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
}
.shots li { scroll-snap-align: start; }
.shots img { border-radius: 22px; border: 6px solid #17222e; box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5); width: 100%; height: auto; }

/* ---------- faq ---------- */
.faq { background: var(--deep); }
details { border-bottom: 1px solid var(--line); }
summary {
  cursor: pointer; list-style: none; padding: 22px 44px 22px 0; position: relative;
  display: flex; align-items: baseline; justify-content: space-between; gap: 8px 24px; flex-wrap: wrap;
  font: 600 19px var(--ui); color: #fff;
}
.qa { font: 400 22px/1.2 var(--display); color: var(--gold); text-align: right; }
.qa a { color: var(--gold); }
details[open] .qa { opacity: 0.55; }
summary::-webkit-details-marker { display: none; }
summary::after {
  content: ""; position: absolute; right: 6px; top: 50%;
  width: 11px; height: 11px; margin-top: -8px;
  border-right: 2px solid var(--gold); border-bottom: 2px solid var(--gold);
  transform: rotate(45deg); transition: transform 0.2s;
}
details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
details p { color: var(--muted); padding-bottom: 14px; max-width: 64ch; }

/* ---------- footer ---------- */
.foot { padding: 48px 0 44px; border-top: 1px solid var(--line); background: #050e19; }
.foot-inner { display: grid; grid-template-columns: 240px 1fr; gap: 46px; align-items: center; }
.foot-logo { width: 240px; height: auto; }
.foot-links { display: flex; gap: 26px; flex-wrap: wrap; }
.fine { font-size: 13px; color: var(--muted); margin: 14px 0 0; }

/* ---------- smaller screens ---------- */
@media (max-width: 960px) {
  section { padding: 52px 0; }
  .nav nav { display: none; }
  .play-grid { grid-template-columns: 1fr; gap: 50px; }
  .kit { grid-template-columns: repeat(3, 1fr); }
  .rules-row { grid-template-columns: minmax(0, 1fr); gap: 30px; }
  .more-layout { grid-template-columns: minmax(0, 1fr); }
  .camp { max-width: 420px; }
  .bg-row, .fit-row { grid-template-columns: repeat(5, 1fr); }
  .foot-inner { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .qa { font-size: 19px; text-align: left; width: 100%; }
  body { font-size: 16px; }
  .wrap { padding: 0 20px; }
  .more-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .bg-row, .fit-row { grid-template-columns: repeat(3, 1fr); }
  .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .bank { animation: none; opacity: 0; }
  .hero-inner { animation: none; }
}

/* ---------- 404 ---------- */
.lost { min-height: 100svh; display: grid; place-content: center; justify-items: center; text-align: center; padding: 40px 24px; gap: 8px; }
.lost img { width: min(420px, 80vw); height: auto; margin-bottom: 12px; }
.lost p { color: var(--muted); margin-bottom: 22px; }
/* the two rows of nine reach a little past the text column on wide screens, so every name sits on one line with air around it */
@media (min-width: 1240px) { .bg-row { margin-left: -60px; margin-right: -60px; column-gap: 14px; } }

/* ---------- get invited ---------- */
.invite-band { background: var(--deep); padding-top: 8px; }
.invite-card {
  display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 28px; align-items: start;
  padding: 36px 40px; border-radius: 24px;
  background: radial-gradient(ellipse 70% 120% at 0% 0%, rgba(243, 195, 91, 0.14), rgba(243, 195, 91, 0) 60%), rgba(16, 40, 58, 0.75);
  border: 1px solid rgba(243, 195, 91, 0.5);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.45), 0 0 80px rgba(243, 195, 91, 0.08);
}
.invite-card > img { width: 96px; height: 96px; object-fit: contain; filter: drop-shadow(0 0 24px rgba(255, 180, 80, 0.45)); }
.invite-body h2 { margin-bottom: 8px; }
.invite-body > p { color: var(--muted); margin-bottom: 20px; }
.invite-form { display: flex; gap: 12px; flex-wrap: wrap; }
.invite-form input[type=email] {
  flex: 1 1 260px; min-height: 56px; padding: 0 18px; border-radius: 14px;
  border: 1px solid rgba(214, 226, 236, 0.25); background: rgba(7, 19, 33, 0.7);
  color: #fff; font: 500 16px var(--ui);
}
.invite-form input[type=email]::placeholder { color: rgba(147, 167, 185, 0.7); }
.invite-form input[type=email]:focus { outline: 3px solid var(--aurora); outline-offset: 2px; border-color: transparent; }
.invite-form .btn { border: 0; cursor: pointer; }
.invite-form .btn:disabled { opacity: 0.6; cursor: wait; }
.invite-status { margin: 0; min-height: 0; color: var(--gold); font-weight: 500; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (max-width: 560px) { .invite-card { grid-template-columns: minmax(0, 1fr); padding: 28px 22px; } .invite-card > img { width: 72px; height: 72px; } }
.invite-status:not(:empty) { margin-top: 12px; }

/* ---------- feedback page ---------- */
.nav-solid { position: sticky; background: rgba(7, 19, 33, 0.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.fb { max-width: 820px; margin: 0 auto; padding: 56px 24px 72px; }
.fb-head { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 24px; align-items: center; margin-bottom: 36px; }
.fb-head img { width: 88px; height: 88px; object-fit: contain; filter: drop-shadow(0 0 22px rgba(255, 180, 80, 0.4)); }
.fb-head h1 { font: 400 clamp(36px, 5vw, 52px)/1.08 var(--display); color: #fff; margin: 0 0 10px; }
.fb-head p { color: var(--muted); margin: 0; max-width: 54ch; }
.fb-form { display: grid; gap: 24px; }
.fb-card {
  margin: 0; padding: 30px 32px 10px; min-width: 0;
  border: 1px solid var(--line); border-radius: 22px; background: rgba(16, 40, 58, 0.55);
}
.fb-card legend {
  float: left; width: 100%; padding: 0 0 18px; margin-bottom: 8px; border-bottom: 1px solid var(--line);
  font: 400 26px/1.2 var(--display); color: var(--gold);
}
.fb-card legend + * { clear: both; }
.q { margin: 0 0 26px; }
.q-label { display: block; margin: 0 0 12px; font-weight: 600; font-size: 17px; color: #fff; }
.req { margin-left: 8px; font-size: 13px; font-weight: 500; color: var(--gold); }
.hint-inline { margin-left: 8px; font-size: 13px; font-weight: 400; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip span {
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 16px;
  border-radius: 12px; border: 1px solid rgba(214, 226, 236, 0.22); background: rgba(7, 19, 33, 0.55);
  color: var(--mist); font-weight: 500; font-size: 14px; white-space: nowrap; transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.chip:hover span { border-color: rgba(243, 195, 91, 0.55); }
.chip input:checked + span { background: linear-gradient(to bottom, #ffd77a, var(--gold) 50%, var(--gold-deep)); border-color: transparent; color: #2a1a04; font-weight: 600; }
.chip input:focus-visible + span { outline: 3px solid var(--aurora); outline-offset: 2px; }
.chips.scale { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 7px; max-width: 600px; }
.scale .chip span { width: 100%; min-height: 48px; padding: 0; font: 400 22px var(--display); }
.scale .chip input:checked + span { font-family: var(--display); }
.scale-ends { display: flex; justify-content: space-between; width: 600px; max-width: 100%; margin-top: 8px; font-size: 13px; color: var(--muted); }
.fb textarea, .fb input[type=text], .fb input[type=email] {
  width: 100%; min-height: 52px; padding: 13px 16px; border-radius: 14px;
  border: 1px solid rgba(214, 226, 236, 0.22); background: rgba(7, 19, 33, 0.65);
  color: #fff; font: 400 16px/1.5 var(--ui); resize: vertical;
}
.fb textarea::placeholder, .fb input::placeholder { color: rgba(147, 167, 185, 0.65); }
.fb textarea:focus, .fb input[type=text]:focus, .fb input[type=email]:focus { outline: 3px solid var(--aurora); outline-offset: 2px; border-color: transparent; }
.q.two { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 18px; }
.fb-send { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.fb-send .btn { border: 0; cursor: pointer; min-width: 220px; }
.fb-send .btn:disabled { opacity: 0.6; cursor: wait; }
.fb-status { margin: 0; color: var(--gold); font-weight: 500; }
.fb-done { text-align: center; padding: 60px 24px; border: 1px solid rgba(243, 195, 91, 0.5); border-radius: 24px; background: rgba(16, 40, 58, 0.75); }

.fb-done p { color: var(--muted); margin-bottom: 26px; }
@media (max-width: 560px) {
  .fb { padding: 36px 16px 56px; }
  .fb-head { grid-template-columns: 64px minmax(0, 1fr); gap: 16px; }
  .fb-head img { width: 64px; height: 64px; }
  .fb-card { padding: 24px 18px 6px; }
  .q.two { grid-template-columns: minmax(0, 1fr); }
  .chips.scale { grid-template-columns: repeat(5, minmax(0, 1fr)); max-width: 340px; }
  .scale-ends { width: 340px; }
}
.fb input.sr { width: 1px; height: 1px; min-height: 0; padding: 0; border: 0; }

/* ---------- the invite card comes alive: a light runs round its gold edge, the lantern sways and glows,
   and a glint crosses the button. It starts when the card scrolls into view. ---------- */
@property --edge { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
.invite-card { position: relative; isolation: isolate; transition: box-shadow 1.2s ease, border-color 1.2s ease; }
.invite-card::before {
  content: ""; position: absolute; inset: -2px; border-radius: 26px; padding: 3px; pointer-events: none; z-index: 1;
  background: conic-gradient(from var(--edge), transparent 0deg, transparent 230deg, rgba(255, 215, 122, 0.35) 285deg, #fff1c8 330deg, rgba(255, 215, 122, 0.35) 352deg, transparent 360deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0;
}
.invite-card.lit::before { opacity: 1; animation: edge-run 5.5s linear infinite; filter: drop-shadow(0 0 6px rgba(255, 210, 120, 0.9)); }
.invite-card.lit { border-color: rgba(243, 195, 91, 0.7); box-shadow: 0 30px 70px rgba(0, 0, 0, 0.45), 0 0 110px rgba(243, 195, 91, 0.16); }
@keyframes edge-run { to { --edge: 360deg; } }
.invite-card > img { transform-origin: 50% 6%; }
.invite-card.lit > img { animation: lantern-sway 4.2s ease-in-out infinite, lantern-glow 2.6s ease-in-out infinite; }
@keyframes lantern-sway { 0%, 100% { transform: rotate(-4deg); } 50% { transform: rotate(4deg); } }
@keyframes lantern-glow {
  0%, 100% { filter: drop-shadow(0 0 18px rgba(255, 180, 80, 0.40)); }
  45% { filter: drop-shadow(0 0 34px rgba(255, 190, 90, 0.75)); }
  60% { filter: drop-shadow(0 0 26px rgba(255, 170, 70, 0.55)); }
}
.invite-form .btn { position: relative; overflow: hidden; }
.invite-form .btn::after {
  content: ""; position: absolute; top: -20%; bottom: -20%; left: -60%; width: 40%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.65), transparent);
  transform: skewX(-18deg); opacity: 0; pointer-events: none;
}
.invite-card.lit .invite-form .btn::after { animation: btn-glint 3.8s ease-in-out 0.8s infinite; }
@keyframes btn-glint { 0% { left: -60%; opacity: 0; } 8% { opacity: 1; } 35% { left: 130%; opacity: 0; } 100% { left: 130%; opacity: 0; } }
.invite-form .btn:hover { transform: translateY(-1px); }
@media (prefers-reduced-motion: reduce) {
  .invite-card.lit::before, .invite-card.lit > img, .invite-card.lit .invite-form .btn::after { animation: none; }
  .invite-card.lit::before { opacity: 0; }
}

/* ---------- questionnaire: required marks, gaps, the friend invite ---------- */
.star { color: var(--gold); font-weight: 700; margin-left: 2px; }
.req-note { margin: -8px 0 0; font-size: 14px; color: var(--muted); }
.missing .q-label { color: #ffb4a2; }
.missing .q-label::after { content: "Please answer this one"; display: block; margin-top: 4px; font-size: 13px; font-weight: 500; color: #ff9b85; }
.missing .chip span, .missing textarea, .missing input[type=text] { border-color: rgba(255, 125, 100, 0.75); }
.friend { margin-top: 16px; padding: 20px 22px; border-radius: 16px; border: 1px solid rgba(243, 195, 91, 0.4); background: rgba(243, 195, 91, 0.07); }
.friend-title { margin: 0 0 4px; font: 400 22px/1.2 var(--display); color: var(--gold); }
.friend-sub { margin: 0 0 14px; font-size: 14px; color: var(--muted); }
.friend-row { display: flex; gap: 10px; flex-wrap: wrap; }
.friend-row input { flex: 1 1 220px; }
.btn-ghost { min-height: 52px; padding: 0 22px; border-radius: 14px; border: 1.5px solid var(--gold); background: transparent; color: var(--gold); font: 600 15px var(--ui); cursor: pointer; }
.btn-ghost:hover { background: rgba(243, 195, 91, 0.12); }
.link-btn { margin-top: 12px; padding: 0; border: 0; background: none; color: var(--mist); font: 500 14px var(--ui); text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
.friend-status { margin: 10px 0 0; font-size: 14px; color: var(--gold); }
.friend-status:empty { display: none; }
.fb-extra { border-style: dashed; }
.fb-extra legend .hint-inline { font-family: var(--ui); }

/* ---------- the thank-you: the heart of the isle lights up, embers rise, a ring of light goes out ---------- */
.fb-done {
  position: relative; overflow: hidden; text-align: center; padding: 40px 28px 52px; border-radius: 28px;
  border: 1px solid rgba(243, 195, 91, 0.55);
  background:
    radial-gradient(ellipse 60% 45% at 50% 28%, rgba(255, 140, 60, 0.28), rgba(255, 140, 60, 0) 70%),
    radial-gradient(ellipse 90% 70% at 50% 100%, rgba(79, 224, 182, 0.10), rgba(79, 224, 182, 0) 70%),
    linear-gradient(to bottom, #13253a, #0a1828);
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.5), 0 0 120px rgba(255, 150, 70, 0.12);
}
.ty-stage { position: relative; height: 300px; display: grid; place-items: center; }
.fb-done .ty-heart { position: relative; z-index: 2; width: 230px; height: auto; filter: drop-shadow(0 0 40px rgba(255, 120, 50, 0.55)); }
.ty-ring { position: absolute; left: 50%; top: 46%; width: 220px; height: 220px; margin: -110px 0 0 -110px; border-radius: 50%; border: 2px solid rgba(255, 210, 130, 0.9); opacity: 0; }
.ember { position: absolute; left: calc(50% + var(--x)); bottom: 32%; width: 6px; height: 6px; border-radius: 50%; background: #ffd27a; box-shadow: 0 0 10px 3px rgba(255, 150, 60, 0.8); opacity: 0; }
.fb-done h2 { margin: 6px 0 8px; font: 400 clamp(48px, 7vw, 68px)/1 var(--display); color: #ffe2a0; text-shadow: 0 0 30px rgba(255, 170, 80, 0.45); }
.ty-lede { margin: 6px auto 16px; font: 400 clamp(22px, 3vw, 28px)/1.3 var(--display); color: #fff; max-width: 30ch; }
.ty-body { margin: 0 auto; max-width: 46ch; color: var(--mist); font-size: 17px; }
.ty-sign { margin: 22px 0 30px; font: 400 30px var(--display); color: var(--gold); }
.ty-sign::before { content: ""; display: block; width: 60px; height: 2px; margin: 0 auto 14px; background: linear-gradient(to right, transparent, var(--gold), transparent); }
.ty-actions { display: flex; justify-content: center; }
.fb-done.play .ty-heart { animation: ty-heart-in 1.3s cubic-bezier(0.2, 0.9, 0.3, 1.25) both, ty-bob 4.5s ease-in-out 1.3s infinite, ty-glow 2.8s ease-in-out 1.3s infinite; }
.fb-done.play .r1 { animation: ty-ring 1.8s ease-out 0.5s both; }
.fb-done.play .r2 { animation: ty-ring 1.8s ease-out 0.8s both; }
.fb-done.play .r3 { animation: ty-ring 2.2s ease-out 1.1s both; }
.fb-done.play .ember { animation: ty-ember var(--t) linear calc(var(--d) + 0.9s) infinite; }
.fb-done.play h2 { animation: ty-up 0.8s ease-out 0.7s both; }
.fb-done.play .ty-lede { animation: ty-up 0.8s ease-out 1.0s both; }
.fb-done.play .ty-body { animation: ty-up 0.8s ease-out 1.25s both; }
.fb-done.play .ty-sign { animation: ty-up 0.8s ease-out 1.55s both; }
.fb-done.play .ty-actions { animation: ty-up 0.8s ease-out 1.8s both; }
@keyframes ty-heart-in { from { opacity: 0; transform: translateY(30px) scale(0.6); } to { opacity: 1; transform: none; } }
@keyframes ty-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes ty-glow { 0%, 100% { filter: drop-shadow(0 0 36px rgba(255, 120, 50, 0.5)); } 50% { filter: drop-shadow(0 0 60px rgba(255, 150, 60, 0.85)); } }
@keyframes ty-ring { from { opacity: 0.9; transform: scale(0.45); } to { opacity: 0; transform: scale(2.3); } }
@keyframes ty-ember {
  0% { opacity: 0; transform: translate(0, 0) scale(1); }
  12% { opacity: 1; }
  70% { opacity: 0.8; }
  100% { opacity: 0; transform: translate(calc(var(--x) * -0.25), -230px) scale(0.3); }
}
@keyframes ty-up { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .fb-done.play * { animation: none !important; }
  .ty-ring, .ember { display: none; }
}
@media (max-width: 560px) {
  .ty-stage { height: 230px; }
  .fb-done .ty-heart { width: 170px; }
  .friend { padding: 16px; }
  .friend-row .btn-ghost { width: 100%; }
}

/* ---------- section titles: the game's own jewelled rule. A gem, and a gold line that runs out from it,
   drawn in the first time the title comes into view ---------- */
.wrap > h2, .play-copy > h2, .more-right > h2, .fb-head h1 {
  position: relative; padding-bottom: 20px; margin-bottom: 26px;
  background: linear-gradient(180deg, #ffffff 35%, #f2ddae 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.wrap > h2::before, .play-copy > h2::before, .more-right > h2::before, .fb-head h1::before {
  content: ""; position: absolute; left: 18px; bottom: 4px; height: 2px; width: 240px;
  background: linear-gradient(to right, var(--gold), rgba(243, 195, 91, 0.35) 55%, rgba(243, 195, 91, 0));
  transform-origin: left center;
}
.wrap > h2::after, .play-copy > h2::after, .more-right > h2::after, .fb-head h1::after {
  content: ""; position: absolute; left: 1px; bottom: 0; width: 10px; height: 10px;
  background: linear-gradient(135deg, #fff1c8, var(--gold) 55%, var(--gold-deep));
  transform: rotate(45deg); box-shadow: 0 0 12px rgba(255, 200, 110, 0.75);
}
/* the trailer's title sits centred, so its rule opens out both ways from the gem, like the wave banner in the game */
.trailer .wrap > h2::before { left: 50%; width: 420px; margin-left: -210px; transform-origin: center;
  background: linear-gradient(to right, rgba(243, 195, 91, 0), var(--gold) 38%, var(--gold) 62%, rgba(243, 195, 91, 0)); }
.trailer .wrap > h2::after { left: 50%; margin-left: -5px; }
.fb-head h1 { padding-bottom: 18px; margin-bottom: 16px; }
.js-titles .t-rule::before { transform: scaleX(0); transition: transform 1.1s cubic-bezier(0.2, 0.8, 0.2, 1) 0.15s; }
.js-titles .t-rule::after { transform: rotate(45deg) scale(0); transition: transform 0.5s cubic-bezier(0.3, 1.6, 0.5, 1); }
.js-titles .t-rule.shown::before { transform: scaleX(1); }
.js-titles .t-rule.shown::after { transform: rotate(45deg) scale(1); }
@media (prefers-reduced-motion: reduce) {
  .js-titles .t-rule::before { transform: none; transition: none; }
  .js-titles .t-rule::after { transform: rotate(45deg); transition: none; }
}
@media (max-width: 560px) { .wrap > h2::before, .play-copy > h2::before, .more-right > h2::before { width: 180px; } .trailer .wrap > h2::before { width: 300px; margin-left: -150px; } }

/* ---------- galleries: they stay inside the page's margins and fade off where there is more to see ---------- */
.carousel { position: relative; margin-top: 36px; }
.carousel > ul { scrollbar-width: none; outline-offset: 6px; --fl: 0px; --fr: 0px;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 var(--fl), #000 calc(100% - var(--fr)), transparent 100%);
          mask-image: linear-gradient(to right, transparent 0, #000 var(--fl), #000 calc(100% - var(--fr)), transparent 100%); }
.carousel > ul::-webkit-scrollbar { display: none; }
.carousel.more-left > ul { --fl: 90px; }
.carousel.more-right > ul { --fr: 90px; }
.car-controls { display: flex; align-items: center; gap: 16px; margin-top: 26px; }
.car-btn {
  flex: none; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; padding: 0;
  border: 1.5px solid rgba(243, 195, 91, 0.6); background: rgba(7, 19, 33, 0.6); color: var(--gold);
  transition: background 0.15s, border-color 0.15s, opacity 0.15s;
}
.car-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.car-btn:hover:not(:disabled) { background: rgba(243, 195, 91, 0.16); border-color: var(--gold); }
.car-btn:disabled { opacity: 0.3; cursor: default; }
.car-track { position: relative; flex: 1; height: 8px; border-radius: 99px; background: rgba(214, 226, 236, 0.12); cursor: pointer; }
.car-track::before { content: ""; position: absolute; inset: -14px 0; }
.car-thumb {
  position: absolute; left: 0; top: 0; height: 100%; border-radius: 99px; cursor: grab; touch-action: none;
  background: linear-gradient(to bottom, #ffd77a, var(--gold) 55%, var(--gold-deep));
  box-shadow: 0 0 14px rgba(243, 195, 91, 0.45);
  transition: height 0.15s, top 0.15s;
}
.car-thumb::before { content: ""; position: absolute; inset: -14px -4px; }
.car-track:hover .car-thumb, .dragging .car-thumb { height: 12px; top: -2px; }
.dragging .car-thumb { cursor: grabbing; }
@media (max-width: 560px) { .carousel.more-left > ul { --fl: 40px; } .carousel.more-right > ul { --fr: 40px; } .car-btn { width: 44px; height: 44px; } }

/* ---------- builders: a scroller of their own ---------- */
.fit-title { margin: 44px 0 0; font: 400 clamp(24px, 2.6vw, 32px)/1.2 var(--display); }
.carousel > .fit-row { margin-top: 0; display: grid; grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 168px; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; padding: 8px 0 4px; }
.fit-row li { scroll-snap-align: start; padding: 18px 10px 14px; border-radius: 18px; background: radial-gradient(ellipse 60% 18% at 50% 84%, rgba(243, 195, 91, 0.16), rgba(243, 195, 91, 0) 70%), rgba(16, 40, 58, 0.45); border: 1px solid var(--line); }
.fit-row li img { height: 200px; }
.fit-row li span { font-size: 14px; color: var(--mist); margin-top: 10px; }

/* ---------- tap any picture for a big view ---------- */
img[data-full] { cursor: zoom-in; }
.lb { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 64px 84px; background: rgba(3, 9, 17, 0.9); backdrop-filter: blur(8px); opacity: 0; transition: opacity 0.2s ease; }
.lb.open { opacity: 1; }
.lb figure { margin: 0; display: grid; justify-items: center; gap: 16px; max-width: 100%; max-height: 100%; }
.lb img { max-width: min(1100px, 100%); max-height: calc(100vh - 170px); width: auto; height: auto; object-fit: contain; border-radius: 16px; box-shadow: 0 30px 90px rgba(0, 0, 0, 0.7); transform: scale(0.96); transition: transform 0.25s ease; }
.lb.open img { transform: none; }
.lb img.cutout { box-shadow: none; border-radius: 0; filter: drop-shadow(0 24px 40px rgba(0, 0, 0, 0.6)); min-height: min(60vh, 520px); }
.lb figcaption { font: 400 26px var(--display); color: #fff; text-align: center; }
.lb-btn { position: absolute; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; padding: 0; cursor: pointer; border: 1.5px solid rgba(243, 195, 91, 0.6); background: rgba(7, 19, 33, 0.7); color: var(--gold); }
.lb-btn:hover { background: rgba(243, 195, 91, 0.16); border-color: var(--gold); }
.lb-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.lb-close { top: 20px; right: 20px; }
.lb-prev { left: 20px; top: 50%; margin-top: -26px; }
.lb-next { right: 20px; top: 50%; margin-top: -26px; }
.lb-count { position: absolute; top: 34px; left: 0; right: 0; text-align: center; font-size: 14px; color: var(--muted); pointer-events: none; }
@media (max-width: 760px) { .lb { padding: 72px 14px 84px; } .lb-prev, .lb-next { top: auto; bottom: 18px; margin: 0; } .lb-prev { left: calc(50% - 70px); } .lb-next { right: calc(50% - 70px); } .lb figcaption { font-size: 21px; } }
@media (prefers-reduced-motion: reduce) { .lb, .lb img { transition: none; } }

/* ---------- questionnaire: pictures, ticks and the heart rail ---------- */
.fb-rail {
  position: sticky; top: 76px; z-index: 10;
  display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; align-items: center; gap: 16px;
  padding: 12px 16px 12px 14px; border-radius: 18px; border: 1px solid var(--line);
  background: rgba(7, 19, 33, 0.9); backdrop-filter: blur(10px); box-shadow: 0 16px 36px rgba(0, 0, 0, 0.35);
  transition: border-color 0.4s;
}
.rail-heart {
  width: 44px; height: auto;
  filter: grayscale(calc(1 - var(--p, 0))) brightness(calc(0.5 + 0.5 * var(--p, 0))) drop-shadow(0 0 calc(var(--p, 0) * 14px) rgba(255, 120, 50, 0.65));
  transition: filter 0.5s ease;
}
.rail-text { margin: 0 0 8px; font-size: 14px; color: var(--mist); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#rail-count { font-weight: 700; color: #fff; }
.rail-hint { margin-left: 10px; color: var(--muted); }
.rail-track { height: 8px; border-radius: 8px; background: rgba(214, 226, 236, 0.12); overflow: hidden; }
.rail-fill { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--gold-deep), var(--gold), #ffe08a); transition: width 0.45s cubic-bezier(0.3, 0.8, 0.3, 1); }
.rail-next { min-height: 40px; padding: 0 16px; border-radius: 12px; border: 1.5px solid rgba(243, 195, 91, 0.6); background: transparent; color: var(--gold); font: 600 14px var(--ui); white-space: nowrap; cursor: pointer; }
.rail-next:hover { background: rgba(243, 195, 91, 0.12); }
.fb-rail.full { border-color: rgba(243, 195, 91, 0.6); }
.fb-rail.full .rail-heart { animation: rail-beat 2.4s ease-in-out infinite; }
.fb-rail.full .rail-next { background: linear-gradient(to bottom, #ffd77a, var(--gold) 50%, var(--gold-deep)); border-color: transparent; color: #2a1a04; }
@keyframes rail-beat { 0%, 100% { transform: scale(1); } 12% { transform: scale(1.12); } 24% { transform: scale(1); } 36% { transform: scale(1.08); } 48% { transform: scale(1); } }

.fb-card legend { display: flex; align-items: center; gap: 14px; }
.fb-card legend img { flex: none; width: 52px; height: 52px; object-fit: contain; filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.45)); }
.leg-t { flex: 1; min-width: 0; }
.leg-n:empty { display: none; }
.leg-n { flex: none; padding: 5px 12px; border-radius: 999px; border: 1px solid var(--line); font: 500 13px var(--ui); color: var(--muted); white-space: nowrap; }
.fb-card.done .leg-n { border-color: transparent; background: var(--gold); color: #2a1a04; font-weight: 600; }
.fb-card.done .leg-n::before { content: "\2713  "; }

.tick { display: none; width: 20px; height: 20px; margin-left: 6px; vertical-align: -4px; border-radius: 50%; background: var(--gold) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5' fill='none' stroke='%232a1a04' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat; }
.done > .q-label .tick { display: inline-block; animation: tick-in 0.3s cubic-bezier(0.2, 0.9, 0.3, 1.4); }
.done > .q-label .star { display: none; }
@keyframes tick-in { from { transform: scale(0.3); opacity: 0; } }

.chips.pics { display: grid; gap: 10px; }
.chips.n4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.chips.n5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.chips.n6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.chip.pic span {
  position: relative; flex-direction: column; justify-content: flex-start; gap: 8px; width: 100%; height: 100%;
  min-height: 0; padding: 14px 6px 12px; white-space: normal; text-align: center; line-height: 1.25; font-size: 13.5px;
}
.chip.pic img { width: 64px; height: 64px; object-fit: contain; transition: transform 0.2s ease, opacity 0.2s, filter 0.2s; }
.n6 .chip.pic img { width: 100%; height: 76px; }
.chip.pic:hover img { transform: translateY(-2px) scale(1.05); }
.chip.pic input:checked + span {
  background: rgba(243, 195, 91, 0.14); border: 1.5px solid var(--gold); color: #fff;
  box-shadow: 0 0 0 3px rgba(243, 195, 91, 0.14), 0 0 28px rgba(243, 195, 91, 0.16);
}
.chip.pic input:checked + span::after { content: ""; position: absolute; top: 7px; right: 7px; width: 20px; height: 20px; border-radius: 50%; background: var(--gold) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5' fill='none' stroke='%232a1a04' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 13px no-repeat; }
.chips.pics[role=radiogroup]:has(input:checked) .chip.pic input:not(:checked) + span img { opacity: 0.5; filter: saturate(0.5); }

.chip .ic { flex: none; width: 18px; height: 18px; margin-right: 8px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.sugs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: -2px 0 10px; }
.sugs-hint { margin-right: 2px; font-size: 13px; color: var(--muted); }
.sug { min-height: 36px; padding: 0 13px; border-radius: 999px; border: 1px dashed rgba(243, 195, 91, 0.5); background: transparent; color: var(--mist); font: 500 13px var(--ui); cursor: pointer; }
.sug::before { content: "+ "; color: var(--gold); font-weight: 700; }
.sug:hover { border-color: var(--gold); }
.sug[aria-pressed=true] { border-style: solid; border-color: var(--gold); background: rgba(243, 195, 91, 0.16); color: #fff; }
.sug[aria-pressed=true]::before { content: "\2713  "; }
.sug:focus-visible, .rail-next:focus-visible { outline: 3px solid var(--aurora); outline-offset: 2px; }

.q.nudge { animation: q-nudge 1.6s ease-out; border-radius: 14px; }
@keyframes q-nudge { 0% { outline: 2px solid rgba(243, 195, 91, 0.9); outline-offset: 10px; } 100% { outline: 2px solid rgba(243, 195, 91, 0); outline-offset: 10px; } }

.fb-send .btn { position: relative; overflow: hidden; }
.fb-send .btn::after {
  content: ""; position: absolute; top: -20%; bottom: -20%; left: -60%; width: 40%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.65), transparent);
  transform: skewX(-18deg); opacity: 0; pointer-events: none;
}
.fb-send .btn.ready { box-shadow: 0 0 44px rgba(243, 195, 91, 0.35); }
.fb-send .btn.ready::after { animation: btn-glint 3.8s ease-in-out 0.4s infinite; }


.honors-row { align-items: center; }
.honors-badge { width: 52px; height: 52px; margin-right: 4px; object-fit: contain; filter: drop-shadow(0 0 14px rgba(243, 195, 91, 0.3)); }
@media (max-width: 760px) {
  .fb-rail { top: 70px; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 12px; padding: 10px 12px; border-radius: 14px; }
  .rail-heart { width: 34px; }
  .rail-hint { display: none; }
  .rail-text { margin-bottom: 6px; }
  .rail-next { min-height: 38px; padding: 0 12px; font-size: 13px; }
}
@media (max-width: 560px) {
  .chips.n5, .chips.n6 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .chips.n4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fb-card legend { gap: 10px; font-size: 22px; }
  .fb-card legend img { width: 42px; height: 42px; }
  .chips:not(.pics):not(.scale) .chip { flex: 1 1 auto; }
  .chips:not(.pics):not(.scale) .chip span { width: 100%; }
  .honors-badge { display: none; }
  .q-label .hint-inline { display: block; margin: 4px 0 0; }
}
@media (prefers-reduced-motion: reduce) {
  .fb-rail.full .rail-heart, .fb-send .btn.ready::after, .done > .q-label .tick, .q.nudge { animation: none; }
  .rail-fill, .rail-heart, .chip.pic img { transition: none; }
}


/* ---------- phones: everything below only applies on small screens, so the desktop look is untouched ---------- */
.nav-toggle { display: none; }
@media (max-width: 960px) {
  .nav-toggle {
    display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 46px; height: 46px; padding: 0 12px; border-radius: 12px; cursor: pointer;
    border: 1px solid rgba(214, 226, 236, 0.18); background: rgba(7, 19, 33, 0.6);
    -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  }
  .nav-toggle span { display: block; height: 2px; border-radius: 2px; background: var(--gold); transition: transform 0.25s ease, opacity 0.2s ease; }
  .nav.open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav.open .nav-toggle span:nth-child(2) { opacity: 0; }
  .nav.open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .nav.open nav {
    display: flex; flex-direction: column; gap: 0;
    position: absolute; top: 100%; left: 14px; right: 14px; padding: 8px 0;
    border: 1px solid rgba(243, 195, 91, 0.28); border-radius: 18px;
    background: rgba(7, 19, 33, 0.96); box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
    -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  }
  .nav.open nav a { padding: 15px 22px; font-size: 17px; color: #fff; }
  .nav.open nav a + a { border-top: 1px solid var(--line); }
  .nav.open { background: rgba(7, 19, 33, 0.92); }
}
@media (max-width: 560px) {
  body { overflow-x: clip; }
  .nav { padding: 10px 16px; }

  /* foes and masters: three across, names may wrap, a lone last one sits in the middle */
  .foe-list, .masters { display: flex; flex-wrap: wrap; justify-content: center; column-gap: 8px; row-gap: 26px; }
  .foe-list li, .masters li { flex: 0 0 calc((100% - 16px) / 3); }
  .foe-list img, .masters img { max-width: 104px; }
  .foe-list span { font-size: 14px; }
  .masters span { white-space: normal; font-size: 12.5px; padding: 0 2px; }

  /* the invite form: the email box stays inside the card */
  .invite-form input[type=email] { flex: 1 1 100%; min-width: 0; width: 100%; }

  /* footer: centred */
  .foot-inner { justify-items: center; text-align: center; gap: 26px; }
  .foot-logo { width: 210px; }
  .foot-links { justify-content: center; column-gap: 22px; row-gap: 12px; }
}
@media (max-width: 560px) {
  /* tooltips in the outer columns open inward so they never run off the screen */
  .foe-list li:nth-child(3n+1) .tip, .masters li:nth-child(3n+1) .tip { left: 0; transform: translate(0, 8px); }
  .foe-list li:nth-child(3n) .tip, .masters li:nth-child(3n) .tip { left: auto; right: 0; transform: translate(0, 8px); }
  .foe-list li:nth-child(3n+1):hover .tip, .foe-list li:nth-child(3n+1):focus .tip, .masters li:nth-child(3n+1):hover .tip, .masters li:nth-child(3n+1):focus .tip,
  .foe-list li:nth-child(3n):hover .tip, .foe-list li:nth-child(3n):focus .tip, .masters li:nth-child(3n):hover .tip, .masters li:nth-child(3n):focus .tip { transform: translate(0, 0); }
  .foe-list li:nth-child(3n+1) .tip::after, .masters li:nth-child(3n+1) .tip::after { left: 16.5vw; }
  .foe-list li:nth-child(3n) .tip::after, .masters li:nth-child(3n) .tip::after { left: auto; right: 16.5vw; transform: translate(50%, -6px) rotate(45deg); }
}
