:root {
  --bg: #08050d;
  --surface: #130c1c;
  --surface-2: #1a1025;
  --text: #f7f3fb;
  --muted: #aca3b5;
  --line: rgba(255,255,255,.1);
  --purple: #b23cff;
  --purple-light: #d58cff;
  --red: #ff5a6f;
  --green: #42d989;
  --container: 1180px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body { margin: 0; min-width: 320px; background: radial-gradient(circle at 50% -10%, rgba(132,34,196,.22), transparent 34rem), var(--bg); color: var(--text); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; line-height: 1.65; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: inherit; }
.container { width: min(calc(100% - 40px), var(--container)); margin-inline: auto; }
.skip-link { position: fixed; z-index: 100; left: 15px; top: 15px; transform: translateY(-160%); padding: 10px 14px; border-radius: 10px; background: white; color: black; }
.skip-link:focus { transform: translateY(0); }
.rules-header { position: sticky; top: 0; z-index: 40; border-bottom: 1px solid var(--line); background: rgba(8,5,13,.87); backdrop-filter: blur(18px); }
.header-inner { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 11px; font-weight: 850; letter-spacing: .06em; text-decoration: none; }
.brand img { width: 46px; height: 46px; }
.brand span span { color: var(--purple-light); }
.header-inner nav { display: flex; gap: 24px; }
.header-inner nav a { color: #d4ccda; text-decoration: none; font-size: .9rem; font-weight: 700; }
.header-inner nav a:hover { color: #fff; }
.rules-hero { padding: 34px 0 46px; }
.hero-card { position: relative; min-height: 390px; overflow: hidden; border: 1px solid rgba(211,137,255,.22); border-radius: 26px; box-shadow: 0 28px 80px rgba(0,0,0,.4); }
.hero-card > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(7,4,11,.94), rgba(7,4,11,.42) 70%), linear-gradient(0deg, rgba(7,4,11,.7), transparent 50%); }
.hero-content { position: relative; z-index: 2; max-width: 670px; padding: 105px 58px 54px; }
.eyebrow { margin: 0 0 13px; color: var(--purple-light); text-transform: uppercase; letter-spacing: .16em; font-size: .75rem; font-weight: 850; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 16px; font-size: clamp(3rem, 7vw, 5.4rem); line-height: .98; letter-spacing: -.055em; }
h2 { margin-bottom: 0; font-size: clamp(1.75rem, 3vw, 2.55rem); line-height: 1.08; letter-spacing: -.035em; }
h3 { margin-bottom: 10px; font-size: 1.16rem; }
.hero-content > p:last-child { color: #cec5d4; font-size: 1.06rem; }
.rules-layout { display: grid; grid-template-columns: 230px minmax(0, 1fr); align-items: start; gap: 42px; padding-bottom: 100px; }
.toc { position: sticky; top: 104px; padding: 20px; border: 1px solid var(--line); border-radius: 18px; background: rgba(19,12,28,.9); }
.toc-title { margin: 0 0 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .12em; font-size: .72rem; font-weight: 800; }
.toc nav { display: grid; gap: 3px; }
.toc nav a { padding: 9px 10px; border-radius: 9px; color: #d3cad9; text-decoration: none; font-size: .88rem; font-weight: 650; }
.toc nav a:hover, .toc nav a.is-active { background: rgba(174,54,243,.15); color: #fff; }
.back-home { display: block; margin: 17px 10px 0; color: var(--purple-light); text-decoration: none; font-size: .82rem; font-weight: 750; }
.rules-content { min-width: 0; }
.intro-note { margin-bottom: 18px; padding: 28px 30px; border: 1px solid rgba(188,90,248,.22); border-radius: 18px; background: linear-gradient(135deg, rgba(84,20,124,.34), rgba(19,12,28,.9)); }
.intro-note p:last-child { margin-bottom: 0; color: #c6bdcb; }
.rule-section { margin-bottom: 18px; padding: 34px; border: 1px solid var(--line); border-radius: 20px; background: rgba(19,12,28,.9); }
.rule-section[id] { scroll-margin-top: 98px; }
.rule-important { border-color: rgba(255,90,111,.28); }
.rule-heading { display: flex; align-items: center; gap: 17px; margin-bottom: 26px; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.rule-heading > span { display: grid; width: 48px; height: 48px; flex: 0 0 auto; place-items: center; border-radius: 14px; background: rgba(176,59,246,.13); font-size: 1.25rem; }
.rule-heading p { margin: 0 0 2px; color: var(--muted); text-transform: uppercase; letter-spacing: .12em; font-size: .68rem; font-weight: 800; }
.rule-section > ul, .rule-box ul { display: grid; gap: 11px; margin: 0; padding: 0; list-style: none; }
.rule-section li { position: relative; padding-left: 21px; color: #d8d0dc; }
.rule-section li::before { content: ""; position: absolute; left: 0; top: .73em; width: 7px; height: 7px; border-radius: 50%; background: var(--purple-light); }
.penalty { display: inline-flex; margin-left: 7px; padding: 2px 8px; border-radius: 6px; background: rgba(255,75,99,.15); color: #ff8a99; font-size: .73rem; font-weight: 850; letter-spacing: .04em; }
.penalty-light { background: rgba(255,183,80,.13); color: #ffc273; }
.rule-columns { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.rule-box { padding: 24px; border: 1px solid var(--line); border-radius: 15px; background: rgba(255,255,255,.025); }
.rule-box p:last-child, .rule-note:last-child { margin-bottom: 0; color: #c8c0cd; }
.rule-box.allowed { border-color: rgba(66,217,137,.25); }
.rule-box.allowed h3 { color: #75e6aa; }
.rule-box.forbidden { border-color: rgba(255,90,111,.25); }
.rule-box.forbidden h3 { color: #ff8998; }
.rule-note { margin: 16px 0 0; padding: 15px 17px; border-left: 3px solid var(--purple); background: rgba(177,60,255,.07); }
.zone-rules { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 26px; }
.zone-rule { padding: 20px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,.025); }
.zone-rule p { margin-bottom: 0; color: var(--muted); font-size: .9rem; }
.zone-rule.red { border-top: 3px solid #ff4d68; }
.zone-rule.blue { border-top: 3px solid #4d91ff; }
.zone-rule.pink { border-top: 3px solid #ff4fbd; }
code { padding: 2px 6px; border-radius: 5px; background: rgba(255,255,255,.08); color: #efdafa; }
.end-note { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 18px; margin-top: 28px; padding: 24px; border: 1px solid rgba(192,91,249,.25); border-radius: 18px; background: linear-gradient(135deg, rgba(90,18,132,.35), rgba(19,12,28,.95)); }
.end-note img { width: 64px; height: 64px; }
.end-note p { margin: 3px 0 0; color: var(--muted); }
.end-note a { padding: 11px 16px; border-radius: 11px; background: linear-gradient(135deg, #b438ff, #7114b2); text-decoration: none; font-weight: 760; }
footer { padding: 28px 0; border-top: 1px solid var(--line); color: var(--muted); text-align: center; font-size: .84rem; }
footer p { margin: 0; }
:focus-visible { outline: 3px solid rgba(213,140,255,.72); outline-offset: 3px; }
@media (max-width: 900px) { .rules-layout { grid-template-columns: 1fr; } .toc { position: static; } .toc nav { grid-template-columns: repeat(2, 1fr); } .zone-rules { grid-template-columns: 1fr; } }
@media (max-width: 680px) { .container { width: min(calc(100% - 28px), var(--container)); } .header-inner nav { gap: 14px; } .hero-card { min-height: 390px; } .hero-content { padding: 120px 24px 36px; } .rule-section { padding: 25px 20px; } .rule-columns { grid-template-columns: 1fr; } .toc nav { grid-template-columns: 1fr; } .end-note { grid-template-columns: auto 1fr; } .end-note a { grid-column: 1 / -1; text-align: center; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
