.gp-page { color: var(--ink, #f4f6fc); max-width: 1540px; margin-inline: auto; min-width: 0; }
#content:has(.gp-page) { container-type: inline-size; }
.gp-page *, .gp-page *::before, .gp-page *::after { box-sizing: border-box; }
.gp-page h1, .gp-page h2, .gp-page p, .gp-page ul { margin: 0; }
.gp-page a { color: inherit; text-decoration: none; }
.gp-page button { font: inherit; cursor: pointer; }
.gp-page svg { display: block; flex: none; }
.gp-page :is(button, a):focus-visible, .gp-frame:focus-visible { outline: 3px solid var(--lime, #c9ff57); outline-offset: 3px; }
.gp-back { display: inline-flex; align-items: center; gap: 7px; min-height: 42px; margin: 0 0 11px; font-size: .91rem; font-weight: 650; }
.gp-page .gp-back { color: var(--muted, #adb8c7); }
.gp-back:hover, .gp-heading a:hover { color: var(--lime, #c9ff57); }
.gp-layout { display: grid; grid-template-columns: minmax(0, 1fr); align-items: start; gap: 32px; }
.gp-primary { display: grid; min-width: 0; gap: clamp(23px, 3.2vw, 38px); }
.gp-player { min-width: 0; border: 1px solid var(--line, #293040); border-radius: 19px; background: var(--surface, #181d2b); overflow: hidden; }
.gp-stage { position: relative; aspect-ratio: 16 / 9; isolation: isolate; overflow: hidden; background: #070a11; }
.gp-poster, .gp-frame, .gp-poster-img, .gp-poster-action { position: absolute; inset: 0; width: 100%; height: 100%; }
.gp-poster[hidden] { display: none; }
.gp-poster-img { object-fit: cover; display: block; }
.gp-frame { display: block; border: 0; }
.gp-poster-action { display: flex; align-items: flex-end; justify-content: flex-start; padding: clamp(18px, 3.4%, 40px); background: linear-gradient(180deg, transparent 45%, rgba(7, 10, 19, .2) 66%, rgba(7, 10, 19, .78)); }
.gp-script-message { padding: .7em 1em; border-radius: 8px; background: var(--bg); color: var(--ink); }
@media (scripting: none) {
  .gp-poster .gp-poster-action, .gp-player .gp-actions { display: none; }
}
.gp-launch { display: inline-flex; align-items: center; gap: 10px; max-width: 96%; border: 0; border-radius: 11px; padding: .76em 1.2em .76em .95em; color: #101607; background: var(--lime, #c9ff57); box-shadow: 0 3px 17px #02040a5c; font-size: clamp(1rem, 1.45vw, 1.2rem) !important; font-weight: 780 !important; line-height: 1.1; transition: transform .18s ease, background .18s ease; }
.gp-launch svg { width: 21px; height: 21px; fill: currentColor; }
.gp-launch:hover { transform: translateY(-2px); background: #ddff96; }
.gp-launch:active { transform: translateY(1px); }
.gp-player-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; min-height: 90px; padding: 17px clamp(15px, 2.5%, 27px); }
.gp-name-block { min-width: 0; }
.gp-category { display: block; margin-bottom: 2px; color: var(--lime, #c9ff57); font-size: .74rem; font-weight: 750; letter-spacing: .09em; text-transform: uppercase; }
.gp-player h1 { color: var(--ink, #f4f6fc); font-size: clamp(1.45rem, 2.25vw, 2.15rem); font-weight: 760; line-height: 1.06; letter-spacing: -.035em; text-wrap: balance; }
.gp-actions { display: flex; align-items: center; gap: 7px; flex: none; margin-inline-start: auto; }
.gp-audio { display: flex; align-items: center; gap: 5px; padding-right: 9px; min-width: 0; border: 1px solid var(--line); background: var(--bg); border-radius: 10px; }
.gp-audio .gp-mute { min-width: 38px; min-height: 40px; padding-inline: 8px; border: 0; background: transparent; }
.gp-audio .gp-mute:hover { color: var(--lime); }
.gp-volume { --thumb-size: 16px; --level: 100%; --track: linear-gradient(to right, var(--lime) var(--level), #48505a var(--level)); appearance: none; background: transparent; border: 0; width: clamp(76px, 7vw, 112px); min-width: 0; height: 40px; margin: 0; padding: 0; accent-color: var(--lime); cursor: pointer; touch-action: none; }
.gp-volume::-webkit-slider-runnable-track { height: 4px; border-radius: 4px; background: var(--track); }
.gp-volume::-moz-range-track { height: 4px; border-radius: 4px; background: var(--track); }
.gp-volume::-webkit-slider-thumb { appearance: none; width: var(--thumb-size); height: var(--thumb-size); margin-top: -6px; border: 0; border-radius: 50%; background: var(--lime); }
.gp-volume::-moz-range-thumb { width: var(--thumb-size); height: var(--thumb-size); border: 0; border-radius: 50%; background: var(--lime); }
@media (forced-colors: active) { .gp-volume { appearance: auto; } }
.gp-volume:focus-visible { outline: 2px solid var(--lime); outline-offset: 1px; border-radius: 4px; }
.gp-volume-value { min-width: 4ch; color: var(--muted); text-align: right; font-size: .78rem; font-variant-numeric: tabular-nums; }
.gp-tool { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 43px; min-width: 43px; padding: 0 10px; border: 1px solid var(--line, #30384b); border-radius: 10px; color: var(--ink, #f4f6fc); background: var(--bg, #121624); font-size: .91rem !important; font-weight: 650 !important; }
.gp-tool:hover { border-color: var(--muted, #a4afc0); }
.gp-save[aria-pressed='true'], .gp-mute[aria-pressed='true'] { color: var(--lime, #c9ff57); }
.gp-save[aria-pressed='true'] svg { fill: var(--lime, #c9ff57); }
.gp-save { padding-inline: 13px; }
.gp-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.gp-page h2 { font-size: clamp(1.26rem, 1.85vw, 1.55rem); font-weight: 750; letter-spacing: -.025em; line-height: 1.2; }
.gp-heading a { display: inline-flex; align-items: center; gap: 2px; white-space: nowrap; padding-block: 5px; color: var(--muted, #adb8c7); font-size: .79rem; font-weight: 650; }
.gp-rec-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(210px,100%), 1fr)); gap: 8px 18px; margin-top: 13px; }
.gp-rec { display: flex; align-items: center; gap: 12px; min-width: 0; padding: 3px 0; }
.gp-rec > img { width: clamp(74px, 9vw, 104px); height: auto; aspect-ratio: 1.45; flex: none; border-radius: 9px; object-fit: cover; background: var(--surface, #181d2b); transition: filter .18s ease; }
.gp-rec-text { min-width: 0; flex: 1; }
.gp-rec-text strong { display: block; font-size: .99rem; font-weight: 700; line-height: 1.13; }
.gp-rec-text small { display: block; margin-top: 4px; color: var(--muted, #adb8c7); font-size: .8rem; line-height: 1.2; }
.gp-rec-arrow { display: none; color: var(--muted, #adb8c7); }
.gp-rec:hover strong, .gp-world:hover strong { color: var(--lime, #c9ff57); }
.gp-rec:hover img { filter: brightness(1.12); }
.gp-guide p { max-width: 74ch; margin-top: 9px; color: var(--muted, #adb8c7); line-height: 1.55; font-size: .98rem; }
.gp-controls { display: flex; flex-wrap: wrap; gap: 9px 20px; margin-top: 15px !important; padding: 0; list-style: none; }
.gp-controls li { display: flex; align-items: center; gap: 8px; color: var(--ink, #f4f6fc); font-size: .89rem; }
.gp-controls kbd { display: inline-flex; min-height: 27px; min-width: 27px; align-items: center; justify-content: center; border: 1px solid var(--line, #30384b); border-bottom-width: 2px; border-radius: 5px; padding: 2px 7px; background: var(--surface, #181d2b); color: var(--ink, #f4f6fc); font-family: inherit; font-size: .78rem; font-weight: 650; line-height: 1.24; }
.gp-world-list { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 9px; margin-top: 13px; }
.gp-world { display: flex; position: relative; isolation: isolate; min-width: 0; align-items: flex-end; gap: 4px; min-height: 63px; aspect-ratio: 2.9; overflow: hidden; padding: clamp(7px, 1vw, 13px); border: 1px solid var(--line, #30384b); border-radius: 10px; background: var(--surface, #181d2b); }
.gp-world img, .gp-world::after { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; object-fit: cover; }
.gp-world { width: 100%; }
.gp-world::after { content: ''; z-index: -1; background: linear-gradient(0deg, #02040bed, #05091579 58%, #070b150d); }
.gp-world strong { position: relative; flex: 1; color: #fff; font-size: clamp(.77rem, 1.25vw, 1rem); line-height: 1.13; }
.gp-world-indicator { display: flex; width: 19px; height: 19px; align-items: center; justify-content: center; flex: none; border-radius: 50%; color: white; }
.gp-world[aria-current] { border-color: var(--lime, #c9ff57); }
.gp-world[aria-current] .gp-world-indicator { background: var(--lime, #c9ff57); color: #121523; }
.gp-missing { padding: 32px; }
.gp-missing a { display: inline-block; padding-block: 12px; color: var(--lime, #c9ff57); }
.gp-player:fullscreen, .gp-player.gp-expanded { display: grid; grid-template-rows: minmax(0, 1fr) auto; width: 100%; height: 100%; border: none; border-radius: 0; background: #090c14; }
.gp-player:fullscreen .gp-stage, .gp-expanded .gp-stage { aspect-ratio: auto; }
.gp-player:fullscreen .gp-player-bar, .gp-expanded .gp-player-bar { min-height: 60px; padding-top: 8px; padding-bottom: max(8px, env(safe-area-inset-bottom)); }
.gp-player:fullscreen .gp-player-bar h1, .gp-expanded .gp-player-bar h1 { font-size: 1.35rem; }
.gp-player.gp-expanded { position: fixed; inset: 0; z-index: 99999; height: 100dvh; }
html.gp-lock-scroll { overflow: hidden; }
html.gp-lock-scroll #content { container-type: normal; }
@container (min-width: 840px) {
  .gp-layout { grid-template-columns: minmax(0, 1fr) clamp(222px, 23.5%, 300px); gap: clamp(20px, 2.1vw, 34px); }
  .gp-rec-list { grid-template-columns: 1fr; gap: 12px; }
  .gp-related { padding-top: 1px; }
  .gp-rec > img { width: clamp(75px, 7.3vw, 103px); }
  .gp-rec-arrow { display: block; }
}
@container (max-width: 540px) {
  .gp-player { border-radius: 13px; }
  .gp-player-bar { min-height: 73px; }
  .gp-tool { min-height: 42px; min-width: 42px; }
  .gp-save { padding-inline: 9px; }
  .gp-save span { display: none; }
  .gp-rec-list { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px 10px; }
  .gp-rec { align-items: flex-start; flex-direction: column; gap: 7px; }
  .gp-rec > img { width: 100%; aspect-ratio: 1.74; }
}
@container (max-width: 480px) {
  .gp-player-bar { flex-wrap: wrap; gap: 6px; }
  .gp-actions { flex: 1 0 100%; }
  .gp-audio { flex: 1; }
  .gp-volume { flex: 1; }
}
@container (max-width: 430px) {
  .gp-stage:has(.gp-frame) { aspect-ratio: 1 / 1.16; }
  .gp-world { align-items: flex-end; padding: 7px; }
  .gp-world-indicator { display: none; }
  .gp-player:fullscreen .gp-stage, .gp-expanded .gp-stage { aspect-ratio: auto; }
}
@media (prefers-reduced-motion: reduce) {
  .gp-page *, .gp-page *::before, .gp-page *::after { transition: none !important; }
}

/* Leave room for the riding controls inside the frame and the arcade games alongside it. */
.bike-route .gp-back { min-height: 30px; margin-bottom: 8px; }
.bike-route .gp-stage { max-height: calc(100dvh - var(--bar) - 155px); }
.bike-route .gp-player-bar { min-height: 62px; padding-block: 9px; }
.bike-route .gp-player h1 { font-size: clamp(1.2rem, 2vw, 1.7rem); }
.gp-bike-guide { margin-top: 24px; }
.gp-bike-guide summary { width: fit-content; color: var(--ink); font-size: 1rem; cursor: pointer; }
.gp-bike-guide summary:focus-visible { outline: 3px solid var(--lime); outline-offset: 3px; }
.bike-route .gp-player:fullscreen .gp-stage, .bike-route .gp-expanded .gp-stage { max-height: none; height: auto; }
@media (max-width: 760px) and (orientation: portrait) {
  .bike-route .gp-stage {
    aspect-ratio: 1 / 1.04;
    max-height: calc(100dvh - var(--bar) - 200px - env(safe-area-inset-bottom));
  }
  .bike-route .gp-layout { gap: 19px; }
  .bike-route .gp-player:fullscreen .gp-stage, .bike-route .gp-expanded .gp-stage {
    aspect-ratio: auto; max-height: none;
  }
}
@media (orientation: landscape) and (max-height: 500px) {
  .bike-route { --bar: 44px; --bottom-nav: 0px; }
  .bike-route #content { padding: 6px 12px calc(12px + var(--bottom-nav)); }
  .bike-route .gp-back { display: none; }
  .bike-route .gp-stage { aspect-ratio: auto; height: calc(100dvh - var(--bar) - var(--bottom-nav) - 58px); max-height: none; }
  .bike-route .gp-player-bar { min-height: 44px; padding: 3px 9px; }
  .bike-route .gp-category { display: none; }
  .bike-route .gp-tool { min-height: 36px; min-width: 38px; }
  .gp-player-bar .gp-volume { width: 74px; }
  .gp-player-bar .gp-save span { display: none; }
  .gp-audio .gp-mute { min-height: 34px; }
  .gp-player-bar .gp-volume-value { display: none; }
  .bike-route .gp-player:fullscreen .gp-stage, .bike-route .gp-expanded .gp-stage { height: auto; }
}
@media (orientation: landscape) and (max-height: 500px) and (max-width: 760px) {
  .bike-route { --bottom-nav: calc(54px + env(safe-area-inset-bottom)); }
}
@media (orientation: landscape) and (max-height: 500px) and (min-width: 600px) {
  .bike-route .gp-layout { grid-template-columns: minmax(0, 1fr) clamp(140px, 23%, 210px); gap: 15px; }
  .bike-route .gp-heading { flex-wrap: wrap; gap: 3px 7px; }
  .bike-route .gp-heading h2 { font-size: 1.05rem; }
  .bike-route .gp-rec-list { grid-template-columns: 1fr; gap: 6px; margin-top: 7px; }
  .bike-route .gp-rec { flex-direction: row; align-items: center; gap: 7px; }
  .bike-route .gp-rec > img { width: 48px; aspect-ratio: 1.4; }
  .bike-route .gp-rec-text strong { font-size: .82rem; }
  .bike-route .gp-rec-text small { font-size: .68rem; }
  .bike-route .gp-rec-arrow { display: none; }
}
