
:root {
  --bg: #87d9bc;
  --fg: #d9c3ea;
  --ink: #d9c3ea;
  --accent: #4d245f;
  --accent-2: #ee7b72;
  --paper: #87d9bc;
  --muted: rgba(217, 195, 234, 0.72);
  --line: rgba(217, 195, 234, 0.18);
  --panel: rgba(255, 255, 255, 0.88);
  --shadow: 0 22px 60px rgba(0, 0, 0, 0.24);
  --radius: 10px;
  --head: "Fraunces", "Arial", sans-serif;
  --body: "Manrope", "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 12% 16%, rgba(77, 36, 95, 0.18), transparent 26rem),
    radial-gradient(circle at 88% 8%, rgba(238, 123, 114, 0.14), transparent 24rem),
    var(--bg);
  color: var(--fg);
  font-family: var(--body);
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.skip-link { position: absolute; left: 1rem; top: -5rem; padding: .7rem 1rem; background: var(--accent); color: #111; z-index: 50; }
.skip-link:focus { top: 1rem; }
:focus-visible { outline: 3px solid var(--accent-2); outline-offset: 4px; }
h1, h2, h3 { font-family: var(--head); line-height: 1.02; margin: 0; letter-spacing: 0; }
p { margin: 0; }
.site-header {
  width: min(1180px, calc(100% - 32px));
  margin: 18px auto;
  position: relative;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.brand { display: inline-flex; align-items: center; gap: .75rem; font-family: var(--head); font-weight: 800; max-width: 68%; }
.brand img { width: 48px; height: 48px; flex: 0 0 auto; }
.brand span { overflow-wrap: anywhere; }
.site-menu { display: flex; align-items: center; gap: .45rem; flex-wrap: wrap; }
.site-menu a { min-height: 44px; display: inline-grid; place-items: center; padding: .62rem .9rem; border: 1px solid var(--line); background: rgba(217, 195, 234, 0.06); }
.menu-toggle { display: none; width: 46px; height: 46px; border: 1px solid var(--line); background: rgba(217, 195, 234, 0.08); color: inherit; place-items: center; padding: 10px; }
.menu-toggle span { display: block; width: 22px; height: 2px; margin: 3px auto; background: currentColor; }
.hero {
  width: min(1180px, calc(100% - 32px));
  margin: 32px auto 76px;
  min-height: 620px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, .86fr);
  gap: clamp(1.25rem, 4vw, 4rem);
  align-items: center;
}
.hero-copy { position: relative; z-index: 2; }
.eyebrow, .section-kicker { font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; color: var(--accent-2); font-weight: 800; margin-bottom: .7rem; }
.hero h1 { font-size: clamp(2.45rem, 6vw, 6.2rem); max-width: 11ch; overflow-wrap: anywhere; }
.hero-copy > p:not(.eyebrow) { margin-top: 1.2rem; max-width: 58ch; color: var(--muted); font-size: clamp(1rem, 1.7vw, 1.18rem); }
.hero-actions { margin-top: 1.6rem; display: flex; flex-wrap: wrap; gap: .85rem; align-items: center; }
.primary-cta, .secondary-cta {
  min-height: 46px;
  display: inline-grid;
  place-items: center;
  padding: .82rem 1.15rem;
  font-weight: 900;
  border-radius: var(--radius);
}
.primary-cta { background: var(--accent); color: #111; box-shadow: var(--shadow); }
.secondary-cta { border: 1px solid var(--line); background: rgba(217, 195, 234, 0.06); }
.hero-art { margin: 0; position: relative; }
.hero-art img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: calc(var(--radius) + 8px); box-shadow: var(--shadow); }
.hero-note { border: 1px solid var(--line); padding: 1rem; background: rgba(217, 195, 234, 0.06); }
.hero-note span { display: block; color: var(--muted); font-size: .85rem; }
main > section:not(.hero) { width: min(1180px, calc(100% - 32px)); margin: 0 auto 76px; }
.studio-section, .games-section, .showcase-section, .cta-section {
  border: 1px solid var(--line);
  padding: clamp(1.2rem, 3vw, 2.2rem);
  background: rgba(217, 195, 234, 0.055);
  border-radius: var(--radius);
}
.studio-section h2, .games-section h2, .showcase-section h2 { font-size: clamp(1.75rem, 3vw, 3.2rem); max-width: 15ch; }
.studio-section p, .showcase-section p { margin-top: 1rem; max-width: 68ch; color: var(--muted); }
.studio-facts { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.3rem; }
.studio-facts span { border: 1px solid var(--line); padding: .55rem .75rem; background: rgba(238, 123, 114, 0.09); }
.game-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-top: 1.4rem; }
.game-card { min-height: 180px; border: 1px solid var(--line); padding: 1.1rem; background: rgba(255, 255, 255, 0.08); border-radius: calc(var(--radius) + 4px); }
.game-card span { color: var(--accent-2); font-weight: 900; font-size: .8rem; }
.game-card h3 { margin-top: .7rem; font-size: clamp(1.2rem, 2vw, 1.75rem); }
.game-card p { margin-top: .8rem; color: var(--muted); font-size: .95rem; }
.showcase-section { display: grid; grid-template-columns: .72fr 1fr; gap: 1.4rem; align-items: center; }
.showcase-section img { width: min(310px, 100%); border-radius: var(--radius); }
.cta-section { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.cta-section p { font-family: var(--head); font-size: clamp(1.2rem, 2vw, 2rem); font-weight: 900; }
.site-footer { width: min(1180px, calc(100% - 32px)); margin: 0 auto 28px; padding: 1.2rem 0; display: flex; justify-content: space-between; gap: 1rem; border-top: 1px solid var(--line); }
.site-footer nav, .policy-footer { display: flex; gap: .9rem; flex-wrap: wrap; }
.site-footer p { color: var(--muted); }
.policy-shell { width: min(1180px, calc(100% - 32px)); margin: 0 auto 70px; }
.policy-hero { padding: clamp(2rem, 5vw, 4rem) 0; }
.policy-hero h1 { font-size: clamp(2.3rem, 7vw, 6rem); }
.updated { margin: 1rem 0; color: var(--accent-2); font-weight: 900; }
.policy-hero > p:last-child { max-width: 70ch; color: var(--muted); }
.policy-layout { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 1.3rem; align-items: start; }
.policy-toc { position: sticky; top: 1rem; display: grid; gap: .4rem; border: 1px solid var(--line); padding: .85rem; background: rgba(217, 195, 234, 0.055); border-radius: var(--radius); }
.policy-toc a { padding: .55rem .65rem; border-bottom: 1px solid var(--line); font-size: .9rem; }
.policy-card { border: 1px solid var(--line); padding: clamp(1rem, 2.4vw, 1.8rem); margin-bottom: 1rem; background: rgba(217, 195, 234, 0.055); border-radius: var(--radius); }
.policy-number { color: var(--accent-2); font-weight: 900; font-family: var(--head); }
.policy-card h2 { margin-top: .4rem; font-size: clamp(1.35rem, 2.5vw, 2.35rem); }
.policy-card p, .policy-card li { color: var(--muted); }
.policy-card p { margin-top: .9rem; }
.policy-card ul { columns: 2; margin: 1rem 0 0; padding-left: 1.2rem; }
@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .game-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .policy-layout { grid-template-columns: 1fr; }
  .policy-toc { position: relative; top: auto; grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .site-header { align-items: flex-start; }
  .brand { max-width: calc(100% - 64px); }
  .menu-toggle { display: block; }
  .site-menu { display: none; position: absolute; left: 0; right: 0; top: calc(100% + .6rem); padding: .75rem; background: var(--bg); border: 1px solid var(--line); box-shadow: var(--shadow); }
  .site-menu.is-open { display: grid; }
  .site-menu a { justify-content: start; }
  .hero { margin-top: 24px; }
  .hero h1 { font-size: clamp(2.1rem, 13vw, 4rem); max-width: 12ch; }
  .game-grid, .showcase-section { grid-template-columns: 1fr; }
  .cta-section, .site-footer { flex-direction: column; align-items: flex-start; }
  .policy-toc { grid-template-columns: 1fr; }
  .policy-card ul { columns: 1; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
.theme-zine .hero { grid-template-columns: .72fr 1fr; transform: rotate(-.4deg); } .theme-zine .hero-art img { border-radius: 0 46px 0 46px; } .theme-zine .game-card:nth-child(3n) { transform: rotate(2deg); } .theme-zine .game-card:nth-child(3n+1) { transform: rotate(-1.5deg); } .nav-zine .site-menu a { text-decoration: underline; text-decoration-thickness: 4px; }
.policy-zine .policy-layout { grid-template-columns: 320px minmax(0,1fr); }
.policy-zine .policy-toc {  }
.policy-zine .policy-card:nth-child(4n) { border-color: var(--accent-2); background: rgba(238, 123, 114, 0.08); }
@media (max-width: 960px) { .policy-zine .policy-layout { grid-template-columns: 1fr; } .policy-zine .policy-toc { order: 0; } }

@media (max-width: 960px) {
  .hero-bento, .hero-armory, .hero-phone, .hero-horizon, .hero-dashboard, .hero-strip,
  .hero-corporate, .hero-mosaic, .hero-sakura, .hero-map, .hero-boss, .hero-specimen,
  .hero-zine, .hero-fight, .hero-premium {
    grid-template-columns: 1fr !important;
  }
  .theme-horizon .hero { min-height: 0; align-items: start; }
  .hero-horizon .hero-art, .hero-horizon .hero-copy, .hero-horizon .hero-note,
  .hero-strip .hero-art, .hero-strip .hero-copy, .hero-trail .hero-art, .hero-trail .hero-copy,
  .hero-portal .hero-art, .hero-portal .hero-copy, .hero-cosmos .hero-art, .hero-cosmos .hero-copy {
    grid-column: auto !important;
    grid-row: auto !important;
  }
  .theme-mosaic .game-grid, .theme-magazine .game-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
  .theme-strip .game-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    overflow-x: visible;
  }
  .theme-strip .game-card { min-width: 0; }
  .nav-specimen .site-menu { grid-auto-flow: row; }
}
@media (max-width: 720px) {
  .site-header, .hero, main > section:not(.hero), .policy-shell, .site-footer {
    width: min(100% - 24px, 1180px);
  }
  .hero-copy, .hero-art, .hero-note, .showcase-section > div, .game-card, .policy-card {
    min-width: 0;
  }
  .hero-sakura .hero-copy, .hero-sakura .hero-copy p:not(.eyebrow), .nav-sakura .site-menu {
    writing-mode: horizontal-tb;
    max-height: none;
  }
  .hero-sakura .hero-copy { justify-self: stretch; }
  .theme-mosaic .game-grid, .theme-magazine .game-grid, .theme-strip .game-grid {
    grid-template-columns: 1fr !important;
  }
  .hero-heroic .hero-art, .hero-heroic .hero-copy, .theme-map .game-card:nth-child(odd),
  .theme-map .game-card:nth-child(even), .theme-zine .hero, .theme-zine .game-card:nth-child(3n),
  .theme-zine .game-card:nth-child(3n+1), .theme-fracture .game-grid {
    transform: none;
  }
  .theme-cosmos .game-card {
    aspect-ratio: auto;
    border-radius: var(--radius);
  }
  .hero-phone .hero-art img, .hero-time .hero-art img {
    transform: none;
  }
}
