/* Root homepage only; notes and AI keep their shared original styles. */
:root { color-scheme: light; --wash: #6d51321b; }
:root[data-theme="dark"] { color-scheme: dark; --wash: #d9d3c21a; }
body { isolation: isolate; }
main, .site-footer { position: relative; z-index: 1; }
.ink-trail { position: fixed; top: 0; left: 0; width: 460px; height: 380px; z-index: 0; pointer-events: none; opacity: 0; contain: layout style; background: radial-gradient(ellipse at 34% 45%,var(--wash),transparent 57%),radial-gradient(ellipse at 63% 57%,var(--wash),transparent 56%); filter: blur(23px); transition: opacity .7s; }
.ink-trail.is-active { opacity: 1; }

body[data-page="home"] .welcome { padding-top: 45px; padding-bottom: 20px; }
.welcome h1 { font-size: clamp(32px,4.5vw,52px); letter-spacing: .09em; line-height: 1.45; margin-bottom: 0; }
.hello-toy { width: 130px; }
body[data-page="home"] .about-section { max-width: 1136px; grid-template-columns: 76px minmax(0,1fr); gap: 26px; padding-top: 18px; padding-bottom: 45px; }
.about-avatar { width: 68px; height: 74px; font-size: 36px; }
.about-section h2 { font-size: 23px; margin: 0 0 12px; }
.about-section .eyebrow { margin-bottom: 12px; font-size: 8px; letter-spacing: 1.6px; }
.about-section p:not(.eyebrow) { font-size: 14px; line-height: 1.95; margin: 6px 0; }

.section-portals { gap: 24px; padding-bottom: 75px; }
.portal { display: flex; flex-direction: column; align-items: stretch; gap: 0; min-height: 280px; padding: 27px 30px 20px; border: 1px solid var(--line); border-radius: 18px; position: relative; overflow: hidden; background: linear-gradient(135deg,var(--surface),var(--bg)); box-shadow: 0 5px 18px #49332605; }
.portal:after { display: none; }
.portal-kicker { display: flex; align-items: center; justify-content: space-between; font-size: 8px; font-weight: 600; letter-spacing: 1.6px; color: var(--muted); position: relative; z-index: 1; }
.portal-kicker>span { font-family: Georgia,serif; font-size: 15px; font-style: italic; letter-spacing: 0; opacity: .7; }
.portal-copy { position: relative; z-index: 1; padding-block: 26px 24px; }
.portal h2 { font-size: 30px; line-height: 1.3; margin: 0 0 12px; letter-spacing: .02em; }
.portal p { font-size: 13px; line-height: 1.8; margin: 0; max-width: 65%; }
.portal-bottom { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--line); padding-top: 14px; margin-top: auto; color: var(--accent); font-size: 12px; font-weight: 600; }
.portal .portal-arrow { position: static; display: grid; place-items: center; width: 32px; height: 32px; border: 1px solid var(--line); border-radius: 50%; font-size: 19px; background: var(--surface); transition: background .25s,color .25s,transform .25s; }
.portal:hover .portal-arrow { background: var(--accent); color: var(--bg); transform: rotate(8deg); }
.portal-art { position: absolute; right: 18px; top: 62px; width: 160px; height: 150px; opacity: .82; pointer-events: none; transition: transform .5s; }
.portal:hover .portal-art { transform: translateY(-3px) rotate(3deg); }
.art-paper { fill: var(--soft); stroke: var(--line); stroke-width: 1.5; }
.art-line { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.art-dot { fill: var(--surface); stroke: var(--accent); stroke-width: 1.3; }
.art-orbit { fill: none; stroke: var(--accent); stroke-width: 1; opacity: .4; }
.art-spark { fill: var(--soft); stroke: var(--accent); stroke-width: 1.3; }
.art-small-dot { fill: var(--accent); }
:root[data-theme="dark"] .portal { background: linear-gradient(135deg,#292925,#1c1c1b); border-color: #45443d; }
:root[data-theme="dark"] .portal-art { opacity: .68; }
.portal:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }

.home-music { position: fixed; left: max(24px,env(safe-area-inset-left)); bottom: max(22px,env(safe-area-inset-bottom)); z-index: 20; display: flex; align-items: center; gap: 12px; max-width: calc(100vw - 32px); padding: 10px 16px 10px 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 38px; box-shadow: 0 8px 30px #35221214; }
.player-play { display: grid; place-items: center; flex: 0 0 44px; width: 44px; height: 44px; border-radius: 50%; color: var(--bg); background: var(--accent); transition: transform .2s,background .2s; }
.player-play:hover { background: var(--ink); transform: scale(1.04); }
.player-play:active { transform: scale(.95); }
.player-play svg { width: 18px; height: 18px; fill: currentColor; }
.player-track { min-width: 74px; line-height: 1.45; }
.player-track>span { font-family: var(--heading-font); font-size: 13px; }
.player-track small { display: block; font-size: 9px; color: var(--muted); margin-top: 3px; }
.player-divider { width: 1px; height: 25px; background: var(--line); }
.player-volume { display: flex; align-items: center; gap: 8px; min-height: 44px; }
.player-volume svg { width: 16px; height: 16px; stroke: var(--muted); stroke-width: 1.7; fill: none; }
#music-volume { width: 68px; height: 44px; margin: 0; appearance: none; background: transparent; cursor: pointer; accent-color: var(--accent); }
#music-volume::-webkit-slider-runnable-track { height: 3px; border-radius: 2px; background: linear-gradient(to right,var(--accent) var(--volume,25%),var(--line) var(--volume,25%)); }
#music-volume::-webkit-slider-thumb { appearance: none; width: 11px; height: 11px; border-radius: 50%; background: var(--accent); margin-top: -4px; box-shadow: 0 0 0 3px var(--surface); }
#music-volume::-moz-range-track { height: 3px; border-radius: 2px; background: var(--line); }
#music-volume::-moz-range-progress { height: 3px; background: var(--accent); }
#music-volume::-moz-range-thumb { width: 11px; height: 11px; border: 0; border-radius: 50%; background: var(--accent); }
.site-footer { padding-bottom: max(110px,calc(90px + env(safe-area-inset-bottom))); }

@media(max-width:900px) { .portal { padding: 24px 23px 18px; } .portal-art { width: 125px; right: 8px; } .portal h2 { font-size: 27px; } }
@media(max-width:760px) {
  .header-actions .icon-button { width: 44px; height: 44px; flex-shrink: 0; }
  .header-actions { gap: 3px; }
  .welcome h1 { font-size: 34px; letter-spacing: .04em; }
  .hello-toy { width: 80px; margin-right: 0; }
  body[data-page="home"] .about-section { gap: 22px; grid-template-columns: 60px minmax(0,1fr); }
  .about-avatar { width: 54px; height: 62px; font-size: 30px; }
  .home-music { left: max(16px,env(safe-area-inset-left)); bottom: max(15px,env(safe-area-inset-bottom)); }
  .footer-inner nav a,#back-top,.icp-line a { display: inline-flex; align-items: center; min-height: 44px; }
}
@media(max-width:600px) {
  body[data-page="home"] .welcome { padding-top: 32px; padding-bottom: 25px; gap: 12px; }
  .welcome h1 { font-size: 30px; letter-spacing: .02em; }
  .hello-toy { width: 58px; padding: 0; }
  body[data-page="home"] .about-section { grid-template-columns: 46px minmax(0,1fr); gap: 17px; padding-top: 8px; padding-bottom: 32px; }
  .about-avatar { width: 43px; height: 50px; font-size: 26px; }
  .about-section h2 { font-size: 22px; }
  .about-section .eyebrow { font-size: 7px; letter-spacing: .6px; }
  .about-section p:not(.eyebrow) { font-size: 13px; line-height: 1.95; margin-block: 8px; }
  .section-portals { grid-template-columns: 1fr; gap: 16px; padding-bottom: 42px; }
  .portal { display: flex; min-height: 242px; padding: 22px 24px 16px; }
  .portal-copy { padding-block: 19px 20px; }
  .portal h2 { font-size: 28px; }
  .portal p { font-size: 12px; max-width: 65%; }
  .portal-art { width: 140px; right: 13px; top: 45px; }
  .portal-kicker { font-size: 8px; letter-spacing: 1.3px; }
}
@media(max-width:360px) {
  .welcome h1 { font-size: 27px; }
  .hello-toy { width: 46px; }
  .portal { padding-inline: 20px; }
  .portal-art { width: 115px; right: 6px; }
  .portal h2 { font-size: 26px; }
  .home-music { gap: 9px; padding-right: 12px; }
  #music-volume { width: 58px; }
}
@media(hover:none),(pointer:coarse),(prefers-reduced-motion:reduce) { .ink-trail { display: none; } }
@media(prefers-reduced-motion:reduce) { .portal-art,.player-play,.portal .portal-arrow { transition: none; } .portal:hover .portal-art { transform: none; } }

/* Round 3: original, lightweight optical signature and two illustrated worlds. */
:root:not([data-theme="dark"]) .portal { --line:#c9a57c; --muted:#62452e; --accent:#774323; --soft:#dec5a0; --surface:#f1ddbd; background:linear-gradient(125deg,#f0ddbf 0%,#e4c69d 100%); border-color:#c9a57c; box-shadow:0 7px 22px #82582e0c,inset 0 1px 0 #fff6df70; }
:root:not([data-theme="dark"]) .portal-ai { background:linear-gradient(125deg,#eed7b4 0%,#dfbe94 100%); }
:root:not([data-theme="dark"]) .portal p { color:#62452e; }
:root:not([data-theme="dark"]) .portal .portal-arrow { background:#f5e4ca; }
:root:not([data-theme="dark"]) .portal:hover .portal-arrow { background:var(--accent); }
.wordmark:focus-visible .close-bracket { opacity:1; transform:translateX(0); }
.wordmark:focus-visible .logo-bracket:first-child { transform:translateX(-3px); }
.wordmark .close-bracket { transition:opacity .25s,transform .3s; }
body[data-page="home"] .welcome { display:grid; grid-template-columns:minmax(0,1.12fr) minmax(0,1fr); min-height:348px; align-items:center; gap:24px; padding-top:24px; padding-bottom:8px; }
.welcome-copy { min-width:0; }
.welcome h1 { font-size:clamp(32px,3.45vw,48px); white-space:nowrap; letter-spacing:.045em; padding-block:8px; }
.welcome .playful-word { display:inline-block; margin-left:.04em; }
.welcome .title-underline { bottom:-1px; height:12px; opacity:.45; }
.title-underline path { stroke-dasharray:330; stroke-dashoffset:330; animation:title-sketch 1.2s .15s ease forwards; }
.welcome h1:hover .playful-word { animation:title-shimmer .8s ease both; }
.welcome svg.word-spark { width:17px; height:17px; fill:currentColor; stroke:none; opacity:.8; }
.welcome svg.spark-one { left:auto; right:-12px; top:-3px; bottom:auto; }
.welcome svg.spark-two { left:4px; right:auto; top:auto; bottom:-8px; width:11px; height:11px; }

/* Round 4: static type and editorial illustration. Motion follows static review. */
.home-signature { margin:18px 0 19px; font:600 23px/1.2 "Palatino Linotype",Georgia,serif; color:var(--ink); letter-spacing:-.4px; }
.home-poem { margin:0; max-width:430px; font:italic 19px/1.8 Georgia,"Times New Roman",serif; color:#59442f; }
.home-poem .poem-line { display:block; width:max-content; max-width:100%; white-space:nowrap; }
.home-poem .poem-second { margin-left:30px; }
.home-poem cite { display:block; text-align:right; font:normal 11px/2.5 var(--font); color:var(--muted); letter-spacing:.04em; }
:root[data-theme="dark"] .home-poem { color:#d6cfc2; }
.hero-scene { position:relative; width:100%; aspect-ratio:3/2; align-self:center; }
.theme-scene { width:100%; height:100%; position:relative; }
.theme-scene img { width:100%; height:100%; object-fit:contain; }
.scene-dark { display:none; }
:root[data-theme="dark"] .scene-light { display:none; }
:root[data-theme="dark"] .scene-dark { display:block; }
.reading-illustration { position:absolute; inset:0; }
.apple-layer { position:absolute; inset:0; width:100%; height:100%; overflow:visible; }
.falling-apple { transform:translate(420px,153px); }
.galaxy-drift { position:absolute; inset:0; opacity:.65; mask-image:radial-gradient(ellipse at center,#000 30%,transparent 72%); }
.theme-scene .floating-astronaut { position:absolute; width:80%; height:80%; right:-3%; bottom:0; }
.hero-scene .hello-toy { position:absolute; right:1%; top:-5%; width:85px; margin:0; padding:0; rotate:0deg; filter:none; }
.hero-scene .hello-toy>span { font:8px/1.3 var(--font); position:absolute; top:100%; left:50%; transform:translateX(-50%); rotate:0deg; display:block; letter-spacing:.2px; }
.brand-star .toy-star { animation:none; transform-origin:75px 72px; }
.brand-star .toy-star>.brand-star-outline { fill:url(#brand-star-gold); stroke:#a77a3c; stroke-width:.8; stroke-linejoin:round; }
.brand-star .star-face { fill:#71512e; }
.brand-star .toy-smile { stroke:#71512e; stroke-width:1.1; fill:none; }
.hero-scene .hello-toy:hover { rotate:0deg; }
.hello-toy.celebrate:after { content:none; }
:root[data-theme="dark"] .hello-toy svg { filter:none; }
:root[data-theme="dark"] .hello-toy { opacity:1; }
.player-track>span { font-family:var(--font); font-size:12px; font-weight:400; }
.player-track small { font-size:8px; }
body[data-page="home"] .welcome { min-height:400px; padding-top:42px; padding-bottom:30px; }
body[data-page="home"] .about-section { padding-top:0; padding-bottom:36px; }
.wordmark,.home-signature,.home-poem cite { animation:none!important; text-shadow:none!important; background-image:none!important; }
@keyframes title-sketch { to { stroke-dashoffset:0; } }
@keyframes title-shimmer { 40% { text-shadow:2px 0 #b8756850,-2px 0 #6a9aaf50; } }
@media(max-width:1050px) { .welcome h1 { font-size:36px; } .home-poem { font-size:17px; } }
@media(max-width:790px) {
  body[data-page="home"] .welcome { grid-template-columns:1.05fr 1fr; gap:12px; min-height:330px; }
  .welcome h1 { font-size:30px; letter-spacing:.02em; }
  .welcome .eyebrow { font-size:9px; }
  .home-poem { font-size:14px; }.home-poem .poem-second { margin-left:20px; }
  .hero-scene .hello-toy { width:65px; top:-8%; right:0; }
}
@media(max-width:600px) {
  body[data-page="home"] .welcome { grid-template-columns:1fr; gap:10px; padding-top:28px; padding-bottom:17px; }
  .welcome h1 { font-size:clamp(28px,7.7vw,38px); letter-spacing:.035em; }
  .welcome .eyebrow { font-size:8px; }
  .home-signature { font-size:20px; margin:12px 0 14px; }
  .home-poem { font-size:clamp(14px,4.15vw,19px); max-width:440px; }
  .home-poem .poem-second { margin-left:clamp(16px,5vw,30px); }
  .home-poem cite { font-size:10px; }
  .hero-scene { max-width:330px; justify-self:center; margin-top:10px; }
  .hero-scene .hello-toy { width:64px; top:-11%; right:1%; }
  .hero-scene .hello-toy>span { font-size:7px; }
  body[data-page="home"] .about-section { padding-top:0; padding-bottom:30px; }
}
@media(prefers-reduced-motion:reduce) { .title-underline path { stroke-dashoffset:0; } }

/* Motion added after reviewing four static screenshots. No user-facing switch. */
.falling-apple { animation:orchard-apple 10s ease-in infinite; }
.galaxy-drift { animation:quiet-galaxy 36s ease-in-out infinite alternate; transform-origin:50% 50%; }
.floating-astronaut { animation:quiet-orbit 10s ease-in-out infinite; transform-origin:62% 50%; }
.brand-star .toy-star { animation:brand-breathe 7s ease-in-out infinite; }
@supports (background-clip:text) {
  .home-poem .poem-line { color:transparent; background-image:linear-gradient(110deg,#735044 0%,#66572e 22%,#45635b 45%,#4a607b 65%,#715275 82%,#735044 100%); background-size:250% 100%; background-clip:text; animation:poem-refraction 18s ease-in-out infinite alternate; }
  :root[data-theme="dark"] .home-poem .poem-line { background-image:linear-gradient(110deg,#dbc4a7 0%,#d7cda8 22%,#b3c7c1 45%,#b4bdd9 65%,#ceb6cc 82%,#dbc4a7 100%); }
  .home-poem .poem-second { animation-delay:-5s; }
}
@keyframes orchard-apple { 0%,43% { transform:translate(420px,153px) rotate(-5deg); opacity:1; } 60% { transform:translate(430px,365px) rotate(33deg); opacity:1; } 67% { transform:translate(435px,350px) rotate(45deg); } 75%,88% { transform:translate(440px,365px) rotate(58deg); opacity:1; } 97%,100% { transform:translate(440px,365px) rotate(58deg); opacity:0; } }
@keyframes quiet-galaxy { to { transform:translate(-5px,3px) rotate(1.4deg) scale(1.015); } }
@keyframes quiet-orbit { 50% { transform:translate(-4px,-8px) rotate(2.5deg); } }
@keyframes brand-breathe { 50% { transform:translateY(-3px) rotate(1deg); } }
@keyframes poem-refraction { from { background-position:0% 50%; } to { background-position:100% 50%; } }
@media(prefers-reduced-motion:reduce) {
  .falling-apple { transform:translate(420px,153px); }
  .galaxy-drift,.floating-astronaut,.brand-star .toy-star { transform:none; }
  .home-poem .poem-line { background:none; color:var(--ink); }
}
@media(forced-colors:active) { .home-poem .poem-line { background:none; color:CanvasText; } }

/* Round 5: quotation linework, an in-scene star, and a compact footer. */
.poem-composition { position:relative; isolation:isolate; margin-top:23px; padding-bottom:9px; max-width:430px; }
.home-poem { position:relative; z-index:1; }
.poem-lines { position:absolute; z-index:0; left:-10px; bottom:-17px; width:calc(100% + 20px); height:91px; overflow:visible; pointer-events:none; color:#987448; opacity:.15; transform:translate3d(var(--line-x,0px),var(--line-y,0px),0) rotate(var(--line-r,0deg)); transform-origin:center; }
.poem-lines path { fill:none; stroke:currentColor; stroke-width:.8; vector-effect:non-scaling-stroke; }
:root[data-theme="dark"] .poem-lines { color:#b5ab94; opacity:.16; }
.hero-scene .hello-toy { width:65px; right:auto; left:18%; top:21%; min-width:44px; min-height:44px; opacity:.86; }
.hero-scene .hello-toy:focus-visible { outline:2px solid var(--accent); outline-offset:3px; border-radius:50%; }
.brand-star .toy-star>.brand-star-outline { fill:#ddbb7c; stroke:#8e6b3a; stroke-width:1; }
.brand-star .star-orbit { fill:none; stroke:#9c8259; stroke-width:.65; stroke-dasharray:2 6; opacity:.6; }
.brand-star .star-etch { stroke:#9c8259; stroke-width:.8; fill:none; }
:root[data-theme="dark"] .hero-scene .hello-toy { left:21%; top:23%; opacity:.9; }
:root[data-theme="dark"] .brand-star .toy-star>.brand-star-outline { fill:#d6c49f; stroke:#d9d1bb; }
body[data-page="home"] .site-footer { padding:17px 0 20px; background:var(--header); }
body[data-page="home"] .footer-inner { row-gap:7px; column-gap:24px; }
body[data-page="home"] .footer-inner>.wordmark { font-size:23px; }
body[data-page="home"] .footer-inner nav a,body[data-page="home"] #back-top { min-height:44px; display:inline-flex; align-items:center; }
body[data-page="home"] .icp-line { margin-top:8px; padding:0; }
/* Dock stays fixed during reading, then parks above the footer, never covering links. */
.home-music { bottom:calc(max(22px,env(safe-area-inset-bottom)) + var(--footer-lift,0px)); }
@media(max-width:650px) {
 body[data-page="home"] .footer-inner { grid-template-columns:1fr auto; row-gap:4px; }
 body[data-page="home"] .footer-inner>nav { grid-column:1/-1; grid-row:2; gap:23px; }
 body[data-page="home"] .footer-inner>#back-top { grid-column:2; grid-row:1; }
 body[data-page="home"] .footer-inner>.copyright { grid-column:1/-1; grid-row:3; }
 body[data-page="home"] .footer-inner>.footer-note { grid-column:1/-1; grid-row:4; }
 body[data-page="home"] .icp-line a { min-height:44px; }
 .section-portals { padding-bottom:100px; }
 .hero-scene .hello-toy { width:54px; top:20%; left:16%; }
 .poem-composition { margin-top:16px; }
 .poem-lines { height:75px; bottom:-14px; }
}
@media(prefers-reduced-motion:reduce) { .poem-lines { transform:none!important; } }
/* Final visual pass: daylight star rests beside the orchard, not over its leaves. */
:root:not([data-theme="dark"]) .hero-scene .hello-toy { left:4%; top:49%; }
.poem-lines { mask-image:linear-gradient(90deg,transparent,#000 12%,#000 84%,transparent); }
/* Round 6: no fixed-player spacers; compact, accessible top music controls. */
.header-music { position:relative; }
#bgm-toggle { touch-action:pan-y; -webkit-user-select:none; user-select:none; }
#bgm-panel { position:absolute; top:calc(100% + 12px); right:0; width:240px; padding:16px; background:var(--surface); color:var(--ink); border:1px solid var(--line); border-radius:12px; box-shadow:var(--shadow); z-index:50; }
#bgm-panel[hidden] { display:none; }
.bgm-title { font-size:13px; margin:0 0 12px; }.bgm-actions { display:flex; gap:8px; }.bgm-actions button { border:1px solid var(--line); border-radius:6px; padding:8px 12px; min-height:44px; font-size:12px; }.bgm-actions button:disabled { opacity:.45; cursor:not-allowed; }
#track-count,#music-status { font-size:10px; color:var(--muted); margin:7px 0; display:block; }
.bgm-volume { display:flex; align-items:center; gap:8px; font-size:11px; margin-top:7px; }.bgm-volume #music-volume { width:122px; height:44px; appearance:auto; accent-color:var(--accent); }.bgm-volume output { font-size:10px; width:30px; }
.fx-row { display:flex; align-items:center; justify-content:space-between; border-top:1px solid var(--line); padding-top:4px; font-size:11px; }.fx-row #sound-toggle { display:inline-flex!important; }
.section-portals { padding-bottom:30px; }
body[data-page="home"] .site-footer { padding:9px 0 8px; min-height:0; }
body[data-page="home"] .footer-inner { row-gap:0; }
body[data-page="home"] .icp-line { margin-top:0; line-height:1.2; }
body[data-page="home"] .footer-note { display:none; }
.portal .portal-art { transform:translate(var(--art-x,0px),var(--art-y,0px)); transition:transform .3s ease,filter .25s; }
.portal:focus-visible .portal-art,.portal.art-engaged .portal-art { filter:drop-shadow(0 0 5px #c39e6355); transform:translateY(-3px) rotate(3deg); }
@media(max-width:650px){#bgm-panel { position:fixed; right:16px; top:74px; }.section-portals { padding-bottom:24px; }body[data-page="home"] .footer-inner>.copyright { font-size:9px; }body[data-page="home"] .site-footer { padding-bottom:4px; }}
@media(prefers-reduced-motion:reduce){.portal .portal-art,.portal:focus-visible .portal-art,.portal.art-engaged .portal-art { transform:none!important; transition:none; }}
@media(max-width:360px){.header-inner{padding-inline:12px;gap:5px}.site-header .wordmark{font-size:22px;letter-spacing:-1.3px}.site-header .brand-dot{font-size:10px}.site-header .logo-bracket{font-size:21px}.header-actions{gap:0}.header-actions .icon-button{width:40px;height:44px}.header-music{flex-shrink:0}}
.portal:hover .portal-art { transform:translate(var(--art-x,0px),var(--art-y,0px)) rotate(1deg); }
@media(prefers-reduced-motion:reduce){.portal:hover .portal-art{transform:none!important;}}

/* Final footer: one quiet line, no repeated navigation or brand block. */
body[data-page="home"] .site-footer { display:flex; flex-wrap:wrap; justify-content:center; align-items:center; column-gap:24px; row-gap:0; padding:6px 16px; min-height:56px; box-sizing:border-box; }
body[data-page="home"] .footer-inner { display:contents; }
body[data-page="home"] .footer-inner>.wordmark,body[data-page="home"] .footer-inner>nav,body[data-page="home"] .footer-inner>#back-top,body[data-page="home"] .footer-inner>.footer-note { display:none; }
body[data-page="home"] .footer-inner>.copyright { margin:0; font-size:10px; line-height:1.4; white-space:nowrap; }
body[data-page="home"] .icp-line { width:auto; padding:0; margin:0; line-height:1.4; font-size:10px; }
body[data-page="home"] .icp-line a { display:inline-flex; align-items:center; min-height:44px; white-space:nowrap; }
@media(max-width:360px){body[data-page="home"] .site-footer{column-gap:12px;padding-inline:10px}.site-footer .icp-line{font-size:10px}}

/* Round 7: a single compact transport strip, retained touch targets. */
#bgm-panel { display:flex; align-items:center; gap:5px; width:254px; box-sizing:border-box; padding:4px 7px; border-radius:9px; }
#bgm-panel[hidden] { display:none; }
#bgm-panel .bgm-title,#bgm-panel .fx-row,#bgm-panel #volume-value { display:none; }
#bgm-panel #track-count,#bgm-panel #music-status { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; margin:0; padding:0; }
#bgm-panel .bgm-actions { display:flex; gap:0; flex-shrink:0; }
#bgm-panel .bgm-actions button { display:grid; place-items:center; border:0; background:none; padding:0; width:44px; height:44px; border-radius:5px; }
#bgm-panel .bgm-actions button svg { width:17px; height:17px; fill:currentColor; }
#bgm-panel .bgm-volume { display:flex; gap:7px; margin:0; flex:1; min-width:0; }
#bgm-panel .bgm-volume>svg { flex:0 0 17px; width:17px; height:17px; fill:none; stroke:var(--muted); stroke-width:1.6; }
#bgm-panel .bgm-volume #music-volume { width:100%; min-width:0; height:44px; margin:0; }
.section-portals { gap:18px; }
.portal { min-height:242px; padding:22px 26px 16px; }
.portal-copy { padding-block:18px 17px; }
.portal h2 { margin-bottom:9px; }
.portal-bottom { padding-top:10px; }
.portal-art { top:47px; height:136px; width:145px; right:16px; }
@media(max-width:600px){.section-portals{gap:12px}.portal{min-height:214px;padding:18px 22px 13px}.portal-copy{padding-block:14px 14px}.portal-art{top:39px;right:12px;width:125px;height:128px}.portal h2{font-size:27px}.portal-bottom{padding-top:9px}}
@media(max-width:360px){.portal{padding-inline:18px}.portal-art{width:108px;right:5px}.portal h2{font-size:25px}}

/* Imaginary portrait, not a likeness; keep the other brand icons unchanged. */
.coniper-portrait{background:none;rotate:0deg;width:76px;height:86px}.coniper-person{width:100%;height:100%;overflow:visible}:root[data-theme=dark] .coniper-person{filter:brightness(1.15) saturate(.7)}
.hero-scene .hello-toy{isolation:isolate}.hero-scene .hello-toy>.day-sun{display:none}.hero-scene .hello-toy>svg:not(.day-sun){display:block}
:root:not([data-theme=dark]) .hero-scene .hello-toy{left:auto;right:-2%;top:-9%;width:65px;color:#b28a44;opacity:1}
:root:not([data-theme=dark]) .hero-scene .hello-toy>.day-sun{display:block;width:100%;height:auto}:root:not([data-theme=dark]) .hero-scene .hello-toy>svg:not(.day-sun){display:none}
.hero-scene .hello-toy>.celestial-feedback{position:absolute;display:block;inset:12%;width:auto;height:auto;top:12%;left:12%;transform:none;border-radius:50%;pointer-events:none;opacity:0;z-index:-1}
:root:not([data-theme=dark]) .hello-toy.is-touched>.celestial-feedback{background:radial-gradient(circle,#d9ab6055,transparent 70%);animation:sun-greeting .75s ease-out}
:root[data-theme=dark] .hello-toy.is-touched>.celestial-feedback{box-shadow:0 0 10px #ede0b5aa;animation:star-greeting .65s ease-out}
@keyframes sun-greeting{0%{opacity:.7;transform:scale(.8)}65%{opacity:.4}100%{opacity:0;transform:scale(2.8)}}
@keyframes star-greeting{0%,65%{opacity:0}28%{opacity:.8;transform:scale(1.45)}100%{opacity:0}}
@media(max-width:600px){.coniper-portrait{width:48px;height:66px}:root:not([data-theme=dark]) .hero-scene .hello-toy{right:-1%;top:-8%;width:56px}}
@media(prefers-reduced-motion:reduce){.hello-toy.is-touched>.celestial-feedback{animation:none!important;opacity:.6!important;transform:none!important;outline:1px solid currentColor;outline-offset:3px}}

/* Round 10: miniature objects, shared upper-left light and precise controls. */
.coniper-portrait{width:76px;height:90px}.coniper-person{filter:none!important}.portal-art.object-book,.portal-art.object-prism{opacity:.9}:root[data-theme=dark] .portal-art{filter:brightness(1.15) saturate(.65)}
.hero-scene .hello-toy>.night-solid-star{overflow:visible}.night-solid-star .toy-star{animation:none!important}.hero-scene .hello-toy{background:transparent;border:0;box-shadow:none}
.portal .portal-arrow{display:grid;place-items:center;line-height:1;padding:0}.portal-arrow svg{display:block;width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
#bgm-panel{gap:0;padding:4px 7px;width:254px}#bgm-panel .bgm-volume{gap:6px;height:44px;align-items:center}#bgm-panel .bgm-volume>svg{box-sizing:content-box;padding:0 5px;flex:0 0 18px;width:18px;height:18px;stroke:currentColor}#bgm-panel .bgm-actions button svg{display:block;width:18px;height:18px}#bgm-panel .bgm-actions button:disabled{opacity:.32}
#bgm-panel .bgm-volume #music-volume{appearance:none;-webkit-appearance:none;background:transparent;border:0;padding:0;height:44px;cursor:pointer;flex:1;width:0;outline-offset:0}
#music-volume::-webkit-slider-runnable-track{height:3px;border-radius:3px;background:var(--line);border:0}#music-volume::-webkit-slider-thumb{appearance:none;-webkit-appearance:none;width:12px;height:12px;border-radius:50%;background:var(--ink);border:2px solid var(--surface);box-shadow:0 0 0 1px var(--muted);margin-top:-4.5px}#music-volume::-moz-range-track{height:3px;background:var(--line);border:0;border-radius:3px}#music-volume::-moz-range-thumb{width:8px;height:8px;border:2px solid var(--surface);border-radius:50%;background:var(--ink);box-shadow:0 0 0 1px var(--muted)}
@media(max-width:600px){.coniper-portrait{width:52px;height:70px}}
