/* cheap-fut-coins.co.uk — "Matchday": a fixed white header, a first screen
   with an evening stadium drawn in SVG (img/pitch.svg), white headline,
   white order card, fact cards with icons overlapping its bottom edge; below,
   numbered sections that alternate between the mint page and white panels,
   pictures framed as little mown pitches. Call to action: dark green pill
   with a yellow arrow circle; small buttons yellow.
   Fonts: Exo 2 italic (headings, numbers, buttons — close to the sporty
   italic lettering of the football games), Host Grotesk (text). */

@font-face { font-family: "Exo 2"; src: url("/fonts/exo-2-italic.woff2") format("woff2"); font-style: italic; font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Exo 2"; src: url("/fonts/exo-2.woff2") format("woff2"); font-style: normal; font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Host Grotesk"; src: url("/fonts/host-grotesk.woff2") format("woff2"); font-weight: 300 800; font-display: swap; }

:root {
  --page: #eafbf1;
  --green: #0ab20d;
  --green-2: #099e0c;
  --deep: #0b5d1a;
  --night: #0b3a12;
  --ink: #12261a;
  --soft: #3f5a48;
  --muted: #6b8273;
  --line: #d4ecdc;
  --white: #ffffff;
  --yellow: #fff200;
  --yellow-2: #ffe500;
  --cream: #fbfee6;
  --mint: #c5efd9;
  --lime: #e6f27c;
  --pink: #f9d3cd;
  --sand: #f2eee8;
  --link: #1b48c4;
  --r-xl: 30px;
  --r-lg: 22px;
  --r-md: 14px;
  --head: "Exo 2", "Host Grotesk", system-ui, sans-serif;
  --body: "Host Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body { margin: 0; background: var(--page); color: var(--ink); font: 400 17px/1.6 var(--body); overflow-x: hidden; }
#order, .block { scroll-margin-top: 96px; }
img, svg { display: block; max-width: 100%; }
b, strong { font-weight: inherit; }
h1, h2, h3 { font-family: var(--head); font-style: italic; font-weight: 800; line-height: 1.06; letter-spacing: -0.01em; margin: 0; }
p { margin: 0 0 1em; }
a { color: inherit; }
.skip { position: fixed; left: -999px; top: 8px; background: var(--yellow); color: var(--ink); padding: 8px 14px; border-radius: 10px; z-index: 50; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--deep); outline-offset: 3px; }
.page { max-width: 1440px; margin: 0 auto; padding: 18px; }

/* text links: blue, semi-bold, yellow background on hover, no underline */
main p a, main li a, main td a, .asks a, .note a { color: var(--link); font-weight: 600; text-decoration: none; border-radius: 4px; padding: 0 2px; margin: 0 -2px; }
main p a:hover, main li a:hover, main td a:hover, .asks a:hover, .note a:hover { background: var(--yellow); color: var(--ink); }

/* ---------- buttons ---------- */
.go { display: inline-flex; align-items: center; gap: 14px; background: var(--night); color: var(--white); text-decoration: none; font: italic 700 16px/1 var(--head); text-transform: uppercase; letter-spacing: 0.02em; border: 0; border-radius: 999px; padding: 5px 5px 5px 22px; min-height: 56px; cursor: pointer; transition: background .15s, transform .15s; white-space: nowrap; box-shadow: 0 0 0 3px rgba(11, 58, 18, 0.18); }
.go i { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--yellow); color: var(--ink); flex: none; transition: transform .15s; }
.go:hover { background: #0f4d18; }
.go:hover i { transform: rotate(45deg); }
.go:active { transform: translateY(1px); }
.go-wide { width: 100%; justify-content: space-between; font-size: 17px; }
.go-y { background: var(--yellow); color: var(--ink); min-height: 44px; padding: 0 20px; box-shadow: none; font-size: 15px; }
.go-y i { display: none; }
.go-y:hover { background: var(--yellow-2); }

/* ---------- header: sticky from the first pixel; transparent over the
   poster at the top, a white bar once the page moves ---------- */
.bar { position: sticky; z-index: 45; top: 0; height: 80px; margin-bottom: -80px; display: flex; align-items: center; gap: 22px; padding: 0 max(28px, calc((100% - 1380px) / 2)); color: var(--white); background: rgba(255, 255, 255, 0); box-shadow: 0 8px 28px rgba(11, 58, 18, 0); transition: background-color .25s, color .25s, box-shadow .25s; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; transition: color .25s; }
.logo-tile { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 13px; background: var(--yellow); color: var(--night); flex: none; }
.logo-words { display: flex; align-items: baseline; white-space: nowrap; }
.logo-words b { font: italic 700 22px/1 var(--head); letter-spacing: -0.02em; }
.logo-words small { font: italic 600 22px/1 var(--head); opacity: .65; letter-spacing: -0.02em; }
.bar-nav { margin-left: auto; display: flex; gap: 4px; }
.bar-nav a { text-decoration: none; color: inherit; font-size: 15.5px; font-weight: 500; padding: 9px 15px; border-radius: 999px; transition: background .15s; }
.bar-nav a:hover { background: rgba(255, 255, 255, 0.14); }
.bar-nav a[aria-current] { background: rgba(255, 255, 255, 0.2); }
.bar-menu { display: none; }
.scrolled .bar { color: var(--ink); background: rgba(255, 255, 255, 0.96); box-shadow: 0 8px 28px rgba(11, 58, 18, 0.14); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.scrolled .logo { color: var(--deep); }
.scrolled .logo-words small { opacity: .5; }
.scrolled .bar-nav a:hover { background: var(--page); }
.scrolled .bar-nav a[aria-current] { background: var(--mint); color: var(--deep); }

/* ---------- first screen: the stadium ---------- */
/* full width, from the very top of the page (under the transparent header) */
.hero { position: relative; color: var(--white); border-radius: 0 0 32px 32px; padding: 140px max(28px, calc((100% - 1380px) / 2)) 132px; background: #0b4d22 url("/img/pitch.svg") center 30% / cover no-repeat; }
.hero-short { padding-bottom: 72px; }
.hero-grid { position: relative; max-width: 1380px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 460px); gap: 56px; align-items: center; }
.hero-short .hero-grid { grid-template-columns: minmax(0, 1fr) 280px; }
.tag { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 18px; padding: 6px 14px 6px 8px; border-radius: 999px; background: rgba(255, 255, 255, 0.14); border: 1px solid rgba(255, 255, 255, 0.22); font-size: 14px; font-weight: 500; backdrop-filter: blur(6px); }
.tag::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--yellow); box-shadow: 0 0 0 4px rgba(255, 242, 0, 0.25); }
.hero h1 { font-size: clamp(40px, 4.9vw, 72px); font-weight: 900; line-height: 0.98; letter-spacing: -0.01em; text-transform: uppercase; max-width: 15ch; text-shadow: 0 4px 30px rgba(0, 30, 10, 0.45); }
.hero h1 em { font-style: normal; display: block; color: var(--yellow); }
.lede { margin: 22px 0 0; max-width: 36ch; font-size: 19px; line-height: 1.45; color: rgba(255, 255, 255, 0.95); text-shadow: 0 2px 14px rgba(0, 20, 8, 0.8); }
.hero-act { display: flex; align-items: flex-end; gap: 16px; margin-top: 30px; }
.hero-act .go { align-self: center; box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.16); }
.curl { color: var(--yellow); flex: none; margin-bottom: 64px; margin-left: -4px; }
.hero-pic { width: 190px; margin-left: auto; filter: drop-shadow(0 18px 30px rgba(0, 25, 8, 0.45)); }
.hero-short .hero-pic { width: 100%; max-width: 280px; margin: 0 auto; }

/* the poster picture (when the owner's picture is in place) */
.hero-photo { background: linear-gradient(90deg, rgba(3, 22, 10, 0.88) 0%, rgba(3, 22, 10, 0.62) 30%, rgba(3, 22, 10, 0.12) 52%, rgba(3, 22, 10, 0) 64%), linear-gradient(180deg, rgba(3, 22, 10, 0.55) 0%, rgba(3, 22, 10, 0) 22%, rgba(3, 22, 10, 0) 78%, rgba(3, 22, 10, 0.35) 100%), #0b3a1c url("/img/poster.webp") 46% 40% / cover no-repeat; }
.hero-photo.hero-short { background-position: 46% 8%; }
.hero-photo.hero-short .hero-pic { display: none; }

/* fact cards overlapping the bottom of the first screen */
.facts { list-style: none; position: relative; z-index: 4; margin: -76px auto 0; padding: 0; max-width: 1120px; width: calc(100% - 96px); display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); grid-auto-flow: column; gap: 16px; }
.facts li { display: flex; gap: 14px; align-items: flex-start; background: var(--white); border-radius: var(--r-lg); padding: 20px 22px; box-shadow: 0 18px 40px rgba(11, 93, 26, 0.14); }
.facts li:nth-child(2) { background: var(--cream); }
.facts i { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: var(--green); color: var(--white); flex: none; }
.facts li:nth-child(2) i { background: var(--night); color: var(--yellow); }
.facts li:nth-child(3) i { background: var(--yellow); color: var(--night); }
.facts small { display: block; color: var(--soft); font-size: 14px; font-weight: 500; }
.facts b { display: block; font: italic 700 clamp(28px, 2.8vw, 40px)/1.05 var(--head); color: var(--ink); letter-spacing: -0.02em; margin: 4px 0 4px; }
.facts span { display: block; color: var(--muted); font-size: 13.5px; line-height: 1.35; }

/* ---------- order card ---------- */
.till-card { background: var(--white); color: var(--ink); border-radius: 26px; padding: 22px; box-shadow: 0 30px 70px rgba(0, 30, 10, 0.4); }
.till-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; font: italic 700 18px/1.2 var(--head); margin-bottom: 14px; }
.till-live { font: 500 12.5px/1.2 var(--body); color: var(--soft); display: inline-flex; align-items: center; gap: 6px; text-align: right; background: var(--page); border-radius: 999px; padding: 5px 10px; }
.till-live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--green); flex: none; }
.till-card fieldset { border: 0; margin: 0 0 12px; padding: 0; min-width: 0; }
.till-card legend { font-size: 12.5px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.07em; color: var(--muted); margin-bottom: 7px; padding: 0; }
.segs, .pills { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.seg, .pill { position: relative; cursor: pointer; }
.seg input, .pill input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.seg span, .pill span { display: block; border: 1.5px solid var(--line); background: #f7fcf9; border-radius: 14px; transition: border-color .15s, background .15s, color .15s; }
.seg span { padding: 9px 10px; }
.seg b { display: block; font: italic 600 15px/1.2 var(--head); }
.seg small { display: block; color: var(--soft); font-size: 12.5px; margin-top: 2px; white-space: nowrap; }
.pill span { padding: 10px 6px; text-align: center; font: italic 600 15px/1.1 var(--head); border-radius: 999px; }
.seg input:checked + span { border-color: var(--green); background: #e3f9e8; }
.pill input:checked + span { background: var(--green); border-color: var(--green); color: var(--white); }
.seg input:focus-visible + span, .pill input:focus-visible + span { outline: 3px solid var(--deep); outline-offset: 2px; }
.own[hidden] { display: none; }
.own { display: grid; gap: 6px; margin-top: 10px; font-size: 13px; color: var(--soft); }
.own input { width: 100%; font: 600 17px/1.2 var(--body); color: var(--ink); background: #f7fcf9; border: 1.5px solid var(--line); border-radius: 12px; padding: 11px 12px; }
.own input:focus { outline: 3px solid var(--green); outline-offset: 1px; }
.till-sum { display: flex; justify-content: space-between; align-items: end; gap: 10px; margin: 6px 0 14px; padding-top: 12px; border-top: 1px dashed var(--line); }
.till-sum small { display: block; font-size: 12.5px; color: var(--muted); }
.till-sum strong { font: italic 700 38px/1 var(--head); letter-spacing: -0.02em; color: var(--deep); }
.till-eur { text-align: right; }
.till-eur span { font: italic 600 19px/1.2 var(--head); color: var(--soft); }
.till-warn { color: #a3470b; font-size: 14px; margin: -4px 0 10px; }
.till-notes { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 14px; padding: 0; margin: 14px 0 6px; font-size: 13px; color: var(--soft); }
.till-notes li::before { content: "✓ "; color: var(--green); font-weight: 700; }
.till-pay { font-size: 12.5px; color: var(--muted); margin: 0; line-height: 1.45; }

/* ---------- content ---------- */
main { display: block; counter-reset: sec; padding-top: 12px; }
.block { max-width: 1180px; margin: 0 auto; padding: 88px 32px 16px; }
.block h2 { font-size: clamp(32px, 3.8vw, 54px); color: var(--deep); margin-bottom: 24px; max-width: 18ch; }
.block:not(#questions) h2::before { counter-increment: sec; content: counter(sec, decimal-leading-zero); display: table; margin-bottom: 16px; padding: 5px 12px; border-radius: 999px; background: var(--yellow); color: var(--night); font: italic 700 14px/1 var(--head); letter-spacing: 0.04em; }
.block h3 { font-size: 22px; color: var(--deep); margin: 28px 0 8px; }
.block p, .block li { color: var(--soft); max-width: 70ch; font-size: 18px; }
/* every second section sits on a white panel */
main > .block:nth-of-type(even) { max-width: 1404px; margin: 64px auto 0; padding: 80px max(32px, calc((100% - 1116px) / 2)) 72px; background: var(--white); border-radius: 36px; }
main > .block:nth-of-type(even) .tile, main > .block:nth-of-type(even) .ticks li { background: var(--page); }
.block-art { display: grid; grid-template-columns: 420px minmax(0, 1fr); gap: 64px; align-items: start; }
main > .block-art:nth-of-type(even) .block-pic { order: 2; }
.block-copy { min-width: 0; }

/* pictures framed as little mown pitches */
.block-pic, .end-art { position: relative; width: 100%; aspect-ratio: 1 / 1.05; border-radius: 28px; display: grid; place-items: center; overflow: hidden; background: repeating-linear-gradient(90deg, #17ab3c 0 48px, #139a34 48px 96px); box-shadow: inset 0 0 0 10px #139a34; }
.block-pic { position: sticky; top: 100px; }
.block-pic::before, .end-art::before { pointer-events: none; content: ""; position: absolute; inset: 22px; border: 2px solid rgba(255, 255, 255, 0.55); border-radius: 10px; }
.block-pic::after, .end-art::after { pointer-events: none; content: ""; position: absolute; left: 50%; top: 50%; width: 46%; aspect-ratio: 1; transform: translate(-50%, -50%); border: 2px solid rgba(255, 255, 255, 0.45); border-radius: 50%; }
.block-pic svg, .end-art svg { position: relative; z-index: 1; width: 80%; height: auto; filter: drop-shadow(0 14px 24px rgba(0, 40, 10, 0.35)); }

/* lists as small cards with a yellow tick */
.ticks { list-style: none; padding: 0; margin: 4px 0 1.4em; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.ticks li { position: relative; padding: 18px 18px 18px 54px; background: var(--white); border-radius: 18px; font-size: 16px !important; line-height: 1.5; max-width: none !important; }
.ticks li::before { content: ""; position: absolute; left: 18px; top: 19px; width: 24px; height: 24px; border-radius: 50%; background: var(--yellow) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 12.5l3.2 3.2L17 9' fill='none' stroke='%230b3a12' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 24px 24px no-repeat; }
.prose .ticks { grid-template-columns: 1fr; }
.note { background: var(--white); border-radius: 16px; padding: 14px 18px; color: var(--soft); }

/* price table */
.board { overflow-x: auto; background: var(--white); border-radius: 24px; margin: 10px 0 26px; box-shadow: 0 16px 40px rgba(11, 93, 26, 0.09); border: 1px solid #e3f3e8; }
.board table { width: 100%; border-collapse: collapse; min-width: 520px; }
.board caption { text-align: left; padding: 18px 22px 8px; color: var(--muted); font-size: 14px; }
.board th, .board td { padding: 14px 22px; text-align: left; border-top: 1px solid #ebf6ee; vertical-align: top; }
.board thead th { font: italic 600 14px/1.2 var(--head); color: var(--muted); border-top: 0; background: #f6fcf8; }
.board tbody th { font: italic 700 17px/1.2 var(--head); color: var(--ink); }
.board td b { display: block; font: italic 700 19px/1.2 var(--head); color: var(--deep); }
.board td small { color: var(--muted); font-size: 13px; }
.board .best { background: #fffbd0; }
.board thead .best { background: #fff6a3; color: var(--night); }
.board tbody tr:hover th, .board tbody tr:hover td { background: #f3fbf5; }
.board tbody tr:hover .best { background: #fff6a3; }
.board .below th, .board .below td { opacity: .55; }
.flag { font-style: normal; background: var(--night); color: var(--yellow); border-radius: 999px; font: 600 11px/1 var(--body); padding: 3px 8px; margin-left: 6px; vertical-align: 2px; }

/* steps: a numbered row joined by a dashed line */
.path { list-style: none; counter-reset: s; padding: 0; margin: 14px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 18px; position: relative; }
.path li { counter-increment: s; position: relative; border-radius: var(--r-lg); padding: 22px 20px 22px; max-width: none; background: var(--white); box-shadow: 0 12px 30px rgba(11, 93, 26, 0.08); border-top: 5px solid var(--green); }
.path li:nth-child(2n) { border-top-color: var(--yellow); }
.path li::before { content: counter(s, decimal-leading-zero); display: block; font: italic 800 40px/1 var(--head); color: transparent; -webkit-text-stroke: 1.5px var(--green); margin-bottom: 12px; letter-spacing: -0.02em; }
.path li:not(:last-child)::after { content: ""; position: absolute; top: 40px; right: -18px; width: 18px; border-top: 2px dashed #9fd6ae; }
.path b { display: block; font: italic 700 19px/1.25 var(--head); color: var(--ink); margin-bottom: 6px; }
.path p { font-size: 15px; margin: 0; color: var(--soft); }
main > .block:nth-of-type(even) .path li { background: var(--page); box-shadow: none; }
.path-go { margin-top: 28px; }
.path + p { margin-top: 24px; }

.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; margin: 6px 0 22px; }
.tile { position: relative; border-radius: var(--r-lg); padding: 24px 22px 22px; background: var(--white); overflow: hidden; }
.tile::before { content: ""; display: block; width: 38px; height: 6px; border-radius: 3px; background: var(--green); margin-bottom: 16px; }
.tile:nth-child(4n+2)::before { background: var(--yellow); }
.tile:nth-child(4n+3)::before { background: #f08a7e; }
.tile:nth-child(4n+4)::before { background: var(--night); }
.tile h3 { margin: 0 0 8px; font-size: 20px; color: var(--ink); }
.tile p { font-size: 15.5px; margin: 0; color: var(--soft); }

/* questions: heading on the left, answers on the right */
#questions { display: grid; grid-template-columns: minmax(0, 360px) minmax(0, 1fr); gap: 48px; align-items: start; }
#questions h2 { position: sticky; top: 100px; }
.asks { display: grid; gap: 10px; }
.asks details { background: var(--white); border-radius: 18px; border: 1px solid #e3f3e8; transition: box-shadow .2s; }
.asks details[open] { box-shadow: 0 14px 34px rgba(11, 93, 26, 0.1); border-color: transparent; }
.asks summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 18px; padding: 18px 20px; font: italic 600 19px/1.35 var(--head); color: var(--ink); }
.asks summary::-webkit-details-marker { display: none; }
.asks summary::after { content: "+"; flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--yellow); color: var(--night); font: 600 22px/1 var(--body); }
.asks details[open] summary::after { content: "–"; background: var(--night); color: var(--yellow); }
.asks details div { padding: 0 20px 18px; }
.asks details p { color: var(--soft); max-width: 72ch; margin: 0; }

/* closing call: the stadium again */
.end { margin: 96px 0 0; border-radius: var(--r-xl); display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 48px; align-items: center; padding: 48px 56px; color: var(--white); background: linear-gradient(90deg, rgba(3, 32, 15, 0.15) 0%, rgba(3, 32, 15, 0.72) 45%, rgba(3, 32, 15, 0.6) 100%), #0b4d22 url("/img/pitch.svg") center 70% / cover no-repeat; }
.end-art { aspect-ratio: 1; box-shadow: inset 0 0 0 10px #139a34, 0 20px 40px rgba(0, 30, 10, 0.35); }
.end h2 { font-size: clamp(32px, 4vw, 56px); max-width: 16ch; }
.end p { color: rgba(255, 255, 255, 0.95); max-width: 50ch; margin: 16px 0 26px; font-size: 19px; }
.end .go { box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.16); }

.foot { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); gap: 32px; margin-top: 18px; padding: 48px 56px 28px; border-radius: var(--r-xl); background: var(--night); color: rgba(255, 255, 255, 0.78); font-size: 14.5px; }
.foot .logo { color: var(--white); }
.foot .logo-words b { font: italic 700 22px/1 var(--head); color: var(--white); margin: 0; }
.foot p { margin: 16px 0 0; max-width: 46ch; line-height: 1.55; }
.foot nav, .foot address { display: grid; gap: 8px; align-content: start; font-style: normal; }
.foot b { color: var(--white); font: italic 600 15px/1.2 var(--head); margin-bottom: 4px; }
.foot nav a, .foot address a { color: rgba(255, 255, 255, 0.78); text-decoration: none; }
.foot nav a:hover, .foot address a:hover { color: var(--yellow); }
.foot-small { grid-column: 1 / -1; border-top: 1px solid rgba(255, 255, 255, 0.14); padding-top: 18px; font-size: 13px; color: rgba(255, 255, 255, 0.6); max-width: none !important; }

/* service pages */
.prose { max-width: 820px; margin: 0 auto; padding: 64px 24px 0; }
.prose h2 { font-size: 28px; color: var(--deep); margin: 34px 0 10px; }
.prose p, .prose li { color: var(--soft); }
.prose a { color: var(--link); font-weight: 600; text-decoration: none; }
.prose a:hover { background: var(--yellow); color: var(--ink); }

/* ---------- sticky bar and the up arrow ---------- */
.rail { position: fixed; z-index: 40; left: 0; right: 0; bottom: 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); background: var(--white); box-shadow: 0 -8px 24px rgba(11, 58, 18, 0.12); }
.rail > span { font: italic 600 15px/1.25 var(--head); color: var(--ink); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rail .go { min-height: 48px; font-size: 15px; padding-left: 18px; }
.rail .go i { width: 38px; height: 38px; }
.rail[hidden] { display: none; }
.up { position: fixed; z-index: 41; right: 18px; bottom: 18px; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--yellow); color: var(--night); box-shadow: 0 10px 26px rgba(11, 58, 18, 0.28); transition: opacity .2s, transform .2s; }
.js .up { opacity: 0; pointer-events: none; transform: translateY(10px); }
.js .up.on { opacity: 1; pointer-events: auto; transform: none; }
.rail-on .up { bottom: calc(86px + env(safe-area-inset-bottom)); }

/* ---------- smaller screens ---------- */
@media (max-width: 1180px) {
  .hero { padding: 128px 32px 116px; }
  .bar { padding: 0 32px; }
  .hero-grid { grid-template-columns: minmax(0, 1fr) 420px; gap: 32px; }
  .hero-pic, .curl { display: none; }
  .hero-short .hero-pic { display: block; }
  .block-art { grid-template-columns: 300px minmax(0, 1fr); gap: 40px; }
  .facts { width: calc(100% - 48px); }
  .bar-nav a { padding: 9px 11px; }
}
@media (max-width: 980px) {
  .bar-nav { display: none; }
  .bar-menu { display: block; position: relative; margin-left: auto; }
  .bar-menu summary { list-style: none; cursor: pointer; width: 44px; height: 44px; border-radius: 50%; background: rgba(255, 255, 255, 0.18); display: grid; place-content: center; gap: 5px; }
  .scrolled .bar-menu summary { background: var(--page); }
  .bar-menu summary::-webkit-details-marker { display: none; }
  .bar-menu summary span { display: block; width: 18px; height: 2px; border-radius: 2px; background: currentColor; }
  .scrolled .bar-menu summary span { background: var(--deep); }
  .bar-menu nav { position: absolute; right: 0; top: 54px; z-index: 30; display: grid; min-width: 220px; padding: 8px; border-radius: 18px; background: var(--white); box-shadow: 0 20px 50px rgba(11, 58, 18, 0.25); }
  .bar-menu nav a { text-decoration: none; color: var(--ink); padding: 12px 14px; border-radius: 12px; }
  .bar-menu nav a:hover, .bar-menu nav a[aria-current] { background: var(--page); }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-short .hero-grid { grid-template-columns: minmax(0, 1fr) 220px; }
  .hero-act { display: none; }
  .till-card { max-width: 560px; }
  .facts { grid-auto-flow: row; grid-template-columns: 1fr; width: calc(100% - 48px); max-width: 560px; margin-left: 32px; }
  .block-art { display: block; }
  .block-pic { position: relative; top: 0; max-width: 340px; aspect-ratio: 1.3; margin-bottom: 26px; }
  #questions { display: block; }
  #questions h2 { position: static; }
  .ticks { grid-template-columns: 1fr; }
  .path li::after { display: none; }
  .end { grid-template-columns: 240px minmax(0, 1fr); padding: 36px; }
  .foot { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 40px 32px 24px; }
}
@media (max-width: 760px) {
  body { font-size: 16.5px; }
  #order, .block { scroll-margin-top: 76px; }
  .bar { height: 64px; margin-bottom: -64px; padding: 0 14px; gap: 8px; }
  .page { padding: 10px; }
  .hero { padding: 80px 14px 18px; border-radius: 0 0 24px 24px; background-position: 58% 20%; }
  .hero-short { padding-bottom: 26px; }
  .hero-photo { background: linear-gradient(180deg, rgba(3, 22, 10, 0.78) 0%, rgba(3, 22, 10, 0.58) 45%, rgba(3, 22, 10, 0.4) 100%), #0b3a1c url("/img/poster-900.webp") 52% 25% / cover no-repeat; }
  .logo-tile { width: 36px; height: 36px; border-radius: 11px; }
  .logo-words b, .logo-words small { font-size: 18px; }
  .bar > .go-y { min-height: 40px; padding: 0 14px; font-size: 14px; }
  .bar-menu { margin-left: auto; }
  .bar-menu summary { width: 40px; height: 40px; }
  .hero-grid, .hero-short .hero-grid { display: flex; flex-direction: column; align-items: stretch; gap: 16px; }
  .hero-short .hero-pic { display: none; }
  .tag { margin-bottom: 10px; font-size: 13px; padding: 4px 12px 4px 6px; }
  .hero h1 { font-size: clamp(29px, 8.2vw, 40px); max-width: none; }
  .lede { margin-top: 10px; font-size: 16.5px; }
  .till-card { padding: 14px; border-radius: 22px; }
  .till-head { margin-bottom: 8px; font-size: 16px; }
  .till-card fieldset { margin-bottom: 9px; }
  .seg span { padding: 8px; }
  .pill span { padding: 9px 4px; }
  .till-sum { margin: 2px 0 10px; padding-top: 9px; }
  .till-sum strong { font-size: 30px; }
  .go { min-height: 52px; }
  .go i { width: 42px; height: 42px; }
  .facts { width: auto; max-width: none; margin: 12px 10px 0; gap: 10px; }
  .facts li { padding: 14px 16px; }
  .facts i { width: 40px; height: 40px; border-radius: 12px; }
  .facts b { font-size: 26px; }
  .block { padding: 56px 8px 4px; }
  main > .block:nth-of-type(even) { margin-top: 44px; padding: 44px 16px 40px; border-radius: 26px; }
  .block p, .block li { font-size: 16.5px; }
  .block-pic { max-width: none; aspect-ratio: 1.6; }
  .block-pic svg { width: auto; height: 86%; }
  .path { gap: 12px; }
  .board table { min-width: 0; }
  .board th, .board td { padding: 10px 8px; }
  .board caption { padding: 12px 10px 4px; font-size: 13px; }
  .board tbody th { font-size: 14px; }
  .board td b { font-size: 15px; }
  .board td small { font-size: 11.5px; }
  .flag { display: none; }
  .asks summary { font-size: 17px; padding: 16px; }
  .asks details div { padding: 0 16px 16px; }
  .end { grid-template-columns: 1fr; padding: 26px 20px; margin-top: 64px; gap: 18px; border-radius: 24px; }
  .end-art { max-width: 200px; }
  .foot { grid-template-columns: 1fr; gap: 24px; padding: 32px 20px 110px; border-radius: 24px; }
  .prose { padding: 40px 8px 0; }
}
@media (max-width: 420px) {
  .logo-words small { display: none; }
}
@media (max-width: 360px) {
  .logo-tile { display: none; }
  .logo-words b { font-size: 16px; }
  .bar > .go-y { padding: 0 11px; font-size: 13px; }
  .seg small { font-size: 11.5px; }
  .seg b { font-size: 14px; }
}
@media (min-width: 761px) { .rail { display: none !important; } }
