.rhythm-page{max-width:820px;margin:0 auto;padding:18px 16px 48px;color:#302a44}.rhythm-game{padding:24px;border:2px solid #d7ccbc;border-radius:28px;background:#fffdf4;box-shadow:0 8px #e7dfcf}.rhythm-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:18px}.rhythm-heading h1{font-size:clamp(25px,4vw,38px);line-height:1.3;margin:5px 0}.rhythm-heading img{width:86px;height:86px;object-fit:contain}.rhythm-eyebrow{font-size:14px;font-weight:700;color:#594382}.rhythm-stagebar{display:flex;align-items:center;justify-content:space-between;gap:12px}.rhythm-stagebar h2{font-size:23px;margin:0;scroll-margin-top:90px}.rhythm-stagebar label,.rhythm-options label{display:flex;align-items:center;gap:8px;font-size:13px}.rhythm-page select{min-height:44px;max-width:100%;border:1px solid #8c819d;border-radius:12px;background:#fffdf4;color:#302a44;padding:8px;font:inherit}.kids-site main .rhythm-mission{font-size:16px!important;line-height:1.6;margin:12px 0}.rhythm-model-area{background:#f0ebf7;border-radius:18px;padding:12px 14px}.rhythm-row{display:flex;align-items:center;justify-content:space-between;gap:10px}.rhythm-game h3,.rhythm-palette legend{font-size:17px;margin:0;font-weight:800}.rhythm-page button{font:inherit;font-weight:700;color:#302a44;cursor:pointer;min-height:44px;border:1px solid #b1a68f;border-radius:12px;background:#fffdf4;padding:8px 12px;touch-action:manipulation}.rhythm-page button:disabled{opacity:.5;cursor:default}.rhythm-page :is(button,select):focus-visible{outline:3px solid #254d8a;outline-offset:3px}.rhythm-model{list-style:none!important;padding:0!important;margin:8px 0 0!important;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}.kids-site main .rhythm-model li{display:flex;align-items:center;justify-content:center;gap:7px;font-size:13px!important;padding:8px 2px;border:2px solid transparent;border-radius:10px;min-width:0}.rhythm-model li>span:first-child{font-size:11px}.rhythm-model li b{font-size:16px}.rhythm-palette{border:0;padding:0;margin:20px 0 0;min-width:0}.rhythm-palette legend{margin-bottom:8px}.rhythm-palette>div{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}.rhythm-palette button{padding:8px 3px;display:flex;flex-direction:column;align-items:center;gap:3px;border:2px solid transparent}.rhythm-palette button[aria-pressed=true]{border-color:#302a44;box-shadow:0 3px #302a44}.rhythm-shape{font-size:27px;line-height:1.2}.rhythm-sound-description{font-size:11px;font-weight:400}.rhythm-game [data-sound=don]{background:#f7d5ae;color:#6a3514}.rhythm-game [data-sound=pon]{background:#cfe9df;color:#204c40}.rhythm-game [data-sound=tin]{background:#e4d9f6;color:#4e3472}.rhythm-game [data-sound=rest]{background:#f1eee4;color:#554d3b}.rhythm-board-heading{margin-top:20px}.rhythm-board-heading button{font-size:13px}.rhythm-selected{font-size:13px;margin:5px 0 10px}.rhythm-board{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px;padding:14px 10px;background:repeating-linear-gradient(0deg,#efe6d0 0,#efe6d0 1px,transparent 1px,transparent 16px);border:1px solid #d7ccbc;border-radius:16px}.rhythm-board button{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;min-height:94px;padding:14px 3px 5px;border:2px solid #a69b86;box-shadow:0 3px #c9bca7}.rhythm-board button b{font-size:14px}.rhythm-number{position:absolute;top:3px;left:7px;font-size:12px;font-weight:700}.rhythm-board .needs-change{border:3px dashed #8b3b21}.rhythm-game .is-playing{outline:3px solid #302a44;outline-offset:1px;box-shadow:0 0 0 5px #fffdf4!important}.rhythm-transport{display:flex;gap:8px;margin:14px 0 0}.rhythm-transport .rhythm-play{flex:1;background:#594382;color:#fff;border-color:#3b285d;box-shadow:0 3px #3b285d;font-size:17px}.rhythm-now{min-height:32px;padding:9px 0 0;text-align:center;font-size:14px;font-weight:700}.rhythm-options{display:flex;align-items:center;justify-content:center;gap:16px;margin-top:10px}.rhythm-options button{font-size:13px}.rhythm-judgement{display:flex;justify-content:space-between;gap:8px;margin-top:18px}.rhythm-judgement button{font-size:14px}.rhythm-judgement [data-rhythm-check]{background:#e8f0ce;border-color:#778c43}.rhythm-status{margin-top:12px;border-radius:14px;background:#f0ebf7;padding:13px;font-size:16px;line-height:1.6}.rhythm-status[data-kind=success]{background:#e1efd9;border:1px solid #6f8b54}.rhythm-status[data-kind=retry]{background:#fff0d8;border:1px solid #aa6b26}.rhythm-result{margin-top:12px;text-align:center}.rhythm-result button{background:#594382;color:#fff}.rhythm-bottom{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-top:16px;font-size:13px}.kids-site main .rhythm-free-note{font-size:15px!important}.rhythm-about{padding:22px 8px;line-height:1.8}.kids-site main .rhythm-about p{font-size:14px!important}.rhythm-about summary{cursor:pointer;min-height:44px;font-weight:700}.rhythm-about a{display:inline-block;margin-top:16px;text-decoration:underline;text-underline-offset:4px}.rhythm-game [hidden]{display:none!important}@media(min-width:700px){.rhythm-model{grid-template-columns:repeat(8,minmax(0,1fr))}.rhythm-model li{flex-direction:column;gap:1px!important}.rhythm-model li:only-child{grid-column:auto}.rhythm-options{justify-content:flex-end}.rhythm-board{grid-template-columns:repeat(8,minmax(0,1fr))}.rhythm-board:has(:nth-child(4):last-child){grid-template-columns:repeat(4,minmax(0,1fr))}.rhythm-model:has(:nth-child(4):last-child){grid-template-columns:repeat(4,minmax(0,1fr))}}@media(max-width:480px){.rhythm-page{padding:10px 8px 30px}.rhythm-game{padding:14px 10px;border-radius:20px}.rhythm-heading{margin-bottom:12px}.rhythm-heading img{width:60px;height:60px}.rhythm-heading h1{font-size:24px}.rhythm-eyebrow{font-size:12px}.rhythm-stagebar{align-items:flex-start}.rhythm-stagebar h2{font-size:19px;flex:1}.rhythm-stagebar label{display:flex;flex-direction:column;align-items:flex-start;gap:2px;font-size:11px;width:132px}.rhythm-stagebar select{width:100%;font-size:12px}.kids-site main .rhythm-mission{font-size:14px!important}.rhythm-model-area{padding:8px}.rhythm-model-area button{font-size:13px;padding:6px 8px}.rhythm-model{gap:3px}.kids-site main .rhythm-model li{font-size:11px!important;gap:3px;padding:5px 0;flex-wrap:wrap}.rhythm-model li b{font-size:12px}.rhythm-palette{margin-top:16px}.rhythm-palette>div{gap:5px}.rhythm-palette b{font-size:13px}.rhythm-sound-description{font-size:10px}.rhythm-board{gap:7px;padding:10px 7px}.rhythm-board button{min-height:76px}.rhythm-board button b{font-size:12px}.rhythm-transport .rhythm-play{font-size:15px}.rhythm-transport button{padding:8px}.rhythm-options{gap:10px}.rhythm-options label{gap:5px}.rhythm-status{font-size:14px}.rhythm-judgement button{font-size:12px;padding:8px}.rhythm-game h3,.rhythm-palette legend{font-size:15px}}@media(prefers-reduced-motion:reduce){.rhythm-game *{animation:none!important;transition:none!important;scroll-behavior:auto!important}}.kids-site main .rhythm-model li{position:relative;flex-direction:column;gap:1px;padding:5px 0}.rhythm-model li>span:first-child{position:absolute;top:3px;left:5px;font-size:10px}.rhythm-model li b{font-size:19px;line-height:1.3}.rhythm-model li>span:last-child{white-space:nowrap}@media(max-width:350px){.rhythm-stagebar{display:block}.rhythm-stagebar label{width:auto;flex-direction:row;align-items:center;margin-top:7px}.rhythm-stagebar select{width:auto;max-width:220px}}
