/* ═══════════════════════════════════════════════════════
   FAUX OS V2.1 - App Styles
   Photos, Music, Files, Snake, Terminal, About,
   Contact, Settings, Imprint
   ═══════════════════════════════════════════════════════ */

/* ─── PHOTOS ─────────────────────────────────────────── */

.photos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  gap: 3px;
  padding: var(--sp-2);
}

.photos-thumb {
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--bg-surface);
  border: none;
  padding: 0;
  cursor: pointer;
  position: relative;

  & img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.2s var(--ease-out), filter 0.2s;
    filter: grayscale(0.2);
  }

  &:hover img {
    transform: scale(1.08);
    filter: grayscale(0);
  }

  &::after {
    content: '';
    position: absolute;
    inset: 0;
    border: 1px solid rgba(255,255,255,0.05);
    pointer-events: none;
  }
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: var(--z-modal);
  display: none;
  align-items: center;
  justify-content: center;

  &.is-active {
    display: flex;
  }
}

.lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.lightbox__img {
  position: relative;
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  z-index: 1;
  user-select: none;
}

.lightbox__close,
.lightbox__prev,
.lightbox__next {
  position: absolute;
  z-index: 2;
  background: none;
  border: none;
  color: rgba(255,255,255,0.7);
  font-size: 28px;
  cursor: pointer;
  padding: var(--sp-3);
  transition: color 0.15s;

  &:hover { color: #fff; }
}

.lightbox__close { top: var(--sp-3); right: var(--sp-3); font-size: 32px; }
.lightbox__prev  { left: var(--sp-3); top: 50%; transform: translateY(-50%); font-size: 40px; }
.lightbox__next  { right: var(--sp-3); top: 50%; transform: translateY(-50%); font-size: 40px; }

.lightbox__counter {
  position: absolute;
  bottom: var(--sp-4);
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: rgba(255,255,255,0.5);
  font-family: var(--font-mono);
  font-size: 12px;
}


/* ─── MUSIC ──────────────────────────────────────────── */

.music-player {
  padding: var(--sp-4);
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

.music-now-playing {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
}

.music-cover-img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border: 1px solid var(--border, rgba(255,255,255,0.07));
  flex-shrink: 0;
  filter: grayscale(0.3);
}

.music-info {
  min-width: 0;
  flex: 1;
}

.music-track-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.music-artist {
  font-size: 12px;
  margin-top: 2px;
}

.music-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
}

.music-btn {
  background: none;
  border: none;
  color: var(--ink, #f2f2f2);
  font-size: 16px;
  cursor: pointer;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  transition: color 0.15s, background 0.15s, transform 0.1s;
  padding: 0;

  &:hover {
    color: var(--accent, #e85d30);
    background: rgba(255,255,255,0.04);
  }
  &:active { transform: scale(0.9); }
}

.music-btn-play {
  font-size: 20px;
  width: 48px;
  height: 48px;
  border: 2px solid var(--border, rgba(255,255,255,0.07));

  &:hover {
    border-color: var(--accent, #e85d30);
    background: rgba(232, 93, 48, 0.06);
  }
}

.music-seek {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-family: var(--font-mono);
  font-size: 11px;
}

.music-progress {
  flex: 1;
  height: 4px;
  background: var(--bg-raised, #191919);
  cursor: pointer;
  position: relative;
  border-radius: 2px;
}

.music-progress__fill {
  height: 100%;
  background: var(--accent, #e85d30);
  width: 0%;
  border-radius: 2px;
  transition: width 0.1s linear;
}

.music-volume-wrap {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: var(--sp-2);
}

.music-volume {
  width: 80px;
  accent-color: var(--accent, #e85d30);
}

.music-playlist {
  display: flex;
  flex-direction: column;
  max-height: 300px;
  overflow-y: auto;
  border-top: 1px solid var(--border, rgba(255,255,255,0.07));
}

.music-playlist__item {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-2) var(--sp-3);
  background: none;
  border: none;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  color: var(--ink, #f2f2f2);
  cursor: pointer;
  text-align: left;
  transition: background 0.1s;

  &:hover { background: rgba(255,255,255,0.04); }

  &.is-active {
    background: rgba(232, 93, 48, 0.08);
    .music-playlist__title { color: var(--accent, #e85d30); }
  }
}

.music-playlist__num {
  font-family: var(--font-mono);
  font-size: 11px;
  width: 24px;
  flex-shrink: 0;
}

.music-playlist__cover {
  width: 32px;
  height: 32px;
  object-fit: cover;
  flex-shrink: 0;
  filter: grayscale(0.4);
}

.music-playlist__title {
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Compact (mobile) — fill sheet height, playlist gets remaining space */
.music-player--compact {
  padding: var(--sp-3);

  .music-cover-img {
    width: 56px;
    height: 56px;
  }
}

/* When inside a sheet body, make player + playlist fill available height */
/* Music sheet: flex-column so playlist fills remaining space */
#sheet-music .sheet__body {
  display: flex;
  flex-direction: column;
}

#sheet-music .sheet__body > .music-player--compact {
  flex: 0 0 auto;
}

#sheet-music .sheet__body > .music-playlist {
  flex: 1 1 0;
  max-height: none;
  min-height: 0;
  overflow-y: auto;
}

/* ─── MENUBAR MUSIC CONTROLS ────────────────────────── */

.menubar__music {
  display: flex;
  align-items: center;
  gap: var(--sp-1);
}

.menubar__music-btn {
  background: none;
  border: none;
  color: var(--ink, #f2f2f2);
  font-size: 14px;
  cursor: pointer;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  padding: 0;
  transition: color 0.15s, background 0.15s;

  &:hover {
    color: var(--accent, #e85d30);
    background: rgba(255,255,255,0.06);
  }
  &:active {
    transform: scale(0.9);
  }
}

.menubar__music-title {
  font-size: 11px;
  font-family: var(--font-mono);
  max-width: 180px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-left: var(--sp-1);
}


/* ─── FILES ──────────────────────────────────────────── */

.files-explorer {
  padding: var(--sp-2);
}

.files-breadcrumb {
  padding: var(--sp-2) var(--sp-3);
  font-family: var(--font-mono);
  font-size: 12px;
  border-bottom: 1px solid var(--border);
  margin-bottom: var(--sp-2);
}

.files-list {
  display: flex;
  flex-direction: column;
}

.files-item {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-2) var(--sp-3);
  background: none;
  border: none;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  color: var(--ink);
  cursor: pointer;
  text-align: left;
  transition: background 0.1s;

  &:hover { background: rgba(255,255,255,0.04); }
}

.files-item__icon {
  font-size: 16px;
  width: 24px;
  text-align: center;
  flex-shrink: 0;
}

.files-item__name {
  flex: 1;
  font-size: 13px;
}

.files-item__meta {
  font-family: var(--font-mono);
  font-size: 11px;
}

.files-preview {
  margin-top: var(--sp-3);
  border: 1px solid var(--border);
  background: rgba(0,0,0,0.3);
}

.files-preview__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--sp-2) var(--sp-3);
  border-bottom: 1px solid var(--border);
}

.files-preview__name {
  font-family: var(--font-mono);
  font-size: 12px;
}

.files-preview__close {
  background: none;
  border: none;
  color: var(--ink);
  cursor: pointer;
  font-size: 18px;
  padding: 0 var(--sp-1);
}

.files-preview__content {
  padding: var(--sp-3);
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.6;
  white-space: pre-wrap;
  word-break: break-word;
  max-height: 250px;
  overflow-y: auto;
  margin: 0;
}


/* ─── CLASSIFIED GATE ────────────────────────────────── */

.classified-gate {
  padding: var(--sp-4);
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  animation: classifiedFadeIn 0.3s ease;
}

.classified-gate__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.classified-gate__badge {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent, #e85d30);
  border: 1px solid var(--accent, #e85d30);
  padding: 2px 8px;
}

.classified-gate__step {
  font-family: var(--font-mono);
  font-size: 10px;
  color: rgba(255,255,255,0.4);
  letter-spacing: 0.1em;
}

.classified-gate__prompt {
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.7;
  white-space: pre-wrap;
  color: rgba(255,255,255,0.75);
  margin: 0;
}

.classified-gate__input-row {
  display: flex;
  gap: var(--sp-2);
}

.classified-gate__input {
  flex: 1;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 12px;
  padding: var(--sp-2) var(--sp-3);
  outline: none;
  transition: border-color 0.2s;

  &:focus {
    border-color: var(--accent, #e85d30);
  }
}

.classified-gate__submit {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.15);
  color: var(--ink);
  padding: var(--sp-2) var(--sp-4);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;

  &:hover {
    background: rgba(255,255,255,0.1);
    border-color: var(--accent, #e85d30);
  }
}

.classified-gate__feedback {
  font-family: var(--font-mono);
  font-size: 11px;
  min-height: 1.2em;
}

.classified-gate__feedback--error {
  color: var(--accent, #e85d30);
}

.classified-gate__back {
  background: none;
  border: none;
  color: rgba(255,255,255,0.35);
  font-family: var(--font-mono);
  font-size: 11px;
  cursor: pointer;
  padding: 0;
  text-align: left;
  align-self: flex-start;

  &:hover {
    color: var(--ink);
  }
}

.classified-gate--granted {
  text-align: center;
  align-items: center;

  & .classified-gate__badge {
    color: #4ade80;
    border-color: #4ade80;
    animation: classifiedPulse 0.6s ease 3;
  }

  & .classified-gate__prompt {
    color: rgba(255,255,255,0.5);
  }
}

.classified-gate--shake {
  animation: classifiedShake 0.4s ease;
}

@keyframes classifiedFadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes classifiedShake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-6px); }
  40% { transform: translateX(6px); }
  60% { transform: translateX(-4px); }
  80% { transform: translateX(4px); }
}

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


/* ─── TRUMP ASCII ART ───────────────────────────────── */

.trump-ascii {
  font-size: 10px;
  line-height: 1.35;
  color: var(--accent, #e85d30);
  text-align: center;
}


/* ─── SNAKE ──────────────────────────────────────────── */

.snake-game {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.snake-hud {
  display: flex;
  justify-content: space-between;
  padding: var(--sp-2) var(--sp-3);
  font-family: var(--font-mono);
  font-size: 12px;
  border-bottom: 1px solid var(--border, rgba(255,255,255,0.07));
  flex-shrink: 0;
}

.snake-canvas-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: var(--sp-2);
}

.snake-canvas {
  display: block;
}

/* Mobile: constrain canvas size */
.app-sheet .snake-canvas-wrap {
  max-height: 380px;
}

.app-sheet .snake-canvas {
  max-width: 320px;
  max-height: 360px;
}

.snake-highscore {
  color: var(--accent, #e85d30);
}


/* ─── TERMINAL ───────────────────────────────────────── */

.terminal {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.5;
}

.term-output {
  flex: 1;
  overflow-y: auto;
  padding: var(--sp-3);
  word-break: break-all;
}

.term-line {
  white-space: pre-wrap;
  min-height: 1.5em;
}

.term-input-line {
  display: flex;
  align-items: center;
  padding: var(--sp-2) var(--sp-3);
  border-top: 1px solid var(--border);
  flex-shrink: 0;
}

.term-prompt {
  flex-shrink: 0;
  margin-right: var(--sp-2);
}

.term-input {
  flex: 1;
  background: none;
  border: none;
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 13px;
  outline: none;
  caret-color: var(--accent);
}

/* Terminal color classes */
.term-user { color: var(--accent); }
.term-path { color: #8ab4f8; }
.term-brand { color: var(--accent); font-weight: 600; }
.term-cmd { color: #8ab4f8; }
.term-dir { color: #8ab4f8; }
.term-hidden { opacity: 0.5; }
.term-colors { display: inline-block; color: #fff; }
.term-colors.c1 { color: #e85d30; }
.term-colors.c2 { color: #8ab4f8; }
.term-colors.c3 { color: #6c6; }
.term-colors.c4 { color: #cc6; }
.term-colors.c5 { color: #c6c; }
.term-colors.c6 { color: #6cc; }
.term-colors.c7 { color: #888; }

/* New terminal v2 classes */
.term-accent { color: var(--accent, #e85d30); font-weight: 600; }
.term-section {
  color: var(--accent, #e85d30);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 11px;
}
.term-faint { opacity: 0.5; }
.term-string { color: #6c6; }
.term-success { color: #48ff48; }
.term-error { color: #ff4444; }
.term-hack {
  color: #48ff48;
  text-shadow: 0 0 4px rgba(72, 255, 72, 0.3);
}
.term-matrix {
  color: #0a3d0a;
}
.term-matrix-bright {
  color: #48ff48;
  text-shadow: 0 0 6px rgba(72, 255, 72, 0.5);
}


/* ─── ABOUT ──────────────────────────────────────────── */

/* ── About: hero ── */
.about-app {
  padding: var(--sp-5);
  position: relative;
  max-width: 640px;
}

.about-hero {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  margin-bottom: var(--sp-5);
}

.about-photo-wrap {
  position: relative;
  width: 80px;
  height: 80px;
  flex-shrink: 0;
}

.about-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.6) contrast(1.1);
  border: 2px solid var(--border);
}

.about-photo-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 28px;
  color: var(--accent);
  background: var(--bg-surface);
  border: 2px solid var(--border);
}

.about-photo + .about-photo-fallback { display: none; }
.about-photo[style*="display: none"] + .about-photo-fallback,
.about-photo:not([src]) + .about-photo-fallback { display: grid; }

.about-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  margin: 0 0 4px;
}

.about-oneliner {
  font-size: 13px;
  color: var(--ink-muted, rgba(255,255,255,0.55));
  margin: 0;
  line-height: 1.5;
}

/* ── About: fact grid ── */
.about-facts {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  margin-bottom: var(--sp-5);
}

.about-fact {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: var(--sp-2) var(--sp-3);
  background: var(--bg);
}

.about-fact__key {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-muted, rgba(255,255,255,0.4));
  font-family: var(--font-mono);
}

.about-fact__val {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
}

/* ── About: sections ── */
.about-section {
  margin-bottom: var(--sp-5);
}

.about-section__title {
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: var(--sp-2);
}

.about-text {
  font-size: 13px;
  line-height: 1.75;
  color: var(--ink-muted, rgba(255,255,255,0.7));
  margin: 0;
}

.about-now-lines {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.about-now-line {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-muted, rgba(255,255,255,0.55));
  padding: var(--sp-1) 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);

  &:last-child { border-bottom: none; }
}

/* ── About: tools ── */
.about-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.about-tool {
  font-size: 11px;
  font-family: var(--font-mono);
  padding: 4px 10px;
  border: 1px solid var(--border);
  color: var(--ink-muted, rgba(255,255,255,0.65));
  background: transparent;
  transition: border-color 0.15s;

  &:hover { border-color: var(--accent); }
}

.about-tool--code { border-left: 2px solid var(--accent); }
.about-tool--design { border-left: 2px solid rgba(255,255,255,0.25); }

/* ── About: links ── */
.about-links {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--border);
}

.about-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--sp-2) var(--sp-3);
  text-decoration: none;
  color: var(--ink);
  font-size: 13px;
  border-bottom: 1px solid var(--border);
  transition: background 0.15s;

  &:last-child { border-bottom: none; }
  &:hover { background: rgba(255,255,255,0.03); }
}

.about-link__label {
  font-weight: 500;
}

.about-link__mono {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-muted, rgba(255,255,255,0.4));
}

/* ── About: colophon ── */
.about-colophon {
  margin-top: var(--sp-5);
  padding-top: var(--sp-4);
  border-top: 1px solid var(--border);
  font-size: 11px;
  font-family: var(--font-mono);
  color: var(--ink-muted, rgba(255,255,255,0.3));
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--sp-2);
}

.about-bb {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--accent, #e85d30);
  opacity: 0.7;
  transition: opacity 0.3s;

  &:hover { opacity: 1; }
}


/* ─── CONTACT ────────────────────────────────────────── */

.contact-app {
  padding: var(--sp-4);
  max-width: 480px;
}

.contact-header {
  margin-bottom: var(--sp-4);
}

.contact-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  margin: 0 0 var(--sp-1);
}

.contact-subtitle {
  font-size: 13px;
  margin: 0;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

.contact-field {
  display: flex;
  flex-direction: column;
  gap: var(--sp-1);
}

.contact-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.contact-textarea {
  resize: vertical;
  min-height: 100px;
}

.contact-submit {
  align-self: flex-start;
  margin-top: var(--sp-2);
}

.contact-direct {
  margin-top: var(--sp-5);
  padding-top: var(--sp-4);
  border-top: 1px solid var(--border);
}

.contact-section__title {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--sp-2);
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}

.contact-link {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  color: var(--ink);
  text-decoration: none;
  font-size: 13px;
  transition: color 0.15s;

  &:hover { color: var(--accent); }
}

.contact-link__icon { font-size: 16px; }


/* ─── SETTINGS ───────────────────────────────────────── */

.settings-app {
  padding: var(--sp-4);
}

.settings-section {
  margin-bottom: var(--sp-5);
}

.settings-section__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--sp-3);
  padding-left: var(--sp-2);
  border-left: 3px solid var(--accent);
}

.settings-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--sp-2) 0;
  gap: var(--sp-3);
}

.settings-label {
  font-size: 13px;
  flex-shrink: 0;
}

.settings-control {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
}

.settings-slider {
  width: 120px;
  accent-color: var(--accent, #e85d30);
  cursor: pointer;
}

.settings-val {
  font-family: var(--font-mono);
  font-size: 11px;
  color: rgba(255,255,255,0.5);
  width: 32px;
  text-align: right;
  flex-shrink: 0;
}

.settings-lang-select {
  width: 100%;
}

.settings-info {
  display: flex;
  flex-direction: column;
  gap: var(--sp-1);
}

.settings-info__row {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  padding: var(--sp-1) 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}

.settings-reset {
  width: 100%;
}

.settings-section--overdrive {
  border-left-color: #e85d30;
}

.settings-section--overdrive .settings-section__title {
  color: #e85d30;
}

/* ── Settings Conflict Confirmation ── */
.settings-confirm {
  margin: var(--sp-2) 0;
  padding: var(--sp-3);
  border: 1.5px solid var(--accent);
  border-radius: var(--r-sm);
  background: rgba(232, 93, 48, 0.06);
  font-size: 11px;
  line-height: 1.5;
}

.settings-confirm__msg {
  color: var(--ink-muted);
  margin-bottom: var(--sp-3);
}

.settings-confirm__actions {
  display: flex;
  gap: var(--sp-2);
}

.settings-confirm__yes {
  border-color: var(--accent);
  color: var(--accent);
}


/* ─── OVERDRIVE OVERLAY ─────────────────────────────── */

.overdrive-overlay {
  position: fixed;
  inset: 0;
  z-index: var(--z-overdrive);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.overdrive-overlay.is-active {
  opacity: 1;
}

.overdrive-panel {
  position: fixed;
  width: 160px;
  height: 280px;
  border: 2px solid rgba(232, 93, 48, 0.6);
  border-radius: 6px;
  overflow: hidden;
  background: #080808;
  box-shadow: 0 0 25px rgba(232, 93, 48, 0.2), inset 0 0 10px rgba(0,0,0,0.5);
  pointer-events: auto;
  z-index: calc(var(--z-overdrive) + 1);
  cursor: grab;
  user-select: none;
  touch-action: none;
}

.overdrive-panel__canvas {
  display: block;
  width: 100%;
  height: 100%;
  image-rendering: pixelated;
}

.overdrive-panel__iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 4px;
  pointer-events: none;
}

.overdrive-panel__label {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  padding: 3px 6px;
  background: rgba(8, 8, 8, 0.85);
  color: #e85d30;
  font-size: 8px;
  font-family: 'Space Mono', monospace;
  text-transform: uppercase;
  letter-spacing: 1px;
  z-index: 2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.overdrive-panel__shuffle {
  position: absolute;
  bottom: 4px;
  right: 4px;
  width: 22px;
  height: 22px;
  background: rgba(8, 8, 8, 0.85);
  color: #e85d30;
  border: 1px solid rgba(232, 93, 48, 0.4);
  border-radius: 50%;
  font-size: 11px;
  cursor: pointer;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
  pointer-events: auto;
}

.overdrive-panel__shuffle:hover {
  background: #e85d30;
  color: #080808;
}

/* Mobile: smaller panels (count is handled dynamically in JS) */
@media (max-width: 768px) {
  .overdrive-panel {
    width: 110px;
    height: 195px;
  }
}


/* ─── IMPRINT ────────────────────────────────────────── */

.imprint-app {
  padding: var(--sp-4);
  max-width: 600px;
}

.imprint-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  margin: 0 0 var(--sp-4);
}

.imprint-section {
  margin-bottom: var(--sp-4);

  & p {
    margin: 0;
    font-size: 13px;
    line-height: 1.7;
  }

  & a {
    color: var(--accent);
    text-decoration: none;
    &:hover { text-decoration: underline; }
  }
}

.imprint-section__title {
  font-weight: 600;
  font-size: 14px;
  margin-bottom: var(--sp-2);
  padding-left: var(--sp-2);
  border-left: 3px solid var(--accent);
}

.imprint-legal {
  font-size: 12px !important;
}

.imprint-highlight {
  margin-top: var(--sp-4);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
}

.imprint-sub {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  margin: var(--sp-4) 0 var(--sp-2);
  padding-bottom: var(--sp-1);
  border-bottom: 1px solid rgba(255,255,255,.1);
}

.imprint-sub-sub {
  font-weight: 600;
  font-size: 13px;
  margin: var(--sp-3) 0 var(--sp-1);
  color: rgba(255,255,255,.85);
}

.imprint-legal--caps {
  font-weight: 600;
  text-transform: none;
  letter-spacing: .01em;
}

.imprint-list {
  margin: var(--sp-2) 0;
  padding-left: var(--sp-4);
  font-size: 12px !important;
  line-height: 1.7;

  & li {
    margin-bottom: var(--sp-2);
  }
}

.imprint-privacy p + p {
  margin-top: var(--sp-2);
}


/* ─── DAMPF (Steam Parody) ─────────────────────────── */

.dampf-app {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;

  &.dampf-app--mobile {
    font-size: 13px;
  }
}

.dampf-tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  flex-shrink: 0;
  align-items: center;
}

.dampf-profile {
  flex-shrink: 0;
  margin-left: auto;
  padding: 0 10px;
  text-decoration: none;
}

.dampf-profile__avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #e85d30;
  color: #080808;
  font-size: 10px;
  font-weight: bold;
  font-family: var(--font-mono, 'Space Mono', monospace);
  letter-spacing: 0.5px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.dampf-profile:hover .dampf-profile__avatar {
  transform: scale(1.12);
  box-shadow: 0 0 12px rgba(232, 93, 48, 0.4);
}

.dampf-tab {
  flex: 1;
  padding: var(--sp-2) var(--sp-3);
  background: none;
  border: none;
  color: rgba(255,255,255,0.4);
  font-family: var(--font-mono);
  font-size: 12px;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;

  &:hover { color: rgba(255,255,255,0.7); }

  &.is-active {
    color: #fff;
    border-bottom-color: var(--accent, #e85d30);
  }
}

.dampf-content {
  flex: 1;
  overflow-y: auto;
  padding: var(--sp-3);
}

.dampf-footer {
  flex-shrink: 0;
  padding: var(--sp-2) var(--sp-3);
  font-size: 10px;
  text-align: center;
  border-top: 1px solid rgba(255,255,255,0.06);
}

/* Store */
.dampf-store__header {
  text-align: center;
  margin-bottom: var(--sp-4);
}

.dampf-store__title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.dampf-store__subtitle {
  font-size: 12px;
  margin-top: var(--sp-1);
}

.dampf-catalog {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

.dampf-card {
  display: grid;
  grid-template-columns: 48px 1fr;
  grid-template-rows: auto auto;
  gap: var(--sp-2) var(--sp-3);
  padding: var(--sp-3);
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 4px;
  transition: border-color 0.2s, background 0.2s;
  position: relative;

  &:hover {
    border-color: rgba(255,255,255,0.12);
    background: rgba(255,255,255,0.05);
  }
}

.dampf-card__icon {
  font-size: 32px;
  width: 48px;
  text-align: center;
  line-height: 48px;
  grid-row: 1;
  grid-column: 1;
}

.dampf-card__info {
  min-width: 0;
  grid-row: 1;
  grid-column: 2;
}

.dampf-card__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
}

.dampf-card__desc {
  font-size: 12px;
  margin-top: 2px;
  line-height: 1.4;
}

.dampf-card__meta {
  display: flex;
  gap: var(--sp-2);
  font-size: 11px;
  margin-top: var(--sp-1);
  flex-wrap: wrap;
}

.dampf-card__tags {
  display: flex;
  gap: 4px;
  margin-top: var(--sp-1);
  flex-wrap: wrap;
}

.dampf-tag {
  font-size: 9px;
  font-family: var(--font-mono);
  padding: 1px 6px;
  background: rgba(255,255,255,0.06);
  border-radius: 2px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.dampf-card__action {
  grid-row: 2;
  grid-column: 1 / -1;
  display: flex;
}

.dampf-install-btn {
  width: 100%;
  position: relative;
  overflow: hidden;
}

.dampf-play-btn {
  width: 100%;
  color: var(--accent, #e85d30);
  border-color: var(--accent, #e85d30);
}

.dampf-progress {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.3);
  border-radius: inherit;
}

.dampf-progress__fill {
  height: 100%;
  background: var(--accent, #e85d30);
  opacity: 0.3;
  transition: width 0.12s linear;
  width: 0%;
}

.dampf-progress__text {
  position: relative;
  z-index: 1;
  font-size: 10px;
  font-family: var(--font-mono);
}

.dampf-card__sale {
  position: absolute;
  top: -6px;
  right: -6px;
  background: var(--accent, #e85d30);
  color: #080808;
  font-size: 9px;
  font-weight: 700;
  font-family: var(--font-mono);
  padding: 2px 6px;
  border-radius: 2px;
  z-index: 1;
}

/* Library */
.dampf-library-empty {
  text-align: center;
  padding: var(--sp-6) var(--sp-3);
}

.dampf-library {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.dampf-lib-item {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-2) var(--sp-3);
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.04);
  border-radius: 3px;
  cursor: pointer;
  transition: background 0.15s;
  text-align: left;
  color: #fff;

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

.dampf-lib-item__icon {
  font-size: 20px;
  flex-shrink: 0;
}

.dampf-lib-item__info {
  flex: 1;
}

.dampf-lib-item__title {
  font-size: 13px;
  font-weight: 600;
}

.dampf-lib-item__status {
  font-size: 10px;
}

.dampf-lib-item__play {
  color: var(--accent, #e85d30);
  font-size: 16px;
}


/* ─── POLITICS SIMULATOR ──────────────────────────── */

.pol-menu {
  text-align: center;
  padding: var(--sp-4) var(--sp-3);
}

.pol-menu__title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.pol-menu__sub {
  font-size: 12px;
  margin-top: var(--sp-1);
}

.pol-menu__modes {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  margin-top: var(--sp-4);
  max-width: 360px;
  margin-inline: auto;
}

.pol-mode-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-1);
  padding: var(--sp-3) var(--sp-4);
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 4px;
  cursor: pointer;
  color: #fff;
  transition: border-color 0.2s, background 0.2s, transform 0.15s;

  &:hover {
    border-color: var(--accent, #e85d30);
    background: rgba(255,255,255,0.06);
    transform: translateY(-2px);
  }
}

.pol-mode-card__icon {
  font-size: 28px;
}

.pol-mode-card__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
}

.pol-mode-card__desc {
  font-size: 11px;
}

/* Scenes */
.pol-scene {
  padding: var(--sp-3);
  position: relative;
}

.pol-meter {
  text-align: center;
  font-family: var(--font-mono);
  font-size: 13px;
  padding: var(--sp-1) var(--sp-2);
  background: rgba(255,255,255,0.04);
  border-radius: 3px;
  margin-bottom: var(--sp-3);
  transition: color 0.3s, background 0.3s;

  &.pol-meter--flash {
    color: var(--accent, #e85d30);
    background: rgba(232, 93, 48, 0.1);
    animation: pol-meter-pulse 0.4s ease-out;
  }
}

@keyframes pol-meter-pulse {
  0% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

.pol-podium {
  text-align: center;
  margin-bottom: var(--sp-3);
}

.pol-silhouette {
  width: 80px;
  height: 100px;
  margin: 0 auto;
  position: relative;
}

.pol-silhouette--merkel {
  background: rgba(255,255,255,0.08);
  border-radius: 50% 50% 40% 40%;
}

.pol-silhouette__raute {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 24px;
  color: rgba(255,255,255,0.3);
}

.pol-eagle {
  font-size: 40px;
  margin-bottom: var(--sp-1);
}

.pol-podium-text {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  color: rgba(255,255,255,0.3);
  text-transform: uppercase;
}

.pol-question {
  margin-bottom: var(--sp-3);
}

.pol-reporter {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent, #e85d30);
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.pol-q-text {
  font-size: 14px;
  line-height: 1.5;
  font-style: italic;
}

.pol-answers {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}

.pol-answer {
  padding: var(--sp-2) var(--sp-3);
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 3px;
  color: #fff;
  font-size: 13px;
  cursor: pointer;
  text-align: left;
  transition: background 0.15s, border-color 0.15s;

  &:hover {
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.15);
  }
}

.pol-progress-text {
  text-align: center;
  font-size: 11px;
  margin-top: var(--sp-2);
}

.pol-result {
  text-align: center;
  padding: var(--sp-4) 0;

  & h3 {
    font-family: var(--font-display);
    font-size: 16px;
    margin-bottom: var(--sp-2);
  }

  & p { margin-bottom: var(--sp-1); }
}

.pol-back-btn {
  background: none;
  border: 1px solid #333;
  color: #888;
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 3px;
  cursor: pointer;
  font-family: 'Space Mono', monospace;
  margin-bottom: 10px;
  transition: color 0.2s, border-color 0.2s;
}
.pol-back-btn:hover {
  color: #e85d30;
  border-color: #e85d30;
}

/* Washington camera flash */
.pol-flash {
  animation: pol-camera-flash 0.6s ease-out;
}

@keyframes pol-camera-flash {
  0% { filter: brightness(3); }
  100% { filter: brightness(1); }
}

.pol-effect-toast {
  position: absolute;
  bottom: var(--sp-4);
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0,0,0,0.85);
  color: rgba(255,255,255,0.6);
  font-family: var(--font-mono);
  font-size: 11px;
  padding: var(--sp-1) var(--sp-3);
  border-radius: 3px;
  white-space: nowrap;
  animation: pol-toast-in 0.5s ease-out;
}

@keyframes pol-toast-in {
  0% { opacity: 0; transform: translateX(-50%) translateY(8px); }
  100% { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* Insel mode */
.pol-insel__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--sp-2);
  font-size: 13px;
}

.pol-insel__quote {
  text-align: center;
  font-style: italic;
  font-size: 12px;
  min-height: 1.5em;
  margin-bottom: var(--sp-2);
  transition: opacity 0.3s;
}

.pol-insel__head-wrap {
  display: flex;
  justify-content: center;
}

.pol-insel__canvas {
  max-width: 100%;
  cursor: crosshair;
  border-radius: 4px;
}


/* ─── KOLLEKTIV-QUIZ ──────────────────────────────── */

/* Override window body padding for quiz - keep it tight */
#win-quiz .window__body,
#sheet-quiz .sheet__body {
  padding: 0;
}

.quiz-app {
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

.quiz-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
  flex-shrink: 0;
}

.quiz-score {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent, #e85d30);
}

.quiz-narrator {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
  font-size: 11px;
  flex-shrink: 0;
}

.quiz-narrator__emoji {
  font-size: 16px;
}

.quiz-narrator__name {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 10px;
}

.quiz-stan .quiz-narrator__name { color: rgba(255,255,255,0.7); }
.quiz-mitch .quiz-narrator__name { color: var(--accent, #e85d30); }

.quiz-question {
  font-size: 13px;
  line-height: 1.4;
  margin-bottom: 8px;
  flex-shrink: 0;
}

.quiz-answers {
  display: flex;
  flex-direction: column;
  gap: 5px;
  flex-shrink: 0;
}

.quiz-answer {
  padding: 6px 10px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 3px;
  color: #fff;
  font-size: 12px;
  line-height: 1.3;
  cursor: pointer;
  text-align: left;
  transition: background 0.15s, border-color 0.15s;

  &:hover:not(:disabled) {
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.15);
  }

  &:disabled { cursor: default; opacity: 0.7; }

  &.quiz-answer--correct {
    border-color: #4caf50;
    background: rgba(76, 175, 80, 0.12);
    opacity: 1;
  }

  &.quiz-answer--wrong {
    border-color: #e85d30;
    background: rgba(232, 93, 48, 0.12);
    opacity: 1;
  }
}

.quiz-funfact {
  margin-top: 8px;
  padding: 6px 10px;
  background: rgba(255,255,255,0.03);
  border-left: 2px solid rgba(255,255,255,0.1);
  font-size: 11px;
  line-height: 1.4;
  color: rgba(255,255,255,0.6);
  animation: quiz-fact-in 0.3s ease-out;
  flex-shrink: 0;
}

.quiz-next-btn {
  margin-top: 8px;
  flex-shrink: 0;
  align-self: flex-end;
}

@keyframes quiz-fact-in {
  0% { opacity: 0; transform: translateY(6px); }
  100% { opacity: 1; transform: translateY(0); }
}

.quiz-result {
  text-align: center;
  padding: var(--sp-3) 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
}

.quiz-result__score {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 700;
  color: var(--accent, #e85d30);
  margin: 6px 0;
}

.quiz-result__rating {
  font-family: var(--font-mono);
  font-size: 13px;
  margin-bottom: var(--sp-2);
}


/* ─── AM I A SOCIALIST?! ──────────────────────────── */

.soc-app {
  padding: var(--sp-3);
}

.soc-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--sp-3);
}

.soc-title {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
}

.soc-question {
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: var(--sp-3);
}

.soc-answers {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}

.soc-answer {
  padding: var(--sp-2) var(--sp-3);
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 3px;
  color: #fff;
  font-size: 13px;
  cursor: pointer;
  text-align: left;
  transition: background 0.15s, border-color 0.15s, transform 0.1s;

  &:hover:not(:disabled) {
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.15);
  }

  &:disabled { cursor: default; }

  &.soc-answer--selected {
    border-color: var(--accent, #e85d30);
    background: rgba(232, 93, 48, 0.12);
    transform: scale(0.98);
  }
}

.soc-result {
  text-align: center;
  padding: var(--sp-4) 0;
}

.soc-result__emoji {
  font-size: 48px;
  margin-bottom: var(--sp-2);
}

.soc-result__label {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  margin-bottom: var(--sp-1);
}

.soc-result__desc {
  font-size: 13px;
  color: rgba(255,255,255,0.6);
  margin-bottom: var(--sp-2);
}

.soc-result__score {
  font-size: 11px;
  margin-bottom: var(--sp-3);
}

.soc-result__bar {
  position: relative;
  height: 8px;
  background: rgba(255,255,255,0.06);
  border-radius: 4px;
  margin: 0 auto var(--sp-1);
  max-width: 280px;
  overflow: hidden;
}

.soc-result__bar-fill {
  height: 100%;
  background: linear-gradient(90deg, rgba(255,255,255,0.15), var(--accent, #e85d30));
  border-radius: 4px;
  transition: width 0.6s ease-out;
}

.soc-result__bar-label-left,
.soc-result__bar-label-right {
  font-size: 9px;
  font-family: var(--font-mono);
  color: rgba(255,255,255,0.3);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.soc-result__bar-label-left { float: left; }
.soc-result__bar-label-right { float: right; }


/* ─── DESKTOP GAMES CALLOUT ───────────────────────── */

.desktop-games-callout {
  position: absolute;
  top: var(--sp-3);
  right: var(--sp-4);
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  z-index: 2;
  animation: games-callout-drift 3s ease-in-out infinite;
}

@keyframes games-callout-drift {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

.desktop-games-callout__arrow {
  font-size: 18px;
  color: var(--accent, #e85d30);
  animation: games-arrow-pulse 1.5s ease-in-out infinite;
  font-family: var(--font-mono);
}

@keyframes games-arrow-pulse {
  0%, 100% { opacity: 0.4; transform: translateX(0); }
  50% { opacity: 1; transform: translateX(-4px); }
}

.desktop-games-callout__btn {
  width: auto !important;
}

.desktop-games-callout__tag {
  font-family: var(--font-pixel, var(--font-mono));
  font-size: 8px;
  color: var(--accent, #e85d30);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  opacity: 0.5;
}

/* Dampf sale badges */
.dampf-sale {
  display: inline-block;
  background: var(--accent, #e85d30);
  color: #000;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 2px;
  margin-left: var(--sp-1);
  letter-spacing: -0.02em;
}


/* ─── ECHT ODER POSTILLON? ────────────────────────── */

.post-app {
  padding: var(--sp-3);
}

.post-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--sp-3);
}

.post-score {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent, #e85d30);
}

.post-ticker {
  text-align: center;
  margin-bottom: var(--sp-2);
}

.post-ticker__label {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent, #e85d30);
  padding: 2px 12px;
  border: 1px solid rgba(232, 93, 48, 0.3);
  border-radius: 2px;
  animation: ticker-flash 2s ease-in-out infinite;
}

@keyframes ticker-flash {
  0%, 100% { opacity: 0.7; }
  50% { opacity: 1; }
}

.post-headline {
  margin-bottom: var(--sp-4);
  padding: var(--sp-3) var(--sp-4);
  background: rgba(255,255,255,0.03);
  border-left: 3px solid rgba(255,255,255,0.12);
  border-radius: 0 4px 4px 0;
}

.post-headline__text {
  font-size: 15px;
  line-height: 1.6;
  font-style: italic;
}

.post-choices {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-3);
}

.post-choice {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: var(--sp-3) var(--sp-2);
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 4px;
  color: #fff;
  cursor: pointer;
  transition: background 0.15s, border-color 0.2s, transform 0.1s;

  &:hover:not(:disabled) {
    background: rgba(255,255,255,0.06);
    transform: translateY(-1px);
  }

  &:disabled { cursor: default; opacity: 0.6; }
}

.post-choice__icon {
  font-size: 22px;
  font-weight: 700;
}

.post-choice--real .post-choice__icon { color: #4caf50; }
.post-choice--fake .post-choice__icon { color: var(--accent, #e85d30); }

.post-choice__label {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
}

.post-choice__sub {
  font-size: 10px;
  color: rgba(255,255,255,0.4);
}

.post-choice--correct {
  border-color: #4caf50 !important;
  background: rgba(76, 175, 80, 0.12) !important;
  opacity: 1 !important;
}

.post-choice--wrong {
  border-color: #f44336 !important;
  background: rgba(244, 67, 54, 0.12) !important;
  opacity: 1 !important;
}

.post-streak {
  text-align: center;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent, #e85d30);
  margin-top: var(--sp-2);
  animation: streak-pop 0.3s ease-out;
}

@keyframes streak-pop {
  0% { transform: scale(1.3); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.post-reveal {
  margin-top: var(--sp-3);
  padding: var(--sp-2) var(--sp-3);
  border-radius: 4px;
  animation: reveal-slide 0.4s ease-out;
}

@keyframes reveal-slide {
  0% { opacity: 0; transform: translateY(8px); }
  100% { opacity: 1; transform: translateY(0); }
}

.post-reveal--real {
  background: rgba(76, 175, 80, 0.08);
  border-left: 3px solid #4caf50;
}

.post-reveal--fake {
  background: rgba(232, 93, 48, 0.08);
  border-left: 3px solid var(--accent, #e85d30);
}

.post-reveal__verdict {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.post-reveal--real .post-reveal__verdict { color: #4caf50; }
.post-reveal--fake .post-reveal__verdict { color: var(--accent, #e85d30); }

.post-reveal__source {
  font-size: 10px;
  margin-bottom: 4px;
}

.post-reveal__explanation {
  font-size: 12px;
  line-height: 1.5;
  color: rgba(255,255,255,0.7);
}

/* Result */
.post-result {
  text-align: center;
  padding: var(--sp-4) 0;
}

.post-result__icon {
  font-size: 40px;
  margin-bottom: var(--sp-2);
}

.post-result__title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  margin-bottom: var(--sp-1);
}

.post-result__score {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 700;
  color: var(--accent, #e85d30);
  margin: var(--sp-2) 0;
}

.post-result__pct {
  font-family: var(--font-mono);
  font-size: 13px;
  margin-bottom: var(--sp-1);
}

.post-result__rating {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-bottom: var(--sp-2);
}

.post-result__desc {
  font-size: 13px;
  line-height: 1.5;
  max-width: 360px;
  margin-inline: auto;
}

.post-result__streak {
  font-size: 12px;
  margin-top: var(--sp-1);
}


/* ═══════════════════════════════════════════════════════
   ACHIEVEMENTS - Popup + Dampf Tab View
   ═══════════════════════════════════════════════════════ */

/* ── Steam-style popup (bottom-right) ── */
.ach-popup {
  position: fixed;
  bottom: 20px;
  right: -360px;
  width: 320px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: linear-gradient(135deg, #1a1a1a 0%, #0d0d0d 100%);
  border: 1px solid #e85d30;
  border-radius: 4px;
  z-index: var(--z-notification);
  box-shadow: 0 4px 20px rgba(232, 93, 48, 0.25), 0 0 40px rgba(232, 93, 48, 0.08);
  transition: right 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  font-family: var(--font-mono, 'Space Mono', monospace);
}

.ach-popup.is-visible {
  right: 20px;
}

.ach-popup.is-leaving {
  right: -360px;
  transition: right 0.35s ease-in;
}

.ach-popup__icon {
  font-size: 28px;
  flex-shrink: 0;
}

.ach-popup__info {
  min-width: 0;
}

.ach-popup__label {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #e85d30;
  margin-bottom: 2px;
}

.ach-popup__title {
  font-size: 13px;
  color: #fff;
  font-weight: bold;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ach-popup__desc {
  font-size: 10px;
  color: #888;
  margin-top: 1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ── Popup mobile override ── */
body.mode--mobile .ach-popup {
  width: calc(100vw - 32px);
  bottom: 80px;
  right: -110vw;
}
body.mode--mobile .ach-popup.is-visible {
  right: 16px;
}
body.mode--mobile .ach-popup.is-leaving {
  right: -110vw;
}

/* ── Achievements Tab View inside Dampf ── */
.ach-view {
  padding: 10px 0;
}

.ach-global-progress {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px 12px;
  border-bottom: 1px solid #1a1a1a;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.ach-global-bar {
  flex: 1;
  min-width: 100px;
  height: 10px;
  background: #111;
  border: 1px solid #333;
  border-radius: 3px;
  overflow: hidden;
}

.ach-global-bar__fill {
  height: 100%;
  background: linear-gradient(90deg, #e85d30, #ff8c42);
  transition: width 0.4s ease;
}

.ach-global-label {
  font-family: var(--font-mono, 'Space Mono', monospace);
  font-size: 11px;
  color: #888;
  white-space: nowrap;
}

.ach-cert-btn {
  font-size: 11px !important;
  padding: 4px 10px !important;
}

/* ── Achievement Groups ── */
.ach-group {
  margin-bottom: 8px;
}

.ach-group__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 14px;
  background: rgba(255,255,255,0.02);
  border-bottom: 1px solid #1a1a1a;
  cursor: default;
}

.ach-group__title {
  font-size: 12px;
  font-weight: bold;
  color: #ccc;
}

.ach-group__count {
  font-family: var(--font-mono, 'Space Mono', monospace);
  font-size: 10px;
  color: #666;
}

.ach-group__list {
  display: flex;
  flex-direction: column;
}

/* ── Individual Achievement Item ── */
.ach-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px;
  border-bottom: 1px solid rgba(255,255,255,0.03);
  opacity: 0.4;
  transition: opacity 0.2s;
}

.ach-item.is-unlocked {
  opacity: 1;
}

.ach-item.is-hidden {
  opacity: 0.25;
}

.ach-item__icon {
  font-size: 18px;
  flex-shrink: 0;
  width: 28px;
  text-align: center;
}

.ach-item__info {
  min-width: 0;
  flex: 1;
}

.ach-item__title {
  font-size: 12px;
  color: #ddd;
  font-weight: bold;
}

.ach-item.is-unlocked .ach-item__title {
  color: #fff;
}

.ach-item__desc {
  font-size: 10px;
  color: #666;
  margin-top: 1px;
}

.ach-item__check {
  color: #e85d30;
  font-size: 14px;
  font-weight: bold;
  flex-shrink: 0;
}


/* ═══════════════════════════════════════════════════════
   FEED MAGGUS V2 - Falling Food Arcade
   ═══════════════════════════════════════════════════════ */

.maggus-game {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  padding: 8px 8px 6px;
  overflow: hidden;
  user-select: none;
  --shake-x: 0px;
}

/* ── HUD ── */
.maggus-hud {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding-bottom: 6px;
  flex-shrink: 0;
}

.maggus-hud__left {
  display: flex;
  align-items: baseline;
  gap: 6px;
  min-width: 70px;
}

.maggus-hud__center {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.maggus-score {
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 700;
  color: #e85d30;
}

.maggus-combo {
  font-family: var(--font-pixel, var(--font-mono));
  font-size: 11px;
  font-weight: 700;
  color: #ffcc00;
  opacity: 0;
  transition: opacity 0.15s, transform 0.15s;
  transform: scale(0.8);
}

.maggus-combo.is-active {
  opacity: 1;
  transform: scale(1);
  animation: maggus-combo-pulse 0.3s ease;
}

@keyframes maggus-combo-pulse {
  0% { transform: scale(1.4); }
  100% { transform: scale(1); }
}

.maggus-highscore {
  font-family: var(--font-mono);
  font-size: 9px;
  color: rgba(255,255,255,0.35);
  white-space: nowrap;
}

.maggus-bar-row {
  display: flex;
  align-items: center;
  gap: 5px;
}

.maggus-bar-label {
  font-family: var(--font-mono, 'Space Mono', monospace);
  font-size: 7px;
  letter-spacing: 1px;
  text-transform: uppercase;
  flex-shrink: 0;
  width: 52px;
  text-align: right;
}

.maggus-bar-label--hunger { color: #e85d30; }
.maggus-bar-label--suspicion { color: #d4a030; }

.maggus-bar {
  flex: 1;
  height: 10px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 2px;
  overflow: hidden;
}

.maggus-bar__fill {
  height: 100%;
  width: 100%;
  background: #e85d30;
  transition: width 0.2s ease, background 0.4s ease;
}

.maggus-suspicion-bar {
  flex: 1;
  height: 10px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 2px;
  overflow: hidden;
}

.maggus-suspicion-bar__fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #d4a030, #cc2222);
  transition: width 0.3s ease;
}

/* ── Arena (falling food zone + character) ── */
.maggus-arena {
  position: relative;
  flex: 1;
  width: 100%;
  min-height: 0;
  overflow: hidden;
}

.maggus-drop-zone {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.maggus-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 3;
}

.maggus-character {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  pointer-events: none;
}

.maggus-face {
  display: block;
}

/* ── Falling food items ── */
.maggus-falling-food {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 6px 8px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 6px;
  cursor: pointer;
  transform: translateX(-50%);
  transition: transform 0.1s ease, opacity 0.15s ease;
  z-index: 1;
  color: rgba(255,255,255,0.85);
  touch-action: manipulation;
}

.maggus-falling-food:hover {
  background: rgba(255,255,255,0.14);
  border-color: rgba(255,255,255,0.25);
  transform: translateX(-50%) scale(1.1);
}

.maggus-falling-food:active {
  transform: translateX(-50%) scale(0.9);
}

.maggus-falling-food--caught {
  opacity: 0;
  transform: translateX(-50%) scale(0.3) translateY(20px);
  pointer-events: none;
  transition: all 0.25s ease;
}

.maggus-falling-food--vegan {
  border-color: rgba(100,200,100,0.35);
  box-shadow: 0 0 8px rgba(100,200,100,0.15);
  background: rgba(100,200,100,0.05);
}

.maggus-falling-food--special {
  border-color: rgba(232,93,48,0.3);
  background: rgba(232,93,48,0.08);
}

.maggus-falling-food__emoji {
  font-size: 26px;
  line-height: 1;
}

.maggus-falling-food__name {
  font-family: var(--font-mono);
  font-size: 8px;
  color: rgba(255,255,255,0.45);
  text-align: center;
  line-height: 1.1;
  max-width: 70px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.maggus-falling-food__hint {
  position: absolute;
  top: 1px;
  right: 3px;
  font-size: 7px;
  opacity: 0.4;
}

/* ── Score popups ── */
.maggus-popup {
  position: absolute;
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  pointer-events: none;
  white-space: nowrap;
  transform: translateX(-50%);
  animation: maggus-popup-float 0.85s ease-out forwards;
  z-index: 4;
  text-shadow: 0 1px 4px rgba(0,0,0,0.6);
}

@keyframes maggus-popup-float {
  0% { opacity: 1; transform: translateX(-50%) translateY(0) scale(1.2); }
  70% { opacity: 1; }
  100% { opacity: 0; transform: translateX(-50%) translateY(-50px) scale(0.7); }
}

/* ── Speech bubble ── */
.maggus-speech {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  text-align: center;
  padding: 5px 12px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 4px;
  opacity: 0;
  transition: opacity 0.2s ease;
  min-height: 28px;
  max-width: 300px;
  flex-shrink: 0;
}

.maggus-speech.is-visible {
  opacity: 1;
}

/* ── Overlay (start screen) ── */
.maggus-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: rgba(0,0,0,0.82);
  cursor: pointer;
  z-index: 5;
}

.maggus-overlay__title {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  color: #e85d30;
}

.maggus-overlay__sub {
  font-family: var(--font-mono);
  font-size: 11px;
  color: rgba(255,255,255,0.5);
}

.maggus-overlay__hint {
  font-family: var(--font-mono);
  font-size: 10px;
  color: rgba(255,255,255,0.45);
  text-align: left;
  max-width: 300px;
  margin-top: 10px;
  line-height: 1.8;
  white-space: pre-line;
}

/* ── Game over screen ── */
.maggus-gameover {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: rgba(0,0,0,0.87);
  z-index: 5;
}

.maggus-gameover__title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: #cc2222;
}

.maggus-gameover__score {
  font-family: var(--font-mono);
  font-size: 18px;
  color: #e85d30;
  font-weight: 700;
}

.maggus-gameover__stats {
  font-family: var(--font-mono);
  font-size: 10px;
  color: rgba(255,255,255,0.4);
}

.maggus-gameover__speech {
  font-family: var(--font-display);
  font-size: 12px;
  color: rgba(255,255,255,0.35);
  font-style: italic;
  max-width: 260px;
  text-align: center;
}

.maggus-gameover__retry {
  font-family: var(--font-mono);
  font-size: 13px;
  padding: 8px 22px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  color: #e85d30;
  cursor: pointer;
  border-radius: 3px;
  margin-top: 6px;
  transition: background 0.15s;
}

.maggus-gameover__retry:hover {
  background: rgba(255,255,255,0.15);
}

/* ── Maggus Tutorial Flash ── */
.maggus-tutorial {
  position: absolute;
  top: 40px;
  left: 8px;
  right: 8px;
  background: rgba(232, 93, 48, 0.12);
  border: 1px solid rgba(232, 93, 48, 0.4);
  border-radius: 4px;
  padding: 8px 12px;
  pointer-events: none;
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 0.4s, transform 0.4s;
  z-index: 10;
}

.maggus-tutorial.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.maggus-tutorial__text {
  font-family: var(--font-mono, 'Space Mono', monospace);
  font-size: 9px;
  color: #e85d30;
  line-height: 1.6;
}

/* ========== TAUBE GAME ========== */

.taube-game {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #080808;
  display: flex;
  flex-direction: column;

  & .taube-hud {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 16px;
    border-bottom: 1px solid #333;
    font-family: var(--font-mono);
    font-size: 11px;
    color: #999;
  }

  & .taube-score,
  & .taube-lives {
    color: #e85d30;
    font-weight: bold;
  }

  & .taube-highscore {
    color: #666;
  }

  & .taube-canvas {
    flex: 1;
    display: block;
    width: 100%;
    background: #080808;
  }

  & .taube-overlay,
  & .taube-gameover {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: rgba(0,0,0,0.85);
    font-family: var(--font-display);
    color: #fff;
    z-index: 100;

    & h2 {
      font-size: 28px;
      margin-bottom: 16px;
      color: #e85d30;
    }

    & p {
      margin: 8px 0;
      font-family: var(--font-mono);
      font-size: 12px;
      color: #999;
    }
  }

  & .taube-restart-btn {
    margin-top: 12px;
    padding: 8px 20px;
    background: #e85d30;
    color: #000;
    border: none;
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: bold;
    cursor: pointer;
    border-radius: 2px;
    transition: all 0.15s;

    &:hover {
      opacity: 0.9;
      transform: scale(1.02);
    }
  }
}

/* ========== 5G TOWER DEFENSE GAME ========== */

.fiveg-game {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  background: #080808;

  & .fiveg-hud {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 16px;
    border-bottom: 1px solid #333;
    font-family: var(--font-mono);
    font-size: 12px;
    color: #999;

    & span {
      color: #e85d30;
      font-weight: bold;
    }
  }

  & .fiveg-canvas {
    flex: 1;
    display: block;
    width: 100%;
    background: #080808;
  }

  & .fiveg-towers {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    gap: 8px;
    padding: 12px 16px;
    border-top: 1px solid #333;
    background: #111;
  }

  & .fiveg-tower-btn {
    padding: 8px 12px;
    background: rgba(255,255,255,0.08);
    border: 2px solid #333;
    color: #ccc;
    font-family: var(--font-mono);
    font-size: 11px;
    cursor: pointer;
    border-radius: 3px;
    transition: all 0.15s;

    &:hover {
      background: rgba(255,255,255,0.12);
      border-color: #555;
    }

    &.is-selected {
      border-color: #e85d30;
      background: rgba(232,93,48,0.15);
      color: #e85d30;
      font-weight: bold;
    }
  }

  & .fiveg-funfact {
    padding: 8px 16px;
    background: rgba(232,93,48,0.08);
    border-top: 1px solid #333;
    font-family: var(--font-mono);
    font-size: 10px;
    color: #999;
    text-align: center;
  }

  & .fiveg-overlay,
  & .fiveg-gameover {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: rgba(0,0,0,0.85);
    font-family: var(--font-display);
    color: #fff;
    z-index: 100;

    & h2 {
      font-size: 24px;
      margin-bottom: 12px;
      color: #e85d30;
    }

    & p {
      font-family: var(--font-mono);
      font-size: 12px;
      color: #999;
      margin: 6px 0;
    }

    & button {
      margin-top: 16px;
      padding: 8px 20px;
      background: #e85d30;
      color: #000;
      border: none;
      font-family: var(--font-mono);
      font-size: 12px;
      font-weight: bold;
      cursor: pointer;
      border-radius: 2px;
      transition: all 0.15s;

      &:hover {
        opacity: 0.9;
        transform: scale(1.02);
      }
    }
  }
}

/* Trash styles moved to trash.css */

/* ─── NEWS APP — Die Wahrheit™ ──────────────────────────── */
.news-app {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  font-family: var(--font-display);
  background: var(--bg);
}

.news-header {
  padding: 16px 20px 12px;
  border-bottom: 1px solid var(--border);
  text-align: center;
  flex-shrink: 0;
}

.news-paper-name {
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--ink);
}

.news-paper-name--small {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.news-tagline {
  font-size: 11px;
  color: var(--ink-faint);
  margin-top: 4px;
  font-style: italic;
  letter-spacing: 0.02em;
}

.news-dateline {
  font-size: 10px;
  font-family: var(--font-mono);
  margin-top: 6px;
}

/* ── Filter bar ── */
.news-filters {
  display: flex;
  gap: 6px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
  scrollbar-width: none;
  flex-shrink: 0;

  &::-webkit-scrollbar { display: none; }
}

.news-filter {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--ink-faint);
  font-family: var(--font-mono);
  font-size: 10px;
  padding: 3px 9px;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.15s, border-color 0.15s, background 0.15s;

  &:hover {
    color: var(--ink);
    border-color: rgba(255,255,255,0.4);
  }

  &.is-active {
    background: var(--ink);
    color: var(--bg);
    border-color: var(--ink);
  }
}

/* ── Feed ── */
.news-feed {
  flex: 1;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}

.news-empty {
  padding: 32px 20px;
  text-align: center;
  font-size: 13px;
}

/* ── Card ── */
.news-card {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: background 0.15s;

  &:hover {
    background: rgba(255,255,255,0.03);
  }

  &:last-child {
    border-bottom: none;
  }
}

.news-cat {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  padding: 2px 6px;
  border: 1px solid currentColor;
  margin-bottom: 8px;

  &.news-cat--politics     { color: var(--accent); }
  &.news-cat--tech         { color: var(--ink); opacity: 0.85; }
  &.news-cat--intl         { color: var(--ink-faint); }
  &.news-cat--society      { color: var(--ink); opacity: 0.7; }
  &.news-cat--economy      { color: #b8a080; border-color: #b8a080; }
  &.news-cat--media        { color: #a0a0b8; border-color: #a0a0b8; }
  &.news-cat--education    { color: #80b8a0; border-color: #80b8a0; }
  &.news-cat--health       { color: #b89080; border-color: #b89080; }
}

.news-card__headline {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
  margin: 0 0 7px;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.news-card__teaser {
  font-size: 12px;
  line-height: 1.55;
  margin: 0 0 8px;
}

.news-card__meta {
  font-size: 10px;
  font-family: var(--font-mono);
  display: flex;
  gap: 14px;
}

/* ── Footer ── */
.news-footer {
  padding: 10px 20px;
  font-size: 10px;
  font-family: var(--font-mono);
  border-top: 1px solid var(--border);
  flex-shrink: 0;
  text-align: center;
}

/* ── Article view ── */
.news-app--article {
  .news-header--slim {
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-align: left;
    padding: 10px 16px;
  }
}

.news-back {
  background: transparent;
  border: none;
  color: var(--ink-faint);
  font-family: var(--font-mono);
  font-size: 11px;
  cursor: pointer;
  padding: 4px 0;
  transition: color 0.15s;

  &:hover { color: var(--ink); }
}

.news-article {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}

.news-article__headline {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin: 10px 0 12px;
  color: var(--ink);
}

.news-article__byline {
  font-family: var(--font-mono);
  font-size: 10px;
  display: flex;
  gap: 14px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.news-article__body {
  p {
    font-size: 13px;
    line-height: 1.75;
    margin: 0 0 16px;
    color: var(--ink);

    &:last-child { margin-bottom: 0; }

    &:first-child::first-letter {
      font-size: 26px;
      font-weight: 700;
      float: left;
      line-height: 0.85;
      margin: 4px 6px 0 0;
      color: var(--accent);
    }

    code {
      font-family: var(--font-mono);
      font-size: 11px;
      background: rgba(255,255,255,0.06);
      padding: 1px 5px;
    }
  }
}
