/* Fetzerei um Wien – Startseite und Ladeanzeige im Trafik-Look (Design-Mappe v2, Konzept C, ab 0.10.0).
   Pixelschrift nur 16/32/48/64 px. Rahmen und Kacheln setzt js/design/einstieg-trafik.js (9-Slice aus Pixel-Bitmaps).
   Das Intro steht in intro.css. Desktop-Aufteilung ab 900 px (dort wechselt die Szene auf 3-fach). */
.tr { --papier: #f2e4c4; --tinte: #2a1a12; --email: #1f3f8c; --email-weiss: #f4f1e6; --gold-hell: #e8c46a;
  position: relative; min-height: 100dvh; color: var(--papier); font-family: 'CW Block', monospace; font-size: var(--fs-s); line-height: 1.25;
  background-color: #192026; text-align: left; overflow-x: clip; }
.tr.tr-tag { background-color: #4a5058; }
.tr button { cursor: pointer; }
.tr :focus-visible { outline: 4px solid var(--gold-hell); outline-offset: 3px; }
.tr canvas { display: block; image-rendering: pixelated; image-rendering: crisp-edges; }
.tr .sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Konto-Leiste: Blechstreifen mit Chips ---------- */
.tr .tr-leiste { width: auto; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px; padding: 8px 10px;
  padding-top: max(8px, env(safe-area-inset-top)); border-bottom: 4px solid #070c09; font-size: 32px; }
/* 0.10.8: Name, Karten und Geld in normaler Textgröße (32 px, pixelscharf) statt klein */
.tr .tr-chip { display: inline-flex; align-items: center; gap: 6px; min-height: 48px; padding: 0 4px; font: inherit; font-size: 32px; line-height: 1;
  color: var(--tinte); background: none; background-clip: padding-box; white-space: nowrap; cursor: default; }
.tr button.tr-chip { cursor: pointer; }
.tr .tr-chip canvas { flex: none; }
.tr .tr-leiste .kontochip { display: inline-block; margin: 0; max-width: 46vw; min-height: 48px; line-height: 40px; padding: 0 4px; overflow: hidden; text-overflow: ellipsis;
  font-size: 32px; color: var(--email); background: none; }
.tr .tr-gruss { color: #3a62b8; }
.tr .tr-chip-rot { color: var(--email-weiss); }
.tr .tr-chip:hover { filter: brightness(1.08); }
.tr .tr-offline-text { color: var(--papier); text-shadow: 2px 2px 0 #070c09; text-align: center; }

/* Sprachschalter (DE/EN) im Trafik-Look */
.tr .sprachwahl .sprache { min-width: 44px; min-height: 44px; padding: 0 8px; font: inherit; font-family: 'CW Block', monospace; font-size: var(--fs-s); line-height: 1;
  background: #15281e; color: var(--papier); border: 2px solid #2c523c; }
.tr .sprachwahl .sprache[aria-pressed="true"] { background: #c99a3b; color: var(--tinte); border-color: var(--gold-hell); }
.tr .sprachwahl .sprache:hover:not([aria-pressed="true"]) { background: #1e3a2a; }

/* ---------- Bühne: der Kiosk ---------- */
.tr-buehne { display: flex; justify-content: center; background: #070c09; overflow: hidden; }
/* 0.10.8: die Trafik in der Szene ist ein Knopf (Prozent-Lage über dem Kiosk) */
.tr-szene { position: relative; line-height: 0; }
.tr-kiosk-knopf { position: absolute; margin: 0; padding: 0; border: 0; background: none; cursor: pointer; }
.tr-kiosk-knopf:hover { outline: 2px dashed rgba(244, 216, 140, .55); outline-offset: -2px; }
.tr-kiosk-knopf:focus-visible { outline: 4px solid var(--gold-hell); outline-offset: 2px; }

/* ---------- unterer Teil: Aushangtafel (Menü) + Schaukasten (Zeitung) ---------- */
.tr-unten { max-width: 1180px; margin: 0 auto; padding: 18px 12px 8px; display: grid; gap: 22px; }

.tr-tafel { position: relative; background-clip: padding-box; padding: 18px 8px 16px; box-shadow: 0 8px 0 rgba(7, 12, 9, .55); }
.tr .tr-tafel-kopf { position: absolute; top: -16px; left: 50%; transform: translateX(-50%); margin: 0; font-family: 'CW Dick', monospace; font-size: var(--fs-s); color: var(--tinte);
  padding: 0 10px; line-height: 20px; letter-spacing: 2px; text-transform: uppercase; background-clip: padding-box; white-space: nowrap; }
.tr .tr-menue { display: block; width: auto; }

.tr-schilder { display: grid; gap: 10px; }
.tr-schilder.ungerade .haupt { order: -1; }   /* offline: das spielbare Schnellspiel zuerst */
.tr-schild { position: relative; display: flex; align-items: center; gap: 12px; width: 100%; min-height: 64px; padding: 2px 6px; text-align: left;
  color: var(--email-weiss); background: none; font: inherit; }
.tr-schild.tr-gold { color: var(--tinte); }
.tr-schild.tr-weiss { color: #16144a; }
.tr-schilder-mehr { margin-top: 10px; }
.tr-schild-icon { flex: none; display: grid; place-items: center; }
.tr-schild-text { display: grid; gap: 2px; min-width: 0; }
.tr-schild-name { font-size: 32px; line-height: 1; }
.tr-schild-unter { font-size: var(--fs-s); line-height: 1.2; opacity: .85; }
.tr-schild:disabled { cursor: default; filter: grayscale(.75) brightness(.7); }
.tr-schild:not(:disabled):hover, .tr-weiter:hover { filter: brightness(1.08); }
.tr-schild:not(:disabled):active, .tr-weiter:active { transform: translateY(2px); }

/* Stempel bleiben klein (16 px) und sitzen über der Ecke – sonst decken sie am Handy die Schrift zu */
.tr .tr-stempel { position: absolute; right: -4px; top: -14px; font-size: 16px; line-height: 20px; padding: 0 6px; background: #c3343c; color: var(--email-weiss);
  border: 2px solid #7f1d24; box-shadow: 2px 2px 0 rgba(7, 12, 9, .5); pointer-events: none; white-space: nowrap; }
.tr .tr-bald { background: var(--tinte); border-color: #070c09; color: var(--papier); }

/* Online-Duell läuft noch: Zettel mit rotem Knopf */
.tr .tr-hinweis { width: auto; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; padding: 2px 4px;
  color: var(--tinte); background: none; box-shadow: none; filter: drop-shadow(0 4px 0 rgba(7, 12, 9, .5)); }
.tr .tr-hinweis p { margin: 0; font-family: 'CW Dick', monospace; font-size: var(--fs-s); }
.tr-weiter { min-height: 44px; padding: 0 8px; font: inherit; font-size: var(--fs-s); color: var(--email-weiss); background: none; }

/* ---------- Schaukasten mit der Fetzerei-Zeitung ---------- */
.tr .tr-zeitung { width: auto; margin: 0; color: var(--tinte); padding: 6px 8px 10px; background: none; background-clip: padding-box; text-align: left;
  box-shadow: 0 8px 0 rgba(7, 12, 9, .55); }
.tr .tr-zeitung-kopf { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; flex-wrap: wrap; margin: 0; padding-bottom: 6px;
  border-bottom: 4px double var(--tinte); font-size: var(--fs-s); text-transform: none; letter-spacing: 0; }
.tr .tr-zeitung-name { font-family: 'CW Dick', monospace; letter-spacing: 2px; text-transform: uppercase; }
.tr .tr-aufmacher { display: block; margin: 0; padding: 8px 0 10px; border-bottom: 2px solid var(--tinte); }
.tr .tr-rubrik { display: inline-block; background: #c3343c; color: var(--email-weiss); padding: 0 6px 2px; font-size: var(--fs-s); text-transform: none; letter-spacing: 0; }
.tr .tr-titel { font-family: 'CW Dick', monospace; font-weight: normal; font-size: 32px; line-height: 1.1; margin: 6px 0; color: var(--tinte); }
.tr .tr-text { margin: 0 0 6px; font-size: var(--fs-s); line-height: 1.5; color: var(--tinte); }
.tr .tr-mehr { display: inline-flex; align-items: center; min-height: 44px; font-size: var(--fs-s); color: #1b467e; text-decoration: underline; text-underline-offset: 3px; }
.tr .tr-mehr:hover { color: #a52a32; }
.tr .tr-spruch { margin: 10px 0 0; }
.tr .tr-spruch-kopf { font-size: var(--fs-s); letter-spacing: 2px; text-transform: uppercase; padding-bottom: 6px; }
.tr .tr-spruch-inhalt { display: flex; gap: 12px; align-items: center; }
.tr .tr-spruch-bild { flex: none; padding: 4px; background: #e2cd9c; border: 4px solid var(--tinte); }
.tr .tr-spruch blockquote { margin: 0; font-size: var(--fs-s); line-height: 1.5; }
.tr .tr-spruch cite { display: block; font-style: normal; font-size: var(--fs-s); color: #6e5434; margin-top: 4px; }

/* ---------- Fußzeile ---------- */
.tr-fuss { display: grid; gap: 4px; justify-items: center; text-align: center; padding: 22px 16px calc(34px + env(safe-area-inset-bottom)); font-size: var(--fs-s);
  color: var(--papier); text-shadow: 2px 2px 0 #070c09; }
.tr-fuss a { color: var(--gold-hell); display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; padding: 0 8px; vertical-align: middle; }
.tr .zustimmung { margin: 16px auto 0; text-align: left; }
.tr-start .zustimmung { bottom: 8px; }

/* Gruß nur am Desktop (am Handy ist die Leiste mit den Chips voll); die Sprache sitzt seit 0.10.9 in der Kartensammlung */
.tr-gruss { display: none; }
@media (min-width: 900px) {
  .tr-gruss { display: inline; }
  .tr-unten { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); align-items: start; padding: 24px 24px 8px; }
  .tr-unten > .tr-hinweis { grid-column: 1 / -1; justify-self: center; width: min(100%, 640px); }
  .tr-schilder { grid-template-columns: 1fr 1fr; }
  .tr-schilder.ungerade .haupt { grid-column: 1 / -1; }
}
/* Große Bildschirme (0.10.18): breiter, damit die (am Desktop seit 0.10.18 größeren) Untertitel der Schilder und die Zeitung
   in eine Zeile passen statt drei- und viermal umzubrechen */
@media (min-width: 1400px) { .tr-unten { max-width: min(1560px, 92vw); } }

/* ---------- Ladeanzeige: Zeitungen werden gestapelt ---------- */
.tr-laden { display: grid; place-items: center; }
.tr-laden-mitte { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 24px 16px; text-align: center; }
.tr-lade-schild { padding: 2px 14px 6px; background: none; box-shadow: 0 6px 0 rgba(7, 12, 9, .55); }
.tr-lade-schild .logo { margin: 0; }
.tr-lade-schild .logo-zeile + .logo-zeile { color: var(--gold-hell); }
.tr .tr-unterzeile, .tr .tr-lade-text { margin: 0; font-size: var(--fs-s); text-shadow: 2px 2px 0 #070c09; }
.tr .tr-lade-text { color: var(--gold-hell); min-height: 20px; }
.tr .tr-tipp { margin: 0; max-width: 36ch; font-size: var(--fs-s); line-height: 1.6; color: #d8cbb0; text-shadow: 2px 2px 0 #070c09; }
@media (min-width: 900px) { .tr .tr-lade-text { font-size: 32px; } }
@media (max-width: 420px) { .tr-lade-schild .logo { font-size: 48px; } }
/* Logo seit 0.10.3: Ladeanzeige zeigt das Email-Gassenschild als Pixelbild (kein Text-Rahmen mehr) */
.tr-lade-schild { margin: 0; padding: 0; background: none; box-shadow: none; line-height: 0; }
.tr-lade-schild canvas { display: block; margin-inline: auto; filter: drop-shadow(0 6px 0 rgba(7, 12, 9, .55)); }
