:root{font-family:system-ui,-apple-system,'Noto Sans JP',sans-serif;color:#172b4b;background:#edf3fb}*{box-sizing:border-box}body{margin:0}header,footer{position:fixed;left:0;right:0;text-align:center;background:#152b55;color:white;z-index:10}header{top:0;padding:15px 8px;font-size:1.08rem}footer{bottom:0;padding:11px 5px;font-size:.75rem}footer a{color:#d9edff}main{height:100dvh;overflow-y:auto;padding:72px 12px 66px;overscroll-behavior:contain}.screen{max-width:440px;margin:auto;text-align:center}.hidden{display:none!important}h1{font-size:1.55rem;line-height:1.4}h2{font-size:1.15rem}p{line-height:1.65}button{font:inherit;border:0;border-radius:14px;padding:15px 18px;cursor:pointer;touch-action:manipulation;min-height:50px}button:disabled{opacity:.55;cursor:not-allowed}.primary,.secondary,.share button{display:block;width:100%;margin:12px auto;font-weight:700}.primary{background:#1465d8;color:white}.secondary{background:#dbe9ff;color:#143c79}.plain{background:transparent;text-decoration:underline;color:#144f9b}.big{font-size:5rem;font-weight:900;margin:20vh auto}.timer{font-size:1.4rem;font-weight:800;margin:25px 0}.tap{width:100%;height:min(44vh,330px);background:#fb6e3b;color:white;font-size:2rem;font-weight:900;box-shadow:0 8px 0 #bd431c;user-select:none;-webkit-user-select:none;touch-action:none}.tap.flash{background:#3caac0}.score strong{font-size:5rem}.score span{font-size:1.5rem}input{display:block;width:100%;border:2px solid #9cb2d2;border-radius:10px;font-size:1.1rem;padding:13px;margin:10px 0}.warning{color:#ad5800;font-weight:700}#registerMsg,#homeMsg,#rankMsg{white-space:pre-wrap}.share{margin:22px auto}.share button{background:#e6eaf1;color:#233a5b}dialog{width:min(95vw,440px);max-height:80vh;border:0;border-radius:18px;padding:22px;box-shadow:0 15px 50px #0004}dialog::backdrop{background:#0009}.policy{overflow-y:auto;max-height:55vh;text-align:left}.buttons{display:flex;gap:8px}.buttons button{flex:1}.entry{display:grid;grid-template-columns:56px minmax(0,1fr) 70px;gap:8px;align-items:center;padding:12px 6px;border-bottom:1px solid #c6d6eb;text-align:left}.entry .nick{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.entry .points{text-align:right;font-weight:700}.entry.top{background:#fff7db}.pager{display:flex;justify-content:center;gap:8px;align-items:center;flex-wrap:wrap;margin:14px 0}.pager button,#weekButtons button{padding:9px 12px;min-height:40px;background:#e1eaff;margin:3px}#weekButtons{display:flex;flex-wrap:wrap;justify-content:center}#weekButtons .selected{background:#175ec4;color:white}

/* Top screen instructions */
#home .home-rules { text-align: center; line-height: 1.8; }

/* Result weekly announcement and footer navigation */
#result .result-weekly-note{text-align:center;line-height:1.8;margin:10px auto 14px}
footer .footer-back{display:inline-block;font-size:.92rem;font-weight:700;padding:2px 12px 5px;text-decoration:underline}
main{padding-bottom:92px}
