:root {
  color-scheme:dark;
  --ink:#fbf5eb;
  --muted:#d0c4d5;
  --page:#30283e;
  --paper:#fbf1e1;
  --brown:#584343;
  --line:#ffffff26;
  --lavender:#cfc0e6;
  font-family:"Hiragino Kaku Gothic ProN","Yu Gothic",sans-serif;
  font-size:16px
}
* {
  box-sizing:border-box
}
html {
  scroll-behavior:smooth;
  scroll-padding-top:100px
}
body {
  margin:0;
  background:var(--page);
  color:var(--ink)
}
button,a {
  -webkit-tap-highlight-color:transparent
}
button,input {
  font:inherit
}
button,a {
  touch-action:manipulation
}
a {
  color:inherit;
  text-decoration:none
}
button {
  color:inherit;
  cursor:pointer
}
button:disabled {
  cursor:default
}
button:focus-visible,a:focus-visible {
  outline:3px solid #ffe0a2;
  outline-offset:4px
}
button {
  border:0
}
p {
  line-height:1.85
}
h1,h2,h3,.brand {
  font-family:"Hiragino Mincho ProN","Yu Mincho",serif
}
h2 {
  font-size:clamp(26px,3vw,36px);
  font-weight:500;
  line-height:1.55
}
.sr-only {
  position:absolute;
  width:1px;
  height:1px;
  overflow:hidden;
  clip-path:inset(50%);
  white-space:nowrap
}
.skip-link {
  position:fixed;
  top:-80px;
  left:20px;
  z-index:100;
  background:var(--paper);
  color:var(--brown);
  padding:14px
}
.skip-link:focus {
  top:10px
}
.site-header {
  min-height:108px;
  display:flex;
  align-items:center;
  gap:32px;
  padding:20px 4%;
  border-bottom:1px solid var(--line);
  background:var(--page)
}
.brand {
  display:flex;
  flex-direction:column;
  min-width:290px;
  gap:8px
}
.brand>span {
  font-size:32px;
  letter-spacing:.1em;
  line-height:1
}
.brand small {
  font-size:12px;
  letter-spacing:.2em;
  padding-left:24px
}
.moon {
  display:inline-block;
  color:#e0cff2;
  font-size:35px;
  margin-left:8px
}
.primary-nav {
  display:flex;
  align-items:center;
  gap:clamp(12px,2vw,32px);
  margin-left:auto;
  font-family:Georgia,serif
}
.primary-nav a {
  min-height:44px;
  display:grid;
  place-items:center;
  font-size:14px;
  border-bottom:1px solid transparent
}
.primary-nav a:hover,.primary-nav a[aria-current] {
  border-bottom-color:#dfcce8
}
.header-note {
  font:16px Georgia,serif;
  min-height:44px;
  display:flex;
  align-items:center;
  gap:9px
}
.menu-button {
  width:46px;
  height:46px;
  flex-shrink:0;
  border:1px solid var(--line);
  border-radius:50%;
  background:transparent;
  font-size:24px
}
.scene-toolbar {
  min-height:64px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:8px 4%;
  gap:12px
}
.scene-toolbar p {
  font-size:14px;
  letter-spacing:.08em;
  margin:0;
  color:var(--muted)
}
.mobile-copy {
  display:none
}
.settings {
  display:flex;
  gap:10px;
  align-items:center
}
.settings button {
  min-height:44px;
  font-size:14px
}
.time-switch {
  display:flex;
  border:1px solid #d4c0b16b;
  border-radius:30px;
  padding:3px;
  gap:3px
}
.time-switch button {
  border-radius:24px;
  padding:0 16px;
  background:transparent;
  min-height:44px
}
.time-switch button[aria-pressed=true] {
  background:var(--paper);
  color:var(--brown)
}
.sound,.motion {
  background:transparent;
  border-radius:24px;
  padding:0 12px;
  border:1px solid var(--line)
}
.sound span,.motion span {
  font-size:12px
}
.scene {
  position:relative;
  width:100%;
  aspect-ratio:1536/730;
  overflow:clip;
  background:#433448;
  isolation:isolate;
  touch-action:pan-y pinch-zoom
}
.world {
  position:absolute;
  top:-22.47%;
  left:0;
  width:100%;
  aspect-ratio:3/2;
  --px:0px;
  --py:0px;
  transform:translate3d(var(--px),var(--py),0) scale(1.018);
  transform-origin:50% 50%;
  will-change:transform
}
.master-picture,.master-picture img,.art-layer,.art-layer img,.art-picture,.art-picture img {
  display:block;
  width:100%;
  height:100%;
  position:absolute;
  inset:0;
  user-select:none;
  pointer-events:none
}
.master-picture img,.art-layer img,.art-picture img {
  transition:filter .65s
}
.nel-picture {
  transform:translate3d(calc(var(--px)*var(--nel-depth,.18)),calc(var(--py)*var(--nel-depth,.18)),0)
}
.nel-picture[hidden] {
  display:none
}
.daylight,.lamplight,.foreground-shade {
  position:absolute;
  inset:0;
  pointer-events:none;
  transition:opacity .65s
}
.daylight {
  background:linear-gradient(125deg,#ffe9ba40,transparent 60%);
  mix-blend-mode:screen;
  opacity:0
}
.lamplight {
  background:radial-gradient(ellipse at 50% 49%,#ffb85623,transparent 26%),radial-gradient(ellipse at 7% 39%,#ffd08330,transparent 15%);
  mix-blend-mode:screen;
  transform:translate3d(calc(var(--px)*-.55),calc(var(--py)*-.55),0)
}
.foreground-shade {
  background:linear-gradient(0deg,#1e132654,transparent 28%);
  transform:translate3d(calc(var(--px)*.8),calc(var(--py)*.8),0)
}
[data-theme=day] #art-stack img {
  filter:brightness(1.22) saturate(.85) sepia(.13)
}
[data-theme=day] .daylight {
  opacity:1
}
[data-theme=day] .lamplight {
  opacity:.15
}
[data-theme=day] {
  --page:#eee3da;
  --ink:#493c53;
  --muted:#66566b;
  --line:#634d6726;
  color-scheme:light
}
.hotspot {
  position:absolute;
  left:var(--dx);
  top:var(--dy);
  width:var(--dw);
  min-width:106px;
  min-height:58px;
  height:var(--dh);
  display:flex;
  justify-content:center;
  align-items:center;
  gap:10px;
  border:1px solid #ac8563;
  border-radius:14px;
  background:linear-gradient(110deg,#fcf3e5,#edddc8);
  color:#584343;
  box-shadow:0 3px 12px #24162345;
  text-align:left;
  z-index:3;
  padding:7px 10px;
  transition:filter .2s,box-shadow .2s
}
.hotspot:hover {
  filter:brightness(1.08);
  box-shadow:0 0 0 4px #ffe8bf66
}
.hotspot .symbol {
  font-family:Georgia,serif;
  font-size:24px;
  line-height:1
}
.hotspot b {
  display:block;
  font:14px Georgia,serif;
  letter-spacing:.02em
}
.hotspot small {
  display:block;
  font-size:12px;
  margin-top:4px;
  line-height:1.3;
  white-space:nowrap
}
.hotspot-note {
  min-width:76px;
  min-height:44px
}
.hotspot-note b {
  font-size:16px
}
.hotspot-note .symbol {
  display:none
}
.nel-target {
  position:absolute;
  left:51%;
  top:42%;
  width:12%;
  height:14%;
  min-width:60px;
  min-height:60px;
  background:transparent;
  border-radius:45%;
  z-index:4
}
.nel-label {
  position:absolute;
  left:15%;
  bottom:0;
  white-space:nowrap;
  color:#493653;
  background:#fff5e4ed;
  padding:8px 12px;
  border-radius:22px;
  font-size:13px;
  border:1px solid #b79874;
  transition:transform .3s
}
.nel-target:hover .nel-label {
  transform:translateY(-3px)
}
.nel-target.is-reacting {
  box-shadow:0 0 24px 6px #ffdfae70
}
.speech {
  position:absolute;
  left:62.9%;
  top:38.5%;
  width:7.8%;
  min-width:114px;
  min-height:90px;
  border-radius:45%;
  background:#fcf0e1;
  color:#634857;
  z-index:5;
  display:grid;
  place-content:center;
  text-align:center;
  padding:10px 12px;
  border:1px solid #bda18c;
  box-shadow:0 2px 8px #30213922
}
.speech p {
  margin:0;
  font-size:14px;
  line-height:1.7
}
.speech a {
  display:flex;
  align-items:center;
  justify-content:center;
  gap:4px;
  min-height:44px;
  font-size:12px;
  padding:8px 0 3px;
  text-decoration:underline;
  text-underline-offset:3px
}
.speech.is-reacting {
  animation:react .35s ease-out
}
@keyframes react {
  50% {
    transform:translateY(-5px) rotate(-2deg)
  }
}
.floor-label {
  display:none
}
.scene-hint {
  position:absolute;
  bottom:12px;
  left:50%;
  transform:translateX(-50%);
  font-size:13px;
  color:#fff4e5;
  background:#30283edb;
  padding:6px 18px;
  border:1px solid #e8d9bf50;
  border-radius:24px;
  white-space:nowrap;
  margin:0;
  pointer-events:none;
  z-index:7
}
.site-footer {
  text-align:center;
  padding:28px 20px 22px;
  background:var(--page)
}
.site-footer>p {
  font-family:"Yu Mincho",serif;
  letter-spacing:.2em;
  margin:0 0 14px
}
.site-footer>div {
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  gap:10px 24px;
  margin:0 0 14px
}
.site-footer a {
  font-size:14px;
  min-height:44px;
  display:flex;
  align-items:center;
  gap:8px
}
.site-footer small {
  font-size:12px;
  color:var(--muted)
}
.mobile-nav {
  display:none
}
.furniture-layer {
  position:absolute;
  left:var(--dx);
  top:var(--dy);
  width:var(--dw);
  height:auto;
  pointer-events:none;
  transform:translate3d(calc(var(--px)*var(--depth)),calc(var(--py)*var(--depth)),0)
}
dialog {
  position:fixed;
  inset:0 0 0 auto;
  max-height:none;
  height:100dvh;
  max-width:min(560px,100vw);
  width:560px;
  margin:0;
  border:0;
  border-left:1px solid #c3a995;
  padding:22px 32px 40px;
  background:#fcf4e8;
  color:#544050;
  overflow-y:auto;
  overscroll-behavior:contain;
  box-shadow:-10px 0 70px #1b10203d
}
dialog::backdrop {
  background:#1710228c;
  backdrop-filter:blur(5px)
}
.dialog-bar {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  border-bottom:1px solid #b998783d;
  padding-bottom:16px
}
.dialog-bar>span {
  font:14px Georgia,serif;
  letter-spacing:.16em;
  color:#735b85
}
.dialog-bar h2 {
  font-size:22px;
  margin:0
}
.close-dialog {
  width:46px;
  height:46px;
  flex-shrink:0;
  border:1px solid #b8997769;
  border-radius:50%;
  background:transparent;
  color:#584353;
  font-size:28px
}
dialog a:focus-visible,dialog button:focus-visible {
  outline-color:#785390
}
dialog p {
  font-size:16px
}
dialog h2 {
  margin:28px 0 16px
}
dialog h3 {
  font-size:23px;
  margin:5px 0 12px
}
.panel-lead {
  font-family:"Yu Mincho",serif;
  font-size:20px!important;
  line-height:1.8
}
.external-link {
  display:flex;
  justify-content:space-between;
  align-items:center;
  min-height:52px;
  padding:14px 18px;
  border-radius:10px;
  background:#665272;
  color:#fff7e9;
  margin:20px 0;
  font-size:15px
}
.character-card,.news-item,.episode {
  padding:22px 0;
  border-top:1px solid #c9b09c70
}
.character-card small,.episode small,.news-item time {
  font-size:13px;
  color:#806a80
}
.character-card p {
  margin:8px 0
}
.character-size {
  font:30px Georgia,serif;
  color:#7d648e
}
.episode {
  display:flex;
  gap:18px;
  align-items:center
}
.episode b {
  font-weight:500
}
.episode>span:first-child {
  color:#927c9c;
  font:24px Georgia,serif
}
.panel-note {
  font-size:14px!important;
  color:#826b7d
}
.gallery-grid {
  display:grid;
  gap:18px
}
.gallery-grid figure {
  margin:0
}
.gallery-grid img {
  width:100%;
  height:auto;
  display:block;
  border-radius:12px
}
.gallery-grid figcaption {
  font-size:14px;
  margin:10px 0 16px
}
#menu-dialog nav {
  display:grid;
  margin-top:14px
}
#menu-dialog nav a {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  min-height:64px;
  border-bottom:1px solid #c9b09c70;
  font:18px Georgia,serif
}
#menu-dialog nav small {
  font:13px "Hiragino Kaku Gothic ProN",sans-serif
}
.toast {
  position:fixed;
  left:50%;
  bottom:30px;
  transform:translate(-50%,10px);
  border-radius:12px;
  box-shadow:0 8px 30px #21162c44;
  padding:14px 22px;
  max-width:calc(100vw - 32px);
  width:max-content;
  background:#fcf2e3;
  color:#594253;
  font-size:14px;
  z-index:100;
  opacity:0;
  pointer-events:none;
  transition:opacity .2s,transform .2s
}
.toast.show {
  opacity:1;
  transform:translate(-50%,0)
}
.noscript {
  padding:20px;
  text-align:center
}
body.modal-open {
  overflow:hidden
}
[data-motion=off] .world {
  transform:none;
  will-change:auto
}
[data-motion=off] .lamplight,[data-motion=off] .foreground-shade,[data-motion=off] .furniture-layer,[data-motion=off] .nel-picture {
  transform:none
}
[data-motion=off] .speech {
  animation:none
}
@media(min-width:761px) and (max-width:1100px) {
  .site-header {
    gap:15px;
    padding-inline:24px
  }
  .brand {
    min-width:235px
  }
  .brand>span {
    font-size:26px
  }
  .primary-nav {
    gap:12px
  }
  .primary-nav a {
    font-size:12px
  }
  .header-note {
    display:none
  }
  .hotspot {
    min-width:92px;
    min-height:48px;
    gap:6px;
    padding:6px
  }
  .hotspot .symbol {
    font-size:18px
  }
  .hotspot b {
    font-size:12px
  }
  .hotspot small {
    font-size:12px
  }
  .speech {
    left:54%;
    top:22%;
    width:140px;
    min-height:80px;
    border-radius:22px;
    opacity:0;
    pointer-events:none
  }
  .speech.is-reacting,.speech:focus-within {
    opacity:1;
    pointer-events:auto
  }
  .scene-hint {
    display:none
  }
  .speech p {
    font-size:12px
  }
  .speech a {
    padding:4px 0
  }
  .nel-label {
    font-size:12px;
    padding:6px 10px
  }
}
@media(max-width:760px) {
  html {
    scroll-padding-top:16px
  }
  .site-header {
    min-height:100px;
    padding:18px 20px;
    gap:10px
  }
  .brand {
    min-width:0;
    flex:1
  }
  .brand>span {
    font-size:27px
  }
  .brand small {
    font-size:12px;
    padding-left:9px
  }
  .moon {
    font-size:29px;
    margin-left:4px
  }
  .primary-nav,.header-note {
    display:none
  }
  .site-header>.menu-button {
    width:44px;
    height:44px
  }
  .scene-toolbar {
    padding:8px 16px 12px;
    align-items:flex-start;
    flex-direction:column;
    gap:8px
  }
  .scene-toolbar p {
    font-size:12px;
    letter-spacing:.04em
  }
  .desktop-copy {
    display:none
  }
  .mobile-copy {
    display:inline
  }
  .settings {
    width:100%;
    gap:8px
  }
  .time-switch {
    margin-right:auto
  }
  .time-switch button {
    padding:0 14px
  }
  .sound,.motion {
    padding:0 11px
  }
  .scene {
    aspect-ratio:auto;
    height:calc(max(100vw, 600px)*1.18);
    container-type:inline-size;
    overflow:clip
  }
  .world {
    width:max(100%,600px);
    aspect-ratio:2/3;
    left:50%;
    top:calc(max(100vw, 600px)*-.17);
    margin-left:calc(max(100vw, 600px)*-.5);
    transform:translate3d(var(--px),var(--py),0)
  }
  .hotspot {
    left:var(--mx);
    top:var(--my);
    width:var(--mw);
    height:var(--mh);
    min-width:0;
    min-height:52px;
    gap:7px;
    border-radius:12px;
    z-index:5;
    padding:6px 10px
  }
  .hotspot b {
    font-size:14px
  }
  .hotspot small {
    font-size:12px
  }
  .hotspot .symbol {
    font-size:21px
  }
  .hotspot-story {
    left:calc(50% + min(50cqw,300px) - 155px);
    width:150px
  }
  .hotspot-gallery,.hotspot-about {
    left:calc(50% - min(50cqw,300px) + 8px);
    width:148px
  }
  .hotspot-character,.hotspot-goods {
    left:calc(50% + min(50cqw,300px) - 156px);
    width:148px
  }
  .hotspot-note {
    width:94px;
    min-height:44px
  }
  .hotspot-news {
    width:125px
  }
  .nel-target {
    left:46%;
    top:26%;
    width:21%;
    height:12%
  }
  .nel-label {
    bottom:5px;
    left:18%;
    font-size:13px
  }
  .speech {
    left:52%;
    top:23.3%;
    min-width:120px;
    width:22%;
    min-height:80px;
    border-radius:22px;
    opacity:0;
    pointer-events:none;
    transition:opacity .2s
  }
  .speech.is-reacting,.speech:focus-within {
    opacity:1;
    pointer-events:auto
  }
  .floor-label {
    display:flex;
    position:absolute;
    left:calc(50% - min(50cqw,300px) + 14px);
    gap:10px;
    align-items:center;
    background:#30283eeb;
    color:#f6e9d8;
    font:12px Georgia,serif;
    border:1px solid #eadcc653;
    border-radius:18px;
    padding:8px 12px;
    z-index:6
  }
  .floor-label span {
    font:12px "Hiragino Kaku Gothic ProN",sans-serif
  }
  .bedroom {
    top:15%
  }
  .living {
    top:40.1%
  }
  .workshop {
    top:61.7%
  }
  .daylight {
    background:linear-gradient(125deg,#ffe9ba40,transparent 65%)
  }
  .lamplight {
    background:radial-gradient(ellipse at 52% 37%,#ffbe5d25,transparent 24%),radial-gradient(ellipse at 42% 65%,#ffd08325,transparent 20%)
  }
  .scene-hint {
    bottom:8px;
    font-size:12px
  }
  .site-footer {
    padding:26px 20px 110px
  }
  .site-footer>p {
    font-size:15px;
    letter-spacing:.1em
  }
  .site-footer>div {
    gap:4px 22px
  }
  .mobile-nav {
    display:grid;
    grid-template-columns:repeat(4,1fr);
    position:fixed;
    bottom:0;
    left:0;
    right:0;
    z-index:20;
    padding:5px 8px calc(8px + env(safe-area-inset-bottom));
    background:#30283ef5;
    color:#f6edde;
    border-top:1px solid #efdfc750;
    backdrop-filter:blur(16px)
  }
  .mobile-nav a,.mobile-nav button {
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    gap:4px;
    min-height:53px;
    width:auto;
    height:auto;
    border:0;
    border-radius:8px;
    background:transparent;
    font:12px Georgia,serif
  }
  .mobile-nav span {
    font:23px Georgia,serif;
    line-height:1
  }
  .mobile-nav a[aria-current] {
    background:#f6edde1d
  }
  .toast {
    bottom:90px
  }
  dialog {
    width:100%;
    max-width:100%;
    height:92dvh;
    inset:auto 0 0;
    border:0;
    border-radius:22px 22px 0 0;
    padding:16px 24px calc(24px + env(safe-area-inset-bottom));
  }
  .dialog-bar {
    padding-bottom:12px
  }
  dialog h2 {
    font-size:27px
  }
  .close-dialog {
    width:44px;
    height:44px
  }
  .gallery-grid {
    grid-template-columns:1fr
  }
}
@media(prefers-reduced-motion:reduce) {
  html {
    scroll-behavior:auto
  }
  *,*::before,*::after {
    animation:none!important;
    transition:none!important
  }
  .world {
    transform:none!important;
    will-change:auto
  }
  .lamplight,.foreground-shade,.furniture-layer,.nel-picture {
    transform:none!important
  }
}
@media(max-width:760px) {
  .hotspot-note {
    left:calc(50% + min(50cqw,300px) - 106px)
  }
  .furniture-layer {
    left:var(--mx);
    top:var(--my);
    width:var(--mw)
  }
  .scene-hint {
    bottom:6px
  }
  .speech {
    z-index:8
  }
}
@media(max-width:760px) {
  .scene-hint {
    display:none
  }
}
@media(max-width:760px) {
  .nel-target {
    left:44%;
    top:29%;
    width:10%;
    height:10%;
    min-width:60px
  }
  .nel-label {
    left:-7px;
    bottom:5px
  }
  .speech {
    top:16%
  }
}
@media(max-width:760px) {
  .nel-target {
    left:calc(50% - 36px);
    top:33%;
    width:72px;
    height:7%;
    min-height:60px
  }
  .nel-label {
    left:0;
    bottom:3px
  }
}
@media(max-width:360px) {
  .hotspot-gallery,.hotspot-about {
    width:130px
  }
  .hotspot-character,.hotspot-goods {
    left:calc(50% + min(50cqw,300px) - 138px);
    width:130px
  }
  .hotspot .symbol {
    font-size:18px
  }
  .hotspot-character .symbol {
    display:none
  }
}
[data-theme=day] a:focus-visible,[data-theme=day] button:focus-visible {
  outline-color:#705080
}

/* All artwork uses the same uncropped canvas and origin. */
#art-stack,.house-layer,#hotspots,#furniture-layers {
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
}
#art-stack {
  opacity:0;
  pointer-events:none;
  transition:opacity .25s;
}
.art-ready #art-stack { opacity:1 }
.house-layer,#hotspots,#furniture-layers {
  transform:translate3d(calc(var(--px)*var(--house-depth)),calc(var(--py)*var(--house-depth)),0);
}
.haru-picture {
  transform:translate3d(calc(var(--px)*var(--haru-depth)),calc(var(--py)*var(--haru-depth)),0);
}
.desk-picture {
  transform:translate3d(calc(var(--px)*var(--desk-depth)),calc(var(--py)*var(--desk-depth)),0);
}
#hotspots { z-index:3; pointer-events:none }
#hotspots a { pointer-events:auto }
#furniture-layers { pointer-events:none }
.nel-target {
  transform:translate3d(calc(var(--px)*(var(--house-depth) + var(--nel-depth))),calc(var(--py)*(var(--house-depth) + var(--nel-depth))),0);
}
[data-artwork=flat] .art-layer,[data-artwork=flat] .house-layer { display:none }
[data-artwork=flat] #hotspots,[data-artwork=flat] #furniture-layers,[data-artwork=flat] .nel-target { transform:none }
[data-motion=off] .art-layer,[data-motion=off] .house-layer,[data-motion=off] #hotspots,[data-motion=off] #furniture-layers,[data-motion=off] .nel-target { transform:none }
@media(max-width:760px) {
  /* Haru touches the roof: keep her hands and the house moving together. */
  .haru-picture { transform:translate3d(calc(var(--px)*var(--house-depth)),calc(var(--py)*var(--house-depth)),0) }
}
@media(prefers-reduced-motion:reduce) {
  .art-layer,.house-layer,#hotspots,#furniture-layers,.nel-target { transform:none!important }
}
