/* Babyran Online's website (docs/babyran-website.md): one stylesheet for every page. The colours are the game's rtnw
   theme (tools/rtnw/kit/css/tokens.css) and the fonts are rtnw's too, served from here, so no request leaves the site. */
@font-face { font-family: "Nunito"; src: url("assets/fonts/Nunito-Bold.ttf") format("truetype"); font-weight: 400 700; font-display: swap; }
@font-face { font-family: "Nunito"; src: url("assets/fonts/Nunito-ExtraBold.ttf") format("truetype"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Nunito"; src: url("assets/fonts/Nunito-Black.ttf") format("truetype"); font-weight: 900; font-display: swap; }
@font-face { font-family: "Lilita One"; src: url("assets/fonts/LilitaOne-Regular.ttf") format("truetype"); font-display: swap; }

:root {
  --navy-0: #0e1330;
  --navy-1: #151b3f;
  --navy-2: #1e2547;
  --navy-3: #2b3567;
  --indigo: #6077d8;
  --indigo-hi: #7d92ea;
  --indigo-lo: #5368c9;
  --indigo-edge: #4a5db8;
  --head: #546dd0;
  --head-hi: #6a82e0;
  --lav: #d8d9eb;
  --lav-hi: #e8e9f5;
  --peri: #bacdf5;
  --cream: #fcf8f2;
  --card: #fcfaf4;
  --cream-line: #edeaed;
  --ink: #4a5070;
  --title: #3f4c95;
  --gold: #f2b23c;
  --gold-hi: #fad37c;
  --gold-lo: #e2971f;
  --gold-edge: #c47f16;
  --gold-text: #ffd36b;
  --hp-a: #b4f553;
  --hp-b: #d6ff66;
  --mp-a: #45e6f2;
  --mp-b: #b2fff4;
  --sp-a: #f5a93c;
  --sp-b: #ffe08a;
  --tg-a: #fe6d6c;
  --tg-b: #ff8b7f;
  --line: rgba(255, 255, 255, .14);
  --radius: 18px;
  --shadow: 0 14px 40px rgba(4, 8, 30, .5);
  --ease: cubic-bezier(.2, .8, .2, 1);
  --font: "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --display: "Lilita One", "Nunito", system-ui, sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; font-family: var(--font); font-weight: 600; font-size: 1.0625rem; line-height: 1.6; color: var(--lav-hi); background: var(--navy-0); overflow-x: hidden; }
img { max-width: 100%; height: auto; }
a { color: var(--gold-text); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--gold-hi); outline-offset: 3px; border-radius: 6px; }
.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }
.skip-link { position: absolute; left: -999px; top: 8px; z-index: 30; background: var(--card); color: var(--title); padding: 8px 12px; border-radius: 8px; }
.skip-link:focus { left: 16px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* An rtnw glyph (assets/glyphs), coloured by the text around it */
.gl { display: inline-block; flex: none; width: 1.25em; height: 1.25em; background: currentColor; -webkit-mask: var(--g) center / contain no-repeat; mask: var(--g) center / contain no-repeat; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(21, 27, 63, .94); border-bottom: 1px solid var(--line); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); transition: background .25s, border-color .25s; }
.home .site-header { position: fixed; left: 0; right: 0; background: linear-gradient(180deg, rgba(14, 19, 48, .72), rgba(14, 19, 48, 0)) border-box; border-color: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }
.home .site-header.is-solid { background: rgba(21, 27, 63, .94); border-color: var(--line); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.header-row { display: flex; align-items: center; gap: 8px 22px; min-height: 68px; flex-wrap: wrap; padding: 6px 0; }
.brand { display: flex; align-items: center; margin-right: auto; color: #fff; text-decoration: none; }
.brand img { display: block; width: 112px; height: auto; filter: drop-shadow(0 2px 6px rgba(4, 8, 30, .5)); }
.site-nav { display: flex; align-items: center; gap: 4px 20px; font-weight: 800; font-size: .95rem; }
.site-nav a { color: var(--lav-hi); text-decoration: none; padding: 6px 0; text-shadow: 0 1px 3px rgba(4, 8, 30, .6); white-space: nowrap; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--gold-text); }
.site-nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--gold); }

/* Buttons: rtnw's gold pill, and a glass one */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 10px 26px; border: 0; border-radius: 999px; font: 900 1.02rem/1.2 var(--font); text-decoration: none; cursor: pointer; color: #4a2c00; background: linear-gradient(180deg, var(--gold-hi), var(--gold) 55%, var(--gold-lo)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6), 0 3px 0 var(--gold-edge), 0 10px 22px rgba(226, 151, 31, .35); transition: transform .15s var(--ease), box-shadow .15s var(--ease), filter .15s; }
.btn:hover { transform: translateY(-2px); filter: brightness(1.05); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6), 0 5px 0 var(--gold-edge), 0 14px 26px rgba(226, 151, 31, .45); }
.btn:active { transform: translateY(2px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6), 0 1px 0 var(--gold-edge); }
.btn-ghost { color: #fff; background: rgba(255, 255, 255, .14); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .7); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.btn-ghost:hover { background: rgba(255, 255, 255, .24); box-shadow: inset 0 0 0 2px #fff; }
.btn-ghost:active { box-shadow: inset 0 0 0 2px #fff; }
.btn-small { min-height: 40px; padding: 6px 18px; font-size: .92rem; }
.site-nav .btn { color: #4a2c00; text-shadow: none; padding: 6px 18px; }
.site-nav .btn:hover { color: #4a2c00; }

/* Hero: the lobby's wallpapers, the logo and the way in */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: flex-end; overflow: hidden; background: var(--navy-1); }
.hero-slide { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: var(--focus, 50% 30%); opacity: 0; transform: scale(1.04); transition: opacity 1.4s ease; }
.hero-slide.is-on { opacity: 1; animation: drift 14s ease-out both; }
@keyframes drift { from { transform: scale(1.1); } to { transform: scale(1.02); } }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(14, 19, 48, .35) 0, rgba(14, 19, 48, 0) 24%, rgba(14, 19, 48, .1) 52%, rgba(14, 19, 48, .82) 86%, var(--navy-0) 100%), linear-gradient(90deg, rgba(14, 19, 48, .8) 0, rgba(14, 19, 48, .42) 38%, rgba(14, 19, 48, 0) 68%); }
.hero-snow { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.hero-body { position: relative; z-index: 2; padding: 110px 0 64px; }
.hero-logo { display: block; width: clamp(230px, 30vw, 400px); height: auto; margin: 0 0 14px -6px; filter: drop-shadow(0 8px 22px rgba(4, 8, 30, .55)); }
.live { display: inline-flex; align-items: center; gap: 9px; margin: 0 0 12px; padding: 5px 14px; border-radius: 999px; font-weight: 900; font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; color: var(--navy-1); background: linear-gradient(90deg, var(--hp-a), var(--hp-b)); }
.live i { width: 9px; height: 9px; border-radius: 50%; background: #2a7d1e; animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .35; transform: scale(.75); } }
.hero h1 { margin: 0 0 8px; font: 400 clamp(2.7rem, 6.4vw, 4.8rem)/1.02 var(--display); letter-spacing: .01em; color: #fff; text-shadow: 0 .05em 0 var(--navy-3), 0 .1em .3em rgba(4, 8, 30, .7); }
.hero .tagline { margin: 0 0 26px; max-width: 32em; font-size: clamp(1.08rem, 2.2vw, 1.3rem); font-weight: 700; color: #fff; text-shadow: 0 1px 8px rgba(4, 8, 30, .75); }
.actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 10px 30px; margin: 34px 0 0; padding: 0; list-style: none; }
.hero-facts li { display: flex; align-items: center; gap: 9px; font-weight: 800; color: #fff; text-shadow: 0 1px 6px rgba(4, 8, 30, .8); }
.hero-facts .gl { color: var(--gold-text); }

/* Sections */
.section { position: relative; padding: 84px 0; }
.eyebrow { margin: 0 0 6px; font-weight: 900; font-size: .85rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-text); }
.section h2 { margin: 0 0 10px; font: 400 clamp(2rem, 4.6vw, 3.1rem)/1.08 var(--display); letter-spacing: .01em; color: #fff; text-shadow: 0 .05em 0 rgba(4, 8, 30, .45); }
.section .lead { margin: 0 0 34px; max-width: 42em; font-size: 1.12rem; color: var(--lav); }
.band { background: linear-gradient(180deg, var(--navy-1), var(--navy-0)); }

/* The 3D stages */
.stage-classes { background: radial-gradient(70% 60% at 30% 40%, rgba(96, 119, 216, .34), transparent 70%), linear-gradient(180deg, var(--navy-0), var(--navy-1) 60%, var(--navy-0)); }
.stage-bosses { background: radial-gradient(70% 60% at 70% 40%, rgba(220, 86, 92, .24), transparent 70%), linear-gradient(180deg, var(--navy-0), #1b1233 60%, var(--navy-0)); }
.stage-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 28px; align-items: center; }
.stage-bosses .stage-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); }
.stage-bosses .stage-view { order: 2; }
.stage-view { position: relative; aspect-ratio: 5 / 5.4; max-height: 660px; width: 100%; border-radius: 26px; overflow: hidden; background: radial-gradient(60% 50% at 50% 62%, rgba(125, 146, 234, .3), transparent 72%), linear-gradient(180deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .01)); box-shadow: inset 0 0 0 1px var(--line), var(--shadow); }
.stage-bosses .stage-view { background: radial-gradient(60% 50% at 50% 62%, rgba(254, 109, 108, .24), transparent 72%), linear-gradient(180deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .01)); }
.stage-view canvas { position: absolute; inset: 0; display: block; width: 100%; height: 100%; cursor: grab; opacity: 0; transition: opacity .35s; }
.stage-view canvas:active { cursor: grabbing; }
.stage-poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; pointer-events: none; transition: opacity .35s; }
.is-live .stage-view canvas { opacity: 1; }
.is-live .stage-poster { opacity: 0; }
.stage-load { position: absolute; left: 50%; top: 18px; transform: translateX(-50%); padding: 3px 14px; border-radius: 999px; font-weight: 800; font-size: .82rem; color: #fff; background: rgba(14, 19, 48, .7); opacity: 0; transition: opacity .2s; pointer-events: none; }
.is-loading .stage-load { opacity: 1; }
.stage-hint { position: absolute; left: 18px; bottom: 16px; margin: 0; font-weight: 700; font-size: .85rem; color: var(--lav); pointer-events: none; }
.stage-attack { position: absolute; right: 16px; bottom: 16px; }
.is-still .stage-hint, .is-still .stage-attack, .is-still .stage-load { display: none; }
.picks { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; padding: 0; list-style: none; }
.pick { display: inline-flex; align-items: center; gap: 7px; min-height: 44px; padding: 7px 15px; border: 0; border-radius: 999px; font: 800 .95rem/1.1 var(--font); color: var(--lav-hi); background: rgba(255, 255, 255, .08); box-shadow: inset 0 0 0 1px var(--line); cursor: pointer; transition: background .15s, transform .15s var(--ease); }
.pick:hover { background: rgba(255, 255, 255, .16); transform: translateY(-1px); }
.pick[aria-pressed="true"] { color: #fff; background: linear-gradient(180deg, var(--indigo-hi), var(--indigo-lo)); box-shadow: inset 0 0 0 2px var(--gold-hi), 0 4px 14px rgba(83, 104, 201, .55); }
.stage-bosses .pick[aria-pressed="true"] { background: linear-gradient(180deg, var(--tg-b), #c9464d); }

/* An rtnw card */
.panel { border-radius: 20px; overflow: hidden; background: var(--navy-2); box-shadow: inset 0 0 0 1px var(--line), var(--shadow); }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 20px; background: linear-gradient(180deg, var(--head-hi), var(--head)); }
.stage-bosses .panel-head { background: linear-gradient(180deg, #d9585e, #a93a46); }
.panel-head h3 { margin: 0; font: 400 1.7rem/1.1 var(--display); color: #fff; text-shadow: 0 .06em 0 rgba(20, 30, 90, .45); }
.panel-tag { flex: none; padding: 2px 12px; border-radius: 999px; font-weight: 900; font-size: .82rem; color: #fff; background: rgba(14, 19, 48, .35); }
.panel-body { padding: 18px 20px 20px; }
.panel-body p { margin: 0 0 14px; color: var(--lav); }
.gear { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; margin: 0; padding: 0; list-style: none; }
.gear li { display: flex; align-items: center; gap: 9px; padding: 7px 10px; border-radius: 12px; font-weight: 800; font-size: .92rem; color: #fff; background: linear-gradient(90deg, rgba(232, 148, 79, .28), rgba(247, 193, 132, .08)); box-shadow: inset 0 0 0 1px rgba(247, 193, 132, .4); }
.gear .gl { color: #f7c184; }
.bar { height: 16px; margin: 4px 0 6px; border-radius: 999px; overflow: hidden; background: rgba(14, 19, 48, .7); box-shadow: inset 0 0 0 1px var(--line); }
.bar i { display: block; height: 100%; width: var(--fill); border-radius: 999px; background: linear-gradient(90deg, var(--tg-a), var(--tg-b)); }
.hp { display: flex; justify-content: space-between; gap: 12px; margin: 0; font-weight: 800; font-size: .92rem; color: #fff; }
.hp span:last-child { font-family: var(--display); font-weight: 400; letter-spacing: .02em; }

/* What the game has */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.card { padding: 24px; border-radius: var(--radius); background: var(--navy-2); box-shadow: inset 0 0 0 1px var(--line), var(--shadow); transition: transform .2s var(--ease); }
.card:hover { transform: translateY(-4px); }
.card h3 { margin: 0 0 6px; font: 400 1.32rem/1.2 var(--display); color: #fff; }
.card p { margin: 0; color: var(--lav); }
.disc { display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 14px; border-radius: 50%; font-size: 1.3rem; color: #fff; background: linear-gradient(180deg, var(--indigo-hi), var(--indigo-lo)); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .5), 0 5px 14px rgba(83, 104, 201, .5); }
.gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 28px; }
.gallery figure { position: relative; margin: 0; border-radius: 14px; overflow: hidden; aspect-ratio: 16 / 10; background: var(--navy-2); box-shadow: inset 0 0 0 1px var(--line); }
.gallery img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .4s var(--ease); }
.gallery figure:hover img { transform: scale(1.05); }
.gallery figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 12px 8px; font-weight: 800; font-size: .88rem; color: #fff; background: linear-gradient(180deg, transparent, rgba(14, 19, 48, .85)); }

/* The alpha test */
.alpha { background: linear-gradient(180deg, var(--navy-0), rgba(14, 19, 48, .82) 20%, rgba(14, 19, 48, .88) 80%, var(--navy-0)), url("assets/art/wall-2.webp") center 30% / cover no-repeat; }
.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; }
.alpha .steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.alpha .steps li { display: flex; flex-direction: column; align-items: flex-start; padding: 56px 22px 22px; background: rgba(30, 37, 71, .92); box-shadow: inset 0 0 0 1px var(--line), var(--shadow); border: 0; }
.alpha .steps li::before { left: 20px; top: 16px; width: 32px; height: 32px; font-family: var(--display); font-weight: 400; font-size: 1.05rem; color: #4a2c00; background: linear-gradient(180deg, var(--gold-hi), var(--gold-lo)); }
.alpha .steps li + li { margin-top: 0; }
.alpha .steps h3 { margin: 0 0 6px; font: 400 1.32rem/1.2 var(--display); color: #fff; }
.alpha .steps p { flex: 1; margin: 0 0 16px; color: var(--lav); }
.note { margin: 22px 0 0; max-width: 54em; color: var(--lav); }

/* Getting the game */
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.facts li { padding: 18px 20px; border-radius: var(--radius); background: var(--navy-2); box-shadow: inset 0 0 0 1px var(--line); }
.facts strong { display: block; font: 400 1.8rem/1.2 var(--display); color: var(--mp-b); }
.facts li:nth-child(2) strong { color: var(--sp-b); }
.facts li:nth-child(3) strong { color: var(--hp-b); }
.facts span { color: var(--lav); font-size: .97rem; }
.platforms { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; margin-top: 16px; }
.platform h3 { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.card-action { margin: 16px 0 0 !important; }
.tag { display: inline-block; padding: 2px 11px; border-radius: 999px; font: 900 .74rem/1.6 var(--font); letter-spacing: .05em; text-transform: uppercase; color: var(--lav); background: rgba(255, 255, 255, .08); box-shadow: inset 0 0 0 1px var(--line); }
.tag-ready { color: var(--navy-1); background: linear-gradient(90deg, var(--hp-a), var(--hp-b)); box-shadow: none; }

/* The policy pages: a cream rtnw card on the navy */
.legal { max-width: 800px; margin-block: 36px 64px; padding: 34px clamp(20px, 5vw, 44px) 44px; border-radius: 22px; color: var(--ink); background: var(--card); box-shadow: var(--shadow); }
.legal a { color: var(--indigo-edge); }
.legal .eyebrow { color: var(--ink); letter-spacing: .08em; }
.legal h1 { margin: 6px 0 4px; font: 400 clamp(2rem, 5vw, 2.7rem)/1.15 var(--display); color: var(--title); }
.legal .updated { margin: 0 0 20px; color: var(--ink); }
.legal .intro { font-size: 1.08rem; padding: 16px 20px; background: #fff; border: 1px solid var(--cream-line); border-left: 4px solid var(--gold); border-radius: 12px; }
.legal section { margin-top: 32px; }
.legal h2 { font-size: 1.32rem; font-weight: 900; margin: 0 0 8px; scroll-margin-top: 84px; color: var(--title); }
.legal h3 { font-size: 1.05rem; font-weight: 900; margin: 18px 0 4px; color: var(--title); }
.legal p, .legal li { color: var(--ink); }
.legal ul, .legal ol { padding-left: 1.3em; }
.legal li + li { margin-top: 6px; }
.toc { margin: 24px 0 0; padding: 16px 20px; background: #fff; border: 1px solid var(--cream-line); border-radius: 12px; }
.toc ol { margin: 6px 0 0; columns: 2 220px; column-gap: 24px; }
.toc li { break-inside: avoid; }
.legal .steps { padding: 0; }
.legal .steps li { background: #fff; border: 1px solid var(--cream-line); }
.steps li { position: relative; padding: 14px 16px 14px 56px; border-radius: 14px; }
.steps li::before { counter-increment: step; content: counter(step); position: absolute; left: 16px; top: 14px; width: 28px; height: 28px; border-radius: 50%; color: #fff; background: var(--indigo); font-weight: 900; display: grid; place-items: center; font-size: .9rem; }
.steps li + li { margin-top: 10px; }

/* Footer */
.site-footer { padding: 30px 0; font-size: .95rem; color: var(--lav); background: var(--navy-1); border-top: 1px solid var(--line); }
.footer-row { display: flex; justify-content: space-between; align-items: center; gap: 12px 24px; flex-wrap: wrap; }
.footer-brand img { display: block; width: 104px; height: auto; }
.footer-links { display: flex; gap: 6px 18px; flex-wrap: wrap; }
.footer-links a { color: var(--lav); }
.fine { margin: 12px 0 0; font-size: .85rem; }

@media (max-width: 900px) {
  .stage-grid, .stage-bosses .stage-grid { grid-template-columns: minmax(0, 1fr); }
  .stage-bosses .stage-view { order: 0; }
  .stage-view { aspect-ratio: 1 / 1.05; max-height: 72vh; }
  .alpha .steps { grid-template-columns: minmax(0, 1fr); }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  body { font-size: 1rem; }
  .section { padding: 56px 0; }
  .site-nav { order: 3; width: 100%; overflow-x: auto; scrollbar-width: none; gap: 4px 16px; font-size: .9rem; }
  .site-nav::-webkit-scrollbar { display: none; }
  .brand img { width: 92px; }
  .hero::after { background: linear-gradient(180deg, rgba(14, 19, 48, .4) 0, rgba(14, 19, 48, 0) 22%, rgba(14, 19, 48, .25) 42%, rgba(14, 19, 48, .88) 70%, var(--navy-0) 100%); }
  .hero-body { padding: 150px 0 40px; }
  .hero-facts { gap: 8px 20px; margin-top: 24px; font-size: .95rem; }
  .actions .btn { flex: 1 1 200px; }
  .picks { flex-wrap: nowrap; overflow-x: auto; margin-inline: -16px; padding: 2px 16px 6px; scrollbar-width: none; }
  .picks::-webkit-scrollbar { display: none; }
  .pick { flex: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-slide, .hero-slide.is-on { animation: none; transform: none; transition: none; }
  .live i { animation: none; }
  .btn, .card, .pick, .gallery img { transition: none; }
}
