:root { color-scheme: dark; }
* { box-sizing: border-box; }
body { margin: 0; font: 17px/1.4 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; background: #0f1f15; color: #eef5ef;
  padding: env(safe-area-inset-top) 16px env(safe-area-inset-bottom); }
main { max-width: 480px; margin: 0 auto; padding: 24px 0 40px; }
h1 { margin: 0; font-size: 30px; }
h2 { margin: 0 0 8px; font-size: 18px; }
.sub { margin: 4px 0 18px; color: #9fb8a6; font-size: 14px; }
.card { background: #17301f; border-radius: 18px; padding: 18px; margin-bottom: 16px; }
.big { font-size: 40px; font-weight: 700; font-variant-numeric: tabular-nums; text-align: center; }
.label { text-align: center; color: #9fb8a6; font-size: 14px; }
.wall { text-align: center; font-size: 12px; color: #7f9a87; margin: -10px 0 14px; }
.row { text-align: center; margin: 8px 0 16px; font-variant-numeric: tabular-nums; }
.go { width: 100%; font-size: 22px; font-weight: 700; padding: 16px; border: 0; border-radius: 14px; background: #3fb265; color: #062010; }
.go.stop { background: #e0564f; color: #fff; }
.go:disabled { opacity: .5; }
.settings { display: flex; gap: 12px; margin-top: 14px; }
.settings label { flex: 1; font-size: 13px; color: #9fb8a6; }
select { width: 100%; margin-top: 4px; font-size: 16px; padding: 8px; border-radius: 10px; background: #0f1f15; color: #eef5ef; border: 1px solid #2c4d36; }
.hint { font-size: 13px; color: #9fb8a6; margin: 12px 0 0; }
ul { list-style: none; margin: 0; padding: 0; max-height: 320px; overflow-y: auto; }
li { padding: 8px 0; border-bottom: 1px solid #22402c; font-size: 15px; display: flex; justify-content: space-between; gap: 8px; }
li .t { color: #9fb8a6; font-size: 13px; }
.link { background: none; border: 0; color: #9fb8a6; text-decoration: underline; padding: 8px 0 0; font-size: 14px; }
.status { text-align: center; font-size: 13px; color: #9fb8a6; }
#melon { position: fixed; inset: 0; background: #1d6b34; display: flex; flex-direction: column; align-items: center; justify-content: center; z-index: 10; }
#melon[hidden] { display: none; }
.melon-emoji { font-size: 160px; line-height: 1; }
.melon-word { font-size: 44px; font-weight: 800; margin-top: 16px; }
.melon-note { margin-top: 18px; font-size: 15px; color: #d8f0de; text-align: center; padding: 0 24px; }
.toggle { display: flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 600; }
.toggle input { width: 22px; height: 22px; }
#musicBox select { margin-top: 12px; }
.now { margin: 10px 0; font-size: 15px; min-height: 2.8em; }
.mbtns { display: flex; gap: 10px; }
.mbtn { flex: 1; font-size: 17px; padding: 12px; border: 0; border-radius: 12px; background: #2c4d36; color: #eef5ef; }
.msub { font-size: 12px; color: #7f9a87; margin-top: 8px; }
.credits { margin-top: 12px; font-size: 13px; color: #9fb8a6; }
.credits summary { cursor: pointer; }
.credits h3 { font-size: 14px; margin: 10px 0 4px; color: #eef5ef; }
.credits p { margin: 2px 0 6px; }
.credits a { color: #9fd3ad; }
