/* Goetschi Arcade · Corporate Identity v2
   Quelle: Goetschi Labs CI (Brand DNA v1.0.002, Art Direction v1.0.002, Agent Redesign Contract).
   Ruhig · hochwertig · technologisch · eigenständig · subtil · wiedererkennbar.
   Signatur: die "Lichtachse" – eine 1-px-Linie mit Knoten, die Kopfzeile, Abschnitte und Karten verbindet.
   Wird NACH design.css / platforms.css / portal.css / ai-lab.css / store.css geladen. Keine DOM-Hooks geändert. */

/* ───────── Grundlage ───────── */
html { background: var(--bg); }
body { background: transparent; color: var(--text); font-family: var(--font-body); letter-spacing: 0; }
body::before { /* GL-R03 Netzwerkmotiv, nur dunkel, ruhig maskiert */
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: url(/assets/brand/gl-network-bg.webp) center top / cover no-repeat;
  opacity: var(--brand-art-opacity);
  -webkit-mask-image: radial-gradient(ellipse 100% 80% at 50% 0%, #000 0, rgba(0,0,0,.45) 55%, transparent 100%);
          mask-image: radial-gradient(ellipse 100% 80% at 50% 0%, #000 0, rgba(0,0,0,.45) 55%, transparent 100%);
}
@media (prefers-color-scheme: light) { :root:not([data-theme]) body::before { display: none; } }
:root[data-theme="light"] body::before { display: none; }
::selection { background: color-mix(in srgb, var(--accent) 35%, transparent); }
h1, h2, h3, .brand-copy strong { font-family: var(--font-display); font-weight: 600; letter-spacing: -.012em; }
h1 { letter-spacing: -.025em; }
h1 em { font-style: normal; color: var(--accent); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 2px; }

/* Labels / Kicker: mono, leise, mit Lichtachse */
.section-kicker, .eyebrow, .lab-eyebrow, .lab-step, .sidebar-caption, .dashboard-kicker, .store-card-eyebrow,
.showcase-heading, .recent-label, .brand-copy small {
  font-family: var(--font-mono); font-weight: 500; letter-spacing: .14em; text-transform: uppercase;
}
.section-kicker, .eyebrow, .lab-eyebrow, .lab-step { font-size: 11px; color: var(--accent); display: inline-flex; align-items: center; gap: 10px; }
.section-kicker::before, .lab-step::before, .lab-eyebrow::before {
  content: ""; width: 28px; height: 1px; flex: none;
  background: linear-gradient(90deg, var(--accent), transparent);
}
.signal-dot, .eyebrow-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--accent); box-shadow: none; margin-right: 0; }

/* ───────── Buttons & Controls ───────── */
.primary-button, .hero-cta, .console-store-cta, .store-primary {
  border-radius: var(--radius-control); background: var(--accent); color: var(--accent-ink);
  font-family: var(--font-display); font-weight: 600; font-size: 14px; letter-spacing: 0;
  box-shadow: none; border: 1px solid var(--accent); transition: background .16s, border-color .16s;
}
.primary-button:hover, .hero-cta:hover, .console-store-cta:hover { filter: none; background: color-mix(in srgb, var(--accent) 86%, #fff); }
.text-button, .action button, .system-filter, .filter-button, .lab-jump button, .console-arrow {
  border-radius: var(--radius-control); background: transparent; color: var(--text); border: 1px solid var(--line-strong);
  font-weight: 600; transition: border-color .16s, background .16s, color .16s;
}
.text-button { color: var(--text); }
.text-button:hover, .action button:hover:not(:disabled), .system-filter:hover, .filter-button:hover, .lab-jump button:hover, .console-arrow:hover {
  background: var(--surface); border-color: var(--accent); color: var(--text);
}
.filter-button.active, .system-filter.active, .system-filter[data-platform].active {
  background: color-mix(in srgb, var(--accent) 14%, var(--surface)); color: var(--text); border-color: var(--accent);
  box-shadow: inset 0 -2px 0 var(--accent);
}
.theme-control select, .panel input, .panel select, .panel textarea, .lab-view .lab-form select, .lab-view .lab-form input,
.settings-card select, .console-discovery input, .search-field, .portal-search {
  border-radius: var(--radius-control); border-color: var(--line-strong); background: var(--bg-elevated);
}
.search-field:focus-within, .portal-search:focus-within, .panel input:focus, .panel select:focus, .panel textarea:focus {
  border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent);
}
.count-pill, .admin-count, .user-pill, .recent-strip a { border-radius: var(--radius-control); border-color: var(--line-strong); background: transparent; color: var(--muted); font-family: var(--font-mono); font-size: 11px; letter-spacing: .06em; }
.recent-strip a { color: var(--text); }
.skip-link { border-radius: var(--radius-control); font-weight: 700; }

/* ───────── Kopfzeile + Marke ───────── */
.site-header, .arcade-portal .portal-header { border-bottom: 0; position: relative; }
.site-header::after { /* Lichtachse */
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: linear-gradient(90deg, var(--accent) 0, var(--line-strong) 14%, var(--line) 60%, transparent 100%);
}
.site-header::before { content: ""; position: absolute; left: 0; bottom: -2px; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); z-index: 1; }
.brand { gap: 14px; }
.brand img { border-radius: 8px; width: 46px; height: 46px; background: transparent; box-shadow: none; object-fit: contain; }
.brand-copy { gap: 4px; }
.brand-copy strong { font-size: 17px; font-weight: 600; letter-spacing: -.01em; color: var(--text); }
.brand-copy strong span { color: var(--accent); }
.brand-copy small { font-size: 9px; color: var(--muted); letter-spacing: .2em; }
.nav-link { border-radius: var(--radius-control); font-weight: 600; }
.nav-link.current, .nav-link:hover { background: transparent; color: var(--text); box-shadow: inset 0 -2px 0 var(--accent); border-radius: 0; }
.portal-search kbd { font-family: var(--font-mono); border-radius: 3px; }

/* ───────── Landing ───────── */
.landing-halo { display: none; }
.landing-hero { padding: clamp(56px, 8vw, 120px) 0 clamp(48px, 6vw, 90px); align-items: center; }
.landing-copy h1 { font-size: clamp(38px, 5vw, 72px); line-height: 1.06; letter-spacing: -.03em; font-weight: 600; max-width: 14ch; }
.landing-copy .lede { color: var(--muted); max-width: 52ch; }
.landing-secondary { color: var(--muted); text-decoration: none; border-bottom: 1px solid var(--line-strong); padding-bottom: 3px; font-weight: 600; }
.landing-secondary:hover { color: var(--text); border-color: var(--accent); }
.hero-note { font-family: var(--font-mono); font-size: 11px; letter-spacing: .06em; color: var(--muted); }
.landing-showcase { /* ruhiges Bild ohne Neigung, Text unter dem Bild – nie über Cover-Schrift */
  transform: none; border-radius: var(--radius-panel); padding: 12px; background: color-mix(in srgb, var(--surface) 88%, transparent);
  border: 1px solid var(--line-strong); box-shadow: var(--shadow); position: relative;
}
.landing-showcase::before { content: ""; position: absolute; left: 22px; right: 22px; top: -1px; height: 1px; background: linear-gradient(90deg, transparent, var(--accent), transparent); }
.showcase-heading { padding: 4px 4px 12px; font-size: 10px; letter-spacing: .16em; font-weight: 500; }
.showcase-live { color: var(--accent); }
.showcase-feature { display: block; aspect-ratio: auto; border-radius: 6px; background: transparent; overflow: visible; }
.showcase-feature:after { display: none; }
.showcase-feature img { position: static; display: block; width: 100%; aspect-ratio: 16 / 9; height: auto; object-fit: cover; border-radius: 6px; }
.showcase-feature > div { padding: 14px 4px 4px; color: var(--text); }
.showcase-feature span { color: var(--accent); font-family: var(--font-mono); font-weight: 500; letter-spacing: .14em; }
.showcase-feature strong { font-family: var(--font-display); font-size: clamp(18px, 2vw, 24px); font-weight: 600; line-height: 1.25; }
.showcase-feature small { color: var(--muted); }
.showcase-duo { gap: 8px; margin-top: 10px; }
.showcase-duo > div { aspect-ratio: auto; border-radius: 6px; overflow: hidden; background: transparent; display: grid; gap: 7px; }
.showcase-duo img { aspect-ratio: 16 / 9; height: auto; border-radius: 6px; display: block; }
.showcase-duo strong { position: static; padding: 0 2px 2px; background: none; color: var(--muted); font-size: 12px; font-weight: 600; }
.landing-benefits { padding: 30px 0 70px; }
.landing-benefit-grid { gap: 0; border-top: 1px solid var(--line); }
.landing-benefit-grid article { background: none; border: 0; border-radius: 0; padding: 28px 28px 8px 0; position: relative; }
.landing-benefit-grid article + article { padding-left: 28px; border-left: 1px solid var(--line); }
.benefit-symbol { font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em; color: var(--accent); display: inline-flex; align-items: center; gap: 8px; }
.benefit-symbol svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.5; }
.landing-benefit-grid h3 { font-size: 19px; margin: 14px 0 8px; }
.landing-bottom { border-top: 1px solid var(--line); padding: 64px 0 90px; text-align: left; display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.landing-bottom .section-kicker { display: none; }
.landing-bottom h2 { margin: 0; font-size: clamp(24px, 3vw, 36px); font-weight: 600; }
.landing-bottom .primary-button { margin: 0; }

/* ───────── App-Shell / Navigation ───────── */
.portal-sidebar { border-right: 1px solid var(--line); gap: 2px; }
.sidebar-caption { font-size: 10px; letter-spacing: .18em; color: var(--muted); }
.portal-nav-link { border-radius: var(--radius-control); font-weight: 600; font-size: 13.5px; border: 0; position: relative; }
.portal-nav-link:hover { background: var(--surface); color: var(--text); border: 0; }
.portal-nav-link.current { background: color-mix(in srgb, var(--accent) 9%, transparent); color: var(--text); box-shadow: none; border: 0; }
.portal-nav-link.current::before { content: ""; position: absolute; left: 0; top: 10px; bottom: 10px; width: 2px; background: var(--accent); }
.nav-ico, .nav-glyph, .lab-icon { width: 20px; height: 20px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; color: var(--muted); }
.portal-nav-link.current .nav-ico, .portal-nav-link:hover .nav-ico, .portal-nav-link.current .lab-icon { color: var(--accent); }
.sidebar-bottom { font-family: var(--font-mono); font-size: 9px; letter-spacing: .14em; align-items: center; gap: 10px; }
.sidebar-bottom img { border-radius: 6px; width: 30px; height: 30px; background: #02060b; }
.portal-view h1, .console-heading h1 { font-size: clamp(30px, 3.4vw, 44px); font-weight: 600; letter-spacing: -.03em; line-height: 1.12; }
.section-description, .lede { color: var(--muted); }
.arcade-dashboard { border-top: 0; padding-top: 6px; }
.dashboard-heading { margin-bottom: 26px; }

/* Kennzahlen: offene Messwerte statt Kästchen */
.arcade-portal .portal-view .stats-grid, .stats-grid, .admin-overview { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; padding: 0; margin-bottom: 28px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.dash-stat { background: none; border: 0; border-radius: 0; padding: 18px 22px; gap: 6px; }
.dash-stat + .dash-stat { border-left: 1px solid var(--line); }
.dash-stat:first-child { padding-left: 0; }
.dash-stat > span { font-family: var(--font-mono); font-weight: 500; font-size: 10px; letter-spacing: .14em; }
.dash-stat strong { font-family: var(--font-display); font-weight: 500; letter-spacing: -.03em; }
.dash-stat small { font-family: var(--font-mono); color: var(--accent); }
.admin-overview .dash-stat { padding: 16px 22px; }

.dashboard-links { background: none; border: 0; border-radius: 0; padding: 4px 0 0; }
.dashboard-links h2 { font-size: 18px; font-weight: 600; }
.dashboard-links a { border-top-color: var(--line); padding: 15px 4px; transition: background .16s, padding .16s; }
.dashboard-links a:hover { background: color-mix(in srgb, var(--accent) 6%, transparent); padding-left: 10px; }
.dashboard-links a > span, .dashboard-links a > svg { width: 22px; height: 22px; color: var(--accent); flex: none; stroke: currentColor; fill: none; stroke-width: 1.6; }
.dashboard-links a > span { display: inline-flex; align-items: center; justify-content: center; font-size: 0; }
.dashboard-links a strong { font-size: 14px; font-family: var(--font-display); font-weight: 600; }

/* Empfohlenes Spiel: Bild, darunter Text – keine Überlagerung der Cover-Schrift */
.spotlight, .dashboard-duo .spotlight { min-height: 0; border-radius: var(--radius-panel); background: var(--surface); border: 1px solid var(--line-strong); display: flex; flex-direction: column; justify-content: flex-start; overflow: hidden; box-shadow: none; }
.spotlight img { position: static; z-index: 0; opacity: 1; width: 100%; aspect-ratio: 16 / 9; height: auto; object-fit: cover; display: block; }
.spotlight::before { display: none; }
.spotlight-inner { padding: 20px 22px 22px; color: var(--text); }
.spotlight .section-kicker { color: var(--accent); }
.spotlight h2 { font-size: 24px; margin: 8px 0 6px; font-weight: 600; letter-spacing: -.025em; }
.spotlight p { color: var(--muted); }
.spotlight-link { border-radius: var(--radius-control); border-color: var(--accent); color: var(--text); font-weight: 600; transition: background .16s; }
.spotlight-link:hover { background: color-mix(in srgb, var(--accent) 14%, transparent); }

/* ───────── Spielkarten ───────── */
.game-card, .portal-view .game-card, .platform-card {
  border-radius: var(--radius-panel); border: 1px solid var(--line); background: var(--surface);
  transition: border-color .2s, transform .2s, box-shadow .2s;
}
.game-card:hover, .platform-card:hover { transform: translateY(-2px); border-color: var(--accent); box-shadow: 0 14px 40px rgba(0,0,0,.28); }
:root[data-theme="light"] .game-card:hover { box-shadow: 0 12px 32px rgba(20,45,70,.14); }
.game-cover { background: linear-gradient(145deg, color-mix(in srgb, var(--game-accent, var(--accent)) 16%, var(--bg-elevated)), var(--bg-elevated)); }
.platform-card .game-cover { background: var(--bg-elevated); border-bottom: 1px solid var(--line) !important; background-image: none !important; }
.game-card:hover .game-cover img { transform: scale(1.025); }
.game-fallback { font-family: var(--font-display); font-weight: 500; color: var(--game-accent, var(--accent)); opacity: .85; }
.game-kind, .platform-card .game-kind {
  font-family: var(--font-mono); font-weight: 500; letter-spacing: .12em; font-size: 9.5px; border-radius: 3px;
  background: rgba(4,9,15,.82); color: #dbe7f1; border: 1px solid rgba(255,255,255,.14); backdrop-filter: blur(6px);
}
.featured-ribbon { background: var(--warm); color: #20180d; border-radius: 3px; font-family: var(--font-mono); font-weight: 600; letter-spacing: .1em; }
.game-info h3 { font-family: var(--font-display); font-weight: 600; letter-spacing: -.015em; font-size: 17px; }
.game-subtitle, .platform-card .game-subtitle { color: var(--accent); font-weight: 600; font-size: 12px; }
:root[data-theme="light"] .platform-card .game-subtitle, :root[data-theme="light"] .platform-card .game-action { color: var(--accent); }
.game-tag { border-radius: 3px; border-color: var(--line-strong); font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .04em; }
.game-action, .platform-card .game-action { color: var(--text); font-weight: 600; border-top-color: var(--line); }
.game-card:hover .game-action { color: var(--accent); }
.state { border-radius: var(--radius-panel); border-style: dashed; border-color: var(--line-strong); }
.originals-section { background: none; border: 0; border-top: 1px solid var(--line); border-radius: 0; padding: 22px 0 0; }

/* Konsolen: eigene, aber gedämpfte Materialtönung (funktionale Unterscheidung) */
.console-choice { border-radius: var(--radius-panel); background: var(--surface); border-color: var(--line); }
.console-choice.active { box-shadow: inset 0 -2px var(--console-color); background: color-mix(in srgb, var(--console-color) 7%, var(--surface)); }
.console-symbol { border-radius: 6px; font-size: 0; }
.console-symbol::before { content: ""; width: 10px; height: 10px; border: 1.5px solid currentColor; border-radius: 2px; display: block; }
.console-stage { border-radius: var(--radius-panel); background: var(--bg-elevated); }
.console-stage-heading h2, .console-heading h1 { font-family: var(--font-display); }

/* ───────── Panels / Admin / Einstellungen ───────── */
.panel, .settings-card, .lab-start-panel, .lab-content-section, .lab-health, .lab-hero {
  border-radius: var(--radius-panel); border: 1px solid var(--line); background: var(--surface);
}
.panel-symbol { border-radius: 6px; font-family: var(--font-mono); color: var(--accent); background: var(--surface-hi); }
.panel h2, .settings-card h2 { font-family: var(--font-display); font-weight: 600; letter-spacing: -.015em; }
.admin-hero h1 { font-size: clamp(30px, 4vw, 46px); font-weight: 600; letter-spacing: -.03em; }
.admin-status { border-radius: var(--radius-control); background: transparent; border-color: var(--line-strong); font-size: 13px; }
.entry { border-bottom-color: var(--line); }
.entry:hover { background: color-mix(in srgb, var(--accent) 4%, transparent); }
.action button { background: transparent; min-height: 36px; font-size: 12px; }
.panel input, .panel select, .panel textarea { background: var(--bg); }
.panel label, .lab-form-basics label, .lab-expert-fields label { font-weight: 600; }
.site-footer { border-top: 0; position: relative; margin-top: 80px; font-family: var(--font-mono); font-size: 11px; letter-spacing: .06em; align-items: center; }
.site-footer::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: linear-gradient(90deg, var(--line) 0, var(--line) 70%, transparent); }
.site-footer a { color: var(--text); }
.site-footer .footer-claim { color: var(--muted); }

/* ───────── AI Lab ───────── */
.lab-hero { position: relative; overflow: hidden; background: var(--surface); padding: clamp(22px, 3vw, 34px); }
.lab-hero > div { position: relative; z-index: 1; }
.lab-hero h1 { font-size: clamp(26px, 3.6vw, 40px); font-weight: 600; letter-spacing: -.03em; max-width: 18ch; }
.lab-hero-art { position: absolute; right: -10px; top: 0; bottom: 0; width: min(46%, 420px); color: var(--accent); opacity: .9; pointer-events: none; }
.lab-hero-art svg { width: 100%; height: 100%; }
.lab-hero-icon { display: none; }
.lab-jump button { font-family: var(--font-mono); font-size: 11px; letter-spacing: .06em; }
.lab-health-dot { background: var(--success); box-shadow: 0 0 0 4px color-mix(in srgb, var(--success) 18%, transparent); }
.lab-health[data-state="error"] .lab-health-dot { background: var(--warning); box-shadow: 0 0 0 4px color-mix(in srgb, var(--warning) 18%, transparent); }
.lab-metrics { gap: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 16px 0 6px; }
.lab-metric { background: none; border: 0; border-radius: 0; padding: 16px 22px; }
.lab-metric + .lab-metric { border-left: 1px solid var(--line); }
.lab-metric:first-child { padding-left: 0; }
.lab-metric strong { font-family: var(--font-display); font-weight: 500; letter-spacing: -.03em; }
.lab-metric span { font-family: var(--font-mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; }
.lab-section-top h2 { font-family: var(--font-display); font-weight: 600; }
.lab-expert { border-radius: var(--radius-control); }
.lab-expert summary::before { content: "+"; font-family: var(--font-mono); margin-right: 8px; color: var(--accent); }
.lab-expert[open] summary::before { content: "–"; }
.lab-tournament-launch, .lab-view .lab-rank-game, .lab-view .lab-tournament, .lab-view .lab-live-card { border-radius: var(--radius-control); background: var(--bg-elevated); }
.lab-view .lab-live-card { border-color: var(--line-strong); }
.lab-details { border-radius: var(--radius-control); }

/* ───────── Store ───────── */
.store-hero h1 { font-weight: 600; letter-spacing: -.03em; }
.store-card, .rom-discovery { border-radius: var(--radius-panel); }
.rom-discovery-icon { font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em; color: var(--accent); border: 1px solid var(--line-strong); border-radius: var(--radius-control); }
.store-hero { border-radius: var(--radius-panel); }

/* ───────── Mobile Navigation ───────── */
.mobile-portal-nav { background: color-mix(in srgb, var(--bg) 94%, transparent); border-top: 1px solid var(--line-strong); }
.mobile-portal-nav a { border-radius: var(--radius-control); font-weight: 600; }
.mobile-portal-nav a.current { background: transparent; color: var(--accent); box-shadow: inset 0 2px var(--accent); border-radius: 0; }
.mobile-portal-nav a svg { width: 21px; height: 21px; stroke: currentColor; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.mobile-portal-nav a span { font-size: 0; display: block; height: 21px; }

@media (max-width: 900px) {
  .landing-benefit-grid { grid-template-columns: 1fr; }
  .landing-benefit-grid article, .landing-benefit-grid article + article { padding: 24px 0 8px; border-left: 0; border-top: 1px solid var(--line); }
  .landing-benefit-grid article:first-child { border-top: 0; }
  .landing-bottom { flex-direction: column; align-items: flex-start; }
  .lab-hero-art { opacity: .35; width: 70%; }
}
@media (max-width: 760px) {
  .brand img { width: 40px; height: 40px; }
  .landing-copy h1 { font-size: clamp(34px, 10vw, 48px); }
  .arcade-portal .portal-view .stats-grid, .stats-grid, .admin-overview { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; }
  .dash-stat:nth-child(odd) { border-left: 0; padding-left: 0; }
  .dash-stat:nth-child(n+3) { border-top: 1px solid var(--line); }
  .lab-metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .lab-metric { padding: 12px 10px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
  .game-card:hover, .platform-card:hover { transform: none; }
}

/* Formulare: native Dateiauswahl und Prüffelder im Markenstil */
input[type="file"]::file-selector-button { font: inherit; font-weight: 600; color: var(--text); background: var(--surface-hi);
  border: 1px solid var(--line-strong); border-radius: var(--radius-control); padding: 6px 12px; margin-right: 12px; cursor: pointer; }
input[type="file"]::file-selector-button:hover { border-color: var(--accent); }
.lab-view .lab-primary-start { justify-content: center; }
.primary-button span[aria-hidden] { margin-left: 4px; }
