:root {
  color-scheme: dark;
  --bg: #07070c;
  --surface: #11111b;
  --surface-2: #191926;
  --surface-3: #222233;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #f7f6ff;
  --muted: #b0afc9;
  --subtle: #7c7b98;
  --seller: #a78bfa;
  --seller-deep: #7c5cff;
  --buyer: #2dd4f0;
  --buyer-deep: #0b8fe0;
  --system: #fbbf24;
  --success: #34d399;
  --danger: #ff6b86;
  --star: #fbbf24;
  --grad: linear-gradient(120deg, #ff4d5e 0%, #e11d48 55%, #ff8a3d 100%); /* MM2: Blutrot */
  --radius: 24px;
  --radius-sm: 14px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.5;
  color: var(--text);
  background-color: var(--bg);
  -webkit-font-smoothing: antialiased;
}

/* Farbige Lichtflecken hinter allem, fest und unbewegt */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(55vw 45vh at 8% -8%, rgba(225, 29, 72, 0.22), transparent 62%),
    radial-gradient(45vw 40vh at 100% 2%, rgba(225, 29, 72, 0.16), transparent 62%),
    radial-gradient(60vw 45vh at 50% 108%, rgba(45, 212, 240, 0.12), transparent 62%);
}

h1, h2, h3, p { margin: 0; }

a { color: inherit; }

:focus-visible { outline: 2px solid var(--buyer); outline-offset: 2px; border-radius: 6px; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.muted { color: var(--muted); }

.mono { font-family: var(--mono); letter-spacing: 0.06em; }

/* Rollenfarben: Verkäufer violett, Käufer cyan, System gold */

.by-seller, .who-seller, .turn-seller, .role-seller, .chip-seller, .you-seller { --who: var(--seller); }
.by-buyer, .who-buyer, .turn-buyer, .role-buyer, .chip-buyer, .you-buyer { --who: var(--buyer); }
.by-system, .who-system, .turn-system, .role-system, .chip-system { --who: var(--system); }
.who-done, .chip-done { --who: var(--success); }
.who-problem, .chip-problem, .halt-problem { --who: var(--danger); }
.who-off, .chip-off, .halt-off { --who: var(--subtle); }
.by-mm2 { --who: #ff4d5e; }

.flow-top .game-icon { width: 28px; height: 28px; border-radius: 8px; }

@media (min-width: 980px) { .flow-mm2 { grid-template-columns: repeat(4, 1fr); } }

/* Kopfleiste: durchscheinend, Inhalt scrollt darunter */

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(7, 7, 12, 0.62);
  backdrop-filter: blur(20px) saturate(170%);
  -webkit-backdrop-filter: blur(20px) saturate(170%);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05);
}

.topbar-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: max(12px, env(safe-area-inset-top)) 16px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 750;
  font-size: 16px;
  letter-spacing: -0.015em;
  text-decoration: none;
}

.brand-mark { width: 28px; height: 28px; filter: drop-shadow(0 4px 10px rgba(225, 29, 72, 0.35)); }

.nav { display: flex; align-items: center; gap: 8px; min-width: 0; }

.nav-link {
  padding: 8px 10px;
  font-size: 14.5px;
  font-weight: 550;
  color: var(--muted);
  text-decoration: none;
  border-radius: 10px;
  transition: color 0.15s, background-color 0.15s;
}

.nav-link:hover, .nav-link[aria-current="page"] { color: var(--text); background: rgba(255, 255, 255, 0.06); }

.nav-admin { color: var(--system); }

.user-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding: 4px 12px 4px 4px;
  border-radius: 999px;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
}

.user-chip .avatar { width: 30px; height: 30px; font-size: 13px; }

.user-name {
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 14px;
  font-weight: 600;
}

@media (max-width: 560px) {
  .hide-sm { display: none; }
  .user-name { max-width: 72px; }
}

@media (max-width: 420px) {
  .nav { gap: 6px; }
  .lang-toggle { padding: 0 8px; }
  .lang-toggle svg { display: none; }
  .user-chip { padding: 3px; }
  .user-name { display: none; }
}

@media (max-width: 340px) {
  .brand span { display: none; }
}

/* Seitenrahmen */

.page {
  flex: 1;
  width: 100%;
  margin: 0 auto;
  padding: 20px 16px max(56px, env(safe-area-inset-bottom));
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-content: start;
  gap: 16px;
}

.page-narrow { max-width: 600px; }

.page-wide { max-width: 1120px; gap: 0; }

.intro { padding: 12px 2px 6px; }

.intro h1 {
  font-size: clamp(1.9rem, 6vw, 2.4rem);
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.lead { margin-top: 8px; color: var(--muted); }

.me { display: flex; align-items: center; gap: 14px; }

.me .avatar { width: 56px; height: 56px; font-size: 22px; border-radius: 18px; }

.me .lead { margin-top: 2px; }

.row-actions { display: flex; gap: 8px; }

.row-actions .btn-primary { flex: 1; }

/* Karten */

.card {
  position: relative;
  padding: 20px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.015)), var(--surface);
  box-shadow: 0 24px 60px -36px rgba(0, 0, 0, 0.9);
}

.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }

.card-title { font-size: 18px; font-weight: 700; letter-spacing: -0.015em; }

.card-sub { margin-top: 4px; color: var(--muted); font-size: 14px; }

.card-body { margin-top: 18px; }

.eyebrow {
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--subtle);
}

.chip, .role, .you, .turn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  border-radius: 999px;
}

.chip {
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 650;
  color: var(--who, var(--muted));
  background: color-mix(in srgb, var(--who, #fff) 14%, transparent);
}

.role {
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--who);
  background: color-mix(in srgb, var(--who) 15%, transparent);
}

.you {
  padding: 5px 12px;
  font-size: 13px;
  font-weight: 650;
  color: var(--who);
  border: 1px solid color-mix(in srgb, var(--who) 45%, transparent);
  background: color-mix(in srgb, var(--who) 10%, transparent);
}

.turn {
  padding: 4px 10px 4px 8px;
  font-size: 12px;
  font-weight: 750;
  color: #0a0a12;
  background: var(--who);
  box-shadow: 0 6px 18px -8px var(--who);
}

.turn::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  animation: blink 1.6s ease-in-out infinite;
}

.live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 650;
  color: var(--success);
}

.live-dot {
  flex: none;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 0 currentColor;
  animation: ping 1.8s ease-out infinite;
}

.legend { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 6px; }

/* Avatare */

.avatar {
  position: relative;
  overflow: hidden;
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(140deg, #8b6cff, #ff4fb8);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.avatar-seller { background: linear-gradient(140deg, #b69cff, #6d4dff); }

.avatar-buyer { background: linear-gradient(140deg, #5ee6ff, #0b8fe0); }

.avatar-empty { color: var(--subtle); background: var(--surface-3); box-shadow: none; border: 1px dashed var(--border-strong); }

/* Roblox-Kopfbild liegt über dem Anfangsbuchstaben; lädt es nicht, bleibt der Buchstabe */
.avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

.avatar-mini { width: 22px; height: 22px; font-size: 10px; border-radius: 7px; }

.at-name { font-size: 0.85em; font-weight: 500; color: var(--subtle); }

/* Sprachumschalter */
.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 34px;
  padding: 0 10px;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--muted);
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  transition: color 0.15s, background-color 0.15s, transform 0.1s ease-out;
}

.lang-toggle svg { width: 15px; height: 15px; }

.lang-toggle:hover { color: var(--text); background: rgba(255, 255, 255, 0.05); }

.lang-toggle:active { transform: scale(0.96); }

.brand-accent { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Formulare */

.form { display: grid; gap: 16px; }

.segmented {
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 4px;
  border-radius: 14px;
  background: var(--surface-2);
  border: 1px solid var(--border);
}

.segmented button {
  height: 38px;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-radius: 10px;
  cursor: pointer;
  transition: background-color 0.15s, color 0.15s;
}

.segmented button[aria-pressed="true"] { color: var(--text); background: var(--surface-3); box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35); }

.field { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }

.field label { font-size: 13px; font-weight: 600; color: var(--muted); }

.input {
  width: 100%;
  height: 52px;
  padding: 0 16px;
  font: inherit;
  font-size: 16px;
  color: var(--text);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: border-color 0.15s, box-shadow 0.15s;
}

.input::placeholder { color: var(--subtle); }

.input:focus { outline: none; border-color: rgba(167, 139, 250, 0.8); box-shadow: 0 0 0 4px rgba(139, 108, 255, 0.18); }

.input[aria-invalid="true"] { border-color: rgba(255, 107, 134, 0.7); }

.input-affix { position: relative; }

.input-affix .input { padding-right: 44px; font-variant-numeric: tabular-nums; }

.input-affix span {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  pointer-events: none;
}

.field-hint { font-size: 13px; color: var(--subtle); }

.field-hint b { color: var(--text); }

.error { color: var(--danger); font-size: 13.5px; }

.seller-as { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--muted); }

.seller-as .avatar { width: 26px; height: 26px; font-size: 12px; border-radius: 9px; }

.seller-as strong { color: var(--text); }

/* Buttons: reagieren schon beim Drücken */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 52px;
  padding: 0 22px;
  font: inherit;
  font-size: 15.5px;
  font-weight: 650;
  color: var(--text);
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  touch-action: manipulation;
  transition: transform 0.1s ease-out, filter 0.15s, background-color 0.15s, opacity 0.15s;
}

.btn svg { width: 18px; height: 18px; }

.btn:active:not(:disabled) { transform: scale(0.97); }

.btn:disabled { opacity: 0.4; cursor: not-allowed; }

.btn-primary {
  color: #fff;
  background: var(--grad);
  box-shadow: 0 10px 28px -12px rgba(225, 29, 72, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.btn-primary:hover:not(:disabled) { filter: brightness(1.08); }

.btn-seller {
  color: #fff;
  background: linear-gradient(135deg, #a78bfa, #6d4dff);
  box-shadow: 0 10px 28px -12px rgba(124, 92, 255, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.btn-buyer {
  color: #fff;
  background: linear-gradient(135deg, #22c7ea, #0b6fe0);
  box-shadow: 0 10px 28px -12px rgba(11, 143, 224, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.btn-seller:hover:not(:disabled), .btn-buyer:hover:not(:disabled) { filter: brightness(1.08); }

.btn-glass {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--border-strong);
}

.btn-glass:hover { background: rgba(255, 255, 255, 0.1); }

.btn-ghost { color: var(--muted); background: transparent; }

.btn-ghost:hover { color: var(--text); background: rgba(255, 255, 255, 0.05); }

/* Leise Nebenaktion (Abbrechen, Problem melden) – bewusst unauffälliger als der Hauptschritt */
.btn-quiet { height: 44px; font-size: 14.5px; font-weight: 600; color: var(--muted); background: transparent; }

.btn-quiet:hover { color: var(--text); background: rgba(255, 255, 255, 0.05); }

/* Erster Tipp auf eine endgültige Aktion: rot einfärben und um Bestätigung bitten */
.btn.is-armed {
  color: #fff;
  background: color-mix(in srgb, var(--danger) 85%, #000);
  border-color: transparent;
  box-shadow: 0 10px 28px -14px var(--danger);
  white-space: normal;
  height: auto;
  min-height: 44px;
  padding-block: 8px;
}

.btn-xs { height: 36px; padding: 0 14px; font-size: 14px; border-radius: 11px; }

.btn-sm { height: 42px; padding: 0 16px; font-size: 14.5px; border-radius: 12px; }

.btn-lg { height: 56px; padding: 0 26px; font-size: 16.5px; border-radius: 16px; }

.btn-block { width: 100%; }

/* Logos */

.logo {
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
}

.logo svg { width: 26px; height: 26px; }

.logo-sm { width: 30px; height: 30px; border-radius: 9px; }

.logo-sm svg { width: 18px; height: 18px; }

.logo-xs { width: 26px; height: 26px; border-radius: 8px; }

.logo-xs svg { width: 16px; height: 16px; }

.logo-amazon { background: #232f3e; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1); }

.logo-apple { background: #ffffff; }

.logo-roblox { background: #ffffff; }

.logo-play { background: #1d2128; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1); }

/* Startseite: Hero */

.hero {
  position: relative;
  display: grid;
  gap: 28px;
  align-items: center;
  padding: 28px 0 40px;
}

/* Noppen-Raster wie auf einem Baustein, nach außen ausgeblendet */
.hero::before {
  content: "";
  position: absolute;
  inset: -20px -16px 0;
  z-index: -1;
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.07) 1.5px, transparent 2px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 60% 40%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 70% at 60% 40%, #000 20%, transparent 75%);
}

.eyebrow-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: rgba(255, 255, 255, 0.04);
}

.eyebrow-pill .dot { width: 8px; height: 8px; border-radius: 3px; background: var(--grad); }

.display {
  margin-top: 18px;
  font-size: clamp(2.5rem, 8.5vw, 4.5rem);
  line-height: 1.02;
  font-weight: 850;
  letter-spacing: -0.045em;
}

.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lead {
  margin-top: 18px;
  max-width: 34em;
  font-size: 17px;
  line-height: 1.55;
  color: var(--muted);
}

.hero-actions { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 10px; }

.pay-with {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--subtle);
}

.pay-with span:first-child { margin-right: 4px; }

.hero-visual {
  position: relative;
  min-height: 430px;
  display: grid;
  place-items: center;
}

.cube { position: absolute; display: block; filter: drop-shadow(0 14px 18px rgba(0, 0, 0, 0.45)); }

.cube svg { display: block; width: 100%; height: 100%; }

img.cube { object-fit: contain; filter: drop-shadow(0 14px 18px rgba(0, 0, 0, 0.55)); }

.cube-1 { width: 104px; height: 104px; top: 2%; left: 2%; transform: rotate(-18deg); }
.cube-2 { width: 76px; height: 76px; top: -2%; right: 12%; transform: rotate(14deg); }
.cube-3 { width: 92px; height: 92px; bottom: 8%; right: -2%; transform: rotate(-24deg); }
.cube-4 { width: 70px; height: 70px; bottom: 0; left: 14%; transform: rotate(18deg); }
.cube-5 { width: 34px; height: 34px; top: 46%; left: 0; transform: rotate(14deg); }

.mock {
  position: relative;
  width: min(100%, 330px);
  padding: 18px;
  border-radius: 26px;
  border: 1px solid var(--border-strong);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02)), rgba(20, 20, 32, 0.92);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(255, 255, 255, 0.03), 0 30px 90px -40px rgba(139, 108, 255, 0.55);
  transform: rotate(-2.5deg);
}

.mock-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }

.mock-eyebrow { font-size: 11px; font-weight: 650; letter-spacing: 0.05em; text-transform: uppercase; color: var(--subtle); }

.mock-art {
  position: relative;
  margin-top: 14px;
  height: 92px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--tint-a), var(--tint-b));
}

.mock-art svg { width: 76px; height: 76px; filter: drop-shadow(0 8px 12px rgba(0, 0, 0, 0.4)); }

.mock-item { margin-top: 14px; font-size: 18px; font-weight: 750; letter-spacing: -0.02em; }

.mock-price { font-size: 30px; font-weight: 850; letter-spacing: -0.035em; }

.mock-parties {
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
}

.mock-parties > span:not(.mock-arrow) { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 650; }

.mock-parties .avatar { width: 30px; height: 30px; font-size: 12px; border-radius: 10px; }

.mock-parties small { display: block; font-size: 10.5px; font-weight: 550; color: var(--subtle); }

.mock-arrow { color: var(--subtle); }

.mock-arrow svg { width: 16px; height: 16px; display: block; }

.mock-cards { margin-top: 12px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }

.mock-card {
  display: grid;
  place-items: center;
  padding: 10px 0;
  border-radius: 12px;
  background: var(--surface-2);
  border: 1px solid var(--border);
}

.mock-card.is-on {
  border-color: color-mix(in srgb, var(--brand) 80%, transparent);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--brand) 80%, transparent), 0 8px 20px -10px var(--brand);
}

.mock-status {
  margin-top: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  font-size: 13px;
  font-weight: 600;
  border-radius: 12px;
  color: #c7f9e3;
  background: rgba(52, 211, 153, 0.12);
}

.ok-dot {
  flex: none;
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #06281b;
  background: var(--success);
}

.ok-dot svg { width: 12px; height: 12px; }

.float-badge {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px 6px 6px;
  font-size: 13px;
  font-weight: 700;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: rgba(24, 24, 38, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 12px 30px -14px rgba(0, 0, 0, 0.8);
}

.float-badge svg { width: 26px; height: 26px; }

.float-badge .game-icon { width: 28px; height: 28px; border-radius: 50%; }

.badge-img { width: 30px; height: 30px; object-fit: contain; filter: drop-shadow(0 3px 4px rgba(0, 0, 0, 0.5)); }

.float-mm2 { top: 14%; right: 0; }
.float-adopt { bottom: 20%; left: 0; }
.float-blox { bottom: 0; right: 16%; }

@media (max-width: 520px) {
  .hero-actions .btn { flex: 1 1 100%; }
  .hero-visual { min-height: 0; padding: 36px 0 44px; }
  .mock { width: 84%; }
  .float-mm2 { top: 10px; right: -4px; }
  .float-adopt { bottom: 4px; left: 4%; }
  .float-blox { bottom: 4px; right: 4%; }
  .cube-1 { width: 72px; height: 72px; top: 0; left: 0; }
  .cube-3 { width: 66px; height: 66px; right: 2%; bottom: 14%; }
  .cube-4, .cube-5 { display: none; }
}

@media (min-width: 900px) {
  .hero { grid-template-columns: 1.05fr 0.95fr; gap: 40px; padding: 72px 0 64px; }
  .hero-visual { min-height: 520px; }
  .mock { width: 340px; }
}

/* Startseite: Abschnitte */

.section { padding: 48px 0 8px; }

.section-head { max-width: 640px; margin-bottom: 22px; }

.section-title {
  font-size: clamp(1.75rem, 5vw, 2.6rem);
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -0.035em;
}

.section-lead { margin-top: 10px; font-size: 16.5px; color: var(--muted); }

/* Spielfarben: MM2 rot-violett, Adopt Me rosa-himmelblau, Blox Fruits ozeanblau-orange */
.tint-mm2 { --tint-a: rgba(225, 29, 72, 0.3); --tint-b: rgba(255, 138, 61, 0.1); }
.tint-none { --tint-a: rgba(139, 108, 255, 0.22); --tint-b: rgba(45, 212, 240, 0.1); }

/* Seltenheit wie im Spiel */

/* Spiel-Symbole: Ausschnitte aus den offiziellen Logos */
.game-icon {
  flex: none;
  display: inline-block;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background-repeat: no-repeat;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14);
}

.game-icon-mm2 { background: #000 url("img/mm2.webp") 50% 50% / 130% no-repeat; }

/* Kleines Spiel-Symbol als Ecke an Item-Bildern */
.item-art, .row-icon { position: relative; }

.item-art .game-icon, .row-icon .game-icon {
  position: absolute;
  right: -6px;
  bottom: -6px;
  border: 2px solid var(--surface);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
}

.item-art .game-icon { width: 28px; height: 28px; border-radius: 9px; }

.row-icon .game-icon { width: 18px; height: 18px; border-radius: 6px; border-width: 1.5px; right: -4px; bottom: -4px; }

.showcase { display: grid; gap: 12px; }

.show-game {
  --pad: 18px;
  overflow: hidden;
  padding: var(--pad);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: linear-gradient(150deg, var(--tint-a), var(--tint-b) 60%, transparent), var(--surface);
}

/* Banner oben im Spiel-Panel mit dem Logo als Hintergrund */
.show-banner {
  position: relative;
  height: 136px;
  margin: calc(var(--pad) * -1) calc(var(--pad) * -1) 16px;
  overflow: hidden;
}

.show-banner .show-logo { position: relative; display: block; width: 100%; height: 100%; }

.show-banner::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 36px;
  background: linear-gradient(transparent, rgba(17, 17, 27, 0.85));
  pointer-events: none;
}

.show-banner-mm2 { background: #000; }

/* MM2-Waffen schweben gedämpft links und rechts vom Logo */
.banner-weapon {
  position: absolute;
  z-index: 1;
  width: 64px;
  height: 64px;
  object-fit: contain;
  opacity: 0.6;
  filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.6));
}

.bw-1 { left: 5%; top: 10px; transform: rotate(-14deg); }
.bw-2 { left: 17%; bottom: 14px; transform: rotate(10deg); }
.bw-3 { right: 16%; top: 12px; transform: rotate(12deg); }
.bw-4 { right: 4%; bottom: 16px; transform: rotate(-10deg); }

/* Echte Item-Bilder (statt Illustration) in den verschiedenen Rahmen */
.art-img { display: block; object-fit: contain; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.45)); }
.show-art .art-img, .cta-art .art-img { width: 100%; height: 100%; }
.mock-art .art-img { width: 110px; height: 84px; }
.item-art .art-img { width: 60px; height: 60px; }
.row-icon .art-img { width: 32px; height: 32px; filter: drop-shadow(0 3px 4px rgba(0, 0, 0, 0.4)); }
.show-banner-mm2 .show-logo { object-fit: contain; padding: 8px 0; }



.show-head h3 { font-size: 22px; font-weight: 850; letter-spacing: -0.025em; }

.show-head p { margin-top: 2px; font-size: 14px; color: var(--muted); }

.show-items { margin: 14px 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }

.show-item {
  display: grid;
  align-content: start;
  justify-items: center;
  gap: 6px;
  padding: 12px 6px 10px;
  text-align: center;
  border-radius: 16px;
  background: radial-gradient(circle at 50% 38%, rgba(255, 255, 255, 0.14), transparent 62%), rgba(7, 7, 12, 0.38);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

.show-art { width: 64px; height: 64px; display: grid; place-items: center; }

.show-art svg { width: 100%; height: 100%; filter: drop-shadow(0 8px 10px rgba(0, 0, 0, 0.45)); }

.show-name { font-size: 13px; font-weight: 700; line-height: 1.2; }

/* Nur noch MM2: ein breites Panel, am Desktop Banner links und Items rechts */
@media (min-width: 900px) {
  .show-game { --pad: 24px; display: grid; grid-template-columns: 1fr 1.25fr; grid-template-rows: auto auto; align-content: center; align-items: start; column-gap: 28px; }
  .show-banner { grid-row: 1 / 3; align-self: stretch; height: auto; min-height: 300px; margin: calc(var(--pad) * -1) 0 calc(var(--pad) * -1) calc(var(--pad) * -1); }
  .show-banner-mm2 .show-logo { padding: 48px; }
  .show-head { align-self: end; }
  .show-items { gap: 12px; }
  .show-art { width: 104px; height: 104px; }
  .show-name { font-size: 15px; }
  .banner-weapon { width: 84px; height: 84px; }
}

.cta-art { position: absolute; width: 74px; height: 74px; filter: drop-shadow(0 12px 16px rgba(0, 0, 0, 0.5)); }

.cta-art svg { width: 100%; height: 100%; }

.cta-art-1 { top: 18px; right: 7%; transform: rotate(10deg); }
.cta-art-2 { bottom: 14px; left: 6%; transform: rotate(-8deg); }

@media (max-width: 640px) {
  .cta-art { width: 48px; height: 48px; }
  .cta-art-1 { top: 10px; right: 4%; }
  .cta-art-2 { bottom: 8px; left: 3%; }
}

.how { display: grid; gap: 12px; }

.how-card {
  padding: 22px;
  border-radius: var(--radius);
  border: 1px solid color-mix(in srgb, var(--who) 28%, transparent);
  background: radial-gradient(120% 90% at 0% 0%, color-mix(in srgb, var(--who) 14%, transparent), transparent 60%), var(--surface);
}

.how-seller { --who: var(--seller); }
.how-buyer { --who: var(--buyer); }

.how-steps { margin: 16px 0 0; padding: 0; list-style: none; counter-reset: how; display: grid; gap: 14px; }

.how-steps li {
  counter-increment: how;
  display: grid;
  grid-template-columns: 34px 1fr;
  column-gap: 12px;
}

.how-steps li::before {
  content: counter(how);
  grid-row: span 2;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  font-weight: 800;
  color: #0a0a12;
  border-radius: 10px;
  background: var(--who);
  box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.18);
}

.how-steps b { font-size: 15.5px; }

.how-steps span { font-size: 14px; color: var(--muted); }

@media (min-width: 760px) {
  .how { grid-template-columns: 1fr 1fr; gap: 16px; }
}

.gc-grid-4 { margin-top: 0; }

@media (min-width: 760px) {
  .gc-grid.gc-grid-4 { grid-template-columns: repeat(4, 1fr); gap: 16px; }
  .gc-grid-4 .gc { padding: 20px; min-height: 150px; }
}

.flow { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }

.flow-step {
  padding: 16px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, color-mix(in srgb, var(--who) 9%, transparent), transparent 70%), var(--surface);
  box-shadow: inset 0 2px 0 color-mix(in srgb, var(--who) 55%, transparent);
}

.flow-top { display: flex; align-items: center; justify-content: space-between; }

.flow-num {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 800;
  color: var(--who);
  border-radius: 9px;
  background: color-mix(in srgb, var(--who) 16%, transparent);
}

.flow-step h3 { margin-top: 12px; font-size: 16px; font-weight: 700; letter-spacing: -0.01em; }

.flow-step p { margin-top: 4px; font-size: 13.5px; color: var(--muted); }

@media (min-width: 560px) { .flow { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .flow { grid-template-columns: repeat(4, 1fr); gap: 14px; } }

.trouble { display: grid; gap: 12px; }

.trouble-card {
  padding: 20px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: linear-gradient(180deg, color-mix(in srgb, var(--who) 10%, transparent), transparent 70%), var(--surface);
}

.trouble-card h3 { margin-top: 12px; font-size: 17px; font-weight: 750; letter-spacing: -0.015em; }

.trouble-card p { margin-top: 4px; font-size: 14px; color: var(--muted); }

@media (min-width: 760px) { .trouble { grid-template-columns: repeat(3, 1fr); gap: 16px; } }

.cta-band {
  position: relative;
  overflow: hidden;
  margin-top: 56px;
  padding: 44px 22px;
  text-align: center;
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background:
    radial-gradient(70% 120% at 0% 0%, rgba(225, 29, 72, 0.38), transparent 60%),
    radial-gradient(70% 120% at 100% 100%, rgba(225, 29, 72, 0.32), transparent 60%),
    var(--surface);
}

.cta-band h2 { font-size: clamp(1.7rem, 5vw, 2.5rem); font-weight: 850; letter-spacing: -0.035em; line-height: 1.1; }

.cta-band p { margin: 10px auto 24px; max-width: 30em; color: var(--muted); font-size: 16px; }

.cube-a { width: 84px; height: 84px; top: -10px; left: 6%; transform: rotate(-14deg); opacity: 0.9; }
.cube-b { width: 70px; height: 70px; bottom: -6px; right: 8%; transform: rotate(12deg); opacity: 0.9; }

@media (max-width: 560px) {
  .cube-a { width: 46px; height: 46px; }
  .cube-b { width: 40px; height: 40px; }
}

/* Gutschein-Karten */

.gc-grid {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.gc {
  --brand: #ffffff;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 22px;
  padding: 14px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background-color: var(--surface-2);
  background-image: radial-gradient(130% 100% at 0% 0%, color-mix(in srgb, var(--brand) 22%, transparent), transparent 62%);
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.12s ease-out;
}

.gc:hover { border-color: var(--border-strong); }

.gc:active { transform: scale(0.97); }

.gc-static { cursor: default; }

.gc-static:active { transform: none; }

.gc input { position: absolute; width: 1px; height: 1px; margin: 0; opacity: 0; pointer-events: none; }

.gc:has(input:focus-visible) { outline: 2px solid var(--buyer); outline-offset: 3px; }

.gc.is-selected {
  border-color: color-mix(in srgb, var(--brand) 80%, transparent);
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--brand) 80%, transparent),
    0 16px 36px -18px color-mix(in srgb, var(--brand) 80%, transparent);
}

.gc-check {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1.5px solid var(--border-strong);
  color: var(--bg);
  transition: background-color 0.15s, border-color 0.15s;
}

.gc-check svg { width: 12px; height: 12px; opacity: 0; }

.gc.is-selected .gc-check { background: var(--text); border-color: var(--text); }

.gc.is-selected .gc-check svg { opacity: 1; }

.gc-name, .gc-sub { display: block; }

.gc-name { font-size: 15.5px; font-weight: 700; line-height: 1.25; letter-spacing: -0.01em; }

.gc-sub { margin-top: 2px; font-size: 12.5px; color: var(--muted); }

.code-panel:not(:empty) { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--border); }

.code-form { display: grid; gap: 12px; animation: rise 0.3s ease-out; }

.code-label { display: flex; align-items: center; gap: 10px; font-weight: 650; }

.code-input { height: 56px; font-family: var(--mono); font-size: 17px; letter-spacing: 0.08em; text-transform: uppercase; }

.note {
  display: flex;
  gap: 8px;
  padding: 10px 12px;
  font-size: 13px;
  color: var(--muted);
  border-radius: 12px;
  background: rgba(45, 212, 240, 0.06);
  border: 1px solid rgba(45, 212, 240, 0.18);
}

.note svg { flex: none; width: 16px; height: 16px; margin-top: 1px; color: var(--buyer); }

.select-hint { font-size: 13.5px; color: var(--subtle); }

/* Meine Trades */

.list-card { padding: 6px; }

.trade-list { margin: 0; padding: 0; list-style: none; }

.trade-list li + li { border-top: 1px solid var(--border); }

.list-empty { padding: 28px 18px; text-align: center; color: var(--muted); display: grid; gap: 6px; }

.list-empty b { color: var(--text); }

.trade-row {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 12px;
  text-decoration: none;
  border-radius: 16px;
  transition: background-color 0.15s;
}

.trade-row:hover { background: rgba(255, 255, 255, 0.04); }

.trade-row:active { background: rgba(255, 255, 255, 0.07); }

.row-icon {
  flex: none;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--tint-a), var(--tint-b)), var(--surface-2);
}

.row-icon svg { width: 30px; height: 30px; filter: drop-shadow(0 3px 4px rgba(0, 0, 0, 0.4)); }

.row-main, .row-side { display: grid; gap: 3px; min-width: 0; }

.row-title { font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.row-sub { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); min-width: 0; white-space: nowrap; overflow: hidden; }

.row-partner { min-width: 0; overflow: hidden; text-overflow: ellipsis; }

.row-side { justify-items: end; text-align: right; }

.row-price { font-weight: 700; font-variant-numeric: tabular-nums; }

.row-status { font-size: 12px; color: var(--subtle); white-space: nowrap; }

.row-status-done { color: var(--success); }

.row-status-problem { color: var(--danger); font-weight: 650; }

/* Trade-Seite */

.item-name {
  margin-top: 12px;
  font-size: clamp(1.5rem, 5vw, 1.8rem);
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.03em;
  overflow-wrap: anywhere;
}

.price-row { margin-top: 4px; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

.price { font-size: 38px; font-weight: 850; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }

.parties { margin-top: 16px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }

.party {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 12px;
  border-radius: 16px;
  background: var(--surface-2);
}

.party-main { min-width: 0; }

.party-label { font-size: 11.5px; color: var(--subtle); }

.party-name { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.party-name.is-empty { color: var(--subtle); font-weight: 550; }

.party-meta { margin-top: 1px; font-size: 12px; color: var(--muted); }

.stars-inline { display: inline-flex; align-items: center; gap: 3px; }

.stars-inline svg { width: 13px; height: 13px; color: var(--star); }

.stars-inline b { color: var(--text); }

@media (max-width: 420px) {
  .parties { grid-template-columns: 1fr; }
}

.summary { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--border); }

.summary-title { font-size: 13px; font-weight: 600; color: var(--muted); }

.summary dl { margin: 12px 0 0; display: grid; gap: 10px; }

.summary dl div { display: flex; justify-content: space-between; gap: 16px; font-size: 14.5px; }

.summary dt { color: var(--muted); }

.summary dd { margin: 0; text-align: right; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }

.summary .total { padding-top: 10px; border-top: 1px dashed var(--border-strong); font-weight: 700; }

.summary .total dt { color: var(--text); }

.summary .is-empty { color: var(--subtle); }

/* Aktionsbereich: farbig nach der Seite, die gerade dran ist */

.action {
  border-color: color-mix(in srgb, var(--who) 30%, transparent);
  background:
    radial-gradient(120% 100% at 0% 0%, color-mix(in srgb, var(--who) 13%, transparent), transparent 60%),
    var(--surface);
  animation: rise 0.3s ease-out;
}

.action.is-mine {
  border-color: color-mix(in srgb, var(--who) 60%, transparent);
  box-shadow: 0 24px 60px -36px rgba(0, 0, 0, 0.9), 0 18px 50px -30px var(--who);
}

.action .turn { margin-bottom: 12px; }

.action-title { font-size: 20px; font-weight: 750; letter-spacing: -0.02em; line-height: 1.25; outline: none; }

.action-text { margin-top: 6px; color: var(--muted); }

.action-text b { color: var(--text); }

.action > .btn, .action > .linkbox, .action > .rate, .action > .submitted, .action > .giftcode, .action > .action-buttons { margin-top: 16px; }

.action > .error { margin-top: 10px; }

.action-buttons { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; }

/* Lange Namen dürfen umbrechen, statt die Karte zu sprengen */
.action-buttons .btn { white-space: normal; height: auto; min-height: 52px; padding-block: 10px; text-align: center; }

.action-buttons .btn-quiet { min-height: 44px; }

/* Freigeschalteter Gutschein: wie eine kleine Geschenkkarte in Markenfarbe */
.giftcode {
  padding: 16px;
  border-radius: 18px;
  border: 1px solid color-mix(in srgb, var(--brand) 55%, transparent);
  background:
    radial-gradient(120% 120% at 0% 0%, color-mix(in srgb, var(--brand) 22%, transparent), transparent 60%),
    var(--surface-2);
  box-shadow: 0 18px 40px -24px color-mix(in srgb, var(--brand) 70%, transparent);
}

.giftcode-head { display: flex; align-items: center; gap: 10px; }

.giftcode-name { font-weight: 700; }

.giftcode-value { font-size: 13px; color: var(--muted); }

.giftcode-row {
  margin-top: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 6px 6px 14px;
  border-radius: 14px;
  background: var(--bg);
  border: 1px dashed var(--border-strong);
}

.giftcode-code {
  flex: 1;
  min-width: 0;
  font-family: var(--mono);
  font-size: 17px;
  font-weight: 650;
  line-height: 1.35;
  letter-spacing: 0.06em;
  color: var(--text);
  overflow-wrap: anywhere;
  user-select: all;
  -webkit-user-select: all;
}

.giftcode-note { margin-top: 10px; font-size: 12px; color: var(--subtle); }

.wait {
  margin-top: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--who);
}

.linkbox {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 6px 6px 12px;
  border-radius: 16px;
  border: 1px solid var(--border-strong);
  background: var(--bg);
}

.linkbox-icon { color: var(--subtle); display: grid; }

.linkbox-icon svg { width: 18px; height: 18px; }

.linkbox input {
  flex: 1;
  min-width: 0;
  padding: 0 4px;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--muted);
  background: transparent;
  border: 0;
  text-overflow: ellipsis;
}

.linkbox input:focus { outline: none; color: var(--text); }

.submitted { display: flex; align-items: center; gap: 12px; }

.submitted-title { font-weight: 650; }

.submitted .chip { margin-left: auto; }

.stars-given { color: var(--star); letter-spacing: 0.08em; }

.rate { display: flex; gap: 6px; }

.rate-star {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  padding: 0;
  color: var(--star);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 14px;
  cursor: pointer;
  transition: transform 0.1s ease-out, color 0.12s, background-color 0.12s;
}

.rate-star svg { width: 24px; height: 24px; }

.rate-star:active { transform: scale(0.92); }

/* Hover färbt den Stern und alle davor */
.rate:hover .rate-star { background: rgba(251, 191, 36, 0.14); }
.rate-star:hover ~ .rate-star { color: var(--subtle); background: var(--surface-2); }
.rate:not(:hover) .rate-star { color: var(--subtle); }

/* Trade-Ablauf */

.steps { margin: 18px 0 0; padding: 0; list-style: none; }

.step {
  position: relative;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  column-gap: 14px;
  padding-bottom: 18px;
}

.step:last-child { padding-bottom: 0; }

.step::before {
  content: "";
  position: absolute;
  left: 14.5px;
  top: 34px;
  bottom: 4px;
  width: 1px;
  background: var(--border-strong);
}

.step:last-child::before { display: none; }

.step.done::before { background: rgba(52, 211, 153, 0.4); }

.step-dot {
  width: 30px;
  height: 30px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 12.5px;
  font-weight: 750;
  font-variant-numeric: tabular-nums;
  color: var(--subtle);
  border: 1px solid var(--border-strong);
  background: var(--surface);
}

.step-dot svg { width: 15px; height: 15px; }

.step.done .step-dot { color: var(--success); border-color: rgba(52, 211, 153, 0.4); background: rgba(52, 211, 153, 0.12); }

.step.current .step-dot {
  color: #0a0a12;
  border-color: var(--who);
  background: var(--who);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--who) 20%, transparent);
}

.step-body {
  padding-top: 4px;
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: 10px;
}

.step-body > :not(.step-time) { grid-column: 1; }

.step-line { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; }

.step-title { font-size: 14.5px; color: var(--subtle); }

.step.done .step-title { color: var(--muted); }

.step.current .step-title { color: var(--text); font-weight: 700; }

.step.todo .role { opacity: 0.55; }

.step-time { grid-column: 2; grid-row: 1; padding-top: 1px; font-size: 12px; color: var(--subtle); font-variant-numeric: tabular-nums; }

.step-sub { margin-top: 3px; font-size: 13px; color: var(--subtle); }

.step.current .step-sub { color: var(--who); font-weight: 600; }

.sub-mine { font-weight: 750; }

/* Abzweig aus dem Ablauf: Problem (rot) oder Abbruch (grau) */
.step.halt .step-dot { font-size: 15px; font-weight: 850; color: #fff; border-color: var(--who); background: color-mix(in srgb, var(--who) 80%, #000); }

.step.halt-off .step-dot { color: var(--text); background: var(--surface-3); border-color: var(--border-strong); }

.step.halt .step-title { color: var(--who); font-weight: 700; }

.step.halt-off .step-title { color: var(--text); }

.step.halt .step-sub { color: var(--muted); }

.sim-hint { margin-top: 16px; font-size: 12.5px; color: var(--subtle); }

.empty { text-align: center; padding: 40px 20px; }

.empty p { margin-top: 8px; color: var(--muted); }

/* Formular-Ergänzungen */

.input-prefix { position: relative; }

.input-prefix span {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 16px;
  color: var(--subtle);
  pointer-events: none;
}

.input-prefix .input { padding-left: 34px; }

.seller-as > span { min-width: 0; }

/* Trade-Kopf mit Item-Illustration */

.item-hero { margin-top: 14px; display: flex; align-items: center; gap: 14px; }

.item-art {
  flex: none;
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  border-radius: 20px;
  background: linear-gradient(135deg, var(--tint-a), var(--tint-b)), var(--surface-2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.item-art svg { width: 56px; height: 56px; filter: drop-shadow(0 6px 8px rgba(0, 0, 0, 0.45)); }

.item-main { min-width: 0; }

.item-hero .item-name { margin-top: 2px; }

.game-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 8px 2px 2px;
  font-size: 11.5px;
  font-weight: 750;
  border-radius: 7px;
  background: linear-gradient(135deg, var(--tint-a), var(--tint-b));
}

.game-tag .game-icon { width: 18px; height: 18px; border-radius: 5px; }

.party-link {
  flex: none;
  margin-left: auto;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: var(--muted);
  border-radius: 10px;
  border: 1px solid var(--border);
  transition: color 0.15s, background-color 0.15s;
}

.party-link svg { width: 16px; height: 16px; }

.party-link:hover { color: var(--text); background: rgba(255, 255, 255, 0.05); }

.btn .avatar-mini { margin-right: 2px; }

/* Gutscheincode: Format live prüfen */

.code-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; font-size: 13px; }

.code-format { color: var(--subtle); }

.code-status { font-weight: 650; }

.code-status.is-ok { color: var(--success); }

.code-status.is-ok::before { content: "✓ "; }

.code-status.is-error { color: var(--danger); }

.code-status.is-pending { color: var(--muted); }

.code-input[aria-invalid="true"] { border-color: rgba(255, 107, 134, 0.7); }

.check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px;
  font-size: 14px;
  color: var(--muted);
  border-radius: 12px;
  background: var(--surface-2);
  cursor: pointer;
}

.check b { color: var(--text); }

.check input { position: absolute; width: 1px; height: 1px; opacity: 0; }

.check-box {
  flex: none;
  width: 22px;
  height: 22px;
  margin-top: 1px;
  display: grid;
  place-items: center;
  color: transparent;
  border-radius: 7px;
  border: 1.5px solid var(--border-strong);
  transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}

.check-box svg { width: 13px; height: 13px; }

.check input:checked + .check-box { color: #fff; background: var(--buyer-deep); border-color: var(--buyer-deep); }

.check input:focus-visible + .check-box { outline: 2px solid var(--buyer); outline-offset: 2px; }

/* Admin */

.page-admin { max-width: 880px; }

.admin-tools { display: grid; gap: 10px; }

.filters { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; }

.filter {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 12px;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  cursor: pointer;
  transition: background-color 0.15s, color 0.15s, transform 0.1s ease-out;
}

.filter:active { transform: scale(0.97); }

.filter[aria-pressed="true"] { color: var(--text); background: var(--surface-3); border-color: var(--border-strong); }

.filter-count {
  min-width: 22px;
  padding: 1px 7px;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  text-align: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.filter.has-problem .filter-count { color: #fff; background: var(--danger); }

.input-search { height: 46px; }

.admin-list { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }

.admin-trade { padding: 16px; display: grid; gap: 8px; }

.admin-trade.is-problem {
  border-color: color-mix(in srgb, var(--danger) 55%, transparent);
  background: radial-gradient(120% 100% at 0% 0%, rgba(255, 107, 134, 0.12), transparent 60%), var(--surface);
}

.at-top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }

.at-top .eyebrow { text-decoration: none; }

.at-price { margin-left: auto; font-weight: 750; font-variant-numeric: tabular-nums; }

.at-item { font-size: 17px; font-weight: 700; letter-spacing: -0.015em; overflow-wrap: anywhere; }

.at-parties { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 14px; }

.at-arrow { color: var(--subtle); display: grid; margin: 0 2px; }

.at-arrow svg { width: 14px; height: 14px; }

.at-meta { font-size: 12.5px; color: var(--subtle); }

.at-code {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  padding: 10px;
  border-radius: 14px;
  background: var(--surface-2);
}

.at-card { font-size: 14px; font-weight: 600; }

.at-code .mono { margin-left: auto; }

.at-code-value { margin-left: auto; display: flex; align-items: center; gap: 6px; min-width: 0; }

.at-code-text {
  min-width: 0;
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 650;
  letter-spacing: 0.06em;
  color: var(--system);
  overflow-wrap: anywhere;
  user-select: all;
  -webkit-user-select: all;
}

.at-resolve {
  padding: 12px;
  border-radius: 14px;
  background: rgba(255, 107, 134, 0.08);
  border: 1px solid rgba(255, 107, 134, 0.25);
  font-size: 14px;
}

.at-resolve-buttons { margin-top: 10px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }

@media (max-width: 480px) { .at-resolve-buttons { grid-template-columns: 1fr; } }

.at-note { font-size: 13px; color: var(--muted); }

.log { margin: 12px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; font-size: 13.5px; }

.log li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; color: var(--muted); }

.log time { color: var(--subtle); font-variant-numeric: tabular-nums; }

.log b { color: var(--text); }

.log-empty { color: var(--subtle); }

code { font-family: var(--mono); font-size: 0.92em; padding: 1px 6px; border-radius: 6px; background: var(--surface-3); }

/* Fußzeile */

.footer {
  max-width: 1120px;
  width: 100%;
  margin: 0 auto;
  padding: 28px 16px max(28px, env(safe-area-inset-bottom));
  display: grid;
  gap: 4px;
  text-align: center;
  font-size: 12.5px;
  color: var(--subtle);
}

.footer strong { color: var(--muted); }

/* Bewegung */

@keyframes rise {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

@keyframes ping {
  0% { box-shadow: 0 0 0 0 color-mix(in srgb, currentColor 55%, transparent); }
  80%, 100% { box-shadow: 0 0 0 7px transparent; }
}

@keyframes blink {
  50% { opacity: 0.35; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .btn:active:not(:disabled), .gc:active, .rate-star:active { transform: none; }
}

@media (prefers-reduced-transparency: reduce) {
  .topbar { background: var(--bg); backdrop-filter: none; -webkit-backdrop-filter: none; }
  .float-badge { background: var(--surface-2); backdrop-filter: none; -webkit-backdrop-filter: none; }
}

@media (prefers-contrast: more) {
  :root { --border: rgba(255, 255, 255, 0.28); --border-strong: rgba(255, 255, 255, 0.45); --muted: #d4d3e8; --subtle: #a9a8c3; }
}

@media (max-width: 360px) {
  .gc-grid { grid-template-columns: 1fr; }
}

/* Handy-Benachrichtigungen im Admin-Panel */

.notify-card { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }

.notify-steps { margin: 0; padding-left: 20px; display: grid; gap: 10px; font-size: 14px; color: var(--muted); }

.notify-steps b { color: var(--text); }

.notify-steps .linkbox { margin-top: 8px; }

.notify-steps .linkbox input { color: var(--text); font-weight: 650; }

.notify-actions { display: flex; flex-wrap: wrap; gap: 8px; }

.notify-link .linkbox input { color: var(--text); }

/* Trade aus dem Benachrichtigungs-Link */
.admin-trade.is-focus { border-color: var(--buyer); box-shadow: 0 0 0 1px var(--buyer), 0 18px 40px -24px var(--buyer); }

/* Konto: E-Mail-Bestätigung, Passwort vergessen */
.form-link {
  justify-self: center; background: none; border: 0; padding: 6px 8px; font: inherit; font-size: 14px;
  color: var(--muted); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; border-radius: 8px;
}
.form-link:hover { color: var(--text); }
.form-title { font-size: 19px; margin: 0 0 6px; }
.form-ok { color: var(--success); font-size: 14px; line-height: 1.5; margin: 0; }
.form-ok b, .mail-sent b { color: var(--text); word-break: break-all; }
.mail-sent { display: grid; gap: 12px; text-align: center; justify-items: center; }
.mail-sent h2 { font-size: 20px; margin: 4px 0 0; }
.mail-sent p { margin: 0; color: var(--muted); line-height: 1.55; }
.mail-sent .field-hint:empty { display: none; }
.mail-sent .btn { margin-top: 6px; }
.mail-icon {
  width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center;
  background: var(--grad); color: #fff; box-shadow: 0 10px 30px rgba(225, 29, 72, 0.35);
}
.mail-icon svg { width: 28px; height: 28px; }
#email-slot { margin: 16px 0; }
#email-slot:empty { display: none; }
.email-card { display: grid; gap: 10px; }
.email-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
@media (max-width: 520px) { .email-row { grid-template-columns: minmax(0, 1fr); } }

/* Währung: Preis und Währung nebeneinander, Auswahllisten */
.price-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 12px; align-items: end; }
@media (max-width: 420px) { .price-row { grid-template-columns: minmax(0, 1fr); } }
.select {
  appearance: none; -webkit-appearance: none; cursor: pointer; padding-right: 40px; text-overflow: ellipsis;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%23b0afc9' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 18px;
}
.select option { background: #11111b; color: #f7f6ff; }
.field .label { font-size: 13px; font-weight: 600; color: var(--muted); }
#set-status:empty { display: none; }
.lang-toggle { white-space: nowrap; text-decoration: none; }
.lang-toggle[aria-current="page"] { color: var(--text); border-color: var(--border-strong); }
@media (max-width: 420px) { .hide-xs { display: none; } }
