:root {
  --bg: #0b0d12;
  --surface: #141821;
  --surface-2: #1b2130;
  --border: #262d3d;
  --text: #e8ebf2;
  --muted: #9aa3b5;
  --accent: #7c5cff;
  --accent-2: #2ee6a6;
  --radius: 14px;
  --max: 1080px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  background-image:
    radial-gradient(900px 500px at 85% -10%, rgba(124, 92, 255, 0.18), transparent 60%),
    radial-gradient(700px 400px at -10% 10%, rgba(46, 230, 166, 0.08), transparent 60%);
  background-attachment: fixed;
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
a { color: var(--accent-2); }
h1, h2, h3 { font-family: "Rajdhani", "Inter", sans-serif; letter-spacing: 0.02em; line-height: 1.15; margin: 0 0 0.5em; }
h1 { font-size: clamp(2.4rem, 7vw, 4.2rem); font-weight: 700; text-transform: uppercase; }
h2 { font-size: 1.9rem; font-weight: 700; }
h3 { font-size: 1.35rem; font-weight: 600; }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 16px; }
main { flex: 1; padding: 40px 0 64px; }

/* ---------- header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(11, 13, 18, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; }
.logo {
  font-family: "Rajdhani", sans-serif; font-weight: 700; font-size: 1.4rem;
  text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--text); text-decoration: none; white-space: nowrap;
}
.logo span { color: var(--accent); }
.nav { display: flex; gap: 4px; }
.nav a {
  color: var(--muted); text-decoration: none; font-weight: 500;
  padding: 8px 12px; border-radius: 8px; font-size: 0.95rem;
}
.nav a:hover { color: var(--text); background: var(--surface); }
.nav a.active { color: var(--text); background: var(--surface-2); }
.menu-btn {
  display: none; background: none; border: 1px solid var(--border); color: var(--text);
  border-radius: 8px; padding: 6px 12px; font: inherit; cursor: pointer;
}

@media (max-width: 720px) {
  .menu-btn { display: block; }
  .nav {
    display: none; position: absolute; top: 64px; left: 0; right: 0;
    flex-direction: column; padding: 8px 16px 16px;
    background: var(--bg); border-bottom: 1px solid var(--border);
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px; border-radius: 10px; font-weight: 600;
  text-decoration: none; border: 1px solid transparent; cursor: pointer; font: inherit; font-weight: 600;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { filter: brightness(1.1); }
.btn-ghost { background: transparent; border-color: var(--border); color: var(--text); }
.btn-ghost:hover { background: var(--surface); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- hero ---------- */
.hero { padding: 40px 0 48px; }
.eyebrow { color: var(--accent-2); font-weight: 600; text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.8rem; margin-bottom: 12px; }
.hero p.lead { font-size: 1.15rem; color: var(--muted); max-width: 560px; margin-bottom: 28px; }

/* ---------- cards / grids ---------- */
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 22px;
}
a.card { color: inherit; text-decoration: none; transition: border-color 0.15s, transform 0.15s; display: block; }
a.card:hover { border-color: var(--accent); transform: translateY(-2px); }
.card .icon { font-size: 1.6rem; margin-bottom: 8px; }
.card p { color: var(--muted); margin: 0; }
.page-head { margin-bottom: 28px; }
.page-head p { color: var(--muted); max-width: 620px; }

.tag {
  display: inline-block; font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em;
  padding: 3px 10px; border-radius: 999px; background: var(--surface-2); color: var(--muted);
}
.tag.main { background: rgba(124, 92, 255, 0.18); color: #b9a8ff; }
.tag.rotation { background: rgba(46, 230, 166, 0.14); color: var(--accent-2); }

.game .meta { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; margin: 14px 0; font-size: 0.95rem; }
.game .meta dt { color: var(--muted); }
.game .meta dd { margin: 0; }
.game h3 { margin: 10px 0 0; }

.member { display: flex; gap: 14px; align-items: center; }
.avatar {
  flex: none; width: 48px; height: 48px; border-radius: 12px;
  display: grid; place-items: center; font-family: "Rajdhani", sans-serif; font-weight: 700; font-size: 1.3rem;
  background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #0b0d12;
}
.member h3 { margin: 0; font-size: 1.2rem; }
.member .sub { color: var(--muted); font-size: 0.9rem; word-break: break-word; }

/* ---------- calendar ---------- */
.cal-frame {
  background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border);
}
.cal-frame iframe { display: block; width: 100%; height: 680px; border: 0; }
@media (max-width: 720px) { .cal-frame iframe { height: 560px; } }

.setup ol { padding-left: 20px; color: var(--muted); margin: 0; }
.setup li { margin-bottom: 8px; }
.setup code { background: var(--surface-2); padding: 2px 6px; border-radius: 6px; color: var(--text); font-size: 0.9em; }

.rules { counter-reset: r; list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.rules li { counter-increment: r; display: flex; gap: 14px; align-items: flex-start; }
.rules li::before {
  content: counter(r); flex: none; width: 32px; height: 32px; border-radius: 8px;
  display: grid; place-items: center; background: var(--surface-2); color: var(--accent-2); font-weight: 700;
}

.section { margin-top: 48px; }
.notice { border-left: 3px solid var(--accent); }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--border); padding: 24px 0; color: var(--muted); font-size: 0.9rem; }
.site-footer .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
