/* 2026 entries and the road to the national final. */
.gp-top-page .entry-growth-year {
  display: block;
  margin-bottom: 16px;
  font-size: clamp(1.8rem, 2vw, 2.6rem);
  line-height: 1.5;
}

.gp-top-page .entry-growth-total {
  display: block;
  font-family: 'Open Sans', sans-serif;
  font-size: clamp(6rem, 7.4vw, 9.8rem);
  font-weight: 800;
  letter-spacing: -.06em;
  line-height: 1;
  white-space: nowrap;
}

.gp-top-page .entry-growth-total small {
  margin-left: 10px;
  font-size: .26em;
  letter-spacing: 0;
}

.gp-top-page .entry-growth-column--latest text { font-size: 20px; }
.gp-top-page .entry-growth-panel.is-visible .entry-growth-columns g:nth-child(9) rect { transition-delay: .32s; }
.gp-top-page .tkgp-countdown.is-text-mode { display: none; }

.road-to-final {
  --rtf-ink: #f5f7ff;
  --rtf-muted: #a2adc6;
  --rtf-cyan: #7ef5ff;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(56px, 7vw, 100px) 0 0;
  color: var(--rtf-ink);
  background:
    radial-gradient(ellipse at 45% 90%, #12326a80, transparent 60%),
    radial-gradient(ellipse at 90% 0%, #31276b70, transparent 45%),
    #080d1a;
  scroll-margin-top: 100px;
}

.road-to-final::before {
  content: '';
  position: absolute;
  z-index: -1;
  inset: 0;
  background-image: linear-gradient(#a0bbf507 1px, transparent 1px), linear-gradient(90deg, #a0bbf507 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(transparent, #000 45%, #000);
  pointer-events: none;
}

.rtf-orbit {
  position: absolute;
  z-index: -1;
  top: -430px;
  right: -100px;
  width: 1000px;
  height: 1000px;
  border: 1px solid #90c3ff1c;
  border-radius: 50%;
  box-shadow: 0 0 0 90px #90c3ff05, 0 0 0 180px #90c3ff03;
  opacity: .5;
  pointer-events: none;
}

.rtf-inner { position: relative; z-index: 2; width: min(1280px, calc(100% - 96px)); margin: 0 auto; }
.rtf-map { position: absolute; z-index: -1; top: -70px; right: 5%; width: min(68vw, 780px); aspect-ratio: 582 / 628; background: url('../img/top/road-to-final-japan.png') center / contain no-repeat; filter: grayscale(1) sepia(1) saturate(2) hue-rotate(145deg); opacity: .14; pointer-events: none; }
.rtf-eyebrow { display: flex; justify-content: space-between; gap: 20px; padding-bottom: 24px; border-bottom: 1px solid #a2adc633; color: var(--rtf-muted); font: 700 1.4rem/1.5 'Open Sans', sans-serif; letter-spacing: .16em; }
.rtf-heading { display: flex; align-items: center; justify-content: space-between; gap: 40px; margin: 40px 0 0; }
.rtf-heading h2 { margin: 0; color: #fff; font: italic 800 clamp(5rem, 7.1vw, 10rem)/.96 'Open Sans', sans-serif; letter-spacing: -.07em; }
.rtf-heading h2 span { display: block; width: fit-content; padding-right: .15em; background: linear-gradient(110deg, #fff 5%, #b9e9ff 38%, #66dfff 70%, #a5a3ff); background-clip: text; -webkit-background-clip: text; color: transparent; font-size: 1.25em; }
.rtf-live { position: relative; display: flex; flex-direction: column; align-items: flex-start; min-width: 270px; padding: 25px 0 25px 32px; border-left: 2px solid var(--rtf-cyan); }
.rtf-live-label { display: flex; align-items: center; gap: 10px; color: var(--rtf-cyan); font: 700 1.2rem/1.5 'Open Sans', sans-serif; letter-spacing: .16em; }
.rtf-live-label i { width: 7px; height: 7px; border-radius: 50%; background: var(--rtf-cyan); box-shadow: 0 0 14px #7ef5ff; animation: rtf-beacon 2.8s ease-in-out infinite; }
.rtf-live strong { margin: 12px 0; color: #fff; font-size: clamp(2.6rem, 3vw, 4rem); font-weight: 800; line-height: 1.35; white-space: nowrap; }
.rtf-live-date { color: var(--rtf-muted); font: 700 1.2rem/1.5 'Open Sans', sans-serif; letter-spacing: .16em; }

.rtf-route { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin: 24px 0 0; padding: 0; list-style: none; }
.rtf-stage { position: relative; min-width: 0; display: flex; flex-direction: column; padding: 28px 22px 24px; border: 1px solid #a2adc633; border-top: 2px solid #a2adc657; background: #101829d9; }
.rtf-stage::after { content: ''; position: absolute; z-index: 2; right: -20px; top: 50%; width: 24px; height: 24px; border-top: 1px solid #586982; border-right: 1px solid #586982; background: #0d1526; transform: translate(-50%, -50%) rotate(45deg); }
.rtf-stage:last-child::after { content: none; }
.rtf-stage-label { min-height: 5.25em; margin: 0; color: #e2e9f6; font-size: clamp(1.6rem, 1.35vw, 1.8rem); line-height: 1.75; }
.rtf-stage-label--entry { font-weight: 700; }
.rtf-number { display: flex; align-items: baseline; gap: 6px; margin: 20px 0 28px; color: #e9edfa; font: 700 clamp(6.2rem, 5.8vw, 8.2rem)/1.1 'Open Sans', sans-serif; letter-spacing: -.06em; white-space: nowrap; }
.rtf-number small { color: #bdc9e3; font-size: .29em; font-weight: 700; letter-spacing: -.02em; }
.rtf-number--entries { font-size: clamp(5.2rem, 4.8vw, 6.8rem); }
.rtf-stage-caption { margin: auto 0 0; color: #e2e9f6; font-size: 1.6rem; font-weight: 700; line-height: 1.6; }
.rtf-stage-footer { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; margin-top: auto; padding-top: 18px; border-top: 1px solid #a2adc626; color: #bbc7dc; font-size: 1.25rem; line-height: 1.5; }
.rtf-stage-footer span:last-child { font-family: 'Open Sans', sans-serif; white-space: nowrap; }
.rtf-stage--entry { background: #10182966; }
.rtf-stage--judging { border-color: #7ef5ffb3; background: linear-gradient(150deg, #113c56, #102540 65%, #172c50); box-shadow: 0 0 24px #3fafff20, inset 0 1px 24px #7ef5ff08; animation: rtf-judging-glow 3.2s ease-in-out infinite; }
.rtf-current-indicator { position: absolute; top: -12px; right: 16px; padding: 3px 12px; color: #071824; background: var(--rtf-cyan); font-size: 1.2rem; font-weight: 800; line-height: 1.5; letter-spacing: .08em; }
.rtf-selection-pending { display: inline-block; color: var(--rtf-cyan); font-weight: 700; }
.rtf-stage--judging .rtf-number, .rtf-stage--judging .rtf-number small { color: var(--rtf-cyan); }
.rtf-stage--judging .rtf-number { animation: rtf-number-glow 3.2s ease-in-out infinite; }
.rtf-stage--entry.rtf-stage--judging::after { border-color: var(--rtf-cyan); }
.rtf-stage--final { background: #101829d9; }

.rtf-areas { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 28px; margin-top: 36px; }
.rtf-areas-label { color: #e2e9f6; font-size: 1.4rem; font-weight: 700; letter-spacing: .1em; }
.rtf-areas ul { display: flex; flex-wrap: wrap; gap: 8px 16px; margin: 0; padding: 0; list-style: none; color: var(--rtf-muted); font-size: 1.3rem; }
.rtf-areas li { white-space: nowrap; }

/* Continue the TOP8 card into the final, within the same backdrop. */
.rtf-bridge { --rtf-origin: calc(87.5% + 5.25px); --rtf-destination: 52px; position: relative; height: 128px; color: #7d879e; }
.rtf-bridge::before { content: ''; position: absolute; top: 0; left: var(--rtf-destination); width: calc(var(--rtf-origin) - var(--rtf-destination)); height: 64px; border-right: 1px solid currentColor; border-bottom: 1px solid currentColor; border-bottom-right-radius: 26px; }
.rtf-bridge::after { content: ''; position: absolute; top: 63px; left: calc(var(--rtf-destination) - 26px); width: 26px; height: 65px; border-top: 1px solid currentColor; border-left: 1px solid currentColor; border-top-left-radius: 26px; }
.rtf-bridge i { position: absolute; bottom: 1px; left: calc(var(--rtf-destination) - 31px); width: 10px; height: 10px; border-right: 1px solid currentColor; border-bottom: 1px solid currentColor; transform: rotate(45deg); }
.rtf-finale { position: relative; isolation: isolate; padding: 20px 0 clamp(64px, 7vw, 100px); }
.rtf-finale::before { content: ''; position: absolute; z-index: -1; inset: -220px 0 0; background: linear-gradient(180deg, #080d1a22, #080d1a99), linear-gradient(90deg, #080d1ab3, #080d1a44), url('../img/top/hero-cinematic/stage-clean.jpg') center / cover no-repeat; mask-image: linear-gradient(180deg, transparent, #000 40%); -webkit-mask-image: linear-gradient(180deg, transparent, #000 40%); pointer-events: none; }
.gp-top-page .rtf-finale .top-final-venue-inner { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); align-items: center; gap: 44px clamp(28px, 4vw, 60px); }
.gp-top-page .rtf-finale .top-final-venue-kicker { color: #d5d3ff; font-size: 1.5rem; }
.rtf-finale-title { margin: 0; color: #fff; font: italic 800 clamp(9rem, 13vw, 18rem)/.9 'Open Sans', sans-serif; letter-spacing: -.065em; text-shadow: 0 12px 48px #080d1a66; }
.rtf-finale-title span { display: block; margin-bottom: 16px; font-size: clamp(2.4rem, 2.8vw, 3.6rem); line-height: 1.2; letter-spacing: .08em; }
.gp-top-page .rtf-finale .top-final-venue-copy p:not(.top-final-venue-kicker) { max-width: 580px; margin-top: 28px; font-size: 1.6rem; line-height: 1.9; }
.rtf-finale-photo { position: relative; min-width: 0; margin: 0; }
.rtf-photo-slides { position: relative; height: clamp(280px, 30vw, 400px); overflow: hidden; clip-path: polygon(6% 0, 100% 0, 100% 90%, 94% 100%, 0 100%, 0 10%); }
.rtf-photo-slides img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; object-position: 34% 30%; opacity: 0; }
.rtf-photo-slides img:first-child { opacity: 1; }
.rtf-finale-photo.is-playing .rtf-photo-slides img { animation: rtf-photo-fade 24s linear infinite; }
.rtf-finale-photo.is-paused .rtf-photo-slides img { animation-play-state: paused; }
.rtf-finale-photo .rtf-photo-slides img:nth-child(2) { animation-delay: -18s; object-position: 50% 30%; }
.rtf-finale-photo .rtf-photo-slides img:nth-child(3) { animation-delay: -12s; }
.rtf-finale-photo .rtf-photo-slides img:nth-child(4) { animation-delay: -6s; }
.rtf-photo-toggle { position: absolute; right: 14px; bottom: 44px; display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 1px solid #ffffff66; border-radius: 50%; color: #fff; background: #080d1ab3; font-size: 1.2rem; cursor: pointer; }
.rtf-photo-toggle[hidden] { display: none; }
.rtf-photo-toggle:hover { background: #152740; }
.rtf-photo-toggle:focus-visible { outline: 2px solid var(--rtf-cyan); outline-offset: 4px; }
.rtf-finale-photo figcaption { margin-top: 10px; color: #bdc9e3; font-size: 1.2rem; text-align: right; }
.gp-top-page .rtf-finale .top-final-venue-details { grid-column: 1 / -1; grid-template-columns: minmax(120px, .7fr) minmax(0, 1.8fr) auto; gap: 28px; align-items: center; padding: 30px 0 0; border-top: 1px solid #c4c1ff66; border-left: 0; max-width: none; }
.gp-top-page .rtf-finale .top-final-venue-details img { width: min(220px, 100%); }
.gp-top-page .rtf-finale .top-final-venue-details dl { grid-template-columns: auto auto; gap: 28px; }
.gp-top-page .rtf-finale .top-final-venue-details dt { font-size: 1.2rem; }
.rtf-broadcast { display: flex; align-items: center; gap: 12px; margin: 0; color: #fff; font-size: 1.5rem; font-weight: 700; line-height: 1.7; }
.rtf-broadcast > i { color: #ff5266; font-size: 2.8rem; }
#final-venue { scroll-margin-top: 100px; }

@keyframes rtf-beacon { 50% { box-shadow: 0 0 0 5px #7ef5ff12, 0 0 22px #7ef5ff66; } }
@keyframes rtf-judging-glow {
  0%, 100% { border-color: #7ef5ff66; box-shadow: 0 0 10px #7ef5ff0d, inset 0 0 14px #7ef5ff05; }
  50% { border-color: #7ef5ff; box-shadow: 0 0 30px #7ef5ff33, inset 0 0 28px #7ef5ff12; }
}
@keyframes rtf-number-glow {
  0%, 100% { text-shadow: 0 0 6px #7ef5ff0d; }
  50% { text-shadow: 0 0 22px #7ef5ff66; }
}
@keyframes rtf-photo-fade { 0%, 20%, 100% { opacity: 1; } 25%, 95% { opacity: 0; } }

@media (max-width: 1100px) {
  .rtf-inner { width: calc(100% - 64px); }
  .rtf-route { gap: 10px; }
  .rtf-stage { padding: 24px 18px; }
  .rtf-stage::after { width: 16px; height: 16px; right: -14px; }
  .rtf-bridge { --rtf-origin: calc(87.5% + 3.75px); }
}

@media (min-width: 768px) and (max-width: 1000px) {
  .rtf-route { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
  .rtf-stage-label { font-size: 1.8rem; }
  .rtf-stage:nth-child(2)::after { content: none; }
  .rtf-bridge { --rtf-origin: calc(75% + 5px); }
}

@media (max-width: 1000px) {
  .gp-top-page .rtf-finale .top-final-venue-details { grid-template-columns: minmax(140px, .7fr) minmax(0, 1.5fr); gap: 24px; }
  .gp-top-page .rtf-finale .top-final-venue-details dl { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .rtf-broadcast { grid-column: 2; }
}

@media (max-width: 767.98px) {
  .gp-top-page #topbar .h-topbar-entry-text { font-size: 1.2rem; }
  .road-to-final { padding: 40px 0 0; scroll-margin-top: 78px; }
  .rtf-inner { width: calc(100% - 36px); }
  .rtf-map { top: 0; right: -18px; width: 115%; opacity: .12; }
  .rtf-eyebrow { font-size: 1.3rem; letter-spacing: .12em; padding-bottom: 18px; }
  .rtf-heading { display: block; margin-top: 30px; }
  .rtf-heading h2 { font-size: clamp(5.2rem, 13.5vw, 9rem); }
  .rtf-live { margin-top: 30px; padding: 4px 0 4px 18px; min-width: 0; }
  .rtf-live strong { font-size: 2.7rem; margin: 8px 0; }
  .rtf-live-label { font-size: 1rem; }
  .rtf-live-date { font-size: 1rem; }
  .rtf-route { grid-template-columns: 1fr; gap: 18px; margin-top: 30px; padding-left: 18px; border-left: 1px solid #546c8c88; }
  .rtf-stage { padding: 24px 20px; border-top-width: 1px; }
  .rtf-stage::after { top: 26px; left: -24px; right: auto; width: 10px; height: 10px; border: 1px solid #7184a4; border-radius: 50%; background: #080d1a; transform: none; }
  .rtf-stage:last-child::after { content: ''; }
  .rtf-stage--judging::after { background: var(--rtf-cyan); border-color: var(--rtf-cyan); box-shadow: 0 0 18px #7ef5ff88; }
  .rtf-stage-label { min-height: 0; font-size: 1.7rem; }
  .rtf-number { font-size: 7.2rem; margin: 20px 0 24px; }
  .rtf-number--entries { font-size: 5.8rem; }
  .rtf-stage-footer { padding-top: 16px; }
  .rtf-areas { margin-top: 28px; }
  .rtf-areas ul { gap: 10px 16px; }
  .rtf-bridge { --rtf-origin: calc(50% + 9px); height: 104px; }
  .rtf-bridge::before { height: 52px; }
  .rtf-bridge::after { top: 51px; height: 53px; }
  .rtf-finale { padding-top: 16px; }
  .rtf-finale::before { inset: -140px 0 0; background-position: 58% center; }
  .rtf-finale-title { font-size: clamp(8.8rem, 23vw, 15rem); }
  .gp-top-page .rtf-finale .top-final-venue-inner { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .gp-top-page .rtf-finale .top-final-venue-kicker { font-size: 1.3rem; letter-spacing: .12em; }
  .gp-top-page .rtf-finale .top-final-venue-copy p:not(.top-final-venue-kicker) { font-size: 1.5rem; }
  .rtf-photo-slides { height: clamp(220px, 64vw, 380px); }
  .gp-top-page .rtf-finale .top-final-venue-details { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .rtf-broadcast { grid-column: auto; }
  .gp-top-page .rtf-finale .top-final-venue-details dd { font-size: 1.9rem; }
  #final-venue { scroll-margin-top: 78px; }
}

@media (prefers-reduced-motion: reduce) {
  .rtf-live-label i, .rtf-stage--judging, .rtf-stage--judging .rtf-number { animation: none; }
  .rtf-finale-photo.is-playing .rtf-photo-slides img { animation: none; opacity: 0; }
  .rtf-finale-photo.is-playing .rtf-photo-slides img:first-child { opacity: 1; }
  .rtf-photo-toggle { display: none; }
  .gp-top-page .entry-growth-panel.is-visible .entry-growth-columns g:nth-child(9) rect { transition-delay: 0s; }
}
