/* ==========================================================================
   Quadrena — marketing site
   Laid out like pixelino.io: one dark page, glass cards, large type, little
   chrome. The look is Quadrena's own (marketing/logo/README.md): basalt,
   off-white and amber, set in Archivo, lit up like a games hall: each room
   has its colour (--r1 to --r4, numbered as the logo's quarters), and each
   game keeps its tile colour from the door page (.acc-*). Green and red
   stay what they are at the doors: a room free or in play.
   ========================================================================== */

@font-face {
  font-family: 'Archivo';
  src: url('fonts/archivo.woff2') format('woff2');
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}

:root {
  --basalt: #15161B;
  --fg: #F3F0E8;
  --fg-secondary: #BDB9B0;   /* 9.3:1 on basalt */
  --fg-tertiary: #8E8B85;    /* 5.3:1 on basalt: labels and small print */
  --amber: #FFB21E;
  --amber-soft: rgba(255, 178, 30, 0.13);
  --amber-line: rgba(255, 178, 30, 0.38);
  --free: #3DDB84;
  --busy: #FF4D4F;

  /* The rooms' colours, kept clear of the doors' green and red. */
  --r1: #FF8A3D;   /* Climber: lava and sunset */
  --r2: #B565FF;   /* Ball Quest: its purple worlds */
  --r3: #39D6FF;   /* Laser Maze: beams in haze */
  --r4: #FF5AAE;   /* Schießkino: the fair's hearts and balloons */
  --rooms-bar: linear-gradient(90deg, var(--r1) 0 25%, var(--r2) 25% 50%, var(--r3) 50% 75%, var(--r4) 75%);

  --glass: rgba(243, 240, 232, 0.035);
  --glass-strong: rgba(243, 240, 232, 0.065);
  --line: rgba(243, 240, 232, 0.10);
  --line-strong: rgba(243, 240, 232, 0.18);
  --quarter-dim: rgba(243, 240, 232, 0.17);

  --radius-s: 12px;
  --radius-m: 20px;
  --radius-l: 28px;
  --radius-pill: 999px;

  --font: 'Archivo', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);

  color-scheme: dark;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

/* A room's elements take its colour as --rc. */
[data-room="climber"]     { --rc: var(--r1); }
[data-room="ball_quest"]  { --rc: var(--r2); }
[data-room="lasermaze"]   { --rc: var(--r3); }
[data-room="schiesskino"] { --rc: var(--r4); }

/* A game's tile colour on its door page (kiosk.json's accent), as --gc. */
.acc-purple { --gc: #B060FF; }
.acc-red    { --gc: #FF4D6A; }
.acc-blue   { --gc: #5C8AFF; }
.acc-green  { --gc: #39FF8A; }
.acc-lime   { --gc: #3FE06B; }
.acc-yellow { --gc: #FFCE39; }
.acc-orange { --gc: #FF8A3D; }
.acc-pink   { --gc: #FF4F8F; }

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(900px 640px at 4% -6%, rgba(255, 138, 61, 0.13), transparent 62%),
    radial-gradient(900px 640px at 96% 2%, rgba(181, 101, 255, 0.15), transparent 62%),
    radial-gradient(900px 700px at 100% 78%, rgba(57, 214, 255, 0.08), transparent 60%),
    radial-gradient(900px 700px at 0% 96%, rgba(255, 90, 174, 0.09), transparent 60%),
    linear-gradient(180deg, #121318 0%, var(--basalt) 32%, #14151A 70%, #0F1014 100%);
  background-attachment: fixed;
  background-color: var(--basalt);
  color: var(--fg);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  word-spacing: 0.05em;   /* Archivo's space is 0.2 em: "Sneak through" ran together */
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 800; letter-spacing: -0.01em; }

::selection { background: var(--amber); color: var(--basalt); }

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

.wrap {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

section { position: relative; }

/* ---------- type ---------- */

h1 {
  font-size: clamp(40px, 7vw, 88px);
  font-stretch: 112%;
  line-height: 1.02;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

h2 {
  font-size: clamp(32px, 4.6vw, 56px);
  font-stretch: 108%;
  line-height: 1.06;
  text-wrap: balance;
}

h3 {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
}

.lead {
  font-size: clamp(18px, 1.6vw, 21px);
  color: var(--fg-secondary);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg-secondary);
}

/* The four rooms' colours as one short bar, like the logo's quarters. */
.eyebrow::before {
  content: '';
  width: 30px;
  height: 6px;
  border-radius: 3px;
  background: var(--rooms-bar);
}

.minor-label {
  display: block;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-tertiary);
}

.ui-icon {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 24px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  font-size: 16px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, transform 0.2s var(--ease);
}

.btn:active { transform: scale(0.98); }

.btn-primary {
  background: var(--amber);
  color: var(--basalt);
  box-shadow: 0 8px 28px -8px rgba(255, 178, 30, 0.6);
}
.btn-primary:hover { background: #FFC34F; box-shadow: 0 10px 34px -6px rgba(255, 178, 30, 0.75); }

.btn-ghost {
  background: rgba(243, 240, 232, 0.03);
  border-color: var(--line-strong);
  color: var(--fg);
}
.btn-ghost:hover { border-color: rgba(243, 240, 232, 0.42); }

.btn-small {
  min-height: 38px;
  padding: 0 16px;
  font-size: 14px;
}

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid transparent;
  transition: background 0.3s, border-color 0.3s;
}

.site-header.scrolled {
  background: rgba(21, 22, 27, 0.8);
  -webkit-backdrop-filter: saturate(140%) blur(16px);
  backdrop-filter: saturate(140%) blur(16px);
  border-bottom-color: var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 72px;
}

.brand img { height: 26px; width: auto; }

.nav-links {
  display: flex;
  gap: 28px;
  font-size: 15px;
  font-weight: 500;
  color: var(--fg-secondary);
}

.nav-links a { transition: color 0.2s; }
.nav-links a:hover { color: var(--fg); }

.nav-cta {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lang-dropdown { position: relative; }

.lang-dropdown-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 38px;
  padding: 0 10px 0 11px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line);
  background: var(--glass);
  color: var(--fg);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.05em;
  cursor: pointer;
}

.lang-dropdown-btn:hover { border-color: var(--line-strong); }
.lang-dropdown-btn .caret { width: 14px; height: 14px; transition: transform 0.2s; }
.lang-dropdown.open .caret { transform: rotate(180deg); }

.lang-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 184px;
  padding: 6px;
  border-radius: 14px;
  background: #1E1F25;
  border: 1px solid var(--line-strong);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
  display: none;
}

.lang-dropdown.open .lang-menu { display: block; }

.lang-menu button,
.mobile-lang-grid button {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 10px 12px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--fg);
  font-size: 15px;
  text-align: left;
  cursor: pointer;
}

.lang-menu button:hover,
.mobile-lang-grid button:hover { background: var(--glass-strong); }

.lang-code {
  width: 24px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--fg-tertiary);
}

.lang-menu button.active,
.mobile-lang-grid button.active,
.lang-menu button.active .lang-code,
.mobile-lang-grid button.active .lang-code { color: var(--amber); }

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--glass);
  color: var(--fg);
  place-items: center;
  cursor: pointer;
}

.nav-toggle .ui-icon { width: 20px; height: 20px; }

.mobile-nav {
  position: fixed;
  inset: 72px 0 0 0;
  z-index: 49;
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 20px 24px 32px;
  overflow-y: auto;
  background: rgba(15, 16, 20, 0.97);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.mobile-nav.open { display: flex; }

.mobile-nav > a:not(.btn) {
  padding: 14px 2px;
  border-bottom: 1px solid var(--line);
  font-size: 22px;
  font-weight: 700;
}

.mobile-nav .btn { margin-top: 20px; }

.mobile-lang-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 18px;
}

.mobile-lang-grid button { border: 1px solid var(--line); }

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

/* Clipped at the sides only: the glows fade into the next section instead of ending in an edge. */
.hero {
  overflow-x: clip;
  padding: 44px 0 112px;
}

.hero-glow span {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
}

/* A glow in each room's colour, roughly behind its tile, and the amber of the hand behind the words. */
.hero-glow .g1 { left: 38%; top: -10px; width: 460px; height: 380px; background: rgba(255, 138, 61, 0.16); }
.hero-glow .g2 { right: -4%; top: -40px; width: 520px; height: 420px; background: rgba(181, 101, 255, 0.22); }
.hero-glow .g3 { right: 0; top: 380px; width: 480px; height: 380px; background: rgba(57, 214, 255, 0.13); }
.hero-glow .g4 { left: -6%; top: 300px; width: 620px; height: 420px; background: rgba(255, 90, 174, 0.09); }

/* The ring of the logo, huge and faint, round the room tiles. */
.hero-ring {
  position: absolute;
  left: 71%;
  top: -230px;
  width: 1240px;
  height: 1240px;
  transform: translateX(-50%);
  fill: none;
  stroke: rgba(243, 240, 232, 0.06);
  stroke-width: 0.22;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.04fr);
  align-items: center;
  gap: 40px 56px;
}

.hero-logo {
  display: block;
  width: min(224px, 56vw);
  height: auto;
  margin: 0 0 34px;
  overflow: visible;
}

/* Each quarter in its room's colour: rooms 1 to 4 clockwise from the top (marketing/logo). */
.hero-logo .q1 { --qc: var(--r1); }
.hero-logo .q2 { --qc: var(--r2); }
.hero-logo .q3 { --qc: var(--r3); }
.hero-logo .q4 { --qc: var(--r4); }
.hero-logo .q { fill: var(--qc); }
.hero-logo .q-hand { fill: var(--amber); }

/* The name runs through the four rooms' colours, as the verbs below it do, from warm to cool. */
.hero-logo .wm1 { stop-color: var(--r1); }
.hero-logo .wm2 { stop-color: var(--r4); }
.hero-logo .wm3 { stop-color: var(--r2); }
.hero-logo .wm4 { stop-color: var(--r3); }
.hero-logo .q-word { fill: url(#heroWordmark); }

/* The boot screen's sequence (rooms#54): the quarters light one after the other, clockwise
   from the top, then the hand. Played once; reduced motion shows the logo as it is. */
@media (prefers-reduced-motion: no-preference) {
  .hero-logo .q { fill: #2A2C33; animation: quarter-on 0.55s var(--ease) forwards; }
  .hero-logo .q1 { animation-delay: 0.25s; }
  .hero-logo .q2 { animation-delay: 0.6s; }
  .hero-logo .q3 { animation-delay: 0.95s; }
  .hero-logo .q4 { animation-delay: 1.3s; }
  .hero-logo .q-hand { opacity: 0; animation: fade-in 0.7s var(--ease) 1.7s forwards; }
  .hero-logo .q-word { opacity: 0; animation: fade-in 0.9s var(--ease) 0.1s forwards; }
}

@keyframes quarter-on { to { fill: var(--qc); } }
@keyframes fade-in { to { opacity: 1; } }

.hero h1 {
  margin: 0 0 24px;
  font-size: clamp(42px, 5.2vw, 76px);
}

/* The four verbs are the four rooms, each in its colour; beside the tiles, one a line. */
.hero h1 span { white-space: nowrap; }
@media (min-width: 1001px) {
  .hero h1 span { display: block; }
}
.hero h1 .w1 { color: var(--r1); }
.hero h1 .w2 { color: var(--r2); }
.hero h1 .w3 { color: var(--r3); }
.hero h1 .w4 { color: var(--r4); }
.hero h1 .w1, .hero h1 .w2, .hero h1 .w3, .hero h1 .w4 {
  text-shadow: 0 0 36px color-mix(in srgb, currentColor 42%, transparent);
}

.hero .lead {
  max-width: 600px;
  margin: 0 0 34px;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* Under the words and the tiles, in one row. */
.hero-badges {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 15px 8px 13px;
  border-radius: var(--radius-pill);
  border: 1px solid color-mix(in srgb, var(--bc) 42%, transparent);
  background: color-mix(in srgb, var(--bc) 9%, transparent);
  font-size: 14px;
  font-weight: 600;
  color: var(--fg);
}

.hero-badge::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--bc);
  box-shadow: 0 0 8px var(--bc);
}

.hero-badge:nth-child(1) { --bc: var(--r1); }
.hero-badge:nth-child(2) { --bc: var(--r2); }
.hero-badge:nth-child(3) { --bc: var(--r3); }
.hero-badge:nth-child(4) { --bc: var(--r4); }

/* The four rooms as tiles, clockwise like the logo's quarters: 1 top left, 2 top right,
   3 bottom right, 4 bottom left. The right column sits a little lower. */
.hero-rooms {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.hero-tile:nth-child(3) { grid-column: 2; grid-row: 2; }
.hero-tile:nth-child(4) { grid-column: 1; grid-row: 2; }
.hero-tile:nth-child(2),
.hero-tile:nth-child(3) { top: 32px; }

.hero-tile {
  position: relative;
  display: block;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 20px;
  border: 1.5px solid color-mix(in srgb, var(--rc) 75%, transparent);
  background: #0B0C0F;
  box-shadow:
    0 0 0 4px color-mix(in srgb, var(--rc) 12%, transparent),
    0 24px 54px -20px color-mix(in srgb, var(--rc) 75%, transparent);
  transition: transform 0.35s var(--ease), box-shadow 0.3s;
}

.hero-tile:hover {
  transform: translateY(-4px);
  box-shadow:
    0 0 0 5px color-mix(in srgb, var(--rc) 22%, transparent),
    0 28px 64px -18px color-mix(in srgb, var(--rc) 90%, transparent);
}

.hero-media {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-tile::after {
  content: '';
  position: absolute;
  inset: auto 0 0 0;
  height: 50%;
  background: linear-gradient(180deg, transparent, rgba(8, 9, 11, 0.82));
  pointer-events: none;
}

.hero-tile-name {
  position: absolute;
  left: 14px;
  bottom: 12px;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 17px;
  font-weight: 800;
  font-stretch: 108%;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.7);
}

/* Under the tiles, clear of the right column's offset: they are illustrations, not photos. */
.hero-rooms-note {
  grid-column: 1 / -1;
  margin: 40px 0 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-align: right;
  color: var(--fg-tertiary);
}

/* "Illustration": on a picture that isn't a photo of the rooms. */
.scene-tag {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 1;
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  background: rgba(10, 11, 14, 0.74);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-secondary);
}

/* ---------- sections ---------- */

.section-pad { padding: 104px 0; }

.section-head {
  max-width: 830px;
  margin-bottom: 52px;
}

.section-head h2 { margin: 14px 0 18px; }
.section-head h2:first-child { margin-top: 0; }

.section-head p {
  margin: 0;
  font-size: 19px;
  color: var(--fg-secondary);
}

.card {
  border-radius: var(--radius-m);
  border: 1px solid var(--line);
  background: var(--glass);
}

/* ---------- advantages ---------- */

.adv-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.adv-card {
  display: grid;
  grid-template-columns: 40px 1fr;
  column-gap: 20px;
  align-content: start;
  padding: 28px 28px 30px;
  border-radius: var(--radius-m);
  border: 1px solid var(--line);
  background:
    radial-gradient(360px 180px at 0 0, color-mix(in srgb, var(--ac) 11%, transparent), transparent 75%),
    var(--glass);
  transition: border-color 0.3s;
}

.adv-card:hover { border-color: color-mix(in srgb, var(--ac) 55%, transparent); }

.adv-card:nth-child(4n+1) { --ac: var(--r1); }
.adv-card:nth-child(4n+2) { --ac: var(--r2); }
.adv-card:nth-child(4n+3) { --ac: var(--r3); }
.adv-card:nth-child(4n+4) { --ac: var(--r4); }

.adv-card > * { grid-column: 2; }

.adv-icon {
  grid-column: 1;
  grid-row: 1 / 4;
  width: 34px;
  height: 34px;
  margin-top: 2px;
  fill: none;
  stroke: var(--ac);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 6px color-mix(in srgb, var(--ac) 55%, transparent));
}

.adv-num {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--ac);
}

.adv-card h3 { margin: 4px 0 8px; }

.adv-card p {
  margin: 0;
  font-size: 15.5px;
  color: var(--fg-secondary);
}

.occasion-block {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  align-items: center;
  gap: 48px;
  margin-top: 64px;
  padding-top: 44px;
  border-top: 1px solid var(--line);
}

/* An illustration in a frame of its room's colour. */
.scene-figure {
  position: relative;
  margin: 0;
  overflow: hidden;
  aspect-ratio: 618 / 380;
  border-radius: var(--radius-m);
  border: 1.5px solid color-mix(in srgb, var(--rc) 70%, transparent);
  background: #0B0C0F;
  box-shadow:
    0 0 0 5px color-mix(in srgb, var(--rc) 12%, transparent),
    0 30px 70px -26px color-mix(in srgb, var(--rc) 80%, transparent);
}

.scene-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.occasion-intro {
  max-width: 660px;
  margin: 10px 0 22px;
  color: var(--fg-secondary);
}

.occasion-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.occasion-pills span {
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  border: 1px solid color-mix(in srgb, var(--pc) 45%, transparent);
  background: color-mix(in srgb, var(--pc) 8%, transparent);
  font-size: 15px;
  font-weight: 600;
}

.occasion-pills span:nth-child(4n+1) { --pc: var(--r1); }
.occasion-pills span:nth-child(4n+2) { --pc: var(--r2); }
.occasion-pills span:nth-child(4n+3) { --pc: var(--r3); }
.occasion-pills span:nth-child(4n+4) { --pc: var(--r4); }

/* ---------- rooms ---------- */

.room-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.room-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--radius-l);
  border: 1px solid color-mix(in srgb, var(--rc) 32%, transparent);
  background:
    radial-gradient(120% 70% at 50% 100%, color-mix(in srgb, var(--rc) 12%, transparent), transparent 70%),
    var(--glass);
  cursor: pointer;
  transition: transform 0.35s var(--ease), border-color 0.3s, box-shadow 0.3s;
}

.room-card:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--rc) 75%, transparent);
  box-shadow: 0 28px 60px -28px color-mix(in srgb, var(--rc) 85%, transparent);
}

/* The room's colour as a lit edge under its clip. */
.room-media::after {
  content: '';
  position: absolute;
  inset: auto 0 0 0;
  height: 3px;
  background: var(--rc);
  box-shadow: 0 0 16px var(--rc);
}

.room-media {
  position: relative;
  aspect-ratio: 1588 / 686;
  background: #0B0C0F;
}

.room-shot {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.room-badge {
  position: absolute;
  left: 14px;
  top: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 13px 6px 8px;
  border-radius: var(--radius-pill);
  background: rgba(15, 16, 20, 0.8);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.mini-q {
  width: 20px;
  height: 20px;
  flex: none;
}

.mini-q path { fill: var(--quarter-dim); }
.mini-q path.lit { fill: var(--rc, var(--amber)); }

.room-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 24px 26px 26px;
}

.room-body h3 {
  font-size: 28px;
  font-weight: 800;
  font-stretch: 110%;
}

.room-kicker {
  margin: 4px 0 12px;
  font-size: 15px;
  font-weight: 600;
  color: var(--rc);
}

.room-body p {
  margin: 0 0 16px;
  font-size: 16px;
  color: var(--fg-secondary);
}

.room-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
  margin-bottom: 18px;
  font-size: 14px;
}

.room-facts li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.room-facts li::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--rc);
  box-shadow: 0 0 6px var(--rc);
}

.room-games {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}

/* A game in its door tile's colour. */
.game-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 12px 5px 10px;
  border-radius: var(--radius-pill);
  border: 1px solid color-mix(in srgb, var(--gc, var(--fg)) 40%, transparent);
  background: color-mix(in srgb, var(--gc, var(--fg)) 8%, transparent);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--fg);
}

.game-chip::before,
.table-game::before,
.modal-tab span::before {
  content: '';
  flex: none;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gc, var(--fg-tertiary));
  box-shadow: 0 0 6px color-mix(in srgb, var(--gc, transparent) 80%, transparent);
}

.card-link {
  align-self: flex-start;
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--rc, var(--amber));
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}

.card-link .ui-icon {
  width: 16px;
  height: 16px;
  transition: transform 0.25s var(--ease);
}

.room-card:hover .card-link .ui-icon { transform: translateX(3px); }

/* ---------- the games table ---------- */

.compare-scroll {
  position: relative;
  overflow-x: auto;
  border-radius: var(--radius-m);
  border: 1px solid var(--line);
  background: var(--glass);
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}

.compare-table thead th {
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-align: left;
  color: var(--fg-tertiary);
}

.compare-table tbody tr {
  cursor: pointer;
  transition: background 0.2s;
}

.compare-table tbody tr:hover { background: color-mix(in srgb, var(--rc) 9%, transparent); }

.compare-table tbody th,
.compare-table td {
  padding: 12px 20px;
  border-bottom: 1px solid rgba(243, 240, 232, 0.06);
  text-align: left;
  font-weight: 400;
  color: var(--fg-secondary);
}

/* A firmer line after each room's five games. */
.compare-table tbody tr:nth-child(5n) > * { border-bottom-color: var(--line-strong); }
.compare-table tbody tr:last-child > * { border-bottom: 0; }

.table-game {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--fg);
  font-size: 15px;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}

.compare-table tbody tr:hover .table-game { color: var(--rc); }

.table-room { white-space: nowrap; }

/* On a phone the room moves under the game's name (see below). */
.table-game-room {
  display: none;
  margin: 2px 0 0 17px;
  font-size: 13px;
  color: var(--fg-tertiary);
}

.table-room .mini-q {
  display: inline-block;
  width: 16px;
  height: 16px;
  margin-right: 9px;
  vertical-align: -3px;
}

.nowrap { white-space: nowrap; }

.table-footnote {
  max-width: 760px;
  margin: 16px 0 0;
  font-size: 14px;
  color: var(--fg-tertiary);
}

/* ---------- how it works ---------- */

.flow-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  overflow: hidden;
  border-radius: var(--radius-m);
  border: 1px solid var(--line);
  background: var(--glass);
}

.flow-step {
  padding: 28px 24px 30px;
  border-right: 1px solid var(--line);
}

.flow-step:last-child { border-right: 0; }

.flow-step .num {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-bottom: 18px;
  border-radius: 50%;
  background: var(--sc);
  box-shadow: 0 0 18px color-mix(in srgb, var(--sc) 60%, transparent);
  color: var(--basalt);
  font-size: 15px;
  font-weight: 800;
}

.flow-step:nth-child(1) { --sc: var(--r1); }
.flow-step:nth-child(2) { --sc: var(--r2); }
.flow-step:nth-child(3) { --sc: var(--r3); }
.flow-step:nth-child(4) { --sc: var(--r4); }

.flow-step h3 {
  margin-bottom: 8px;
  font-size: 17px;
}

.flow-step p {
  margin: 0;
  font-size: 15px;
  color: var(--fg-secondary);
}

/* The door screens: the real door pages, in a bezel like the terminal's. */
.doors-panel {
  margin: 20px 0 56px;
  padding: 26px 28px 24px;
  border-radius: var(--radius-m);
  border: 1px solid var(--line);
  background: rgba(10, 11, 14, 0.55);
}

.doors {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px 22px;
  margin: 22px 0 22px;
}

.door-clip {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 0;
}

.door-clip figcaption {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.door-screen {
  position: relative;
  display: block;
  width: calc(100% - 14px);
  margin: 7px 7px 0;
  aspect-ratio: 9 / 16;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 12px;
  background: #000;
  box-shadow:
    0 0 0 7px #08090B,
    0 0 0 8px var(--line-strong),
    0 20px 40px rgba(0, 0, 0, 0.5);
  cursor: zoom-in;
  transition: transform 0.35s var(--ease);
}

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

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

.door-zoom {
  position: absolute;
  right: 10px;
  bottom: 10px;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(15, 16, 20, 0.78);
  color: var(--fg);
  opacity: 0;
  transition: opacity 0.2s;
}

.door-zoom .ui-icon { width: 17px; height: 17px; }

.door-screen:hover .door-zoom,
.door-screen:focus-visible .door-zoom { opacity: 1; }

.door-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--fg-secondary);
}

.door-meta .mini-q { width: 16px; height: 16px; }

/* The doorway's colour in the clip: green, red, or one turning into the other. */
.door-dots {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-right: 2px;
}

.door-dots i {
  display: block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
}

.door-dots .free { background: var(--free); box-shadow: 0 0 8px rgba(61, 219, 132, 0.7); }
.door-dots .busy { background: var(--busy); box-shadow: 0 0 8px rgba(255, 77, 79, 0.7); }

.door-dots b {
  font-weight: 400;
  font-size: 13px;
  line-height: 1;
  color: var(--fg-tertiary);
}

.door-clip strong {
  font-size: 17px;
  line-height: 1.3;
}

.door-desc {
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--fg-secondary);
}

.doors-note {
  margin: 0;
  font-size: 14px;
  color: var(--fg-tertiary);
}

/* A door screen larger, beside its words. */
.door-modal {
  position: relative;
  display: flex;
  align-items: center;
  gap: 34px;
  max-width: 920px;
}

.door-modal .modal-close {
  top: -6px;
  right: -6px;
}

.door-modal-video {
  height: min(86vh, 86dvh, 1280px);
  aspect-ratio: 9 / 16;
  border-radius: 16px;
  background: #000;
  box-shadow:
    0 0 0 9px #08090B,
    0 0 0 10px var(--line-strong),
    0 30px 80px rgba(0, 0, 0, 0.6);
}

.door-modal-caption {
  max-width: 320px;
}

.door-modal-caption h3 {
  margin: 12px 0 10px;
  font-size: 28px;
  font-weight: 800;
  font-stretch: 110%;
}

.door-modal-caption p {
  margin: 0;
  color: var(--fg-secondary);
}

.rules-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.rule-card {
  padding: 26px;
  border-radius: var(--radius-m);
  border: 1px solid var(--line);
  background: var(--glass);
  box-shadow: inset 0 3px 0 var(--uc);
}

.rule-card:nth-child(1) { --uc: var(--r2); }
.rule-card:nth-child(2) { --uc: var(--amber); }
.rule-card:nth-child(3) { --uc: var(--r3); }

.rule-card h3 { margin-bottom: 8px; }

.rule-card p {
  margin: 0;
  font-size: 15px;
  color: var(--fg-secondary);
}

/* ---------- system ---------- */

.spec-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 16px 0 48px;
}

.spec-grid:last-child { margin-bottom: 0; }
.spec-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.spec-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.spec-card {
  padding: 24px;
  border-radius: var(--radius-m);
  border: 1px solid var(--line);
  background: var(--glass);
}

.spec-card h3 {
  margin-bottom: 8px;
  font-size: 17px;
}

.spec-card p {
  margin: 0;
  font-size: 15px;
  color: var(--fg-secondary);
}

.spec-room {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  font-size: 17px;
  font-weight: 800;
}

.spec-room .mini-q { width: 22px; height: 22px; }

.spec-card[data-room] {
  border-color: color-mix(in srgb, var(--rc) 30%, transparent);
  box-shadow: inset 0 3px 0 var(--rc);
}

/* ---------- references ---------- */

.ref-card {
  position: relative;
  overflow: hidden;
  padding: 30px;
  border-radius: var(--radius-m);
  border: 1px solid var(--line);
  background: var(--glass);
}

.ref-status {
  display: inline-block;
  margin-bottom: 16px;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line-strong);
  background: var(--glass-strong);
  color: var(--fg-secondary);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* Pixelino's game floor: every tile a colour. */
.ref-card::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, #FF3B5C, #FF9F1C, #FFE14D, #3DDB84, #39D6FF, #7B6CFF, #FF5AAE);
}

.ref-card h2 {
  font-size: 26px;
  font-weight: 800;
  font-stretch: 110%;
}

.ref-card p {
  margin: 10px 0 0;
  color: var(--fg-secondary);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  color: var(--amber);
  font-weight: 700;
}

.text-link .ui-icon { width: 16px; height: 16px; }

/* ---------- contact ---------- */

.contact-section {
  overflow: hidden;
  padding: 120px 0 112px;
  border-top: 1px solid var(--line);
  background:
    radial-gradient(620px 420px at 16% 18%, rgba(255, 138, 61, 0.13), transparent 70%),
    radial-gradient(620px 420px at 84% 14%, rgba(181, 101, 255, 0.16), transparent 70%),
    radial-gradient(620px 420px at 86% 92%, rgba(57, 214, 255, 0.11), transparent 70%),
    radial-gradient(620px 420px at 12% 90%, rgba(255, 90, 174, 0.12), transparent 70%),
    radial-gradient(820px 520px at 50% 34%, rgba(255, 178, 30, 0.08), transparent 70%);
  text-align: center;
}

.contact-ring {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 960px;
  height: 960px;
  transform: translate(-50%, -50%);
  fill: rgba(243, 240, 232, 0.025);
  pointer-events: none;
}

.contact-ring path:nth-child(1) { fill: rgba(255, 138, 61, 0.05); }
.contact-ring path:nth-child(2) { fill: rgba(181, 101, 255, 0.06); }
.contact-ring path:nth-child(3) { fill: rgba(57, 214, 255, 0.05); }
.contact-ring path:nth-child(4) { fill: rgba(255, 90, 174, 0.05); }
.contact-ring .ring-hand { fill: rgba(255, 178, 30, 0.06); }

.contact-inner {
  position: relative;
  max-width: 780px;
}

.contact-inner h2 { margin-bottom: 18px; }
.contact-inner .lead { margin: 0; }
.contact-actions { margin: 32px 0 44px; }

.contact-panel {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 28px 40px;
  border-radius: var(--radius-m);
  border: 1px solid var(--line);
  background: rgba(21, 22, 27, 0.78);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.partner-logo {
  width: auto;
  height: 54px;
  margin-bottom: 10px;
}

.panel-label {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-tertiary);
}

.panel-name {
  margin: 4px 0 2px;
  font-size: 18px;
  font-weight: 800;
}

.panel-line {
  font-size: 15px;
  color: var(--fg-secondary);
}

.panel-line a:hover { color: var(--amber); }

/* ---------- footer ---------- */

.site-footer {
  padding: 64px 0 36px;
  background:
    var(--rooms-bar) top / 100% 2px no-repeat,
    rgba(10, 11, 14, 0.45);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 32px;
}

.footer-brand img {
  width: auto;
  height: 24px;
  margin-bottom: 16px;
}

.footer-brand p {
  max-width: 330px;
  margin: 0;
  font-size: 14px;
  color: var(--fg-tertiary);
}

.footer-col h2 {
  margin-bottom: 14px;
  font-size: 13px;
  font-weight: 800;
  font-stretch: 100%;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.footer-col li {
  margin: 8px 0;
  font-size: 14px;
  color: var(--fg-secondary);
}

.footer-col a:hover { color: var(--amber); }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 24px;
  margin-top: 48px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--fg-tertiary);
}

/* ---------- the room dialog ---------- */

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(8, 9, 11, 0.74);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.modal-overlay.open { display: flex; }
body.modal-open { overflow: hidden; }

.modal-panel {
  position: relative;
  width: min(980px, 100%);
  max-height: calc(100vh - 48px);
  max-height: calc(100dvh - 48px);
  overflow-y: auto;
  border-radius: var(--radius-l);
  border: 1px solid color-mix(in srgb, var(--rc, var(--fg)) 40%, transparent);
  background: #1A1B21;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55), 0 0 60px -20px color-mix(in srgb, var(--rc, transparent) 60%, transparent);
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: rgba(15, 16, 20, 0.75);
  color: var(--fg);
  cursor: pointer;
}

.modal-close svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}

/* The clip's own shape (1588 × 686) at the panel's width, but never more than 42 % of the
   screen's height, so the game's text stays in view on a laptop. */
.modal-media {
  height: min(42vh, calc(min(980px, 100vw - 48px) * 0.432));
  background: #0B0C0F;
}

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

.modal-body { padding: 24px 30px 30px; }

.modal-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin-bottom: 20px;
}

.modal-head h3 {
  font-size: 28px;
  font-weight: 800;
  font-stretch: 110%;
}

.modal-kicker {
  font-weight: 600;
  color: var(--rc);
}

.room-badge--inline {
  position: static;
  background: var(--glass-strong);
}

.modal-tabs {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 22px;
}

.modal-tab {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 6px 6px 10px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--glass);
  color: var(--fg-secondary);
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.25;
  text-align: left;
  cursor: pointer;
}

.modal-tab img {
  width: 100%;
  aspect-ratio: 1588 / 686;
  object-fit: cover;
  border-radius: 9px;
}

.modal-tab span {
  display: flex;
  align-items: baseline;
  gap: 7px;
  padding: 0 4px;
}

.modal-tab span::before { transform: translateY(-1px); }
.modal-tab:hover { border-color: var(--line-strong); color: var(--fg); }

.modal-tab[aria-selected="true"] {
  border-color: var(--gc);
  background: color-mix(in srgb, var(--gc) 13%, transparent);
  color: var(--fg);
}

.cat-pill {
  display: inline-block;
  padding: 4px 11px;
  border-radius: var(--radius-pill);
  background: color-mix(in srgb, var(--gc, var(--amber)) 15%, transparent);
  color: var(--gc, var(--amber));
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.modal-game h4 {
  margin: 10px 0 8px;
  font-size: 24px;
  font-weight: 800;
}

.modal-game .desc {
  max-width: 70ch;
  margin: 0 0 18px;
  color: var(--fg-secondary);
}

.modal-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.modal-stats div {
  display: flex;
  flex-direction: column;
  min-width: 150px;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--glass);
}

.modal-stats strong { font-size: 17px; }

.modal-stats span {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-tertiary);
}

/* ---------- legal pages ---------- */

.legal-hero { padding: 64px 0 8px; }

.legal-hero h1 {
  margin-top: 14px;
  font-size: clamp(34px, 5vw, 56px);
}

.legal-hero h1 span {
  font-weight: 400;
  color: var(--fg-tertiary);
}

.legal-content > * { max-width: 840px; }

.js .legal-lang { display: none; }
.js .legal-lang.active { display: block; }

.legal-block {
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}

.legal-block h2 {
  margin-bottom: 10px;
  font-size: 20px;
  font-stretch: 100%;
}

.legal-block p {
  margin: 0 0 10px;
  color: var(--fg-secondary);
}

.legal-block a { color: var(--amber); }

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 15px;
  font-weight: 600;
  color: var(--fg-secondary);
}

.back-link:hover { color: var(--fg); }

/* ---------- reveal on scroll ---------- */

.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .room-card, .door-screen, .hero-tile { transition: none; }
}

/* ---------- smaller screens ---------- */

@media (max-width: 1080px) {
  .spec-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .flow-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .flow-step:nth-child(2) { border-right: 0; }
  .flow-step:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}

/* The hero's words above its room tiles. */
@media (max-width: 1000px) {
  .hero { padding: 40px 0 96px; text-align: center; }
  .hero-inner { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .hero-logo { margin: 0 auto 34px; }
  .hero h1 { max-width: 820px; margin: 0 auto 24px; }
  .hero .lead { max-width: 720px; margin: 0 auto 34px; }
  .hero-ctas,
  .hero-badges { justify-content: center; }
  .hero-rooms { width: 100%; max-width: 560px; margin: 0 auto; }
  .hero-ring { left: 50%; top: 260px; }
  .hero-glow .g1 { left: 0; top: 520px; }
  .hero-glow .g4 { left: 10%; top: 900px; }
  .hero-glow .g3 { top: 860px; }
}

/* German needs the whole width for the header at 1000 px, so the links go into the menu early. */
@media (max-width: 1040px) {
  .nav-links { display: none; }
  .nav-toggle { display: grid; }
}

@media (max-width: 820px) {
  .adv-grid,
  .room-grid,
  .rules-grid,
  .spec-grid,
  .spec-grid--2 { grid-template-columns: minmax(0, 1fr); }

  .occasion-block { grid-template-columns: minmax(0, 1fr); gap: 32px; }

  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }

  .modal-tabs {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: 132px;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .doors { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .door-modal {
    flex-direction: column;
    gap: 22px;
  }

  .door-modal-video { height: min(66vh, 66dvh, 1280px); }

  .door-modal-caption {
    max-width: 440px;
    text-align: center;
  }

  .door-modal-caption .door-meta { justify-content: center; }
  .door-modal-caption h3 { font-size: 22px; margin: 8px 0 6px; }
  .door-modal .modal-close { top: -8px; right: -8px; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .modal-overlay.door-overlay { align-items: center; padding: 20px 16px; }
  .wrap { padding: 0 16px; }
  .site-header .wrap { height: 64px; gap: 12px; }
  .mobile-nav { inset: 64px 0 0 0; padding: 16px 16px 28px; }
  .brand img { height: 22px; }
  .nav-cta-btn { display: none; }

  .hero { padding: 32px 0 76px; }
  .hero-logo { margin-bottom: 28px; }
  .hero-ring { width: 900px; height: 900px; top: 120px; }
  .hero-ctas .btn { width: 100%; }
  .hero-rooms { gap: 10px; }
  .hero-rooms-note { margin-top: 26px; font-size: 11px; text-align: center; }
  .hero-tile:nth-child(2),
  .hero-tile:nth-child(3) { top: 18px; }
  .hero-tile { border-radius: 14px; }
  .hero-tile-name { left: 10px; bottom: 8px; gap: 6px; font-size: 14px; }
  .hero-tile-name .mini-q { width: 16px; height: 16px; }
  .scene-tag { top: 7px; right: 7px; padding: 2px 7px; font-size: 9.5px; }
  .occasion-block { margin-top: 48px; padding-top: 36px; }

  .section-pad { padding: 72px 0; }
  .section-head { margin-bottom: 36px; }
  .section-head p { font-size: 17px; }

  .adv-card { padding: 22px 20px 24px; column-gap: 14px; grid-template-columns: 34px 1fr; }
  .adv-icon { width: 30px; height: 30px; }

  .room-body { padding: 20px 20px 22px; }
  .room-body h3 { font-size: 24px; }

  .flow-row { grid-template-columns: minmax(0, 1fr); }
  .flow-step { border-right: 0; border-bottom: 1px solid var(--line); }
  .flow-step:last-child { border-bottom: 0; }

  .doors-panel { padding: 20px 16px 18px; }
  .doors { gap: 26px 16px; }
  .door-clip strong { font-size: 16px; }
  .door-desc { font-size: 14px; }

  .compare-table tbody th,
  .compare-table td,
  .compare-table thead th { padding: 11px 12px; }

  .compare-table .table-room,
  .compare-table thead th:nth-child(2) { display: none; }
  .table-game-room { display: block; }

  .spec-grid--4 { grid-template-columns: minmax(0, 1fr); }

  .contact-section { padding: 88px 0 80px; }
  .contact-panel { padding: 24px 20px; width: 100%; }

  .modal-overlay { padding: 0; align-items: flex-end; }
  .modal-media { height: min(36vh, calc(100vw * 0.432)); }
  .modal-panel {
    max-height: 92vh;
    max-height: 92dvh;
    border-radius: var(--radius-l) var(--radius-l) 0 0;
  }
  .modal-body { padding: 20px 18px 24px; }
  .modal-head h3 { font-size: 24px; }

  .footer-bottom { flex-direction: column; }
}
