*{box-sizing:border-box}html,body{width:100%;height:100%;overflow:hidden}body{color:#e8e6d9;overscroll-behavior:none;-webkit-user-select:none;user-select:none;touch-action:none;background:#0b0c10;min-height:100dvh;margin:0;font-family:ui-sans-serif,system-ui,-apple-system,Segoe UI,sans-serif}#app{width:100%;min-height:100dvh;position:fixed;inset:0;overflow:hidden}canvas{cursor:crosshair;touch-action:none;background:#14161c;width:100vw;height:100dvh;display:block}.pack-synergy-overlay{z-index:4;pointer-events:none;font-family:Galmuri11,monospace;position:fixed;inset:0;overflow:hidden}.pack-synergy-link{--synergy-color:#ffd86b;transform-origin:0;opacity:.92;height:4px;filter:drop-shadow(0 0 4px color-mix(in srgb, var(--synergy-color) 75%, transparent));position:fixed}.pack-synergy-link:before,.pack-synergy-link:after{content:"";position:absolute;inset:0}.pack-synergy-link:before{background:var(--synergy-color);clip-path:polygon(0 25%,100% 25%,100% 75%,0 75%)}.pack-synergy-link:after{background:repeating-linear-gradient(90deg,#0000 0 7px,#fffffff2 7px 10px,#0000 10px 15px);animation:.8s linear infinite pack-synergy-flow}.pack-synergy-link[data-kind=tag]{opacity:.82;height:3px}.pack-synergy-link[data-kind=tag]:before{background:repeating-linear-gradient(90deg, var(--synergy-color) 0 5px, transparent 5px 9px)}.pack-synergy-link[data-kind=fusion]{opacity:1;height:6px}.pack-synergy-link[data-kind=fusion]:before{background:linear-gradient(var(--synergy-color), var(--synergy-color)) 0 0 / 100% 2px no-repeat, linear-gradient(var(--synergy-color), var(--synergy-color)) 0 100% / 100% 2px no-repeat}.pack-synergy-link[data-kind=potential]{opacity:.76;height:3px}.pack-synergy-link[data-kind=potential]:before{background:repeating-linear-gradient(90deg,#58a0ff 0 4px,#0000 4px 10px)}.pack-synergy-badge{color:#fff3c4;text-align:center;white-space:nowrap;background:#0a0c12eb;border:2px solid #ffd86b;min-width:96px;padding:5px 9px 4px;font-size:14px;font-weight:700;line-height:1;position:fixed;transform:translate(-50%,-100%);box-shadow:3px 3px #000000a6}.pack-synergy-badge[data-armed=off]{color:#d7dbe4;border-color:#9aa0ad;animation:1.1s ease-in-out infinite pack-fusion-pulse}.pack-synergy-badge[data-armed=on]{color:#fff3c4;border-color:#ffd86b;box-shadow:3px 3px #000000a6,0 0 10px #ffd86b8c}.pack-synergy-link[data-kind=fusion][data-armed=off]{opacity:.55}@keyframes pack-synergy-flow{to{transform:translate(15px)}}@keyframes pack-fusion-pulse{0%,to{box-shadow:3px 3px #000000a6}50%{box-shadow:3px 3px #000000a6,0 0 12px #9aa0ade6}}@media (prefers-reduced-motion:reduce){.pack-synergy-link:after,.pack-synergy-badge[data-armed=off]{animation:none}}body.reduce-motion .pack-synergy-link:after,body.reduce-motion .pack-synergy-badge[data-armed=off]{animation:none}.footer-hint{left:50%;bottom:max(10px, env(safe-area-inset-bottom));color:#6f7480;letter-spacing:.04em;-webkit-user-select:none;user-select:none;pointer-events:none;font-size:14px;position:fixed;transform:translate(-50%)}.orientation-notice,body:not(.touch-device) .mobile-controls{display:none}body.touch-device .mobile-controls{left:50%;bottom:max(14px, env(safe-area-inset-bottom));-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);touch-action:none;pointer-events:auto;background:#07090d75;border:1px solid #e8e6d924;border-radius:12px;grid-template-columns:132px 1fr;align-items:center;gap:14px;width:min(100vw - 20px,560px);padding:10px;display:grid;position:fixed;transform:translate(-50%)}body.touch-device .footer-hint{display:none}body.touch-device canvas{cursor:default}body.touch-device .stick{background:radial-gradient(circle,#e8e6d91a 0 24%,#0000 25%),#12151cc7;border:1px solid #e8e6d938;border-radius:50%;width:132px;height:132px;position:relative;box-shadow:inset 0 0 0 1px #ffffff0a}body.touch-device .stick-knob{background:#d5c47a;border-radius:50%;width:56px;height:56px;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);box-shadow:0 8px 20px #00000061,inset 0 0 0 2px #fff3}body.touch-device .mobile-buttons{grid-template-columns:repeat(2,minmax(72px,1fr));gap:10px;display:grid}body.touch-device .mobile-buttons button{color:#f2efd8;letter-spacing:0;touch-action:none;background:#202632;border:1px solid #e8e6d92e;border-radius:8px;min-height:48px;font:700 14px ui-sans-serif,system-ui,-apple-system,Segoe UI,sans-serif}body.touch-device .mobile-buttons button:active{background:#313a4b;transform:translateY(1px)}@media (hover:none),(pointer:coarse),(width<=760px){canvas{cursor:default}.footer-hint{display:none}}@media (width<=430px) and (orientation:portrait){.orientation-notice{z-index:20;color:#f2efdf;text-align:center;pointer-events:auto;background:#07090de6;place-items:center;padding:28px;font:700 16px/1.55 ui-sans-serif,system-ui,-apple-system,Segoe UI,sans-serif;display:grid;position:fixed;inset:0}body.touch-device .mobile-controls{grid-template-columns:112px 1fr;gap:10px}body.touch-device .stick{width:112px;height:112px}body.touch-device .stick-knob{width:50px;height:50px}body.touch-device .mobile-buttons{gap:8px}body.touch-device .mobile-buttons button{min-height:44px;font-size:14px}}@media (orientation:landscape){body.touch-device .mobile-controls{left:auto;right:max(12px, env(safe-area-inset-right));bottom:max(12px, env(safe-area-inset-bottom));grid-template-columns:118px 1fr;width:min(48vw,520px);transform:none}body.touch-device .stick{width:118px;height:118px}body.touch-device .stick-knob{width:52px;height:52px}}
