/* recessroyale.io - one stylesheet for every page. No external fonts, scripts or trackers. */

@font-face {
  font-family: "Lilita One";
  src: url("fonts/LilitaOne-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #171b55;
  --night: #20267a;
  --night-2: #2a3290;
  --panel: #323ea6;
  --panel-2: #4152c4;
  --sky-1: #7fcbff;
  --sky-2: #d9f1ff;
  --snow: #f5faff;
  --pink: #ff4f9e;
  --yellow: #ffd23f;
  --yellow-2: #ffb81c;
  --lime: #7be05a;
  --cyan: #3fd0e8;
  --white: #ffffff;
  --muted-on-dark: #c9d1ff;

  /* legal pages (light) */
  --page-bg: #eef4ff;
  --card-bg: #ffffff;
  --text: #1d2150;
  --text-2: #4a4f7c;
  --line: #d6def5;
  --link: #3346c9;
  --note-bg: #fff6d6;
  --note-line: #f1d27a;

  --radius: 22px;
  --display: "Lilita One", "Arial Rounded MT Bold", system-ui, sans-serif;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --page-bg: #141849;
    --card-bg: #1d2266;
    --text: #eef1ff;
    --text-2: #b8c0f0;
    --line: #333b8f;
    --link: #8fb4ff;
    --note-bg: #2c2a5a;
    --note-line: #6b5fb0;
  }
}
:root[data-theme="dark"] {
  --page-bg: #141849;
  --card-bg: #1d2266;
  --text: #eef1ff;
  --text-2: #b8c0f0;
  --line: #333b8f;
  --link: #8fb4ff;
  --note-bg: #2c2a5a;
  --note-line: #6b5fb0;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--page-bg);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--yellow); color: var(--ink); padding: 8px 14px;
  border-radius: 10px; z-index: 50; font-weight: 700; }
.skip:focus { left: 8px; }

/* ---- display type with the game's dark outline ------------------------------------------------------------- */
.display {
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 1.05;
  color: var(--white);
  text-shadow:
    0 5px 0 var(--ink),
    2px 2px 0 var(--ink), -2px 2px 0 var(--ink), 2px -2px 0 var(--ink), -2px -2px 0 var(--ink),
    0 3px 0 var(--ink), 3px 0 0 var(--ink), -3px 0 0 var(--ink);
  margin: 0;
}

/* ---- buttons ------------------------------------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--display); font-size: 22px; letter-spacing: 0.02em;
  text-decoration: none; color: var(--ink);
  background: linear-gradient(var(--yellow), var(--yellow-2));
  border: 4px solid var(--ink); border-radius: 18px;
  padding: 12px 24px 14px;
  box-shadow: 0 6px 0 var(--ink), inset 0 3px 0 rgba(255, 255, 255, .55);
  transition: transform .12s ease, box-shadow .12s ease;
  cursor: pointer;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 0 var(--ink), inset 0 3px 0 rgba(255, 255, 255, .55); }
.btn:active { transform: translateY(4px); box-shadow: 0 2px 0 var(--ink), inset 0 3px 0 rgba(255, 255, 255, .55); }
.btn.blue { color: var(--white); background: linear-gradient(var(--panel-2), var(--panel));
  text-shadow: 0 2px 0 var(--ink); }
.btn.small { font-size: 17px; padding: 7px 16px 9px; border-width: 3px; border-radius: 14px; box-shadow: 0 4px 0 var(--ink); }
.btn .play-icon { width: 26px; height: 26px; flex: none; }
.soon {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--display); font-size: 20px; color: var(--white);
  background: var(--ink); border-radius: 999px; padding: 10px 20px; letter-spacing: 0.02em;
}
.soon .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 4px rgba(123, 224, 90, .25); }

/* ---- top bar ------------------------------------------------------------------------------------------------- */
.topbar { position: sticky; top: 0; z-index: 20; background: rgba(23, 27, 85, .92);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-bottom: 3px solid var(--ink); }
.topbar .wrap { display: flex; align-items: center; gap: 16px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: 40px; height: 40px; border-radius: 11px; border: 2px solid var(--ink); }
.brand span { font-family: var(--display); font-size: 22px; color: var(--white); text-shadow: 0 2px 0 var(--ink); }
.topbar nav { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.topbar nav a.link { color: var(--muted-on-dark); text-decoration: none; font-weight: 700; font-size: 15px;
  padding: 8px 10px; border-radius: 10px; }
.topbar nav a.link:hover { color: var(--white); background: rgba(255, 255, 255, .08); }
@media (max-width: 640px) { .topbar nav a.link { display: none; } .brand span { font-size: 19px; } }

/* ---- home: one screen, no scrolling (sizes follow the screen height) ------------------------------------- */
body.onepage { height: 100vh; height: 100dvh; display: flex; flex-direction: column; overflow: hidden; background: var(--ink); }
.stage {
  position: relative; flex: 1; min-height: 0; overflow: hidden;
  display: grid; place-items: center;
  --logo: min(760px, 80vw, 78vh);
  background:
    radial-gradient(120% 70% at 50% 0%, #b9e6ff 0%, rgba(185, 230, 255, 0) 60%),
    linear-gradient(180deg, var(--sky-1) 0%, var(--sky-2) 80%, var(--snow) 100%);
}
.snow { position: absolute; inset: 0; pointer-events: none; opacity: .9;
  background-image:
    radial-gradient(3px 3px at 20px 30px, #fff 50%, transparent 52%),
    radial-gradient(2px 2px at 80px 120px, #fff 50%, transparent 52%),
    radial-gradient(4px 4px at 150px 60px, #fff 50%, transparent 52%),
    radial-gradient(2px 2px at 210px 170px, #fff 50%, transparent 52%),
    radial-gradient(3px 3px at 260px 90px, #fff 50%, transparent 52%);
  background-size: 300px 220px;
  animation: snowfall 14s linear infinite; }
.snow.back { opacity: .55; background-size: 190px 160px; animation-duration: 22s; }
@keyframes snowfall { from { background-position: 0 0; } to { background-position: 60px 220px; } }
@media (prefers-reduced-motion: reduce) { .snow { animation: none; } }
/* a snowy hill the kids stand on */
.ground { position: absolute; left: -10%; right: -10%; bottom: -1px; height: 14%;
  background: radial-gradient(60% 100% at 25% 100%, #ffffff 70%, transparent 71%),
              radial-gradient(70% 100% at 78% 100%, #f1f8ff 70%, transparent 71%); }
.kid { position: absolute; bottom: 3%; width: auto; z-index: 1;
  /* as tall as the free space beside the logo allows (a kid is ~0.75 as wide as tall) */
  height: min(64%, calc((100vw - var(--logo)) / 2 / 0.78));
  filter: drop-shadow(0 12px 16px rgba(23, 27, 85, .28)); }
.kid.left { right: calc(50% + var(--logo) / 2 - 2vw); transform: rotate(-3deg); }
.kid.right { left: calc(50% + var(--logo) / 2 - 2vw); transform: rotate(3deg); }
.center { position: relative; z-index: 2; text-align: center; padding: 16px; display: flex; flex-direction: column;
  align-items: center; gap: min(2.4vh, 22px); }
.center h1 { margin: 0; line-height: 0; }
.logo { width: var(--logo); filter: drop-shadow(0 10px 18px rgba(23, 27, 85, .25)); }
.tag { margin: 0; font-family: var(--display); color: var(--ink); line-height: 1.2;
  font-size: clamp(16px, min(3.4vh, 4.6vw), 34px); }
.center .soon { font-size: clamp(15px, min(2.8vh, 4.4vw), 24px); padding: min(1.3vh, 11px) min(2.6vh, 22px); }
/* portrait phones: the kids move down into the corners, the title sits above them */
@media (max-aspect-ratio: 1/1) {
  .center { margin-bottom: 30vh; }
  .kid { height: min(34vh, 52vw); bottom: 2%; }
  .kid.left { left: 1%; right: auto; } .kid.right { right: 1%; left: auto; }
}
.bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px 22px;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: var(--ink); color: #8f97d6; font-size: 14px; }
.bar nav { display: flex; flex-wrap: wrap; gap: 4px 18px; justify-content: center; }
.bar a { color: var(--white); text-decoration: none; font-weight: 700; }
.bar a:hover { text-decoration: underline; }

/* ---- footer -------------------------------------------------------------------------------------------------- */
.footer { background: var(--ink); color: var(--muted-on-dark); padding: 36px 0 44px; font-size: 15px; }
.footer .wrap { display: flex; flex-wrap: wrap; gap: 18px 32px; align-items: center; justify-content: space-between; }
.footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.footer a { color: var(--white); text-decoration: none; font-weight: 700; }
.footer a:hover { text-decoration: underline; }
.footer small { display: block; color: #8f97d6; }

/* ---- legal pages --------------------------------------------------------------------------------------------- */
.legal-hero { background: linear-gradient(180deg, var(--night), var(--night-2)); padding: 44px 0 36px; color: var(--white); }
.legal-hero .display { font-size: clamp(34px, 6vw, 52px); }
.legal-hero p { margin: 10px 0 0; color: var(--muted-on-dark); }
.legal-hero .lang { margin-top: 16px; display: flex; gap: 10px; flex-wrap: wrap; }
.legal { padding: 34px 0 72px; }
.legal .doc { width: min(860px, 100% - 32px); margin-inline: auto; }
.legal .card { background: var(--card-bg); border: 1px solid var(--line); border-radius: 18px; padding: 26px clamp(18px, 4vw, 38px);
  margin-bottom: 18px; }
.legal h2 { font-family: var(--display); font-weight: 400; font-size: 28px; line-height: 1.15; margin: 0 0 12px; color: var(--text); }
.legal h3 { font-size: 18px; margin: 22px 0 6px; }
.legal p, .legal li { color: var(--text); }
.legal .muted { color: var(--text-2); }
.legal ul { padding-left: 22px; }
.legal li { margin: 6px 0; }
.legal table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 10px 0; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: 10px 10px; border-top: 1px solid var(--line); }
.legal th { font-weight: 800; color: var(--text-2); font-size: 13px; text-transform: uppercase; letter-spacing: .04em; border-top: 0; }
.legal .tablewrap { overflow-x: auto; }
.summary-box { background: var(--note-bg); border: 2px solid var(--note-line); border-radius: 16px; padding: 18px 22px; }
.summary-box ul { margin: 8px 0 0; }
.toc { columns: 2; column-gap: 28px; margin: 6px 0 0; padding-left: 20px; }
@media (max-width: 640px) { .toc { columns: 1; } }
.legal address { font-style: normal; }

/* deletion form */
.form-card label { display: block; font-weight: 800; margin: 10px 0 6px; }
.form-card input[type="text"] { width: 100%; max-width: 320px; font: 700 22px/1.2 ui-monospace, "Cascadia Mono", Consolas, monospace;
  letter-spacing: .08em; padding: 12px 14px; border: 3px solid var(--line); border-radius: 12px; background: var(--page-bg); color: var(--text); }
.form-card input[type="text"]:focus { border-color: var(--link); outline: none; }
.form-card .check { display: flex; gap: 10px; align-items: flex-start; font-weight: 600; margin: 16px 0; }
.form-card .check input { width: 22px; height: 22px; margin-top: 2px; flex: none; }
.form-card button[disabled] { opacity: .6; cursor: progress; }
.code { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-weight: 700; background: var(--page-bg);
  border: 1px solid var(--line); padding: 1px 6px; border-radius: 6px; }
.result { margin: 16px 0 0; padding: 12px 14px; border-radius: 12px; font-weight: 700; }
.result.ok { background: #e3f8da; color: #1f5a10; }
.result.warn { background: #fff0d1; color: #6d4500; }

/* placeholder still to fill in (contact details) */
.fill { background: #ffe58a; color: #5a3d00; padding: 0 4px; border-radius: 4px; }
