:root {
  --bg: #0c0e14;
  --surface: #141824;
  --surface-hover: #1a2030;
  --border: rgba(255, 255, 255, 0.08);
  --text: #f3f4f8;
  --muted: #9aa3b5;
  --accent: #f5b014;
  --accent-hover: #ffc53d;
  --star: #f5b014;
  --star-empty: #3d4455;
  --rank-gold: linear-gradient(135deg, #ffd36a, #f5b014);
  --radius: 14px;
  --container: min(920px, 100% - 2rem);
  --font: system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  width: var(--container);
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 999;
  padding: 0.75rem 1rem;
  background: var(--accent);
  color: #111;
  font-weight: 700;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

.site-header {
  padding: 2rem 0 1.25rem;
  text-align: center;
  border-bottom: 1px solid var(--border);
  background: radial-gradient(ellipse 70% 80% at 50% -30%, rgba(245, 176, 20, 0.12), transparent);
}

.site-header h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.5rem, 4vw, 2rem);
  letter-spacing: -0.03em;
}

.site-header p {
  margin: 0 auto;
  max-width: 42rem;
  color: var(--muted);
  font-size: 0.9375rem;
}

.updated-badge {
  display: inline-block;
  margin-bottom: 0.75rem;
  padding: 0.3rem 0.65rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
  border: 1px solid rgba(245, 176, 20, 0.35);
  border-radius: 999px;
}

main {
  padding: 1.5rem 0 3rem;
}

.rating-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

.casino-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: center;
  padding: 1rem 1.15rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.2s, background 0.2s;
}

.casino-card:hover {
  background: var(--surface-hover);
  border-color: rgba(245, 176, 20, 0.25);
}

.casino-card.is-top {
  border-color: rgba(245, 176, 20, 0.45);
  box-shadow: 0 0 0 1px rgba(245, 176, 20, 0.08);
}

.rank {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 2.75rem;
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--muted);
}

.rank-num {
  font-weight: 800;
  font-size: 1.125rem;
  color: var(--muted);
}

.casino-card.is-top .rank-num {
  background: var(--rank-gold);
  color: #1a1200;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.125rem;
}

.card-body {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1rem 1.25rem;
  align-items: center;
  width: 100%;
  min-width: 0;
}

.logo-wrap {
  width: 72px;
  height: 72px;
  padding: 10px;
  background: #fff;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.logo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.info h2 {
  margin: 0 0 0.35rem;
  font-size: 1.125rem;
  font-weight: 700;
}

.stars {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 0.4rem;
}

.stars-visual {
  display: inline-flex;
  gap: 2px;
  color: var(--star);
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}

.stars-visual .empty {
  color: var(--star-empty);
}

.rating-num {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--muted);
}

.bonus {
  margin: 0;
  font-size: 0.875rem;
  color: var(--muted);
}

.bonus strong {
  color: var(--accent);
  font-weight: 600;
}

.card-actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.35rem;
  flex-shrink: 0;
}

.btn-play {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.35rem;
  font-size: 0.9375rem;
  font-weight: 700;
  color: #111;
  background: var(--accent);
  border-radius: 10px;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s, transform 0.15s;
}

.btn-play:hover {
  background: var(--accent-hover);
  text-decoration: none;
  transform: translateY(-1px);
}

.legal-note {
  font-size: 0.6875rem;
  color: var(--muted);
  text-align: center;
  opacity: 0.85;
}

.site-footer {
  padding: 1.5rem 0 2rem;
  border-top: 1px solid var(--border);
  font-size: 0.8125rem;
  color: var(--muted);
  text-align: center;
}

.site-footer p {
  margin: 0 0 0.5rem;
  max-width: 52rem;
  margin-inline: auto;
}

.age {
  display: inline-block;
  margin-top: 0.5rem;
  padding: 0.2rem 0.45rem;
  font-weight: 800;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 4px;
}

@media (max-width: 720px) {
  .casino-card {
    grid-template-columns: 1fr;
  }

  .rank {
    flex-direction: row;
    justify-content: flex-start;
    gap: 0.5rem;
  }

  .card-body {
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
  }

  .card-actions {
    grid-column: 1 / -1;
  }

  .btn-play {
    width: 100%;
  }
}
