:root {
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --bg: #030303;
  --line: #252020;
  --text: #f5f3f2;
  --muted: #9b9795;
  --accent: #ff3348;
  --accent-soft: rgba(255, 51, 72, .12);
}

* { box-sizing: border-box; }
html { background: var(--bg); scroll-behavior: smooth; overscroll-behavior: none; }
body {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  min-width: 300px;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  overscroll-behavior: none;
  background:
    radial-gradient(ellipse at 12% 8%, rgba(125, 0, 20, .32), transparent 38%),
    radial-gradient(ellipse at 88% 92%, rgba(125, 0, 20, .28), transparent 42%),
    #020202;
  color: var(--text);
}
body::before,
body::after {
  content: "";
  position: fixed;
  z-index: 0;
  pointer-events: none;
  contain: layout paint;
  border-radius: 46% 54% 58% 42% / 48% 44% 56% 52%;
  will-change: transform;
}
body::before {
  width: 56vw;
  height: 44vw;
  min-width: 520px;
  min-height: 410px;
  top: -13vw;
  left: -15vw;
  opacity: .3;
  background: radial-gradient(ellipse at 38% 42%, rgba(255, 24, 48, .78) 0, rgba(214, 8, 31, .42) 23%, rgba(105, 0, 18, .16) 48%, transparent 72%);
  filter: blur(48px);
  animation: red-form-a 17s cubic-bezier(.45,0,.55,1) infinite alternate;
}
body::after {
  width: 52vw;
  height: 48vw;
  min-width: 500px;
  min-height: 460px;
  right: -17vw;
  bottom: -19vw;
  opacity: .27;
  background: radial-gradient(ellipse at 55% 48%, rgba(255, 18, 42, .72) 0, rgba(177, 0, 28, .36) 25%, rgba(83, 0, 16, .12) 51%, transparent 73%);
  filter: blur(52px);
  animation: red-form-b 21s cubic-bezier(.45,0,.55,1) infinite alternate;
}
header, main, footer { position: relative; z-index: 1; }
a { color: var(--accent); }
header {
  position: sticky;
  top: 0;
  z-index: 10;
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 0 max(18px, calc((100vw - 1760px) / 2));
  border-bottom: 1px solid rgba(255, 51, 72, .24);
  background: rgba(8, 3, 4, .94);
  box-shadow: 0 5px 22px rgba(0, 0, 0, .32);
}
.back-link { display: inline-flex; align-items: center; gap: 8px; padding: 9px 15px; border: 1px solid rgba(255, 51, 72, .28); border-radius: 999px; background: #140708; color: var(--text); font-size: 12px; font-weight: 800; text-decoration: none; box-shadow: 0 6px 18px rgba(0, 0, 0, .24); }
.back-link span { color: var(--accent); font-size: 14px; }
footer a { color: var(--muted); font-size: 11px; font-weight: 800; text-decoration: none; }
.back-link:hover, footer a:hover { color: #fff; }
main {
  flex: 1;
  width: min(880px, calc(100% - 32px));
  margin: 30px auto 70px;
  padding: clamp(26px, 5vw, 58px);
  border: 1px solid rgba(255, 51, 72, .18);
  border-radius: 16px;
  background: rgba(7, 4, 5, .88);
  box-shadow: 0 26px 70px rgba(0, 0, 0, .4);
}
.eyebrow { margin: 0 0 10px; color: #ff6978; font-size: 11px; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }
h1 { margin: 0 0 14px; font-size: clamp(34px, 6vw, 56px); line-height: 1.02; font-weight: 700; }
h2 { margin: 38px 0 12px; padding-top: 10px; border-top: 1px solid var(--line); font-size: 22px; font-weight: 700; }
h3 { margin: 24px 0 8px; font-size: 15px; }
p, li { color: var(--muted); font-size: 14px; line-height: 1.72; }
strong { color: var(--text); }
.updated { margin: 0 0 32px; color: #c9c5c3; font-size: 12px; font-weight: 800; }
.notice { margin: 26px 0; padding: 16px 18px; border: 1px solid rgba(255, 51, 72, .22); border-radius: 13px; background: var(--accent-soft); }
ul { padding-left: 22px; }
footer { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 28px max(18px, calc((100vw - 1760px) / 2)); border-top: 1px solid rgba(255, 51, 72, .22); background: rgba(8, 3, 4, .96); color: #716e6c; font-size: 12px; }
footer nav { display: flex; flex-wrap: wrap; gap: 15px; }
footer nav a { margin: 0; }
footer p { margin: 0; font-size: inherit; }
@keyframes red-form-a { 0% { transform: translate3d(-3vw, -2vh, 0) rotate(-5deg) scale(.96); } 100% { transform: translate3d(10vw, 7vh, 0) rotate(7deg) scale(1.08); } }
@keyframes red-form-b { 0% { transform: translate3d(4vw, 5vh, 0) rotate(4deg) scale(.94); } 100% { transform: translate3d(-10vw, -8vh, 0) rotate(-8deg) scale(1.08); } }
@media (max-width: 700px) { body::before { animation-duration: 27s; } body::after { animation-duration: 31s; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } body::before, body::after { animation: none; } }
@media (max-width: 600px) {
  header { min-height: 60px; padding-inline: 16px; }
  main { width: calc(100% - 22px); margin-top: 18px; padding: 22px 18px; border-radius: 13px; }
  h2 { margin-top: 32px; }
  footer { display: grid; grid-template-columns: 1fr; gap: 15px; padding: 26px 18px; }
}
