/* ================= 3D-Ebene, Glanz, Loadout-Generator ================= */
#bg3d { position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: .9; }
.shell { position: relative; z-index: 1; }
.globe-tip { position: absolute; z-index: 5; pointer-events: none; background: rgba(17, 19, 15, .94); border: 1px solid var(--line-2); border-radius: 8px; padding: 7px 10px; font-size: 11.5px; line-height: 1.5; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.globe-tip b { color: var(--amber-2); } .globe-tip span { color: var(--muted); font-family: var(--font-mono); }
.globe-host { position: relative; height: 340px; }

/* Glanz + Tiefe */
[data-tilt] { transition: transform .35s cubic-bezier(.2, .7, .3, 1), box-shadow .35s; transform-style: preserve-3d; will-change: transform; }
[data-tilt]::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .3s; background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, .07), transparent 45%); }
[data-tilt]:hover::after { opacity: 1; }
[data-tilt]:hover { box-shadow: 0 24px 60px rgba(0, 0, 0, .5), 0 0 0 1px rgba(226, 172, 43, .18); }
.tile { transition: transform .2s, border-color .2s; } .tile:hover { transform: translateY(-3px); border-color: var(--line-2); }
.role-card { transform-style: preserve-3d; }

/* Konfigurator */
.cfg-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; }
.cfg-box { background: rgba(17, 19, 15, .55); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.cfg-label { font-size: 10.5px; letter-spacing: 1.6px; text-transform: uppercase; color: var(--faint); margin-bottom: 8px; display: flex; justify-content: space-between; }
.cfg-label b { color: var(--amber-2); font-size: 15px; letter-spacing: 0; }
.cfg-box select { width: 100%; }
.cfg .role-card .ds { min-height: 32px; }

/* Builds */
.builds { display: grid; grid-template-columns: repeat(auto-fit, minmax(370px, 1fr)); gap: 16px; align-items: start; }
.builds.busy { opacity: .45; filter: blur(1px); transition: opacity .2s; }
.build { position: relative; background: linear-gradient(180deg, rgba(255, 255, 255, .025), transparent 38%), var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 16px; box-shadow: var(--shadow); overflow: hidden; }
.build.top { border-color: rgba(226, 172, 43, .45); box-shadow: 0 0 0 1px rgba(226, 172, 43, .25), 0 18px 50px rgba(0, 0, 0, .45); }
.build-badge { position: absolute; top: 0; right: 0; background: linear-gradient(135deg, var(--amber), #ff7a1a); color: #16110a; font: 700 10px/1 var(--font-head); letter-spacing: 1.6px; text-transform: uppercase; padding: 6px 12px; border-radius: 0 14px 0 10px; }
.build-head { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-bottom: 12px; }
.build-style { display: flex; gap: 10px; align-items: center; }
.bs-ic { font-size: 26px; color: var(--amber); }
.bs-name { font: 700 19px/1.1 var(--font-head); text-transform: uppercase; letter-spacing: 1.2px; color: #fff; }
.bs-desc { font-size: 11.5px; color: var(--muted); max-width: 220px; }
.weapon-hero { background: linear-gradient(135deg, rgba(226, 172, 43, .09), rgba(56, 189, 248, .04)); border: 1px solid var(--line-2); border-radius: 12px; padding: 12px 14px; margin-bottom: 12px; }
.wh-top { display: flex; justify-content: space-between; font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: 1.2px; }
.wh-name { font: 700 27px/1.1 var(--font-head); color: #fff; letter-spacing: .5px; margin: 3px 0; }
.wh-meta { font-size: 11.5px; color: var(--muted); }
.wh-attrs { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 8px; }
.slot-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; margin-bottom: 12px; }
.slot-card { background: var(--bg-2); border: 1px solid var(--line); border-radius: 9px; padding: 8px 10px; transition: border-color .2s, transform .2s; }
.slot-card:hover { border-color: var(--line-2); transform: translateY(-2px); }
.slot-head { display: flex; align-items: center; gap: 6px; font-size: 10px; text-transform: uppercase; letter-spacing: 1.2px; color: var(--faint); }
.slot-ic { color: var(--cyan); font-size: 13px; } .slot-name { flex: 1; } .slot-price { color: var(--muted); }
.slot-item { font-weight: 600; font-size: 12.5px; margin: 3px 0 5px; line-height: 1.3; }
.slot-effs { display: flex; flex-wrap: wrap; gap: 3px; }
.eff { font-size: 9.5px; padding: 1px 5px; border-radius: 4px; background: rgba(255, 255, 255, .05); color: var(--muted); white-space: nowrap; }
.eff.up { color: #9ff0cd; background: rgba(61, 220, 151, .12); } .eff.down { color: #ffb3b3; background: rgba(255, 92, 92, .12); }
.kit-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 6px; margin-bottom: 10px; }
.kit { display: flex; align-items: baseline; gap: 6px; font-size: 12px; padding: 5px 8px; background: var(--bg-2); border-radius: 7px; border: 1px solid var(--line); }
.kit .k { color: var(--faint); font-size: 9.5px; text-transform: uppercase; letter-spacing: 1px; min-width: 56px; }
.kit .v { flex: 1; font-weight: 600; } .kit .p { color: var(--muted); font-size: 11px; }
.gear-row { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 10px; }
.gear-chip { font-size: 11.5px; padding: 4px 9px; border-radius: 999px; background: rgba(61, 220, 151, .1); border: 1px solid rgba(61, 220, 151, .3); color: #b6f5d8; }
.gear-chip b { color: #fff; font-weight: 600; margin-left: 3px; }
.ammo-row { display: flex; align-items: center; gap: 10px; padding: 8px 12px; background: var(--bg-2); border: 1px solid var(--line); border-radius: 9px; margin-bottom: 12px; font-size: 12.5px; }
.ammo-row .a-ic { font-size: 18px; color: var(--amber); } .ammo-row > div { flex: 1; }
.build-foot { border-top: 1px solid var(--line); padding-top: 10px; }
.cost-legend { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; font-size: 10.5px; color: var(--muted); }
.cost-legend i { display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 4px; }
.big-cost { font: 700 24px var(--font-head); color: var(--amber-2); }
@media (max-width: 760px) { .builds { grid-template-columns: 1fr; } .bs-desc { max-width: none; } }
