/* Design „Fanzine“ – selbstkopiertes Spielemagazin/Comic der 90er.
   Schrift: Bangers aus /themes/fonts.css (SIL OFL 1.1).
   Vorlage unverändert, Anpassungen für GameSwipe gesammelt am Dateiende. */

[data-theme="fanzine"] {
  --bg: #f3eedc;
  --surface: #fffdf5;
  --surface-2: #eae2c6;
  --line: #111111;
  --text: #111111;
  --muted: #454138;
  --accent: #ffe600;
  --accent-ink: #111111;
  --like: #00d4ff;
  --nope: #ff1e7a;
  --sale: #ffe600;
  --sale-ink: #111111;
  --radius: 2px;
  --radius-lg: 4px;
  --card-shadow: 6px 6px 0 #111111;
  --border-w: 3px;
  --font: system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-head: 'Bangers', 'Impact', 'Arial Black', sans-serif;
  --head-transform: uppercase;
  --head-spacing: 0.05em;
  --head-weight: 400;
  --mono: ui-monospace, 'Cascadia Code', Menlo, Consolas, monospace;
  color-scheme: light;

  background-color: var(--bg);
  background-image: radial-gradient(rgba(17, 17, 17, 0.08) 1px, transparent 0);
  background-size: 14px 14px;
  color: var(--text);
  font-family: var(--font);
}

/* Deutlicher Tastatur-Fokus */
[data-theme="fanzine"] :focus-visible {
  outline: 3px dashed #111111;
  outline-offset: 3px;
  box-shadow: 0 0 0 3px #ffe600;
}

/* Topbar & Hefttitel */
[data-theme="fanzine"] .topbar {
  background-color: #fffdf5;
  background-image: radial-gradient(rgba(17, 17, 17, 0.09) 1.2px, transparent 0);
  background-size: 6px 6px;
  border-bottom: 3px solid #111111;
  box-shadow: 0 4px 0 #111111;
}

[data-theme="fanzine"] .brand {
  font-family: var(--font-head);
  font-size: 1.45rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #111111;
  text-shadow: 2px 2px 0 #ffe600;
  transform: rotate(-1deg);
}

[data-theme="fanzine"] .brand b {
  display: inline-block;
  background: #ff1e7a;
  color: #ffffff;
  border: 2px solid #111111;
  padding: 0 6px;
  margin-left: 2px;
  box-shadow: 2px 2px 0 #111111;
  text-shadow: none;
  transform: rotate(1.5deg);
}

[data-theme="fanzine"] .me .avatar {
  border: 3px solid #111111;
  border-radius: 2px;
  box-shadow: 3px 3px 0 #00d4ff;
}

/* Navigation & Heftseiten-Reiter */
[data-theme="fanzine"] .nav button {
  font-family: var(--font-head);
  font-size: 1.02rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #111111;
  background: #fffdf5;
  border: 2px solid #111111;
  border-radius: 2px;
  box-shadow: 3px 3px 0 #111111;
  transition: transform 0.08s ease, box-shadow 0.08s ease, background-color 0.08s ease;
}

[data-theme="fanzine"] .nav button:hover {
  background: #00d4ff;
}

[data-theme="fanzine"] .nav button[aria-current="page"] {
  background-color: #ffe600;
  background-image: radial-gradient(rgba(17, 17, 17, 0.14) 1px, transparent 0);
  background-size: 5px 5px;
  color: #111111;
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0 #111111;
}

[data-theme="fanzine"] .nav .count {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 800;
  background: #111111;
  color: #ffe600;
  border: 1px solid #111111;
  border-radius: 2px;
  padding: 1px 5px;
}

/* Spielkarten: Oberste gerade, hintere minimal schief (±1°) */
[data-theme="fanzine"] .card {
  background: var(--surface);
  border: var(--border-w) solid #111111;
  border-radius: var(--radius-lg);
  box-shadow: var(--card-shadow);
  color: var(--text);
}

[data-theme="fanzine"] .card.behind {
  background: #f7f3e3;
  border: 3px solid #111111;
  box-shadow: 5px 5px 0 #111111;
  transform: scale(0.965) translateY(10px) rotate(-1deg);
}

[data-theme="fanzine"] .card.behind2 {
  background: #ebe4cc;
  border: 3px solid #111111;
  box-shadow: 4px 4px 0 #111111;
  transform: scale(0.93) translateY(20px) rotate(1deg);
}

[data-theme="fanzine"] .card.dragging {
  border-color: #111111;
  box-shadow: 11px 11px 0 #111111;
}

[data-theme="fanzine"] .card .shot {
  border-bottom: 3px solid #111111;
}

[data-theme="fanzine"] .more-pics,
[data-theme="fanzine"] .trailer-pill {
  font-family: var(--font-head);
  font-size: 0.92rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: #00d4ff;
  color: #111111;
  border: 2px solid #111111;
  border-radius: 2px;
  box-shadow: 3px 3px 0 #111111;
}

[data-theme="fanzine"] .card .title {
  font-family: var(--font-head);
  font-size: 1.5rem;
  text-transform: var(--head-transform);
  letter-spacing: var(--head-spacing);
  font-weight: var(--head-weight);
  color: #111111;
  transform: rotate(-0.6deg);
  transform-origin: left center;
}

[data-theme="fanzine"] .card .meta {
  color: var(--muted);
  font-weight: 700;
}

[data-theme="fanzine"] .desc {
  color: #181715;
  line-height: 1.52;
}

/* Bewertungen, Spieler & Tags */
[data-theme="fanzine"] .review.good {
  background: #00d4ff;
  color: #111111;
  border: 2px solid #111111;
  box-shadow: 2px 2px 0 #111111;
  font-weight: 800;
}

[data-theme="fanzine"] .review.mid {
  background: #ffe600;
  color: #111111;
  border: 2px solid #111111;
  box-shadow: 2px 2px 0 #111111;
  font-weight: 800;
}

[data-theme="fanzine"] .review.bad {
  background: #ff1e7a;
  color: #ffffff;
  border: 2px solid #111111;
  box-shadow: 2px 2px 0 #111111;
  font-weight: 800;
}

[data-theme="fanzine"] .players .pl {
  background: #fffdf5;
  color: #111111;
  border: 2px solid #111111;
  border-radius: 2px;
  font-weight: 700;
}

[data-theme="fanzine"] .players .pl.hot {
  background: #ffe600;
  box-shadow: 2px 2px 0 #111111;
}

[data-theme="fanzine"] .tags .tag {
  background: #f3eedc;
  color: #111111;
  border: 2px solid #111111;
  border-radius: 2px;
  font-weight: 600;
}

/* Preisleiste & Stern-/Zacken-Rabatt-Badge */
[data-theme="fanzine"] .pricebar {
  background-color: #f7f2e0;
  background-image: radial-gradient(rgba(17, 17, 17, 0.1) 1px, transparent 0);
  background-size: 6px 6px;
  border-top: 3px solid #111111;
}

[data-theme="fanzine"] .price .now {
  font-family: var(--font-head);
  font-size: 1.35rem;
  letter-spacing: 0.04em;
  color: #111111;
}

[data-theme="fanzine"] .price .was {
  color: var(--muted);
  text-decoration-thickness: 2px;
  text-decoration-color: #ff1e7a;
}

[data-theme="fanzine"] .sale {
  font-family: var(--font-head);
  font-size: 0.98rem;
  letter-spacing: 0.05em;
  background: #ffe600;
  color: #111111;
  border: none;
  padding: 6px 12px;
  /* 12-zackiger Comic-Preisknaller */
  clip-path: polygon(
    50% 0%, 63% 14%, 85% 6%, 84% 28%, 100% 42%, 86% 58%,
    96% 80%, 74% 82%, 68% 100%, 50% 87%, 32% 100%, 26% 82%,
    4% 80%, 14% 58%, 0% 42%, 16% 28%, 15% 6%, 37% 14%
  );
  filter: drop-shadow(2px 2px 0 #111111);
}

[data-theme="fanzine"] .deals,
[data-theme="fanzine"] .owned-badge,
[data-theme="fanzine"] .pick-kicker {
  font-family: var(--font-head);
  font-size: 0.92rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: #00d4ff;
  color: #111111;
  border: 2px solid #111111;
  border-radius: 2px;
  box-shadow: 2px 2px 0 #111111;
}

/* Comic-Soundword-Stempel mit Zackenrand (clip-path) */
[data-theme="fanzine"] .stamp.like,
[data-theme="fanzine"] .stamp.nope {
  font-family: var(--font-head);
  font-size: 2.1rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  border: none;
  padding: 14px 24px;
  clip-path: polygon(
    6% 18%, 22% 4%, 38% 16%, 54% 2%, 70% 15%, 88% 5%, 96% 24%,
    89% 46%, 98% 68%, 85% 84%, 92% 98%, 68% 89%, 50% 99%,
    32% 88%, 12% 97%, 17% 78%, 2% 62%, 12% 42%
  );
}

[data-theme="fanzine"] .stamp.like {
  background: #00d4ff;
  color: #111111;
  filter: drop-shadow(4px 4px 0 #111111);
}

[data-theme="fanzine"] .stamp.nope {
  background: #ff1e7a;
  color: #ffffff;
  filter: drop-shadow(4px 4px 0 #111111);
}

/* Aktionsknöpfe: Harte Tuschekontur & Comic-Schatten */
[data-theme="fanzine"] .actions .act {
  border-radius: 50%;
  border: 3px solid #111111;
  box-shadow: 4px 4px 0 #111111;
  font-family: var(--font-head);
  transition: transform 0.08s ease, box-shadow 0.08s ease;
}

[data-theme="fanzine"] .actions .act:active {
  transform: translate(3px, 3px);
  box-shadow: 1px 1px 0 #111111;
}

[data-theme="fanzine"] .actions .act.like {
  background-color: #00d4ff;
  background-image: radial-gradient(rgba(17, 17, 17, 0.16) 1px, transparent 0);
  background-size: 5px 5px;
  color: #111111;
}

[data-theme="fanzine"] .actions .act.nope {
  background-color: #ff1e7a;
  background-image: radial-gradient(rgba(17, 17, 17, 0.18) 1px, transparent 0);
  background-size: 5px 5px;
  color: #ffffff;
}

[data-theme="fanzine"] .actions .act.skip {
  background: #ffe600;
  color: #111111;
}

[data-theme="fanzine"] .actions .act.undo {
  background: #fffdf5;
  color: #111111;
}

/* Buttons & Chips */
[data-theme="fanzine"] .btn {
  font-family: var(--font-head);
  font-size: 1rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: #fffdf5;
  color: #111111;
  border: 2.5px solid #111111;
  border-radius: 2px;
  box-shadow: 4px 4px 0 #111111;
  transition: transform 0.08s ease, box-shadow 0.08s ease;
}

[data-theme="fanzine"] .btn:active {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 #111111;
}

[data-theme="fanzine"] .btn.primary {
  background-color: #ffe600;
  background-image: radial-gradient(rgba(17, 17, 17, 0.14) 1px, transparent 0);
  background-size: 5px 5px;
  color: #111111;
}

[data-theme="fanzine"] .btn.danger {
  background: #ff1e7a;
  color: #ffffff;
}

[data-theme="fanzine"] .btn.ghost {
  background: transparent;
  box-shadow: none;
}

[data-theme="fanzine"] .btn.small {
  font-size: 0.88rem;
}

[data-theme="fanzine"] .chip[aria-pressed="true"],
[data-theme="fanzine"] .seg button[aria-pressed="true"] {
  background: #00d4ff;
  color: #111111;
  border: 2px solid #111111;
  box-shadow: 2px 2px 0 #111111;
  font-weight: 800;
}

/* Comic-Panels, Kacheln & Formulare */
[data-theme="fanzine"] .panel,
[data-theme="fanzine"] .tile,
[data-theme="fanzine"] .stat,
[data-theme="fanzine"] .pick,
[data-theme="fanzine"] .sheet,
[data-theme="fanzine"] .empty {
  background: #fffdf5;
  border: 3px solid #111111;
  border-radius: 2px;
  box-shadow: 5px 5px 0 #111111;
  color: #111111;
}

[data-theme="fanzine"] .flabel,
[data-theme="fanzine"] .sheet-head {
  font-family: var(--font-head);
  font-size: 1.05rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #111111;
}

[data-theme="fanzine"] .input,
[data-theme="fanzine"] .select {
  background: #ffffff;
  color: #111111;
  border: 2.5px solid #111111;
  border-radius: 2px;
  box-shadow: 3px 3px 0 #111111;
  font-family: var(--font);
}

[data-theme="fanzine"] .range,
[data-theme="fanzine"] .check {
  accent-color: #ff1e7a;
}

[data-theme="fanzine"] .row {
  border-bottom: 2px solid #111111;
}

/* Raster-Balkenanzeige (Meter) */
[data-theme="fanzine"] .meter i {
  background: #eae2c6;
  border: 1.5px solid #111111;
  border-radius: 0;
}

[data-theme="fanzine"] .meter i.on {
  background: #ff1e7a;
}

/* Zufalls-Roll & Medien */
[data-theme="fanzine"] .big-roll {
  font-family: var(--font-head);
  font-size: 1.25rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background-color: #ffe600;
  background-image: radial-gradient(rgba(17, 17, 17, 0.16) 1.2px, transparent 0);
  background-size: 6px 6px;
  color: #111111;
  border: 3px solid #111111;
  border-radius: 2px;
  box-shadow: 6px 6px 0 #111111;
  transform: rotate(-1deg);
}

[data-theme="fanzine"] .player,
[data-theme="fanzine"] .shot-btn {
  border: 3px solid #111111;
  border-radius: 2px;
  box-shadow: 3px 3px 0 #111111;
}

[data-theme="fanzine"] .play-overlay {
  background: #ffe600;
  color: #111111;
  border: 3px solid #111111;
  box-shadow: 4px 4px 0 #111111;
}

[data-theme="fanzine"] .lightbox {
  background: rgba(17, 17, 17, 0.9);
}

/* Toasts & Halftone-Skeleton */
[data-theme="fanzine"] .toast {
  font-family: var(--font-head);
  font-size: 1rem;
  letter-spacing: 0.04em;
  background: #fffdf5;
  color: #111111;
  border: 3px solid #111111;
  border-radius: 2px;
  box-shadow: 5px 5px 0 #111111;
}

[data-theme="fanzine"] .toast.match {
  background: #00d4ff;
  color: #111111;
}

[data-theme="fanzine"] .skeleton {
  background-color: #eae2c6;
  background-image: radial-gradient(rgba(17, 17, 17, 0.25) 1.5px, transparent 0);
  background-size: 8px 8px;
  border: 2px solid #111111;
  animation: fanzine-halftone-shift 1.2s steps(3) infinite;
}

/* Breakpoints: Tablet & Handy */
@media (max-width: 900px) {
  [data-theme="fanzine"] .card {
    box-shadow: 4px 4px 0 #111111;
  }
}

@media (max-width: 720px) {
  [data-theme="fanzine"] .nav {
    background: #fffdf5;
    border-top: 3px solid #111111;
    box-shadow: 0 -4px 0 #111111;
  }

  [data-theme="fanzine"] .nav button {
    font-size: 0.86rem;
    box-shadow: 2px 2px 0 #111111;
  }
}

@keyframes fanzine-halftone-shift {
  0% {
    background-position: 0 0;
  }
  100% {
    background-position: 8px 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  [data-theme="fanzine"] .skeleton {
    animation: none;
  }

  [data-theme="fanzine"] .nav button,
  [data-theme="fanzine"] .actions .act,
  [data-theme="fanzine"] .btn {
    transition: none;
  }
}

/* ===================== Anpassungen für GameSwipe ===================== */

/* body durchsichtig, sonst verdeckt er das Rasterpunkt-Papier */
[data-theme="fanzine"] body { background: transparent; }

/* Kontrast: Weiß auf Pink (#ff1e7a) ist zu schwach für kleine Schrift -> Tusche-Schwarz */
[data-theme="fanzine"] .review.bad,
[data-theme="fanzine"] .btn.danger,
[data-theme="fanzine"] .brand b { color: #111111; }

/* Cyan ist als Textfarbe auf Papier kaum lesbar: Like-Texte in Schwarz, Cyan als Fläche */
[data-theme="fanzine"] .decision { color: #111111; background: #fffdf5; border-width: 3px; box-shadow: 5px 5px 0 #111111; }
[data-theme="fanzine"] .decision.like { background: #00d4ff; }
[data-theme="fanzine"] .decision.nope { background: #ff1e7a; }
[data-theme="fanzine"] .decision.skip,
[data-theme="fanzine"] .decision.undo { background: #ffe600; }
[data-theme="fanzine"] .decision small { color: #111111; }
[data-theme="fanzine"] .revisit-badge { color: #111111; background: #fffdf5; border: 2px solid #111111; }
[data-theme="fanzine"] .revisit-badge.like { background: #00d4ff; }
[data-theme="fanzine"] .revisit-badge.dislike { background: #ff1e7a; }
[data-theme="fanzine"] .actions .act.hit { transform: translate(3px, 3px); box-shadow: 1px 1px 0 #111111; animation: none; filter: brightness(1.1); }
[data-theme="fanzine"] .actions .act.like.hit { background-color: #00d4ff; color: #111111; }
[data-theme="fanzine"] .actions .act.nope.hit { background-color: #ff1e7a; color: #ffffff; }
[data-theme="fanzine"] .actions .act.skip.hit { background: #ffe600; color: #111111; }
[data-theme="fanzine"] .actions .act.undo.hit { background: #fffdf5; color: #111111; }

/* Leere Zustände ohne zweiten Kasten; Matches-Zeilen wie Kacheln */
[data-theme="fanzine"] .empty { background: none; border: 0; box-shadow: none; }
[data-theme="fanzine"] .row { background: #fffdf5; border: 3px solid #111111; border-radius: 2px; box-shadow: 5px 5px 0 #111111; }

/* Kopf des Blattes: Papierfläche, Comic-Titel */
[data-theme="fanzine"] .sheet-head { background: #ffe600; font-size: inherit; border-bottom: 3px solid #111111; }
[data-theme="fanzine"] .sheet-head h2 { font-family: var(--font-head); font-size: 1.6rem; color: #111111; }

/* Kleine Etiketten mit Luft */
[data-theme="fanzine"] .review.good,
[data-theme="fanzine"] .review.mid,
[data-theme="fanzine"] .review.bad { padding: 1px 7px; border-radius: 2px; }
[data-theme="fanzine"] .tags .tag { padding: 1px 7px; }
[data-theme="fanzine"] .tag + .tag::before { content: none; }
[data-theme="fanzine"] .deals,
[data-theme="fanzine"] .owned-badge,
[data-theme="fanzine"] .pick-kicker { padding: 2px 8px; align-self: flex-start; }

/* Preisleiste bis an den Kartenrand */
[data-theme="fanzine"] .pricebar { margin: auto -16px -12px; padding: 10px 16px 12px; }

/* Galerie: Rahmen am Bild */
[data-theme="fanzine"] .shot-btn { border: 0; box-shadow: none; }
[data-theme="fanzine"] .shot-btn img { border: 3px solid #111111; box-shadow: 3px 3px 0 #111111; }

/* Trailer: Vorschaubild sichtbar, gelber Comic-Knopf */
[data-theme="fanzine"] .play-overlay { background: rgba(17, 17, 17, 0.15); border: 0; box-shadow: none; }
[data-theme="fanzine"] .play-overlay svg { background: #ffe600; color: #111111; border: 3px solid #111111; border-radius: 2px; box-shadow: 4px 4px 0 #111111; }

/* Nicht gewählte Schalter mit Tuschekontur */
[data-theme="fanzine"] .chip,
[data-theme="fanzine"] .seg button { background: #fffdf5; border: 2px solid #111111; border-radius: 2px; color: #111111; }

[data-theme="fanzine"] .stat b { font-family: var(--font-head); font-weight: 400; font-size: 32px; }
[data-theme="fanzine"] .particle { color: #ff1e7a; }

@media (max-width: 720px) {
  [data-theme="fanzine"] .nav { gap: 6px; }
  [data-theme="fanzine"] .sheet { border-bottom: 0; }
  [data-theme="fanzine"] .card .title { font-size: 1.35rem; }
}
