:root { --cobalt:#001E66; --red:#D50015; --cream:#F6F1E7; --gold:#F2B705; --green:#1C8C4E; --ink:#17171F; --white:#fff; --soft:#E7E0D2; }
* { box-sizing:border-box; }
body { margin:0; font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; background:var(--cream); color:var(--ink); font-size:18px; line-height:1.45; }
header { background:var(--cobalt); color:var(--white); padding:12px 20px; display:flex; align-items:center; gap:14px; justify-content:space-between; }
header a { color:var(--white); text-decoration:none; font-weight:800; font-size:1.2rem; }
header nav a { font-weight:600; font-size:1rem; margin-left:14px; }
main { max-width:1080px; margin:0 auto; padding:20px; }
h1 { color:var(--cobalt); font-size:2rem; margin:.4em 0; } h2 { color:var(--cobalt); margin:1.2em 0 .4em; } h3 { margin:.2em 0; }
.hero { display:grid; grid-template-columns: 1.2fr 1fr; gap:20px; align-items:center; }
.hero img { width:100%; max-width:380px; justify-self:center; }
@media (max-width:760px) { .hero { grid-template-columns:1fr; } .hero img { max-width:240px; } body { font-size:17px; } }
.btn { display:inline-block; background:var(--cobalt); color:var(--white); border:0; border-radius:14px; padding:12px 18px; font-size:1rem; font-weight:700; cursor:pointer; text-decoration:none; margin:4px 6px 4px 0; }
.btn.red { background:var(--red); } .btn.ghost { background:var(--white); color:var(--cobalt); border:2px solid var(--cobalt); } .btn.small { padding:6px 12px; font-size:.9rem; }
.card { background:var(--white); border-radius:18px; padding:16px 18px; margin:12px 0; box-shadow:0 2px 0 var(--soft); }
.grid { display:grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap:12px; }
.unit { border-left:8px solid var(--soft); } .unit.ready { border-left-color:var(--red); }
.tag { display:inline-block; background:var(--soft); border-radius:99px; padding:2px 10px; font-size:.8rem; margin-right:4px; }
.tag.gold { background:var(--gold); } .tag.green { background:#CDEBD9; }
label { display:block; font-weight:700; margin-top:10px; }
input[type=text], input[type=email], input[type=password], input[type=date], select, textarea { width:100%; padding:10px 12px; font-size:1rem; border:2px solid var(--soft); border-radius:12px; background:var(--white); }
textarea { min-height:90px; }
.check { display:flex; gap:10px; align-items:flex-start; font-weight:400; } .check input { margin-top:6px; width:20px; height:20px; }
.status { min-height:1.4em; color:var(--cobalt); font-weight:600; } .error { color:var(--red); }
.xpbar { height:16px; background:var(--soft); border-radius:99px; overflow:hidden; } .xpbar > div { height:100%; background:var(--gold); }
.w0 { width:0 } .w10 { width:10% } .w20 { width:20% } .w30 { width:30% } .w40 { width:40% } .w50 { width:50% } .w60 { width:60% } .w70 { width:70% } .w80 { width:80% } .w90 { width:90% } .w100 { width:100% }
.badge { display:inline-flex; align-items:center; gap:6px; background:#FFF4C9; border:2px solid var(--gold); border-radius:14px; padding:6px 10px; margin:4px; font-size:.9rem; }
.q { border-top:2px solid var(--soft); padding-top:10px; margin-top:10px; }
.choice { display:block; padding:8px 12px; border:2px solid var(--soft); border-radius:12px; margin:6px 0; cursor:pointer; font-weight:500; }
.choice input { margin-right:8px; }
.right { border-color:var(--green); background:#E8F6EE; } .wrong { border-color:var(--red); background:#FDE8EA; }
table { width:100%; border-collapse:collapse; background:var(--white); border-radius:12px; overflow:hidden; font-size:.95rem; }
th, td { padding:8px; border-bottom:1px solid var(--soft); text-align:left; } th { background:var(--cobalt); color:var(--white); }
.tabs button { background:var(--white); border:2px solid var(--cobalt); color:var(--cobalt); border-radius:12px; padding:8px 14px; font-weight:700; margin-right:6px; cursor:pointer; }
.tabs button.on { background:var(--cobalt); color:var(--white); }
.story { display:grid; grid-template-columns:90px 1fr; gap:10px; align-items:center; border-top:1px solid var(--soft); padding:8px 0; }
.story img { width:90px; } .screen { font-size:.85rem; color:#555; }
.cards { display:grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap:10px; }
.signin { border:2px dashed var(--cobalt); border-radius:14px; padding:10px; background:var(--white); }
footer { text-align:center; color:#666; font-size:.85rem; padding:30px 10px; }
.hide { display:none !important; }
@media print { header, footer, .noprint { display:none !important; } body { background:#fff; } .signin { break-inside:avoid; } }
.testbar { background:var(--gold); color:var(--ink); text-align:center; font-weight:700; padding:6px; font-size:.9rem; }
