/* Lotvale: the family of games. Its own look (deep purple and gold, as in the apps) inside the Peanuts in a Bowl site. */
:root { --bg: #170d42; --bg2: #2a1565; --card: #231257; --card2: #2d1a6e; --ink: #f4f0ff; --soft: #c9bff0; --gold: #ffc93c; --gold2: #ffe27a; --line: #4a3490; --violet: #8a5cf0; --shadow: 0 16px 50px #0009;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif; --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; color-scheme: dark; }
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { font: 400 1.0625rem/1.65 var(--sans); color: var(--ink); background: var(--bg); min-height: 100vh; overflow-x: hidden; }
body::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(70rem 40rem at 50% -10%, #5a2a9a 0%, transparent 65%), radial-gradient(40rem 30rem at 0% 100%, #3a1d8a66, transparent 70%); }
a { color: var(--gold2); text-underline-offset: 3px; } a:hover { color: #fff; }
.wrap { width: min(72rem, 100% - 2.5rem); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

.top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.1rem 0; }
.back { color: var(--soft); text-decoration: none; font-size: .9rem; display: inline-flex; gap: .5rem; align-items: center; } .back:hover { color: var(--gold2); }
.brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--ink); font: 800 1.25rem var(--sans); letter-spacing: .01em; } .brand img { width: 2.2rem; height: 2.2rem; border-radius: 22.37%; box-shadow: 0 0 0 1px #ffffff22; }
.nav { display: flex; gap: 1.2rem; font-size: .95rem; align-items: center; } .nav a { color: var(--soft); text-decoration: none; } .nav a:hover { color: var(--gold2); }
@media (max-width: 44rem) { .nav .opt { display: none; } }

/* hero */
.hero { display: grid; gap: 2rem; padding: clamp(1.5rem, 5vw, 3.5rem) 0 clamp(2.5rem, 6vw, 4.5rem); align-items: center; }
@media (min-width: 56rem) { .hero { grid-template-columns: 1.05fr .95fr; } }
.pill { display: inline-flex; align-items: center; gap: .5rem; font: 600 .8rem var(--mono); letter-spacing: .06em; color: var(--gold2); background: #ffc93c1c; border: 1px solid #ffc93c55; border-radius: 999px; padding: .3rem .8rem; margin-bottom: 1.1rem; }
.pill i { width: .5rem; height: .5rem; border-radius: 50%; background: var(--gold); box-shadow: 0 0 .7rem var(--gold); animation: pulse 2.2s ease-in-out infinite; } @keyframes pulse { 50% { opacity: .35; } }
h1 { font: 800 clamp(2.8rem, 8vw, 5rem)/1 var(--sans); letter-spacing: -.03em; margin-bottom: .35rem; background: linear-gradient(180deg, #fff, var(--gold2) 120%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.sub { font: 600 clamp(1.15rem, 2.6vw, 1.6rem)/1.35 var(--serif); color: var(--gold2); margin-bottom: 1.1rem; }
.lead { color: var(--soft); font-size: 1.12rem; max-width: 34rem; margin-bottom: 1.6rem; }
.cta { display: flex; flex-wrap: wrap; gap: .8rem; }
.btn { text-decoration: none; font: 700 1rem var(--sans); padding: .8rem 1.4rem; border-radius: 999px; transition: transform .15s, box-shadow .15s; display: inline-block; }
.btn.gold { background: linear-gradient(180deg, var(--gold2), var(--gold)); color: #2a1565; box-shadow: 0 5px 0 #b8860b, 0 10px 30px #0006; } .btn.gold:hover { transform: translateY(-1px); color: #2a1565; } .btn.gold:active { transform: translateY(4px); box-shadow: 0 1px 0 #b8860b; }
.btn.ghost { color: var(--ink); border: 1px solid var(--line); background: #ffffff0d; } .btn.ghost:hover { border-color: var(--gold); color: var(--gold2); }
/* the four icons, fanned like a hand of cards; they lean toward the pointer */
.fan { position: relative; height: clamp(15rem, 40vw, 24rem); perspective: 900px; }
.fan img { position: absolute; width: clamp(7rem, 18vw, 11rem); height: auto; aspect-ratio: 1; border-radius: 22.37%; box-shadow: var(--shadow), 0 0 0 1px #ffffff2a; left: 50%; top: 50%; transition: transform .5s cubic-bezier(.2, .8, .2, 1); will-change: transform; animation: bob 6s ease-in-out infinite; }
.fan img:nth-child(1) { --x: -112%; --y: -62%; --r: -14deg; animation-delay: -1s; } .fan img:nth-child(2) { --x: 6%; --y: -74%; --r: 9deg; animation-delay: -2.4s; } .fan img:nth-child(3) { --x: -92%; --y: 8%; --r: 7deg; animation-delay: -3.6s; } .fan img:nth-child(4) { --x: 16%; --y: 4%; --r: -9deg; animation-delay: -.2s; }
.fan img { transform: translate(var(--x), var(--y)) rotate(var(--r)) translate3d(var(--px, 0px), var(--py, 0px), 0); }
@keyframes bob { 50% { translate: 0 -.6rem; } }
.fan img:hover { transform: translate(var(--x), var(--y)) rotate(0deg) scale(1.08) translate3d(var(--px, 0px), var(--py, 0px), 0); z-index: 3; }

section { padding: clamp(2.5rem, 6vw, 4.5rem) 0; }
.label { font: 600 .78rem var(--mono); text-transform: uppercase; letter-spacing: .16em; color: var(--gold); display: flex; align-items: center; gap: .8rem; margin-bottom: 1rem; } .label::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, var(--line), transparent); }
h2 { font: 800 clamp(1.7rem, 4vw, 2.5rem)/1.15 var(--sans); letter-spacing: -.02em; margin-bottom: .7rem; }
.intro { color: var(--soft); max-width: 44rem; margin-bottom: 2rem; font-size: 1.08rem; }

/* the one shared world, as a diagram */
.world { display: grid; gap: 2rem; align-items: center; } @media (min-width: 60rem) { .world { grid-template-columns: .9fr 1.1fr; } }
.diagram { position: relative; width: min(26rem, 100%); aspect-ratio: 1; margin-inline: auto; }
.diagram svg { width: 100%; height: 100%; overflow: visible; } .diagram .spoke { stroke: var(--line); stroke-width: 2; stroke-dasharray: 5 7; animation: dash 14s linear infinite; } @keyframes dash { to { stroke-dashoffset: -96; } }
.diagram .core { fill: url(#coreg); stroke: var(--gold); stroke-width: 2; } .diagram text { fill: var(--ink); font: 700 15px var(--sans); text-anchor: middle; } .diagram .small { font: 500 12px var(--sans); fill: var(--soft); }
.diagram image { filter: drop-shadow(0 6px 10px #0008); }

/* the shared experience */
.pillars { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 20rem), 1fr)); }
.pillar { background: linear-gradient(180deg, var(--card2), var(--card)); border: 1px solid var(--line); border-radius: 1.1rem; padding: 1.3rem 1.4rem 1.4rem; transition: transform .25s, border-color .25s; } .pillar:hover { transform: translateY(-3px); border-color: var(--gold); }
.pillar .ic { width: 2.8rem; height: 2.8rem; border-radius: .85rem; display: grid; place-items: center; background: #ffc93c1f; color: var(--gold); margin-bottom: .8rem; } .pillar .ic svg { width: 1.6rem; height: 1.6rem; }
.pillar h3 { font: 700 1.15rem var(--sans); margin-bottom: .25rem; } .pillar p { color: var(--soft); font-size: .98rem; }

/* the editions */
.editions { display: grid; gap: 1.4rem; }
.ed { display: grid; gap: 1.4rem; background: linear-gradient(135deg, var(--card2), var(--card)); border: 1px solid var(--line); border-radius: 1.5rem; padding: clamp(1.2rem, 3vw, 2rem); box-shadow: 0 10px 30px #0005; position: relative; overflow: hidden; transition: border-color .3s; }
.ed::before { content: ""; position: absolute; inset: -40% -10% auto auto; width: 22rem; height: 22rem; background: radial-gradient(circle, var(--tint) 0%, transparent 65%); opacity: .35; pointer-events: none; }
.ed:hover { border-color: var(--tint-line, var(--gold)); }
@media (min-width: 52rem) { .ed { grid-template-columns: 11rem 1fr; } }
.ed .ico { width: 8.5rem; height: auto; align-self: start; aspect-ratio: 1; border-radius: 22.37%; box-shadow: var(--shadow), 0 0 0 1px #ffffff2a; transition: transform .4s cubic-bezier(.3, 1.5, .5, 1); position: relative; } .ed:hover .ico { transform: rotate(-5deg) scale(1.06); }
.ed h3 { font: 800 1.7rem/1.15 var(--sans); letter-spacing: -.015em; } .ed .genre { color: var(--gold2); font: 600 1rem var(--serif); margin: .15rem 0 .8rem; }
.ed p { color: var(--soft); max-width: 40rem; } .ed ul { list-style: none; margin: .8rem 0 1rem; display: grid; gap: .4rem; color: var(--soft); max-width: 44rem; }
.ed li { display: flex; gap: .65rem; align-items: flex-start; } .ed li::before { content: ""; flex: none; width: .55rem; height: .55rem; margin-top: .55rem; border-radius: 50%; background: var(--tint); box-shadow: 0 0 .6rem var(--tint); } .ed li b { color: var(--ink); }
.tags { display: flex; flex-wrap: wrap; gap: .5rem; } .tag { font: 600 .74rem var(--mono); letter-spacing: .05em; padding: .25rem .7rem; border-radius: 999px; border: 1px solid var(--line); color: var(--soft); background: #ffffff0a; } .tag.hot { color: var(--gold2); border-color: #ffc93c66; background: #ffc93c14; }

.honest { background: linear-gradient(135deg, #ffc93c22, #8a5cf022); border: 1px solid #ffc93c55; border-radius: 1.4rem; padding: clamp(1.3rem, 3vw, 2.2rem); display: grid; gap: 1rem; } @media (min-width: 52rem) { .honest { grid-template-columns: auto 1fr; align-items: center; gap: 2rem; } }
.honest .big { font: 800 clamp(1.5rem, 3.4vw, 2.1rem)/1.1 var(--sans); color: var(--gold2); } .honest p { color: var(--soft); max-width: 46rem; } .honest p + p { margin-top: .5rem; }

footer { border-top: 1px solid var(--line); padding: 1.8rem 0 2.6rem; color: var(--soft); font-size: .9rem; display: flex; flex-wrap: wrap; gap: .6rem 2rem; justify-content: space-between; align-items: center; } footer a { text-decoration: none; font-family: var(--mono); } footer a:hover { text-decoration: underline; }
.rise { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .8, .2, 1); transition-delay: var(--i, 0ms); } .rise.in { opacity: 1; transform: none; } .no-js .rise { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .fan img, .pill i, .diagram .spoke { animation: none !important; } .rise { opacity: 1; transform: none; transition: none; } .ed:hover .ico, .pillar:hover, .fan img:hover { transform: none; } .fan img { transition: none; } }

/* the Lotvale wordmark, as on the apps' home screens */
h1 .wm-hero { display: block; height: clamp(3.4rem, 10vw, 5.6rem); width: auto; margin-bottom: .5rem; overflow: visible; filter: drop-shadow(0 0 16px rgba(255, 210, 60, .4)) drop-shadow(0 2px 2px rgba(20, 10, 0, .6)); }
