/* The comic skin (play-test round 3, E; owner 2026-11-14 "Comic überall"):
   loaded after components.css and youth.css, it gives the shared parts the
   look of the approved mockup: halftone page, ink outlines, hard shadows,
   display type (Bangers), tilted title tags, press-in buttons. Colours come
   from tokens.css only; layout and sizes stay with components.css, so a
   view's own rules keep working. The newspaper sheet has its own block at
   the end. */

/* ---- page ---- */
body {
  background-color: var(--bg);
  background-image: radial-gradient(var(--dots) 1.4px, transparent 1.6px);
  background-size: 9px 9px;
  font-weight: 600;
}
h1, .page-head h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 2rem;
  letter-spacing: .04em;
  line-height: 1.05;
  color: var(--accent);
  text-shadow: 3px 3px 0 var(--ink);
}
h2, h3 { font-weight: 800; }
.page-head h1 { transform: rotate(-1deg); }

/* ---- line icons: bolder strokes, no neon ---- */
.icon { stroke-width: 2.2; }

/* ---- top bar and round bar: ink edges ---- */
.topbar { border-bottom: var(--line) solid var(--ink); box-shadow: 0 3px 0 var(--ink); }
.topbar__title { font-family: var(--font-display); font-weight: 400; font-size: 1.35rem; letter-spacing: .04em; }
.roundbar { border-top: var(--line) solid var(--ink); }
@media (min-width: 1024px) {
  .roundbar { border-top: 0; border-bottom: var(--line) solid var(--ink); }
}

/* ---- buttons: ink frame, hard shadow, pressed in on click ---- */
.btn {
  border: var(--line-thin) solid var(--ink);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.12rem;
  letter-spacing: .05em;
  line-height: 1.1;
  transition: transform .08s, box-shadow .08s;
}
.btn:active:not(:disabled) { transform: translate(3px, 3px); box-shadow: none; }
.btn--primary { border-color: var(--ink); }
.btn--primary:hover { border-color: var(--ink); }
.btn--danger { border-color: var(--ink); background: var(--surface-2); color: var(--danger-text); }
.btn--ghost { box-shadow: none; border-color: transparent; }
.btn--ghost:active:not(:disabled) { transform: none; }
.btn:disabled, .btn[aria-disabled=true] { box-shadow: none; }

/* ---- panels: ink frame and a tilted title tag ---- */
.panel {
  border: var(--line) solid var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.panel__title {
  display: inline-block;
  margin: 0 0 10px;
  padding: 3px 12px 2px;
  background: var(--accent);
  color: var(--text-on-accent);
  border: var(--line-thin) solid var(--ink);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.1rem;
  letter-spacing: .05em;
  text-transform: none;
  transform: rotate(-1.5deg);
  transform-origin: left center;
  max-width: 100%;
  overflow-wrap: anywhere;
}
.game-card {
  border: var(--line-thin) solid var(--ink);
  box-shadow: var(--shadow-sm);
}

/* ---- scoreboard: the "video cube" ---- */
.led-board {
  border: var(--line) solid var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow), inset 0 0 0 3px var(--surface-2);
  padding: 12px 10px;
}
.led-board__name { font-family: var(--font-display); font-weight: 400; font-size: 1.3rem; letter-spacing: .05em; }
.led { font-family: var(--font-display); font-weight: 400; letter-spacing: .08em; text-shadow: var(--glow-led), 2px 2px 0 var(--ink); }
.led--xl { font-size: 2.4rem; line-height: 1; }

/* ---- warning lamps: round bulbs ---- */
.lamp { font-weight: 800; }
.lamp__dot {
  position: relative;
  width: 22px;
  height: 22px;
  border: var(--line-thin) solid var(--ink);
  box-shadow: inset -3px -3px 0 rgba(0, 0, 0, .25);
}
.lamp__dot::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 4px;
  width: 6px;
  height: 4px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .55);
  transform: rotate(-30deg);
}
.lamp--warn .lamp__dot {
  box-shadow: inset -3px -3px 0 rgba(0, 0, 0, .25);
  animation: lamp-wobble 1.6s ease-in-out infinite;
}
.lamp--warn .icon { filter: none; }
@keyframes lamp-wobble {
  0%, 80%, 100% { transform: rotate(0); }
  85% { transform: rotate(-14deg) scale(1.1); }
  90% { transform: rotate(12deg) scale(1.1); }
  95% { transform: rotate(-6deg); }
}

/* ---- main menu tiles ---- */
.tiles { gap: 10px; }
.tile {
  border: var(--line-thin) solid var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.05rem;
  letter-spacing: .05em;
  transition: transform .1s, box-shadow .1s;
}
.tile:hover { transform: translate(-2px, -2px) rotate(-1.5deg); box-shadow: 5px 5px 0 var(--ink); }
.tile .icon { stroke: var(--text); }
@media (min-width: 600px) { .tile { font-size: 1.25rem; } }

/* ---- tables ---- */
.table-wrap { border: var(--line) solid var(--ink); box-shadow: var(--shadow); }
.data-table th { font-family: var(--font-display); font-weight: 400; font-size: .95rem; letter-spacing: .06em; text-transform: none; border-bottom: var(--line-thin) solid var(--ink); }

/* ---- tabs: comic tabs on an ink line ---- */
.tabs__list { gap: 6px; border-bottom: var(--line) solid var(--ink); padding: 4px 4px 0; }
.tabs__tab {
  border: var(--line-thin) solid var(--ink);
  border-bottom: 0;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  background: var(--surface-2);
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.05rem;
  letter-spacing: .05em;
}
.tabs__tab[aria-selected=true] { background: var(--accent); color: var(--text-on-accent); }

/* ---- badges: chips with an ink edge (the colour of the edge keeps its meaning) ---- */
.badge { border-width: var(--line-thin); border-radius: 999px; font-weight: 800; }

/* ---- dialogs, fields, notices ---- */
.dialog { border: var(--line) solid var(--ink); border-radius: var(--radius); box-shadow: 6px 6px 0 var(--ink); }
.dialog__head h2 { font-family: var(--font-display); font-weight: 400; font-size: 1.4rem; letter-spacing: .04em; }
input, select, textarea { border-width: var(--line-thin); border-radius: var(--radius-sm); font-weight: 700; }
.form-notice { border: var(--line-thin) solid var(--ink); border-left-width: 6px; }
.form-notice--error { border-left-color: var(--danger); }
.form-notice--matchday { border-left-color: var(--led); }
.form-notice--ok { border-left-color: var(--lamp-ok); }

/* ---- Pingi: a white comic speech bubble ---- */
.pingi__img { filter: none; }
.pingi__bubble {
  background: var(--bubble);
  color: var(--paper-ink);
  border: var(--line) solid var(--ink);
  border-radius: 20px 20px 20px 6px;
  box-shadow: var(--shadow-sm);
  font-weight: 700;
}
.pingi__bubble a { color: var(--paper-red); }
.pingi__bubble .btn { color: var(--text); }
.pingi__bubble .btn--primary { color: var(--text-on-accent); }
.pingi__bubble .pingi__name { color: var(--paper-muted); }
.pingi--alert .pingi__bubble { border-color: var(--ink); box-shadow: 3px 3px 0 var(--lamp-warn); }

/* ---- profile chips and avatars ---- */
.avatar { border-color: var(--ink); }
.profile-chip.is-acting { border: var(--line-thin) solid var(--ink); box-shadow: var(--shadow-sm); }
.profile-chip.is-acting .avatar { border-color: var(--ink); box-shadow: none; }

/* ---- the PIN pad ---- */
.pinpad__key { border: var(--line-thin) solid var(--ink); box-shadow: var(--shadow-sm); font-family: var(--font-display); font-weight: 400; font-size: 1.6rem; }
.pinpad__key--ok { border-color: var(--ink); }
.pingi__bubble .muted, .pingi__bubble small { color: var(--paper-muted); }
.pingi__img { width: 64px; height: 77px; }

/* ghost buttons on light ground (the speech bubble, the newspaper sheet) */
.pingi__bubble .btn--ghost, .paper__sheet .btn--ghost { color: var(--paper-red); }
.pingi__bubble .btn--ghost .icon, .paper__sheet .btn--ghost .icon { stroke: currentColor; }
.paper__sheet .btn--ghost:hover { background: var(--paper-2); color: var(--paper-ink); }
.paper__sheet .paper__item--rubric { align-self: start; }

/* phone: three tiles a row, the display type needs the room */
@media (max-width: 479px) {
  .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tile { font-size: clamp(.8rem, 4vw, .95rem); letter-spacing: .02em; overflow-wrap: normal; hyphens: auto; }
}
.pingi__bubble .btn--ghost:hover { background: var(--paper-2); color: var(--paper-ink); }

/* focus on light ground: the cyan ring would vanish on paper and bubble */
.paper__sheet :focus-visible, .pingi__bubble :focus-visible { outline-color: var(--paper-ink); }

/* an icon on the yellow title tag takes the tag's ink */
.panel__title .icon { stroke: currentColor; filter: none; }
