:root {
  --bg: #050505;
  --surface: #171717;
  --surface-2: #1f2228;
  --accent: #00c98b;
  --accent-hover: #00ad78;
  --text: #f7f8f8;
  --muted: #aab2bd;
  --line: #263246;
  --warning: #ffd166;
  --danger: #ff6b6b;
  --radius: 18px;
  --shadow: 0 18px 50px rgba(0, 0, 0, .34);
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font: 16px/1.65 Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overflow-x: hidden;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background: radial-gradient(circle at 85% 8%, rgba(0, 201, 139, .11), transparent 30%),
              radial-gradient(circle at 10% 55%, rgba(38, 50, 70, .32), transparent 35%), #050505;
}
img { max-width: 100%; display: block; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: #58e6b7; }
button, input { font: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; padding: 10px 14px; background: var(--accent); color: #02170f; font-weight: 800; }
.skip-link:focus { top: 10px; }
.container { width: min(calc(100% - 40px), var(--max)); margin-inline: auto; }
.section { padding: 76px 0; }
.section.compact { padding: 48px 0; }
.section.alt { background: rgba(23, 23, 23, .65); border-block: 1px solid var(--line); }
.eyebrow { color: var(--accent); font-size: .77rem; font-weight: 900; letter-spacing: .16em; text-transform: uppercase; }
h1, h2, h3 { margin: 0 0 .6em; line-height: 1.08; letter-spacing: -.035em; }
h1 { font-size: clamp(2.35rem, 6vw, 5.4rem); max-width: 900px; }
h2 { font-size: clamp(1.9rem, 4vw, 3.25rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1.1em; color: #d9dde2; }
.lead { font-size: clamp(1.08rem, 2.2vw, 1.32rem); color: #e9ecef; max-width: 780px; }
.muted, small { color: var(--muted); }
.last-checked { display: inline-flex; gap: 8px; align-items: center; color: var(--muted); font-size: .88rem; }
.last-checked::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 5px rgba(0, 201, 139, .12); }

.site-header { position: sticky; top: 0; z-index: 50; background: rgba(5, 5, 5, .96); border-bottom: 1px solid var(--line); backdrop-filter: blur(16px); }
.header-inner { min-height: 78px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 28px; }
.brand img { width: 200px; height: auto; }
.main-nav { display: flex; justify-content: center; gap: 6px; }
.main-nav a, .more-menu summary { color: #e5e7eb; text-decoration: none; font-size: .9rem; font-weight: 750; padding: 10px 12px; border-radius: 10px; cursor: pointer; list-style: none; }
.main-nav a:hover, .main-nav a[aria-current="page"], .more-menu summary:hover { background: var(--surface-2); color: var(--accent); }
.more-menu { position: relative; }
.more-menu summary::-webkit-details-marker { display: none; }
.more-panel { position: absolute; top: 48px; right: 0; width: 220px; padding: 8px; border: 1px solid var(--line); border-radius: 14px; background: #101113; box-shadow: var(--shadow); }
.more-panel a { display: block; }
.header-actions { display: flex; gap: 10px; }
.button { display: inline-flex; justify-content: center; align-items: center; min-height: 48px; padding: 0 22px; border: 1px solid transparent; border-radius: 10px; background: var(--accent); color: #02170f; font-weight: 900; text-decoration: none; transition: .2s ease; }
.button:hover { background: var(--accent-hover); color: white; transform: translateY(-1px); }
.button.secondary { color: var(--text); background: var(--surface); border-color: #303238; }
.button.outline { color: var(--text); background: transparent; border-color: var(--accent); }
.menu-toggle { display: none; width: 48px; height: 48px; padding: 11px; border: 1px solid var(--line); border-radius: 10px; color: white; background: var(--surface); cursor: pointer; }
.menu-toggle span { display: block; height: 2px; margin: 5px 0; background: currentColor; }

.hero { position: relative; min-height: 650px; display: flex; align-items: center; isolation: isolate; background: linear-gradient(90deg, rgba(5,5,5,.98) 0%, rgba(5,5,5,.9) 38%, rgba(5,5,5,.26) 75%), url('../assets/hero/beonbet-hero.webp') center/cover no-repeat; border-bottom: 1px solid var(--line); }
.hero::after { content: ""; position: absolute; inset: auto 0 0; height: 160px; z-index: -1; background: linear-gradient(transparent, var(--bg)); }
.hero-content { padding: 90px 0; width: min(680px, 100%); }
.hero h1 span { color: var(--accent); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 30px 0 22px; }
.hero-note { max-width: 620px; color: var(--muted); font-size: .9rem; }
.page-hero { padding: 96px 0 62px; background: linear-gradient(125deg, rgba(0,201,139,.12), transparent 52%); border-bottom: 1px solid var(--line); }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 25px; font-size: .86rem; color: var(--muted); }
.breadcrumb a { color: var(--muted); }

.usp-grid, .card-grid, .three-grid, .two-grid { display: grid; gap: 20px; }
.usp-grid { grid-template-columns: repeat(3, 1fr); margin-top: -44px; position: relative; z-index: 3; }
.three-grid { grid-template-columns: repeat(3, 1fr); }
.two-grid { grid-template-columns: repeat(2, 1fr); }
.card-grid { grid-template-columns: repeat(4, 1fr); }
.card, .usp-card, .decision, .notice { border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(145deg, #1a1a1a, #111214); box-shadow: var(--shadow); }
.card { padding: 26px; }
.card > img.feature-image { width: 100%; max-height: 220px; object-fit: contain; margin-bottom: 22px; }
.usp-card { padding: 24px; }
.usp-card strong { display: block; font-size: 1.1rem; color: white; }
.icon-tile { width: 68px; height: 68px; margin-bottom: 18px; border-radius: 16px; background: rgba(0, 201, 139, .08); display: grid; place-items: center; }
.icon-tile img { width: 52px; height: 52px; object-fit: contain; }
.decision { padding: 32px; border-left: 4px solid var(--accent); }
.decision strong { color: var(--accent); }
.notice { padding: 20px 24px; border-color: rgba(255, 209, 102, .45); background: rgba(255, 209, 102, .06); }
.notice.danger { border-color: rgba(255, 107, 107, .5); background: rgba(255, 107, 107, .06); }
.notice p:last-child, .card p:last-child { margin-bottom: 0; }
.pros-cons { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.check-list, .plain-list { margin: 0; padding: 0; list-style: none; }
.check-list li, .plain-list li { position: relative; padding: 10px 0 10px 28px; border-bottom: 1px solid rgba(38,50,70,.65); color: #d9dde2; }
.check-list li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 900; }
.plain-list li::before { content: "→"; position: absolute; left: 0; color: var(--accent); }
.number-list { counter-reset: steps; list-style: none; padding: 0; display: grid; gap: 16px; }
.number-list li { counter-increment: steps; position: relative; min-height: 54px; padding: 0 0 16px 72px; border-bottom: 1px solid var(--line); }
.number-list li::before { content: counter(steps, decimal-leading-zero); position: absolute; left: 0; top: 0; font-size: 1.3rem; color: var(--accent); font-weight: 900; }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
table { width: 100%; min-width: 660px; border-collapse: collapse; background: #111214; }
th, td { padding: 16px 18px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--accent); background: #181a1e; font-size: .82rem; letter-spacing: .06em; text-transform: uppercase; }
tr:last-child td { border-bottom: 0; }

.game-tools { display: flex; gap: 14px; justify-content: space-between; margin: 28px 0; }
.search-box { flex: 1; min-width: 220px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 10px; color: white; background: var(--surface); }
.filter-buttons { display: flex; gap: 8px; flex-wrap: wrap; }
.filter-button { padding: 10px 15px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); background: var(--surface); cursor: pointer; }
.filter-button.active, .filter-button:hover { color: #03160f; background: var(--accent); border-color: var(--accent); }
.games-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.game-card { min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); transition: transform .2s, border-color .2s; }
.game-card { -webkit-tap-highlight-color: transparent; }
@media (hover: hover) and (pointer: fine) {
  .game-card:hover { transform: translateY(-4px); border-color: var(--accent); }
}
.game-card img { width: 100%; height: auto; aspect-ratio: 2/3; object-fit: contain; background: #111214; }
.game-card-body { padding: 13px; }
.game-card h3 { font-size: .95rem; letter-spacing: 0; margin-bottom: 4px; }
.game-card span { color: var(--muted); font-size: .78rem; }
.game-card[hidden] { display: none; }

.promo-card { position: relative; overflow: hidden; display: grid; grid-template-columns: 180px 1fr; align-items: center; gap: 22px; }
.promo-card img { width: 180px; height: 180px; object-fit: contain; }
.payment-logos { display: flex; gap: 22px; align-items: center; justify-content: center; min-height: 86px; padding: 14px 20px; border: 1px solid var(--line); border-radius: 14px; background: #0b0c0e; }
.payment-logos img { width: 96px; height: 46px; object-fit: contain; }
.faq { display: grid; gap: 12px; }
.faq details { border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.faq summary { padding: 20px 56px 20px 22px; cursor: pointer; font-weight: 800; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 22px; top: 14px; font-size: 1.6rem; color: var(--accent); }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 22px 20px; margin: 0; }
.cta-band { padding: 48px; border: 1px solid rgba(0,201,139,.45); border-radius: 24px; background: radial-gradient(circle at 90% 10%, rgba(0,201,139,.22), transparent 34%), #111; }
.cta-band h2 { max-width: 700px; }

.site-footer { padding: 58px 0 100px; border-top: 1px solid var(--line); background: #030303; }
.footer-grid { display: grid; grid-template-columns: 1.35fr repeat(4, 1fr); gap: 28px; }
.footer-brand img { width: 190px; height: auto; object-fit: contain; margin-bottom: 18px; }
.footer-links h3 { font-size: .92rem; color: white; }
.footer-links a { display: block; margin: 8px 0; color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: var(--accent); }
.footer-bottom { margin-top: 42px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: .82rem; }
.sticky-actions { display: none; }
.floating-promo {
  position: fixed;
  right: 0;
  top: 48%;
  z-index: 38;
  width: 138px;
  padding: 17px 14px 16px;
  border: 1px solid var(--accent);
  border-right: 0;
  border-radius: 18px 0 0 18px;
  color: var(--text);
  background: linear-gradient(145deg, #171917, #080a09);
  box-shadow: -12px 15px 35px rgba(0, 0, 0, .4);
  text-decoration: none;
  transform: translateY(-50%);
  transition: transform .2s ease, background .2s ease;
}
.floating-promo:hover { color: var(--text); background: #13271f; transform: translateY(-50%) translateX(-5px); }
.floating-promo span { display: block; margin-bottom: 6px; color: var(--accent); font-size: .68rem; font-weight: 900; letter-spacing: .09em; text-transform: uppercase; }
.floating-promo strong { display: block; font-size: 1rem; line-height: 1.18; }
.floating-promo small { display: block; margin-top: 4px; color: var(--muted); font-size: .72rem; line-height: 1.25; }
.floating-promo b { display: block; margin-top: 12px; color: var(--accent); font-size: .76rem; }

@media (max-width: 1040px) {
  .main-nav { display: none; position: absolute; left: 20px; right: 20px; top: 78px; padding: 12px; flex-direction: column; border: 1px solid var(--line); border-radius: 14px; background: #0b0c0e; box-shadow: var(--shadow); }
  .main-nav.open { display: flex; }
  .more-panel { position: static; width: auto; margin-top: 4px; box-shadow: none; }
  .menu-toggle { display: block; }
  .header-inner { grid-template-columns: auto 1fr auto; }
  .header-actions { display: none; }
  .menu-toggle { justify-self: end; }
  .games-grid { grid-template-columns: repeat(4, 1fr); }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .floating-promo { width: 118px; padding-inline: 12px; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 700px) {
  body { padding-bottom: 72px; }
  .container { width: min(calc(100% - 28px), var(--max)); }
  .section { padding: 56px 0; }
  .brand img { width: 166px; }
  .header-inner { min-height: 70px; }
  .main-nav { top: 70px; }
  .hero { min-height: 670px; align-items: flex-end; background-position: 62% center; }
  .hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, #050505 8%, rgba(5,5,5,.8) 52%, rgba(5,5,5,.18)); }
  .hero-content { padding: 250px 0 70px; }
  .hero h1 { max-width: 13ch; font-size: clamp(2.35rem, 8.5vw, 3.15rem); }
  .hero-actions .button { flex: 1; }
  .usp-grid { grid-template-columns: 1fr; margin-top: -24px; }
  .two-grid, .three-grid, .pros-cons, .footer-grid { grid-template-columns: 1fr; }
  .footer-brand { grid-column: auto; }
  .games-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
  .games-grid .game-card-body { padding: 10px; }
  .games-grid .game-card h3 { font-size: .8rem; }
  .games-grid .game-card span { font-size: .7rem; }
  .card-grid { grid-template-columns: 1fr 1fr; }
  .game-tools { flex-direction: column; }
  .promo-card { grid-template-columns: 100px 1fr; padding: 18px; }
  .promo-card img { width: 100px; height: 100px; }
  .cta-band { padding: 30px 24px; }
  .site-footer { padding: 42px 0 92px; }
  .footer-grid { gap: 26px; }
  .footer-brand img { width: 150px; margin-bottom: 12px; }
  .sticky-actions { display: grid; position: fixed; left: 0; right: 0; bottom: 0; z-index: 55; grid-template-columns: 1fr 1.2fr; gap: 8px; padding: 10px 14px; border-top: 1px solid var(--line); background: rgba(5,5,5,.97); backdrop-filter: blur(12px); }
  .sticky-actions .button { min-height: 50px; }
  .floating-promo {
    display: block;
    top: auto;
    right: 14px;
    bottom: 84px;
    width: 62px;
    height: 62px;
    padding: 0;
    border: 2px solid var(--accent);
    border-radius: 50%;
    background: #101412 url('../assets/promotions/lucky-box.webp') center / 52px 52px no-repeat;
    box-shadow: 0 10px 28px rgba(0, 0, 0, .5), 0 0 0 5px rgba(0, 201, 139, .1);
    transform: none;
  }
  .floating-promo:hover { transform: none; background-color: #173328; }
  .floating-promo span,
  .floating-promo strong,
  .floating-promo small,
  .floating-promo b { display: none; }
}

@media (max-width: 520px) {
  .hero { min-height: 640px; }
  .hero-content { padding-top: 220px; }
  .hero h1 { max-width: 12ch; font-size: 2.2rem; }
  .hero .hero-actions { display: grid; grid-template-columns: 1fr; }
  .hero .hero-actions .button { width: 100%; }
  .card-grid { display: flex; gap: 12px; overflow-x: auto; margin-right: -14px; padding: 2px 14px 12px 0; scroll-snap-type: x mandatory; scrollbar-width: thin; }
  .card-grid .game-card { flex: 0 0 112px; scroll-snap-align: start; }
  .card-grid .game-card img { width: 112px; height: 168px; aspect-ratio: auto; object-fit: contain; background: #111214; }
  .card-grid .game-card h3 { font-size: .82rem; }
  .card-grid .game-card-body { padding: 11px; }
  .games-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .games-grid .game-card img { width: 100%; height: auto; aspect-ratio: auto; object-fit: contain; }
}

@media (max-width: 420px) {
  h1 { font-size: 2.2rem; }
  .card-grid { grid-template-columns: 1fr; }
  .game-card h3 { font-size: .86rem; }
  .promo-card { grid-template-columns: 1fr; }
  .promo-card img { width: 150px; height: 150px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
