:root{font-family:system-ui,-apple-system,Segoe UI,sans-serif;color:#203044;background:#f6f7fb;font-synthesis:none}*{box-sizing:border-box}body{margin:0}.shell{max-width:540px;margin:0 auto;padding:28px 12px 40px}header{text-align:center;margin-bottom:24px}.brand{font-size:32px;font-weight:850;letter-spacing:.12em}.dot{color:#478e69}.sub{color:#56677c;font-size:14px;margin:4px 0}nav{display:flex;gap:6px;justify-content:center;margin:16px 0}nav button{flex:1;padding:12px 6px}.panel{background:#fff;border:1px solid #e3e7ef;border-radius:20px;padding:20px;box-shadow:0 12px 36px #23314c0d}.account{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap;border-bottom:1px solid #e3e7ef;padding-bottom:12px;margin-bottom:20px;font-size:12px;color:#52657a}.account form{margin:0}.account button{font-size:12px;padding:8px 10px;min-height:36px}.topline{display:flex;justify-content:space-between;gap:12px;align-items:center;font-size:13px;font-weight:650;color:#52657a}.badge{border-radius:20px;background:#edf2f8;padding:5px 8px}.note{min-height:28px;color:#52657a;font-size:13px;line-height:1.5;margin:14px 0 0}.note.error{color:#943737}.note.success{color:#24623c}h1,h2{font-size:21px;margin:4px 0 12px}h3{font-size:16px}p{line-height:1.5}button,input,select{font:inherit}button{border:0;border-radius:9px;min-height:44px;padding:12px 16px;background:#273d5a;color:#fff;font-weight:700;cursor:pointer}button:disabled{opacity:.5;cursor:not-allowed}.secondary{background:#edf1f6;color:#34465e}.text-button{background:transparent;color:#34465e;padding:8px;text-decoration:underline}button:focus-visible,select:focus-visible,input:focus-visible{outline:3px solid #547eae;outline-offset:2px}label{display:block;font-weight:650;font-size:13px;margin:16px 0 7px}select,input[type=month]{width:100%;min-height:44px;padding:10px;border:1px solid #9dacbf;border-radius:9px;background:#fff;color:inherit}.actions{display:flex;gap:8px;flex-wrap:wrap;margin:20px 0 0}.actions button{flex:1}.muted,small{color:#52657a}.board{display:grid;gap:7px;width:100%;max-width:calc(var(--letters)*63px + 66px);margin:20px auto}.board-row{display:grid;grid-template-columns:repeat(var(--letters),minmax(0,1fr)) 66px;gap:5px;align-items:center}.board[data-length="4"]{--letters:4}.board[data-length="5"]{--letters:5}.board[data-length="6"]{--letters:6}.tile{aspect-ratio:1;border:2px solid #d8dfe8;border-radius:7px;display:grid;place-items:center;font-size:clamp(18px,5vw,26px);font-weight:750;line-height:1;min-width:0;max-height:58px}.start .tile{background:#e9edf3;border-color:#cdd5e0}.locked .tile{background:#edf2f8;border-color:#b7c6d7}.active .tile{border-color:#8ba4c2}.active.good .tile,.end.solved .tile{background:#d9f2d9;border-color:#8bc69a;color:#245b32}.active.bad .tile{background:#fce3e3;border-color:#e6a2a2;color:#943b3b}.end .tile{background:#eaf0f8;border-color:#a8bcd4}.tile-input{width:100%;min-width:0;height:100%;padding:0;border:0;outline:0;background:transparent;color:inherit;text-align:center;font:inherit;text-transform:uppercase;caret-color:#273d5a;border-radius:inherit}.tile-input:focus-visible{outline:0;box-shadow:inset 0 0 0 2px #547eae}.tile-input::placeholder{color:#68798d;opacity:1}.commit{padding:9px 3px;font-size:10px;width:66px}.points{font-size:12px;color:#356747;text-align:center}.results{margin-top:18px;padding:16px;background:#f1f7f1;border-radius:12px}.results.lost{background:#faf0ed}.results p{margin:6px 0}.route-list{padding-left:24px;line-height:2;letter-spacing:.15em;font-weight:700}.pager{display:flex;justify-content:space-between;align-items:center;gap:8px}.list{display:grid;gap:8px;margin-top:16px}.list button{display:flex;align-items:center;justify-content:space-between;gap:12px;text-align:left;background:#edf1f6;color:#203044}.list small{display:block;font-weight:400;margin-top:4px}.share-text{display:block;white-space:pre-wrap;overflow-wrap:anywhere;user-select:all}.empty{text-align:center;padding:24px 0}footer{text-align:center;color:#52657a;font-size:12px;margin-top:16px}dialog{border:1px solid #dbe2ec;border-radius:16px;padding:24px;width:min(90vw,450px);max-height:85dvh;color:#203044;box-shadow:0 16px 50px #23314c35}dialog::backdrop{background:#1e293b77}dialog p{font-size:14px}dialog button{width:100%}[hidden]{display:none!important}@media(max-width:380px){.panel{padding:12px}.shell{padding:20px 8px}.board-row{gap:4px;grid-template-columns:repeat(var(--letters),minmax(0,1fr)) 60px}.commit{width:60px;font-size:9px}.tile{border-radius:5px;font-size:18px}}@media(prefers-reduced-motion:no-preference){.good .tile,.bad .tile{transition:background .15s}}
