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

:root {
  --bg: #1C1C1C;
  --surface: #262626;
  --text: #FFFFFF;
  --muted: #A0A0A0;
  --primary: #C5B358;
  --secondary: #D4AF37;
  --accent: #E6E6E6;
  --border: rgba(197, 179, 88, 0.2);
  --orange: #FF6B35;
  --slate: #708090;
  --mono: ui-monospace, "SF Mono", "Cascadia Code", "Roboto Mono", Menlo, Consolas, monospace;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --nav-h: 56px;
  --offer-card-bg: #ffffff;
  --offer-card-text: #1a1a1a;
  --offer-card-bonus: #3A5A40;
  --offer-card-cta: #588157;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 100px);
}

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

body.no-scroll {
  overflow: hidden;
}

main {
  flex: 1;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--secondary);
  text-decoration: none;
}

a:hover {
  color: var(--primary);
}

.disclosure-banner {
  width: 100%;
  background: var(--primary);
  color: #ffffff;
  font-size: 11px;
  font-weight: 500;
  text-align: center;
  padding: 8px 16px;
  line-height: 1.5;
  flex-shrink: 0;
}

.site-header {
  position: sticky;
  top: 0;
  width: 100%;
  background: var(--bg);
  height: var(--nav-h);
  z-index: 200;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 0 8px var(--primary);
}

.header-inner {
  width: 100%;
  padding: 0 48px;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  position: relative;
}

.logo-link {
  display: flex;
  flex-shrink: 0;
}

.logo-link img {
  height: 36px;
  width: auto;
}

.nav-desktop {
  display: flex;
  list-style: none;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-desktop a {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--muted);
  position: relative;
  padding-bottom: 4px;
  white-space: nowrap;
}

.nav-desktop a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.25s ease;
}

.nav-desktop a:hover {
  color: var(--text);
}

.nav-desktop a:hover::after {
  width: 100%;
}

.nav-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: transparent;
  border: 1px solid var(--border);
  cursor: pointer;
  padding: 6px;
  flex-shrink: 0;
}

.nav-burger span {
  display: block;
  height: 2px;
  background: var(--text);
  transition: background 0.2s;
}

.nav-burger.active span {
  background: var(--orange);
}

.nav-drawer {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 300;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.nav-drawer.active {
  display: flex;
  opacity: 1;
  pointer-events: auto;
}

.nav-drawer__close {
  position: absolute;
  top: 16px;
  right: 48px;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  font-family: var(--mono);
  font-size: 18px;
  cursor: pointer;
  padding: 6px 12px;
}

.nav-drawer ul {
  list-style: none;
  text-align: center;
}

.nav-drawer li {
  margin: 20px 0;
}

.nav-drawer a {
  font-family: var(--mono);
  font-size: 20px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--muted);
  letter-spacing: 2px;
}

.nav-drawer a:hover {
  color: var(--primary);
}

.header-inner--sub .nav-subpage {
  margin-left: auto;
}

.nav-subpage a {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--muted);
}

.hero {
  position: relative;
  min-height: 60vh;
  display: flex;
  align-items: flex-end;
  background-image:
    linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.7) 100%),
    url("/images/decorative/decor_1.jpg");
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(0deg, transparent, transparent 19px, rgba(197, 179, 88, 0.06) 19px, rgba(197, 179, 88, 0.06) 20px),
    repeating-linear-gradient(90deg, transparent, transparent 19px, rgba(197, 179, 88, 0.06) 19px, rgba(197, 179, 88, 0.06) 20px);
  pointer-events: none;
}

.hero-grid-label {
  position: absolute;
  top: 12px;
  right: 16px;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--orange);
  letter-spacing: 1px;
  z-index: 2;
}

.hero-inner {
  position: relative;
  z-index: 1;
  padding: 48px;
  max-width: 720px;
}

.hero h1 {
  font-family: var(--mono);
  font-size: clamp(1.5rem, 4vw, 2.6rem);
  font-weight: 700;
  line-height: 1.15;
  text-transform: uppercase;
  margin-bottom: 16px;
  color: var(--text);
}

.hero-accent {
  color: var(--primary);
}

.hero-sub {
  font-family: var(--mono);
  font-size: clamp(0.8rem, 1.8vw, 0.95rem);
  color: var(--accent);
  line-height: 1.6;
  max-width: 560px;
}

.hero-arrow {
  display: inline-block;
  color: var(--orange);
  margin-right: 6px;
}

.offers-section {
  position: relative;
  padding: 56px 48px;
  background-image: linear-gradient(rgba(28, 28, 28, 0.9), rgba(28, 28, 28, 0.94)), url("/images/offers_bg/offers_bg.webp");
  background-size: cover;
  background-position: center;
}

.offers-inner {
  max-width: 1280px;
  margin: 0 auto;
}

.offers-header {
  margin-bottom: 32px;
  padding-left: 16px;
  border-left: 3px solid var(--orange);
}

.offers-header h2 {
  font-family: var(--mono);
  font-size: clamp(1.2rem, 3vw, 1.7rem);
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 8px;
}

.offers-header p {
  font-size: 0.9rem;
  color: var(--muted);
}

.offers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.offer-card {
  background: var(--offer-card-bg);
  border: 1px solid rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s;
}

.offer-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.4);
}

.offer-card-logo {
  width: 200px;
  height: 80px;
  margin: 24px auto 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.offer-card-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
}

.offer-card-body {
  padding: 20px 24px 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.offer-card-name {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--offer-card-text);
  margin-bottom: 8px;
}

.offer-bonus-group {
  margin-bottom: 12px;
}

.offer-card-bonus {
  font-size: 0.95rem;
  color: var(--offer-card-bonus);
  font-weight: 600;
  line-height: 1.35;
  overflow-wrap: break-word;
  word-break: break-word;
  hyphens: auto;
}

.offer-terms-note {
  font-size: 0.7rem;
  color: #888;
  margin-top: 4px;
}

.offer-card-desc {
  font-size: 0.72rem;
  color: #777;
  line-height: 1.5;
  margin-bottom: 16px;
  flex: 1;
}

.offer-cta {
  display: inline-block;
  background: var(--offer-card-cta);
  color: #fff;
  padding: 10px 20px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  width: 100%;
  font-family: var(--sans);
  transition: background 0.2s;
  text-decoration: none;
  box-sizing: border-box;
}

.offer-cta:hover {
  background: #466b4a;
  color: #fff;
}

.info-section {
  padding: 56px 48px;
  border-bottom: 1px solid var(--border);
  position: relative;
}

.info-section:nth-child(even) {
  background: var(--surface);
}

.info-inner {
  max-width: 1280px;
  margin: 0 auto;
}

.info-kicker {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 8px;
}

.info-section h2 {
  font-family: var(--mono);
  font-size: clamp(1.15rem, 2.5vw, 1.55rem);
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 16px;
}

.info-section p {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

.meta-tag {
  display: none;
  font-family: var(--mono);
  font-size: 9px;
  color: var(--slate);
  margin-top: 8px;
  letter-spacing: 0.5px;
}

[data-meta].meta-active .meta-tag,
[data-meta]:hover .meta-tag {
  display: block;
}

.layout-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.decor-wrap {
  max-width: 500px;
  max-height: 320px;
  overflow: hidden;
  border: 1px solid var(--border);
  position: relative;
}

.decor-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  max-width: 500px;
  max-height: 320px;
}

.decor-coords {
  position: absolute;
  bottom: 4px;
  left: 4px;
  font-family: var(--mono);
  font-size: 9px;
  color: var(--orange);
  background: rgba(28, 28, 28, 0.8);
  padding: 2px 6px;
}

.layout-rail {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 24px;
  align-items: start;
}

.rail-mono {
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 700;
  color: var(--orange);
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px 8px;
  border: 1px solid var(--border);
  background: rgba(38, 38, 38, 0.8);
}

.rail-mono span::before {
  content: "→ ";
  color: var(--slate);
}

.layout-card {
  display: flex;
  gap: 28px;
  align-items: flex-start;
  padding: 28px;
  border: 1px solid var(--border);
  background: rgba(38, 38, 38, 0.5);
}

.layout-card .decor-wrap {
  flex-shrink: 0;
  width: 220px;
  max-height: 180px;
}

.layout-asymmetric {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 32px;
  align-items: stretch;
}

.side-panel {
  border: 1px solid var(--border);
  padding: 20px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  background: var(--bg);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.side-panel-head {
  color: var(--orange);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  margin-bottom: 8px;
}

.side-panel-bg {
  min-height: 180px;
  background-size: cover;
  background-position: center;
  border: 1px solid var(--border);
  margin-top: 12px;
}

.layout-centered {
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}

.layout-timeline {
  padding-left: 48px;
  border-left: 2px solid var(--primary);
  position: relative;
}

.timeline-badge {
  position: absolute;
  left: -20px;
  top: 0;
  width: 38px;
  height: 38px;
  background: var(--primary);
  color: var(--bg);
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.layout-float {
  position: relative;
  overflow: hidden;
}

.layout-float::after {
  content: "";
  display: table;
  clear: both;
}

.float-img {
  float: right;
  max-width: 280px;
  max-height: 200px;
  margin: 0 0 16px 24px;
  border: 1px solid var(--border);
  overflow: hidden;
}

.float-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  max-width: 280px;
  max-height: 200px;
}

.layout-checklist {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 20px;
}

.check-item {
  font-family: var(--mono);
  font-size: 11px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  color: var(--muted);
}

.check-item::before {
  content: "▸ ";
  color: var(--orange);
}

.layout-procon {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 20px;
}

.procon-col {
  border: 1px solid var(--border);
  padding: 20px;
}

.procon-col h3 {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 12px;
}

.procon-col ul {
  list-style: none;
  font-size: 0.9rem;
  color: var(--muted);
}

.procon-col li {
  margin-bottom: 8px;
  padding-left: 16px;
  position: relative;
}

.procon-col li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--slate);
}

.layout-terminal {
  border: 1px solid var(--border);
  padding: 28px;
  background: var(--bg);
  font-family: var(--mono);
}

.terminal-bar {
  display: flex;
  gap: 6px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.terminal-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--slate);
}

.terminal-dot:first-child {
  background: var(--orange);
}

.terminal-line {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 8px;
}

.terminal-line strong {
  color: var(--primary);
}

.game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 20px;
}

.game-tile {
  border: 1px solid var(--border);
  padding: 14px 8px;
  text-align: center;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--muted);
  transition: border-color 0.2s, color 0.2s;
}

.game-tile:hover {
  border-color: var(--primary);
  color: var(--text);
}

.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 48px 48px 32px;
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  margin-bottom: 32px;
}

.footer-logo img {
  height: 36px;
  width: auto;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
}

.footer-links a {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--muted);
  letter-spacing: 0.5px;
}

.footer-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
  margin-bottom: 24px;
}

.footer-badge img {
  height: 48px;
  width: auto;
}

.footer-ontario {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 16px;
  max-width: 900px;
}

.footer-copy {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--slate);
  letter-spacing: 1px;
}

.page-content {
  padding: 48px 48px 64px;
}

.page-content-inner {
  max-width: 800px;
  margin: 0 auto;
}

.page-content h1 {
  font-family: var(--mono);
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 24px;
  color: var(--text);
}

.page-content h2 {
  font-family: var(--mono);
  font-size: 1.1rem;
  font-weight: 700;
  text-transform: uppercase;
  margin: 28px 0 12px;
  color: var(--primary);
}

.page-content h3 {
  font-family: var(--mono);
  font-size: 0.95rem;
  font-weight: 700;
  margin: 20px 0 8px;
  color: var(--text);
}

.page-content p,
.page-content li {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 12px;
}

.page-content ul {
  padding-left: 20px;
  margin-bottom: 16px;
}

.contact-form {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.contact-form label {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 12px;
}

.contact-form input,
.contact-form textarea {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 12px 14px;
  font-family: var(--sans);
  font-size: 0.95rem;
}

.contact-form textarea {
  min-height: 140px;
  resize: vertical;
}

.form-error {
  font-size: 0.85rem;
  color: var(--orange);
  display: none;
}

.form-error.active {
  display: block;
}

.form-success {
  display: none;
  margin-top: 24px;
  padding: 20px;
  border: 1px solid var(--primary);
  background: rgba(197, 179, 88, 0.08);
}

.form-success.active {
  display: block;
}

.form-success p {
  color: var(--text);
  margin: 0;
}

.btn {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 12px 24px;
  cursor: pointer;
  border: none;
  transition: background 0.2s, color 0.2s;
}

.btn--primary {
  background: var(--primary);
  color: var(--bg);
  margin-top: 16px;
}

.btn--primary:hover {
  background: var(--secondary);
}

.btn--ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn--ghost:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  z-index: 500;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal.active {
  display: flex;
}

.modal__box {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 32px;
  max-width: 480px;
  width: 100%;
}

.modal__box h2 {
  font-family: var(--mono);
  font-size: 1.2rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 16px;
  color: var(--text);
}

.modal__box p {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 24px;
  line-height: 1.6;
}

.modal__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.cookie {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 16px 48px;
  z-index: 400;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.cookie.active {
  display: flex;
}

.cookie p {
  font-size: 0.85rem;
  color: var(--muted);
  flex: 1;
  min-width: 200px;
}

.cookie__actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.redirect-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
  text-align: center;
  background: var(--bg);
}

.redirect-ad {
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 700;
  color: var(--orange);
  margin-bottom: 24px;
}

.redirect-page h1 {
  font-family: var(--mono);
  font-size: 1.5rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 16px;
  color: var(--text);
}

.redirect-page p {
  color: var(--muted);
  font-size: 0.95rem;
  max-width: 480px;
  margin-bottom: 12px;
}

.redirect-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  margin: 24px auto;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.redirect-notes {
  margin-top: 24px;
  font-size: 0.85rem;
}

.redirect-notes a {
  color: var(--secondary);
}

.error-page {
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 48px 24px;
}

.error-page h1 {
  font-family: var(--mono);
  font-size: 4rem;
  font-weight: 700;
  color: var(--orange);
  margin-bottom: 16px;
}

.error-page p {
  color: var(--muted);
  margin-bottom: 24px;
}

@media (max-width: 1024px) {
  .nav-desktop {
    display: none;
  }

  .nav-burger {
    display: flex;
  }

  .header-inner--sub .nav-burger {
    display: flex;
  }

  .nav-subpage {
    display: none;
  }
}

@media (max-width: 768px) {
  .header-inner {
    padding: 0 20px;
  }

  .nav-drawer__close {
    right: 20px;
  }

  .hero {
    min-height: 40vh;
    align-items: center;
  }

  .hero-inner {
    padding: 32px 20px;
    text-align: center;
    max-width: 100%;
  }

  .hero-sub {
    margin: 0 auto;
  }

  .offers-section,
  .info-section,
  .site-footer,
  .page-content {
    padding-left: 20px;
    padding-right: 20px;
  }

  .layout-split,
  .layout-asymmetric,
  .layout-diagonal,
  .layout-procon,
  .layout-checklist,
  .game-grid {
    grid-template-columns: 1fr;
  }

  .layout-card {
    flex-direction: column;
  }

  .layout-card .decor-wrap {
    width: 100%;
    max-width: 100%;
  }

  .layout-rail {
    grid-template-columns: 1fr;
  }

  .float-img {
    float: none;
    margin: 0 auto 20px;
    max-width: 100%;
  }

  .cookie {
    padding: 16px 20px;
    flex-direction: column;
    align-items: stretch;
  }

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

  .offer-card-logo {
    width: 160px;
    height: 64px;
  }

  .offer-card-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
  }

  .offer-card-bonus {
    font-size: 0.85rem;
  }

  .decor-wrap,
  .layout-card .decor-wrap,
  .float-img {
    max-width: 100%;
    width: 100%;
    overflow: hidden;
  }

  .decor-wrap img,
  .float-img img {
    max-width: 100%;
    width: 100%;
    height: auto;
    max-height: 240px;
    object-fit: cover;
  }

  .side-panel-bg {
    max-width: 100%;
    min-height: 120px;
    background-size: cover;
    background-position: center;
  }
}
