/* ==========================================================================
   DESIGN TOKENS & RESET (Dunkles Neon-Geometrie-Design)
   100 % lokal ohne externe Fonts oder Bibliotheken (DSGVO-konform).
   ========================================================================== */
:root {
    --bg-void: #050811;
    --bg-main: #090e1a;
    --bg-panel: #0f172a;
    --bg-card: #141e33;
    --bg-card-hover: #1a2742;
    --bg-input: #090f1d;

    --border-dim: rgba(148, 163, 184, 0.15);
    --border-bright: rgba(148, 163, 184, 0.3);

    --text-main: #f1f5f9;
    --text-muted: #94a3b8;
    --text-dim: #64748b;

    /* Turm- & Element-Farben */
    --col-add: #10b981;       /* Additions-Turm (+): Grün/Cyan */
    --col-add-glow: rgba(16, 185, 129, 0.35);
    --col-sub: #38bdf8;       /* Subtraktions-Turm (-): Kryo-Blau */
    --col-sub-glow: rgba(56, 189, 248, 0.35);
    --col-mul: #d946ef;       /* Multiplikations-Turm (×): Lila/Magenta */
    --col-mul-glow: rgba(217, 70, 239, 0.35);
    --col-div: #f59e0b;       /* Divisions-Turm (÷): Orange/Gold */
    --col-div-glow: rgba(245, 158, 11, 0.35);
    --col-base: #2dd4bf;      /* Basis-Kern: Türkis */
    --col-base-glow: rgba(45, 212, 191, 0.35);

    --col-gold: #fbbf24;
    --col-danger: #f43f5e;
    --col-success: #22c55e;

    --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    width: 100%;
    min-height: 100vh;
    background: radial-gradient(circle at 25% 15%, #101935 0%, var(--bg-main) 50%, var(--bg-void) 100%);
    color: var(--text-main);
    font-family: var(--font-sans);
    line-height: 1.45;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    user-select: none;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
    color: inherit;
    transition: transform 0.12s ease, background-color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
}

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

button:disabled {
    cursor: not-allowed;
    opacity: 0.52;
}

.mono {
    font-family: var(--font-mono);
    font-variant-numeric: tabular-nums;
}
