:root {
  --bg: #050816;
  --bg-soft: #101827;
  --bg-softer: #151b2d;
  --accent: #facc15;
  --accent-soft: rgba(250, 204, 21, 0.12);
  --text: #f9fafb;
  --muted: #9ca3af;
  --danger: #f97373;
  --radius: 12px;
  --radius-lg: 18px;
  --shadow-soft: 0 18px 40px rgba(0, 0, 0, 0.45);
  --transition: 0.18s ease-out;
  --max-width: 1120px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: radial-gradient(circle at top, #1f2937 0, #020617 45%, #000 100%);
  color: var(--text);
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
}

/* HEADER / NAV */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(14px);
  background: linear-gradient(to bottom, rgba(15, 23, 42, 0.95), rgba(15, 23, 42, 0.7));
  border-bottom: 1px solid rgba(148, 163, 184, 0.25);
}

.header-inner {
  margin: 0 auto;
  max-width: var(--max-width);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 18px;
}

.logo {
  font-weight: 800;
  letter-spacing: 0.06em;
  font-size: 1.1rem;
  text-transform: uppercase;
}

.logo span {
  color: var(--accent);
}

.main-nav {
  display: flex;
  gap: 12px;
  margin-left: 24px;
  flex: 1;
}

.nav-link {
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.9rem;
  color: var(--muted);
  border: 1px solid transparent;
  transition: var(--transition);
}

.nav-link:hover {
  color: var(--text);
  border-color: rgba(156, 163, 175, 0.4);
  background: rgba(15, 23, 42, 0.7);
}

.nav-link-active {
  color: #0f172a;
  background: var(--accent);
  border-color: transparent;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.user-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  color: var(--muted);
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(148, 163, 184, 0.4);
}

.user-icon {
  font-size: 0.95rem;
}

.page-main {
  margin: 0 auto;
  max-width: var(--max-width);
  padding: 24px 16px 40px;
}

/* BUTTONS */

.btn {
  border-radius: 999px;
  padding: 8px 16px;
  border: none;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, #facc15, #f97316);
  color: #0b1120;
  box-shadow: 0 10px 25px rgba(250, 204, 21, 0.45);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(250, 204, 21, 0.55);
}

.btn-secondary {
  background: rgba(15, 23, 42, 0.9);
  color: var(--text);
  border: 1px solid rgba(148, 163, 184, 0.5);
}

.btn-secondary:hover {
  background: rgba(15, 23, 42, 1);
  border-color: var(--accent);
}

.btn-ghost {
  background: transparent;
  color: var(--accent);
  border: 1px solid rgba(250, 204, 21, 0.35);
}

.btn-ghost:hover {
  background: rgba(250, 204, 21, 0.07);
}

/* HERO */

.hero {
  position: relative;
  margin-top: 16px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background-image:
    radial-gradient(circle at top, rgba(15, 23, 42, 0.25), rgba(15, 23, 42, 0.9)),
    url("assets/img/index-banner-bg.58138fb.jpg");
  background-image:
    radial-gradient(circle at top, rgba(15, 23, 42, 0.25), rgba(15, 23, 42, 0.9)),
    url("../assets/img/index-banner-bg.58138fb.jpg");
  background-size: cover;
  background-position: center;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(148, 163, 184, 0.55);
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1.1fr);
  gap: 22px;
  padding: 24px 22px 72px;
}

.hero-content {
  background: rgba(15, 23, 42, 0.72);
  border-radius: var(--radius-lg);
  padding: 18px 18px 16px;
  border: 1px solid rgba(148, 163, 184, 0.35);
}

.hero-content h1 {
  margin: 0 0 8px;
  font-size: 1.9rem;
}

.hero-content p {
  margin: 0 0 16px;
  color: var(--muted);
  max-width: 520px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}

.hero-points {
  list-style: none;
  padding-left: 0;
  margin: 10px 0 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.hero-points li::before {
  content: "• ";
  color: var(--accent);
}

.hero-side {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.hero-card {
  background: rgba(15, 23, 42, 0.82);
  border-radius: var(--radius-lg);
  padding: 16px 16px 18px;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(148, 163, 184, 0.4);
}

.hero-card-small {
  padding: 14px 16px;
}

.hero-card h2,
.hero-card h3 {
  margin: 0 0 4px;
}

.hero-card p {
  margin: 4px 0 10px;
}

.jackpot-amount {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--accent);
}

/* Hero badges */

.hero-badges {
  position: absolute;
  left: 50%;
  bottom: 10px;
  transform: translateX(-50%);
  display: flex;
  gap: 16px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(148, 163, 184, 0.4);
}

.hero-badges img {
  height: 34px;
}

/* SECTIONS, CARDS */

.section {
  margin-top: 28px;
}

.section-header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 14px;
}

.section-header h1,
.section-header h2 {
  margin: 0;
}

.section-subtitle {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.section-link {
  font-size: 0.9rem;
  color: var(--accent);
}

/* Game cards */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 14px;
}

.card-grid--games {
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}

/* New game card layout with hover */
.game-card {
  position: relative;
  background: var(--bg-soft);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.35);
  display: flex;
  flex-direction: column;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
  transform: translateY(0);
  transition: transform 0.18s ease-out, box-shadow 0.18s ease-out,
    border-color 0.18s ease-out;
}

.game-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.7);
  border-color: rgba(250, 204, 21, 0.6);
}

/* Make images full-width and visible */
.game-card .game-img {
  width: 100%;
  /*height: 220px;*/
  object-fit: cover;
  display: block;
  transition: transform 0.25s ease-out;
}

.game-card:hover .game-img {
  transform: scale(1.04);
}

/* Text + button area */
.game-info {
  padding: 14px 14px 18px;
  background: rgba(15, 23, 42, 0.9);
}

.game-info h3 {
  margin: 0 0 4px;
}

.game-info p {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 0.88rem;
}

/* Slight button hover buff inside cards */
.game-card .btn-ghost {
  transition: background 0.18s ease-out, transform 0.18s ease-out,
    box-shadow 0.18s ease-out;
}

.game-card .btn-ghost:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(250, 204, 21, 0.35);
}


/* Image-based game cards */

.game-card--image {
  position: relative;
  padding: 0;
  min-height: 210px;
  overflow: hidden;
  border-radius: 16px;
  border: none;
  box-shadow: 0 16px 35px rgba(0, 0, 0, 0.6);
  background-size: cover;
  background-position: center;
}
/* Ribbons */
.game-ribbon {
  position: absolute;
  top: 10px;
  left: -6px;
  padding: 3px 12px 4px 18px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #0b1120;
  background: var(--accent);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.5);
  clip-path: polygon(0 0, 100% 0, 100% 65%, 70% 100%, 0 100%);
}
.game-ribbon--exclusive {
  background: linear-gradient(135deg, #ec4899, #a855f7);
}
/* Ribbon variants */
.game-ribbon--hot {
  background: linear-gradient(135deg, #f97316, #facc15);
}

.game-ribbon--new {
  background: linear-gradient(135deg, #22c55e, #a3e635);
}

.game-ribbon--trending {
  background: linear-gradient(135deg, #38bdf8, #6366f1);
}

.game-ribbon--gold {
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
}

/* Background images */
.game-card--slot {
  background-image:
    linear-gradient(180deg, rgba(15, 23, 42, 0.1), rgba(15, 23, 42, 0.95)),
    url("../assets/img/Slot.webp?v=1");
}

.game-card--vikings {
  background-image:
    linear-gradient(180deg, rgba(15, 23, 42, 0.1), rgba(15, 23, 42, 0.95)),
    url("../assets/img/VikingsRiches.webp?v=1");
}

.game-card--gatsby {
  background-image:
    linear-gradient(180deg, rgba(15, 23, 42, 0.1), rgba(15, 23, 42, 0.95)),
    url("../assets/img/GreatCatsby.webp?v=1");
}

.game-card--sizzling {
  background-image:
    linear-gradient(180deg, rgba(15, 23, 42, 0.15), rgba(15, 23, 42, 0.98)),
    url("../assets/img/GoldLuckSizzlingSevens.webp?v=1");
}

.game-card__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 14px 14px 18px;
}

.game-card__overlay h3 {
  margin: 0 0 4px;
}

.game-card__overlay p {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 0.9rem;
}

/* PROMOTIONS & ACCOUNT (unchanged from before) */

.promo-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.promo-card {
  background: var(--bg-soft);
  border-radius: var(--radius-lg);
  padding: 16px 16px 18px;
  border: 1px solid rgba(148, 163, 184, 0.4);
}

.promo-card h2 {
  margin: 0 0 6px;
}

.promo-card p {
  margin: 4px 0;
  color: var(--muted);
}

.promo-note {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 8px;
  padding: 8px 10px;
  border-radius: var(--radius);
  background: rgba(15, 23, 42, 0.9);
}

.account-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.2fr);
  gap: 16px;
}

.account-card {
  background: var(--bg-soft);
  border-radius: var(--radius-lg);
  padding: 16px 16px 18px;
  border: 1px solid rgba(148, 163, 184, 0.4);
}

.account-card h2 {
  margin: 0 0 8px;
}

.account-card p {
  margin: 4px 0;
  color: var(--muted);
}

.account-checklist {
  list-style: none;
  padding-left: 0;
  margin: 6px 0 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.account-checklist li::before {
  content: "✓ ";
  color: var(--accent);
}

/* FORMS & MODALS */

.form {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.form-label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.9rem;
}

input[type="email"],
input[type="number"] {
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.6);
  padding: 8px 12px;
  background: rgba(15, 23, 42, 0.96);
  color: var(--text);
  outline: none;
  font-size: 0.9rem;
}

input[type="email"]:focus,
input[type="number"]:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px rgba(250, 204, 21, 0.8);
}

.form-note {
  margin-top: 6px;
  font-size: 0.8rem;
  color: var(--muted);
}

.success-message {
  margin-top: 8px;
  font-size: 0.9rem;
  color: #bbf7d0;
}

/* MODAL */

.modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 50;
}

.modal.is-visible {
  display: flex;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.8);
}

.modal-dialog {
  position: relative;
  background: rgba(15, 23, 42, 0.98);
  border-radius: var(--radius-lg);
  padding: 18px 18px 20px;
  min-width: min(360px, 94vw);
  border: 1px solid rgba(148, 163, 184, 0.6);
  box-shadow: var(--shadow-soft);
  z-index: 1;
}

.modal-dialog h2 {
  margin: 0 0 6px;
}

.modal-dialog p {
  margin: 4px 0;
  color: var(--muted);
}

.modal-close {
  position: absolute;
  top: 8px;
  right: 10px;
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: 1.1rem;
  cursor: pointer;
}

/* FOOTER */

.site-footer {
  border-top: 1px solid rgba(148, 163, 184, 0.35);
  margin-top: 32px;
  padding: 10px 0 18px;
  background: rgba(15, 23, 42, 0.96);
}

.footer-inner {
  margin: 0 auto;
  max-width: var(--max-width);
  padding: 4px 16px 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--muted);
}

.footer-links {
  display: flex;
  gap: 10px;
}

/* STATE: LOGGED IN */

body.user-logged-in .btn-primary#btn-open-register,
body.user-logged-in #btn-open-register-hero,
body.user-logged-in #btn-open-register-promo {
  display: none;
}

body.user-logged-in .user-label {
  color: #e5e7eb;
}

/* RESPONSIVE */

@media (max-width: 820px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-side {
    order: -1;
  }

  .hero-badges {
    bottom: 6px;
  }

  .main-nav {
    display: none;
  }

  .header-inner {
    justify-content: space-between;
  }

  .account-layout {
    grid-template-columns: minmax(0, 1fr);
  }
}
