h1 { font-size: clamp(1.6rem, 6vw, 3rem); }

/* Particle canvas */
#particles {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

/* Live indicator */
.live-indicator {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.55rem;
  color: #555a8a;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-top: -28px;
}
.live-dot {
  width: 5px;
  height: 5px;
  background: var(--magenta);
  border-radius: 50%;
  box-shadow: 0 0 6px var(--magenta);
  animation: live-blink 1.4s ease-in-out infinite;
}
@keyframes live-blink {
  0%, 100% { opacity: 1; box-shadow: 0 0 6px var(--magenta); }
  50%       { opacity: 0.15; box-shadow: none; }
}
.live-count {
  color: var(--cyan);
  font-weight: bold;
}

/* Ripple click effect on cards */
.game-card { overflow: hidden; }
.ripple {
  position: absolute;
  width: 10px;
  height: 10px;
  background: rgba(0,245,255,0.35);
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(0);
  animation: ripple-expand 0.7s ease-out forwards;
  pointer-events: none;
}
@keyframes ripple-expand {
  to { transform: translate(-50%, -50%) scale(22); opacity: 0; }
}

.container {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  padding: 40px 20px max(40px, env(safe-area-inset-bottom, 20px)) 20px;
}

.subtitle {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  color: #555a8a;
  text-transform: uppercase;
  margin-top: -28px;
}

.games-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  max-width: 720px;
}

.game-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 28px 32px;
  border: 1px solid rgba(0,245,255,0.2);
  background: rgba(0,245,255,0.03);
  box-shadow: 0 0 20px rgba(0,245,255,0.06);
  text-decoration: none;
  color: inherit;
  transition: all 0.2s;
  width: 220px;
  flex: 0 0 220px;
}
@media (max-width: 500px) {
  .game-card { width: calc(50vw - 30px); flex: 0 0 calc(50vw - 30px); }
}
.game-card:hover {
  border-color: var(--cyan);
  background: rgba(0,245,255,0.07);
  box-shadow: 0 0 30px rgba(0,245,255,0.2);
  transform: translateY(-4px);
}

.game-icon  { font-size: 2.4rem; }
.game-title {
  font-family: 'Russo One', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--cyan);
}
.game-desc {
  font-size: 0.65rem;
  color: #555a8a;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
}
.catalog-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.badge-new {
  font-size: 0.55rem;
  letter-spacing: 0.12em;
  color: var(--magenta);
  border: 1px solid var(--magenta);
  padding: 2px 8px;
  text-transform: uppercase;
}

/* ── Terminal widget ────────────────────────────────────────── */
.terminal {
  width: 100%;
  max-width: 580px;
  border: 1px solid rgba(0,245,255,0.25);
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(4px);
  font-family: 'Jura', monospace;
  font-size: 0.8rem;
}
.term-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 12px;
  border-bottom: 1px solid rgba(0,245,255,0.15);
  background: rgba(0,245,255,0.05);
}
.term-title {
  font-family: 'Russo One', sans-serif;
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  color: var(--cyan);
}
.term-hint {
  font-size: 0.6rem;
  color: #444;
  letter-spacing: 0.08em;
}
.term-output {
  min-height: 80px;
  max-height: 200px;
  overflow-y: auto;
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  scrollbar-width: thin;
  scrollbar-color: rgba(0,245,255,0.2) transparent;
}
.term-line { line-height: 1.5; white-space: pre-wrap; word-break: break-word; }
.term-line.cmd  { color: var(--cyan); }
.term-line.out  { color: rgba(0,245,255,0.65); }
.term-line.err  { color: var(--magenta); }
.term-line.info { color: var(--yellow); }
.term-input-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-top: 1px solid rgba(0,245,255,0.12);
}
.term-prompt {
  color: var(--magenta);
  font-size: 0.7rem;
  white-space: nowrap;
  flex-shrink: 0;
}
.term-input {
  background: transparent;
  border: none;
  outline: none;
  color: var(--cyan);
  font-family: inherit;
  font-size: inherit;
  flex: 1;
  caret-color: var(--cyan);
}
.term-input::placeholder { color: #333; }

@media (max-width: 500px) {
  .term-output { max-height: 120px; }
}
