/* Capt. Whiskers' Harbour Jam 1.0.0 (SCDO Laboratory) */
*{box-sizing:border-box}
html,body{margin:0;background:#0e2436;color:#fff4dc;font:15px/1.4 system-ui,-apple-system,"Segoe UI","PingFang TC","Microsoft JhengHei",sans-serif;-webkit-tap-highlight-color:transparent}
button{font:inherit;color:inherit;cursor:pointer}
#game{--top:36px;height:calc(100vh - var(--top));height:calc(100dvh - var(--top));min-height:420px;display:flex;flex-direction:column;align-items:center;padding:6px 8px 6px;gap:4px;max-width:560px;margin:0 auto;position:relative}
#hd{width:100%}
#hd .r1{display:flex;align-items:center;gap:8px}
#cap{width:26px;height:26px;flex:none}#cap svg{width:100%;height:100%}
#hd h1{font:700 17px/1.2 Georgia,"Times New Roman",serif;color:#ffd166;margin:0;flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#pts{font-size:12.5px;color:#ffd166;white-space:nowrap}
#hd .r2{display:flex;align-items:center;justify-content:space-between;margin-top:4px;gap:8px}
#lvl{font:700 18px/1.1 Georgia,serif;color:#fff4dc;white-space:nowrap}
#left{font-size:12.5px;color:#9fd3ff;white-space:nowrap}
#stars{font-size:15px;letter-spacing:1px;white-space:nowrap}
#rule{margin:0;font-size:12px;color:#cfe6ff;text-align:center;line-height:1.3}
#bdw{flex:1;width:100%;min-height:0;position:relative}
#cv{position:absolute;inset:0;width:100%;height:100%;touch-action:manipulation;user-select:none;-webkit-user-select:none;display:block}
#tl{display:flex;flex-direction:column;align-items:center;gap:2px;width:100%}
.bst{display:flex;gap:6px;width:100%;justify-content:center}
.bs{flex:1;max-width:120px;background:#16324b;border:1px solid #3a6386;border-radius:11px;padding:5px 4px;font-size:12.5px;font-weight:700;display:flex;flex-direction:column;align-items:center;gap:1px;line-height:1.15;position:relative}
.bs i{font-style:normal;font-size:18px;line-height:1}
.bs[disabled]{opacity:.38;cursor:default}
.bs.on{background:#ffd166;color:#1d1d1f;border-color:#ffd166}
.bs.hn{background:#ffd166;color:#1d1d1f;border-color:#b8892a;box-shadow:0 2px 0 #b8892a}
.lk{display:flex;gap:16px;align-self:flex-end;padding-right:6px}
.link{background:none;border:0;padding:2px 2px;font-size:13px;color:#9fd3ff;text-decoration:underline;text-underline-offset:2px}
.ov{position:absolute;inset:0;background:rgba(8,23,35,.86);display:flex;align-items:center;justify-content:center;z-index:5;padding:16px}
.ov[hidden]{display:none}
.ov .box{background:#123049;border:2px solid #ffd166;border-radius:14px;padding:16px;max-width:340px;width:100%;text-align:center;max-height:100%;overflow:auto}
.ov h2{margin:4px 0 6px;color:#ffd166;font:700 21px Georgia,serif}
.ov p{margin:6px 0}
.ov ol{text-align:left;margin:6px 0;padding-left:20px;font-size:13.5px}
.ov .big{display:block;width:100%;background:#ffd166;color:#1d1d1f;border:0;border-radius:11px;padding:11px 12px;font-weight:800;font-size:17px;margin-top:12px;box-shadow:0 3px 0 #b8892a}
.ov .sec{display:block;width:100%;background:#16324b;color:#fff4dc;border:1px solid #3a6386;border-radius:11px;padding:9px 12px;font-weight:700;font-size:15px;margin-top:8px}
.ov .row{display:flex;gap:16px;justify-content:center;margin-top:8px}
.ov .st{font-size:30px;letter-spacing:4px}
#toast{position:absolute;left:50%;bottom:78px;transform:translateX(-50%);background:#081723;border:1px solid #ffd166;border-radius:10px;padding:7px 12px;font-size:13px;opacity:0;pointer-events:none;transition:opacity .2s;max-width:90%;text-align:center;z-index:6}
#toast.on{opacity:1}
#below{max-width:560px;margin:0 auto;padding:4px 14px 10px}
#below .how{background:#123049;border-radius:12px;padding:10px 12px;font-size:14px}
#below ol{margin:6px 0 0;padding-left:20px}
#below footer{font-size:12px;color:#9fb8cc;text-align:center;margin-top:10px}
#below a{color:#9fd3ff}
@media (max-height:600px){#rule{display:none}.bs i{font-size:15px}.bs{padding:3px 4px}}
@media (min-width:900px){#hd h1{font-size:20px}}
