:root {
  color-scheme: dark;
  --bg: #070912;
  --panel: #101424;
  --panel-2: #151b31;
  --text: #f5f7ff;
  --muted: #a8b0c9;
  --line: #29314d;
  --cyan: #59f0ff;
  --violet: #9f7cff;
  --pink: #ff5fc8;
  --green: #74f6a7;
  --shadow: 0 24px 70px rgba(0, 0, 0, .38);
}

.catalog-intro { padding: 3.5rem 0 1rem; }
.catalog-intro h1 { max-width: 20ch; font-size: clamp(2.4rem, 5.8vw, 4.7rem); line-height: 1.22; }
.catalog { padding-top: 1.5rem; }
.catalog h2 { font-size: 1.5rem; }
.game-name { font-size: clamp(2rem,4vw,3rem); margin-top: 1rem; }
.beta { color: #ffe2a0; border-color: #756039; }
.content-page h1 { max-width: 100%; font-size: clamp(2rem,5vw,3.7rem); line-height: 1.3; }
.contact-address { overflow-wrap: anywhere; }
.nav { flex-wrap: wrap; }
.nav .language { border: 1px solid var(--line); padding: .4rem .7rem; border-radius: .5rem; }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 4px; }
@media (max-width:640px) {
 .header-inner { flex-wrap: wrap; padding: .8rem 0; gap: .6rem; }
 .site-header .nav a { display: inline-block; font-size: .875rem; }
 .nav { gap: .75rem; }
 .brand { font-size: 1rem; }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 8% -10%, rgba(89, 240, 255, .16), transparent 34rem),
    radial-gradient(circle at 92% 10%, rgba(255, 95, 200, .13), transparent 32rem),
    var(--bg);
  color: var(--text);
  font-family: Inter, "Noto Sans JP", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.7;
}
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
.skip-link { position: fixed; top: -5rem; left: 1rem; z-index: 100; background: white; color: #05060b; padding: .7rem 1rem; border-radius: .5rem; }
.skip-link:focus { top: 1rem; }
.shell { width: min(1160px, calc(100% - 32px)); margin: 0 auto; }
.site-header {
  position: sticky; top: 0; z-index: 20;
  border-bottom: 1px solid rgba(89, 240, 255, .12);
  background: rgba(7, 9, 18, .82);
  backdrop-filter: blur(18px);
}
.header-inner { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.brand { display: inline-flex; align-items: center; gap: .72rem; text-decoration: none; font-weight: 850; letter-spacing: -.02em; }
.brand-mark { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid rgba(89,240,255,.5); border-radius: 11px; background: linear-gradient(135deg, rgba(89,240,255,.2), rgba(159,124,255,.24)); box-shadow: inset 0 0 18px rgba(89,240,255,.12); }
.brand-mark::before { content: "▶"; color: var(--cyan); font-size: .82rem; transform: translateX(1px); }
.nav { display: flex; align-items: center; gap: 1.25rem; color: var(--muted); }
.nav a { text-decoration: none; font-size: .94rem; font-weight: 700; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); }
.button { display: inline-flex; align-items: center; justify-content: center; gap: .55rem; min-height: 46px; padding: .72rem 1.12rem; border: 1px solid transparent; border-radius: 12px; background: linear-gradient(135deg, var(--cyan), #74b9ff); color: #041017; font-weight: 850; text-decoration: none; box-shadow: 0 10px 28px rgba(89,240,255,.18); }
.button:hover { filter: brightness(1.06); transform: translateY(-1px); }
.button.secondary { background: transparent; border-color: var(--line); color: var(--text); box-shadow: none; }
.hero { padding: clamp(4.2rem, 9vw, 7rem) 0 3.5rem; display: grid; grid-template-columns: 1.05fr .95fr; gap: 3.5rem; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: .55rem; margin-bottom: 1rem; color: var(--cyan); font-size: .83rem; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--cyan); box-shadow: 0 0 12px var(--cyan); }
h1, h2, h3 { margin: 0; line-height: 1.12; letter-spacing: -.035em; }
h1 { max-width: 10ch; font-size: clamp(2.7rem, 7.5vw, 5.7rem); }
h2 { font-size: clamp(2rem, 4vw, 3.25rem); }
h3 { font-size: 1.35rem; }
.gradient-text { background: linear-gradient(90deg, var(--cyan), #bca7ff 55%, var(--pink)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { max-width: 42rem; margin: 1.4rem 0 0; color: var(--muted); font-size: clamp(1rem, 1.8vw, 1.18rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.8rem; }
.console {
  position: relative; overflow: hidden; min-height: 390px; padding: 1.2rem;
  border: 1px solid var(--line); border-radius: 26px;
  background: linear-gradient(160deg, rgba(21,27,49,.94), rgba(9,12,23,.92)); box-shadow: var(--shadow);
}
.console::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: repeating-linear-gradient(0deg, transparent 0 5px, rgba(255,255,255,.012) 6px); }
.console-top { display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: .8rem; }
.live { display: inline-flex; align-items: center; gap: .45rem; color: var(--green); font-weight: 800; }
.live::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 12px var(--green); }
.bingo-preview { display: grid; grid-template-columns: repeat(5, 1fr); gap: 7px; margin-top: 2rem; transform: rotate(-1.4deg); }
.bingo-preview span { aspect-ratio: 1; display: grid; place-items: center; border: 1px solid #354064; border-radius: 9px; background: rgba(255,255,255,.035); font-weight: 850; font-size: clamp(.8rem, 2vw, 1rem); }
.bingo-preview span:nth-child(3n) { border-color: rgba(89,240,255,.55); color: var(--cyan); background: rgba(89,240,255,.09); }
.bingo-preview .free { color: #0a1019; border-color: var(--pink); background: var(--pink); }
.viewer-strip { display: flex; justify-content: space-between; gap: .8rem; margin-top: 1.4rem; padding: .9rem 1rem; border: 1px solid var(--line); border-radius: 12px; color: var(--muted); font-size: .88rem; }
.viewer-strip strong { color: var(--text); }
.section { padding: 4rem 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 1.2rem; margin-bottom: 1.5rem; }
.section-head p { max-width: 38rem; margin: 0; color: var(--muted); }
.game-card { display: grid; grid-template-columns: 1.2fr .8fr; overflow: hidden; border: 1px solid var(--line); border-radius: 22px; background: linear-gradient(150deg, rgba(21,27,49,.86), rgba(12,15,28,.92)); box-shadow: var(--shadow); }
.game-card-main { padding: clamp(1.5rem, 4vw, 2.6rem); }
.tags { display: flex; flex-wrap: wrap; gap: .55rem; margin: 1rem 0 1.4rem; }
.tag { padding: .28rem .66rem; border: 1px solid var(--line); border-radius: 999px; color: #c7cee2; font-size: .78rem; font-weight: 750; }
.game-card p { color: var(--muted); }
.game-stats { display: grid; grid-template-columns: repeat(2, 1fr); border-left: 1px solid var(--line); background: rgba(0,0,0,.12); }
.stat { display: flex; flex-direction: column; justify-content: center; min-height: 140px; padding: 1.25rem; border-bottom: 1px solid var(--line); }
.stat:nth-child(odd) { border-right: 1px solid var(--line); }
.stat strong { font-size: 2rem; line-height: 1; }
.stat span { margin-top: .55rem; color: var(--muted); font-size: .82rem; }
.principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.principle { padding: 1.5rem; border: 1px solid var(--line); border-radius: 18px; background: rgba(16,20,36,.68); }
.principle b { display: block; margin-bottom: .55rem; color: var(--cyan); font-size: .78rem; letter-spacing: .1em; }
.principle p { margin: .7rem 0 0; color: var(--muted); }
.content-page { padding: 4rem 0 6rem; }
.content-page > header { max-width: 760px; margin-bottom: 2.4rem; }
.content-page .lead { margin-top: 1rem; }
.prose { max-width: 820px; }
.prose h2 { margin: 2.8rem 0 .9rem; font-size: 1.65rem; }
.prose h3 { margin: 2rem 0 .6rem; font-size: 1.18rem; }
.prose p, .prose li { color: #c2c9dc; }
.prose a { color: var(--cyan); }
.notice { margin: 1.5rem 0; padding: 1.1rem 1.2rem; border-left: 3px solid var(--cyan); border-radius: 0 10px 10px 0; background: rgba(89,240,255,.07); color: #d9faff; }
.game-layout { display: grid; grid-template-columns: minmax(0, 1fr) 290px; gap: 1rem; padding: 1.2rem 0 4rem; }
.game-stage { overflow: hidden; min-height: 74vh; border: 1px solid var(--line); border-radius: 18px; background: #0b0e19; box-shadow: var(--shadow); }
.game-stage iframe { display: block; width: 100%; height: 74vh; border: 0; background: #0b0e19; }
.game-sidebar { display: flex; flex-direction: column; gap: 1rem; }
.side-card { padding: 1.2rem; border: 1px solid var(--line); border-radius: 16px; background: rgba(16,20,36,.8); }
.side-card h2 { font-size: 1.1rem; }
.side-card p, .side-card li { color: var(--muted); font-size: .9rem; }
.side-card ul { margin: .8rem 0 0; padding-left: 1.2rem; }
.ad-note { border-style: dashed; color: #8992ad; font-size: .8rem; }
.site-footer { border-top: 1px solid var(--line); padding: 2.2rem 0; color: var(--muted); }
.footer-inner { display: flex; justify-content: space-between; gap: 1.5rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 1rem; }
.footer-links a { text-decoration: none; }
.small { font-size: .82rem; color: var(--muted); }

@media (max-width: 860px) {
  .hero, .game-card, .game-layout { grid-template-columns: 1fr; }
  .game-stats { border-left: 0; border-top: 1px solid var(--line); }
  .principles { grid-template-columns: 1fr; }
  .game-stage, .game-stage iframe { min-height: 68vh; height: 68vh; }
}
@media (max-width: 640px) {
  .shell { width: min(100% - 22px, 1160px); }
  .header-inner { min-height: 64px; }
  .nav a:not(.nav-keep) { display: none; }
  .hero { padding-top: 3.2rem; gap: 2.2rem; }
  .console { min-height: 330px; border-radius: 18px; }
  .section-head, .footer-inner { align-items: flex-start; flex-direction: column; }
  .game-stats { grid-template-columns: 1fr 1fr; }
  .stat { min-height: 115px; }
}

@media (prefers-reduced-motion: no-preference) {
  .button { transition: transform .2s ease, filter .2s ease; }
  .bingo-preview span { animation: pulse 5s ease-in-out infinite; }
  .bingo-preview span:nth-child(2n) { animation-delay: .7s; }
  @keyframes pulse { 0%, 85%, 100% { box-shadow: none; } 90% { box-shadow: 0 0 18px rgba(89,240,255,.28); } }
}
