/* ─────────────────────────────────────────────────────────────
   Software Wala — animated coding radio, a hint of VS Code
   ───────────────────────────────────────────────────────────── */

:root {
  --bg: #0b0b12;
  --card: #14141c;
  --card-2: #191922;
  --border: rgba(255, 255, 255, 0.08);
  --text: #e6e6ea;
  --text-dim: #8a8a94;
  --blue: #007acc;
  --blue-bright: #3794ff;
  --green: #3fb950;
  --st: #ce9178;
  --mono: 'Fira Code', 'JetBrains Mono', ui-monospace, 'SF Mono', Consolas, monospace;
  --ui: 'Space Grotesk', -apple-system, system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html, body {
  height: 100%;
}

body {
  margin: 0;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--ui);
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

.logo,
.tagline,
.track-title,
.track-artist,
.ghost,
.run,
.term,
.marquee-label,
.chip,
.statuspill,
.playlist-pill,
.live-pill,
.card__filename,
.card__live {
  font-feature-settings: 'calt' 1, 'liga' 1;
  font-variant-ligatures: contextual;
}

/* ── Wallpaper backdrop ──────────────────────────────────────── */

.wallpaper {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background: radial-gradient(ellipse at 50% -10%, #171727 0%, #0b0b12 55%);
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.5;
  animation: drift 24s ease-in-out infinite alternate;
  will-change: transform;
}

.blob--1 {
  width: 44vw;
  height: 44vw;
  top: -14%;
  left: -12%;
  background: radial-gradient(circle, #4f46e5, transparent 70%);
}

.blob--2 {
  width: 38vw;
  height: 38vw;
  bottom: -16%;
  right: -10%;
  background: radial-gradient(circle, #0ea5e9, transparent 70%);
  animation-delay: -9s;
}

.blob--3 {
  width: 30vw;
  height: 30vw;
  top: 38%;
  right: 22%;
  background: radial-gradient(circle, #d946ef, transparent 70%);
  opacity: 0.25;
  animation-delay: -16s;
}

@keyframes drift {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(5%, 7%) scale(1.1); }
}

.binary-rain {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.5;
  mix-blend-mode: screen;
}

.particles {
  position: absolute;
  inset: 0;
}

.particle {
  position: absolute;
  color: rgba(120, 170, 255, 0.35);
  font-family: var(--mono);
  font-size: 15px;
  animation: floatUp linear infinite;
  will-change: transform, opacity;
}

@keyframes floatUp {
  0% { transform: translateY(10vh) rotate(0deg); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { transform: translateY(-110vh) rotate(30deg); opacity: 0; }
}

.yt-host {
  position: fixed;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0.01;
  pointer-events: none;
}

/* ── Entrance animation ──────────────────────────────────────── */

.anim-in {
  opacity: 0;
  transform: translateY(18px);
  animation: fadeUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: var(--d, 0s);
}

@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}

/* ── Page shell ──────────────────────────────────────────────── */

.page {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 30px 16px 40px;
  gap: 26px;
  position: relative;
}

.playlist-pill,
.live-pill {
  position: absolute;
  top: 22px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-dim);
  text-decoration: none;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  padding: 6px 12px;
  border-radius: 20px;
  backdrop-filter: blur(8px);
  transition: color 0.2s, border-color 0.2s, transform 0.2s;
}

.playlist-pill {
  right: 20px;
}

.live-pill {
  left: 20px;
  color: #b9f3c4;
}

.playlist-pill:hover {
  color: #fff;
  border-color: var(--blue-bright);
  transform: translateY(-1px);
}

/* ── Hero ────────────────────────────────────────────────────── */

.hero {
  text-align: center;
  margin-top: 12px;
}

.logo {
  margin: 0;
  font-family: var(--mono);
  font-size: clamp(26px, 5.5vw, 42px);
  font-weight: 800;
  letter-spacing: -0.01em;
  background: linear-gradient(120deg, #eaeaea 30%, #9ecbff 55%, #eaeaea 80%);
  background-size: 220% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shine 6s linear infinite;
}

@keyframes shine {
  to { background-position: -220% center; }
}

.logo__bracket {
  color: #4a4a55;
  -webkit-text-fill-color: #4a4a55;
}

.logo__accent {
  color: var(--blue-bright);
  -webkit-text-fill-color: var(--blue-bright);
}

.logo__cursor {
  display: inline-block;
  width: 3px;
  height: 0.85em;
  background: var(--green);
  margin-left: 4px;
  vertical-align: -0.1em;
  animation: blink 1s steps(1) infinite;
}

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

.tagline {
  margin: 10px 0 0;
  color: var(--text-dim);
  font-size: 14px;
  font-family: var(--mono);
}

/* ── Card ────────────────────────────────────────────────────── */

.card {
  width: min(460px, 94vw);
  background: linear-gradient(180deg, var(--card-2), var(--card));
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow:
    0 24px 70px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(255, 255, 255, 0.04) inset;
  transition: transform 0.15s ease-out, box-shadow 0.3s;
  transform-style: preserve-3d;
  will-change: transform;
}

.card__tab {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 14px;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid var(--border);
}

.tl {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.tl--r { background: #ff5f57; }
.tl--y { background: #febc2e; }
.tl--g { background: #28c840; }

.card__filename {
  margin-left: 4px;
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--text-dim);
}

.card__live {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: #7ee787;
}

.livedot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #7ee787;
  box-shadow: 0 0 6px #7ee787;
  animation: pulse 1.6s ease-in-out infinite;
}

.livedot--sm {
  width: 5px;
  height: 5px;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.75); }
}

.card__body {
  padding: 22px 22px 4px;
}

/* Now playing + equalizer */

.nowplaying {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.eq {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 26px;
  flex-shrink: 0;
  padding: 2px;
}

.eq span {
  width: 4px;
  border-radius: 2px;
  background: linear-gradient(to top, var(--blue-bright), #7ee787);
  height: 5px;
  animation: eqBounce 1.1s ease-in-out infinite;
  animation-play-state: paused;
}

.eq span:nth-child(1) { animation-duration: 0.9s; }
.eq span:nth-child(2) { animation-duration: 1.3s; animation-delay: -0.4s; }
.eq span:nth-child(3) { animation-duration: 0.7s; animation-delay: -0.2s; }
.eq span:nth-child(4) { animation-duration: 1.1s; animation-delay: -0.6s; }
.eq span:nth-child(5) { animation-duration: 1s; animation-delay: -0.1s; }

.card.is-playing .eq span {
  animation-play-state: running;
}

@keyframes eqBounce {
  0%, 100% { height: 4px; }
  50% { height: 24px; }
}

.nowplaying__text {
  min-width: 0;
}

.track-title {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  font-family: var(--mono);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.track-artist {
  margin: 3px 0 0;
  font-size: 12.5px;
  color: var(--st);
  font-family: var(--mono);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.is-swapping .track-title,
.is-swapping .track-artist {
  opacity: 0.25;
  transition: opacity 0.12s;
}

/* Seek */

.seek {
  position: relative;
  height: 16px;
  cursor: pointer;
  touch-action: none;
}

.seek__track {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 4px;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.08);
  border-radius: 2px;
}

.seek__fill {
  position: absolute;
  top: 50%;
  left: 0;
  height: 4px;
  width: 100%;
  transform-origin: left;
  transform: translateY(-50%) scaleX(0);
  background: linear-gradient(90deg, var(--blue-bright), #7ee787);
  border-radius: 2px;
}

.seek__knob {
  position: absolute;
  top: 50%;
  left: 0;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #fff;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 0 4px rgba(55, 148, 255, 0.25), 0 2px 6px rgba(0, 0, 0, 0.4);
}

.time-row {
  display: flex;
  justify-content: space-between;
  font-size: 10.5px;
  color: var(--text-dim);
  font-family: var(--mono);
  margin-top: 6px;
}

/* Controls */

.controls {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  row-gap: 10px;
  margin: 22px 0 6px;
}

.ctrl {
  position: relative;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s, border-color 0.15s, background 0.15s;
}

.ctrl:hover {
  transform: translateY(-2px);
  border-color: var(--blue-bright);
  background: rgba(55, 148, 255, 0.1);
}

.ctrl:active {
  transform: translateY(0) scale(0.94);
}

.ctrl:disabled {
  opacity: 0.35;
  cursor: default;
  transform: none;
}

.ctrl--play {
  width: 52px;
  height: 52px;
  background: var(--blue-bright);
  border-color: var(--blue-bright);
  color: #fff;
}

.ctrl--play:hover {
  background: #4fa2ff;
}

.ring {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1.5px solid var(--blue-bright);
  opacity: 0;
}

.card.is-playing .ring {
  animation: ringPulse 1.8s ease-out infinite;
}

@keyframes ringPulse {
  0% { transform: scale(0.85); opacity: 0.7; }
  100% { transform: scale(1.35); opacity: 0; }
}

.ic-pause { display: none; }
.card.is-playing .ic-play { display: none; }
.card.is-playing .ic-pause { display: inline; }

.ctrl--pill {
  width: auto;
  border-radius: 20px;
  padding: 0 12px;
  gap: 5px;
  font-family: var(--mono);
  font-size: 11px;
  color: #9ecbff;
}

.ctrl--pill[aria-pressed="true"] {
  border-color: rgba(55, 148, 255, 0.5);
  background: rgba(55, 148, 255, 0.12);
}

/* Volume */

.vol {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ctrl--vol {
  width: 36px;
  height: 36px;
}

.ic-mute { display: none; }
.ctrl--vol.is-muted .ic-vol { display: none; }
.ctrl--vol.is-muted .ic-mute { display: inline; }

.vol__seek {
  position: relative;
  width: 64px;
  height: 14px;
  cursor: pointer;
  touch-action: none;
}

.vol__track {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 3px;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.08);
  border-radius: 2px;
}

.vol__fill {
  position: absolute;
  top: 50%;
  left: 0;
  height: 3px;
  width: 100%;
  transform-origin: left;
  transform: translateY(-50%) scaleX(1);
  background: linear-gradient(90deg, var(--blue-bright), #7ee787);
  border-radius: 2px;
}

.vol__knob {
  position: absolute;
  top: 50%;
  left: 100%;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #fff;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 0 3px rgba(55, 148, 255, 0.22), 0 2px 5px rgba(0, 0, 0, 0.4);
}

/* Ghost suggestion */

.ghost {
  text-align: center;
  margin: 16px 0 0;
  font-family: var(--mono);
  font-size: 11.5px;
  font-style: italic;
  color: #6b6f7d;
  min-height: 1.4em;
  transition: opacity 0.35s, transform 0.35s;
}

.ghost.is-hidden {
  opacity: 0;
  transform: translateY(3px);
}

/* Run row / terminal */

.run-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 16px 0 18px;
  padding: 10px 12px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border);
  border-radius: 10px;
}

.run {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(63, 185, 80, 0.15);
  color: #6fe38b;
  border: 1px solid rgba(63, 185, 80, 0.3);
  border-radius: 7px;
  font-family: var(--mono);
  font-size: 11.5px;
  padding: 6px 11px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: background 0.15s;
}

.run:hover {
  background: rgba(63, 185, 80, 0.26);
}

.run .rip {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  transform: scale(0);
  animation: ripple 0.6s ease-out forwards;
  pointer-events: none;
}

@keyframes ripple {
  to { transform: scale(3.2); opacity: 0; }
}

.term {
  min-width: 0;
  flex: 1;
  font-family: var(--mono);
  font-size: 12px;
  color: #c9c9d0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.term__prompt {
  color: var(--green);
  margin-right: 6px;
}

.term__caret {
  display: inline-block;
  width: 2px;
  height: 12px;
  background: #c9c9d0;
  vertical-align: -2px;
  margin-left: 2px;
  animation: blink 1s steps(1) infinite;
}

/* Status pill */

.statuspill {
  display: flex;
  align-items: center;
  gap: 14px;
  background: linear-gradient(90deg, #0a63a3, var(--blue));
  padding: 7px 16px;
  font-size: 11px;
  font-family: var(--mono);
  color: #fff;
}

.sp-item {
  display: flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sp-ai {
  margin-left: auto;
  background: rgba(255, 255, 255, 0.16);
  border: none;
  color: #fff;
  font: inherit;
  padding: 3px 9px;
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.15s;
}

.sp-ai:hover {
  background: rgba(255, 255, 255, 0.28);
}

.sp-ai-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
  transition: background 0.2s;
}

.sp-pl {
  position: relative;
  background: rgba(255, 255, 255, 0.16);
  border: none;
  color: #fff;
  font: inherit;
  padding: 3px 9px;
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.15s;
  max-width: 150px;
}

#playlistSwitchLabel {
  overflow: hidden;
  text-overflow: ellipsis;
}

.sp-pl:hover {
  background: rgba(255, 255, 255, 0.28);
}

.sp-pl__count {
  background: rgba(255, 255, 255, 0.9);
  color: #0a63a3;
  font-size: 9.5px;
  font-weight: 700;
  line-height: 1;
  padding: 2px 5px;
  border-radius: 8px;
  flex-shrink: 0;
}

.sp-pl__chev {
  flex-shrink: 0;
  opacity: 0.8;
}

.sp-pl:not(.is-seen) {
  animation: plHintPulse 1.8s ease-in-out infinite;
}

@keyframes plHintPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.55); }
  50% { box-shadow: 0 0 0 5px rgba(255, 255, 255, 0); }
}

/* ── Playlist picker modal ────────────────────────────────────── */

.plOverlay[hidden] {
  display: none;
}

.plOverlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(6, 6, 10, 0.6);
  backdrop-filter: blur(6px);
  animation: plFadeIn 0.18s ease-out;
}

@keyframes plFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.plModal {
  width: min(420px, 100%);
  max-height: min(78vh, 560px);
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, var(--card-2), var(--card));
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  animation: plPopIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes plPopIn {
  from { opacity: 0; transform: translateY(10px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.plModal__head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
}

.plModal__tab {
  display: inline-flex;
  gap: 5px;
}

.plModal__head h2 {
  flex: 1;
  margin: 0;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  color: var(--text-dim);
}

.plModal__close {
  width: 22px;
  height: 22px;
  line-height: 1;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: var(--text-dim);
  font-size: 16px;
  cursor: pointer;
}

.plModal__close:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.plModal__search {
  margin: 10px 12px;
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.25);
  color: var(--text);
  font-family: var(--mono);
  font-size: 12.5px;
  outline: none;
}

.plModal__search:focus {
  border-color: var(--blue-bright);
}

.plModal__list {
  overflow-y: auto;
  padding: 0 8px 10px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.plItem {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 9px 10px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--text);
  font-family: var(--mono);
  font-size: 13px;
  text-align: left;
  cursor: pointer;
  transition: background 0.12s;
}

.plItem:hover {
  background: rgba(255, 255, 255, 0.06);
}

.plItem.is-active {
  background: rgba(55, 148, 255, 0.14);
  color: #fff;
}

.plItem__check {
  width: 14px;
  flex-shrink: 0;
  color: var(--blue-bright);
  font-size: 12px;
}

.plList__empty {
  padding: 14px 10px;
  margin: 0;
  color: var(--text-dim);
  font-family: var(--mono);
  font-size: 12.5px;
  text-align: center;
}

/* ── Trending AI models marquee ──────────────────────────────── */

.marquee-wrap {
  width: min(640px, 96vw);
  text-align: center;
}

.marquee-label {
  margin: 0 0 12px;
  font-size: 11.5px;
  color: var(--text-dim);
  font-family: var(--mono);
}

.marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.marquee__track {
  display: flex;
  gap: 10px;
  width: max-content;
  animation: scrollLeft 26s linear infinite;
}

.marquee:hover .marquee__track {
  animation-play-state: paused;
}

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

.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 13px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: 20px;
  font-family: var(--mono);
  font-size: 12px;
  white-space: nowrap;
  color: #dcdce0;
  transition: transform 0.15s, border-color 0.15s;
}

.chip:hover {
  transform: translateY(-2px);
}

.chip__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.chip__pub {
  color: var(--text-dim);
}

/* ── Footer ──────────────────────────────────────────────────── */

.about {
  max-width: 560px;
  text-align: center;
  color: #79797f;
  font-size: 12px;
  line-height: 1.6;
}

/* ── SEO content section ─────────────────────────────────────── */

.seo {
  width: min(640px, 94vw);
  text-align: center;
  color: #9a9aa2;
}

.seo__toggle > summary {
  cursor: pointer;
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-dim);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  padding: 6px 14px;
  border-radius: 20px;
}

.seo__toggle > summary::-webkit-details-marker {
  display: none;
}

.seo__toggle > summary::before {
  content: '▸';
  transition: transform 0.15s;
}

.seo__toggle[open] > summary::before {
  transform: rotate(90deg);
}

.seo__toggle > summary:hover {
  color: #fff;
  border-color: var(--blue-bright);
}

.seo__toggle[open] > summary {
  margin-bottom: 20px;
}

.seo h2 {
  font-size: 16px;
  color: #e2e2e6;
  font-family: var(--mono);
  margin: 0 0 12px;
  font-weight: 700;
}

.seo > p {
  font-size: 13px;
  line-height: 1.75;
  margin: 0 0 20px;
}

.seo strong {
  color: #cfcfd4;
}

.faq {
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: left;
}

.faq details {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 14px;
}

.faq summary {
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  color: #d8d8dc;
  font-family: var(--mono);
}

.faq p {
  margin: 8px 0 0;
  font-size: 12.5px;
  color: #9a9aa2;
  line-height: 1.6;
}

.about strong {
  color: #ccc;
}

@media (max-width: 480px) {
  .playlist-pill,
  .live-pill { position: static; margin-bottom: -6px; }
  .statuspill { flex-wrap: wrap; }
}

/* ═════════════════════════════════════════════════════════════
   TEMP — Independence Day banner (15 Aug). Delete this whole
   block (down to the matching END marker) once the day's past —
   the inline script in index.html already self-removes it, so
   this is just cleanup, not required.
   ═════════════════════════════════════════════════════════════ */
.idBanner {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 8px 40px;
  font-family: var(--mono);
  font-size: 12.5px;
  color: #14140f;
  text-align: center;
  background: linear-gradient(90deg, #ff9933 0%, #ff9933 32%, #ffffff 32%, #ffffff 68%, #138808 68%, #138808 100%);
  border-bottom: 1px solid rgba(0, 0, 0, 0.15);
}

.idBanner__text {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  font-weight: 600;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.25);
}

.idBanner__flag {
  display: inline-block;
  animation: idFlagWave 1.6s ease-in-out infinite;
}

@keyframes idFlagWave {
  0%, 100% { transform: rotate(0deg); }
  50% { transform: rotate(12deg); }
}

.idBanner__code {
  padding: 1px 7px;
  border-radius: 5px;
  background: rgba(0, 0, 0, 0.14);
  color: #14140f;
}

.idBanner__sep {
  opacity: 0.55;
}

.idBanner__close {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 22px;
  height: 22px;
  line-height: 1;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.12);
  color: #14140f;
  font-size: 15px;
  cursor: pointer;
}

.idBanner__close:hover {
  background: rgba(0, 0, 0, 0.22);
}

@media (max-width: 480px) {
  .idBanner {
    padding: 8px 34px;
    font-size: 11.5px;
  }
  .idBanner__code {
    display: none;
  }
}
/* ═════════════════════════════════════════════════════════════
   END TEMP — Independence Day banner
   ═════════════════════════════════════════════════════════════ */
