/* Import a modern, angular font from Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700&display=swap');

:root {
  --primary-color: #ff0000;
  --secondary-color: #00eeff;
  --dark-background: #ffffff;
  --dark-surface: #1e1e1e;
  --font-color: #000000;
  --muted-bg: rgba(0,0,0,0.03);
  --card-bg: #f7f7f7;
  --focus-ring: rgba(21,156,228,0.3);
  --focus-border: rgba(21,156,228,0.6);
  --gap: 0.6rem;
}

html, body {
  height: 100%;
}

body {
  font-family: 'Orbitron', sans-serif;
  background-color: var(--dark-background);
  color: var(--font-color);
  margin: 0;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  padding-bottom: 2rem;
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.2s ease, transform 0.12s ease, box-shadow 0.12s ease;
}

a:hover {
  color: var(--secondary-color);
}

/* Announcement */
#announcementNotice {
  color: red;
  margin: 0.75rem 1rem 0.25rem;
  font-size: 1.05rem;
}

.announcement-text {
  margin: 0 1rem 0.75rem;
  font-size: 0.95rem;
}

/* Hero */
.hero-section {
  padding: 1.25rem 1rem;
  text-align: center;
}
.hero-title {
  margin: 0;
  font-size: 2rem;
  letter-spacing: 0.06em;
}

/* Games section (vertical list: one on top of each other) */
.games-section {
  padding: 1rem;
}

.games-list {
  display: block; /* vertical flow */
  background: var(--muted-bg);
  border-radius: 8px;
  padding: 0.5rem;
  margin-top: 0.5rem;
}

/* Each link becomes a full-width "card" stacked vertically */
.games-list a {
  display: block;
  width: 100%;
  box-sizing: border-box;
  padding: 0.9rem 1rem;
  margin-bottom: var(--gap);
  background: var(--card-bg);
  color: var(--font-color);
  border-radius: 6px;
  border: 1px solid rgba(0,0,0,0.06);
  white-space: normal; /* allow wrapping */
  font-size: 1rem;
}

/* Last item spacing */
.games-list a:last-child {
  margin-bottom: 0;
}

/* Hover / focus */
.games-list a:hover,
.games-list a:focus {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.06);
  outline: none;
}

/* Keyboard focus visible */
.games-list a:focus-visible {
  outline: 3px solid var(--focus-ring);
  border-color: var(--focus-border);
}

/* Make tap targets larger on small screens */
@media (max-width: 480px) {
  .games-list a {
    padding: 1.1rem 1rem;
    font-size: 1.05rem;
  }
}

/* A tiny utility to keep main centered on wide screens */
@media (min-width: 900px) {
  main {
    max-width: 900px;
    margin: 0 auto;
  }
}

/* Settings */
.settings-section {
  margin-top: 1rem;
  text-align: left;
}

.settings-grid {
  display: grid;
  gap: 1rem;
}

.theme-box,
.cursor-box {
  background: var(--muted-bg);
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 8px;
  padding: 0.85rem;
}

.theme-toggle-btn {
  margin-top: 0.5rem;
  border: 1px solid rgba(0,0,0,0.12);
  background: var(--card-bg);
  color: var(--font-color);
  border-radius: 6px;
  padding: 0.6rem 0.8rem;
  font-family: inherit;
  font-weight: 700;
  cursor: pointer;
}

.cursor-grid {
  margin-top: 0.6rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(155px, 1fr));
  gap: 0.6rem;
}

.cursor-option {
  border: 1px solid rgba(0,0,0,0.1);
  background: var(--card-bg);
  color: var(--font-color);
  border-radius: 6px;
  padding: 0.6rem;
  text-align: center;
  font-family: inherit;
}

.cursor-option img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  display: block;
  margin: 0 auto 0.35rem;
}

.cursor-option.active {
  outline: 2px solid var(--focus-border);
  box-shadow: 0 0 0 3px var(--focus-ring);
}

.cursor-option.locked {
  opacity: 0.45;
  filter: grayscale(1);
}

/* Dark mode */
body.dark-mode {
  --dark-background: #111217;
  --font-color: #e9eef3;
  --muted-bg: rgba(255,255,255,0.04);
  --card-bg: #1a1d24;
  --focus-ring: rgba(0, 238, 255, 0.25);
  --focus-border: rgba(0, 238, 255, 0.65);
}

body.dark-mode .theme-box,
body.dark-mode .cursor-box,
body.dark-mode .games-list a,
body.dark-mode .theme-toggle-btn,
body.dark-mode .cursor-option {
  border-color: rgba(255,255,255,0.14);
}