/*
Theme Name: FoxyLottery Solar Chrono Vault
Theme URI: https://foxylottery.com
Author: Foxy Ecosystem Architecture
Author URI: https://foxylottery.com
Description: Haute Horlogerie & Quantitative Terminal theme for global sovereign wealth, astronomical draw synchronization, and audited lottery courier custody.
Version: 2.0.0
License: Proprietary
Text Domain: foxylottery
*/

@layer base {
  :root {
    --surface: #faf8ff;
    --surface-dim: #d2d9f4;
    --surface-bright: #faf8ff;
    --surface-container-lowest: #ffffff;
    --surface-container-low: #f2f3ff;
    --surface-container: #eaedff;
    --surface-container-high: #e2e7ff;
    --surface-container-highest: #dae2fd;
    --on-surface: #131b2e;
    --on-surface-variant: #3a2a20;
    --inverse-surface: #283044;
    --inverse-on-surface: #eef0ff;
    --outline: #887364;
    --outline-variant: #dbc2b0;
    --primary: #d97706;
    --primary-container: #b15f00;
    --on-primary: #ffffff;
    --secondary: #006398;
    --secondary-container: #5bb8fe;
    --tertiary: #a33900;
    --tertiary-container: #cc4900;
  }

  html, body {
    margin: 0;
    padding: 0;
    background-color: var(--surface);
    color: var(--on-surface);
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
  }
  body {
    overscroll-behavior: none;
  }
  main > :first-child {
    margin-top: 0 !important;
  }
  main > :last-child {
    margin-bottom: 0 !important;
  }
}

::-webkit-scrollbar {
  display: none;
}

/* Typography Enhancements */
h1, h2, h3, h4, .font-display {
  font-family: 'Space Grotesk', system-ui, sans-serif;
  letter-spacing: -0.02em;
}

.font-mono-numbers {
  font-family: 'JetBrains Mono', monospace;
  font-variant-numeric: tabular-nums;
}

/* Foxy Ecosystem Standard CTA Box (.foxy-cta-box) - Solar Chrono Standard */
.foxy-cta-box {
  margin: 2.5rem 0;
  padding: 1.75rem 2rem;
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 16px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 16px -2px rgba(217, 119, 6, 0.08), 0 1px 3px rgba(15, 23, 42, 0.04);
}

.foxy-cta-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, #d97706 0%, #ea580c 50%, #0284c7 100%);
}

.foxy-cta-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: #131b2e;
  margin-bottom: 0.65rem;
  line-height: 1.3;
  letter-spacing: -0.015em;
}

.foxy-cta-desc {
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  color: #554336;
  line-height: 1.65;
  margin-bottom: 1.25rem;
}

.foxy-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.85rem;
  background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
  color: #ffffff !important;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-radius: 10px;
  text-decoration: none;
  border: 1px solid #b45309;
  box-shadow: 0 2px 4px rgba(217, 119, 6, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transition: all 0.2s ease;
}

.foxy-cta-btn:hover {
  background: linear-gradient(135deg, #b45309 0%, #92400e 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(217, 119, 6, 0.35);
}

/* Chrono Ball Numbers (Lottery Orbs) */
.chrono-orb {
  width: 40px;
  height: 40px;
  border-radius: 9999px;
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  color: #131b2e;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  font-size: 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
}

.chrono-orb-golden {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  border: 1px solid #f59e0b;
  color: #92400e;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
}

.chrono-orb-azure {
  background: linear-gradient(135deg, #cce5ff 0%, #93ccff 100%);
  border: 1px solid #0284c7;
  color: #00476e;
}

/* Guilloche Pattern Watermark for Certified Tickets */
.guilloche-bg {
  background-image: radial-gradient(circle at 50% 50%, rgba(217, 119, 6, 0.04) 1px, transparent 1px);
  background-size: 24px 24px;
}

/* ==========================================================================
   FoxyLottery Dynamic Banners & Anti-Offer-Wall Layout Standards
   ========================================================================== */

.foxy-lottery-banner-container,
.foxy-lottery-banner-wrapper,
.thelotter-banner-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  box-sizing: border-box;
  width: 100%;
  margin: 2rem auto;
  padding: 1rem;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
  overflow: hidden;
  text-align: center;
  content-visibility: auto;
  contain-intrinsic-size: 300px 250px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}

.foxy-lottery-banner-container:hover,
.foxy-lottery-banner-wrapper:hover,
.thelotter-banner-box:hover {
  border-color: #d97706;
  box-shadow: 0 8px 24px rgba(217, 119, 6, 0.12);
}

.thelotter-banner-link,
.foxy-lottery-banner-container a,
.foxy-lottery-banner-wrapper a {
  display: block;
  max-width: 100%;
  text-decoration: none;
  border-radius: 8px;
  outline: none;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.thelotter-banner-link:hover,
.foxy-lottery-banner-container a:hover,
.foxy-lottery-banner-wrapper a:hover {
  transform: scale(1.008);
  opacity: 0.98;
}

.foxy-lottery-banner-container img,
.foxy-lottery-banner-wrapper img,
.thelotter-banner-box img,
.thelotter-banner-img {
  display: block;
  max-width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 6px;
  border: 0;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.06));
}

/* Banner Dimensions */
.thelotter-banner-box[data-size="728x90"] { max-width: 760px; min-height: 122px; }
.thelotter-banner-box[data-size="728x90"] img { width: 728px; min-height: 90px; aspect-ratio: 728 / 90; }

.thelotter-banner-box[data-size="468x60"] { max-width: 500px; min-height: 92px; }
.thelotter-banner-box[data-size="468x60"] img { width: 468px; min-height: 60px; aspect-ratio: 468 / 60; }

.thelotter-banner-box[data-size="300x250"] { max-width: 332px; min-height: 282px; }
.thelotter-banner-box[data-size="300x250"] img { width: 300px; min-height: 250px; aspect-ratio: 300 / 250; }

.thelotter-banner-box[data-size="320x50"] { max-width: 352px; min-height: 82px; }
.thelotter-banner-box[data-size="320x50"] img { width: 320px; min-height: 50px; aspect-ratio: 320 / 50; }

.thelotter-banner-box[data-size="160x600"] { max-width: 192px; min-height: 632px; }
.thelotter-banner-box[data-size="160x600"] img { width: 160px; min-height: 600px; aspect-ratio: 160 / 600; }

.thelotter-banner-box[data-size="120x600"] { max-width: 152px; min-height: 632px; }
.thelotter-banner-box[data-size="120x600"] img { width: 120px; min-height: 600px; aspect-ratio: 120 / 600; }

.thelotter-banner-box[data-size="120x60"] { max-width: 152px; min-height: 90px; }
.thelotter-banner-box[data-size="120x60"] img { width: 120px; min-height: 60px; aspect-ratio: 120 / 60; }

.thelotter-banner-box[data-size="125x125"] { max-width: 157px; min-height: 155px; }
.thelotter-banner-box[data-size="125x125"] img { width: 125px; min-height: 125px; aspect-ratio: 125 / 125; }

.thelotter-banner-box[data-size="250x250"] { max-width: 290px; min-height: 280px; }
.thelotter-banner-box[data-size="250x250"] img { width: 250px; min-height: 250px; aspect-ratio: 250 / 250; }

/* Responsive Breakpoints */
@media (max-width: 767px) {
  .foxy-lottery-banner-container[data-size="728x90"],
  .foxy-lottery-banner-wrapper[data-size="728x90"],
  .thelotter-banner-box[data-size="728x90"],
  .banner-728x90 {
    width: 100%;
    max-width: 100%;
    min-height: unset;
    padding: 0.5rem;
  }
  .foxy-lottery-banner-container[data-size="728x90"] img,
  .foxy-lottery-banner-wrapper[data-size="728x90"] img,
  .thelotter-banner-box[data-size="728x90"] img,
  .banner-728x90 img {
    width: 100%;
    max-width: 100%;
    height: auto;
    min-height: unset;
    aspect-ratio: 728 / 90;
  }
}

@media (max-width: 520px) {
  .foxy-lottery-banner-container[data-size="468x60"],
  .foxy-lottery-banner-wrapper[data-size="468x60"],
  .thelotter-banner-box[data-size="468x60"],
  .banner-468x60 {
    width: 100%;
    max-width: 100%;
    min-height: unset;
    padding: 0.5rem;
  }
  .foxy-lottery-banner-container[data-size="468x60"] img,
  .foxy-lottery-banner-wrapper[data-size="468x60"] img,
  .thelotter-banner-box[data-size="468x60"] img,
  .banner-468x60 img {
    width: 100%;
    max-width: 100%;
    height: auto;
    min-height: unset;
    aspect-ratio: 468 / 60;
  }
}

@media (max-width: 340px) {
  .foxy-lottery-banner-container[data-size="300x250"],
  .foxy-lottery-banner-wrapper[data-size="300x250"],
  .thelotter-banner-box[data-size="300x250"],
  .banner-300x250 {
    width: 100%;
    max-width: 100%;
    min-height: unset;
    padding: 0.375rem;
  }
  .foxy-lottery-banner-container[data-size="300x250"] img,
  .foxy-lottery-banner-wrapper[data-size="300x250"] img,
  .thelotter-banner-box[data-size="300x250"] img,
  .banner-300x250 img {
    width: 100%;
    max-width: 100%;
    height: auto;
    min-height: unset;
    aspect-ratio: 300 / 250;
  }
}

/* Defensive Anti-Offer-Wall Vertical Spacing */
.foxy-cta-box + .foxy-lottery-banner-container,
.foxy-lottery-banner-container + .foxy-cta-box,
.thelotter-banner-box + .foxy-cta-box,
.foxy-cta-box + .thelotter-banner-box,
.foxy-cta-box + .foxy-cta-box,
.thelotter-banner-box + .thelotter-banner-box {
  margin-top: 3rem !important;
}
