/* ==========================================================================
   TWINMATCH (for Spotify Wrapped 2026) — Y2K Retro-Dithered Design System
   Mobile-first centered shell (max-width: 440px) over pure #000000
   ========================================================================== */

@font-face {
  font-family: 'IntraNet';
  src: url('../fonts/IntraNet.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Rena';
  src: url('../fonts/Rena-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg-black: #000000;
  --surface-dark: #0B0B0D;
  --surface-card: #121216;
  --border-subtle: #2A2A32;
  --dither-olive: #627B16;
  --dither-olive-dark: #4B5F10;
  --electric-blue: #0020FF;
  --electric-blue-dark: #0014B3;
  --signal-orange: #FF4D00;
  --signal-orange-dark: #CC3300;
  --dither-crimson: #5C0B0B;
  --dither-crimson-dark: #3B0606;
  --input-grey: #D4D4D4;
  --text-white: #FFFFFF;
  --text-muted: #C2C2C8;
  --success-lime: #B7FF2A;
  --danger-red: #FF3B30;
  --shell-max: 440px;
}

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

html {
  background-color: var(--bg-black);
  color: var(--text-white);
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  min-height: 100dvh;
  background-color: var(--bg-black);
  color: var(--text-white);
  font-family: 'Rena', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.42;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--text-white);
  text-decoration: underline;
  text-underline-offset: 3px;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 2px solid var(--signal-orange);
  outline-offset: 2px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.is-hidden {
  display: none !important;
}

.mt-0 {
  margin-top: 0 !important;
}

.mt-8 {
  margin-top: 8px !important;
}

.mt-14 {
  margin-top: 14px !important;
}

.mt-20 {
  margin-top: 20px !important;
}

/* --------------------------------------------------------------------------
   App Shell
   -------------------------------------------------------------------------- */
.app-shell {
  width: 100%;
  max-width: var(--shell-max);
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0 auto;
  background-color: var(--bg-black);
  display: flex;
  flex-direction: column;
  position: relative;
}

@media (min-width: 480px) {
  .app-shell {
    border-left: 1px solid #1C1C1C;
    border-right: 1px solid #1C1C1C;
  }
}

.app-main {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
}

.section-pad {
  padding: 22px 22px 16px;
}

/* --------------------------------------------------------------------------
   Dithered Surfaces (Using Local Exported Materials + Pixel CSS Fallbacks)
   -------------------------------------------------------------------------- */
.tex-olive-tall {
  background-color: var(--dither-olive);
  background-image: url('../assets/tex-header-tall.png');
  background-repeat: repeat;
  background-size: 402px 174px;
  image-rendering: pixelated;
}

.tex-olive-sm {
  background-color: var(--dither-olive);
  background-image: url('../assets/tex-header-sm.png');
  background-repeat: repeat;
  background-size: 401px 123px;
  image-rendering: pixelated;
}

.tex-blue-btn {
  background-color: var(--electric-blue);
  background-image: url('../assets/tex-blue-btn.png');
  background-repeat: repeat;
  background-size: 149px 41px;
  image-rendering: pixelated;
}

.tex-blue-card {
  background-color: var(--electric-blue);
  background-image: url('../assets/tex-blue-card.png');
  background-repeat: repeat;
  background-size: 364px 573px;
  image-rendering: pixelated;
}

.tex-crimson {
  background-color: var(--dither-crimson);
  background-image: url('../assets/tex-footer-sm.png');
  background-repeat: repeat;
  background-size: 402px 80px;
  image-rendering: pixelated;
}

/* Crisp retro 4x4 pixel dither matching Figma orange bars/buttons */
.tex-orange {
  background-color: var(--signal-orange);
  background-image:
    repeating-conic-gradient(
      rgba(165, 24, 0, 0.42) 0% 25%,
      rgba(255, 118, 24, 0.25) 0% 50%
    );
  background-size: 6px 6px;
}

/* --------------------------------------------------------------------------
   Headers
   -------------------------------------------------------------------------- */
.site-header {
  width: 100%;
  padding: 16px 22px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
}

.site-header--home {
  padding: 20px 22px 18px;
}

.site-header--inner {
  padding: 14px 22px;
  align-items: center;
}

.brand-wordmark {
  font-family: 'IntraNet', monospace;
  color: var(--text-white);
  text-decoration: none;
  text-transform: uppercase;
  line-height: 0.94;
  letter-spacing: 0.02em;
  display: inline-block;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.45);
}

.brand-wordmark--stacked {
  font-size: clamp(2.05rem, 9.5vw, 2.55rem);
}

.brand-wordmark--inline {
  font-size: clamp(1.65rem, 7.8vw, 2.15rem);
  margin-left: auto;
}

.brand-subtitle {
  text-align: right;
  font-size: 0.98rem;
  line-height: 1.18;
  color: var(--text-white);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.55);
  flex-shrink: 0;
}

.back-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  border: 0;
  color: var(--text-white);
  text-decoration: none;
  cursor: pointer;
  padding: 0;
  transition: filter 0.12s ease, transform 0.1s ease;
}

.back-btn:hover {
  filter: brightness(1.1);
}

.back-btn:active {
  transform: scale(0.96);
}

/* Saved Radar top pill (shown when localStorage has twinmatch_radar_token) */
.radar-shortcut-bar {
  background-color: #0E0E14;
  border-bottom: 1px solid var(--electric-blue);
  padding: 10px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.radar-shortcut-label {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.radar-shortcut-pill {
  font-family: 'IntraNet', monospace;
  font-size: 0.85rem;
  color: var(--text-white);
  text-decoration: none;
  padding: 8px 12px;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

/* --------------------------------------------------------------------------
   Typography & Headings
   -------------------------------------------------------------------------- */
.hero-headline {
  margin: 0 0 18px;
  font-family: 'Rena', sans-serif;
  font-size: clamp(1.95rem, 8.6vw, 2.38rem);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--text-white);
}

.page-title {
  margin: 0 0 10px;
  font-family: 'Rena', sans-serif;
  font-size: clamp(1.85rem, 8vw, 2.25rem);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--text-white);
}

.step-kicker {
  margin: 0 0 8px;
  font-family: 'IntraNet', monospace;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  color: var(--signal-orange);
  text-transform: uppercase;
}

.page-lead {
  margin: 0 0 20px;
  font-size: 1rem;
  line-height: 1.38;
  color: #EAEAEA;
}

.section-heading {
  margin: 24px 0 10px;
  font-family: 'IntraNet', monospace;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-white);
}

.section-subhead {
  margin: 22px 0 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border-subtle);
  font-family: 'IntraNet', monospace;
  font-size: 0.92rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--signal-orange);
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding: 12px 20px;
  border: 0;
  color: var(--text-white);
  font-family: 'IntraNet', monospace;
  font-size: clamp(1.15rem, 5.2vw, 1.42rem);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.4);
  transition: filter 0.12s ease, transform 0.1s ease;
}

.btn-primary--full {
  width: 100%;
}

.btn-primary:hover:not(:disabled) {
  filter: brightness(1.12);
}

.btn-primary:active:not(:disabled) {
  transform: scale(0.985);
}

.btn-primary:disabled {
  opacity: 0.55;
  cursor: wait;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 10px 16px;
  border: 1px solid var(--text-white);
  background: transparent;
  color: var(--text-white);
  font-family: 'IntraNet', monospace;
  font-size: 0.92rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.12s ease, color 0.12s ease;
}

.btn-secondary:hover:not(:disabled) {
  background-color: var(--text-white);
  color: var(--bg-black);
}

.btn-secondary--full {
  width: 100%;
}

.btn-orange {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 10px 16px;
  border: 0;
  color: var(--text-white);
  font-family: 'IntraNet', monospace;
  font-size: 0.92rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.35);
}

.btn-orange--full {
  width: 100%;
}

.btn-danger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid var(--danger-red);
  background: rgba(255, 59, 48, 0.1);
  color: #FF8E88;
  font-family: 'Rena', sans-serif;
  font-size: 0.92rem;
  cursor: pointer;
  width: 100%;
}

.btn-danger:hover {
  background: var(--danger-red);
  color: var(--text-white);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.btn-row > * {
  flex: 1 1 140px;
}

/* --------------------------------------------------------------------------
   Home Live Counter & Orange Navigation Strip
   -------------------------------------------------------------------------- */
.live-counter-block {
  margin: 22px 0 6px;
}

.live-counter-number {
  font-family: 'IntraNet', monospace;
  font-size: clamp(2.15rem, 10vw, 2.85rem);
  line-height: 1.05;
  letter-spacing: 0.05em;
  color: var(--text-white);
}

.live-counter-label {
  margin-top: 6px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 1rem;
  color: #EAEAEA;
}

.live-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background-color: var(--success-lime);
  box-shadow: 0 0 8px var(--success-lime);
  display: inline-block;
  animation: tm-pulse 1.8s ease-in-out infinite;
}

@keyframes tm-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.35; transform: scale(0.8); }
}

.home-nav-strip {
  width: 100%;
  padding: 16px 22px;
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  position: relative;
  z-index: 2;
}

.home-nav-strip a {
  font-family: 'Rena', sans-serif;
  font-size: 1.15rem;
  color: var(--text-white);
  text-decoration: underline;
  text-underline-offset: 4px;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.35);
  min-height: 32px;
  display: inline-flex;
  align-items: center;
}

.home-nav-strip a:hover {
  opacity: 0.85;
}

/* --------------------------------------------------------------------------
   Forms, Inputs, Autocomplete & Tooltips
   -------------------------------------------------------------------------- */
.form-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.field-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: relative;
}

.field-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.field-row-age-zodiac {
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 12px;
}

.field-label {
  font-family: 'Rena', sans-serif;
  font-size: 1.05rem;
  color: var(--text-white);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.field-opt {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.field-inline-wrap {
  display: flex;
  align-items: stretch;
  gap: 10px;
}

.field-inline-wrap > .input-control,
.field-inline-wrap > .select-control,
.field-inline-wrap > .field-row-2 {
  flex: 1 1 auto;
}

.input-control,
.select-control {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 2px solid transparent;
  border-radius: 0;
  background-color: var(--input-grey);
  color: #000000;
  font-family: 'Rena', -apple-system, sans-serif;
  font-size: 16px; /* Prevents iOS Safari auto-zoom */
  line-height: 1.25;
  appearance: none;
  -webkit-appearance: none;
}

.input-control::placeholder {
  color: #555555;
}

.select-control {
  padding-right: 38px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='12' viewBox='0 0 18 12'%3E%3Cpath d='M2 2l7 7 7-7' fill='none' stroke='%23000000' stroke-width='2.6' stroke-linecap='square'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 14px 10px;
  cursor: pointer;
}

.input-control.is-invalid,
.select-control.is-invalid {
  border-color: var(--danger-red);
}

.input-control.is-locked {
  border-color: var(--dither-olive);
}

.field-helper {
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.35;
  color: var(--text-muted);
}

.field-helper--ok {
  color: var(--success-lime);
}

.field-helper--err {
  color: #FF8E88;
}

.helper-ext-link {
  display: inline-block;
  margin-bottom: 12px;
  font-size: 0.92rem;
  color: #8CA8FF;
  text-decoration: underline;
}

/* Orange [?] tooltip trigger & inline popover */
.tooltip-btn {
  width: 46px;
  min-width: 46px;
  min-height: 46px;
  border: 0;
  color: var(--text-white);
  font-family: 'IntraNet', monospace;
  font-size: 1.25rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.tooltip-box {
  margin-top: 6px;
  padding: 10px 12px;
  background-color: #16100C;
  border: 1px solid var(--signal-orange);
  color: var(--text-white);
  font-size: 0.88rem;
  line-height: 1.38;
}

/* Photon Autocomplete Dropdown */
.autocomplete-wrap {
  position: relative;
}

.autocomplete-list {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 40;
  background-color: #141418;
  border: 2px solid var(--electric-blue);
  border-top: 0;
  max-height: 250px;
  overflow-y: auto;
  list-style: none;
  margin: 0;
  padding: 0;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.85);
}

.autocomplete-item {
  padding: 12px 14px;
  min-height: 46px;
  border-bottom: 1px solid #262630;
  color: var(--text-white);
  font-size: 0.95rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.autocomplete-item:last-child {
  border-bottom: 0;
}

.autocomplete-item:hover,
.autocomplete-item.is-active {
  background-color: var(--electric-blue);
}

.autocomplete-item--status {
  color: var(--text-muted);
  cursor: default;
  font-size: 0.88rem;
}

.autocomplete-item--status:hover {
  background-color: transparent;
}

.autocomplete-cc {
  font-family: 'IntraNet', monospace;
  font-size: 0.78rem;
  padding: 2px 6px;
  background: rgba(255, 255, 255, 0.14);
  flex-shrink: 0;
}

/* Checkbox row */
.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  font-size: 0.94rem;
  line-height: 1.38;
  padding: 4px 0;
}

.checkbox-row input[type="checkbox"] {
  width: 24px;
  height: 24px;
  min-width: 24px;
  margin: 0;
  accent-color: var(--electric-blue);
  background: var(--input-grey);
  cursor: pointer;
}

/* Turnstile wrapper */
.turnstile-wrap {
  min-height: 68px;
  display: flex;
  align-items: center;
}

/* Banners & Alerts */
.banner {
  padding: 14px 16px;
  margin-bottom: 18px;
  font-size: 0.94rem;
  line-height: 1.4;
  border: 2px solid var(--electric-blue);
  background-color: #070B28;
}

.banner--signal {
  border-color: var(--success-lime);
  background-color: #0D1805;
  color: #EFFFF0;
}

.banner--info {
  border-color: var(--electric-blue);
  background-color: #080E33;
  color: var(--text-white);
}

.banner--warn {
  border-color: var(--signal-orange);
  background-color: #1D0D04;
  color: #FFE9DC;
}

.banner--error {
  border-color: var(--danger-red);
  background-color: #240707;
  color: #FFD7D4;
}

.banner-title {
  display: block;
  font-family: 'IntraNet', monospace;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  margin-bottom: 4px;
  text-transform: uppercase;
}

/* Optional Seeking Accordion (only shown when arriving from /t/{code}) */
.optional-toggle {
  border: 1px dashed var(--border-subtle);
  padding: 12px 14px;
  background-color: #0C0C10;
}

.optional-toggle summary {
  cursor: pointer;
  font-size: 0.95rem;
  color: #A9BFFF;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.optional-toggle summary::-webkit-details-marker {
  display: none;
}

.optional-toggle[open] summary {
  margin-bottom: 14px;
}

/* --------------------------------------------------------------------------
   Dithered Electric-Blue Cards (Wanted, About, How It Works, Unlocked Match)
   -------------------------------------------------------------------------- */
.blue-card {
  padding: 20px;
  color: var(--text-white);
  position: relative;
}

.blue-card--wanted {
  padding: 22px 20px;
}

.wanted-kicker {
  margin: 0 0 6px;
  font-family: 'IntraNet', monospace;
  font-size: 0.84rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  opacity: 0.92;
}

.wanted-title {
  margin: 0 0 14px;
  font-family: 'IntraNet', monospace;
  font-size: clamp(1.85rem, 8.5vw, 2.3rem);
  line-height: 0.98;
  text-transform: uppercase;
}

.clue-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 14px;
  margin: 14px 0;
}

.clue-item--full {
  grid-column: 1 / -1;
}

.clue-label {
  display: block;
  font-size: 0.74rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.82;
}

.clue-value {
  display: block;
  font-size: 1.12rem;
  line-height: 1.25;
  margin-top: 2px;
  word-break: break-word;
}

/* Radar Cards */
.radar-panel {
  border: 1px solid var(--border-subtle);
  background-color: var(--surface-card);
  padding: 16px;
  margin-bottom: 14px;
}

.radar-panel--highlight {
  border: 2px solid var(--signal-orange);
  background-color: #160D09;
}

.radar-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}

.badge {
  display: inline-block;
  padding: 4px 8px;
  font-family: 'IntraNet', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  line-height: 1.1;
}

.badge--true {
  background-color: var(--success-lime);
  color: #000000;
}

.badge--oneway {
  background-color: var(--signal-orange);
  color: var(--text-white);
}

.badge--ref {
  background-color: var(--electric-blue);
  color: var(--text-white);
}

.badge--muted {
  background-color: #2B2B35;
  color: #DCDCE2;
}

.score-pill {
  font-family: 'IntraNet', monospace;
  font-size: 1rem;
  color: var(--success-lime);
}

.meta-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 12px;
  font-size: 0.94rem;
}

.meta-list li span {
  display: block;
  font-size: 0.74rem;
  text-transform: uppercase;
  color: var(--text-muted);
}

.unlocked-handle-box {
  margin-top: 12px;
  padding: 12px 14px;
  background-color: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.unlocked-handle-value {
  font-family: 'IntraNet', monospace;
  font-size: 1.25rem;
  word-break: break-all;
  margin: 4px 0 10px;
}

.empty-state {
  padding: 16px;
  border: 1px dashed var(--border-subtle);
  color: var(--text-muted);
  font-size: 0.94rem;
  line-height: 1.45;
  margin-bottom: 14px;
}

.tools-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 12px;
}

.tip-note {
  margin: 4px 0 8px;
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   Story Card Canvas Modal / Preview
   -------------------------------------------------------------------------- */
.story-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  background-color: rgba(0, 0, 0, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  overflow-y: auto;
}

.story-modal-inner {
  width: 100%;
  max-width: 400px;
  background-color: #0E0E12;
  border: 2px solid var(--electric-blue);
  padding: 18px;
}

.story-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.story-modal-title {
  margin: 0;
  font-family: 'IntraNet', monospace;
  font-size: 1rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.modal-close-btn {
  width: 38px;
  height: 38px;
  border: 1px solid var(--border-subtle);
  background: #1A1A22;
  color: var(--text-white);
  font-family: 'IntraNet', monospace;
  font-size: 1rem;
  cursor: pointer;
}

.story-preview-frame {
  width: 100%;
  max-height: 56vh;
  margin: 0 auto 14px;
  background: #000000;
  border: 1px solid #22222A;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.story-preview-img {
  width: auto;
  max-width: 100%;
  max-height: 55vh;
  height: auto;
  display: block;
}

.story-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Inline LAST STEP Wanted Card Hero Block on Radar */
.wanted-hero-panel {
  border: 2px solid var(--signal-orange);
  background-color: #0D0D12;
  padding: 18px 16px;
  margin-bottom: 18px;
}

.wanted-hero-kicker {
  display: inline-block;
  padding: 5px 10px;
  margin-bottom: 10px;
  font-family: 'IntraNet', monospace;
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-white);
}

.wanted-hero-headline {
  margin: 0 0 8px;
  font-family: 'IntraNet', monospace;
  font-size: clamp(1.3rem, 6vw, 1.6rem);
  line-height: 1.06;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--text-white);
}

.wanted-hero-sub {
  margin: 0 0 14px;
  font-size: 0.94rem;
  line-height: 1.38;
  color: #E2E2E8;
}

.story-preview-frame--inline {
  width: 100%;
  max-width: 240px;
  aspect-ratio: 9 / 16;
  margin: 0 auto 14px;
  background: #000000;
  border: 2px solid var(--electric-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.story-preview-frame--inline .story-preview-img {
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: contain;
}

.story-rendering-msg {
  padding: 12px;
  text-align: center;
}

/* --------------------------------------------------------------------------
   About & Info Pages
   -------------------------------------------------------------------------- */
.creator-card-top {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.creator-avatar {
  width: 82px;
  height: 82px;
  object-fit: cover;
  border: 2px solid var(--text-white);
  flex-shrink: 0;
}

.creator-name {
  margin: 0;
  font-family: 'IntraNet', monospace;
  font-size: clamp(1.35rem, 6.2vw, 1.7rem);
  line-height: 1.02;
  text-transform: uppercase;
}

.creator-role {
  margin: 6px 0 0;
  font-size: 0.96rem;
  opacity: 0.94;
}

.creator-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-top: 12px;
  font-size: 1rem;
}

.steps-ol {
  margin: 0;
  padding-left: 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  font-size: 1.05rem;
  line-height: 1.38;
}

.match-found-callout {
  margin: 22px 0 8px;
  text-align: center;
  font-family: 'IntraNet', monospace;
  font-size: clamp(1.35rem, 6.5vw, 1.75rem);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.legal-copy h2 {
  margin: 22px 0 8px;
  font-family: 'IntraNet', monospace;
  font-size: 1rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--signal-orange);
}

.legal-copy p,
.legal-copy li {
  font-size: 0.95rem;
  line-height: 1.5;
  color: #E5E5EA;
}

.legal-copy ul {
  padding-left: 20px;
  margin: 8px 0 14px;
}

/* --------------------------------------------------------------------------
   Static Bottom Thermal Globe (No Spin Animation, Clipped Cleanly)
   -------------------------------------------------------------------------- */
.globe-stage {
  margin-top: auto;
  width: 100%;
  overflow: hidden;
  line-height: 0;
  pointer-events: none;
  user-select: none;
  position: relative;
}

.globe-stage--home {
  display: flex;
  justify-content: flex-end;
  margin-top: -28px;
  padding-top: 8px;
  z-index: 1;
}

.globe-stage--home .globe-img {
  width: 82%;
  max-width: 345px;
  height: auto;
  image-rendering: pixelated;
}

.globe-stage--arc {
  display: flex;
  justify-content: center;
  padding-top: 22px;
  max-height: 175px;
  align-items: flex-end;
}

.globe-stage--arc .globe-img {
  width: 100%;
  height: auto;
  image-rendering: pixelated;
}

.globe-img--flip {
  transform: scaleX(-1);
}

/* --------------------------------------------------------------------------
   Persistent Mandatory Crimson Footer
   -------------------------------------------------------------------------- */
.site-footer {
  width: 100%;
  padding: 16px 22px 20px;
  color: var(--text-white);
  flex-shrink: 0;
}

.footer-credit {
  margin: 0 0 6px;
  font-size: 0.94rem;
  line-height: 1.3;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.footer-disclaimer {
  margin: 0 0 10px;
  font-size: 0.76rem;
  line-height: 1.38;
  color: #F0E6E6;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  font-size: 0.84rem;
}

.footer-links a {
  color: var(--text-white);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-sep {
  opacity: 0.55;
}

/* Toast feedback */
.toast {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 120;
  background-color: var(--electric-blue);
  color: var(--text-white);
  border: 2px solid var(--text-white);
  padding: 10px 18px;
  font-family: 'IntraNet', monospace;
  font-size: 0.88rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.85);
  max-width: 92vw;
  text-align: center;
}
