:root {
--bg: #101113;
--glass: rgba(24, 24, 27, 0.66);
--glass-strong: rgba(24, 24, 27, 0.86);
--line: rgba(255, 244, 226, 0.1);
--line-strong: rgba(255, 244, 226, 0.2);
--ink: #f4efe7;
--ink-2: #c2b8a8;
--ink-3: #94897a;
--gold: #c8a97e;
--gold-hi: #e3c79d;
--gold-ink: #1b1611;
--fill: rgba(255, 244, 226, 0.06);
--fill-hi: rgba(255, 244, 226, 0.12);
--r-panel: 16px;
--r-ctl: 10px;
--ease: cubic-bezier(0.16, 1, 0.3, 1);
--display: 'Prompt', 'Anuphan', sans-serif;
--ui: 'Anuphan', 'Prompt', sans-serif;
--pad: 16px;
--safe-b: env(safe-area-inset-bottom, 0px);
}
* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body {
background: var(--bg); color: var(--ink); font-family: var(--ui); font-size: 14px; line-height: 1.45;
overflow: hidden; -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent;
font-variant-numeric: tabular-nums;
}
::selection { background: var(--gold); color: var(--gold-ink); }
button, select, input { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; }
:focus-visible { outline: 2px solid var(--gold-hi); outline-offset: 2px; border-radius: 6px; }
svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; flex: none; }
#stage { position: fixed; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; }
#labels { position: fixed; inset: 0; pointer-events: none; overflow: hidden; }
.lab {
position: absolute; left: 0; top: 0; transform: translate(-50%, -100%); pointer-events: auto;
display: flex; flex-direction: column; align-items: center; padding-bottom: 26px; will-change: transform; transition: opacity 0.25s;
}
.lab[hidden] { display: none; }
.lab button {
display: flex; flex-direction: column; align-items: center; gap: 0; white-space: nowrap;
background: var(--glass-strong); border: 1px solid var(--line-strong); border-radius: 999px; padding: 5px 13px;
font-size: 13px; font-weight: 500; color: var(--ink); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35); transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.lab button small { font-size: 11.5px; font-weight: 400; color: var(--ink-2); display: none; }
body[data-mode="area"] .lab button, body[data-mode="struct"] .lab button { border-radius: 12px; padding: 5px 12px 6px; }
body[data-mode="area"] .lab button small, body[data-mode="struct"] .lab button small { display: block; }
.lab::after { content: ''; position: absolute; bottom: 3px; left: 50%; width: 1px; height: 23px; background: linear-gradient(var(--line-strong), rgba(255, 244, 226, 0.55)); }
.lab::before { content: ''; position: absolute; bottom: 0; left: 50%; width: 5px; height: 5px; margin-left: -2px; border-radius: 50%; background: var(--ink); box-shadow: 0 0 0 3px rgba(244, 239, 231, 0.18); }
.lab button:hover { background: #2a2824; border-color: var(--gold); }
.lab.on button { background: var(--gold); color: var(--gold-ink); border-color: var(--gold-hi); }
.lab.on button small { color: #4a3d2b; }
.top { position: fixed; left: 0; right: 0; top: 0; display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: var(--pad); pointer-events: none; z-index: 5; }
.top > * { pointer-events: auto; }
.brand { display: flex; align-items: center; gap: 14px; }
.brand img { height: 31px; width: auto; opacity: 0.95; }
.brand-text { border-left: 1px solid var(--line-strong); padding-left: 14px; }
.brand h1 { font-family: var(--display); font-weight: 300; font-size: 26px; letter-spacing: 0.14em; line-height: 1; margin: 0 0 4px; }
.brand p { margin: 0; color: var(--ink-2); font-size: 12.5px; }
.top-actions { display: flex; gap: 8px; align-items: center; }
.pill-btn {
display: none; align-items: center; gap: 7px; height: 36px; padding: 0 13px; border-radius: 999px; background: var(--glass); border: 1px solid var(--line);
backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); font-size: 13px; font-weight: 500;
}
.pill-btn.always { display: inline-flex; }
.pill-btn[aria-expanded="true"] { background: var(--gold); color: var(--gold-ink); border-color: var(--gold-hi); }
.seg { display: inline-flex; padding: 3px; gap: 2px; border-radius: 999px; background: var(--glass); border: 1px solid var(--line); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.seg button { height: 30px; padding: 0 13px; border-radius: 999px; font-size: 13px; font-weight: 500; color: var(--ink-2); white-space: nowrap; transition: background 0.2s, color 0.2s; }
.seg button:hover { color: var(--ink); }
.seg button[aria-pressed="true"] { background: var(--fill-hi); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-strong); }
.seg.lang button { padding: 0 10px; font-size: 12px; letter-spacing: 0.06em; }
.panel {
position: fixed; top: 84px; width: 286px; max-height: calc(100vh - 84px - 150px); overflow: auto; z-index: 4;
background: var(--glass); border: 1px solid var(--line); border-radius: var(--r-panel); padding: 16px;
backdrop-filter: blur(22px) saturate(1.2); -webkit-backdrop-filter: blur(22px) saturate(1.2); box-shadow: 0 18px 50px rgba(0, 0, 0, 0.38);
transition: transform 0.45s var(--ease), opacity 0.3s; scrollbar-width: thin; scrollbar-color: rgba(200, 169, 126, 0.45) transparent;
}
.panel::-webkit-scrollbar { width: 6px; } .panel::-webkit-scrollbar-thumb { background: rgba(200, 169, 126, 0.45); border-radius: 3px; }
.panel.left { left: var(--pad); } .panel.right { right: var(--pad); width: 304px; }
.panel.closed.left { transform: translateX(calc(-100% - 24px)); opacity: 0; pointer-events: none; }
.panel.closed.right { transform: translateX(calc(100% + 24px)); opacity: 0; pointer-events: none; }
.panel-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.panel h2 { font-family: var(--display); font-weight: 400; font-size: 17px; margin: 0; letter-spacing: 0.01em; }
.x { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; color: var(--ink-2); background: var(--fill); }
.x:hover { color: var(--ink); background: var(--fill-hi); } .x svg { width: 14px; height: 14px; }
.field { padding: 12px 0; border-top: 1px solid var(--line); }
.field-row { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 9px; }
.field label, .switch span { font-size: 13px; color: var(--ink-2); }
output { font-size: 12.5px; color: var(--ink); }
.ticks { display: flex; justify-content: space-between; margin-top: 6px; font-size: 11.5px; color: var(--ink-3); }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 22px; background: transparent; margin: 0; cursor: pointer; }
input[type="range"]::-webkit-slider-runnable-track { height: 3px; border-radius: 2px; background: linear-gradient(90deg, var(--gold) var(--v, 50%), rgba(255, 244, 226, 0.18) var(--v, 50%)); }
input[type="range"]::-moz-range-track { height: 3px; border-radius: 2px; background: rgba(255, 244, 226, 0.18); }
input[type="range"]::-moz-range-progress { height: 3px; border-radius: 2px; background: var(--gold); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 18px; margin-top: -7.5px; border-radius: 50%; background: var(--ink); border: 0; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5); transition: transform 0.15s; }
input[type="range"]::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: var(--ink); border: 0; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5); }
input[type="range"]:active::-webkit-slider-thumb { transform: scale(1.15); }
.switch { display: flex; justify-content: space-between; align-items: center; padding: 11px 0; border-top: 1px solid var(--line); cursor: pointer; }
.switch input { position: absolute; opacity: 0; pointer-events: none; }
.switch i { width: 38px; height: 22px; border-radius: 11px; background: rgba(255, 244, 226, 0.16); position: relative; transition: background 0.2s; flex: none; }
.switch i::after { content: ''; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: var(--ink); transition: transform 0.25s var(--ease); }
.switch input:checked + i { background: var(--gold); } .switch input:checked + i::after { transform: translateX(16px); background: var(--gold-ink); }
.switch input:focus-visible + i { outline: 2px solid var(--gold-hi); outline-offset: 2px; }
.room-row { display: flex; gap: 12px; align-items: center; }
select {
flex: 1; min-width: 0; height: 40px; padding: 0 34px 0 12px; border-radius: var(--r-ctl); border: 1px solid var(--line-strong); background-color: var(--fill); font-weight: 500; appearance: none; -webkit-appearance: none;
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c2b8a8' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; background-size: 16px;
}
select option { background: #1c1c1f; color: var(--ink); }
.count { text-align: right; line-height: 1.05; flex: none; }
.count b { font-family: var(--display); font-weight: 400; font-size: 24px; } .count > span { color: var(--ink-3); font-size: 13px; }
.count small { display: block; font-size: 10.5px; color: var(--ink-3); margin-top: 2px; }
.room-meta { margin: 10px 0 12px; font-size: 12.5px; color: var(--ink-2); min-height: 18px; }
.tabs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px; padding: 3px; border-radius: var(--r-ctl); background: var(--fill); }
.tabs button { height: 32px; border-radius: 8px; font-size: 13px; color: var(--ink-2); transition: background 0.2s, color 0.2s; }
.tabs button[aria-selected="true"] { background: var(--fill-hi); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-strong); }
.tabs button:disabled { color: rgba(194, 184, 168, 0.35); cursor: default; }
.tab-body { padding-top: 14px; }
.opts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.opts.three { grid-template-columns: repeat(3, 1fr); }
.opt {
display: flex; flex-direction: column; justify-content: space-between; align-items: flex-start; gap: 14px; min-height: 86px; padding: 11px 12px; text-align: left;
border-radius: 12px; background: var(--fill); border: 1px solid var(--line); color: var(--ink-2); transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.2s var(--ease);
}
.opt svg { width: 26px; height: 26px; stroke-width: 1.3; }
.opt span { font-size: 13px; font-weight: 500; display: flex; justify-content: space-between; width: 100%; align-items: center; }
.opt span::after { content: ''; width: 6px; height: 6px; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--ink-3); }
.opt:hover { background: var(--fill-hi); color: var(--ink); }
.opt:active { transform: scale(0.98); }
.opt[aria-pressed="true"] { background: rgba(200, 169, 126, 0.16); border-color: var(--gold); color: var(--ink); }
.opt[aria-pressed="true"] span::after { background: var(--gold-hi); box-shadow: none; }
.opt.small { min-height: 62px; gap: 8px; }
.sub-h { font-size: 12.5px; color: var(--ink-2); margin: 16px 0 8px; display: flex; justify-content: space-between; }
.sub-h:first-child { margin-top: 0; }
.stepper { display: flex; align-items: center; justify-content: space-between; margin-top: 12px; padding: 8px 10px; border-radius: 12px; background: var(--fill); border: 1px solid var(--line); }
.stepper b { font-family: var(--display); font-weight: 400; font-size: 22px; }
.stepper button { width: 34px; height: 34px; border-radius: 50%; background: var(--fill-hi); display: grid; place-items: center; }
.stepper button:hover { background: rgba(200, 169, 126, 0.3); }
.stepper button:disabled { opacity: 0.35; cursor: default; }
.empty { color: var(--ink-3); font-size: 13px; padding: 18px 0 6px; }
.dock { position: fixed; left: 50%; bottom: calc(40px + var(--safe-b)); transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 8px; z-index: 5; max-width: calc(100vw - 16px); }
.modes { display: flex; gap: 4px; padding: 5px; border-radius: 18px; background: var(--glass); border: 1px solid var(--line); backdrop-filter: blur(22px); -webkit-backdrop-filter: blur(22px); box-shadow: 0 14px 40px rgba(0, 0, 0, 0.4); }
.modes button { display: flex; flex-direction: column; align-items: center; gap: 5px; width: 92px; padding: 9px 0 8px; border-radius: 13px; font-size: 13px; font-weight: 500; color: var(--ink-3); transition: background 0.25s, color 0.25s; }
.modes button svg { width: 24px; height: 24px; stroke-width: 1.3; }
.modes button:hover { color: var(--ink); }
.modes button[aria-pressed="true"] { background: var(--fill-hi); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-strong); }
.subs { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.chip {
position: fixed; left: 50%; bottom: calc(176px + var(--safe-b)); transform: translate(-50%, 8px); opacity: 0; pointer-events: none; z-index: 5; text-align: center;
padding: 7px 16px; border-radius: 12px; background: var(--glass-strong); border: 1px solid var(--line-strong); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
transition: opacity 0.25s, transform 0.4s var(--ease); max-width: calc(100vw - 32px);
}
.chip.show { opacity: 1; transform: translate(-50%, 0); }
.chip small { display: block; font-size: 11px; color: var(--ink-3); } .chip b { font-weight: 500; font-size: 15px; }
.hint { position: fixed; left: 50%; top: 86px; transform: translateX(-50%); margin: 0; font-size: 12.5px; color: var(--ink-2); padding: 6px 14px; border-radius: 999px; background: var(--glass); border: 1px solid var(--line); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); transition: opacity 0.6s; z-index: 3; white-space: nowrap; pointer-events: none; }
.hint.gone { opacity: 0; }
.note { position: fixed; left: 0; right: 0; bottom: calc(10px + var(--safe-b)); display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; padding: 0 var(--pad); font-size: 11px; color: var(--ink-3); text-align: center; pointer-events: none; z-index: 2; }
.note .credit { color: var(--ink-2); }
#loading { position: fixed; inset: 0; background: var(--bg); display: grid; place-items: center; z-index: 20; transition: opacity 0.7s, visibility 0.7s; }
#loading.done { opacity: 0; visibility: hidden; }
.load-box { text-align: center; width: min(260px, 70vw); }
.load-box img { width: 120px; height: auto; margin-bottom: 18px; }
.load-box p { margin: 0 0 12px; color: var(--ink-2); font-size: 13px; } .load-box b { color: var(--ink); font-weight: 500; }
.bar { height: 2px; background: rgba(255, 244, 226, 0.14); border-radius: 1px; overflow: hidden; } .bar i { display: block; height: 100%; width: 0; background: var(--gold); transition: width 0.3s; }
body[data-view="walk"] .floors { display: none; }
@media (max-width: 900px) {
:root { --pad: 12px; }
.pill-btn { display: inline-flex; }
.pill-btn span { display: none; }
.pill-btn { width: 36px; padding: 0; justify-content: center; }
.panel.site { top: 64px !important; bottom: auto !important; max-height: 70vh; }
.panel.closed.site { transform: translateY(-16px); }
.brand img { height: 24px; } .brand { gap: 10px; } .brand-text { padding-left: 10px; }
.brand h1 { font-size: 20px; } .brand p { font-size: 11px; max-width: 46vw; }
.panel { left: 8px !important; right: 8px !important; width: auto !important; top: auto; bottom: calc(150px + var(--safe-b)); max-height: 46vh; }
.panel.closed.left, .panel.closed.right { transform: translateY(24px); }
.dock { bottom: calc(34px + var(--safe-b)); width: calc(100vw - 16px); }
.modes button { width: 86px; padding: 7px 0 6px; font-size: 12.5px; }
.subs { flex-wrap: nowrap; overflow-x: auto; max-width: 100%; justify-content: flex-start; scrollbar-width: none; padding: 0 2px; }
.subs::-webkit-scrollbar { display: none; }
.seg button { padding: 0 11px; }
.hint { top: 70px; font-size: 11.5px; max-width: calc(100vw - 24px); white-space: normal; text-align: center; border-radius: 14px; }
.note { font-size: 9.5px; gap: 2px 10px; bottom: calc(4px + var(--safe-b)); }
.chip { bottom: calc(160px + var(--safe-b)); }
.lab button { font-size: 12px; padding: 4px 10px; }
}
@media (prefers-reduced-motion: reduce) { * { transition-duration: 0.01ms !important; } }
.panel.site { left: 50%; width: min(760px, calc(100vw - 32px)); transform: translateX(-50%); z-index: 6; background: var(--glass-strong); }
.panel.closed.site { transform: translate(-50%, -16px); opacity: 0; pointer-events: none; }
.plan { position: relative; margin: 0; border-radius: 10px; overflow: hidden; background: #fff; }
.plan img { display: block; width: 100%; height: auto; }
.pin { position: absolute; transform: translate(-50%, -100%); display: flex; flex-direction: column-reverse; align-items: center; gap: 4px; pointer-events: none; }
.pin i { width: 14px; height: 14px; border-radius: 50%; background: #b8532f; border: 2px solid #fff; box-shadow: 0 0 0 0 rgba(184, 83, 47, 0.5); animation: ping 1.8s var(--ease) infinite; }
.pin b { font-size: 12px; font-weight: 600; white-space: nowrap; padding: 3px 9px; border-radius: 999px; background: #1b1611; color: #f4efe7; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3); }
@keyframes ping { to { box-shadow: 0 0 0 14px rgba(184, 83, 47, 0); } }
.plan-cap { margin: 10px 2px 0; font-size: 12.5px; color: var(--ink-2); }
@media (max-width: 900px) { .panel.site { left: 8px !important; right: 8px !important; transform: none; } .panel.closed.site { transform: translateY(-16px); } .pin b { font-size: 10.5px; } }
@media (prefers-reduced-motion: reduce) { .pin i { animation: none; } }
.fine { margin: 12px 0 0; padding-top: 10px; border-top: 1px solid var(--line); font-size: 11.5px; color: var(--ink-3); display: none; }
@media (max-width: 900px) {
.brand p { display: none; }
.brand img { height: 21px; } .brand { gap: 8px; } .brand-text { padding-left: 8px; } .brand h1 { margin: 0; font-size: 19px; letter-spacing: 0.1em; }
.top { align-items: center; } .top-actions { gap: 6px; }
.seg.lang button { padding: 0 8px; height: 28px; }
.hint { top: 58px; }
.subs { flex-wrap: wrap; overflow: visible; justify-content: center; gap: 6px; }
.dock { gap: 6px; bottom: calc(22px + var(--safe-b)); }
.modes button { padding: 6px 0 5px; } .modes button svg { width: 21px; height: 21px; }
.note span:first-child { display: none; }
.fine { display: block; }
.panel { bottom: calc(196px + var(--safe-b)); max-height: 42vh; }
.chip { bottom: calc(202px + var(--safe-b)); }
}
.panel.site { top: 72px; width: min(1320px, calc(100vw - 32px), calc((100vh - 72px - 120px) * 2.25)); max-height: none; overflow: visible; padding: 14px 14px 12px; }
.panel.site .panel-head { margin-bottom: 10px; }
.plan img { aspect-ratio: 2330 / 1035; object-fit: cover; }
@media (max-width: 900px) { .panel.site { width: auto; max-height: none; overflow: visible; } }
