:root {
  --color-primary: #1a5c2e;
  --color-primary-dark: #0f3d1e;
  --color-primary-light: #2d8a47;
  --color-accent: #f5c518;
  --color-white: #ffffff;
  --color-bg: #f8faf8;
  --color-text: #1a1a1a;
  --color-text-muted: #5a5a5a;
  --color-border: #e0e6e0;
  --font-main: 'Segoe UI', system-ui, -apple-system, sans-serif;
  --max-width: 1200px;
  --header-height: 72px;
  --radius: 8px;
  --shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

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

html {
  scroll-behavior: smooth;
}

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

body.age-gate-active {
  overflow: hidden;
}

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

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color 0.2s;
}

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

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Header */
.site-header {
  background: var(--color-white);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  gap: 1rem;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--color-text);
  font-weight: 700;
  font-size: 1.1rem;
}

.logo-link:hover {
  color: var(--color-primary);
}

.logo-img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--color-primary);
}

.nav-toggle svg {
  width: 28px;
  height: 28px;
}

.main-nav ul {
  display: flex;
  list-style: none;
  gap: 1.5rem;
  align-items: center;
}

.main-nav a {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--color-text);
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--color-primary);
}

.age-badge {
  background: var(--color-primary);
  color: var(--color-white);
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 700;
}

/* Hero */
.hero {
  position: relative;
  min-height: 480px;
  display: flex;
  align-items: center;
  color: var(--color-white);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 75% center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(15, 61, 30, 0.94) 0%,
    rgba(15, 61, 30, 0.88) 45%,
    rgba(26, 92, 46, 0.72) 100%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding-top: 4rem;
  padding-bottom: 4rem;
  max-width: 680px;
  width: 100%;
}

.hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  line-height: 1.25;
  margin-bottom: 1rem;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.hero p {
  font-size: clamp(1rem, 2vw, 1.15rem);
  opacity: 0.95;
  margin-bottom: 1.75rem;
  line-height: 1.65;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

.hero .btn-primary {
  display: inline-block;
  max-width: 100%;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.85rem 1.75rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  border: none;
  transition: background 0.2s, transform 0.15s;
  text-align: center;
}

.btn-primary {
  background: var(--color-accent);
  color: var(--color-primary-dark);
}

.btn-primary:hover {
  background: #e0b015;
  color: var(--color-primary-dark);
  transform: translateY(-1px);
}

.btn-secondary {
  background: transparent;
  color: var(--color-white);
  border: 2px solid var(--color-white);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
  color: var(--color-white);
}

.btn-outline {
  background: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}

.btn-outline:hover {
  background: var(--color-primary);
  color: var(--color-white);
}

/* Sections */
section {
  padding: 4rem 0;
}

.section-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--color-primary-dark);
  margin-bottom: 1rem;
}

.section-subtitle {
  color: var(--color-text-muted);
  max-width: 640px;
  margin-bottom: 2rem;
}

/* Cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--color-white);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--color-border);
}

.card h3 {
  color: var(--color-primary);
  margin-bottom: 0.75rem;
  font-size: 1.15rem;
}

.card p {
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

/* License block */
.license-block {
  background: var(--color-white);
  border: 2px solid var(--color-primary);
  border-radius: var(--radius);
  padding: 2rem;
  margin: 2rem 0;
}

.license-block h2 {
  color: var(--color-primary-dark);
  margin-bottom: 1.25rem;
  font-size: 1.35rem;
}

.license-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
  gap: 1rem;
}

.license-item {
  min-width: 0;
}

.license-item dt {
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.license-item dd {
  font-size: 1rem;
  color: var(--color-text);
  margin-top: 0.25rem;
  word-break: break-word;
  overflow-wrap: break-word;
}

/* Info section with image */
.info-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.info-row.reverse {
  direction: rtl;
}

.info-row.reverse > * {
  direction: ltr;
}

.info-row img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* Page content */
.page-hero {
  background: var(--color-primary-dark);
  color: var(--color-white);
  padding: 3rem 0;
}

.page-hero h1 {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
}

.page-content {
  padding: 3rem 0 4rem;
}

.page-content h2 {
  color: var(--color-primary-dark);
  font-size: 1.35rem;
  margin: 2rem 0 1rem;
}

.page-content h2:first-child {
  margin-top: 0;
}

.page-content h3 {
  color: var(--color-primary);
  font-size: 1.1rem;
  margin: 1.5rem 0 0.75rem;
}

.page-content p,
.page-content li {
  color: var(--color-text-muted);
  margin-bottom: 1rem;
}

.page-content ul,
.page-content ol {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.page-content li {
  margin-bottom: 0.5rem;
}

.content-box {
  background: var(--color-white);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--color-border);
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}

/* Contact form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  max-width: 600px;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.4rem;
  font-size: 0.9rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--color-primary);
}

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

.form-note {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.form-success {
  background: #e8f5e9;
  color: #2e7d32;
  padding: 1rem;
  border-radius: var(--radius);
  display: none;
}

.contact-details {
  margin-top: 2rem;
}

.contact-details dl {
  display: grid;
  gap: 1rem;
}

.contact-details dt {
  font-weight: 600;
  color: var(--color-primary);
}

.contact-details dd {
  color: var(--color-text-muted);
}

/* Footer */
.site-footer {
  background: var(--color-primary-dark);
  color: rgba(255, 255, 255, 0.85);
  margin-top: auto;
}

.footer-disclaimer {
  background: rgba(0, 0, 0, 0.2);
  padding: 1.25rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-disclaimer p {
  font-size: 0.85rem;
  line-height: 1.7;
  text-align: center;
}

.footer-disclaimer .age-18 {
  display: inline-block;
  background: var(--color-accent);
  color: var(--color-primary-dark);
  font-weight: 700;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  margin-right: 0.5rem;
}

.footer-main {
  padding: 3rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-col h3 {
  color: var(--color-white);
  font-size: 0.95rem;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 0.5rem;
}

.footer-col a {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.9rem;
}

.footer-col a:hover {
  color: var(--color-white);
}

.footer-col p {
  font-size: 0.9rem;
  line-height: 1.7;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.25rem 0;
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
}

/* Age Gate */
.age-gate-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.age-gate-overlay.hidden {
  display: none;
}

.age-gate-modal {
  background: var(--color-white);
  border-radius: var(--radius);
  padding: 2.5rem;
  max-width: 480px;
  width: 100%;
  text-align: center;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.age-gate-modal .logo-img {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
}

.age-gate-modal h2 {
  color: var(--color-primary-dark);
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.age-gate-modal p {
  color: var(--color-text-muted);
  margin-bottom: 1.5rem;
}

.age-gate-modal .age-badge-large {
  display: inline-block;
  background: var(--color-primary);
  color: var(--color-white);
  font-size: 2rem;
  font-weight: 700;
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius);
  margin-bottom: 1.5rem;
}

.age-gate-denied {
  color: #c62828;
  font-weight: 600;
  margin-top: 1rem;
  display: none;
}

/* Cookie Banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--color-white);
  border-top: 2px solid var(--color-primary);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
  z-index: 9999;
  padding: 1.25rem;
  display: none;
}

.cookie-banner.visible {
  display: block;
}

.cookie-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  justify-content: space-between;
}

.cookie-text {
  flex: 1;
  min-width: 280px;
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.cookie-text a {
  text-decoration: underline;
}

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.cookie-actions .btn {
  padding: 0.6rem 1.25rem;
  font-size: 0.9rem;
}

.btn-accept {
  background: var(--color-primary);
  color: var(--color-white);
}

.btn-accept:hover {
  background: var(--color-primary-light);
  color: var(--color-white);
}

.btn-reject {
  background: var(--color-border);
  color: var(--color-text);
}

.btn-reject:hover {
  background: #ccc;
  color: var(--color-text);
}

/* Cookie preferences modal */
.cookie-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 10001;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.cookie-modal-overlay.visible {
  display: flex;
}

.cookie-modal {
  background: var(--color-white);
  border-radius: var(--radius);
  padding: 2rem;
  max-width: 520px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
}

.cookie-modal h3 {
  color: var(--color-primary-dark);
  margin-bottom: 1rem;
}

.cookie-option {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--color-border);
}

.cookie-option label {
  flex: 1;
  cursor: pointer;
}

.cookie-option strong {
  display: block;
  margin-bottom: 0.25rem;
}

.cookie-option span {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.cookie-modal-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.5rem;
  justify-content: flex-end;
}

/* Tables */
.table-wrap {
  width: 100%;
  max-width: 100%;
  margin: 1rem 0;
}

.table-wrap .winners-table {
  margin-top: 0;
}

.winners-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
}

.winners-table th,
.winners-table td {
  padding: 0.85rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--color-border);
}

.winners-table th {
  background: var(--color-primary);
  color: var(--color-white);
  font-weight: 600;
}

.winners-table tr:nth-child(even) {
  background: rgba(26, 92, 46, 0.04);
}

.winners-table tr.table-summary td {
  background: rgba(26, 92, 46, 0.08);
  font-weight: 600;
  text-align: right;
}

.winners-table tr.table-message td {
  text-align: center;
  color: var(--color-text-muted);
  padding: 2rem 1rem;
}

.notice-box {
  background: #fff8e1;
  border-left: 4px solid var(--color-accent);
  padding: 1.25rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 1.5rem 0;
}

.notice-box p {
  color: var(--color-text);
  margin: 0;
}

/* Responsive */
@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }

  .main-nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--color-white);
    border-bottom: 1px solid var(--color-border);
    padding: 1rem;
    transform: translateY(-120%);
    opacity: 0;
    transition: transform 0.3s, opacity 0.3s;
    box-shadow: var(--shadow);
  }

  .main-nav.open {
    transform: translateY(0);
    opacity: 1;
  }

  .main-nav ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .info-row {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .info-row.reverse {
    direction: ltr;
  }

  .hero {
    min-height: auto;
  }

  .hero-content {
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
  }

  .hero-overlay {
    background: linear-gradient(
      180deg,
      rgba(15, 61, 30, 0.95) 0%,
      rgba(15, 61, 30, 0.92) 100%
    );
  }

  .hero-bg img {
    object-position: center center;
  }

  .cookie-inner {
    flex-direction: column;
    align-items: stretch;
  }

  .cookie-actions {
    justify-content: stretch;
  }

  .cookie-actions .btn {
    flex: 1;
  }

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

  .winners-table thead {
    display: none;
  }

  .winners-table tbody tr {
    display: block;
    margin-bottom: 1rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--color-white);
  }

  .winners-table tbody tr:nth-child(even) {
    background: var(--color-white);
  }

  .winners-table tbody tr.table-summary,
  .winners-table tbody tr.table-message {
    background: rgba(26, 92, 46, 0.06);
  }

  .winners-table td {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
    padding: 0.65rem 1rem;
    border-bottom: 1px solid var(--color-border);
    text-align: right;
    font-size: 0.9rem;
  }

  .winners-table td::before {
    content: attr(data-label);
    font-weight: 600;
    color: var(--color-primary);
    text-align: left;
    flex: 1;
  }

  .winners-table td:last-child {
    border-bottom: none;
  }

  .winners-table tr.table-summary td,
  .winners-table tr.table-message td {
    display: block;
    text-align: center;
    padding: 1rem;
  }

  .winners-table tr.table-summary td::before,
  .winners-table tr.table-message td::before {
    display: none;
  }
}

@media (max-width: 480px) {
  section {
    padding: 2.5rem 0;
  }

  .container {
    padding: 0 1rem;
  }

  .license-block {
    padding: 1.25rem;
  }

  .content-box {
    padding: 1.25rem;
  }

  .age-gate-modal {
    padding: 1.75rem;
  }
}
