/* Privacy and Terms: the same dark as the game. A scene you can barely make out, fog crossing it,
   and your pointer as the torch. The words themselves always stay readable. */
@font-face { font-family: 'Anton'; font-weight: 400; font-display: swap; src: url('fonts/Anton-400.woff2') format('woff2'); }
@font-face { font-family: 'Chakra Petch'; font-weight: 400; font-display: swap; src: url('fonts/ChakraPetch-400.woff2') format('woff2'); }
@font-face { font-family: 'Chakra Petch'; font-weight: 600; font-display: swap; src: url('fonts/ChakraPetch-600.woff2') format('woff2'); }
@font-face { font-family: 'Share Tech Mono'; font-weight: 400; font-display: swap; src: url('fonts/ShareTechMono-400.woff2') format('woff2'); }
@font-face { font-family: 'Special Elite'; font-weight: 400; font-display: swap; src: url('fonts/SpecialElite-400.woff2') format('woff2'); }

:root { --bone: #d9d4c7; --dim: #8b929b; --cold: #9fd8ee; --blood: #b3261e; --ink: #020406; }
* { box-sizing: border-box; }
html { background: var(--ink); }
body { margin: 0; min-height: 100vh; color: var(--bone); font: 17px/1.7 'Chakra Petch', system-ui, sans-serif; overflow-x: hidden; }

/* the scene, far back and nearly black */
.scene { position: fixed; inset: 0; z-index: 0; background: var(--ink) center / cover no-repeat; filter: brightness(0.5) saturate(0.7); animation: drift 60s ease-in-out infinite alternate; }
.privacy .scene { background-image: url('bg/glass.webp'); }
.terms .scene { background-image: url('bg/castle.webp'); }
/* the dark, with a hole in it where your light falls */
.dark { position: fixed; inset: 0; z-index: 1; pointer-events: none; background: radial-gradient(circle at var(--bx, 72%) var(--by, 30%), rgba(2, 4, 6, 0.3) 0, rgba(2, 4, 6, 0.86) 240px, rgba(2, 4, 6, 0.97) 520px); }
.fog { position: fixed; inset: -10% 0; z-index: 2; pointer-events: none; opacity: 0.32; background-repeat: repeat-x; background-size: 1400px 100%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1400' height='700'%3E%3Cfilter id='f' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.005 0.012' numOctaves='4' seed='7' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.62 0 0 0 0 0.68 0 0 0 0 0.76 1.5 0 0 0 -0.62'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23f)'/%3E%3C/svg%3E");
  animation: fog 70s linear infinite; }
.fog.two { opacity: 0.22; background-size: 2100px 130%; animation-duration: 120s; animation-direction: reverse; }
@keyframes fog { from { background-position-x: 0; } to { background-position-x: -1400px; } }
@keyframes drift { from { transform: scale(1.04); } to { transform: scale(1.12) translate(-1.2%, -1%); } }

main { position: relative; z-index: 3; max-width: 41em; margin: 0 auto; padding: 84px 22px 96px; }
h1 { font: 400 clamp(56px, 11vw, 104px) / 0.9 'Anton', Impact, sans-serif; letter-spacing: 0.04em; margin: 0; text-shadow: 0 0 40px rgba(159, 216, 238, 0.12); animation: flick 7s steps(1) infinite; }
@keyframes flick { 0%, 100% { opacity: 1; } 41% { opacity: 0.35; } 42% { opacity: 1; } 43.5% { opacity: 0.6; } 44% { opacity: 1; } 78% { opacity: 0.2; } 78.6% { opacity: 1; } }
.whisper { font: 400 21px 'Special Elite', 'Courier New', monospace; color: var(--blood); margin: 14px 0 4px; }
.dim { color: var(--dim); font: 13px 'Share Tech Mono', ui-monospace, monospace; letter-spacing: 0.08em; }
h2 { font: 400 12px 'Share Tech Mono', ui-monospace, monospace; letter-spacing: 0.24em; text-transform: uppercase; color: var(--cold); margin: 3em 0 0.6em; padding-top: 1.4em; border-top: 1px solid rgba(217, 212, 199, 0.12); }
p, li { text-shadow: 0 1px 12px #000; }
a { color: inherit; }
li { margin: 0.3em 0; }

/* the way out */
.back {
  display: inline-block; font: 14px 'Share Tech Mono', ui-monospace, monospace; letter-spacing: 0.26em; text-transform: uppercase; text-decoration: none;
  color: var(--ink); background: var(--bone); border: 1px solid var(--bone); padding: 16px 28px; text-shadow: none; transition: background 0.15s, color 0.15s;
}
.back:hover, .back:focus-visible { background: transparent; color: var(--bone); }
.back.top { position: fixed; top: 18px; right: 18px; z-index: 5; padding: 12px 20px; font-size: 12px; }
.out { margin-top: 3.4em; }

@media (max-width: 600px) {
  main { padding-top: 92px; }
  .back.top { top: 12px; right: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .scene, .fog, h1 { animation: none; }
}
