@font-face{font-family:Jua;src:url('./assets/Jua-Regular.ttf') format('truetype');font-display:swap}
:root{font-family:Jua,sans-serif;color:#293e3c;--ink:#293e3c;--paper:#fffdf4;--forest:#285d4b;--water:#45bfc5;--shadow:0 8px 30px #244c3822}
*{box-sizing:border-box}html,body{margin:0;width:100%;height:100%;overflow:hidden}body{background:#d9edf1}button,a{-webkit-tap-highlight-color:transparent}button{font:inherit;font-size:1.125rem;cursor:pointer;border:0;color:inherit;touch-action:manipulation}button:focus-visible,a:focus-visible{outline:4px solid #c57d27;outline-offset:5px}button:disabled{cursor:wait;opacity:.6}button svg{width:25px;height:25px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}button{transition:background .18s,transform .18s}button:active{transform:translateY(2px)}[hidden]{display:none!important}::selection{background:#285d4b;color:#fffdf4}
#game{height:100%;height:100dvh;position:relative;isolation:isolate;overflow:hidden}#world{position:absolute;inset:0;width:100%;height:100%;touch-action:none}.topbar{position:absolute;top:0;left:0;right:0;padding:25px 34px;display:flex;justify-content:space-between;align-items:center;z-index:5;pointer-events:none}.topbar>*{pointer-events:auto}.brand{display:flex;gap:10px;align-items:center;color:var(--forest);text-decoration:none;font-size:1.65rem}.brand svg{width:39px;height:39px;fill:none;stroke:currentColor;stroke-width:2.8;stroke-linecap:round}.top-actions{display:flex;align-items:center;gap:12px}#who{font-size:1.125rem;background:var(--paper);padding:11px 18px;border-radius:24px;box-shadow:var(--shadow)}.icon-button{width:48px;height:48px;display:grid;place-items:center;border-radius:50%;background:var(--paper);box-shadow:var(--shadow)}.icon-button:hover,.soft-button:hover{background:#e3efdf}
#choose{position:absolute;inset:100px 0 0;display:flex;align-items:center;flex-direction:column;padding:6px 20px 22px;overflow:auto;background:linear-gradient(180deg,#d9edf1ed 0%,#e6f3ebef 65%,#d9eddfed 100%)}#choose>*{flex-shrink:0}.intro{text-align:center}.intro h1{font-size:clamp(2.3rem,4vw,3.7rem);font-weight:400;line-height:1.16;margin:0 0 12px;letter-spacing:-.025em}.intro p{font-size:1.125rem;margin:0;color:#496760}.characters{display:flex;justify-content:center;align-items:flex-end;gap:clamp(20px,5vw,76px);margin:22px 0 24px}.character{background:transparent;display:flex;flex-direction:column;align-items:center;padding:12px 24px 16px;position:relative;border-radius:80px 80px 24px 24px;min-width:160px;outline-offset:4px}.character:before{content:'';position:absolute;z-index:-1;width:155px;height:58px;bottom:60px;border-radius:50%;background:#8cb49e40;transition:background .2s,transform .2s}.character:hover:before,.character[aria-pressed=true]:before{background:#fffdf4;transform:scale(1.16)}.character img{height:clamp(150px,31vh,285px);width:auto;max-width:190px;object-fit:contain;filter:drop-shadow(0 7px 3px #34503e17);transition:transform .22s}.character[data-id=sian] img{height:clamp(115px,23vh,212px)}.character:hover img{transform:translateY(-7px) rotate(-2deg)}.character .name{font-size:1.5rem;margin-top:15px;display:flex;align-items:center;gap:8px}.character .check{width:23px;height:23px;border-radius:50%;display:inline-grid;place-items:center;background:var(--forest);color:white;visibility:hidden}.character[aria-pressed=true] .check{visibility:visible}.check svg{width:16px;height:16px;stroke-width:3}.character small{font-size:1rem;margin-top:6px;color:#496760}.primary{background:var(--forest);color:var(--paper);padding:16px 28px;min-height:54px;border-radius:16px;box-shadow:0 5px 15px #285d4b20;display:inline-flex;align-items:center;justify-content:center;gap:16px}.primary:hover{background:#1e493a}#start{min-width:270px;font-size:1.25rem}.small-note{font-size:1rem;color:#496760;margin:16px 0 0}
.scene-heading{position:absolute;top:105px;left:35px;pointer-events:none}.scene-heading h1{font-size:clamp(1.9rem,3.5vw,2.7rem);font-weight:400;letter-spacing:-.02em;margin:0 0 8px}.scene-heading p{font-size:1.125rem;margin:0;max-width:400px;line-height:1.5}.scene-controls{position:absolute;left:30px;right:30px;bottom:33px;display:flex;justify-content:space-between;pointer-events:none}.scene-controls button{pointer-events:auto}.soft-button{min-height:48px;background:var(--paper);padding:12px 20px;border-radius:24px;box-shadow:var(--shadow)}#actions{position:absolute;left:50%;transform:translateX(-50%);bottom:81px;display:flex;gap:10px;justify-content:center;max-width:calc(100% - 30px);flex-wrap:wrap}#actions button{background:var(--paper);padding:14px 22px;min-height:50px;border-radius:16px;box-shadow:var(--shadow);white-space:nowrap}#actions button:hover{background:#e3efdf;transform:translateY(-3px)}#actions button[aria-pressed=true]{background:var(--forest);color:var(--paper)}#actions button.women{color:#963650}#actions button.men{color:#28578c}#view-hint{position:absolute;bottom:21px;left:50%;transform:translateX(-50%);margin:0;color:#3d6055;font-size:1rem;white-space:nowrap;pointer-events:none}#hotspots{position:absolute;inset:0;pointer-events:none}.hotspot{position:absolute;transform:translate(-50%,-100%);background:var(--paper);color:var(--ink);font-size:1.1rem;padding:11px 18px;border-radius:16px;box-shadow:0 5px 15px #284f3e24;pointer-events:auto;white-space:nowrap;display:flex;align-items:center;gap:8px}.hotspot:after{content:'';position:absolute;bottom:-7px;left:calc(50% - 7px);width:14px;height:14px;background:inherit;transform:rotate(45deg);border-radius:2px}.hotspot:hover{background:#e4f1e3}.hotspot.women{color:#963650}.hotspot.men{color:#28578c}.hotspot .dot{display:block;background:var(--water);width:9px;height:9px;border-radius:50%}
#star-message{position:absolute;inset:0;z-index:20;background:#23483d66;display:grid;place-items:center;padding:25px}.star-card{background:var(--paper);border-radius:28px;padding:28px 32px;text-align:center;box-shadow:0 18px 70px #233b3a40;max-width:400px;width:100%}.star{width:120px;height:120px;object-fit:contain;filter:drop-shadow(0 5px 0 #d7a33a30)}.star-card p{font-size:1.5rem;line-height:1.5;margin:20px 0 24px}.star-card button{width:100%}#status{position:absolute;left:50%;top:90px;transform:translateX(-50%);background:var(--forest);color:var(--paper);padding:12px 24px;border-radius:24px;pointer-events:none;z-index:8;font-size:1.125rem;opacity:0;transition:opacity .2s;white-space:nowrap}#status.visible{opacity:1}#loading,#error{position:absolute;inset:0;background:#d9edf1;z-index:40;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:25px;text-align:center}#loading p,#error p{font-size:1.25rem}.loading-spring{width:55px;height:55px;border:4px solid #bad9d5;border-top-color:var(--forest);border-radius:50%;animation:spin 1s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}
@media(max-width:650px){.topbar{padding:17px 18px}.brand{font-size:1.3rem;gap:7px}.brand svg{width:30px;height:30px}.top-actions{gap:6px}#who{font-size:1rem;padding:10px 12px}.icon-button{width:44px;height:44px}#choose{top:83px;padding-top:12px}.intro h1{font-size:2.45rem}.intro p{font-size:1rem}.characters{gap:2px;margin:20px 0 23px;width:100%;min-height:230px}.character{padding:10px 7px 12px;min-width:0;width:33.33%}.character img{height:210px;max-width:100%;object-position:bottom}.character[data-id=sian] img{height:155px}.character:before{width:95px;height:37px;bottom:59px}.character .name{font-size:1.25rem;gap:5px}.character small{font-size:.9rem}.character .check{width:19px;height:19px}.scene-heading{left:22px;top:92px}.scene-heading h1{font-size:1.9rem}.scene-heading p{font-size:1rem;max-width:320px}#actions{bottom:93px;gap:7px;width:calc(100% - 28px);max-width:none}#actions button{padding:12px 15px;font-size:1rem;min-height:47px}.scene-controls{left:16px;right:16px;bottom:25px}.soft-button{font-size:1rem;padding:12px 16px}#view-hint{bottom:165px;font-size:.85rem;background:#fffdf4d9;border-radius:15px;padding:6px 12px}.hotspot{font-size:1rem;padding:9px 13px}#status{top:155px;font-size:1rem;max-width:calc(100% - 30px);white-space:normal;text-align:center}.star-card{padding:26px}.star-card p{font-size:1.25rem}}
@media(max-height:680px){#choose{top:75px;padding-top:0}.intro h1{font-size:2rem}.characters{margin:12px 0;min-height:0}.character img{height:175px}.character[data-id=sian] img{height:130px}.small-note{margin:10px 0}.intro p{font-size:1rem}.character .name{margin-top:8px}.scene-heading{top:83px}.scene-heading h1{font-size:1.8rem}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{transition:none!important;animation:none!important}}

@media(max-height:500px){.topbar{padding:10px 18px}.brand{font-size:1.2rem}.brand svg{width:29px;height:29px}.icon-button{width:40px;height:40px}#who{padding:9px 12px;font-size:1rem}.scene-heading{top:66px;left:20px}.scene-heading h1{font-size:1.45rem;margin-bottom:5px}.scene-heading p{font-size:.95rem;max-width:260px}#view-hint{display:none}#actions{bottom:20px;max-width:calc(100% - 200px);gap:6px}#actions button{font-size:.9rem;min-height:42px;padding:10px 12px}.scene-controls{left:12px;right:12px;bottom:16px}.soft-button{font-size:.85rem;padding:10px 12px;min-height:42px}#switch{max-width:100px}.hotspot{font-size:.9rem;padding:8px 11px}#choose{top:65px}.characters{gap:18px}.character img{height:160px}.character[data-id=sian] img{height:120px}.star-card{padding:18px;max-width:360px}.star{height:75px}.star-card p{margin:12px 0;font-size:1.1rem}.star-card .primary{min-height:44px;padding:10px 20px}}
