/* ORBJT · Hangar */
.hg { padding-top: calc(var(--nav-h) + 40px); }
.hg-head { display: flex; justify-content: space-between; align-items: end; gap: 30px; flex-wrap: wrap; margin-bottom: 34px; }
.hg-head .display { font-size: clamp(3rem, 8vw, 6.4rem); margin: 10px 0 0; }
.hg-head .lead { max-width: 440px; margin: 0; }
.hg-grid { display: grid; grid-template-columns: minmax(360px, 520px) 1fr; gap: 34px; align-items: start; }
.hg-stage-col { position: sticky; top: calc(var(--nav-h) + 16px); display: grid; gap: 14px; }

/* ---------- Bühne ---------- */
.hg-stage { position: relative; height: min(72vh, 640px); min-height: 460px; border-radius: 30px; overflow: hidden; perspective: 900px; background: radial-gradient(120% 90% at 50% 10%, #1b1650, #070818 70%); border: 1px solid var(--line2); box-shadow: 0 50px 120px -40px #000, inset 0 0 80px rgba(139, 92, 255, .15); cursor: default; }
.hg-sky { position: absolute; inset: 0; width: 100%; height: 100%; }
.hg-spot { position: absolute; left: 50%; top: -10%; width: 70%; height: 95%; transform: translateX(-50%); background: conic-gradient(from 180deg at 50% 0%, transparent 160deg, rgba(56, 240, 255, .16) 172deg, rgba(56, 240, 255, .22) 180deg, rgba(56, 240, 255, .16) 188deg, transparent 200deg); filter: blur(6px); pointer-events: none; animation: hgSpot 6s ease-in-out infinite; }
@keyframes hgSpot { 50% { opacity: .6; transform: translateX(-50%) rotate(2deg); } }
.hg-tilt { position: absolute; inset: 6% 12% 16%; transform-style: preserve-3d; transition: transform .5s var(--ease-o); }
.hg-tilt.spin { animation: hgSpin 1s var(--ease-o); }
@keyframes hgSpin { from { transform: rotateY(0); } to { transform: rotateY(360deg); } }
.hg-tilt.dance { animation: hgDance 1.4s ease-in-out; }
@keyframes hgDance { 0%, 100% { transform: none; } 15% { transform: translateX(-18px) rotate(-6deg); } 30% { transform: translateX(18px) rotate(6deg); } 45% { transform: translateX(-18px) rotate(-6deg) scaleX(-1); } 60% { transform: translateX(18px) rotate(6deg) scaleX(-1); } 80% { transform: translateY(-20px); } }
.hg-astro { position: absolute; inset: 0; display: grid; place-items: end center; animation: hgFloat 4s ease-in-out infinite; }
.hg-astro { pointer-events: none; }
.hg-hit { position: absolute; border-radius: 46% 46% 42% 42%; pointer-events: auto; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.hg-hit:focus-visible { outline: 2px dashed var(--a1); outline-offset: 4px; }
.hg-astro svg { width: auto; height: 100%; max-width: 100%; filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .55)) drop-shadow(0 0 30px rgba(56, 240, 255, .15)); }
@keyframes hgFloat { 50% { transform: translateY(-10px); } }
.hg-stage.trying .hg-astro svg { filter: drop-shadow(0 0 22px rgba(255, 210, 61, .6)) drop-shadow(0 30px 40px rgba(0, 0, 0, .55)); }
.hg-stage.trying::after { content: attr(data-try); position: absolute; top: 16px; left: 16px; font: 700 12px var(--mono); letter-spacing: .1em; padding: 6px 10px; border-radius: 999px; background: rgba(255, 210, 61, .15); color: #ffd23d; }
.hg-plat { position: absolute; left: 50%; bottom: 7%; width: 64%; height: 60px; transform: translateX(-50%); }
.hg-plat i { position: absolute; inset: 0; border-radius: 50%; border: 2px solid rgba(56, 240, 255, .55); box-shadow: 0 0 30px rgba(56, 240, 255, .35), inset 0 0 30px rgba(56, 240, 255, .25); }
.hg-plat i:nth-child(2) { inset: 14px 12%; border-color: rgba(255, 63, 216, .5); animation: hgPulse 2.4s ease-in-out infinite; }
.hg-plat i:nth-child(3) { inset: -10px -8%; border-style: dashed; border-color: rgba(255, 255, 255, .15); animation: hgRot 18s linear infinite; }
@keyframes hgPulse { 50% { transform: scale(1.08); opacity: .5; } }
@keyframes hgRot { to { transform: rotate(360deg); } }
.hg-name { position: absolute; left: 0; right: 0; bottom: 14px; text-align: center; display: grid; gap: 2px; pointer-events: none; }
.hg-name b { font: 700 18px var(--font-d); }
.hg-name small { font: 500 12px var(--mono); color: var(--muted); }
.hg-emote { position: absolute; left: 50%; top: 9%; transform: translate(-50%, 10px) scale(.6); padding: 10px 16px; border-radius: 18px; background: #fff; color: #07081a; font: 800 16px var(--font); white-space: nowrap; opacity: 0; transition: opacity .25s, transform .45s var(--ease-b); pointer-events: none; }
.hg-emote.on { opacity: 1; transform: translate(-50%, 0) scale(1); }
.hg-actions { display: grid; grid-template-columns: repeat(3, auto) 1fr; gap: 10px; }
.hg-actions .btn { justify-content: center; }
.hg-save.pulse { animation: pulseglow 2s infinite; }
.hg-coll { display: flex; align-items: center; gap: 12px; font: 500 12.5px var(--mono); color: var(--muted); }
.hg-coll .bar { flex: 1; height: 7px; border-radius: 4px; background: rgba(255, 255, 255, .07); overflow: hidden; }
.hg-coll .bar i { display: block; height: 100%; border-radius: inherit; background: var(--grad); transition: width 1s var(--ease-o); }

/* ---------- Werkbank ---------- */
.hg-bench { display: grid; gap: 16px; }
.hg-tabs { display: flex; flex-wrap: wrap; gap: 6px; padding: 6px; border-radius: 20px; background: rgba(255, 255, 255, .035); border: 1px solid var(--line); }
.hg-tabs button { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 14px; color: var(--muted); font-size: 14px; white-space: nowrap; transition: all .3s var(--ease-o); }
.hg-tabs button span { font-size: 18px; transition: transform .4s var(--ease-b); }
.hg-tabs button:hover { color: var(--text); background: rgba(255, 255, 255, .05); }
.hg-tabs button:hover span { transform: scale(1.2) rotate(-8deg); }
.hg-tabs button.on { color: #04050c; background: linear-gradient(115deg, var(--a1), var(--a2)); box-shadow: 0 10px 30px -10px var(--a2); }
.hg-panel { min-height: 420px; animation: stInF .45s var(--ease-o); }
.hg-hint { margin: 0 0 14px; color: var(--dim); font-size: 13.5px; }
.hg-note { margin: 0; color: var(--a4); font-size: 13px; }
.hg-parts { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.hg-part { position: relative; display: grid; justify-items: center; gap: 6px; padding: 12px 10px 14px; border-radius: 20px; background: rgba(255, 255, 255, .035); border: 1px solid var(--line); color: var(--text); transition: transform .35s var(--ease-b), border-color .3s, background .3s, box-shadow .3s; }
.hg-part .pv { width: 110px; height: 110px; border-radius: 18px; overflow: hidden; background: radial-gradient(circle at 50% 35%, #232a63, #0b0d22); display: grid; place-items: center; }
.hg-parts:not(.heads) .pv svg { width: 100%; height: 100%; }
.hg-parts.heads .pv svg { width: 100%; height: 100%; }
.hg-part b { font-size: 13.5px; }
.hg-part small { font: 600 11px var(--mono); color: var(--dim); text-align: center; line-height: 1.35; }
.hg-part:hover { transform: translateY(-4px); border-color: var(--line2); background: rgba(255, 255, 255, .06); }
.hg-part.own small { color: var(--a1); }
.hg-part.on { border-color: var(--a1); background: rgba(56, 240, 255, .08); box-shadow: 0 0 30px -10px var(--a1); }
.hg-part.on small { color: var(--good); }
.hg-part.lock .pv { filter: saturate(.35) brightness(.7); }
.hg-part.lock:hover .pv { filter: none; }
.hg-part.lock.src-shop small { color: #ffd23d; }
.hg-part.nope { animation: padBad .45s; }
.hg-part .new-dot { position: absolute; top: 10px; right: 10px; width: 8px; height: 8px; border-radius: 50%; background: var(--a4); box-shadow: 0 0 8px var(--a4); }
.hg-paint { position: relative; padding: 16px; border-radius: 20px; background: rgba(255, 255, 255, .035); border: 1px solid var(--line); margin-bottom: 12px; transition: border-color .3s; }
.hg-paint.chg { border-color: rgba(255, 210, 61, .45); }
.hg-paint-h { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.hg-paint-h b { font-size: 15px; }
.hg-paint-h .cost { font: 700 11px var(--mono); padding: 3px 8px; border-radius: 999px; background: rgba(255, 210, 61, .15); color: #ffd23d; }
.hg-paint-h i { margin-left: auto; width: 26px; height: 26px; border-radius: 8px; border: 2px solid rgba(255, 255, 255, .3); }
.hg-sw { display: flex; flex-wrap: wrap; gap: 8px; }
.hg-sw button { width: 34px; height: 34px; border-radius: 50%; background: var(--c); border: 2px solid rgba(255, 255, 255, .12); transition: transform .3s var(--ease-b), box-shadow .3s; }
.hg-sw button:hover { transform: scale(1.18); }
.hg-sw button.on { box-shadow: 0 0 0 3px #07081a, 0 0 0 5px var(--a1), 0 0 18px var(--c); transform: scale(1.08); }
.hg-sw .mix { background: conic-gradient(#ff4f6d, #ffd23d, #3dffb0, #38f0ff, #8b5cff, #ff3fd8, #ff4f6d); color: #fff; font-weight: 800; text-shadow: 0 1px 3px #000; }
.hg-mixer { margin-top: 14px; padding: 14px; border-radius: 16px; background: rgba(0, 0, 0, .3); border: 1px solid var(--line2); display: grid; gap: 10px; animation: stInF .4s var(--ease-o); }
.hg-mix-prev { height: 44px; border-radius: 12px; background: var(--c); display: grid; place-items: center; font: 700 13px var(--mono); color: #fff; text-shadow: 0 1px 4px rgba(0, 0, 0, .8); box-shadow: 0 0 30px -8px var(--c); }
.hg-mixer label { display: grid; gap: 6px; font: 600 11px var(--mono); color: var(--muted); letter-spacing: .06em; }
.hg-mixer input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 12px; border-radius: 6px; outline: none; }
.hg-mixer .r-hue { background: linear-gradient(90deg, #f00, #ff0, #0f0, #0ff, #00f, #f0f, #f00); }
.hg-mixer .r-sat { background: linear-gradient(90deg, hsl(var(--h) 0% 50%), hsl(var(--h) 100% 50%)); }
.hg-mixer .r-light { background: linear-gradient(90deg, #000, hsl(var(--h) 90% 50%), #fff); }
.hg-mixer input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 3px solid #07081a; box-shadow: 0 0 0 2px #fff, 0 4px 10px rgba(0, 0, 0, .5); cursor: grab; }
.hg-mixer input[type=range]::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 3px solid #07081a; cursor: grab; }

/* ---------- Wege zu neuen Teilen ---------- */
.hg-how { padding-top: 110px; }
.hg-ways { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.hg-ways .card { display: grid; gap: 10px; align-content: start; padding: 24px; }
.hg-ways .ic { font-size: 34px; }
.hg-ways h3 { margin: 0; font-family: var(--font-d); font-size: 1.3rem; }
.hg-ways p { margin: 0; color: var(--muted); font-size: 14px; }
.hg-ways .btn { justify-self: start; }

/* ---------- Anmelde-Sperre ---------- */
html.hg-locked .hg-grid { filter: blur(6px); pointer-events: none; }
.hg-gate { position: fixed; inset: 0; z-index: 800; display: grid; place-items: center; padding: 20px; background: rgba(3, 4, 10, .55); }
.hg-gate[hidden] { display: none; }
.hg-gate-bg { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.hg-gate-bg span { position: absolute; width: 120px; left: calc(var(--i) * 8.5% - 4%); top: 110%; opacity: .5; animation: hgRise calc(14s + var(--i) * 1.3s) linear infinite; animation-delay: calc(var(--i) * -2.4s); }
.hg-gate-bg svg { width: 100%; }
@keyframes hgRise { to { transform: translateY(-130vh) rotate(360deg); } }
.hg-gate-card { position: relative; max-width: 560px; padding: 34px; border-radius: 30px; text-align: center; display: grid; gap: 14px; background: linear-gradient(180deg, rgba(22, 26, 56, .92), rgba(9, 11, 28, .95)); border: 1px solid var(--line2); box-shadow: 0 50px 120px -30px #000; backdrop-filter: blur(16px); }
.hg-gate-card .h2 { margin: 0; }

@media (max-width: 1100px) {
  .hg-grid { grid-template-columns: 1fr; }
  .hg-stage-col { position: static; }
  .hg-ways { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .hg-stage { height: 440px; min-height: 0; }
  .hg-actions { grid-template-columns: 1fr 1fr; }
  .hg-parts { grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); }
  .hg-part .pv { width: 88px; height: 88px; }
  .hg-ways { grid-template-columns: 1fr; }
}
