:root {
  --bg: #0a0d14;
  --panel: #111726;
  --line: #2a3552;
  --text: #e7edff;
  --muted: #a5b3d6;
  --brand: #56c1ff;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  color: var(--text);
  font: clamp(19px, 0.8vw + 14px, 24px) / 1.72 "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background:
    radial-gradient(1000px 620px at 90% -15%, #18325c 0%, transparent 60%),
    radial-gradient(820px 680px at -10% 10%, #1a263d 0%, transparent 55%),
    var(--bg);
}

.container {
  width: calc(100% - clamp(1.75rem, 4vw, 4rem));
  margin: 0 auto;
}

.top {
  border-bottom: 1px solid var(--line);
  background: rgba(10, 13, 20, 0.86);
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(8px);
}

.top-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 0;
}

a {
  color: var(--text);
  text-decoration: none;
}

.brand {
  font-size: 1.18rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}

.brand i { color: var(--brand); }

.btn {
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 12px;
  padding: 0.72rem 1.08rem;
  display: inline-flex;
  gap: 0.45rem;
  align-items: center;
  font-size: 1rem;
  font-weight: 600;
  transition: transform 0.16s ease, filter 0.2s ease, box-shadow 0.2s ease;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-left: auto;
  flex-wrap: wrap;
}

.btn-back {
  white-space: nowrap;
}

.btn-discord {
  background: linear-gradient(135deg, #1c2438, #1d2942);
  border-color: #5669b8;
  color: #eaf0ff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  white-space: nowrap;
}

.btn-discord:hover {
  transform: translateY(-1px);
  filter: brightness(1.07);
}

main { padding: 2.35rem 0 3rem; }

.notice {
  background: linear-gradient(180deg, rgba(35, 22, 12, 0.96), rgba(23, 16, 12, 0.96));
  border: 1px solid #6c4c23;
  border-left: 5px solid #f1a43c;
  border-radius: 12px;
  padding: 1.2rem 1.35rem;
  margin-bottom: 1.3rem;
  color: #ffe7c0;
  box-shadow: 0 16px 28px rgba(0, 0, 0, 0.22);
}

.notice-title {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.5rem;
  font-size: 1.14rem;
  font-weight: 800;
  letter-spacing: 0.2px;
  color: #ffd089;
}

.notice-title i {
  color: #f1a43c;
}

.notice p {
  margin: 0;
  font-size: 1.08rem;
  line-height: 1.7;
}

.category {
  background: linear-gradient(180deg, rgba(18, 26, 41, 0.95), rgba(15, 22, 35, 0.95));
  border: 1px solid #2b3a5a;
  border-left: 4px solid #3eaaf4;
  border-radius: 12px;
  padding: 1.3rem 1.42rem;
  margin-bottom: 1.2rem;
  box-shadow: 0 12px 22px rgba(0, 0, 0, 0.16);
}

.category h2 {
  position: relative;
  margin: 0 0 1rem;
  padding-bottom: 0.38rem;
  font-size: 1.65rem;
  font-weight: 800;
  line-height: 1.16;
  color: #f5f8ff;
  letter-spacing: 0.24px;
  text-wrap: balance;
}

.category h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.22rem;
  width: 48px;
  height: 2px;
  border-radius: 999px;
  background: #63c5ff;
}

.rules-list {
  margin: 0;
  padding-left: 0.5rem;
  list-style: none;
}

.rules-list li {
  margin: 0.8rem 0;
  padding-left: 0.16rem;
  color: #d7e1ff;
  font-size: 1.1rem;
}

.id {
  color: #55c1ff;
  font-weight: 700;
  margin-right: 0.42rem;
  font-size: 1.08em;
}

footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  padding: 1.1rem 0 1.7rem;
}

@media (max-width: 1280px) {
  .container { width: calc(100% - 1.5rem); }
  body { font-size: 18px; }
  .brand { font-size: 1.12rem; }
  .btn {
    padding: 0.68rem 1rem;
    font-size: 0.96rem;
  }
  .category {
    padding: 1.18rem 1.25rem;
  }
  .category h2 {
    font-size: 1.5rem;
  }
  .rules-list li {
    font-size: 1.04rem;
    margin: 0.72rem 0;
  }
}

@media (max-width: 900px) {
  .top-inner {
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 0.7rem;
  }

  .header-actions {
    margin-left: 0;
  }
}
