.page-nav {display:flex;align-items:center;justify-content:flex-end;gap:.9rem;}
.page-nav > a:not(.back) {font-size:.875rem;font-weight:700;text-underline-offset:.2em;}
.story-layout {
  display:grid;
  grid-template-columns:minmax(0,.85fr) minmax(0,1.2fr) minmax(0,1.24fr);
  align-items:center;gap:clamp(1.1rem,3vw,3rem);
  min-height:calc(100dvh - 5rem);padding:1.8rem 0 2.4rem;
}
.story-intro h1 {font-size:clamp(2.6rem,5.6vw,5.2rem);}
.about-page .story-intro h1 {font-size:clamp(2.55rem,4.8vw,4.8rem);}
.about-page .story-contact {margin-top:1rem;}
.story-art {
  position:relative;isolation:isolate;display:grid;place-items:center;min-width:0;
  padding:1rem .1rem;
}
.story-art::before {
  content:"";position:absolute;z-index:-1;inset:2% -7%;pointer-events:none;
  background:radial-gradient(ellipse at 50% 43%,#b3bbff65,transparent 70%);
}
.story-art::after {
  content:"";position:absolute;z-index:-1;left:50%;bottom:1rem;width:98%;height:17%;
  transform:translateX(-50%);border-radius:50%;border:1px solid #bcf5e89d;
  background:repeating-radial-gradient(ellipse,#9ce7d024 0 12%,#c4ffe474 13%,#8bd9ce25 15% 24%);
  box-shadow:0 0 0 .8rem #bdffd11f,0 0 28px #b2fbe246;
}
.story-art > img {display:block;width:100%;height:auto;max-height:62vh;object-fit:contain;}
.about-page .story-art > img {width:auto;max-width:100%;}
.story-cards {display:grid;gap:.72rem;min-width:0;}
.story-card {
  padding:.83rem 1rem .92rem;background:#f6efff;color:#281c3e;
  border:1px solid #fff;border-radius:.7rem;box-shadow:0 5px 14px #140b3966;
}
.story-card h2 {margin:0 0 .32rem;font-size:1.23rem;line-height:1.15;letter-spacing:-.026em;}
.story-card p {margin:0;font-size:.94rem;line-height:1.45;}
@media(max-width:900px) {
  .story-layout {grid-template-columns:minmax(0,1fr) minmax(9rem,.9fr);align-items:center;gap:1.45rem 1rem;}
  .story-cards {grid-column:1/-1;grid-template-columns:repeat(2,minmax(0,1fr));}
  .story-art > img {max-height:17rem;}
}
@media(max-width:535px) {
  .story-layout {padding-top:1.35rem;}
  .story-intro h1,.about-page .story-intro h1 {font-size:clamp(2.02rem,8.7vw,3.2rem);}
  .story-intro p {font-size:.875rem;}
  .story-cards {grid-template-columns:1fr;}
  .page-nav {gap:.58rem;}
  .story-art > img {max-height:13rem;}
  .story-art::after {bottom:1.3rem;box-shadow:0 0 0 .4rem #bdffd11f;}
}

.service-title {display:flex;align-items:center;gap:.48rem;}
.service-title svg {
  flex:none;box-sizing:border-box;width:2rem;height:2rem;padding:.31rem;
  border:1px solid #514571;border-radius:50%;
  background:linear-gradient(#d2c8f6,#8879b3);
  box-shadow:inset 0 1px #ede6ff,0 1px #4c4273;
  color:#211f55;
}
.story-art .story-animation {width:min(100%,clamp(7rem,28vw,17rem));}
.phone-animation {--frames:4;--duration:.83s;}

@media (hover:hover) {
  .game-panel .story-card {
    transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease;
  }
  .game-panel .story-card:hover {
    transform:translateY(-3px);
    border-color:#594379;
    box-shadow:inset 0 1px #fff8ff,0 5px 10px #58407564;
  }
}
@media (prefers-reduced-motion:reduce) {
  .game-panel .story-card {transition:none;}
  .game-panel .story-card:hover {transform:none;}
}
