:root{
  --navy:#102A43;
  --navy-2:#0B1320;
  --orange:#F28C28;
  --yellow:#FFF3C4;
  --cream:#FFF8E6;
  --turquoise:#1EBFC1;
  --soft-turquoise:#DDF7F7;
  --white:#ffffff;
  --muted:#657789;
  --danger:#b3261e;
  --shadow:0 18px 45px rgba(16,42,67,.13);
  --radius:22px;
}
*{box-sizing:border-box}
body{
  margin:0;
  font-family:Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:linear-gradient(135deg,var(--yellow),var(--cream) 42%,#fff 70%);
  color:var(--navy-2);
  min-height:100vh;
}
.app-header{
  background:rgba(16,42,67,.97);
  color:white;
  padding:20px clamp(18px,4vw,56px);
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:24px;
  position:sticky;
  top:0;
  z-index:20;
  box-shadow:0 10px 28px rgba(0,0,0,.22);
}
.brand-lockup{display:flex;align-items:center;gap:16px}
.logo-mark{
  width:58px;height:58px;border-radius:18px;
  display:grid;place-items:center;
  font-weight:900;letter-spacing:.08em;
  background:linear-gradient(145deg,var(--orange),var(--turquoise));
  color:var(--navy);
  box-shadow:inset 0 0 0 3px rgba(255,255,255,.28);
}
h1,h2,h3,p{margin-top:0}
h1{font-size:1.35rem;margin-bottom:4px}
h1+p{margin:0;color:#dbe7f2;font-size:.92rem}
.top-nav{display:flex;flex-wrap:wrap;gap:8px;justify-content:flex-end}
.nav-button,.primary-action,.secondary-action,.danger-action{
  border:0;border-radius:999px;padding:11px 16px;font-weight:750;cursor:pointer;
  transition:transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.nav-button{background:rgba(255,255,255,.12);color:white}
.nav-button.active,.nav-button:hover{background:var(--orange);color:var(--navy)}
.primary-action{background:var(--navy);color:white;box-shadow:0 10px 20px rgba(16,42,67,.22)}
.secondary-action{background:var(--turquoise);color:var(--navy)}
.danger-action{background:#ffe0dd;color:var(--danger);border:1px solid #ffc2bc}
button:hover{transform:translateY(-1px)}
.app-shell{padding:34px clamp(18px,5vw,70px) 70px}
.hero-panel{
  display:grid;grid-template-columns:minmax(0,1.6fr) minmax(280px,.7fr);
  gap:28px;align-items:stretch;
}
.hero-copy,.field-card,.admin-card,.case-card,.visual-panel,.question-card,.results-card,.game-stage,.game-intro{
  background:rgba(255,255,255,.88);
  border:1px solid rgba(16,42,67,.08);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
}
.hero-copy{padding:42px}
.hero-copy h2{font-size:clamp(2rem,4vw,4rem);line-height:1.02;margin-bottom:18px;color:var(--navy)}
.hero-copy p{font-size:1.05rem;line-height:1.65;max-width:850px;color:#30465b}
.eyebrow{
  text-transform:uppercase;letter-spacing:.18em;font-weight:900;color:#a85100;font-size:.78rem;margin-bottom:12px;
}
.cta-row{display:flex;gap:12px;flex-wrap:wrap;margin-top:24px}
.field-card{padding:28px;display:flex;flex-direction:column;justify-content:center;text-align:center}
.score-ring{
  width:170px;height:170px;border-radius:50%;
  margin:14px auto 18px;display:grid;place-items:center;
  background:
    radial-gradient(circle at center, white 58%, transparent 59%),
    conic-gradient(var(--turquoise) 0deg, var(--orange) 130deg, #e7eef6 132deg);
  border:9px solid rgba(16,42,67,.08);
}
.score-ring span{font-size:2.2rem;font-weight:900;color:var(--navy)}
.stats-grid,.module-grid,.case-grid,.commercial-grid{
  display:grid;gap:18px;margin-top:26px;
}
.stats-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
.stats-grid article{
  background:var(--navy);color:white;border-radius:18px;padding:22px;
}
.stats-grid strong{display:block;font-size:1.65rem;color:var(--yellow)}
.stats-grid span{color:#d6e2ee}
.module-grid{grid-template-columns:repeat(auto-fit,minmax(240px,1fr))}
.module-card{
  padding:24px;border-radius:20px;background:rgba(255,255,255,.84);border-left:7px solid var(--orange);
  box-shadow:var(--shadow);
}
.module-card:nth-child(even){border-left-color:var(--turquoise)}
.module-card h3{color:var(--navy);margin-bottom:8px}
.pill{
  display:inline-flex;align-items:center;gap:7px;
  padding:6px 10px;border-radius:999px;background:var(--soft-turquoise);color:var(--navy);
  font-size:.82rem;font-weight:800;
}
.section-heading{
  display:flex;justify-content:space-between;align-items:end;gap:18px;flex-wrap:wrap;margin-bottom:22px;
}
.section-heading h2{font-size:clamp(1.8rem,3vw,3rem);color:var(--navy);margin:0}
.filter-row{display:flex;flex-wrap:wrap;gap:8px}
.filter-row button{
  border:1px solid rgba(16,42,67,.16);background:white;border-radius:999px;padding:9px 13px;cursor:pointer;font-weight:750;color:var(--navy)
}
.filter-row button.active{background:var(--navy);color:white}
.case-grid{grid-template-columns:repeat(auto-fit,minmax(280px,1fr))}
.case-card{padding:24px;display:flex;flex-direction:column;gap:12px;min-height:260px}
.case-card h3{color:var(--navy);margin-bottom:0}
.case-meta{display:flex;gap:8px;flex-wrap:wrap}
.case-card p{line-height:1.55;color:#3f5367}
.card-footer{margin-top:auto;display:flex;justify-content:space-between;align-items:center;gap:12px}
.detail-grid{
  display:grid;grid-template-columns:minmax(0,1.15fr) minmax(320px,.85fr);gap:22px;
}
.visual-panel{padding:24px}
.case-visual{
  position:relative;background:#f2f6f9;border-radius:18px;min-height:390px;overflow:hidden;border:1px solid rgba(16,42,67,.12);
}
.case-visual svg{width:100%;height:390px;display:block}
.hotspot{
  position:absolute;width:34px;height:34px;border-radius:50%;
  border:3px solid white;background:var(--orange);color:var(--navy);font-weight:900;
  box-shadow:0 8px 18px rgba(0,0,0,.28);cursor:pointer;
}
.hotspot.good{background:var(--turquoise)}
.hotspot.selected{outline:5px solid rgba(30,191,193,.35);transform:scale(1.1)}
.hotspot-tooltip{
  position:absolute;z-index:10;background:var(--navy);color:white;border-radius:13px;padding:10px 12px;
  font-size:.88rem;max-width:230px;box-shadow:var(--shadow);display:none;
}
.evidence-panel{padding:20px;margin-top:16px;background:var(--cream);border-radius:16px;border:1px dashed rgba(16,42,67,.24)}
.check-list{padding-left:20px;line-height:1.65}
.check-list li::marker{color:var(--orange)}
.question-stack{display:flex;flex-direction:column;gap:16px}
.question-card{padding:22px}
.options{display:grid;gap:10px;margin-top:13px}
.option{
  text-align:left;border:1px solid rgba(16,42,67,.14);background:white;border-radius:14px;padding:13px 14px;cursor:pointer;
}
.option.correct{border-color:var(--turquoise);background:var(--soft-turquoise)}
.option.incorrect{border-color:#f2a2a2;background:#fff1f1}
.feedback{margin-top:12px;padding:12px;border-radius:12px;background:#f7fafc;color:#334e68}
.conclusion-box textarea{
  width:100%;min-height:135px;border-radius:16px;border:1px solid rgba(16,42,67,.16);
  padding:14px;font-family:inherit;font-size:1rem;resize:vertical;
}
.results-card{padding:24px;margin-top:18px}
.admin-grid{display:grid;grid-template-columns:minmax(320px,1fr) minmax(280px,.8fr);gap:22px}
.admin-card{padding:24px}
.admin-card label{display:flex;flex-direction:column;gap:7px;margin:14px 0;font-weight:750;color:var(--navy)}
.admin-card input,.admin-card textarea,.admin-card select{
  border:1px solid rgba(16,42,67,.16);border-radius:13px;padding:12px;font:inherit;background:white;
}
.admin-card textarea{min-height:100px}
.import-box input{margin-top:8px}
.status-box{
  margin-top:16px;border-radius:14px;background:#f1f7fb;padding:13px;min-height:45px;color:#30465b;
}
.game-layout{display:grid;grid-template-columns:minmax(280px,.8fr) minmax(340px,1.2fr);gap:22px}
.game-intro,.game-stage{padding:28px}
.decision-list{display:grid;gap:12px;margin-top:18px}
.decision-card{
  border:1px solid rgba(16,42,67,.14);background:white;border-radius:18px;padding:16px;cursor:pointer;
}
.decision-card:hover{border-color:var(--orange)}
.progress-bar{height:12px;background:#e4edf4;border-radius:999px;overflow:hidden;margin:15px 0}
.progress-fill{height:100%;background:linear-gradient(90deg,var(--orange),var(--turquoise));width:0}
.commercial-grid{grid-template-columns:repeat(auto-fit,minmax(250px,1fr))}
code{background:#eef5f8;border-radius:7px;padding:2px 6px}
@media (max-width:900px){
  .app-header{position:relative;align-items:flex-start;flex-direction:column}
  .hero-panel,.detail-grid,.admin-grid,.game-layout{grid-template-columns:1fr}
  .stats-grid{grid-template-columns:repeat(2,1fr)}
}
@media (max-width:520px){
  .stats-grid{grid-template-columns:1fr}
  .hero-copy{padding:26px}
}
