/* THE ABYSS — waterjon.com/abyss. Scoped to .abyss-page so nothing here touches the main site.
   Palette per the Abyss brief: deep navy / dark teal / chrome, with bioluminescent green used
   sparingly for terminal information, active states and interactive details. */
.abyss-page {
  --a-navy: #0d1520;
  --a-teal: #1a3a4a;
  --a-chrome: #8ba8c4;
  --a-green: #00ff66;
  background: var(--a-navy);
}
.abyss-page .site-footer { background: var(--a-navy); border-top-color: rgba(139, 168, 196, 0.18); }
/* site header on Abyss pages: sits on the navy, flows straight into the terminal header below */
.abyss-page .site-header:not(.ar-site-header) {
  background: radial-gradient(60% 120% at 50% 0%, rgba(26, 58, 74, 0.5) 0%, rgba(13, 21, 32, 0) 75%), var(--a-navy);
  border-bottom: 0;
}
.abyss-page .site-header:not(.ar-site-header) + main > .abyss-term { padding-top: clamp(26px, 4vw, 40px); background: var(--a-navy); }

.abyss-term {
  position: relative; padding: max(54px, env(safe-area-inset-top) + 24px) var(--gutter) 46px;
  text-align: center; overflow: hidden; border-bottom: 1px solid rgba(139, 168, 196, 0.18);
  background:
    radial-gradient(70% 60% at 50% 0%, rgba(26, 58, 74, 0.55) 0%, rgba(13, 21, 32, 0) 70%),
    var(--a-navy);
}
/* faint CRT/sonar scanlines, static, no motion unless reduced-motion allows it */
.abyss-term::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0.5;
  background: repeating-linear-gradient(0deg, rgba(139, 168, 196, 0.05) 0px, rgba(139, 168, 196, 0.05) 1px, transparent 1px, transparent 3px);
}
.abyss-return {
  display: flex; width: max-content; align-items: center; gap: 0.5em; margin: 0 auto 22px;
  font: 650 0.7rem/1 "Archivo", Arial, sans-serif; font-stretch: 112%; letter-spacing: 0.2em;
  text-transform: uppercase; text-decoration: none; color: var(--a-chrome); opacity: 0.85;
}
.abyss-return svg { width: 0.9em; height: 0.9em; fill: currentColor; transform: rotate(180deg); }
.abyss-return:hover { opacity: 1; color: #fff; }
.abyss-sys {
  display: inline-flex; align-items: center; gap: 0.6em; margin: 0 0 18px;
  font: 650 0.68rem/1 "Archivo", Arial, sans-serif; letter-spacing: 0.26em; text-transform: uppercase;
  color: var(--a-green);
}
.abyss-sys::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--a-green);
  box-shadow: 0 0 8px var(--a-green);
}
@media (prefers-reduced-motion: no-preference) { .abyss-sys::before { animation: abyss-pulse 2.4s ease-in-out infinite; } }
@keyframes abyss-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }
.abyss-station { margin: 0; font-stretch: 112%; font-weight: 650; font-size: 0.78rem; letter-spacing: 0.2em; color: var(--a-chrome); text-transform: uppercase; }
.abyss-title {
  margin: 14px 0 0; font-stretch: 125%; font-weight: 800; letter-spacing: 0.06em;
  font-size: clamp(2.6rem, 9vw, 5rem); line-height: 1; color: #d8f7f2;
  text-shadow: 0 0 36px rgba(0, 255, 102, 0.18);
}
.abyss-lede { max-width: 46ch; margin: 18px auto 0; color: var(--a-chrome); font-size: clamp(0.92rem, 1.4vw, 1.05rem); line-height: 1.6; }

.abyss-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px;
  background: rgba(139, 168, 196, 0.18);
  border: 1px solid rgba(139, 168, 196, 0.18);
  max-width: 980px; margin: 0 auto;
}
@media (max-width: 760px) { .abyss-grid { grid-template-columns: 1fr; } }
.abyss-card {
  position: relative; display: flex; flex-direction: column; gap: 12px;
  padding: clamp(28px, 4vw, 40px); background: var(--a-navy); text-align: left;
  text-decoration: none; color: inherit;
  transition: background-color 0.3s ease;
}
.abyss-card--live { cursor: pointer; }
@media (hover: hover) { .abyss-card--live:hover { background: var(--a-teal); } }
.abyss-card--pending { cursor: default; }
.abyss-card-num { font: 650 0.72rem/1 "Archivo", Arial, sans-serif; letter-spacing: 0.2em; color: var(--a-green); }
.abyss-card--pending .abyss-card-num { color: #a9bdcf; }
.abyss-card-title { margin: 0; font-stretch: 125%; font-weight: 800; letter-spacing: 0.02em; font-size: clamp(1.3rem, 2.4vw, 1.7rem); color: #d8f7f2; }
.abyss-card-desc { margin: 0; color: var(--a-chrome); font-size: 0.92rem; line-height: 1.6; }
.abyss-card-status {
  align-self: flex-start; margin-top: auto; padding-top: 10px;
  font: 650 0.64rem/1 "Archivo", Arial, sans-serif; letter-spacing: 0.18em; text-transform: uppercase;
}
.abyss-card--live .abyss-card-status { color: var(--a-green); }
.abyss-card--pending .abyss-card-status { color: #a9bdcf; }
.abyss-card-go {
  display: inline-flex; align-items: center; gap: 0.4em; margin-top: 6px;
  font: 650 0.72rem/1 "Archivo", Arial, sans-serif; letter-spacing: 0.14em; text-transform: uppercase; color: #d8f7f2;
}
.abyss-card-go svg { width: 0.85em; height: 0.85em; fill: currentColor; transition: transform 0.25s ease; }
.abyss-card--live:hover .abyss-card-go svg { transform: translateX(3px); }

.abyss-foot-note { max-width: 640px; margin: clamp(40px, 6vw, 64px) auto 0; padding: 0 var(--gutter); text-align: center; color: #a9bdcf; font-size: 0.82rem; line-height: 1.6; }

/* ---------- Arcade ---------- */
.abyss-arcade { padding: clamp(48px, 7vw, 80px) var(--gutter) clamp(60px, 8vw, 96px); }
.abyss-arcade-wrap { max-width: 760px; margin: 0 auto; }
.abyss-game {
  display: grid; grid-template-columns: 180px 1fr; gap: 24px; align-items: start;
  padding: clamp(24px, 3vw, 32px); border: 1px solid rgba(139, 168, 196, 0.22); background: rgba(26, 58, 74, 0.25);
}
@media (max-width: 560px) { .abyss-game { grid-template-columns: 1fr; } }
.abyss-game-art { width: 100%; aspect-ratio: 1; object-fit: contain; background: var(--a-navy); border: 1px solid rgba(139, 168, 196, 0.22); padding: 20px; }
.abyss-game-title { margin: 0 0 6px; font-stretch: 125%; font-weight: 800; font-size: 1.4rem; color: #d8f7f2; }
.abyss-game-desc { margin: 0 0 14px; color: var(--a-chrome); font-size: 0.92rem; line-height: 1.6; }
.abyss-game-tracks { margin: 0 0 18px; font-size: 0.78rem; letter-spacing: 0.04em; color: var(--a-chrome); opacity: 0.85; }
.abyss-game-tracks a { color: var(--a-green); text-decoration: none; border-bottom: 1px solid rgba(0, 255, 102, 0.35); }
.abyss-play-btn {
  display: inline-flex; align-items: center; gap: 0.6em; padding: 12px 22px; border-radius: 999px;
  background: var(--a-green); color: #03130a; font: 700 0.76rem/1 "Archivo", Arial, sans-serif;
  letter-spacing: 0.14em; text-transform: uppercase; text-decoration: none;
  transition: box-shadow 0.25s ease, transform 0.2s ease;
}
.abyss-play-btn:hover { box-shadow: 0 0 22px rgba(0, 255, 102, 0.45); }
.abyss-play-btn:active { transform: scale(0.98); }
