/* ===================================================================
   NEONVAULT — Dark Crypto-Casino Theme
   Made by Oma the master of rizz
   Reines eigenes CSS, kein Framework, kein geklautes Branding.
=================================================================== */

:root {
  --bg:            #0f1419;
  --bg-2:          #131b22;
  --surface:       #18222c;
  --surface-2:     #1f2c38;
  --surface-hover: #24323f;
  --border:        #273543;
  --border-soft:   #20303d;

  --text:          #e8eef3;
  --text-dim:      #9fb0bd;
  --text-faint:    #66798a;

  /* Akzentton: sattes Casino-Grün */
  --accent:        #1fe089;
  --accent-2:      #0aa861;
  --accent-glow:   rgba(31, 224, 137, 0.35);

  --danger:        #ff5c6c;

  --radius:        16px;
  --radius-sm:     10px;
  --shadow:        0 10px 30px rgba(0, 0, 0, 0.45);
  --shadow-soft:   0 4px 16px rgba(0, 0, 0, 0.30);
  --ease:          cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---- Reset / Base ---- Made by Oma the master of rizz ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html, body { height: 100%; }

body {
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color: var(--text);
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(31, 224, 137, 0.08), transparent 60%),
    radial-gradient(900px 500px at -10% 110%, rgba(31, 224, 137, 0.05), transparent 55%),
    var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
}

button { font-family: inherit; cursor: pointer; }

/* ===================================================================
   App Layout — Made by Oma the master of rizz
=================================================================== */
.app { display: flex; flex-direction: column; min-height: 100vh; }

.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 24px;
  background: linear-gradient(180deg, rgba(24, 34, 44, 0.92), rgba(15, 20, 25, 0.92));
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 50;
}

/* ---- Brand / Logo ---- */
.brand { display: flex; align-items: center; gap: 12px; }

.logo-mark {
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border-radius: 13px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft), 0 0 22px var(--accent-glow);
}

.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name { font-weight: 800; font-size: 20px; letter-spacing: 0.5px; }
.brand-accent { color: var(--accent); }
.brand-sub { font-size: 11px; color: var(--text-faint); letter-spacing: 1.5px; text-transform: uppercase; }

/* ---- Balance Box ---- Made by Oma the master of rizz ---- */
.balance-box {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  padding: 8px 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-soft);
  min-width: 150px;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.balance-box.bump { transform: translateY(-2px); box-shadow: var(--shadow-soft), 0 0 18px var(--accent-glow); }

.balance-label { font-size: 10px; text-transform: uppercase; letter-spacing: 1.5px; color: var(--text-faint); }
.balance-value { display: flex; align-items: baseline; gap: 6px; font-weight: 800; font-size: 22px; }
.coin-icon { color: var(--accent); font-size: 16px; }
.balance-unit { font-size: 12px; color: var(--text-dim); font-weight: 600; }

/* ===================================================================
   Body: Sidebar + Content — Made by Oma the master of rizz
=================================================================== */
.app-body { display: flex; flex: 1; min-height: 0; }

.sidebar {
  width: 248px;
  flex-shrink: 0;
  padding: 20px 16px;
  background: linear-gradient(180deg, var(--bg-2), var(--bg));
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
}

.nav-title {
  font-size: 11px; text-transform: uppercase; letter-spacing: 2px;
  color: var(--text-faint); margin-bottom: 12px; padding-left: 6px;
}

.game-nav { display: flex; flex-direction: column; gap: 8px; }

/* Nav-Buttons der Spiele */
.nav-item {
  display: flex; align-items: center; gap: 12px;
  width: 100%;
  padding: 12px 14px;
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  color: var(--text-dim);
  font-size: 14px; font-weight: 600;
  text-align: left;
  transition: all 0.2s var(--ease);
}
.nav-item:hover {
  background: var(--surface-hover);
  color: var(--text);
  border-color: var(--accent-2);
  transform: translateX(3px);
}
.nav-item.active {
  background: linear-gradient(135deg, rgba(31, 224, 137, 0.16), rgba(31, 224, 137, 0.04));
  color: var(--text);
  border-color: var(--accent);
  box-shadow: inset 0 0 0 1px var(--accent-glow), 0 0 16px var(--accent-glow);
}
/* Made by Oma the master of rizz */
.nav-item .dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--accent); flex-shrink: 0;
  box-shadow: 0 0 8px var(--accent-glow);
  opacity: 0.5; transition: opacity 0.2s var(--ease);
}
.nav-item.active .dot, .nav-item:hover .dot { opacity: 1; }

.nav-empty { color: var(--text-faint); font-size: 13px; padding: 8px 6px; }
.nav-empty.hidden { display: none; }

.sidebar-footer { margin-top: auto; padding-top: 20px; }

.btn-reset {
  width: 100%;
  padding: 10px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-dim);
  font-size: 13px; font-weight: 600;
  transition: all 0.2s var(--ease);
}
.btn-reset:hover { border-color: var(--danger); color: var(--danger); }

.disclaimer { margin-top: 12px; font-size: 11px; color: var(--text-faint); line-height: 1.4; text-align: center; }

/* ===================================================================
   Content / Game Container — Made by Oma the master of rizz
=================================================================== */
.content { flex: 1; min-width: 0; padding: 28px; overflow-y: auto; }

.game-container {
  min-height: 100%;
  background:
    radial-gradient(800px 400px at 50% 0%, rgba(31, 224, 137, 0.05), transparent 70%),
    var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px;
  display: flex;
  flex-direction: column;
}

/* ---- Placeholder ---- */
.placeholder {
  position: relative;
  margin: auto;
  text-align: center;
  max-width: 440px;
  padding: 40px 20px;
}
.placeholder-glow {
  position: absolute; inset: -40px;
  background: radial-gradient(circle, var(--accent-glow), transparent 70%);
  filter: blur(40px); opacity: 0.4; z-index: -1;
}
.placeholder h1 { font-size: 30px; font-weight: 800; margin-bottom: 12px; }
.placeholder p { color: var(--text-dim); font-size: 15px; line-height: 1.6; }

/* ===================================================================
   Wiederverwendbare UI-Bausteine für künftige Spiele
   Made by Oma the master of rizz
=================================================================== */
.cv-card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow-soft);
}

.cv-btn {
  padding: 12px 22px;
  border: none;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #04130c;
  font-weight: 700; font-size: 15px;
  transition: all 0.2s var(--ease);
  box-shadow: 0 4px 14px var(--accent-glow);
}
.cv-btn:hover { filter: brightness(1.08); transform: translateY(-2px); box-shadow: 0 8px 22px var(--accent-glow); }
.cv-btn:active { transform: translateY(0); }
.cv-btn:disabled { opacity: 0.5; cursor: not-allowed; filter: none; transform: none; box-shadow: none; }

.cv-btn-ghost {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  box-shadow: none;
}
.cv-btn-ghost:hover { background: var(--surface-hover); border-color: var(--accent-2); box-shadow: none; }

.cv-input {
  padding: 12px 14px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 15px; font-weight: 600;
  width: 100%;
  transition: border-color 0.2s var(--ease);
}
.cv-input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-glow); }

/* Toast für Fehler/Hinweise. Made by Oma the master of rizz */
.cv-toast {
  position: fixed;
  bottom: 24px; left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-sm);
  padding: 13px 20px;
  color: var(--text);
  font-size: 14px; font-weight: 600;
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s var(--ease);
  z-index: 100;
  max-width: 90vw;
}
.cv-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.cv-toast.error { border-left-color: var(--danger); }

/* ===================================================================
   Responsive — Made by Oma the master of rizz
=================================================================== */
@media (max-width: 820px) {
  .app-body { flex-direction: column; }
  .sidebar {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid var(--border);
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 12px;
    padding: 14px 16px;
  }
  .nav-title { width: 100%; margin-bottom: 4px; }
  .game-nav { flex-direction: row; flex-wrap: wrap; flex: 1; }
  .nav-item { width: auto; }
  .nav-item:hover { transform: none; }
  .sidebar-footer { margin-top: 0; padding-top: 0; width: 100%; display: flex; align-items: center; gap: 14px; }
  .btn-reset { width: auto; }
  .disclaimer { margin-top: 0; text-align: left; flex: 1; }
  .content { padding: 16px; }
  .game-container { padding: 18px; }
}

@media (max-width: 480px) {
  .app-header { padding: 12px 16px; flex-wrap: wrap; }
  .balance-box { min-width: 0; }
  .brand-sub { display: none; }
  .placeholder h1 { font-size: 24px; }
}
