/* CNPRED 大運動会 — landing page. Game dialogs keep their styles in style.css. */
/* Fonts are self-hosted subsets (SIL OFL, Google Fonts) containing only the glyphs the page uses. */
@font-face { font-family: "Dela Gothic One"; src: url("/assets/lp/fonts/dela-gothic-one.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Zen Kaku Gothic New"; src: url("/assets/lp/fonts/zen-kaku-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Zen Kaku Gothic New"; src: url("/assets/lp/fonts/zen-kaku-700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Zen Kaku Gothic New"; src: url("/assets/lp/fonts/zen-kaku-900.woff2") format("woff2"); font-weight: 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Big Shoulders Display"; src: url("/assets/lp/fonts/big-shoulders-700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Big Shoulders Display"; src: url("/assets/lp/fonts/big-shoulders-900.woff2") format("woff2"); font-weight: 900; font-style: normal; font-display: swap; }
:root {
  --lp-red: #e5261f;
  --lp-red-deep: #a3140f;
  --lp-red-soft: #ffe1d6;
  --lp-ink: #1c1613;
  --lp-ink-2: #4a3f38;
  --lp-paper: #fbf5e8;
  --lp-paper-2: #f3e8d2;
  --lp-white: #fffdf8;
  --lp-gold: #f5b700;
  --lp-gold-deep: #b57d00;
  --lp-line: rgba(28, 22, 19, .16);
  --f-display: "Dela Gothic One", "Hiragino Kaku Gothic StdN", "Hiragino Kaku Gothic ProN", sans-serif;
  --f-body: "Zen Kaku Gothic New", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  --f-num: "Big Shoulders Display", "Dela Gothic One", Impact, sans-serif;
  --gutter: clamp(16px, 4vw, 56px);
  --ease: cubic-bezier(.2, .75, .2, 1);
  color-scheme: light;
}
body.lp { font-family: var(--f-body); background: var(--lp-paper); color: var(--lp-ink); -webkit-font-smoothing: antialiased; }
.lp ::selection { background: var(--lp-red); color: var(--lp-white); }
.lp-wrap { max-width: 1320px; margin: 0 auto; padding: 0 var(--gutter); }
.lp button { font-family: inherit; }
.lp :focus-visible { outline: 3px solid #2f6fdc; outline-offset: 4px; border-radius: 6px; }

/* Shared type */
.lp-section-no { display: flex; align-items: baseline; gap: 14px; font: 900 22px/1 var(--f-num); color: var(--lp-red); letter-spacing: .02em; margin-bottom: 18px; }
.lp-section-no span { font: 700 11px/1 var(--f-body); letter-spacing: .22em; color: var(--lp-ink-2); }
.lp-section-no.light span { color: rgba(255, 253, 248, .72); }
.lp-h2 { font: 400 clamp(32px, 4.3vw, 60px)/1.14 var(--f-display); letter-spacing: -.01em; }
.lp-h2 em { font-style: normal; color: var(--lp-red); }

/* Buttons */
.lp-cta { position: relative; display: inline-grid; grid-template-columns: 1fr auto; grid-template-rows: auto auto; column-gap: 22px; align-items: center; text-align: left; padding: 16px 16px 16px 26px; min-height: 72px; border-radius: 16px; background: var(--lp-red); color: var(--lp-white); box-shadow: 0 6px 0 var(--lp-red-deep), 0 14px 26px rgba(163, 20, 15, .22); transition: transform .18s var(--ease), box-shadow .18s var(--ease), background .2s; }
.lp-cta:hover { transform: translateY(-2px); box-shadow: 0 8px 0 var(--lp-red-deep), 0 18px 30px rgba(163, 20, 15, .26); }
.lp-cta:active { transform: translateY(4px); box-shadow: 0 2px 0 var(--lp-red-deep); }
.lp-cta-main { font: 400 clamp(17px, 1.5vw, 21px)/1.25 var(--f-display); }
.lp-cta-sub { grid-row: 2; font-size: 12px; font-weight: 700; opacity: .86; margin-top: 3px; letter-spacing: .04em; }
.lp-cta-arrow { grid-row: 1 / 3; grid-column: 2; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--lp-white); color: var(--lp-red); font: 900 22px/1 var(--f-body); transition: transform .2s var(--ease); }
.lp-cta:hover .lp-cta-arrow { transform: translateX(3px); }
.lp-cta.light { background: var(--lp-white); color: var(--lp-ink); box-shadow: 0 6px 0 var(--lp-ink), 0 14px 26px rgba(28, 22, 19, .25); }
.lp-cta.light .lp-cta-arrow { background: var(--lp-red); color: var(--lp-white); }
.lp-cta.light:active { box-shadow: 0 2px 0 var(--lp-ink); }
#ranking-join.lp-cta { display: inline-flex; gap: 12px; min-height: 60px; padding: 0 26px; font: 400 18px/1 var(--f-display); }
.lp-link { font-weight: 900; font-size: 14px; padding: 12px 2px; border-bottom: 2px solid currentColor; display: inline-flex; gap: 8px; align-items: center; }
.lp-link:hover { color: var(--lp-red); }
.lp-link.light { color: var(--lp-white); }
.lp-link.light:hover { color: var(--lp-gold); }

/* Header */
.lp-header { position: sticky; top: 0; z-index: 40; display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 70px; padding: 0 var(--gutter); background: rgba(251, 245, 232, .86); backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4); border-bottom: 1px solid var(--lp-line); }
.lp-brand { display: inline-flex; flex-direction: column; gap: 3px; line-height: 1; }
.lp-brand small { font-size: 9px; font-weight: 900; letter-spacing: .2em; color: var(--lp-ink-2); }
.lp-nav { display: flex; gap: 30px; align-items: center; }
.lp-nav a, .lp-nav button { font-size: 13px; font-weight: 900; padding: 10px 0; position: relative; }
.lp-nav a::after, .lp-nav button::after { content: ""; position: absolute; left: 0; right: 0; bottom: 4px; height: 2px; background: var(--lp-red); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease); }
.lp-nav a:hover::after, .lp-nav button:hover::after { transform: scaleX(1); }
.lp-header-actions { display: flex; align-items: center; gap: 12px; }
.lp-sound { display: inline-flex; align-items: center; gap: 7px; min-height: 40px; padding: 0 12px; border-radius: 99px; font: 900 12px/1 var(--f-num); letter-spacing: .12em; color: var(--lp-ink-2); }
.lp-sound > span:first-child { font-size: 18px; }
.lp-sound[aria-pressed="true"] { color: var(--lp-red); background: var(--lp-red-soft); }
.lp-player { display: inline-flex; align-items: center; gap: 8px; max-width: 170px; min-height: 40px; padding: 4px 14px 4px 4px; border: 1.5px solid var(--lp-ink); border-radius: 99px; font-size: 13px; font-weight: 900; background: var(--lp-white); }
.lp-player #header-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lp-player-icon { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--lp-red); color: var(--lp-white); font-size: 18px; flex: none; }

/* Hero */
.lp-hero { position: relative; isolation: isolate; overflow: hidden; display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: clamp(24px, 4vw, 64px); align-items: center; min-height: min(880px, calc(100svh - 70px)); padding: 88px var(--gutter) 84px; max-width: 1440px; margin: 0 auto; }
.lp-hero::before { /* the track: red oval with white lanes, bleeding off the bottom right */ content: ""; position: absolute; z-index: -2; right: -30%; bottom: -62%; width: 98%; aspect-ratio: 1.55; border-radius: 50%; background: repeating-radial-gradient(ellipse at 50% 50%, var(--lp-red) 0 44px, rgba(255, 253, 248, .9) 44px 47px); -webkit-mask: radial-gradient(ellipse at 50% 50%, transparent 0 30%, #000 30.2%); mask: radial-gradient(ellipse at 50% 50%, transparent 0 30%, #000 30.2%); opacity: .96; }
.lp-hero::after { /* paper grain */ content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .5; mix-blend-mode: multiply; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .45 0 0 0 0 .35 0 0 0 0 .25 0 0 0 .09 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.bunting { position: absolute; left: 0; right: 0; top: 0; height: 52px; z-index: 1; pointer-events: none; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='216' height='52' viewBox='0 0 216 52'%3E%3Cpath d='M0 6 Q54 20 108 6 T216 6' fill='none' stroke='%231c1613' stroke-width='1.6'/%3E%3Cpath d='M14 10 L40 13 L26 42Z' fill='%23e5261f'/%3E%3Cpath d='M50 13 L76 12 L63 42Z' fill='%23fffdf8' stroke='%231c1613' stroke-width='1.2'/%3E%3Cpath d='M86 9 L110 6 L99 36Z' fill='%23f5b700'/%3E%3Cpath d='M122 7 L146 10 L133 38Z' fill='%23e5261f'/%3E%3Cpath d='M158 12 L182 13 L169 42Z' fill='%231c1613'/%3E%3Cpath d='M192 11 L214 7 L203 36Z' fill='%23fffdf8' stroke='%231c1613' stroke-width='1.2'/%3E%3C/svg%3E") repeat-x 0 0 / 216px 52px; transform-origin: top; animation: sway 6s ease-in-out infinite alternate; }
@keyframes sway { to { transform: skewX(-1.2deg) translateX(-10px); } }
.lp-hero-copy { position: relative; z-index: 2; }
.lp-kicker { display: inline-flex; align-items: center; gap: 10px; font-size: 12px; font-weight: 900; letter-spacing: .08em; padding: 8px 14px 8px 12px; background: var(--lp-white); border: 1.5px solid var(--lp-ink); border-radius: 99px; margin-bottom: 26px; }
.live-dot, .rec-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--lp-red); box-shadow: 0 0 0 0 rgba(229, 38, 31, .55); animation: pulse 1.6s infinite; flex: none; }
@keyframes pulse { 70% { box-shadow: 0 0 0 9px rgba(229, 38, 31, 0); } 100% { box-shadow: 0 0 0 0 rgba(229, 38, 31, 0); } }
.lp-title { display: flex; flex-direction: column; margin: 0 0 24px; }
.lp-title-latin { font: 900 clamp(60px, 8.4vw, 132px)/.8 var(--f-num); letter-spacing: -.005em; color: var(--lp-ink); }
.lp-title-jp { font: 400 clamp(62px, 8.2vw, 128px)/1 var(--f-display); color: var(--lp-red); letter-spacing: -.03em; margin-top: .08em; text-shadow: .045em .045em 0 var(--lp-ink); }
.lp-lead { font: 900 clamp(21px, 2.1vw, 30px)/1.4 var(--f-body); letter-spacing: .01em; }
.lp-lead em { font-style: normal; color: var(--lp-red); background: linear-gradient(transparent 62%, rgba(245, 183, 0, .5) 62% 92%, transparent 92%); padding: 0 .08em; }
.lp-sub { font-size: clamp(14px, 1.15vw, 16px); line-height: 1.9; font-weight: 700; color: var(--lp-ink-2); margin-top: 10px; }
.lp-hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 28px; margin-top: 34px; }
.scoreboard { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 42px 0 0; max-width: 500px; }
.scoreboard > div { position: relative; background: var(--lp-ink); color: var(--lp-white); border-radius: 10px; padding: 10px 12px 9px; overflow: hidden; }
.scoreboard > div::after { content: ""; position: absolute; left: 0; right: 0; top: 58%; height: 1px; background: rgba(255, 253, 248, .14); }
.scoreboard dt { font-size: 10px; font-weight: 900; color: var(--lp-gold); letter-spacing: .12em; }
.scoreboard dd { margin: 2px 0 0; display: flex; align-items: baseline; gap: 3px; }
.scoreboard b { font: 900 clamp(30px, 3vw, 42px)/1 var(--f-num); letter-spacing: .01em; }
.scoreboard small { font-size: 12px; font-weight: 900; opacity: .8; }

.lp-hero-stage { position: relative; z-index: 1; align-self: stretch; display: flex; align-items: center; min-height: 480px; }
.hero-go { position: absolute; top: -18px; right: -10px; z-index: 3; display: grid; place-items: center; width: 118px; height: 118px; border-radius: 50%; background: var(--lp-red); color: var(--lp-white); border: 3px solid var(--lp-white); outline: 2px solid var(--lp-ink); transform: rotate(12deg); box-shadow: 6px 6px 0 var(--lp-ink); }
.hero-go b { font: 400 21px/1.1 var(--f-display); text-align: center; }

/* Load choreography */
.hero-in { animation: heroIn .9s var(--ease) both; animation-delay: calc(var(--d, 0) * 110ms + 80ms); }
@keyframes heroIn { from { opacity: 0; transform: translateY(26px); } }
@keyframes heroPhoto { from { opacity: 0; transform: rotate(7deg) translateY(40px) scale(.96); } }
@keyframes heroMonitor { from { opacity: 0; transform: rotate(-9deg) translate(-40px, 30px); } }
.hero-go.hero-in { animation-name: heroGo; animation-timing-function: cubic-bezier(.3, 1.6, .5, 1); }
@keyframes heroGo { from { opacity: 0; transform: rotate(-40deg) scale(.3); } }


/* Program */
.lp-program { padding: clamp(72px, 9vw, 128px) 0 clamp(80px, 9vw, 130px); background: linear-gradient(var(--lp-paper), var(--lp-paper-2)); }
.program-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 28px 40px; flex-wrap: wrap; }
.program-mode { display: grid; justify-items: end; gap: 10px; text-align: right; }
.lp-mode { display: inline-flex; padding: 4px; gap: 4px; border-radius: 99px; background: var(--lp-white); border: 1.5px solid var(--lp-ink); }
.lp-mode button { padding: 11px 20px; border-radius: 99px; font-size: 13px; font-weight: 900; color: var(--lp-ink-2); white-space: nowrap; }
.lp-mode button[aria-pressed="true"] { background: var(--lp-ink); color: var(--lp-white); }
#mode-description { font-size: 13px; font-weight: 700; color: var(--lp-ink-2); }
.mode-total { font: 900 13px/1 var(--f-num); letter-spacing: .14em; color: var(--lp-ink-2); }
.mode-total b { font-size: 30px; color: var(--lp-red); letter-spacing: .02em; margin: 0 4px; }
.program-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; margin: 40px 0 30px; padding-top: 24px; border-top: 2px solid var(--lp-ink); }
.lp-filters { display: flex; gap: 8px; flex-wrap: wrap; }
.lp-filters button { padding: 10px 18px; border-radius: 99px; border: 1.5px solid var(--lp-ink); font-size: 13px; font-weight: 900; background: var(--lp-white); transition: background .2s, color .2s; }
.lp-filters button span { font: 900 13px/1 var(--f-num); margin-left: 4px; }
.lp-filters button[aria-pressed="true"] { background: var(--lp-red); border-color: var(--lp-red); color: var(--lp-white); }
.lp-random { display: inline-flex; align-items: center; gap: 8px; padding: 10px 4px; font-size: 14px; font-weight: 900; color: var(--lp-red); }
.lp-random span { font-size: 22px; }
.lp-random:hover { text-decoration: underline; text-underline-offset: 5px; }

.lp .program-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 34px 30px; }
.lp .game-card { position: relative; display: flex; flex-direction: column; background: var(--lp-white); border: 2px solid var(--lp-ink); border-radius: 20px; box-shadow: 7px 7px 0 var(--lp-ink); overflow: visible; transition: transform .2s var(--ease), box-shadow .2s var(--ease); min-width: 0; }
.lp .game-card:hover { transform: translate(-3px, -3px); box-shadow: 10px 10px 0 var(--lp-ink); }
.lp .game-card[data-level="4"] { box-shadow: 7px 7px 0 var(--lp-red); }
.lp .game-card[data-level="4"]:hover { box-shadow: 10px 10px 0 var(--lp-red); }
.bib-media { position: relative; display: block; width: 100%; aspect-ratio: 900 / 440; border-radius: 18px 18px 0 0; overflow: hidden; background: #2a221d; border-bottom: 2px solid var(--lp-ink); }
.bib-media video, .bib-media > img.bib-poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.bib-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(28, 22, 19, .35), transparent 30%, transparent 62%, rgba(28, 22, 19, .55)); pointer-events: none; }
.bib-footage { position: absolute; z-index: 2; left: 14px; top: 12px; display: inline-flex; align-items: center; gap: 7px; padding: 6px 10px; border-radius: 99px; background: rgba(28, 22, 19, .72); color: var(--lp-white); font-size: 11px; font-weight: 900; letter-spacing: .06em; }
.bib-footage i { width: 7px; height: 7px; border-radius: 50%; background: var(--lp-red); }
.game-card.is-playing .bib-footage i { animation: pulse 1.6s infinite; }
.bib-go { position: absolute; z-index: 2; left: 14px; bottom: 12px; display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px 9px 12px; border-radius: 99px; background: var(--lp-red); color: var(--lp-white); font: 400 15px/1 var(--f-display); box-shadow: 0 4px 0 var(--lp-red-deep); transition: transform .2s var(--ease); }
.bib-go::before { content: ""; width: 0; height: 0; border-left: 10px solid currentColor; border-top: 6px solid transparent; border-bottom: 6px solid transparent; }
.bib-media:hover .bib-go { transform: translateY(-2px); }
.lp .card-medal { position: absolute; z-index: 3; top: 12px; right: 12px; left: auto; width: auto; height: auto; padding: 6px 11px; border-radius: 99px; border: 2px solid var(--lp-ink); font: 900 12px/1 var(--f-num); letter-spacing: .12em; background: var(--lp-gold); color: var(--lp-ink); display: inline-block; }
.lp .game-card[data-medal="silver"] .card-medal { background: #dfe3e6; }
.lp .game-card[data-medal="bronze"] .card-medal { background: #e7a878; }
.bib-body { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 20px; padding: 24px 26px 20px; flex: 1; }
.bib-body::before, .bib-body::after { /* safety-pin holes of a race bib */ content: ""; position: absolute; top: 12px; width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--lp-line); background: var(--lp-paper); }
.bib-body::before { left: 12px; }
.bib-body::after { right: 12px; }
.bib-no { display: flex; flex-direction: column; align-items: center; min-width: 70px; padding-top: 2px; }
.bib-no small { font-size: 11px; font-weight: 900; color: var(--lp-ink-2); letter-spacing: .1em; }
.bib-no b { font: 900 68px/.86 var(--f-num); color: var(--lp-red); letter-spacing: -.01em; }
.bib-main { min-width: 0; }
.bib-cat { font: 900 12px/1 var(--f-num); letter-spacing: .18em; color: var(--lp-ink-2); display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.bib-cat span { font: 900 11px/1 var(--f-body); letter-spacing: .04em; padding: 4px 8px; border-radius: 6px; background: var(--lp-paper-2); color: var(--lp-ink); }
.bib-main h3 { font: 400 clamp(22px, 2vw, 28px)/1.25 var(--f-display); margin: 10px 0 8px; }
.bib-hook { font-size: 14px; line-height: 1.8; font-weight: 700; color: var(--lp-ink-2); }
.bib-tip { display: flex; gap: 10px; align-items: baseline; margin-top: 12px; font-size: 13px; line-height: 1.7; font-weight: 700; }
.bib-tip b { flex: none; font-size: 11px; font-weight: 900; padding: 3px 8px; border-radius: 6px; background: var(--lp-gold); color: var(--lp-ink); }
.bib-meta { grid-column: 1 / -1; display: flex; align-items: center; gap: 12px 22px; flex-wrap: wrap; margin-top: 18px; padding-top: 16px; border-top: 2px dashed var(--lp-line); }
.bib-level { display: inline-flex; align-items: center; gap: 4px; }
.bib-level i { width: 16px; height: 8px; border-radius: 2px; background: var(--lp-line); transform: skewX(-18deg); }
.bib-level[data-level="1"] i:nth-child(-n+1), .bib-level[data-level="2"] i:nth-child(-n+2), .bib-level[data-level="3"] i:nth-child(-n+3), .bib-level[data-level="4"] i:nth-child(-n+4) { background: var(--lp-red); }
.bib-level em { font-style: normal; font-size: 12px; font-weight: 900; margin-left: 6px; }
.bib-level[data-level="4"] em { background: var(--lp-red); color: var(--lp-white); padding: 3px 8px; border-radius: 6px; }
.bib-best { display: inline-flex; align-items: baseline; gap: 6px; margin-left: auto; font: 900 11px/1 var(--f-num); letter-spacing: .14em; color: var(--lp-ink-2); }
.bib-best b { font-size: 30px; color: var(--lp-ink); letter-spacing: .02em; }
.bib-play-btn { display: inline-flex; align-items: center; gap: 10px; padding: 11px 18px; border-radius: 99px; background: var(--lp-ink); color: var(--lp-white); font-size: 14px; font-weight: 900; transition: background .2s; }
.bib-play-btn:hover { background: var(--lp-red); }

/* Route */
.lp-route { position: relative; overflow: hidden; background: var(--lp-ink); color: var(--lp-white); padding: clamp(80px, 9vw, 130px) 0; }
.lp-route::before { content: ""; position: absolute; inset: 0; background: radial-gradient(900px 420px at 88% -10%, rgba(229, 38, 31, .35), transparent 70%), radial-gradient(700px 360px at -10% 110%, rgba(245, 183, 0, .12), transparent 70%); pointer-events: none; }
.route-head { position: relative; max-width: 760px; }
.route-head .lp-h2 em { color: var(--lp-gold); }
.route-lead { margin-top: 22px; font-size: 16px; line-height: 1.95; font-weight: 700; color: rgba(255, 253, 248, .78); }
.route-track { position: relative; list-style: none; margin: 64px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 26px; }
.route-track::before { /* one lane of red track that runs through every stop */ content: ""; position: absolute; left: 0; right: 0; top: 26px; height: 16px; border-radius: 8px; background: linear-gradient(90deg, rgba(255, 253, 248, .85) 50%, transparent 50%) 0 50% / 26px 2px no-repeat repeat-x, var(--lp-red); background: repeating-linear-gradient(90deg, rgba(255, 253, 248, .9) 0 14px, transparent 14px 28px) 0 50% / 100% 2px no-repeat, var(--lp-red); }
.route-stop { position: relative; padding-top: 88px; }
.route-pin { position: absolute; top: 0; left: 0; display: grid; place-items: center; width: 68px; height: 68px; border-radius: 50%; background: var(--lp-white); color: var(--lp-ink); border: 4px solid var(--lp-ink); outline: 3px solid var(--lp-white); font: 900 34px/1 var(--f-num); }
.route-final .route-pin { background: var(--lp-gold); font-size: 30px; }
.route-level { font: 900 13px/1 var(--f-num); letter-spacing: .16em; color: var(--lp-gold); }
.route-stop h3 { font: 400 22px/1.4 var(--f-display); margin: 12px 0 10px; }
.route-stop > p:not(.route-level) { font-size: 14px; line-height: 1.85; font-weight: 700; color: rgba(255, 253, 248, .72); }
.route-games { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.route-games button { padding: 9px 14px; border-radius: 99px; border: 1.5px solid rgba(255, 253, 248, .5); color: var(--lp-white); font-size: 13px; font-weight: 900; transition: background .2s, border-color .2s, color .2s; }
.route-games button::after { content: " →"; opacity: .6; }
.route-games button:hover { background: var(--lp-red); border-color: var(--lp-red); }
.route-final .route-games button { background: var(--lp-red); border-color: var(--lp-red); }
.route-final .route-games button:hover { background: var(--lp-white); color: var(--lp-red); }
.medal-rule { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 18px 40px; flex-wrap: wrap; margin-top: 72px; padding: 26px 32px; border-radius: 18px; border: 1.5px solid rgba(255, 253, 248, .2); background: rgba(255, 253, 248, .05); }
.medal-rule > p { font: 400 20px/1.4 var(--f-display); }
.medal-rule ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 30px; flex-wrap: wrap; }
.medal-rule li { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 900; }
.medal-rule li i { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; font-style: normal; font-size: 18px; color: var(--lp-ink); border: 3px solid rgba(0, 0, 0, .2); }
.medal-rule li b { font: 900 34px/1 var(--f-num); }
.m-gold i { background: radial-gradient(circle at 30% 30%, #fff1b0, var(--lp-gold)); }
.m-silver i { background: radial-gradient(circle at 30% 30%, #fff, #c4cad0); }
.m-bronze i { background: radial-gradient(circle at 30% 30%, #ffd9b8, #c47a45); }

.gold-count { display: inline-flex; align-items: center; gap: 16px; margin-top: 34px; padding: 14px 22px 14px 14px; border-radius: 16px; background: var(--lp-white); border: 2px solid var(--lp-ink); box-shadow: 5px 5px 0 var(--lp-ink); }
.gold-medal { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; border: 4px solid var(--lp-gold-deep); background: radial-gradient(circle at 30% 30%, #fff1b0, var(--lp-gold)); color: var(--lp-gold-deep); font-size: 24px; }
.gold-count span:not(.gold-medal) { display: block; font: 900 11px/1 var(--f-num); letter-spacing: .18em; color: var(--lp-ink-2); }
.gold-count b { display: block; font: 900 36px/1 var(--f-num); margin: 3px 0; }
.gold-count small { font-size: 12px; font-weight: 700; color: var(--lp-ink-2); }

/* 3-game challenge */
.lp-circuit { padding: clamp(64px, 7vw, 100px) 0; background: var(--lp-paper); }
.circuit-inner { position: relative; }
.circuit-inner > * { position: relative; }
.circuit-inner { display: grid; grid-template-columns: auto minmax(0, 1fr) minmax(0, .7fr); gap: 20px 48px; align-items: center; padding-block: 56px; background: repeating-linear-gradient(180deg, var(--lp-red) 0 58px, rgba(255, 253, 248, .75) 58px 61px), var(--lp-red); border-radius: 28px; color: var(--lp-white); overflow: hidden; box-shadow: 10px 10px 0 var(--lp-ink); border: 2px solid var(--lp-ink); max-width: calc(1320px - 2 * var(--gutter)); margin-inline: auto; padding-inline: clamp(24px, 4vw, 60px); }
@media (max-width: 1400px) { .circuit-inner { margin-inline: var(--gutter); } }
.c3-number { font: 900 clamp(140px, 17vw, 250px)/.8 var(--f-num); color: transparent; -webkit-text-stroke: 3px var(--lp-white); display: flex; flex-direction: column; align-items: center; }
.c3-number span { font: 400 26px/1 var(--f-display); color: var(--lp-white); -webkit-text-stroke: 0; margin-top: 10px; }
.c3-copy .lp-h2 { font-size: clamp(28px, 3.3vw, 46px); }
.c3-copy > p:not(.lp-section-no) { margin: 18px 0 30px; font-size: 15px; line-height: 1.9; font-weight: 700; color: rgba(255, 253, 248, .9); }
.c3-copy .lp-section-no { color: var(--lp-white); }
.c3-art { position: relative; height: 260px; }
.c3-art img { position: absolute; width: 50%; filter: drop-shadow(5px 6px 0 rgba(28, 22, 19, .35)); animation: run .5s ease-in-out infinite alternate; }
.c3-runner { left: 0; bottom: -6px; }
.c3-buddy { right: 0; top: -4px; animation-delay: -.25s !important; }
@keyframes run { to { transform: translateY(-8px) rotate(-2deg); } }

/* Cup */
.lp-cup { padding: clamp(60px, 7vw, 110px) 0 clamp(80px, 9vw, 130px); background: var(--lp-paper); }
.cup-inner { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 56px; align-items: start; }
.cup-copy { position: relative; }
.cup-copy > p:not(.lp-section-no) { margin: 20px 0 30px; font-size: 16px; line-height: 1.9; font-weight: 700; color: var(--lp-ink-2); max-width: 440px; }
.cup-count { display: block; margin-top: 16px; font-size: 13px; font-weight: 700; color: var(--lp-ink-2); }
.cup-trophy { position: absolute; right: 2%; bottom: -12px; width: clamp(96px, 11vw, 160px); height: auto; transform: rotate(8deg); filter: drop-shadow(6px 8px 0 rgba(28, 22, 19, .14)); pointer-events: none; }
.board { background: var(--lp-ink); color: var(--lp-white); border-radius: 22px; padding: 26px 28px 18px; min-height: 420px; display: flex; flex-direction: column; box-shadow: 10px 10px 0 var(--lp-red); }
.board-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 22px; }
.board-head > div { display: flex; align-items: center; gap: 12px; }
.board-head h3 { font: 400 22px/1 var(--f-display); }
.board-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--lp-red); animation: pulse 1.6s infinite; }
.board-head button { width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid rgba(255, 253, 248, .35); color: var(--lp-white); font-size: 20px; }
.board-cols { display: flex; justify-content: space-between; font: 900 12px/1 var(--f-num); letter-spacing: .18em; color: rgba(255, 253, 248, .55); padding-bottom: 12px; border-bottom: 1px solid rgba(255, 253, 248, .18); }
.board .ranking-empty { color: rgba(255, 253, 248, .7); font-size: 14px; padding: 60px 12px; text-align: center; line-height: 2; }
.board .ranking-row { display: flex; align-items: center; gap: 14px; padding: 15px 0; border-bottom: 1px solid rgba(255, 253, 248, .12); font-size: 15px; font-weight: 900; }
.board .ranking-row > span:first-child { font: 900 30px/1 var(--f-num); min-width: 36px; color: rgba(255, 253, 248, .55); font-style: normal; }
.board .ranking-row:nth-child(1) > span:first-child { color: var(--lp-gold); }
.board .rank-avatar { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--lp-red); color: var(--lp-white); font-size: 18px; }
.board .rank-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.board .ranking-row b { font: 900 30px/1 var(--f-num); color: var(--lp-white); }
.board .ranking-row b small { font-size: 12px; margin-left: 4px; color: rgba(255, 253, 248, .6); }
.board-foot { margin-top: auto; padding-top: 16px; display: flex; justify-content: space-between; align-items: center; font: 900 11px/1 var(--f-num); letter-spacing: .2em; color: rgba(255, 253, 248, .45); }
.board-foot span:last-child { color: var(--lp-red); font-size: 22px; }

/* Final */
.lp-final { position: relative; overflow: hidden; background: var(--lp-red); color: var(--lp-white); padding: clamp(90px, 11vw, 160px) 0 clamp(110px, 12vw, 180px); }
.lp-final::before { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 42%; background: repeating-linear-gradient(180deg, transparent 0 52px, rgba(255, 253, 248, .55) 52px 55px); -webkit-mask: linear-gradient(transparent, #000 60%); mask: linear-gradient(transparent, #000 60%); }
.lp-final::after { /* the finish tape */ content: ""; position: absolute; left: -5%; right: -5%; bottom: 10%; height: 22px; background: repeating-linear-gradient(90deg, var(--lp-white) 0 60px, #ffd3cc 60px 120px); transform: rotate(-4deg); box-shadow: 0 6px 0 rgba(28, 22, 19, .18); opacity: .95; }
.final-inner { position: relative; z-index: 1; text-align: center; }
.final-inner .lp-section-no { justify-content: center; color: var(--lp-white); }
.final-inner h2 { font: 400 clamp(46px, 8.4vw, 132px)/1.08 var(--f-display); letter-spacing: -.02em; text-shadow: .05em .05em 0 var(--lp-ink); }
.final-actions { display: flex; justify-content: center; align-items: center; gap: 22px 34px; flex-wrap: wrap; margin-top: 54px; }

/* Footer */
.lp-footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding: 36px var(--gutter); background: var(--lp-ink); color: var(--lp-white); }
.lp-footer .lp-brand small { color: rgba(255, 253, 248, .6); }
.lp-footer p { font-size: 13px; font-weight: 700; color: rgba(255, 253, 248, .7); }
.lp-footer div { display: flex; gap: 22px; font-size: 13px; font-weight: 900; }
.lp-footer div a:hover { color: var(--lp-gold); }

/* Scroll reveal — only when JS is present so content never stays hidden */
.lp-js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: calc(var(--d, 0) * 110ms); }
.lp-js .reveal.is-in { opacity: 1; transform: none; }

/* Tablet */
@media (max-width: 1080px) {
  .lp-nav { gap: 20px; }
  .lp-hero { grid-template-columns: 1fr; padding-top: 84px; min-height: 0; }
  .lp-hero::before { width: 150%; right: -50%; bottom: -24%; }
  .lp-hero-stage { min-height: 0; padding: 10px 4% 70px 6%; }
  .route-track { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 56px; }
  .route-track::before { display: none; }
  .circuit-inner { grid-template-columns: auto minmax(0, 1fr); }
  .c3-art { display: none; }
}

/* Phone */
@media (max-width: 760px) {
  .lp-header { height: 60px; gap: 10px; }
  .lp-nav a { display: none; }
  .lp-nav button { font-size: 12px; }
  .lp-brand small { display: none; }
  .lp-sound { padding: 0 8px; }
  .lp-sound .sound-label { display: none; }
  .lp-player { max-width: 116px; padding-right: 10px; font-size: 12px; }
  .lp-player-icon { width: 26px; height: 26px; font-size: 15px; }
  .lp-hero { padding: 70px 16px 40px; gap: 26px; }
  .bunting { height: 40px; background-size: 166px 40px; }
  .lp-kicker { font-size: 11px; margin-bottom: 20px; }
  .lp-title-latin { font-size: clamp(56px, 19vw, 86px); }
  .lp-title-jp { font-size: clamp(58px, 18.6vw, 84px); }
  .lp-hero-actions { flex-direction: column; align-items: stretch; margin-top: 26px; }
  .lp-hero-actions .lp-link { align-self: flex-start; }
  .scoreboard { margin-top: 30px; gap: 6px; }
  .scoreboard > div { padding: 8px 8px 7px; }
  .scoreboard b { font-size: 28px; }
  .scoreboard small { font-size: 10px; }
  .lp-hero-stage { padding: 0 0 64px 4%; }
  .hero-go { width: 84px; height: 84px; top: -26px; right: -4px; }
  .hero-go b { font-size: 15px; }
  .program-mode { justify-items: start; text-align: left; }
  .program-toolbar { margin: 30px 0 22px; }
  .lp .program-grid { grid-template-columns: 1fr; gap: 26px; }
  .lp .game-card { box-shadow: 5px 5px 0 var(--lp-ink); }
  .lp .game-card[data-level="4"] { box-shadow: 5px 5px 0 var(--lp-red); }
  .bib-body { padding: 20px 18px 18px; gap: 4px 14px; }
  .bib-no { min-width: 48px; }
  .bib-no b { font-size: 50px; }
  .bib-meta { gap: 12px; }
  .bib-best { margin-left: 0; }
  .bib-play-btn { margin-left: auto; }
  .route-track { grid-template-columns: 1fr; gap: 0; margin-top: 44px; }
  .route-track::before { display: block; left: 26px; right: auto; top: 0; bottom: 0; width: 16px; height: auto; background: repeating-linear-gradient(180deg, rgba(255, 253, 248, .9) 0 14px, transparent 14px 28px) 50% 0 / 2px 100% no-repeat, var(--lp-red); }
  .route-stop { padding: 0 0 44px 82px; min-height: 120px; }
  .route-pin { width: 60px; height: 60px; font-size: 28px; left: 4px; }
  .route-stop h3 { margin-top: 8px; }
  .medal-rule { margin-top: 20px; padding: 22px 20px; }
  .medal-rule ul { gap: 18px; }
  .circuit-inner { grid-template-columns: 1fr; padding-block: 40px; gap: 10px; box-shadow: 6px 6px 0 var(--lp-ink); border-radius: 22px; }
  .c3-number { flex-direction: row; align-items: flex-end; gap: 12px; font-size: 120px; }
  .c3-number span { font-size: 22px; margin: 0 0 10px; }
  .lp-cta { width: 100%; }
  .board { padding: 22px 18px 14px; box-shadow: 6px 6px 0 var(--lp-red); }
  .final-actions { flex-direction: column; align-items: stretch; margin-top: 40px; }
  .final-actions .lp-link { align-self: center; }
  .lp-final::after { bottom: 7%; height: 14px; }
  .cup-trophy { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-in, .bunting, .c3-art img, .live-dot, .rec-dot, .board-dot, .lineup-athlete, .lineup-athlete img, #parade-track, .parade-athlete, .final-athlete img { animation: none !important; }
  .lp-js .reveal { opacity: 1; transform: none; transition: none; }
}

/* ============ 11 ATHLETES EDITION ============ */
.lp-brand-logo { display: block; height: 21px; width: auto; }
.lp-footer .lp-brand-logo { height: 24px; }
.lp-player-icon { overflow: hidden; background: var(--lp-red-soft); }
.lp-player-icon img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }

/* Hero: the chosen athlete's splash card */
.hero-card { position: relative; margin: 0 0 0 auto; width: min(100%, 440px); aspect-ratio: 2 / 3; transform: rotate(2.5deg); border: 8px solid var(--lp-white); border-radius: 26px; outline: 2px solid var(--lp-ink); box-shadow: 14px 14px 0 var(--lp-ink); overflow: hidden; background: linear-gradient(160deg, #ffd9c9, var(--lp-red) 70%); }
.hero-card[data-team="white"] { background: linear-gradient(160deg, #fffdf8, #c9cfdb 70%); box-shadow: 14px 14px 0 var(--lp-ink); }
.hero-card img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 12%; transition: opacity .3s; }
.hero-card img.is-sprite { object-fit: contain; padding: 12% 10% 26%; }
.hero-card figcaption { position: absolute; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 14px; align-items: end; padding: 60px 20px 18px; background: linear-gradient(transparent, rgba(28, 22, 19, .88) 55%); color: var(--lp-white); }
.hero-card-bib { grid-row: 1 / 3; font: 900 64px/.8 var(--f-num); color: var(--lp-white); -webkit-text-stroke: 0; padding: 6px 10px 2px; background: var(--lp-red); border-radius: 10px; }
.hero-card[data-team="white"] .hero-card-bib { background: var(--lp-white); color: var(--lp-ink); }
.hero-card-team { font-size: 11px; font-weight: 900; letter-spacing: .14em; color: var(--lp-gold); }
.hero-card figcaption b { font: 400 32px/1.1 var(--f-display); }
.hero-card figcaption small { position: absolute; right: 20px; bottom: 20px; font: 900 13px/1 var(--f-num); letter-spacing: .3em; opacity: .7; }
.hero-card.hero-in { animation-name: heroCard; }
@keyframes heroCard { from { opacity: 0; transform: rotate(9deg) translateY(50px) scale(.94); } }

/* Hero band: all eleven on the opening-ceremony ground */
.hero-band { position: relative; isolation: isolate; height: clamp(250px, 27vw, 390px); margin-top: clamp(-40px, -2vw, -10px); }
.hero-band-scene { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 50% 64%; }
.hero-band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(var(--lp-paper) 0, rgba(251, 245, 232, 0) 34%), linear-gradient(transparent 70%, rgba(28, 22, 19, .45)); }
.hero-band::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 6px; background: var(--lp-red); }
.hero-lineup { position: absolute; left: 0; right: 0; bottom: 4px; display: flex; justify-content: center; align-items: flex-end; gap: clamp(8px, 1.4vw, 26px); padding: 0 var(--gutter); }
.lineup-team { display: flex; align-items: flex-end; }
.lineup-athlete { --h: clamp(112px, 12.6vw, 214px); position: relative; display: block; height: var(--h); margin-inline: calc(var(--h) * -.13); animation: lineupIn .9s cubic-bezier(.3, 1.45, .5, 1) both; animation-delay: calc(650ms + var(--i) * 85ms); transition: transform .25s var(--ease); z-index: 1; }
.lineup-athlete:nth-child(even) { --h: clamp(98px, 11vw, 188px); margin-bottom: clamp(18px, 2.4vw, 40px); z-index: 0; }
.lineup-athlete img { height: 100%; width: auto; max-width: none; filter: drop-shadow(0 8px 6px rgba(28, 22, 19, .35)); transform-origin: 50% 100%; }
.lineup-athlete:hover, .lineup-athlete:focus-visible { transform: translateY(-12px); z-index: 3; }
.lineup-athlete:hover img { animation: hop .45s ease-in-out infinite alternate; }
@keyframes hop { to { transform: translateY(-6px) rotate(-2deg); } }
@keyframes lineupIn { from { opacity: 0; transform: translateY(45%) scale(.55); } }
.lineup-name { position: absolute; left: 50%; bottom: -2px; transform: translate(-50%, 6px); padding: 5px 11px; border-radius: 99px; background: var(--lp-ink); color: var(--lp-white); font-size: 12px; font-weight: 900; white-space: nowrap; opacity: 0; transition: opacity .2s, transform .2s var(--ease); pointer-events: none; }
.lineup-red .lineup-name { background: var(--lp-red); }
.lineup-athlete:hover .lineup-name, .lineup-athlete:focus-visible .lineup-name, .lineup-athlete.is-current .lineup-name { opacity: 1; transform: translate(-50%, 0); }
.lineup-vs { align-self: center; flex: none; display: grid; place-items: center; width: clamp(54px, 5.4vw, 84px); aspect-ratio: 1; margin-bottom: 8%; border-radius: 50%; background: linear-gradient(135deg, var(--lp-red) 50%, var(--lp-white) 50%); border: 3px solid var(--lp-ink); box-shadow: 4px 4px 0 var(--lp-ink); font: 900 clamp(20px, 2vw, 30px)/1 var(--f-num); color: var(--lp-ink); -webkit-text-stroke: 1px var(--lp-white); animation: heroGo .8s cubic-bezier(.3, 1.6, .5, 1) 1.6s both; }

/* Parade ticker */
.lp-parade { overflow: hidden; background: var(--lp-ink); border-bottom: 3px solid var(--lp-red); }
#parade-track { display: flex; width: max-content; align-items: flex-end; gap: 30px; padding: 10px 0 0; animation: parade 60s linear infinite; }
#parade-track > span { align-self: center; padding-bottom: 8px; font: 400 20px/1 var(--f-display); color: var(--lp-white); }
#parade-track > span:nth-of-type(even) { font: 900 24px/1 var(--f-num); letter-spacing: .14em; color: var(--lp-gold); }
.parade-athlete { height: 76px; width: auto; animation: march .36s ease-in-out infinite alternate; }
.parade-athlete:nth-of-type(odd) { animation-delay: -.18s; }
@keyframes parade { from { transform: translateX(-50%); } to { transform: translateX(0); } }
@keyframes march { to { transform: translateY(-5px); } }

/* Athletes */
.lp-athletes { position: relative; padding: clamp(72px, 9vw, 130px) 0; background: var(--lp-paper); overflow: hidden; }
.lp-athletes::before { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(229, 38, 31, .08) 0 47%, transparent 47% 53%, rgba(28, 22, 19, .05) 53%); pointer-events: none; }
.athletes-head { position: relative; display: flex; justify-content: space-between; align-items: flex-end; gap: 28px 56px; flex-wrap: wrap; margin-bottom: clamp(40px, 5vw, 64px); }
.athletes-lead { max-width: 520px; display: grid; gap: 22px; }
.athletes-lead > p { font-size: 15px; line-height: 1.9; font-weight: 700; color: var(--lp-ink-2); }
.athletes-lead b { color: var(--lp-red); }
.gold-count { display: flex; align-items: center; gap: 14px; padding: 12px 20px 12px 12px; border-radius: 16px; background: var(--lp-ink); color: var(--lp-white); width: fit-content; }
.gold-medal { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 50%; background: radial-gradient(circle at 30% 30%, #fff1b0, var(--lp-gold)); color: var(--lp-ink); font-size: 22px; border: 3px solid rgba(255, 255, 255, .3); }
.gold-count span { display: block; font: 900 11px/1 var(--f-num); letter-spacing: .22em; color: var(--lp-gold); }
.gold-count b { font: 900 30px/1.1 var(--f-num); }
.gold-count small { display: block; font-size: 11px; font-weight: 700; opacity: .7; }
.team-split { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: clamp(16px, 2vw, 30px); align-items: start; }
.team-head { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; padding-bottom: 14px; border-bottom: 3px solid var(--lp-red); }
.team-col[data-team="white"] .team-head { border-color: var(--lp-ink); }
.team-head img { width: 76px; height: auto; filter: drop-shadow(3px 3px 0 rgba(28, 22, 19, .2)); }
.team-head div { display: flex; flex-direction: column; gap: 4px; }
.team-head b { font: 400 30px/1 var(--f-display); color: var(--lp-red); }
.team-col[data-team="white"] .team-head b { color: var(--lp-ink); }
.team-head span { font: 900 12px/1 var(--f-num); letter-spacing: .26em; color: var(--lp-ink-2); }
.team-head em { margin-left: auto; font: 900 14px/1 var(--f-body); font-style: normal; padding: 6px 12px; border-radius: 99px; border: 1.5px solid currentColor; }
.team-vs { align-self: stretch; display: flex; justify-content: center; }
.team-vs span { position: sticky; top: 50vh; display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%; background: var(--lp-ink); color: var(--lp-white); font: 900 22px/1 var(--f-num); letter-spacing: .04em; margin-top: 110px; box-shadow: 0 0 0 6px var(--lp-paper); }
.team-vs::before { content: ""; position: absolute; top: 0; bottom: 0; width: 2px; background: repeating-linear-gradient(var(--lp-ink) 0 10px, transparent 10px 18px); opacity: .35; z-index: -1; }
.roster { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px 18px; }
.athlete-card { position: relative; display: flex; flex-direction: column; text-align: left; border: 2px solid var(--lp-ink); border-radius: 18px; background: var(--lp-white); box-shadow: 6px 6px 0 var(--lp-ink); overflow: hidden; transition: transform .22s var(--ease), box-shadow .22s var(--ease); }
.athlete-card:hover { transform: translate(-3px, -4px) rotate(-.8deg); box-shadow: 9px 10px 0 var(--lp-ink); }
.team-col[data-team="red"] .athlete-card:hover { box-shadow: 9px 10px 0 var(--lp-red); }
.athlete-art { position: relative; display: block; aspect-ratio: 3 / 4; overflow: hidden; background: linear-gradient(165deg, #fff4ee, var(--accent) 140%); border-bottom: 2px solid var(--lp-ink); }
.athlete-art img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 14%; transition: transform .4s var(--ease); }
.athlete-art img.is-sprite { object-fit: contain; padding: 10% 8% 4%; }
.athlete-card:hover .athlete-art img { transform: scale(1.06); }
.athlete-bib { position: absolute; left: 10px; top: 10px; display: flex; align-items: baseline; gap: 2px; padding: 4px 8px 2px; border-radius: 8px; background: var(--lp-white); border: 2px solid var(--lp-ink); }
.athlete-bib small { font: 900 10px/1 var(--f-num); letter-spacing: .1em; }
.athlete-bib b { font: 900 24px/1 var(--f-num); color: var(--lp-red); }
.athlete-meta { display: flex; flex-direction: column; gap: 3px; padding: 12px 14px 14px; }
.athlete-meta b { font: 400 21px/1.15 var(--f-display); }
.athlete-meta small { font-size: 11px; font-weight: 900; letter-spacing: .06em; color: var(--lp-ink-2); }
.athlete-count { position: absolute; right: 10px; top: 10px; padding: 5px 8px; border-radius: 99px; background: rgba(28, 22, 19, .78); color: var(--lp-white); font: 900 11px/1 var(--f-num); letter-spacing: .12em; }
.athlete-selected { position: absolute; right: -34px; top: 52px; transform: rotate(35deg); width: 130px; padding: 5px 0; text-align: center; background: var(--lp-red); color: var(--lp-white); font-size: 11px; font-weight: 900; letter-spacing: .2em; opacity: 0; }
.athlete-card.is-current { outline: 3px solid var(--lp-red); outline-offset: 3px; }
.athlete-card.is-current .athlete-selected { opacity: 1; }

/* Program: arena painting + the chosen athlete */
.program-entrant { display: inline-flex; align-items: center; gap: 12px; margin-top: 22px; padding: 6px 16px 6px 6px; border-radius: 99px; background: var(--lp-white); border: 1.5px solid var(--lp-ink); }
.program-entrant img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; object-position: 50% 18%; background: var(--lp-red-soft); }
.program-entrant span { display: flex; flex-direction: column; gap: 2px; }
.program-entrant small { font-size: 10px; font-weight: 900; letter-spacing: .16em; color: var(--lp-ink-2); }
.program-entrant b { font: 400 17px/1 var(--f-display); }
.program-entrant a { margin-left: 10px; font-size: 12px; font-weight: 900; color: var(--lp-red); border-bottom: 1.5px solid currentColor; }
.bib-scene { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.bib-athlete { position: absolute; z-index: 1; right: 7%; bottom: -2%; height: 96%; width: auto; filter: drop-shadow(4px 8px 6px rgba(28, 22, 19, .4)); transition: transform .35s var(--ease); transform-origin: 50% 100%; }
.bib-media:hover .bib-scene { transform: scale(1.05); }
.bib-media:hover .bib-athlete { transform: translateY(-8px) scale(1.04); }
.bib-media::after { z-index: 1; }
.bib-footage, .bib-go, .lp .card-medal { z-index: 3; }

/* One day of the festival */
.lp-day { position: relative; padding: clamp(72px, 9vw, 130px) 0 clamp(60px, 7vw, 100px); background: var(--lp-paper-2); overflow: hidden; }
.day-head { max-width: 720px; }
.day-head > p:not(.lp-section-no) { margin-top: 20px; font-size: 15px; line-height: 1.9; font-weight: 700; color: var(--lp-ink-2); }
.day-track { --edge: max(var(--gutter), calc((100vw - 1320px) / 2 + var(--gutter))); list-style: none; display: flex; gap: 26px; margin: 48px 0 0; padding: 18px var(--edge) 34px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--edge); scrollbar-color: var(--lp-red) transparent; }
.day-stop { flex: 0 0 clamp(280px, 29vw, 400px); scroll-snap-align: start; display: flex; flex-direction: column; background: var(--lp-white); border: 2px solid var(--lp-ink); border-radius: 20px; box-shadow: 7px 7px 0 var(--lp-ink); overflow: hidden; }
.day-stop:nth-child(even) { transform: translateY(26px); }
.lp-js .day-stop.reveal:nth-child(even).is-in { transform: translateY(26px); }
.day-scene { position: relative; aspect-ratio: 4 / 3; overflow: hidden; border-bottom: 2px solid var(--lp-ink); }
.day-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.day-scene::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 50%, rgba(28, 22, 19, .3)); pointer-events: none; }
.day-cast { position: absolute; z-index: 1; left: 4%; right: 4%; top: 22%; bottom: 3%; display: flex; justify-content: center; align-items: flex-end; }
.day-athlete { height: 84%; margin-inline: -2%; transition: transform .25s var(--ease); }
.day-athlete:nth-child(2) { height: 96%; z-index: 1; }
.day-athlete img { height: 100%; width: auto; max-width: none; filter: drop-shadow(0 6px 5px rgba(28, 22, 19, .35)); }
.day-athlete:hover { transform: translateY(-8px); z-index: 2; }
.day-copy { position: relative; padding: 18px 22px 22px; }
.day-time { font: 900 34px/1 var(--f-num); color: var(--lp-red); letter-spacing: .02em; }
.day-copy h3 { font: 400 22px/1.3 var(--f-display); margin: 6px 0 6px; }
.day-copy > p { font-size: 14px; line-height: 1.8; font-weight: 700; color: var(--lp-ink-2); }
.day-copy .day-names { margin-top: 10px; font-size: 12px; font-weight: 900; color: var(--lp-ink); letter-spacing: .06em; }

/* Finale: night fireworks and everyone celebrating */
.lp-final { background: #1d1533; }
.final-scene { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%; opacity: .78; }
.lp-final::before { z-index: 0; top: 0; height: auto; background: linear-gradient(rgba(29, 21, 51, .55), rgba(29, 21, 51, .15) 45%, rgba(229, 38, 31, .55)); -webkit-mask: none; mask: none; }
.lp-final::after { z-index: 1; bottom: 13%; }
.final-inner { z-index: 3; }
.final-crowd { position: relative; z-index: 2; display: flex; justify-content: center; align-items: flex-end; margin-top: clamp(40px, 6vw, 80px); margin-bottom: calc(clamp(110px, 12vw, 180px) * -1 + 8px); padding: 0 var(--gutter); }
.final-athlete { height: clamp(96px, 11vw, 176px); margin-inline: -1.1%; }
.final-athlete:nth-child(even) { height: clamp(86px, 9.6vw, 154px); margin-bottom: 18px; }
.final-athlete img { height: 100%; width: auto; max-width: none; filter: drop-shadow(0 6px 6px rgba(0, 0, 0, .4)); animation: cheer .6s ease-in-out infinite alternate; animation-delay: calc(var(--i) * -.13s); transform-origin: 50% 100%; }
@keyframes cheer { to { transform: translateY(-9px); } }

/* Athlete sheet dialog */
.athlete-dialog { width: min(1120px, 94vw); max-height: 92vh; padding: 0; border: 2px solid var(--lp-ink); border-radius: 26px; background: var(--lp-paper); color: var(--lp-ink); box-shadow: 12px 12px 0 var(--lp-ink); overflow: auto; overscroll-behavior: contain; }
.athlete-dialog::backdrop { background: rgba(28, 22, 19, .62); backdrop-filter: blur(4px); }
.athlete-dialog .modal-close { position: sticky; float: right; top: 14px; margin: 14px 14px 0 0; z-index: 5; }
.sheet { padding: clamp(18px, 3vw, 36px); }
.sheet-top { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(20px, 3.4vw, 46px); align-items: start; }
.sheet-stage { position: relative; margin: 0; aspect-ratio: 2 / 3; border-radius: 20px; border: 2px solid var(--lp-ink); overflow: hidden; background: radial-gradient(circle at 50% 38%, #fff, var(--lp-red-soft) 45%, var(--accent) 140%); box-shadow: 7px 7px 0 var(--accent); }
.sheet[data-team="white"] .sheet-stage { background: radial-gradient(circle at 50% 38%, #fff, #e8e9ef 45%, var(--accent) 150%); }
.sheet-stage-img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 12%; }
.sheet-stage-img.is-sprite { object-fit: contain; padding: 8%; animation: popIn .35s cubic-bezier(.3, 1.5, .5, 1); }
@keyframes popIn { from { transform: scale(.85); opacity: .3; } }
.sheet-team { display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 900; letter-spacing: .08em; color: var(--lp-ink-2); }
.sheet-team img { width: 54px; height: auto; }
.sheet-info h2 { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; margin: 12px 0 4px; font: 400 clamp(40px, 5vw, 68px)/1 var(--f-display); color: var(--lp-ink); }
.sheet[data-team="red"] .sheet-info h2 { color: var(--lp-red); }
.sheet-info h2 small { font: 900 clamp(16px, 1.6vw, 20px)/1 var(--f-num); letter-spacing: .32em; color: var(--lp-ink-2); }
.sheet-species { font-size: 15px; font-weight: 900; }
.sheet-count { margin-top: 12px; font-size: 13px; font-weight: 700; color: var(--lp-ink-2); }
.sheet-count b { font: 900 30px/1 var(--f-num); color: var(--lp-red); margin-right: 2px; }
.sheet-faces { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0 0; padding: 0; }
.sheet-thumb { display: flex; flex-direction: column; align-items: center; gap: 6px; width: 100%; font-size: 11px; font-weight: 900; color: var(--lp-ink-2); }
.sheet-thumb img { display: block; background: var(--lp-white); border: 2px solid var(--lp-ink); transition: transform .2s var(--ease), border-color .2s; }
.sheet-thumb.face img { width: 70px; height: 70px; border-radius: 50%; object-fit: cover; object-position: 50% 20%; }
.sheet-thumb.pose img { width: 100%; height: auto; aspect-ratio: 1; object-fit: contain; padding: 8px; border-radius: 14px; }
.sheet-thumb:hover img { transform: translateY(-3px); }
.sheet-thumb[aria-pressed="true"] img { border-color: var(--lp-red); box-shadow: 0 0 0 3px var(--lp-red); }
.sheet-thumb[aria-pressed="true"] > span { color: var(--lp-red); }
.sheet-thumb.is-pending { cursor: default; }
.pending-mark { display: grid; place-items: center; width: 100%; aspect-ratio: 1; border-radius: 14px; border: 2px dashed var(--lp-line); font-size: 10px; color: var(--lp-ink-2); }
.face .pending-mark { width: 70px; height: 70px; border-radius: 50%; aspect-ratio: auto; }
.sheet-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; margin-top: 26px; }
.sheet-card-btn { font-size: 13px; font-weight: 900; padding: 10px 2px; border-bottom: 2px solid currentColor; }
.sheet-card-btn[aria-pressed="true"] { color: var(--lp-red); }
.sheet-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 26px; padding-top: 16px; border-top: 2px dashed var(--lp-line); }
.sheet-nav button { font-size: 13px; font-weight: 900; padding: 8px 14px; border-radius: 99px; border: 1.5px solid var(--lp-ink); background: var(--lp-white); }
.sheet-nav button:hover { background: var(--lp-ink); color: var(--lp-white); }
.sheet-gallery { margin-top: clamp(26px, 3.4vw, 44px); padding-top: 22px; border-top: 2px solid var(--lp-ink); }
.sheet-gallery h3 { font: 400 22px/1 var(--f-display); margin-bottom: 16px; }
.sheet-gallery h3 small { font: 900 16px/1 var(--f-num); letter-spacing: .1em; color: var(--lp-red); margin-left: 6px; }
.sheet-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 16px 12px; }

@media (max-width: 1080px) {
  .hero-card { width: min(78%, 380px); margin: 0 auto; }
  .team-split { grid-template-columns: 1fr; }
  .team-vs { display: none; }
  .sheet-top { grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); }
}
@media (max-width: 760px) {
  .lp-brand-logo { height: 16px; }
  .hero-card { width: 80%; border-width: 5px; box-shadow: 8px 8px 0 var(--lp-ink); border-radius: 18px; }
  .hero-card-bib { font-size: 46px; }
  .hero-card figcaption b { font-size: 24px; }
  .hero-band { height: 190px; margin-top: 0; }
  .hero-lineup { overflow-x: auto; justify-content: flex-start; padding: 40px 16px 0; scrollbar-width: none; }
  .lineup-athlete { --h: 132px; }
  .lineup-athlete:nth-child(even) { --h: 116px; margin-bottom: 20px; }
  .lineup-vs { width: 48px; }
  .parade-athlete { height: 58px; }
  #parade-track > span { font-size: 16px; }
  .roster { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 12px; }
  .athlete-card { box-shadow: 4px 4px 0 var(--lp-ink); }
  .athlete-meta b { font-size: 18px; }
  .program-entrant a { margin-left: 4px; }
  .day-track { gap: 16px; padding-inline: 16px; }
  .day-stop { flex-basis: 82vw; box-shadow: 5px 5px 0 var(--lp-ink); }
  .day-stop:nth-child(even), .lp-js .day-stop.reveal:nth-child(even).is-in { transform: none; }
  .final-crowd { overflow: hidden; justify-content: flex-start; }
  .final-athlete { height: 84px; }
  .final-athlete:nth-child(even) { height: 74px; }
  .athlete-dialog { width: 100vw; max-height: 100vh; height: 100vh; border-radius: 0; border: 0; box-shadow: none; }
  .sheet-top { grid-template-columns: 1fr; }
  .sheet-stage { width: min(100%, 320px); margin: 0 auto; }
  .sheet-thumb.face img, .face .pending-mark { width: 56px; height: 56px; }
  .sheet-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 8px; }
}

.cup-trophy { width: auto; height: clamp(150px, 16vw, 236px); right: 0; bottom: -24px; transform: rotate(4deg); }
.day-cast:has(> :nth-child(4)) .day-athlete { height: 70%; margin-inline: -3%; }
.day-cast:has(> :nth-child(4)) .day-athlete:nth-child(2) { height: 78%; }
.team-kv { margin: 0 0 24px; border: 2px solid var(--lp-ink); border-radius: 18px; overflow: hidden; box-shadow: 6px 6px 0 var(--lp-red); background: var(--lp-paper-2); }
.team-col[data-team="white"] .team-kv { box-shadow: 6px 6px 0 var(--lp-ink); }
.team-kv img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }

/* TEAM RED only: one roster, scenes as a grid, rotating hero card */
.hero-card img { transition: opacity .26s var(--ease), transform .26s var(--ease); }
.hero-card.is-swapping img { opacity: 0; transform: scale(1.03); }
.program-entrant button { margin-left: 8px; font-size: 12px; font-weight: 900; color: var(--lp-ink-2); border-bottom: 1.5px solid currentColor; }
.day-track { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); overflow: visible; max-width: 1320px; margin-inline: auto; padding: 18px var(--gutter) 10px; scroll-snap-type: none; }
.day-stop, .day-stop:nth-child(even), .lp-js .day-stop.reveal:nth-child(even).is-in { flex: none; transform: none; }
.day-time { font-size: 16px; letter-spacing: .2em; }
@media (max-width: 1080px) {
  .day-track { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .day-track { grid-template-columns: 1fr; padding-inline: 16px; }
  .day-stop { flex-basis: auto; }
}

/* 紅白戦: side assignment, locked side, side scoreboard */
.side-note { margin: -18px 0 26px; padding: 12px 16px; border-radius: 12px; background: var(--lp-ink); color: var(--lp-white); font-size: 14px; font-weight: 900; }
.team-col { transition: opacity .3s var(--ease), filter .3s var(--ease); }
.team-col.is-locked { opacity: .45; filter: grayscale(.7); }
.athlete-locked { position: absolute; left: 50%; top: 42%; transform: translate(-50%, -50%) rotate(-6deg); padding: 6px 12px; border-radius: 8px; background: var(--lp-ink); color: var(--lp-white); font-size: 12px; font-weight: 900; white-space: nowrap; opacity: 0; pointer-events: none; }
.team-col.is-locked .athlete-locked { opacity: 1; }
.sheet-locked { max-width: 440px; padding: 14px 16px; border-radius: 12px; border: 2px dashed var(--lp-line); font-size: 14px; font-weight: 700; line-height: 1.8; color: var(--lp-ink-2); }
.side-dialog { text-align: center; }
.side-dialog .side-emblem { width: 120px; height: auto; margin: 6px auto 0; filter: drop-shadow(3px 4px 0 rgba(28, 22, 19, .2)); animation: popIn .5s cubic-bezier(.3, 1.6, .5, 1); }
.side-dialog h2 b { color: var(--lp-red); }
.side-dialog[data-team="white"] h2 b { color: var(--lp-ink); -webkit-text-stroke: 0; }
.side-athletes { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 18px 0 14px; }
.side-athlete { display: flex; flex-direction: column; align-items: center; gap: 4px; width: 92px; padding: 8px 4px 10px; border-radius: 14px; border: 2px solid var(--lp-ink); background: var(--lp-white); box-shadow: 3px 3px 0 var(--lp-ink); transition: transform .2s var(--ease); }
.side-athlete:hover { transform: translateY(-3px); box-shadow: 4px 5px 0 var(--lp-red); }
.side-athlete img { width: 72px; height: 72px; object-fit: contain; }
.side-athlete b { font-size: 13px; font-weight: 900; }
.side-score { margin-top: 26px; max-width: 460px; padding: 16px 18px; border-radius: 16px; background: var(--lp-white); border: 2px solid var(--lp-ink); box-shadow: 5px 5px 0 var(--lp-ink); }
.side-score-lead { font: 400 18px/1.3 var(--f-display); margin-bottom: 10px; }
.side-score-bar { height: 14px; border-radius: 7px; background: #e9e6df; border: 1.5px solid var(--lp-ink); overflow: hidden; }
.side-score-bar i { display: block; height: 100%; width: var(--red-share, 50%); background: var(--lp-red); transition: width .6s var(--ease); }
.side-score-cols { display: flex; justify-content: space-between; margin-top: 10px; }
.side-score-cols span { display: flex; flex-direction: column; gap: 2px; }
.side-score-cols .is-white { text-align: right; }
.side-score-cols b { font: 900 32px/1 var(--f-num); }
.side-score-cols .is-red b { color: var(--lp-red); }
.side-score-cols small { font-size: 11px; font-weight: 900; color: var(--lp-ink-2); }
.side-score-cols em { font-style: normal; }
.board .rank-avatar { font-size: 13px; font-weight: 900; }
.board .rank-avatar.team-white { background: var(--lp-white); color: var(--lp-ink); }
.hero-card figcaption { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.hero-card figcaption b { font-size: 38px; }

/* 03 Keepsake album: locked scenes wait in black and white; earning one develops the colour and lands a 記念 stamp */
.album-bar { display: grid; grid-template-columns: auto auto 1fr auto; align-items: center; gap: 14px 26px; margin-top: 34px; padding: 18px 22px; border: 2px solid var(--lp-ink); border-radius: 18px; background: var(--lp-white); box-shadow: 5px 5px 0 var(--lp-ink); }
.album-count { display: flex; align-items: baseline; gap: 8px; white-space: nowrap; }
.album-count span { font-size: 12px; font-weight: 900; letter-spacing: .12em; color: var(--lp-ink-2); }
.album-count b { font: 900 46px/1 var(--f-num); color: var(--lp-red); }
.album-count small { font: 700 20px/1 var(--f-num); color: var(--lp-ink-2); }
.album-dots { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; }
.album-dots li { width: 16px; height: 16px; border-radius: 50%; border: 2px dashed rgba(28, 22, 19, .35); transition: background .4s var(--ease), border-color .4s var(--ease); }
.album-dots li.is-earned { border: 2px solid var(--lp-red-deep); background: var(--lp-red); }
.album-note { font-size: 14px; line-height: 1.7; font-weight: 700; color: var(--lp-ink-2); }
.album-bar.is-complete { box-shadow: 5px 5px 0 var(--lp-gold); }
.album-bar.is-complete .album-note { color: var(--lp-ink); font-weight: 900; }
.album-join, .keepsake-go { display: inline-flex; align-items: center; gap: 8px; padding: 11px 18px; border-radius: 999px; background: var(--lp-red); color: var(--lp-white); font-size: 14px; font-weight: 900; border: 2px solid var(--lp-ink); box-shadow: 3px 3px 0 var(--lp-ink); transition: transform .2s var(--ease), box-shadow .2s var(--ease); white-space: nowrap; }
.album-join:hover, .keepsake-go:hover { transform: translate(-1px, -2px); box-shadow: 4px 5px 0 var(--lp-ink); }
.album-join[hidden] { display: none; }

.keepsake .day-bg, .keepsake .day-athlete img { transition: filter .9s var(--ease); }
.keepsake:not(.is-earned) .day-bg { filter: grayscale(1) sepia(.18) contrast(.88) brightness(1.06); }
.keepsake:not(.is-earned) .day-athlete img { filter: grayscale(1) contrast(.9) drop-shadow(0 6px 5px rgba(28, 22, 19, .25)); }
.keepsake-lock { position: absolute; z-index: 2; left: 12px; top: 12px; padding: 5px 10px; border-radius: 8px; background: rgba(28, 22, 19, .82); color: var(--lp-white); font-size: 11px; font-weight: 900; letter-spacing: .06em; }
.keepsake-stamp { position: absolute; z-index: 2; right: 12px; top: 10px; width: 74px; height: 74px; display: grid; place-content: center; text-align: center; border-radius: 50%; border: 3px solid var(--lp-red); outline: 1.5px solid var(--lp-red); outline-offset: -8px; background: rgba(255, 253, 248, .86); color: var(--lp-red); transform: rotate(-12deg); box-shadow: 0 3px 10px rgba(28, 22, 19, .25); }
.keepsake-stamp small { font: 700 7px/1 var(--f-num); letter-spacing: .12em; }
.keepsake-stamp b { font: 400 22px/1.1 var(--f-display); }
.keepsake-goal { margin-top: 14px; padding-top: 14px; border-top: 2px dashed var(--lp-line); display: grid; gap: 12px; justify-items: start; }
.keepsake-goal p { font-size: 13px; line-height: 1.7; font-weight: 700; color: var(--lp-ink-2); }
.keepsake-goal p b { display: inline-block; margin-right: 8px; padding: 1px 8px; border-radius: 6px; background: var(--lp-red-soft); color: var(--lp-red-deep); font-size: 11px; font-weight: 900; }
.keepsake-goal .keepsake-got { color: var(--lp-red); font-weight: 900; }
.keepsake-goal .keepsake-got::before { content: "✓"; margin-right: 6px; }
.keepsake-go { padding: 9px 16px; font-size: 13px; }

/* Newly earned: the scene develops from black and white, then the stamp comes down */
.keepsake.is-new.is-in .day-bg { animation: develop 1.4s var(--ease) .25s both; }
.keepsake.is-new.is-in .keepsake-stamp { animation: stampIn .55s cubic-bezier(.3, 1.5, .5, 1) 1.2s both; }
@keyframes develop { from { filter: grayscale(1) sepia(.18) contrast(.88) brightness(1.06); } }
@keyframes stampIn { from { opacity: 0; transform: rotate(-30deg) scale(2.2); } 60% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .keepsake.is-new.is-in .day-bg, .keepsake.is-new.is-in .keepsake-stamp { animation: none; }
}
@media (max-width: 1080px) {
  .album-bar { grid-template-columns: auto 1fr; }
  .album-note { grid-column: 1 / -1; }
  .album-join { grid-column: 1 / -1; justify-self: start; }
}
@media (max-width: 760px) {
  .album-bar { padding: 16px; gap: 12px 16px; }
  .album-count b { font-size: 38px; }
  .album-dots li { width: 13px; height: 13px; }
  .album-join { width: 100%; justify-content: center; }
  .keepsake-stamp { width: 64px; height: 64px; }
  .keepsake-stamp b { font-size: 19px; }
}

/* Special keepsake (金メダル十冠): a full-width gold card under the six, the whole team at the after-party */
.keepsake.is-special { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); margin-top: 14px; box-shadow: 7px 7px 0 var(--lp-gold); }
.keepsake.is-special .day-scene { aspect-ratio: auto; min-height: 340px; border-bottom: 0; border-right: 2px solid var(--lp-ink); }
.keepsake.is-special .day-cast { left: 2%; right: 2%; top: 26%; bottom: 3%; }
.keepsake.is-special .day-cast .day-athlete { flex: 1 1 0; min-width: 0; height: auto; margin-inline: -1.4%; }
.keepsake.is-special .day-athlete img { width: 100%; height: auto; }
.keepsake.is-special .day-copy { display: flex; flex-direction: column; justify-content: center; padding: 26px 28px; background: linear-gradient(160deg, #fff8e2, var(--lp-white) 60%); }
.keepsake.is-special .day-time { color: var(--lp-gold-deep); }
.keepsake.is-special h3 { font-size: 28px; }
.keepsake.is-special .keepsake-stamp { width: 84px; height: 84px; border-color: var(--lp-gold-deep); outline-color: var(--lp-gold-deep); color: var(--lp-gold-deep); background: rgba(255, 246, 214, .94); }
.keepsake.is-special .keepsake-stamp b { font-size: 25px; }
.keepsake.is-special .keepsake-got { color: var(--lp-gold-deep); }
.gold-pips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.gold-pips ol { display: flex; gap: 5px; list-style: none; margin: 0; padding: 0; }
.gold-pips li { width: 15px; height: 15px; border-radius: 50%; border: 2px dashed rgba(28, 22, 19, .32); }
.gold-pips li.is-gold { border: 2px solid var(--lp-gold-deep); background: radial-gradient(circle at 35% 30%, #ffe27a, var(--lp-gold) 60%); }
.gold-pips span { font-size: 13px; font-weight: 900; color: var(--lp-ink-2); }
.gold-pips b { font: 900 20px/1 var(--f-num); color: var(--lp-gold-deep); }
@media (max-width: 1080px) {
  .keepsake.is-special { grid-template-columns: 1fr; }
  .keepsake.is-special .day-scene { aspect-ratio: 16 / 9; min-height: 0; border-right: 0; border-bottom: 2px solid var(--lp-ink); }
}
@media (max-width: 760px) {
  .keepsake.is-special .day-scene { aspect-ratio: 4 / 3; }
  .keepsake.is-special .day-cast .day-athlete:nth-child(-n + 2), .keepsake.is-special .day-cast .day-athlete:nth-child(n + 9) { display: none; }
  .keepsake.is-special .day-cast .day-athlete { margin-inline: -3%; }
  .keepsake.is-special .day-copy { padding: 20px; }
  .keepsake.is-special h3 { font-size: 24px; }
}

/* Album scenes: every athlete stays fully inside the frame, however wide their pose, so nobody is cropped out */
.keepsake:not(.is-special) .day-cast .day-athlete { flex: 0 1 37%; min-width: 0; height: 84%; margin-inline: -2.5%; }
.keepsake:not(.is-special) .day-cast .day-athlete.is-star { height: 96%; z-index: 1; }
.keepsake:not(.is-special) .day-cast:has(> :nth-child(4)) .day-athlete { flex-basis: 31%; height: 78%; margin-inline: -3%; }
.keepsake:not(.is-special) .day-cast:has(> :nth-child(4)) .day-athlete.is-star { height: 86%; }
.keepsake:not(.is-special) .day-athlete img { width: 100%; height: 100%; object-fit: contain; object-position: 50% 100%; }

/* 大会後のbotチェックの告知 */
.cup-copy > p b { color: var(--lp-red); white-space: nowrap; }
.small-dialog > p.entry-note { margin-top: 6px; font-weight: 700; color: var(--lp-red); }

/* Ten missions: five across on wide screens; the star of each scene is named on its card */
.day-track { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 20px; }
.keepsake:not(.is-special) .day-copy { padding: 14px 16px 18px; }
.keepsake:not(.is-special) .day-copy h3 { font-size: 19px; }
.keepsake:not(.is-special) .day-copy > p { font-size: 13px; }
.keepsake:not(.is-special) .keepsake-stamp { width: 62px; height: 62px; right: 8px; top: 8px; }
.keepsake:not(.is-special) .keepsake-stamp b { font-size: 18px; }
.keepsake:not(.is-special) .keepsake-go { white-space: normal; text-align: left; }
.day-star { display: inline-block; margin-right: 6px; padding: 1px 7px; border-radius: 6px; background: var(--lp-ink); color: var(--lp-white); font-size: 10px; letter-spacing: .08em; }
.keepsake.is-special .day-athlete.is-star { flex-grow: 1.45; z-index: 1; }
.gold-pips li.is-silver { border: 2px solid #7d8794; background: radial-gradient(circle at 35% 30%, #ffffff, #c3cad3 60%); }
.gold-pips li.is-bronze { border: 2px solid #8a4f22; background: radial-gradient(circle at 35% 30%, #f3c08e, #c07a3f 60%); }
@media (max-width: 1180px) {
  .day-track { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .day-track { grid-template-columns: 1fr; }
}
.keepsake .day-copy .day-names strong { font-size: 15px; font-weight: 900; }
.keepsake .day-copy .day-with { margin-top: 4px; font-size: 12px; font-weight: 700; color: var(--lp-ink-2); }
