/* =========================================================
   NosGenesis – Designsystem
   Nachtblau + Gold, Cinzel fuer Ueberschriften, Glas-Flaechen
   ========================================================= */

@font-face {
  font-family: "Cinzel";
  src: url(fonts/Cinzel.ttf) format("truetype");
  font-weight: 400 900;
  font-display: swap;
}

:root {
  --bg: #0a0e20;
  --bg-2: #10163a;
  --surface: rgba(20, 26, 60, .72);
  --surface-strong: rgba(24, 31, 70, .92);
  --line: rgba(242, 197, 92, .22);
  --line-strong: rgba(242, 197, 92, .5);
  --gold: #f2c55c;
  --gold-2: #d99a2b;
  --gold-ink: #2a1a06;
  --text: #e9ecfb;
  --muted: #a3abd4;
  --ok: #4cc26a;
  --bad: #e2574a;
  --radius: 16px;
  --display: "Cinzel", Georgia, "Times New Roman", serif;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --shadow: 0 18px 50px rgba(0, 0, 0, .45);
}

* { box-sizing: border-box; }
html { background: var(--bg); scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.65 var(--body); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: var(--gold); text-decoration-thickness: 1px; text-underline-offset: 3px; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; letter-spacing: .02em; margin: 0; }
[hidden] { display: none !important; }
.container { width: min(1160px, 100% - 32px); margin-inline: auto; }
.eyebrow { font: 700 12px/1 var(--body); letter-spacing: .28em; text-transform: uppercase; color: var(--gold); }
.muted { color: var(--muted); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 28px; border-radius: 999px; border: 1px solid transparent;
  font: 700 15px/1 var(--body); letter-spacing: .04em; text-decoration: none; cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
}
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .6; cursor: wait; }
.btn-gold { color: var(--gold-ink); background: linear-gradient(180deg, #ffdf8a, var(--gold-2)); box-shadow: 0 8px 24px rgba(217, 154, 43, .35), inset 0 1px 0 rgba(255, 255, 255, .5); }
.btn-gold:hover { box-shadow: 0 10px 34px rgba(242, 197, 92, .55), inset 0 1px 0 rgba(255, 255, 255, .5); transform: translateY(-2px); }
.btn-ghost { color: var(--text); border-color: var(--line-strong); background: rgba(10, 14, 32, .35); backdrop-filter: blur(6px); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }
.btn-sm { padding: 9px 18px; font-size: 13px; }
.btn-block { width: 100%; }

/* ---------- Kopfleiste ---------- */
.topbar {
  position: fixed; inset: 0 0 auto; z-index: 50;
  transition: background .3s ease, border-color .3s ease;
  border-bottom: 1px solid transparent;
}
.topbar.scrolled { background: rgba(10, 14, 32, .85); backdrop-filter: blur(14px); border-bottom-color: var(--line); }
.topbar .container { display: flex; align-items: center; gap: 28px; height: 70px; }
.brand { font: 900 22px/1 var(--display); color: var(--gold); text-decoration: none; letter-spacing: .08em; text-shadow: 0 2px 12px rgba(242, 197, 92, .35); }
.nav { display: flex; gap: 6px; margin-left: auto; }
.nav a { padding: 8px 14px; border-radius: 999px; color: var(--text); text-decoration: none; font-size: 14px; font-weight: 600; opacity: .85; }
.nav a:hover, .nav a[aria-current="page"] { opacity: 1; color: var(--gold); background: rgba(242, 197, 92, .08); }
.menu { display: none; margin-left: auto; position: relative; }
.menu summary { list-style: none; cursor: pointer; padding: 8px 14px; border: 1px solid var(--line-strong); border-radius: 10px; color: var(--text); font-weight: 600; font-size: 14px; background: rgba(10, 14, 32, .5); }
.menu summary::-webkit-details-marker { display: none; }
/* Login-Button bzw. Kontomenue: Gaeste sehen "Login", angemeldete Spieler ihren Namen.
   Solange der Status unbekannt ist, bleiben die Gast-Elemente sichtbar. */
html[data-auth="in"] .if-out, html:not([data-auth="in"]) .if-in { display: none !important; }
.user-menu { position: relative; flex: none; }
.user-menu summary { list-style: none; gap: 8px; }
.user-menu summary::-webkit-details-marker { display: none; }
.user-menu summary svg { width: 18px; height: 18px; flex: none; }
.user-menu summary span { max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-panel {
  position: absolute; right: 0; top: 50px; min-width: 200px; padding: 8px;
  display: flex; flex-direction: column; gap: 2px;
  background: var(--surface-strong); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}
.user-panel a, .user-panel button {
  display: block; width: 100%; padding: 9px 14px; border: 0; border-radius: 10px; background: none;
  color: var(--text); font: 600 14px/1.3 var(--body); text-align: left; text-decoration: none; cursor: pointer;
}
.user-panel a:hover, .user-panel button:hover { color: var(--gold); background: rgba(242, 197, 92, .08); }

/* Sprachwahl: breit als eigener Knopf, schmal im Menue */
.lang-menu { position: relative; flex: none; }
.lang-menu summary {
  list-style: none; display: flex; align-items: center; gap: 6px; padding: 7px 11px; cursor: pointer;
  border: 1px solid var(--line-strong); border-radius: 10px; background: rgba(10, 14, 32, .5);
  color: var(--text); font: 700 13px/1 var(--body); letter-spacing: .06em;
}
.lang-menu summary::-webkit-details-marker { display: none; }
.lang-menu summary:hover, .lang-menu[open] summary { color: var(--gold); border-color: var(--gold); }
.lang-menu summary svg { width: 17px; height: 17px; }
.lang-panel {
  position: absolute; right: 0; top: 46px; min-width: 170px; padding: 8px;
  display: flex; flex-direction: column; gap: 2px;
  background: var(--surface-strong); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}
.lang-panel button, .lang-list button {
  padding: 8px 14px; border: 0; border-radius: 10px; background: none; cursor: pointer;
  color: var(--text); font: 600 14px/1.3 var(--body); text-align: left;
}
.lang-panel button:hover, .lang-list button:hover,
.lang-panel button[aria-current], .lang-list button[aria-current] { color: var(--gold); background: rgba(242, 197, 92, .08); }
.lang-list { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; margin-top: 6px; padding-top: 8px; border-top: 1px solid var(--line); }
.lang-list button { padding: 7px 10px; font-size: 13px; }

.login-dialog {
  position: fixed; width: min(420px, 100% - 32px); padding: 32px 28px 26px; border-radius: 18px; color: var(--text);
  background: var(--surface-strong); border: 1px solid var(--line-strong); box-shadow: 0 30px 80px rgba(0, 0, 0, .6);
}
.login-dialog::backdrop { background: rgba(5, 7, 18, .7); backdrop-filter: blur(3px); }
.login-dialog h2 { margin: 0 0 6px; font-size: 24px; }
.login-dialog > .muted { margin: 0; }
.login-dialog label:first-child { margin-top: 20px; }
.dialog-close {
  position: absolute; top: 12px; right: 12px; width: 34px; height: 34px; border: 0; border-radius: 50%;
  background: none; color: var(--muted); font-size: 24px; line-height: 1; cursor: pointer;
}
.dialog-close:hover { color: var(--gold); background: rgba(242, 197, 92, .08); }
.login-switch { margin: 22px 0 0; padding-top: 18px; border-top: 1px solid var(--line); text-align: center; color: var(--muted); font-size: 15px; }
.login-switch a { color: var(--gold); font-weight: 600; }
@media (max-width: 820px) {
  .topbar .container { gap: 12px; }
  .topbar > .container > .nav { display: none; }
  .menu { display: block; }
  .lang-menu { display: none; }
  .menu-panel { position: absolute; right: 0; top: 48px; min-width: 240px; padding: 8px; background: var(--surface-strong); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); }
  .menu .nav { flex-direction: column; margin: 0; }
}

/* ---------- Startseite: Hero ---------- */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  min-height: max(660px, min(100vh, 920px));
  display: grid; align-items: center;
  padding: 110px 0 150px;
}
.hero-bg { position: absolute; inset: -30px; z-index: -3; background: url(img/bg/tower.jpg) center 35% / cover; filter: saturate(1.1) blur(2px); }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(ellipse 40% 55% at 72% 52%, rgba(242, 197, 92, .22), transparent 70%),
    linear-gradient(90deg, rgba(10, 14, 32, .97) 0%, rgba(10, 14, 32, .8) 38%, rgba(10, 14, 32, .4) 70%, rgba(10, 14, 32, .65) 100%),
    linear-gradient(180deg, rgba(10, 14, 32, .55) 0%, transparent 25%, transparent 68%, var(--bg) 100%);
}
/* schwebende Lichtpartikel (per JS erzeugt) */
.motes { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.motes i {
  position: absolute; bottom: -10px; width: 4px; height: 4px; border-radius: 50%;
  background: #ffe7a3; box-shadow: 0 0 10px 3px rgba(255, 214, 120, .55);
  opacity: 0; animation: rise linear infinite;
}
@keyframes rise {
  0% { transform: translate(0, 0); opacity: 0; }
  12% { opacity: .9; }
  100% { transform: translate(var(--drift, 30px), -90vh); opacity: 0; }
}
.hero > .container { display: grid; grid-template-columns: 1.05fr 1fr; gap: 24px; align-items: center; }
.hero-copy { position: relative; z-index: 2; max-width: 560px; }
.hero-title {
  margin: 18px 0 0;
  font: 900 clamp(38px, 6vw, 78px)/.92 var(--display); letter-spacing: .03em;
  background: linear-gradient(180deg, #fff3cf 0%, var(--gold) 45%, #b97a1c 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 6px 22px rgba(0, 0, 0, .55));
}
.hero-sub { margin: 22px 0 0; font-size: clamp(17px, 1.6vw, 20px); color: #d3d8f2; max-width: 30em; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.live { display: inline-flex; align-items: center; gap: 10px; margin-top: 30px; font-size: 14px; color: var(--muted); }
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: #6b7280; flex: none; }
.dot.on { background: var(--ok); box-shadow: 0 0 0 4px rgba(76, 194, 106, .18); animation: pulse 2.4s ease-in-out infinite; }
.dot.off { background: var(--bad); }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgba(76, 194, 106, 0); } }

/* Figurengruppe mit Tiefe (per JS leicht zur Maus verschoben) */
.heroes { position: relative; height: clamp(440px, 44vw, 610px); --mx: 0; --my: 0; }
.heroes img {
  position: absolute; bottom: 0; height: 100%; width: auto; max-width: none;
  transition: transform .3s ease-out;
  -webkit-mask-image: linear-gradient(180deg, #000 70%, transparent 97%);
  mask-image: linear-gradient(180deg, #000 70%, transparent 97%);
}
.heroes .h-left  { left: -24%; height: 80%; filter: brightness(.55) saturate(.85); transform: translate(calc(var(--mx) * -10px), calc(var(--my) * -6px)); }
.heroes .h-right { right: -30%; height: 84%; filter: brightness(.62) saturate(.9); transform: translate(calc(var(--mx) * -14px), calc(var(--my) * -8px)); }
.heroes .h-main  { left: 50%; height: 100%; z-index: 2; filter: drop-shadow(0 20px 40px rgba(0, 0, 0, .6)); transform: translate(calc(-50% + var(--mx) * 18px), calc(var(--my) * 10px)); }

@media (max-width: 900px) {
  .hero { padding: 90px 0 120px; min-height: 0; }
  .hero > .container { grid-template-columns: 1fr; text-align: center; }
  .hero-copy { margin: 0 auto; }
  .hero-title { font-size: clamp(38px, 10.5vw, 78px); }
  .hero-ctas { justify-content: center; }
  .heroes { height: 360px; width: min(100%, 420px); margin: 0 auto -30px; order: -1; }
  .heroes .h-left { left: -14%; } .heroes .h-right { right: -16%; }
  .hero::before { background: radial-gradient(ellipse 60% 40% at 50% 25%, rgba(242, 197, 92, .2), transparent 70%), linear-gradient(180deg, rgba(10, 14, 32, .6), rgba(10, 14, 32, .7) 45%, var(--bg) 100%); }
}

/* ---------- Merkmale (ueberlappen den Hero) ---------- */
.features { position: relative; z-index: 3; margin-top: -90px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature {
  display: flex; gap: 16px; padding: 22px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  backdrop-filter: blur(12px); box-shadow: var(--shadow);
}
.feature svg { flex: none; width: 38px; height: 38px; color: var(--gold); }
.feature h3 { font-size: 17px; margin-bottom: 4px; }
.feature p { margin: 0; font-size: 14px; color: var(--muted); }
@media (max-width: 900px) { .features { grid-template-columns: 1fr; margin-top: -40px; } }

/* ---------- Abschnitte ---------- */
.section { padding: 120px 0; position: relative; }
.section-head { max-width: 640px; }
.section-head h2 { margin-top: 14px; font-size: clamp(32px, 4.4vw, 50px); line-height: 1.08; }
.section-head p { margin: 16px 0 0; color: var(--muted); font-size: 17px; }
.section.center .section-head { margin-inline: auto; text-align: center; max-width: 780px; }
@media (max-width: 700px) { .section { padding: 84px 0; } }

/* ---------- Spezialisten: Kartenhand ---------- */
.sp { overflow: hidden; }
.sp::before { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse 45% 60% at 72% 55%, rgba(90, 120, 255, .16), transparent 70%); pointer-events: none; }
.sp > .container { display: grid; grid-template-columns: .85fr 1.15fr; gap: 56px; align-items: center; }
.sp .actions { display: flex; align-items: center; gap: 16px; margin-top: 30px; flex-wrap: wrap; }
.sp .count { color: var(--muted); font-size: 14px; }
.hand { position: relative; height: 440px; }
.hand .card-sp {
  --r: 0deg; --x: 0px; --y: 0px; --lift: 0px;
  position: absolute; left: 50%; bottom: 40px; width: 200px; aspect-ratio: 1;
  margin-left: -100px; border-radius: 18px; overflow: hidden;
  border: 2px solid #c9922e;
  box-shadow: 0 0 0 1px #4a2f0c, 0 22px 40px rgba(0, 0, 0, .55);
  transform-origin: 50% 120%;
  transform: translate(var(--x), calc(var(--y) + var(--lift))) rotate(var(--r));
  transition: transform .5s cubic-bezier(.2, .8, .2, 1), box-shadow .3s ease, opacity .35s ease;
  background: #1b2246;
}
.hand .card-sp img { width: 100%; height: 100%; object-fit: cover; }
.hand .card-sp::after { content: ""; position: absolute; inset: 0; background: linear-gradient(120deg, transparent 35%, rgba(255, 255, 255, .3) 50%, transparent 65%); transform: translateX(-130%); transition: transform .7s ease; }
.hand .card-sp:nth-child(1) { --r: -20deg; --x: -176px; --y: 40px; z-index: 1; }
.hand .card-sp:nth-child(2) { --r: -10deg; --x: -90px;  --y: 10px; z-index: 2; }
.hand .card-sp:nth-child(3) { --r: 0deg;   --x: 0px;    --y: 0px; z-index: 3; }
.hand .card-sp:nth-child(4) { --r: 10deg;  --x: 90px;   --y: 10px; z-index: 2; }
.hand .card-sp:nth-child(5) { --r: 20deg;  --x: 176px;  --y: 40px; z-index: 1; }
.hand:hover .card-sp:nth-child(1) { --x: -220px; }
.hand:hover .card-sp:nth-child(2) { --x: -110px; }
.hand:hover .card-sp:nth-child(4) { --x: 110px; }
.hand:hover .card-sp:nth-child(5) { --x: 220px; }
.hand .card-sp:hover { --lift: -36px; z-index: 10; box-shadow: 0 0 0 1px #4a2f0c, 0 0 36px rgba(242, 197, 92, .55), 0 30px 50px rgba(0, 0, 0, .6); }
.hand .card-sp:hover::after { transform: translateX(130%); }
.hand.dealing .card-sp { opacity: 0; --r: 0deg; --x: 0px; --y: 140px; transition-duration: .25s; }
@media (max-width: 900px) {
  .sp > .container { grid-template-columns: 1fr; text-align: center; }
  .sp .section-head { margin-inline: auto; }
  .sp .actions { justify-content: center; }
  .sp > .container { gap: 8px; }
  .hand { height: 270px; }
  .hand .card-sp { bottom: 30px; }
  .hand .card-sp { width: 150px; margin-left: -75px; }
  .hand .card-sp:nth-child(1) { --x: -100px; } .hand .card-sp:nth-child(2) { --x: -50px; }
  .hand .card-sp:nth-child(4) { --x: 50px; }   .hand .card-sp:nth-child(5) { --x: 100px; }
  .hand:hover .card-sp:nth-child(1) { --x: -116px; } .hand:hover .card-sp:nth-child(2) { --x: -58px; }
  .hand:hover .card-sp:nth-child(4) { --x: 58px; }   .hand:hover .card-sp:nth-child(5) { --x: 116px; }
}

/* ---------- Klassen: Buehne mit Reitern ---------- */
.classes { background: linear-gradient(180deg, var(--bg), var(--bg-2) 50%, var(--bg)); }
.class-tabs { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin: 40px 0 36px; }
.class-tabs button {
  padding: 11px 22px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--line-strong); background: transparent; color: var(--text);
  font: 700 14px/1 var(--body); letter-spacing: .04em; transition: background .2s ease, color .2s ease;
}
.class-tabs button:hover { color: var(--gold); }
.class-tabs button[aria-selected="true"] { background: linear-gradient(180deg, #ffdf8a, var(--gold-2)); color: var(--gold-ink); border-color: transparent; }
.stage { display: grid; grid-template-columns: 1.25fr 1fr; gap: 52px; align-items: center; }
.stage-art { position: relative; aspect-ratio: 4 / 3; border-radius: 22px; overflow: hidden; border: 1px solid var(--line-strong); box-shadow: var(--shadow); background: var(--bg-2); }
.stage-art img { width: 100%; height: 100%; object-fit: cover; animation: fadein .5s ease; }
.stage-art::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 90px rgba(10, 14, 32, .6); pointer-events: none; }
.stage-copy h3 { font-size: clamp(30px, 3.6vw, 44px); color: var(--gold); }
.stage-copy .role { display: inline-block; margin-top: 12px; padding: 5px 12px; border: 1px solid var(--line-strong); border-radius: 999px; font-size: 13px; color: var(--muted); }
.stage-copy p { color: #cfd4ef; font-size: 17px; margin: 18px 0 0; }
.stage-copy > * { animation: fadein .45s ease both; }
.traits { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 10px; }
.traits li { display: flex; gap: 10px; align-items: baseline; }
.traits li::before { content: "◆"; color: var(--gold); font-size: 11px; }
@keyframes fadein { from { opacity: 0; transform: translateY(8px); } }
@media (max-width: 900px) { .stage { grid-template-columns: 1fr; gap: 28px; } }

/* ---------- Neuigkeiten ---------- */
.news-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.status-bar { display: flex; gap: 22px; flex-wrap: wrap; padding: 12px 22px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); font-size: 14px; }
.status-bar span { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); }
.status-bar strong { color: var(--text); }
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 36px; }
.news-card { padding: 26px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); transition: border-color .2s ease, transform .2s ease; }
.news-card:hover { border-color: var(--line-strong); transform: translateY(-3px); }
.news-card time { font-size: 13px; color: var(--gold); letter-spacing: .06em; }
.news-card h3 { font-size: 20px; margin: 10px 0 0; }
.news-card p { margin: 10px 0 0; color: var(--muted); font-size: 15px; }
@media (max-width: 900px) { .news-grid { grid-template-columns: 1fr; } }

/* ---------- Schritte ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 44px; counter-reset: s; }
.step { position: relative; padding: 28px 22px 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.step::before { counter-increment: s; content: "0" counter(s); display: block; font: 900 30px/1 var(--display); color: var(--gold); }
.step h3 { font-size: 18px; margin-top: 14px; }
.step p { margin: 8px 0 0; font-size: 14px; color: var(--muted); }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Abschluss-Band ---------- */
.cta-band { position: relative; overflow: hidden; isolation: isolate; padding: 120px 0; text-align: center; }
.cta-band::before { content: ""; position: absolute; inset: 0; z-index: -2; background: url(img/bg/harbor-town.jpg) center / cover; }
.cta-band::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, var(--bg) 0%, rgba(10, 14, 32, .55) 35%, rgba(10, 14, 32, .55) 65%, var(--bg) 100%); }
.cta-band h2 { font-size: clamp(34px, 5vw, 58px); text-shadow: 0 4px 20px rgba(0, 0, 0, .7); }
.cta-band p { margin: 14px auto 0; max-width: 520px; color: #dfe3f7; text-shadow: 0 2px 10px rgba(0, 0, 0, .8); }
.cta-band .hero-ctas { justify-content: center; }

/* ---------- Fuss ---------- */
footer { border-top: 1px solid var(--line); padding: 34px 0 44px; color: var(--muted); font-size: 13px; }
footer .container { display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; align-items: center; }
footer .brand { font-size: 18px; }

/* =========================================================
   Unterseiten (Registrieren, Konto)
   ========================================================= */
.page-head { position: relative; overflow: hidden; isolation: isolate; padding: 150px 0 60px; }
.page-head::before { content: ""; position: absolute; inset: -10px; z-index: -2; background: var(--head-img, url(img/bg/valley.jpg)) center / cover; filter: blur(2px); }
.page-head::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(10, 14, 32, .78), rgba(10, 14, 32, .72) 50%, var(--bg)); }
.page-head h1 { margin-top: 12px; font-size: clamp(36px, 5vw, 56px); color: var(--gold); }
.page-head p { margin: 10px 0 0; color: #d3d8f2; }

.page { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; padding: 10px 0 100px; align-items: start; }
.page.single { grid-template-columns: minmax(0, 640px); justify-content: center; }
@media (max-width: 860px) { .page { grid-template-columns: 1fr; } }

.card { padding: 28px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); backdrop-filter: blur(10px); margin-bottom: 20px; }
.card h2 { font-size: 22px; margin-bottom: 14px; }
.card h3 { font-size: 17px; }
.status-row { display: flex; justify-content: space-between; align-items: center; padding: 9px 0; border-bottom: 1px solid rgba(255, 255, 255, .06); }
.status-row:last-child { border-bottom: 0; }
.status-row .dot { margin-right: 8px; }

form label { display: block; font-weight: 600; margin: 18px 0 6px; font-size: 14px; }
form label .muted { font-weight: 400; }
form input {
  width: 100%; padding: 12px 14px; border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, .14); background: rgba(8, 11, 26, .6); color: var(--text);
  font: inherit; transition: border-color .15s ease, box-shadow .15s ease;
}
form input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(242, 197, 92, .18); }
form .hint { font-size: 13px; color: var(--muted); margin-top: 6px; }
form .btn { margin-top: 26px; }
.msg { margin-top: 16px; padding: 12px 16px; border-radius: 10px; display: none; font-size: 15px; }
.msg.error { display: block; background: rgba(226, 87, 74, .12); color: #ffb4aa; border: 1px solid rgba(226, 87, 74, .4); }
.msg.success { display: block; background: rgba(76, 194, 106, .12); color: #a9ebb8; border: 1px solid rgba(76, 194, 106, .4); }

.account-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 10px; }
.account-head h2 { margin: 0; }
.chars { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; }
.char { padding: 16px; border-radius: 12px; border: 1px solid var(--line); background: rgba(8, 11, 26, .45); }
.char h3 { font-size: 18px; }
.char .cls { color: var(--gold); font-weight: 700; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; margin-top: 4px; }
.char dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; margin: 12px 0 0; font-size: 14px; }
.char dt { color: var(--muted); }
.char dd { margin: 0; text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }

/* ---------- Bewegung reduzieren ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .motes { display: none; }
}

/* =========================================================
   NosMall
   ========================================================= */
.mall { padding: 10px 0 100px; }
.coin { width: 34px; height: 34px; flex: none; filter: drop-shadow(0 2px 6px rgba(217, 154, 43, .45)); }
.mall-bar {
  display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap;
  padding: 18px 24px; margin-bottom: 26px;
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius); box-shadow: var(--shadow);
}
.balance { display: flex; align-items: center; gap: 14px; }
.balance .muted { display: block; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; }
.balance strong { font: 900 30px/1.1 var(--display); color: var(--gold); font-variant-numeric: tabular-nums; }
.recipient { display: flex; align-items: center; gap: 12px; font-size: 14px; }
.recipient select {
  min-width: 220px; padding: 10px 14px; border-radius: 10px; font: inherit; color: var(--text);
  background: rgba(8, 11, 26, .6); border: 1px solid rgba(255, 255, 255, .16);
}
.recipient select:focus { outline: none; border-color: var(--gold); }
.mall-note { margin: -10px 0 22px; }

.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 22px; }
.chips button {
  padding: 9px 18px; border-radius: 999px; cursor: pointer; font: 600 14px/1 var(--body);
  border: 1px solid var(--line); background: transparent; color: var(--text);
}
.chips button:hover { border-color: var(--line-strong); color: var(--gold); }
.chips button[aria-selected="true"] { background: rgba(242, 197, 92, .14); border-color: var(--gold); color: var(--gold); }

.mall-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; }
.mall-card {
  display: flex; flex-direction: column; gap: 14px; padding: 20px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.mall-card:hover { border-color: var(--line-strong); transform: translateY(-3px); box-shadow: 0 16px 36px rgba(0, 0, 0, .4); }
.mall-card .top { display: flex; gap: 14px; align-items: center; }
.slot {
  position: relative; flex: none; width: 58px; height: 58px; border-radius: 12px;
  display: grid; place-items: center;
  background: radial-gradient(circle at 50% 35%, rgba(242, 197, 92, .25), rgba(8, 11, 26, .8) 70%);
  border: 1px solid var(--line-strong); color: var(--gold);
}
.slot svg { width: 30px; height: 30px; }
.slot img { display: block; max-width: 44px; max-height: 44px; }
.slot .qty {
  position: absolute; right: -6px; bottom: -6px; min-width: 24px; padding: 2px 6px; border-radius: 999px;
  background: var(--gold); color: var(--gold-ink); font: 800 12px/1.3 var(--body); text-align: center;
}
.mall-card h3 { font-size: 16px; line-height: 1.25; overflow-wrap: anywhere; hyphens: auto; }
.mall-card .top > div { min-width: 0; }
.mall-card .tags { display: flex; gap: 6px; margin-top: 4px; flex-wrap: wrap; }
.mall-card .tag { font-size: 12px; padding: 2px 8px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); }
.mall-card .tag.up { color: #ffb86b; border-color: rgba(255, 184, 107, .4); }
.mall-card .tag.rare { color: #c8a6ff; border-color: rgba(200, 166, 255, .4); }
.mall-card p { margin: 0; color: var(--muted); font-size: 14px; flex: 1; }
.mall-card .buy { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 12px; border-top: 1px solid rgba(255, 255, 255, .06); }
.price { display: flex; align-items: center; gap: 8px; font: 800 20px/1 var(--body); color: var(--gold); font-variant-numeric: tabular-nums; }
.price .coin { width: 22px; height: 22px; }
/* Rabatt-Events */
.mall-events { display: grid; gap: 10px; margin: -6px 0 22px; }
.mall-event {
  display: flex; align-items: center; gap: 6px 14px; flex-wrap: wrap; padding: 14px 18px; border-radius: var(--radius);
  background: linear-gradient(90deg, rgba(201, 61, 49, .28), rgba(242, 197, 92, .1)); border: 1px solid rgba(255, 140, 110, .45);
}
.mall-event strong { font: 800 17px/1.2 var(--display); color: #ffd7b0; letter-spacing: .02em; }
.mall-event .ends { margin-left: auto; font-size: 13px; color: var(--muted); }
.mall-card.on-sale { border-color: rgba(255, 140, 110, .5); }
.slot .sale {
  position: absolute; left: -8px; top: -8px; padding: 2px 6px; border-radius: 999px;
  background: #c93d31; color: #fff; font: 800 11px/1.3 var(--body); font-variant-numeric: tabular-nums;
}
.mall-card .tag.deal { color: #ffb4aa; border-color: rgba(255, 140, 110, .45); }
.price .old { font-size: 14px; font-weight: 600; color: var(--muted); text-decoration: line-through; }
.history .off { color: #ffb4aa; font-size: 12px; margin-left: 4px; }
.mall-card .btn[disabled] { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }

.mall-history { margin-top: 44px; }
.history { width: 100%; border-collapse: collapse; font-size: 14px; }
.history th { text-align: left; color: var(--muted); font-weight: 600; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.history td { padding: 10px; border-bottom: 1px solid rgba(255, 255, 255, .06); }
.history td.num { text-align: right; font-variant-numeric: tabular-nums; }
.state { font-size: 12px; padding: 2px 8px; border-radius: 999px; }
.state.delivered { background: rgba(76, 194, 106, .14); color: #a9ebb8; }
.state.refunded { background: rgba(226, 87, 74, .14); color: #ffb4aa; }
.state.pending { background: rgba(242, 197, 92, .14); color: var(--gold); }
@media (max-width: 600px) { .history .hide-sm { display: none; } }

.mall-dialog {
  width: min(460px, 100% - 32px); padding: 28px; border-radius: 18px; color: var(--text);
  background: var(--surface-strong); border: 1px solid var(--line-strong); box-shadow: 0 30px 80px rgba(0, 0, 0, .6);
}
.mall-dialog::backdrop { background: rgba(5, 7, 18, .7); backdrop-filter: blur(3px); }
.mall-dialog h2 { font-size: 22px; }
.mall-dialog p { color: #cfd4ef; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 12px; margin-top: 22px; }

/* ---------- Geschenke (Mein Konto) ---------- */
.gift-list { margin: 0 0 16px; padding-left: 20px; }
.gift-list li { margin: 4px 0; }
.gift-list li::marker { color: var(--gold); }
.gift-claim { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.gift-claim select {
  min-width: 220px; padding: 9px 12px; border-radius: 10px; font: inherit; color: var(--text);
  background: rgba(8, 11, 26, .6); border: 1px solid rgba(255, 255, 255, .16);
}
#gift-pending { padding-bottom: 20px; margin-bottom: 4px; border-bottom: 1px solid rgba(255, 255, 255, .06); }
.redeem label { margin-top: 16px; }
.redeem-row { display: flex; gap: 10px; }
.redeem-row input { flex: 1; text-transform: uppercase; }
.redeem-row .btn { margin-top: 0; flex: none; }
