/* FlipSMP website – one stylesheet for every page */

:root {
  --bg: #0d0b10;
  --bg-2: #15121b;
  --card: #1b1722;
  --card-2: #221d2b;
  --line: #2e2838;
  --text: #f4f1f7;
  --muted: #a39cae;
  --gold-1: #ffe259;
  --gold-2: #ffa751;
  --gold: #ffd23f;
  --green: #4ade80;
  --red: #f87171;
  --purple: #c084fc;
  --blue: #38bdf8;
  --radius: 16px;
  --shadow: 0 18px 50px rgba(0, 0, 0, .45);
  --max: 1160px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

body::before {
  /* soft golden glow at the top of every page */
  content: "";
  position: fixed;
  inset: -20vh -10vw auto;
  height: 70vh;
  background: radial-gradient(60% 60% at 50% 0%, rgba(255, 186, 74, .16), transparent 70%);
  pointer-events: none;
  z-index: -1;
}

a { color: var(--gold); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }

.grad {
  background: linear-gradient(90deg, var(--gold-1), var(--gold-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.pixel { font-family: "Silkscreen", "Inter", monospace; letter-spacing: .02em; }

/* ───────────── Header ───────────── */

.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(14px);
  background: rgba(13, 11, 16, .78);
  border-bottom: 1px solid var(--line);
}

.nav .wrap { display: flex; align-items: center; gap: 22px; height: 68px; }

.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; color: var(--text); }
.brand:hover { text-decoration: none; }
.brand img { width: 36px; height: 36px; }

.nav-links { display: flex; gap: 6px; margin-left: auto; }
.nav-links a {
  color: var(--muted);
  font-weight: 600;
  font-size: 15px;
  padding: 8px 14px;
  border-radius: 10px;
}
.nav-links a:hover { color: var(--text); background: var(--card); text-decoration: none; }
.nav-links a.active { color: var(--text); background: var(--card-2); }

.menu-toggle {
  display: none;
  margin-left: auto;
  background: var(--card);
  border: 1px solid var(--line);
  color: var(--text);
  border-radius: 10px;
  width: 42px;
  height: 42px;
  font-size: 20px;
  cursor: pointer;
}

/* ───────────── Buttons ───────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 22px;
  border-radius: 12px;
  border: 1px solid transparent;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: transform .12s ease, filter .12s ease, background .12s ease;
  color: var(--text);
  white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }

.btn-gold { background: linear-gradient(90deg, var(--gold-1), var(--gold-2)); color: #1d1405; }
.btn-gold:hover { filter: brightness(1.06); }
.btn-ghost { background: var(--card); border-color: var(--line); }
.btn-ghost:hover { background: var(--card-2); }
.btn-discord { background: #5865f2; }
.btn-discord:hover { filter: brightness(1.08); }
.btn-sm { padding: 9px 14px; font-size: 14px; border-radius: 10px; }

/* ───────────── Hero ───────────── */

.hero { padding: 84px 0 56px; text-align: center; }
.hero-logo { width: 116px; height: 116px; margin: 0 auto 22px; filter: drop-shadow(0 12px 30px rgba(255, 180, 60, .35)); animation: float 5s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-8px); } }
.hero h1 { font-size: clamp(42px, 7vw, 76px); line-height: 1.02; margin: 0 0 16px; font-weight: 900; letter-spacing: -.02em; }
.hero p.lead { color: var(--muted); font-size: clamp(17px, 2.2vw, 20px); max-width: 620px; margin: 0 auto 32px; }

.ip-box {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 8px 8px 8px 20px;
  box-shadow: var(--shadow);
  max-width: 100%;
}
.ip-box code { font: 700 18px/1 "Silkscreen", monospace; color: var(--gold); overflow: hidden; text-overflow: ellipsis; }

.status-line { margin-top: 20px; color: var(--muted); font-size: 15px; display: flex; gap: 10px; justify-content: center; align-items: center; flex-wrap: wrap; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--muted); display: inline-block; }
.dot.on { background: var(--green); box-shadow: 0 0 0 4px rgba(74, 222, 128, .18); }
.dot.off { background: var(--red); }

.hero-actions { display: flex; gap: 12px; justify-content: center; margin-top: 30px; flex-wrap: wrap; }

/* ───────────── Sections & cards ───────────── */

section { padding: 56px 0; }
.section-head { text-align: center; margin-bottom: 38px; }
.section-head h2 { font-size: clamp(28px, 4vw, 40px); margin: 0 0 10px; font-weight: 850; letter-spacing: -.01em; }
.section-head p { color: var(--muted); margin: 0 auto; max-width: 600px; }

.grid { display: grid; gap: 18px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: linear-gradient(180deg, var(--card), var(--bg-2));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}
.card h3 { margin: 12px 0 6px; font-size: 19px; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }
.icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 22px;
  background: rgba(255, 210, 63, .1);
  border: 1px solid rgba(255, 210, 63, .25);
}

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.stat { text-align: center; padding: 22px; }
.stat b { display: block; font-size: 32px; font-weight: 900; }
.stat span { color: var(--muted); font-size: 14px; }

.cta {
  text-align: center;
  padding: 44px 24px;
  border-radius: 22px;
  background:
    radial-gradient(80% 120% at 50% 0%, rgba(255, 186, 74, .18), transparent 70%),
    var(--card);
  border: 1px solid var(--line);
}
.cta h2 { margin: 0 0 8px; font-size: clamp(26px, 3.6vw, 36px); }
.cta p { color: var(--muted); margin: 0 0 24px; }

/* ───────────── Page header ───────────── */

.page-head { padding: 64px 0 18px; text-align: center; }
.page-head h1 { font-size: clamp(36px, 6vw, 56px); margin: 0 0 10px; font-weight: 900; letter-spacing: -.02em; }
.page-head p { color: var(--muted); margin: 0 auto; max-width: 620px; }

/* ───────────── Store ───────────── */

.store-bar {
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 16px;
  margin: 26px 0 22px;
}
.user { display: flex; align-items: center; gap: 12px; min-width: 0; }
.user img { width: 40px; height: 40px; border-radius: 8px; image-rendering: pixelated; background: var(--card-2); }
.user input {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--text);
  font: inherit;
  padding: 10px 12px;
  width: 220px;
  max-width: 100%;
}
.user input:focus { outline: none; border-color: var(--gold); }

.tabs { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-bottom: 26px; }
.tab {
  background: var(--card);
  border: 1px solid var(--line);
  color: var(--muted);
  border-radius: 999px;
  padding: 9px 18px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.tab:hover { color: var(--text); }
.tab.active { color: #1d1405; background: linear-gradient(90deg, var(--gold-1), var(--gold-2)); border-color: transparent; }

.packages { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; }
.pkg { display: flex; flex-direction: column; position: relative; overflow: hidden; }
.pkg .badge {
  position: absolute;
  top: 14px;
  right: 14px;
  font-size: 12px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 210, 63, .14);
  color: var(--gold);
  border: 1px solid rgba(255, 210, 63, .3);
}
.pkg-img { height: 120px; display: grid; place-items: center; margin: 6px 0 4px; }
.pkg-img img { max-height: 100px; image-rendering: pixelated; filter: drop-shadow(0 10px 20px rgba(0, 0, 0, .4)); }
.pkg-img .emoji { font-size: 64px; }
.pkg h3 { margin: 10px 0 4px; }
.pkg ul { margin: 12px 0 18px; padding: 0; list-style: none; color: var(--muted); font-size: 14px; flex: 1; }
.pkg li { padding: 4px 0 4px 22px; position: relative; }
.pkg li::before { content: "✦"; position: absolute; left: 0; color: var(--gold); }
.price { font-size: 26px; font-weight: 900; white-space: nowrap; }
.price small { font-size: 14px; color: var(--muted); font-weight: 600; }
.pkg-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; }

.notice {
  border: 1px dashed rgba(255, 210, 63, .45);
  background: rgba(255, 210, 63, .06);
  border-radius: var(--radius);
  padding: 14px 18px;
  color: #f6e3a6;
  font-size: 15px;
  text-align: center;
}

.basket-btn { position: relative; }
.basket-count[hidden] { display: none; }
.basket-count {
  position: absolute;
  top: -7px;
  right: -7px;
  min-width: 22px;
  height: 22px;
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  font-size: 12px;
  display: grid;
  place-items: center;
  padding: 0 6px;
}

/* basket drawer */
.drawer-bg { position: fixed; inset: 0; background: rgba(0, 0, 0, .55); z-index: 40; display: none; }
.drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(420px, 100%);
  background: var(--bg-2);
  border-left: 1px solid var(--line);
  z-index: 41;
  transform: translateX(100%);
  transition: transform .2s ease;
  display: flex;
  flex-direction: column;
}
.drawer.open { transform: none; }
.drawer-bg.open { display: block; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.drawer-head h3 { margin: 0; }
.drawer-body { padding: 16px 20px; overflow: auto; flex: 1; }
.drawer-foot { padding: 18px 20px; border-top: 1px solid var(--line); display: grid; gap: 12px; }
.line-item { display: flex; justify-content: space-between; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.line-item:last-child { border-bottom: 0; }
.line-item .muted { color: var(--muted); font-size: 14px; }
.x { background: none; border: 0; color: var(--muted); font-size: 22px; cursor: pointer; line-height: 1; }
.x:hover { color: var(--text); }
.total { display: flex; justify-content: space-between; font-weight: 800; font-size: 18px; }

/* ───────────── Text pages ───────────── */

.prose { max-width: 820px; margin: 0 auto; }
.prose h2 { margin: 34px 0 10px; font-size: 24px; }
.prose p, .prose li { color: #d8d2df; }
.prose ol, .prose ul { padding-left: 22px; }
.prose li { margin: 6px 0; }
.todo { background: rgba(248, 113, 113, .12); color: #fecaca; border: 1px solid rgba(248, 113, 113, .35); border-radius: 8px; padding: 2px 8px; font-size: 14px; }

.vote-list { display: grid; gap: 14px; max-width: 760px; margin: 0 auto; }
.vote-item { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.vote-item b { font-size: 18px; }

/* ───────────── Footer ───────────── */

footer { margin-top: auto; border-top: 1px solid var(--line); padding: 34px 0; color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; align-items: center; }
footer nav { display: flex; gap: 18px; flex-wrap: wrap; }
footer a { color: var(--muted); }
footer a:hover { color: var(--text); }

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%) translateY(20px);
  background: var(--card-2);
  border: 1px solid var(--line);
  color: var(--text);
  padding: 12px 18px;
  border-radius: 12px;
  box-shadow: var(--shadow);
  opacity: 0;
  transition: opacity .18s ease, transform .18s ease;
  z-index: 60;
  pointer-events: none;
  max-width: calc(100% - 32px);
}
.toast.show { opacity: 1; transform: translateX(-50%); }

/* ───────────── Responsive ───────────── */

@media (max-width: 900px) {
  .grid-3, .grid-4, .stats { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  .menu-toggle { display: block; }
  .nav-links {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--bg-2);
    border-bottom: 1px solid var(--line);
    padding: 10px 16px 16px;
  }
  .nav-links.open { display: flex; }
  .nav .wrap { padding: 0 16px; }
  .wrap { padding: 0 16px; }
  .hero { padding: 56px 0 40px; }
  .grid-3, .grid-4, .stats { grid-template-columns: 1fr; }
  .ip-box { padding-left: 14px; }
  .ip-box code { font-size: 15px; }
  .store-bar { flex-direction: column; align-items: stretch; }
  .user input { width: 100%; }
  .vote-item { flex-direction: column; align-items: flex-start; }
}
