/* Alf Casino — component styles.
   Partial-BEM: single-dash elements (.component-element), double-dash
   modifiers (.component-element--modifier). No shared brand prefix on
   component roots — each one gets its own alien/space-themed name. */

/* ===== helm (slim top bar) + bridge (fixed side rail nav) =====
   Structural nav for Alf Casino: a persistent left "bridge" rail (grouped
   link sections + promo card) under a slim sticky "helm" top bar, instead
   of the flat horizontal-nav-only header pattern used elsewhere on the
   network. Desktop keeps the bridge permanently open; mobile collapses it
   to an off-canvas drawer opened from the helm's burger button. */

.helm {
  position: sticky;
  top: 0;
  z-index: 300;
  height: var(--helm-height);
  background: rgba(18, 10, 31, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--cosmic-700);
}

.helm-row {
  height: 100%;
  display: flex;
  align-items: center;
  gap: var(--gap-4);
  padding: 0 var(--gutter);
}

.helm-burger {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: transparent;
  border: none;
  padding: 8px;
  flex-shrink: 0;
}

.helm-burger span {
  width: 22px;
  height: 2px;
  background: var(--text-100);
  border-radius: 2px;
}

.helm-brand { flex-shrink: 0; }
.helm-brand img { height: 28px; width: auto; }

.helm-search {
  flex: 1;
  max-width: 320px;
  position: relative;
  display: flex;
  align-items: center;
}

.helm-search svg {
  position: absolute;
  left: 12px;
  width: 15px;
  height: 15px;
  color: var(--text-400);
  pointer-events: none;
}

.helm-search input {
  width: 100%;
  background: var(--plum-800);
  border: 1px solid var(--cosmic-700);
  border-radius: var(--radius-pill);
  padding: 8px 14px 8px 34px;
  color: var(--text-100);
  font-size: 13px;
  font-family: inherit;
}

.helm-search input::placeholder { color: var(--text-400); }

.helm-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: var(--gap-2);
  flex-shrink: 0;
}

.helm-actions .btn { padding: 9px 18px; font-size: 13px; }

.deck-wrapper {
  display: flex;
  min-height: calc(100vh - var(--helm-height));
}

.bridge-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(6, 2, 16, 0.6);
  z-index: 250;
}

.bridge-overlay.is-open { display: block; }

.bridge {
  width: var(--bridge-width);
  flex-shrink: 0;
  background: linear-gradient(190deg, var(--plum-900) 0%, var(--void-950) 100%);
  border-right: 1px solid var(--cosmic-700);
  position: fixed;
  left: 0;
  top: var(--helm-height);
  bottom: 0;
  z-index: 260;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  scrollbar-width: none;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.bridge-head {
  display: none;
  align-items: center;
  justify-content: space-between;
  padding: 14px 14px 12px;
  border-bottom: 1px solid var(--cosmic-700);
  flex-shrink: 0;
}

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

.bridge-close {
  display: flex;
  width: 28px;
  height: 28px;
  align-items: center;
  justify-content: center;
  background: var(--plum-800);
  border: 1px solid var(--cosmic-700);
  border-radius: var(--radius-s);
  color: var(--text-100);
  font-size: 18px;
  line-height: 1;
  flex-shrink: 0;
}

.bridge-promo {
  margin: 14px 12px 4px;
  padding: 14px;
  border-radius: var(--radius-m);
  background: linear-gradient(160deg, rgba(255, 138, 61, 0.22) 0%, rgba(182, 255, 59, 0.08) 100%);
  border: 1px solid var(--cosmic-700);
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex-shrink: 0;
}

.bridge-promo-eyebrow {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--orange-500);
}

.bridge-promo-amount {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 800;
  color: var(--text-100);
  line-height: 1.15;
}

.bridge-promo-note {
  font-size: 11px;
  color: var(--text-400);
  margin-bottom: 8px;
}

.bridge-promo-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(120deg, var(--lime-400), var(--fuchsia-500));
  color: var(--ink-on-lime);
  font-size: 12px;
  font-weight: 800;
  font-family: var(--font-display);
  padding: 8px 10px;
  border-radius: var(--radius-s);
}

.bridge-nav {
  flex: 1;
  padding: 8px 10px 10px;
}

.bridge-section + .bridge-section {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(244, 240, 255, 0.07);
}

.bridge-section-title {
  display: block;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--text-400);
  padding: 0 8px 6px;
}

.bridge-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: var(--radius-s);
  color: var(--text-100);
  font-size: 13px;
  font-weight: 600;
}

.bridge-link:hover { background: rgba(244, 240, 255, 0.06); }

.bridge-link.is-active {
  background: rgba(182, 255, 59, 0.1);
  box-shadow: inset 3px 0 0 var(--lime-400);
  color: var(--lime-400);
}

.bridge-link-icon {
  width: 19px;
  height: 19px;
  flex-shrink: 0;
  display: flex;
  color: var(--fuchsia-500);
}

.bridge-link.is-active .bridge-link-icon { color: var(--lime-400); }
.bridge-link-icon svg { width: 18px; height: 18px; }

.bridge-link-label {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bridge-link-badge {
  flex-shrink: 0;
  background: var(--orange-500);
  color: var(--ink-on-lime);
  font-size: 8px;
  font-weight: 900;
  padding: 2px 7px;
  border-radius: var(--radius-pill);
  text-transform: uppercase;
}

.bridge-foot {
  margin-top: auto;
  padding: 10px 10px 16px;
  border-top: 1px solid var(--cosmic-700);
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-shrink: 0;
}

.bridge-sector { position: relative; }

.bridge-sector-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--plum-800);
  border: 1px solid var(--cosmic-700);
  color: var(--text-100);
  border-radius: var(--radius-s);
  padding: 8px 10px;
  font-weight: 800;
  font-size: 12px;
}

.bridge-sector-menu {
  position: absolute;
  bottom: calc(100% + 6px);
  left: 0;
  right: 0;
  background: var(--plum-800);
  border: 1px solid var(--cosmic-700);
  border-radius: var(--radius-m);
  padding: 6px;
  display: none;
  flex-direction: column;
  box-shadow: var(--shadow-raised);
  max-height: 220px;
  overflow-y: auto;
}

.bridge-sector-menu.is-open { display: flex; }

.bridge-sector-option {
  padding: 8px 10px;
  border-radius: var(--radius-s);
  font-size: 13px;
  font-weight: 600;
}

.bridge-sector-option:hover { background: var(--cosmic-700); }
.bridge-sector-option.is-active { color: var(--lime-400); }

.bridge-support-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 9px 8px;
  border-radius: var(--radius-s);
  background: var(--plum-800);
  border: 1px solid var(--cosmic-700);
  color: var(--text-100);
  font-size: 12px;
  font-weight: 700;
}

.bridge-support-btn svg { width: 16px; height: 16px; flex-shrink: 0; }

.main-deck {
  margin-left: var(--bridge-width);
  flex: 1;
  min-width: 0;
}

.helm-hide-mobile { display: inline-flex; }

/* ===== launchpad (hero slider) ===== */

.launchpad {
  padding-top: var(--gap-6);
}

.launchpad-frame {
  position: relative;
  border-radius: var(--radius-l);
  overflow: hidden;
  border: 2px solid var(--cosmic-700);
  box-shadow: var(--shadow-raised);
}

.launchpad-track {
  display: flex;
  transition: transform 0.5s ease;
}

.launchpad-slide {
  min-width: 100%;
  min-height: 380px;
  background-size: cover;
  background-position: center;
  background-color: var(--plum-900);
  padding: var(--gap-7);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--gap-2);
  position: relative;
}

.launchpad-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(18,10,31,0.92) 0%, rgba(18,10,31,0.55) 60%, transparent 100%);
  z-index: 0;
}

.launchpad-slide > * { position: relative; z-index: 1; }

.launchpad-title {
  font-size: 34px;
  max-width: 520px;
  color: var(--text-100);
}

.launchpad-amount {
  font-size: 22px;
  font-weight: 800;
  color: var(--lime-400);
  margin: 0;
}

.launchpad-terms {
  font-size: 13px;
  max-width: 440px;
  margin-bottom: var(--gap-3);
}

.launchpad-slide .btn { width: fit-content; }

.launchpad-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(52, 32, 77, 0.8);
  border: 1px solid var(--cosmic-700);
  color: var(--text-100);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.launchpad-arrow svg { width: 18px; height: 18px; }
.launchpad-arrow--prev { left: 16px; }
.launchpad-arrow--next { right: 16px; }

.launchpad-dots {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 2;
}

.launchpad-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(244, 240, 255, 0.35);
}

.launchpad-dot--active { background: var(--lime-400); box-shadow: var(--glow-lime); }

/* ===== cargo-hold (bonus cards) ===== */

.cargo-hold {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap-5);
}

.cargo-hold-card {
  background: var(--plum-800);
  border: 1px solid var(--cosmic-700);
  border-radius: var(--radius-l);
  padding: var(--gap-5);
  display: flex;
  flex-direction: column;
  gap: var(--gap-2);
  transition: transform var(--ease), box-shadow var(--ease), border-color var(--ease);
}

.cargo-hold-card:hover {
  transform: translateY(-4px);
  border-color: var(--lime-400);
  box-shadow: var(--glow-lime);
}

.cargo-hold-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-m);
  background: var(--cosmic-700);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--lime-400);
}

.cargo-hold-label { font-weight: 800; font-family: var(--font-display); color: var(--text-100); }
.cargo-hold-amount { color: var(--fuchsia-500); font-weight: 700; }
.cargo-hold-terms { font-size: 13px; color: var(--text-400); flex: 1; }
.cargo-hold-cta { color: var(--lime-400); font-weight: 800; font-size: 13px; text-transform: uppercase; letter-spacing: 0.04em; }

/* ===== holo-deck (games + ticker) ===== */

.holo-deck-tabs {
  display: flex;
  gap: var(--gap-2);
  overflow-x: auto;
  padding-bottom: var(--gap-3);
  margin-bottom: var(--gap-4);
}

.holo-deck-tab {
  flex: 0 0 auto;
  background: var(--plum-800);
  border: 1px solid var(--cosmic-700);
  color: var(--text-400);
  border-radius: var(--radius-pill);
  padding: 8px 16px;
  font-weight: 700;
  font-size: 13px;
  white-space: nowrap;
}

.holo-deck-tab--active,
.holo-deck-tab.is-active {
  background: linear-gradient(120deg, var(--lime-400), var(--fuchsia-500));
  color: var(--ink-on-lime);
  border-color: transparent;
}

.holo-deck-wire {
  display: flex;
  align-items: center;
  gap: var(--gap-4);
  background: var(--plum-900);
  border: 1px solid var(--cosmic-700);
  border-radius: var(--radius-m);
  padding: var(--gap-2) var(--gap-4);
  margin-bottom: var(--gap-5);
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}

.holo-deck-wire-live {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 800;
  font-size: 12px;
  color: var(--danger-500);
}

.holo-deck-wire-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--danger-500);
  animation: holo-deck-pulse 1.4s infinite;
}

@keyframes holo-deck-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.holo-deck-wire-viewport { flex: 1; overflow: hidden; }

.holo-deck-wire-track {
  display: flex;
  gap: var(--gap-6);
  width: max-content;
  animation: holo-deck-scroll 28s linear infinite;
}

.holo-deck-wire:hover .holo-deck-wire-track { animation-play-state: paused; }

@keyframes holo-deck-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.holo-deck-wire-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  white-space: nowrap;
  color: var(--text-400);
}

.holo-deck-wire-item strong { color: var(--text-100); }
.holo-deck-wire-game { color: var(--text-400); }
.holo-deck-wire-mult { color: var(--lime-400); font-weight: 800; }

.holo-deck-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: var(--gap-4);
}

.holo-deck-card {
  position: relative;
  border-radius: var(--radius-m);
  overflow: hidden;
  border: 1px solid var(--cosmic-700);
  background: var(--plum-800);
  aspect-ratio: 3 / 4;
  transition: border-color var(--ease), box-shadow var(--ease), transform var(--ease);
}

.holo-deck-card:hover {
  border-color: var(--fuchsia-500);
  box-shadow: var(--glow-fuchsia);
  transform: translateY(-3px);
}

.holo-deck-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.holo-deck-overlay {
  position: absolute;
  inset: 0;
  background: rgba(18, 10, 31, 0.78);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  opacity: 0;
  transition: opacity var(--ease);
}

.holo-deck-card:hover .holo-deck-overlay { opacity: 1; }

.holo-deck-play { color: var(--lime-400); font-weight: 800; }
.holo-deck-rtp { color: var(--text-400); font-size: 12px; }

.holo-deck-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.holo-deck-badge--new { background: var(--positive-500); color: var(--ink-on-lime); }
.holo-deck-badge--hot { background: var(--danger-500); color: #fff; }
.holo-deck-badge--jackpot { background: linear-gradient(120deg, var(--orange-500), var(--fuchsia-500)); color: #fff; }

.holo-deck-name {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 8px;
  font-size: 12px;
  font-weight: 700;
  background: linear-gradient(0deg, rgba(18,10,31,0.9), transparent);
  color: var(--text-100);
}

/* ===== star-map (category tiles) ===== */

.star-map {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: var(--gap-4);
}

.star-map-tile {
  background: var(--plum-800);
  border: 1px solid var(--cosmic-700);
  border-radius: var(--radius-m);
  padding: var(--gap-4);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--gap-2);
  text-align: center;
  font-weight: 700;
  font-size: 13px;
  color: var(--text-100);
  transition: border-color var(--ease), transform var(--ease);
}

.star-map-tile svg { width: 28px; height: 28px; color: var(--fuchsia-500); }
.star-map-tile:hover { border-color: var(--lime-400); transform: translateY(-3px); }

/* ===== core-reactor (jackpots) ===== */

.core-reactor-intro {
  max-width: 720px;
  margin-bottom: var(--gap-5);
}

.core-reactor-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--gap-4);
  margin-bottom: var(--gap-5);
}

.core-reactor-tile {
  background: linear-gradient(160deg, var(--plum-800), var(--plum-900));
  border: 1px solid var(--cosmic-700);
  border-radius: var(--radius-l);
  padding: var(--gap-5);
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: center;
}

.core-reactor-tile--grand {
  border-color: var(--orange-500);
  box-shadow: 0 0 26px rgba(255, 138, 61, 0.35);
}

.core-reactor-label {
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--text-400);
}

.core-reactor-amount {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 800;
  color: var(--lime-400);
}

.core-reactor-hint { font-size: 12px; color: var(--text-400); }

/* ===== crew-bay (providers) ===== */

.crew-bay {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: var(--gap-4);
}

.crew-bay-card {
  background: var(--plum-800);
  border: 1px solid var(--cosmic-700);
  border-radius: var(--radius-m);
  padding: var(--gap-4);
  display: flex;
  align-items: center;
  justify-content: center;
  height: 96px;
  transition: border-color var(--ease);
}

.crew-bay-card:hover { border-color: var(--fuchsia-500); }
.crew-bay-logo { max-height: 56px; max-width: 85%; width: auto; filter: grayscale(1) brightness(1.6); opacity: 0.8; }

/* ===== transmit-panel (banking strip) ===== */

.transmit-panel {
  overflow: hidden;
  border-top: 1px solid var(--cosmic-700);
  border-bottom: 1px solid var(--cosmic-700);
  background: var(--plum-900);
  padding: var(--gap-4) 0;
}

.transmit-panel-track {
  display: flex;
  gap: var(--gap-6);
  width: max-content;
  animation: holo-deck-scroll 32s linear infinite;
}

.transmit-panel-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border: 1px solid var(--cosmic-700);
  border-radius: var(--radius-pill);
  white-space: nowrap;
}

.transmit-panel-logo { height: 20px; width: auto; }
.transmit-panel-name { font-size: 13px; font-weight: 700; color: var(--text-100); }

/* ===== log-entry (SEO text block) ===== */

.log-entry {
  background: var(--plum-800);
  border: 1px solid var(--cosmic-700);
  border-radius: var(--radius-l);
  padding: var(--gap-6);
  position: relative;
}

.log-entry-body {
  max-height: 130px;
  overflow: hidden;
  position: relative;
}

.log-entry-body::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: linear-gradient(0deg, var(--plum-800), transparent);
}

.log-entry-body.is-open {
  max-height: none;
}

.log-entry-body.is-open::after { display: none; }

.log-entry-body--static {
  max-height: none;
}

.log-entry-body--static::after { display: none; }

.log-entry-body h1,
.log-entry-body h2,
.log-entry-body h3 { color: var(--text-100); }

.log-entry-body table {
  width: 100%;
  border-collapse: collapse;
  margin: var(--gap-4) 0;
}

.log-entry-body th,
.log-entry-body td {
  border: 1px solid var(--cosmic-700);
  padding: 8px 12px;
  text-align: left;
  font-size: 14px;
}

.log-entry-body a { color: var(--lime-400); text-decoration: underline; }
.log-entry-body img { display: block; width: 100%; height: auto; border-radius: var(--radius-l); border: 1px solid var(--cosmic-700); margin: var(--gap-5) 0; }

.log-entry-toggle {
  margin-top: var(--gap-3);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: none;
  color: var(--lime-400);
  font-weight: 800;
  font-size: 13px;
}

.log-entry-toggle svg { width: 14px; height: 14px; transition: transform var(--ease); }
.log-entry-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }

/* ===== transmission (FAQ accordion) ===== */

.transmission-title { font-size: 24px; margin-bottom: var(--gap-5); }

.transmission-list {
  display: flex;
  flex-direction: column;
  gap: var(--gap-3);
}

.transmission-item {
  background: var(--plum-800);
  border: 1px solid var(--cosmic-700);
  border-radius: var(--radius-m);
  overflow: hidden;
}

.transmission-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--gap-3);
  background: transparent;
  border: none;
  padding: var(--gap-4);
  text-align: left;
}

.transmission-question { margin: 0; font-weight: 700; color: var(--text-100); }
.transmission-chevron { width: 18px; height: 18px; color: var(--fuchsia-500); flex: 0 0 auto; transition: transform var(--ease); }
.transmission-toggle[aria-expanded="true"] .transmission-chevron { transform: rotate(180deg); }

.transmission-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  padding: 0 var(--gap-4);
}

.transmission-answer.is-open {
  max-height: 400px;
  padding: 0 var(--gap-4) var(--gap-4);
}

/* ===== hail (testimonials + trust) ===== */

.hail-trust-row {
  display: flex;
  align-items: center;
  gap: var(--gap-4);
  margin-bottom: var(--gap-5);
  flex-wrap: wrap;
}

.hail-trust-label { font-size: 13px; color: var(--text-400); }
.hail-trust-marks { display: flex; gap: var(--gap-4); }
.hail-trust-mark { color: var(--text-400); }
.hail-trust-mark:hover { color: var(--lime-400); }
.hail-trust-mark svg { height: 24px; width: auto; }

.hail-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap-4);
}

.hail-card {
  background: var(--plum-800);
  border: 1px solid var(--cosmic-700);
  border-radius: var(--radius-m);
  padding: var(--gap-4);
}

.hail-stars { display: flex; gap: 2px; margin-bottom: var(--gap-2); }
.hail-stars svg { width: 16px; height: 16px; color: var(--orange-500); }
.hail-quote { font-size: 13px; }
.hail-author { font-weight: 700; color: var(--text-100); font-size: 13px; margin: 0; }

/* ===== dock (footer) ===== */

.dock {
  background: var(--plum-900);
  border-top: 1px solid var(--cosmic-700);
  padding: var(--gap-7) 0 var(--gap-5);
  margin-top: var(--gap-7);
}

.dock-brand-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--gap-4);
  padding-bottom: var(--gap-5);
  margin-bottom: var(--gap-6);
  border-bottom: 1px solid var(--cosmic-700);
}

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

.dock-quicklinks {
  display: flex;
  flex-wrap: wrap;
  gap: var(--gap-4);
}

.dock-quicklinks a { font-size: 13px; font-weight: 700; color: var(--text-400); }
.dock-quicklinks a:hover { color: var(--lime-400); }

.dock-cols {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--gap-5);
  margin-bottom: var(--gap-6);
}

.dock-col { display: flex; flex-direction: column; gap: var(--gap-2); }
.dock-col-title { font-weight: 800; color: var(--text-100); font-family: var(--font-display); margin-bottom: var(--gap-2); }
.dock-col a { font-size: 13px; color: var(--text-400); }
.dock-col a:hover { color: var(--lime-400); }

.dock-trust {
  display: flex;
  gap: var(--gap-6);
  flex-wrap: wrap;
  padding: var(--gap-5) 0;
  border-top: 1px solid var(--cosmic-700);
  border-bottom: 1px solid var(--cosmic-700);
  margin-bottom: var(--gap-5);
}

.dock-trust-label { display: block; font-size: 12px; color: var(--text-400); margin-bottom: var(--gap-2); text-transform: uppercase; letter-spacing: 0.05em; }
.dock-chip-row { display: flex; gap: var(--gap-2); flex-wrap: wrap; }
.dock-chip {
  background: var(--plum-800);
  border: 1px solid var(--cosmic-700);
  border-radius: var(--radius-pill);
  padding: 6px 12px;
  font-size: 12px;
  color: var(--text-100);
}

.dock-bottom {
  display: flex;
  align-items: center;
  gap: var(--gap-3);
  margin-bottom: var(--gap-4);
}

.dock-age {
  border: 2px solid var(--orange-500);
  color: var(--orange-500);
  font-weight: 800;
  border-radius: var(--radius-s);
  padding: 2px 8px;
  font-size: 12px;
}

.dock-copy { font-size: 12px; margin: 0; }

.dock-legal { margin-bottom: var(--gap-4); }
.dock-legal-text { font-size: 11px; color: var(--text-400); line-height: 1.6; }
.dock-legal-text a { color: var(--lime-400); }

.dock-disclaimer {
  border-top: 1px solid var(--cosmic-700);
  padding-top: var(--gap-4);
}

.dock-disclaimer-text {
  font-size: 11px;
  font-weight: 800;
  color: var(--text-100);
  line-height: 1.6;
  margin: 0;
}

/* ===== warp-gate (welcome modal) ===== */

.warp-gate {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
}

.warp-gate[hidden] { display: none; }

.warp-gate-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 2, 16, 0.78);
}

.warp-gate-card {
  position: relative;
  z-index: 1;
  width: min(420px, 90vw);
  background: var(--plum-800);
  border: 2px solid var(--fuchsia-500);
  border-radius: var(--radius-l);
  box-shadow: var(--glow-fuchsia);
  overflow: hidden;
}

.warp-gate-close {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(18,10,31,0.6);
  border: none;
  color: var(--text-100);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 20px;
  z-index: 2;
}

.warp-gate-media img { width: 100%; height: 180px; object-fit: cover; }

.warp-gate-body {
  padding: var(--gap-5);
  display: flex;
  flex-direction: column;
  gap: var(--gap-2);
}

.warp-gate-title { font-size: 20px; margin: 0; color: var(--text-100); }
.warp-gate-text { font-size: 13px; }
.warp-gate-cta { width: fit-content; margin-top: var(--gap-2); }

/* ===== cookie notice ===== */

.cookie-notice {
  position: fixed;
  bottom: var(--gap-4);
  /* Offset past the fixed bridge side rail on desktop so the banner isn't
     rendered underneath it (both visually and for pointer events). */
  left: calc(var(--bridge-width) + var(--gap-4));
  right: var(--gap-4);
  max-width: 460px;
  background: var(--plum-800);
  border: 1px solid var(--cosmic-700);
  border-radius: var(--radius-m);
  padding: var(--gap-4);
  display: flex;
  flex-direction: column;
  gap: var(--gap-3);
  /* Above the bridge (260) and its overlay (250) so it's never covered. */
  z-index: 400;
  box-shadow: var(--shadow-raised);
}

.cookie-notice.is-hidden { display: none; }
.cookie-notice p { font-size: 13px; margin: 0; }
.cookie-notice a { color: var(--lime-400); text-decoration: underline; }

.chat-fab {
  position: fixed;
  bottom: var(--gap-4);
  right: var(--gap-4);
  background: linear-gradient(120deg, var(--fuchsia-500), var(--orange-500));
  color: #fff;
  font-weight: 800;
  font-size: 13px;
  padding: 12px 20px;
  border-radius: var(--radius-pill);
  box-shadow: var(--glow-fuchsia);
  z-index: 70;
}

/* ===== 404 ===== */

.not-found {
  text-align: center;
  padding: var(--gap-7) var(--gutter);
}

.not-found-code {
  font-family: var(--font-display);
  font-size: 96px;
  color: var(--fuchsia-500);
  margin: 0;
  line-height: 1;
}

/* ===== responsive ===== */

@media (max-width: 1024px) {
  .cargo-hold { grid-template-columns: repeat(2, 1fr); }
  .holo-deck-grid { grid-template-columns: repeat(4, 1fr); }
  .star-map { grid-template-columns: repeat(3, 1fr); }
  .core-reactor-grid { grid-template-columns: repeat(2, 1fr); }
  .crew-bay { grid-template-columns: repeat(4, 1fr); }
  .hail-grid { grid-template-columns: repeat(2, 1fr); }
  .dock-cols { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 900px) {
  .helm-search { display: none; }
  .helm-hide-mobile { display: none; }
  .helm-burger { display: flex; }

  .bridge {
    width: 280px;
    top: 0;
    height: 100dvh;
    transform: translateX(-100%);
    box-shadow: 8px 0 32px rgba(6, 2, 16, 0.5);
  }

  .bridge.is-open { transform: translateX(0); }
  .bridge-head { display: flex; }
  .main-deck { margin-left: 0 !important; }

  /* Bridge is an off-canvas drawer below this breakpoint, so the cookie
     notice no longer needs to dodge it. */
  .cookie-notice { left: var(--gap-4); }
}

@media (max-width: 720px) {
  .cargo-hold { grid-template-columns: 1fr; }
  .holo-deck-grid { grid-template-columns: repeat(2, 1fr); }
  .star-map { grid-template-columns: repeat(2, 1fr); }
  .core-reactor-grid { grid-template-columns: 1fr; }
  .crew-bay { grid-template-columns: repeat(3, 1fr); }
  .hail-grid { grid-template-columns: 1fr; }
  .dock-cols { grid-template-columns: repeat(2, 1fr); }
  .launchpad-title { font-size: 24px; }
}
