/* Dusk Till Dine — game page. Retro-futuristic Martian diner: night sky, sunset, teal & cream checker floor.
   Static and light on purpose: no infinite animations, small images, video plays only on screen. */

:root {
  --night: #140b26;
  --night-2: #1f1238;
  --night-3: #2b1a4a;
  --sun: #ffb238;
  --sun-2: #ff7a3d;
  --cream: #fff3df;
  --teal: #2ec4b6;
  --violet: #a77bff;
  --sky: #64b5ff;
  --text: #f7eefe;
  --muted: #c3b5dc;
  --line: rgba(255, 243, 223, 0.14);
  --radius: 20px;
  --wrap: 1180px;
  --font: "Rubik", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: dark;
}

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

html {
  overflow-x: clip;
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--text);
  background:
    radial-gradient(1px 1px at 12% 18%, rgba(255, 255, 255, 0.5), transparent 60%),
    radial-gradient(1px 1px at 72% 34%, rgba(255, 255, 255, 0.4), transparent 60%),
    radial-gradient(1.5px 1.5px at 38% 62%, rgba(255, 255, 255, 0.35), transparent 60%),
    radial-gradient(1px 1px at 88% 78%, rgba(255, 255, 255, 0.4), transparent 60%),
    linear-gradient(180deg, var(--night) 0%, var(--night-2) 60%, var(--night) 100%);
  background-size: 520px 520px, 640px 640px, 700px 700px, 580px 580px, 100% 100%;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1,
h2,
h3,
p,
figure {
  margin: 0;
}

h2,
h3 {
  font-weight: 900;
  letter-spacing: -0.01em;
  line-height: 1.1;
}

button {
  font: inherit;
}

.wrap {
  width: min(var(--wrap), 100% - 2.5rem);
  margin-inline: auto;
}

:focus-visible {
  outline: 3px solid var(--sun);
  outline-offset: 3px;
}

.i18n-pending body {
  visibility: hidden;
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(20, 11, 38, 0.92);
  border-bottom: 1px solid var(--line);
}

.header .wrap {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  height: 4rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-right: auto;
  text-decoration: none;
}

.brand {
  flex-shrink: 0;
}

.brand img {
  flex-shrink: 0;
  height: 1.7rem;
  width: auto;
  max-width: none;
}

.brand-sub {
  padding: 0.12rem 0.5rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--night);
  background: var(--sun);
}

.nav {
  display: none;
  gap: 1.5rem;
  font-size: 0.95rem;
  font-weight: 500;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
}

.nav a:hover {
  color: var(--text);
}

@media (min-width: 860px) {
  .nav {
    display: flex;
  }
}

/* Buttons & chips */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 3rem;
  padding: 0.7rem 1.4rem;
  border: 2px solid transparent;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.98rem;
  color: var(--night);
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn--sun {
  background: linear-gradient(180deg, var(--sun), var(--sun-2));
  box-shadow: 0 6px 0 #b8501f;
}

.btn--sun:active {
  transform: translateY(3px);
  box-shadow: 0 3px 0 #b8501f;
}

.btn--ghost {
  color: var(--text);
  border-color: rgba(255, 243, 223, 0.35);
  background: rgba(255, 243, 223, 0.06);
}

.btn--ghost:hover {
  background: rgba(255, 243, 223, 0.12);
}

.btn--sm {
  min-height: 2.4rem;
  padding: 0.4rem 1rem;
  font-size: 0.86rem;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.chip {
  padding: 0.28rem 0.75rem;
  border: 1px solid rgba(255, 243, 223, 0.3);
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--cream);
  background: rgba(20, 11, 38, 0.55);
}

.chip--sun {
  border-color: transparent;
  color: var(--night);
  background: var(--sun);
}

/* Hero */
.hero {
  --hero-h: calc(100vh - var(--head-h, 4rem));
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

@supports (height: 100svh) {
  .hero {
    --hero-h: calc(100svh - var(--head-h, 4rem));
  }
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100% !important;
  object-fit: cover;
  object-position: center 60%;
}

.hero-shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(20, 11, 38, 0.95) 0%, rgba(20, 11, 38, 0.75) 40%, rgba(20, 11, 38, 0.15) 75%),
    linear-gradient(0deg, var(--night) 0%, transparent 35%);
}

.hero-inner {
  display: grid;
  gap: 2rem;
  align-items: center;
  padding: 2rem 0 2.5rem;
  min-height: var(--hero-h);
}

@media (min-width: 900px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1fr) 280px;
  }
}

.hero-text {
  display: grid;
  gap: 1.3rem;
  justify-items: start;
  max-width: 36rem;
}

.hero-logo {
  width: min(100%, 30rem);
  height: auto;
  filter: drop-shadow(0 6px 0 rgba(0, 0, 0, 0.35));
}

.tagline {
  display: grid;
  font-size: clamp(1.4rem, 3.6vw, 2rem);
  font-weight: 800;
  line-height: 1.2;
}

.tagline span:first-child {
  color: var(--sun);
}

.tagline span:last-child {
  color: var(--violet);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.phone {
  justify-self: center;
  width: min(100%, 260px, calc((var(--hero-h) - 5rem) * 9 / 16));
  aspect-ratio: 9 / 16;
  overflow: hidden;
  border: 6px solid #0c0718;
  border-radius: 34px;
  background: #0c0718 url("assets/games/dusk-till-dine/promo-1-sm.jpg") center / cover no-repeat;
  box-shadow: 0 0 0 2px rgba(255, 243, 223, 0.2), 0 30px 60px rgba(0, 0, 0, 0.5);
}

.phone video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 899px) {
  .phone {
    display: none;
  }
}

/* Teal & cream diner floor strip */
.checker {
  height: 22px;
  background: repeating-conic-gradient(var(--teal) 0 25%, var(--cream) 0 50%) 0 0 / 22px 22px;
  opacity: 0.9;
}

/* Sections */
.section {
  padding-top: clamp(3.5rem, 8vw, 6rem);
}

.section-title {
  margin-bottom: 1.6rem;
  font-size: clamp(1.9rem, 4.6vw, 2.9rem);
  color: var(--cream);
}

/* Day / night halves */
.split {
  display: grid;
  gap: 1rem;
}

@media (min-width: 800px) {
  .split {
    grid-template-columns: 1fr 1fr;
  }
}

.half {
  overflow: hidden;
  border-radius: var(--radius);
}

.half--day {
  color: #3a2410;
  background: linear-gradient(160deg, #ffd27a, #ff9a52);
}

.half--night {
  background: linear-gradient(160deg, #3b2470, #1d1240);
  border: 1px solid rgba(167, 123, 255, 0.35);
}

.half-img {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
}

.half-img img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.half-body {
  display: grid;
  gap: 0.5rem;
  padding: 1.3rem 1.4rem 1.5rem;
}

.label {
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.half h2 {
  font-size: clamp(1.5rem, 3vw, 1.9rem);
}

/* Diner menu board */
.menu {
  margin-top: 1rem;
  padding: clamp(1.4rem, 4vw, 2.2rem);
  border-radius: var(--radius);
  color: #2a1a10;
  background: var(--cream);
  box-shadow: inset 0 0 0 6px var(--cream), inset 0 0 0 8px #e6c99a;
}

.menu-title {
  margin-bottom: 1rem;
  font-size: clamp(1.4rem, 3.4vw, 1.9rem);
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #c2410c;
}

.menu-list {
  display: grid;
  gap: 0.55rem;
  max-width: 40rem;
  margin: 0 auto;
}

.menu-list li {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  font-size: 1.05rem;
}

.menu-list span {
  font-weight: 700;
}

.menu-list i {
  flex: 1;
  border-bottom: 2px dotted rgba(42, 26, 16, 0.35);
  transform: translateY(-0.3em);
}

.menu-list b {
  font-weight: 900;
  color: #0f766e;
  text-align: right;
}

/* Cast cards */
.row-title {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 2rem 0 0.9rem;
  font-size: 1.25rem;
}

.dot {
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
}

.dot--teal { background: var(--teal); }
.dot--violet { background: var(--violet); }
.dot--sky { background: var(--sky); }

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(128px, 1fr));
  gap: 0.8rem;
}

.cardx {
  --c: var(--teal);
  overflow: hidden;
  border: 2px solid color-mix(in srgb, var(--c) 60%, transparent);
  border-radius: 18px;
  background: #000;
}

.cardx--teal { --c: var(--teal); }
.cardx--sun { --c: var(--sun); }
.cardx--violet { --c: var(--violet); }
.cardx--sky { --c: var(--sky); }
.cardx--boss { --c: var(--sun-2); }

.cardx img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.cardx figcaption {
  display: grid;
  gap: 0.1rem;
  padding: 0.65rem 0.8rem 0.75rem;
  border-top: 3px solid var(--c);
  background: var(--night-3);
}

.cardx b {
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1.25;
}

.cardx span {
  font-size: 0.8rem;
  color: var(--c);
  font-weight: 700;
}

.cardx--boss {
  grid-column: span 2;
}

.cardx--boss img {
  aspect-ratio: 2 / 1;
  object-fit: contain;
}

/* Phones: cast rows scroll sideways */
@media (max-width: 640px) {
  .cards {
    display: flex;
    gap: 0.75rem;
    margin: 0 -1.25rem;
    padding: 0 1.25rem 0.4rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 1.25rem;
    scrollbar-width: none;
  }

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

  .cardx {
    flex: 0 0 42%;
    scroll-snap-align: start;
  }

  .cardx--boss {
    flex-basis: 70%;
  }
}

/* Chaos */
.chaos {
  display: grid;
  gap: 1.5rem;
  align-items: center;
  padding: clamp(1.4rem, 4vw, 2.4rem);
  border-radius: var(--radius);
  background: linear-gradient(135deg, #4a1d2e, #2a1238);
  border: 1px solid rgba(255, 122, 61, 0.35);
}

@media (min-width: 860px) {
  .chaos {
    grid-template-columns: 1fr 1fr;
  }
}

.chaos .section-title {
  margin-bottom: 1rem;
}

.chaos-list {
  display: grid;
  gap: 0.6rem;
  font-size: 1.08rem;
  font-weight: 500;
}

.chaos-list li {
  position: relative;
  padding-left: 1.8rem;
}

.chaos-list li::before {
  content: "🔥";
  position: absolute;
  left: 0;
  top: 0;
}

.chaos-img {
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 16px;
  background: none;
  cursor: zoom-in;
}

.chaos-img img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

/* Gallery */
.gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

@media (min-width: 860px) {
  .gallery {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.tile {
  position: relative;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 14px;
  background: var(--night-3);
  cursor: zoom-in;
  transition: transform 0.2s ease;
}

.tile:hover {
  transform: translateY(-3px);
}

.tile img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.tile--video img {
  object-position: center 30%;
}

.tile--video::after {
  content: "▶";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 1.6rem;
  color: #fff;
  background: rgba(20, 11, 38, 0.35);
}

/* Controls */
.keys {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 0.7rem;
}

.keys li {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 243, 223, 0.04);
}

kbd {
  min-width: 3.4rem;
  padding: 0.3rem 0.5rem;
  border-radius: 8px;
  font: 800 0.8rem/1.2 var(--font);
  text-align: center;
  color: var(--night);
  background: var(--cream);
  box-shadow: 0 3px 0 #b9a27a;
}

.keys-note {
  margin-top: 0.8rem;
  color: var(--muted);
}

/* CTA */
.cta {
  display: grid;
  gap: 1.3rem;
  justify-items: center;
  padding: clamp(2rem, 6vw, 3.4rem) 1.4rem;
  border-radius: 26px;
  text-align: center;
  background:
    radial-gradient(500px 220px at 50% 0%, rgba(255, 178, 56, 0.35), transparent 70%),
    var(--night-3);
}

.cta h2 {
  font-size: clamp(1.8rem, 4.6vw, 2.8rem);
}

.cta .actions {
  justify-content: center;
}

/* Closed playtest sign-up */
#playtest {
  scroll-margin-top: calc(var(--head-h, 4rem) + 12px);
}

.playtest {
  gap: 1.6rem;
  border: 2px solid rgba(255, 178, 56, 0.45);
}

.playtest-intro {
  display: grid;
  gap: 0.7rem;
  justify-items: center;
}

.playtest-intro p {
  color: var(--muted);
  font-size: 1.05rem;
}

.pt-form {
  display: grid;
  gap: 1rem;
  width: min(100%, 40rem);
  text-align: left;
}

@media (min-width: 640px) {
  .pt-form {
    grid-template-columns: 1fr 1fr;
    column-gap: 1rem;
  }

  .pt-field--wide {
    grid-column: 1 / -1;
  }

  .pt-wants-list {
    grid-template-columns: 1fr 1fr;
  }
}

.pt-wants-list {
  display: grid;
  gap: 0.5rem;
}

.pt-err {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.35;
  color: #ff9b8a;
}

.pt-err[hidden] {
  display: none;
}

.pt-field[hidden] {
  display: none;
}

.pt-field :is(input, textarea)[aria-invalid="true"]:not(:focus) {
  border-color: #ff8a73;
  background: rgba(255, 110, 90, 0.08);
}

.pt-field {
  display: grid;
  align-content: start;
  gap: 0.4rem;
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
}

.pt-field > label,
.pt-field legend {
  padding: 0;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--cream);
}

.pt-field legend i {
  font-style: normal;
  font-weight: 500;
  color: var(--muted);
}

.pt-field :is(input[type="text"], input[type="email"], textarea) {
  width: 100%;
  min-height: 3rem;
  padding: 0.7rem 1rem;
  border: 2px solid rgba(255, 243, 223, 0.2);
  border-radius: 14px;
  background: rgba(20, 11, 38, 0.65);
  color: var(--text);
  font: 500 1rem/1.3 var(--font);
  transition: border-color 0.15s ease;
}

.pt-field :is(input[type="text"], input[type="email"], textarea)::placeholder {
  color: rgba(195, 181, 220, 0.6);
}

.pt-field :is(input[type="text"], input[type="email"], textarea):focus {
  outline: none;
  border-color: var(--sun);
}

.pt-wants {
  display: grid;
  gap: 0.5rem;
}

.pt-wants legend {
  margin-bottom: 0.4rem;
}

.pt-wants label {
  position: relative;
  display: grid;
}

.pt-wants input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.pt-wants span {
  display: grid;
  grid-template-columns: 1.6rem 1fr;
  column-gap: 0.8rem;
  align-items: center;
  padding: 0.75rem 1rem;
  border: 2px solid rgba(255, 243, 223, 0.2);
  border-radius: 14px;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.pt-wants span::before {
  content: "";
  grid-row: span 2;
  width: 1.6rem;
  height: 1.6rem;
  border: 2px solid rgba(255, 243, 223, 0.4);
  border-radius: 8px;
  background: center / 70% no-repeat;
}

.pt-wants b {
  font-size: 1rem;
  color: var(--cream);
}

.pt-wants i {
  font-style: normal;
  font-size: 0.86rem;
  color: var(--muted);
}

.pt-wants input:checked + span {
  border-color: var(--sun);
  background: rgba(255, 178, 56, 0.12);
}

.pt-wants input:checked + span::before {
  border-color: var(--sun);
  background-color: var(--sun);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.5l3.2 3L13 4.5' fill='none' stroke='%23140b26' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.pt-wants input:focus-visible + span {
  outline: 2px solid var(--sun);
  outline-offset: 2px;
}

.pt-platforms {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.pt-platforms legend {
  margin-bottom: 0.4rem;
}

.pt-platforms label {
  position: relative;
}

.pt-platforms input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.pt-platforms span {
  display: inline-flex;
  align-items: center;
  min-height: 2.5rem;
  padding: 0.4rem 0.95rem;
  border: 2px solid rgba(255, 243, 223, 0.2);
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.pt-platforms input:checked + span {
  border-color: var(--teal);
  background: rgba(46, 196, 182, 0.18);
}

.pt-platforms input:focus-visible + span {
  outline: 2px solid var(--sun);
  outline-offset: 2px;
}

.pt-trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.pt-msg--error {
  color: #ff9b8a;
  font-size: 0.92rem;
}

.pt-submit {
  width: 100%;
  margin-top: 0.3rem;
}

.pt-submit:disabled {
  opacity: 0.75;
  cursor: progress;
}

.pt-done {
  display: grid;
  gap: 0.6rem;
  justify-items: center;
  padding: 1.4rem 1.2rem;
  width: min(100%, 30rem);
  border-radius: 18px;
  background: rgba(46, 196, 182, 0.14);
  border: 2px solid rgba(46, 196, 182, 0.5);
}

.pt-done p b {
  color: var(--cream);
}

.pt-done > b {
  font-size: 1.3rem;
  color: var(--cream);
}

.pt-done p {
  color: var(--muted);
}

.pt-done--fail {
  background: rgba(255, 178, 56, 0.1);
  border-color: rgba(255, 178, 56, 0.5);
}

.pt-done[hidden],
.pt-form[hidden],
.pt-msg[hidden] {
  display: none;
}

/* Footer */
.footer {
  margin-top: clamp(3.5rem, 8vw, 6rem);
  padding: 1.6rem 0 2rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}

.footer .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
}

.footer img {
  height: 1.4rem;
  width: auto;
  opacity: 0.8;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 0.75rem;
}

.lightbox[hidden] {
  display: none;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(8, 4, 16, 0.85);
  cursor: pointer;
}

.lightbox-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  width: min(900px, 100%);
  max-height: min(92dvh, 940px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--night-2);
}

.lightbox-scroll {
  overflow-y: auto;
  overscroll-behavior: contain;
}

.lightbox-close {
  position: absolute;
  top: 0.6rem;
  right: 0.6rem;
  z-index: 5;
  width: 2.5rem;
  height: 2.5rem;
  border: 0;
  border-radius: 50%;
  font-weight: 800;
  color: var(--night);
  background: var(--sun);
  cursor: pointer;
}

.lightbox-stage {
  position: relative;
  display: grid;
  place-items: center;
  background: #000;
}

.lightbox-media {
  width: 100%;
  height: min(56svh, 520px);
  object-fit: contain;
}

.lightbox-media[hidden] {
  display: none;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  z-index: 3;
  width: 2.5rem;
  height: 2.5rem;
  border: 0;
  border-radius: 50%;
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--night);
  background: var(--cream);
  transform: translateY(-50%);
  cursor: pointer;
}

.lightbox-nav[hidden] {
  display: none;
}

.lightbox-prev {
  left: 0.7rem;
}

.lightbox-next {
  right: 0.7rem;
}

.lightbox-counter {
  position: absolute;
  bottom: 0.7rem;
  left: 50%;
  transform: translateX(-50%);
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  background: rgba(20, 11, 38, 0.75);
}

.lightbox-counter[hidden] {
  display: none;
}

.lightbox-thumbs {
  display: flex;
  gap: 0.45rem;
  overflow-x: auto;
  padding: 0.8rem 1rem 0;
}

.lightbox-thumbs:empty {
  display: none;
}

.lightbox-thumb {
  position: relative;
  flex: 0 0 auto;
  width: 4.4rem;
  height: 2.7rem;
  padding: 0;
  overflow: hidden;
  border: 2px solid transparent;
  border-radius: 8px;
  background: #000;
  opacity: 0.55;
  cursor: pointer;
}

.lightbox-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lightbox-thumb.is-active,
.lightbox-thumb:hover {
  opacity: 1;
  border-color: var(--sun);
}

.lightbox-thumb.is-video::after {
  content: "▶";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 0.75rem;
  color: #fff;
}

.lightbox-body {
  display: grid;
  gap: 0.6rem;
  padding: 1.1rem 1.3rem 1.4rem;
}

.lightbox-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
}

.lightbox-role {
  font-size: 0.88rem;
  color: var(--muted);
}

.lightbox-body h3 {
  font-size: 1.5rem;
}

.lightbox-body p {
  color: var(--muted);
}

.lightbox-links:empty {
  display: none;
}

html.lightbox-open,
body.lightbox-open {
  overflow: hidden;
}

/* Language switch + chooser */
.lang-switch {
  display: flex;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
}

.lang-switch button {
  min-width: 2rem;
  padding: 0.3rem 0.45rem;
  border: 0;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 800;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
}

.lang-switch button[aria-pressed="true"] {
  color: var(--night);
  background: var(--sun);
}

.lang-gate {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: grid;
  place-items: center;
  padding: 1.25rem;
  background: rgba(8, 4, 16, 0.82);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.lang-gate.is-on {
  opacity: 1;
}

body.lang-gate-open {
  overflow: hidden;
}

.lang-gate-panel {
  width: min(100%, 540px);
  padding: clamp(1.5rem, 5vw, 2.3rem);
  border-radius: 26px;
  text-align: center;
  background:
    radial-gradient(420px 200px at 50% 0%, rgba(255, 178, 56, 0.3), transparent 70%),
    var(--night-2);
  border: 1px solid var(--line);
}

.lang-gate-title {
  display: grid;
  gap: 0.15rem;
  margin-bottom: 1.4rem;
}

.lang-gate-title span:first-child {
  font-size: clamp(1.4rem, 4vw, 1.8rem);
  font-weight: 900;
}

.lang-gate-title span:not(:first-child) {
  color: var(--muted);
}

.lang-gate-options {
  display: grid;
  gap: 0.7rem;
}

@media (min-width: 520px) {
  .lang-gate-options {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.lang-gate-options button {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  padding: 1rem 0.6rem;
  border: 2px solid var(--line);
  border-radius: 16px;
  color: var(--text);
  background: rgba(255, 243, 223, 0.05);
  cursor: pointer;
}

.lang-gate-options button b {
  font-size: 1rem;
  font-weight: 800;
  white-space: nowrap;
}

.lang-gate-options button span {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--muted);
}

.lang-gate-options button:hover,
.lang-gate-options button:focus-visible,
.lang-gate-options button.is-suggested {
  border-color: var(--sun);
  outline: none;
}

@media (max-width: 640px) {
  .header .wrap {
    gap: 0.6rem;
  }

  .brand-sub {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .btn,
  .tile {
    transition: none;
  }
}

/* Phones: equal, full-width hero buttons */
@media (max-width: 560px) {
  .hero-text .actions {
    display: grid;
    grid-template-columns: 1fr;
    justify-self: stretch;
  }

  .hero-text .actions .btn {
    width: 100%;
  }
}

@media (max-width: 380px) {
  .header .btn--sm {
    display: none;
  }
}

/* Early test: why you */
.pt-field textarea {
  min-height: 6.2rem;
  resize: vertical;
  line-height: 1.45;
}

/* Social links */
.pt-links {
  display: grid;
  justify-items: center;
  gap: 0.75rem;
  margin-top: 0.4rem;
}

.pt-links > p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--muted);
}

.socials {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.55rem;
}

.social-pill svg {
  flex-shrink: 0;
}

.pt-more {
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--sun);
  text-decoration: none;
}

.pt-more:hover {
  text-decoration: underline;
}

.socials--icons {
  gap: 0.45rem;
}

.socials--icons .social {
  display: grid;
  place-items: center;
  width: 2.4rem;
  height: 2.4rem;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--text);
  transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.socials--icons .social:hover {
  transform: translateY(-2px);
  background: var(--sun);
  color: var(--night);
}

@media (max-width: 560px) {
  .pt-links .socials {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
  }
}

/* Narrow phones: the sign-up card never grows past the screen */
.playtest {
  grid-template-columns: minmax(0, 1fr);
}

.playtest > * {
  max-width: 100%;
}

@media (max-width: 560px) {
  .pt-links .social-pill {
    min-width: 0;
    padding-inline: 0.6rem;
  }
}

@media (max-width: 380px) {
  .playtest {
    padding-inline: 1rem;
  }
}
