/* =========================================================================
   Galaxie (8.1) - Spielerwelten live
   ========================================================================= */
.gx-headrow h1 { background: linear-gradient(90deg, #ffffff, #ffd27a 30%, #e05cff 65%, #2fe0e4); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
#gx-stats .on { color: #50ffa0; }

.gx-stage { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 14px; margin-bottom: 16px; }
.gx-map { position: relative; height: clamp(460px, 70vh, 760px); border-radius: 20px; overflow: hidden; background: #020310;
          border: 1px solid rgba(160, 140, 255, .28); box-shadow: 0 30px 80px -40px rgba(224, 92, 255, .55), inset 0 0 80px rgba(0, 0, 0, .6); }
.gx-map canvas { display: block; width: 100%; height: 100%; touch-action: none; user-select: none; -webkit-user-select: none; }
.gx-map::after { content: ''; position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
                 background: radial-gradient(130% 100% at 50% 50%, transparent 65%, rgba(0, 0, 0, .55)); }

.gx-search { position: absolute; top: 10px; left: 50%; transform: translateX(-50%); z-index: 3; width: min(340px, calc(100% - 200px)); }
.gx-search .input { width: 100%; padding: 8px 14px; border-radius: 999px; font-size: .82rem; background: rgba(8, 10, 26, .78); border: 1px solid rgba(160, 180, 255, .3); backdrop-filter: blur(8px); }
.gx-results { margin-top: 6px; display: grid; gap: 2px; padding: 6px; border-radius: 14px; background: rgba(8, 11, 26, .95); border: 1px solid rgba(120, 180, 255, .3); box-shadow: 0 16px 40px rgba(0, 0, 0, .5); }
.gx-results[hidden] { display: none; }
.gx-results button { all: unset; cursor: pointer; padding: 7px 10px; border-radius: 9px; font-size: .84rem; color: #fff; }
.gx-results button:hover, .gx-results button:focus-visible { background: rgba(127, 243, 255, .12); }
.gx-results small { color: var(--text-dim); margin-left: 6px; }
.gx-results p { margin: 6px 8px; font-size: .8rem; color: var(--text-dim); }

.gx-ctrl { position: absolute; right: 12px; top: 12px; z-index: 3; display: grid; gap: 6px; }
.gx-ctrl button { width: 38px; height: 38px; border-radius: 12px; font-size: 1.05rem; color: #fff; cursor: pointer;
                  background: rgba(8, 10, 26, .78); border: 1px solid rgba(160, 180, 255, .3); backdrop-filter: blur(8px); }
.gx-ctrl button:hover { border-color: rgba(127, 243, 255, .7); box-shadow: 0 0 14px rgba(127, 243, 255, .3); }

.gx-legend { position: absolute; left: 12px; bottom: 10px; z-index: 2; display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: .66rem; letter-spacing: .6px; text-transform: uppercase; color: var(--text-dim); pointer-events: none; }
.gx-legend i { display: inline-block; width: 9px; height: 9px; margin-right: 4px; vertical-align: -1px; }
.gx-legend i.pvp { background: #ff4d6a; transform: rotate(45deg) scale(.8); box-shadow: 0 0 6px #ff4d6a; }
.gx-legend i.sh { border: 1.5px dashed #78f0ff; border-radius: 50%; }

/* ---------- Seitenleiste ---------- */
.gx-side { display: flex; flex-direction: column; gap: 12px; min-height: 0; max-height: clamp(460px, 70vh, 760px); overflow: auto; }
.gx-card { border-radius: 18px; background: linear-gradient(180deg, rgba(12, 16, 34, .95), rgba(8, 10, 22, .95)); border: 1px solid var(--line); overflow: hidden; }
.gx-card-h { padding: 11px 14px; font-family: var(--font-display); letter-spacing: 1.2px; color: #fff; border-bottom: 1px solid var(--line); background: rgba(255, 255, 255, .02); }
.gx-mine { padding: 12px 14px; display: grid; gap: 10px; background: radial-gradient(120% 90% at 0% 0%, rgba(224, 92, 255, .14), transparent 60%), linear-gradient(180deg, rgba(12, 16, 34, .95), rgba(8, 10, 22, .95)); }
.gx-mine-top { display: grid; grid-template-columns: 96px 1fr; gap: 12px; align-items: center; }
.gx-mine-top small { font-size: .62rem; letter-spacing: 1.4px; text-transform: uppercase; color: var(--text-dim); }
.gx-mine-top b { display: block; font-family: var(--font-display); font-size: 1.15rem; color: #ffd27a; margin: 2px 0 8px; word-break: break-word; }
.gx-mine-btns { display: flex; gap: 6px; flex-wrap: wrap; }
.gx-world { display: block; overflow: visible; }
.gx-pvp { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: rgba(255, 255, 255, .03); border: 1px solid var(--line); }
.gx-pvp.on { border-color: rgba(255, 77, 106, .55); background: rgba(60, 8, 18, .45); box-shadow: inset 0 0 22px rgba(255, 77, 106, .15); }
.gx-pvp b { display: block; color: #fff; font-size: .9rem; }
.gx-pvp small { display: block; color: var(--text-dim); font-size: .72rem; line-height: 1.35; margin-top: 2px; }
.gx-pvp .btn { flex-shrink: 0; }
.gx-pvpstats { display: flex; flex-wrap: wrap; gap: 6px; }
.gx-pvpstats span { padding: 4px 9px; border-radius: 999px; font-size: .72rem; color: var(--text); background: rgba(255, 255, 255, .04); border: 1px solid var(--line); }
.gx-pvpstats b { color: #ffd27a; }
.gx-pvpstats .sh { color: #9df4ff; border-color: rgba(120, 240, 255, .4); }
.gx-dim { margin: 0; font-size: .76rem; line-height: 1.45; color: var(--text-dim); }
.gx-feed { max-height: 260px; overflow: auto; padding: 4px 2px 8px; }
.gx-glory { list-style: none; margin: 0; padding: 8px 12px 12px; display: grid; gap: 4px; }
.gx-glory li { display: grid; grid-template-columns: 22px 1fr auto; gap: 6px; font-size: .82rem; color: var(--text); }
.gx-glory li span { color: var(--text-dim); }
.gx-glory a { color: #fff; text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gx-glory a:hover { color: #7ff3ff; }
.gx-glory b { color: #ffd27a; }

/* ---------- Weltkarte (Modal) ---------- */
.gx-pc { display: grid; gap: 14px; }
.gx-pc-top { display: grid; grid-template-columns: 132px 1fr; gap: 16px; align-items: center; }
.gx-kick { font-size: .64rem; letter-spacing: 2px; text-transform: uppercase; color: #9fd8ff; }
.gx-pc h2 { margin: 2px 0 2px; font-family: var(--font-display); font-size: 1.6rem; color: #fff; line-height: 1.1; word-break: break-word; }
.gx-owner { margin: 0 0 4px; font-size: .82rem; color: var(--text-dim); }
.gx-owner b { color: #fff; }
.gx-state { margin: 0 0 8px; font-size: .78rem; color: var(--text); }
.gx-state em { font-style: normal; }
.gx-state .pvp { color: #ff8a9b; }
.gx-state .sh { color: #9df4ff; }
.gx-chips { display: flex; flex-wrap: wrap; gap: 5px; }
.gx-chips span { padding: 3px 9px; border-radius: 999px; font-size: .72rem; background: rgba(255, 255, 255, .05); border: 1px solid var(--line); color: var(--text); }
.gx-pc-btns { display: flex; flex-wrap: wrap; gap: 6px; }
.gx-sec { padding: 12px 14px; border-radius: 14px; background: rgba(255, 255, 255, .025); border: 1px solid var(--line); display: grid; gap: 9px; }
.gx-sec-h { font-family: var(--font-display); letter-spacing: 1px; color: #fff; }
.gx-gift { display: grid; gap: 8px; }
.gx-row { display: flex; gap: 6px; }
.gx-row[hidden] { display: none; }
.gx-row .input, .gx-row select { flex: 1; min-width: 0; }
.gx-seg { display: inline-flex; padding: 3px; border-radius: 999px; background: rgba(0, 0, 0, .3); border: 1px solid var(--line); justify-self: start; }
.gx-seg button { all: unset; cursor: pointer; padding: 5px 12px; border-radius: 999px; font-size: .78rem; color: var(--text-dim); }
.gx-seg button.on { background: rgba(255, 197, 66, .18); color: #ffd27a; box-shadow: inset 0 0 0 1px rgba(255, 197, 66, .45); }
.gx-raid { border-color: rgba(255, 77, 106, .35); background: rgba(50, 6, 14, .35); }
.gx-odds { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.gx-odds div { padding: 6px 8px; border-radius: 10px; background: rgba(0, 0, 0, .25); border: 1px solid rgba(255, 77, 106, .2); }
.gx-odds small { display: block; font-size: .6rem; letter-spacing: 1px; text-transform: uppercase; color: var(--text-dim); }
.gx-odds b { color: #fff; font-size: .92rem; }
.gx-why { margin: 0; font-size: .78rem; line-height: 1.45; color: #ffb3c0; }

/* ---------- Editor ---------- */
.gx-ed { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 16px; }
.gx-ed .modal-actions { grid-column: 1 / -1; }
.gx-ed-prev { display: grid; justify-items: center; align-content: start; gap: 8px; padding: 12px; border-radius: 16px;
              background: radial-gradient(circle at 50% 40%, rgba(120, 90, 255, .25), rgba(4, 5, 20, .9) 70%); border: 1px solid rgba(160, 140, 255, .3); }
.gx-ed-prev .input { width: 100%; text-align: center; }
.gx-ed-prev small { font-size: .68rem; color: var(--text-dim); text-align: center; }
.gx-ed-opts { display: grid; gap: 8px; max-height: min(62vh, 560px); overflow: auto; padding-right: 4px; }
.gx-ed-h { font-family: var(--font-display); letter-spacing: 1px; color: #fff; margin-top: 4px; }
.gx-ed-h small { display: block; font-family: inherit; letter-spacing: 0; font-size: .7rem; color: var(--text-dim); }
.gx-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 6px; }
.gx-grid.sw { grid-template-columns: repeat(auto-fill, minmax(74px, 1fr)); }
.gx-grid.rg { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); }
.gx-opt { position: relative; display: grid; justify-items: center; gap: 4px; padding: 7px 4px; border-radius: 12px; cursor: pointer; color: var(--text);
          background: rgba(255, 255, 255, .03); border: 1px solid var(--line); font: inherit; font-size: .7rem; line-height: 1.2; text-align: center; }
.gx-opt:hover { border-color: rgba(127, 243, 255, .5); }
.gx-opt.on { border-color: #ffd27a; background: rgba(255, 210, 122, .1); box-shadow: 0 0 14px rgba(255, 210, 122, .25); color: #fff; }
.gx-opt.locked { opacity: .45; }
.gx-opt.locked i { position: absolute; inset: 0; display: none; place-items: center; padding: 4px; border-radius: 12px; font-style: normal; font-size: .62rem; background: rgba(4, 6, 18, .92); color: #fff; }
.gx-opt.locked:hover i { display: grid; }
.gx-opt u { display: block; width: 32px; height: 32px; border-radius: 50%; box-shadow: 0 0 10px rgba(255, 255, 255, .15); }
.gx-opt svg { width: 44px; height: 44px; }
.gx-grid.rg .gx-opt { padding: 9px 6px; }
.gx-moons { display: flex; gap: 6px; }
.gx-moon { min-width: 54px; padding: 7px 10px; border-radius: 12px; cursor: pointer; color: #fff; background: rgba(255, 255, 255, .03); border: 1px solid var(--line); font: inherit; }
.gx-moon.on { border-color: #ffd27a; background: rgba(255, 210, 122, .1); }
.gx-moon.locked { opacity: .35; cursor: not-allowed; }

@media (max-width: 1100px) {
    .gx-stage { grid-template-columns: 1fr; }
    .gx-side { max-height: none; }
}
@media (max-width: 640px) {
    .gx-map { height: 68vh; border-radius: 16px; }
    .gx-search { left: 12px; transform: none; width: calc(100% - 70px); top: 46px; }
    .gx-ctrl { top: 10px; right: 10px; }
    .gx-ctrl button { width: 34px; height: 34px; }
    .gx-legend { display: none; }
    .gx-pc-top { grid-template-columns: 96px 1fr; gap: 10px; }
    .gx-pc-top .gx-world { width: 96px; height: 96px; }
    .gx-pc h2 { font-size: 1.25rem; }
    .gx-odds { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .gx-ed { grid-template-columns: 1fr; }
    .gx-ed-prev .gx-world { width: 140px; height: 140px; }
    .gx-ed-opts { max-height: none; }
}
.modal:has(.gx-ed) { max-width: 880px; width: calc(100vw - 32px); }
.modal:has(.gx-pc) { max-width: min(620px, 96vw); }

/* ---- Frostfest: Lichterkette, Schneeflocken-Monde, Polarlicht, eingeschneit, Schneeballschlacht */
.gx-lamp { animation: gxLamp 2s ease-in-out infinite; filter: drop-shadow(0 0 2px var(--lc, #ffd23f)); }
@keyframes gxLamp { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
.gx-flake { animation: gxFlake 9s linear infinite; transform-box: fill-box; transform-origin: center; }
@keyframes gxFlake { to { transform: rotate(360deg); } }
.gx-aurora { animation: gxAurora 7s ease-in-out infinite alternate; transform-origin: 100px 110px; }
@keyframes gxAurora { from { transform: skewX(-7deg) scaleY(.92); opacity: .8; } to { transform: skewX(7deg) scaleY(1.06); opacity: 1; } }
.gx-snowfall circle { animation: gxSnow 2.6s ease-in-out infinite alternate; }
@keyframes gxSnow { from { transform: translateY(-3px); opacity: .5; } to { transform: translateY(4px); opacity: 1; } }
.gx-ffsec { border-color: rgba(160, 220, 255, .4) !important; }
.btn.gx-snowbtn { background: linear-gradient(180deg, rgba(190, 230, 255, .38), rgba(120, 190, 255, .1)); border-color: rgba(200, 235, 255, .7); }
.btn.gx-snowbtn.revenge { background: linear-gradient(180deg, rgba(120, 200, 255, .5), rgba(90, 140, 255, .15)); border-color: #bfe8ff; box-shadow: 0 0 14px rgba(150, 210, 255, .35); }
.gx-snowball { position: fixed; z-index: 9000; pointer-events: none; width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff, #dbeeff 60%, #a9cbe8); box-shadow: 0 0 8px rgba(200, 235, 255, .8); animation: gxThrow .52s cubic-bezier(.3, .1, .6, 1) both; }
@keyframes gxThrow { 0% { transform: translate(0, 0) scale(.7); } 50% { transform: translate(calc(var(--dx) * .5), calc(var(--dy) * .5 - 40px)) scale(1.1); } 100% { transform: translate(var(--dx), var(--dy)) scale(.9); } }
.gx-snowpuff { position: fixed; z-index: 9000; pointer-events: none; width: 60px; height: 60px; margin: -30px 0 0 -30px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, .95) 0 20%, rgba(220, 240, 255, .6) 45%, transparent 70%); animation: gxPuff .7s ease-out both; }
@keyframes gxPuff { from { transform: scale(.3); opacity: 1; } to { transform: scale(1.6); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .gx-lamp, .gx-flake, .gx-aurora, .gx-snowfall circle { animation: none; } }
