/* Cape Cod Surf Report — layout & chrome (colors in themes.css) */

:root {
  --font-display: "Orbitron", "Segoe UI", system-ui, sans-serif;
  --font-ui: "IBM Plex Sans", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", "Consolas", monospace;
  --border-chonk: 4px;
  --radius: 0;
}

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

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .wave,
  .wave-1,
  .wave-2,
  .wave-3 {
    animation-duration: 18s !important;
    animation-iteration-count: infinite !important;
  }
  .wave-2 {
    animation-duration: 24s !important;
  }
  .wave-3 {
    animation-duration: 30s !important;
  }
  .blink {
    animation: none !important;
    opacity: 1 !important;
  }
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-ui);
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.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;
}

.skip-link {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  z-index: 1000;
  padding: 0.5rem 1rem;
  background: var(--yellow);
  color: #000;
  font-family: var(--font-ui);
  font-size: 0.8125rem;
  font-weight: 600;
  text-decoration: none;
  border: var(--border-chonk) solid #fff;
  box-shadow: var(--shadow-pixel);
  transform: translateY(-200%);
  transition: transform 0.15s steps(2);
}

.skip-link:focus {
  transform: translateY(0);
  outline: none;
  box-shadow: var(--focus);
}

.container {
  width: 100%;
  max-width: 100%;
  padding-inline: clamp(0.75rem, 2vw, 2rem);
  margin-inline: auto;
}

/* ─── Background: stars + grid + WAVES (theme colors in themes.css) ─── */
.ocean-bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  background: var(--bg-sky);
}

/* Beach photo scene (themed tint + scanlines layer on top) */
.beach-scene {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.15) 0%, transparent 30%, rgba(0, 0, 0, 0.35) 100%),
    url("https://capedrift.com/sites/default/files/capecod/beach/orleans/nauset-beach.jpg")
      center 30% / cover no-repeat;
  filter: saturate(0.9) brightness(0.85);
  transform: scale(1.02);
}

/* Theme tint keeps the arcade vibe over the beach photo */
.beach-tint {
  position: absolute;
  inset: 0;
  background: var(--bg-sky);
  mix-blend-mode: color;
  opacity: 0.55;
  pointer-events: none;
}

.beach-tint::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.45) 0%, transparent 35%, rgba(0, 0, 0, 0.55) 100%);
}

/* Arcade scanline + vignette HUD frame */
.scanlines-overlay {
  position: fixed;
  inset: 0;
  z-index: 9997;
  pointer-events: none;
  background: repeating-linear-gradient(
    0deg,
    rgba(0, 0, 0, 0.18) 0,
    rgba(0, 0, 0, 0.18) 1px,
    transparent 1px,
    transparent 3px
  );
  box-shadow: inset 0 0 180px rgba(0, 0, 0, 0.75);
  opacity: 0.55;
}

.starfield {
  position: absolute;
  inset: 0;
  background-image: var(--starfield);
  background-size: 350px 350px;
  animation: stars-drift 60s linear infinite;
  opacity: var(--starfield-opacity, 0.85);
}

@keyframes stars-drift {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(-350px);
  }
}

.grid-floor {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 100px;
  height: 40%;
  background: var(--grid-floor);
  background-size: 32px 32px;
  transform: perspective(200px) rotateX(55deg);
  transform-origin: bottom center;
  opacity: var(--grid-opacity, 0.5);
  pointer-events: none;
}

.wave {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 200%;
  height: 100px;
  background-size: 50% 100%;
  animation: drift 18s linear infinite;
  z-index: 1;
}

.wave-1 {
  background-image: var(--wave-1);
  opacity: 0.9;
  filter: var(--wave-filter-1, none);
}

.wave-2 {
  bottom: 14px;
  height: 90px;
  opacity: 0.75;
  animation-duration: 24s;
  animation-direction: reverse;
  background-image: var(--wave-2);
}

.wave-3 {
  bottom: 28px;
  height: 80px;
  opacity: 0.5;
  animation-duration: 30s;
  background-image: var(--wave-3);
}

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

.crt-overlay {
  position: fixed;
  inset: 0;
  z-index: 9998;
  pointer-events: none;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.12) 2px,
    rgba(0, 0, 0, 0.12) 4px
  );
  opacity: 0.35;
}

.crt-overlay::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 55%, rgba(0, 0, 0, 0.4) 100%);
}

/* ─── Header (Activision splash vibe) ─── */
.site-header {
  padding: 1rem 0 0.5rem;
  position: relative;
  z-index: 1;
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
}

.header-tools {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.65rem;
  flex: 0 1 690px;
  min-width: min(100%, 320px);
}

.brand-box {
  padding: 1rem 1.25rem;
  background: var(--panel);
  border: var(--border-chonk) solid #fff;
  box-shadow: var(--shadow-pixel);
}

.brand-kicker {
  margin: 0 0 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--cyan);
  letter-spacing: 0.05em;
}

.brand-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 5vw, 2.25rem);
  font-weight: 700;
  line-height: 1.2;
  color: #fff;
  text-shadow:
    3px 3px 0 var(--magenta),
    6px 6px 0 var(--blue);
  letter-spacing: 0.06em;
}

.rainbow-bar {
  height: 8px;
  margin: 0.75rem 0 0.5rem;
  background: var(--rainbow);
  border: 2px solid #fff;
  box-shadow: 2px 2px 0 #000;
}

.brand-sub {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--yellow);
}

.brand-tag {
  margin: 0;
  font-family: var(--font-mono);
  font-size: clamp(0.875rem, 2.5vw, 1rem);
  font-weight: 600;
  color: var(--green);
  text-shadow: 2px 2px 0 var(--magenta);
  padding: 0.65rem 1rem;
  border: 3px solid var(--green);
  background: #000;
  letter-spacing: 0.04em;
}

.start-surf-button {
  appearance: none;
  cursor: pointer;
  text-align: center;
  box-shadow: 3px 3px 0 var(--magenta);
}

.start-surf-button:hover {
  color: var(--yellow);
  border-color: var(--yellow);
}

.start-surf-button:focus-visible {
  outline: none;
  box-shadow: var(--focus);
}

.blink {
  animation: blink 1.2s steps(2) infinite;
}

@keyframes blink {
  0%,
  49% {
    opacity: 1;
  }
  50%,
  100% {
    opacity: 0.35;
  }
}

.main {
  padding: 0.25rem 0 3.5rem;
  position: relative;
  z-index: 1;
}

/* ─── Section chrome ─── */
.section-head {
  margin-bottom: 0.75rem;
  padding-bottom: 0.4rem;
  border-bottom: 3px dashed var(--cyan);
}

.section-title {
  margin: 0 0 0.25rem;
  font-family: var(--font-display);
  font-size: clamp(1rem, 3vw, 1.25rem);
  font-weight: 700;
  color: var(--yellow);
  text-shadow: 2px 2px 0 var(--red);
  line-height: 1.35;
  letter-spacing: 0.04em;
}

.section-desc {
  margin: 0;
  font-size: 1rem;
  color: var(--cyan);
}

/* ─── Panels = cartridge HUD boxes ─── */
.panel {
  background: var(--panel);
  border: var(--border-chonk) solid #fff;
  outline: 3px solid var(--magenta);
  outline-offset: -7px;
  padding: 1rem;
  margin-bottom: 1rem;
  box-shadow: var(--shadow-pixel);
  position: relative;
}

.panel::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: var(--rainbow);
}

.error-panel {
  border-color: var(--red);
  outline-color: var(--yellow);
  text-align: center;
}

.error-panel .panel-title {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--red);
}

/* ─── Spot picker = level select ─── */
.spot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(155px, 1fr));
  gap: 0.65rem;
}

.spot-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.85rem;
  background: #000;
  border: 3px solid var(--blue);
  cursor: pointer;
  transition: transform 0.1s steps(2), border-color 0.1s;
  box-shadow: 3px 3px 0 var(--magenta);
}

.spot-card:has(:focus-visible) {
  outline: none;
  box-shadow: var(--focus);
  border-color: var(--yellow);
}

.spot-card:hover {
  transform: translate(-2px, -2px);
  border-color: var(--cyan);
  box-shadow: 5px 5px 0 var(--cyan);
}

.spot-card.is-active {
  border-color: var(--yellow);
  background: #1a1030;
  box-shadow:
    3px 3px 0 var(--green),
    inset 0 0 20px rgba(255, 255, 0, 0.08);
}

.spot-card.is-active::after {
  content: "►";
  position: absolute;
  top: 0.4rem;
  right: 0.4rem;
  color: var(--yellow);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
}

.spot-card input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

.spot-icon {
  font-size: 1.75rem;
  line-height: 1;
}

.spot-name {
  font-family: var(--font-ui);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.35;
  color: #fff;
}

.spot-meta {
  font-size: 0.875rem;
  color: var(--green);
  line-height: 1.35;
}

/* ─── Hero / now playing (primary focal point) ─── */
.hero-panel {
  border-width: 6px;
  outline-width: 4px;
  outline-offset: -10px;
  padding: clamp(1.25rem, 2.5vw, 2rem);
  margin-bottom: 1.75rem;
  background: color-mix(in srgb, var(--panel) 62%, transparent);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  box-shadow:
    var(--shadow-pixel),
    0 0 0 2px var(--yellow),
    0 0 28px rgba(0, 0, 0, 0.6);
}

.hero-panel::before {
  height: 10px;
}

.hero-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.9rem;
}

.eyebrow {
  margin: 0 0 0.35rem;
  font-family: var(--font-mono);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--magenta);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.hero-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 5vw, 2.5rem);
  font-weight: 700;
  color: var(--cyan);
  line-height: 1.2;
  letter-spacing: 0.03em;
  text-shadow: 3px 3px 0 var(--magenta);
}

.hero-sub {
  margin: 0.35rem 0 0;
  color: var(--yellow);
  font-size: 1.125rem;
}

.meta-pill {
  font-family: var(--font-mono);
  font-size: 0.9375rem;
  color: var(--green);
  padding: 0.45rem 0.75rem;
  background: #000;
  border: 2px solid var(--green);
  box-shadow: 2px 2px 0 var(--magenta);
}

.meta-cache {
  color: var(--yellow);
}

.vibe-block {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  gap: 1rem;
  align-items: center;
  padding: 0.9rem;
  margin-bottom: 0.9rem;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  border: 3px solid var(--cyan);
  box-shadow: inset 0 0 30px rgba(0, 255, 255, 0.08);
}

@media (max-width: 900px) {
  .vibe-block {
    grid-template-columns: auto 1fr;
  }
}

@media (max-width: 720px) {
  .vibe-block {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .stoke-ring {
    margin-inline: auto;
  }
}

.vibe-emoji {
  font-size: clamp(3rem, 12vw, 4.5rem);
  line-height: 1;
  animation: bob 2s steps(4) infinite;
  filter: drop-shadow(4px 4px 0 var(--magenta));
}

@keyframes bob {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}

.vibe-label {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 4vw, 1.75rem);
  font-weight: 700;
  color: var(--yellow);
  text-shadow: 3px 3px 0 var(--red);
  line-height: 1.25;
  letter-spacing: 0.03em;
}

.vibe-pep {
  margin: 0.5rem 0 0;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--cyan);
}

.vibe-blurb {
  margin: 0.25rem 0 0;
  color: var(--text-dim);
  font-size: 1rem;
  line-height: 1.5;
}

.giphy-reaction {
  margin: 0.75rem 0 0;
  width: min(100%, 320px);
  background: #000;
  border: 3px solid var(--yellow);
  box-shadow: 3px 3px 0 var(--magenta);
  overflow: hidden;
}

.giphy-reaction img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #050915;
}

.giphy-reaction figcaption {
  display: flex;
  justify-content: flex-end;
  padding: 0.25rem 0.45rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  background: #050915;
}

.giphy-reaction a {
  color: var(--cyan);
  text-decoration: none;
}

.giphy-reaction a:hover {
  color: var(--yellow);
}

/* Stoke = power meter */
.stoke-ring {
  position: relative;
  width: 110px;
  height: 110px;
  border: 4px solid #fff;
  background: #000;
  box-shadow: 4px 4px 0 var(--magenta);
}

.stoke-svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.stoke-track {
  fill: none;
  stroke: #333;
  stroke-width: 12;
}

.stoke-fill {
  fill: none;
  stroke: var(--green);
  stroke-width: 12;
  stroke-linecap: butt;
  stroke-dasharray: 327;
  stroke-dashoffset: calc(327 - (327 * var(--stoke, 0) / 100));
  transition: stroke-dashoffset 0.6s steps(8);
  filter: drop-shadow(0 0 6px var(--green));
}

.stoke-num {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.stoke-value {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--yellow);
  line-height: 1.2;
}

.stoke-unit {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--cyan);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* Stats = scoreboard */
.stat-bento {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.65rem;
}

@media (max-width: 800px) {
  .stat-bento {
    grid-template-columns: repeat(2, 1fr);
  }
}

.stat-card {
  padding: 0.75rem;
  background: #000;
  border: 3px solid var(--blue);
  box-shadow: 2px 2px 0 var(--cyan);
}

.stat-card--hero {
  grid-column: span 2;
  border-color: var(--yellow);
  background: linear-gradient(180deg, #1a0a30 0%, #000 100%);
}

.stat-card--wide {
  grid-column: 1 / -1;
  border-color: var(--magenta);
}

.stat-label {
  margin: 0 0 0.35rem;
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--magenta);
  line-height: 1.35;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.stat-value {
  margin: 0;
  display: flex;
  align-items: baseline;
  gap: 0.2rem;
}

.stat-num {
  font-family: var(--font-mono);
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  font-weight: 600;
  color: var(--cyan);
  line-height: 1.2;
}

.stat-card--hero .stat-num {
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  color: var(--yellow);
  text-shadow: 2px 2px 0 var(--red);
}

.stat-unit {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--green);
}

.stat-sub {
  margin: 0.35rem 0 0;
  font-size: 0.875rem;
  line-height: 1.45;
  color: var(--text-dim);
}

.wind-arrow {
  display: inline-block;
  transform: rotate(var(--wind-deg, 0deg));
  color: var(--yellow);
}

/* ─── Wind & wave vector compass (hero feature in vibe block) ─── */
.vector-field {
  grid-column: 1 / -1;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
  margin-top: 0.6rem;
  padding-top: 1rem;
}

.vector-field::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(560px, 90%);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  background: radial-gradient(
    circle at center,
    rgba(0, 232, 200, 0.22) 0%,
    rgba(0, 232, 200, 0.1) 38%,
    transparent 70%
  );
  pointer-events: none;
  z-index: 0;
}

.vector-svg {
  position: relative;
  z-index: 1;
  width: clamp(240px, 42vw, 380px);
  max-width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 0 14px rgba(0, 232, 200, 0.25));
}

.vf-ring {
  fill: none;
  stroke: var(--cyan);
  stroke-width: 2;
  opacity: 0.35;
}

.vf-ring--inner {
  stroke: var(--magenta);
  opacity: 0.45;
}

.vf-cross {
  stroke: var(--cyan);
  stroke-width: 1;
  opacity: 0.18;
}

.vf-card {
  fill: var(--yellow);
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 700;
}

.vf-hub {
  fill: #fff;
  stroke: var(--magenta);
  stroke-width: 2;
}

.vf-sandbar-shoal {
  fill: none;
  stroke: var(--yellow);
  stroke-width: 3;
  stroke-linecap: round;
  opacity: 0.68;
}

.vf-sandbar-label {
  fill: var(--yellow);
  font-family: var(--font-mono);
  font-size: 6px;
  font-weight: 700;
  letter-spacing: 0.08em;
  opacity: 0.75;
}

/* Wind = source-side arrow pointing inward from where wind comes from */
.vf-wind-shaft {
  stroke: var(--yellow);
  stroke-width: 4;
  stroke-linecap: round;
}

.vf-wind-head {
  fill: var(--yellow);
}

.vf-wind-pulse {
  fill: var(--yellow);
  opacity: 0.9;
  animation: vf-wind-travel var(--wind-speed, 2.4s) linear infinite;
}

@keyframes vf-wind-travel {
  0% {
    transform: translateY(0);
    opacity: 0;
  }
  15% {
    opacity: 0.95;
  }
  100% {
    transform: translateY(52px);
    opacity: 0;
  }
}

/* Swell = cyan crests flowing toward travel bearing */
.vf-swell-head {
  fill: var(--cyan);
  opacity: 0.85;
}

.vf-crest {
  fill: none;
  stroke: var(--cyan);
  stroke-width: 3;
  stroke-linecap: round;
  opacity: 0;
  animation: vf-swell-flow var(--wave-speed, 4s) ease-in-out infinite;
}

.vf-crest:nth-child(2) {
  animation-delay: calc(var(--wave-speed, 4s) * 0.33);
}

.vf-crest:nth-child(3) {
  animation-delay: calc(var(--wave-speed, 4s) * 0.66);
}

@keyframes vf-swell-flow {
  0% {
    transform: translateY(0);
    opacity: 0;
  }
  25% {
    opacity: 0.8;
  }
  100% {
    transform: translateY(-70px);
    opacity: 0;
  }
}

.vf-legend {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem 1.5rem;
  font-family: var(--font-mono);
  font-size: clamp(1rem, 2.2vw, 1.25rem);
  font-weight: 600;
}

.vf-key--wind {
  color: var(--yellow);
}

.vf-key--swell {
  color: var(--cyan);
}

@media (prefers-reduced-motion: reduce) {
  .vf-wind-pulse,
  .vf-crest {
    animation: none !important;
    opacity: 0.6;
  }
}

/* Buttons = arcade controls */
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.25rem;
  font-family: var(--font-ui);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: 0.02em;
  text-decoration: none;
  text-transform: uppercase;
  border: 3px solid #fff;
  cursor: pointer;
  box-shadow: 4px 4px 0 #000;
  transition: transform 0.08s steps(2), box-shadow 0.08s;
}

.btn:focus-visible {
  outline: none;
  box-shadow: var(--focus);
}

.btn:active {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 #000;
}

.btn-primary {
  background: var(--cyan);
  color: #000;
  border-color: #fff;
}

.btn-primary:hover {
  background: var(--yellow);
}

.btn-ghost {
  background: #000;
  color: var(--green);
  border-color: var(--green);
  box-shadow: 4px 4px 0 var(--magenta);
}

.btn-ghost:hover {
  color: var(--yellow);
  border-color: var(--yellow);
}

.btn-fun {
  background: var(--magenta);
  color: #fff;
  border-color: var(--yellow);
  box-shadow: 4px 4px 0 var(--yellow);
  animation: btn-pulse 2s steps(2) infinite;
}

@keyframes btn-pulse {
  0%,
  70% {
    filter: brightness(1);
  }
  85% {
    filter: brightness(1.4);
  }
}

.btn-fun:hover {
  background: var(--red);
}

/* Week = level select row */
.week-scroller {
  overflow-x: auto;
  padding-bottom: 0.5rem;
  scroll-snap-type: x mandatory;
  border: 2px dashed var(--magenta);
  background: #000;
}

.week-scroller:focus-visible {
  outline: none;
  box-shadow: var(--focus);
}

.week-track {
  display: flex;
  gap: 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0.5rem;
}

.day-card {
  flex: 0 0 118px;
  scroll-snap-align: start;
}

.day-card article {
  height: 100%;
  padding: 0.75rem 0.5rem;
  text-align: center;
  background: #0a0a12;
  border: 3px solid var(--blue);
  box-shadow: 3px 3px 0 var(--magenta);
}

.day-name {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--yellow);
}

.day-emoji {
  margin: 0.4rem 0;
  font-size: 1.75rem;
}

.day-vibe {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--cyan);
}

.day-waves {
  margin: 0.25rem 0;
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
}

.day-stoke-bar {
  height: 10px;
  background: #222;
  border: 2px solid #fff;
  margin: 0.4rem 0;
  overflow: hidden;
}

.day-stoke-bar span {
  display: block;
  height: 100%;
  background: repeating-linear-gradient(
    90deg,
    var(--green) 0,
    var(--green) 8px,
    var(--cyan) 8px,
    var(--cyan) 16px
  );
  transition: width 0.5s steps(10);
}

.day-meta {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--green);
}

.day-dirs {
  margin: 0.4rem 0 0;
  display: flex;
  justify-content: center;
  gap: 0.55rem;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--cyan);
}

.day-dir {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
}

.day-dir-icon {
  font-size: 0.9375rem;
}

.weekly-summary {
  border-color: var(--cyan);
  outline-color: var(--yellow);
}

.summary-brief {
  display: grid;
  gap: 0.85rem;
  padding: 0.9rem;
  background: #050915;
  border: 3px solid var(--green);
  box-shadow: 3px 3px 0 var(--blue);
}

.summary-lead {
  margin: 0;
  font-size: clamp(1rem, 2.4vw, 1.2rem);
  font-weight: 700;
  line-height: 1.35;
  color: #fff;
}

.summary-list {
  display: grid;
  gap: 0.65rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.summary-list li {
  display: grid;
  grid-template-columns: minmax(105px, 0.22fr) 1fr;
  gap: 0.75rem;
  align-items: start;
  padding-top: 0.65rem;
  border-top: 2px dashed color-mix(in srgb, var(--cyan) 60%, transparent);
}

.summary-label {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--yellow);
  text-transform: uppercase;
}

.summary-text {
  font-size: 0.98rem;
  color: var(--cyan);
  line-height: 1.45;
}

.giphy-reaction--summary {
  width: min(100%, 420px);
  margin-top: 0.25rem;
}

@media (max-width: 560px) {
  .summary-list li {
    grid-template-columns: 1fr;
    gap: 0.2rem;
  }
}

/* Hourly = chart tabs */
.chart-tabs {
  display: grid;
  gap: 0.9rem;
}

.chart-tablist {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.chart-tab {
  appearance: none;
  border: 3px solid #fff;
  background: #050915;
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 0.5rem 0.75rem;
  cursor: pointer;
  box-shadow: 2px 2px 0 #000;
}

.chart-tab:hover {
  border-color: var(--yellow);
  color: var(--yellow);
}

.chart-tab.is-active,
.chart-tab[aria-selected="true"] {
  color: #000;
  background: var(--yellow);
  border-color: #fff;
  text-shadow: none;
}

.chart-tab:focus-visible {
  outline: none;
  box-shadow: var(--focus);
}

.chart-panel {
  border: 3px solid #fff;
  background: #02040d;
  padding: 0.8rem;
}

.js .chart-panel {
  display: none;
}

.js .chart-panel.is-active {
  display: block;
}

.chart-shell {
  overflow-x: auto;
}

.line-chart {
  display: block;
  width: 100%;
  min-width: 760px;
  height: auto;
  border: 2px solid #fff;
  background: linear-gradient(180deg, rgba(18, 40, 80, 0.45), rgba(0, 0, 0, 0.75));
}

.line-grid {
  stroke: rgba(255, 255, 255, 0.26);
  stroke-width: 1;
}

.line-axis-label,
.line-time-label {
  font-family: var(--font-mono);
  font-size: 13px;
  fill: var(--cyan);
}

.line-stroke {
  fill: none;
  stroke: var(--yellow);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.line-point {
  fill: var(--magenta);
  stroke: #fff;
  stroke-width: 2;
}

.hbar-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.hbar-row {
  display: grid;
  grid-template-columns: 5.4rem 1fr 3.8rem;
  align-items: center;
  gap: 0.55rem;
}

.hbar-time {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--yellow);
}

.hbar-track {
  height: 14px;
  border: 2px solid #fff;
  background: #1a1a1a;
  overflow: hidden;
}

.hbar-fill {
  display: block;
  height: 100%;
  background: repeating-linear-gradient(
    90deg,
    var(--cyan),
    var(--cyan) 8px,
    var(--magenta) 8px,
    var(--magenta) 16px
  );
}

.hbar-value {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  text-align: right;
  color: var(--cyan);
}

.vbar-chart {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(1.2rem, 1fr);
  align-items: end;
  gap: 0.35rem;
  min-height: 240px;
  padding: 1rem 0.6rem 0.3rem;
  border: 2px solid #fff;
  background: linear-gradient(180deg, rgba(28, 62, 92, 0.35), rgba(0, 0, 0, 0.82));
  overflow-x: auto;
}

.vbar-col {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  min-width: 1.1rem;
  gap: 0.35rem;
}

.vbar-stick {
  display: block;
  width: 100%;
  max-width: 18px;
  min-height: 6px;
  border: 1px solid #fff;
  background: linear-gradient(180deg, var(--yellow), var(--magenta));
}

.vbar-time {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  line-height: 1;
  color: var(--cyan);
  white-space: nowrap;
}

.vbar-time--ghost {
  color: rgba(255, 255, 255, 0.25);
}

@media (max-width: 640px) {
  .chart-tab {
    flex: 1 1 100%;
  }

  .hbar-row {
    grid-template-columns: 4.75rem 1fr 3.3rem;
  }

  .line-chart {
    min-width: 680px;
  }
}

/* ─── Mockup refresh: compact neon surf terminal ─── */
body {
  background:
    radial-gradient(circle at 50% 0%, rgba(0, 232, 200, 0.14), transparent 34rem),
    #020812;
}

.container {
  max-width: 1280px;
}

.app-shell {
  position: relative;
  z-index: 1;
  margin: 0.7rem clamp(0.35rem, 1vw, 0.8rem) 1rem;
  padding: clamp(0.75rem, 1.4vw, 1.15rem);
  border: 1px solid color-mix(in srgb, var(--cyan) 55%, transparent);
  border-radius: 7px;
  background: rgba(2, 8, 18, 0.74);
  box-shadow:
    inset 0 0 28px rgba(0, 232, 200, 0.06),
    0 0 0 1px rgba(255, 0, 153, 0.08);
}

.site-header {
  margin: 0;
  padding: 0 0 1rem;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.header-inner {
  align-items: start;
  flex-wrap: nowrap;
}

.brand-box {
  padding: 0;
  border: 0;
  box-shadow: none;
  background: transparent;
}

.brand-kicker {
  margin-bottom: 0.35rem;
  font-size: 0.72rem;
  color: var(--cyan);
  text-transform: uppercase;
}

.brand-title {
  font-size: clamp(1.45rem, 2.1vw, 1.75rem);
  letter-spacing: 0.035em;
  white-space: nowrap;
  text-shadow:
    2px 2px 0 var(--blue),
    4px 4px 0 rgba(255, 255, 255, 0.18);
}

.rainbow-bar {
  display: none;
}

.brand-sub {
  margin-top: 0.6rem;
  color: var(--cyan);
  font-family: var(--font-mono);
}

.theme-picker {
  margin: 0;
}

.theme-picker-summary {
  display: none;
}

.theme-picker-fieldset {
  margin: 0;
  padding: 0;
  border: 0;
}

.theme-picker-legend {
  font-size: 0.68rem;
  color: var(--cyan);
  text-transform: uppercase;
}

.theme-options {
  gap: 0.25rem;
  justify-content: flex-end;
  max-width: 100%;
}

.theme-chip span {
  border-width: 1px;
  padding: 0.23rem 0.28rem;
  font-size: 0.49rem;
  white-space: nowrap;
}

.motion-toggle {
  display: none;
  align-items: center;
  gap: 0.45rem;
  margin-top: 0.65rem;
  padding: 0.5rem 0.6rem;
  border: 1px solid var(--cyan);
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  cursor: pointer;
}

.motion-toggle input {
  accent-color: var(--magenta);
}

.brand-tag {
  color: var(--magenta);
  border-color: var(--magenta);
  padding: 0.5rem 1.4rem;
  min-width: min(100%, 300px);
  box-shadow: none;
  text-shadow: none;
}

.main > .container {
  display: flex;
  flex-direction: column;
}

.main {
  padding-top: 0;
}

.hero-panel {
  order: 1;
}

.hourly-panel {
  order: 2;
}

.week-panel {
  order: 3;
}

.spot-picker {
  order: 4;
}

.weekly-summary {
  order: 5;
}

.panel {
  border: 2px solid var(--cyan);
  outline: 0;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(0, 232, 200, 0.08), transparent 28rem),
    rgba(2, 8, 18, 0.88);
  box-shadow:
    inset 0 0 24px rgba(0, 232, 200, 0.05),
    0 0 0 1px rgba(0, 232, 200, 0.12);
}

.panel::before {
  display: none;
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 0;
  padding-bottom: 0;
}

.section-title {
  color: var(--magenta);
  text-shadow: none;
  font-size: clamp(1rem, 2.6vw, 1.35rem);
}

.section-desc {
  color: color-mix(in srgb, var(--cyan) 85%, white);
  font-family: var(--font-mono);
  font-size: 0.82rem;
}

.hero-panel {
  padding: clamp(1rem, 2vw, 1.4rem);
  border-width: 3px;
  box-shadow:
    0 0 0 3px rgba(0, 232, 200, 0.22),
    inset 0 0 42px rgba(0, 232, 200, 0.06);
}

.hero-top {
  display: block;
  margin-bottom: 1rem;
}

.hero-top .meta-pill {
  display: none;
}

.eyebrow {
  display: none;
}

.hero-title {
  color: var(--cyan);
  text-shadow: none;
  font-size: 1rem;
}

.hero-sub {
  display: none;
}

.vibe-block {
  grid-template-columns: minmax(250px, 1.25fr) minmax(230px, 0.95fr) minmax(210px, 0.78fr);
  align-items: center;
  gap: clamp(1rem, 2.2vw, 2rem);
  margin: 0;
  padding: 0;
  border: 0;
  box-shadow: none;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.vibe-emoji {
  display: none;
}

.vibe-label {
  color: #fff;
  font-size: clamp(2.6rem, 6vw, 4rem);
  text-shadow: 2px 2px 0 rgba(255, 255, 255, 0.18);
}

.vibe-pep {
  color: #fff;
  font-size: 1rem;
  font-weight: 500;
}

.vibe-blurb {
  display: none;
}

.giphy-reaction {
  width: min(100%, 420px);
  border: 2px solid var(--cyan);
  box-shadow: none;
}

.giphy-reaction figcaption {
  color: var(--cyan);
  background: #020812;
}

.vector-field {
  grid-column: auto;
  margin: 0;
  padding: 0;
}

.vector-field::before {
  width: min(380px, 100%);
  opacity: 0.55;
}

.vector-svg {
  width: min(100%, 310px);
}

.vf-legend {
  justify-content: flex-start;
  font-size: 0.88rem;
  gap: 0.4rem;
}

.vf-key {
  flex-basis: 100%;
}

.current-readout {
  align-self: stretch;
  display: grid;
  align-content: start;
  gap: 0.8rem;
  padding: 1rem;
  border: 1px solid var(--cyan);
  border-radius: 6px;
  background: rgba(3, 13, 28, 0.78);
}

.current-updated {
  padding-bottom: 0.45rem;
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-align: center;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(0, 232, 200, 0.18);
}

.current-readout .stoke-ring {
  margin-inline: auto;
}

.current-list {
  display: grid;
  gap: 0;
  margin: 0;
}

.current-list div {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: baseline;
  gap: 0.65rem;
  padding: 0.45rem 0;
  border-top: 1px solid rgba(0, 232, 200, 0.14);
}

.current-list dt {
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 0.78rem;
}

.current-list dd {
  margin: 0;
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 1.2rem;
  font-weight: 700;
}

.current-list dd span {
  font-size: 0.72rem;
}

.stat-bento {
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  margin-top: 1rem;
  border: 1px solid var(--cyan);
  border-radius: 7px;
  overflow: hidden;
  background: rgba(2, 8, 18, 0.88);
}

.stat-card,
.stat-card--hero,
.stat-card--wide {
  grid-column: auto;
  display: grid;
  justify-items: center;
  padding: 0.75rem;
  border: 0;
  border-right: 1px solid rgba(0, 232, 200, 0.28);
  box-shadow: none;
  background: transparent;
}

.stat-card:last-child {
  border-right: 0;
}

.stat-label {
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 0.72rem;
}

.stat-num,
.stat-card--hero .stat-num {
  color: var(--cyan);
  text-shadow: none;
}

.stat-unit,
.stat-sub {
  color: color-mix(in srgb, var(--cyan) 78%, white);
}

.hero-actions {
  margin-top: 1rem;
}

.btn {
  border-width: 1px;
  box-shadow: none;
  padding: 0.55rem 0.9rem;
  font-family: var(--font-mono);
}

.btn-ghost,
.btn-fun {
  background: rgba(0, 232, 200, 0.08);
  border-color: var(--cyan);
  color: var(--cyan);
}

.btn-fun {
  color: #fff;
}

.chart-tablist {
  justify-content: flex-end;
}

.chart-tab {
  border-width: 1px;
  box-shadow: none;
  color: var(--cyan);
}

.chart-tab.is-active,
.chart-tab[aria-selected="true"] {
  color: #fff;
  background: rgba(0, 232, 200, 0.12);
  border-color: var(--green);
}

.chart-panel {
  border-color: var(--cyan);
  border-width: 1px;
  border-radius: 4px;
  background:
    linear-gradient(rgba(0, 232, 200, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 232, 200, 0.08) 1px, transparent 1px),
    rgba(2, 8, 18, 0.86);
  background-size: 28px 28px;
}

.line-chart {
  border-color: rgba(0, 232, 200, 0.42);
  background: linear-gradient(180deg, rgba(0, 232, 200, 0.16), rgba(0, 0, 0, 0.62));
}

.line-grid {
  stroke: rgba(0, 232, 200, 0.15);
}

.line-stroke {
  stroke: var(--cyan);
}

.line-point {
  fill: #031424;
  stroke: var(--cyan);
}

.week-scroller {
  border: 0;
  background: transparent;
}

.week-track {
  gap: 1rem;
  padding: 0.25rem;
}

.day-card {
  flex-basis: 150px;
}

.day-card article,
.spot-card {
  border: 1px solid color-mix(in srgb, var(--cyan) 70%, transparent);
  border-radius: 6px;
  box-shadow: inset 0 0 18px rgba(0, 232, 200, 0.05);
  background: rgba(4, 18, 34, 0.86);
}

.day-card article {
  padding: 1rem 0.75rem;
}

.day-card:nth-child(2) article,
.day-card:has(.day-vibe) article:hover {
  border-color: var(--green);
  box-shadow:
    0 0 0 1px var(--green),
    inset 0 0 22px rgba(0, 255, 102, 0.08);
}

.day-name,
.day-vibe,
.day-waves,
.day-meta,
.day-dirs {
  color: var(--cyan);
}

.spot-grid {
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}

.spot-card {
  box-shadow: none;
}

.spot-card.is-active {
  border-color: var(--magenta);
  background: rgba(4, 18, 34, 0.95);
  box-shadow: 0 0 0 2px rgba(255, 0, 153, 0.35);
}

.weekly-summary .summary-brief {
  grid-template-columns: minmax(220px, 0.75fr) 1fr;
  align-items: center;
  border-color: var(--magenta);
  border-radius: 7px;
  box-shadow: none;
}

.weekly-summary .summary-lead {
  min-height: 180px;
  display: grid;
  align-content: center;
  padding: 1rem;
  background: radial-gradient(circle at 20% 20%, rgba(255, 0, 153, 0.15), transparent 12rem), #020812;
}

.weekly-summary .summary-list {
  grid-column: 2;
}

.weekly-summary .giphy-reaction--summary {
  grid-column: 1;
  grid-row: 1 / span 2;
  width: 100%;
  margin: 0;
  border-color: var(--magenta);
}

.site-footer {
  border-top: 0;
  background: transparent;
  padding-bottom: 1.5rem;
}

@media (max-width: 980px) {
  .header-inner {
    flex-wrap: wrap;
  }

  .header-tools {
    flex: 1 1 100%;
  }

  .vibe-block {
    grid-template-columns: 1fr;
  }

  .vector-field {
    justify-self: center;
  }

  .stat-bento {
    grid-template-columns: repeat(2, 1fr);
  }

  .stat-card {
    border-bottom: 1px solid rgba(0, 232, 200, 0.28);
  }

  .weekly-summary .summary-brief {
    grid-template-columns: 1fr;
  }

  .weekly-summary .summary-list,
  .weekly-summary .giphy-reaction--summary {
    grid-column: auto;
    grid-row: auto;
  }
}

@media (max-width: 860px) {
  .app-shell {
    margin: 0;
    padding: 0.65rem;
    border-left: 0;
    border-right: 0;
    border-radius: 0;
  }

  .site-header {
    padding-bottom: 0.75rem;
  }

  .header-inner,
  .header-tools {
    align-items: stretch;
  }

  .brand-title {
    white-space: normal;
    font-size: clamp(1.55rem, 8vw, 2.2rem);
  }

  .brand-sub {
    font-size: 0.9rem;
  }

  .theme-options {
    justify-content: flex-start;
  }

  .theme-picker {
    border: 1px solid var(--cyan);
    background: rgba(0, 0, 0, 0.28);
  }

  .theme-picker-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.65rem 0.75rem;
    color: var(--cyan);
    font-family: var(--font-mono);
    font-size: 0.85rem;
    text-transform: uppercase;
    cursor: pointer;
  }

  .theme-picker-summary::after {
    content: "▾";
    color: var(--magenta);
  }

  .theme-picker[open] .theme-picker-summary::after {
    content: "▴";
  }

  .theme-picker-fieldset {
    padding: 0 0.75rem 0.75rem;
  }

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

  .motion-toggle {
    display: flex;
    margin: 0 0.75rem 0.75rem;
  }

  .start-surf-button {
    width: 100%;
  }

  .giphy-reaction {
    display: none !important;
  }

  .vibe-block {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .vibe-copy {
    text-align: left;
  }

  .vibe-label {
    font-size: clamp(2rem, 13vw, 3.2rem);
  }

  .vector-field {
    justify-self: stretch;
  }

  .vector-svg {
    width: min(100%, 300px);
    margin-inline: auto;
  }

  .vf-legend {
    justify-content: center;
    text-align: center;
  }

  .current-readout {
    grid-template-columns: minmax(96px, auto) 1fr;
    align-items: center;
  }

  .current-updated {
    grid-column: 1 / -1;
  }

  .current-readout .stoke-ring {
    margin: 0;
  }

  .stat-bento {
    grid-template-columns: repeat(2, 1fr);
  }

  .stat-card,
  .stat-card--hero,
  .stat-card--wide {
    border-right: 0;
    border-bottom: 1px solid rgba(0, 232, 200, 0.28);
  }

  .stat-card:nth-last-child(-n + 1) {
    border-bottom: 0;
  }

  .section-head {
    display: block;
  }

  .chart-tablist {
    justify-content: stretch;
  }

  .chart-tab {
    flex: 1 1 auto;
  }

  .weekly-summary .summary-brief {
    grid-template-columns: 1fr;
  }

  .weekly-summary .summary-list,
  .weekly-summary .giphy-reaction--summary {
    grid-column: auto;
    grid-row: auto;
  }
}

@media (max-width: 560px) {
  body {
    font-size: 1rem;
  }

  .app-shell {
    padding: 0.5rem;
  }

  .container {
    padding-inline: 0;
  }

  .panel,
  .hero-panel {
    padding: 0.8rem;
    border-width: 1px;
    border-radius: 6px;
  }

  .brand-kicker,
  .theme-picker-legend {
    font-size: 0.64rem;
  }

  .theme-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    padding-top: 0.1rem;
  }

  .theme-chip span {
    width: 100%;
    text-align: center;
    font-size: 0.58rem;
  }

  .hero-title {
    font-size: 0.9rem;
  }

  .vibe-pep {
    font-size: 0.95rem;
  }

  .current-readout {
    grid-template-columns: 1fr;
  }

  .vector-svg {
    width: min(100%, 260px);
  }

  .current-readout .stoke-ring {
    margin-inline: auto;
  }

  .current-list dd {
    font-size: 1rem;
  }

  .stat-bento {
    grid-template-columns: 1fr;
  }

  .stat-card,
  .stat-card--hero,
  .stat-card--wide {
    justify-items: start;
  }

  .week-track {
    gap: 0.65rem;
  }

  .day-card {
    flex-basis: 132px;
  }

  .spot-grid {
    grid-template-columns: 1fr;
  }

  .line-chart {
    min-width: 620px;
  }

  .chart-tab {
    flex-basis: 100%;
  }

  .summary-list li {
    grid-template-columns: 1fr;
  }

  .site-footer {
    padding-inline: 0.5rem;
  }
}

.vibe-chip {
  display: inline-flex;
  font-size: 1.25rem;
  padding: 0.15rem 0.35rem;
  border: 2px solid var(--yellow);
  background: #000;
}

/* Tone = palette shifts */
body[data-tone="fun"] .vibe-block,
body[data-tone="good"] .vibe-block {
  border-color: var(--green);
  box-shadow: inset 0 0 40px rgba(0, 255, 102, 0.12);
}

body[data-tone="epic"] .vibe-block,
body[data-tone="heavy"] .vibe-block {
  border-color: var(--red);
  animation: epic-flash 3s steps(2) infinite;
}

@keyframes epic-flash {
  0%,
  80% {
    box-shadow: inset 0 0 30px rgba(255, 0, 68, 0.15);
  }
  90% {
    box-shadow: inset 0 0 50px rgba(255, 255, 0, 0.25);
  }
}

body[data-tone="flat"] .starfield {
  opacity: 0.4;
}

/* Footer */
.site-footer {
  padding: 2rem 0 4.5rem;
  text-align: center;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--cyan);
  position: relative;
  z-index: 1;
  border-top: 4px solid var(--magenta);
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.9), transparent);
}

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

.site-footer a:focus-visible {
  outline: none;
  box-shadow: var(--focus);
}

.footer-fun {
  margin-top: 0.65rem;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--magenta);
  letter-spacing: 0.03em;
}

/* Confetti = 8-bit squares */
.confetti-root {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  overflow: hidden;
}

.confetti-piece {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 0;
  animation: confetti-fall 1s steps(8) forwards;
}

@keyframes confetti-fall {
  from {
    transform: translateY(0);
    opacity: 1;
  }
  to {
    transform: translateY(100vh);
    opacity: 0;
  }
}

body.is-celebrating .vibe-emoji {
  animation: shake 0.4s steps(4);
}

@keyframes shake {
  0%,
  100% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-8px) scale(1.1);
  }
  75% {
    transform: translateX(8px) scale(1.1);
  }
}

body.is-celebrating .brand-tag {
  color: var(--yellow);
  border-color: var(--yellow);
}
