/* ==========================================================================
   Natalie's world — the page round the island
   The same tokens as the portfolio (css/style.css), and only what this page draws: a bar, a map, a
   card for the place you are in, touch controls, and the door.
   ========================================================================== */

@font-face { font-family: "Instrument Serif"; font-style: italic; font-weight: 400; font-display: swap; src: url("../fonts/InstrumentSerif-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Inter Tight"; font-style: normal; font-weight: 300 600; font-display: swap; src: url("../fonts/InterTight-variable.woff2") format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/JetBrainsMono-400.woff2") format("woff2"); }

:root {
  --bg: #130a10;
  --bg-2: #1a0e16;
  --line: rgba(255, 236, 244, 0.14);
  --line-strong: rgba(255, 236, 244, 0.28);
  --ink: #fdf1f6;
  --ink-2: #d2bccb;
  --muted: #a8949f;
  --accent: #ff5fa2;
  --accent-ink: #2b0616;
  --glass: rgba(24, 12, 20, 0.62);
  --sans: "Inter Tight", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --serif: "Instrument Serif", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --gutter: clamp(14px, 3vw, 28px);
  --safe-t: env(safe-area-inset-top, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-l: env(safe-area-inset-left, 0px);
  --safe-r: env(safe-area-inset-right, 0px);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0; overflow: hidden; background: var(--bg); color: var(--ink);
  font-family: var(--sans); font-size: 15px; line-height: 1.5;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  touch-action: none; overscroll-behavior: none; user-select: none; -webkit-user-select: none;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
em { font-family: var(--serif); font-style: italic; font-weight: 400; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
kbd { font-family: var(--mono); font-size: 0.82em; padding: 1px 5px; border: 1px solid var(--line-strong); border-radius: 5px; margin: 0 1px; color: var(--ink); }

.skip { position: fixed; top: calc(10px + var(--safe-t)); left: 10px; z-index: 50; padding: 9px 14px; border-radius: 999px; background: var(--ink); color: var(--bg); font-size: 14px; transform: translateY(-200%); transition: transform 0.4s var(--ease); }
.skip:focus-visible { transform: none; }

.world { position: fixed; inset: 0; width: 100%; height: 100%; display: block; outline: none; cursor: crosshair; }
.world.is-driving { cursor: none; }
.world.is-pointing { cursor: pointer; } /* over something that can be done: a press does it */

/* ---- the bar ------------------------------------------------------------------------------------ */
.bar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: calc(14px + var(--safe-t)) calc(var(--gutter) + var(--safe-r)) 14px calc(var(--gutter) + var(--safe-l));
  pointer-events: none;
}
.bar > * { pointer-events: auto; }
.bar__brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 500; letter-spacing: -0.01em; text-shadow: 0 1px 12px rgba(0, 0, 0, 0.45); }
.bar__mark { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; background: var(--ink); }
.bar__mark svg { width: 18px; height: 16px; color: var(--accent); }
.bar__name { font-family: var(--serif); font-style: italic; font-size: 20px; }
.bar__right { display: flex; align-items: center; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px; border-radius: 999px;
  background: var(--glass); border: 1px solid var(--line-strong); color: var(--ink); font-size: 13.5px; font-weight: 500; white-space: nowrap;
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  transition: background 0.3s, border-color 0.3s, color 0.3s, transform 0.3s var(--ease);
}
.chip:hover { border-color: var(--ink); }
.chip[aria-expanded="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.chip--solid { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.chip--solid:hover { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.chip--icon { width: 38px; padding: 0; justify-content: center; }
.bars { display: flex; align-items: center; gap: 2px; height: 13px; }
.bars i { width: 2px; height: 3px; border-radius: 1px; background: currentColor; }
.chip--icon[aria-pressed="true"] { color: var(--accent); border-color: var(--accent); }
.chip--icon[aria-pressed="true"] .bars i { animation: bar 0.9s ease-in-out infinite; }
.chip--icon .bars i:nth-child(2) { animation-delay: 0.15s; } .chip--icon .bars i:nth-child(3) { animation-delay: 0.3s; } .chip--icon .bars i:nth-child(4) { animation-delay: 0.45s; }
@keyframes bar { 0%, 100% { height: 3px; } 50% { height: 13px; } }
@media (max-width: 560px) { .chip--solid > [aria-hidden], .chip__more, .bar__name { display: none; } .chip--solid { padding: 0 12px; } }

/* ---- the map ------------------------------------------------------------------------------------ */
.map {
  position: fixed; z-index: 9; right: calc(var(--gutter) + var(--safe-r)); top: calc(66px + var(--safe-t));
  display: grid; justify-items: end; gap: 6px; opacity: 0; transition: opacity 0.6s var(--ease);
}
.is-playing .map { opacity: 1; }
.map canvas {
  width: 168px; height: 168px; border-radius: 50%; cursor: pointer;
  background: var(--glass); border: 1px solid var(--line-strong);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.map__label {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-2);
  padding: 3px 8px; border-radius: 999px; background: var(--glass); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
@media (max-width: 700px) { .map canvas { width: 104px; height: 104px; } .map__label { display: none; } }

/* ---- Places ------------------------------------------------------------------------------------- */
.places {
  position: fixed; z-index: 11; right: calc(var(--gutter) + var(--safe-r)); top: calc(62px + var(--safe-t));
  width: min(300px, calc(100vw - 2 * var(--gutter))); max-height: calc(100vh - 90px - var(--safe-t)); overflow: auto;
  padding: 14px; border-radius: 20px; background: rgba(24, 12, 20, 0.86); border: 1px solid var(--line-strong);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.8);
}
.places[hidden] { display: none; }
.places__head { margin: 2px 6px 10px; font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.places__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.places__list button {
  width: 100%; display: grid; grid-template-columns: 12px 1fr auto; align-items: center; gap: 10px;
  padding: 9px 8px; border-radius: 12px; text-align: left; transition: background 0.25s;
}
.places__list button:hover, .places__list button:focus-visible { background: rgba(255, 236, 244, 0.08); }
.places__list i { width: 10px; height: 10px; border-radius: 50%; background: var(--c, var(--accent)); box-shadow: 0 0 10px var(--c, var(--accent)); }
.places__list b { font-weight: 500; font-size: 14.5px; }
.places__list small { font-family: var(--mono); font-size: 10.5px; color: var(--muted); }

/* ---- the card ------------------------------------------------------------------------------------ */
/* The card is clear, everywhere: no panel, no blur, no shadow — just the words on the island, with a soft
   dark halo so they read on it, and small see-through buttons. A press anywhere but its buttons goes
   through to the ground. On a wide screen it sits bottom left; on a phone, top left beside the map. */
.card {
  position: fixed; z-index: 8; left: calc(var(--gutter) + var(--safe-l)); bottom: calc(var(--gutter) + var(--safe-b));
  width: min(360px, calc(100vw - 2 * var(--gutter))); padding: 0 2px;
  transform: translateY(14px); opacity: 0; transition: transform 0.55s var(--ease), opacity 0.4s var(--ease);
  pointer-events: none;
}
.card[hidden] { display: block; visibility: hidden; }
.card.is-on { transform: none; opacity: 1; visibility: visible; }
.card__eyebrow, .card__title, .card__role, .card__text { text-shadow: 0 1px 2px rgba(20, 6, 16, 0.95), 0 0 6px rgba(20, 6, 16, 0.8), 0 0 16px rgba(20, 6, 16, 0.55); }
.card__eyebrow { margin: 0 0 6px; font-family: var(--mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255, 244, 249, 0.9); }
.card__title { margin: 0; font-size: clamp(1.35rem, 2.1vw, 1.7rem); line-height: 1.08; letter-spacing: -0.025em; font-weight: 400; }
.card__title em { color: var(--c, var(--accent)); }
.card__role { margin: 5px 0 0; color: var(--ink); font-size: 13.5px; font-weight: 500; line-height: 1.35; }
.card__text { margin: 6px 0 0; color: rgba(255, 244, 249, 0.82); font-size: 13px; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card__actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.card__actions:empty { display: none; }
.card__actions a, .card__actions button {
  display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: 999px; pointer-events: auto;
  font-size: 12.5px; font-weight: 500; color: var(--ink); background: rgba(24, 12, 20, 0.35); border: 1px solid rgba(255, 236, 244, 0.45);
  transition: background 0.3s, color 0.3s, border-color 0.3s;
}
.card__actions a:first-child, .card__actions .is-primary { background: rgba(255, 246, 250, 0.85); color: var(--bg); border-color: transparent; }
.card__actions a:hover, .card__actions button:hover { border-color: var(--c, var(--accent)); }
.card__actions a:first-child:hover, .card__actions .is-primary:hover { background: var(--c, var(--accent)); color: var(--accent-ink); border-color: var(--c, var(--accent)); }

@media (max-width: 700px) {
  /* on a phone it is smaller still and keeps to the top left, beside the map, clear of the thumbs and of
     the heart: the dates, the name, the role and small buttons (the words are a press away, on the site) */
  .card { top: calc(64px + var(--safe-t)); bottom: auto; right: calc(var(--gutter) + var(--safe-r) + 104px + 10px); width: auto; max-width: 300px; transform: translateY(-10px); }
  .card__eyebrow { margin-bottom: 4px; font-size: 9px; letter-spacing: 0.08em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .card__title { font-size: 1.12rem; line-height: 1.1; letter-spacing: -0.02em; }
  .card__role { margin-top: 3px; font-size: 11.5px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .card__text { display: none; }
  .card__actions { margin-top: 8px; }
  .card__actions a, .card__actions button { height: 28px; padding: 0 10px; font-size: 11.5px; }
}
/* on touch the pad and the hop button own the bottom corners: on a tablet the card stands above them */
@media (min-width: 701px) { .is-touch .card { bottom: calc(26px + 118px + 16px + var(--safe-b)); } }

/* ---- what is in reach, the purse, a word from the world ----------------------------------------- */
.act {
  position: fixed; z-index: 9; left: 50%; bottom: calc(64px + var(--safe-b)); transform: translate(-50%, 8px);
  display: inline-flex; align-items: center; gap: 10px; height: 46px; padding: 0 18px 0 8px; border-radius: 999px;
  background: var(--accent); color: var(--accent-ink); font-size: 14.5px; font-weight: 600; white-space: nowrap;
  box-shadow: 0 10px 34px -8px rgba(255, 95, 162, 0.7); opacity: 0; transition: opacity 0.25s var(--ease), transform 0.35s var(--ease);
}
.act[hidden] { display: inline-flex; visibility: hidden; pointer-events: none; }
.act.is-on { opacity: 1; transform: translate(-50%, 0); visibility: visible; }
.act kbd { display: grid; place-items: center; width: 30px; height: 30px; margin: 0; border-radius: 50%; border: 0; background: var(--accent-ink); color: var(--accent); font-size: 13px; font-weight: 600; }
.is-touch .act kbd { display: none; }
.is-touch .act { padding-left: 18px; bottom: calc(52px + var(--safe-b)); max-width: calc(100vw - 2 * (22px + 118px + 12px)); overflow: hidden; text-overflow: ellipsis; }
.act:hover { filter: brightness(1.06); }
/* on a phone there is no room between the pad and the hop button: the prompt stands above them, the width
   of the screen to itself (and the hint, which lives there, makes way for it) */
@media (max-width: 700px) {
  .is-touch .act { bottom: calc(26px + 118px + 16px + var(--safe-b)); max-width: calc(100vw - 2 * var(--gutter) - var(--safe-l) - var(--safe-r)); }
  .is-touch body:has(.act.is-on) .hint { opacity: 0; }
}
/* between the phone layout and a wide screen it keeps to the right, above the hint, clear of the card */
@media (min-width: 701px) and (max-width: 1180px) { html:not(.is-touch) .act { left: auto; right: calc(var(--gutter) + var(--safe-r)); transform: translateY(8px); } html:not(.is-touch) .act.is-on { transform: none; } }
.purse {
  display: inline-flex; align-items: baseline; gap: 3px; margin: 0 auto 0 14px; padding: 6px 12px; border-radius: 999px;
  background: var(--glass); border: 1px solid rgba(61, 220, 151, 0.55); color: #9ff0c9; font-family: var(--mono); font-size: 13px;
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.purse[hidden] { display: none; }
.purse b { font-weight: 400; color: var(--ink); min-width: 2ch; }
.purse.is-bump { animation: purseBump 0.35s var(--ease); }
@keyframes purseBump { 40% { transform: scale(1.14); border-color: #3ddc97; } }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.toast {
  position: fixed; z-index: 12; left: 50%; top: calc(70px + var(--safe-t)); transform: translate(-50%, -8px); margin: 0;
  max-width: calc(100vw - 2 * var(--gutter)); padding: 10px 16px; border-radius: 16px; text-align: center;
  background: rgba(24, 12, 20, 0.82); border: 1px solid var(--line-strong); color: var(--ink); font-size: 14px;
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); opacity: 0; pointer-events: none;
  transition: opacity 0.35s var(--ease), transform 0.45s var(--ease);
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }
.toast em { color: var(--accent); }

/* ---- a game's scoreboard and its countdown (kit.hud) --------------------------------------------- */
.hud {
  position: fixed; z-index: 11; left: 50%; top: calc(66px + var(--safe-t)); transform: translate(-50%, -8px);
  display: inline-flex; align-items: center; gap: 12px; height: 44px; padding: 0 6px 0 16px; border-radius: 999px;
  background: rgba(24, 12, 20, 0.72); border: 1px solid var(--line-strong); color: var(--ink); white-space: nowrap;
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  opacity: 0; transition: opacity 0.3s var(--ease), transform 0.4s var(--ease);
}
.hud[hidden] { display: none; }
.hud.is-on { opacity: 1; transform: translate(-50%, 0); }
.hud__title { font-family: var(--serif); font-style: italic; font-size: 18px; }
.hud__title em { color: var(--accent); }
.hud__score { font-family: var(--mono); font-size: 14px; color: var(--accent); }
.hud__score:empty { display: none; }
.hud__time { font-family: var(--mono); font-size: 14px; color: var(--ink-2); min-width: 4ch; }
.hud__time.is-low { color: #ffb347; }
.hud__quit { display: grid; place-items: center; width: 32px; height: 32px; padding: 0; border-radius: 50%; border: 1px solid var(--line); background: none; color: var(--ink-2); font-size: 12px; cursor: pointer; }
.hud__quit:hover { color: var(--ink); border-color: var(--ink); }
body.is-gaming .toast { top: calc(120px + var(--safe-t)); }
body.is-gaming .card { opacity: 0; visibility: hidden; } /* a game has the screen: the card steps aside */
.count {
  position: fixed; z-index: 13; left: 50%; top: 40%; margin: 0; transform: translate(-50%, -50%); pointer-events: none; opacity: 0;
  font-family: var(--serif); font-style: italic; font-size: clamp(64px, 14vw, 140px); line-height: 1; color: var(--ink);
  text-shadow: 0 4px 30px rgba(255, 95, 162, 0.7), 0 2px 4px rgba(20, 6, 16, 0.6);
}
.count.is-pop { animation: countPop 0.7s var(--ease) both; }
@keyframes countPop { 0% { opacity: 0; transform: translate(-50%, -50%) scale(1.6); } 25% { opacity: 1; transform: translate(-50%, -50%) scale(1); } 80% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, -50%) scale(0.9); } }
@media (prefers-reduced-motion: reduce) { .count.is-pop { animation-name: countFade; } @keyframes countFade { 0%, 80% { opacity: 1; } 100% { opacity: 0; } } }
@media (max-width: 700px) {
  /* on a phone it takes the card's place, top left beside the map (the card steps aside while a game is on) */
  /* two lines: the game's name, then its score and clock (one line cut the name short) */
  .hud {
    left: calc(var(--gutter) + var(--safe-l)); right: calc(var(--gutter) + var(--safe-r) + 114px); top: calc(64px + var(--safe-t)); transform: translateY(-8px);
    display: grid; grid-template-columns: auto auto 1fr auto; grid-template-areas: "title title title quit" "score time . quit";
    column-gap: 8px; row-gap: 1px; height: auto; padding: 6px 5px 7px 13px; border-radius: 18px;
  }
  .hud.is-on { transform: none; }
  .hud__title { grid-area: title; font-size: 15px; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; }
  .hud__score { grid-area: score; font-size: 12.5px; }
  .hud__time { grid-area: time; font-size: 12.5px; }
  .hud__quit { grid-area: quit; align-self: center; }
  body.is-gaming .card { opacity: 0; visibility: hidden; }
  body.is-gaming .toast { top: calc(128px + var(--safe-t)); }
  /* …and while a word from the world is up (a game's result, a milestone), since it sits where the card is */
  body:has(.toast.is-on) .card { opacity: 0; visibility: hidden; }
}
/* a short screen (a phone on its side) has no room for the card and a game's board at once either */
@media (max-height: 520px) { body.is-gaming .card { opacity: 0; visibility: hidden; } }

/* ---- the hint ------------------------------------------------------------------------------------ */
.hint {
  position: fixed; z-index: 7; left: 50%; bottom: calc(18px + var(--safe-b)); transform: translateX(-50%);
  margin: 0; padding: 8px 14px; border-radius: 999px; white-space: nowrap;
  font-size: 12.5px; color: var(--ink-2); background: var(--glass); border: 1px solid var(--line);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  opacity: 0; transition: opacity 0.8s var(--ease);
}
.is-playing .hint { opacity: 1; }
.is-playing.has-moved .hint { opacity: 0; }
.hint__touch { display: none; }
.is-touch .hint__keys { display: none; }
.is-touch .hint__touch { display: inline; }
@media (max-width: 900px) { .hint { left: auto; right: calc(var(--gutter) + var(--safe-r)); transform: none; bottom: calc(150px + var(--safe-b)); } }
/* up to where there is room beside the card, it keeps to the right rather than slide under the card */
@media (min-width: 901px) and (max-width: 1180px) { .hint { left: auto; right: calc(var(--gutter) + var(--safe-r)); transform: none; } }

/* ---- touch controls ------------------------------------------------------------------------------- */
.pad, .hop { display: none; }
.is-touch .is-playing .pad {
  display: block; position: fixed; z-index: 9; left: calc(22px + var(--safe-l)); bottom: calc(26px + var(--safe-b));
  width: 118px; height: 118px; border-radius: 50%; background: var(--glass); border: 1px solid var(--line-strong);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.pad i {
  position: absolute; left: 50%; top: 50%; width: 48px; height: 48px; margin: -24px 0 0 -24px; border-radius: 50%;
  background: var(--ink); box-shadow: 0 0 22px rgba(255, 95, 162, 0.55); transform: translate(var(--px, 0px), var(--py, 0px));
}
.is-touch .is-playing .hop {
  display: grid; place-items: center; position: fixed; z-index: 9; right: calc(26px + var(--safe-r)); bottom: calc(40px + var(--safe-b));
  width: 78px; height: 78px; border-radius: 50%; background: var(--accent); color: var(--accent-ink);
  font-family: var(--serif); font-style: italic; font-size: 22px; box-shadow: 0 0 30px rgba(255, 95, 162, 0.5);
}
.hop:active { transform: scale(0.94); }

/* ---- the loader, and the way in -----------------------------------------------------------------
   While the island is built it is a dark room with the title in it. Then the room goes (is-open) and
   the title hangs over the island as the camera comes down; then the camera flies through it (is-gone). */
.gate, .fallback {
  position: fixed; inset: 0; z-index: 20; display: grid; place-items: center; padding: 24px;
  background: radial-gradient(80% 70% at 50% 40%, rgba(40, 14, 32, 0.55), rgba(19, 10, 16, 0.92) 70%);
}
.gate { background: none; }
.gate::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(80% 70% at 50% 40%, rgba(40, 14, 32, 0.7), #130a10 72%);
  transition: opacity 1.9s var(--ease);
}
.gate[hidden], .fallback[hidden] { display: none; }
.gate.is-open { pointer-events: none; }
.gate.is-open::before { opacity: 0; }
.gate.is-gone { visibility: hidden; transition: visibility 0s 1.5s; }
.gate__inner, .fallback { text-align: center; }
.gate__inner { position: relative; max-width: 560px; display: grid; justify-items: center; }
.gate__inner > * { transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.gate.is-open .gate__eyebrow, .gate.is-open .gate__load { opacity: 0; transform: translateY(10px); }
.gate.is-open .gate__title { transform: scale(1.1); transition: transform 3.2s linear; }
.gate.is-gone .gate__title {
  transform: scale(3.2); opacity: 0; filter: blur(12px);
  transition: transform 1.5s cubic-bezier(0.55, 0, 0.85, 0.3), opacity 1.1s ease 0.3s, filter 1.3s ease 0.2s;
}
.gate__eyebrow { margin: 0 0 14px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.gate__title { margin: 0; font-size: clamp(3rem, 9vw, 6.2rem); line-height: 0.95; letter-spacing: -0.04em; font-weight: 400; }
.gate .gate__title { text-shadow: 0 2px 40px rgba(19, 10, 16, 0.7); }
.gate__title em { color: var(--accent); }
.gate__text { margin: 18px 0 0; max-width: 46ch; color: var(--ink-2); font-size: 15.5px; }
.gate__load { display: inline-flex; align-items: center; gap: 10px; margin: 26px 0 0; font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-2); }
.gate__load i { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px var(--accent); animation: loadPulse 0.9s ease-in-out infinite alternate; }
@keyframes loadPulse { from { opacity: 0.3; transform: scale(0.7); } to { opacity: 1; transform: scale(1.1); } }
.fallback .gate__go {
  margin-top: 26px; display: inline-flex; align-items: center; height: 52px; padding: 0 26px; border-radius: 999px;
  background: var(--ink); color: var(--bg); font-size: 16px; font-weight: 500;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.001ms !important; transition-delay: 0s !important; animation: none !important; }
  .gate.is-gone { display: none; }
}

/* ---- a game with a screen of its own (js/explore-fashion.js) ------------------------------------------------
   The game opens over the island (its root is #fg-root, a child of the body) and the island is paused under it; the
   page's own chrome — bar, map, card, prompt, scoreboard, touch pad — goes with it, and comes back when it closes. */
body.is-fashion > :not(#fg-root):not(script) { visibility: hidden; }
