:root { color-scheme: light; --ink: #173f36; --muted: #6b7770; --paper: #f4f3e9; --line: #dce2d5; }
* { box-sizing: border-box; }
html, body { width: 100%; height: 100%; margin: 0; overflow: hidden; }
body { background: #152e27; color: var(--ink); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", "PingFang SC", sans-serif; -webkit-font-smoothing: antialiased; }
button { font: inherit; cursor: pointer; }
button:focus-visible, summary:focus-visible { outline: 3px solid #bc8b44; outline-offset: 4px; }
button:disabled { cursor: wait; opacity: .58; }
[hidden] { display: none !important; }
#app { position: relative; width: 100%; height: 100%; height: 100dvh; }
#unity-canvas { display: block; width: 100%; height: 100%; background: #152e27; touch-action: none; outline: none; }
.overlay { position: absolute; inset: 0; z-index: 10; overflow: auto; background: var(--paper); background-image: radial-gradient(ellipse at 15% 18%, #e2eadb 0, transparent 55%); }
.welcome-layout { width: min(1120px, 100%); min-height: calc(100% - 64px); margin: auto; padding: clamp(32px, 6vh, 78px) 40px 30px; display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; gap: clamp(40px, 7vw, 112px); }
.brand { display: flex; align-items: center; gap: 13px; font-size: 19px; font-weight: 650; letter-spacing: 2px; margin-bottom: clamp(35px, 7vh, 74px); }
.brand small { display: block; margin-top: 4px; font-size: 9px; font-weight: 500; letter-spacing: 3px; }
.brand-mark { width: 46px; height: 46px; display: grid; place-items: center; background: var(--ink); border-radius: 13px 13px 13px 3px; color: #f4f3e9; font-family: Georgia, serif; font-size: 31px; font-weight: 400; letter-spacing: -4px; padding-right: 4px; }
.eyebrow { font-size: 11px; letter-spacing: 3px; font-weight: 600; color: #6c8376; margin: 0 0 20px; }
h1 { font-size: clamp(30px, 3.5vw, 47px); font-weight: 560; letter-spacing: 1px; line-height: 1.48; margin: 0 0 23px; }
h2 { font-size: 23px; font-weight: 600; margin: 12px 0 11px; }
.intro-copy { font-size: 14px; line-height: 1.9; color: var(--muted); margin: 0; }
.entry-card { border: 1px solid rgba(36, 68, 48, .12); background: #fcfcf6; box-shadow: 0 24px 64px rgba(28, 65, 42, .055); border-radius: 22px; padding: 36px; }
.card-number { font-size: 10px; font-weight: 650; letter-spacing: 2px; color: #889880; }
.muted { color: var(--muted); font-size: 13px; line-height: 1.8; margin: 0; }
.controls { display: grid; gap: 15px; margin: 30px 0; padding: 23px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.controls > div { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 12px; color: #5b6d60; }
.key-group { display: inline-flex; gap: 5px; min-width: 115px; }
kbd { display: inline-grid; place-items: center; min-width: 23px; height: 26px; padding: 0 6px; font: inherit; font-size: 11px; color: var(--ink); background: #f1f4ec; border: 1px solid #dbe1d3; border-bottom-width: 2px; border-radius: 5px; }
.control-symbol { padding-left: 5px; letter-spacing: 2px; color: var(--ink); }
.loading-label { display: flex; justify-content: space-between; gap: 15px; font-size: 11px; }
progress { appearance: none; border: 0; width: 100%; height: 5px; margin: 12px 0 0; overflow: hidden; border-radius: 6px; background: #e6ebe0; color: #577b61; }
progress::-webkit-progress-bar { background: #e6ebe0; border-radius: 6px; }
progress::-webkit-progress-value { background: #577b61; border-radius: 6px; transition: width .15s ease; }
progress::-moz-progress-bar { background: #577b61; border-radius: 6px; }
.loading-note, .entry-note { font-size: 10px; line-height: 1.7; color: #8a9286; margin: 9px 0 0; }
.primary-button, .secondary-button { width: 100%; min-height: 48px; border-radius: 10px; font-size: 14px; letter-spacing: 1px; transition: background .15s ease, transform .15s ease; }
.primary-button { background: var(--ink); color: #fff; border: 1px solid var(--ink); margin-top: 24px; }
.primary-button:hover:not(:disabled) { background: #275548; transform: translateY(-1px); }
.secondary-button { background: transparent; color: var(--ink); border: 1px solid #cad5c5; margin-top: 12px; }
.secondary-button:hover:not(:disabled) { background: #e8eddf; }
.entry-note { text-align: center; }
footer { width: 100%; height: 64px; display: grid; place-items: center; color: #8d9b89; font-size: 10px; letter-spacing: 4px; }
.room-illustration { position: relative; width: 255px; height: 110px; margin-top: 38px; opacity: .58; }
.window-frame { position: absolute; left: 130px; top: 0; width: 65px; height: 72px; border: 1px solid #8da88d; border-radius: 26px 26px 0 0; background: linear-gradient(90deg, transparent 49%, #a1b59b 49%, #a1b59b 51%, transparent 51%); }
.window-frame::after { content: ""; position: absolute; left: 0; right: 0; top: 37px; height: 1px; background: #a1b59b; }
.sofa { position: absolute; width: 123px; height: 36px; left: 15px; bottom: 13px; background: #bfceab; border: 1px solid #91aa87; border-radius: 9px 9px 3px 3px; }
.sofa::before { content: ""; position: absolute; left: 9px; right: 9px; height: 28px; top: -18px; border: 1px solid #91aa87; border-radius: 10px 10px 2px 2px; background: #d0dbbd; }
.sofa::after { content: ""; position: absolute; bottom: -7px; left: 10px; right: 10px; height: 6px; border-left: 3px solid #8da18a; border-right: 3px solid #8da18a; }
.floor-line { position: absolute; bottom: 5px; left: 0; right: 0; height: 1px; background: #9eb392; }
.plant { position: absolute; right: 7px; bottom: 6px; width: 20px; height: 25px; border: 1px solid #91aa87; border-radius: 0 0 5px 5px; background: #dde4ce; }
.plant::before { content: ""; position: absolute; width: 28px; height: 34px; border-radius: 0 80%; left: -10px; bottom: 25px; background: #a2bd92; transform: rotate(-10deg); }
.plant::after { content: ""; position: absolute; width: 17px; height: 40px; border-radius: 90% 0; right: -4px; bottom: 25px; background: #8faa83; transform: rotate(10deg); }
.centered { display: grid; place-items: center; padding: 28px; }
.dialog-card { width: min(430px, 100%); padding: 37px; border-radius: 20px; border: 1px solid var(--line); background: #fcfcf6; }
.dialog-title { font-size: 30px; margin-bottom: 16px; }
.dialog-card details { margin-top: 25px; color: #71806f; font-size: 11px; }
summary { cursor: pointer; }
pre { max-height: 140px; overflow: auto; white-space: pre-wrap; overflow-wrap: anywhere; font: 10px/1.6 monospace; }
.canvas-button { position: absolute; right: max(16px, env(safe-area-inset-right)); top: max(16px, env(safe-area-inset-top)); z-index: 3; border: 1px solid #ffffff40; background: #193d36cc; backdrop-filter: blur(8px); color: white; border-radius: 8px; padding: 10px 14px; font-size: 12px; }
#notice { position: absolute; bottom: max(26px, env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%); z-index: 30; background: #193d36e8; color: #fff; border-radius: 8px; padding: 12px 20px; font-size: 12px; max-width: 90%; text-align: center; pointer-events: none; }
.no-script { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; background: var(--paper); padding: 24px; text-align: center; }
@media (max-width: 760px) { .welcome-layout { grid-template-columns: 1fr; gap: 27px; padding: 30px 24px; max-width: 490px; } .brand { margin-bottom: 29px; } h1 { font-size: 31px; } .intro-copy { font-size: 13px; } .room-illustration { display: none; } .entry-card { padding: 26px; } .introduction .eyebrow { margin-bottom: 13px; } .controls { margin: 22px 0; } footer { height: 48px; } .dialog-card { padding: 28px; } }
@media (max-height: 680px) and (min-width: 761px) { .welcome-layout { padding-top: 26px; padding-bottom: 18px; min-height: calc(100% - 35px); } .brand { margin-bottom: 24px; } .room-illustration { margin-top: 20px; height: 95px; } .entry-card { padding: 26px; } .controls { margin: 21px 0; padding: 17px 0; gap: 12px; } footer { height: 35px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; } }
