/* WillowinWorld CSS: Ball is God game page. */
.ball-is-god-page {
  --ball-cycle: 8.8s;
  --bg: #eaf6ff;
  --bg-2: #fff2c5;
  --surface: rgba(247, 252, 255, 0.72);
  --surface-strong: rgba(255, 253, 246, 0.95);
  --surface-soft: rgba(255, 212, 61, 0.14);
  --text: #10213a;
  --muted: #405d78;
  --muted-2: #7891a8;
  --line: rgba(47, 91, 150, 0.16);
  --paper: #fff8dc;
  --ball-ink: #10213a;
  --ball-sky: #8fc7ff;
  --ball-gold: #ffd43d;
  --ball-gold-deep: #d5961e;
  --ball-stone: #575452;
  --ball-green: #4ea83a;
}

.ball-is-god-page[data-theme="dark"] {
  --bg: #071530;
  --bg-2: #10254d;
  --surface: rgba(7, 21, 48, 0.74);
  --surface-strong: rgba(6, 15, 34, 0.95);
  --surface-soft: rgba(255, 212, 61, 0.1);
  --text: #f6fbff;
  --muted: #c2d5e8;
  --muted-2: #8ea9c4;
  --line: rgba(214, 235, 255, 0.18);
  --paper: #152d55;
  --ball-ink: #f6fbff;
  --ball-gold: #ffe274;
  --ball-gold-deep: #c99330;
}

body.ball-is-god-page[data-theme="light"] {
  background-color: #eaf6ff;
  background:
    radial-gradient(ellipse at 18% 8%, rgba(255, 255, 255, 0.74), transparent 32%),
    radial-gradient(ellipse at 78% 14%, rgba(255, 212, 61, 0.28), transparent 30%),
    linear-gradient(180deg, #eaf6ff 0%, #cde8ff 52%, #fff2c5 100%);
}

body.ball-is-god-page[data-theme="dark"] {
  background-color: #071530;
  background:
    radial-gradient(ellipse at 18% 8%, rgba(126, 195, 255, 0.14), transparent 32%),
    radial-gradient(ellipse at 78% 14%, rgba(255, 212, 61, 0.14), transparent 30%),
    linear-gradient(180deg, #071530 0%, #10254d 52%, #050c1d 100%);
}

.ball-is-god-page::before {
  opacity: 0;
}

.game-detail-page .ball-is-god-shell {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  display: block;
  padding-top: 0;
  background: transparent;
}

.ball-is-god-shell::before,
.ball-is-god-shell::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.ball-is-god-shell::before {
  background:
    linear-gradient(92deg, rgba(234, 246, 255, 0.94) 0 18%, rgba(234, 246, 255, 0.68) 42%, rgba(234, 246, 255, 0.24) 76%),
    radial-gradient(ellipse at 28% 28%, rgba(255, 255, 255, 0.48), transparent 30%),
    radial-gradient(ellipse at 78% 20%, rgba(255, 212, 61, 0.24), transparent 28%),
    url("../assets/Ball is God/site/back.webp") center top / max(100vw, 1440px) auto repeat-y,
    linear-gradient(180deg, #eaf6ff, #fff2c5);
  filter: saturate(1.02) contrast(1);
  opacity: 0.82;
}

.ball-is-god-shell::after {
  background:
    radial-gradient(circle at 12% 20%, rgba(255, 255, 255, 0.34) 0 2px, transparent 3px),
    radial-gradient(circle at 30% 36%, rgba(255, 212, 61, 0.16) 0 2px, transparent 3px),
    repeating-linear-gradient(112deg, rgba(47, 91, 150, 0.04) 0 1px, transparent 1px 18px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 46%, rgba(255, 212, 61, 0.14));
  mix-blend-mode: multiply;
  opacity: 0.74;
}

.ball-is-god-page[data-theme="dark"] .ball-is-god-shell::before {
  background:
    linear-gradient(92deg, rgba(7, 21, 48, 0.9) 0 18%, rgba(7, 21, 48, 0.68) 42%, rgba(16, 37, 77, 0.42) 76%),
    radial-gradient(ellipse at 28% 28%, rgba(126, 195, 255, 0.12), transparent 30%),
    radial-gradient(ellipse at 78% 20%, rgba(255, 212, 61, 0.12), transparent 28%),
    url("../assets/Ball is God/site/back.webp") center top / max(100vw, 1440px) auto repeat-y,
    linear-gradient(180deg, #071530, #050c1d);
  filter: saturate(0.9) contrast(1.05) brightness(0.72);
  opacity: 0.84;
}

.ball-is-god-page[data-theme="dark"] .ball-is-god-shell::after {
  background:
    linear-gradient(90deg, rgba(7, 21, 48, 0.62), rgba(12, 32, 66, 0.28) 48%, rgba(5, 12, 29, 0.64)),
    radial-gradient(circle at 12% 20%, rgba(255, 255, 255, 0.08) 0 2px, transparent 3px),
    radial-gradient(circle at 30% 36%, rgba(255, 212, 61, 0.1) 0 2px, transparent 3px),
    repeating-linear-gradient(112deg, rgba(214, 235, 255, 0.035) 0 1px, transparent 1px 18px);
  mix-blend-mode: normal;
  opacity: 0.9;
}

.ball-page-backdrop {
  position: fixed;
  inset: 74px 0 0;
  z-index: 0;
  overflow: hidden;
  isolation: isolate;
  pointer-events: none;
}

.ball-page-backdrop::before,
.ball-page-backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.ball-page-backdrop::before {
  z-index: 2;
  background:
    linear-gradient(92deg, rgba(234, 246, 255, 0.94) 0 18%, rgba(234, 246, 255, 0.66) 42%, rgba(234, 246, 255, 0.22) 76%),
    radial-gradient(ellipse at 26% 36%, rgba(255, 255, 255, 0.54), transparent 30%),
    radial-gradient(ellipse at 76% 18%, rgba(255, 212, 61, 0.24), transparent 26%);
}

.ball-page-backdrop::after {
  z-index: 5;
  background:
    radial-gradient(circle at 12% 20%, rgba(255, 255, 255, 0.32) 0 2px, transparent 3px),
    radial-gradient(circle at 30% 36%, rgba(255, 212, 61, 0.16) 0 2px, transparent 3px),
    repeating-linear-gradient(112deg, rgba(47, 91, 150, 0.04) 0 1px, transparent 1px 18px),
    radial-gradient(ellipse at 50% 100%, rgba(255, 212, 61, 0.16), transparent 48%);
  mix-blend-mode: multiply;
  opacity: 0.82;
}

.ball-is-god-page[data-theme="dark"] .ball-page-backdrop::before {
  background:
    linear-gradient(92deg, rgba(7, 21, 48, 0.9) 0 18%, rgba(7, 21, 48, 0.66) 42%, rgba(16, 37, 77, 0.42) 76%),
    radial-gradient(ellipse at 26% 36%, rgba(126, 195, 255, 0.12), transparent 30%),
    radial-gradient(ellipse at 76% 18%, rgba(255, 212, 61, 0.1), transparent 26%);
}

.ball-is-god-page[data-theme="dark"] .ball-page-backdrop::after {
  background:
    linear-gradient(90deg, rgba(7, 21, 48, 0.58), rgba(12, 32, 66, 0.2) 48%, rgba(5, 12, 29, 0.62)),
    radial-gradient(circle at 12% 20%, rgba(255, 255, 255, 0.08) 0 2px, transparent 3px),
    radial-gradient(circle at 30% 36%, rgba(255, 212, 61, 0.1) 0 2px, transparent 3px),
    repeating-linear-gradient(112deg, rgba(214, 235, 255, 0.035) 0 1px, transparent 1px 18px);
  mix-blend-mode: normal;
  opacity: 0.9;
}

.ball-menu-world {
  position: absolute;
  inset: 0;
  z-index: 4;
  overflow: hidden;
}

.ball-menu-sun,
.ball-menu-halo,
.ball-menu-pillar,
.ball-menu-beam,
.ball-menu-rock {
  position: absolute;
  pointer-events: none;
}

.ball-menu-sun {
  top: 8%;
  right: 15%;
  width: clamp(118px, 9vw, 176px);
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at 34% 28%, rgba(255,255,244,0.78), transparent 12%),
    radial-gradient(circle at 60% 70%, rgba(197, 139, 38, 0.18), transparent 30%),
    linear-gradient(135deg, #fff28c, #f0b83a 72%);
  box-shadow:
    0 0 0 58px rgba(255, 224, 128, 0.14),
    0 28px 70px rgba(188, 126, 24, 0.24);
  animation: moonFloat 8s ease-in-out infinite;
}

.ball-menu-halo {
  width: 190px;
  height: 46px;
  border: 10px solid rgba(255, 212, 61, 0.42);
  border-radius: 50%;
  box-shadow: 0 0 28px rgba(255, 212, 61, 0.18);
  opacity: 0.66;
  animation: ballHaloFloat 8s ease-in-out infinite;
}

.ball-menu-halo-one {
  top: 20%;
  left: 12%;
  transform: rotate(-12deg);
}

.ball-menu-halo-two {
  right: 8%;
  bottom: 17%;
  width: 138px;
  height: 34px;
  transform: rotate(18deg);
  animation-delay: -3.2s;
}

.ball-menu-pillar {
  bottom: -10%;
  width: clamp(150px, 14vw, 260px);
  height: 58%;
  border-radius: 999px 999px 0 0;
  background:
    radial-gradient(ellipse at 50% 5%, rgba(255, 252, 212, 0.58), transparent 26%),
    repeating-linear-gradient(90deg, rgba(146, 103, 25, 0.16) 0 2px, transparent 2px 32px),
    linear-gradient(90deg, rgba(177, 122, 25, 0.34), rgba(255, 224, 108, 0.38), rgba(177, 122, 25, 0.28));
  box-shadow: 0 26px 46px rgba(47, 91, 150, 0.16);
  opacity: 0.54;
}

.ball-menu-pillar-left {
  left: -8%;
  transform: rotate(-6deg);
}

.ball-menu-pillar-right {
  right: -7%;
  transform: rotate(6deg);
}

.ball-menu-beam {
  width: 54vw;
  height: 18px;
  border-radius: 999px;
  background:
    linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.62), rgba(255, 212, 61, 0.44), transparent);
  opacity: 0.68;
  animation: ballBeamFlow 7s ease-in-out infinite;
}

.ball-menu-beam-one {
  top: 31%;
  left: -9%;
  transform: rotate(-18deg);
}

.ball-menu-beam-two {
  bottom: 18%;
  right: -10%;
  transform: rotate(13deg);
  animation-delay: -2.8s;
}

.ball-menu-rock {
  width: 118px;
  height: 74px;
  background:
    linear-gradient(145deg, rgba(255,255,255,0.14), transparent 30%),
    linear-gradient(180deg, #77736e, #4d4a46 72%, #343333);
  clip-path: polygon(4% 16%, 46% 0, 96% 14%, 86% 70%, 61% 96%, 22% 88%, 0 54%);
  box-shadow: 0 18px 28px rgba(47, 91, 150, 0.18);
  opacity: 0.62;
  animation: ballRockFloat 8s ease-in-out infinite;
}

.ball-menu-rock-one {
  top: 16%;
  left: 34%;
  transform: rotate(-16deg);
}

.ball-menu-rock-two {
  right: 20%;
  bottom: 30%;
  width: 86px;
  height: 58px;
  animation-delay: -2.2s;
  transform: rotate(18deg);
}

.ball-menu-rock-three {
  left: 16%;
  bottom: 14%;
  width: 92px;
  height: 62px;
  animation-delay: -4.2s;
  transform: rotate(10deg);
}

.ball-game-hero {
  position: relative;
  z-index: 2;
  min-height: calc(100svh - 74px);
  display: grid;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
  padding: clamp(44px, 6vw, 76px) 0 clamp(48px, 7vw, 92px);
}

.ball-hero-layout {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.7fr);
  gap: clamp(30px, 4.6vw, 58px);
  align-items: center;
}

.ball-hero-copy {
  max-width: 850px;
  padding: clamp(18px, 3vw, 38px) 0;
}

.ball-hero-copy h1 {
  max-width: 840px;
  margin-bottom: clamp(18px, 2.4vw, 28px);
  color: var(--ball-ink);
  font-size: clamp(4rem, 5.15vw, 6.2rem);
  line-height: 0.9;
  text-shadow:
    0 2px 0 rgba(255, 255, 255, 0.55),
    0 26px 70px rgba(47, 91, 150, 0.2);
}

.ball-is-god-page[data-theme="dark"] .ball-hero-copy h1 {
  text-shadow: 0 26px 70px rgba(0, 0, 0, 0.34);
}

.ball-hero-copy .hero-copy {
  max-width: 720px;
  color: color-mix(in srgb, var(--text) 82%, var(--game-accent));
  font-size: clamp(1.08rem, 1.55vw, 1.32rem);
  line-height: 1.62;
}

.ball-hero-note {
  max-width: 700px;
  margin-bottom: 28px;
  color: color-mix(in srgb, var(--text) 84%, var(--muted));
  font-size: 1rem;
  line-height: 1.7;
}

.ball-hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  max-width: 760px;
  margin-top: 18px;
}

.ball-hero-stats span {
  min-height: 78px;
  display: grid;
  align-content: center;
  gap: 5px;
  padding: 14px;
  border: 1px solid color-mix(in srgb, var(--game-accent) 30%, var(--line));
  border-radius: 18px;
  background:
    radial-gradient(ellipse at 10% 0%, rgba(255, 255, 255, 0.22), transparent 34%),
    radial-gradient(ellipse at 88% 20%, rgba(255, 212, 61, 0.14), transparent 36%),
    repeating-linear-gradient(118deg, rgba(47, 91, 150, 0.045) 0 1px, transparent 1px 14px),
    color-mix(in srgb, var(--surface-strong) 76%, transparent);
  box-shadow: 0 18px 42px rgba(47, 91, 150, 0.12);
  backdrop-filter: blur(14px) saturate(1.04);
}

.ball-hero-stats strong {
  color: var(--text);
  font-size: 1rem;
}

.ball-hero-stats small {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 760;
  line-height: 1.25;
}

.ball-hero-showcase {
  position: relative;
  min-height: clamp(520px, 58vw, 690px);
  display: grid;
  place-items: center;
}

.ball-device-frame {
  --ball-cycle: 8.8s;
  position: relative;
  width: min(100%, 468px);
  aspect-ratio: 0.72;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 30px;
  background: rgba(143, 199, 255, 0.38);
  box-shadow:
    0 34px 82px rgba(47, 91, 150, 0.26),
    0 0 0 9px rgba(255, 255, 255, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.62);
  isolation: isolate;
  transform: none;
}

.ball-is-god-page[data-theme="dark"] .ball-device-frame {
  border-color: rgba(214, 235, 255, 0.24);
  background: rgba(7, 21, 48, 0.46);
  box-shadow:
    0 34px 82px rgba(0, 0, 0, 0.42),
    0 0 0 9px rgba(255, 212, 61, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.ball-device-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 9;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: inherit;
  pointer-events: none;
  background: none;
  mix-blend-mode: normal;
}

.ball-stage-showcase {
  position: absolute;
  inset: 0;
  contain: none;
  clip-path: inset(0 round 22px);
  transform: none;
}

.ball-stage-showcase::before,
.ball-stage-showcase::after {
  background: none;
}

.ball-stage-showcase > picture {
  position: absolute;
  inset: 0;
  display: block;
}

.ball-stage-showcase .ball-bg {
  --img-fit: cover;
  inset: -10% -8%;
  width: 116%;
  max-width: none;
  height: 124%;
  object-position: center 45%;
  animation: none;
  filter: none;
  transform: none;
}

.ball-stage-showcase .ball-tower {
  top: -34px;
  width: clamp(132px, 29%, 172px);
  height: 590px;
}

.ball-stage-showcase .ball-tower::after {
  display: none;
}

.ball-stage-showcase .ball-espa-wrap {
  width: clamp(168px, 36%, 238px);
}

.ball-stage-showcase .ball-cloud {
  filter: drop-shadow(0 10px 14px rgba(55, 101, 160, 0.12));
}

.ball-showcase-icon {
  position: absolute;
  top: 24px;
  right: 24px;
  z-index: 10;
  width: clamp(88px, 10.8vw, 126px);
  height: auto;
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 24px;
  object-fit: cover;
  box-shadow:
    0 18px 42px rgba(47, 91, 150, 0.26),
    0 0 0 7px rgba(255, 255, 255, 0.24);
  transition: opacity .28s var(--ease), transform .42s var(--ease);
}

.ball-showcase-icon-primary {
  transform: rotate(-3deg);
  animation: ballShowcaseIconPrimary var(--ball-cycle) var(--ease) infinite;
}

.ball-showcase-icon-alt {
  opacity: 0;
  transform: translate3d(18px, -18px, 0) rotate(8deg) scale(0.9);
  animation: ballShowcaseIconAlt var(--ball-cycle) var(--ease) infinite;
}

.ball-preview-title {
  position: absolute;
  left: 26px;
  top: 28px;
  z-index: 10;
  max-width: min(60%, 286px);
  display: grid;
  gap: 8px;
}

.ball-preview-title small,
.ball-cycle b {
  width: max-content;
  max-width: 100%;
  padding: 9px 12px;
  border-radius: 999px;
  color: #10213a;
  background: rgba(255, 253, 246, 0.82);
  box-shadow: 0 12px 26px rgba(47, 91, 150, 0.16);
  font-size: 0.72rem;
  font-weight: 900;
}

.ball-preview-title strong {
  color: #10213a;
  font-size: clamp(3.15rem, 4.5vw, 4.9rem);
  line-height: 0.9;
  text-shadow:
    0 2px 0 rgba(255, 255, 255, 0.58),
    0 18px 44px rgba(47, 91, 150, 0.22);
}

.ball-cycle {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ball-cycle b {
  color: #725010;
  font-size: 0.72rem;
}

.ball-device-frame .magic-hud {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 22px;
  z-index: 11;
  color: #10213a;
  background: rgba(255, 253, 246, 0.82);
  border-color: rgba(146, 103, 25, 0.18);
}

.ball-device-frame .hud-dot {
  background: #ffd43d;
  box-shadow: 0 0 18px rgba(255, 212, 61, 0.58);
  animation: ballHudPulse 1.8s ease-in-out infinite;
}

.ball-device-frame .hud-dot:nth-child(2) {
  animation-delay: .25s;
}

.ball-device-frame .hud-dot:nth-child(3) {
  animation-delay: .5s;
}

.ball-is-god-page[data-theme="dark"] .ball-device-frame {
  width: min(100%, 442px);
  border-color: rgba(168, 214, 255, 0.34);
  border-radius: 24px;
  background: #091a3a;
  box-shadow:
    0 28px 58px rgba(0, 0, 0, 0.38),
    0 0 0 5px rgba(126, 195, 255, 0.08);
}

.ball-is-god-page[data-theme="dark"] .ball-device-frame::before {
  border-color: rgba(255, 255, 255, 0.12);
  background: none;
  mix-blend-mode: normal;
}

.ball-is-god-page[data-theme="dark"] .ball-stage-showcase::before {
  background: none;
}

.ball-is-god-page[data-theme="dark"] .ball-stage-showcase .ball-bg {
  filter: none;
}

.ball-is-god-page[data-theme="dark"] .ball-stage-showcase .ball-tower {
  width: clamp(118px, 26%, 150px);
  filter: saturate(0.9) brightness(0.92);
}

.ball-is-god-page[data-theme="dark"] .ball-showcase-icon {
  top: 22px;
  right: 22px;
  width: 84px;
  border-color: rgba(255, 226, 116, 0.45);
  border-radius: 16px;
  box-shadow:
    0 8px 0 rgba(5, 14, 34, 0.22),
    0 0 0 3px rgba(255, 226, 116, 0.1);
}

.ball-is-god-page[data-theme="dark"] .ball-showcase-icon-primary {
  animation: none;
  transform: none;
}

.ball-is-god-page[data-theme="dark"] .ball-showcase-icon-alt {
  display: none;
  animation: none;
}

.ball-is-god-page[data-theme="dark"] .ball-preview-title {
  top: 22px;
  left: 22px;
  max-width: calc(100% - 140px);
  gap: 7px;
}

.ball-is-god-page[data-theme="dark"] .ball-preview-title small {
  padding: 7px 10px;
  border: 1px solid rgba(168, 214, 255, 0.26);
  color: #dff2ff;
  background: rgba(5, 20, 47, 0.82);
  box-shadow: none;
  font-size: 0.64rem;
}

.ball-is-god-page[data-theme="dark"] .ball-preview-title strong {
  max-width: 7ch;
  color: #fff;
  font-size: clamp(2.45rem, 3.2vw, 3.2rem);
  line-height: 0.88;
  letter-spacing: -0.035em;
  text-shadow: 0 4px 0 rgba(5, 20, 47, 0.2);
}

.ball-is-god-page[data-theme="dark"] .ball-cycle {
  gap: 5px;
}

.ball-is-god-page[data-theme="dark"] .ball-cycle b {
  padding: 7px 9px;
  border: 1px solid rgba(255, 226, 116, 0.3);
  color: #ffe274;
  background: rgba(5, 20, 47, 0.82);
  box-shadow: none;
  font-size: 0.64rem;
}

.ball-is-god-page[data-theme="dark"] .ball-device-frame .magic-hud {
  right: 18px;
  bottom: 18px;
  left: 18px;
  min-height: 46px;
  border-color: rgba(168, 214, 255, 0.24);
  color: #f6fbff;
  background: rgba(5, 20, 47, 0.86);
  box-shadow: 0 8px 0 rgba(2, 8, 22, 0.16);
}

.ball-is-god-content {
  position: relative;
  z-index: 2;
  margin-top: 0;
  padding-top: clamp(42px, 5vw, 76px);
  padding-bottom: 108px;
  gap: clamp(18px, 3vw, 32px);
}

.ball-is-god-page .game-page-section,
.ball-is-god-page .game-page-updates {
  padding-inline: 0;
  border-color: transparent;
  border-radius: 0;
  backdrop-filter: none;
  background: transparent;
  box-shadow: none;
}

.ball-is-god-page .game-page-section + .game-page-section,
.ball-is-god-page .game-page-section + .game-page-updates {
  border-top: 0;
  padding-top: clamp(30px, 4vw, 52px);
}

.ball-is-god-page .game-page-section h2,
.ball-is-god-page .game-page-updates h2 {
  max-width: 940px;
  text-shadow:
    0 2px 0 rgba(255, 255, 255, 0.5),
    0 18px 46px rgba(47, 91, 150, 0.14);
}

.ball-is-god-page[data-theme="dark"] .game-page-section h2,
.ball-is-god-page[data-theme="dark"] .game-page-updates h2 {
  text-shadow: 0 18px 46px rgba(0, 0, 0, 0.34);
}

@media (min-width: 901px) {
  .ball-is-god-page .ball-story-section {
    padding-top: clamp(34px, 4.4vw, 64px);
    padding-bottom: clamp(34px, 4.4vw, 64px);
  }

  .ball-is-god-page .ball-story-section + .ball-story-section {
    padding-top: clamp(20px, 3vw, 38px);
  }

  .ball-is-god-page .ball-story-section h2 {
    max-width: 790px;
    margin-bottom: clamp(18px, 2.2vw, 28px);
    font-size: clamp(2.25rem, 3.05vw, 3.9rem);
    line-height: 1.02;
    text-wrap: balance;
  }

  .ball-is-god-page .ball-story-section .info-grid {
    grid-template-columns: minmax(0, 0.84fr) minmax(390px, 0.56fr);
    gap: clamp(36px, 5vw, 76px);
    align-items: center;
  }

  .ball-is-god-page .ball-story-section .info-grid > div {
    max-width: 720px;
  }

  .ball-is-god-page .ball-story-section .info-grid > div p {
    max-width: 680px;
    font-size: clamp(1.02rem, 1.04vw, 1.13rem);
    line-height: 1.66;
  }

  .ball-is-god-page .ball-story-section .info-grid > div p + p {
    margin-top: 16px;
  }

  .ball-is-god-page .ball-story-section .game-page-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 18px;
    padding: 24px;
  }

  .ball-is-god-page .ball-story-section .game-page-facts div {
    gap: 6px;
    min-height: 74px;
    padding-bottom: 16px;
  }

  .ball-is-god-page .ball-story-section .game-page-facts div:nth-last-child(-n+2) {
    padding-bottom: 0;
    border-bottom: 0;
  }
}

.ball-is-god-page .detail-card,
.ball-is-god-page .asset-link,
.ball-is-god-page .update-list li,
.ball-is-god-page .game-page-facts {
  border-color: color-mix(in srgb, var(--game-accent) 25%, rgba(47, 91, 150, 0.16));
  border-radius: 18px;
  background:
    radial-gradient(ellipse at 12% 10%, rgba(255, 255, 255, 0.24), transparent 32%),
    radial-gradient(ellipse at 84% 22%, rgba(255, 212, 61, 0.12), transparent 32%),
    repeating-linear-gradient(118deg, rgba(47, 91, 150, 0.045) 0 1px, transparent 1px 13px),
    rgba(247, 252, 255, 0.7);
  box-shadow: 0 18px 42px rgba(47, 91, 150, 0.12);
  backdrop-filter: blur(12px) saturate(1.04);
}

.ball-is-god-page[data-theme="dark"] .detail-card,
.ball-is-god-page[data-theme="dark"] .asset-link,
.ball-is-god-page[data-theme="dark"] .update-list li,
.ball-is-god-page[data-theme="dark"] .game-page-facts {
  background:
    radial-gradient(ellipse at 12% 10%, rgba(126, 195, 255, 0.08), transparent 32%),
    radial-gradient(ellipse at 84% 22%, rgba(255, 212, 61, 0.08), transparent 32%),
    repeating-linear-gradient(118deg, rgba(214, 235, 255, 0.04) 0 1px, transparent 1px 13px),
    rgba(7, 21, 48, 0.72);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.34);
}

.ball-is-god-page .game-page-section .eyebrow,
.ball-is-god-page .game-page-updates .eyebrow {
  background: rgba(247, 252, 255, 0.7);
}

.ball-is-god-page[data-theme="dark"] .game-page-section .eyebrow,
.ball-is-god-page[data-theme="dark"] .game-page-updates .eyebrow {
  background: rgba(7, 21, 48, 0.72);
}

.ball-is-god-page .asset-group-note {
  max-width: 66ch;
  margin: -7px 0 12px;
  color: var(--muted);
  line-height: 1.55;
}

.ball-cursor-mascot {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1;
  width: clamp(86px, 7vw, 132px);
  height: clamp(48px, 3.9vw, 74px);
  pointer-events: none;
  opacity: 0;
  transform: translate3d(-150px, -150px, 0);
  transition: opacity .22s var(--ease);
  will-change: transform, opacity;
}

.ball-cursor-mascot.is-active {
  opacity: 0.88;
}

.ball-cursor-glow,
.ball-cursor-image {
  position: absolute;
  pointer-events: none;
}

.ball-cursor-glow {
  inset: -20px;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(255, 212, 61, 0.34), rgba(126, 195, 255, 0.18) 48%, transparent 72%);
  filter: blur(1px);
  animation: natureCursorPulse 2.8s ease-in-out infinite;
}

.ball-cursor-image {
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter:
    drop-shadow(0 18px 20px rgba(47, 91, 150, 0.24))
    drop-shadow(0 0 18px rgba(255, 212, 61, 0.28));
  animation: natureCursorBreathe 3.35s ease-in-out infinite;
}

.ball-is-god-page[data-theme="dark"] .ball-cursor-image {
  filter:
    drop-shadow(0 20px 22px rgba(0, 0, 0, 0.42))
    drop-shadow(0 0 22px rgba(255, 212, 61, 0.22));
}

@media (min-width: 921px) and (max-height: 980px) {
  .ball-game-hero {
    align-items: start;
    padding: clamp(28px, 4vh, 46px) 0 42px;
  }

  .ball-hero-layout {
    gap: clamp(24px, 3vw, 42px);
    align-items: center;
  }

  .ball-hero-copy {
    max-width: 760px;
    padding: 0;
  }

  .ball-hero-copy h1 {
    max-width: 720px;
    margin-bottom: 16px;
    font-size: clamp(3.7rem, 4.65vw, 5.25rem);
  }

  .ball-hero-copy .hero-copy {
    max-width: 660px;
    font-size: clamp(1rem, 1.14vw, 1.16rem);
    line-height: 1.52;
  }

  .ball-hero-note {
    max-width: 650px;
    margin-bottom: 18px;
    font-size: 0.94rem;
    line-height: 1.55;
  }

  .ball-hero-stats {
    max-width: 690px;
    margin-top: 14px;
  }

  .ball-hero-stats span {
    min-height: 66px;
    padding: 11px 12px;
  }

  .ball-hero-showcase {
    min-height: min(650px, calc(100svh - 150px));
  }

  .ball-device-frame {
    width: min(100%, 456px);
  }

  .ball-stage-showcase .ball-tower {
    top: -40px;
    height: 555px;
  }

  .ball-stage-showcase .ball-espa-wrap {
    width: clamp(154px, 33%, 210px);
  }
}

@media (min-width: 1121px) {
  .hero-panel,
  .nature-hero-showcase {
    transform: translate3d(18px, -20px, 0);
  }
}

/* Production menu, dialogue and cast showcase */
.ball-production-ui {
  scroll-margin-top: 132px;
}

.ball-production-heading,
.ball-cast-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.14fr) minmax(300px, 0.64fr);
  gap: clamp(26px, 4vw, 64px);
  align-items: end;
}

.ball-production-heading > p,
.ball-cast-heading > p {
  max-width: 58ch;
  margin: 0 0 8px;
  color: var(--muted);
  font-size: clamp(1rem, 1.12vw, 1.12rem);
  line-height: 1.65;
}

.ball-menu-flow {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin: clamp(26px, 4vw, 46px) 0 0;
  padding: 0;
  list-style: none;
}

.ball-menu-flow::before {
  content: "";
  position: absolute;
  top: 22px;
  right: 8%;
  left: 8%;
  height: 1px;
  background: color-mix(in srgb, var(--game-accent) 52%, var(--line));
}

.ball-menu-flow li {
  position: relative;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-width: 0;
  padding: 10px;
  border: 1px solid color-mix(in srgb, var(--game-accent) 24%, var(--line));
  border-radius: 16px;
  color: var(--text);
  background: color-mix(in srgb, var(--surface-strong) 84%, transparent);
  box-shadow: 0 14px 28px rgba(47, 91, 150, 0.1);
  backdrop-filter: blur(12px);
}

.ball-menu-flow li > b {
  z-index: 1;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--game-accent) 56%, var(--line));
  border-radius: 50%;
  color: #553c08;
  background: #ffe06a;
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--surface-strong) 88%, transparent);
  font-size: 0.72rem;
}

.ball-menu-flow span,
.ball-menu-flow strong,
.ball-menu-flow small {
  display: block;
  min-width: 0;
}

.ball-menu-flow strong {
  font-size: 0.82rem;
  line-height: 1.2;
}

.ball-menu-flow small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.65rem;
  font-weight: 700;
  line-height: 1.25;
}

.ball-production-ui-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(16px, 2.4vw, 30px);
  margin-top: clamp(28px, 4vw, 50px);
}

.ball-ui-feature {
  position: relative;
  display: grid;
  align-content: start;
  gap: 24px;
  min-width: 0;
  overflow: hidden;
  padding: clamp(20px, 2.7vw, 34px);
  border: 1px solid rgba(180, 220, 255, 0.2);
  border-radius: 28px;
  color: #f7fbff;
  background:
    radial-gradient(circle at 15% 10%, rgba(124, 202, 255, 0.2), transparent 31%),
    radial-gradient(circle at 88% 18%, rgba(255, 214, 84, 0.14), transparent 28%),
    linear-gradient(145deg, rgba(8, 31, 67, 0.97), rgba(11, 24, 52, 0.98) 64%, rgba(32, 22, 70, 0.98));
  box-shadow:
    0 24px 70px rgba(3, 13, 36, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.ball-ui-feature::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    repeating-linear-gradient(118deg, transparent 0 15px, rgba(255, 255, 255, 0.025) 15px 16px);
}

.ball-ui-feature > * {
  position: relative;
  z-index: 1;
}

.ball-ui-feature header {
  max-width: 52ch;
}

.ball-ui-label {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  margin-bottom: 10px;
  padding: 6px 10px;
  border: 1px solid rgba(157, 221, 255, 0.26);
  border-radius: 999px;
  color: #8ee7ff;
  background: rgba(31, 129, 180, 0.14);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.11em;
  line-height: 1;
  text-transform: uppercase;
}

.ball-ui-feature h3,
.ball-ui-system-strip h3,
.ball-cast-heading h3 {
  margin: 0;
  font-size: clamp(1.42rem, 2vw, 2rem);
  line-height: 1.08;
  text-wrap: balance;
}

.ball-ui-feature header p,
.ball-ui-system-strip p {
  margin: 11px 0 0;
  color: #bdcede;
  line-height: 1.58;
}

.ball-ui-device {
  position: relative;
  width: min(100%, 390px);
  aspect-ratio: 760 / 1156;
  justify-self: center;
  overflow: hidden;
  margin: 0;
  border: 1px solid rgba(224, 241, 255, 0.38);
  border-radius: 30px;
  background: #101f3d;
  box-shadow:
    0 24px 42px rgba(0, 0, 0, 0.34),
    0 0 0 7px rgba(255, 255, 255, 0.045),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  isolation: isolate;
}

.ball-ui-device::before {
  content: "";
  position: absolute;
  z-index: 6;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  box-shadow: inset 0 0 36px rgba(2, 8, 22, 0.22);
}

.ball-ui-background {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ball-ui-device figcaption {
  position: absolute;
  z-index: 8;
  inset: auto 0 0;
  display: grid;
  gap: 1px;
  padding: 12px 16px 13px;
  border-top: 1px solid rgba(226, 242, 255, 0.22);
  color: #f7fbff;
  background: linear-gradient(90deg, rgba(5, 19, 43, 0.94), rgba(10, 29, 61, 0.9));
  backdrop-filter: blur(12px);
}

.ball-ui-device figcaption span {
  color: #8ee7ff;
  font-size: 0.65rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.ball-ui-device figcaption strong {
  font-size: 0.82rem;
}

.ball-level-select-content {
  position: absolute;
  z-index: 2;
  inset: 5.5% 12% 76px;
  display: grid;
  align-content: start;
  justify-items: center;
  color: #12234b;
  text-align: center;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5);
}

.ball-menu-overline {
  font-size: clamp(0.58rem, 0.75vw, 0.72rem);
  font-weight: 950;
  letter-spacing: 0.19em;
  text-transform: uppercase;
}

.ball-level-select-content > strong {
  max-width: 10ch;
  margin-top: 5px;
  color: #202d59;
  font-size: clamp(1.52rem, 2.4vw, 2.14rem);
  line-height: 0.94;
  text-wrap: balance;
}

.ball-level-medallions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1px, 0.35vw, 4px) clamp(16px, 2.5vw, 28px);
  width: 100%;
  margin-top: clamp(16px, 2.2vw, 26px);
}

.ball-level-medallions span {
  position: relative;
  width: clamp(54px, 6.2vw, 76px);
  aspect-ratio: 1;
  justify-self: center;
  filter: drop-shadow(0 8px 8px rgba(29, 41, 84, 0.22));
}

.ball-level-medallions img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.ball-level-medallions b {
  position: absolute;
  inset: 50% auto auto 50%;
  color: #263569;
  font-size: clamp(0.75rem, 1vw, 1rem);
  font-variant-numeric: tabular-nums;
  transform: translate(-50%, -52%);
}

.ball-level-medallions .is-current {
  filter:
    drop-shadow(0 0 13px rgba(255, 236, 127, 0.95))
    drop-shadow(0 9px 10px rgba(29, 41, 84, 0.24));
  transform: scale(1.1);
}

.ball-level-medallions .is-locked {
  opacity: 0.5;
  filter: grayscale(0.48) drop-shadow(0 7px 7px rgba(29, 41, 84, 0.16));
}

.ball-menu-progress {
  margin-top: clamp(10px, 1.4vw, 16px);
  padding: 7px 12px;
  border: 1px solid rgba(35, 55, 104, 0.2);
  border-radius: 999px;
  color: #243566;
  background: rgba(247, 238, 250, 0.56);
  font-size: 0.69rem;
  font-weight: 900;
  backdrop-filter: blur(8px);
}

.ball-dialogue-preview::after {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(9, 21, 54, 0.08), transparent 38%, rgba(12, 20, 51, 0.18));
}

.ball-dialogue-location {
  position: absolute;
  z-index: 3;
  top: 4%;
  left: 50%;
  padding: 7px 11px;
  border: 1px solid rgba(237, 245, 255, 0.3);
  border-radius: 999px;
  color: #fff;
  background: rgba(19, 39, 81, 0.44);
  font-size: clamp(0.56rem, 0.8vw, 0.72rem);
  font-weight: 900;
  letter-spacing: 0.13em;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.32);
  transform: translateX(-50%);
  white-space: nowrap;
  backdrop-filter: blur(9px);
}

.ball-dialogue-character {
  position: absolute;
  z-index: 1;
  left: 50%;
  bottom: 25.5%;
  width: 72%;
  height: 55%;
  object-fit: contain;
  object-position: center bottom;
  filter:
    drop-shadow(0 22px 18px rgba(19, 16, 62, 0.3))
    drop-shadow(0 0 16px rgba(255, 248, 221, 0.2));
  transform: translateX(-50%);
}

.ball-dialogue-panel {
  position: absolute;
  z-index: 4;
  right: 0;
  bottom: 55px;
  left: 0;
}

.ball-dialogue-panel > img {
  display: block;
  width: 100%;
  height: auto;
}

.ball-dialogue-copy {
  position: absolute;
  inset: 13% 8.5% 7%;
  display: grid;
  grid-template-rows: auto 1fr auto;
  color: #4b321e;
  text-align: center;
}

.ball-dialogue-copy strong {
  justify-self: center;
  min-width: 34%;
  padding-top: 1px;
  color: #5b351f;
  font-size: clamp(0.8rem, 1.2vw, 1.05rem);
  line-height: 1;
}

.ball-dialogue-copy p {
  align-self: center;
  margin: 9% 3% 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(0.67rem, 0.95vw, 0.87rem);
  font-weight: 700;
  line-height: 1.34;
}

.ball-dialogue-copy span {
  justify-self: end;
  color: rgba(77, 50, 30, 0.68);
  font-size: clamp(0.52rem, 0.7vw, 0.64rem);
  font-weight: 850;
  text-transform: uppercase;
}

.ball-dialogue-copy span b {
  display: inline-grid;
  width: 18px;
  height: 18px;
  margin-left: 3px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: #a76f3b;
}

.ball-choice-showcase {
  display: grid;
  grid-template-columns: minmax(0, 0.76fr) minmax(430px, 1.08fr);
  gap: clamp(24px, 4vw, 60px);
  align-items: center;
  margin-top: clamp(18px, 2.6vw, 30px);
  padding: clamp(22px, 3vw, 34px);
  border: 1px solid rgba(174, 219, 255, 0.2);
  border-radius: 24px;
  color: #f7fbff;
  background:
    radial-gradient(circle at 88% 18%, rgba(150, 206, 255, 0.18), transparent 32%),
    linear-gradient(120deg, rgba(24, 25, 65, 0.97), rgba(9, 33, 70, 0.97));
  box-shadow: 0 22px 54px rgba(3, 13, 36, 0.25);
}

.ball-choice-showcase h3 {
  margin: 0;
  font-size: clamp(1.42rem, 2vw, 2rem);
  line-height: 1.08;
  text-wrap: balance;
}

.ball-choice-showcase p {
  margin: 11px 0 0;
  color: #bdcede;
  line-height: 1.58;
}

.ball-choice-panel {
  position: relative;
  width: min(100%, 560px);
  justify-self: end;
  color: #4b321e;
  filter: drop-shadow(0 18px 18px rgba(0, 0, 0, 0.22));
}

.ball-choice-panel img {
  display: block;
  width: 100%;
  height: auto;
}

.ball-choice-panel > div {
  position: absolute;
  inset: 14% 8%;
  display: grid;
  gap: clamp(7px, 1vw, 12px);
  align-content: center;
}

.ball-choice-panel span {
  display: flex;
  min-height: clamp(32px, 3.8vw, 46px);
  align-items: center;
  justify-content: center;
  padding: 7px 12px;
  border: 1px solid rgba(135, 91, 49, 0.28);
  border-radius: 999px;
  background: rgba(255, 248, 229, 0.64);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.68);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(0.68rem, 0.94vw, 0.86rem);
  font-weight: 700;
  text-align: center;
}

.ball-ui-system-strip {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.82fr);
  gap: clamp(24px, 4vw, 60px);
  align-items: center;
  margin-top: clamp(18px, 2.6vw, 30px);
  padding: clamp(22px, 3vw, 34px);
  border: 1px solid rgba(174, 219, 255, 0.2);
  border-radius: 24px;
  color: #f7fbff;
  background:
    radial-gradient(circle at 92% 20%, rgba(255, 213, 73, 0.16), transparent 30%),
    linear-gradient(120deg, rgba(9, 33, 70, 0.96), rgba(24, 25, 65, 0.96));
  box-shadow: 0 22px 54px rgba(3, 13, 36, 0.25);
}

.ball-action-buttons {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(9px, 1.6vw, 18px);
}

.ball-result-menus {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(126px, 0.65fr);
  gap: 12px;
}

.ball-result-menu {
  position: relative;
  min-width: 0;
  min-height: 150px;
  display: grid;
  align-content: center;
  gap: 7px;
  overflow: hidden;
  padding: 18px;
  border: 1px solid rgba(224, 241, 255, 0.2);
  border-radius: 18px;
  color: #f7fbff;
  background:
    radial-gradient(circle at 84% 10%, rgba(255, 222, 101, 0.18), transparent 34%),
    linear-gradient(145deg, rgba(18, 58, 103, 0.98), rgba(9, 23, 53, 0.98));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.ball-result-menu > span {
  color: #8ee7ff;
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ball-result-menu > strong {
  font-size: clamp(1rem, 1.5vw, 1.3rem);
}

.ball-result-menu .ball-action-buttons {
  margin-top: 5px;
}

.ball-result-menu.is-defeat {
  grid-template-columns: 54px minmax(0, 1fr);
  grid-template-rows: auto auto;
  align-content: center;
  background:
    radial-gradient(circle at 16% 50%, rgba(126, 195, 255, 0.16), transparent 38%),
    linear-gradient(145deg, rgba(21, 37, 72, 0.98), rgba(9, 20, 45, 0.98));
}

.ball-result-menu.is-defeat img {
  grid-row: 1 / -1;
  width: 48px;
  height: 48px;
  align-self: center;
  object-fit: contain;
  filter: drop-shadow(0 8px 12px rgba(0, 0, 0, 0.28));
}

.ball-action-button {
  position: relative;
  display: grid;
  min-width: 0;
  place-items: center;
  isolation: isolate;
  filter: saturate(0.78) brightness(0.92);
}

.ball-action-button.is-primary {
  filter:
    saturate(1.08)
    drop-shadow(0 0 15px rgba(255, 217, 82, 0.28));
}

.ball-action-button img {
  z-index: -1;
  grid-area: 1 / 1;
  width: 100%;
  height: auto;
}

.ball-action-button b {
  grid-area: 1 / 1;
  padding-bottom: 3%;
  color: #50371e;
  font-size: clamp(0.76rem, 1.12vw, 1rem);
  text-align: center;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.62);
}

.ball-cast-heading {
  margin-top: clamp(42px, 6vw, 76px);
}

.ball-cast-heading h3 {
  font-size: clamp(2rem, 3.5vw, 3.2rem);
}

.ball-character-roster {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(10px, 1.4vw, 16px);
  margin-top: clamp(22px, 3vw, 34px);
}

.ball-character-card {
  position: relative;
  min-width: 0;
  overflow: hidden;
  padding: 12px 12px 16px;
  border: 1px solid rgba(180, 220, 255, 0.2);
  border-radius: 20px;
  color: #f7fbff;
  background:
    radial-gradient(circle at 50% 19%, rgba(143, 222, 255, 0.23), transparent 37%),
    linear-gradient(160deg, #123560, #111c3e 65%, #221a48);
  box-shadow: 0 18px 44px rgba(3, 13, 36, 0.24);
  outline: none;
  transition:
    border-color .25s var(--ease),
    box-shadow .25s var(--ease),
    transform .25s var(--ease);
}

.ball-character-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.1), transparent 26%);
}

.ball-character-card:is(:hover, :focus-visible) {
  border-color: rgba(152, 227, 255, 0.58);
  box-shadow:
    0 22px 48px rgba(3, 13, 36, 0.31),
    0 0 24px rgba(100, 206, 255, 0.14);
  transform: translateY(-5px);
}

.ball-character-card.is-espa,
.ball-character-card.is-miras {
  background:
    radial-gradient(circle at 50% 19%, rgba(255, 216, 72, 0.26), transparent 38%),
    linear-gradient(160deg, #20375d, #172247 65%, #402c3a);
}

.ball-character-card.is-shash {
  background:
    radial-gradient(circle at 50% 19%, rgba(216, 170, 255, 0.26), transparent 38%),
    linear-gradient(160deg, #41346d, #1b2149 64%, #312051);
}

.ball-character-card.is-khleya {
  background:
    radial-gradient(circle at 50% 19%, rgba(255, 165, 214, 0.25), transparent 38%),
    linear-gradient(160deg, #3a456d, #172b47 64%, #233e38);
}

.ball-character-card.is-varon {
  background:
    radial-gradient(circle at 50% 19%, rgba(170, 217, 106, 0.2), transparent 38%),
    linear-gradient(160deg, #344c4b, #132c3b 64%, #17223c);
}

.ball-character-art {
  position: relative;
  height: clamp(138px, 13vw, 182px);
  margin-bottom: 10px;
}

.ball-character-art img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 13px 11px rgba(0, 0, 0, 0.25));
  transition:
    opacity .2s var(--ease),
    transform .28s var(--ease);
}

.ball-character-art .is-close {
  opacity: 0;
  transform: scale(0.97);
}

.ball-character-card:is(:hover, :focus-visible) .ball-character-art .is-open {
  opacity: 0;
  transform: scale(1.035);
}

.ball-character-card:is(:hover, :focus-visible) .ball-character-art .is-close {
  opacity: 1;
  transform: scale(1.015);
}

.ball-character-card > span,
.ball-character-card > strong,
.ball-character-card > small {
  position: relative;
  z-index: 1;
  display: block;
}

.ball-character-card > span {
  color: #8ee7ff;
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.ball-character-card > strong {
  margin-top: 3px;
  font-size: clamp(1.05rem, 1.5vw, 1.35rem);
}

.ball-character-card > small {
  margin-top: 2px;
  color: #bbcadb;
  font-size: 0.72rem;
  font-weight: 760;
}

.ball-is-god-page[data-theme="light"] .ball-ui-feature,
.ball-is-god-page[data-theme="light"] .ball-choice-showcase,
.ball-is-god-page[data-theme="light"] .ball-ui-system-strip {
  border-color: rgba(47, 91, 150, 0.2);
  color: #14243f;
  background:
    radial-gradient(circle at 15% 10%, rgba(126, 195, 255, 0.24), transparent 31%),
    radial-gradient(circle at 88% 18%, rgba(255, 214, 84, 0.2), transparent 30%),
    linear-gradient(145deg, rgba(248, 252, 255, 0.94), rgba(232, 244, 255, 0.92));
  box-shadow:
    0 24px 58px rgba(47, 91, 150, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.78);
}

.ball-is-god-page[data-theme="light"] .ball-ui-feature header p,
.ball-is-god-page[data-theme="light"] .ball-choice-showcase p,
.ball-is-god-page[data-theme="light"] .ball-ui-system-strip p {
  color: #4f6681;
}

.ball-is-god-page[data-theme="light"] .ball-ui-label,
.ball-is-god-page[data-theme="light"] .ball-character-card > span {
  border-color: rgba(20, 114, 158, 0.22);
  color: #0a668d;
  background: rgba(74, 188, 231, 0.1);
}

.ball-is-god-page[data-theme="light"] .ball-character-card,
.ball-is-god-page[data-theme="light"] .ball-character-card.is-espa,
.ball-is-god-page[data-theme="light"] .ball-character-card.is-miras,
.ball-is-god-page[data-theme="light"] .ball-character-card.is-shash,
.ball-is-god-page[data-theme="light"] .ball-character-card.is-khleya,
.ball-is-god-page[data-theme="light"] .ball-character-card.is-varon {
  border-color: rgba(47, 91, 150, 0.18);
  color: #14243f;
  background:
    radial-gradient(circle at 50% 19%, rgba(126, 195, 255, 0.26), transparent 38%),
    radial-gradient(circle at 84% 8%, rgba(255, 214, 84, 0.18), transparent 32%),
    linear-gradient(160deg, rgba(249, 253, 255, 0.96), rgba(229, 242, 253, 0.94));
  box-shadow: 0 18px 38px rgba(47, 91, 150, 0.14);
}

.ball-is-god-page[data-theme="light"] .ball-character-card > small {
  color: #5b6f86;
}

.ball-is-god-page[data-theme="light"] .ball-character-art img {
  filter: drop-shadow(0 13px 11px rgba(47, 91, 150, 0.2));
}

.ball-is-god-page[data-theme="light"] .ball-result-menu {
  border-color: rgba(47, 91, 150, 0.18);
  color: #14243f;
  background:
    radial-gradient(circle at 84% 10%, rgba(255, 214, 84, 0.22), transparent 34%),
    linear-gradient(145deg, rgba(249, 253, 255, 0.96), rgba(224, 241, 255, 0.96));
}

.ball-is-god-page[data-theme="light"] .ball-result-menu.is-defeat {
  background:
    radial-gradient(circle at 16% 50%, rgba(126, 195, 255, 0.22), transparent 38%),
    linear-gradient(145deg, rgba(244, 250, 255, 0.98), rgba(220, 238, 252, 0.98));
}

.ball-is-god-page[data-theme="light"] .ball-result-menu > span {
  color: #0a668d;
}

@media (max-width: 1040px) {
  .ball-character-roster {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .ball-character-art {
    height: 190px;
  }
}

@media (max-width: 920px) {
  .ball-production-heading,
  .ball-cast-heading,
  .ball-production-ui-grid,
  .ball-choice-showcase,
  .ball-ui-system-strip {
    grid-template-columns: 1fr;
  }

  .ball-production-heading > p,
  .ball-cast-heading > p {
    max-width: 68ch;
  }

  .ball-ui-system-strip {
    gap: 20px;
  }

  .ball-choice-panel {
    justify-self: start;
  }

  .ball-action-buttons {
    max-width: 520px;
  }

  .ball-menu-flow {
    grid-auto-columns: minmax(218px, 72vw);
    grid-auto-flow: column;
    grid-template-columns: none;
    overflow-x: auto;
    padding: 4px 3px 14px;
    scrollbar-color: var(--game-accent) transparent;
    scroll-snap-type: x proximity;
  }

  .ball-menu-flow::before {
    display: none;
  }

  .ball-menu-flow li {
    scroll-snap-align: start;
  }
}

@media (max-width: 560px) {
  .ball-production-ui {
    scroll-margin-top: 172px;
  }

  .ball-ui-feature {
    padding: 18px;
    border-radius: 22px;
  }

  .ball-ui-device {
    width: 100%;
    border-radius: 24px;
  }

  .ball-level-medallions span {
    width: clamp(48px, 17vw, 68px);
  }

  .ball-dialogue-copy p {
    font-size: clamp(0.61rem, 3vw, 0.78rem);
  }

  .ball-ui-system-strip {
    padding: 20px 18px;
    border-radius: 20px;
  }

  .ball-choice-showcase {
    padding: 20px 18px;
    border-radius: 20px;
  }

  .ball-choice-panel span {
    min-height: 30px;
    padding-block: 5px;
    font-size: clamp(0.6rem, 2.7vw, 0.74rem);
  }

  .ball-action-buttons {
    gap: 5px;
  }

  .ball-result-menus {
    grid-template-columns: 1fr;
  }

  .ball-result-menu {
    min-height: 132px;
  }

  .ball-character-roster {
    grid-auto-columns: 68%;
    grid-auto-flow: column;
    grid-template-columns: none;
    gap: 12px;
    overflow-x: auto;
    padding: 4px 3px 16px;
    scrollbar-color: #76d8ff transparent;
    scroll-snap-type: x mandatory;
  }

  .ball-character-card {
    scroll-snap-align: start;
  }

  .ball-character-art {
    height: 220px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ball-character-card,
  .ball-character-art img {
    transition: none;
  }
}
