html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 100%;
    font: inherit;
    vertical-align: baseline;
}
article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
    display: block;
}
body { line-height: 1; }
ol, ul { list-style: none; }
blockquote, q { quotes: none; }
blockquote:before, blockquote:after,
q:before, q:after { content: ''; content: none; }
table { border-collapse: collapse; border-spacing: 0; }
*, *:after, *:before { box-sizing: border-box; }

/* ── Base ── */
:root {
  --red:         #e31e26;
  --red-dark:    #c41920;
  --green:       #22c55e;
  --green-dark:  #16a34a;
  --white:       #ffffff;
  --black:       #0a0a0a;
  --gray-bg:     #f5f5f5;
  --gray-border: #e5e5e5;
  --gray-text:   #555555;
  --gray-muted:  #888888;
  --header-h:    56px;
  --subnav-h:    56px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--white);
  color: #1a1a1a;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }

/* ══════════════════════════════════════
   HEADER
══════════════════════════════════════ */
.header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: var(--red);
  height: var(--header-h);
}

.header__inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 16px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

/* Hamburger */
.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  border-radius: 6px;
  flex-shrink: 0;
  transition: background 0.2s;
}
.hamburger:hover { background: rgba(255,255,255,0.12); }
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all 0.28s ease;
  transform-origin: center;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 0;
  font-weight: 900;
  font-size: 22px;
  letter-spacing: 1px;
  line-height: 1;
  flex-shrink: 0;
}
.logo__wiz   { color: var(--white); }
.logo__slots { color: var(--white); margin-left: 6px; }

/* Auth buttons */
.header__auth {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.btn-login {
  padding: 8px 18px;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 600;
  color: var(--white);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
  white-space: nowrap;
}
.btn-login:hover { background: rgba(255,255,255,0.15); }

.btn-signup {
  padding: 8px 20px;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 700;
  color: var(--white);
  background: var(--green);
  border: none;
  cursor: pointer;
  transition: background 0.2s;
  white-space: nowrap;
}
.btn-signup:hover { background: var(--green-dark); }

.btn--block {
  display: block;
  width: 100%;
  text-align: center;
  border-radius: 10px;
  padding: 13px 20px;
  font-size: 16px;
}

/* ══════════════════════════════════════
   MOBILE DRAWER
══════════════════════════════════════ */
.drawer {
  position: fixed;
  top: 0; left: 0;
  width: 280px;
  height: 100%;
  background: var(--white);
  z-index: 500;
  transform: translateX(-100%);
  transition: transform 0.28s ease;
  box-shadow: 4px 0 24px rgba(0,0,0,0.15);
}
.drawer.open { transform: translateX(0); }

.drawer__inner {
  padding: 80px 24px 32px;
  display: flex;
  flex-direction: column;
  gap: 32px;
  height: 100%;
}

.drawer__nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.drawer__link {
  display: block;
  padding: 13px 16px;
  font-size: 16px;
  font-weight: 600;
  color: #1a1a1a;
  border-radius: 8px;
  transition: background 0.2s;
}
.drawer__link:hover { background: var(--gray-bg); }

.drawer__auth {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.drawer__auth .btn-login { color: #1a1a1a; }
.drawer__auth .btn-login:hover { background: var(--gray-bg); }

.drawer__overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 400;
}
.drawer__overlay.open { display: block; }

/* ══════════════════════════════════════
   SUB-NAV
══════════════════════════════════════ */
.subnav {
  background: var(--white);
  border-bottom: 1px solid var(--gray-border);
  padding: 10px 16px;
  position: sticky;
  top: var(--header-h);
  z-index: 100;
}

.subnav__pill {
  max-width: 1440px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--white);
  border: 1.5px solid var(--gray-border);
  border-radius: 100px;
  padding: 4px;
  gap: 2px;
  width: fit-content;
  margin: 0 auto;
}

.subnav__link {
  padding: 9px 32px;
  border-radius: 100px;
  font-size: 15px;
  font-weight: 500;
  color: var(--gray-text);
  transition: all 0.2s;
  white-space: nowrap;
}
.subnav__link:hover {
  color: #1a1a1a;
  background: var(--gray-bg);
}
.subnav__link.active {
  background: var(--gray-bg);
  color: #1a1a1a;
  font-weight: 600;
}

/* ══════════════════════════════════════
   HERO BANNER
══════════════════════════════════════ */
.hero {
  position: relative;
  width: 100%;
  min-height: 460px;
  background: var(--black);
  overflow: hidden;
  display: flex;
  align-items: center;
}

.hero__bg {
  position: absolute;
  inset: 0;
}
.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.9;
}

/* If no image yet — gradient fallback */
.hero__bg:not(:has(img[src])),
.hero__bg img[src="images/banner.webp"]:not([complete]) {
  background: linear-gradient(135deg, #1a0a0a 0%, #0d0d0d 100%);
}

.hero__content {
  position: relative;
  z-index: 2;
  padding: 60px 48px;
  max-width: 640px;
}

.hero__h1,
.hero__h2 {
  font-size: clamp(28px, 4vw, 52px);
  font-weight: 900;
  line-height: 1.1;
  color: var(--white);
  margin-bottom: 16px;
  letter-spacing: -1px;
}
.hero__h1 span,
.hero__h2 span {
  color: #ffd700;
  display: block;
}

.hero__sub {
  font-size: clamp(14px, 1.6vw, 17px);
  color: rgba(255,255,255,0.75);
  line-height: 1.6;
  margin-bottom: 32px;
  max-width: 440px;
}

.hero__cta {
  display: inline-block;
  padding: 14px 36px;
  border-radius: 100px;
  font-size: 16px;
  font-weight: 700;
  background: var(--red);
  color: var(--white);
  transition: background 0.2s, transform 0.2s;
  box-shadow: 0 4px 20px rgba(227,30,38,0.4);
}
.hero__cta:hover {
  background: var(--red-dark);
  transform: translateY(-2px);
}

/* ══════════════════════════════════════
   GAMES SECTION
══════════════════════════════════════ */
.games-section {
  background: var(--white);
  padding: 28px 0 60px;
}

.games-section__inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 16px;
}

/* Search + Categories */
.search-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--gray-border);
}

.search-bar {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1.5px solid var(--gray-border);
  border-radius: 100px;
  padding: 0 18px;
  height: 44px;
  background: var(--white);
  max-width: 560px;
}
.search-bar__icon { flex-shrink: 0; width: 18px; height: 18px; }
.search-bar__input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 15px;
  font-family: 'Inter', sans-serif;
  color: #1a1a1a;
  background: transparent;
}
.search-bar__input::placeholder { color: var(--gray-muted); }

.categories-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 20px;
  height: 44px;
  border-radius: 100px;
  border: 1.5px solid var(--gray-border);
  font-size: 15px;
  font-weight: 600;
  color: #1a1a1a;
  background: var(--white);
  cursor: pointer;
  transition: background 0.2s;
  white-space: nowrap;
}
.categories-btn:hover { background: var(--gray-bg); }

/* Filter Pills */
.filter-pills {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.pill {
  padding: 8px 18px;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 500;
  color: #1a1a1a;
  border: 1.5px solid var(--gray-border);
  background: var(--white);
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}
.pill:hover {
  border-color: #aaa;
}
.pill--active {
  background: var(--red);
  border-color: var(--red);
  color: var(--white);
  font-weight: 600;
}

/* Section Title */
.section-title {
  font-size: 22px;
  font-weight: 800;
  color: #1a1a1a;
  margin-bottom: 16px;
  letter-spacing: -0.3px;
}

/* Games Grid */
.games-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 10px;
  margin-bottom: 36px;
}

.game-card {
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 3/4;
  background: var(--gray-bg);
  transition: transform 0.2s, box-shadow 0.2s;
  display: block;
}
.game-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}
.game-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ══════════════════════════════════════
   FOOTER
══════════════════════════════════════ */
.footer {
  background: #1a1a1a;
  padding: 56px 16px 32px;
  color: #aaa;
}

.footer__inner {
  max-width: 1440px;
  margin: 0 auto;
}

.footer__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  margin-bottom: 40px;
}

.footer__col-title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 18px;
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: 11px;
}
.footer__links a {
  font-size: 14px;
  color: #888;
  transition: color 0.2s;
  line-height: 1.4;
}
.footer__links a:hover { color: var(--white); }

.footer__divider {
  height: 1px;
  background: rgba(255,255,255,0.1);
  margin-bottom: 32px;
}

.footer__license {
  margin-bottom: 24px;
}
.footer__license-text {
  font-size: 13px;
  color: #666;
  line-height: 1.75;
  max-width: 860px;
}
.footer__license-text strong { color: #999; }
.footer__license-text a { color: #888; text-decoration: underline; }
.footer__license-text a:hover { color: var(--white); }

.footer__label {
  font-size: 12px;
  color: #555;
  margin-right: 8px;
}

.footer__payments {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.pay-badge {
  padding: 5px 12px;
  border-radius: 6px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  font-size: 12px;
  font-weight: 600;
  color: #777;
}

.footer__rg {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 36px;
}

.rg-badge {
  padding: 5px 12px;
  border-radius: 6px;
  background: rgba(227,30,38,0.08);
  border: 1px solid rgba(227,30,38,0.2);
  font-size: 12px;
  font-weight: 600;
  color: #e31e26;
  opacity: 0.7;
}

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.footer__copy {
  font-size: 13px;
  color: #555;
}

.footer__bottom-links {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.footer__bottom-links a {
  font-size: 13px;
  color: #555;
  transition: color 0.2s;
}
.footer__bottom-links a:hover { color: var(--white); }

.age-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.2);
  font-size: 11px;
  font-weight: 800;
  color: rgba(255,255,255,0.4);
  flex-shrink: 0;
}

/* ══════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════ */

/* 1280px */
@media (max-width: 1280px) {
  .games-grid { grid-template-columns: repeat(6, 1fr); }
  .footer__grid { grid-template-columns: repeat(2, 1fr); gap: 32px; }
}

/* 1023px — tablet */
@media (max-width: 1023px) {
  .games-grid { grid-template-columns: repeat(5, 1fr); }

  .subnav__link { padding: 8px 20px; font-size: 14px; }

  .hero { min-height: 380px; }
  .hero__content { padding: 40px 28px; }
}

/* 767px — mobile */
@media (max-width: 767px) {
  .games-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }

  .subnav__pill {
    width: 100%;
    border-radius: 12px;
    justify-content: space-between;
  }
  .subnav__link {
    padding: 8px 10px;
    font-size: 13px;
    flex: 1;
    text-align: center;
  }

  .hero { min-height: 300px; }
  .hero__content { padding: 32px 20px; }

  .search-row { flex-direction: column; align-items: stretch; }
  .search-bar { max-width: 100%; }
  .categories-btn { justify-content: center; }

  .footer__grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
}

/* 480px */
@media (max-width: 480px) {
  .games-grid { grid-template-columns: repeat(3, 1fr); gap: 6px; }
  .footer__grid { grid-template-columns: 1fr; }
  .logo { font-size: 18px; }
  .btn-login { display: none; }
  .filter-pills { gap: 6px; }
  .pill { padding: 7px 12px; font-size: 13px; }
}


/* ══════════════ ARTICLE SECTION ══════════════ */
.article-section {
  background: #ffffff;
  padding: 56px 24px 72px;
}
.article-section__inner {
  max-width: 900px;
  margin: 0 auto;
}
.article-section__h1,
.article-section__h2 {
  font-size: 22px;
  font-weight: 700;
  color: #111111;
  margin: 0 0 28px;
  line-height: 1.3;
  border-bottom: 2px solid #e63946;
  padding-bottom: 10px;
}
.article-body h2 {
  font-size: 18px;
  font-weight: 700;
  color: #222222;
  margin: 36px 0 12px;
  line-height: 1.35;
}
.article-body h3 {
  font-size: 15px;
  font-weight: 600;
  color: #444444;
  margin: 24px 0 10px;
}
.article-body p {
  font-size: 14px;
  line-height: 1.75;
  color: #555555;
  margin: 0 0 14px;
}
.article-body ul,
.article-body ol {
  margin: 0 0 16px 20px;
  padding: 0;
}
.article-body li {
  font-size: 14px;
  line-height: 1.7;
  color: #555555;
  margin-bottom: 4px;
}
.article-body strong {
  color: #222222;
  font-weight: 600;
}
.article-body a {
  color: #e63946;
  text-decoration: none;
}
.article-body a:hover {
  text-decoration: underline;
}
.article-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0 28px;
  font-size: 13px;
}
.article-body th,
.article-body td {
  border: 1px solid #dddddd;
  padding: 10px 14px;
  text-align: left;
  color: #444444;
}
.article-body thead th {
  background: #f5f5f5;
  color: #111111;
  font-weight: 600;
}
.article-body tr:nth-child(even) td {
  background: #f9f9f9;
}

