/* TwistUno – Equestrian theme. System fonts, minimal, fast */
:root{
  --green: #0d3320;
  --green-light: #1a4d32;
  --gold: #b8860b;
  --gold-light: #daa520;
  --leather: #3d2914;
  --leather-light: #5c3d1e;
  --cream: #f5f0e6;
  --cream-dark: #e8e0d0;
  --white: #fff;
  --text: #1a1a1a;
  --muted: #555;
}
*,*::before,*::after{box-sizing:border-box}
html{font-size:100%;-webkit-text-size-adjust:100%}
body{margin:0;font-family:system-ui,-apple-system,Segoe UI,Roboto,sans-serif;background:var(--cream);color:var(--text);line-height:1.5}
img{max-width:100%;height:auto;display:block}
a{color:var(--gold);text-decoration:none}
a:hover{color:var(--gold-light);text-decoration:underline}
.disclaimer-bar{background:var(--leather);color:var(--cream);text-align:center;padding:.4rem .5rem;font-size:.75rem}
.site-header{background:var(--green);color:var(--cream)}
.header-inner{max-width:1200px;margin:0 auto;padding:.75rem 1rem;display:flex;align-items:center;flex-wrap:wrap;gap:1rem}
.logo{font-weight:700;font-size:1.25rem;color:var(--cream);text-decoration:none}
.logo:hover{color:var(--gold);text-decoration:none}
.nav-main{display:flex;flex-wrap:wrap;gap:.5rem 1rem}
.nav-main a{color:var(--cream);text-decoration:none}
.nav-main a:hover{color:var(--gold);text-decoration:none}
.badge-18{background:var(--gold);color:var(--green);padding:.2rem .5rem;font-size:.7rem;font-weight:700;margin-left:auto;border-radius:2px}
.main-content{min-height:60vh;max-width:1200px;margin:0 auto;padding:1rem}
.site-footer{background:var(--leather);color:var(--cream);margin-top:2rem}
.footer-inner{max-width:1200px;margin:0 auto;padding:1.5rem 1rem;text-align:center}
.disclaimer-footer{font-size:.75rem;margin:0 0 .5rem;opacity:.95}
.footer-nav{display:flex;justify-content:center;flex-wrap:wrap;gap:1rem;margin-bottom:.5rem}
.footer-nav a{color:var(--cream);text-decoration:none}
.footer-nav a:hover{color:var(--gold);text-decoration:none}
.copyright{font-size:.8rem;margin:0;opacity:.9}

/* Hero */
.hero{position:relative;background:var(--green);color:var(--cream);padding:3rem 1rem;text-align:center;overflow:hidden;min-height:320px;display:flex;align-items:center;justify-content:center}
.hero-bg{position:absolute;inset:0;background:linear-gradient(180deg,var(--green) 0%,var(--green-light) 40%,#0d3320 100%);opacity:.95}
.hero-track{position:absolute;bottom:0;left:0;right:0;height:80px;background:repeating-linear-gradient(90deg,var(--cream-dark) 0,var(--cream-dark) 4px,transparent 4px,transparent 8px);opacity:.15}
.hero-silhouettes{position:absolute;bottom:20px;left:0;right:0;height:50px;opacity:.25;animation:run 12s linear infinite;display:flex;align-items:flex-end;justify-content:space-around;pointer-events:none}
.hero-silhouettes::before,.hero-silhouettes::after{content:'';width:24px;height:20px;background:var(--cream);border-radius:40% 40% 0 0;opacity:.6}
@keyframes run{0%{transform:translateX(-15%)}100%{transform:translateX(15%)}}
.hero-inner{position:relative;z-index:1}
.hero h1{margin:0 0 .5rem;font-size:clamp(1.5rem,4vw,2.25rem);font-weight:700;letter-spacing:.02em}
.hero .subtitle{margin:0 0 1.5rem;font-size:1rem;opacity:.95}
.hero-cta{display:flex;flex-wrap:wrap;gap:1rem;justify-content:center}
.btn{display:inline-block;padding:.6rem 1.25rem;font-size:1rem;font-weight:600;border-radius:4px;border:none;cursor:pointer;text-decoration:none;transition:opacity .2s}
.btn-primary{background:var(--gold);color:var(--green)}
.btn-primary:hover{opacity:.9;text-decoration:none;color:var(--green)}
.btn-secondary{background:transparent;color:var(--cream);border:2px solid var(--gold)}
.btn-secondary:hover{opacity:.9;text-decoration:none;color:var(--cream)}

/* Sections */
.section{margin:2rem 0}
.section h2{color:var(--green);font-size:1.5rem;margin:0 0 1rem;border-bottom:2px solid var(--gold);padding-bottom:.25rem;display:inline-block}
.section p{margin:0 0 1rem;color:var(--text)}
.section ul{margin:0 0 1rem;padding-left:1.25rem}

/* Cards / game grid */
.game-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:1rem;margin:1.5rem 0}
.game-card{background:var(--white);border:1px solid var(--cream-dark);border-radius:6px;padding:1.25rem;text-align:center;transition:box-shadow .2s}
.game-card:hover{box-shadow:0 4px 12px rgba(0,0,0,.08)}
.game-card h3{margin:0 0 .5rem;font-size:1.1rem;color:var(--green)}
.game-card p{margin:0 0 1rem;font-size:.9rem;color:var(--muted)}
.game-card .btn{margin:0}

/* Age gate modal */
.age-gate-overlay{position:fixed;inset:0;background:rgba(13,51,32,.92);z-index:9999;display:flex;align-items:center;justify-content:center;padding:1rem}
.age-gate-box{background:var(--cream);color:var(--text);max-width:400px;padding:2rem;border-radius:8px;text-align:center;box-shadow:0 8px 32px rgba(0,0,0,.3)}
.age-gate-box h2{margin:0 0 1rem;font-size:1.25rem;color:var(--green)}
.age-gate-box p{margin:0 0 1.5rem}
.age-gate-btns{display:flex;gap:1rem;justify-content:center;flex-wrap:wrap}
.age-gate-overlay[hidden]{display:none}

/* Game layout */
.game-area{margin:1rem 0}
.game-header{display:flex;flex-wrap:wrap;align-items:center;gap:1rem;margin-bottom:1rem}
.game-score{font-weight:700;color:var(--green)}
.game-instructions{background:var(--cream-dark);padding:1rem;border-radius:6px;margin-bottom:1rem;font-size:.9rem}
.game-instructions summary{cursor:pointer;font-weight:600;color:var(--green)}
.game-instructions[open] summary{margin-bottom:.5rem}
.game-modes{display:flex;gap:.5rem;flex-wrap:wrap}
.game-modes button{padding:.4rem .8rem;font-size:.9rem;border-radius:4px;border:1px solid var(--green);background:var(--cream);color:var(--green);cursor:pointer}
.game-modes button.active{background:var(--green);color:var(--cream);border-color:var(--green)}
#pick-area,#symbols-pick{display:flex;flex-wrap:wrap;gap:.5rem;margin:.5rem 0}
#pick-area .btn,#symbols-pick .btn{min-width:2.5rem}

/* Utility */
.text-center{text-align:center}
.mt-1{margin-top:1rem}
.mb-0{margin-bottom:0}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0}

@media (max-width:640px){
  .header-inner{flex-direction:column;align-items:flex-start}
  .badge-18{margin-left:0}
  .hero{padding:2rem 1rem;min-height:280px}
  .hero-cta{flex-direction:column}
  .btn{width:100%;text-align:center}
}
