/* Illustrated game panels and consistent, optically centered controls. */
.detail-toggle {
  width: 44px; height: 44px; flex: 0 0 44px; padding: 0;
  display: grid; place-items: center; align-self: center;
  border: 2px solid #a8dcff; border-radius: 14px;
  background: linear-gradient(#168bff, #0960e9); color: #fff;
  box-shadow: 0 4px 0 #084eb9, inset 0 1px 0 #fff7;
}
.detail-toggle::before,
.roadmap-list details[open] .detail-toggle::before { content: none; display: none; }
.detail-toggle svg { width: 22px; height: 22px; display: block; }
.detail-toggle path { stroke: currentColor; stroke-width: 2.8; stroke-linecap: round; }
.roadmap-list details[open] .detail-toggle {
  background: linear-gradient(#08ce85, #009c5c); border-color: #9affd1;
  box-shadow: 0 4px 0 #007e49, inset 0 1px 0 #fff7;
}
.roadmap-list details[open] .toggle-vertical { display: none; }
.roadmap-list summary { min-height: 122px; gap: 26px; }
.roadmap-list summary:hover .detail-toggle { filter: brightness(1.08); }
.roadmap-list summary:focus-visible { outline: 3px solid #0879ff; outline-offset: 5px; border-radius: 12px; }

.contact { padding-bottom: 64px; }
.contact-layout {
  padding: 52px; gap: 65px; border-radius: 28px; align-items: center;
  background: linear-gradient(120deg, #087bfa, #0757e0);
  border: 2px solid #81c9ff; box-shadow: 0 9px 0 #0644b5, 0 24px 45px #0b62d51c;
}
.contact-layout h2 { color: #fff; font-weight: 600; font-size: clamp(48px, 5.6vw, 80px); }
.contact-layout h2 span { color: #ffdb30; text-shadow: 0 3px 0 #c586132b; }
.contact-layout > div > p { color: #fff; font-size: 18px; line-height: 1.7; }
.contact-layout .button {
  min-height: 58px; border-radius: 16px; padding: 16px 26px;
  background: linear-gradient(#ff4b64, #ec2044); border: 2px solid #ffadb8;
  box-shadow: 0 5px 0 #ae1733, 0 12px 22px #002e9229; color: white; font-size: 16px;
}
.contact-layout .button:hover { background: linear-gradient(#ff6b7f, #f52e50); box-shadow: 0 5px 0 #ae1733, 0 14px 24px #002e9230; }
.contact-details {
  padding: 32px; border-radius: 20px; background: #fff; gap: 23px;
  border-top: 6px solid #00c881; box-shadow: 0 9px 22px #0035a12b;
}
.contact-details > div { padding-bottom: 20px; border-color: #cfe3fc; }
.contact-details > div:last-child { padding-bottom: 0; border-bottom: 0; }
.contact-details .micro { color: #075fce; font-weight: 700; letter-spacing: .04em; }
.contact-details strong { font-size: 22px; color: #143f76; }
.contact-details p, .contact-details address { color: #315678; font-size: 15px; }
.contact-details address { white-space: pre-line; }

.idea-grid { gap: 28px; }
.idea-card, .idea-card:hover {
  padding: 0; border-radius: 26px; border: 2px solid #a5d5ff; background: #fff;
  box-shadow: 0 7px 0 #0b57c9, 0 20px 32px #0760d51c;
  display: flex; flex-direction: column; min-height: 0; color: #0a50ad;
  transition: transform .2s, box-shadow .2s; isolation: isolate;
}
.idea-card:hover { transform: translateY(-5px); box-shadow: 0 10px 0 #0b57c9, 0 26px 35px #0760d528; }
.idea-card:active { transform: translateY(2px); }
.idea-card:focus-visible { outline: 4px solid #ffb817; outline-offset: 6px; }
.idea-art {
  height: 300px; position: relative; display: grid; place-items: center;
  background: radial-gradient(ellipse at 50% 38%, #55d9ff 0%, #168bff 52%, #0861e7 100%);
  overflow: hidden;
}
.idea-art img { display: block; width: 330px; height: 330px; object-fit: contain; filter: drop-shadow(0 13px 10px #063a7725); transition: transform .4s ease; }
.idea-card:hover .idea-art img { transform: scale(1.045) rotate(-2deg); }
.idea-card .idea-type {
  position: absolute; top: 20px; left: 22px; z-index: 2; max-width: none;
  font-size: 12px; font-weight: 700; color: #fff; letter-spacing: .03em;
  padding: 8px 12px; border: 1px solid #ffffff70; border-radius: 100px; background: #0758bf;
}
.idea-body { padding: 26px 28px 28px; display: block; }
.idea-card h3 { color: #0755bd; font-size: 36px; line-height: 1.15; margin: 0 0 22px; letter-spacing: -.045em; }
.idea-card .idea-link {
  display: flex; align-items: center; width: fit-content; gap: 28px; margin: 0;
  padding: 12px 18px; background: #0873f1; color: #fff; font-size: 14px; font-weight: 700;
  border: 1px solid #6bb5ff; border-radius: 13px; box-shadow: 0 3px 0 #084db0;
}
.idea-link svg { width: 20px; height: 20px; flex: 0 0 20px; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; fill: none; }
.power-idea, .power-idea:hover { border-color: #ffdb66; box-shadow: 0 7px 0 #e39a00, 0 20px 32px #b8780e1c; }
.power-idea:hover { box-shadow: 0 10px 0 #e39a00, 0 26px 35px #b8780e28; }
.power-idea .idea-art { background: radial-gradient(ellipse at 50% 38%, #fff09a 0%, #ffda36 52%, #ffb510 100%); }
.power-idea .idea-type { background: #fff4be; border-color: #fff; color: #805000; }
.power-idea h3 { color: #a35c00; }
.power-idea .idea-link { background: #00a766; border-color: #67eab6; color: #fff; box-shadow: 0 3px 0 #007a48; }
.puzzle-vignette { height: 330px; display: grid; place-items: center; background: none; overflow: visible; }
.puzzle-art { display: block; width: min(390px,100%); height: 330px; object-fit: contain; filter: drop-shadow(0 15px 12px #08578818); }
.teaser-art { position: absolute; width: clamp(180px,24vw,350px); height: auto; top: 50%; left: 4%; transform: translateY(-50%) rotate(-9deg); pointer-events: none; }
.teaser { overflow: hidden; }
.teaser-content { position: relative; }
.hero-watch { color: #075fd9; gap: 12px; }
.hero-watch svg { display: block; flex: 0 0 20px; }
.trailer-cover-top { font-size: 12px; }
.trailer-cover-bottom > span { font-size: 13px; }
.trailer-cover .large-play { background: #ffcf29; color: #754600; border: 3px solid #ffefad; box-shadow: 0 6px 0 #c78c10, 0 12px 35px #0004; }
.video-dialog .dialog-top { font-size: 12px; }
.video-bottom { font-size: 13px; }
.projects {
  border: 0;
  background: linear-gradient(180deg, #fff 0%, #f7fcff 100px, #e3f5ff 290px, #e3f5ff 73%, #f6fcff 92%, #fff 100%);
}
.studio { border: 0; padding-bottom: 25px; }
.worlds { padding-top: 45px; }
.hero { background: radial-gradient(ellipse at 83% 35%, #e5f7ff, transparent 58%), #fff; }
.download-section { display: flex; align-items: center; justify-content: space-between; gap: 40px; padding-block: 45px 10px; }
.download-heading h3 { font-size: 30px; color: #10437d; margin: 12px 0; }
.download-heading > p:last-child { font-size: 14px; line-height: 1.6; color: #345b7e; max-width: 270px; }
.download-platforms { display: flex; align-items: center; gap: 38px; }
.download-platform { display: flex; align-items: center; gap: 18px; }
.download-platform strong { font-size: 16px; color: #10437d; font-weight: 700; }
.download-platform p { color: #37618b; font-size: 12px; margin-top: 8px; line-height: 1.5; }
.download-platform .store-badge { flex: 0 0 auto; }
.download-platform .store-badge img { width: 140px; height: 47px; }
.download-platform .store-badge[data-store=android] img { width: 156px; height: 47px; }
.download-platform .store-badge span { font-size: 9px; }
.launch-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #00b975; margin-right: 4px; }
.idea-art img { width: 286px; height: 286px; }
.character-ensemble { display: flex; align-items: flex-end; overflow: hidden; }
.cast-group { position: relative; width: 100%; height: 565px; margin-top: 45px; }
.cast-member { position: absolute; height: auto; object-fit: contain; filter: drop-shadow(0 5px 10px #1239662b); }
.cast-aria { width: 46%; left: 4%; top: 1%; z-index: 1; }
.cast-kai { width: 46%; right: 3%; top: 1%; z-index: 1; }
.cast-leo { width: 48%; left: -6%; bottom: 4%; z-index: 2; }
.cast-ren { width: 48%; right: -6%; bottom: 4%; z-index: 2; }
.cast-city_runner { width: 53%; left: 23.5%; bottom: -1%; z-index: 3; }
.project-stage { grid-template-columns: .95fr 1.05fr; }
.project-stage-copy { padding-right: 12px; }
.project-landscape { background: linear-gradient(90deg,#0966d9fc 0%,#187ae8e8 35%,#248ae872 68%,#409df347),url('assets/up-run-world.png') center 74%/cover; }
@media(min-width: 1440px) { .cast-group { height: 580px; } }
@media(max-width: 1000px) {
  .contact-layout { padding: 35px; gap: 32px; }
  .contact-details { padding: 25px; }
  .idea-card h3 { font-size: 31px; }
  .idea-art { height: 270px; }
  .idea-art img { width: 300px; height: 300px; }
  .teaser-art { left: -5%; width: 250px; opacity: .9; }
  .download-section { flex-direction: column; align-items: flex-start; gap: 25px; }
  .download-platforms { justify-content: space-between; width: 100%; gap: 25px; }
  .download-heading > p:last-child { max-width: none; }
  .idea-art img { width: 260px; height: 260px; }
  .cast-group { height: 470px; }
  .cast-aria,.cast-kai { top: 10%; }
}
@media(max-width: 600px) {
  .contact-layout { padding: 29px 23px; gap: 35px; border-radius: 23px; }
  .contact-layout h2 { font-size: 55px; }
  .contact-layout > div > p { font-size: 16px; }
  .contact-layout .button { font-size: 14px; padding: 14px 18px; gap: 16px; min-height: 54px; width: 100%; justify-content: space-between; }
  .contact-details { padding: 24px 20px; gap: 21px; }
  .contact-details p, .contact-details address { font-size: 14px; }
  .idea-grid { gap: 27px; }
  .idea-card { border-radius: 22px; }
  .idea-card .idea-type { top: 16px; left: 16px; font-size: 11px; }
  .idea-art { height: 275px; }
  .idea-art img { width: 265px; height: 265px; max-width: 100%; }
  .idea-body { padding: 24px; }
  .idea-card h3 { font-size: 32px; margin-bottom: 20px; }
  .idea-card .idea-link { width: 100%; justify-content: space-between; font-size: 13px; padding: 12px 15px; }
  .puzzle-vignette { height: 280px; }
  .puzzle-art { height: 280px; max-width: 100%; }
  .teaser-art { position: relative; inset: auto; transform: rotate(-7deg); width: 190px; margin: -30px auto 0; opacity: 1; }
  .roadmap-list summary { min-height: 120px; gap: 14px; }
  .detail-toggle { width: 40px; height: 40px; flex-basis: 40px; border-radius: 12px; }
  .detail-toggle svg { width: 20px; height: 20px; }
  .studio { padding-bottom: 20px; }
  .projects { padding-top: 40px; }
  .download-platforms { flex-direction: column; align-items: flex-start; gap: 25px; }
  .download-platform { gap: 18px; }
  .download-platform strong { font-size: 14px; }
  .download-platform p { font-size: 11px; }
  .download-platform .store-badge img { width: 134px; height: 45px; }
  .download-platform .store-badge[data-store=android] img { width: 148px; height: 45px; }
  .download-heading h3 { font-size: 30px; }
  .download-section { padding-block: 35px 5px; }
  .project-stage { display: flex; flex-direction: column; min-height: 0; }
  .project-stage-copy { padding: 30px 25px 20px; }
  .project-stage-copy h3 { font-size: 41px; }
  .project-stage-copy p { margin-top: 18px; }
  .character-ensemble { position: relative; inset: auto; height: 360px; flex: 0 0 360px; width: 100%; }
  .cast-group { height: 340px; margin: 0; }
  .cast-aria,.cast-kai { width: 49%; top: 0; }
  .cast-aria { left: 3%; }
  .cast-kai { right: 1%; }
  .cast-leo,.cast-ren { width: 50%; bottom: 0; }
  .cast-city_runner { width: 56%; left: 22%; bottom: -3%; }
  .project-landscape { background: linear-gradient(180deg,#0966d9f5 0%,#288cedcc 50%,#4f96b133 100%),url('assets/up-run-world.png') center bottom/cover; }
}
@media(prefers-reduced-motion: reduce) {
  .idea-card, .idea-art img { transition: none; }
  .idea-card:hover, .idea-card:hover .idea-art img { transform: none; }
}

/* One complete cast illustration: preserve every silhouette with contain. */
.project-stage { grid-template-columns: .85fr 1.15fr; }
.character-ensemble { padding: 18px 10px 24px 0; align-items: center; overflow: visible; }
.ensemble-image { display: block; width: 100%; height: auto; max-width: 100%; object-fit: contain; filter: drop-shadow(0 16px 16px #063e7130); }

/* Stationary destination mosaic; one view dissolves into another at a time. */
.city-mosaic {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: auto; gap: 18px;
  border-radius: 0; margin-inline: 0; overflow: visible; mask-image: none;
}
.destination-tile { position: relative; aspect-ratio: 1; margin: 0; overflow: hidden; border-radius: 22px; background: #e7f4fc; box-shadow: 0 12px 30px #14457912; }
.destination-image {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transform: scale(1.035) translateY(3px);
  transition: opacity 1250ms ease, transform 1700ms cubic-bezier(.2,.65,.25,1);
}
.destination-image.is-active { opacity: 1; transform: scale(1) translateY(0); }
.destination-image:not([src]) { visibility: hidden; }
.gallery-controls { display: flex; align-items: center; gap: 12px; }
.gallery-toggle,.gallery-next { border: 1px solid #bcd7f0; background: #fff; color: #135da1; border-radius: 50px; padding: 11px 17px; font: 600 12px/1.4 var(--font); }
.gallery-next { display: flex; gap: 14px; align-items: center; }
.gallery-toggle:hover,.gallery-next:hover { background: #edf7ff; }
.gallery-toggle:focus-visible,.gallery-next:focus-visible { outline: 3px solid #1384fa; outline-offset: 3px; }
@media(max-width:1000px) {
  .city-mosaic { gap: 14px; }
  .destination-tile { border-radius: 17px; }
}
@media(max-width:600px) {
  .character-ensemble { padding: 0 6px 24px; height: auto; flex: none; }
  .ensemble-image { width: 100%; height: auto; }
  .city-mosaic { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
    .gallery-actions { margin-top: 35px; flex-wrap: wrap; justify-content: center; gap: 19px; }
  .gallery-controls { gap: 10px; }
  .gallery-toggle,.gallery-next { font-size: 11px; padding: 10px 14px; }
}
@media(prefers-reduced-motion:reduce) {
  .destination-image { transition: none; transform: none; }
  .gallery-toggle { display: inline-flex; }
}

/* Text-only actions keep the same appearance on every platform. */
.idea-card .idea-link { justify-content: center; }
.form-mode-note[role="alert"] { color: #9e2332; font-weight: 600; }
