:root{font-family:-apple-system,BlinkMacSystemFont,"Noto Sans TC","PingFang TC",sans-serif;color:#294e3e;background:#d8e9e0;font-synthesis:none;--ink:#294e3e;--accent:#e89268;--mint:#70a28d;--cream:#fffbed}
*{box-sizing:border-box}body{margin:0;background:radial-gradient(ellipse at 20% 20%,#f5e5cb,transparent 50%),radial-gradient(ellipse at 90% 80%,#b0d7c8,transparent 50%),#d9e9e0;overflow:hidden}button,input,select{font:inherit}button{color:inherit;cursor:pointer;-webkit-tap-highlight-color:transparent}button:disabled{cursor:default}button:focus-visible{outline:3px solid #c8774e;outline-offset:4px}button,svg{touch-action:manipulation}svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}.svg-library{position:absolute;width:0;height:0;overflow:hidden}[hidden]{display:none!important}
.game{position:relative;width:min(100%,520px);height:100svh;height:100dvh;min-height:580px;margin:auto;overflow:hidden;isolation:isolate;background:#e7f0df;box-shadow:0 0 90px #34564424}
.world-backdrop{position:absolute;z-index:-4;inset:-3%;background:url('assets/tea-garden-v14.png') center center/cover;transform:translate3d(var(--px,0px),var(--py,0px),0) scale(1.03);transition:filter 1s,transform .6s ease-out}
.world-haze{position:absolute;z-index:-3;inset:0;background:linear-gradient(180deg,#fbffedc7 0%,#f4ffe737 26%,transparent 54%,#eff6e0db 74%,#faf5eaff 89%);pointer-events:none}
.game[data-flavour="peach"] .world-backdrop,.game[data-flavour="grapefruit"] .world-backdrop{filter:hue-rotate(-12deg) saturate(.8)}
.ambient-orb{position:absolute;z-index:-2;pointer-events:none;border-radius:50%;filter:blur(22px);opacity:.2;animation:ambience 9s ease-in-out infinite alternate}.orb-one{width:150px;height:150px;left:-90px;top:25%;background:#f9c870}.orb-two{width:140px;height:140px;right:-70px;top:35%;background:#efad97;animation-delay:-4s}
.hud{position:absolute;z-index:20;left:24px;right:24px;top:calc(17px + env(safe-area-inset-top));display:flex;align-items:center;gap:12px;height:44px}
.brand{display:flex;align-items:center;gap:8px;border:0;padding:0;background:transparent;text-align:left}.brand-symbol{display:grid;place-items:center;width:38px;height:41px;color:#52856b;transform:rotate(-8deg)}.brand-symbol svg{width:39px;height:39px;stroke:none}.brand b{display:block;font-family:"Songti TC","Noto Serif TC",serif;font-size:22px;letter-spacing:.18em;line-height:1}.brand small{display:block;font-size:6px;font-weight:800;letter-spacing:.22em;margin-top:6px}
.bottle-pass{font-size:9px;margin-left:auto;font-weight:600;letter-spacing:.03em;white-space:nowrap}.bottle-pass small{display:block;font-family:monospace;font-size:7px;font-weight:400;letter-spacing:.16em;color:#739281;text-align:right;margin-top:4px}.status-dot{display:inline-block;width:5px;height:5px;background:#80a681;border-radius:50%;margin-right:6px;box-shadow:0 0 0 3px #80a68120}
.round-button{width:38px;height:38px;display:grid;place-items:center;border:1px solid #ffffffa1;border-radius:50%;background:linear-gradient(145deg,#ffffffbd,#eeeeda8c);box-shadow:0 4px 9px #3e654812,inset 0 2px 1px #ffffffa1}.round-button svg{width:19px;height:19px}
.scene-heading{position:absolute;z-index:4;left:26px;top:calc(88px + env(safe-area-inset-top));pointer-events:none}.scene-heading>span{display:block;font-size:8px;font-weight:650;letter-spacing:.18em;color:#648373}.scene-heading h1{font-family:"Songti TC","Noto Serif TC",serif;font-weight:600;font-size:36px;letter-spacing:-.035em;line-height:1.2;margin:10px 0 6px}.scene-heading h1 span{color:#6a8e67;margin-left:4px}.scene-heading p{font-size:10px;color:#6e8475;letter-spacing:.035em;margin:0}
.scene-3d{position:absolute;z-index:2;inset:17% 0 27%;touch-action:none;cursor:grab;outline:none}.scene-3d:active{cursor:grabbing}.scene-3d canvas{width:100%;height:100%;display:block}.scene-fallback{position:absolute;inset:5% 20% 0;overflow:hidden;border-radius:100px;opacity:.8}.scene-fallback img{width:100%;height:100%;object-fit:cover}.scene-fallback small{position:absolute;bottom:30px;left:0;right:0;text-align:center;font-size:10px}.scene-ready .scene-fallback{display:none}.scene-unavailable .scene-fallback{inset:4% 10%}.scene-unavailable .drag-cue{display:none}
.drag-cue{position:absolute;z-index:4;left:50%;top:63%;transform:translateX(-50%);display:flex;align-items:center;gap:5px;font-size:8px;letter-spacing:.06em;color:#53745d;pointer-events:none;background:#fcfff04d;padding:4px 8px;border-radius:30px}.drag-cue svg{width:14px;height:14px;stroke-width:1.2}
.world-tools{position:absolute;z-index:6;inset:25% 21px auto auto;display:flex;flex-direction:column;gap:25px}.world-tool{display:flex;flex-direction:column;align-items:center;gap:5px;border:0;padding:0;background:none}.tool-orb{position:relative;display:grid;place-items:center;width:62px;height:62px;border-radius:50%;border:3px solid #fffbeecf;background:radial-gradient(circle at 25% 20%,#fffdf4,#efd9a8 70%,#d9c495);box-shadow:0 7px 0 #b9c3a533,0 13px 22px #3f633e25,inset 0 3px 8px #ffffff;overflow:hidden;transition:transform .25s}.world-tool:hover .tool-orb{transform:translateY(-4px)}.world-tool b{font-size:9px;letter-spacing:.08em;font-weight:650}.world-tool small{font-size:5px;letter-spacing:.15em;color:#b77654}.film-teaser video{position:absolute;width:100%;height:100%;object-fit:cover;filter:brightness(.85)}.film-teaser .tool-orb>svg{position:relative;color:#fff;filter:drop-shadow(0 2px 4px #16382677);width:27px;height:27px}.inspiration-tool .tool-orb{width:49px;height:49px;background:radial-gradient(circle at 25% 20%,#fff5c8,#f1d7a5 70%,#d9b682);color:#be8352}.inspiration-tool svg{width:22px;height:22px}
.tea-switch{position:absolute;z-index:5;left:24px;top:27%;display:flex;flex-direction:column;gap:10px}.tea-switch button{display:flex;align-items:center;gap:5px;border:0;padding:6px 8px 6px 6px;border-radius:25px;background:#fffaf088;box-shadow:0 3px 9px #3a624312;font-size:8px;color:#7c8b71;backdrop-filter:blur(8px)}.tea-switch button span{width:8px;height:8px;border-radius:50%;background:#8fac5d;box-shadow:inset -1px -2px 3px #56733360}.tea-switch button+button span{background:#bf8c54}.tea-switch button.active{color:#3d6248;background:#fffced;border:1px solid #92b28b8c;padding:5px 7px 5px 5px}
.play-tray{position:absolute;z-index:7;left:24px;right:24px;bottom:123px}.tray-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:10px}.tray-heading>span{font-size:9px;font-weight:500;color:#66806a;letter-spacing:.06em}.tray-heading button{border:0;padding:3px 0 3px 10px;background:none;font-size:9px;color:#9b7756}.tray-heading button span{margin-left:4px}
.flavour-rail{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:0 3px 12px}.flavour-choice{flex:1;min-width:0;border:0;background:none;padding:0;display:flex;flex-direction:column;align-items:center;gap:7px}.flavour-art{display:block;width:52px;height:52px;border:3px solid #fffbe8;border-radius:50%;background:var(--thumb) center 57%/cover;box-shadow:0 5px 0 #cad0b754,0 8px 13px #415c4821;transition:transform .3s,border-color .3s}.flavour-choice b{font-size:9px;font-weight:500;color:#829079}.flavour-choice.active .flavour-art{transform:translateY(-4px);border-color:#eeb887;box-shadow:0 4px 0 #b2835140,0 8px 15px #a970402a}.flavour-choice.active b{color:#7d572f;font-weight:700}
.action-row{display:flex;align-items:center;gap:10px}.main-action{width:100%;min-height:46px;border:1px solid #ffeedcc9;border-radius:99px;display:flex;align-items:center;justify-content:center;gap:20px;padding:0 22px;color:#6b462c;background:linear-gradient(180deg,#ffe1ac,#f4b87d);box-shadow:0 4px 0 #c9916073,0 9px 18px #b8864930,inset 0 2px 2px #fff5d8;font-size:12px;font-weight:700;letter-spacing:.09em;transition:transform .15s,filter .15s}.main-action:active{transform:translateY(3px);box-shadow:0 1px 0 #c9916073,0 3px 10px #b8864930}.main-action svg{width:19px;height:19px}.main-action:disabled{filter:saturate(.35);opacity:.65}.mission-line{display:flex;align-items:center;justify-content:center;gap:5px;margin-top:12px;font-size:7px;color:#82927d;letter-spacing:.04em}.mission-line i{width:4px;height:4px;border-radius:50%;background:#93b291}
.game-footer{position:absolute;z-index:25;left:24px;right:24px;bottom:calc(10px + env(safe-area-inset-bottom))}.game-nav{display:flex;justify-content:space-around;align-items:center;height:58px;border-top:1px solid #7b9c7629}.game-nav button{position:relative;border:0;display:flex;flex-direction:column;align-items:center;gap:4px;min-width:48px;color:#92a390;background:none;padding:5px 12px}.game-nav svg{width:23px;height:23px;stroke-width:1.5}.game-nav b{font-size:8px;font-weight:500;letter-spacing:.1em}.game-nav button.active{color:#486e51}.game-nav button.active:before{content:"";position:absolute;width:30px;height:30px;border-radius:50%;background:#e5bc802b;top:2px;z-index:-1}.game-nav button i{position:absolute;right:10px;top:0;font-size:6px;font-style:normal;background:#eabb94;color:#715237;border-radius:50%;width:12px;height:12px;display:grid;place-items:center}.presented{display:flex;align-items:center;justify-content:center;gap:6px;margin-top:4px;color:#6b8776}.qr-logo{width:22px;height:22px;stroke:none}.presented>span{display:block}.presented small{display:block;font-size:4px;font-weight:650;letter-spacing:.19em}.presented b{display:block;font-size:12px;letter-spacing:-.06em;line-height:1.2}.presented b span{font-weight:450;color:#be8c6b;margin-left:2px}.presented em{font-size:6px;font-style:normal;position:absolute;right:1px;color:#9ca991}
.ingredient-dock{display:flex;gap:10px;justify-content:space-around;padding-bottom:12px}.ingredient-button{display:flex;flex-direction:column;align-items:center;gap:5px;width:30%;background:none;border:0;position:relative;padding:0}.ingredient-button .ingredient-icon{width:55px;height:55px;display:grid;place-items:center;border:2px solid #fffbe9;border-radius:18px 20px 20px 22px;background:radial-gradient(circle at 30% 15%,#ffffe8,#e6ce9e);box-shadow:0 5px 0 #d3b98d88,0 9px 15px #59765425;transform:rotate(-5deg);color:#b08856}.ingredient-button:nth-child(2) .ingredient-icon{background:radial-gradient(circle at 30% 15%,#edfacc,#9ebd85);box-shadow:0 5px 0 #6d8e5a70,0 9px 15px #59765425;color:#5e8545;transform:rotate(4deg)}.ingredient-button:nth-child(3) .ingredient-icon{background:radial-gradient(circle at 30% 15%,#f5feff,#b8dae2);box-shadow:0 5px 0 #8db4c070,0 9px 15px #59765425;color:#6a9ca5;transform:rotate(-3deg)}.ingredient-button b{font-size:9px;font-weight:600}.ingredient-button small{font-size:7px;color:#91a086}.ingredient-button.done:after{content:"✓";position:absolute;right:10px;top:-5px;display:grid;place-items:center;width:18px;height:18px;color:#fff;background:#73a382;border:2px solid #fff;border-radius:50%;font-size:10px}.ingredient-button.done .ingredient-icon{transform:translateY(3px) scale(.9);opacity:.7}
.game[data-mode="lab"] .tea-switch{display:none}.game[data-mode="lab"] .scene-heading h1{font-size:31px}.game[data-mode="lab"] .world-tools{top:29%;gap:20px}.game[data-mode="lab"] .scene-3d{inset:20% 0 28%}.game[data-mode="lab"] .drag-cue{top:59%}.game[data-mode="lab"] .play-tray{bottom:122px}.game[data-mode="lab"] .flavour-rail{padding-bottom:13px;gap:9px}.game[data-mode="lab"] .flavour-art{width:34px;height:34px;border-width:2px}.game[data-mode="lab"] .flavour-choice b{font-size:7px}.game[data-mode="lab"] .flavour-choice{gap:4px}.game[data-mode="lab"] .tray-heading{margin-bottom:8px}.replay{flex-shrink:0;width:42px;height:42px}
.cinema{position:absolute;z-index:10;inset:74px 0 115px;overflow:hidden;background:#689778;border-radius:36px 36px 0 0}.cinema>video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}.cinema-shade{position:absolute;inset:0;background:linear-gradient(180deg,#20402a22,transparent 26%,transparent 35%,#203c2777 58%,#142d27de 83%,#213d32);pointer-events:none}.cinema-top{position:absolute;left:24px;right:24px;top:19px;display:flex;justify-content:space-between;align-items:center;color:white}.cinema-top>span{font-size:10px;letter-spacing:.12em}.cinema-top i{display:inline-block;width:5px;height:5px;border-radius:50%;background:#f2b477;margin-right:7px}.cinema-top small{font-size:7px;margin-left:8px;opacity:.7}.cinema-top .round-button{width:30px;height:30px;background:#ffffff26;color:white;border:1px solid #ffffff44;box-shadow:none;font-size:11px}.cinema-caption{position:absolute;left:25px;right:25px;bottom:170px;color:#fff}.cinema-caption>span{font-size:7px;letter-spacing:.2em;color:#f5dda4}.cinema-caption h2{font-family:"Songti TC",serif;font-size:36px;font-weight:500;margin:9px 0;letter-spacing:.06em}.cinema-caption p{font-size:10px;color:#ffffffbc;margin:0;line-height:1.6}.film-timeline{position:absolute;left:25px;right:25px;bottom:151px;height:1px;background:#ffffff44}.film-timeline i{display:block;height:1px;width:0;background:#ffddb4}.cinema-bottom{position:absolute;bottom:14px;left:24px;right:24px}.film-choices{display:flex;justify-content:space-between;margin-bottom:14px;gap:8px}.film-choice{padding:8px 11px;border:1px solid #ffffff33;border-radius:50px;background:transparent;color:#ffffff80;font-size:9px;flex:1;white-space:nowrap}.film-choice.active{background:#fff6de;color:#47604a;border-color:#fff6de}.cinema-bottom .main-action{min-height:42px;font-size:10px}.film-medium{display:block;text-align:center;font-size:6px;letter-spacing:.12em;color:#b4c2ad;margin-top:10px}
.game[data-mode="films"] .scene-heading,.game[data-mode="films"] .world-tools,.game[data-mode="films"] .tea-switch,.game[data-mode="films"] .play-tray,.game[data-mode="films"] .drag-cue{display:none}
.sheet{position:fixed;inset:auto 0 0;margin:0 auto;width:min(520px,100%);max-height:84dvh;padding:31px 25px calc(25px + env(safe-area-inset-bottom));border:1px solid #ffffffc7;border-radius:31px 31px 0 0;background:#fffcef;color:var(--ink);box-shadow:0 -10px 80px #21443522;overflow:auto;overscroll-behavior:contain}.sheet::backdrop{background:#224a394a;backdrop-filter:blur(7px)}.sheet[open]{animation:sheetIn .3s ease-out}.sheet-grip{position:absolute;top:11px;left:calc(50% - 17px);height:3px;width:34px;border-radius:5px;background:#b4c2ac}.sheet-close{position:absolute;right:20px;top:21px;width:30px;height:30px;border:0;border-radius:50%;background:#e9eeda;color:#789274;font-size:20px}.sheet .eyebrow{color:#bd8a62;font-size:8px;letter-spacing:.18em}.sheet h2{font-family:"Songti TC",serif;font-weight:500;font-size:30px;margin:12px 0 9px;letter-spacing:.015em;max-width:87%}.sheet p{font-size:12px;line-height:1.8;color:#7c8c77}.sheet h3{font-size:12px;margin:25px 0 9px}.sheet .main-action{margin-top:20px}.sheet .fine-print{font-size:9px;color:#9ca58d;line-height:1.65}.sheet-brand{display:flex;align-items:center;gap:9px;margin:16px 0}.sheet-brand svg{width:38px;height:38px;color:#70965d;stroke:none}.sheet-brand b{font-family:"Songti TC",serif;font-size:21px;letter-spacing:.18em}.sheet-brand small{display:block;font-family:sans-serif;font-size:7px;letter-spacing:.1em;color:#8ba17c;margin-top:4px}.facts{display:flex;gap:12px;border-block:1px solid #9ab38533;padding:15px 0;margin:19px 0}.facts>div{flex:1}.facts b{display:block;font-size:16px;font-weight:500}.facts small{display:block;margin-top:6px;font-size:8px;color:#8a9b7f}.pairings{display:flex;gap:8px;flex-wrap:wrap}.pairings span{font-size:10px;padding:8px 12px;border:1px solid #92aa752b;border-radius:50px;background:#eff2df}.recipe-poster{width:90px;height:110px;object-fit:cover;border-radius:50% 50% 40% 40%;float:right;margin:0 0 10px 12px;box-shadow:0 9px 16px #45693e21}.measure-list{clear:both;padding:0;list-style:none}.measure-list li{display:flex;justify-content:space-between;border-bottom:1px solid #a3b58a2c;padding:13px 0;font-size:11px}.measure-list b{font-weight:500}.measure-list span{color:#8a9b75}.method-list{padding-left:19px;font-size:11px;line-height:1.85;color:#819172}.method-list li{padding:4px 0}.sheet .soft-button{width:100%;margin-top:10px;min-height:42px;border:1px solid #8aab7a44;border-radius:40px;background:transparent;font-size:11px;color:#728d63}.result-stamp{width:60px;height:60px;border-radius:50%;display:grid;place-items:center;background:radial-gradient(circle at 25% 20%,#fffadd,#f3d89c);box-shadow:0 5px 0 #dfbe8166;color:#b79255;font-size:30px;margin:6px auto 16px}.result-intro{text-align:center}.result-intro h2{max-width:100%}.result-intro p{font-size:10px}.saved-entry{display:flex;gap:14px;align-items:center;padding:15px 0;border-bottom:1px solid #9ab38533}.saved-entry img{width:46px;height:57px;object-fit:cover;border-radius:20px}.saved-entry>div{flex:1}.saved-entry b{display:block;font-size:12px}.saved-entry small{display:block;font-size:9px;color:#8c9d80;margin-top:6px}.saved-entry button{border:0;border-radius:40px;background:#edf0da;padding:9px 11px;font-size:10px}.mood-options{display:flex;gap:9px;margin:24px 0;flex-wrap:wrap}.mood-options button{flex:1;border:1px solid #adc59355;border-radius:22px;background:#f0f3df;min-height:75px;padding:10px;font-size:11px}.mood-options small{display:block;color:#91a077;font-size:8px;margin-top:8px}.share-preview{display:block;width:min(225px,65%);margin:18px auto;border-radius:16px;box-shadow:0 10px 40px #506e4225}.toast{position:absolute;z-index:90;left:50%;top:22%;transform:translate(-50%,-10px);width:max-content;max-width:86%;border:1px solid #ffffffbe;border-radius:40px;background:#fffdf2ec;color:#52714b;padding:12px 20px;box-shadow:0 10px 40px #30493120;opacity:0;pointer-events:none;transition:.25s;font-size:11px;text-align:center}.toast.show{opacity:1;transform:translate(-50%,0)}.celebration{position:absolute;inset:0;z-index:50;pointer-events:none;overflow:hidden}.celebration i{position:absolute;top:30%;width:7px;height:10px;border-radius:3px;background:#eab882;animation:confetti 1.5s ease-out forwards}.celebration i:nth-child(2n){background:#7daa81}.celebration i:nth-child(3n){background:#d8dc9c}
@keyframes ambience{to{transform:translate(25px,-30px)}}@keyframes sheetIn{from{transform:translateY(60px);opacity:.5}to{transform:translateY(0);opacity:1}}@keyframes confetti{from{transform:translateY(0) rotate(0);opacity:1}to{transform:translate(var(--drift),440px) rotate(430deg);opacity:0}}
@media(min-width:700px) and (min-height:760px){body{padding:16px}.game{height:calc(100dvh - 32px);border-radius:35px;border:1px solid #ffffff70}.sheet{bottom:16px;border-radius:31px;width:496px}}
@media(max-height:760px){.hud{top:12px}.scene-heading{top:72px}.scene-heading h1{font-size:30px;margin:7px 0 4px}.scene-heading p{font-size:9px}.scene-heading>span{font-size:6px}.play-tray{bottom:111px}.flavour-art{width:43px;height:43px}.flavour-rail{padding-bottom:9px}.game-footer{bottom:7px}.game-nav{height:53px}.world-tools{top:27%;gap:18px}.tool-orb{width:51px;height:51px}.inspiration-tool .tool-orb{width:42px;height:42px}.drag-cue{top:60%}.tea-switch{top:28%}.main-action{min-height:42px}.game[data-mode="lab"] .scene-heading h1{font-size:26px}.game[data-mode="lab"] .play-tray{bottom:110px}.game[data-mode="lab"] .scene-3d{inset:19% 0 32%}.game[data-mode="lab"] .drag-cue{display:none}.game[data-mode="lab"] .tray-heading{display:none}.ingredient-button .ingredient-icon{width:44px;height:44px;border-radius:16px}.ingredient-button small{display:none}.game[data-mode="lab"] .flavour-art{width:28px;height:28px}.game[data-mode="lab"] .flavour-rail{padding-bottom:9px}.mission-line{margin-top:9px;font-size:6px}.cinema{top:65px;bottom:106px}.cinema-caption h2{font-size:31px}}
@media(max-width:359px){.hud{left:18px;right:18px;gap:7px}.scene-heading{left:20px}.scene-heading h1{font-size:29px}.bottle-pass{font-size:8px}.play-tray,.game-footer{left:18px;right:18px}.world-tools{right:15px}.tea-switch{left:15px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important}}
.game{overflow:clip}.presented b{font-size:14px}.qr-logo{width:25px;height:25px}
.presented{height:42px;gap:8px;margin-top:0}.presented>small{font-size:6px;font-weight:600;letter-spacing:.14em;color:#81917b}.qr-official-logo{display:block;width:42px;height:42px;object-fit:contain;border-radius:6px}.game-footer .presented em{align-self:center}
