/* Capa de integración visual con snookerhub.app — septiembre de 2026 */
:root{
  --hub-bg:#07110d;--hub-surface:#0a1712;--hub-surface-2:#0b1913;
  --hub-green:#059669;--hub-green-bright:#10b981;--hub-green-deep:#064e3b;
  --hub-amber:#f59e0b;--hub-amber-bright:#fcd34d;
  --hub-text:#f8fafc;--hub-muted:#94a3b8;--hub-border:rgba(255,255,255,.10);
  --ink:var(--hub-bg);--ink2:var(--hub-surface);--surface:var(--hub-surface-2);
  --felt:var(--hub-green-deep);--felt2:var(--hub-green);--ivory:var(--hub-text);
  --muted:var(--hub-muted);--copper:var(--hub-amber);--line:var(--hub-border);
  --success:var(--hub-green-bright);--danger:#ef4444;--radius:16px;
  --font-display:ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif;
  --font-ui:ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif;
}
html{background:var(--hub-bg)}
body{background:
  radial-gradient(circle at 82% 8%,rgba(5,150,105,.13),transparent 28rem),
  radial-gradient(circle at 8% 42%,rgba(245,158,11,.055),transparent 24rem),
  var(--hub-bg);color:var(--hub-text)}
body:before{opacity:.018}
.site-header{position:sticky;top:0;z-index:8;height:72px;max-width:none;padding:0 max(20px,calc((100vw - 1280px)/2));background:rgba(7,17,13,.9);border-color:var(--hub-border);backdrop-filter:blur(18px)}
.brand{gap:10px}.brand-logo{width:45px;height:45px;object-fit:contain;border-radius:10px}.brand strong{font:800 17px/1.1 var(--font-ui);letter-spacing:-.02em}.brand small{color:#6ee7b7;font-size:9px;font-weight:700}.site-header nav button{font-weight:650;color:#cbd5e1;border-radius:8px;transition:background-color .15s,color .15s}.site-header nav button:hover{background:rgba(255,255,255,.06);color:#fff}.demo-chip{border-color:rgba(245,158,11,.35);color:var(--hub-amber-bright);background:rgba(245,158,11,.08)}
.hero{max-width:1280px;min-height:610px;padding-top:70px}.hero h1,.setup h1,.results h1,.section>h1,.editor h1{font-family:var(--font-ui);font-weight:850;line-height:.98;letter-spacing:-.055em}.hero h1{font-size:clamp(3.1rem,6.2vw,6rem)}.hero h1 em{font-style:normal;color:var(--hub-amber-bright)}.eyebrow{color:#6ee7b7;font-size:10px;font-weight:800}.lead{font-family:var(--font-ui);font-size:17px;color:#cbd5e1}.trust{color:#94a3b8}.trust span:before{content:"";display:inline-block;width:6px;height:6px;border-radius:50%;background:var(--hub-green-bright);margin-right:7px}.trust span{font-size:11px}
.primary,.secondary,.tertiary{border-radius:10px;font-weight:750;transition:transform .15s,background-color .15s,border-color .15s}.primary{background:var(--hub-green);color:white;box-shadow:0 8px 24px rgba(5,150,105,.2)}.primary:hover{background:var(--hub-green-bright);color:#032119}.secondary{background:rgba(255,255,255,.035);border-color:rgba(255,255,255,.14)}.secondary:hover,.tertiary:hover{border-color:rgba(16,185,129,.65);background:rgba(16,185,129,.07)}
.library-wrap{border:1px solid var(--hub-border);border-radius:20px;padding:30px 24px 20px;background:linear-gradient(145deg,rgba(11,25,19,.92),rgba(10,23,18,.75));box-shadow:0 28px 70px rgba(0,0,0,.36)}.shelf-label{color:#94a3b8}.shelf-label span:first-child{color:var(--hub-amber-bright);font-weight:800}.book{border-color:rgba(255,255,255,.18);box-shadow:8px 16px 30px rgba(0,0,0,.4)}.book-symbol{border-color:rgba(255,255,255,.42)}.shelf{background:linear-gradient(#475569,#1e293b);height:14px;box-shadow:0 18px 28px #000}
.section-heading h2,.mode-card strong,.setup legend,.feedback-title h2,.explanation p,.score-orb strong,.result-grid strong,.profile-grid strong,.profile h2{font-family:var(--font-ui)}.section-heading h2{font-weight:800;letter-spacing:-.035em}.mode-card{border-color:var(--hub-border);background:rgba(10,23,18,.82);border-radius:14px}.mode-card:hover,.mode-card:focus-visible{border-color:rgba(16,185,129,.6);box-shadow:0 14px 35px rgba(0,0,0,.24)}.mode-card.featured{border-color:rgba(245,158,11,.4);background:linear-gradient(145deg,rgba(6,78,59,.55),rgba(10,23,18,.88))}.mode-card>span{color:var(--hub-amber-bright)}.mode-card strong{font-size:21px;font-weight:800}.mode-card small{color:#6ee7b7}.mode-card p{color:#94a3b8}
.panel,.question-card{background:linear-gradient(145deg,rgba(11,25,19,.97),rgba(10,23,18,.95));border-color:var(--hub-border);border-radius:16px;box-shadow:0 24px 65px rgba(0,0,0,.34)}.panel{max-width:1024px}.setup h1,.results h1{font-size:clamp(2.7rem,6vw,4.7rem)}.setup-summary>div,.result-grid>div,.profile-grid>div,.difficulty{background:rgba(7,17,13,.65);border-color:var(--hub-border)}.difficulty{border-radius:10px}.difficulty.selected{border-color:var(--hub-green-bright);background:rgba(5,150,105,.13);box-shadow:inset 0 0 0 1px rgba(16,185,129,.18)}.selection-note,.local-note,.notice,.empty{border-left-color:var(--hub-amber);background:rgba(245,158,11,.07)}
.game-shell{max-width:960px}.game-hud small{color:#6ee7b7}.progress-track{height:5px;border-radius:999px;overflow:hidden}.progress-track span{background:linear-gradient(90deg,var(--hub-green),var(--hub-amber));border-radius:inherit}.question-card{border-top-color:rgba(16,185,129,.45)}.question-card>h1{font-family:var(--font-ui);font-weight:780;letter-spacing:-.035em}.question-meta span{background:rgba(255,255,255,.035)}.question-meta span:first-child{border-color:rgba(16,185,129,.35);color:#6ee7b7}.answer{border-color:var(--hub-border);background:rgba(7,17,13,.72);border-radius:12px}.answer>b{color:var(--hub-amber-bright);background:rgba(245,158,11,.08);border-color:rgba(245,158,11,.28)}.answer:hover:not(:disabled){border-color:var(--hub-green-bright);background:rgba(5,150,105,.08)}.answer.correct{border-color:var(--hub-green-bright);background:rgba(16,185,129,.1)}.answer.incorrect{border-color:#ef4444;background:rgba(239,68,68,.09)}.result-icon{background:var(--hub-green-bright)}.feedback-title p{color:#6ee7b7}.source-card{background:#07110d;border-color:rgba(16,185,129,.22)}.source-card>span{border-color:var(--hub-green-bright);color:#6ee7b7;background:rgba(16,185,129,.07)}.source-card a{color:var(--hub-amber-bright);font-weight:700}
.score-orb{border-color:var(--hub-green-bright);background:radial-gradient(circle,rgba(16,185,129,.13),transparent 68%);box-shadow:0 0 55px rgba(16,185,129,.12)}.score-orb strong{font-weight:850}.editor-row,.question-form{background:var(--hub-surface-2);border-color:var(--hub-border)}.editor-row{border-radius:10px}.question-form input,.question-form textarea,.question-form select{background:var(--hub-bg);border-color:rgba(255,255,255,.14)}footer{max-width:1280px;color:#64748b}
@media(max-width:700px){.site-header{padding:12px 16px;height:auto}.brand-logo{width:38px;height:38px}.library-wrap{padding:18px 14px}.hero h1{font-size:clamp(2.9rem,15vw,4.6rem)}.book{border-radius:9px}.question-card>h1{font-size:clamp(1.55rem,7vw,2.1rem)}}
