@font-face {
  font-family: "Balsamiq Sans";
  src: url("./assets/fonts/balsamiq-sans-regular.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Balsamiq Sans";
  src: url("./assets/fonts/balsamiq-sans-bold.woff2") format("woff2");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}
:root {
  color-scheme: light;
  --paper: #fbefd8;
  --ink: #65412e;
  --muted: #7b5a44;
  --line: #d9b993;
  --accent: #934b30;
  --cream: #fff7e6;
  --green: #66794d;
  font-family: "Balsamiq Sans", "Trebuchet MS", sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body { margin: 0; background-image: radial-gradient(#b58b570d .65px, transparent .65px); background-size: 5px 5px; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
a, button { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
button:disabled { cursor: default; }
[hidden] { display: none !important; }
a:focus-visible, button:focus-visible, [tabindex="-1"]:focus-visible { outline: 3px solid var(--accent); outline-offset: 5px; }
p { margin: 0; font-size: 1rem; line-height: 1.7; }
h1, h2, p { overflow-wrap: break-word; }
h1, h2 { margin: 0; font-weight: 700; letter-spacing: -.025em; }
.wrap { width: min(1100px, calc(100% - 64px)); margin-inline: auto; }
.skip-link { position: fixed; top: -100px; left: 16px; padding: 14px 20px; z-index: 10; border-radius: 12px; background: var(--ink); color: var(--cream); }
.skip-link:focus { top: 16px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }

/* A small, character-led masthead, using Moru's own original artwork. */
.site-header { display: flex; justify-content: center; align-items: center; min-height: 94px; padding-block: 13px; }
.brand { display: flex; align-items: center; justify-content: center; gap: 4px; font-size: 3.25rem; font-weight: 700; line-height: 1; letter-spacing: -.055em; color: var(--accent); }
.brand img { width: 72px; height: 72px; object-fit: contain; flex-shrink: 0; }
.brand-dot { display: none; }

/* The ground is the page's main surface, not a demo inside a control panel. */
.first-meeting { width: min(920px, calc(100% - 64px)); padding-block: 2px 58px; }
.welcome { padding-bottom: 19px; text-align: center; }
.welcome h1 { font-size: 2.15rem; line-height: 1.2; color: var(--accent); }
.welcome h1 br { display: none; }
.encounter { --scene-height: clamp(300px, calc(100svh - 420px), 420px); position: relative; min-width: 0; max-width: calc(var(--scene-height) * 2.15); margin-inline: auto; }
.room {
  position: relative;
  height: var(--scene-height);
  overflow: hidden;
  isolation: isolate;
  background: #f8e3b8;
  border: 2px solid #a97849;
  border-radius: 42px 47px 40px 45px / 36px 40px 38px 42px;
  box-shadow: 0 7px 0 #d7b38555;
}
#moru-canvas { display: block; position: absolute; width: calc(var(--scene-height) * 2.608696); height: calc(var(--scene-height) * 1.173913); left: calc(50% - var(--scene-height) * 1.163043); top: calc(var(--scene-height) * -.108696); max-width: none; opacity: 0; transition: opacity .3s; }
.room[data-ready="true"] #moru-canvas { opacity: 1; }
.room-fallback { position: absolute; inset: 0; z-index: 5; display: flex; justify-content: center; align-items: center; flex-direction: column; gap: 10px; background: var(--cream); padding: 20px; text-align: center; }
.quiet-button { min-height: 36px; padding: 6px 0; border: 0; background: transparent; color: var(--muted); font-size: .875rem; }
.quiet-button:hover { color: var(--accent); }
.quiet-button:disabled { opacity: .6; }
.motion-toggle { position: absolute; top: 12px; right: 16px; z-index: 4; min-height: 38px; padding: 7px 11px; border-radius: 999px; background: #fff8e8cc; }
.room-note { margin: 13px auto 0; color: var(--muted); font-size: .8125rem; line-height: 1.45; text-align: center; }
.greet-target { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; border: 0; padding: 0; background: transparent; touch-action: pan-y pinch-zoom; user-select: none; -webkit-touch-callout: none; }
.greet-target:focus-visible { outline-offset: -7px; border-radius: inherit; }
.greet-marker { position: absolute; z-index: 3; width: 25px; height: 25px; border: 2px solid var(--accent); border-radius: 50%; transform: translate(-50%,-50%); pointer-events: none; opacity: .65; }
.room[data-holding="true"] .greet-marker { border-style: dashed; animation: greeting-hold .45s ease-out; }
@keyframes greeting-hold { from { opacity: .3; scale: .6; } to { opacity: .65; scale: 1; } }
.prop-target { position: absolute; z-index: 2; min-width: 44px; min-height: 44px; padding: 0; border: 2px dashed transparent; border-radius: 45%; background: transparent; cursor: pointer; }
.room[data-ready="true"] .prop-target:enabled { animation: prop-invitation 1.65s ease-in-out .65s 2; }
.prop-target:enabled:hover { border-color: #85532ca8; background: #fff8e82b; }
.prop-target:focus-visible { outline-offset: -2px; }
@keyframes prop-invitation {
  0%, 100% { border-color: transparent; box-shadow: 0 0 0 0 #fff8e800; }
  48% { border-color: #85532c8c; box-shadow: 0 0 0 8px #fff8e84d; }
}
.noscript-note { margin-top: 16px; padding: 16px; border: 1px solid var(--line); }

/* A short product preview follows the interactive first encounter. */
.about { width: min(820px, calc(100% - 64px)); display: grid; grid-template-columns: 1fr 1.18fr; align-items: center; gap: 54px; padding-block: 54px 66px; border-top: 2px dashed var(--line); }
.about-preview { width: min(100%, 300px); min-width: 0; margin: 0 auto; text-align: center; }
.moru-video { display: block; width: 100%; height: auto; aspect-ratio: 9 / 16; object-fit: contain; background: #f8e3b8; border: 2px solid #a97849; border-radius: 22px; box-shadow: 0 5px 0 #d7b38555; }
.moru-video:focus-visible { outline: 3px solid var(--accent); outline-offset: 5px; }
.about-preview figcaption { margin-top: 13px; color: var(--muted); font-size: .875rem; line-height: 1.5; }
/* Frame the original sprite's transparent padding without changing the artwork. */
.about-moru { width: min(150px, 100%); aspect-ratio: 23 / 11; overflow: hidden; margin-bottom: 18px; }
.about-moru img { display: block; width: 139.130435%; max-width: none; height: auto; transform: translate(-14.0625%, -51.5625%); }
.about h2 { color: var(--accent); font-size: 2.25rem; line-height: 1.2; }
.about-copy > p { margin-top: 20px; font-size: 1.0625rem; line-height: 1.8; }
.small-note { color: var(--muted); font-size: .875rem; line-height: 1.7; }

/* The product invitation follows the same open paper surface. */
.stay { width: min(820px, calc(100% - 64px)); padding: 58px 28px 54px; border-top: 2px dashed var(--line); text-align: center; }
.stay h2 { margin: 0 0 10px; color: var(--accent); font-size: 2.25rem; line-height: 1.25; }
.stay > div > p { font-size: 1.0625rem; }
.stay .small-note { margin-top: 15px; }
.stay-actions { width: min(335px, 100%); margin: 26px auto 0; text-align: center; }
.steam-button { display: flex; justify-content: center; align-items: center; gap: 18px; width: 100%; min-height: 56px; padding: 15px 20px; border: 2px solid #713e2b; border-radius: 22px 19px 23px 20px; background: var(--accent); color: #fff9e9; font-size: 1.0625rem; font-weight: 700; box-shadow: 0 4px 0 #713e2b; }
.steam-button[href]:hover { background: #7d3e28; }
.button-label { padding-left: 16px; border-left: 1px solid #e9bf92; font-size: .8125rem; font-weight: 400; }
.news-link { display: inline-block; margin-top: 17px; padding: 9px 3px; font-size: .9375rem; text-decoration: underline; text-underline-offset: 5px; }
.news-pending { margin-top: 19px; color: var(--muted); font-size: .875rem; }
.site-footer { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px 22px; padding-block: 30px; }
.footer-brand { color: var(--accent); font-size: 1.5rem; font-weight: 700; letter-spacing: -.04em; }
.site-footer > span { color: var(--muted); font-size: .8125rem; }

@media (min-width: 901px) and (max-height: 820px) {
  .site-header { min-height: 82px; padding-block: 9px; }
  .brand { font-size: 2.75rem; }
  .brand img { width: 60px; height: 60px; }
  .welcome { padding-bottom: 16px; }
  .welcome h1 { font-size: 1.875rem; }
  .encounter { --scene-height: clamp(280px, calc(100svh - 360px), 375px); }
}
@media (max-width: 900px) {
  .brand { font-size: 2.6rem; }
  .brand img { width: 64px; height: 64px; }
  .first-meeting { padding-top: 10px; }
  .welcome h1 { font-size: 1.875rem; }
  .encounter { --scene-height: 370px; }
  .about { gap: 28px; }
  .about h2 { font-size: 1.875rem; }
}
@media (max-width: 600px) {
  .wrap, .first-meeting, .about, .stay { width: calc(100% - 32px); }
  .site-header { min-height: 80px; padding-block: 12px; }
  .brand { gap: 0; font-size: 2rem; }
  .brand img { width: 46px; height: 46px; }
  .first-meeting { padding-block: 8px 40px; }
  .welcome { padding: 0 6px 18px; }
  .welcome h1 { margin-top: 10px; font-size: 1.65rem; line-height: 1.25; }
  .welcome h1 br { display: block; }
  .quiet-button { font-size: .8125rem; }
  .encounter { --scene-height: calc((100vw - 32px) * .655); }
  .room { border-radius: 27px 31px 26px 30px; }
  .room-note { max-width: 310px; margin-top: 11px; font-size: .75rem; }
  .motion-toggle { top: 7px; right: 9px; min-height: 34px; padding: 5px 8px; }
  .about { display: block; padding: 36px 12px 42px; }
  .about-preview { margin-bottom: 28px; }
  .about-copy { max-width: 400px; margin-inline: auto; text-align: center; }
  .about-moru { margin-inline: auto; }
  .about h2 { font-size: 1.875rem; }
  .about-copy > p { font-size: 1rem; line-height: 1.8; }
  .stay { padding: 40px 20px 38px; }
  .stay h2 { font-size: 1.875rem; }
  .stay > div > p { font-size: 1rem; }
  .stay-actions { margin-top: 21px; }
  .steam-button { padding-inline: 13px; gap: 13px; font-size: 1rem; }
  .button-label { padding-left: 12px; }
  .site-footer { gap: 7px 14px; padding-block: 25px; }
}
@media (max-width: 360px) {
  .brand { font-size: 1.7rem; }
  .brand img { width: 36px; height: 36px; }
  .welcome h1 { font-size: 1.5rem; }
  .room-note { font-size: .7rem; }
}
@media (hover: none) {
  .prop-target:enabled { border-color: #85532c45; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
