/* Grundlagen des Panels: Farben, Hintergrund, Glasflächen, Knöpfe, Felder.
   Öffentlich (Login braucht es auch) – Module binden es ebenfalls ein: /public/base.css */

/* Sakura-Fuchs – dieselbe Farbwelt wie foxsmp.net: Pflaumen-Schwarz, Kirschblüte, Fuchs-Orange. */
@font-face {
  font-family: "FoxPixel";
  src: url("/public/pixel.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --bg: #0a0609;
  --surface: rgba(26, 16, 23, .55);
  --surface-2: rgba(40, 24, 34, .6);
  --surface-3: rgba(56, 32, 46, .55);
  --solid: #140c11;
  --stroke: rgba(255, 228, 236, .08);
  --stroke-2: rgba(255, 228, 236, .13);
  --stroke-3: rgba(255, 228, 236, .22);
  --hi: rgba(255, 255, 255, .05);
  --text: #fff4f7;
  --text-2: rgba(255, 244, 247, .66);
  --text-3: rgba(255, 244, 247, .42);
  --accent: #ff8fb8;
  --accent-2: #ffb0cf;
  --accent-ink: #2a0d12;
  --accent-soft: rgba(255, 143, 184, .13);
  --fox: #ff8a3d;
  --grad: linear-gradient(100deg, #ff8a3d 0%, #ff7a86 45%, #ff8fb8 100%);
  --ok: #6ee7a8;
  --warn: #fbbf24;
  --bad: #ff6b7d;
  --info: #8f8cff;
  --r-lg: 6px;
  --r: 4px;
  --r-sm: 3px;
  --blur: blur(18px) saturate(140%);
  --shadow: 0 1px 0 var(--hi) inset, 0 30px 70px -30px rgba(0, 0, 0, .8), 0 0 0 1px rgba(0, 0, 0, .25);
  --font: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, "SF Pro Text", "Helvetica Neue", sans-serif;
  --font-display: "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, "SF Pro Display", sans-serif;
  --pixel: "FoxPixel", var(--mono);
  --mono: "Cascadia Mono", "JetBrains Mono", ui-monospace, "SF Mono", Consolas, monospace;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; background: var(--bg); color: var(--text);
  font: 14px/1.5 var(--font); font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
a { color: inherit; text-decoration: none; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
.num { font-variant-numeric: tabular-nums; }
.mono { font-family: var(--mono); font-size: .92em; }
.muted { color: var(--text-2); }
.faint { color: var(--text-3); }
.hidden { display: none !important; }

/* ── Hintergrund: drei weiche Lichtflecken, feines Raster, Körnung ── */
.backdrop { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; background: var(--bg); }
.backdrop::before {
  content: ""; position: absolute; inset: -10%;
  background:
    radial-gradient(40% 40% at 8% 4%, rgba(255, 138, 61, .30), transparent 70%),
    radial-gradient(40% 50% at 100% 18%, rgba(255, 143, 184, .30), transparent 70%),
    radial-gradient(50% 44% at 55% 106%, rgba(224, 80, 125, .24), transparent 70%),
    radial-gradient(30% 30% at 46% 46%, rgba(255, 143, 184, .06), transparent 70%);
  animation: wp-drift 24s ease-in-out infinite alternate;
  filter: blur(14px);
}
.backdrop::after {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .028) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 30%, transparent 85%);
  mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 30%, transparent 85%);
}
.grain {
  position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .06; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* ── Glas ── */
.glass {
  background: linear-gradient(180deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .012) 40%), var(--surface);
  border: 1px solid var(--stroke); border-radius: var(--r-lg);
  -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); box-shadow: var(--shadow);
}

/* ── Knöpfe ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 36px; padding: 0 14px;
  border-radius: 9px; border: 1px solid var(--stroke-2); background: var(--surface-2); color: var(--text);
  font: 500 13.5px/1 var(--font); cursor: pointer; white-space: nowrap; user-select: none;
  transition: background .15s, border-color .15s, color .15s, transform .05s;
}
.btn:hover { background: var(--surface-3); border-color: var(--stroke-3); }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .5; cursor: default; pointer-events: none; }
.btn svg { width: 16px; height: 16px; flex: none; }
.btn-primary { position: relative; overflow: hidden; background: var(--grad); border-color: transparent; color: var(--accent-ink); font-weight: 600; box-shadow: 0 1px 0 rgba(255, 255, 255, .35) inset, 0 8px 24px -10px rgba(255, 143, 184, .7); }
.btn-primary::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .5) 50%, transparent 70%); transform: translateX(-120%); transition: transform .8s cubic-bezier(.22, 1, .36, 1); pointer-events: none; }
.btn-primary:hover { background: var(--grad); border-color: transparent; box-shadow: 0 1px 0 rgba(255, 255, 255, .4) inset, 0 12px 30px -10px rgba(255, 143, 184, .85); }
.btn-primary:hover::after { transform: translateX(120%); }
.btn-ghost { background: transparent; border-color: transparent; color: var(--text-2); }
.btn-ghost:hover { background: var(--surface-2); color: var(--text); border-color: var(--stroke); }
.btn-danger { color: #ff8d86; }
.btn-danger:hover { background: rgba(240, 100, 91, .12); border-color: rgba(240, 100, 91, .35); }
.btn-sm { height: 30px; padding: 0 10px; font-size: 12.5px; border-radius: 8px; }
.btn-icon { width: 32px; padding: 0; height: 32px; }
.btn-block { width: 100%; height: 42px; font-size: 14px; }
.btn-discord { background: #5865f2; border-color: transparent; color: #fff; font-weight: 600; box-shadow: 0 1px 0 rgba(255, 255, 255, .2) inset; }
.btn-discord:hover { background: #6b77f5; border-color: transparent; }

/* ── Felder ── */
.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field > span { font-size: 12.5px; color: var(--text-2); font-weight: 500; }
.field small { color: var(--text-3); font-size: 12px; }
.input, select.input, textarea.input {
  width: 100%; height: 40px; padding: 0 12px; border-radius: 9px; border: 1px solid var(--stroke-2);
  background: rgba(0, 0, 0, .28); color: var(--text); font: 14px var(--font);
  transition: border-color .15s, box-shadow .15s, background .15s;
}
textarea.input { height: auto; min-height: 80px; padding: 10px 12px; resize: vertical; }
.input::placeholder { color: var(--text-3); }
.input:hover { border-color: var(--stroke-3); }
.input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(255, 143, 184, .14); background: rgba(0, 0, 0, .36); }
select.input { appearance: none; padding-right: 32px; cursor: pointer;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'><path d='M3 4.5l3 3 3-3' fill='none' stroke='%23a2a8b3' stroke-width='1.5' stroke-linecap='round'/></svg>");
  background-repeat: no-repeat; background-position: right 12px center; }
select.input option { background: var(--solid); }
.input-code { height: 52px; text-align: center; font: 600 24px var(--mono); letter-spacing: .4em; padding-left: .4em; }

/* ── Kleinkram ── */
.chip { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 8px; border-radius: 6px; font-size: 12px; font-weight: 500;
  background: var(--surface-2); border: 1px solid var(--stroke); color: var(--text-2); white-space: nowrap; }
.chip svg { width: 12px; height: 12px; }
.chip.ok { color: var(--ok); background: rgba(76, 207, 136, .1); border-color: rgba(76, 207, 136, .22); }
.chip.warn { color: var(--warn); background: rgba(240, 191, 76, .1); border-color: rgba(240, 191, 76, .22); }
.chip.bad { color: var(--bad); background: rgba(240, 100, 91, .1); border-color: rgba(240, 100, 91, .22); }
.chip.accent { color: var(--accent); background: var(--accent-soft); border-color: rgba(255, 143, 184, .28); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--text-3); flex: none; }
.dot.ok { background: var(--ok); box-shadow: 0 0 0 3px rgba(76, 207, 136, .16); }
.notice { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 10px; font-size: 13px; line-height: 1.45;
  background: rgba(240, 100, 91, .1); border: 1px solid rgba(240, 100, 91, .25); color: #ffb3ae; margin-bottom: 14px; }
.notice.info { background: rgba(98, 180, 239, .08); border-color: rgba(98, 180, 239, .22); color: #b5dcf7; }
.notice svg { width: 16px; height: 16px; flex: none; margin-top: 1px; }
.divider { display: flex; align-items: center; gap: 12px; color: var(--text-3); font-size: 12px; margin: 18px 0; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--stroke); }
/* ── Sakura-Fuchs-Akzente ── */
h1, h2 { letter-spacing: -.02em; }
.input-code, .num-big, .stat b { font-family: var(--pixel); }
.chip { font-family: var(--pixel); letter-spacing: .06em; text-transform: uppercase; font-size: 10.5px; }
@keyframes wp-drift { from { transform: translate(0, 0) scale(1); } to { transform: translate(-3%, 2%) scale(1.06); } }
@keyframes wp-rise { from { opacity: 0; transform: translateY(14px); filter: blur(4px); } to { opacity: 1; transform: none; filter: none; } }
.glass { animation: wp-rise .6s cubic-bezier(.16, 1, .3, 1) both; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

kbd { font: 12px var(--mono); padding: 1px 6px; border-radius: 5px; border: 1px solid var(--stroke-2); background: var(--surface-2); }
