#hw-star-profile{position:fixed;inset:64px 24px auto auto;margin:0;width:min(398px,calc(100vw - 32px));height:min(740px,calc(100dvh - 100px));padding:0;overflow:hidden;color:#e9fff5;
 border:1px solid #c7fff06b;border-top-color:#edfff4a1;border-right-color:#c5c4ff77;border-radius:30px 12px 30px 12px;
 background:radial-gradient(ellipse at 0 0,#b6ffe224,transparent 55%),linear-gradient(150deg,#12323d70,#081b2d88);
 backdrop-filter:blur(25px) saturate(140%);box-shadow:inset 0 1px 0 #fff4,0 20px 65px #0005;font-family:'Bahnschrift','Yu Gothic UI',sans-serif}
#hw-star-profile::backdrop{background:#00101b12}
#hw-star-profile header{height:72px;box-sizing:border-box;margin:0 19px;padding:18px 0 12px;display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid #caffed25}
#hw-star-profile header small{font:7px 'Consolas',monospace;letter-spacing:.20em;color:#b8ded4a1}
#hw-star-profile h2{margin:5px 0 0;font-size:16px;font-weight:400;letter-spacing:.18em}
#hw-profile-close{width:32px;height:32px;border:1px solid #caffed4d;border-radius:50%;background:#caffed0f;color:#e6fff5;cursor:pointer}
#hw-profile-close:hover{background:#caffed2b}
#hw-profile-close:focus-visible{outline:1px solid #e4fff5;outline-offset:3px}
#hw-profile-frame{display:block;width:100%;height:calc(100% - 126px);border:0;background:transparent;color-scheme:dark}
#hw-star-profile footer{box-sizing:border-box;height:54px;margin:0 19px;padding:8px 0;display:flex;align-items:center;gap:12px;border-top:1px solid #caffed25;font-size:11px;color:#c5e9de}
#hw-profile-track{flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#hw-profile-play{width:32px;height:32px;border:1px solid #caffed4d;border-radius:50%;background:#caffed0f;color:#e6fff5;cursor:pointer}
.hw-star-embed{color-scheme:dark;--ink:#e9fff6;--dim:#b7d6d1;--gold:#bdf5e2;--line:#caffed33;--mincho:'Yu Gothic UI','Noto Sans JP',sans-serif;--sans:'Yu Gothic UI','Noto Sans JP',sans-serif}
.hw-star-embed body{background:transparent;overflow-y:auto;overflow-x:hidden}
.hw-star-embed .sky,.hw-star-embed .back,.hw-star-embed .depart,.hw-star-embed .obs-head,.hw-star-embed #hmix-fav-hub{display:none!important}
.hw-star-embed .observatory{position:relative;inset:auto;min-height:100%;justify-content:flex-start;padding:24px 20px 28px;overflow:visible}
.hw-star-embed h1,.hw-star-embed #star-name-input{font-size:22px;font-weight:400}
.hw-star-embed .starfield{width:220px;height:220px;margin:4px 0}
.hw-star-embed .record .row{font-size:12px;line-height:2.2;letter-spacing:.04em}
.hw-star-embed .record .note{font-size:10px;line-height:1.9;color:#a7c9c2}
.hw-star-embed .empty{font-size:12px;line-height:2.1;margin:7px 0 15px}
.hw-star-embed .milestones{font-size:10px;line-height:2}
.hw-star-embed .chronicle{width:100%;margin:32px 0 8px}
.hw-star-embed .chronicle h2{font-size:20px;font-weight:400}
.hw-star-embed .ch-head{font-family:'Consolas',monospace;color:#c4e7db}
.hw-star-embed .ch-lead{font-size:10px;line-height:1.9}
.hw-star-embed .ch-e .t b{font-size:12px;font-weight:400}
.hw-star-embed .ch-e{padding:9px 3px;gap:6px}
.hw-star-embed .exits{font-size:10px;line-height:2;margin-top:20px}
@media(max-width:760px){#hw-star-profile{inset:16px 16px auto;height:calc(100dvh - 32px)}}
.hw-star-embed .empty h2{font-size:18px;font-weight:400;letter-spacing:.12em;margin:0 0 10px;color:#e5fff1}
.hw-star-embed .empty>p{font-size:11px;line-height:1.9;margin:8px 0 16px}
.first-star-choices{display:grid;gap:7px;text-align:left;margin:18px 0}
.first-star-empty .starfield{width:150px;height:150px;margin:0}
.first-star-empty .observatory{padding-top:18px}
.hw-star-embed #star-cv{mask-image:radial-gradient(circle,#000 0 55%,transparent 73%)}
.first-star-choices button{display:flex;align-items:center;gap:12px;padding:11px 13px;border:1px solid #caffed29;border-radius:13px 7px 13px 7px;color:#cee8df;background:linear-gradient(140deg,#caffec12,#96b9f408);font:12px 'Yu Gothic UI',sans-serif;cursor:pointer;text-align:left}
.first-star-choices button.selected{border-color:#d7fff188;background:#baffdf18;box-shadow:inset 0 1px 0 #eaffef33,0 0 15px #a6ffdd0a}
.first-star-play{font-size:17px;width:20px;color:#d3ffe4}
.first-star-selected{color:#a6d8c9;font-size:10px!important}
.first-star-save{display:block;width:100%;padding:14px 12px;border:1px solid #d9ffe4a1;border-radius:18px 8px 18px 8px;background:linear-gradient(135deg,#caffdb2e,#8ddbd218);box-shadow:inset 0 1px 0 #fff4,0 0 25px #c0ffdc14;color:#efffe9;font:13px 'Yu Gothic UI',sans-serif;letter-spacing:.08em;cursor:pointer}
.first-star-save:disabled{opacity:.4;cursor:default}
.first-star-error{color:#ffe0c7}
#first-star-birth{text-align:center;padding:6px 0 20px;max-width:100%}
#first-star-birth p{font-size:13px;white-space:pre-line;line-height:2;letter-spacing:.05em;color:#efffe7;text-shadow:0 0 16px #b6ffd84d}
#first-star-birth button{border:0;background:none;color:#9dbbb4;font:10px 'Yu Gothic UI',sans-serif;text-decoration:underline;cursor:pointer;padding:7px 12px}
.first-star-born .starfield::before,.first-star-born .starfield::after{content:'';position:absolute;inset:35%;border:1px solid #efffca;border-radius:50%;pointer-events:none;animation:first-star-ring 2.6s cubic-bezier(.12,.7,.2,1) both;box-shadow:0 0 20px #d8ffbb66}
.first-star-born .starfield::after{animation-delay:.28s;border-color:#b5fff0}
.first-star-born #star-cv{animation:first-star-glow 2.6s ease-out}
@keyframes first-star-ring{0%{transform:scale(.2);opacity:0}12%{opacity:.9}100%{transform:scale(4.2);opacity:0}}
@keyframes first-star-glow{0%{filter:brightness(1)}22%{filter:brightness(2.3) drop-shadow(0 0 15px #ddffb9)}100%{filter:brightness(1)}}
.hw-star-lit{filter:drop-shadow(0 0 12px #caffb899)!important}
@media(prefers-reduced-motion:reduce){.first-star-born .starfield::before,.first-star-born .starfield::after,.first-star-born #star-cv{animation:none!important}}
