:root{--bg:#f4efe6;--card:#ffffff;--ink:#26221c;--muted:#716657;--accent:#2f7d5c;--accent-dark:#245f46;--navy:#20303f;--brand-em:#7fd4ae;--accent-tint:#d9efe3;--accent-tint-border:#adddc3;--warn:#c8a951;--bad:#b34747;--board-light:#f0d9b5;--board-dark:#b58863;--radius:16px}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font-family:Segoe UI,system-ui,sans-serif}.topbar{background:var(--navy);color:#fff;display:flex;align-items:center;gap:.6rem;padding:.9rem 1.4rem;box-shadow:0 2px 8px rgba(0,0,0,.25)}.logo{font-size:1.6rem}.brand{font-weight:700;font-size:1.15rem;letter-spacing:.02em}.brand em{color:var(--brand-em);font-style:normal}.brand-sub{margin-left:auto;font-size:.8rem;opacity:.75}.gear{margin-left:auto;color:#fff;text-decoration:none;font-size:1.3rem;line-height:1;padding:.25rem .4rem;border-radius:8px}.gear:focus-visible,.gear:hover{background:rgba(255,255,255,.18);outline:none}.brand-sub~.gear{margin-left:.8rem}.page{padding:1.2rem 1rem 3rem}.page,.site-footer{max-width:1080px;margin:0 auto}.site-footer{padding:0 1rem 2.5rem;display:flex;gap:1.2rem;flex-wrap:wrap;font-size:.85rem}.site-footer a{color:var(--muted)}.center-wrap{min-height:60vh;display:flex;align-items:center;justify-content:center}.card{background:var(--card);border-radius:var(--radius);padding:1.6rem;box-shadow:0 10px 30px rgba(32,48,63,.1)}.card-narrow{max-width:400px;width:100%}h1{font-size:1.4rem;margin:0 0 .4rem}h2{font-size:1.15rem;margin:0 0 .3rem}.muted{color:var(--muted);font-size:.9rem}label{display:block;font-size:.85rem;font-weight:600;margin:1rem 0 .3rem}input[type=text]{text-transform:uppercase;letter-spacing:.12em}input[type=password],input[type=text]{width:100%;padding:.85rem 1rem;border:2px solid #ddd3c3;border-radius:12px;font-size:1.05rem;background:#fdfbf7}input[type=password]{letter-spacing:.06em}input:focus{outline:none;border-color:var(--accent)}.btn{display:inline-block;width:100%;margin-top:1.1rem;padding:.95rem;border:none;border-radius:12px;background:var(--accent);color:#fff;font-size:1.02rem;font-weight:700;cursor:pointer;transition:background .15s;text-align:center;text-decoration:none}.btn:hover{background:var(--accent-dark)}.btn-secondary{background:#e7dfd0;color:var(--ink)}.btn-secondary:hover{background:#d9cfba}.error{color:var(--bad);font-weight:600}.error,.info{margin-top:.8rem;font-size:.9rem}.info{color:var(--accent-dark)}.grid{display:grid;grid-gap:1.2rem;gap:1.2rem}@media (min-width:860px){.grid-2{grid-template-columns:1.25fr 1fr}}.module-list{list-style:none;padding:0;margin:0}.module-item{display:flex;justify-content:space-between;align-items:center;background:#fbf7ee;border:1px solid #e8ddc8;border-radius:12px;padding:.9rem 1.1rem;margin-bottom:.6rem}.module-item a{color:var(--navy);font-weight:600;text-decoration:none}.badge{font-size:.75rem;font-weight:700;padding:.25rem .6rem;border-radius:999px;background:#e7dfd0}.badge-done{background:var(--accent-tint);color:var(--accent-dark)}.board-wrap{background:var(--card);border-radius:var(--radius);padding:1rem;box-shadow:0 10px 30px rgba(32,48,63,.1)}.side-panel h2{margin-top:0}.hint-box{background:#fdf5e0;border:1px solid #ecd79a;color:#6b5618;border-radius:12px;padding:.8rem 1rem;font-size:.92rem;line-height:1.5}.good-box{background:var(--accent-tint);border:1px solid var(--accent-tint-border);color:var(--accent-dark);border-radius:12px;padding:.9rem 1rem}.hint-btn{width:100%;margin-top:.5rem;padding:.75rem;border:none;border-radius:10px;background:#efe6d2;font-weight:600;color:#54452a;cursor:pointer}.hint-btn:hover{background:#e5d9bd}.feedback{min-height:1.4rem;font-weight:600;font-size:.95rem;margin-top:.6rem}.feedback.ok{color:var(--accent-dark)}.feedback.err{color:var(--bad)}.stat-row{display:flex;gap:1.2rem;flex-wrap:wrap;margin:.8rem 0}.stat{background:#fbf7ee;border-radius:10px;padding:.6rem .9rem;font-size:.85rem}.stat b{display:block;font-size:1.05rem}table.results{width:100%;border-collapse:collapse;margin-top:1rem;font-size:.9rem}td,th{text-align:left;padding:.55rem .6rem;border-bottom:1px solid #eee3cd}th{font-size:.75rem;text-transform:uppercase;color:var(--muted);letter-spacing:.05em}.logout-link{background:none;border:none;color:#a9c3d6;cursor:pointer;font-size:.8rem;text-decoration:underline}.md{line-height:1.6}.md h2{margin-top:1.4rem}.md h3,.md h4{margin:1.1rem 0 .3rem;font-size:1rem}.md ol,.md ul{padding-left:1.4rem}.md a{color:var(--accent-dark)}.md code{background:#efe6d2;padding:.05rem .35rem;border-radius:6px}.md hr{border:none;border-top:1px solid #e8ddc8;margin:1.2rem 0}[data-square=a2],[data-square=a4],[data-square=a6],[data-square=a8],[data-square=b1],[data-square=b3],[data-square=b5],[data-square=b7],[data-square=c2],[data-square=c4],[data-square=c6],[data-square=c8],[data-square=d1],[data-square=d3],[data-square=d5],[data-square=d7],[data-square=e2],[data-square=e4],[data-square=e6],[data-square=e8],[data-square=f1],[data-square=f3],[data-square=f5],[data-square=f7],[data-square=g2],[data-square=g4],[data-square=g6],[data-square=g8],[data-square=h1],[data-square=h3],[data-square=h5],[data-square=h7]{background-color:var(--board-light)!important}[data-square=a1],[data-square=a3],[data-square=a5],[data-square=a7],[data-square=b2],[data-square=b4],[data-square=b6],[data-square=b8],[data-square=c1],[data-square=c3],[data-square=c5],[data-square=c7],[data-square=d2],[data-square=d4],[data-square=d6],[data-square=d8],[data-square=e1],[data-square=e3],[data-square=e5],[data-square=e7],[data-square=f2],[data-square=f4],[data-square=f6],[data-square=f8],[data-square=g1],[data-square=g3],[data-square=g5],[data-square=g7],[data-square=h2],[data-square=h4],[data-square=h6],[data-square=h8]{background-color:var(--board-dark)!important}