/* Lilrose 3 base: tokens, type, the pill, colour fields with poured edges, header and footer. */

/* Fallbacks sized to the web fonts, so lines break the same before and after they load. */
@font-face { font-family: "DynaPuff Fallback"; src: local("Arial Bold"), local("Arial-BoldMT"), local("Arial"); size-adjust: 105%; }
@font-face { font-family: "Nunito Fallback"; src: local("Arial"), local("ArialMT"); size-adjust: 104.9%; }
@font-face { font-family: "Quicksand"; src: url("../fonts/quicksand-latin.woff2") format("woff2"); font-weight: 300 700; font-display: swap; }

:root {
	--ink: #2B1446;
	--plum: #3D1F63;
	--paper: #FFF8EC;
	--white: #FFFFFF;
	--sky: #4CC3FA;
	--sky-deep: #0F6FC4;
	--grass: #5CCB4B;
	--grass-deep: #1E7F3A;
	--pink: #FF5FAE;
	--pink-deep: #C2186F;
	--sun: #FFD63D;
	--sun-deep: #B97A00;
	--orange: #FF9B45;
	--grape: #8E63F0;
	--grape-deep: #5B34C4;
	--lilac: #EADFFB;
	--ink-soft: rgb(43 20 70 / 0.78);
	--ink-line: rgb(43 20 70 / 0.16);
	--on-dark-soft: rgb(255 248 236 / 0.82);

	--display: DynaPuff, "DynaPuff Fallback", ui-rounded, system-ui, sans-serif;
	--body: Nunito, "Nunito Fallback", ui-rounded, system-ui, sans-serif;
	--t-small: 0.9375rem;
	--t-body: 1.125rem;
	--t-lead: clamp(1.1875rem, 0.6vw + 1.05rem, 1.375rem);
	--t-title: clamp(1.5rem, 1.4vw + 1.15rem, 2rem);
	--t-headline: clamp(2.1rem, 3.6vw + 1.2rem, 3.75rem);
	--t-display: clamp(2.7rem, 6.2vw + 1.1rem, 5.75rem);

	--s1: 0.25rem; --s2: 0.5rem; --s3: 0.75rem; --s4: 1rem; --s5: 1.5rem; --s6: 2rem; --s7: 3rem; --s8: 4rem; --s9: 6rem;
	--gutter: clamp(1rem, 4vw, 3rem);
	--wide: 78rem;
	--read: 44rem;
	--section: clamp(4.5rem, 9vw, 8.5rem);

	--r-sm: 10px; --r-md: 18px; --r-lg: 28px; --r-xl: 40px;
	--lip: 6px;
	--shadow-soft: 0 6px 14px rgb(43 20 70 / 0.14);
	--shadow-lift: 0 18px 40px rgb(43 20 70 / 0.22);

	--fast: 140ms; --mid: 260ms; --slow: 520ms;
	--ease: cubic-bezier(0.16, 1, 0.3, 1);
	--spring: cubic-bezier(0.34, 1.56, 0.64, 1);

	--field: var(--paper);
	--header-h: 4.5rem;
	color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 1rem); scrollbar-color: var(--pink) var(--ink); }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--body); font-size: var(--t-body); font-weight: 600; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: clip; accent-color: var(--pink-deep); caret-color: var(--pink-deep); }
::selection { background: var(--sun); color: var(--ink); }
img, video, canvas, svg { max-width: 100%; height: auto; }
img, video { display: block; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 600; line-height: 1.06; letter-spacing: -0.015em; margin: 0; text-wrap: balance; }
h1 { font-size: var(--t-display); letter-spacing: -0.025em; }
h2 { font-size: var(--t-headline); }
h3 { font-size: var(--t-title); line-height: 1.15; }
p { margin: 0; text-wrap: pretty; }
a { color: inherit; text-decoration-thickness: 0.09em; text-underline-offset: 0.2em; }
a:hover { text-decoration-thickness: 0.16em; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; box-shadow: 0 0 0 6px var(--sun); border-radius: 6px; }
[hidden] { display: none !important; }
:where(ul[class], ol[class]) { list-style: none; margin: 0; padding: 0; }
button { font: inherit; color: inherit; }

.lr-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link.screen-reader-text:focus { background: var(--sun) !important; color: var(--ink) !important; border-radius: 999px; font-weight: 900; z-index: 100000; }
.lr-skip { position: absolute; left: 1rem; top: -4rem; z-index: 100; background: var(--sun); color: var(--ink); padding: 0.75rem 1.25rem; border-radius: 999px; font-weight: 900; text-decoration: none; }
.lr-skip:focus { top: 1rem; }
.lr-icon { width: 1.4em; height: 1.4em; flex: none; }
.lr-wrap { width: min(100% - 2 * var(--gutter), var(--wide)); margin-inline: auto; }
.lr-lead { font-size: var(--t-lead); line-height: 1.5; max-width: 34em; }

/* WordPress wraps blocks in layout containers; the theme's own sections manage their own width. */
.wp-site-blocks { padding: 0; }
.wp-site-blocks > * { margin-block: 0; }
main.lr-main { display: block; margin: 0; padding: 0; max-width: none; }
main.lr-main > * { max-width: none; margin-inline: 0; }

/* ---------- the game's pill ---------- */
.lr-pill {
	--face: var(--pink); --lipc: var(--pink-deep);
	display: inline-flex; align-items: center; justify-content: center; gap: 0.55em;
	min-height: 3.25rem; padding: 0.6rem 1.6rem; border: 0; border-radius: 999px; cursor: pointer;
	background: var(--face); color: var(--ink);
	font-family: var(--body); font-size: 1.0625rem; font-weight: 900; letter-spacing: 0.06em; text-transform: uppercase; text-decoration: none; white-space: nowrap; line-height: 1;
	box-shadow: 0 var(--lip) 0 var(--lipc), 0 calc(var(--lip) + 8px) 18px rgb(43 20 70 / 0.22);
	transition: transform var(--fast) var(--ease), box-shadow var(--fast) var(--ease), filter var(--fast) var(--ease);
}
.lr-pill:hover { filter: brightness(1.06) saturate(1.05); transform: translateY(-2px); box-shadow: 0 calc(var(--lip) + 2px) 0 var(--lipc), 0 calc(var(--lip) + 12px) 22px rgb(43 20 70 / 0.24); }
.lr-pill:active { transform: translateY(var(--lip)); box-shadow: 0 0 0 var(--lipc), 0 4px 8px rgb(43 20 70 / 0.2); }
.lr-pill--play { --face: var(--sky); --lipc: var(--sky-deep); }
.lr-pill--create { --face: var(--sun); --lipc: var(--sun-deep); }
.lr-pill--grass { --face: var(--grass); --lipc: var(--grass-deep); }
.lr-pill--light { --face: var(--white); --lipc: #CDBFE3; }
.lr-pill--ink { --face: var(--ink); --lipc: #12061F; color: var(--paper); }
.lr-pill--big { min-height: 4rem; padding-inline: 2.1rem; font-size: 1.1875rem; }
.lr-pill .lr-icon { width: 1.3em; height: 1.3em; }

.lr-more { display: inline-flex; align-items: center; gap: 0.25em; min-height: 2.75rem; font-weight: 900; text-decoration: underline; text-decoration-thickness: 0.12em; text-underline-offset: 0.25em; }
.lr-more .lr-icon { width: 1.1em; height: 1.1em; transition: transform var(--mid) var(--ease); }
.lr-more:hover .lr-icon { transform: translateX(4px); }
.lr-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s4) var(--s5); }

/* The launch date: a strong plain statement, not a button and never a countdown. */
.lr-launch { display: inline-flex; align-items: center; gap: 0.6em; min-height: 3.25rem; padding: 0.5rem 1.3rem 0.5rem 1rem; border-radius: 999px; background: var(--sun); color: var(--ink); font-weight: 800; line-height: 1.2; box-shadow: inset 0 0 0 3px var(--ink); }
.lr-launch strong { display: block; font-family: var(--display); font-weight: 600; font-size: 1.1em; letter-spacing: -0.01em; }
.lr-launch .lr-icon { width: 1.5em; height: 1.5em; }
.lr-launch--big { font-size: 1.25rem; padding: 0.7rem 1.75rem 0.7rem 1.25rem; }

/* A small rounded tag for a fact, never above a heading. */
.lr-tag { display: inline-flex; align-items: center; gap: 0.4em; padding: 0.3em 0.85em; border-radius: 999px; background: var(--ink); color: var(--paper); font-size: var(--t-small); font-weight: 900; line-height: 1.3; }
.lr-tag--sun { background: var(--sun); color: var(--ink); }
h2 .lr-tag, h3 .lr-tag { font-family: var(--body); font-size: 0.875rem; letter-spacing: 0; vertical-align: middle; translate: 0 -0.15em; }
.lr-tag--light { background: var(--white); color: var(--ink); }

/* ---------- colour fields ---------- */
.lr-field { position: relative; background: var(--field); padding-block: var(--section); }
.lr-field--paper { --field: var(--paper); }
.lr-field--white { --field: var(--white); }
.lr-field--pink { --field: var(--pink); }
.lr-field--sky { --field: var(--sky); }
.lr-field--grass { --field: var(--grass); }
.lr-field--sun { --field: var(--sun); }
.lr-field--grape { --field: var(--grape); }
.lr-field--lilac { --field: var(--lilac); }
.lr-field--plum { --field: var(--ink); color: var(--paper); }
.lr-field--plum :focus-visible { outline-color: var(--paper); box-shadow: 0 0 0 6px var(--pink-deep); }
.lr-field--plum ::selection { background: var(--pink); }
/* Each field looks poured over the one above it. */
.lr-edge { position: absolute; left: 0; right: 0; bottom: calc(100% - 1px); height: clamp(40px, 6vw, 84px); background: var(--field); pointer-events: none; z-index: 2;
	-webkit-mask: url("../img/ui/edge.svg") center bottom / max(1200px, 100%) 100% repeat-x; mask: url("../img/ui/edge.svg") center bottom / max(1200px, 100%) 100% repeat-x; }
.lr-edge--flip { transform: scaleX(-1); }

.lr-splat { position: absolute; pointer-events: none; background: var(--splat, var(--pink)); -webkit-mask: var(--shape, url("../img/ui/splat-a.svg")) center / contain no-repeat; mask: var(--shape, url("../img/ui/splat-a.svg")) center / contain no-repeat; }
.lr-splat--b { --shape: url("../img/ui/splat-b.svg"); }
.lr-splat--c { --shape: url("../img/ui/splat-c.svg"); }

/* Pictures from the game sit in a soft toy-box frame. */
.lr-shot { position: relative; margin: 0; border-radius: var(--r-lg); overflow: hidden; background: var(--ink); box-shadow: var(--shadow-lift); }
.lr-shot img, .lr-shot video { width: 100%; height: 100%; object-fit: cover; }
.lr-shot figcaption, .lr-cap { font-size: var(--t-small); font-weight: 800; }
.lr-shot figcaption { position: absolute; left: 0.75rem; bottom: 0.75rem; max-width: calc(100% - 1.5rem); padding: 0.35em 0.8em; border-radius: 999px; background: var(--paper); color: var(--ink); line-height: 1.3; }

/* ---------- header ---------- */
.lr-site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 50; margin: 0; pointer-events: none; }
.lr-header { pointer-events: auto; }
.lr-header { display: flex; align-items: center; gap: var(--s4); width: min(100% - 2 * var(--gutter) + 1rem, calc(var(--wide) + 2rem)); margin: 0.6rem auto 0; padding: 0.45rem 0.5rem 0.45rem 1.15rem; min-height: 3.75rem; border-radius: 999px; background: var(--paper); color: var(--ink); box-shadow: 0 var(--lip) 0 #E4D6C0, 0 14px 28px rgb(43 20 70 / 0.2); }
.lr-header__logo { display: inline-flex; align-items: center; min-height: 2.75rem; padding-block: 0.3rem; color: var(--ink); }
.lr-logo { height: 1.9rem; width: auto; display: block; }
.lr-logo__heart { fill: var(--pink); }
.lr-nav { margin-left: auto; }
.lr-nav__list { display: flex; align-items: center; gap: 0.15rem; }
.lr-nav__list a { display: inline-flex; align-items: center; min-height: 2.75rem; padding: 0 0.85rem; border-radius: 999px; font-weight: 800; text-decoration: none; transition: background var(--fast) var(--ease); }
.lr-nav__list a:hover { background: var(--lilac); }
.lr-nav__list a[aria-current="page"] { background: var(--ink); color: var(--paper); }
.lr-header__account { display: inline-grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: 50%; text-decoration: none; transition: background var(--fast) var(--ease); }
.lr-header__account:hover, .lr-header__account[aria-current="page"] { background: var(--lilac); }
.lr-header .lr-pill { min-height: 2.75rem; padding-inline: 1.25rem; font-size: 0.9375rem; --lip: 4px; }
.lr-menu { display: none; }
.lr-menu > summary { list-style: none; display: inline-grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: 50%; cursor: pointer; background: var(--ink); color: var(--paper); }
.lr-menu > summary::-webkit-details-marker { display: none; }
.lr-menu .lr-menu__x, .lr-menu[open] .lr-menu__bars { display: none; }
.lr-menu[open] .lr-menu__x { display: block; }
.lr-menu__sheet { position: fixed; inset: 0; z-index: -1; display: flex; flex-direction: column; gap: var(--s5); padding: calc(var(--header-h) + 2rem) var(--gutter) 2rem; background: var(--pink); overflow-y: auto; overscroll-behavior: contain; }
.lr-menu__sheet ul { display: grid; gap: 0.15rem; list-style: none; margin: 0; padding: 0; }
.lr-menu__sheet li a { display: flex; align-items: center; min-height: 3.5rem; font-family: var(--display); font-size: 2rem; font-weight: 600; letter-spacing: -0.02em; text-decoration: none; }
.lr-menu__sheet li a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 0.14em; text-underline-offset: 0.2em; }
.lr-menu__small { display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; margin-top: auto; }
.lr-menu__small a { display: inline-flex; align-items: center; min-height: 2.75rem; font-weight: 800; }
@media (prefers-reduced-motion: no-preference) {
	.lr-menu[open] .lr-menu__sheet { animation: lr-sheet var(--slow) var(--ease) both; }
	.lr-menu[open] .lr-menu__sheet li { animation: lr-rise var(--slow) var(--ease) both; animation-delay: calc(var(--i, 0) * 40ms + 80ms); }
}
@keyframes lr-sheet { from { clip-path: circle(0 at calc(100% - 3rem) 2.5rem); } to { clip-path: circle(160% at calc(100% - 3rem) 2.5rem); } }
@keyframes lr-rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@media (max-width: 62rem) {
	.lr-nav, .lr-header__account { display: none; }
	.lr-menu { display: block; }
	.lr-header .lr-pill { margin-left: auto; }
}
.lr-header__logo { flex: none; }
@media (max-width: 30rem) { .lr-header .lr-pill { padding-inline: 0.9rem; font-size: 0.875rem; } .lr-header__pre { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; } }

/* ---------- footer ---------- */
.lr-site-footer { margin: 0; }
.lr-footer { position: relative; --field: var(--ink); background: var(--ink); color: var(--paper); padding: clamp(3.5rem, 7vw, 6rem) 0 2rem; }
.lr-footer :focus-visible { outline-color: var(--paper); box-shadow: 0 0 0 6px var(--pink-deep); }
.lr-footer__top { display: grid; gap: var(--s7); }
.lr-footer__say { font-family: var(--display); font-size: var(--t-headline); font-weight: 600; line-height: 1.05; letter-spacing: -0.02em; max-width: 12em; }
.lr-footer__say em { font-style: normal; color: var(--sun); }
.lr-footer__cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(9.5rem, 1fr)); gap: var(--s6) var(--s5); }
.lr-footer__cols h2 { font-family: var(--body); font-size: var(--t-small); font-weight: 900; letter-spacing: 0.08em; text-transform: uppercase; color: var(--sun); margin-bottom: 0.4rem; }
.lr-footer__cols ul { list-style: none; margin: 0; padding: 0; }
.lr-footer__cols a { display: inline-flex; align-items: center; min-height: 2.5rem; text-decoration: none; font-weight: 700; }
.lr-footer__cols a:hover { text-decoration: underline; }
.lr-footer__base { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s4) var(--s6); margin-top: var(--s8); padding-top: var(--s5); border-top: 2px solid rgb(255 248 236 / 0.16); font-size: var(--t-small); color: var(--on-dark-soft); }
.lr-footer__base .lr-logo { height: 1.6rem; color: var(--paper); }
.lr-footer__base p { max-width: 46em; }
@media (min-width: 62rem) { .lr-footer__top { grid-template-columns: 1fr 1.25fr; align-items: start; } }

/* ---------- page head (inner pages) ---------- */
.lr-pagehead { position: relative; background: var(--field); padding: calc(var(--header-h) + clamp(2.5rem, 6vw, 5rem)) 0 clamp(3.5rem, 8vw, 6.5rem); overflow: clip; }
.lr-pagehead h1 { font-size: clamp(2.5rem, 5.2vw + 1rem, 4.75rem); max-width: 13em; }
.lr-pagehead .lr-lead { margin-top: var(--s5); }
.lr-pagehead .lr-splat { width: clamp(180px, 30vw, 420px); aspect-ratio: 1; right: -4%; top: -18%; opacity: 0.9; }

/* ---------- scroll reveals: content is visible by default; script only adds a small rise ---------- */
@media (prefers-reduced-motion: no-preference) {
	.js [data-rise] { opacity: 0; transform: translateY(26px); transition: opacity 700ms var(--ease), transform 900ms var(--ease); transition-delay: calc(var(--i, 0) * 70ms); }
	.js [data-rise].is-in { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
@media print { .lr-site-header, .lr-footer__cols, .lr-edge { display: none; } }
