:root{color-scheme:light;--cream:#faf6ec;--paper:#fffdf6;--ink:#252c27;--green:#26483e;--muted:#5c645b;--gold:#a06d36;--line:#d9d2bf;font-family:ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif;color:var(--ink);background:var(--cream);font-synthesis:none}
*{box-sizing:border-box}body{margin:0;min-height:100vh;background:radial-gradient(ellipse at 6% 12%,#ede3c966,transparent 52%),var(--cream)}button,input{font:inherit}button{cursor:pointer;color:inherit}button:disabled{cursor:default;opacity:.6}button:focus-visible,input:focus-visible,canvas:focus-visible{outline:3px solid #a76b2e;outline-offset:3px}button{touch-action:manipulation}svg{width:1.1em;height:1.1em;fill:none;stroke:currentColor;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round;flex:none}.icon-bank{display:none}h1,h2,h3,.brand{font-family:Georgia,"Times New Roman",serif}button{border:0}button:hover{filter:brightness(.95)}[hidden]{display:none!important}
.topbar{display:flex;align-items:center;justify-content:space-between;padding:16px clamp(16px,5vw,88px);border-bottom:1px solid var(--line);background:#faf7ef}.brand{display:flex;gap:13px;align-items:center;font-size:29px;letter-spacing:-1.4px;font-weight:600;color:var(--green)}.brand-mark{border-radius:12px;background:var(--green);color:#ffedb7;border:1px solid #ffffff4d;outline:1px solid var(--green);outline-offset:2px;width:37px;height:37px;display:grid;place-items:center}.brand-mark svg{width:22px;height:22px}.topbar nav{display:flex;gap:7px;align-items:center}.topbar button{display:inline-flex;align-items:center;gap:.5em;padding:9px 12px;border:1px solid transparent;border-radius:24px;background:transparent;font-size:14px;font-weight:600}.topbar button:hover,.topbar button:focus-visible{background:#ece6d6}.topbar button#ticket-toggle,.topbar button.help-btn{border-color:var(--line)}#nav-count{border-radius:100%;background:var(--green);color:white;min-width:19px;padding:1px 4px;text-align:center;font-size:12px}.help-btn{width:37px;height:37px;justify-content:center;padding:0!important}
.layout{max-width:1580px;margin:auto;padding:clamp(25px,4vw,60px) clamp(16px,5vw,88px)}.eyebrow{display:flex;align-items:center;gap:10px;color:#685332;font-family:ui-sans-serif,system-ui,sans-serif;font-size:10px;letter-spacing:.18em;font-weight:760}.rule{height:1px;width:30px;background:#9e7d3c}.heading h1{font-size:clamp(39px,5vw,74px);letter-spacing:-.057em;font-weight:500;line-height:1.06;margin:.15em 0;color:#263e32}.heading p,.assignment p{color:var(--muted);line-height:1.55;margin:.45em 0 0;font-size:clamp(14px,1.2vw,17px)}.play-layout{margin-top:clamp(20px,2.4vw,38px);display:grid;grid-template-columns:minmax(0,1fr) clamp(240px,25vw,345px);align-items:start;gap:clamp(14px,1.6vw,26px)}.game-card,.assignment{background:var(--paper);border:1px solid var(--line);border-radius:17px;box-shadow:0 8px 28px #53401c08}.game-card{overflow:hidden}.viewport{position:relative;isolation:isolate;aspect-ratio:1.62;background:#5d4731;min-height:325px}.viewport canvas{position:absolute;inset:0;width:100%;height:100%;display:block;touch-action:none;cursor:grab}.viewport canvas:active{cursor:grabbing}.scene-tag{position:absolute;pointer-events:none;top:15px;left:15px;display:flex;align-items:center;gap:6px;color:#fff9e7;background:#1e302ae8;border:1px solid #ffffff40;border-radius:100px;padding:6px 11px;font-size:12px;font-weight:650}.scene-interact{position:absolute;bottom:18px;left:50%;transform:translateX(-50%);border-radius:9px;border:1px solid #ffffff70;background:#243d33f5;color:white;padding:10px 14px;white-space:nowrap}.scene-interact kbd{color:#202820;margin-right:4px}.control-strip{display:flex;align-items:center;flex-wrap:wrap;gap:9px 17px;padding:14px 17px;color:var(--muted);font-size:12px}.control-strip span{display:inline-flex;align-items:center;gap:4px}.control-strip b{font-weight:650;color:var(--ink)}.control-strip svg{width:17px;margin-right:3px}kbd{border:1px solid #cbc4b1;background:#f7f1e3;padding:0 4px;border-radius:4px;font:600 11px/1.6 system-ui;color:#303b30}.control-strip button,.text-button{background:none;color:var(--green);text-decoration:underline;text-underline-offset:3px}.control-strip button{margin-left:auto;font-size:12px;padding:3px 0}.touch-control{position:absolute;bottom:12px;left:12px;display:none;grid-template-columns:repeat(3,34px);gap:4px}.touch-control button{background:#22332de6;color:white;border:1px solid #ffffff68;border-radius:8px;height:34px;touch-action:none;font-size:19px}.touch-control button:first-child{grid-column:2/3}.touch-control button:nth-child(2){grid-column:1/2}
.assignment{padding:clamp(18px,2vw,30px);background:linear-gradient(120deg,#fffcf1,#f7f1df)}.aside-header{display:flex;align-items:center;justify-content:space-between}.aside-header svg{color:var(--gold);width:22px;height:22px}.assignment h2,.panel-header h2{font-size:clamp(28px,2.5vw,39px);font-weight:500;letter-spacing:-.045em;line-height:1.15;margin:7px 0}.assignment p{font-size:14px}.steps{margin:19px 0;border-block:1px solid var(--line);padding:14px 0;display:grid;gap:9px}.steps>div{display:flex;align-items:center;gap:10px;font-size:13px}.steps i{width:17px;height:17px;line-height:17px;border:1px solid #a99e7d;border-radius:50%;text-align:center;font-size:11px;font-weight:700;font-style:normal;color:#fff;flex:none}.steps .met i{background:var(--green);border-color:var(--green)}.primary{display:inline-flex;align-items:center;justify-content:center;gap:8px;border-radius:9px;font-size:14px;font-weight:650;background:var(--green);color:white;padding:12px 15px}.full{width:100%}.trail{margin-left:auto}.text-button{font-size:13px;font-weight:600;padding:10px;margin:5px auto -7px;display:block}
dialog{color:var(--ink);width:min(630px,calc(100% - 28px));max-height:min(88dvh,840px);max-width:none;padding:0;background:var(--paper);border:1px solid var(--line);border-radius:18px;box-shadow:0 24px 90px #172b1e4a}dialog[open]{display:flex;flex-direction:column}dialog::backdrop{background:#1e261f83;backdrop-filter:blur(3px)}.panel-header{display:flex;align-items:center;justify-content:space-between;padding:19px 23px 16px;border-bottom:1px solid var(--line);gap:12px}.panel-header h2{font-size:31px;margin:4px 0 0}.icon-btn{display:grid;place-items:center;background:transparent;border:1px solid var(--line);border-radius:50%;width:34px;height:34px}.icon-btn svg{width:17px;height:17px}#panel-body{padding:22px;overflow:auto}#panel-body p{line-height:1.55}#panel-body p:first-child{margin-top:0}.menu-section h3,.ticket-title{color:var(--green);font-weight:500;letter-spacing:-.03em;font-size:26px;margin:8px 0}.menu-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px}.menu-item{display:flex;flex-direction:column;gap:5px;text-align:left;align-items:flex-start;border:1px solid var(--line);background:#f8f4e9;padding:12px;border-radius:10px}.menu-name{font-weight:700;font-size:14px}.menu-item small{font-size:12px;color:var(--muted);line-height:1.4}.menu-price{font-size:12px;color:var(--green);font-weight:700;margin-top:auto}.menu-section+.menu-section{margin-top:17px}.dialog-note{font-size:13px;color:var(--muted)}.name-form label{display:block;font-weight:650;font-size:14px;margin:16px 0 6px}.name-form input,.composer input{width:100%;border:1px solid #bdb7a4;color:var(--ink);background:white;padding:12px;border-radius:9px;font-size:16px}.name-form .primary{margin:5px 0 0}.chat-tools{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:0 0 11px;font-size:13px;color:var(--muted)}.chat-tools button,.suggestions button,.secondary{background:#f6f1e4;border:1px solid var(--line);border-radius:20px;padding:6px 11px;font-size:12px;color:var(--green);font-weight:600}.chat-log{padding:6px 2px 10px;overflow-y:auto;max-height:42dvh;min-height:110px;scrollbar-width:thin}.bubble{width:fit-content;max-width:88%;margin:5px 0 12px;padding:10px 13px;background:#f0eadb;border-radius:4px 12px 12px 12px;font-size:14px;line-height:1.5;white-space:pre-wrap;overflow-wrap:anywhere}.bubble strong{display:block;margin-bottom:3px;font:700 10px system-ui;letter-spacing:.07em;color:#6c5633}.bubble.user{margin-left:auto;background:#e1ece0;border-radius:12px 4px 12px 12px}.bubble.user strong{color:var(--green)}.suggestions{display:flex;flex-wrap:wrap;gap:6px;padding:10px 0}.suggestions button{text-align:left}.composer{display:flex;gap:7px}.composer input{min-width:0}.composer button{width:46px;flex:none}.receipt-row,.total-row,.goal-row{display:flex;justify-content:space-between;align-items:baseline;gap:10px;padding:10px 0;border-bottom:1px solid var(--line);font-size:14px}.receipt-row span:first-child{min-width:0}.receipt-row small{display:block;color:var(--muted);line-height:1.5}.receipt-row span:last-child,.total-row b{white-space:nowrap}.total-row{border:0;margin:0 0 10px;font-size:18px}.goal-row{font-size:13px}.ticket-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:16px}.secondary{border-radius:9px;padding:10px 13px}.save-status{font-size:13px;color:var(--muted);margin:8px 0}.help-list{display:grid;grid-template-columns:auto 1fr;gap:12px 20px;font-size:14px}.help-list dt{font-weight:700}.help-list dd{margin:0}.scene-fallback{position:absolute;inset:0;display:grid;align-content:center;justify-items:center;text-align:center;background:#334838;color:#ffefd4;padding:35px}.scene-fallback b{font:32px Georgia,serif}.scene-fallback p{max-width:350px;line-height:1.5}
@media(max-width:900px){.layout{padding-inline:20px}.play-layout{grid-template-columns:minmax(0,1fr) 240px}.control-strip{gap:6px 10px;padding:12px}.viewport{min-height:340px}}
@media(max-width:720px){.topbar{padding:13px 16px}.brand{font-size:25px;gap:10px}.brand-mark{width:29px;height:29px;border-radius:9px}.brand-mark svg{width:19px}.topbar button{padding:7px;font-size:12px}.topbar nav{gap:3px}.help-btn{width:31px;height:31px}.layout{padding:23px 14px}.heading h1{font-size:41px}.heading p{font-size:14px}.play-layout{grid-template-columns:1fr;gap:13px;margin-top:17px}.viewport{min-height:0;aspect-ratio:1.35}.assignment{padding:19px}.steps{grid-template-columns:1fr 1fr;row-gap:12px}.control-strip{font-size:11px}.control-strip button{font-size:11px}.assignment p{max-width:55ch}.panel-header{padding:14px 16px}#panel-body{padding:15px}.panel-header h2{font-size:26px}.chat-log{max-height:38dvh}.menu-item{padding:9px}.topbar button svg{width:15px;height:15px}}
@media(pointer:coarse){.touch-control{display:grid}.scene-interact{left:auto;right:9px;transform:none;bottom:13px;font-size:12px}.control-strip span{display:none}.control-strip:before{content:"Use the arrows to walk · Drag to look"}.scene-interact kbd{display:none}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}}

.chat-tools{flex-wrap:wrap;justify-content:flex-start}.voice-toggle{margin-left:auto;display:inline-flex;align-items:center;gap:5px;min-height:29px;color:var(--muted);font-size:12px;cursor:pointer}.voice-toggle input{accent-color:var(--green);width:14px;height:14px;margin:0}

.view-actions{position:absolute;right:12px;top:12px;z-index:3;display:flex;align-items:center;gap:5px}.view-actions button{border:1px solid #ffffff70;background:#233b32ed;color:#fffcf1;border-radius:9px;display:inline-flex;align-items:center;justify-content:center;gap:6px;padding:8px 11px;font-size:12px;font-weight:650;min-height:36px}.view-actions button:hover{background:#183529}.view-actions .immersive-only{display:none}.panel-actions{display:flex;align-items:center;gap:7px}
html.tani-immersive,html.tani-immersive body{width:100%;height:100%;overflow:hidden;overscroll-behavior:none;background:#24362a}html.tani-immersive .topbar,html.tani-immersive .heading,html.tani-immersive .assignment,html.tani-immersive .control-strip{display:none}
.tani-immersive .layout,.tani-immersive .play-layout,.tani-immersive .game-card{display:block;position:static;max-width:none;margin:0;padding:0;border:0;background:none;box-shadow:none}
.tani-immersive .viewport{position:fixed;inset:0;aspect-ratio:auto;width:auto;height:auto;min-height:0;background:#364538}
.tani-immersive .view-actions{position:fixed;right:max(12px,env(safe-area-inset-right));top:max(10px,env(safe-area-inset-top))}.tani-immersive .view-actions .immersive-only{display:inline-flex}.tani-immersive .scene-tag{top:max(12px,env(safe-area-inset-top));left:max(12px,env(safe-area-inset-left))}
.tani-immersive .touch-control{left:max(12px,env(safe-area-inset-left));bottom:max(12px,env(safe-area-inset-bottom))}
.tani-immersive.cafe-chat-docked{--chat-width:clamp(330px,31vw,465px)}
.tani-immersive.cafe-chat-docked .viewport{right:var(--chat-width)}
.tani-immersive.cafe-chat-docked .view-actions{right:calc(var(--chat-width) + 12px)}
.tani-immersive.cafe-chat-docked #panel{position:fixed;inset:0 0 0 auto;margin:0;width:var(--chat-width);height:100%;max-height:none;border-radius:0;border:0;border-left:1px solid var(--line);z-index:5;padding-top:env(safe-area-inset-top);padding-bottom:env(safe-area-inset-bottom)}
.tani-immersive.cafe-chat-docked #panel-body{flex:1;min-height:0;display:flex;flex-direction:column}.tani-immersive.cafe-chat-docked .chat-log{flex:1;min-height:45px;max-height:none}.tani-immersive.cafe-chat-docked .composer,.tani-immersive.cafe-chat-docked .chat-tools,.tani-immersive.cafe-chat-docked .suggestions{flex:none}
@media(max-width:680px){.tani-immersive .view-actions button{padding:7px;gap:4px;min-height:36px}.tani-immersive .scene-tag{top:calc(max(10px,env(safe-area-inset-top)) + 44px);font-size:10px}.tani-immersive.cafe-chat-docked{--sheet-height:clamp(255px,49dvh,430px)}.tani-immersive.cafe-chat-docked .viewport{right:0;bottom:var(--sheet-height)}.tani-immersive.cafe-chat-docked .view-actions{right:max(8px,env(safe-area-inset-right))}.tani-immersive.cafe-chat-docked #panel{inset:auto 0 0;width:100%;height:var(--sheet-height);border-left:0;border-top:1px solid var(--line);border-radius:15px 15px 0 0;padding-top:0}.tani-immersive.cafe-chat-docked .panel-header{padding:8px 14px}.tani-immersive.cafe-chat-docked .panel-header .eyebrow{display:none}.tani-immersive.cafe-chat-docked #panel-body{padding:8px 12px}.tani-immersive.cafe-chat-docked .chat-tools{padding-bottom:4px}.tani-immersive.cafe-chat-docked .suggestions{flex-wrap:nowrap;overflow-x:auto;padding:5px 0}.tani-immersive.cafe-chat-docked .suggestions button{flex:none;max-width:235px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.tani-immersive.cafe-chat-docked .scene-interact{display:none}}
@media(min-width:681px) and (max-width:950px){.tani-immersive.cafe-chat-docked .scene-tag{top:59px}}
@media(max-height:520px) and (max-width:680px) and (orientation:landscape){.tani-immersive.cafe-chat-docked{--chat-width:49vw}.tani-immersive.cafe-chat-docked .viewport{bottom:0;right:var(--chat-width)}.tani-immersive.cafe-chat-docked #panel{inset:0 0 0 auto;width:var(--chat-width);height:100%;border-radius:0}.tani-immersive.cafe-chat-docked .view-actions{left:5px;right:auto;gap:3px}.tani-immersive.cafe-chat-docked .view-actions button{padding-inline:6px}.tani-immersive.cafe-chat-docked .view-actions svg{display:none}}

.tani-immersive.cafe-chat-docked .scene-interact{display:none}
