/* TiredMeter landing: "sticker" style from the designer package (design/*.dc.html). Light mode only, as the app. */
:root {
  --primary: #FF5A36;
  --secondary: #3B82F6;
  --accent: #FFD23F;
  --spicy: #E11D48;
  --ink: #1F1B2E;
  --paper: #FFF8EC;
  --court: #2A1F4A;
  --sub: #5E576C;
  --on-dark: #D8D1EA;
  --yellow: #FFE08A;
  --lilac: #D4B8FF;
  --mint: #B8F2C9;
  --blue: #A7C7FF;
  --pink: #FFC2E2;
  --peach: #FFB4A2;
  --rose: #FFB3C1;
  --b: 3px solid var(--ink);
  --gutter: clamp(16px, 4vw, 32px);
  --h: "Baloo 2", "Arial Rounded MT Bold", system-ui, sans-serif;
  --t: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { overflow-x: clip; } /* the rotated verdict card must never cause horizontal scroll */
body { margin: 0; background: var(--paper); color: var(--ink); font: 600 17px/1.5 var(--t); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--primary); }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--secondary); outline-offset: 3px; border-radius: 8px; }
h1, h2, h3 { margin: 0; font-family: var(--h); font-weight: 800; }
p { margin: 0; }
.wrap { max-width: 1200px; margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 10; padding: 10px 16px; background: var(--ink); color: #fff; border-radius: 12px; font-weight: 800; }
.skip:focus { left: 16px; color: #fff; }

.bg-yellow { background: var(--yellow); } .bg-lilac { background: var(--lilac); } .bg-mint { background: var(--mint); }
.bg-blue { background: var(--blue); } .bg-pink { background: var(--pink); } .bg-peach { background: var(--peach); }
.chip.bg-pink { background: var(--rose); }

/* ---------- mascot (tired battery, drawn with divs; see mascot() in the generator) ---------- */
.mascot { position: relative; flex: none; }
.m-in { position: absolute; left: 0; top: 0; width: 160px; height: 200px; transform-origin: 0 0; }
.m-in > div { position: absolute; box-sizing: border-box; }
.m-cap { left: 56px; top: 2px; width: 48px; height: 22px; background: #C9C3D6; border: 5px solid var(--ink); border-radius: 10px 10px 4px 4px; }
.m-body { left: 18px; top: 18px; width: 124px; height: 166px; background: #FFFDF7; border: 5px solid var(--ink); border-radius: 36px; overflow: hidden; box-shadow: 0 6px 0 var(--ink); }
.m-fill { position: absolute; left: 0; right: 0; bottom: 0; border-top: 4px solid var(--ink); }
.m-shine { position: absolute; left: 12px; top: 16px; width: 10px; height: 38px; border-radius: 6px; background: #fff; opacity: .75; }
.m-curl { width: 34px; height: 34px; border-radius: 50%; background: #fff; border: 4px solid var(--ink); }
.m-collar { left: 58px; top: 146px; width: 44px; height: 26px; background: #fff; border: 4px solid var(--ink); border-radius: 6px 6px 22px 22px; }
.m-scarf { left: 12px; top: 128px; width: 136px; height: 24px; background: var(--lilac); border: 4px solid var(--ink); border-radius: 12px; }
.m-scarf-tail { left: 98px; top: 142px; width: 22px; height: 36px; background: var(--lilac); border: 4px solid var(--ink); border-radius: 6px 6px 10px 10px; transform: rotate(-12deg); }
.m-brow { top: 46px; width: 30px; height: 6px; border-radius: 4px; background: var(--ink); }
.m-eye { top: 58px; width: 30px; height: 30px; border-radius: 50%; background: #fff; border: 4px solid var(--ink); overflow: hidden; }
.m-pupil { position: absolute; width: 11px; height: 11px; border-radius: 50%; background: var(--ink); }
.m-lid { position: absolute; left: 0; right: 0; top: 0; background: #FFFDF7; border-bottom: 4px solid var(--ink); }
.m-bag { top: 86px; width: 24px; height: 9px; border-bottom: 4px solid #8A6FB8; border-radius: 0 0 14px 14px; }
.m-cheek { top: 94px; width: 20px; height: 11px; border-radius: 50%; background: #FF8FA3; }
.m-smile { left: 62px; top: 100px; width: 36px; height: 18px; border: 5px solid var(--ink); border-top: 0; border-radius: 0 0 24px 24px; }
.m-big { left: 58px; top: 100px; width: 44px; height: 26px; background: var(--ink); border-radius: 4px 4px 26px 26px; overflow: hidden; }
.m-big > div { position: absolute; left: 12px; top: 13px; width: 20px; height: 16px; border-radius: 50%; background: var(--primary); }
.m-flat { left: 64px; top: 108px; width: 32px; height: 6px; background: var(--ink); border-radius: 4px; }
.m-hand { border-radius: 50%; background: #FFFDF7; border: 5px solid var(--ink); }
.m-acc { line-height: 1; transform-origin: 70% 80%; }

/* ---------- header ---------- */
.site-header { background: var(--paper); border-bottom: var(--b); }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 28px; padding-top: 10px; padding-bottom: 10px; }
.brand { display: flex; align-items: center; gap: 10px; }
.wordmark { font: 800 30px/1 var(--h); letter-spacing: -.5px; color: var(--ink); }
.wordmark span { color: var(--primary); }
.nav { display: flex; flex-wrap: wrap; gap: 6px 24px; font: 800 17px/1 var(--h); }
.nav a { padding: 10px 0; }
.lang { display: flex; gap: 6px; }
.lang a { min-width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; background: #fff; border: var(--b); border-radius: 999px; font: 800 15px/1 var(--h); }
.lang a[aria-current] { background: var(--ink); color: #fff; }

/* ---------- shared pieces ---------- */
.stores { display: flex; flex-wrap: wrap; gap: 12px; }
.stores--center { justify-content: center; }
.store { display: flex; flex-direction: column; justify-content: center; gap: 2px; height: 60px; padding: 0 22px; background: var(--ink); color: #fff; border: var(--b); border-radius: 14px; box-shadow: 0 4px 0 #8A8399; text-align: left; transition: transform .08s; }
.store small { font: 600 11px/1 var(--t); letter-spacing: .4px; }
.store span { font: 800 22px/1 var(--h); }
.store:hover { color: #fff; }
.store:active, .btn:active { transform: translateY(4px); box-shadow: none; }
.stores--small .store { height: 52px; padding: 0 16px; border-radius: 12px; box-shadow: none; }
.stores--small .store small { font-size: 10px; }
.stores--small .store span { font-size: 18px; }
.fine { font: 700 15px/1.4 var(--t); color: var(--sub); }
.bubble { background: #fff; color: var(--ink); border: var(--b); border-radius: 20px 20px 20px 6px; padding: 12px 16px; font: 700 15px/1.45 var(--t); margin: 0; }
.pill { padding: 8px 14px; background: #fff; border: var(--b); border-radius: 999px; font: 800 14px/1 var(--t); }
.pill--dark { background: var(--ink); color: #fff; }
.band { border-top: var(--b); border-bottom: var(--b); }
.band > .wrap { padding-top: 80px; padding-bottom: 80px; display: flex; flex-direction: column; gap: 40px; }
.band--white { background: #fff; border-top: var(--b); }
.band--court { background: var(--court); color: #fff; border-top: 0; }
.band--yellow { background: var(--yellow); }
.band--coral { background: var(--primary); border-bottom: 0; }
.section-head { display: flex; flex-direction: column; gap: 10px; }
h2, .section-head h2 { font-size: clamp(36px, 5vw, 56px); line-height: 1; }
.section-head p, .sub { font: 600 19px/1.5 var(--t); color: var(--sub); max-width: 620px; }
.band--court .section-head p { color: var(--on-dark); }
.band--yellow .section-head p { font-weight: 700; font-size: 20px; }
.cards { display: flex; flex-wrap: wrap; gap: 24px; list-style: none; margin: 0; padding: 0; }

/* ---------- hero ---------- */
.hero { padding-top: 56px; padding-bottom: 72px; display: flex; flex-wrap: wrap; align-items: center; gap: 48px; }
.hero__text { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 24px; align-items: flex-start; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; background: var(--accent); border: var(--b); border-radius: 999px; box-shadow: 0 4px 0 var(--ink); font: 800 15px/1 var(--h); letter-spacing: .5px; }
.hero h1 { font-size: clamp(46px, 7.4vw, 92px); line-height: .94; letter-spacing: -1.5px; }
.accent { color: var(--primary); text-shadow: 0 4px 0 var(--ink); }
.lead { max-width: 520px; font: 600 20px/1.5 var(--t); color: var(--sub); }
.lead b { color: var(--ink); }

.verdict { flex: 1 1 380px; max-width: 520px; min-width: 0; margin: 0 auto; background: var(--court); color: #fff; border: var(--b); border-radius: 28px; box-shadow: 0 8px 0 var(--ink); padding: 22px 22px 24px; display: flex; flex-direction: column; gap: 18px; transform: rotate(2deg); }
.verdict__plaque { align-self: center; padding: 7px 14px; background: var(--accent); color: var(--ink); border: var(--b); border-radius: 10px; font: 800 14px/1 var(--h); letter-spacing: 1.6px; transform: rotate(-2deg); text-align: center; }
.ring { display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; }
.corner { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.crown { font-size: 30px; line-height: 1; }
.avatar { width: 72px; height: 72px; border-radius: 50%; border: var(--b); display: flex; align-items: center; justify-content: center; font-size: 38px; }
.corner--red .avatar { background: var(--yellow); box-shadow: 0 0 0 4px var(--primary); }
.corner--blue .avatar { background: var(--blue); box-shadow: 0 0 0 4px var(--secondary); }
.corner__name { font: 800 20px/1 var(--h); }
.score { font: 800 64px/.9 var(--h); text-shadow: 0 4px 0 #000; }
.corner--red .score { color: var(--primary); }
.corner--blue .score { color: #6AA3FF; }
.vs { font: 800 22px/1 var(--h); color: var(--accent); padding-bottom: 30px; }
.scorebar { height: 22px; display: flex; border: var(--b); border-radius: 999px; overflow: hidden; background: var(--secondary); }
.scorebar i { background: var(--primary); border-right: var(--b); animation: grow .9s ease-out; }
.verdict__kind { align-self: center; padding: 8px 20px; background: var(--accent); color: var(--ink); border: var(--b); border-radius: 12px; font: 800 24px/1 var(--h); transform: rotate(-1.5deg); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.chip { padding: 6px 12px; color: var(--ink); border: 2px solid var(--ink); border-radius: 999px; font: 800 13px/1 var(--t); }

/* ---------- how it works ---------- */
.step { flex: 1 1 300px; min-width: 0; border: var(--b); border-radius: 24px; box-shadow: 0 6px 0 var(--ink); padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.step__top { display: flex; align-items: center; justify-content: space-between; }
.step__num { width: 52px; height: 52px; border-radius: 50%; background: #fff; border: var(--b); display: flex; align-items: center; justify-content: center; font: 800 28px/1 var(--h); }
.step h3 { font-size: 28px; line-height: 1.05; }

/* ---------- judges ---------- */
.judge { flex: 1 1 300px; min-width: 0; background: #fff; color: var(--ink); border: var(--b); border-radius: 24px; box-shadow: 0 6px 0 #000; overflow: hidden; display: flex; flex-direction: column; }
.judge__top { border-bottom: var(--b); padding: 20px; display: flex; align-items: flex-end; justify-content: space-between; }
.judge__body { padding: 22px; display: flex; flex-direction: column; gap: 12px; }
.judge h3 { font-size: 28px; line-height: 1; }
.judge__body > p { font-size: 16px; color: var(--sub); }
.judge .bubble { background: var(--paper); border-radius: 18px 18px 18px 6px; padding: 12px 14px; }
.tag { padding: 6px 12px; background: var(--mint); border: 2px solid var(--ink); border-radius: 999px; font: 800 14px/1 var(--t); }
.tag--premium { background: var(--accent); }

/* ---------- leagues ---------- */
.league { padding-top: 80px; padding-bottom: 80px; display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-start; }
.league__text { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.modes { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.mode { border: var(--b); border-radius: 20px; box-shadow: 0 4px 0 var(--ink); padding: 18px 20px; display: flex; gap: 14px; align-items: center; }
.mode > span { font-size: 36px; line-height: 1; }
.mode strong { display: block; font: 800 22px/1.1 var(--h); }
.mode div span { font: 600 15px/1.4 var(--t); }
.challenge { background: var(--accent); border: var(--b); border-radius: 20px; box-shadow: 0 4px 0 var(--ink); padding: 20px; display: flex; flex-direction: column; gap: 6px; }
.challenge h3 { font-size: 24px; line-height: 1.1; }
.challenge p { font-size: 16px; line-height: 1.45; }
.board { flex: 1 1 380px; min-width: 0; max-width: 540px; margin: 0 auto; background: #fff; border: var(--b); border-radius: 28px; box-shadow: 0 8px 0 var(--ink); padding: 22px; display: flex; flex-direction: column; gap: 14px; }
.board__head { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.board__head .pill { border: 0; font-size: 13px; padding: 6px 12px; }
.board__name { font: 800 22px/1 var(--h); }
.board__tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.board__rows { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.row { display: flex; align-items: center; gap: 12px; padding: 10px 14px; background: #fff; border: var(--b); border-radius: 16px; }
.row--us { background: var(--accent); box-shadow: 0 4px 0 var(--ink); }
.row__pos { width: 22px; font: 800 22px/1 var(--h); }
.row__av { font-size: 24px; }
.row__name { flex: 1; font: 800 16px/1.2 var(--t); }
.row__pts { font: 800 18px/1 var(--h); white-space: nowrap; }

/* ---------- premium ---------- */
.premium { display: flex; flex-wrap: wrap; gap: 32px; align-items: flex-start; }
.plans { flex: 1 1 400px; min-width: 0; display: flex; flex-wrap: wrap; gap: 20px; }
.plan { flex: 1 1 220px; min-width: 0; position: relative; background: #fff; border: var(--b); border-radius: 24px; box-shadow: 0 4px 0 var(--ink); padding: 32px 24px 24px; display: flex; flex-direction: column; gap: 6px; }
.plan--best { box-shadow: 0 8px 0 var(--ink); }
.plan__badge { position: absolute; top: -16px; left: 20px; padding: 7px 14px; background: var(--spicy); color: #fff; border: var(--b); border-radius: 999px; font: 800 13px/1 var(--t); }
.plan h3 { font-size: 24px; line-height: 1; }
.plan__price { font: 800 46px/1 var(--h); }
.plan__price small { font: 700 17px/1 var(--t); color: var(--sub); }
.plan__sub { font: 700 15px/1.4 var(--t); color: var(--sub); }
.plans__fine { flex: 1 1 100%; font: 700 15px/1.5 var(--t); }
.plans__fine a, .faq a, .legal a { text-decoration: underline; }
.benefits { flex: 1 1 380px; min-width: 0; margin: 0; padding: 24px; list-style: none; background: #fff; border: var(--b); border-radius: 24px; box-shadow: 0 4px 0 var(--ink); display: flex; flex-direction: column; gap: 14px; font: 700 17px/1.35 var(--t); }
.benefits li { display: flex; gap: 12px; align-items: flex-start; }
.benefits svg { flex: none; }

/* ---------- faq ---------- */
.faq { max-width: 880px; padding-top: 80px; padding-bottom: 80px; display: flex; flex-direction: column; gap: 32px; }
.faq__list { display: flex; flex-direction: column; gap: 14px; }
.faq details { background: #fff; border: var(--b); border-radius: 20px; box-shadow: 0 4px 0 var(--ink); }
.faq summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 22px; min-height: 44px; cursor: pointer; font: 800 20px/1.25 var(--h); }
.faq summary::-webkit-details-marker { display: none; }
.plus { font: 800 28px/1 var(--h); transition: transform .24s; }
.faq details[open] .plus { transform: rotate(45deg); }
.faq details p { padding: 0 22px 20px; font: 600 17px/1.55 var(--t); color: var(--sub); }
.faq details a { color: var(--ink); }

/* ---------- final CTA ---------- */
.cta > .wrap { padding-top: 72px; padding-bottom: 72px; flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: center; gap: 32px; text-align: center; }
.cta__text { display: flex; flex-direction: column; align-items: center; gap: 22px; }
.cta h2 { font-size: clamp(40px, 6vw, 72px); color: #fff; text-shadow: 0 4px 0 var(--ink); }
.cta .store { box-shadow: 0 4px 0 #fff; }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: #fff; }
.site-footer .wrap { padding-top: 48px; padding-bottom: 32px; display: flex; flex-direction: column; gap: 32px; }
.site-footer__top { display: flex; flex-wrap: wrap; gap: 32px; justify-content: space-between; align-items: flex-start; }
.site-footer__brand { display: flex; align-items: center; gap: 14px; }
.site-footer__brand > div { display: flex; flex-direction: column; gap: 6px; }
.site-footer .wordmark { color: #fff; font-size: 32px; }
.site-footer .wordmark span { color: var(--accent); }
.site-footer p, .site-footer small { font: 700 16px/1.3 var(--t); color: var(--on-dark); }
.site-footer small { font: 600 14px/1.5 var(--t); }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 4px 28px; font: 700 16px/1 var(--t); }
.site-footer nav a { padding: 12px 0; }
.site-footer a:hover { color: var(--accent); text-decoration: underline; }
.site-footer a:focus-visible { outline-color: var(--accent); }
.site-footer hr { margin: 0; border: 0; height: 3px; background: var(--court); }

/* ---------- legal pages ---------- */
.legal { padding: 48px var(--gutter) 72px; }
.legal article { max-width: 820px; margin: 0 auto; background: #fff; border: var(--b); border-radius: 28px; box-shadow: 0 8px 0 var(--ink); padding: clamp(24px, 5vw, 48px); display: flex; flex-direction: column; gap: 16px; font: 600 17px/1.65 var(--t); }
.legal header { display: flex; flex-direction: column; gap: 12px; margin-bottom: 12px; }
.legal h1 { font-size: clamp(38px, 6vw, 56px); line-height: 1; }
.legal .updated { font: 700 16px/1.4 var(--t); color: var(--sub); }
.legal .note { background: var(--accent); border: var(--b); border-radius: 16px; padding: 12px 16px; font: 800 15px/1.4 var(--t); }
.legal h2 { display: flex; align-items: center; gap: 12px; margin-top: 16px; font-size: 28px; line-height: 1.1; }
.legal h2 .num { flex: none; min-width: 40px; height: 40px; padding: 0 8px; border-radius: 999px; background: var(--yellow); border: var(--b); display: flex; align-items: center; justify-content: center; font: 800 20px/1 var(--h); }
.legal h3 { font-size: 21px; margin-top: 4px; }
.legal ul, .legal ol { margin: 0; padding-left: 26px; display: flex; flex-direction: column; gap: 6px; line-height: 1.55; }
.legal ol { list-style: none; padding: 0; counter-reset: step; gap: 10px; }
.legal ol li { counter-increment: step; display: flex; gap: 14px; align-items: center; padding: 12px 16px; background: var(--paper); border: var(--b); border-radius: 16px; font-weight: 700; }
.legal ol li::before { content: counter(step); flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--primary); color: #fff; border: var(--b); display: flex; align-items: center; justify-content: center; font: 800 17px/1 var(--h); }
.table-wrap { overflow-x: auto; border: var(--b); border-radius: 16px; }
.legal table { width: 100%; min-width: 520px; border-collapse: collapse; font: 600 16px/1.45 var(--t); }
.legal th, .legal td { text-align: left; padding: 12px 14px; vertical-align: top; }
.legal tr + tr { border-top: 2px solid var(--ink); }
.legal tr:first-child th { background: var(--ink); color: #fff; font: 800 15px/1.2 var(--h); }
.legal tr td:first-child { background: var(--paper); font-weight: 800; }

/* ---------- /c/ fallback ---------- */
.deeplink { min-height: 100vh; background: var(--yellow); }
.deeplink--challenge { background: var(--lilac); }
.deeplink main { max-width: 420px; min-height: 100vh; margin: 0 auto; padding: 16px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 20px; text-align: center; }
.deeplink .wordmark { font-size: 28px; }
.dl-card { width: 100%; background: #fff; border: var(--b); border-radius: 28px; box-shadow: 0 6px 0 var(--ink); padding: 28px 20px 24px; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.dl-card > div:not(.stores) { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.dl-card > div[hidden] { display: none; }
.dl-card h1 { font-size: 32px; line-height: 1.05; }
.dl-card p:not(.code):not(.fine) { font: 600 17px/1.5 var(--t); color: var(--sub); }
.dl-code { width: 100%; display: flex; flex-direction: column; gap: 6px; align-items: center; }
.dl-code span { font: 800 13px/1 var(--t); letter-spacing: 1.5px; color: var(--sub); }
.code { width: 100%; padding: 14px 12px; background: var(--accent); border: var(--b); border-radius: 18px; box-shadow: 0 4px 0 var(--ink); font: 800 48px/1 var(--h); letter-spacing: 8px; }
.code--bad { background: #E7E1D6; border-style: dashed; box-shadow: none; font-size: 38px; letter-spacing: 6px; color: #4A4458; }
.btn { width: 100%; height: 58px; display: flex; align-items: center; justify-content: center; background: var(--primary); color: #fff; border: var(--b); border-radius: 16px; box-shadow: 0 4px 0 var(--ink); font: 800 22px/1 var(--h); text-shadow: 0 2px 0 var(--ink); }
.btn[hidden] { display: none; }
.btn:hover { color: #fff; }

@keyframes grow { from { width: 0; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
