/* Mathe-Exit-Game „Die Zahlen-Werkstatt"
   Grafische, atmosphärische Bühne: jeder Raum ist eine Bogentür in seiner
   Themenfarbe, das Rätsel als helle Gravur darauf. Ruhig, ermutigend, kein Druck. */

/* Eigene, konstante Abend-/Werkstatt-Stimmung (unabhängig vom System-Theme) */
.game-shell {
  --g-bg0: #161210;
  --g-bg1: #221a14;
  --g-panel: #2a2019;
  --g-panel-2: #33271e;
  --g-ink: #f4ede1;
  --g-ink-soft: #cdc1ae;
  --g-ink-mute: #9c8f7c;
  --g-line: rgba(255, 255, 255, 0.10);
  --etch: rgba(255, 245, 230, 0.82);
  --etch-dim: rgba(255, 245, 230, 0.42);

  min-height: 100vh;
  display: flex;
  flex-direction: column;
  color: var(--g-ink);
  background:
    radial-gradient(120% 80% at 50% -10%, #3a2c20 0%, transparent 55%),
    radial-gradient(90% 70% at 50% 120%, #20303c33 0%, transparent 60%),
    linear-gradient(180deg, var(--g-bg1) 0%, var(--g-bg0) 100%);
  background-attachment: fixed;
  font-family: var(--font-sans);
}

/* Raum-Farbidentitäten (an die App-Themen angelehnt) */
.room--linear { --room: #4cb6c4; --room-deep: #1f6f7a; }
.room--quad   { --room: #9a92f2; --room-deep: #5b54b8; }
.room--trig   { --room: #e69061; --room-deep: #b4632f; }
.room--pruef  { --room: #e7b54c; --room-deep: #b08322; }
.room--kombi  { --room: #6fc28c; --room-deep: #2f7d4a; }

/* ---------- Topbar ---------- */
.game-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  padding: var(--sp-3) var(--sp-5);
  background: linear-gradient(180deg, rgba(0,0,0,0.25), transparent);
  border-bottom: 1px solid var(--g-line);
}
.game-topbar h1 {
  font-family: var(--font-display);
  font-size: var(--fs-lg); margin: 0;
  display: flex; align-items: center; gap: var(--sp-2);
  letter-spacing: -0.01em;
}
.game-topbar h1 img { width: 30px; height: 30px; }
.game-topbar .topbar__back { color: var(--g-ink-soft); white-space: nowrap; }
.game-topbar .muted { color: var(--g-ink-mute) !important; white-space: nowrap; }
@media (max-width: 600px) { .game-topbar .muted { display: none; } }

/* ---------- Korridor (Fortschritt als Türenreihe) ---------- */
.rooms-bar {
  display: flex;
  align-items: center;
  gap: 0;
  padding: var(--sp-4) var(--sp-5);
  overflow-x: auto;
  justify-content: center;
}
.corridor__link {
  flex: 0 0 26px; height: 2px;
  background: repeating-linear-gradient(90deg, var(--g-line) 0 6px, transparent 6px 12px);
}
.corridor__door {
  flex-shrink: 0;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  background: none; border: none; cursor: pointer;
  padding: var(--sp-1);
  color: var(--g-ink-mute);
}
.corridor__glyph {
  width: 40px; height: 52px;
  border-radius: 20px 20px 4px 4px;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-weight: 700; font-size: var(--fs-md);
  background: var(--g-panel);
  border: 1.5px solid var(--g-line);
  box-shadow: inset 0 2px 6px rgba(0,0,0,0.4);
  transition: transform 0.15s, box-shadow 0.2s, border-color 0.2s;
}
.corridor__label {
  font-size: var(--fs-xs); white-space: nowrap; max-width: 90px;
  overflow: hidden; text-overflow: ellipsis;
}
.corridor__door.active .corridor__glyph {
  background: color-mix(in srgb, var(--room) 22%, var(--g-panel));
  border-color: var(--room);
  color: var(--room);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--room) 25%, transparent), 0 6px 18px color-mix(in srgb, var(--room) 30%, transparent);
}
.corridor__door.active .corridor__label { color: var(--g-ink); }
.corridor__door.solved .corridor__glyph {
  background: color-mix(in srgb, var(--room-deep) 50%, var(--g-panel));
  border-color: color-mix(in srgb, var(--room) 60%, transparent);
  color: var(--room);
}
.corridor__door.locked { cursor: not-allowed; }
.corridor__door.locked .corridor__glyph { opacity: 0.5; font-size: var(--fs-sm); }
.corridor__door:not(.locked):hover .corridor__glyph { transform: translateY(-2px); }

/* ---------- Bühne (Szene) ---------- */
.scene {
  max-width: 760px;
  margin: 0 auto;
  padding: var(--sp-4) var(--sp-4) var(--sp-8);
  width: 100%;
}

.stage {
  position: relative;
  height: 340px;
  margin-bottom: var(--sp-5);
  display: flex; align-items: flex-end; justify-content: center;
  perspective: 1300px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background:
    radial-gradient(70% 60% at 50% 30%, color-mix(in srgb, var(--room) 14%, transparent) 0%, transparent 70%),
    linear-gradient(180deg, #1c1611 0%, #120d0a 100%);
  border: 1px solid var(--g-line);
}
/* Bodenlicht / Lichtspalt hinter der Tür */
.stage__light {
  position: absolute; left: 50%; top: 8%; transform: translateX(-50%);
  width: 250px; height: 320px;
  border-radius: 130px 130px 0 0;
  background: radial-gradient(60% 70% at 50% 60%, color-mix(in srgb, var(--room) 75%, white) 0%, var(--room) 35%, transparent 72%);
  opacity: 0; transition: opacity 0.9s ease 0.2s;
  filter: blur(2px);
}
.stage__floor {
  position: absolute; left: 0; right: 0; bottom: 0; height: 64px;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,0.55));
  border-top: 1px solid var(--g-line);
}

/* Die Tür */
.door {
  position: relative;
  width: 250px; height: 320px;
  border-radius: 125px 125px 6px 6px;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--room-deep) 30%, #2a201a) 0%, #1f1712 100%);
  border: 2px solid color-mix(in srgb, var(--room) 45%, #000);
  box-shadow: 0 18px 40px rgba(0,0,0,0.5), inset 0 2px 0 rgba(255,255,255,0.06);
  transform-origin: left center;
  transition: transform 1s cubic-bezier(0.6, 0, 0.2, 1), opacity 0.6s;
  z-index: 2;
}
.door__arch {
  position: absolute; inset: 10px 12px auto 12px; height: 150px;
  border-radius: 116px 116px 0 0;
  border: 1.5px solid color-mix(in srgb, var(--room) 35%, transparent);
  border-bottom: none;
  pointer-events: none;
}
.door__seam {
  position: absolute; left: 50%; top: 130px; bottom: 14px; width: 2px;
  transform: translateX(-50%);
  background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--room) 30%, transparent), transparent);
  opacity: 0.5;
}
.door__knob {
  position: absolute; right: 22px; top: 56%; width: 13px; height: 13px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #f4e3b0, var(--room-deep));
  box-shadow: 0 0 8px color-mix(in srgb, var(--room) 60%, transparent);
}
.door__face {
  position: absolute; inset: 26px 18px 22px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: var(--sp-2);
}
.door__plate {
  margin-top: var(--sp-2);
  width: 46px; height: 46px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,0.25);
  border: 1.5px solid color-mix(in srgb, var(--room) 50%, transparent);
}
.door__plate-num {
  font-family: var(--font-mono); font-weight: 700; font-size: var(--fs-lg);
  color: var(--room);
}

/* Tür offen → schwingt auf, Licht strömt */
.stage.is-open .door { transform: rotateY(-72deg); box-shadow: 0 18px 50px rgba(0,0,0,0.6); }
.stage.is-open .stage__light { opacity: 1; }

/* ---------- Diagramm-Gravur ---------- */
.diagram { width: 100%; max-width: 210px; height: auto; color: var(--etch); }
.diagram .axis { stroke: var(--etch-dim); stroke-width: 1.5; stroke-linecap: round; }
.diagram .stroke { stroke: var(--etch); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; fill: none; }
.diagram .stroke.dashed { stroke-dasharray: 3 6; }
.diagram .guide { stroke: var(--etch-dim); stroke-width: 1.2; stroke-dasharray: 3 4; }
.diagram .dot { fill: var(--room); stroke: #fff; stroke-width: 1.5; }
.diagram .ladder { stroke: var(--room); stroke-width: 4.5; stroke-linecap: round; }
.diagram .rung { stroke: var(--room); stroke-width: 2.5; stroke-linecap: round; }
.diagram .right-angle { fill: none; stroke: var(--etch-dim); stroke-width: 1.5; }
.diagram .angle { fill: none; stroke: var(--room); stroke-width: 2; }
.diagram .lbl { font-family: var(--font-mono); font-size: 13px; fill: var(--etch); }
.diagram .lbl.hi { fill: color-mix(in srgb, var(--room) 70%, white); font-weight: 700; }
.diagram .lbl.dim { fill: var(--etch-dim); font-size: 11px; }
.diagram .cell { fill: none; stroke: var(--etch-dim); stroke-width: 1.5; }
.diagram .fillroom { fill: var(--room); fill-opacity: 0.5; }

/* Drei-Schlösser-Tür (Finale) */
.door__locks { display: flex; gap: var(--sp-3); }
.door__caption { font-family: var(--font-mono); font-size: var(--fs-xs); color: var(--etch-dim); letter-spacing: 0.1em; text-transform: uppercase; }
.lock {
  display: flex; flex-direction: column; align-items: center;
  transition: transform 0.2s;
}
.lock__shackle {
  width: 22px; height: 16px; border: 3px solid var(--etch);
  border-bottom: none; border-radius: 11px 11px 0 0; margin-bottom: -2px;
}
.lock__body {
  width: 34px; height: 28px; border-radius: 6px;
  background: color-mix(in srgb, var(--room-deep) 35%, #1f1712);
  border: 1.5px solid var(--etch);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-weight: 700; color: var(--etch);
}
.lock.is-open { transform: translateY(-2px); }
.lock.is-open .lock__shackle { transform: rotate(-22deg); transform-origin: right bottom; border-color: var(--room); }
.lock.is-open .lock__body { background: color-mix(in srgb, var(--room) 30%, #1f1712); border-color: var(--room); color: var(--room); }

/* ---------- Inhalt (Rätsel, Eingabe, Hinweise) ---------- */
.room-card {
  background: linear-gradient(180deg, var(--g-panel) 0%, var(--g-panel-2) 100%);
  border-radius: var(--radius-lg);
  padding: var(--sp-5);
  border: 1px solid var(--g-line);
  box-shadow: var(--shadow-md);
}
.room-card > h2 {
  font-family: var(--font-display);
  display: flex; align-items: center; gap: var(--sp-3);
  margin: 0 0 var(--sp-4);
}
.room-card > h2::before {
  content: ""; width: 12px; height: 12px; border-radius: 3px;
  background: var(--room); box-shadow: 0 0 10px var(--room);
}

/* Intro-Bubble (vom Maskottchen) – als Notiz */
.room-card .bubble {
  background: linear-gradient(135deg, rgba(217,164,65,0.16), rgba(217,164,65,0.06));
  border-color: color-mix(in srgb, var(--color-mascot) 35%, transparent);
}
.room-card .bubble__text { color: var(--g-ink-soft); }

.puzzle {
  margin: var(--sp-4) 0;
  padding: var(--sp-4) var(--sp-5);
  background: rgba(0,0,0,0.22);
  border-radius: var(--radius-md);
  border-left: 4px solid var(--room);
  font-size: var(--fs-md);
}
.puzzle strong { display: block; margin-bottom: var(--sp-2); color: var(--room); font-family: var(--font-display); }
.puzzle[data-part] { padding: var(--sp-4); }

/* Code-Eingabe = Schloss-Plakette */
.code-row {
  display: flex; gap: var(--sp-3); align-items: stretch; flex-wrap: wrap;
  margin: var(--sp-4) 0;
}
.code-input {
  flex: 1; min-width: 150px;
  font-family: var(--font-mono);
  font-size: var(--fs-2xl); font-weight: 700; text-align: center;
  letter-spacing: 0.08em;
  padding: var(--sp-3); border-radius: var(--radius-md);
  border: 2px solid var(--g-line);
  background: rgba(0,0,0,0.3);
  color: var(--g-ink);
  box-shadow: inset 0 2px 8px rgba(0,0,0,0.4);
}
.code-input::placeholder { color: var(--g-ink-mute); font-size: var(--fs-md); letter-spacing: 0; font-weight: 400; }
.code-input:focus-visible {
  outline: none; border-color: var(--room);
  box-shadow: inset 0 2px 8px rgba(0,0,0,0.4), 0 0 0 3px color-mix(in srgb, var(--room) 35%, transparent);
}
.code-row .btn,
.puzzle .btn {
  background: var(--room); border-color: var(--room); color: #14110d;
}
.code-row .btn:hover,
.puzzle .btn:hover { background: color-mix(in srgb, var(--room) 80%, white); border-color: var(--room); }

/* Hinweise */
.hint-tray { margin: var(--sp-4) 0 0; }
.hint-tray h4 { margin: 0 0 var(--sp-3); font-size: var(--fs-sm); color: var(--g-ink-mute); font-weight: 400; }
.hint, .puzzle details .hint {
  display: flex; gap: var(--sp-3); align-items: flex-start;
  background: rgba(217, 164, 65, 0.12);
  border: 1px solid color-mix(in srgb, var(--color-mascot) 28%, transparent);
  border-radius: var(--radius-md);
  padding: var(--sp-3) var(--sp-4);
  margin-bottom: var(--sp-2);
  font-size: var(--fs-sm);
  color: var(--g-ink-soft);
}
.hint-step__num {
  flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--color-mascot); color: #14110d;
  border-radius: var(--radius-pill);
  width: 24px; height: 24px;
  font-family: var(--font-mono); font-size: var(--fs-xs); font-weight: 700;
}
.puzzle details { margin-top: var(--sp-2); }
.puzzle summary { cursor: pointer; color: var(--color-mascot); font-size: var(--fs-sm); font-weight: 700; }

.feedback-game {
  margin: var(--sp-3) 0;
  padding: var(--sp-3) var(--sp-4);
  border-radius: var(--radius-md);
  font-size: var(--fs-md);
}
.feedback-game.ok { background: rgba(111, 194, 140, 0.15); color: #9fd9b3; border: 1px solid rgba(111,194,140,0.35); }
.feedback-game.no { background: rgba(231, 181, 76, 0.14); color: #e7c987; border: 1px solid rgba(231,181,76,0.3); }
.feedback-game strong { color: inherit; }

/* Abschluss */
.completion {
  background:
    radial-gradient(80% 90% at 50% 0%, rgba(231,181,76,0.25), transparent 60%),
    linear-gradient(180deg, var(--g-panel), var(--g-panel-2));
  padding: var(--sp-7) var(--sp-5);
  border-radius: var(--radius-lg);
  border: 1px solid var(--g-line);
  text-align: center;
  box-shadow: var(--shadow-md);
}
.completion h2 { font-family: var(--font-display); font-size: var(--fs-2xl); color: #f4e3b0; }
.completion .btn { background: var(--color-mascot); border-color: var(--color-mascot); color: #14110d; }
.completion .btn--ghost { background: transparent; color: var(--g-ink); border-color: var(--g-line); }

@media (max-width: 520px) {
  .stage { height: 280px; }
  .door { width: 200px; height: 268px; }
  .stage__light { width: 200px; height: 270px; }
  .corridor__label { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .door { transition: opacity 0.4s; }
  .stage.is-open .door { transform: none; opacity: 0.12; }
}

/* ============================================================
   THEMEN-GAMES: neue Raumfarbe, animierte Setting-Backdrops,
   Auswahl-Hub. Bewegung respektiert prefers-reduced-motion.
   ============================================================ */

/* Neue Raum-/Themenfarbe für „Sichere Punkte" */
.room--sicher { --room: #5bb98c; --room-deep: #2f7d4a; }

/* Himmel je Setting (überschreibt den Default-Stage-Hintergrund) */
.set--dawn        { --sky: linear-gradient(180deg, #2b2547 0%, #6b3f55 55%, #c8794d 100%); }
.set--cable       { --sky: linear-gradient(180deg, #13233b 0%, #2a4a66 100%); }
.set--observatory { --sky: linear-gradient(180deg, #0b1024 0%, #1a2147 100%); }
.set--lighthouse  { --sky: linear-gradient(180deg, #0c1d28 0%, #163240 100%); }

.stage.set--dawn, .stage.set--cable,
.stage.set--observatory, .stage.set--lighthouse {
  background: var(--sky);
}

/* Backdrop-Ebene hinter der Tür */
.stage__backdrop { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.stage__backdrop .bd { width: 100%; height: 100%; display: block; }
.stage__light { z-index: 1; }
.stage__floor { z-index: 1; }

/* ---- Backdrop-Elemente (gemeinsam) ---- */
.bd-range { opacity: 0.9; }
.bd-star { fill: #eef2ff; animation: bd-twinkle 3.4s ease-in-out infinite; }

/* Dämmerung */
.bd-sun { fill: #f7cd84; filter: drop-shadow(0 0 26px rgba(247,200,120,0.55)); animation: bd-sunrise 6s ease-out both; }
.set--dawn .bd-range--far { fill: #3c2946; }
.set--dawn .bd-range--near { fill: #241a2f; }
.bd-cloud { fill: rgba(255,231,210,0.45); }
.bd-cloud--1 { animation: bd-drift 30s ease-in-out infinite alternate; }
.bd-cloud--2 { animation: bd-drift 38s ease-in-out infinite alternate-reverse; }

/* Seilbahn */
.set--cable .bd-range--far { fill: #1d3149; }
.bd-cable { stroke: rgba(220,236,252,0.5); stroke-width: 2.5; }
.bd-pylon { stroke: rgba(220,236,252,0.3); stroke-width: 4; stroke-linecap: round; }
.bd-gondola-car { fill: var(--room); stroke: rgba(255,255,255,0.55); stroke-width: 1.5; }
.bd-gondola-rope { stroke: rgba(220,236,252,0.55); stroke-width: 2; }
.bd-gondola { animation: bd-gondola 17s ease-in-out infinite alternate; }

/* Sternwarte */
.bd-comet-path { stroke: rgba(150,170,255,0.16); stroke-width: 1.5; stroke-dasharray: 3 7; }
.bd-comet { fill: #ffffff; filter: drop-shadow(0 0 6px #cdd6ff); }
.bd-dome { fill: #141a3c; }
.bd-dome-slit { stroke: rgba(184,198,255,0.35); stroke-width: 4; stroke-linecap: round; }

/* Leuchtturm */
.bd-beam-wrap { transform-box: view-box; transform-origin: 400px 150px; animation: bd-sweep 8s ease-in-out infinite alternate; }
.bd-beam { fill: rgba(247,212,150,0.15); }
.bd-sea { fill: #103039; }
.bd-sea--2 { fill: #0c252f; animation: bd-wave 7s ease-in-out infinite alternate; }
.bd-tower { fill: #243842; stroke: rgba(220,236,252,0.25); stroke-width: 1.5; }
.bd-lamp { fill: #f7d692; filter: drop-shadow(0 0 12px rgba(247,214,146,0.7)); animation: bd-lamp 4.5s ease-in-out infinite; }

/* Werkstatt */
.bd-gear { fill: none; stroke: rgba(217,164,65,0.12); stroke-width: 6; stroke-dasharray: 12 9; transform-box: fill-box; transform-origin: center; animation: bd-spin 26s linear infinite; }
.bd-gear--2 { animation: bd-spin 20s linear infinite reverse; }
.bd-motes circle { fill: rgba(255,240,210,0.28); animation: bd-rise 9s ease-in infinite; }
.bd-motes circle:nth-child(2) { animation-delay: 2s; }
.bd-motes circle:nth-child(3) { animation-delay: 4s; }
.bd-motes circle:nth-child(4) { animation-delay: 1s; }
.bd-motes circle:nth-child(5) { animation-delay: 3.5s; }
.bd-motes circle:nth-child(6) { animation-delay: 5s; }

@keyframes bd-twinkle { 0%,100% { opacity: 0.25; } 50% { opacity: 1; } }
@keyframes bd-sunrise { from { transform: translateY(46px); opacity: 0.25; } to { transform: translateY(0); opacity: 1; } }
@keyframes bd-drift { from { transform: translateX(-26px); } to { transform: translateX(26px); } }
@keyframes bd-gondola { from { transform: translate(72px, 278px); } to { transform: translate(742px, 86px); } }
@keyframes bd-sweep { from { transform: rotate(-26deg); } to { transform: rotate(20deg); } }
@keyframes bd-wave { from { transform: translateX(-14px); } to { transform: translateX(14px); } }
@keyframes bd-lamp { 0%,100% { opacity: 0.7; } 50% { opacity: 1; } }
@keyframes bd-spin { to { transform: rotate(360deg); } }
@keyframes bd-rise { 0% { transform: translateY(10px); opacity: 0; } 25% { opacity: 1; } 100% { transform: translateY(-90px); opacity: 0; } }

/* ============ Auswahl-Hub ============ */
.game-shell--hub .hub-main { max-width: 920px; margin: 0 auto; padding: var(--sp-5) var(--sp-5) var(--sp-8); width: 100%; }
.hub-intro { color: var(--g-ink-soft); max-width: 60ch; margin: 0 auto var(--sp-6); text-align: center; }

.game-grid { display: grid; gap: var(--sp-5); grid-template-columns: 1fr; }
@media (min-width: 620px) { .game-grid { grid-template-columns: 1fr 1fr; } }

.gcard {
  display: flex; flex-direction: column; overflow: hidden;
  border-radius: var(--radius-lg); border: 1px solid var(--g-line);
  background: linear-gradient(180deg, var(--g-panel) 0%, var(--g-panel-2) 100%);
  text-decoration: none; color: var(--g-ink);
  box-shadow: var(--shadow-md);
  transition: transform 0.18s ease, box-shadow 0.22s, border-color 0.18s;
}
.gcard:hover { transform: translateY(-4px); border-color: var(--room); box-shadow: 0 14px 36px rgba(0,0,0,0.5), 0 0 0 1px color-mix(in srgb, var(--room) 50%, transparent); }
.gcard:last-child:nth-child(odd) { grid-column: 1 / -1; }

.gcard__scene { position: relative; height: 156px; overflow: hidden; }
.gcard.set--dawn .gcard__scene { background: var(--sky); }
.gcard.set--cable .gcard__scene { background: var(--sky); }
.gcard.set--observatory .gcard__scene { background: var(--sky); }
.gcard.set--lighthouse .gcard__scene { background: var(--sky); }
.gcard.set--workshop .gcard__scene { background: radial-gradient(80% 90% at 50% 20%, color-mix(in srgb, var(--room) 22%, #1c1611) 0%, #120d0a 75%); }
.gcard__scene .bd { width: 100%; height: 100%; display: block; }
.gcard__door {
  position: absolute; left: 50%; bottom: 0; transform: translateX(-50%);
  width: 76px; height: 92px; border-radius: 38px 38px 4px 4px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--room-deep) 40%, #1f1712), #16110d);
  border: 2px solid color-mix(in srgb, var(--room) 50%, #000);
  box-shadow: 0 0 28px color-mix(in srgb, var(--room) 35%, transparent);
  display: grid; place-items: center;
}
.gcard__door span { font-size: 1.8rem; filter: drop-shadow(0 1px 2px rgba(0,0,0,0.5)); }

.gcard__body { padding: var(--sp-4) var(--sp-5) var(--sp-5); display: flex; flex-direction: column; gap: var(--sp-2); }
.gcard__eyebrow { font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--room); }
.gcard__title { font-family: var(--font-display); font-size: var(--fs-xl); margin: 0; color: var(--g-ink); }
.gcard__tag { margin: 0; color: var(--g-ink-soft); font-size: var(--fs-sm); flex: 1; }
.gcard__meta { display: flex; align-items: center; gap: var(--sp-3); font-family: var(--font-mono); font-size: 0.72rem; color: var(--g-ink-mute); margin-top: var(--sp-2); }
.gcard__bar { flex: 1; height: 6px; border-radius: var(--radius-pill); background: rgba(255,255,255,0.1); overflow: hidden; }
.gcard__bar > i { display: block; height: 100%; background: var(--room); border-radius: var(--radius-pill); }

@media (prefers-reduced-motion: reduce) {
  .bd-sun, .bd-cloud--1, .bd-cloud--2, .bd-gondola, .bd-beam-wrap,
  .bd-sea--2, .bd-lamp, .bd-gear, .bd-gear--2, .bd-star { animation: none !important; }
  .bd-sun { transform: translateY(0); opacity: 1; }
  .bd-gondola { transform: translate(400px, 188px); }
  .bd-comet { display: none; }
  .bd-motes circle { animation: none !important; opacity: 0.4; }
}
