:root {
  --ink: #101614;
  --muted: #66736d;
  --line: #dbe5df;
  --paper: #f8fbf7;
  --white: #ffffff;
  --green: #0d7f45;
  --green-dark: #064027;
  --mint: #d9f7df;
  --gold: #f5c542;
  --amber: #b36b1e;
  --red: #c5443d;
  --blue: #2e6f9f;
  --shadow: 0 18px 55px rgba(10, 48, 32, 0.13);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(248, 251, 247, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.top-strip,
.nav-shell,
.featured-draw,
.competitions-section,
.instant-strip,
.steps,
.faq,
.site-footer {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.top-strip {
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
  font-size: 13px;
  border-bottom: 1px solid rgba(219, 229, 223, 0.8);
}

.top-strip p {
  margin: 0;
}

.account-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  white-space: nowrap;
}

.balance-btn,
.cart-btn,
.menu-toggle {
  border: 0;
  cursor: pointer;
  font: inherit;
}

.balance-btn {
  height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--green-dark);
  color: var(--white);
  font-weight: 700;
}

.cart-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--gold);
  color: var(--ink);
  font-weight: 900;
}

.nav-shell {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: linear-gradient(140deg, var(--green), var(--green-dark));
  color: var(--gold);
  font-weight: 900;
  letter-spacing: 0;
  box-shadow: inset 0 0 0 2px rgba(245, 197, 66, 0.25);
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 20px;
  font-weight: 900;
}

.brand small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
}

.nav-links a {
  color: #26302c;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: var(--green-dark);
  padding: 10px;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  margin: 5px 0;
  background: var(--white);
}

.hero {
  position: relative;
  min-height: 640px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--green-dark);
}

.hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(4, 30, 19, 0.92) 0%, rgba(4, 30, 19, 0.74) 38%, rgba(4, 30, 19, 0.14) 100%),
    linear-gradient(0deg, rgba(4, 30, 19, 0.42), transparent 42%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 92px 0 72px;
  color: var(--white);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(44px, 6vw, 84px);
  line-height: 0.96;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 560px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 19px;
  line-height: 1.6;
}

.hero-actions,
.hero-stats,
.filters,
.card-meta,
.instant-list,
.footer-links {
  display: flex;
  align-items: center;
}

.hero-actions {
  gap: 12px;
  margin-top: 30px;
  flex-wrap: wrap;
}

.primary-btn,
.secondary-btn,
.enter-btn {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 6px;
  cursor: pointer;
  font: inherit;
  font-weight: 900;
}

.primary-btn {
  padding: 0 22px;
  background: var(--gold);
  color: #1b1708;
}

.secondary-btn {
  padding: 0 20px;
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.28);
}

.compact {
  min-height: 42px;
}

.hero-stats {
  gap: 14px;
  margin-top: 42px;
  flex-wrap: wrap;
}

.hero-stats span {
  min-width: 150px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.76);
}

.hero-stats strong {
  display: block;
  color: var(--white);
  font-size: 22px;
}

.ticker-band {
  display: flex;
  min-height: 56px;
  align-items: center;
  gap: 18px;
  overflow: hidden;
  background: var(--green);
  color: var(--white);
}

.ticker-title {
  flex: 0 0 auto;
  padding-left: max(16px, calc((100vw - 1180px) / 2));
  font-weight: 900;
  text-transform: uppercase;
}

.ticker-track {
  display: flex;
  gap: 34px;
  min-width: max-content;
  animation: slide 24s linear infinite;
  color: rgba(255, 255, 255, 0.9);
}

@keyframes slide {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-35%);
  }
}

.featured-draw,
.instant-strip {
  margin-top: 34px;
  padding: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 28px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.featured-draw h2,
.section-heading h2,
.instant-strip h2,
.steps h2,
.faq h2 {
  margin: 0;
  font-size: clamp(28px, 3.5vw, 44px);
  line-height: 1.08;
  letter-spacing: 0;
}

.featured-draw p,
.instant-strip p,
.step p,
.faq p {
  color: var(--muted);
  line-height: 1.6;
}

.draw-panel {
  display: grid;
  gap: 16px;
  justify-items: end;
}

.countdown {
  display: grid;
  grid-template-columns: repeat(4, 76px);
  gap: 8px;
}

.countdown span {
  min-height: 72px;
  display: grid;
  place-items: center;
  background: #f1f6f2;
  border-radius: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.countdown strong {
  display: block;
  color: var(--green-dark);
  font-size: 24px;
}

.competitions-section,
.steps,
.faq {
  padding: 70px 0 0;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  margin-bottom: 24px;
}

.filters {
  gap: 8px;
  flex-wrap: wrap;
}

.filter {
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
  cursor: pointer;
  color: var(--muted);
  font-weight: 900;
}

.filter.active {
  background: var(--green-dark);
  border-color: var(--green-dark);
  color: var(--white);
}

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

.competition-card {
  min-width: 0;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 32px rgba(16, 22, 20, 0.08);
}

.competition-card.hidden {
  display: none;
}

.card-art {
  position: relative;
  min-height: 184px;
  display: grid;
  place-items: center;
  isolation: isolate;
  overflow: hidden;
}

.card-art::before {
  content: "";
  position: absolute;
  width: 170px;
  height: 170px;
  border-radius: 36px;
  transform: rotate(12deg);
  background: rgba(255, 255, 255, 0.14);
}

.cash {
  background: linear-gradient(145deg, #075d37, #12a65b);
}

.tech {
  background: linear-gradient(145deg, #10202f, var(--blue));
}

.instant {
  background: linear-gradient(145deg, #6b3d0d, #d99a2c);
}

.gaming {
  background: linear-gradient(145deg, #3e274f, #c5443d);
}

.badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--green-dark);
  font-size: 12px;
  font-weight: 900;
}

.prize-icon {
  position: relative;
  z-index: 1;
  width: 88px;
  height: 88px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--gold);
  color: #181104;
  font-size: 34px;
  font-weight: 900;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.2);
}

.card-body {
  padding: 18px;
}

.card-body h3 {
  min-height: 52px;
  margin: 0;
  font-size: 19px;
  line-height: 1.28;
}

.price {
  margin: 10px 0 14px;
  color: var(--green);
  font-weight: 900;
}

.draw-label {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.mini-facts,
.detail-facts {
  display: grid;
  gap: 8px;
  margin: 12px 0;
}

.mini-facts span,
.detail-facts span {
  padding: 8px 10px;
  background: #eef6f1;
  border-radius: 6px;
  color: var(--green-dark);
  font-size: 12px;
  font-weight: 900;
}

.meter {
  height: 9px;
  overflow: hidden;
  background: #e8eee9;
  border-radius: 999px;
}

.meter span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--green), var(--gold));
}

.card-meta {
  justify-content: space-between;
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.enter-btn {
  width: 100%;
  margin-top: 16px;
  background: var(--green-dark);
  color: var(--white);
}

.instant-strip {
  margin-top: 70px;
  background: linear-gradient(135deg, var(--green-dark), #123526);
  color: var(--white);
}

.instant-strip p {
  color: rgba(255, 255, 255, 0.74);
}

.instant-list {
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.instant-list span {
  min-height: 42px;
  padding: 12px 16px;
  border: 1px solid rgba(245, 197, 66, 0.45);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--gold);
  font-weight: 900;
}

.step-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.step {
  padding: 24px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.step span {
  color: var(--gold);
  font-size: 32px;
  font-weight: 900;
}

.step h3 {
  margin: 14px 0 0;
}

.faq {
  padding-bottom: 74px;
}

.faq details {
  margin-top: 14px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.faq summary {
  cursor: pointer;
  padding: 18px;
  font-weight: 900;
}

.faq details p {
  margin: 0;
  padding: 0 18px 18px;
}

.site-footer {
  min-height: 140px;
  padding: 34px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid var(--line);
}

.site-footer p {
  color: var(--muted);
}

.footer-links {
  gap: 18px;
  color: var(--muted);
  font-weight: 800;
}

@media (max-width: 980px) {
  .nav-links {
    position: absolute;
    top: 117px;
    left: 16px;
    right: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    padding: 14px;
  }

  .menu-toggle {
    display: block;
  }

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

  .featured-draw,
  .instant-strip,
  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .draw-panel {
    justify-items: start;
    width: 100%;
  }

  .step-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .top-strip {
    display: none;
  }

  .nav-shell {
    min-height: 72px;
  }

  .nav-links {
    top: 82px;
  }

  .hero {
    min-height: 610px;
  }

  .hero h1 {
    font-size: 42px;
  }

  .hero-copy {
    font-size: 16px;
  }

  .hero-stats {
    display: grid;
    grid-template-columns: 1fr;
  }

  .ticker-band {
    align-items: flex-start;
    flex-direction: column;
    padding: 14px 0;
  }

  .ticker-title {
    padding-left: 16px;
  }

  .countdown {
    width: 100%;
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .countdown span {
    min-height: 62px;
  }

  .competition-grid {
    grid-template-columns: 1fr;
  }

  .featured-draw,
  .instant-strip {
    padding: 22px;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

.plain-page,
.detail-hero,
.admin-shell,
.login-screen {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.plain-page {
  padding: 70px 0;
}

.plain-page h1,
.detail-hero h1,
.login-card h1,
.admin-main h1 {
  margin: 0 0 16px;
  font-size: clamp(34px, 5vw, 62px);
  line-height: 1;
}

.content-copy {
  max-width: 820px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
}

.content-copy h2 {
  color: var(--ink);
  font-size: 28px;
}

.detail-hero {
  min-height: 620px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 28px;
  align-items: center;
  padding: 70px 0;
}

.detail-hero > div:first-child {
  min-width: 0;
}

.detail-hero p {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
}

.detail-countdown {
  max-width: 330px;
  margin-top: 24px;
}

.entry-panel,
.login-card,
.cms-form,
.checkout-form {
  display: grid;
  gap: 16px;
  padding: 24px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.ticket-presets {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.ticket-presets button {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #edf5ef;
  color: var(--green-dark);
  cursor: pointer;
  font: inherit;
  font-weight: 900;
}

.centered {
  text-align: center;
}

.entry-panel h2,
.checkout-form h2 {
  margin: 8px 0 0;
}

label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

input,
textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fbfdfb;
  color: var(--ink);
  font: inherit;
}

textarea {
  resize: vertical;
}

.notice {
  padding: 12px 14px;
  background: var(--mint);
  border: 1px solid #a8ddb3;
  border-radius: 6px;
  color: var(--green-dark);
  font-weight: 800;
}

.notice.error {
  background: #fdeceb;
  border-color: #f1aaa5;
  color: var(--red);
}

.muted {
  color: var(--muted);
  font-size: 13px;
}

.login-screen {
  min-height: 620px;
  display: grid;
  place-items: center;
  padding: 50px 0;
}

.login-card {
  width: min(460px, 100%);
}

.admin-shell {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 24px;
  padding: 34px 0 70px;
}

.admin-sidebar {
  position: sticky;
  top: 128px;
  align-self: start;
  display: grid;
  gap: 8px;
  padding: 18px;
  background: var(--green-dark);
  border-radius: 8px;
  color: var(--white);
}

.admin-sidebar strong {
  margin-bottom: 8px;
  color: var(--gold);
}

.admin-sidebar a {
  padding: 11px 12px;
  border-radius: 6px;
  color: rgba(255, 255, 255, 0.86);
  font-weight: 800;
}

.admin-sidebar a:hover {
  background: rgba(255, 255, 255, 0.1);
}

.admin-main {
  min-width: 0;
}

.admin-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}

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

.stat-card {
  padding: 22px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 26px rgba(16, 22, 20, 0.07);
}

.stat-card span {
  color: var(--muted);
  font-weight: 800;
}

.stat-card strong {
  display: block;
  margin-top: 8px;
  font-size: 38px;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 26px rgba(16, 22, 20, 0.07);
}

.admin-table th,
.admin-table td {
  padding: 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.admin-table th {
  background: #edf5ef;
  color: var(--green-dark);
  font-size: 12px;
  text-transform: uppercase;
}

.admin-table small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
}

.table-actions,
.inline-form {
  display: flex;
  align-items: center;
  gap: 8px;
}

.table-actions button,
.admin-table button {
  min-height: 34px;
  border: 1px solid #f1aaa5;
  border-radius: 6px;
  background: #fdeceb;
  color: var(--red);
  cursor: pointer;
  font-weight: 900;
}

.table-actions a {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border-radius: 6px;
  background: var(--green-dark);
  color: var(--white);
  font-weight: 900;
}

.cms-form {
  max-width: 760px;
}

.check-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.check-row input {
  width: auto;
  min-height: auto;
}

.inline-form {
  margin-bottom: 18px;
  padding: 14px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.inline-form.wide {
  align-items: stretch;
}

select {
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
  color: var(--ink);
  font: inherit;
}

.account-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.cart-list,
.empty-cart {
  margin-top: 22px;
}

.cart-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.cart-line + .cart-line {
  margin-top: 10px;
}

.cart-line span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
}

.checkout-form {
  max-width: 460px;
  margin-top: 18px;
}

.secondary-clear {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
  cursor: pointer;
  color: var(--muted);
  font: inherit;
  font-weight: 900;
}

@media (max-width: 900px) {
  .detail-hero,
  .admin-shell {
    grid-template-columns: 1fr;
  }

  .admin-sidebar {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stat-grid {
    grid-template-columns: 1fr;
  }

  .admin-title,
  .inline-form,
  .table-actions,
  .account-grid {
    align-items: stretch;
    grid-template-columns: 1fr;
    flex-direction: column;
  }

  .admin-table {
    display: block;
    overflow-x: auto;
  }
}
