:root { color-scheme: dark; }

* { box-sizing: border-box; }

body {
  margin: 0;
  background: #0b0e14;
  color: #e8e8ea;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.5;
}

main {
  max-width: 720px;
  margin: 0 auto;
  padding: 24px 16px 48px;
}

h1 {
  font-size: 28px;
  margin: 0 0 4px;
}

h2 {
  font-size: 16px;
  margin: 32px 0 8px;
  color: #9aa0ab;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.tagline {
  color: #9aa0ab;
  margin: 0 0 24px;
}

.muted { color: #9aa0ab; }

textarea {
  width: 100%;
  background: #131722;
  color: #e8e8ea;
  border: 1px solid #2a3040;
  border-radius: 8px;
  padding: 12px;
  font: inherit;
  resize: vertical;
}

textarea:focus, button:focus-visible {
  outline: 2px solid #ffd54a;
  outline-offset: 1px;
}

.row {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  flex-wrap: wrap;
}

button {
  flex: 1 1 200px;
  background: #131722;
  color: #e8e8ea;
  border: 1px solid #2a3040;
  border-radius: 8px;
  padding: 12px 16px;
  font: inherit;
  cursor: pointer;
}

button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

button.accent {
  background: #ffd54a;
  border-color: #ffd54a;
  color: #0b0e14;
  font-weight: 600;
}

button.accent:disabled { opacity: 0.45; }

#balance { margin: 10px 0 0; font-size: 14px; }

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.games li {
  border: 1px solid #2a3040;
  border-radius: 8px;
  padding: 12px 14px;
  margin-bottom: 10px;
}

.game-line { font-size: 15px; }

.game-line span { color: #ffd54a; }

.snippet {
  font-size: 13px;
  margin-top: 2px;
  overflow-wrap: break-word;
}

.games a {
  display: inline-block;
  margin-top: 8px;
  color: #ffd54a;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
}

.games a:hover { text-decoration: underline; }

@media (max-width: 360px) {
  h1 { font-size: 24px; }
  .row { flex-direction: column; }
  button { flex: 1 1 auto; width: 100%; }
}
