:root {
  --bg: #000;
  --card: #0a0f0d;
  --card-2: #101814;
  --line: rgba(255, 255, 255, .08);
  --line-2: rgba(255, 255, 255, .14);
  --text: #effff7;
  --muted: #9db3a9;
  --accent: #2eee99;
  --accent-hi: #6ff5b8;
  --ok: #4ade80;
  --bad: #ff5c6c;
  --radius: 24px;
  --pixel: "Press Start 2P", monospace;
  --sans: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
.pixel { font-family: var(--pixel); font-weight: 400; letter-spacing: .02em; }
.accent { color: var(--accent); }
.muted { color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* nav */
.nav {
  position: sticky; top: 14px; z-index: 20;
  width: min(1120px, calc(100% - 28px)); margin: 14px auto 0;
  display: flex; align-items: center; gap: 16px;
  padding: 8px 10px 8px 10px;
  border: 1px solid var(--line); border-radius: 999px;
  background: rgba(6, 12, 9, .78); backdrop-filter: blur(14px);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-logo { width: 34px; height: 34px; border-radius: 9px; display: block; box-shadow: 0 0 0 1px rgba(46, 238, 153, .35); }
.brand-name { font-family: var(--pixel); font-size: 13px; letter-spacing: .08em; }
.brand-name.small { font-size: 10px; }
.nav-links { display: flex; gap: 4px; margin: 0 auto; }
.nav-links a {
  padding: 8px 14px; border-radius: 999px; text-decoration: none;
  color: var(--muted); font-weight: 500; font-size: 14px; transition: .15s;
}
.nav-links a:hover { color: var(--text); background: rgba(255, 255, 255, .06); }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 20px; border-radius: 12px; border: 1px solid transparent;
  font: 600 14px var(--sans); text-decoration: none; cursor: pointer;
  transition: transform .12s, background .15s, border-color .15s;
}
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-sm { padding: 9px 16px; font-size: 13px; }
.btn-block { width: 100%; padding: 14px; }
.btn-accent { background: var(--accent); color: #03140c; box-shadow: 0 6px 24px rgba(46, 238, 153, .3); }
.btn-accent:hover:not(:disabled) { background: var(--accent-hi); }
.btn-dark { background: #000; color: var(--text); border-color: var(--line-2); }
.btn-dark:hover { border-color: rgba(255, 255, 255, .3); }
.btn-ghost { background: transparent; color: var(--text); border: 1px dashed var(--line-2); }
.btn-ghost:hover:not(:disabled) { border-color: var(--accent); color: var(--accent-hi); }

/* layout */
main { width: min(1120px, calc(100% - 28px)); margin: 18px auto 0; display: grid; gap: 18px; }
.card {
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--card);
}

/* hero */
.hero {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: 1.4fr 1fr; align-items: center; gap: 24px;
  padding: clamp(28px, 5vw, 64px);
  background:
    radial-gradient(600px 380px at 85% 30%, rgba(46, 238, 153, .22), transparent 70%),
    radial-gradient(500px 300px at 0% 100%, rgba(16, 150, 100, .16), transparent 70%),
    linear-gradient(180deg, #0b1612, #050807);
}
.hero::after { /* subtle pixel grid */
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .35;
  background-image: linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 24px 24px;
  mask-image: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent);
}
.hero-copy { position: relative; z-index: 1; }
.hero h1 { font-size: clamp(22px, 3.6vw, 44px); line-height: 1.35; margin: 22px 0 18px; }
.lead { color: var(--muted); max-width: 520px; font-size: 16px; margin: 0 0 26px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.hero-art { position: relative; z-index: 1; display: grid; place-items: center; }
.hero-logo {
  width: min(300px, 72%); aspect-ratio: 1; display: block; border-radius: 36px;
  box-shadow: 0 0 0 1px rgba(46, 238, 153, .35), 0 24px 80px rgba(46, 238, 153, .28);
  animation: float 6s ease-in-out infinite;
}
@keyframes float { 50% { transform: translateY(-10px); } }
.stats { display: flex; gap: 36px; margin: 34px 0 0; padding: 0; flex-wrap: wrap; }
.stats div { margin: 0; }
.stats dt { font-size: 20px; }
.stats dd { margin: 8px 0 0; color: var(--muted); font-size: 13px; }

.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px; border-radius: 999px;
  border: 1px solid var(--line-2); background: rgba(0, 0, 0, .4);
  font-size: 12px; font-weight: 600; color: var(--muted);
}
.pill i { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); }
.pill.open i, .pill-ok i { background: var(--ok); box-shadow: 0 0 10px var(--ok); }
.pill.open, .pill-ok { color: #c9f7d9; }
.pill.closed i { background: var(--bad); }

/* sections */
.section { padding: clamp(24px, 4vw, 48px); }
.section-head { margin-bottom: 26px; }
.kicker { color: var(--accent); font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.section-head h2 { font-size: clamp(18px, 2.4vw, 26px); margin: 14px 0 12px; }
.section-head p { margin: 0; }

/* form */
.form { display: grid; gap: 22px; max-width: 760px; }
.segment {
  display: inline-grid; grid-auto-flow: column; justify-self: start;
  padding: 4px; border-radius: 12px; border: 1px solid var(--line); background: #000;
}
.segment button {
  padding: 9px 26px; border: 0; border-radius: 9px; background: transparent;
  color: var(--muted); font: 600 14px var(--sans); cursor: pointer;
}
.segment button.active { background: var(--card-2); color: var(--text); box-shadow: inset 0 0 0 1px var(--line-2); }
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 8px; }
.field:first-child[data-team-only] { grid-column: 1 / -1; }
.field > span:first-child, .members-head span:first-child { font-size: 13px; font-weight: 600; }
input:not([type=checkbox]) {
  width: 100%; padding: 12px 14px; border-radius: 12px;
  border: 1px solid var(--line-2); background: #000; color: var(--text);
  font: 15px var(--sans); outline: none; transition: border-color .15s, box-shadow .15s;
}
input:not([type=checkbox]):focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(46, 238, 153, .2); }
input.invalid { border-color: var(--bad) !important; }
.members { display: grid; gap: 12px; }
.members-head { display: flex; justify-content: space-between; align-items: baseline; }
.members-list { display: grid; grid-template-columns: 1fr; gap: 10px; }
.member { display: flex; gap: 8px; align-items: center; }
.member b { position: absolute; left: 12px; font: 9px var(--pixel); color: var(--muted); pointer-events: none; }
.member input { padding-left: 64px; padding-right: 112px; }
.member button {
  position: absolute; right: 6px; width: 30px; height: 30px; border: 0; border-radius: 8px;
  background: transparent; color: var(--muted); font-size: 18px; cursor: pointer;
}
.member button:hover { background: rgba(255, 92, 108, .12); color: var(--bad); }
.members-head + .members-list:empty::before { content: "No teammates added yet."; color: var(--muted); font-size: 14px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--muted); cursor: pointer; }
.check input { margin-top: 3px; accent-color: var(--accent); width: 16px; height: 16px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-error { margin: 0; min-height: 0; color: var(--bad); font-size: 14px; font-weight: 500; }
.form-error:empty { display: none; }
.success { display: grid; gap: 14px; justify-items: start; max-width: 560px; }
.success h3 { font-size: 18px; margin: 6px 0 0; line-height: 1.4; }
.success p { margin: 0 0 6px; }

/* steps */
.steps { padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.step { padding: 26px; }
.step h3 { margin: 16px 0 6px; font-size: 17px; }
.step p { margin: 0; font-size: 14px; }

.footer .brand-logo { width: 24px; height: 24px; border-radius: 6px; }
.footer-brand { display: flex; align-items: center; gap: 10px; }
.footer {
  width: min(1120px, calc(100% - 28px)); margin: 36px auto 30px;
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 13px;
  padding-top: 22px; border-top: 1px solid var(--line);
}

@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; }
  .hero-art { display: none; }
  .nav-links { display: none; }
  .nav { justify-content: space-between; }
  .steps, .grid, .members-list { grid-template-columns: 1fr; }
  .stats { gap: 24px; }
}
@media (prefers-reduced-motion: reduce) { .hero-logo { animation: none; } html { scroll-behavior: auto; } }

/* verify box */
.verify-box { width: 100%; display: grid; gap: 10px; padding: 18px; border-radius: 16px; border: 1px solid rgba(46,238,153,.35); background: rgba(46,238,153,.07); }
.verify-box p { margin: 0; }
.verify-cmd { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.verify-cmd code { flex: 1; min-width: 220px; padding: 12px 14px; border-radius: 12px; background: #000; border: 1px solid var(--line-2); font: 12px var(--pixel); color: var(--accent-hi); letter-spacing: .04em; user-select: all; }
.small { font-size: 13px; }
.step code, .verify-box code { color: var(--accent-hi); font-size: 13px; }

/* Minecraft heads + NameMC / cracked badges */
.hint { font-style: normal; font-weight: 400; font-size: 12px; }
.ign { position: relative; display: flex; align-items: center; }
.ign input { padding-left: 44px; padding-right: 100px; }
.head { position: absolute; width: 22px; height: 22px; border-radius: 5px; image-rendering: pixelated; opacity: .35; pointer-events: none; transition: opacity .2s; }
.head.on { opacity: 1; }
.ign .head { left: 12px; }
.member .head { left: 34px; }
.acct { position: absolute; right: 8px; padding: 3px 8px; border-radius: 999px; font-size: 11px; font-weight: 700; line-height: 1.4; text-decoration: none; white-space: nowrap; }
.member .acct { right: 42px; }
.acct:empty { display: none; }
.acct.premium { color: #03140c; background: var(--accent); }
.acct.premium:hover { background: var(--accent-hi); }
.acct.cracked { color: #ffd27a; background: rgba(255, 201, 77, .12); border: 1px solid rgba(255, 201, 77, .35); }
.acct.blocked { color: var(--bad); background: rgba(255, 92, 108, .12); border: 1px solid rgba(255, 92, 108, .35); }
[data-member-count].short { color: #ffd27a; }

/* OTP */
.otp-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.verify-box .otp { flex: 1; min-width: 220px; padding: 16px; border-radius: 14px; background: #000; border: 1px solid rgba(46, 238, 153, .45); font: 26px var(--pixel); letter-spacing: .35em; text-align: center; color: var(--accent); user-select: all; box-shadow: 0 0 24px rgba(46, 238, 153, .12) inset; }
.otp-timer { font-size: 13px; color: var(--muted); }
.otp-timer b { color: var(--accent-hi); }
.otp-timer.expired { color: var(--bad); }
.otp-steps { margin: 0; padding-left: 20px; display: grid; gap: 6px; font-size: 14px; }
.otp-steps a, .otp-timer a { color: var(--accent-hi); }
#new-code .form { gap: 14px; }
small.cracked { color: #ffd27a; font-size: 11px; }

/* =====================================================================
   New features (roles, pixel icons, hotbar, rules, roster, motion)
   styled to match the original glowing look.
   ===================================================================== */

/* Team roles */
.ign-row { display: flex; gap: 8px; align-items: center; }
.ign-row .ign { flex: 1; min-width: 0; }
.member-ign { position: relative; flex: 1; min-width: 0; display: flex; align-items: center; }
select.role { flex: 0 0 auto; width: 118px; padding: 12px 10px; border-radius: 12px; border: 1px solid var(--line-2); background: #000; color: var(--text); font: 600 14px var(--sans); outline: none; cursor: pointer; transition: border-color .15s, box-shadow .15s; }
select.role:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(46, 238, 153, .2); }
select.role.invalid { border-color: var(--bad) !important; }
select.role.picked { border-color: rgba(46, 238, 153, .6); color: var(--accent-hi); box-shadow: 0 0 14px rgba(46, 238, 153, .18); }
.role-help { margin: 0; padding: 12px 14px; border-radius: 14px; border: 1px solid rgba(46, 238, 153, .25); background: rgba(46, 238, 153, .05); }
.role-help b { color: var(--text); }
.role-count { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 6px; font-weight: 700; }
.role-count.short { color: #ffd27a; }
.role-count.ok { color: var(--accent); text-shadow: 0 0 12px rgba(46, 238, 153, .45); }
.rc { display: inline-flex; align-items: center; }

/* Pixel icons (assets/icons.js) */
.px { display: inline-block; width: 1.15em; height: 1.15em; vertical-align: -0.18em; margin-right: .35em; flex: none; }
.px-svg { display: block; width: 100%; height: 100%; image-rendering: pixelated; }
.stats dd .px { width: 14px; height: 14px; vertical-align: -2px; margin-right: 6px; }
.step h3 { display: flex; align-items: center; }
.step h3 .px { width: 24px; height: 24px; margin-right: 10px; filter: drop-shadow(0 0 6px rgba(46, 238, 153, .25)); }
.role-help b .px, .rc .px { width: 15px; height: 15px; vertical-align: -2px; margin-right: 5px; }
.section-head h2 .px { width: 1em; height: 1em; vertical-align: -0.1em; margin-right: .4em; }

/* Hotbar under the hero logo */
.hero-art { gap: 30px; }
.hotbar { display: flex; padding: 4px; border-radius: 12px; background: rgba(0, 0, 0, .6); border: 1px solid rgba(46, 238, 153, .3); box-shadow: 0 10px 40px rgba(46, 238, 153, .15); }
.slot { position: relative; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 8px; border: 1px solid transparent; transition: transform .15s, border-color .15s, background .15s, box-shadow .15s; }
.slot .px { width: 24px; height: 24px; margin: 0; }
.slot.sel { border-color: var(--accent); background: rgba(46, 238, 153, .12); box-shadow: 0 0 16px rgba(46, 238, 153, .45); transform: translateY(-3px); }

/* Nav extras */
.nav-links a[aria-current="page"] { color: var(--text); background: rgba(46, 238, 153, .1); }
.footer-links { display: flex; gap: 16px; }
.footer-links a { color: var(--muted); text-decoration: none; font-weight: 600; }
.footer-links a:hover { color: var(--accent-hi); }

/* Rules page */
.hero-slim { grid-template-columns: 1fr; }
.rules-nav { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 0; padding: 0; list-style: none; }
.rules-nav a { display: inline-block; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(0, 0, 0, .4); text-decoration: none; font-size: 13px; font-weight: 600; color: var(--muted); transition: .15s; }
.rules-nav a:hover { color: var(--accent-hi); border-color: rgba(46, 238, 153, .5); box-shadow: 0 0 14px rgba(46, 238, 153, .2); }
.rule-list { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; max-width: 860px; counter-reset: rule; }
.rule-list li { position: relative; padding: 14px 16px 14px 58px; border-radius: 14px; border: 1px solid var(--line); background: #000; counter-increment: rule; }
.rule-list li::before { content: counter(rule, decimal-leading-zero); position: absolute; left: 16px; top: 16px; font: 11px var(--pixel); color: var(--accent); }
.rule-list b, .rules-body b { color: var(--text); }
.rules-body { max-width: 860px; display: grid; gap: 12px; color: var(--muted); }
.rules-body p { margin: 0; }
.callout { max-width: 860px; margin: 18px 0 0; padding: 14px 18px; border-radius: 14px; border: 1px solid rgba(46, 238, 153, .3); background: rgba(46, 238, 153, .06); color: var(--muted); }
.callout.warn { border-color: rgba(255, 92, 108, .4); background: rgba(255, 92, 108, .07); }
.callout.final { text-align: center; color: #03140c; background: var(--accent); border: 0; font: 13px/1.6 var(--pixel); box-shadow: 0 6px 30px rgba(46, 238, 153, .35); }
.punish { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; max-width: 860px; }
.punish article { padding: 18px; border-radius: 16px; border: 1px solid var(--line); background: #000; }
.punish h3 { display: flex; align-items: center; margin: 0 0 8px; font-size: 16px; }
.punish h3 .px { width: 22px; height: 22px; }
.punish p { margin: 0; color: var(--muted); font-size: 14px; }
.punish .sev-1 { border-color: rgba(255, 210, 122, .4); }
.punish .sev-2 { border-color: rgba(255, 159, 67, .45); }
.punish .sev-3 { border-color: rgba(255, 92, 108, .5); box-shadow: 0 0 22px rgba(255, 92, 108, .08); }
.punish .sev-4 { border-color: rgba(184, 50, 63, .7); box-shadow: 0 0 22px rgba(255, 92, 108, .14); }
.updated { margin-top: 12px; font-size: 13px; }

/* Roster page */
.roster-toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 18px; }
.roster-toolbar input { max-width: 320px; }
.roster-toolbar .muted { margin-left: auto; font-size: 14px; }
.roster-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.team-card { display: grid; gap: 12px; align-content: start; padding: 18px; border-radius: 18px; border: 1px solid var(--line); background: #000; transition: border-color .2s, box-shadow .2s, transform .2s; }
.team-card:hover { border-color: rgba(46, 238, 153, .45); box-shadow: 0 10px 40px rgba(46, 238, 153, .14); transform: translateY(-2px); }
.team-top { display: flex; align-items: center; gap: 10px; }
.team-top img { width: 40px; height: 40px; border-radius: 8px; image-rendering: pixelated; background: var(--card-2); }
.team-top h3 { margin: 0; font-size: 13px; line-height: 1.5; word-break: break-word; }
.team-top .muted { font-size: 12px; }
.team-badges { display: flex; gap: 6px; margin-left: auto; flex-wrap: wrap; justify-content: flex-end; }
.badge { padding: 3px 9px; border-radius: 999px; font-size: 11px; font-weight: 700; border: 1px solid var(--line-2); color: var(--muted); white-space: nowrap; }
.badge.ok { color: var(--accent); border-color: rgba(46, 238, 153, .45); box-shadow: 0 0 10px rgba(46, 238, 153, .2); }
.badge.wait { color: #ffd27a; border-color: rgba(255, 201, 77, .4); }
.team-roles { display: grid; gap: 4px; font-size: 14px; }
.team-roles div { display: flex; align-items: baseline; gap: 6px; }
.team-roles .px { width: 15px; height: 15px; vertical-align: -2px; margin-right: 0; }
.team-roles span.k { color: var(--muted); min-width: 70px; }
.team-players { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 9px 4px 4px; border-radius: 999px; border: 1px solid var(--line); background: var(--card-2); font-size: 13px; }
.chip img { width: 18px; height: 18px; border-radius: 4px; image-rendering: pixelated; }
.chip.sub { opacity: .65; border-style: dashed; }
.roster-empty { padding: 40px; text-align: center; color: var(--muted); border-radius: 18px; border: 1px dashed var(--line-2); }

@media (max-width: 820px) {
  .punish { grid-template-columns: 1fr; }
  .rule-list li { padding-left: 50px; }
  .roster-toolbar .muted { margin-left: 0; width: 100%; }
}
@media (max-width: 480px) {
  select.role { width: 104px; font-size: 13px; }
  .member input { padding-right: 44px; }
  .member .acct { display: none; }
}

/* ---------- motion (gated behind html.motion, set by JS; off for reduced motion) ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes slide-in { from { opacity: 0; transform: translateX(-36px); } to { opacity: 1; transform: none; } }
@keyframes glow-in { from { opacity: 0; transform: scale(.92); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes pop { 0% { transform: scale(1); } 40% { transform: scale(1.1); } 100% { transform: scale(1); } }
@keyframes pulse-glow { 0%, 100% { box-shadow: 0 6px 24px rgba(46, 238, 153, .3); } 50% { box-shadow: 0 6px 34px rgba(46, 238, 153, .55); } }

html.motion .hero .pill { animation: rise .5s both; }
html.motion .hero h1 { animation: slide-in .6s cubic-bezier(.2, .8, .2, 1) .1s both; }
html.motion .hero .lead { animation: rise .5s .3s both; }
html.motion .hero-actions { animation: rise .5s .4s both; }
html.motion .stats div { animation: rise .5s both; }
html.motion .stats div:nth-child(1) { animation-delay: .5s; }
html.motion .stats div:nth-child(2) { animation-delay: .58s; }
html.motion .stats div:nth-child(3) { animation-delay: .66s; }
html.motion .hero-logo { animation: glow-in .8s cubic-bezier(.2, .8, .2, 1) .2s both, float 6s ease-in-out 1s infinite; }
html.motion .hotbar { animation: rise .5s .8s both; }
html.motion .btn-accent { animation: pulse-glow 3s ease-in-out infinite; }

html.motion [data-reveal] { opacity: 0; }
html.motion [data-reveal].in { opacity: 1; animation: rise .6s cubic-bezier(.2, .8, .2, 1) both; }
html.motion [data-reveal].in .step { animation: rise .5s both; }
html.motion [data-reveal].in .step:nth-child(2) { animation-delay: .1s; }
html.motion [data-reveal].in .step:nth-child(3) { animation-delay: .2s; }
html.motion .member.new { animation: slide-in .3s cubic-bezier(.2, .8, .2, 1) both; }
html.motion .role-count.ok { animation: pop .35s ease-out; }
html.motion .team-card { animation: rise .45s both; }
html.motion .success:not([hidden]) > * { animation: rise .45s both; }
html.motion .success:not([hidden]) > :nth-child(2) { animation-delay: .06s; }
html.motion .success:not([hidden]) > :nth-child(3) { animation-delay: .12s; }
html.motion .success:not([hidden]) > :nth-child(4) { animation-delay: .18s; }

@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* Rules page: width-wise layout (less scrolling) */
.rules-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: start; }
.rules-grid .section { padding: clamp(20px, 2.6vw, 30px); }
.rules-grid .section-head { margin-bottom: 16px; }
.rules-grid .section-head h2 { font-size: clamp(15px, 1.6vw, 19px); margin: 10px 0 8px; }
.rules-grid .section-head p { font-size: 14px; }
.rules-wide { grid-column: 1 / -1; }
.rules-grid .rule-list, .rules-grid .rules-body, .rules-grid .callout, .rules-grid .punish { max-width: none; }
.rules-grid .rule-list { gap: 8px; }
.rules-grid .rule-list li { padding: 10px 14px 10px 50px; font-size: 14px; line-height: 1.5; }
.rules-grid .rule-list li::before { left: 14px; top: 13px; font-size: 10px; }
.rule-list.cols-2 { grid-template-columns: 1fr 1fr; }
.rules-grid .rules-body { font-size: 14px; gap: 8px; }
.rules-grid .callout { margin-top: 12px; padding: 11px 14px; font-size: 14px; }
.rules-grid .callout.final { font-size: 11px; padding: 12px; }
.rules-grid .punish { gap: 10px; }
.rules-grid .punish article { padding: 14px; }
.rules-grid .punish h3 { font-size: 14px; }
.rules-grid .punish p { font-size: 13px; }
.hero-slim { padding: clamp(24px, 3.5vw, 40px); }
.hero-slim h1 { margin: 16px 0 10px; }
.hero-slim .lead { margin-bottom: 0; }
.hero-slim .rules-nav { margin-top: 16px; }
@media (max-width: 960px) { .rule-list.cols-2 { grid-template-columns: 1fr; } }
@media (max-width: 820px) { .rules-grid { grid-template-columns: 1fr; } }

/* ---------- Login with Discord ---------- */
.auth-box { display: grid; gap: 8px; margin-bottom: 18px; padding: 16px 18px; border-radius: 16px; border: 1px solid rgba(88,101,242,.45); background: rgba(88,101,242,.08); }
.auth-out, .auth-in { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; justify-content: space-between; }
.auth-out p { margin: 4px 0 0; }
.auth-in { justify-content: flex-start; }
.auth-who { display: grid; flex: 1; min-width: 160px; }
.auth-avatar { width: 40px; height: 40px; border-radius: 50%; background: #000; }
.auth-box .form-error:empty { display: none; }
.btn-discord { display: inline-flex; align-items: center; gap: 10px; background: #5865f2; color: #fff; border: 0; box-shadow: 0 0 22px rgba(88,101,242,.45); }
.btn-discord:hover { background: #4752c4; color: #fff; box-shadow: 0 0 30px rgba(88,101,242,.65); }
.dc-logo { width: 20px; height: 16px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 127 96'%3E%3Cpath d='M107.7 8.1A105 105 0 0 0 81.5 0a72 72 0 0 0-3.4 6.8 97.7 97.7 0 0 0-29.1 0A72 72 0 0 0 45.6 0a105.9 105.9 0 0 0-26.3 8.1C2.8 32.7-1.7 56.6.5 80.2a105.7 105.7 0 0 0 32.2 16.2 77.7 77.7 0 0 0 6.9-11.2 68.4 68.4 0 0 1-10.9-5.2l2.7-2.1a75.6 75.6 0 0 0 64.3 0l2.7 2.1a68.7 68.7 0 0 1-10.9 5.2 77 77 0 0 0 6.9 11.2 105.3 105.3 0 0 0 32.2-16.2c2.6-27.4-4.5-51.1-18.9-72.1ZM42.5 65.7c-6.3 0-11.4-5.7-11.4-12.8s5-12.8 11.4-12.8 11.5 5.8 11.4 12.8-5 12.8-11.4 12.8Zm42 0c-6.3 0-11.4-5.7-11.4-12.8s5-12.8 11.4-12.8 11.5 5.8 11.4 12.8-5 12.8-11.4 12.8Z'/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 127 96'%3E%3Cpath d='M107.7 8.1A105 105 0 0 0 81.5 0a72 72 0 0 0-3.4 6.8 97.7 97.7 0 0 0-29.1 0A72 72 0 0 0 45.6 0a105.9 105.9 0 0 0-26.3 8.1C2.8 32.7-1.7 56.6.5 80.2a105.7 105.7 0 0 0 32.2 16.2 77.7 77.7 0 0 0 6.9-11.2 68.4 68.4 0 0 1-10.9-5.2l2.7-2.1a75.6 75.6 0 0 0 64.3 0l2.7 2.1a68.7 68.7 0 0 1-10.9 5.2 77 77 0 0 0 6.9 11.2 105.3 105.3 0 0 0 32.2-16.2c2.6-27.4-4.5-51.1-18.9-72.1ZM42.5 65.7c-6.3 0-11.4-5.7-11.4-12.8s5-12.8 11.4-12.8 11.5 5.8 11.4 12.8-5 12.8-11.4 12.8Zm42 0c-6.3 0-11.4-5.7-11.4-12.8s5-12.8 11.4-12.8 11.5 5.8 11.4 12.8-5 12.8-11.4 12.8Z'/%3E%3C/svg%3E") center/contain no-repeat; }
.mine { display: grid; gap: 12px; justify-items: start; }
.mine h3 { font-size: 18px; margin: 4px 0 0; line-height: 1.4; }
.mine p { margin: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; border-radius: 999px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08); font-size: 13px; }
.privacy { display: block; margin-top: 4px; }
