:root {
  --bg: #0c0f12;
  --panel: #151a20;
  --muted: #aeb8c4;
  --text: #e6eef8;
  --accent: #ff0000; /* overwritten by JS */
  --danger: #ff5252;
  --shadow: rgba(0, 0, 0, 0.35);
}

* { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, system-ui, Arial, Helvetica, sans-serif;
}

.pxfont { font-family: "Press Start 2P", system-ui, monospace; letter-spacing: 1px; }
.glow { text-shadow: 0 0 8px var(--accent), 0 0 16px var(--accent); }

/* ───────────── NAVIGATION ───────────── */
.nav {
  position: sticky;
  top: 0;
  background: rgba(12,15,18,.9);
  backdrop-filter: blur(6px);
  z-index: 50;
  border-bottom: 1px solid #1f2630;
}
.nav-inner {
  display:flex;
  align-items:center;
  justify-content:space-between;
  max-width:1100px;
  margin:0 auto;
  padding:10px 16px;
}
.nav a { color:var(--text); text-decoration:none; }
.nav .brand { font-weight:800; }
.nav ul { list-style:none; display:flex; gap:14px; margin:0; padding:0; }
.nav .store {
  background:var(--accent);
  color:#000;
  padding:6px 10px;
  border-radius:10px;
}

/* ───────────── GENERAL LAYOUT ───────────── */
.container { max-width:1100px; margin:0 auto; padding:16px; }

/* ───────────── HERO ───────────── */
.hero {
  position: relative;
  min-height: 46vh;
  border: 1px solid #1f2630;
  border-radius: 18px;
  background:
    radial-gradient(1200px 400px at 10% 10%, rgba(255, 60, 60, .08), transparent),
    linear-gradient(180deg, #0d1116, #0b0e12);
  overflow: hidden;
  box-shadow: 0 10px 40px var(--shadow);
}
.hero-inner {
  position:relative;
  z-index:2;
  display:grid;
  place-items:center;
  padding:48px 12px;
  text-align:center;
}
#particles {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(255, 60, 60, 0.15) 0 2px, transparent 3px),
    radial-gradient(circle at 70% 60%, rgba(255, 120, 120, 0.15) 0 2px, transparent 3px);
  background-size: 200px 200px, 160px 160px;
  animation: drift 30s linear infinite;
  filter: drop-shadow(0 0 6px rgba(255, 60, 60, 0.25));
}
@keyframes drift {
  0% { background-position:0 0, 0 0; }
  100% { background-position:1000px 600px, -800px 400px; }
}
.hero .btn { margin:0 6px; }

/* ───────────── ANNOUNCEMENTS ───────────── */
.grid h2 { margin:24px 0 8px; }

/* Stack announcements vertically */
.cards {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
}

/* Announcement block */
.card {
  background: var(--panel);
  border: 1px solid #1f2630;
  border-radius: 16px;
  padding: 18px 22px;
  box-shadow: 0 6px 24px var(--shadow);
  transition: .2s transform, .2s box-shadow, .3s border-color;
  word-break: break-word;
}
.card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: 0 10px 32px var(--shadow), 0 0 10px var(--accent);
}
.meta {
  display:inline-block;
  margin-top:6px;
  color:var(--muted);
  font-size:.85rem;
}

/* ───────────── BUBBLES / BUTTON GRIDS ───────────── */
.bubbles {
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(180px,1fr));
  gap:12px;
}
.bubble {
  display:flex;
  align-items:center;
  justify-content:center;
  background:linear-gradient(180deg,#0e1319,#0c1015);
  border:1px solid #1f2630;
  border-radius:20px;
  padding:18px;
  text-decoration:none;
  color:var(--text);
  box-shadow: inset 0 0 40px rgba(0,230,118,.05);
  transition:.2s transform,.2s box-shadow;
}
.bubble:hover {
  transform:translateY(-2px);
  box-shadow: inset 0 0 60px rgba(0,230,118,.10), 0 10px 22px var(--shadow);
}

/* ───────────── FORMS ───────────── */
.form {
  display:grid;
  gap:10px;
  background:var(--panel);
  border:1px solid #1f2630;
  border-radius:16px;
  padding:14px;
}
.form label { display:grid; gap:6px; font-weight:600; }
.form input, .form textarea {
  background:#0c1117;
  color:var(--text);
  border:1px solid #1f2630;
  border-radius:10px;
  padding:10px;
  width:100%;
}
.form.inline { grid-template-columns:1fr 1fr 2fr auto; align-items:end; }
@media(max-width:800px){ .form.inline{grid-template-columns:1fr;} }

/* ───────────── BUTTONS ───────────── */
.btn {
  display:inline-block;
  background:var(--accent);
  color:#000;
  font-weight:800;
  border:0;
  border-radius:12px;
  padding:10px 14px;
  cursor:pointer;
  text-decoration:none;
  transition:.2s transform;
}
.btn:hover { transform:translateY(-2px); }
.btn.ghost { background:transparent; color:var(--text); border:1px solid var(--accent); }
.btn.danger { background:var(--danger); color:white; }

/* ───────────── NOTICES ───────────── */
.notice { padding:10px; border-radius:12px; }
.notice.success { background:#10381f; border:1px solid #1f5a33; }
.notice.error { background:#381010; border:1px solid #5a1f1f; }

/* ───────────── TABLES ───────────── */
.table {
  width:100%;
  border-collapse:collapse;
  background:var(--panel);
  border:1px solid #1f2630;
  border-radius:12px;
  overflow:hidden;
  table-layout: fixed;
}
.table th, .table td {
  padding:10px;
  border-bottom:1px solid #1f2630;
  vertical-align:top;
  word-break: break-word;
  white-space: normal;
}

/* ───────────── TABS ───────────── */
.tabs { display:flex; gap:8px; margin:10px 0; }
.tab {
  padding:8px 12px;
  border:1px solid #1f2630;
  border-radius:10px;
  text-decoration:none;
  color:var(--text);
}
.tab.active { background:var(--accent); color:#000; border-color:transparent; }

/* ───────────── STATS ───────────── */
.stats {
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:10px;
}
.stat {
  background:var(--panel);
  border:1px solid #1f2630;
  border-radius:14px;
  padding:14px;
  text-align:center;
}
.grid.narrow { max-width:560px; margin:0 auto; }

/* ───────────── FOOTER ───────────── */
.footer {
  max-width:1100px;
  margin:24px auto;
  padding:16px;
  color:var(--muted);
  text-align:center;
}
