@font-face{font-family:"DM Sans";src:url("/fonts/dm-sans-regular.woff2") format("woff2");font-style:normal;font-weight:400;font-display:swap}
@font-face{font-family:"DM Sans";src:url("/fonts/dm-sans-semibold.woff2") format("woff2");font-style:normal;font-weight:550 800;font-display:swap}
@font-face{font-family:"Instrument Serif";src:url("/fonts/instrument-serif.woff2") format("woff2");font-style:normal;font-weight:400 650;font-display:swap}
:root {
  --ink:#202e25;
  --muted:#5e6b60;
  --line:#d9ded4;
  --paper:#fffefa;
  --olive:#3c5741;
  --sans:"DM Sans",system-ui,sans-serif;
  --serif:"Instrument Serif",Georgia,serif;
  --edge:clamp(16px,3vw,48px);
  --hud-top:max(var(--edge),calc(env(safe-area-inset-top,0px) + 10px));
  --hud-right:max(var(--edge),calc(env(safe-area-inset-right,0px) + 10px));
  --hud-bottom:max(var(--edge),calc(env(safe-area-inset-bottom,0px) + 12px));
  --hud-left:max(var(--edge),calc(env(safe-area-inset-left,0px) + 10px));
  font-family:var(--sans);
  color:var(--ink);
  background:#f7f8f3;
  color-scheme:light;
}
* {box-sizing:border-box}
body {margin:0}
button,input,select,textarea {font:inherit}
button,a,input {touch-action:manipulation}
button {cursor:pointer;color:inherit}
a {color:inherit}
h1,h2,h3,p {margin:0}
svg {width:20px;height:20px;display:block;flex:none}
i[data-icon] {display:inline-flex;align-items:center;justify-content:center;font-style:normal}
:where(button,a,input,summary):focus-visible {outline:3px solid #587b40;outline-offset:3px}
[hidden] {display:none!important}
#main {min-width:0}
#main:focus {outline:none}
.skip {position:fixed;left:var(--hud-left);top:-80px;z-index:30;background:var(--paper);padding:10px 15px;border-radius:8px}
.skip:focus {top:var(--hud-top)}
body[data-view="home"] {overflow:hidden;background:#d9deca}
body:not([data-view="home"]) #main {padding:calc(var(--hud-top) + 50px) 0 calc(var(--hud-bottom) + 74px)}
body[data-view="jarvis"] #main {padding-bottom:var(--hud-bottom)}

.home-page {
  isolation:isolate;
  position:relative;
  width:100%;
  height:100vh;
  height:100dvh;
  overflow:hidden;
  background:
    radial-gradient(ellipse at 42% 31%,#f8f7e9 0%,#f8f7e900 53%),
    radial-gradient(ellipse at 94% 95%,#aebf9a 0%,#adb99500 56%),
    radial-gradient(ellipse at 2% 73%,#c2ceaf 0%,#bcc5ac00 45%),
    #e2e6d3;
}
.home-page::before,.home-page::after {
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
}
.home-page::before {
  background:repeating-radial-gradient(ellipse at -26% 110%,transparent 0 25px,#657b551b 26px,transparent 27px 46px);
  mask-image:radial-gradient(ellipse 52% 72% at 0% 95%,black,transparent 86%);
}
.home-page::after {
  background:repeating-radial-gradient(ellipse at 114% -18%,transparent 0 30px,#87917826 31px,transparent 32px 48px);
  mask-image:radial-gradient(ellipse 49% 62% at 100% 0%,black,transparent 91%);
}
#model {position:absolute;inset:0;z-index:1}
.home-name, .room-hint {
  position:absolute;
  z-index:2;
  left:var(--hud-left);
  display:flex;
  align-items:center;
  pointer-events:none;
}
.home-name {top:var(--hud-top);gap:12px}
.home-name img {width:43px;height:43px;border-radius:13px;box-shadow:0 2px 6px #485d361a}
.home-name h1 {font:400 clamp(29px,3vw,42px)/1 var(--serif);letter-spacing:-.035em;color:#233c2c}
.room-hint {bottom:var(--hud-bottom);min-height:55px;gap:8px;font-size:.86rem;color:#3f5340}
.room-hint svg {width:17px;height:17px;stroke-width:1.55}

.house-options,.home-return {position:absolute;top:var(--hud-top);z-index:6}
.house-options {right:var(--hud-right)}
.house-options summary,.home-return {
  display:flex;
  align-items:center;
  justify-content:center;
  min-height:44px;
  min-width:44px;
  border:1px solid #63795d52;
  border-radius:50px;
  background:#f9faefeb;
  color:#2d4636;
  box-shadow:0 3px 12px #31432610;
  text-decoration:none;
  -webkit-tap-highlight-color:transparent;
}
.house-options summary {list-style:none;cursor:pointer}
.house-options summary::-webkit-details-marker {display:none}
.house-options[open] summary,.house-options summary:hover,.home-return:hover {background:#fffef6;border-color:#78906c}
.home-return {left:var(--hud-left);gap:8px;padding:0 16px;font-weight:600;font-size:.9rem}
.home-return svg {width:17px;height:17px}
.options-panel {
  position:absolute;
  top:calc(100% + 8px);
  right:0;
  display:grid;
  min-width:205px;
  padding:6px;
  border:1px solid #c6d0bb;
  border-radius:16px;
  background:var(--paper);
  box-shadow:0 12px 35px #263e2b26;
}
.options-panel button {display:flex;align-items:center;gap:11px;width:100%;padding:10px 12px;border:0;border-radius:10px;background:transparent;text-align:left;min-height:44px;font-size:.92rem}
.options-panel button:hover {background:#eef2e4}
.options-panel small {display:block;margin-top:3px;color:var(--muted);font-size:.77rem}
.options-panel svg {width:18px;height:18px}

.jarvis-launcher {
  position:fixed;
  z-index:4;
  right:var(--hud-right);
  bottom:var(--hud-bottom);
  display:flex;
  align-items:center;
  gap:9px;
  min-height:53px;
  padding:4px 19px 4px 5px;
  border:1px solid #486750;
  border-radius:64px;
  background:linear-gradient(125deg,#375940,#1e392c 85%);
  box-shadow:0 7px 21px #20352235, inset 0 1px 0 #f0ffe526;
  color:#f8faeb;
  text-decoration:none;
  font:500 1.48rem/1 var(--serif);
  transition:transform .18s,box-shadow .18s;
}
.launcher-orb {position:relative;display:grid;place-items:center;overflow:hidden;border:1px solid #acc79760;background:#284735;border-radius:50%;width:43px;height:43px}
.launcher-orb canvas {width:66px;height:66px;max-width:none;position:absolute;left:50%;top:50%;transform:translate(-50%,-50%)}
.jarvis-launcher i {color:#cedcbc;margin-left:2px}
.jarvis-launcher svg {width:14px;height:14px}
@media(hover:hover) {.jarvis-launcher:hover {transform:translateY(-2px);box-shadow:0 10px 25px #20352245}}
.jarvis-launcher:active {transform:translateY(1px)}
.assistant-page {padding:clamp(12px,3vw,44px)}
#toast {position:fixed;z-index:50;bottom:calc(var(--hud-bottom) + 65px);left:50%;transform:translate(-50%,10px);background:#243b30;color:white;font-size:.9rem;border-radius:10px;box-shadow:0 4px 20px #0003;padding:12px 18px;max-width:90vw;pointer-events:none;opacity:0;transition:opacity .2s,transform .2s}
#toast.show {opacity:1;transform:translate(-50%,0)}
@media(max-width:600px) {
  .home-name {gap:9px}
  .home-name img {width:35px;height:35px;border-radius:10px}
  .room-hint {font-size:.76rem;gap:5px;max-width:calc(100% - 154px);min-height:49px;line-height:1.3}
  .room-hint svg {width:15px;height:15px}
  .jarvis-launcher {padding:4px 14px 4px 5px;gap:7px;min-height:49px;font-size:1.35rem}
  .launcher-orb {width:39px;height:39px}
  .launcher-orb canvas {width:60px;height:60px}
  .assistant-page {padding:12px}
}
@media(max-height:450px) and (orientation:landscape) {
  :root {--edge:10px}
  .home-name h1 {font-size:26px}
  .home-name img {width:32px;height:32px}
  .room-hint {min-height:44px}
}
@media(prefers-reduced-motion:reduce) {*,*::before,*::after {scroll-behavior:auto!important;transition:none!important}}

body[data-view="home"] .home-page{position:fixed;inset:0;overscroll-behavior:none}
