:root {
  --bg: #080808;
  --bg-2: #111111;
  --panel: #181818;
  --line: #5f501d;
  --text: #f7f4e8;
  --muted: #c5b98f;
  --accent: #edd446;
  --container: 980px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  margin: 0;
  font-family: "Montserrat", Arial, Helvetica, sans-serif;
  background: var(--bg);
  color: var(--text);
  width: 100%;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
.container { width: min(var(--container), calc(100% - 40px)); margin-inline: auto; }

.site-header { background: #1F1F1F; border-bottom: 1px solid var(--line); }
.header-inner { min-height: 61px; display: flex; align-items: center; gap: 20px; }
.brand { display: inline-flex; align-items: center; flex: 0 0 auto; }
.brand img { display: block; width: auto; height: 46px; max-width: 250px; object-fit: contain; }
.header-right { margin-left: auto; display: flex; flex-direction: column; align-items: flex-end; justify-content: center; gap: 5px; }
.top-links { display: flex; align-items: center; justify-content: flex-end; gap: 7px; color: var(--muted); font-size: 9px; line-height: 1; font-weight: 700; }
.top-links a:hover { color: var(--accent); }
.top-divider { color: #EDD472; font-weight: 500; }
.top-actions { display: flex; align-items: center; justify-content: flex-end; gap: 6px; }
.btn { min-width: 78px; padding: 7px 14px; border-radius: 4px; text-align: center; font-size: 12px; line-height: 1.1; font-weight: 700; text-transform: uppercase; }
.btn-login { background: #F4320B; border: 1px solid #F4320B; color: #fff; }
.btn-register { background: #EDD472; border: 1px solid #EDD472; color: #15120a; }
.menu-toggle { display: none; border: 1px solid var(--line); background: var(--panel); color: #fff; border-radius: 6px; width: 42px; height: 42px; font-size: 22px; }

.main-nav { height: 38px; background: linear-gradient(to bottom, #FEFFD3 0%, #E8DCB2 4%, #998761 100%); border-bottom: 1px solid var(--line); }
.main-nav > .container { height: 100%; }
.nav-list { list-style: none; margin: 0; padding: 0; height: 100%; display: flex; align-items: stretch; justify-content: flex-start; gap: 0; }
.nav-list li { height: 100%; display: flex; align-items: stretch; }
.nav-list a { color: #000000; font-size: 12px; font-weight: 700; text-transform: uppercase; height: 100%; display: flex; align-items: center; padding: 0 16px; }
.nav-list a:hover { background: rgba(88,77,55,.18); color: #000000; }
.nav-list a.active { background: #584D37; color: #FFE999; }
.nav-icon { display: none; }
.nav-backdrop { display: none; }

.hero { padding: 12px 0; border-bottom: 1px solid var(--line); background-color: var(--bg); background-image: url("../images/hero-bg.webp"); background-position: top center; background-repeat: no-repeat; }
.hero-wrap { display: grid; gap: 5px; }
.hero-grid { display: grid; grid-template-columns: 652px 323px; gap: 5px; align-items: start; }
.hero-main, .hero-small, .hero-bottom-card { border: 1px dashed #806c28; color: #b9ab79; display: flex; align-items: center; justify-content: center; text-align: center; overflow: hidden; }
.hero-main { min-width: 0; height: 351px; }
.hero-side { width: 323px; min-width: 323px; display: grid; grid-template-rows: 173px 173px; gap: 5px; }
.hero-small { width: 323px; height: 173px; min-height: 173px; }
.hero-rotator { position: relative; border: 0; overflow: hidden; background: #000; }
.hero-track { display: flex; width: 100%; height: 100%; transform: translateX(0); transition: transform .55s ease; will-change: transform; }
.hero-slide { flex: 0 0 100%; width: 100%; height: 100%; }
.hero-slide img { display: block; width: 100%; height: 100%; object-fit: cover; }
.hero-track.no-transition { transition: none !important; }
.hero-filled { border: 0; background: none; color: inherit; padding: 0; }
.hero-filled img { display: block; width: 100%; height: 100%; object-fit: cover; }
.hero-bottom { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5px; }
.hero-bottom-card { height: 125px; min-height: 125px; }
.placeholder-label { display: inline-block; border: 1px dashed #8f7830; padding: 7px 10px; border-radius: 5px; color: var(--muted); font-size: 12px; }
.placeholder { background-image: linear-gradient(135deg, rgba(255,255,255,.025) 25%, transparent 25%, transparent 50%, rgba(255,255,255,.025) 50%, rgba(255,255,255,.025) 75%, transparent 75%, transparent); background-size: 24px 24px; }

.quick-actions { padding: 0; background: #0d0d0d; border-bottom: 1px solid var(--line); }
.quick-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; }
.quick-card { min-width: 0; min-height: 60px; padding: 8px 18px; background: transparent; display: flex; align-items: center; justify-content: flex-start; gap: 14px; }
.quick-copy { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.quick-copy strong { color: #fff; font-size: 14px; line-height: 1.2; font-weight: 800; }
.quick-copy small { color: #cdbd85; font-size: 11px; line-height: 1.35; font-weight: 500; }

.content-section {
  padding: 20px 0;
  background: linear-gradient(
    116deg,
    #181818 0%,
    #181818 29%,
    rgba(237, 212, 114, 0.16) 29%,
    rgba(237, 212, 114, 0.16) 31%,
    #111111 31%,
    #0B0B0B 100%
  );
}
.content-section.alt { background: #0d0d0d; }
.section-heading { display: flex; justify-content: space-between; align-items: end; margin-bottom: 20px; }
.section-heading h2 { margin: 0; font-size: 24px; }
.section-heading span { color: var(--muted); font-size: 13px; }
.games-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.game-card {
  min-width: 0;
  min-height: 170px;
  border: 1px solid;
  border-image: linear-gradient(135deg, #6f5317 0%, #c99b34 20%, #fff0a8 42%, #d8ad49 62%, #8a641d 82%, #f2d477 100%) 1;
  border-radius: 0;
  overflow: hidden;
  display: block;
  box-shadow: 0 0 10px rgba(237, 212, 114, .16), 0 4px 12px rgba(0, 0, 0, .28);
  transition: box-shadow .2s ease, filter .2s ease;
}
.game-card img { display: block; width: 100%; height: 100%; aspect-ratio: 317 / 170; object-fit: cover; }
.game-card:hover { box-shadow: 0 0 14px rgba(237, 212, 114, .28), 0 5px 14px rgba(0, 0, 0, .32); }
.game-card:hover img { opacity: .95; }
.games-content { margin-top: 28px; color: #d8d1bb; font-size: 13px; line-height: 1.75; }
.games-content h2 { margin: 26px 0 12px; color: #f7f4e8; font-size: 20px; line-height: 1.4; }
.games-content h2:first-child { margin-top: 0; }
.games-content h3 { margin: 24px 0 10px; color: #f7f4e8; font-size: 17px; line-height: 1.4; }
.games-content p { margin: 0 0 14px; font-weight: 600;}
.games-content a { color: #EDD472; font-weight: 700; }
.games-content a:hover { text-decoration: underline; }
.games-content ul { margin: 0 0 14px; padding-left: 22px; }
.games-content li { margin-bottom: 8px; }
.table-content { width: 100%; margin: 14px 0 18px; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table-content table { width: 100%; min-width: 620px; border-collapse: collapse; border: 1px solid #D6B85C; background: rgba(255,255,255,.02); box-shadow: 0 0 0 1px rgba(237,212,114,.14), 0 5px 16px rgba(0,0,0,.25); }
.table-content td { padding: 10px 12px; border: 1px solid rgba(237,212,114,.55); vertical-align: top; font-weight: 600; }
.table-content td:first-child { width: 155px; color: #EDD472; font-weight: 700; white-space: nowrap; background: rgba(237,212,114,.05); }

.site-footer { background: #050505; border-top: 1px solid var(--line); }
.footer-inner { min-height: 38px; display: flex; align-items: center; justify-content: center; }
.copyright { margin: 0; color: var(--muted); font-size: 12px; text-align: center; }
.copyright a { color: inherit; }
.copyright a:hover { color: var(--accent); }

@media (max-width: 820px) {
  .section-heading h2 { font-size: 18px; }
  .container { width: calc(100% - 24px); max-width: var(--container); }
  .header-inner { min-height: 64px; gap: 6px; min-width: 0; }
  .brand { min-width: 0; flex: 1 1 auto; overflow: hidden; }
  .brand img { width: 100%; height: auto; max-height: 36px; max-width: 165px; object-fit: contain; object-position: left center; }
  .header-right { margin-left: auto; flex: 0 0 auto; flex-direction: row; align-items: center; gap: 5px; }
  .top-links { display: none; }
  .top-actions { gap: 5px; flex: 0 0 auto; }
  .top-actions .btn { min-width: auto; padding: 7px 9px; font-size: 10px; white-space: nowrap; }
  .menu-toggle { display: inline-grid; place-items: center; flex: 0 0 38px; width: 38px; height: 38px; }
  .main-nav {
    display: block;
    position: fixed;
    z-index: 1000;
    top: 64px;
    left: 0;
    bottom: auto;
    width: min(78vw, 300px);
    height: calc(100dvh - 64px);
    max-height: calc(100dvh - 64px);
    background: #383838;
    border-bottom: 0;
    box-shadow: 8px 0 24px rgba(0,0,0,.35);
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    padding-bottom: env(safe-area-inset-bottom, 0px);
    transform: translateX(-100%);
    visibility: hidden;
    pointer-events: none;
    transition: transform .28s ease, visibility 0s linear .28s;
  }
  .main-nav.open {
    transform: translateX(0);
    visibility: visible;
    pointer-events: auto;
    transition: transform .28s ease;
  }
  .main-nav > .container { width: 100%; max-width: none; min-height: 100%; height: auto; margin: 0; }
  .nav-list { padding: 0 0 12px; height: auto; min-height: auto; flex-direction: column; align-items: stretch; gap: 0; }
  .nav-list li { width: 100%; height: auto; display: block; border-bottom: 1px solid rgba(255,255,255,.14); }
  .nav-list a { display: flex; align-items: center; width: 100%; height: auto; padding: 13px 16px; border-bottom: 0; color: #ffffff; }
  .nav-list a:hover { background: rgba(255,255,255,.06); color: #ffffff; }
  .nav-list a.active { background: #4a4a4a; color: #ffffff; }
  .nav-icon { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 20px; width: 20px; height: 20px; margin-right: 12px; color: currentColor; }
  .nav-icon svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
  .nav-backdrop {
    display: block;
    position: fixed;
    z-index: 999;
    inset: 64px 0 0 0;
    background: rgba(0,0,0,.48);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .28s ease, visibility 0s linear .28s;
  }
  .nav-backdrop.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition: opacity .28s ease;
  }
  body.menu-open { overflow: hidden; touch-action: none; }
  body.menu-open .main-nav { touch-action: pan-y; }
  .hero { padding: 0; }
  .hero .container { width: 100%; max-width: none; }
  .hero-wrap { gap: 5px; }
  .hero-grid { grid-template-columns: 1fr; height: auto; gap: 5px; }
  .hero-main { min-height: 0; grid-column: auto; height: auto; aspect-ratio: 703 / 350; }
  .hero-side { display: none; }
  .hero-bottom { display: none; }
  .quick-actions { display: block; padding: 6px 0; }
  .quick-grid { width: calc(100% - 16px); max-width: none; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .quick-card { display: flex; min-height: 40px; padding: 7px 4px; justify-content: center; text-align: center; border: 0; border-radius: 8px; }
  .quick-card:nth-child(1) { background: #F4320B; }
  .quick-card:nth-child(2),
  .quick-card:nth-child(3) { background: #EDD472; }
  .quick-copy { width: 100%; align-items: center; gap: 0; }
  .quick-copy strong { font-size: 11px; }
  .quick-card:nth-child(1) .quick-copy strong { color: #ffffff; }
  .quick-card:nth-child(2) .quick-copy strong,
  .quick-card:nth-child(3) .quick-copy strong { color: #15120a; }
  .quick-copy small { display: none; }
  .games-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .game-card { min-height: 0; }
  .games-content { margin-top: 22px; font-size: 12px; line-height: 1.7; }
  .games-content h2 { margin: 22px 0 10px; font-size: 16px; }
  .games-content h3 { margin: 20px 0 9px; font-size: 15px; }
  .games-content ul { padding-left: 18px; }
  .table-content td { padding: 9px 10px; }
  .quick-grid, .games-grid { min-width: 0; }
  .quick-card, .game-card { min-width: 0; }
}

@media (max-width: 480px) {
  .quick-card {
    min-height: 30px;
    padding: 10px 3px;
  }
  .quick-copy strong { font-size: 10px; }
  .container { width: calc(100% - 16px); }
  .header-inner { gap: 5px; }
  .brand img { max-width: 140px; max-height: 34px; }
  .top-actions .btn { padding: 6px 7px; font-size: 9.5px; }
  .menu-toggle { flex-basis: 36px; width: 36px; height: 36px; font-size: 20px; }
}

@media (max-width: 360px) {
  .brand img { max-width: 112px; }
  .top-actions { gap: 3px; }
  .top-actions .btn { padding: 6px 5px; font-size: 9px; }
  .menu-toggle { flex-basis: 34px; width: 34px; height: 34px; }
}
