/* Libero League's three colours (App/Theme.swift): the hall at night, coral, chalk. */
:root { --bg: #0E181B; --fg: #FF7A45; --chalk: #ECE6DA; --card: rgba(236, 230, 218, 0.09); --raised: rgba(236, 230, 218, 0.14); --line: rgba(236, 230, 218, 0.34); --text2: rgba(236, 230, 218, 0.86); --text3: rgba(236, 230, 218, 0.68); }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body { margin: 0; color: var(--chalk); font: 17px/1.55 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  /* The hardwood floor of the game: planks as faint vertical lines under a window of light. */
  background: var(--bg) repeating-linear-gradient(90deg, transparent 0 59px, rgba(236,230,218,0.035) 59px 60px); }
body::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(112deg, transparent 38%, rgba(236,230,218,0.05) 38% 58%, transparent 58%); }
main { max-width: 680px; margin: 0 auto; padding: 24px 16px 64px; }
h1, h2, .mark { font-family: "Barlow Condensed", "Arial Narrow", sans-serif; font-weight: 800; text-transform: uppercase; letter-spacing: 0.01em; line-height: 0.95; margin: 0; }
h1 { font-size: 44px; margin-top: 8px; }
/* Section headings are lit strips, like the game's headings: a coral slanted tab, then the title. */
h2 { font-size: 26px; margin: 48px 0 16px; display: flex; align-items: stretch; }
h2::before { content: ""; width: 18px; background: var(--fg); clip-path: polygon(0 0, 100% 0, 60% 100%, 0 100%); margin-right: 12px; flex: none; }
h2 span { flex: 1; background: var(--raised); padding: 6px 12px; margin-left: -12px; padding-left: 20px; }
.tape { display: flex; gap: 6px; transform: rotate(-0.7deg); transform-origin: left; margin: 8px 0 12px; }
.tape i { display: block; height: 4px; background: rgba(236, 230, 218, 0.8); }
.tape i:first-child { width: 64px; } .tape i:last-child { width: 28px; }
p, li { color: var(--text2); }
.small { font-size: 15px; color: var(--text3); }
a { color: var(--fg); }
.card { background: var(--card); border-radius: 6px; padding: 16px; margin: 12px 0; }

/* Top bar on every page: the game's name on the left, the pages on the right, the current page lit in coral. */
nav.bar { position: sticky; top: 0; z-index: 10; background: rgba(14, 24, 27, 0.92); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
nav.bar .in { max-width: 680px; margin: 0 auto; padding: 0 16px; display: flex; align-items: center; gap: 12px; min-height: 56px; }
nav.bar .brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--chalk); margin-right: auto; }
nav.bar .brand img { width: 32px; height: 32px; border-radius: 8px; }
nav.bar .brand b { font-family: "Barlow Condensed", sans-serif; font-weight: 800; font-size: 20px; text-transform: uppercase; letter-spacing: 0.02em; }
nav.bar a.l { color: var(--chalk); text-decoration: none; font-size: 15px; font-weight: 600; padding: 17px 2px 14px; border-bottom: 3px solid transparent; transition: border-color .2s, color .2s; }
nav.bar a.l:hover { border-bottom-color: var(--line); }
nav.bar a.l.on { color: var(--fg); border-bottom-color: var(--fg); }
@media (max-width: 460px) { nav.bar .brand b { display: none; } nav.bar .in { gap: 18px; } nav.bar .brand { margin-right: auto; } }

/* Home: the wordmark builds itself, then the ball drops in and bobs, like the game's title screen. */
.hero { padding: 32px 0 8px; position: relative; }
.mark { font-size: clamp(72px, 22vw, 120px); transform: skewX(-12deg); transform-origin: left bottom; display: inline-block; }
.mark span { color: var(--fg); display: block; }
.mark .w1 { animation: slideL .7s cubic-bezier(.2,.9,.3,1.1) both; }
.mark .w2 { animation: slideR .7s .1s cubic-bezier(.2,.9,.3,1.1) both; }
.wm { position: relative; display: inline-block; padding-right: 56px; }
.hero .bar { display: block; width: 14px; height: 56%; background: var(--chalk); clip-path: polygon(0 0, 100% 0, 75% 100%, 25% 100%); position: absolute; right: 14px; top: 2%; transform-origin: top; animation: grow .4s .3s ease-out both; transform: skewX(-12deg); }
.ball { position: absolute; right: -6px; bottom: 4%; width: 36px; height: 36px; border-radius: 50%; background: var(--fg); animation: drop 1s .55s cubic-bezier(.3,0,.6,1) both, bob 2.8s 1.6s ease-in-out infinite; overflow: hidden; }
.ball::before, .ball::after { content: ""; position: absolute; border: 3px solid var(--bg); border-radius: 50%; width: 130%; height: 130%; left: -30%; top: -80%; }
.ball::after { left: -80%; top: 30%; }
.lead { font-size: 19px; margin-top: 28px; animation: rise .6s .9s ease-out both; }
.cta { display: inline-block; margin-top: 8px; padding: 14px 24px; background: var(--fg); color: #0E181B; font-family: "Barlow Condensed", sans-serif; font-weight: 800; text-transform: uppercase; font-size: 22px; letter-spacing: .04em; text-decoration: none;
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px)); box-shadow: 0 4px 0 rgba(0,0,0,.35); transition: transform .12s; animation: rise .6s 1.05s ease-out both; }
.cta:active { transform: translateY(3px); }
.cta.off { background: var(--raised); color: var(--chalk); }
.nums { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 40px; }
.nums div { background: var(--card); border-radius: 6px; padding: 14px 12px; }
.nums b { display: block; font-family: "Barlow Condensed", sans-serif; font-weight: 800; font-size: 44px; line-height: 1; color: var(--fg); }
.nums small { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--text3); }
.price { float: right; font-family: "Barlow Condensed", sans-serif; font-weight: 800; font-size: 26px; color: var(--fg); margin-left: 12px; }

/* Things arrive as you scroll to them. */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .5s ease-out, transform .5s ease-out; }
.reveal.in { opacity: 1; transform: none; }
@keyframes slideL { from { transform: translateX(-120%); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes slideR { from { transform: translateX(120%); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes grow { from { transform: skewX(-12deg) scaleY(0); } to { transform: skewX(-12deg) scaleY(1); } }
@keyframes drop { 0% { transform: translateY(-240px); } 60% { transform: translateY(0); } 75% { transform: translateY(-26px); } 100% { transform: translateY(0); } }
@keyframes bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -6px; } }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } .reveal { opacity: 1; transform: none; } html { scroll-behavior: auto; } }

footer { margin-top: 48px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 15px; color: var(--text3); display: flex; gap: 20px; flex-wrap: wrap; }
footer a { color: var(--text3); }
