/* =====================================================================
   Make10s — Shared Design System (Warm Trust)  v1
   Light, trustworthy shell. Game board uses its own dark panel.
   ===================================================================== */

:root{
  /* shell — light */
  --bg:#FAF7F0; --surface:#FFFFFF; --surface-2:#F1ECE1; --border:#E5DECF;
  --text:#1C2333; --muted:#5A6478;
  /* accents */
  --primary:#0CA678; --primary-d:#099268;
  --accent:#F08C00; --accent-d:#E07000;
  /* game panel — dark (lets vivid blocks pop) */
  --game-bg:#161B2E; --game-surface:#222A42; --game-text:#EDF1F8; --game-muted:#9AA6C4;
  /* type */
  --font-head:'Sora',system-ui,-apple-system,sans-serif;
  --font-body:'Inter',system-ui,-apple-system,sans-serif;
  /* misc */
  --radius:14px; --radius-lg:20px; --maxw:1080px;
  --shadow:0 1px 2px rgba(28,35,51,.06),0 8px 24px rgba(28,35,51,.06);
  --shadow-lg:0 12px 40px rgba(28,35,51,.12);
}

*{box-sizing:border-box;}
html{-webkit-text-size-adjust:100%;}
body{
  margin:0; background:var(--bg); color:var(--text);
  font-family:var(--font-body); font-size:18px; line-height:1.6;
  font-feature-settings:"tnum" 1; -webkit-font-smoothing:antialiased;
}
h1,h2,h3,h4{font-family:var(--font-head); line-height:1.2; margin:0 0 .5em; font-weight:700; letter-spacing:-.01em;}
h1{font-size:clamp(28px,5vw,40px);} h2{font-size:clamp(23px,3.4vw,28px);} h3{font-size:20px;}
p{margin:0 0 1em;} a{color:var(--primary-d); text-decoration:underline; text-underline-offset:2px;}
a:hover{color:var(--accent-d);}
img{max-width:100%; height:auto;}
.container{max-width:var(--maxw); margin:0 auto; padding:0 20px;}
.narrow{max-width:720px;}

/* ---------- buttons ---------- */
.btn{display:inline-flex; align-items:center; gap:.5em; justify-content:center;
  font-family:var(--font-head); font-weight:700; font-size:17px; line-height:1;
  padding:14px 26px; border-radius:999px; border:2px solid transparent; cursor:pointer;
  text-decoration:none; transition:transform .12s ease, background .15s ease, box-shadow .15s ease;
  min-height:48px;}
.btn:active{transform:translateY(1px);}
.btn-primary{background:var(--primary); color:#fff; box-shadow:0 6px 18px rgba(12,166,120,.28);}
.btn-primary:hover{background:var(--primary-d); color:#fff;}
.btn-accent{background:var(--accent); color:#fff; box-shadow:0 6px 18px rgba(240,140,0,.28);}
.btn-accent:hover{background:var(--accent-d); color:#fff;}
.btn-ghost{background:transparent; color:var(--text); border-color:var(--border);}
.btn-ghost:hover{background:var(--surface-2); color:var(--text);}

/* ---------- header ---------- */
.site-header{position:sticky; top:0; z-index:50; background:rgba(250,247,240,.88);
  backdrop-filter:saturate(180%) blur(10px); border-bottom:1px solid var(--border);}
.site-header .container{display:flex; align-items:center; gap:18px; height:64px;}
.brand{font-family:var(--font-head); font-weight:800; font-size:22px; letter-spacing:-.02em;
  color:var(--text); text-decoration:none; display:inline-flex; align-items:center; gap:9px;}
.brand .mark{display:inline-grid; place-items:center; width:30px; height:30px; border-radius:9px;
  background:var(--game-bg); color:#fff; font-size:14px; font-weight:800; font-family:var(--font-head);
  box-shadow:inset 0 0 0 1.5px rgba(255,255,255,.08);}
.brand .ten{color:var(--primary);}
.nav{display:flex; align-items:center; gap:6px; margin-left:auto;}
.nav a{font-family:var(--font-head); font-weight:600; font-size:16px; color:var(--text);
  text-decoration:none; padding:9px 12px; border-radius:9px;}
.nav a:hover{background:var(--surface-2); color:var(--text);}
.nav .btn{margin-left:6px; padding:10px 20px; min-height:42px; font-size:16px;}
.nav-toggle{display:none; margin-left:auto; background:none; border:1px solid var(--border);
  border-radius:9px; padding:8px 10px; font-size:18px; cursor:pointer; color:var(--text);}
@media (max-width:760px){
  .nav{position:fixed; inset:64px 0 auto 0; flex-direction:column; align-items:stretch; gap:0;
    background:var(--surface); border-bottom:1px solid var(--border); padding:8px 16px 16px;
    box-shadow:var(--shadow-lg); display:none;}
  .nav.open{display:flex;}
  .nav a{padding:14px 8px; border-radius:0; border-bottom:1px solid var(--border);}
  .nav .btn{margin:12px 0 0; min-height:48px;}
  .nav-toggle{display:inline-block;}
  .nav-play-mobile{margin-left:auto;}
}

/* ---------- hero ---------- */
.hero{text-align:center; padding:56px 0 36px;}
.hero h1{margin-bottom:14px;}
.hero .lede{font-size:20px; color:var(--muted); max-width:640px; margin:0 auto 26px;}
.hero .cta{display:flex; gap:12px; justify-content:center; flex-wrap:wrap;}

/* ---------- sections & cards ---------- */
.section{padding:40px 0;}
.section-tight{padding:26px 0;}
.eyebrow{font-family:var(--font-head); font-weight:700; font-size:13px; letter-spacing:.12em;
  text-transform:uppercase; color:var(--primary-d); margin-bottom:8px;}
.card{background:var(--surface); border:1px solid var(--border); border-radius:var(--radius);
  box-shadow:var(--shadow); overflow:hidden;}
.grid{display:grid; gap:18px;}
.grid-3{grid-template-columns:repeat(3,1fr);}
.grid-2{grid-template-columns:repeat(2,1fr);}
@media (max-width:760px){.grid-3,.grid-2{grid-template-columns:1fr;}}
.post-card{display:flex; flex-direction:column; text-decoration:none; color:inherit; height:100%;}
.post-card .thumb{aspect-ratio:16/9; background:linear-gradient(135deg,var(--surface-2),#e8e0cf);
  display:grid; place-items:center; font-size:34px;}
.post-card .body{padding:16px 18px;}
.post-card h3{margin:0 0 6px; font-size:19px;}
.post-card p{margin:0; color:var(--muted); font-size:15px;}
.post-card:hover{box-shadow:var(--shadow-lg); transform:translateY(-2px); transition:.15s;}
.game-card{text-decoration:none; color:inherit;}
.game-card .cover{aspect-ratio:4/3; display:grid; place-items:center; background:var(--game-bg);
  color:#fff; font-family:var(--font-head); font-weight:800; font-size:30px;}
.game-card.soon .cover{opacity:.55; font-size:15px; letter-spacing:.05em;}
.game-card .body{padding:12px 16px; font-family:var(--font-head); font-weight:700;}

/* ---------- trust strip ---------- */
.trust{background:var(--surface-2); border-top:1px solid var(--border); border-bottom:1px solid var(--border);}
.trust ul{list-style:none; margin:0; padding:22px 20px; display:flex; gap:28px; flex-wrap:wrap;
  justify-content:center; max-width:var(--maxw); margin:0 auto;}
.trust li{font-family:var(--font-head); font-weight:600; font-size:16px; color:var(--text);
  display:flex; align-items:center; gap:8px;}
.trust li::before{content:"✓"; color:var(--primary); font-weight:800;}

/* ---------- ad slot (reserves space, labeled) ---------- */
/* HIDDEN until AdSense approval: empty labeled boxes hurt UX + review.
   To RE-ENABLE after approval: change `display:none` below back to `display:grid`
   and paste the AdSense ad-unit code inside each <div class="ad"> placeholder. */
.ad{background:var(--surface); border:1px dashed var(--border); border-radius:var(--radius);
  min-height:120px; display:none; place-items:center; color:var(--muted); margin:28px auto; max-width:var(--maxw);}
.ad::before{content:"Advertisement"; font-size:12px; letter-spacing:.1em; text-transform:uppercase;}

/* ---------- breadcrumb ---------- */
.crumb{font-size:14px; color:var(--muted); padding:14px 0;}
.crumb a{color:var(--muted);} .crumb a:hover{color:var(--primary-d);}

/* ---------- prose (articles / legal) ---------- */
.prose{max-width:720px; margin:0 auto;}
.prose h2{margin-top:1.6em;} .prose h3{margin-top:1.3em;}
.prose ul,.prose ol{padding-left:1.3em;} .prose li{margin:.35em 0;}
.prose .note{background:var(--surface-2); border-left:4px solid var(--accent); border-radius:8px;
  padding:14px 18px; margin:1.4em 0; font-size:16px; color:var(--muted);}
.prose table{width:100%; border-collapse:collapse; margin:1.4em 0; font-size:16px;}
.prose th,.prose td{text-align:left; padding:11px 14px; border:1px solid var(--border); vertical-align:top;}
.prose thead th{background:var(--surface-2); font-family:var(--font-head); font-weight:700;}
.prose tbody tr:nth-child(even){background:var(--surface-2);}
.figure{margin:1.6em auto; text-align:center;}
.figure figcaption{color:var(--muted); font-size:14px; margin-top:10px; line-height:1.5;}

/* ---------- FAQ ---------- */
.faq{max-width:720px; margin:0 auto;}
.faq details{border:1px solid var(--border); border-radius:var(--radius); background:var(--surface);
  padding:4px 18px; margin-bottom:12px;}
.faq summary{font-family:var(--font-head); font-weight:700; font-size:18px; cursor:pointer; padding:14px 0; list-style:none;}
.faq summary::-webkit-details-marker{display:none;}
.faq summary::after{content:"+"; float:right; color:var(--primary); font-weight:800;}
.faq details[open] summary::after{content:"–";}
.faq details p{padding-bottom:14px; margin:0; color:var(--muted);}

/* ---------- footer ---------- */
.site-footer{background:var(--surface); border-top:1px solid var(--border); margin-top:48px;}
.site-footer .container{padding:40px 20px 28px;}
.foot-cols{display:grid; grid-template-columns:1.4fr 1fr 1fr 1fr; gap:28px;}
@media (max-width:760px){.foot-cols{grid-template-columns:1fr 1fr;}}
.foot-cols h4{font-size:13px; letter-spacing:.1em; text-transform:uppercase; color:var(--muted);}
.foot-cols a{display:block; color:var(--text); text-decoration:none; padding:5px 0; font-size:16px;}
.foot-cols a:hover{color:var(--primary-d);}
.foot-brand .brand{margin-bottom:10px;}
.foot-brand p{color:var(--muted); font-size:15px; max-width:34ch;}
.foot-legal{border-top:1px solid var(--border); margin-top:26px; padding-top:18px;
  display:flex; justify-content:space-between; gap:14px; flex-wrap:wrap; color:var(--muted); font-size:14px;}
.foot-legal em{font-style:normal; color:var(--muted);}

/* ---------- skip link / a11y ---------- */
.skip{position:absolute; left:-9999px; top:auto;}
.skip:focus{left:16px; top:10px; z-index:100; background:var(--text); color:#fff; padding:10px 16px; border-radius:8px;}
:focus-visible{outline:3px solid var(--accent); outline-offset:2px; border-radius:6px;}

/* ---------- interactive widget (quiz engine) ---------- */
.quiz{min-height:300px; background:var(--surface); border:1px solid var(--border);
  border-radius:var(--radius-lg); box-shadow:var(--shadow); padding:26px 24px; margin:28px auto; max-width:560px; text-align:center;}
.quiz-ready{display:block;}
.quiz-kicker{font-family:var(--font-head); font-weight:700; font-size:13px; letter-spacing:.12em;
  text-transform:uppercase; color:var(--primary-d); margin:0 0 6px;}
.quiz-title{font-size:22px; margin:0 0 8px;}
.quiz-sub{color:var(--muted); margin:0 0 18px; font-size:16px;}
.quiz-actions{display:flex; gap:12px; justify-content:center; flex-wrap:wrap; margin:8px 0;}
.quiz-best{color:var(--muted); font-size:15px; margin:14px 0 0;}
.quiz-bar{display:flex; justify-content:space-between; align-items:center; font-family:var(--font-head);
  font-weight:700; color:var(--text); margin-bottom:14px; font-size:17px;}
.quiz-clock{color:var(--accent-d);}
.quiz-problem{font-family:var(--font-body); font-weight:800; font-size:clamp(34px,8vw,52px);
  font-feature-settings:"tnum" 1; margin:10px 0 16px; color:var(--text);}
.quiz-form{display:flex; gap:10px; justify-content:center; align-items:center;}
.quiz-input{font-family:var(--font-body); font-size:24px; font-weight:700; width:130px; text-align:center;
  padding:12px 14px; border:2px solid var(--border); border-radius:12px; min-height:50px;}
.quiz-input:focus{border-color:var(--primary); outline:none;}
.quiz-go{min-height:50px;}
.quiz-feedback{min-height:26px; font-weight:700; margin:12px 0 4px; font-size:16px;}
.quiz-feedback.ok{color:var(--primary-d);}
.quiz-feedback.no{color:#C2410C;}
.quiz-result-num{font-family:var(--font-body); font-weight:800; font-size:64px; line-height:1;
  color:var(--primary); font-feature-settings:"tnum" 1; margin:6px 0;}
.quiz-result-label{color:var(--muted); margin:0 0 6px; font-size:16px;}
.quiz-result-msg{font-family:var(--font-head); font-weight:700; font-size:20px; margin:6px 0 2px;}
.quiz-disclaimer{color:var(--muted); font-size:14px; margin:18px 0 0; line-height:1.5;}
