/* =========================================================
   LUHVH — Rules & Entry Dossier
   Uses styles.css as the shared visual system.
   ========================================================= */

.rules-page {
  background:
    radial-gradient(ellipse 58% 54% at 8% 18%, rgba(0, 150, 255, 0.15), transparent 62%),
    radial-gradient(ellipse 52% 50% at 94% 30%, rgba(255, 42, 149, 0.11), transparent 62%),
    radial-gradient(ellipse 46% 42% at 48% 20%, rgba(90, 99, 255, 0.08), transparent 70%),
    linear-gradient(180deg, #02050d 0%, #040a17 38%, #030711 100%);
}

.page--rules {
  width: min(1460px, calc(100% - 64px));
  padding-top: 14px;
}

.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 85;
  width: 100%;
  height: 2px;
  background: rgba(72, 139, 173, 0.08);
  pointer-events: none;
}

.reading-progress i {
  display: block;
  width: 100%;
  height: 100%;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--cyan), var(--violet) 42%, var(--gold) 72%, var(--magenta));
  box-shadow: 0 0 13px rgba(61, 220, 255, 0.55);
}

/* =========================================================
   Topbar / hero
   ========================================================= */

.rules-topbar-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #7894a8;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.18em;
  white-space: nowrap;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border: 1px solid rgba(99, 172, 207, 0.18);
  color: #85a6ba;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.08em;
  transition: border-color 0.22s ease, color 0.22s ease, background 0.22s ease;
}

.back-link:hover {
  border-color: rgba(61, 220, 255, 0.4);
  background: rgba(11, 32, 56, 0.62);
  color: #d9f9ff;
}

.back-link:focus-visible,
.brief-nav-list a:focus-visible,
.brief-nav-preview:focus-visible,
.brief-nav-source:focus-visible,
.entry-link:focus-visible,
.cta-btn:focus-visible,
.footer-link:focus-visible,
.source-bar a:focus-visible {
  outline: 1px solid var(--cyan);
  outline-offset: 2px;
}

.rules-hero {
  padding-top: 16px;
}

.rules-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 350px;
  gap: 54px;
  align-items: end;
  margin-top: 31px;
}

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

.rules-hero-copy > * {
  animation: riseIn 0.85s both;
}

.rules-hero-copy > .eyebrow { animation-delay: 0.05s; }
.rules-hero-copy > .rules-title { animation-delay: 0.1s; }
.rules-hero-copy > .rules-subtitle { animation-delay: 0.16s; }
.rules-hero-copy > .rules-chips { animation-delay: 0.21s; }
.rules-hero-copy > .rules-hero-note { animation-delay: 0.25s; }

.rules-title {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.14em;
  margin: 0;
  color: #f4fbff;
  font-family: var(--display);
  font-size: clamp(42px, 4.4vw, 68px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.045em;
  white-space: nowrap;
  text-shadow: 0 0 38px rgba(90, 195, 255, 0.15);
}

.rules-title-slash {
  color: #405d70;
  font-weight: 300;
}

.rules-title em {
  color: var(--gold);
  font-style: normal;
  text-shadow: 0 0 28px rgba(255, 199, 100, 0.16);
}

.rules-subtitle {
  max-width: 850px;
  margin: 16px 0 0;
  color: #b7ccda;
  font-size: 13px;
  line-height: 1.7;
  letter-spacing: 0.01em;
}

.rules-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 18px;
}

.rule-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 22px;
  padding: 3px 9px;
  border: 1px solid rgba(104, 176, 211, 0.16);
  background: rgba(5, 17, 32, 0.38);
  color: #82a2b5;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.08em;
}

.rule-chip--warn {
  border-color: rgba(255, 84, 181, 0.25);
  color: #e79ac4;
}

.rule-chip-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
}

.rule-chip-dot--cyan {
  background: var(--cyan);
  box-shadow: 0 0 7px rgba(61, 220, 255, 0.8);
}

.rules-hero-note {
  margin: 12px 0 0;
  color: #587487;
  font-size: 9px;
  letter-spacing: 0.04em;
}

/* Status card */

.status-card {
  position: relative;
  padding: 13px 15px 10px;
  border: 1px solid rgba(97, 183, 222, 0.2);
  background:
    linear-gradient(145deg, rgba(10, 29, 51, 0.84), rgba(4, 13, 26, 0.93)),
    var(--panel-deep);
  box-shadow:
    inset 0 1px 0 rgba(178, 231, 255, 0.045),
    0 12px 34px rgba(0, 0, 0, 0.26),
    0 0 30px rgba(61, 220, 255, 0.025);
  animation: riseIn 0.85s 0.18s both;
}

.status-card::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 15px;
  width: 92px;
  height: 1px;
  background: linear-gradient(90deg, var(--cyan), transparent);
  box-shadow: 0 0 9px rgba(61, 220, 255, 0.45);
}

.status-card::after {
  content: "";
  position: absolute;
  right: -1px;
  bottom: -1px;
  width: 15px;
  height: 15px;
  border-right: 1px solid rgba(61, 220, 255, 0.4);
  border-bottom: 1px solid rgba(61, 220, 255, 0.4);
}

.status-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(105, 168, 199, 0.11);
  color: #5e7c8e;
  font-family: var(--mono);
  font-size: 6.5px;
  letter-spacing: 0.2em;
}

.status-top b {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--gold);
  font-size: 6px;
  font-weight: 400;
  letter-spacing: 0.14em;
}

.status-top b i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 8px rgba(255, 210, 122, 0.8);
  animation: livePulse 2.2s ease-in-out infinite;
}

.status-list {
  margin: 0;
}

.status-list div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 0;
  border-bottom: 1px solid rgba(100, 158, 188, 0.07);
}

.status-list div:last-child {
  border-bottom: 0;
}

.status-list dt {
  flex: none;
  color: #4e6c7f;
  font-family: var(--mono);
  font-size: 6.5px;
  letter-spacing: 0.14em;
}

.status-list dd {
  margin: 0;
  color: #c7dbe6;
  font-family: var(--display);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-align: right;
}

.status-list div:first-child dd {
  color: #f1d79a;
}

.status-foot {
  display: flex;
  justify-content: space-between;
  margin-top: 3px;
  padding-top: 7px;
  border-top: 1px solid rgba(105, 168, 199, 0.09);
  color: #3f5d70;
  font-family: var(--mono);
  font-size: 6px;
  letter-spacing: 0.14em;
}

.rules-hero-line {
  height: 1px;
  margin-top: 22px;
  background: linear-gradient(90deg, transparent, rgba(71, 191, 238, 0.32) 14%, rgba(107, 164, 194, 0.1) 52%, rgba(255, 84, 181, 0.22) 86%, transparent);
}

/* =========================================================
   Layout / side index
   ========================================================= */

.rules-layout {
  display: grid;
  grid-template-columns: 224px minmax(0, 1fr);
  gap: 38px;
  align-items: start;
  margin-top: 23px;
}

.brief-nav {
  position: sticky;
  top: 20px;
  align-self: start;
}

.brief-nav-box {
  padding: 13px 12px 11px;
  border: 1px solid rgba(100, 169, 201, 0.13);
  background:
    linear-gradient(145deg, rgba(7, 21, 40, 0.7), rgba(4, 12, 24, 0.82)),
    var(--panel);
  box-shadow: inset 0 1px 0 rgba(177, 227, 250, 0.03);
}

.brief-nav-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 0 8px;
  padding: 0 2px 8px;
  border-bottom: 1px solid rgba(103, 163, 192, 0.1);
  color: #526f82;
  font-family: var(--mono);
  font-size: 6.5px;
  letter-spacing: 0.18em;
}

.brief-nav-label span {
  color: #375367;
  font-family: var(--body);
  font-size: 8px;
  letter-spacing: 0.08em;
}

.brief-nav-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brief-nav-list a {
  position: relative;
  display: grid;
  grid-template-columns: 22px 1fr auto;
  align-items: center;
  gap: 7px;
  min-height: 33px;
  padding: 5px 7px;
  border: 1px solid transparent;
  color: #7693a5;
  transition: color 0.22s ease, border-color 0.22s ease, background 0.22s ease;
}

.brief-nav-list a::before {
  content: "";
  position: absolute;
  left: -1px;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: transparent;
  transition: background 0.22s ease, box-shadow 0.22s ease;
}

.brief-nav-list a span {
  color: #3e5d70;
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: 0.03em;
}

.brief-nav-list a b {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.brief-nav-list a em {
  color: #385467;
  font-family: var(--mono);
  font-size: 5.5px;
  font-style: normal;
  letter-spacing: 0.08em;
}

.brief-nav-list a:hover {
  border-color: rgba(98, 171, 205, 0.16);
  background: rgba(12, 33, 57, 0.45);
  color: #d1edf8;
}

.brief-nav-list a.is-active {
  border-color: rgba(61, 220, 255, 0.2);
  background: linear-gradient(90deg, rgba(61, 220, 255, 0.08), transparent 86%);
  color: #e7faff;
}

.brief-nav-list a.is-active::before {
  background: var(--cyan);
  box-shadow: 0 0 8px rgba(61, 220, 255, 0.6);
}

.brief-nav-list a.is-active span {
  color: var(--cyan);
}

.brief-nav-actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 11px;
  padding-top: 10px;
  border-top: 1px solid rgba(103, 163, 192, 0.1);
}

.brief-nav-preview,
.brief-nav-source {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 29px;
  padding: 5px 7px;
  font-size: 8px;
  letter-spacing: 0.05em;
  transition: color 0.2s ease, background 0.2s ease;
}

.brief-nav-preview {
  border: 1px solid rgba(255, 210, 122, 0.2);
  color: #d8b66d;
}

.brief-nav-source {
  color: #55778b;
}

.brief-nav-preview:hover {
  background: rgba(255, 195, 90, 0.08);
  color: var(--gold);
}

.brief-nav-source:hover {
  background: rgba(10, 30, 50, 0.52);
  color: #a9c8d8;
}

.brief-main {
  min-width: 0;
}

/* =========================================================
   Dossier sections
   ========================================================= */

.brief-section {
  --sec-accent: var(--cyan);
  position: relative;
  margin-bottom: 16px;
  padding: 21px 23px 23px;
  border: 1px solid rgba(103, 167, 197, 0.13);
  background:
    linear-gradient(135deg, rgba(8, 24, 44, 0.72), rgba(4, 12, 25, 0.84) 58%, rgba(3, 10, 21, 0.9)),
    var(--panel);
  box-shadow:
    inset 0 1px 0 rgba(180, 230, 253, 0.028),
    0 9px 28px rgba(0, 0, 0, 0.15);
  scroll-margin-top: 20px;
}

.brief-section::before {
  content: "";
  position: absolute;
  top: 19px;
  bottom: 19px;
  left: -1px;
  width: 2px;
  background: linear-gradient(180deg, transparent, var(--sec-accent), transparent);
  opacity: 0.7;
}

.brief-section::after {
  content: "";
  position: absolute;
  top: -1px;
  right: -1px;
  width: 18px;
  height: 18px;
  border-right: 1px solid color-mix(in srgb, var(--sec-accent) 44%, transparent);
  border-top: 1px solid color-mix(in srgb, var(--sec-accent) 32%, transparent);
  opacity: 0.55;
}

.brief-section-head {
  display: grid;
  grid-template-columns: 31px minmax(0, 1fr) auto;
  gap: 11px;
  align-items: start;
  margin-bottom: 16px;
  padding-bottom: 11px;
  border-bottom: 1px solid rgba(105, 168, 199, 0.1);
}

.brief-no {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid color-mix(in srgb, var(--sec-accent) 30%, transparent);
  color: var(--sec-accent);
  font-family: var(--mono);
  font-size: 8px;
}

.brief-head-copy h2 {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 7px;
  margin: 0;
  color: #ecf9ff;
  font-size: 21px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0.06em;
}

.brief-head-copy h2 span {
  color: #3d5b6c;
  font-weight: 300;
}

.brief-head-copy h2 em {
  color: #5b7d91;
  font-family: var(--mono);
  font-size: 7.5px;
  font-style: normal;
  font-weight: 400;
  letter-spacing: 0.16em;
}

.brief-head-copy p {
  margin: 4px 0 0;
  color: #5b788a;
  font-size: 8.5px;
  letter-spacing: 0.12em;
}

.brief-code {
  padding-top: 2px;
  color: #365467;
  font-family: var(--mono);
  font-size: 6px;
  letter-spacing: 0.14em;
}

.brief-lead {
  margin: 0 0 14px;
  color: #a9c0cf;
  font-size: 12.5px;
  line-height: 1.8;
}

.brief-lead strong,
.brief-section p strong {
  color: #eefaff;
  font-weight: 600;
}

/* =========================================================
   01 — Format
   ========================================================= */

.format-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
}

.format-card {
  position: relative;
  min-height: 149px;
  padding: 12px 13px 11px;
  border: 1px solid rgba(92, 167, 203, 0.15);
  background:
    linear-gradient(140deg, rgba(9, 28, 50, 0.62), rgba(4, 13, 27, 0.7)),
    rgba(4, 12, 24, 0.5);
  transition: border-color 0.24s ease, transform 0.24s ease, background 0.24s ease;
}

.format-card:hover {
  border-color: rgba(61, 220, 255, 0.32);
  background:
    linear-gradient(140deg, rgba(10, 35, 61, 0.74), rgba(4, 13, 27, 0.76)),
    rgba(4, 12, 24, 0.5);
  transform: translateY(-2px);
}

.format-card--final {
  border-color: rgba(255, 199, 99, 0.28);
  background:
    linear-gradient(140deg, rgba(43, 29, 12, 0.62), rgba(4, 13, 27, 0.78)),
    rgba(4, 12, 24, 0.5);
}

.format-card--final:hover {
  border-color: rgba(255, 210, 122, 0.48);
}

.format-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(103, 164, 193, 0.09);
}

.format-tag,
.format-en {
  color: #4f7185;
  font-family: var(--mono);
  font-size: 6px;
  letter-spacing: 0.12em;
}

.format-card--final .format-tag,
.format-card--final .format-en {
  color: rgba(255, 210, 122, 0.58);
}

.format-card h3 {
  margin: 12px 0 0;
  color: #e6f7ff;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.format-card--final h3 {
  color: var(--gold);
}

.format-spec {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: 6px;
}

.format-spec strong {
  color: var(--cyan);
  font-family: var(--display);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.format-card--final .format-spec strong {
  color: var(--gold);
}

.format-spec span {
  color: #819daf;
  font-size: 10px;
}

.format-card p {
  margin: 6px 0 0;
  color: #5e7c8f;
  font-size: 10px;
  line-height: 1.65;
}

/* =========================================================
   02 — Schedule
   ========================================================= */

.time-line {
  position: relative;
  margin: 0;
  padding: 0;
  list-style: none;
}

.time-line::before {
  content: "";
  position: absolute;
  top: 17px;
  bottom: 17px;
  left: 15px;
  width: 1px;
  background: linear-gradient(180deg, rgba(61, 220, 255, 0.3), rgba(142, 123, 255, 0.28), rgba(255, 210, 122, 0.24));
}

.time-item {
  position: relative;
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 13px;
  align-items: start;
  padding: 7px 0;
}

.time-node {
  position: relative;
  z-index: 1;
  display: inline-grid;
  place-items: center;
  width: 31px;
  height: 31px;
  border: 1px solid rgba(107, 179, 212, 0.22);
  background: #07182b;
  color: #7ca3b8;
  font-family: var(--mono);
  font-size: 6.5px;
}

.time-item:nth-child(1) .time-node {
  border-color: rgba(255, 210, 122, 0.3);
  color: var(--gold);
}

.time-body {
  padding-top: 1px;
}

.time-label {
  display: block;
  color: #4e6f83;
  font-size: 7.5px;
  letter-spacing: 0.16em;
}

.time-value {
  display: block;
  margin-top: 2px;
  color: #d9edf7;
  font-family: var(--display);
  font-size: 20px;
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: 0.02em;
}

.time-value .time-tba {
  color: var(--gold);
  font-style: normal;
}

.time-body small {
  display: block;
  margin-top: 2px;
  color: #516e81;
  font-size: 9px;
}

.inline-note {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  margin: 13px 0 0;
  padding-top: 10px;
  border-top: 1px solid rgba(105, 168, 199, 0.09);
  color: #607f91;
  font-size: 8.5px;
  line-height: 1.7;
}

.inline-note-mark {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 13px;
  height: 13px;
  border: 1px solid rgba(255, 210, 122, 0.22);
  color: rgba(255, 210, 122, 0.7);
  font-family: var(--mono);
  font-size: 7px;
}

/* =========================================================
   03 — Entry
   ========================================================= */

.entry-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.entry-step {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 13px;
  padding: 10px 0;
  border-top: 1px solid rgba(104, 166, 195, 0.08);
}

.entry-step:first-child {
  border-top: 0;
  padding-top: 1px;
}

.entry-no {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid rgba(61, 220, 255, 0.19);
  color: #79cddd;
  font-family: var(--mono);
  font-size: 7px;
}

.entry-content h3 {
  margin: 0;
  color: #dff3fc;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
}

.entry-content p {
  margin: 4px 0 0;
  color: #8ca9ba;
  font-size: 11.5px;
  line-height: 1.75;
}

.entry-contact {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 7px;
}

.entry-contact code {
  padding: 3px 8px;
  border: 1px solid rgba(61, 220, 255, 0.15);
  background: rgba(3, 18, 33, 0.6);
  color: var(--cyan-soft);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
}

.entry-copy {
  height: 23px;
  padding: 1px 7px 0;
  font-size: 8px;
}

.entry-code {
  margin-top: 7px;
  padding: 7px 9px;
  border-left: 1px solid rgba(255, 210, 122, 0.35);
  background: rgba(255, 197, 91, 0.045);
  color: #ddc184;
  font-family: var(--mono);
  font-size: 10px;
  line-height: 1.7;
  word-break: break-all;
}

.entry-link {
  color: var(--cyan-soft);
  border-bottom: 1px solid rgba(61, 220, 255, 0.24);
  transition: color 0.2s ease, border-color 0.2s ease;
}

.entry-link:hover {
  color: #ffffff;
  border-color: var(--cyan);
}

/* =========================================================
   04 — Rewards
   ========================================================= */

.rules-prize-board {
  border-color: rgba(255, 207, 120, 0.13);
}

.rules-prize-board::before {
  background: linear-gradient(90deg, transparent, rgba(255, 210, 122, 0.7), transparent);
}

.prize-note-line {
  margin: 10px 0 0;
  color: #686153;
  font-size: 8px;
  letter-spacing: 0.08em;
}

/* =========================================================
   05 — Rules
   ========================================================= */

.rule-list {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.rule-item {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 8px 10px;
  border: 1px solid rgba(102, 164, 193, 0.08);
  background: rgba(4, 16, 30, 0.33);
}

.rule-item--critical {
  border-color: rgba(255, 84, 181, 0.13);
  background: linear-gradient(90deg, rgba(255, 84, 181, 0.045), transparent 72%);
}

.rule-no {
  padding-top: 1px;
  color: #4b7084;
  font-family: var(--mono);
  font-size: 6.5px;
  letter-spacing: 0.06em;
}

.rule-item--critical .rule-no {
  color: rgba(255, 155, 207, 0.75);
}

.rule-item p {
  margin: 0;
  color: #a2b8c6;
  font-size: 12px;
  line-height: 1.75;
}

.rule-item p strong {
  color: #effbff;
  font-weight: 600;
}

.rule-item--critical p strong {
  color: #ffd6e9;
}

/* =========================================================
   06 — Notices
   ========================================================= */

.notice-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.notice {
  display: grid;
  grid-template-columns: 23px minmax(0, 1fr);
  gap: 8px;
  padding: 10px 11px;
  border: 1px solid rgba(104, 167, 197, 0.1);
  background: rgba(5, 18, 34, 0.34);
}

.notice--alert {
  border-color: rgba(255, 84, 181, 0.2);
  background: linear-gradient(90deg, rgba(255, 84, 181, 0.055), transparent 72%);
}

.notice-mark {
  display: inline-grid;
  place-items: center;
  width: 21px;
  height: 21px;
  border: 1px solid rgba(255, 210, 122, 0.23);
  color: rgba(255, 210, 122, 0.7);
  font-family: var(--mono);
  font-size: 9px;
}

.notice--alert .notice-mark {
  border-color: rgba(255, 84, 181, 0.3);
  color: var(--magenta-soft);
}

.notice h3 {
  margin: 0;
  color: #d6eaf5;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.notice p {
  margin: 3px 0 0;
  color: #8aa6b7;
  font-size: 11.5px;
  line-height: 1.75;
}

.source-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 13px;
  padding-top: 10px;
  border-top: 1px solid rgba(104, 166, 195, 0.09);
  color: #4e6b7e;
  font-size: 9px;
}

.source-bar a {
  color: #7fa7ba;
  border-bottom: 1px solid rgba(127, 167, 186, 0.2);
}

.source-bar a:hover {
  color: var(--cyan-soft);
}

/* =========================================================
   CTA / footer
   ========================================================= */

.rules-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 4px 0 18px;
  padding: 18px 21px;
  border: 1px solid rgba(255, 200, 104, 0.23);
  background:
    linear-gradient(100deg, rgba(52, 35, 12, 0.45), rgba(6, 17, 31, 0.82) 58%, rgba(4, 12, 24, 0.88));
  box-shadow: inset 0 1px 0 rgba(255, 238, 197, 0.04), 0 9px 30px rgba(0, 0, 0, 0.16);
}

.rules-cta-copy > span {
  color: rgba(255, 210, 122, 0.5);
  font-family: var(--mono);
  font-size: 6px;
  letter-spacing: 0.2em;
}

.rules-cta-copy h2 {
  margin: 3px 0 0;
  color: #fff0cc;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.rules-cta-copy p {
  margin: 4px 0 0;
  color: #8b806b;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.05em;
}

.rules-cta-copy p i {
  margin: 0 5px;
  color: #5d5140;
  font-style: normal;
}

.rules-cta-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: none;
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid rgba(104, 168, 200, 0.2);
  background: rgba(5, 17, 31, 0.44);
  color: #8faebf;
  font-size: 10px;
  letter-spacing: 0.07em;
  transition: background 0.22s ease, color 0.22s ease, border-color 0.22s ease;
}

.cta-btn:hover {
  border-color: rgba(61, 220, 255, 0.38);
  background: rgba(8, 28, 48, 0.7);
  color: #dbf8ff;
}

.cta-btn--gold {
  border-color: rgba(255, 210, 122, 0.4);
  background: linear-gradient(100deg, rgba(255, 190, 80, 0.14), rgba(255, 152, 47, 0.03));
  color: var(--gold);
}

.cta-btn--gold:hover {
  background: linear-gradient(100deg, #ffd27a, #f0a343);
  color: #181007;
}

.cta-btn svg {
  width: 12px;
  height: 12px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.2;
}

.rules-footer {
  margin-top: 1px;
}

.rules-footer-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-link {
  color: #55758a;
  font-size: 8px;
  letter-spacing: 0.06em;
  transition: color 0.2s ease;
}

.footer-link:hover {
  color: var(--cyan-soft);
}

.rules-footer .more-btn {
  height: 36px;
  padding: 0 14px;
  font-size: 10px;
}

/* =========================================================
   Responsive
   ========================================================= */

@media (max-width: 1280px) {
  .page--rules { width: calc(100% - 42px); }
  .rules-hero-grid { grid-template-columns: minmax(0, 1fr) 320px; gap: 34px; }
  .rules-layout { grid-template-columns: 210px minmax(0, 1fr); gap: 28px; }
  .rules-title { font-size: clamp(40px, 4.2vw, 58px); }
}

@media (max-width: 980px) {
  .rules-hero-grid {
    grid-template-columns: 1fr;
    gap: 22px;
    align-items: start;
    margin-top: 24px;
  }

  .status-card {
    width: min(100%, 560px);
  }

  .rules-layout {
    grid-template-columns: 1fr;
    gap: 13px;
  }

  .brief-nav {
    position: static;
  }

  .brief-nav-box {
    padding: 8px;
  }

  .brief-nav-label {
    margin-bottom: 6px;
    padding-bottom: 6px;
  }

  .brief-nav-list {
    flex-direction: row;
    overflow-x: auto;
    gap: 4px;
    padding-bottom: 2px;
    scrollbar-width: none;
  }

  .brief-nav-list::-webkit-scrollbar {
    display: none;
  }

  .brief-nav-list a {
    flex: 0 0 auto;
    display: inline-flex;
    gap: 6px;
    min-height: 29px;
    padding: 5px 9px;
    border-color: rgba(98, 171, 205, 0.11);
  }

  .brief-nav-list a em { display: none; }
  .brief-nav-list a::before { display: none; }

  .brief-nav-actions {
    flex-direction: row;
    margin-top: 6px;
    padding-top: 6px;
  }

  .brief-nav-preview,
  .brief-nav-source {
    flex: 1;
    justify-content: center;
    min-height: 27px;
  }

  .format-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .page--rules { width: calc(100% - 26px); padding-top: 12px; }
  .rules-topbar-meta { gap: 7px; font-size: 6px; }
  .rules-topbar-meta > .live-chip,
  .rules-topbar-meta > .topbar-divider,
  .rules-topbar-meta > span:not(.back-link) { display: none; }

  .back-link {
    padding: 5px 8px;
    font-size: 7px;
  }

  .rules-hero { padding-top: 18px; }
  .rules-hero-grid { margin-top: 18px; gap: 17px; }
  .rules-title { font-size: clamp(31px, 9vw, 44px); white-space: normal; row-gap: 2px; }
  .rules-subtitle { margin-top: 11px; font-size: 11px; line-height: 1.65; }
  .rules-chips { gap: 4px; margin-top: 13px; }
  .rule-chip { min-height: 19px; padding: 2px 7px; font-size: 7px; }
  .rules-hero-note { margin-top: 9px; font-size: 8px; line-height: 1.6; }
  .rules-hero-line { margin-top: 15px; }

  .status-card { width: 100%; padding: 11px 12px 9px; }
  .status-list div { padding: 5px 0; }
  .status-list dd { font-size: 10px; }
  .status-foot { font-size: 5.5px; }

  .rules-layout { margin-top: 12px; }
  .brief-nav-box { padding: 7px; }
  .brief-nav-list a { padding: 5px 8px; font-size: 9px; }
  .brief-nav-list a b { font-size: 9px; }
  .brief-nav-list a span { font-size: 6.5px; }
  .brief-nav-actions { gap: 5px; }
  .brief-nav-preview, .brief-nav-source { font-size: 7px; min-height: 25px; }

  .brief-section {
    padding: 16px 14px 17px;
    margin-bottom: 11px;
    scroll-margin-top: 12px;
  }

  .brief-section::before { top: 14px; bottom: 14px; }
  .brief-section-head {
    grid-template-columns: 27px minmax(0, 1fr) auto;
    gap: 8px;
    margin-bottom: 12px;
    padding-bottom: 9px;
  }
  .brief-no { width: 26px; height: 26px; font-size: 7px; }
  .brief-head-copy h2 { font-size: 17px; gap: 5px; }
  .brief-head-copy h2 em { font-size: 6.5px; }
  .brief-head-copy p { font-size: 7px; letter-spacing: 0.07em; }
  .brief-code { font-size: 5px; }
  .brief-lead { font-size: 11px; margin-bottom: 11px; }

  .format-grid { grid-template-columns: 1fr; gap: 7px; }
  .format-card { min-height: 0; padding: 10px 11px; }
  .format-card h3 { margin-top: 8px; font-size: 15px; }
  .format-spec { margin-top: 3px; }
  .format-spec strong { font-size: 15px; }
  .format-card p { margin-top: 3px; }

  .time-value { font-size: 17px; }
  .time-body small { font-size: 8px; }
  .inline-note { font-size: 7.5px; margin-top: 10px; padding-top: 8px; }

  .entry-step { grid-template-columns: 28px minmax(0, 1fr); gap: 9px; padding: 8px 0; }
  .entry-no { width: 26px; height: 26px; font-size: 6.5px; }
  .entry-content h3 { font-size: 12px; }
  .entry-content p { font-size: 10.5px; }
  .entry-contact code { font-size: 11px; }
  .entry-code { font-size: 9px; }
  .entry-link { word-break: break-all; }

  .rules-prize-board .prize-row { padding: 8px 9px; }
  .prize-note-line { font-size: 7px; }

  .rule-item { grid-template-columns: 28px minmax(0, 1fr); gap: 7px; padding: 7px 8px; }
  .rule-item p { font-size: 10.5px; line-height: 1.7; }
  .rule-no { font-size: 6px; }

  .notice { grid-template-columns: 21px minmax(0, 1fr); gap: 6px; padding: 8px; }
  .notice p { font-size: 10.5px; }
  .notice h3 { font-size: 10px; }

  .source-bar { font-size: 8px; gap: 8px; }

  .rules-cta {
    align-items: stretch;
    flex-direction: column;
    gap: 13px;
    padding: 14px;
  }
  .rules-cta-copy h2 { font-size: 15px; }
  .rules-cta-actions { width: 100%; }
  .cta-btn { flex: 1; padding: 0 9px; font-size: 9px; }

  .rules-footer-actions {
    width: 100%;
    flex-wrap: wrap;
  }
  .rules-footer-actions .more-btn { flex: 1; }
  .footer-link { padding: 0 4px; }
}

@media (max-width: 420px) {
  .rules-title { font-size: clamp(27px, 8.5vw, 34px); }
  .rules-subtitle { font-size: 10px; }
  .rule-chip { font-size: 6.5px; }
  .status-list dd { font-size: 9.5px; }
  .status-top { font-size: 5.5px; }
  .status-top b { font-size: 5.5px; }
  .brief-code { display: none; }
  .rules-cta-actions { flex-direction: column; }
  .cta-btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .reading-progress i { transition: none; }
}
