@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&family=Space+Mono:wght@400;700&display=swap');

:root {
  --bg-deep: #130d0a;
  --bg-panel: #211712;
  --bg-panel-light: #2c2019;
  --accent-gold: #f2b544;
  --accent-red: #e8453c;
  --accent-teal: #3fae8f;
  --text-cream: #f3ead9;
  --text-dim: #a8917f;
  --line: #3a2c22;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
}

body {
  background: var(--bg-deep);
  background-image:
    repeating-linear-gradient(0deg, rgba(255,255,255,0.022) 0px, rgba(255,255,255,0.022) 1px, transparent 1px, transparent 3px);
  color: var(--text-cream);
  font-family: 'Space Mono', monospace;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.marquee {
  text-align: center;
  padding: 56px 20px 28px;
  border-bottom: 1px solid var(--line);
  background: radial-gradient(ellipse at top, rgba(242,181,68,0.08), transparent 60%);
}

.marquee h1 {
  font-family: 'Press Start 2P', monospace;
  font-size: clamp(22px, 5vw, 38px);
  color: var(--accent-gold);
  letter-spacing: 2px;
  margin: 0;
  text-shadow:
    0 0 6px rgba(242,181,68,0.55),
    0 0 18px rgba(242,181,68,0.25);
  animation: flicker 4.5s infinite ease-in-out;
}

@media (prefers-reduced-motion: reduce) {
  .marquee h1 { animation: none; }
}

@keyframes flicker {
  0%, 92%, 100% { opacity: 1; }
  93% { opacity: 0.85; }
  94% { opacity: 1; }
  95% { opacity: 0.7; }
  96% { opacity: 1; }
}

.marquee p {
  margin: 14px 0 0;
  font-size: 13px;
  color: var(--text-dim);
  letter-spacing: 1px;
}

.marquee p span {
  color: var(--accent-teal);
}

main {
  flex: 1;
  max-width: 980px;
  width: 100%;
  margin: 0 auto;
  padding: 48px 24px 64px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 26px;
}

.cabinet {
  position: relative;
  display: block;
  text-decoration: none;
  color: inherit;
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: 14px 14px 6px 6px;
  padding: 22px 16px 18px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.cabinet.live:hover,
.cabinet.live:focus-visible {
  transform: translateY(-4px);
  border-color: var(--accent-gold);
  box-shadow: 0 10px 24px rgba(0,0,0,0.4), 0 0 0 1px rgba(242,181,68,0.3);
  outline: none;
}

.cabinet.soon {
  cursor: default;
  opacity: 0.55;
}

.screen {
  background: #0b0705;
  border: 1px solid var(--line);
  border-radius: 8px;
  height: 92px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 38px;
  margin-bottom: 14px;
  position: relative;
  overflow: hidden;
}

.cabinet.live .screen {
  box-shadow: inset 0 0 18px rgba(242,181,68,0.05);
}

.cabinet.live:hover .screen,
.cabinet.live:focus-visible .screen {
  box-shadow: inset 0 0 22px rgba(242,181,68,0.25);
}

.cabinet h2 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin: 0 0 12px;
  text-align: center;
  color: var(--text-cream);
}

.controls {
  display: flex;
  justify-content: center;
  gap: 10px;
}

.controls span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--line);
}

.cabinet.live .controls span:nth-child(1) { background: var(--accent-red); }
.cabinet.live .controls span:nth-child(2) { background: var(--accent-teal); }

.ribbon {
  position: absolute;
  top: 10px;
  right: -2px;
  background: var(--accent-red);
  color: var(--text-cream);
  font-size: 9px;
  letter-spacing: 1px;
  padding: 3px 8px;
  border-radius: 3px 0 0 3px;
}

.empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-dim);
  font-size: 13px;
  border: 1px dashed var(--line);
  border-radius: 10px;
}

footer {
  text-align: center;
  padding: 22px;
  font-size: 11px;
  color: var(--text-dim);
  border-top: 1px solid var(--line);
  letter-spacing: 0.5px;
}

footer a {
  color: var(--accent-gold);
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}
