
:root {
  --night: #0a1233;
  --navy: #13205a;
  --navy-2: #1c2c72;
  --ink: #eef2ff;
  --muted: #a9b4dc;
  --gold-1: #9c7a35;
  --gold-2: #e9c46a;
  --gold-3: #ffe4a0;
  --gold: linear-gradient(135deg, #b48a3a 0%, #f3cf78 45%, #fff0c2 55%, #d9a948 100%);
  --radius: 22px;
  --wrap: 1180px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--night);
  color: var(--ink);
  font-family: "M PLUS Rounded 1c", "Hiragino Maru Gothic ProN", "Hiragino Kaku Gothic ProN", "Meiryo", system-ui, sans-serif;
  font-weight: 500;
  line-height: 1.8;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.sp { display: none; }

.topbar {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px clamp(16px, 4vw, 40px);
  transition: background .3s, padding .3s, box-shadow .3s;
}
.topbar.is-solid {
  background: rgba(10, 18, 51, .86);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  padding-top: 9px; padding-bottom: 9px;
  box-shadow: 0 1px 0 rgba(233, 196, 106, .18);
}
.topbar-logo img { width: 130px; height: auto; }
.topbar-nav { display: flex; align-items: center; gap: 8px; }
.topbar-nav a {
  text-decoration: none; font-size: .88rem; font-weight: 700;
  padding: 8px 14px; border-radius: 999px; color: var(--ink);
  transition: background .2s;
}
.topbar-nav a:hover { background: rgba(255, 255, 255, .1); }
.topbar-nav .topbar-cta { background: var(--gold); color: #3a2600; box-shadow: 0 3px 0 var(--gold-1); }
.topbar-nav .topbar-cta:hover { background: var(--gold); filter: brightness(1.06); }

.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: grid; place-items: center; text-align: center;
  overflow: hidden; isolation: isolate;
  padding: 110px 20px 90px;
}
.hero-media, .hero-shade, .hero-grid { position: absolute; inset: 0; z-index: -1; }
.hero-video { width: 100%; height: 100%; object-fit: cover; }
.hero-still { background: center / cover no-repeat; }
.hero-shade {
  background:
    radial-gradient(ellipse at 50% 42%, rgba(10, 18, 51, .25) 0%, rgba(10, 18, 51, .72) 62%, rgba(10, 18, 51, .95) 100%),
    linear-gradient(180deg, rgba(10, 18, 51, .55) 0%, rgba(10, 18, 51, 0) 30%, rgba(10, 18, 51, 0) 70%, var(--night) 100%);
}
.hero-grid {
  opacity: .16;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='97' viewBox='0 0 56 97'%3E%3Cpath d='M28 1 55 16.5v31L28 63 1 47.5v-31Z M28 63v34 M0 80.5 28 97l28-16.5' fill='none' stroke='%23f3cf78' stroke-width='1'/%3E%3C/svg%3E");
  -webkit-mask-image: radial-gradient(ellipse at 50% 45%, #000 0%, transparent 70%);
  mask-image: radial-gradient(ellipse at 50% 45%, #000 0%, transparent 70%);
  animation: drift 40s linear infinite;
}
@keyframes drift { to { background-position: 56px 97px; } }
.hero-inner { max-width: 820px; }
.hero-logo { margin: 0 auto 18px; width: min(520px, 82vw); filter: drop-shadow(0 6px 24px rgba(0, 0, 0, .55)); animation: rise .9s cubic-bezier(.2, .8, .2, 1) both; }
.hero-logo img { width: 100%; height: auto; }
.hero-eyebrow {
  margin: 0 0 18px; font-family: "Chakra Petch", sans-serif; font-weight: 700;
  letter-spacing: .32em; font-size: clamp(.7rem, 1.8vw, .85rem); color: var(--gold-3);
  animation: rise .9s .12s cubic-bezier(.2, .8, .2, 1) both;
}
.hero-eyebrow span { display: inline-block; padding: 2px 10px; margin-right: 8px; border-radius: 4px; background: var(--gold); color: #3a2600; letter-spacing: .2em; }
.hero-copy {
  margin: 0 0 12px; font-size: clamp(1.5rem, 4.6vw, 2.6rem); font-weight: 800; line-height: 1.45;
  text-shadow: 0 3px 18px rgba(0, 0, 0, .6);
  animation: rise .9s .22s cubic-bezier(.2, .8, .2, 1) both;
}
.hero-sub { text-wrap: balance; margin: 0 auto 36px; max-width: 34em; color: #d6ddf7; font-size: clamp(.88rem, 2.2vw, 1rem); text-shadow: 0 2px 10px rgba(0, 0, 0, .6); animation: rise .9s .3s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.hero-scroll { display: inline-flex; flex-direction: column; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; font-size: .85rem; color: var(--gold-3); animation: rise .9s .4s both; }
.hero-scroll i { width: 26px; height: 42px; border: 2px solid var(--gold-2); border-radius: 14px; position: relative; }
.hero-scroll i::after { content: ""; position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--gold-2); animation: wheel 1.6s ease-in-out infinite; }
@keyframes wheel { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }
.hero-sound {
  position: absolute; right: clamp(14px, 3vw, 32px); bottom: clamp(14px, 3vw, 28px);
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 16px; border-radius: 999px; cursor: pointer;
  border: 1px solid rgba(233, 196, 106, .5); background: rgba(10, 18, 51, .6); color: var(--ink);
  font: 700 .8rem/1 "M PLUS Rounded 1c", sans-serif;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.hero-sound:hover { background: rgba(28, 44, 114, .8); }
.hero-sound[aria-pressed="true"] { border-color: var(--gold-2); color: var(--gold-3); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 48px; padding: 0 26px; border-radius: 999px; text-decoration: none;
  font-weight: 800; font-size: .98rem; letter-spacing: .02em; white-space: nowrap;
  transition: transform .15s, box-shadow .15s, filter .2s, background .2s;
}
.btn:active { transform: translateY(2px); }
.btn-primary { background: var(--gold); color: #3a2600; box-shadow: 0 4px 0 var(--gold-1), 0 10px 24px rgba(233, 196, 106, .25); }
.btn-primary:hover { filter: brightness(1.07); }
.btn-primary:active { box-shadow: 0 2px 0 var(--gold-1); }
.btn-ghost { background: rgba(255, 255, 255, .12); color: #fff; border: 1.5px solid rgba(255, 255, 255, .55); }
.btn-ghost:hover { background: rgba(255, 255, 255, .22); }
.btn-line { background: transparent; color: var(--ink); border: 1.5px solid rgba(169, 180, 220, .45); }
.btn-line:hover { border-color: var(--gold-2); color: var(--gold-3); }
.btn-sm { min-height: 40px; padding: 0 18px; font-size: .86rem; }

.feature { position: relative; margin-top: -40px; padding: 0 0 30px; z-index: 2; }
.feature-box {
  position: relative; display: grid; grid-template-columns: 1.05fr .95fr; align-items: end;
  min-height: 360px; padding: 0; border-radius: 28px; overflow: visible;
  max-width: calc(var(--wrap) - 40px);
  background: var(--accent);
  background: linear-gradient(120deg, color-mix(in srgb, var(--accent) 85%, #000) 0%, var(--accent) 55%, color-mix(in srgb, var(--accent) 55%, #fff) 100%);
  box-shadow: 0 0 0 2px rgba(233, 196, 106, .55), 0 30px 60px rgba(0, 0, 0, .45);
}
.feature-bg { position: absolute; inset: 0; border-radius: 28px; background: center 30% / cover no-repeat; opacity: .35; mix-blend-mode: luminosity; }
.feature-box::before {
  content: ""; position: absolute; inset: 0; border-radius: 28px;
  background: linear-gradient(90deg, rgba(10, 18, 51, .82) 0%, rgba(10, 18, 51, .45) 48%, rgba(10, 18, 51, 0) 75%);
}
.feature-text { position: relative; padding: 38px clamp(22px, 4vw, 48px); align-self: center; }
.label {
  display: inline-flex; align-items: center; gap: 8px; margin: 0 0 6px;
  font-family: "Chakra Petch", sans-serif; font-weight: 700; letter-spacing: .25em; font-size: .78rem; color: var(--gold-3);
}
.pulse { width: 9px; height: 9px; border-radius: 50%; background: #3cff8f; box-shadow: 0 0 0 0 rgba(60, 255, 143, .7); animation: pulse 1.8s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(60, 255, 143, 0); } 100% { box-shadow: 0 0 0 0 rgba(60, 255, 143, 0); } }
.feature-logo { margin: 0 0 6px; }
.feature-logo img { width: min(330px, 70vw); height: auto; filter: drop-shadow(0 8px 16px rgba(0, 0, 0, .4)); }
.feature-name { margin: 0 0 6px; font-size: 2rem; }
.feature-catch { text-wrap: balance; margin: 0 0 22px; font-size: clamp(1rem, 2.4vw, 1.2rem); font-weight: 700; text-shadow: 0 2px 8px rgba(0, 0, 0, .5); }
.feature-btns { display: flex; flex-wrap: wrap; gap: 10px; }
.feature-art {
  position: relative; justify-self: center; align-self: end;
  width: min(500px, 100%); height: auto; margin-top: -90px;
  filter: drop-shadow(0 18px 24px rgba(0, 0, 0, .45));
  animation: float 6s ease-in-out infinite;
}
@keyframes float { 50% { transform: translateY(-10px); } }

.games { position: relative; padding: 70px 0 90px; }
.games::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(ellipse at 15% 0%, rgba(30, 139, 255, .14), transparent 55%), radial-gradient(ellipse at 90% 60%, rgba(233, 196, 106, .08), transparent 50%);
}
.sec-head { text-align: center; margin-bottom: 34px; }
.sec-en {
  margin: 0; font-family: "Chakra Petch", sans-serif; font-weight: 700; letter-spacing: .4em; font-size: .85rem;
  background: var(--gold); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.sec-title { margin: 2px 0 6px; font-size: clamp(1.6rem, 4vw, 2.2rem); font-weight: 800; }
.sec-title::after { content: ""; display: block; width: 56px; height: 4px; margin: 10px auto 0; border-radius: 4px; background: var(--gold); }
.sec-desc { margin: 0; color: var(--muted); font-size: .95rem; }

.filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 30px; }
.chip {
  padding: 8px 18px; border-radius: 999px; cursor: pointer;
  border: 1.5px solid rgba(169, 180, 220, .35); background: rgba(255, 255, 255, .04); color: var(--ink);
  font: 700 .86rem/1.2 "M PLUS Rounded 1c", sans-serif;
}
.chip:hover { border-color: var(--gold-2); }
.chip.is-on { background: var(--gold); border-color: transparent; color: #3a2600; }

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 370px)); justify-content: center; gap: 26px; }
.card {
  position: relative; display: flex; flex-direction: column;
  border-radius: var(--radius); overflow: hidden;
  background: linear-gradient(180deg, var(--navy-2) 0%, var(--navy) 100%);
  box-shadow: 0 0 0 1px rgba(169, 180, 220, .16), 0 16px 34px rgba(0, 0, 0, .35);
  transition: transform .25s cubic-bezier(.2, .8, .2, 1), box-shadow .25s;
}
.card:hover { transform: translateY(-6px); box-shadow: 0 0 0 2px var(--gold-2), 0 24px 44px rgba(0, 0, 0, .45); }
.card.is-hidden { display: none; }
.card-visual {
  position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; isolation: isolate;
  background: var(--accent);
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 70%, #000), var(--accent));
}
.card-bg { position: absolute; inset: 0; z-index: -2; background: center / cover no-repeat; transition: transform .6s; }
.card-glow { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(10, 18, 51, 0) 40%, rgba(19, 32, 90, .9) 100%), radial-gradient(circle at 70% 40%, rgba(255, 255, 255, .25), transparent 55%); }
.card-art { position: absolute; right: -4%; bottom: -6%; width: 72%; height: auto; transition: transform .45s cubic-bezier(.2, .8, .2, 1); filter: drop-shadow(0 10px 14px rgba(0, 0, 0, .4)); }
.card-logo { position: absolute; left: 14px; bottom: 12px; width: 46%; height: auto; filter: drop-shadow(0 4px 8px rgba(0, 0, 0, .5)); transition: transform .35s; }
.card:hover .card-bg { transform: scale(1.06); }
.card:hover .card-art { transform: translateY(-6px) scale(1.04); }
.card:hover .card-logo { transform: rotate(-3deg) scale(1.04); }
.badge {
  position: absolute; top: 12px; left: 12px; padding: 4px 12px; border-radius: 999px;
  font-size: .75rem; font-weight: 800; letter-spacing: .05em; color: #fff;
  box-shadow: 0 3px 10px rgba(0, 0, 0, .3);
}
.badge-live { background: #12b76a; }
.badge-live::before { content: "●"; margin-right: 5px; font-size: .7em; vertical-align: 1px; }
.badge-beta { background: #7a5af8; }
.badge-soon { background: #f79009; }
.card-body { display: flex; flex-direction: column; flex: 1; padding: 18px 20px 22px; }
.card-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.tag { padding: 2px 10px; border-radius: 6px; font-size: .74rem; font-weight: 700; background: rgba(30, 139, 255, .16); color: #9fd0ff; }
.tag-pf { background: rgba(233, 196, 106, .12); color: var(--gold-3); }
.card-title { margin: 0 0 4px; font-size: 1.28rem; font-weight: 800; line-height: 1.4; }
.card-title small { display: inline-block; margin-left: 4px; font-family: "Chakra Petch", sans-serif; font-size: .72rem; letter-spacing: .12em; color: var(--muted); vertical-align: 2px; }
.card-catch { text-wrap: balance; margin: 0 0 6px; color: var(--gold-3); font-weight: 700; font-size: .95rem; }
.card-desc { margin: 0 0 16px; color: var(--muted); font-size: .88rem; line-height: 1.85; }
.card-btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; }

.card-soon {
  background: repeating-linear-gradient(135deg, rgba(255, 255, 255, .02) 0 12px, rgba(255, 255, 255, .045) 12px 24px), var(--navy);
  box-shadow: inset 0 0 0 2px rgba(233, 196, 106, .35);
  min-height: 380px;
}
@media (max-width: 560px) { .card-soon { min-height: 260px; } }
.card-soon:hover { box-shadow: inset 0 0 0 2px var(--gold-2), 0 24px 44px rgba(0, 0, 0, .35); }
.soon-inner { margin: auto; padding: 30px 24px; text-align: center; }
.soon-mark { display: grid; place-items: center; width: 96px; height: 96px; margin: 0 auto 16px; border-radius: 50%; background: rgba(233, 196, 106, .08); box-shadow: 0 0 0 1px rgba(233, 196, 106, .3); }
.soon-mark img { width: 56px; height: 56px; opacity: .85; animation: spin-y 6s ease-in-out infinite; }
@keyframes spin-y { 0%, 70%, 100% { transform: rotateY(0); } 85% { transform: rotateY(180deg); } }
.card-soon .card-title { margin-top: 4px; }
.empty { text-align: center; color: var(--muted); }

.footer { border-top: 1px solid rgba(233, 196, 106, .18); background: #070d26; padding: 34px 0 calc(34px + env(safe-area-inset-bottom)); }
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.footer-logo { width: 150px; height: auto; opacity: .9; }
.copy { margin: 0; color: #7d88b3; font-size: .78rem; font-family: "Chakra Petch", sans-serif; letter-spacing: .06em; }

.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s, transform .7s cubic-bezier(.2, .8, .2, 1); }
.reveal.is-in { opacity: 1; transform: none; }

@media (max-width: 860px) {
  .feature { margin-top: -30px; }
  .feature-box { grid-template-columns: 1fr; text-align: center; margin: 0 16px; width: auto; }
  .feature-box::before { background: linear-gradient(0deg, rgba(10, 18, 51, .88) 0%, rgba(10, 18, 51, .55) 55%, rgba(10, 18, 51, .1) 100%); }
  .feature-text { padding: 0 22px 30px; order: 2; }
  .feature-logo img { margin: 0 auto; }
  .feature-btns { justify-content: center; }
  .feature-art { order: 1; width: min(360px, 86%); margin-top: -60px; }
}
@media (max-width: 560px) {
  .sp { display: inline; }
  .topbar-logo img { width: 104px; }
  .topbar-nav a:not(.topbar-cta) { display: none; }
  .topbar-nav .topbar-cta { font-size: .78rem; padding: 7px 12px; }
  .hero { padding-top: 96px; }
  .grid { grid-template-columns: 1fr; gap: 20px; }
  .feature-btns .btn { flex: 1 1 100%; }
  .btn { padding: 0 20px; }
  .games { padding-top: 56px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}
