*{box-sizing:border-box}
body{margin:0;min-height:100vh;font-family:system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;color:#fff;background:linear-gradient(160deg,#2b1055,#46178f 55%,#1d0b3b);background-attachment:fixed}
.wrap{max-width:900px;margin:0 auto;padding:16px}
header{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:10px}
h1{font-size:2rem;margin:10px 0}h1 span{color:#ffd23f}h1 small{font-size:.9rem;background:#ffffff26;border-radius:20px;padding:3px 12px;vertical-align:middle}
header a,.card a{font-weight:700}header a{color:#fff;margin-right:8px}
.card{background:#fff;color:#2a1b4a;border-radius:20px;padding:24px;margin:14px 0;box-shadow:0 12px 34px #0006}
.card a{color:#1368ce}.narrow{max-width:440px;margin:30px auto}
label{display:block;font-weight:700;margin:10px 0}
input:not([type=checkbox]){display:block;width:100%;font-size:1.05rem;padding:12px;border:2px solid #e6def5;border-radius:12px;margin-top:5px}
input[type=checkbox]{width:22px;height:22px;accent-color:#26890c;cursor:pointer}
button{font:inherit;font-weight:700;border:0;border-radius:12px;padding:12px 18px;cursor:pointer;background:#eee7fb;color:#2a1b4a}
button.primary{width:100%;background:#26890c;color:#fff;font-size:1.15rem}button.small{padding:6px 12px;font-size:.9rem}
.seg{display:grid;grid-template-columns:1fr 1fr;background:#f3effb;border-radius:14px;padding:5px}.seg button{background:none}.seg button.on{background:#fff;box-shadow:0 2px 8px #0002}
.err{color:#c01230;font-weight:700;min-height:1.3em}.muted{color:#6b5c8a}
.lead{font-size:1.15rem;font-weight:600}
.tiles{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:16px}
.tile{display:flex;flex-direction:column;gap:8px;min-height:170px;padding:22px;border-radius:20px;color:#fff;text-decoration:none;box-shadow:0 7px 0 #0004}
.tile b{font-size:1.5rem}.tile em{margin-top:auto;font-style:normal;font-weight:800}
.tile.blue{background:#1368ce}.tile.red{background:#e21b3c}.tile.gold{background:#d89e00}.tile.green{background:#26890c}
a.tile:hover{transform:translateY(-3px)}.tile.locked{background:#5f5578;opacity:.75}
.scroll{overflow-x:auto}table{width:100%;border-collapse:collapse;margin-top:10px}th,td{text-align:left;padding:10px 8px;border-bottom:1px solid #e6def5}
.hidden{display:none!important}
