:root {
  color-scheme: light;
  --bg: #fbfaf7;
  --bg-2: #f4f0f8;
  --paper: #ffffff;
  --paper-2: #fffdf8;
  --ink: #17131f;
  --text: #17131f;
  --muted: #5f586b;
  --subtle: #8f879c;
  --purple: #8b2bd8;
  --purple-2: #b828df;
  --pink: #f12fc5;
  --cyan: #5fded6;
  --lavender: #efe6ff;
  --silver: #ebe7f1;
  --line: rgba(35, 25, 48, 0.12);
  --line-strong: rgba(139, 43, 216, 0.24);
  --shadow: 0 24px 70px rgba(48, 31, 68, 0.13);
  --shadow-soft: 0 14px 40px rgba(55, 38, 71, 0.08);
  --radius: 28px;
  --max: 1180px;
  --header: 82px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  font-family: Inter, "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 4% 6%, rgba(139, 43, 216, 0.12), transparent 27rem),
    radial-gradient(circle at 93% 12%, rgba(241, 47, 197, 0.08), transparent 24rem),
    linear-gradient(180deg, #fffdfa 0%, #fbfaf7 45%, #f6f2fa 100%);
  color: var(--text);
  line-height: 1.8;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -4;
  background-image:
    linear-gradient(rgba(31, 22, 42, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(31, 22, 42, .035) 1px, transparent 1px);
  background-size: 58px 58px;
  mask-image: radial-gradient(circle at 50% 8%, #000 0, transparent 76%);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -3;
  background:
    linear-gradient(122deg, transparent 0 35%, rgba(139,43,216,.055) 35% 35.6%, transparent 35.6% 62%, rgba(241,47,197,.04) 62% 62.5%, transparent 62.5%),
    radial-gradient(circle at 50% 100%, rgba(139,43,216,.075), transparent 36rem);
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font: inherit; }
::selection { background: var(--purple); color: #fff; }

.container {
  width: min(var(--max), calc(100% - 40px));
  margin-inline: auto;
}

.section {
  position: relative;
  padding: clamp(78px, 10vw, 138px) 0;
}

.grid { display: grid; gap: clamp(26px, 4vw, 58px); align-items: center; }
.grid--2 { grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  font-size: .76rem;
  font-weight: 900;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--purple);
}
.eyebrow::before {
  content: "";
  width: 38px;
  height: 2px;
  background: linear-gradient(90deg, var(--purple), var(--pink));
  box-shadow: 0 0 22px rgba(184, 40, 223, .32);
}

h1, h2, h3, p { margin-top: 0; }
h1 {
  margin-bottom: 24px;
  font-size: clamp(3.55rem, 10.4vw, 10.1rem);
  line-height: .9;
  letter-spacing: -.09em;
  font-weight: 950;
}
h1 span { display: block; }
h2 {
  margin-bottom: 22px;
  font-size: clamp(2.1rem, 5vw, 5.2rem);
  line-height: 1.03;
  letter-spacing: -.07em;
  font-weight: 950;
}
h3 { margin-bottom: 14px; line-height: 1.25; }
p { color: var(--muted); }

.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255,255,255,.82);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(18px);
}

.button,
.chip {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 22px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-weight: 850;
  letter-spacing: .04em;
  overflow: hidden;
  cursor: pointer;
  background: #fff;
  color: var(--ink);
  transition: transform .35s var(--ease), border-color .35s var(--ease), background .35s var(--ease), box-shadow .35s var(--ease), color .35s var(--ease);
}
.button::after,
.chip::after {
  content: "";
  position: absolute;
  inset: -2px;
  transform: translateX(-120%) skewX(-18deg);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.42), transparent);
  transition: transform .7s var(--ease);
}
.button:hover,
.chip:hover { transform: translateY(-3px); box-shadow: var(--shadow-soft); }
.button:hover::after,
.chip:hover::after { transform: translateX(120%) skewX(-18deg); }
.button--primary,
.chip.is-active {
  border-color: transparent;
  color: white;
  background: linear-gradient(135deg, var(--purple), var(--purple-2) 58%, var(--pink));
  box-shadow: 0 16px 42px rgba(139,43,216,.27);
}
.button--ghost { background: rgba(255,255,255,.78); }
.button-row,
.hero__actions,
.contact__actions { display: flex; flex-wrap: wrap; gap: 14px; }

.loader {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: grid;
  place-items: center;
  gap: 14px;
  background:
    radial-gradient(circle at 50% 35%, rgba(139,43,216,.11), transparent 24rem),
    #fffdfa;
  transition: opacity .75s var(--ease), visibility .75s var(--ease);
}
.loader.is-hidden { opacity: 0; visibility: hidden; }
.loader__logo { width: 170px; opacity: .92; filter: drop-shadow(0 16px 28px rgba(139,43,216,.18)); animation: logoPulse 1.8s ease-in-out infinite alternate; }
.loader span { letter-spacing: .26em; font-size: .75rem; color: var(--muted); font-weight: 900; }
@keyframes logoPulse { from { transform: translateY(0); opacity: .68; } to { transform: translateY(-8px); opacity: 1; } }

.spore-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: -1;
  opacity: .42;
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  width: 100%;
  height: 3px;
  transform-origin: left center;
  transform: scaleX(0);
  background: linear-gradient(90deg, var(--purple), var(--pink), var(--cyan));
  box-shadow: 0 0 18px rgba(139,43,216,.45);
}

.playfield {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}
.play-sticker {
  position: absolute;
  display: grid;
  place-items: center;
  width: 14px;
  height: 14px;
  border-radius: 999px;
  color: rgba(139,43,216,.45);
  font-size: 12px;
  font-weight: 950;
  transform: translate3d(var(--tx,0), var(--ty,0), 0);
  animation: stickerFloat var(--d, 9s) ease-in-out infinite alternate;
}
.play-sticker:nth-child(3n) { color: rgba(241,47,197,.38); }
.play-sticker:nth-child(4n) { color: rgba(95,222,214,.5); }
@keyframes stickerFloat { to { transform: translate3d(calc(var(--tx,0) + 10px), calc(var(--ty,0) - 18px), 0) rotate(12deg); } }

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 80;
  height: var(--header);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px clamp(18px, 4vw, 48px);
  transition: background .35s var(--ease), border-color .35s var(--ease), backdrop-filter .35s var(--ease), box-shadow .35s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: rgba(255,255,255,.82);
  backdrop-filter: blur(18px);
  border-color: rgba(42,32,54,.1);
  box-shadow: 0 14px 32px rgba(45, 31, 61, .08);
}
.brand { display: inline-flex; align-items: center; gap: 12px; min-width: 0; }
.brand__mark { width: 54px; height: 44px; object-fit: contain; filter: drop-shadow(0 10px 16px rgba(139,43,216,.18)); }
.brand__text { font-weight: 950; font-size: .82rem; line-height: .9; letter-spacing: .1em; color: var(--ink); }
.global-nav { display: flex; align-items: center; gap: clamp(14px, 2vw, 28px); font-size: .86rem; font-weight: 850; letter-spacing: .08em; }
.global-nav a { color: rgba(23,19,31,.74); transition: color .25s var(--ease), transform .25s var(--ease); }
.global-nav a:hover { color: var(--purple); transform: translateY(-2px); }
.nav-contact { padding: 10px 16px; border-radius: 999px; background: rgba(139,43,216,.1); border: 1px solid rgba(139,43,216,.18); }
.nav-toggle { display: none; width: 44px; height: 44px; border: 0; background: transparent; color: var(--ink); padding: 10px; }
.nav-toggle span { display: block; height: 2px; background: currentColor; margin: 6px 0; transition: transform .3s var(--ease), opacity .3s var(--ease); }
.nav-toggle.is-open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.hero {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding-top: var(--header);
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255,255,255,.3), rgba(255,255,255,0)),
    radial-gradient(circle at 66% 52%, rgba(139,43,216,.12), transparent 27rem);
}
.hero::before {
  content: "";
  position: absolute;
  inset: auto -4vw 11vh auto;
  width: min(58vw, 740px);
  height: min(58vw, 740px);
  border: 1px solid rgba(139,43,216,.12);
  border-radius: 42% 58% 49% 51%;
  background: linear-gradient(135deg, rgba(255,255,255,.86), rgba(239,230,255,.38));
  box-shadow: var(--shadow-soft);
  animation: heroBlob 9s ease-in-out infinite alternate;
}
.hero::after {
  content: "";
  position: absolute;
  left: -12vw;
  bottom: 10vh;
  width: 58vw;
  height: 20vh;
  transform: rotate(-7deg);
  border-top: 1px solid rgba(139,43,216,.18);
  border-bottom: 1px solid rgba(139,43,216,.09);
  background: linear-gradient(90deg, transparent, rgba(139,43,216,.08), transparent);
  pointer-events: none;
}
@keyframes heroBlob { to { border-radius: 57% 43% 60% 40%; transform: translate3d(-18px, 12px, 0) rotate(2deg); } }
.hero__copy { position: relative; z-index: 5; }
.hero__lead { width: min(760px, 100%); font-size: clamp(1rem, 1.7vw, 1.22rem); color: var(--muted); }
.hero__back-logo {
  position: absolute;
  right: -8vw;
  top: 8vh;
  width: min(740px, 82vw);
  opacity: .11;
  transform: rotate(-2deg);
  filter: drop-shadow(0 0 40px rgba(139,43,216,.25));
  animation: driftLogo 12s ease-in-out infinite alternate;
}
@keyframes driftLogo { to { transform: translate3d(-20px, 18px, 0) rotate(1deg); } }
.hero__machine {
  position: absolute;
  z-index: 1;
  width: min(56vw, 780px);
  border: 1px solid rgba(23,19,31,.1);
  box-shadow: 0 38px 90px rgba(48,31,68,.16);
  opacity: .36;
  overflow: hidden;
  pointer-events: none;
  clip-path: polygon(9% 0, 100% 0, 91% 100%, 0 100%);
  background: #fff;
}
.hero__machine img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.78) contrast(1.06) brightness(1.04); transform: scale(1.12); }
.hero__machine--a { right: -12vw; bottom: 7vh; height: min(42vh, 360px); }
.hero__machine--b { left: -22vw; top: 18vh; height: min(35vh, 300px); transform: rotate(4deg); opacity: .22; }
.hero__tags {
  position: absolute;
  left: max(20px, 4vw);
  bottom: 30px;
  z-index: 6;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.hero__tags span {
  padding: 7px 13px;
  border: 1px solid rgba(139,43,216,.18);
  border-radius: 999px;
  color: rgba(23,19,31,.62);
  font-size: .72rem;
  letter-spacing: .18em;
  font-weight: 900;
  background: rgba(255,255,255,.72);
  box-shadow: var(--shadow-soft);
}
.hero__tags span:nth-child(2n) { transform: rotate(-2deg); }
.hero__tags span:nth-child(3n) { transform: rotate(2deg); }

.marquee {
  border-block: 1px solid rgba(139,43,216,.14);
  overflow: hidden;
  background: linear-gradient(90deg, rgba(139,43,216,.12), rgba(255,255,255,.86), rgba(241,47,197,.09));
}
.marquee__track { display: flex; width: max-content; animation: marquee 28s linear infinite; }
.marquee span {
  display: inline-flex;
  padding: 14px 34px;
  font-weight: 950;
  letter-spacing: .16em;
  color: rgba(23,19,31,.68);
}
@keyframes marquee { to { transform: translateX(-50%); } }

.section-head--center { text-align: center; max-width: 820px; margin-inline: auto; }
.section-head--center .eyebrow { justify-content: center; }
.about { background: linear-gradient(180deg, rgba(255,255,255,.56), rgba(246,242,250,.38)); }
.about__text { padding: clamp(22px, 4vw, 42px); }
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 42px;
}
.stat {
  min-height: 128px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255,255,255,.84);
  box-shadow: var(--shadow-soft);
}
.stat strong {
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 1;
  letter-spacing: -.08em;
  color: var(--ink);
}
.stat span { color: var(--muted); font-size: .9rem; }

.business { overflow: hidden; background: #fffdf9; }
.business::before,
.business::after {
  content: "";
  position: absolute;
  pointer-events: none;
  border-radius: 999px;
  background: rgba(139,43,216,.08);
  filter: blur(.2px);
}
.business::before { width: 260px; height: 260px; left: -90px; top: 12%; }
.business::after { width: 160px; height: 160px; right: 6%; bottom: 4%; background: rgba(241,47,197,.07); }
.business-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 18px;
  margin-top: 50px;
}
.business-card {
  position: relative;
  min-height: 330px;
  grid-column: span 2;
  padding: 28px;
  border: 1px solid rgba(42,32,54,.11);
  border-radius: 30px;
  background:
    linear-gradient(145deg, rgba(255,255,255,.96), rgba(250,246,255,.68));
  box-shadow: var(--shadow-soft);
  transform-style: preserve-3d;
  overflow: hidden;
}
.business-card:nth-child(4), .business-card:nth-child(5) { grid-column: span 3; }
.business-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(184,40,223,.18), transparent 220px),
    linear-gradient(135deg, transparent, rgba(255,255,255,.08));
  opacity: .85;
  transition: opacity .35s var(--ease);
}
.business-card::after {
  content: "";
  position: absolute;
  inset: auto -12% -32% 24%;
  height: 50%;
  transform: rotate(-8deg);
  background: linear-gradient(90deg, transparent, rgba(139,43,216,.14), rgba(241,47,197,.08), transparent);
}
.business-card > * { position: relative; z-index: 1; }
.business-card__num {
  display: inline-flex;
  margin-bottom: 42px;
  color: rgba(139,43,216,.48);
  font-size: .86rem;
  font-weight: 950;
  letter-spacing: .18em;
}
.business-card h3 {
  font-size: clamp(1.45rem, 2.4vw, 2.5rem);
  letter-spacing: -.04em;
  font-weight: 950;
}
.business-card p { margin: 0; }
.business-card--factory { background: linear-gradient(145deg, #ffffff, #f3ecfb 62%, #fff); }
.business-card--world { background: linear-gradient(145deg, #ffffff, rgba(255,239,250,.9), #f5ecff); }

.factory {
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(circle at 85% 0, rgba(139,43,216,.12), transparent 26rem),
    linear-gradient(180deg, #fff, #f8f4fc 100%);
  color: var(--ink);
}
.factory .eyebrow { color: var(--purple); }
.machines .eyebrow { color: #d9c4ff; }
.factory p { color: var(--muted); }
.machines p { color: rgba(255,255,255,.72); }
.site-footer p { color: var(--muted); }
.factory__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  opacity: .14;
  overflow: hidden;
}
.factory__bg img {
  width: 130%;
  height: 120%;
  object-fit: cover;
  filter: grayscale(.16) contrast(1.14) brightness(.86);
  transform: scale(1.12);
}
.factory::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(255,255,255,.98) 0 18%, rgba(255,255,255,.72) 56%, rgba(255,255,255,.98) 100%),
    linear-gradient(180deg, rgba(255,255,255,.96) 0, rgba(255,255,255,.74) 36%, rgba(255,255,255,.98) 100%);
}
.factory__inner { display: grid; gap: 34px; }
.factory__logo {
  width: min(260px, 58vw);
  padding: 20px;
  border-radius: 26px;
  background: rgba(255,255,255,.9);
  border: 1px solid rgba(139,43,216,.16);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(14px);
}
.process {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin: 12px 0 28px;
}
.process span {
  padding: 18px 16px;
  border-left: 3px solid var(--purple);
  background: rgba(255,255,255,.82);
  color: var(--ink);
  font-weight: 950;
  letter-spacing: .16em;
  clip-path: polygon(0 0, 100% 0, 94% 100%, 0 100%);
}
.goods-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.goods-card {
  position: relative;
  border: 1px solid rgba(42,32,54,.11);
  border-radius: 24px;
  background: rgba(255,255,255,.94);
  color: var(--ink);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: transform .35s var(--ease), border-color .35s var(--ease), box-shadow .35s var(--ease);
}
.goods-card:hover { transform: translateY(-8px) rotate(-.6deg); border-color: rgba(206,175,255,.58); box-shadow: 0 28px 70px rgba(72, 43, 96, .18); }
.goods-card:nth-child(even):hover { transform: translateY(-8px) rotate(.6deg); }
.goods-card img { aspect-ratio: 4 / 3; width: 100%; height: auto; object-fit: cover; background: #f5f2f8; }
.goods-card h3 { margin: 0; padding: 16px 18px 18px; font-size: 1rem; }

.world { overflow: hidden; background: linear-gradient(180deg, #fff, #fff7fd 58%, #fbfaf7); }
.world::before {
  content: "";
  position: absolute;
  inset: 8% -10% auto auto;
  width: 44vw;
  height: 44vw;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(241,47,197,.16), transparent 66%);
  filter: blur(8px);
}
.world::after {
  content: "✦";
  position: absolute;
  left: 8%;
  top: 18%;
  color: rgba(139,43,216,.22);
  font-size: clamp(3rem, 8vw, 7rem);
  animation: sparkleWobble 5.4s ease-in-out infinite alternate;
}
@keyframes sparkleWobble { to { transform: translateY(-16px) rotate(12deg); } }
.world__inner { display: grid; grid-template-columns: .95fr 1.05fr; gap: clamp(30px, 6vw, 84px); align-items: center; }
.world__visual {
  position: relative;
  min-height: 500px;
  display: grid;
  place-items: center;
}
.world__visual::before {
  content: "";
  position: absolute;
  inset: 12% 5% 10%;
  border: 1px solid rgba(139,43,216,.16);
  border-radius: 46% 54% 48% 52%;
  background: linear-gradient(145deg, rgba(139,43,216,.13), rgba(255,255,255,.8));
  animation: blob 9s ease-in-out infinite alternate;
}
@keyframes blob { to { border-radius: 58% 42% 60% 40%; transform: rotate(3deg) scale(1.03); } }
.world__icon { position: relative; z-index: 1; width: min(360px, 80%); filter: drop-shadow(0 30px 54px rgba(74, 43, 101, .22)); animation: floatIcon 4.8s ease-in-out infinite alternate; }
.world__wordmark { position: absolute; z-index: 2; bottom: 12%; left: 2%; width: min(420px, 90%); filter: drop-shadow(0 16px 28px rgba(74, 43, 101, .18)); }
@keyframes floatIcon { to { transform: translateY(-18px) rotate(-1.5deg); } }


.play-lab {
  overflow: hidden;
  background:
    radial-gradient(circle at 10% 40%, rgba(139,43,216,.10), transparent 26rem),
    linear-gradient(180deg, #fffdf9, #fff 100%);
  padding-top: clamp(58px, 8vw, 96px);
  padding-bottom: clamp(58px, 8vw, 96px);
}
.play-lab__inner {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(340px, 1.1fr);
  gap: clamp(24px, 5vw, 72px);
  align-items: center;
  border: 1px solid rgba(139,43,216,.16);
  border-radius: 36px;
  padding: clamp(24px, 5vw, 56px);
  background: rgba(255,255,255,.82);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(18px);
}
.play-lab__cards {
  min-height: 260px;
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  transform: rotate(-1deg);
}
.play-lab__cards span {
  display: grid;
  place-items: center;
  min-height: 112px;
  border-radius: 28px;
  border: 1px solid rgba(42,32,54,.1);
  background:
    linear-gradient(145deg, rgba(255,255,255,.96), rgba(247,241,255,.92));
  color: var(--ink);
  font-size: clamp(1.4rem, 4vw, 3.2rem);
  font-weight: 950;
  letter-spacing: -.06em;
  box-shadow: var(--shadow-soft);
  animation: softCardFloat 5.8s ease-in-out infinite alternate;
}
.play-lab__cards span:nth-child(2) { transform: translateY(28px) rotate(1.5deg); animation-delay: -.7s; }
.play-lab__cards span:nth-child(3) { transform: translateY(-10px) rotate(-1.5deg); animation-delay: -1.4s; color: var(--purple); }
.play-lab__cards span:nth-child(4) { transform: translateY(16px) rotate(2deg); animation-delay: -2.1s; }
@keyframes softCardFloat { to { translate: 0 -10px; } }
.game-ribbon {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 3;
  border-radius: 999px;
  padding: 5px 10px;
  color: #fff;
  background: linear-gradient(135deg, var(--pink), var(--purple));
  font-size: .66rem;
  letter-spacing: .12em;
  font-weight: 950;
  box-shadow: 0 10px 18px rgba(139,43,216,.22);
}
.game-card.is-latest {
  border-color: rgba(139,43,216,.32);
  background:
    radial-gradient(circle at 100% 0, rgba(241,47,197,.09), transparent 42%),
    rgba(255,255,255,.96);
}
.game-card.is-latest .game-cover::after {
  content: "";
  position: absolute;
  inset: auto 20px 20px auto;
  width: 46px;
  height: 46px;
  border-radius: 18px 18px 24px 18px;
  background: radial-gradient(circle at 35% 30%, #fff 0 11%, transparent 12%), linear-gradient(135deg, rgba(139,43,216,.26), rgba(241,47,197,.18));
  transform: rotate(12deg);
}

.games {
  overflow: hidden;
  background:
    radial-gradient(circle at 100% 0, rgba(139,43,216,.12), transparent 26rem),
    linear-gradient(180deg, #fff, #f7f3fb 100%);
}
.games::before {
  content: "ARCHIVE";
  position: absolute;
  left: -1vw;
  top: 2.4rem;
  color: rgba(139,43,216,.055);
  font-size: clamp(5rem, 15vw, 13rem);
  line-height: 1;
  font-weight: 950;
  letter-spacing: -.08em;
  pointer-events: none;
}
.game-toolbar {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 34px 0 30px;
  color: var(--muted);
}
.chip { min-height: 40px; padding: 8px 16px; }
.game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
  align-items: stretch;
}
.game-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 486px;
  height: 100%;
  padding: 10px;
  border: 1px solid rgba(42,32,54,.12);
  border-radius: 28px;
  background: rgba(255,255,255,.92);
  overflow: hidden;
  cursor: pointer;
  transform: translateZ(0);
  box-shadow: var(--shadow-soft);
  transition: transform .36s var(--ease), border-color .36s var(--ease), box-shadow .36s var(--ease), background .36s var(--ease);
}
.game-card::after {
  content: "";
  position: absolute;
  inset: -40% auto auto -40%;
  width: 90%;
  height: 90%;
  background: radial-gradient(circle, rgba(139,43,216,.12), transparent 68%);
  opacity: 0;
  transition: opacity .36s var(--ease), transform .36s var(--ease);
}
.game-card:hover {
  transform: translateY(-8px) rotate(-.45deg);
  border-color: rgba(139,43,216,.3);
  box-shadow: 0 26px 68px rgba(67, 38, 91, .16);
  background: #fff;
}
.game-card:nth-child(even):hover { transform: translateY(-8px) rotate(.45deg); }
.game-card:hover::after { opacity: 1; transform: translate(8%, 8%); }
.game-cover {
  position: relative;
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
  padding: 20px;
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(255,255,255,.92), rgba(244,238,250,.86)),
    radial-gradient(circle at 30% 20%, rgba(139,43,216,.15), transparent 40%);
  border: 1px solid rgba(42,32,54,.08);
  overflow: hidden;
}
.game-cover::before {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px dashed rgba(139,43,216,.18);
  border-radius: 17px;
  pointer-events: none;
}
.game-cover img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: contain;
  max-width: 92%;
  max-height: 92%;
  filter: drop-shadow(0 16px 22px rgba(42,32,54,.16));
  transition: transform .5s var(--ease);
}
.game-card:hover .game-cover img { transform: scale(1.035) rotate(.4deg); }
.game-no {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  display: inline-flex;
  min-width: 44px;
  height: 32px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--purple), var(--pink));
  border: 1px solid rgba(255,255,255,.4);
  font-weight: 950;
  box-shadow: 0 10px 20px rgba(139,43,216,.22);
}
.game-info {
  position: relative;
  z-index: 1;
  flex: 1;
  min-height: 142px;
  padding: 16px 8px 8px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
}
.game-kicker {
  margin: 0 0 5px;
  font-size: .68rem;
  line-height: 1.3;
  color: var(--subtle);
  letter-spacing: .14em;
  font-weight: 900;
}
.game-info h3 {
  margin: 0;
  min-height: 3.2em;
  font-size: 1rem;
  line-height: 1.28;
  letter-spacing: -.02em;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.game-meta {
  margin: 0;
  display: grid;
  gap: 3px;
  font-size: .8rem;
  line-height: 1.45;
  color: var(--muted);
}
.game-meta span { display: block; }
.game-grid[data-game-view="timeline"] {
  grid-template-columns: minmax(0, 920px);
  justify-content: center;
  gap: 16px;
}
.game-grid[data-game-view="timeline"] .game-card {
  min-height: 168px;
  display: grid;
  grid-template-columns: 138px 1fr;
  gap: 16px;
  align-items: stretch;
  padding: 12px;
}
.game-grid[data-game-view="timeline"] .game-cover {
  aspect-ratio: 1 / 1;
  min-height: 0;
  padding: 12px;
}
.game-grid[data-game-view="timeline"] .game-info {
  min-height: 0;
  padding: 10px 8px;
  justify-content: center;
}
.game-grid[data-game-view="timeline"] .game-info h3 {
  min-height: auto;
  font-size: clamp(1.35rem, 3vw, 2.25rem);
  -webkit-line-clamp: 2;
}

.machines {
  overflow: hidden;
  background:
    radial-gradient(circle at 20% 0, rgba(139,43,216,.2), transparent 26rem),
    #15131d;
  color: #fff;
}
.machine-strip {
  width: min(1420px, calc(100% - 28px));
  margin: 46px auto 0;
  display: grid;
  grid-template-columns: 1fr 1.15fr .85fr;
  gap: 16px;
  transform: rotate(-1deg);
}
.machine-strip figure {
  margin: 0;
  height: clamp(240px, 36vw, 520px);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.15);
  background: #211d2a;
  box-shadow: 0 30px 90px rgba(0,0,0,.34);
  clip-path: polygon(10% 0, 100% 0, 90% 100%, 0% 100%);
}
.machine-strip figure:nth-child(2) { transform: translateY(38px); }
.machine-strip img { width: 115%; height: 115%; object-fit: cover; filter: grayscale(.1) contrast(1.08) brightness(.9); animation: imageDrift 18s ease-in-out infinite alternate; }
.machine-strip figure:nth-child(2) img { animation-duration: 22s; animation-direction: alternate-reverse; }
.machine-strip figure:nth-child(3) img { animation-duration: 20s; }
@keyframes imageDrift { to { transform: translate3d(-7%, -5%, 0) scale(1.08); } }

.artists { background: linear-gradient(180deg, rgba(255,255,255,.88), #fbfaf7); }
.artist-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 34px;
}
.artist-card {
  min-height: 320px;
  padding: clamp(24px, 4vw, 42px);
  border: 1px solid rgba(42,32,54,.11);
  border-radius: 30px;
  background: linear-gradient(145deg, rgba(255,255,255,.96), rgba(250,246,255,.72));
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}
.artist-card__role { color: var(--purple); font-size: .76rem; letter-spacing: .18em; font-weight: 900; }
.artist-card h3 { margin-top: 36px; font-size: clamp(2.1rem, 5vw, 5rem); letter-spacing: -.08em; }
.artist-card a { display: inline-flex; margin-top: 10px; color: var(--purple); border-bottom: 1px solid rgba(139,43,216,.35); font-weight: 850; }
.artist-card__note { display: inline-flex; margin-top: 10px; color: var(--muted); font-weight: 850; border: 1px solid rgba(139,43,216,.2); border-radius: 999px; padding: 6px 12px; background: #fff; }

.access { background: #fff; }
.access address { font-style: normal; color: var(--muted); margin-bottom: 18px; }
.access address strong { color: var(--ink); font-size: 1.15rem; }
.access__note { font-size: .94rem; }
.map {
  min-height: 440px;
  overflow: hidden;
  border-radius: 30px;
  border: 1px solid rgba(42,32,54,.12);
  box-shadow: var(--shadow-soft);
}
.map iframe { width: 100%; height: 100%; min-height: 440px; border: 0; filter: grayscale(.25) contrast(1.02); }

.contact {
  background: linear-gradient(180deg, #fff, #f6f2fa);
}
.contact__box {
  position: relative;
  padding: clamp(30px, 7vw, 78px);
  border: 1px solid rgba(139,43,216,.18);
  border-radius: 36px;
  background:
    radial-gradient(circle at 12% 20%, rgba(139,43,216,.18), transparent 30%),
    linear-gradient(145deg, rgba(255,255,255,.98), rgba(249,245,255,.88));
  overflow: hidden;
  box-shadow: var(--shadow);
}
.contact__box::after {
  content: "";
  position: absolute;
  top: -10%;
  right: -6%;
  width: 320px;
  height: 320px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(241,47,197,.18), transparent 68%);
}
.contact__box > * { position: relative; z-index: 1; }
.contact__box h2 { font-size: clamp(2rem, 5vw, 4.6rem); }

.site-footer {
  padding: 60px 0 30px;
  border-top: 1px solid rgba(139,43,216,.16);
  background: linear-gradient(180deg, #fff, #f4effa);
  color: var(--ink);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 24px;
}
.footer-logo { width: 150px; opacity: .92; margin-bottom: 18px; filter: drop-shadow(0 14px 24px rgba(0,0,0,.24)); }
.site-footer h2 { margin: 0 0 14px; font-size: .9rem; letter-spacing: .16em; text-transform: uppercase; color: var(--purple); }
.site-footer a, .site-footer span { display: block; color: var(--muted); margin: 7px 0; }
.site-footer a:hover { color: var(--purple); }
.copyright { width: min(var(--max), calc(100% - 40px)); margin: 32px auto 0; color: var(--subtle); font-size: .8rem; }

.game-modal {
  width: min(980px, calc(100% - 28px));
  border: 1px solid rgba(42,32,54,.14);
  border-radius: 30px;
  padding: 0;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 40px 140px rgba(42,32,54,.26);
}
.game-modal::backdrop { background: rgba(17, 14, 24, .55); backdrop-filter: blur(8px); }
.modal-close {
  position: absolute;
  right: 14px;
  top: 12px;
  z-index: 2;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(42,32,54,.15);
  border-radius: 999px;
  background: rgba(255,255,255,.88);
  color: var(--ink);
  cursor: pointer;
}
.game-modal__body { display: grid; grid-template-columns: .95fr 1.05fr; gap: 28px; padding: clamp(24px, 4vw, 42px); align-items: center; }
.game-modal__body img { width: 100%; max-height: 70vh; object-fit: contain; border-radius: 20px; background: #f6f3fa; border: 1px solid rgba(42,32,54,.1); }
.game-modal h2 { font-size: clamp(2rem, 5vw, 4rem); }
.game-modal dl { display: grid; gap: 10px; }
.game-modal dl div { display: grid; grid-template-columns: 92px 1fr; gap: 12px; border-bottom: 1px solid rgba(42,32,54,.1); padding-bottom: 9px; }
.game-modal dt { color: var(--subtle); }
.game-modal dd { margin: 0; }
code { padding: .1em .35em; border-radius: 6px; background: rgba(139,43,216,.08); }

[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }

@media (max-width: 980px) {
  :root { --header: 74px; }
  .grid--2, .world__inner, .footer-grid, .game-modal__body { grid-template-columns: 1fr; }
  .artist-grid { grid-template-columns: 1fr; }
  .play-lab__inner { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .business-grid { grid-template-columns: repeat(2, 1fr); }
  .business-card, .business-card:nth-child(4), .business-card:nth-child(5) { grid-column: span 1; }
  .goods-grid { grid-template-columns: repeat(2, 1fr); }
  .process { grid-template-columns: repeat(2, 1fr); }
  .world__visual { min-height: 420px; }
  .machine-strip { grid-template-columns: 1fr; transform: none; }
  .machine-strip figure:nth-child(2) { transform: none; }
  .machine-strip figure { clip-path: polygon(0 0, 100% 0, 94% 100%, 0 100%); }
}

@media (max-width: 760px) {
  .container { width: min(100% - 28px, var(--max)); }
  .site-header { padding-inline: 14px; }
  .brand__text { display: none; }
  .nav-toggle { display: block; z-index: 82; }
  .global-nav {
    position: fixed;
    inset: 0 0 auto auto;
    width: min(360px, 86vw);
    min-height: 100svh;
    padding: 98px 28px 34px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    background: rgba(255,255,255,.94);
    border-left: 1px solid rgba(42,32,54,.12);
    backdrop-filter: blur(18px);
    transform: translateX(105%);
    transition: transform .45s var(--ease);
    box-shadow: -18px 0 50px rgba(41,31,55,.12);
  }
  .global-nav.is-open { transform: translateX(0); }
  .global-nav a { font-size: 1.1rem; }
  h1 { font-size: clamp(3.15rem, 17vw, 5.8rem); }
  .hero__machine--a { width: 92vw; right: -48vw; opacity: .28; }
  .hero__machine--b { display: none; }
  .hero__tags { display: none; }
  .stats, .goods-grid { grid-template-columns: 1fr; }
  .business-grid { grid-template-columns: 1fr; }
  .business-card { min-height: 280px; }
  .game-grid { grid-template-columns: 1fr; }
  .game-card { min-height: auto; }
  .game-cover { aspect-ratio: 1 / 1; }
  .game-grid[data-game-view="timeline"] .game-card { grid-template-columns: 1fr; }
  .game-grid[data-game-view="timeline"] .game-cover { min-height: auto; aspect-ratio: 1 / 1; }
  .process { grid-template-columns: 1fr; }
  .map, .map iframe { min-height: 340px; }
  .world__wordmark { left: 50%; transform: translateX(-50%); width: 95%; }
  .contact__actions .button { width: 100%; }
  .footer-grid { gap: 36px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .001ms !important;
  }
  .spore-canvas, .playfield { display: none; }
}

/* V2.2: board game detail data */
.game-card { min-height: 508px; }
.game-description {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: .83rem;
  line-height: 1.62;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.game-info__foot {
  display: grid;
  gap: 10px;
}
.game-status,
.modal-status {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(42,32,54,.12);
  background: rgba(42,32,54,.045);
  color: var(--muted);
  font-size: .76rem;
  font-weight: 900;
  letter-spacing: .04em;
}
.game-status.is-available {
  border-color: rgba(139,43,216,.22);
  background: linear-gradient(135deg, rgba(139,43,216,.12), rgba(241,47,197,.10));
  color: var(--purple);
}
.game-grid[data-game-view="timeline"] .game-card { min-height: 220px; }
.game-grid[data-game-view="timeline"] .game-description { -webkit-line-clamp: 2; max-width: 680px; }
.modal-description {
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.82;
}
.modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}
.modal-status {
  min-height: 44px;
  padding: 10px 18px;
  font-size: .9rem;
}
@media (max-width: 760px) {
  .game-card { min-height: auto; }
  .game-description { -webkit-line-clamp: 4; }
}

@media (min-width: 761px) and (max-width: 1040px) {
  .artist-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .play-lab__inner { grid-template-columns: 1fr; }
}

/* V3.1: game image containment + team structure update */
.game-card {
  min-height: 530px;
  contain: layout paint;
}
.game-cover {
  width: 100%;
  aspect-ratio: 1 / 1;
  min-height: 0;
  overflow: hidden;
  isolation: isolate;
  contain: paint;
}
@supports (overflow: clip) {
  .game-cover { overflow: clip; }
}
.game-cover::before { z-index: 3; }
.game-cover img {
  position: absolute;
  inset: 24px;
  width: calc(100% - 48px);
  height: calc(100% - 48px);
  max-width: none;
  max-height: none;
  object-fit: contain;
  object-position: center;
  transform-origin: center center;
}
.game-no,
.game-ribbon { z-index: 4; }
.game-card.is-latest .game-cover::after {
  z-index: 2;
  pointer-events: none;
}
.game-card:hover .game-cover img {
  transform: scale(1.018) rotate(.18deg);
}
.game-grid[data-game-view="timeline"] .game-cover {
  width: 138px;
  max-width: 138px;
}
.game-grid[data-game-view="timeline"] .game-cover img {
  inset: 16px;
  width: calc(100% - 32px);
  height: calc(100% - 32px);
}
.game-modal__body > img,
.game-modal__body img {
  display: block;
  width: 100%;
  height: min(70vh, 720px);
  max-height: min(70vh, 720px);
  object-fit: contain;
  object-position: center;
}

.artists {
  background:
    radial-gradient(circle at 0 10%, rgba(139,43,216,.08), transparent 22rem),
    linear-gradient(180deg, rgba(255,255,255,.92), #fbfaf7);
}
.artists .section-head p {
  max-width: 760px;
  margin-inline: auto;
}
.team-block {
  margin-top: clamp(28px, 5vw, 58px);
  padding: clamp(22px, 4vw, 38px);
  border: 1px solid rgba(42,32,54,.11);
  border-radius: 34px;
  background: rgba(255,255,255,.84);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}
.team-block--main {
  background:
    radial-gradient(circle at 0 0, rgba(139,43,216,.12), transparent 34%),
    linear-gradient(145deg, rgba(255,255,255,.98), rgba(250,246,255,.82));
}
.team-block__head {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 10px 20px;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(139,43,216,.16);
}
.team-block__head .eyebrow { margin-bottom: 8px; }
.team-block__head h3 {
  margin: 0;
  font-size: clamp(1.45rem, 3.5vw, 3.1rem);
  letter-spacing: -.05em;
}
.artist-grid,
.artist-grid--main {
  grid-template-columns: repeat(auto-fit, minmax(235px, 1fr));
  align-items: stretch;
  margin-top: 0;
}
.artist-card {
  position: relative;
  min-height: 276px;
  display: flex;
  flex-direction: column;
  isolation: isolate;
}
.artist-card::after {
  content: "";
  position: absolute;
  right: -54px;
  bottom: -54px;
  width: 138px;
  height: 138px;
  border-radius: 42% 58% 55% 45%;
  background: radial-gradient(circle, rgba(139,43,216,.12), transparent 66%);
  z-index: -1;
}
.artist-card--leader {
  border-color: rgba(139,43,216,.32);
  background:
    radial-gradient(circle at 100% 0, rgba(241,47,197,.10), transparent 46%),
    linear-gradient(145deg, rgba(255,255,255,.98), rgba(247,240,255,.88));
  box-shadow: 0 24px 68px rgba(139,43,216,.13);
}
.artist-card--leader::before {
  content: "CEO";
  position: absolute;
  top: 18px;
  right: 18px;
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 16px;
  color: #fff;
  background: linear-gradient(135deg, var(--purple), var(--pink));
  font-size: .72rem;
  font-weight: 950;
  letter-spacing: .08em;
  box-shadow: 0 12px 24px rgba(139,43,216,.22);
}
.artist-card__role {
  min-height: 2.3em;
  line-height: 1.25;
}
.artist-card h3 {
  margin: 24px 0 14px;
  font-size: clamp(1.85rem, 3.2vw, 3.7rem);
  letter-spacing: -.06em;
  word-break: break-word;
}
.artist-card p { flex: 1; }
.member-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.member-grid--single { grid-template-columns: 1fr; }
.regional-teams {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 18px;
}
.member-card {
  position: relative;
  min-height: 156px;
  padding: 22px;
  border: 1px solid rgba(42,32,54,.10);
  border-radius: 24px;
  background: linear-gradient(145deg, rgba(255,255,255,.96), rgba(247,241,255,.74));
  overflow: hidden;
}
.member-card::after {
  content: "";
  position: absolute;
  right: -24px;
  bottom: -24px;
  width: 100px;
  height: 100px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(139,43,216,.12), transparent 68%);
}
.member-card span {
  display: block;
  color: var(--purple);
  font-size: .7rem;
  line-height: 1.35;
  letter-spacing: .15em;
  font-weight: 900;
  text-transform: uppercase;
}
.member-card h4 {
  position: relative;
  z-index: 1;
  margin: 28px 0 8px;
  font-size: clamp(1.55rem, 3vw, 2.6rem);
  line-height: 1;
  letter-spacing: -.05em;
  word-break: break-word;
}
.member-card p {
  position: relative;
  z-index: 1;
  margin: 0;
  color: var(--muted);
}
.footer-grid {
  grid-template-columns: 1.05fr 1.55fr .8fr;
  gap: clamp(24px, 5vw, 54px);
}
.footer-meta {
  margin: 6px 0;
  color: var(--muted);
  font-size: .9rem;
  line-height: 1.7;
}
.site-footer strong { color: var(--ink); }
.site-footer a,
.site-footer span { line-height: 1.55; }

@media (max-width: 980px) {
  .footer-grid { grid-template-columns: 1fr; }
  .artist-grid,
  .artist-grid--main { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .regional-teams { grid-template-columns: 1fr; }
  .member-grid { grid-template-columns: 1fr; }
  .game-modal__body > img,
  .game-modal__body img {
    height: min(58vh, 620px);
    max-height: min(58vh, 620px);
  }
}
@media (max-width: 760px) {
  .game-card { min-height: auto; }
  .game-cover img {
    inset: 20px;
    width: calc(100% - 40px);
    height: calc(100% - 40px);
  }
  .game-grid[data-game-view="timeline"] .game-cover {
    width: 100%;
    max-width: none;
  }
  .game-grid[data-game-view="timeline"] .game-cover img {
    inset: 20px;
    width: calc(100% - 40px);
    height: calc(100% - 40px);
  }
  .team-block { padding: 20px; border-radius: 26px; }
  .team-block__head { display: block; }
  .artist-grid,
  .artist-grid--main { grid-template-columns: 1fr; }
  .artist-card { min-height: 242px; }
  .artist-card h3 { font-size: clamp(2rem, 14vw, 3.5rem); }
  .member-card { min-height: 132px; }
}
