:root {
  --bg: #0e1013;
  --raised: #16191e;
  --raised-2: #1b1e23;
  --line: #2a2f36;
  --line-strong: #3d454f;
  --ivory: #f2eee4;
  --silver: #c9d1db;
  --muted: #96a1ad;
  --red: #b03338;
  --red-hover: #c23c42;
  --serif: "New York", ui-serif, "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --wrap: 1160px;
  --radius: 14px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--silver);
  font: 400 1.0625rem/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--ivory); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 0.75rem; background: var(--ivory); color: var(--bg); padding: 0.5rem 0.9rem; border-radius: 8px; z-index: 10; }
.skip:focus { left: 1rem; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 5;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: 0.65rem; text-decoration: none; color: var(--ivory); font: 600 1.3rem/1 var(--serif); letter-spacing: 0.005em; }
.brand img { width: 30px; height: 30px; border-radius: 7px; }
.nav-links { display: flex; align-items: center; gap: 1.75rem; list-style: none; margin: 0; padding: 0; font-size: 0.9375rem; }
.nav-links a { text-decoration: none; color: var(--muted); transition: color 0.2s; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--ivory); }
.nav-links a.btn-primary, .nav-links a.btn-primary:hover { color: #fff; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 48px; padding: 0 1.5rem; border-radius: 999px;
  font: 600 1rem/1 var(--sans); text-decoration: none; letter-spacing: -0.005em;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s, transform 0.2s;
}
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-hover); }
.btn-quiet { color: var(--ivory); border: 1px solid var(--line-strong); }
.btn-quiet:hover { border-color: var(--muted); }
.btn-sm { min-height: 38px; padding: 0 1.05rem; font-size: 0.9rem; }
.btn svg { width: 18px; height: 18px; flex: none; }

/* Language menu */
.lang-menu { position: relative; }
.lang-menu summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 0.4rem; min-height: 38px; color: var(--muted); font-weight: 600; font-size: 0.8125rem; letter-spacing: 0.06em; transition: color 0.2s; }
.lang-menu summary::-webkit-details-marker { display: none; }
.lang-menu summary:hover, .lang-menu[open] summary { color: var(--ivory); }
.lang-menu summary svg { width: 18px; height: 18px; flex: none; }
.lang-menu ul {
  position: absolute; right: 0; top: calc(100% + 0.5rem); z-index: 6;
  list-style: none; margin: 0; padding: 0.4rem; min-width: 13rem; max-height: min(70vh, 34rem); overflow-y: auto;
  background: var(--raised-2); border: 1px solid var(--line); border-radius: 14px;
  box-shadow: 0 24px 60px -20px rgba(0,0,0,0.85);
}
.lang-menu li a { display: flex; justify-content: space-between; gap: 1rem; padding: 0.45rem 0.8rem; border-radius: 9px; color: var(--silver); font-size: 0.9375rem; }
.lang-menu li a:hover { background: var(--raised); color: var(--ivory); }
.lang-menu li a[aria-current] { color: var(--ivory); }
.lang-menu li a[aria-current]::after { content: "✓"; color: var(--red-hover); }

/* Type */
.eyebrow { font: 600 0.75rem/1.2 var(--sans); letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin: 0 0 1.25rem; }
.display { font-family: var(--serif); font-weight: 500; color: var(--ivory); letter-spacing: -0.02em; line-height: 1.02; margin: 0; }
.display em { font-style: italic; font-weight: 400; color: var(--silver); }
h2.display { font-size: clamp(2.25rem, 5vw, 3.75rem); }
.lede { font-size: clamp(1.0625rem, 1.6vw, 1.25rem); color: var(--muted); max-width: 36rem; margin: 1.5rem 0 0; line-height: 1.55; }

/* Hero */
.hero { padding: clamp(4rem, 10vw, 7.5rem) 0 0; text-align: center; overflow: hidden; }
.hero .display { font-size: clamp(3rem, 8.4vw, 6.75rem); }
.hero .lede { margin-inline: auto; }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem; margin-top: 2.25rem; }
.hero-note { margin: 1rem 0 0; font-size: 0.875rem; color: var(--muted); }

.fan {
  position: relative; height: clamp(380px, 62vw, 640px); margin-top: clamp(3.5rem, 7vw, 5.5rem);
  -webkit-mask-image: linear-gradient(to bottom, #000 72%, transparent);
  mask-image: linear-gradient(to bottom, #000 72%, transparent);
}
.fan::before {
  content: ""; position: absolute; left: 50%; top: 30%; width: 80%; height: 70%; transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(176, 51, 56, 0.16), transparent 70%);
  filter: blur(10px); pointer-events: none;
}
.phone {
  position: absolute; left: 50%; top: 0;
  width: clamp(190px, 27vw, 300px); aspect-ratio: 1206 / 2622;
  padding: clamp(5px, 0.7vw, 8px); border-radius: clamp(30px, 4.4vw, 48px);
  background: linear-gradient(160deg, #3a4048, #15181c 40%, #22262c);
  box-shadow: 0 0 0 1px rgba(255,255,255,0.06) inset, 0 40px 80px -20px rgba(0,0,0,0.75), 0 18px 36px -18px rgba(0,0,0,0.6);
  transform-origin: 50% 110%;
}
.phone img { width: 100%; height: 100%; object-fit: cover; border-radius: clamp(25px, 3.8vw, 41px); }
.phone.p-left { transform: translateX(-118%) rotate(-9deg) translateY(36px); }
.phone.p-right { transform: translateX(18%) rotate(9deg) translateY(36px); }
.phone.p-center { transform: translateX(-50%); z-index: 2; }

@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.9s cubic-bezier(.2,.7,.2,1), transform 0.9s cubic-bezier(.2,.7,.2,1); }
  .reveal.is-in { opacity: 1; transform: none; }
  .fan .phone { transition: transform 1.1s cubic-bezier(.2,.75,.15,1), opacity 0.8s; }
  .fan:not(.is-in) .p-left { transform: translateX(-50%) rotate(0) translateY(40px); opacity: 0; }
  .fan:not(.is-in) .p-right { transform: translateX(-50%) rotate(0) translateY(40px); opacity: 0; }
  .fan:not(.is-in) .p-center { transform: translateX(-50%) translateY(30px); opacity: 0; }
}

/* Sections */
section { scroll-margin-top: 80px; }
.section { padding: clamp(5rem, 11vw, 9rem) 0; }
.section + .section { border-top: 1px solid var(--line); }
.section-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2rem 4rem; align-items: end; margin-bottom: clamp(3rem, 6vw, 4.5rem); }
.section-head .lede { margin: 0; }

/* Games index */
.games { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.games li { display: grid; grid-template-columns: 2.25rem minmax(0, 1fr) auto; align-items: baseline; gap: 0.25rem 0.75rem; padding: 1.35rem 1.5rem 1.35rem 0; border-bottom: 1px solid var(--line); }
.games li:nth-child(3n+2), .games li:nth-child(3n) { padding-left: 1.5rem; border-left: 1px solid var(--line); }
.games .n { font: 500 0.8125rem/1 var(--sans); color: var(--muted); font-variant-numeric: tabular-nums; }
.games .name { font: 500 1.375rem/1.2 var(--serif); color: var(--ivory); }
.games .kind { grid-column: 2 / -1; font-size: 0.9rem; color: var(--muted); }
.tag { font: 600 0.6875rem/1 var(--sans); letter-spacing: 0.08em; text-transform: uppercase; padding: 0.35rem 0.55rem; border-radius: 999px; white-space: nowrap; }
.tag-free { color: var(--ivory); background: rgba(176, 51, 56, 0.22); box-shadow: 0 0 0 1px rgba(176, 51, 56, 0.55) inset; }
.tag-deck { color: var(--muted); box-shadow: 0 0 0 1px var(--line-strong) inset; }

/* Modes */
.modes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); }
.mode { padding: 2rem 1.75rem 0 0; }
.mode + .mode { padding-left: 1.75rem; border-left: 1px solid var(--line); }
.mode svg { width: 26px; height: 26px; color: var(--ivory); }
.mode h3 { font: 500 1.5rem/1.2 var(--serif); color: var(--ivory); margin: 1.5rem 0 0.6rem; }
.mode p { margin: 0; color: var(--muted); font-size: 0.975rem; }

/* Feature rows */
.feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2.5rem, 7vw, 6rem); align-items: center; }
.feature + .feature { margin-top: clamp(5rem, 10vw, 8rem); }
.feature.flip .feature-media { order: -1; }
.feature-media { display: flex; justify-content: center; }
.feature-media .phone { position: relative; left: auto; top: auto; transform: none; width: min(300px, 72vw); }
.feature ul { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: 0.85rem; }
.feature li { display: grid; grid-template-columns: 1.25rem 1fr; gap: 0.75rem; color: var(--silver); }
.feature li::before { content: "♠"; color: var(--red); font-size: 0.95rem; line-height: 1.7; }
.feature li:nth-child(even)::before { content: "♦"; }
.wide-caption + .feature { margin-top: clamp(5rem, 10vw, 8rem); }
.feature-tablet { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); }
.tablet { width: 100%; max-width: 640px; aspect-ratio: 4 / 3; padding: clamp(6px, 0.9vw, 11px); border-radius: clamp(20px, 2.6vw, 32px); background: linear-gradient(160deg, #3a4048, #15181c 40%, #22262c); box-shadow: 0 0 0 1px rgba(255,255,255,0.06) inset, 0 40px 80px -20px rgba(0,0,0,0.75), 0 18px 36px -18px rgba(0,0,0,0.6); }
.tablet img { width: 100%; height: 100%; object-fit: cover; border-radius: clamp(14px, 1.9vw, 22px); }

/* iPhone Duo: open inner screen with its fold, and the folded phone beside it */
.duo { position: relative; margin: clamp(3rem, 6vw, 4.5rem) 0 0; padding-right: clamp(2.5rem, 9vw, 7rem); }
.duo-open { position: relative; aspect-ratio: 2853 / 2007; padding: clamp(5px, 0.6vw, 8px); border-radius: clamp(22px, 3.2vw, 40px); background: linear-gradient(160deg, #3a4048, #15181c 40%, #22262c); box-shadow: 0 0 0 1px rgba(255,255,255,0.06) inset, 0 50px 100px -30px rgba(0,0,0,0.8); }
.duo-open img { width: 100%; height: 100%; object-fit: cover; border-radius: clamp(18px, 2.7vw, 33px); }
.duo-open::after { content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: clamp(14px, 2.4vw, 30px); transform: translateX(-50%); pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(0,0,0,0.22) 42%, rgba(0,0,0,0.34) 49%, rgba(255,255,255,0.07) 51%, rgba(0,0,0,0.18) 58%, transparent); }
.duo-folded { position: absolute; right: 0; bottom: clamp(-3.5rem, -5vw, -1.5rem); width: clamp(96px, 19%, 210px); aspect-ratio: 1398 / 2034;
  padding: clamp(4px, 0.5vw, 6px); border-radius: clamp(4px, 0.6vw, 8px) clamp(16px, 2.4vw, 28px) clamp(16px, 2.4vw, 28px) clamp(4px, 0.6vw, 8px);
  background: linear-gradient(160deg, #3a4048, #15181c 40%, #22262c); box-shadow: 0 0 0 1px rgba(255,255,255,0.06) inset, -24px 30px 60px -20px rgba(0,0,0,0.85); }
.duo-folded img { width: 100%; height: 100%; object-fit: cover; border-radius: 3px clamp(12px, 1.9vw, 22px) clamp(12px, 1.9vw, 22px) 3px; }
.duo + .wide-caption { margin-top: clamp(2.25rem, 6vw, 4.5rem); padding-right: clamp(2.5rem, 9vw, 7rem); }
.wide-caption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 2rem; margin-top: 1.25rem; font-size: 0.9rem; color: var(--muted); }

/* Privacy trio */
.trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.trio div { padding: 2.25rem 2rem 0 0; }
.trio div + div { padding-left: 2rem; border-left: 1px solid var(--line); }
.trio strong { display: block; font: 500 clamp(1.75rem, 3vw, 2.5rem)/1.1 var(--serif); color: var(--ivory); margin-bottom: 0.85rem; letter-spacing: -0.01em; }
.trio p { margin: 0; color: var(--muted); }

/* Pricing */
.plans { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.25rem; }
.plan { border: 1px solid var(--line); border-radius: 22px; padding: clamp(1.75rem, 3.5vw, 2.75rem); background: var(--raised); }
.plan.featured { background: linear-gradient(180deg, #1d1416, var(--raised) 60%); border-color: rgba(176, 51, 56, 0.45); }
.plan h3 { font: 500 2rem/1.1 var(--serif); color: var(--ivory); margin: 0 0 0.35rem; }
.plan .sub { color: var(--muted); margin: 0 0 1.75rem; }
.plan ul { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.plan li { padding: 0.9rem 0; border-bottom: 1px solid var(--line); display: grid; gap: 0.15rem; }
.plan li b { color: var(--ivory); font-weight: 500; }
.plan li span { color: var(--muted); font-size: 0.925rem; }
.plan .fine { margin: 1.5rem 0 0; font-size: 0.875rem; color: var(--muted); }

/* Closing */
.closing { text-align: center; padding: clamp(6rem, 13vw, 10rem) 0; border-top: 1px solid var(--line); }
.closing img.icon { width: 88px; height: 88px; border-radius: 20px; margin: 0 auto 2.25rem; box-shadow: 0 20px 50px -18px rgba(0,0,0,0.8); }
.closing .display { font-size: clamp(2.5rem, 6.5vw, 5rem); }
.closing .lede { margin-inline: auto; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 2.5rem 0 3rem; font-size: 0.875rem; color: var(--muted); }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem 2rem; align-items: center; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 1.5rem; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--ivory); }

/* Document pages (privacy, support) */
.doc { padding: clamp(3.5rem, 8vw, 6rem) 0 clamp(5rem, 10vw, 8rem); }
.doc .wrap { max-width: 720px; }
.doc h1 { font-size: clamp(2.75rem, 7vw, 4.5rem); }
.doc .meta { margin: 1rem 0 0; color: var(--muted); font-size: 0.9375rem; }
.doc .intro { font-size: 1.1875rem; color: var(--silver); margin: 2.25rem 0 0; }
.doc h2 { font: 500 1.625rem/1.25 var(--serif); color: var(--ivory); margin: 3rem 0 0.75rem; letter-spacing: -0.005em; }
.doc p { margin: 0 0 1rem; }
.doc a { color: var(--ivory); text-decoration-color: var(--line-strong); text-underline-offset: 3px; }
.doc a:hover { text-decoration-color: var(--ivory); }
.contact-card { margin-top: 2.5rem; padding: 1.75rem; border: 1px solid var(--line); border-radius: 18px; background: var(--raised); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 1.5rem; }
.contact-card p { margin: 0; }
.contact-card .addr { font: 500 1.25rem/1.3 var(--serif); color: var(--ivory); }
.faq { margin-top: 1rem; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 1.25rem 2.5rem 1.25rem 0; position: relative; font: 500 1.1875rem/1.35 var(--serif); color: var(--ivory); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 0.35rem; top: 50%; width: 10px; height: 10px; border-right: 1.5px solid var(--muted); border-bottom: 1.5px solid var(--muted); transform: translateY(-70%) rotate(45deg); transition: transform 0.25s; }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details > div { padding: 0 0 1.35rem; color: var(--muted); }
.faq details > div p:last-child { margin-bottom: 0; }

.not-found { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 4rem 0; }
.not-found .display { font-size: clamp(3rem, 9vw, 6rem); }

/* Languages */
.display, .games .name, .games .kind, .mode h3, .trio strong, .plan h3, .plan li b { overflow-wrap: break-word; }
:root:lang(ja) {
  --serif: "Hiragino Mincho ProN", "Yu Mincho", YuMincho, "Noto Serif JP", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", "Noto Sans JP", system-ui, sans-serif;
}
:lang(ja) body { line-break: strict; word-break: auto-phrase; }
:lang(ja) .display { letter-spacing: 0; line-height: 1.25; }
:lang(ja) .display em { font-style: normal; }
:lang(ja) .eyebrow { letter-spacing: 0.08em; }

/* Responsive */
@media (max-width: 960px) {
  .games { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .games li:nth-child(n) { padding-left: 0; border-left: 0; padding-right: 1.25rem; }
  .games li:nth-child(even) { padding-left: 1.25rem; border-left: 1px solid var(--line); }
  .modes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mode:nth-child(n) { padding: 2rem 1.5rem 2rem 0; border-left: 0; border-bottom: 1px solid var(--line); }
  .mode:nth-child(even) { padding-left: 1.5rem; border-left: 1px solid var(--line); }
}
@media (max-width: 760px) {
  .nav-links .hide-sm { display: none; }
  .lang-menu summary span { display: none; }
}
@media (max-width: 440px) {
  .nav-links .hide-xs { display: none; }
  .nav-links { gap: 1.1rem; }
  .section-head, .feature, .feature-tablet, .plans { grid-template-columns: 1fr; }
  .feature.flip .feature-media { order: 0; }
  .games { grid-template-columns: 1fr; }
  .games li:nth-child(n) { padding: 1.15rem 0; border-left: 0; }
  .modes { grid-template-columns: 1fr; }
  .mode:nth-child(n) { padding: 1.75rem 0; border-left: 0; }
  .trio { grid-template-columns: 1fr; }
  .trio div:nth-child(n) { padding: 1.75rem 0; border-left: 0; border-bottom: 1px solid var(--line); }
  .phone.p-left { transform: translateX(-104%) rotate(-8deg) translateY(30px); }
  .phone.p-right { transform: translateX(4%) rotate(8deg) translateY(30px); }
  .fan { height: clamp(360px, 108vw, 520px); }
  .phone { width: clamp(160px, 46vw, 240px); }
}
