*{box-sizing:border-box}html,body{margin:0;width:100%;height:100%;overflow:hidden;background:#111d29;color:#eee4d4;font:14px/1.5 system-ui}body [hidden]{display:none!important}button,input,select{font:inherit}button,a{color:#efe5d4;background:#37362e;border:1px solid #71644e;border-radius:9px;padding:10px 14px;cursor:pointer;text-decoration:none}button:hover,a:hover{background:#514633}button:disabled{opacity:.5;cursor:default}button:focus-visible,input:focus-visible,summary:focus-visible,a:focus-visible{outline:2px solid #dfba7b;outline-offset:3px}button[aria-checked=true],button[aria-pressed=true]{background:#5a6947}input,select{border:1px solid #69604f;border-radius:8px;padding:10px;background:#1c211c;color:#f3ead8;min-width:0;width:100%}label{display:grid;gap:6px;margin:12px 0}input[type=range]{padding:0;accent-color:#c8a36b}#house-view,#house-view>canvas{position:fixed;top:0;right:0;bottom:0;left:0;width:100%;height:100%;touch-action:none}#house-view{z-index:1;pointer-events:auto}#house-dom-surfaces{position:fixed;top:0;right:0;bottom:0;left:0;z-index:0;pointer-events:none}.world-media{background:#080b09;overflow:hidden;pointer-events:auto;backface-visibility:hidden}.world-media iframe,.world-media video{border:0;width:100%;height:100%;display:block}.world-media.with-grain:after{content:"";position:absolute;top:0;right:0;bottom:0;left:0;pointer-events:none;opacity:.025;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.8'/%3E%3C/svg%3E")}.record-surface{border:8px solid #352a20;border-radius:6px}body[data-media-interaction=film] #house-view,body[data-media-interaction=music] #house-view{pointer-events:none}#leave-media{position:fixed;z-index:35;right:22px;top:22px}.house-overlay{position:fixed;top:0;right:0;bottom:0;left:0;z-index:30;display:grid;place-items:center;background:#10170f77;-webkit-backdrop-filter:blur(7px);backdrop-filter:blur(7px);padding:24px}.menu-sheet,.reader-sheet,.chat-sheet{background:#252a23f5;border:1px solid #706247;border-radius:18px;box-shadow:0 20px 100px #0008;overflow:auto;max-height:90dvh;width:min(520px,96vw);padding:24px}.house-overlay header{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:16px}.house-overlay h2{font:26px Georgia;margin:0}.house-overlay header button{font-size:23px;padding:3px 12px}.menu-sheet section,.menu-sheet details{border-bottom:1px solid #ffffff15;padding:16px 0}.menu-sheet summary{cursor:pointer;font-weight:600}.setting-row,.button-row,.library-row{display:flex;align-items:center;gap:10px}.setting-row{justify-content:space-between}.button-row{flex-wrap:wrap}.subtle{font-size:12px;color:#b7baa8;line-height:1.65}.upload-button{background:#514731;padding:12px;border-radius:9px;cursor:pointer}.upload-button input{font-size:12px;background:transparent;border:0;padding:4px 0}.book-library{max-height:260px;overflow:auto}.library-row{margin:7px 0}.library-row>button:first-child{flex:1;text-align:left;white-space:normal;font-size:13px}.reader-sheet{width:min(1150px,96vw);padding:16px}.reader-sheet h2{font-size:19px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}#book-host{height:65dvh;min-height:220px;width:100%;overflow:hidden;border-radius:9px}#book-host canvas{display:block}.reader-tools{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-top:10px;justify-content:center}.reader-tools label{display:flex;align-items:center;font-size:12px}.reader-tools input{width:70px}.chat-sheet{width:min(480px,96vw)}#chat-messages{height:300px;overflow:auto;overflow-wrap:anywhere}#chat-messages p{background:#ffffff08;padding:10px;border-radius:8px}#chat-form{display:flex;gap:8px;margin-top:16px}#house-loading{position:fixed;z-index:40;top:0;right:0;bottom:0;left:0;display:grid;place-items:center;background:#1c251e;color:#d8cbb2}#context-hint{position:fixed;bottom:28px;left:50%;transform:translate(-50%);z-index:8;margin:0;padding:8px 16px;background:#20271ee6;border:1px solid #81715166;border-radius:8px;font-size:12px;pointer-events:none}#house-toast{position:fixed;z-index:50;bottom:26px;left:50%;transform:translate(-50%);padding:13px 18px;max-width:min(540px,90vw);border-radius:10px;background:#e7dfcd;color:#30392d;box-shadow:0 7px 30px #0005}#house-error{position:fixed;z-index:60;inset:40% 10% auto;padding:24px;background:#f0decb;color:#6c3325;border-radius:12px}#mic-indicator{position:fixed;right:25px;bottom:25px;z-index:40;color:#a9d18c;font-size:15px}.house-touch,#touch-menu,body.ui-open .house-touch{display:none}@media(pointer:coarse){.house-touch{display:block;position:fixed;z-index:10;left:15px;bottom:20px;text-align:center}.house-touch button{padding:8px;width:42px;height:42px;background:#242b20bb;margin:2px}#touch-menu{display:block;position:fixed;z-index:15;right:15px;top:15px}.house-overlay{padding:10px}.menu-sheet{padding:18px}#context-hint{bottom:85px}.table-playing .house-touch{display:none}}body .table-puzzle-panel{position:fixed;z-index:18;inset:50% 0 auto auto;transform:translateY(-50%);width:min(330px,86vw);color:#eee4d4;background:#272d24f5;border:1px solid #81715166;border-radius:15px 0 0 15px;padding:16px;max-height:85dvh;font:12px system-ui}body .table-puzzle-panel.collapsed{width:0;padding:0;border:0;background:transparent}.table-puzzle-panel.collapsed .table-drawer{display:none}.table-drawer{overflow-y:auto;max-height:78dvh}.puzzle-drawer-toggle{position:absolute;left:-32px;top:0;border-radius:8px 0 0 8px;width:32px;height:55px;padding:0;font-size:24px}body .table-playbar{position:static;transform:none;display:flex;width:auto;max-width:none;background:transparent;border:0;box-shadow:none;padding:0;gap:5px}body .table-playbar button{font-size:11px;padding:8px}body .table-config{background:transparent;border:0;padding:12px 0;max-height:none;color:inherit}body .table-config input,body .table-config select{background:#1c211c;color:#eee4d4;border-color:#69604f}body .table-upload{background:#514731}body .table-help{background:transparent;color:#b7baa8}body .table-puzzle-panel [data-message]{background:#514731;color:#eee4d4}body .table-room{border-color:#69604f}body.ui-open .table-puzzle-panel{visibility:hidden}#controls-hint{position:fixed;right:22px;top:20px;z-index:8;display:grid;gap:3px;padding:12px 15px;border-radius:10px;background:#1c241bb8;color:#e5ddc9;font-size:11px;pointer-events:none}#controls-hint strong{font-size:13px}#controls-hint small{opacity:.65;font-size:10px}body.ui-open #controls-hint,body[data-media-interaction=film] #controls-hint{display:none}@media(pointer:coarse){#controls-hint{display:none}}#record-player-host iframe{width:100%;height:240px;border:0;border-radius:8px}#record-player-host audio{width:100%}.table-puzzle-panel[hidden]{display:none}.table-puzzle-panel{position:absolute;inset:150px 20px auto auto;width:285px;z-index:5;color:#344339;font:12px system-ui}.table-config{padding:13px;background:#fffaf0ed;border:1px solid #c8c9b9;border-radius:15px;max-height:calc(100dvh - 270px);overflow:auto}.table-config summary{cursor:pointer;font-weight:600;padding:3px}.table-options{display:grid;gap:10px;padding:12px 0}.table-options label,.table-room label{display:grid;gap:5px}.table-config select,.table-config input{width:100%;min-width:0;padding:9px;border:1px solid #c9cebe;border-radius:8px;background:#fffdf6;color:#344339}.table-upload{padding:9px;background:#e4e9da;border-radius:9px;cursor:pointer}.table-upload input{padding:0;border:0;font-size:10px}.table-options p,.table-room p{margin:0;font-size:10px;line-height:1.5}.table-room{border-top:1px solid #c9cebe;padding-top:10px}.table-room label{margin-top:9px}.table-room button{margin-top:8px}.table-playbar{position:fixed;left:50%;bottom:20px;transform:translate(-50%);width:max-content;max-width:96vw;display:flex;gap:5px;align-items:center;justify-content:center;flex-wrap:wrap;background:#fffaf0f2;padding:10px;border:1px solid #c8c9b9;border-radius:16px;box-shadow:0 5px 24px #25342115}.table-playbar button{font-size:11px;padding:10px}.table-playbar strong{font-size:11px;padding:6px}.table-playbar [data-play]{background:#4c6245;color:#fff}.table-puzzle-panel [data-message]{background:#fffaf0ee;border-radius:10px;padding:8px;line-height:1.5;margin-top:8px;overflow-wrap:anywhere}.table-puzzle-panel [data-message]:empty{display:none}.table-help{background:#fffaf0d9;padding:9px;border-radius:10px;font-size:10px;line-height:1.5}.table-playing>footer{display:none}body:has(.table-puzzle-panel:not([hidden]))>footer{display:none}@media(max-width:1100px){body:has(.table-puzzle-panel:not([hidden]))>nav{top:110px;bottom:auto}body:has(.table-puzzle-panel:not([hidden]))>header p{display:none}}@media(max-width:700px){.table-puzzle-panel{top:165px;right:12px;width:min(270px,85vw)}.table-config{max-height:34dvh}.table-playbar{bottom:10px;width:96vw;padding:6px;gap:3px}.table-playbar button{padding:8px;font-size:10px}.table-help{display:none}.table-config:not([open]){width:max-content;margin-left:auto}.table-playing>header h1{font-size:21px}}
