html,body{margin:0;width:100%;height:100%;overflow:hidden}body{background:linear-gradient(180deg,#e4e9eb,#f4eee4 58%,#dedbd4)}#scene{display:block;width:100%;height:100%}#ui{position:absolute;inset:0;pointer-events:none;z-index:2}body:after{content:"";position:fixed;inset:0;z-index:1;pointer-events:none;background:radial-gradient(ellipse at center,#140c0800 55%,#10090729 78%,#08050461)}#scene{touch-action:none}.hud{position:absolute;top:max(16px,env(safe-area-inset-top));left:max(16px,env(safe-area-inset-left));padding:4px;color:#3a342c;text-shadow:0 0 12px rgba(244,238,228,.9)}.hud-title{font-family:Georgia,Times New Roman,serif;font-weight:400;font-size:clamp(20px,3.2vw,30px);letter-spacing:.01em}.hud-count{margin-top:2px;font-family:system-ui,-apple-system,Segoe UI,sans-serif;font-size:13px;letter-spacing:.08em;opacity:.7}.hud-done{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);padding:16px 28px;border-radius:18px;font-family:Georgia,Times New Roman,serif;font-weight:300;font-size:clamp(20px,4vw,32px);color:#3a342c;background:#fffcf68c;backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);opacity:0;transition:opacity 1.2s ease;text-align:center;pointer-events:none}.hud-done.show{opacity:1}.tray{position:absolute;left:50%;transform:translate(-50%);bottom:max(12px,env(safe-area-inset-bottom));box-sizing:border-box;height:96px;max-width:calc(100vw - 24px);padding:8px 10px;border-radius:22px;display:flex;align-items:center;justify-content:center;gap:8px;pointer-events:auto;overflow:hidden;background:#fffcf680;border:1px solid rgba(255,255,255,.55);box-shadow:0 6px 24px #463a281f;backdrop-filter:blur(14px) saturate(1.2);-webkit-backdrop-filter:blur(14px) saturate(1.2);transition:opacity .8s ease}.tray.empty{opacity:0;pointer-events:none}.tile{flex:0 0 auto;box-sizing:border-box;width:0;min-height:64px;height:80px;margin:0 -4px;padding:0;border:0;border-radius:16px;overflow:hidden;opacity:0;cursor:pointer;font:inherit;color:#3a342c;background:#ffffff8c;-webkit-tap-highlight-color:transparent;touch-action:manipulation;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;transition:width .4s ease,margin .4s ease,opacity .4s ease,background .2s ease,transform .2s ease}.tile.show{width:72px;margin:0;opacity:1}.tile:active{transform:scale(.96);background:#ffffffd9}.tile img{width:48px;height:48px;object-fit:contain;pointer-events:none;user-select:none}.tile span{max-width:68px;font-family:system-ui,-apple-system,Segoe UI,sans-serif;font-size:10.5px;line-height:1.1;text-align:center;letter-spacing:.02em;pointer-events:none}@media (pointer: fine){.tray{height:88px}.tile{height:72px}.tile.show{width:64px}.tile img{width:40px;height:40px}}.hud,.hud-done{color:#f6eee2;text-shadow:0 1px 8px rgba(20,12,8,.55)}.hud-done{top:auto;bottom:max(28px,env(safe-area-inset-bottom));transform:translate(-50%);padding:10px 22px;font-size:clamp(17px,2.6vw,24px);white-space:nowrap;background:#1e140e59}.hud-done.show{transition-delay:2.2s}.hud-tip{position:absolute;left:50%;top:max(64px,calc(env(safe-area-inset-top) + 48px));transform:translate(-50%);padding:8px 18px;border-radius:16px;max-width:86vw;text-align:center;pointer-events:none;font-family:system-ui,-apple-system,Segoe UI,sans-serif;font-size:14px;letter-spacing:.02em;color:#f6eee2;text-shadow:0 1px 8px rgba(20,12,8,.55);background:#1e140e59;backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);opacity:0;transition:opacity .6s ease}.hud-tip.show{opacity:1}.rotate-ring{position:fixed;z-index:5;box-sizing:border-box;border:1.5px solid rgba(255,226,176,.85);border-radius:50%;transform:translate(-50%,-50%);touch-action:none;cursor:grab;background:transparent;filter:drop-shadow(0 0 4px rgba(255,194,122,.4));clip-path:polygon(evenodd,0 0,100% 0,100% 100%,0 100%,0 0,12% 12%,12% 88%,88% 88%,88% 12%,12% 12%)}.rotate-ring[hidden]{display:none}.rotate-ring:active{cursor:grabbing}@media (orientation: portrait){.tray{width:min(360px,calc(100vw - 24px));height:204px;padding:10px;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));grid-template-rows:repeat(2,88px);gap:6px}.tile,.tile.show{width:100%;height:88px;min-width:0;margin:0}.tile:not(.show){display:none}.tile img{width:52px;height:52px}.tile span{max-width:100%;padding:0 3px}.hud{left:50%;transform:translate(-50%);text-align:center;width:calc(100% - 24px)}}
