:root {
  color-scheme: light;
  --paper: #f4f7ff;
  --white: #fff;
  --ink: #142650;
  --blue: #2857c5;
  --pale-blue: #e4ecff;
  --line: #d3def5;
  --yellow: #ffcf54;
  --muted: #5f6f91;
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
button { font: inherit; }
:focus-visible { outline: 3px solid #f0a600; outline-offset: 4px; }
.shell { width: min(1180px, calc(100% - 72px)); margin-inline: auto; }
.skip-link { position: absolute; z-index: 100; top: -60px; left: 16px; padding: 10px 16px; background: var(--ink); color: white; }
.skip-link:focus { top: 16px; }

.site-header { border-bottom: 1px solid var(--line); }
.header-inner { min-height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); font-size: 20px; font-weight: 850; letter-spacing: -.055em; text-decoration: none; }
.brand-dot { color: var(--blue); }
.brand-mark { width: 30px; height: 30px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 3px; transform: rotate(-8deg); }
.brand-mark span { background: var(--blue); border-radius: 2px; }
.brand-mark span:nth-child(2) { background: var(--yellow); }
.brand-mark span:nth-child(3) { border-radius: 50%; }
.header-inner nav { display: flex; align-items: center; gap: 36px; }
.header-inner nav a { font-size: 14px; font-weight: 700; text-decoration: none; }
.header-inner nav a:hover { color: var(--blue); }

.hero { min-height: 570px; display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: clamp(30px, 5vw, 86px); padding-block: 66px 84px; }
.hero-kicker, .section-kicker { margin: 0 0 24px; color: var(--blue); font-size: 14px; font-weight: 800; letter-spacing: .08em; }
.hero h1 { max-width: 650px; margin: 0; font-size: clamp(42px, 5.1vw, 72px); line-height: 1.2; font-weight: 900; letter-spacing: -.065em; }
.hero h1 span { color: var(--blue); }
.hero-intro { max-width: 480px; margin: 28px 0 36px; color: #455779; font-size: 17px; line-height: 1.9; }
.primary-link { display: inline-flex; align-items: center; justify-content: space-between; gap: 36px; min-width: 168px; min-height: 52px; padding: 0 19px; background: var(--ink); color: white; border-radius: 8px; font-size: 14px; font-weight: 800; text-decoration: none; }
.primary-link:hover { background: var(--blue); }
.primary-link span { font-size: 20px; font-weight: 400; }

.hero-art { align-self: center; }
.art-stage { position: relative; width: 100%; aspect-ratio: 1.15; display: grid; place-items: center; overflow: hidden; border: 1px solid #92adf3; border-radius: 30px 30px 110px 30px; background: #b7caff; }
.art-stage::before { content: ""; position: absolute; width: 74%; aspect-ratio: 1; border: 1px solid rgba(255,255,255,.7); border-radius: 50%; }
.art-stage::after { content: ""; position: absolute; width: 43%; aspect-ratio: 1; border: 1px solid rgba(255,255,255,.7); border-radius: 50%; }
.art-orbit { position: absolute; width: 120%; height: 2px; background: #86a7f1; transform: rotate(-25deg); }
.art-orbit-one { top: 33%; }
.art-orbit-two { bottom: 24%; }
.art-spark { position: absolute; z-index: 2; color: #fff; font-size: 43px; }
.art-spark-one { top: 14%; left: 14%; }
.art-spark-two { right: 13%; bottom: 16%; font-size: 27px; }
.art-box { position: relative; z-index: 3; width: 42%; aspect-ratio: 1.15; transform: rotate(-7deg); filter: drop-shadow(14px 22px 0 rgba(40,87,197,.18)); }
.box-lid { position: absolute; top: 5%; left: -7%; width: 114%; height: 25%; background: #ffe187; border: 4px solid var(--ink); border-radius: 10px; transform: rotate(-5deg); }
.box-front { position: absolute; top: 28%; left: 4%; width: 92%; height: 70%; display: grid; place-items: center; background: var(--yellow); border: 4px solid var(--ink); border-radius: 8px 8px 20px 20px; font-size: clamp(72px, 10vw, 140px); font-weight: 900; line-height: 1; }
.art-coin { position: absolute; z-index: 4; left: 8%; bottom: 20%; display: grid; place-items: center; width: 59px; height: 59px; border: 3px solid var(--ink); border-radius: 50%; background: #fff0a7; color: var(--yellow); font-size: 25px; }
.hero-art > p { margin: 13px 12px 0 0; color: var(--muted); font-size: 12px; text-align: right; }

.games-section { padding: 94px 0 106px; background: var(--white); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 44px; }
.section-heading .section-kicker { margin-bottom: 9px; }
.section-heading h2 { margin: 0; font-size: clamp(36px, 4vw, 52px); line-height: 1.1; letter-spacing: -.06em; }
.section-heading > p { margin: 0 0 4px; color: var(--muted); font-size: 15px; }
.game { display: grid; grid-template-columns: .88fr 1.12fr; gap: clamp(30px, 6vw, 86px); align-items: center; padding: 50px 0; border-top: 1px solid var(--line); }
.game:last-child { border-bottom: 1px solid var(--line); }
.game-runner .game-info { order: 2; }
.game-runner .carousel { order: 1; }
.game-title-row { display: flex; align-items: flex-start; gap: 18px; }
.game-title-row > div { min-width: 0; }
.game-icon { flex: none; width: 88px; height: 88px; object-fit: cover; border-radius: 18px; border: 1px solid var(--line); }
.game-status { display: inline-flex; align-items: center; gap: 8px; color: var(--blue); font-size: 13px; font-weight: 750; }
.game-status > span { width: 8px; height: 8px; border-radius: 50%; background: #33a47a; }
.game h3 { max-width: 470px; margin: 8px 0 20px; font-size: clamp(36px, 4vw, 54px); line-height: 1.18; font-weight: 900; letter-spacing: -.06em; }
.game-alt-name { display: block; margin-top: 8px; color: var(--blue); font-size: .64em; letter-spacing: -.04em; }
.game-lead { max-width: 470px; margin: 0; font-size: 18px; line-height: 1.85; }
.platforms { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.platforms span { padding: 8px 12px; border: 1px solid var(--line); border-radius: 6px; color: #475779; font-size: 12px; font-weight: 700; }
.play-qr { display: flex; align-items: center; gap: 16px; width: fit-content; margin-top: 28px; padding: 10px 18px 10px 10px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); }
.play-qr > a { display: block; flex: none; width: 112px; height: 112px; overflow: hidden; border-radius: 7px; }
.play-qr img { display: block; width: 100%; height: 100%; object-fit: contain; background: var(--white); }
.play-qr strong { display: block; font-size: 15px; }
.play-qr p { margin: 8px 0 0; color: var(--muted); font-size: 12px; line-height: 1.7; }

.carousel { min-width: 0; }
.carousel-frame { position: relative; overflow: hidden; border-radius: 17px; touch-action: pan-y; }
.carousel-track { display: flex; transform: translate3d(calc(-100% * var(--slide-index, 0)), 0, 0); }
.carousel-track.is-ready { transition: transform 540ms cubic-bezier(.22,.68,.17,1); }
.slide { flex: 0 0 100%; min-width: 0; }
.screenshot-link { display: block; overflow: hidden; border-radius: 17px; background: #e7ecf7; border: 1px solid var(--line); }
.screenshot-link img { display: block; width: 100%; height: auto; aspect-ratio: 2556 / 1179; object-fit: contain; }
.screenshot-link:hover { border-color: var(--blue); }
.carousel-arrow { position: absolute; z-index: 2; top: 50%; width: 38px; height: 48px; display: grid; place-items: center; padding: 0; transform: translateY(-50%); border: 0; border-radius: 6px; background: rgba(20,38,80,.55); color: var(--white); cursor: pointer; }
.carousel-arrow svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.carousel-arrow:hover { background: rgba(20,38,80,.88); }
.carousel-arrow-prev { left: 12px; }
.carousel-arrow-next { right: 12px; }
.carousel-controls { display: flex; justify-content: center; align-items: center; margin-top: 12px; }
.carousel-dots { display: flex; gap: 8px; }
.carousel-dots button { width: 27px; height: 20px; padding: 0; border: 0; background: transparent; cursor: pointer; }
.carousel-dots button::after { content: ""; display: block; width: 100%; height: 4px; border-radius: 4px; background: #c8d5ef; }
.carousel-dots button[aria-current="true"]::after { background: var(--blue); }

.about-section { display: grid; grid-template-columns: 250px 1fr; gap: clamp(45px, 10vw, 160px); align-items: center; padding-block: 116px; }
.about-symbol { width: 210px; height: 210px; display: grid; place-items: center; border-radius: 50%; background: var(--yellow); color: var(--ink); font-size: 130px; font-weight: 900; line-height: 1; letter-spacing: -.17em; transform: rotate(-12deg); }
.about-symbol span:last-child { margin-left: -35px; color: var(--blue); }
.about-section .section-kicker { margin-bottom: 16px; }
.about-section h2 { max-width: 650px; margin: 0 0 24px; font-size: clamp(30px, 3.4vw, 46px); line-height: 1.35; letter-spacing: -.055em; }
.about-section p:not(.section-kicker) { max-width: 610px; margin: 0; color: #485a7d; font-size: 17px; line-height: 1.85; }
.about-section .about-note { margin-top: 15px !important; font-size: 14px !important; color: var(--muted) !important; }
.contact-section { padding-block: 94px 105px; background: var(--white); }
.contact-heading { margin-bottom: 34px; }
.contact-heading .section-kicker { margin-bottom: 10px; }
.contact-heading h2 { margin: 0; font-size: clamp(32px, 3.8vw, 50px); line-height: 1.25; letter-spacing: -.055em; }
.contact-heading > p:last-child { margin: 16px 0 0; color: var(--muted); font-size: 16px; }
.contact-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.contact-card { min-width: 0; min-height: 226px; display: flex; align-items: center; gap: 24px; padding: 20px; border: 1px solid var(--line); border-radius: 14px; background: var(--paper); text-decoration: none; }
.contact-card:hover { border-color: var(--blue); }
.contact-card img { flex: none; width: 136px; height: 186px; object-fit: contain; background: var(--white); border-radius: 7px; }
.contact-card h3 { margin: 0 0 9px; font-size: 23px; letter-spacing: -.04em; }
.contact-card p { margin: 0; color: #4c5b7b; font-size: 14px; line-height: 1.8; }
.contact-card span { display: inline-block; margin-top: 23px; color: var(--blue); font-size: 13px; font-weight: 750; }
.contact-email { display: flex; align-items: center; gap: 24px; margin-top: 32px; padding: 25px 2px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); text-decoration: none; }
.contact-email > span:first-child { color: var(--muted); font-size: 14px; }
.contact-email strong { margin-left: auto; font-size: clamp(17px, 2vw, 24px); letter-spacing: -.02em; }
.contact-email > span:last-child { color: var(--blue); font-size: 25px; }
.contact-email:hover strong { color: var(--blue); }
.site-footer { padding: 35px 0 24px; background: var(--ink); color: white; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-bottom: 28px; border-bottom: 1px solid #3c4d72; }
.footer-brand { font-size: 18px; font-weight: 850; letter-spacing: -.04em; }
.footer-inner p { margin: 0; color: #aab8d8; font-size: 13px; }
.filing { padding-top: 24px; font-size: 13px; text-align: center; }
.filing a { color: #dbe5ff; text-decoration: underline; text-underline-offset: 4px; }

@media (max-width: 850px) {
  .hero { grid-template-columns: 1fr; padding-block: 68px; }
  .hero-art { max-width: 580px; }
  .game { grid-template-columns: 1fr; gap: 30px; }
  .game-runner .game-info, .game-runner .carousel { order: initial; }
  .game-info { max-width: 610px; }
  .about-section { grid-template-columns: 160px 1fr; gap: 38px; }
  .about-symbol { width: 150px; height: 150px; font-size: 90px; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .shell { width: min(100% - 36px, 1180px); }
  .header-inner { min-height: 67px; }
  .brand { font-size: 17px; gap: 9px; }
  .brand-mark { width: 24px; height: 24px; }
  .header-inner nav { gap: 17px; }
  .header-inner nav a { font-size: 13px; }
  .hero { gap: 42px; padding-block: 58px 64px; }
  .hero-kicker { margin-bottom: 17px; }
  .hero h1 { font-size: clamp(40px, 10.8vw, 60px); }
  .hero-intro { margin: 22px 0 26px; font-size: 15px; }
  .art-stage { border-radius: 22px 22px 85px 22px; }
  .art-coin { width: 40px; height: 40px; font-size: 18px; }
  .games-section { padding-block: 70px; }
  .section-heading { display: block; margin-bottom: 31px; }
  .section-heading > p { margin-top: 12px; }
  .game { padding: 38px 0 44px; }
  .game-title-row { gap: 12px; }
  .game-icon { width: 64px; height: 64px; border-radius: 12px; }
  .game h3 { margin: 5px 0 16px; font-size: clamp(28px, 8vw, 38px); }
  .game-lead { font-size: 16px; }
  .platforms { margin-top: 21px; }
  .play-qr { margin-top: 23px; }
  .carousel-arrow { width: 34px; height: 44px; }
  .carousel-arrow svg { width: 17px; height: 17px; }
  .carousel-arrow-prev { left: 7px; }
  .carousel-arrow-next { right: 7px; }
  .about-section { grid-template-columns: 1fr; gap: 28px; padding-block: 80px; }
  .about-symbol { width: 110px; height: 110px; font-size: 70px; }
  .about-section p:not(.section-kicker) { font-size: 15px; }
  .contact-section { padding-block: 72px 78px; }
  .contact-heading > p:last-child { font-size: 14px; }
  .contact-card { min-height: 190px; gap: 16px; padding: 14px; }
  .contact-card img { width: 110px; height: 150px; }
  .contact-card h3 { font-size: 20px; }
  .contact-card p { font-size: 12px; }
  .contact-card span { margin-top: 14px; font-size: 12px; }
  .contact-email { flex-wrap: wrap; gap: 7px 15px; }
  .contact-email > span:first-child { flex: 0 0 100%; }
  .contact-email strong { margin-left: 0; overflow-wrap: anywhere; }
  .contact-email > span:last-child { margin-left: auto; }
  .footer-inner { display: block; }
  .footer-inner p { margin-top: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .carousel-track.is-ready { transition: none; }
}
