@font-face{font-family:'Silka';src:url('https://www.five9.com/themes/custom/five9_theme/fonts/Silka-Light.otf') format('opentype');font-weight:300;font-display:swap}
@font-face{font-family:'Silka';src:url('https://www.five9.com/themes/custom/five9_theme/fonts/Silka-Regular.otf') format('opentype');font-weight:400;font-display:swap}
@font-face{font-family:'Silka';src:url('https://www.five9.com/themes/custom/five9_theme/fonts/Silka-Medium.otf') format('opentype');font-weight:500;font-display:swap}
@font-face{font-family:'Silka';src:url('https://www.five9.com/themes/custom/five9_theme/fonts/Silka-Bold.otf') format('opentype');font-weight:700;font-display:swap}
:root{--blue:#2A4CF9;--mblue:#4B79F9;--navy:#192A52;--text:#39445E;--slate:#757F97;--s400:#DBE2F1;--s300:#EAF0F9;--s200:#F5F7FB;--bg:#F5F7FB;--card:#fff;--line:#DBE2F1;--ok:#2A4CF9;--bad:#C62828;--cell:30px;--hl:#DBE2F1;--cur:#4B79F9}
*{box-sizing:border-box}
body{margin:0;font-family:'Silka',system-ui,-apple-system,sans-serif;font-weight:400;background:var(--bg);color:var(--text)}
h1,h2,h3,b,strong,th{font-weight:700}
h1,h2,h3{margin:0 0 .5rem;color:var(--navy);letter-spacing:-.02em}
.eyebrow{font-weight:700;text-transform:uppercase;letter-spacing:.18em;font-size:.72rem;color:var(--blue);margin-bottom:.4rem}
.logo{height:34px;width:auto;display:block}.card .logo{height:40px;margin-bottom:1rem}
button{font:inherit;font-weight:700;cursor:pointer;border:0;border-radius:8px;padding:.6rem 1.1rem;background:var(--blue);color:#fff}
button:hover{background:#1f3be0}button.sec{background:var(--s300);color:var(--navy)}button.sec:hover{background:var(--s400)}
button.danger{background:var(--navy)}button.danger:hover{background:#0f1c3a}button:disabled{opacity:.45;cursor:not-allowed}
.topbar button.sec{background:rgba(255,255,255,.14);color:#fff}.topbar button.sec:hover{background:rgba(255,255,255,.26)}
input,select{font:inherit;padding:.65rem .75rem;border:1px solid var(--s400);border-radius:8px;width:100%;background:#fff;color:var(--text)}
input:focus,select:focus{outline:2px solid var(--blue);outline-offset:0;border-color:var(--blue)}
label{display:block;font-weight:700;margin:.9rem 0 .25rem;font-size:.85rem;color:var(--navy)}
.center{min-height:100vh;display:flex;align-items:center;justify-content:center;padding:1rem}
.card{background:var(--card);border-radius:12px;box-shadow:0 6px 24px rgba(25,42,82,.10);padding:2rem;width:100%;max-width:430px}
.muted{color:var(--slate);font-size:.9rem}
.err{color:var(--bad);font-weight:700;min-height:1.3em;margin-top:.6rem}
.link{display:block;text-align:center;margin-top:1rem;color:var(--blue);text-decoration:none;font-size:.9rem;font-weight:500}
.topbar{position:sticky;top:0;z-index:20;background:var(--navy);color:#fff;display:flex;align-items:center;gap:1rem;padding:.55rem 1.2rem;flex-wrap:wrap}
.topbar .logo{height:26px}.topbar .grow{flex:1}.topbar .who{font-size:.85rem;opacity:.8}
.timer{font:700 1.8rem/1 'Silka',sans-serif;font-variant-numeric:tabular-nums;letter-spacing:.06em;background:rgba(255,255,255,.1);border-radius:8px;padding:.35rem .9rem}
.score{font-weight:700;font-size:1.1rem}
.layout{display:flex;gap:1rem;padding:1rem;align-items:flex-start}
.gridwrap{flex:1;min-width:0;background:#fff;border-radius:12px;padding:.7rem;box-shadow:0 2px 12px rgba(25,42,82,.08)}
.gridscroll{overflow:auto;max-height:calc(100vh - 150px)}
.grid{display:grid;width:max-content;gap:0}
.cell{position:relative;width:var(--cell);height:var(--cell);background:#fff;border:1px solid var(--slate);margin:-1px 0 0 -1px;display:flex;align-items:center;justify-content:center;font-weight:700;font-size:calc(var(--cell)*.55);color:var(--navy);user-select:none;cursor:pointer}
.cell .n{position:absolute;top:1px;left:2px;font-size:calc(var(--cell)*.28);font-weight:500;color:var(--slate);line-height:1}
.cell.hl{background:var(--hl)}.cell.cur{background:var(--cur);color:#fff}.cell.cur .n{color:#fff}
.cell.solved{background:var(--blue);color:#fff;border-color:var(--navy)}.cell.solved .n{color:#DBE2F1}.cell.solved.cur{background:var(--navy)}
.cell.wrong{background:#D93025!important;color:#fff!important;border-color:#8E1B14;animation:shake .35s}
.cell.ro{cursor:default}
@keyframes shake{25%{transform:translateX(-2px)}75%{transform:translateX(2px)}}
.side{width:340px;flex:none;display:flex;flex-direction:column;gap:1rem;position:sticky;top:76px;max-height:calc(100vh - 90px);overflow:auto}
.panel{background:#fff;border-radius:12px;padding:.9rem;box-shadow:0 2px 12px rgba(25,42,82,.08)}
.curclue{background:var(--navy);color:#fff;border-radius:12px;padding:.7rem .9rem;font-weight:500;min-height:3rem}
.clues h3{font-size:.78rem;text-transform:uppercase;letter-spacing:.18em;color:var(--blue);border-bottom:1px solid var(--line);padding-bottom:.3rem;margin-top:.7rem}
.clue{padding:.35rem .45rem;border-radius:8px;cursor:pointer;font-size:.88rem;display:flex;gap:.4rem}
.clue:hover{background:var(--s300)}.clue.active{background:var(--hl)}.clue.done{color:var(--slate)}.clue.done .t{text-decoration:line-through}
.clue b{min-width:1.6rem;color:var(--navy)}.clue .a{font-weight:700;color:var(--blue);margin-left:.3rem}
.zoom{display:flex;gap:.4rem;margin-bottom:.4rem;align-items:center}.zoom button{padding:.25rem .7rem}
table{border-collapse:collapse;width:100%}th,td{text-align:left;padding:.5rem;border-bottom:1px solid var(--line);font-size:.92rem}
th{background:var(--s200);color:var(--navy);font-size:.75rem;text-transform:uppercase;letter-spacing:.1em}
.pill{display:inline-block;padding:.1rem .55rem;border-radius:99px;font-size:.72rem;font-weight:700}
.pill.on,.pill.open{background:var(--blue);color:#fff}.pill.off{background:var(--s400);color:var(--slate)}.pill.ended{background:var(--navy);color:#fff}
.wrap{max-width:1100px;margin:0 auto;padding:1.2rem}
.row{display:flex;gap:.6rem;align-items:center;flex-wrap:wrap}
.big{font:700 2rem 'Silka',sans-serif;letter-spacing:.14em;color:var(--blue);font-variant-numeric:tabular-nums}
.modal{position:fixed;inset:0;background:rgba(25,42,82,.6);display:flex;align-items:center;justify-content:center;z-index:50}
.modal .card{max-width:360px;text-align:center}.modal .row{justify-content:center;margin-top:1rem}
.hint{border-left:4px solid var(--blue);background:var(--s200);border-radius:8px;padding:.55rem .75rem;margin:.5rem 0;font-size:.9rem}
.hint .l{font-size:.7rem;font-weight:700;color:var(--blue);text-transform:uppercase;letter-spacing:.14em}
.rankcard{max-width:760px}
tr.me td{background:var(--s300);font-weight:700;color:var(--navy)}
.themeline{font-weight:700;font-size:.95rem;margin-top:1rem;text-align:center;color:var(--blue)}.themeline span{color:var(--slate)}
@media(max-width:900px){.layout{flex-direction:column}.side{width:100%;position:static;max-height:none}.gridscroll{max-height:60vh}:root{--cell:28px}}
