:root {
  --bg: #d4d6da;
  --navy: #0d4770;
  --navy-dark: #08385c;
  --teal: #3de5c9;
  --white: #ffffff;
  --text: #0f2740;
  --radius: 12px;
  --h2-size: clamp(22px, 2vw, 26px);
  --body-size: clamp(14px, 1.1vw, 16px);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: var(--body-size);
  line-height: 1.4;
}

body.popup-open {
  overflow: hidden;
}

.terms-main {
  padding: 18px 0 36px;
}

.terms-content {
  background: #ffffff;
  border-radius: 12px;
  padding: 18px;
}

.terms-content h1 {
  margin: 0 0 12px;
  color: #104572;
  font-size: clamp(24px, 2.4vw, 34px);
}

.terms-pre {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
  color: #143752;
  line-height: 1.5;
  font-size: clamp(13px, 1.2vw, 15px);
  font-family: Arial, Helvetica, sans-serif;
}

.container {
  width: min(980px, 92vw);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--navy);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.16);
}

.top-bar {
  min-height: 44px;
  padding: 0 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.top-left {
  width: 110px;
  display: flex;
  align-items: center;
}

.mini-icon {
  color: #99f2e8;
  font-size: 12px;
  opacity: 0.9;
}

.brand img {
  width: 124px;
  height: auto;
  display: block;
}

.top-actions {
  width: auto;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
}

.icon-btn {
  border: 0;
  background: transparent;
  color: #bcecdf;
  font-size: 14px;
  cursor: pointer;
  padding: 4px;
}

.pill-btn {
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.78);
  padding: 6px 14px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.pill-btn.dark {
  background: transparent;
  color: #fff;
}

.pill-btn.light {
  background: #fff;
  color: var(--navy);
}

.nav-bar {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid #57d7c8;
  min-height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.main-nav {
  display: flex;
  gap: 26px;
  justify-content: center;
}

.main-nav a {
  color: var(--white);
  text-decoration: none;
  font-size: 13px;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  font-weight: 500;
  line-height: 1;
}

.main-nav a:hover {
  color: var(--teal);
}

.compact-hero {
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero {
  min-height: 400px;
  background: url("img/hero.png") center center / cover no-repeat;
  border-bottom: 1px solid rgba(16, 69, 114, 0.24);
}

.hero-overlay {
  min-height: 400px;
  background: linear-gradient(90deg, rgba(9, 41, 66, 0.34), rgba(9, 41, 66, 0.05));
}

.hero-content {
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.hero-play-btn {
  border: 0;
  border-radius: 999px;
  background: #ffffff;
  color: #0e4874;
  padding: 11px 20px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.hero-dots {
  display: flex;
  gap: 8px;
}

.dot {
  width: 36px;
  height: 3px;
  border-radius: 100px;
  background: #96a5b5;
}

.dot.active {
  background: #224c78;
}

.content-section {
  margin-top: 22px;
}

.last-section {
  margin-bottom: 34px;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.section-header h2 {
  margin: 0;
  font-size: var(--h2-size);
  color: #104572;
  font-weight: 600;
}

.section-header a {
  color: #104572;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
}

.card-row {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 6px;
}

.game-card {
  position: relative;
  flex: 0 0 190px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.game-card img {
  width: 100%;
  height: 116px;
  object-fit: cover;
  display: block;
}

.game-card:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 14px rgba(0, 0, 0, 0.18);
}

.badge {
  position: absolute;
  top: 5px;
  left: 5px;
  background: var(--teal);
  color: #143752;
  font-size: 8px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 999px;
}

.with-meta .card-meta {
  position: absolute;
  left: 8px;
  bottom: 6px;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  text-shadow: 0 2px 3px rgba(0, 0, 0, 0.65);
}

.live-card {
  flex-basis: 230px;
}

.live-card img {
  height: 130px;
}

.live-card .live-overlay {
  position: absolute;
  inset: auto 0 0 0;
  padding: 8px;
  color: var(--white);
  font-size: 12px;
  font-weight: 700;
  background: linear-gradient(180deg, transparent, rgba(95, 42, 151, 0.9));
}

.jackpot-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.jackpot-card {
  border-radius: var(--radius);
  padding: 12px 14px;
  min-height: 148px;
  display: flex;
  align-items: stretch;
  gap: 12px;
}

.lottery-left {
  width: 92px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.lottery-left img {
  width: 64px;
  height: auto;
  object-fit: contain;
  margin-bottom: 8px;
}

.lottery-left p {
  margin: 0;
  color: #eef7ff;
  font-size: 10px;
  line-height: 1.15;
  font-weight: 700;
}

.lottery-right {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}

.jackpot-card button {
  border: 0;
  border-radius: 999px;
  width: 112px;
  background: var(--white);
  color: var(--navy);
  font-weight: 700;
  padding: 8px 12px;
  cursor: pointer;
  font-size: 14px;
  margin-top: 8px;
  align-self: center;
}

.jackpot-card h3 {
  margin: 4px 0 3px;
  color: #fff;
  font-size: 30px;
  line-height: 1.05;
  max-width: 220px;
}

.jackpot-mini {
  color: #ebf4fe;
  font-size: 10px;
  line-height: 1.1;
  font-weight: 700;
}

.jackpot-tag {
  display: inline-block;
  color: #fff;
  background: rgba(6, 49, 98, 0.85);
  border-radius: 7px;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 2px 7px;
  margin-bottom: 2px;
}

.jackpot-card.green {
  background: #67a900;
}

.jackpot-card.blue {
  background: #2b73be;
}

.jackpot-card.orange {
  background: #f88a3b;
}

.sports-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.sport-card {
  border-radius: var(--radius);
  min-height: 118px;
  overflow: hidden;
  transition: transform 0.2s ease;
}

.sport-card:hover {
  transform: translateY(-2px);
}

.sport-card img {
  width: 100%;
  height: 118px;
  object-fit: cover;
  display: block;
}

.site-footer {
  background: var(--navy);
  color: var(--white);
  margin-top: 36px;
  padding-top: 56px;
  padding-bottom: 36px;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 34px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 44px;
  flex: 1;
}

.footer-grid h3 {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 700;
}

.footer-grid a {
  display: block;
  color: #e5eff8;
  text-decoration: none;
  font-size: 14px;
  margin-bottom: 6px;
  line-height: 1.08;
}

.footer-grid a:hover {
  color: var(--teal);
}

.footer-side {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  min-width: 130px;
}

.socials,
.payments {
  display: flex;
  align-items: center;
  gap: 10px;
}

.socials img {
  width: 26px;
  height: 26px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.payments img {
  width: 56px;
  height: auto;
  filter: grayscale(1) brightness(2);
}

.sponsors {
  margin-top: 58px;
  text-align: center;
}

.sponsors p {
  margin: 0 0 12px;
  font-size: 14px;
  color: #dbe9f7;
}

.sponsor-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 18px;
}

.sponsor-logos img {
  width: 38px;
  height: 38px;
  object-fit: contain;
}

.gamesense-wrap {
  margin-top: 26px;
  display: flex;
  justify-content: center;
}

.gamesense-wrap img {
  width: 120px;
  height: auto;
  filter: brightness(1.15);
}

.footer-note {
  width: min(900px, 92vw);
  margin: 24px auto 4px;
  text-align: center;
  color: #e4eef9;
  font-size: 13px;
  line-height: 1.2;
}

.age-note {
  text-align: center;
  margin: 0;
  padding: 4px 0 0;
  font-size: 38px;
  font-weight: 700;
}

.popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(4, 28, 49, 0.72);
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.popup-overlay.show {
  opacity: 1;
  pointer-events: auto;
}

.popup-card {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) scale(0.98);
  width: min(820px, 92vw);
  background: #efefef;
  border-radius: 10px;
  z-index: 210;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.35);
}

.popup-card.show {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, -50%) scale(1);
}

.popup-topbar {
  min-height: 54px;
  background: #0d4b78;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  border-radius: 10px 10px 0 0;
}

.popup-topbar img {
  width: 170px;
}

.popup-close {
  position: absolute;
  right: 14px;
  top: 10px;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 34px;
  line-height: 1;
  cursor: pointer;
}

.popup-body {
  padding: 18px 34px 24px;
}

.popup-body h2 {
  margin: 0 0 16px;
  text-align: center;
  font-size: 34px;
  color: #0f4c79;
  letter-spacing: 0.5px;
}

.popup-body input {
  width: 100%;
  height: 52px;
  border-radius: 8px;
  border: 2px solid #b8b8b8;
  background: #f7f7f7;
  font-size: 18px;
  padding: 0 14px;
  margin-bottom: 14px;
}

.popup-link {
  color: #103f77;
  display: block;
  text-align: right;
  font-size: 16px;
  margin-bottom: 16px;
}

.popup-main-btn {
  width: 100%;
  border: 0;
  border-radius: 999px;
  background: #0d4b78;
  color: #fff;
  height: 50px;
  font-size: 20px;
  font-weight: 700;
  cursor: pointer;
}

.popup-main-btn.small {
  width: 146px;
  height: 46px;
  font-size: 20px;
}

.popup-copy {
  margin: 16px 0 10px;
  color: #575757;
  font-size: 14px;
}

.popup-copy a {
  color: #103f77;
}

.popup-register-link {
  display: block;
  text-align: center;
  color: #103f77;
  font-size: 16px;
  font-weight: 700;
}

.popup-safe {
  text-align: center;
  color: #5a5a5a;
  font-size: 18px;
  margin: 7px 0 0;
}

.popup-register .register-body h2 {
  font-size: 40px;
  margin-top: 6px;
}

.register-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 18px;
}

.step {
  text-align: center;
}

.step span {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 2px solid #9fa9b3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  color: #263543;
  font-weight: 700;
}

.step.active span {
  background: #0d4b78;
  color: #fff;
}

.step small {
  display: block;
  margin-top: 8px;
  color: #2f2f2f;
  font-size: 14px;
}

.register-form {
  width: min(560px, 90%);
  margin: 0 auto;
}

.password-row {
  display: grid;
  grid-template-columns: 1fr 90px;
  gap: 8px;
}

.password-row button {
  border: 2px solid #b8b8b8;
  background: #f7f7f7;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 700;
  color: #5d5d5d;
}

.register-form p {
  font-size: 14px;
  line-height: 1.25;
  color: #3c3c3c;
}

.popup-footer-row {
  border-top: 1px solid #c4c4c4;
  min-height: 70px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
}

.popup-footer-row a {
  color: #103f77;
  font-size: 20px;
  font-weight: 700;
}

@media (max-width: 960px) {
  .jackpot-grid {
    grid-template-columns: 1fr;
  }

  .sports-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero,
  .hero-overlay,
  .hero-content {
    min-height: 320px;
  }

  .game-card {
    flex-basis: 160px;
  }

  .game-card img {
    height: 104px;
  }

  .live-card {
    flex-basis: 200px;
  }

  .live-card img {
    height: 120px;
  }

  .footer-grid a {
    font-size: 14px;
  }

  .footer-note {
    font-size: 13px;
  }

  .top-left {
    width: 28px;
  }

  .top-actions {
    gap: 6px;
  }

  .pill-btn {
    font-size: 14px;
    padding: 6px 12px;
  }

  .main-nav {
    gap: 16px;
  }

  .main-nav a {
    font-size: 12px;
  }
}

@media (max-width: 700px) {
  .hero,
  .hero-overlay,
  .hero-content {
    min-height: 260px;
  }

  .top-bar {
    min-height: 42px;
    padding: 0 10px;
  }

  .brand img {
    width: 112px;
  }

  .icon-btn {
    font-size: 14px;
  }

  .pill-btn {
    font-size: 11px;
    padding: 5px 8px;
  }

  .main-nav {
    gap: 10px;
    flex-wrap: nowrap;
    overflow-x: auto;
    width: 100%;
    padding: 0 10px;
    scrollbar-width: none;
  }

  .main-nav a {
    font-size: 12px;
    white-space: nowrap;
  }

  .section-header h2 {
    font-size: 22px;
  }

  .section-header a {
    font-size: 18px;
  }

  .game-card {
    flex-basis: 150px;
  }

  .game-card img {
    height: 98px;
  }

  .live-card {
    flex-basis: 210px;
  }

  .live-card img {
    height: 112px;
  }

  .jackpot-card h3 {
    font-size: 24px;
  }

  .lottery-left {
    width: 82px;
  }

  .lottery-left img {
    width: 56px;
  }

  .jackpot-card button {
    width: 104px;
    font-size: 13px;
  }

  .sport-card img {
    height: 108px;
  }

  .footer-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 22px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .footer-side {
    align-items: flex-start;
  }

  .sponsor-logos {
    gap: 12px;
  }

  .sponsor-logos img {
    width: 32px;
    height: 32px;
  }

  .popup-body {
    padding: 14px 16px 16px;
  }

  .popup-body h2 {
    font-size: 34px;
  }

  .popup-body input {
    height: 46px;
    font-size: 18px;
  }

  .popup-link,
  .popup-copy,
  .popup-register-link {
    font-size: 16px;
  }

  .popup-main-btn {
    height: 46px;
    font-size: 20px;
  }

  .popup-register .register-body h2 {
    font-size: 28px;
  }

  .step small {
    font-size: 11px;
  }

  .popup-main-btn.small {
    width: 110px;
    height: 40px;
    font-size: 20px;
  }
}
