:root{--ink:#050b15;--mist:#d8e6ed;--sea-glass:#8ec9cb;--warm:#f2d5b3}
.player-page{background:var(--ink)}
#home{z-index:4;background:radial-gradient(circle at 50% 70%,#16303c 0,#081722 28%,#030914 64%,#02050a 100%);text-align:center;padding:24px}
#home::before{content:"";position:absolute;inset:0;background:radial-gradient(1px 1px at 18% 22%,#c6e9e99c 99%,transparent),radial-gradient(1px 1px at 72% 14%,#c6e9e97d 99%,transparent),radial-gradient(1px 1px at 80% 60%,#c6e9e94d 99%,transparent);pointer-events:none}
.home-content{position:relative;width:min(420px,100%);padding:24px 0 60px}
.home-mark{font-size:31px;color:#a9d0d2;display:block;margin-bottom:44px;text-shadow:0 0 27px #8bcdce7a}
.home-overline,.note-index{font-size:9px;letter-spacing:.35em;color:#83aaad}
.home-content h1{font-family:"Songti SC","SimSun",serif;font-weight:400;font-size:clamp(38px,9vw,67px);letter-spacing:.07em;line-height:1.48;margin:18px 0 20px;color:#f1f1e9}
.home-subtitle{font-size:13px;line-height:2.2;color:#a4bbc5;margin:0 0 37px}
.home-content small{display:block;color:#78929c;font-size:10px;margin-top:22px;letter-spacing:.04em}
.play-button{width:auto;min-width:174px;height:48px;border:1px solid #91c9c8b0;border-radius:40px;display:inline-flex;flex-direction:row;gap:22px;background:#c2e3dc;color:#092027;padding:0 22px;font-size:13px;font-weight:500;letter-spacing:.08em;box-shadow:0 8px 35px #72c9bb21;will-change:transform,opacity}
.play-button span{font-size:13px;letter-spacing:.08em;padding:0}.play-button span:last-child{font-size:18px;font-weight:300}
.play-button:hover{background:#e0f3e9;box-shadow:0 10px 45px #72c9bb46}.play-button:disabled{cursor:default}
.show-hud{position:fixed;top:max(24px,env(safe-area-inset-top));left:50%;transform:translateX(-50%);width:min(470px,calc(100% - 42px));z-index:5;color:#c6dce2}
.show-hud-top{display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:10px;letter-spacing:.12em;text-shadow:0 1px 8px #000}
.show-actions{display:flex;gap:7px;align-items:center}
.show-hud button{background:#0920299c;border:1px solid #659da285;border-radius:18px;color:#d4ece8;padding:7px 12px;font-size:10px;white-space:nowrap}
.show-hud button:disabled{opacity:.45;cursor:default}
.show-progress{height:2px;background:#b5d1d22b;margin-top:12px;overflow:hidden}.show-progress span{display:block;width:0;height:100%;background:#9cdbd4;transition:width .55s ease}
#birthdayMessage.note-scene{position:fixed;inset:0;left:0!important;top:0!important;width:100%!important;max-width:none;z-index:3;transform:none;display:grid;place-items:center;text-align:center;padding:68px 24px 110px;pointer-events:none;animation:note-arrive 1.5s ease both;background:linear-gradient(180deg,#03091429 0%,#03101bd9 24%,#071b27ed 67%,#03101a9c 100%)}
.note-scene::before{content:"";position:absolute;top:10%;left:50%;width:min(85vw,500px);aspect-ratio:1;border:1px solid #b1d3ce18;border-radius:50%;transform:translateX(-50%);box-shadow:0 0 0 42px #93c9c908,0 0 0 92px #93c9c905;pointer-events:none}
.note-skyline{position:absolute;left:0;right:0;top:74%;height:1px;background:linear-gradient(90deg,transparent,#a3d4ce31,transparent)}
.note-content{position:relative;width:min(440px,100%);display:flex;flex-direction:column;align-items:center;gap:0}
#birthdayMessage.note-scene .note-lead{font-size:13px;letter-spacing:.12em;color:#a9ced0;line-height:1.9;margin:28px 0 17px;padding:0;animation:note-rise 1.2s .15s both}
.note-rule{display:flex;align-items:center;gap:15px;width:100%;color:#abd6d0;font-size:18px;animation:note-rise 1s .45s both}
.note-rule::before,.note-rule::after{content:"";height:1px;flex:1;background:linear-gradient(90deg,transparent,#b5d9d075)}.note-rule::after{transform:rotate(180deg)}
#birthdayMessage.note-scene h2{font-family:"Songti SC","SimSun",serif;font-weight:400;font-size:clamp(22px,5vw,37px);line-height:1.55;letter-spacing:.04em;color:#f7f3e9;text-shadow:0 2px 24px #b6d9c348;overflow-wrap:anywhere;margin:27px 0 20px;animation:note-rise 1.4s .75s both}
#birthdayMessage.note-scene .note-wish{font-size:clamp(12px,3.6vw,16px);line-height:2;color:#d8e3df;max-width:390px;white-space:pre-wrap;overflow-wrap:anywhere;margin:0;animation:note-rise 1.4s 1.25s both}
#birthdayMessage.note-scene .note-sign{font-family:"Songti SC","SimSun",serif;color:#f2d5b3;font-size:14px;letter-spacing:.15em;margin:31px 0 0;padding:0;animation:note-rise 1.4s 1.7s both}
.note-bottom{position:absolute;bottom:max(110px,calc(env(safe-area-inset-bottom) + 98px));left:0;right:0;color:#8da9ad;font-size:9px;letter-spacing:.14em;animation:note-rise 1.4s 2.1s both}
#controls{z-index:6;background:#08202aeb;border-color:#82b5b489;box-shadow:0 10px 35px #0008}#controls button{color:#d1e9e7}#controls button:hover{background:#204653}
#playerStatus{z-index:8;background:#0b2730ef;color:#d8ece8;border-color:#6aada5}
@keyframes note-arrive{from{opacity:0}to{opacity:1}}@keyframes note-rise{from{opacity:0;transform:translateY(13px);filter:blur(4px)}to{opacity:1;transform:none;filter:blur(0)}}
@media(max-width:600px){.home-content{padding-bottom:20px}.home-mark{margin-bottom:30px}#birthdayMessage.note-scene{padding:70px 26px 114px}.note-lead{margin-top:23px}#birthdayMessage.note-scene h2{margin:20px 0 16px}.note-sign{margin-top:24px}.note-bottom{bottom:max(100px,calc(env(safe-area-inset-bottom) + 88px))}#controls{bottom:max(20px,env(safe-area-inset-bottom))}}
@media(max-height:600px){#birthdayMessage.note-scene{padding-top:35px;padding-bottom:65px}.note-lead{margin:10px 0}.note-sign{margin-top:10px}.note-bottom{display:none}}
@media(prefers-reduced-motion:reduce){.note-scene,.note-scene *{animation:none!important}.show-progress span{transition:none}}
.settings-page{background:#06111a;background-image:radial-gradient(ellipse at 0 35%,#16323b6b,transparent 58%);color:#e6efee}
.settings-header,.settings-footer{border-color:#668e9440}.brand{color:#bce2dc}.quiet-link,.settings-footer,.settings-footer span{color:#8ca8ab}
.settings-intro h1{color:#f3f2e9}.settings-intro>p,.intro-note{color:#b4c9c9}.intro-note small{color:#8aa6aa}
.settings-card{background:#0b1c25e8;border-color:#597e815c}.card-title{border-color:#527d8059}.card-title .eyebrow,.eyebrow{color:#87bfc0}
.field label{color:#e0e9e4}.field label>span,.field>small{color:#93abae}
.settings-page input:not([type=range]):not([type=checkbox]),.settings-page textarea,.settings-page select{background:#07141d;border:1px solid #51767b;color:#eff3ed;border-radius:7px;padding:11px 13px;width:100%;font-size:12px;line-height:1.8}
.settings-page select{appearance:auto}.settings-page textarea{resize:vertical}
.stepper button,.wish-presets button{background:#17313b;color:#d5eae4;border-color:#567f82}.stepper button:hover,.wish-presets button:hover{background:#24515a;color:#fff}
.stepper output,.switch-row span,.audio-preview,.position-settings summary,.invitation-panel summary{color:#b6d4d2!important}.switch-row input,.sliders input,.align-bottom input{accent-color:#8fd5ce}
.position-settings,.invitation-panel{border-color:#56818669}.position-settings summary>span,.scale-note,.save-note,.invitation-panel p{color:#91aeb2}
.primary{background:#bfe3d8;color:#112c32}.primary:hover{background:#dcf5e8}.secondary{color:#add3d0}.secondary:hover{background:#1b3b44}
.color-orbit>span{color:#d4ece1;text-shadow:0 0 30px #75c3bd}.color-orbit i:nth-child(1){--c:#7ad3ca}.color-orbit i:nth-child(2){--c:#90c9ff}.color-orbit i:nth-child(3){--c:#eac6a1}.color-orbit i:nth-child(4){--c:#87d8b9}.color-orbit i:nth-child(5){--c:#a6a8de}.color-orbit i:nth-child(6){--c:#e3aeae}
.note-preview{margin:28px 0;padding:26px 22px;background:linear-gradient(160deg,#102d37,#06131d);border:1px solid #658c8b80;border-radius:10px;text-align:center;box-shadow:inset 0 0 60px #9dd0c808}
.note-preview>span{display:block;color:#8cb9b8;font-size:9px;letter-spacing:.25em;text-align:left;margin-bottom:25px}
.note-preview p{font-size:11px;color:#b7d3d0;line-height:1.9;overflow-wrap:anywhere}.note-preview h2{font-family:"Songti SC","SimSun",serif;font-size:clamp(20px,4vw,28px);font-weight:400;line-height:1.5;color:#f5f1e7;overflow-wrap:anywhere;margin:18px 0}.note-preview small{display:block;color:#ebd0ad;margin-top:20px;font-size:11px}
.settings-card .sound-field{margin:24px 0}.settings-card .switch-row{height:auto}.settings-card .switch-row span{font-size:11px!important}.settings-card .sound-field small{display:block;font-size:9px;color:#93abae;margin-top:10px;line-height:1.7}
#status{color:#c5e9df}#alignDialog{background:#06111a;color:#e8f2ed}#target{border-color:#98d6d2;box-shadow:0 0 40px #8ad2cb2b,inset 0 0 40px #8ad2cb1d}
#memoryDialog{background:#091b24;color:#e5f0eb;border-color:#62928f}#memoryDialog::backdrop{background:#01070ee8}#memoryDialog p{color:#c5dcd8}#memoryDialog small{color:#8aadaa}#closeMemory{color:#d6eae5}
@media(max-width:760px){.settings-intro h1{font-size:34px}.settings-card{margin-top:26px}.settings-intro>p{font-size:11px}.note-preview{padding:22px 17px}}
