*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Segoe UI", system-ui, sans-serif;
  background: linear-gradient(160deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
  color: #e2e8f0;
  min-height: 100vh;
}

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  background: rgba(15, 23, 42, 0.85);
  border-bottom: 1px solid #334155;
}

header h1 {
  margin: 0;
  font-size: 1.25rem;
  letter-spacing: 0.05em;
}

nav a {
  color: #94a3b8;
  text-decoration: none;
  margin-left: 1.25rem;
  font-weight: 500;
}

nav a:hover,
nav a.active {
  color: #38bdf8;
}

main {
  max-width: 960px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

.game-panel {
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
}

.game-panel h2 {
  margin-top: 0;
  color: #f8fafc;
}

canvas {
  display: block;
  margin: 1rem auto;
  background: #0f172a;
  border: 2px solid #475569;
  border-radius: 8px;
  max-width: 100%;
}

.stats {
  display: flex;
  gap: 2rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.stats span {
  color: #38bdf8;
  font-weight: 700;
}

.hint {
  text-align: center;
  color: #94a3b8;
  font-size: 0.9rem;
  margin-top: 0.5rem;
}

.btn {
  display: inline-block;
  padding: 0.6rem 1.2rem;
  background: #0284c7;
  color: #fff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
}

.btn:hover {
  background: #0369a1;
}

.content {
  line-height: 1.7;
}

.content h2 {
  color: #f1f5f9;
}

.content ul {
  padding-left: 1.25rem;
}

.scores-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
}

.scores-table th,
.scores-table td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid #334155;
}

.scores-table th {
  color: #94a3b8;
  font-weight: 600;
}

.highlight {
  color: #fbbf24;
  font-size: 2rem;
  font-weight: 700;
}

footer {
  text-align: center;
  padding: 2rem;
  color: #64748b;
  font-size: 0.85rem;
}
