:root { --bg: #05080d; --panel: rgba(5, 10, 14, 0.78); --line: rgba(176, 224, 245, 0.18); --text: #ffffff; --muted: #bccbd3;
  --accent: #39e6ff; --link: #b0e0f5; --link-hover: #e6f7ff; --warn: #ffd36e;
  --font: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --cond: "Avenir Next Condensed", "Bahnschrift", "Roboto Condensed", "Arial Narrow", Arial, Helvetica, sans-serif; color-scheme: dark; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); cursor: url("/cursor.svg") 3 2, auto; }
body { margin: 0; color: var(--text); font: 400 16px/26px var(--font); -webkit-font-smoothing: antialiased; }
body::before, body::after { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; }
body::before { background: var(--bg) url("/background.jpg") center / cover no-repeat; filter: blur(8px); transform: scale(1.06); }
body::after { background: radial-gradient(ellipse at 50% 40%, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.5) 100%), rgba(0, 0, 0, 0.36); }
a { cursor: url("/cursor-hover.svg") 3 2, pointer; }
main { max-width: 760px; margin: 0 auto; padding: 40px 24px 64px; }
.terms-body { padding: 32px 40px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
header { text-align: center; margin-bottom: 32px; }
header .logo { display: block; width: min(280px, 64vw); margin: 0 auto 16px; perspective: 900px; }
/* the landing page's animated 2RP logo: float, light sweep (masked by the logo), tilt after the mouse (logo-tilt.ts) */
.logo-anim { position: relative; display: block; width: 100%; aspect-ratio: 1308 / 1203; transform-style: preserve-3d;
  transform: rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg)); transition: transform 0.25s ease-out;
  animation: logo-float 5s ease-in-out infinite; }
.logo-anim img { display: block; width: 100%; height: 100%; object-fit: contain;
  filter: drop-shadow(0 0 18px rgba(57, 230, 255, 0.35)) drop-shadow(0 10px 24px rgba(0, 0, 0, 0.6)); }
.logo-shine { position: absolute; inset: 0; pointer-events: none;
  -webkit-mask: url("/logo-2rp-www.png") center / contain no-repeat; mask: url("/logo-2rp-www.png") center / contain no-repeat;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, 0) 42%, rgba(255, 255, 255, 0.85) 50%, rgba(170, 245, 255, 0) 58%, transparent 65%);
  background-size: 250% 100%; background-repeat: no-repeat; mix-blend-mode: screen; animation: logo-sweep 4.5s ease-in-out infinite; }
@keyframes logo-float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -8px; } }
@keyframes logo-sweep { 0% { background-position: 160% 0; } 55%, 100% { background-position: -60% 0; } }
@media (prefers-reduced-motion: reduce) { .logo-anim, .logo-shine { animation: none; } .logo-anim { transform: none; transition: none; } }
h1, h2, h3, .terms-end { font-family: var(--cond); letter-spacing: 0.03em; }
h1 { margin: 0 0 8px; font-size: 32px; line-height: 40px; font-weight: 700; text-shadow: 0 0 24px #000; }
h2 { font-size: 24px; line-height: 32px; margin: 48px 0 16px; }
h3 { font-size: 18px; line-height: 28px; margin: 32px 0 8px; }
p, ul, ol { margin: 0 0 16px; }
ul, ol { padding-left: 24px; }
li { margin-bottom: 6px; }
a { color: var(--link); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
a:hover, a:focus-visible { color: var(--link-hover); }
.terms-n { color: var(--accent); }
.terms-part { padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.terms-part::before { content: ""; display: inline-block; width: 4px; height: 20px; margin-right: 12px; vertical-align: -2px; background: var(--accent); border-radius: 2px; }
.terms-meta { text-align: center; color: var(--muted); font-size: 14px; }
.terms-draft { margin: 0 0 24px; padding: 12px 16px; border: 1px solid var(--warn); border-radius: 8px; color: var(--warn); background: rgba(255, 211, 110, 0.06); font-size: 14px; line-height: 22px; }
.terms-ph { background: rgba(255, 211, 110, 0.15); color: var(--warn); padding: 0 4px; border-radius: 4px; font-size: 14px; }
.terms-toc { margin: 24px 0 8px; padding: 16px 24px; background: rgba(0, 0, 0, 0.3); border: 1px solid var(--line); border-radius: 12px; }
.terms-toc h2 { margin: 0 0 8px; font-size: 14px; line-height: 20px; text-transform: uppercase; letter-spacing: 2px; color: var(--muted); border: 0; }
.terms-toc ol { margin: 0; padding-left: 20px; }
.terms-toc li { margin: 0 0 4px; break-inside: avoid; }
.terms-toc ol ol { columns: 2; column-gap: 32px; margin: 4px 0 8px; font-size: 15px; }
.terms-rules li { padding-left: 4px; }
.terms-rules li::marker { color: var(--accent); font-weight: 700; }
section { scroll-margin-top: 16px; }
.terms-end { margin-top: 40px; padding: 16px; text-align: center; border: 1px solid var(--accent); border-radius: 12px; background: rgba(57, 230, 255, 0.06); font-weight: 700; }
.terms-back { display: flex; justify-content: center; gap: 24px; margin-top: 24px; font-size: 15px; }
.terms-meta, .terms-back, footer { text-shadow: 0 0 8px #000; }
footer { margin-top: 48px; text-align: center; color: var(--muted); font-size: 13px; line-height: 20px; }
@media (max-width: 560px) { main { padding: 24px 12px 48px; } .terms-body { padding: 20px 16px; } h1 { font-size: 26px; line-height: 34px; } .terms-toc ol ol { columns: 1; } }
.sound-toggle { position: fixed; top: 12px; right: 16px; z-index: 5; padding: 4px 8px; background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(176, 224, 245, 0.35); border-radius: 4px; color: rgba(255, 255, 255, 0.75);
  font: 12px/16px var(--cond); letter-spacing: 0.14em; text-transform: uppercase; cursor: pointer; }
.sound-toggle:hover, .sound-toggle:focus-visible { color: #fff; border-color: var(--link); outline: none; }
.sound-toggle[aria-pressed="false"] { color: rgba(255, 255, 255, 0.5); }
.sound-toggle[hidden] { display: none; }
