:root {
  --bg: #050706;
  --panel: #141714;
  --panel-2: #0f120f;
  --content: #0b0e0b;
  --line: rgba(112, 142, 90, 0.11);
  --line-strong: rgba(145, 198, 96, 0.2);
  --text: #f1f4ee;
  --muted: #9fa69a;
  --green: #90d761;
  --green-strong: #79c94c;
  --shadow: 0 16px 28px rgba(0, 0, 0, 0.42);
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: dark;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font: clamp(24px, 1vw + 16px, 32px) / 1.78 "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background:
    radial-gradient(circle at 50% -8%, rgba(92, 142, 51, 0.08), transparent 18%),
    radial-gradient(circle at 0% 20%, rgba(15, 21, 15, 0.12), transparent 16%),
    radial-gradient(circle at 100% 18%, rgba(38, 63, 24, 0.08), transparent 16%),
    linear-gradient(180deg, #060706 0%, #030403 100%);
  overflow-x: hidden;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
}

body::before {
  background:
    linear-gradient(115deg, rgba(255, 255, 255, 0.012), transparent 34%),
    radial-gradient(circle at 50% 0%, rgba(99, 152, 57, 0.08), transparent 16%);
  mix-blend-mode: screen;
}

body::after {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 120px 120px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.4), transparent 80%);
  opacity: 0.08;
}

.rules-page {
  position: relative;
  min-height: 100vh;
  padding: 1.8rem 0 2.2rem;
}

.hero-glow {
  position: absolute;
  border-radius: 999px;
  filter: blur(40px);
  opacity: 0.55;
  pointer-events: none;
}

.hero-glow-left {
  top: 6rem;
  left: -5rem;
  width: 14rem;
  height: 18rem;
  background: rgba(20, 34, 21, 0.2);
}

.hero-glow-right {
  top: 1rem;
  right: -3rem;
  width: 18rem;
  height: 24rem;
  background: rgba(63, 116, 37, 0.12);
}

.rules-shell {
  position: relative;
  z-index: 1;
  width: calc(100% - 0.5rem);
  margin: 0 auto;
}

.intro {
  text-align: center;
  margin-bottom: 1.35rem;
}

.intro-logo {
  display: block;
  width: clamp(88px, 7vw, 124px);
  height: auto;
  margin: 0 auto 0.9rem;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.32));
}

.intro h1 {
  margin: 0;
  font-size: clamp(2.8rem, 1.6vw + 2rem, 3.9rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.04;
}

.title-accent {
  width: 46px;
  height: 3px;
  margin: 1rem auto 1.05rem;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--green-strong), #b6ff87);
  box-shadow: 0 0 14px rgba(136, 220, 93, 0.22);
}

.intro p {
  margin: 0;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.54;
  max-width: 40rem;
  margin-inline: auto;
}

.accordion-list {
  display: grid;
  gap: 0.85rem;
  padding: 0 2%;
}

.rules-notice {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1.2rem 2% 0;
  padding: 1.15rem 1.35rem;
  border: 1px solid rgba(122, 160, 92, 0.08);
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(14, 17, 14, 0.98), rgba(10, 12, 10, 0.98));
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.22);
}

.rules-notice-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.6rem;
  height: 2.6rem;
  flex: 0 0 2.6rem;
  color: var(--green);
  font-size: 1.45rem;
}

.rules-notice-copy {
  min-width: 0;
}

.rules-notice-copy p {
  margin: 0;
  line-height: 1.5;
}

.rules-notice-copy p:first-child {
  color: #d7ddd2;
  font-size: 1.02rem;
}

.rules-notice-copy p:last-child {
  margin-top: 0.18rem;
  color: var(--green);
  font-size: 1.05rem;
  font-weight: 600;
}

.rule-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(20, 23, 20, 0.985), rgba(15, 18, 15, 0.985));
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
}

.rule-card[open] {
  border-color: var(--line-strong);
  box-shadow:
    0 0 0 1px rgba(136, 220, 93, 0.04),
    0 12px 22px rgba(0, 0, 0, 0.3);
}

.rule-card summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.28rem 1.34rem;
  cursor: pointer;
  background: linear-gradient(180deg, rgba(24, 28, 24, 0.96), rgba(19, 22, 19, 0.96));
}

.rule-card summary::-webkit-details-marker {
  display: none;
}

.rule-heading {
  display: flex;
  align-items: center;
  gap: 0.72rem;
  min-width: 0;
  font-size: 1.7rem;
  font-weight: 800;
  line-height: 1.16;
}

.rule-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.92rem;
  height: 1.92rem;
  border-radius: 4px;
  color: #d7f2c4;
  background: linear-gradient(180deg, rgba(76, 107, 54, 0.18), rgba(51, 74, 36, 0.14));
  box-shadow: inset 0 0 0 1px rgba(120, 196, 98, 0.07);
  flex: 0 0 auto;
  font-size: 0.9rem;
}

.chevron {
  color: rgba(245, 247, 243, 0.62);
  transition: transform 0.22s ease, color 0.22s ease;
  font-size: 1rem;
}

.rule-card[open] .chevron {
  transform: rotate(180deg);
  color: var(--green);
}

.rule-body {
  padding: 0.5rem 0.56rem 0.62rem;
  border-top: 1px solid rgba(111, 145, 111, 0.08);
  background: linear-gradient(180deg, rgba(11, 13, 11, 0.99), rgba(8, 10, 8, 1));
}

.sub-category + .sub-category {
  margin-top: 0.56rem;
}

.sub-category {
  border: 1px solid rgba(122, 160, 92, 0.07);
  border-radius: 4px;
  background: linear-gradient(180deg, rgba(18, 21, 18, 0.98), rgba(13, 15, 13, 0.98));
  overflow: hidden;
}

.sub-category summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  padding: 0.98rem 1.08rem;
  cursor: pointer;
  background: linear-gradient(180deg, rgba(20, 23, 20, 0.95), rgba(16, 19, 16, 0.95));
}

.sub-category summary::-webkit-details-marker {
  display: none;
}

.sub-category summary span {
  color: #e8ede3;
  font-size: 1.04rem;
  font-weight: 800;
  line-height: 1.26;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.sub-category summary i {
  color: rgba(245, 247, 243, 0.46);
  font-size: 0.86rem;
  transition: transform 0.22s ease, color 0.22s ease;
}

.sub-category[open] summary i {
  transform: rotate(180deg);
  color: var(--green);
}

.sub-category .numbered-rules,
.sub-category .table-wrap {
  border-top: 1px solid rgba(111, 145, 111, 0.06);
}

.rule-body > .numbered-rules,
.rule-body > .table-wrap {
  border: 1px solid rgba(122, 160, 92, 0.07);
  border-radius: 4px;
  background: linear-gradient(180deg, rgba(18, 21, 18, 0.98), rgba(13, 15, 13, 0.98));
}

.numbered-rules {
  margin: 0;
  padding: 1.1rem 1.08rem 0.62rem 1.08rem;
  list-style: none;
}

.numbered-rules li {
  display: grid;
  grid-template-columns: 4.9rem 1fr;
  align-items: start;
  column-gap: 1.16rem;
  margin: 0 0 0.8rem;
  color: #d8ddd5;
  font-size: 1.18rem;
  line-height: 1.56;
}

.rule-body > .numbered-rules {
  padding: 0.9rem 0.92rem 0.5rem 0.92rem;
}

.rule-body > .numbered-rules li {
  grid-template-columns: 3.2rem 1fr;
  column-gap: 0.82rem;
}

.numbered-rules li:last-child {
  margin-bottom: 0;
}

.rule-id {
  display: inline-block;
  color: var(--green);
  font-weight: 800;
  min-width: 0;
  letter-spacing: 0;
  text-align: right;
  padding-right: 0.14rem;
}

.table-id {
  min-width: 0;
  margin-right: 0.55rem;
}

.table-wrap {
  padding: 1rem 1.08rem 0.7rem;
}

.cooldown-table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  border-radius: 4px;
  border: 1px solid rgba(120, 196, 98, 0.08);
  background: rgba(8, 10, 9, 0.98);
}

.cooldown-table thead {
  background: linear-gradient(180deg, rgba(43, 58, 34, 0.34), rgba(28, 39, 22, 0.24));
}

.cooldown-table th,
.cooldown-table td {
  padding: 0.9rem 1rem;
  text-align: left;
  border-bottom: 1px solid rgba(120, 196, 98, 0.1);
}

.cooldown-table th {
  color: #eef4e8;
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.cooldown-table td {
  color: #d9dfd4;
  font-size: 1rem;
}

.cooldown-table tbody tr:last-child td {
  border-bottom: 0;
}

.cooldown-table td:last-child {
  color: var(--green);
  font-weight: 700;
}

@media (max-width: 1280px) {
  body {
    font-size: 20px;
  }

  .rule-card summary {
    padding: 1.16rem 1.22rem;
  }

  .rule-body {
    padding: 0.42rem 0.46rem 0.5rem;
  }

  .rules-notice {
    gap: 0.82rem;
    padding: 1rem 1.05rem;
  }

  .rules-notice-icon {
    width: 2.3rem;
    height: 2.3rem;
    flex-basis: 2.3rem;
    font-size: 1.28rem;
  }

  .rule-heading {
    font-size: 1.46rem;
  }

  .numbered-rules li {
    font-size: 1.1rem;
    margin-bottom: 0.72rem;
  }

  .rule-body > .numbered-rules li {
    grid-template-columns: 3rem 1fr;
    column-gap: 0.76rem;
  }

  .sub-category summary span {
    font-size: 0.96rem;
  }

}

@media (max-width: 700px) {
  .rules-page {
    padding: 1.1rem 0 1.3rem;
  }

  .rules-shell {
    width: calc(100% - 0.28rem);
  }

  .rule-card summary,
  .rule-body {
    padding-left: 0.16rem;
    padding-right: 0.16rem;
  }

  .rules-notice {
    align-items: flex-start;
    margin-left: 2%;
    margin-right: 2%;
    padding: 0.92rem 0.9rem;
  }

  .rule-heading {
    gap: 0.46rem;
    font-size: 1.18rem;
  }

  .rule-icon {
    width: 1.56rem;
    height: 1.56rem;
  }

  .rules-notice-icon {
    width: 2rem;
    height: 2rem;
    flex-basis: 2rem;
    font-size: 1.12rem;
  }

  .intro {
    margin-bottom: 0.78rem;
  }

  .intro-logo {
    width: 76px;
    margin-bottom: 0.68rem;
  }

  .intro h1 {
    font-size: 1.88rem;
  }

  .intro p {
    font-size: 0.9rem;
    line-height: 1.46;
  }

  .numbered-rules li {
    grid-template-columns: 3.7rem 1fr;
    column-gap: 0.72rem;
    margin-bottom: 0.62rem;
    font-size: 1rem;
    line-height: 1.46;
  }

  .rule-body > .numbered-rules {
    padding: 0.78rem 0.74rem 0.42rem 0.74rem;
  }

  .rule-body > .numbered-rules li {
    grid-template-columns: 2.5rem 1fr;
    column-gap: 0.58rem;
  }

  .sub-category summary {
    padding: 0.78rem 0.86rem;
  }

  .sub-category summary span {
    font-size: 0.84rem;
  }

  .rule-id {
    padding-right: 0;
  }

  .cooldown-table th,
  .cooldown-table td {
    padding: 0.5rem 0.52rem;
  }

  .cooldown-table th {
    font-size: 0.76rem;
  }

  .cooldown-table td {
    font-size: 0.88rem;
  }

  .rules-notice-copy p:first-child,
  .rules-notice-copy p:last-child {
    font-size: 0.95rem;
  }
}
