/* SPDX-License-Identifier: GPL-3.0-or-later; Eduitit adaptation 2026-10-01. */
:root{font-family:system-ui,-apple-system,"Malgun Gothic",sans-serif;color:#243c4f;background:#f4f8fc;font-synthesis:none}*{box-sizing:border-box}body{margin:0;word-break:keep-all}button,a{-webkit-tap-highlight-color:transparent}button{font:inherit;cursor:pointer;min-height:60px;padding:13px 24px;border-radius:16px;border:0;background:#dbeafe;color:#173450;font-weight:750;touch-action:manipulation}button:focus-visible,a:focus-visible{outline:3px solid #0284c7;outline-offset:4px}button:active{transform:scale(.98)}button:disabled{opacity:.45;cursor:default}.primary{background:#2563eb;color:white;font-size:20px;min-width:220px;box-shadow:0 6px 0 #1e40af}.secondary{background:#e6eef5;color:#284358;font-size:16px;min-width:0}main{max-width:900px;min-height:calc(100svh - 76px);margin:0 auto;padding:24px}.sheet{max-width:600px;margin:4vh auto 0;text-align:center;padding:28px 24px 40px;border-radius:28px;background:white;box-shadow:0 12px 40px #2449630b}h1{font-size:clamp(34px,7vw,48px);margin:12px 0 16px;letter-spacing:-.04em}.eyebrow{font-size:16px;color:#52748c;font-weight:700;margin:0 0 8px;letter-spacing:.03em}.cover-shape{width:180px;height:160px;display:block;margin:12px auto 18px}.goal{font-size:19px;line-height:1.7;margin:0 0 30px}.example{display:flex;gap:6px;justify-content:center;align-items:center;margin:28px 0}.example i{width:42px;height:30px;background:#3498db;border-radius:6px}.example span{font-weight:700;margin-left:10px}ol{display:inline-block;text-align:left;line-height:2.3;font-size:19px;padding-left:28px;margin:0}.small{font-size:16px;color:#58778d;margin:22px 0 26px}header{display:flex;align-items:center;justify-content:space-between;margin:0 auto 12px;max-width:720px;gap:16px}.score-label{margin:0;font-size:16px}#score{font-size:26px;margin-left:8px}#board{position:relative;width:100%;max-width:720px;height:min(70svh,620px);min-height:280px;background:#ecf0f1;border-radius:24px;overflow:hidden;margin:0 auto}canvas{display:block;width:100%;height:100%;touch-action:none}.board-message{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:20px;background:#f4f8fced}.board-message strong{font-size:32px}.board-message p{font-size:22px;margin:0}.board-message .secondary{box-shadow:none}.controls{display:flex;gap:16px;max-width:600px;margin:18px auto 0}.controls button{flex:1;font-size:20px;background:#fff;border:2px solid #d4e5f3;color:#24465e;box-shadow:0 4px 0 #d4e5f3}.feedback{text-align:center;font-size:18px;line-height:24px;color:#3c677f;margin:16px 0 0}.feedback:empty{display:none}footer{display:flex;flex-wrap:wrap;gap:12px;justify-content:center;align-items:center;padding:18px 16px;color:#6c8495;font-size:12px}footer a{color:#55788f} [hidden]{display:none!important}@media(max-width:480px){main{padding:16px 14px;min-height:calc(100svh - 100px)}.sheet{margin-top:2vh;padding:28px 18px}.goal{font-size:17px}.cover-shape{width:150px;height:140px}header .secondary{padding:12px 14px}#board{height:60svh;min-height:290px}.controls{gap:12px}.controls button{padding:14px 10px;font-size:18px}ol{font-size:17px}.small{line-height:1.6}footer{gap:8px 12px}}@media(max-height:550px) and (orientation:landscape){main{padding:12px 18px}#board{height:55svh;min-height:180px;max-width:520px}.sheet{margin-top:0;padding:16px}.cover-shape{width:90px;height:80px}.goal{margin-bottom:14px}.feedback{margin:8px 0}header{margin-bottom:6px}}

.personal-score{font-size:18px;color:#52748c;margin:0 0 22px}.new-game{display:block;margin:20px auto 0}.highscores{font-size:16px;line-height:1.6;margin:0;padding-left:28px;color:#52748c}.storage-status{max-width:720px;margin:16px auto;padding:0 16px;font-size:16px;color:#8a4b1a;text-align:center}

.best-in-game{font-size:16px;color:#52748c;margin-left:12px}.best-in-game:empty{display:none}.record-list>p{font-size:16px;margin:0 0 4px}.record-list{text-align:center;color:#52748c}

.header-actions{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}#help-dialog{border:0;border-radius:24px;color:#243c4f;background:white;width:min(600px,calc(100% - 32px));max-height:85svh;overflow:auto;padding:28px}#help-dialog::backdrop{background:#17345088}#help-dialog h2{font-size:28px;margin:0}#help-dialog p{font-size:16px;line-height:1.7}#help-dialog .primary{margin-top:12px}@media(max-width:480px){header{align-items:flex-start;gap:8px}.header-actions{max-width:190px}.header-actions .secondary{font-size:15px;min-height:48px;padding:10px 12px}#help-dialog{padding:22px}}

.cover-felt{display:block;width:min(100%,720px,78svh);height:auto;aspect-ratio:16/9;object-fit:cover;border-radius:20px;margin:0 auto 20px}
.site-nav{margin-bottom:12px}.site-nav a{display:inline-flex;align-items:center;min-height:44px;padding:8px 12px;border-radius:12px;background:#e6eef5;color:#284358;font-weight:700;text-decoration:none}
