/* The fishcup.pl landing page: the scrollcraft engine themed to FishCup (water and gold, Barlow), and the five scenes. */

body.ld-page {
  --sc-canvas: #0A1E25; --sc-surface: #0E2A33;
  --sc-ink: #F3F7F8; --sc-ink-soft: #A9BFC6;
  --sc-accent: #FFD21F; --sc-accent-ink: #0A1E25;
  --sc-font-display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --sc-font-text: "Barlow", system-ui, sans-serif;
  --sc-shadow-color: 196 60% 3%;
  --sc-track-tight: -0.012em; --sc-track-snug: -0.006em;   /* a condensed face is already tight */
}
body.ld-page main.container h2, body.ld-page main.container h3 { margin-top: 0; }
.ld .sc-display { font-weight: 700; text-transform: none; }
.ld .sc-body { color: var(--sc-ink-soft); letter-spacing: 0.005em; line-height: 1.65; }

/* ---- 1 · the lake at dawn */
.ld-hero [data-sc-stage] { background: #0A1E25; }
.ld-poster--tall { display: none; }
@media (max-width: 700px) and (orientation: portrait) { .ld-poster--wide { display: none; } .ld-poster--tall { display: block; } }
.ld-mist { position: absolute; inset: -10% -5% 0 -5%; z-index: 2; pointer-events: none;
           background: radial-gradient(120% 60% at 30% 100%, rgba(10, 30, 37, .85), rgba(10, 30, 37, 0) 62%),
                       linear-gradient(to top, rgba(10, 30, 37, .95) 0%, rgba(10, 30, 37, 0) 34%); }
.ld-hero__scrim { z-index: 3; }
.ld-hero__copy { z-index: 4; max-width: min(46rem, 92vw); padding-top: 68px; }
.ld-hero__title { font-size: clamp(2.6rem, 1.4rem + 3.6vw, 5.2rem); line-height: .94; text-wrap: balance; }
.ld-hero__sub { margin-top: var(--sc-5); max-width: 34ch; font-size: var(--sc-t-lg); color: #DCE7EA; }
.ld-hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-top: var(--sc-6); }
.ld-hero__stores { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin: var(--sc-5) 0 0; color: #DCE7EA; font-size: var(--sc-t-sm); }
.ld-badge { display: block; margin: -7px 0; }   /* the official badge has clear space above and below it (none at the sides); pull it back so the row keeps its height */
.ld-badge img { display: block; width: auto; height: 62px; }
.ld-qr { display: block; }
.ld-qr img { display: block; width: 72px; height: 72px; border-radius: 6px; }
@media (max-width: 860px), (pointer: coarse) { .ld-qr { display: none; } }   /* a phone cannot scan its own screen */
.ld-quiet { color: var(--sc-ink); font-weight: 600; text-underline-offset: .25em; text-decoration-color: rgba(243, 247, 248, .4); }
.ld-quiet:hover { text-decoration-color: var(--sc-accent); }
.ld-skip { display: inline-block; margin-top: var(--sc-5); font-size: var(--sc-t-sm); color: #B9CBD0; text-decoration: none; }
.ld-skip:hover { color: var(--sc-accent); }
.ld-phone { position: absolute; z-index: 5; right: clamp(24px, 7vw, 120px); bottom: -14vh; width: clamp(180px, 17vw, 270px); margin: 0;
            border-radius: 30px; padding: 7px; background: #061418; box-shadow: 0 4px 10px rgba(2, 10, 13, .4), 0 40px 80px -20px rgba(2, 10, 13, .8), inset 0 1px 0 rgba(243, 247, 248, .12);
            transform-origin: 50% 100%; }
.ld-phone img { width: 100%; height: auto; border-radius: 24px; }
@media (max-width: 860px) { .ld-phone { display: none; } }
@media (max-width: 700px) {
  .ld-hero__title { font-size: clamp(2.3rem, 9.6vw, 3rem); }
  .ld-hero__copy { padding-top: 60px; }
}

/* ---- 2 · the measuring board */
.ld-method { padding-block: clamp(4rem, 7vw, 7rem) clamp(4.5rem, 8vw, 8rem); background: #0A1E25; }
.ld-method__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.ld-method__text { max-width: 34rem; }
.ld-method__text h2 { font-size: clamp(2.4rem, 1.6rem + 2.6vw, 4rem); line-height: .96; text-wrap: balance; }
.ld-method__fig { margin: 0; }
.ld-method__fig img { width: 100%; height: auto; border-radius: 16px; box-shadow: var(--sc-e3); }
.ld-method__fig figcaption { margin-top: 10px; color: var(--sc-ink-soft); font-size: var(--sc-t-sm); }
@media (max-width: 860px) { .ld-method__grid { grid-template-columns: 1fr; } }

/* ---- 3 · the peak: the fish measures itself and jumps into the ranking */
.ld-peak__stage { display: grid; grid-template-columns: auto minmax(0, 30rem); justify-content: center; align-items: center; gap: clamp(1.5rem, 3.5vw, 4rem);
                  padding: 88px var(--sc-gutter) 32px; background: radial-gradient(80% 70% at 30% 50%, #0F2C36, #0A1E25 70%); }
.ld-peak__catch { display: flex; align-items: flex-end; gap: clamp(1.5rem, 3vw, 3rem); }
.ld-card { position: relative; flex: none; height: min(72vh, 680px); aspect-ratio: 9 / 16; border-radius: 18px; overflow: hidden;
           box-shadow: var(--sc-e3); will-change: transform, opacity; transform-origin: 50% 50%; }
.ld-card img { width: 100%; height: 100%; object-fit: cover; max-width: none; }
.ld-card__h { display: none; }
.ld-gauge { position: absolute; left: 0; right: 0; top: 6%; height: 0; border-top: 2px solid var(--sc-accent); opacity: 0;
            box-shadow: 0 1px 0 rgba(2, 10, 13, .5); transition: opacity 160ms var(--sc-ease-out); }
.ld-gauge__val { position: absolute; right: 10px; top: -1.9rem; padding: 4px 10px; border-radius: 8px; background: var(--sc-accent); color: var(--sc-accent-ink);
                 font: 700 1.35rem/1 var(--sc-font-display); font-variant-numeric: tabular-nums; white-space: nowrap; box-shadow: 0 4px 10px rgba(2, 10, 13, .45); }
.ld-peak__copy { position: relative; width: 17rem; min-height: 9rem; margin-bottom: 1rem; }
.ld-peak__copy .sc-lede { position: absolute; left: 0; bottom: 0; margin: 0; font: 600 clamp(1.3rem, 1rem + .8vw, 1.75rem)/1.2 var(--sc-font-text); color: var(--sc-ink); text-wrap: balance; }

.ld-board { padding: 22px 22px 14px; border-radius: 18px; background: #0E2A33; border: 1px solid #1F3D47;
            box-shadow: inset 0 1px 0 rgba(243, 247, 248, .06), var(--sc-e2); }
.ld-board__head { display: flex; align-items: baseline; justify-content: space-between; margin: 0 0 12px; }
.ld-board__head b { font: 700 1.7rem/1 var(--sc-font-display); }
.ld-board__head span { color: var(--sc-ink-soft); font-size: var(--sc-t-sm); }
.ld-board__rows { list-style: none; margin: 0; padding: 0; position: relative; }
.ld-row { display: grid; grid-template-columns: 2.2rem minmax(0, 1fr) auto auto; align-items: center; gap: 12px; height: 58px; padding: 0 12px; border-radius: 12px;
          background: #0E2A33; will-change: transform; }
.ld-row + .ld-row { margin-top: 4px; }
.ld-row__rank { font: 700 1.55rem/1 var(--sc-font-display); color: var(--sc-ink-soft); text-align: center; font-variant-numeric: tabular-nums; }
.ld-row__name { font-weight: 600; font-size: 1.05rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ld-row__pts { font: 700 1.5rem/1 var(--sc-font-display); font-variant-numeric: tabular-nums; white-space: nowrap; }
.ld-row__pts small { font: 400 .8rem var(--sc-font-text); color: var(--sc-ink-soft); }
.ld-row__fish { grid-column: 3; width: 64px; height: 24px; object-fit: cover; border-radius: 5px; opacity: 0; max-width: none; }
.ld-row:not(.ld-row--hero) .ld-row__pts { grid-column: 3 / span 2; justify-self: end; }
.ld-row--hero.is-lit { background: #30412F; box-shadow: inset 0 0 0 1px rgba(255, 210, 31, .55); }
.ld-row--hero.is-first .ld-row__rank { color: var(--sc-accent); }

@media (max-width: 860px) {
  .ld-peak__stage { grid-template-columns: minmax(0, 1fr); align-content: center; gap: 18px; padding: 72px 16px 20px; }
  .ld-peak__catch { flex-direction: column; align-items: stretch; gap: 12px; }
  .ld-card { height: auto; width: 100%; aspect-ratio: 8 / 3; }
  .ld-card__v { display: none; }
  .ld-card__h { display: block; }
  .ld-gauge { top: 0; bottom: 0; left: 5.4%; right: auto; width: 0; height: auto; border-top: 0; border-left: 2px solid var(--sc-accent); }
  .ld-gauge__val { top: 8px; left: 8px; right: auto; font-size: 1.15rem; }
  .ld-gauge.is-late .ld-gauge__val { left: auto; right: 8px; }
  .ld-peak__copy { width: auto; min-height: 3.2rem; margin: 0; }
  .ld-peak__copy .sc-lede { font-size: 1.15rem; }
  .ld-board { padding: 14px 12px 8px; }
  .ld-board__head b { font-size: 1.4rem; }
  .ld-row { height: 46px; gap: 8px; padding: 0 8px; grid-template-columns: 1.8rem minmax(0, 1fr) auto auto; }
  .ld-row__name { font-size: .98rem; }
  .ld-row__pts { font-size: 1.25rem; }
  .ld-row__fish { width: 44px; height: 18px; }
}
@media (max-width: 860px) and (max-height: 700px) { .ld-row { height: 40px; } .ld-card { aspect-ratio: 3 / 1; } }

/* ---- 4 · the end of the day: real screens, travelling sideways */
.ld-day__stage { display: flex; align-items: center; background: #0C232B; }
.ld-rail { display: flex; align-items: center; gap: clamp(1.5rem, 3vw, 3rem); padding: 72px var(--sc-gutter) 0; width: max-content; }
.ld-rail__lead { width: min(26rem, 80vw); flex: none; }
.ld-rail__lead h2 { font-size: clamp(2.4rem, 1.6rem + 2.4vw, 3.8rem); line-height: .96; text-wrap: balance; }
.ld-rail__lead p { margin-top: var(--sc-4); }
.ld-shot { flex: none; margin: 0; }
.ld-shot img { height: min(62vh, 560px); width: auto; max-width: none; border-radius: 22px; box-shadow: var(--sc-e3); border: 1px solid #1F3D47; }
.ld-shot--wide img { border-radius: 12px; }
.ld-shot figcaption { max-width: 22rem; margin-top: 14px; color: var(--sc-ink-soft); font-size: var(--sc-t-sm); line-height: 1.5; }
.ld-shot figcaption b { display: block; color: var(--sc-ink); font: 700 1.35rem/1.1 var(--sc-font-display); }
.ld-rail__end { flex: none; width: min(20rem, 70vw); margin: 0; font: 600 var(--sc-t-xl)/1.15 var(--sc-font-display); color: var(--sc-ink); text-wrap: balance; }
@media (max-width: 700px) { .ld-shot img { height: min(52vh, 460px); } .ld-shot--wide img { height: auto; width: 86vw; } }
@media (prefers-reduced-motion: no-preference) {
  .ld-rail > :not(:first-child) { opacity: max(.55, min(1, calc(var(--sc-p, 1) * 4 - var(--i, 0) * .55))); }
}

/* ---- 5 · the price and the form */
.ld-close { padding-block: clamp(5rem, 9vw, 9rem) 0; background: #0A1E25; }
.ld-close__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(2rem, 5vw, 5.5rem); align-items: start; }
.ld-price h2 { font-size: clamp(2.4rem, 1.6rem + 2.6vw, 4rem); line-height: .96; text-wrap: balance; }
.ld-price__main { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 4px 16px; margin: var(--sc-7) 0 0; }
.ld-price__num { font: 700 clamp(4.6rem, 3rem + 6vw, 8rem)/.8 var(--sc-font-display); color: var(--sc-accent); letter-spacing: -0.02em; white-space: nowrap; }
.ld-price__from { white-space: nowrap; padding-bottom: 8px; color: var(--sc-ink-soft); font: 600 var(--sc-t-lg)/1 var(--sc-font-text); }
.ld-price__per { padding-bottom: 6px; color: var(--sc-ink); font-weight: 600; font-size: var(--sc-t-lg); line-height: 1.3; }
.ld-price__extra { margin: var(--sc-7) 0 0; }
.ld-price__extra div { display: grid; grid-template-columns: 9rem minmax(0, 1fr); gap: 16px; padding: 14px 0; border-top: 1px solid #1F3D47; }
.ld-price__extra dt { font: 700 1.3rem/1.2 var(--sc-font-display); }
.ld-price__extra dd { margin: 0; color: var(--sc-ink-soft); line-height: 1.5; }
.ld-price__note { margin-top: var(--sc-5); font-size: var(--sc-t-sm); }
@media (max-width: 860px) { .ld-close__grid { grid-template-columns: 1fr; } .ld-price__extra div { grid-template-columns: 1fr; gap: 2px; } }

.ld-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; max-width: var(--sc-maxw); margin: clamp(4rem, 7vw, 6rem) auto 0;
           padding: 28px var(--sc-gutter) 36px; border-top: 1px solid #1F3D47; color: var(--sc-ink-soft); font-size: var(--sc-t-sm); }
.ld-foot > a:not(.sb-brand) { color: var(--sc-ink); }
.ld-foot__links { display: flex; flex-wrap: wrap; gap: 6px 20px; flex: 1; justify-content: flex-end; }
.ld-foot__links a, .ld-foot .link-btn { color: var(--sc-ink-soft); text-decoration: none; background: none; border: 0; padding: 0; font: inherit; cursor: pointer; }
.ld-foot__links a:hover, .ld-foot .link-btn:hover { color: var(--sc-ink); }
@media (max-width: 700px) { .ld-foot__links { flex-basis: 100%; justify-content: flex-start; } }
.ld-store { padding: 6px 14px; border-radius: 999px; border: 1px solid #1F3D47; background: #0B232B; color: var(--sc-ink); text-decoration: none; font-weight: 600; }
.ld-store:hover { border-color: var(--sc-ink-soft); }
.ld-foot__lang select { padding: 6px 10px; border-radius: 8px; border: 1px solid #1F3D47; background: #0B232B; color: var(--sc-ink); }
.ld-row--hero { position: relative; z-index: 2; }
.ld-row__fish { position: relative; z-index: 3; transform-origin: 50% 50%; box-shadow: 0 6px 16px -4px rgba(2, 10, 13, .6); }

/* the sound of the lake: off until the visitor turns it on, quiet again once the first screen is gone */
.ld-sound { position: absolute; z-index: 6; top: 88px; right: var(--sc-gutter); display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px 9px 11px;
            border-radius: 999px; border: 1px solid rgba(243, 247, 248, .28); background: rgba(10, 30, 37, .55); color: var(--sc-ink); cursor: pointer;
            font: 600 .92rem/1 var(--sc-font-text); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
            transition: background-color 160ms var(--sc-ease-out), border-color 160ms var(--sc-ease-out), transform 120ms var(--sc-ease-out); }
.ld-sound:hover { background: rgba(10, 30, 37, .78); border-color: rgba(243, 247, 248, .5); }
.ld-sound:active { transform: scale(.97); }
.ld-sound[aria-pressed="true"] { border-color: var(--sc-accent); color: var(--sc-accent); }
.ld-sound__on, .ld-sound[aria-pressed="true"] .ld-sound__off { display: none; }
.ld-sound[aria-pressed="true"] .ld-sound__on { display: block; }
@media (max-width: 700px) { .ld-sound { top: 74px; padding: 8px 12px 8px 10px; font-size: .86rem; } }

/* ---- questions people ask, under the price and the form */
.ld-faq { margin-top: clamp(4.5rem, 8vw, 7rem); }
.ld-faq__title { font-size: clamp(2.1rem, 1.5rem + 2vw, 3.2rem); line-height: 1; margin-bottom: var(--sc-6); }
.ld-faq__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.ld-faq__item { border-top: 1px solid #1F3D47; }
.ld-faq__item summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 0; cursor: pointer; list-style: none;
                        font: 700 1.3rem/1.2 var(--sc-font-display); color: var(--sc-ink); }
.ld-faq__item summary::-webkit-details-marker { display: none; }
.ld-faq__item summary:hover { color: var(--sc-accent); }
.ld-faq__item summary svg { flex: none; color: var(--sc-ink-soft); transition: transform 200ms var(--sc-ease-out); }
.ld-faq__item[open] summary svg { transform: rotate(45deg); color: var(--sc-accent); }
.ld-faq__item p { margin: -4px 0 20px; max-width: 60ch; color: var(--sc-ink-soft); line-height: 1.6; }
@media (max-width: 860px) { .ld-faq__list { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .ld-faq__item summary svg { transition: none; } }

/* the promo film: a small play button in the hero, the film in a dialog */
.ld-film-btn { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px 9px 12px; border-radius: 999px; cursor: pointer;
               border: 1px solid rgba(243, 247, 248, .35); background: rgba(10, 30, 37, .45); color: var(--sc-ink); font: 600 1rem/1 var(--sc-font-text);
               backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
               transition: background-color 160ms var(--sc-ease-out), border-color 160ms var(--sc-ease-out), transform 120ms var(--sc-ease-out); }
.ld-film-btn svg { color: var(--sc-accent); }
.ld-film-btn small { color: var(--sc-ink-soft); font-weight: 400; }
.ld-film-btn:hover { background: rgba(10, 30, 37, .7); border-color: var(--sc-accent); }
.ld-film-btn:active { transform: scale(.97); }
.ld-film { width: min(1100px, 94vw); max-width: none; padding: 0; border: 0; border-radius: 16px; background: #000; overflow: visible;
           box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .8); }
.ld-film::backdrop { background: rgba(4, 12, 15, .82); }
.ld-film video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; border-radius: 16px; background: #000; }
.ld-film__close { position: absolute; top: -48px; right: 0; width: 40px; height: 40px; display: grid; place-items: center; border: 0; border-radius: 50%;
                  background: rgba(243, 247, 248, .14); color: var(--sc-ink); cursor: pointer; }
.ld-film__close:hover { background: rgba(243, 247, 248, .26); }
@media (max-width: 700px) { .ld-film-btn { padding: 8px 14px 8px 10px; font-size: .95rem; } .ld-film__close { top: -46px; } }
