/* ThinkPad Radar Hub — Mobile-First High-Contrast Radar Launchpad + Sculpted Keycaps */

:root {
  --bg: #07090D;
  --surface: #11151E;
  --surface-raised: #161C28;
  --surface-key: #1D2330;
  --border: #263042;
  --border-bright: #3B4A66;
  --text: #F8FAFC;
  --text-muted: #B0B9C8;
  --text-dim: #7C879B;
  --red: #E60012;
  --red-bright: #FF3344;
  --cyan: #00D4FF;
  --cyan-deep: #0EA5E9;
  --green: #2EE59D;
  --amber: #FFB020;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --font-display: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-sans: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  background-color: var(--bg);
  color: var(--text);
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  margin: 0;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background-color: var(--bg);
  background-image:
    radial-gradient(860px 460px at 10% -6%, rgba(230, 0, 18, 0.22), transparent 58%),
    radial-gradient(860px 460px at 90% -6%, rgba(0, 212, 255, 0.19), transparent 58%),
    radial-gradient(640px 360px at 50% 24%, rgba(255, 255, 255, 0.045), transparent 68%),
    radial-gradient(rgba(165, 190, 235, 0.095) 1px, transparent 1px);
  background-size: auto, auto, auto, 24px 24px;
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  overflow-x: clip;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
}

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}

.mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

.shell {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Iconic ThinkPad dotless-i with glowing TrackPoint crimson LED */
.tp-i {
  position: relative;
  display: inline-block;
}

.tp-i-dot {
  position: absolute;
  left: 50%;
  top: 0.05em;
  width: 0.26em;
  height: 0.26em;
  border-radius: 50%;
  background: var(--red);
  transform: translateX(-50%);
  box-shadow:
    0 0 10px rgba(230, 0, 18, 0.9),
    0 0 22px rgba(230, 0, 18, 0.45);
  transition: transform 180ms var(--ease-out), box-shadow 180ms var(--ease-out);
}

.tp-i-dot.is-pulsing {
  animation: lidLedPulse 780ms var(--ease-out);
}

@keyframes lidLedPulse {
  0% {
    transform: translateX(-50%) scale(1);
    box-shadow: 0 0 10px rgba(230, 0, 18, 0.9);
  }
  35% {
    transform: translateX(-50%) scale(1.65);
    box-shadow: 0 0 24px rgba(255, 51, 68, 1), 0 0 48px rgba(230, 0, 18, 0.7);
  }
  100% {
    transform: translateX(-50%) scale(1);
    box-shadow: 0 0 10px rgba(230, 0, 18, 0.9);
  }
}

/* Compact Sticky Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(16px);
  background: rgba(7, 9, 13, 0.88);
  border-bottom: 1px solid rgba(48, 60, 82, 0.65);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 56px;
}

/* Sculpted Machined-Metal ThinkPad Plaque */
.tp-plaque {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  height: 36px;
  padding: 0 14px;
  border-radius: 7px;
  background:
    linear-gradient(125deg, rgba(255, 255, 255, 0.065) 0%, rgba(255, 255, 255, 0) 46%),
    linear-gradient(180deg, #1E2430 0%, #12161F 60%, #0C0F16 100%);
  border: 1px solid rgba(203, 213, 225, 0.24);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    inset 0 -1px 0 rgba(0, 0, 0, 0.72),
    0 2px 0 #04060A,
    0 6px 16px rgba(0, 0, 0, 0.48);
  color: var(--text);
  white-space: nowrap;
  flex-shrink: 0;
  transition: transform 150ms var(--ease-out), border-color 150ms var(--ease-out), box-shadow 150ms var(--ease-out);
}

.tp-plaque:hover {
  transform: translateY(-1px);
  border-color: rgba(230, 0, 18, 0.6);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    0 2px 0 #04060A,
    0 0 18px rgba(230, 0, 18, 0.22);
}

.tp-plaque:active {
  transform: scale(0.98);
}

.tp-plaque-wordmark {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1;
}

.tp-plaque-divider {
  width: 1.5px;
  height: 13px;
  border-radius: 1px;
  background: linear-gradient(180deg, rgba(230, 0, 18, 0.35), #E60012 50%, rgba(230, 0, 18, 0.35));
  box-shadow: 0 0 8px rgba(230, 0, 18, 0.55);
}

.tp-plaque-radar {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: #D2DAE6;
}

.header-nav {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 6px;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
  transition: color 150ms var(--ease-out);
}

.nav-link--daz:hover {
  color: #FF5C69;
}

.nav-link--tom:hover {
  color: var(--cyan);
}

.nav-sep {
  color: var(--border-bright);
  user-select: none;
}

/* LAN-Only Publish & Pause Strip */
.topbar-lan-bar {
  border-top: 1px solid rgba(46, 58, 82, 0.65);
  background: rgba(11, 14, 21, 0.92);
}

.topbar-lan-bar[hidden] {
  display: none;
}

.topbar-lan-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 7px;
  padding-bottom: 7px;
  flex-wrap: wrap;
}

.lan-mode-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--text-dim);
  white-space: nowrap;
}

.lan-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.lan-key {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 34px;
  padding: 0 13px;
  border-radius: 7px;
  background: linear-gradient(180deg, #1F2532 0%, #141923 58%, #0E121A 100%);
  border: 1px solid var(--border-bright);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 2px 0 #04060A;
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 600;
  white-space: nowrap;
  transition: border-color 150ms var(--ease-out), transform 130ms var(--ease-out), box-shadow 150ms var(--ease-out);
}

.lan-key:active:not(:disabled) {
  transform: translateY(1px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 1px 0 #04060A;
}

.lan-key:disabled {
  opacity: 0.52;
  cursor: not-allowed;
}

.lan-key--publish {
  border-color: rgba(46, 229, 157, 0.42);
}

.lan-key--publish:hover:not(:disabled) {
  border-color: rgba(46, 229, 157, 0.82);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    0 2px 0 #04060A,
    0 0 14px rgba(46, 229, 157, 0.22);
}

.lan-key--pause {
  border-color: rgba(255, 176, 32, 0.42);
}

.lan-key--pause:hover:not(:disabled) {
  border-color: rgba(255, 176, 32, 0.82);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    0 2px 0 #04060A,
    0 0 14px rgba(255, 176, 32, 0.22);
}

.lan-key-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}

.lan-key-dot--publish {
  background: var(--green);
  box-shadow: 0 0 8px rgba(46, 229, 157, 0.8);
}

.lan-key-dot--pause {
  background: var(--amber);
  box-shadow: 0 0 8px rgba(255, 176, 32, 0.8);
}

/* Inline LAN Status & Confirmation Banner */
.lan-status-banner {
  margin: 0 auto 18px;
  max-width: 820px;
}

.lan-status-banner[hidden] {
  display: none;
}

.lan-banner-card {
  border-radius: 12px;
  border: 1px solid var(--border-bright);
  background: linear-gradient(180deg, #161C29 0%, #10151F 100%);
  padding: 13px 16px;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.48);
}

.lan-banner-card.is-success {
  border-color: rgba(46, 229, 157, 0.48);
}

.lan-banner-card.is-warning {
  border-color: rgba(255, 176, 32, 0.55);
}

.lan-banner-card.is-error {
  border-color: rgba(230, 0, 18, 0.58);
}

.lan-banner-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.lan-banner-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text);
}

.lan-banner-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1;
}

.lan-banner-close:hover {
  color: var(--text);
  border-color: var(--border-bright);
}

.lan-banner-meta {
  margin-top: 6px;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.lan-banner-meta code {
  font-family: var(--font-mono);
  color: var(--text);
  font-size: 0.78rem;
}

.lan-banner-actions {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.lan-progress-track {
  margin-top: 10px;
  height: 3px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.16);
  overflow: hidden;
}

.lan-progress-fill {
  height: 100%;
  width: 38%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--red), var(--cyan));
  animation: lanIndeterminate 1.2s ease-in-out infinite;
}

@keyframes lanIndeterminate {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(300%);
  }
}

/* Main Stage & Always-Alive Subtle Radar Rings */
.stage-main {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(20px, 3vw, 38px) 0 clamp(28px, 4vw, 48px);
}

.radar-backdrop {
  position: absolute;
  inset: 0 0 auto 0;
  height: 460px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
  mask-image: radial-gradient(ellipse 68% 82% at 50% 28%, rgba(0, 0, 0, 0.95) 0%, transparent 76%);
  -webkit-mask-image: radial-gradient(ellipse 68% 82% at 50% 28%, rgba(0, 0, 0, 0.95) 0%, transparent 76%);
}

.radar-rig {
  position: relative;
  width: min(680px, 128vw);
  height: min(680px, 128vw);
  margin-top: -195px;
  border-radius: 50%;
}

.radar-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(176, 185, 200, 0.11);
}

.radar-ring--1 {
  inset: 26%;
  border-color: rgba(230, 0, 18, 0.22);
}

.radar-ring--2 {
  inset: 14%;
  border-color: rgba(148, 163, 184, 0.13);
}

.radar-ring--3 {
  inset: 2%;
  border-color: rgba(0, 212, 255, 0.15);
}

.radar-cross {
  position: absolute;
  background: rgba(148, 163, 184, 0.08);
}

.radar-cross--h {
  left: 4%;
  right: 4%;
  top: 50%;
  height: 1px;
}

.radar-cross--v {
  top: 4%;
  bottom: 4%;
  left: 50%;
  width: 1px;
}

.radar-sweep {
  position: absolute;
  inset: 2%;
  border-radius: 50%;
  background: conic-gradient(
    from 0deg,
    rgba(230, 0, 18, 0) 0deg,
    rgba(230, 0, 18, 0.14) 36deg,
    rgba(0, 212, 255, 0.16) 56deg,
    rgba(0, 212, 255, 0) 64deg,
    transparent 360deg
  );
  animation: radarSweep 14s linear infinite;
  will-change: transform;
}

@keyframes radarSweep {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.stage-inner {
  position: relative;
  z-index: 1;
}

/* Compact Centered Hero Marquee */
.hero-marquee {
  text-align: center;
  max-width: 640px;
  margin: 0 auto clamp(20px, 3vw, 32px);
}

.hero-wordmark {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: clamp(2.35rem, 5.2vw, 3.65rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--text);
  text-shadow: 0 8px 32px rgba(0, 0, 0, 0.55);
}

.hero-led {
  top: 0.04em;
  width: 0.24em;
  height: 0.24em;
}

.hero-ribbon {
  margin: 0 0 8px;
  font-size: clamp(0.68rem, 1.5vw, 0.78rem);
  font-weight: 600;
  letter-spacing: 0.16em;
  color: #CBD5E1;
}

.hero-tagline {
  margin: 0 auto;
  font-size: clamp(0.9rem, 1.4vw, 1rem);
  color: var(--text-muted);
  text-wrap: balance;
}

/* Dual High-Contrast Hardware Portal Cards */
.editions-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px;
  align-items: stretch;
}

.portal-card {
  --mx: 50%;
  --my: 50%;
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: 16px;
  overflow: hidden;
  background: linear-gradient(180deg, #151B27 0%, #0F131C 100%);
  border: 1px solid var(--border);
  transition:
    transform 170ms var(--ease-out),
    border-color 170ms var(--ease-out),
    box-shadow 170ms var(--ease-out);
  will-change: transform;
}

.portal-card--daz {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 18px 46px rgba(0, 0, 0, 0.58),
    0 0 36px rgba(230, 0, 18, 0.12);
}

.portal-card--tom {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 18px 46px rgba(0, 0, 0, 0.58),
    0 0 36px rgba(0, 212, 255, 0.12);
}

.portal-card--daz:hover {
  transform: translateY(-3px);
  border-color: rgba(230, 0, 18, 0.65);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 24px 56px rgba(0, 0, 0, 0.68),
    0 0 46px rgba(230, 0, 18, 0.22);
}

.portal-card--tom:hover {
  transform: translateY(-3px);
  border-color: rgba(0, 212, 255, 0.65);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 24px 56px rgba(0, 0, 0, 0.68),
    0 0 46px rgba(0, 212, 255, 0.22);
}

/* Luminous Edition Rim Accent Along Top Edge */
.portal-rim {
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  z-index: 5;
  pointer-events: none;
}

.portal-card--daz .portal-rim {
  background: linear-gradient(90deg, transparent 5%, rgba(230, 0, 18, 0.95) 50%, transparent 95%);
}

.portal-card--tom .portal-rim {
  background: linear-gradient(90deg, transparent 5%, rgba(0, 212, 255, 0.95) 50%, transparent 95%);
}

/* Desktop Pointer Specular Sheen */
.bevel-sheen {
  position: absolute;
  inset: 0;
  z-index: 4;
  border-radius: inherit;
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms var(--ease-out);
}

.portal-card--daz .bevel-sheen {
  background: radial-gradient(
    360px circle at var(--mx, 50%) var(--my, 50%),
    rgba(255, 255, 255, 0.1),
    rgba(230, 0, 18, 0.12) 40%,
    transparent 74%
  );
}

.portal-card--tom .bevel-sheen {
  background: radial-gradient(
    360px circle at var(--mx, 50%) var(--my, 50%),
    rgba(255, 255, 255, 0.1),
    rgba(0, 212, 255, 0.12) 40%,
    transparent 74%
  );
}

.chassis-interactive.is-active .bevel-sheen {
  opacity: 1;
}

/* High-Contrast Studio Photo Stage */
.portal-media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  width: 100%;
  overflow: hidden;
  background: #0D1119;
  border-bottom: 1px solid rgba(48, 60, 82, 0.72);
}

.media-fallback {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(155deg, #182030 0%, #0D111A 100%);
}

.media-fallback-text {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-dim);
}

.is-fallback img {
  opacity: 0;
}

.portal-photo {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 46%;
  filter: brightness(1.12) contrast(1.06);
  transition: transform 360ms var(--ease-out), filter 240ms var(--ease-out);
}

.portal-card:hover .portal-photo {
  transform: scale(1.03);
  filter: brightness(1.18) contrast(1.08);
}

.portal-media-fade {
  position: absolute;
  inset: auto 0 0 0;
  height: 40%;
  z-index: 2;
  background: linear-gradient(
    180deg,
    rgba(15, 19, 28, 0) 0%,
    rgba(15, 19, 28, 0.68) 58%,
    rgba(20, 26, 38, 0.96) 100%
  );
  pointer-events: none;
}

.portal-media-meta {
  position: absolute;
  inset: auto 0 0 0;
  z-index: 3;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 22px;
  font-size: 0.74rem;
}

.portal-index {
  font-weight: 700;
  letter-spacing: 0.08em;
}

.portal-index--daz {
  color: #FF6B78;
}

.portal-index--tom {
  color: #38E4FF;
}

.portal-host {
  color: #C7D0DF;
  font-size: 0.7rem;
  white-space: nowrap;
}

/* Card Body & Compact 2x2 Spec Grid */
.portal-body {
  position: relative;
  z-index: 3;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 18px 22px 22px;
}

.portal-title {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-size: clamp(1.24rem, 2.1vw, 1.48rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.18;
  color: var(--text);
}

.portal-summary {
  margin: 0 0 16px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.spec-grid {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(52, 65, 90, 0.72);
}

.spec-cell {
  min-width: 0;
}

.spec-cell dt {
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--text-dim);
  margin-bottom: 2px;
}

.spec-cell dd {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
}

/* ThinkPad 3-Button Bar + Sculpted Dark Backlit Keycap Launch Switch */
.portal-actions {
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 13px;
}

.tp-bar {
  display: grid;
  grid-template-columns: 1fr 0.6fr 1fr;
  gap: 5px;
  height: 7px;
}

.tp-bar-key,
.tp-bar-mid {
  position: relative;
  border-radius: 2px;
  background: var(--surface-key);
  border: 1px solid rgba(68, 82, 110, 0.6);
}

.tp-bar--daz .tp-bar-mid::after {
  content: "";
  position: absolute;
  inset: 0 20% auto 20%;
  height: 2px;
  border-radius: 999px;
  background: var(--red-bright);
  box-shadow: 0 0 8px rgba(230, 0, 18, 0.8);
}

.tp-bar--tom .tp-bar-mid::after {
  content: "";
  position: absolute;
  inset: 0 20% auto 20%;
  height: 2px;
  border-radius: 999px;
  background: var(--cyan);
  box-shadow: 0 0 8px rgba(0, 212, 255, 0.8);
}

/* Sculpted Dark ThinkPad Keycap Button with Subtle Backlit Rim Glow */
.keycap-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 10px;
  background:
    linear-gradient(125deg, rgba(255, 255, 255, 0.055) 0%, rgba(255, 255, 255, 0) 45%),
    linear-gradient(180deg, #212736 0%, #151A25 56%, #0F131C 100%);
  color: #F4F6FA;
  font-size: 0.93rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  white-space: nowrap;
  transition:
    transform 140ms var(--ease-out),
    border-color 160ms var(--ease-out),
    box-shadow 180ms var(--ease-out),
    background 160ms var(--ease-out);
}

.keycap-btn::before {
  content: "";
  position: absolute;
  inset: 2px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.045);
  pointer-events: none;
}

.keycap-btn:active {
  transform: translateY(1px);
}

.keycap-led {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
  transition: transform 150ms var(--ease-out), box-shadow 150ms var(--ease-out);
}

.keycap-label {
  position: relative;
}

.keycap-arrow {
  font-size: 1rem;
  line-height: 1;
  transition: transform 150ms var(--ease-out);
}

.keycap-btn:hover .keycap-arrow {
  transform: translate(2px, -2px);
}

/* Daz Keycap — Crimson Backlit Rim */
.keycap-btn--daz {
  border: 1px solid rgba(230, 0, 18, 0.48);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    inset 0 -1px 0 rgba(0, 0, 0, 0.75),
    0 3px 0 #05070B,
    0 8px 22px rgba(0, 0, 0, 0.52),
    0 0 16px rgba(230, 0, 18, 0.14);
}

.keycap-btn--daz .keycap-led {
  background: var(--red-bright);
  box-shadow: 0 0 9px rgba(230, 0, 18, 0.9);
}

.keycap-btn--daz .keycap-arrow {
  color: #FF6B78;
}

.keycap-btn--daz:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 51, 68, 0.85);
  background:
    linear-gradient(125deg, rgba(230, 0, 18, 0.12) 0%, rgba(255, 255, 255, 0) 52%),
    linear-gradient(180deg, #252C3D 0%, #171D2A 56%, #10151F 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    inset 0 -1px 0 rgba(0, 0, 0, 0.78),
    0 4px 0 #05070B,
    0 12px 26px rgba(0, 0, 0, 0.6),
    0 0 24px rgba(230, 0, 18, 0.28);
}

.keycap-btn--daz:active {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 1px 0 #05070B,
    0 4px 12px rgba(0, 0, 0, 0.5),
    0 0 18px rgba(230, 0, 18, 0.25);
}

/* Tom Keycap — Electric Cyan Backlit Rim */
.keycap-btn--tom {
  border: 1px solid rgba(0, 212, 255, 0.45);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    inset 0 -1px 0 rgba(0, 0, 0, 0.75),
    0 3px 0 #05070B,
    0 8px 22px rgba(0, 0, 0, 0.52),
    0 0 16px rgba(0, 212, 255, 0.13);
}

.keycap-btn--tom .keycap-led {
  background: var(--cyan);
  box-shadow: 0 0 9px rgba(0, 212, 255, 0.9);
}

.keycap-btn--tom .keycap-arrow {
  color: #5CE4FF;
}

.keycap-btn--tom:hover {
  transform: translateY(-1px);
  border-color: rgba(0, 212, 255, 0.85);
  background:
    linear-gradient(125deg, rgba(0, 212, 255, 0.12) 0%, rgba(255, 255, 255, 0) 52%),
    linear-gradient(180deg, #252C3D 0%, #171D2A 56%, #10151F 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    inset 0 -1px 0 rgba(0, 0, 0, 0.78),
    0 4px 0 #05070B,
    0 12px 26px rgba(0, 0, 0, 0.6),
    0 0 24px rgba(0, 212, 255, 0.28);
}

.keycap-btn--tom:active {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 1px 0 #05070B,
    0 4px 12px rgba(0, 0, 0, 0.5),
    0 0 18px rgba(0, 212, 255, 0.24);
}

/* Quiet Single-Line Footer */
.site-footer {
  border-top: 1px solid rgba(44, 55, 76, 0.65);
  padding: 18px 0;
  background: rgba(7, 9, 13, 0.72);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px 16px;
  flex-wrap: wrap;
  font-size: 0.78rem;
  color: var(--text-dim);
}

.footer-meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.footer-brand {
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--text-muted);
}

.footer-links {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 0.74rem;
}

.footer-links a {
  color: var(--text-muted);
  transition: color 150ms var(--ease-out);
}

.footer-links a:hover {
  color: var(--text);
}

.footer-sep {
  color: var(--border-bright);
}

/* Mobile-First Polish */
@media (max-width: 860px) {
  .editions-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
}

@media (max-width: 560px) {
  .shell {
    padding: 0 14px;
  }

  .header-inner {
    height: 52px;
  }

  .tp-plaque {
    height: 34px;
    padding: 0 11px;
    gap: 7px;
  }

  .tp-plaque-wordmark {
    font-size: 0.94rem;
  }

  .tp-plaque-radar {
    font-size: 0.64rem;
  }

  .topbar-lan-inner {
    justify-content: center;
  }

  .lan-mode-label {
    display: none;
  }

  .lan-key {
    height: 32px;
    padding: 0 11px;
    font-size: 0.74rem;
  }

  .stage-main {
    padding: 14px 0 22px;
  }

  .radar-rig {
    margin-top: -150px;
  }

  .hero-marquee {
    margin-bottom: 16px;
  }

  .hero-wordmark {
    font-size: 2.15rem;
    margin-bottom: 5px;
  }

  .hero-ribbon {
    font-size: 0.64rem;
    letter-spacing: 0.13em;
    margin-bottom: 5px;
  }

  .hero-tagline {
    font-size: 0.85rem;
  }

  .portal-media {
    aspect-ratio: 16 / 9;
  }

  .portal-media-meta {
    padding: 10px 16px;
    font-size: 0.69rem;
  }

  .portal-host {
    font-size: 0.64rem;
  }

  .portal-body {
    padding: 14px 16px 16px;
  }

  .portal-title {
    font-size: 1.18rem;
  }

  .portal-summary {
    font-size: 0.84rem;
    margin-bottom: 12px;
  }

  .spec-grid {
    gap: 9px 12px;
    padding-top: 12px;
  }

  .spec-cell dd {
    font-size: 0.78rem;
  }

  .portal-actions {
    margin-top: 14px;
    gap: 10px;
  }

  .footer-inner {
    justify-content: center;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .radar-sweep,
  .lan-progress-fill {
    animation: none;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
