* { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --text: #11141c;
  --muted: #485261;
  --line: rgba(17, 20, 28, .09);
  --red: #d9171a;
  --green: #16a85a;
  --gold: #e59b00;
  --blue: #2563eb;
  --soft-green: #f3fff8;
  --soft-gold: #fff9e9;
  --soft-blue: #f3f7ff;
}

html, body {
  min-height: 100%;
  font-family: "Nunito", Arial, sans-serif;
  background: #fff;
  color: var(--text);
}

body { padding-top: 64px; }

a { color: inherit; }

.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 64px;
  background: rgba(255,255,255,0.96);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  z-index: 1000;
  border-bottom: 1px solid rgba(0,0,0,0.10);
  backdrop-filter: blur(6px);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  width: calc(100% - 250px);
  max-width: 1080px;
  margin-left: 120px;
}

.nav a,
.nav button {
  color: #111;
  text-decoration: none;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.02em;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 10px 10px;
  border-radius: 10px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  height: 36px;
  white-space: nowrap;
  font-family: inherit;
}

.nav a:hover,
.nav button:hover,
.active-dropdown > button {
  color: var(--red);
  background: rgba(217,23,26,0.07);
}

.dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 36px;
}

.dropdown::after {
  content: "";
  position: absolute;
  left: -18px;
  right: -18px;
  top: 100%;
  height: 28px;
  background: transparent;
}

.dropdown > button::after {
  content: "▾";
  font-size: 12px;
  margin-left: 7px;
  opacity: .8;
}

.menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  min-width: 190px;
  background: rgba(255,255,255,0.98);
  border: 1px solid rgba(0,0,0,0.10);
  border-radius: 14px;
  padding: 10px;
  display: none;
  box-shadow: 0 18px 45px rgba(0,0,0,0.14);
  z-index: 1001;
}

.menu a {
  display: block;
  padding: 10px 12px;
  border-radius: 10px;
  color: rgba(0,0,0,0.86);
  font-weight: 800;
  white-space: nowrap;
  height: auto;
  width: 100%;
  justify-content: flex-start;
}

.menu a:hover {
  background: rgba(217,23,26,0.07);
  color: var(--red);
}

.dropdown:hover .menu,
.dropdown:focus-within .menu { display: block; }

.burger {
  display: none;
  padding: 10px 12px;
  border: 1px solid rgba(0,0,0,0.14);
  border-radius: 12px;
  background: transparent;
  color: #111;
  font-weight: 900;
  height: 36px;
}

.mobile-panel {
  display: none;
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  background: rgba(255,255,255,0.98);
  border-bottom: 1px solid rgba(0,0,0,0.10);
  padding: 12px 14px 16px;
  z-index: 999;
  box-shadow: 0 18px 40px rgba(0,0,0,0.10);
}

.mobile-panel .m-link {
  display: block;
  padding: 12px 10px;
  border-radius: 12px;
  font-weight: 900;
  text-decoration: none;
  color: rgba(0,0,0,0.86);
}

.m-section {
  border: 1px solid rgba(0,0,0,0.10);
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 10px;
  background: rgba(0,0,0,0.02);
}

.m-section summary {
  list-style: none;
  cursor: pointer;
  padding: 12px 12px;
  font-weight: 900;
  letter-spacing: 0.02em;
  color: rgba(0,0,0,0.92);
  display: flex;
  align-items: center;
  justify-content: space-between;
  user-select: none;
}

.m-section summary::-webkit-details-marker { display: none; }
.m-section summary::after { content: "▾"; font-size: 12px; opacity: .8; }
.m-section[open] summary::after { content: "▴"; }
.m-sub { padding: 6px 10px 10px; }
.m-sub a {
  display: block;
  padding: 10px 10px 10px 14px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 800;
  color: rgba(0,0,0,0.76);
  border-left: 2px solid rgba(217,23,26,0.35);
  margin: 6px 0;
}

.hero {
  min-height: 290px;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 58px 20px 54px;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 26% 54%, rgba(22,168,90,.11), transparent 26%),
    radial-gradient(circle at 77% 43%, rgba(37,99,235,.09), transparent 24%),
    #fff;
}

.eyebrow {
  color: var(--red);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .22em;
  margin-bottom: 14px;
}

.hero h1 {
  font-family: "Fredoka", "Nunito", Arial, sans-serif;
  font-size: clamp(46px, 6vw, 86px);
  line-height: .93;
  letter-spacing: -.055em;
  margin-bottom: 22px;
}

.lead {
  max-width: 660px;
  margin: 0 auto;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.35;
  font-weight: 800;
}

.games-list {
  width: min(1280px, calc(100% - 48px));
  margin: 38px auto 80px;
  display: grid;
  gap: 32px;
}

.game-feature {
  --accent: var(--green);
  --soft: var(--soft-green);
  display: grid;
  grid-template-columns: .72fr 1fr;
  min-height: 475px;
  border: 1px solid color-mix(in srgb, var(--accent) 40%, #e5e7eb);
  border-radius: 28px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 24px 70px rgba(15, 23, 42, .07);
  position: relative;
}

.game-feature::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 7px;
  background: var(--accent);
  z-index: 2;
}

.game-feature.gold {
  --accent: var(--gold);
  --soft: var(--soft-gold);
  grid-template-columns: 1fr .72fr;
}

.game-feature.blue {
  --accent: var(--blue);
  --soft: var(--soft-blue);
}

.game-copy {
  background:
    linear-gradient(135deg, var(--soft), #fff 72%);
  padding: clamp(34px, 5vw, 70px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
}

.pill {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--accent) 48%, #fff);
  background: rgba(255,255,255,.72);
  color: var(--accent);
  font-size: 13px;
  font-weight: 900;
  margin-bottom: 28px;
}

.game-copy h2 {
  font-family: "Fredoka", "Nunito", Arial, sans-serif;
  font-size: clamp(34px, 4vw, 58px);
  line-height: .98;
  letter-spacing: -.045em;
  max-width: 9.8em;
  margin-bottom: 22px;
}

.game-copy p {
  max-width: 460px;
  color: #2f3a49;
  font-size: clamp(17px, 1.55vw, 22px);
  line-height: 1.35;
  font-weight: 850;
  margin-bottom: 26px;
}

.action {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #fff;
  background: var(--accent);
  padding: 15px 24px;
  min-height: 54px;
  border-radius: 999px;
  font-size: 17px;
  font-weight: 900;
  box-shadow: 0 14px 34px color-mix(in srgb, var(--accent) 24%, transparent);
  transition: transform .18s ease, box-shadow .18s ease;
}

.action:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 44px color-mix(in srgb, var(--accent) 34%, transparent);
}

.game-image {
  display: block;
  min-height: 100%;
  overflow: hidden;
  background: #111;
}

.game-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform .4s ease;
}

.game-feature:hover .game-image img { transform: scale(1.025); }

@media (max-width: 980px) {
  .nav { display: none; }
  .burger { display: inline-flex; }
  .topbar { justify-content: center; }
  .games-list { width: min(720px, calc(100% - 28px)); margin-top: 28px; }
  .game-feature,
  .game-feature.gold {
    grid-template-columns: 1fr;
  }
  .game-feature.gold .game-image { order: 2; }
  .game-feature.gold .game-copy { order: 1; }
  .game-feature { min-height: auto; }
  .game-copy { padding: 32px 28px 30px; }
  .game-image { min-height: 340px; }
}

@media (max-width: 560px) {
  body { padding-top: 58px; }
  .topbar { height: 58px; }
  .mobile-panel { top: 58px; }
  .hero { min-height: 235px; padding: 38px 18px 34px; }
  .hero h1 { font-size: clamp(42px, 13vw, 62px); }
  .lead { font-size: 17px; }
  .game-copy h2 { font-size: 35px; }
  .game-copy p { font-size: 17px; }
  .game-image { min-height: 285px; }
  .action { width: 100%; justify-content: center; }
}
