:root {
  --bg: #08050e;
  --surface: #130c1f;
  --surface-alt: #1d132e;
  --text: #f8f5fa;
  --muted: #c5bdd2;
  --primary: #f06ae1;
  --accent: #b42dff;
  --border: #38264d;
  --radius: 16px;
  --space-sm: 12px;
  --space-md: 24px;
  --space-lg: 48px;
}
* { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
  background-color: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.68;
}
a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 150ms ease, opacity 150ms ease;
}
a:hover { opacity: 0.88; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}
.gf-container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}
.gf-header {
  border-bottom: 1px solid var(--border);
  background-color: var(--surface);
  position: sticky;
  top: 0;
  z-index: 30;
}
.gf-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
  flex-wrap: wrap;
}
.gf-brand {
  font-size: 19px;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.01em;
}
.gf-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.gf-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
}
.gf-nav a:hover { color: var(--text); }
.gf-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 20px;
  border-radius: 999px;
  background-color: var(--primary);
  color: #08050e;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 150ms ease, opacity 150ms ease;
}
.gf-btn:hover {
  transform: translateY(-1px);
  opacity: 0.94;
  color: #08050e;
}
.gf-btn-secondary {
  background-color: var(--surface-alt);
  color: var(--text);
  border-color: var(--border);
}
.gf-btn-secondary:hover { color: var(--text); }
.gf-main { padding: 44px 0 72px; }
.gf-hero {
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  margin-bottom: 32px;
}
.gf-eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 10px;
}
h1 {
  font-size: 36px;
  line-height: 1.18;
  margin: 0 0 14px;
  letter-spacing: -0.02em;
}
h2 {
  font-size: 25px;
  line-height: 1.25;
  margin: 36px 0 14px;
}
h3 {
  font-size: 19px;
  line-height: 1.3;
  margin: 24px 0 10px;
}
.gf-lead {
  font-size: 18px;
  color: var(--muted);
  max-width: 70ch;
  margin: 0 0 22px;
}
.gf-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}
.gf-card {
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  margin-bottom: 24px;
}
.gf-prose p, .gf-prose li {
  max-width: 72ch;
  color: var(--text);
}
.gf-prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
}
.gf-prose th, .gf-prose td {
  border: 1px solid var(--border);
  padding: 10px 14px;
  text-align: left;
}
.gf-prose th {
  background-color: var(--surface-alt);
  color: var(--text);
}
.gf-faq-item {
  border-top: 1px solid var(--border);
  padding: 16px 0;
}
.gf-engage {
  margin-top: 40px;
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}
.gf-engage-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.gf-input {
  width: 100%;
  min-height: 44px;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background-color: var(--bg);
  color: var(--text);
  font-family: inherit;
  font-size: 16px;
  margin-bottom: 12px;
}
.gf-comments {
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
}
.gf-comments li {
  border-top: 1px solid var(--border);
  padding: 12px 0;
}
.gf-footer {
  border-top: 1px solid var(--border);
  background-color: var(--surface);
  padding: 36px 0;
  color: var(--muted);
  font-size: 14px;
}
.gf-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-bottom: 14px;
}
@media (max-width: 640px) {
  h1 { font-size: 28px; }
  h2 { font-size: 22px; }
  .gf-hero, .gf-card, .gf-engage { padding: 20px; }
}


/* Long-form prose: tables and lists (added for /genjutsu-generator) */
.gf-prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0 32px;
  font-size: 15px;
  font-variant-numeric: tabular-nums;
}
.gf-prose thead th {
  text-align: left;
  font-weight: 600;
  padding: 12px 16px;
  background: rgb(255 255 255 / .05);
  border-bottom: 1px solid var(--line, rgb(255 255 255 / .14));
}
.gf-prose tbody td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--line, rgb(255 255 255 / .1));
  vertical-align: top;
}
.gf-prose tbody tr:nth-child(even) {
  background: rgb(255 255 255 / .025);
}
.gf-prose ul li,
.gf-prose ol li {
  margin-bottom: 10px;
}
.gf-prose ul,
.gf-prose ol {
  padding-left: 22px;
}
@media (max-width: 720px) {
  .gf-prose table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .gf-prose table > thead,
  .gf-prose table > tbody {
    display: table;
    width: 100%;
    min-width: 460px;
  }
}

.oh-footer {
  position: relative;
  margin-top: 64px;
  padding: 60px 0 calc(80px + env(safe-area-inset-bottom));
  padding-inline: env(safe-area-inset-left) env(safe-area-inset-right);
  background: rgb(0, 0, 0);
  color: rgb(245, 238, 248);
}
.oh-footer::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(90deg, rgb(145, 63, 228), rgb(229, 138, 201) 60%, rgb(134, 49, 168));
  box-shadow: 0 0 14px rgba(189, 72, 206, 0.31);
}
.oh-footer-inner {
  width: min(1280px, calc(100% - 80px));
  margin-inline: auto;
}
.oh-footer-grid {
  display: grid;
  grid-template-columns: minmax(272px, 0.95fr) minmax(0, 3fr);
  gap: 44px;
}
.oh-footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
  padding-right: 28px;
  border-right: 1px solid rgba(255, 255, 255, 0.14);
}
.oh-footer-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  padding-top: 6px;
  text-decoration: none;
}
.oh-footer-wordmark {
  display: block;
  width: min(280px, 100%);
  height: auto;
  mix-blend-mode: lighten;
}
.oh-footer-email {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  margin-top: 30px;
  font-size: 14px;
  color: rgb(226, 216, 233);
  text-decoration: none;
}
.oh-footer-email svg {
  flex-shrink: 0;
  color: rgb(206, 179, 222);
}
.oh-footer-email span {
  overflow-wrap: anywhere;
}
.oh-footer-follow {
  margin-top: 26px;
}
.oh-footer h2 {
  margin: 0 0 16px;
  color: rgb(245, 238, 248);
  font-size: 22px;
  line-height: 1.3;
  letter-spacing: -0.025em;
  font-weight: 700;
}
.oh-footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.oh-footer .oh-footer-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.oh-footer-social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: rgb(245, 238, 248);
}
.oh-footer-social img {
  width: 24px;
  height: 24px;
  filter: invert(1);
}
.oh-footer-social:disabled {
  opacity: 0.65;
  cursor: default;
}
.oh-footer-directory {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: 32px;
  min-width: 0;
}
.oh-footer-column {
  min-width: 0;
  padding-bottom: 26px;
}
.oh-footer-column:nth-child(n + 4) {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  padding-top: 30px;
  padding-bottom: 0;
}
.oh-footer-column a {
  display: flex;
  align-items: center;
  width: fit-content;
  min-height: 44px;
  padding-block: 6px;
  color: rgb(203, 189, 214);
  font-size: 15px;
  line-height: 1.5;
  text-decoration: none;
  text-underline-offset: 5px;
  overflow-wrap: anywhere;
}
.oh-footer a:focus-visible {
  outline: 2px solid rgb(244, 172, 207);
  outline-offset: 5px;
  border-radius: 4px;
}
.oh-footer-badges {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  align-items: start;
  gap: 28px;
  margin-top: 40px;
  padding-block: 30px 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}
.oh-footer-badges h2 {
  padding-top: 18px;
}
.oh-footer [data-directory-badges] {
  min-width: 0;
}
.oh-footer .oh-footer-badge-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}
.oh-footer .directory-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 64px;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
  text-decoration: none;
}
.oh-footer .directory-badge img {
  width: 100%;
  max-width: 184px;
  height: 44px;
  object-fit: contain;
  object-position: center;
}
.oh-footer .oh-footer-badge-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin-top: 10px;
}
.oh-footer .oh-footer-badge-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 13px;
  color: rgb(203, 189, 214);
  text-decoration: none;
}
.oh-footer-legal {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px 40px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  color: rgb(175, 162, 189);
  font-size: 13px;
  line-height: 1.7;
}
.oh-footer-legal > span {
  flex-shrink: 0;
}
.oh-footer-legal p {
  max-width: 70ch;
  margin: 0;
}
@media (hover: hover) {
  .oh-footer .oh-footer-column a:hover,
  .oh-footer .oh-footer-email:hover,
  .oh-footer .oh-footer-badge-links a:hover {
    color: rgb(244, 172, 207);
    text-decoration: underline;
  }
  .oh-footer .directory-badge:hover {
    border-color: rgb(214, 155, 227);
  }
}
@media (max-width: 1100px) {
  .oh-footer-grid {
    gap: 28px;
    grid-template-columns: 256px minmax(0, 1fr);
  }
  .oh-footer-brand {
    padding-right: 24px;
  }
  .oh-footer-directory {
    column-gap: 20px;
  }
  .oh-footer h2 {
    font-size: 20px;
  }
  .oh-footer .oh-footer-badge-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 800px) {
  .oh-footer {
    padding-top: 40px;
  }
  .oh-footer-inner {
    width: calc(100% - 40px);
  }
  .oh-footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .oh-footer-brand {
    align-items: center;
    padding: 0 0 32px;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  }
  .oh-footer-logo {
    width: min(280px, 100%);
  }
  .oh-footer-email {
    margin-top: 22px;
    font-size: 15px;
  }
  .oh-footer-follow {
    margin-top: 18px;
    text-align: center;
  }
  .oh-footer .oh-footer-socials {
    justify-content: center;
    gap: 10px;
  }
  .oh-footer-badges {
    grid-template-columns: 1fr;
    gap: 18px;
    margin-top: 32px;
    padding-block: 28px;
  }
  .oh-footer-badges h2 {
    padding: 0;
    margin: 0;
  }
  .oh-footer-legal {
    flex-direction: column;
    gap: 10px;
  }
}
@media (max-width: 560px) {
  .oh-footer-directory {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 22px;
  }
  .oh-footer-column:nth-child(n) {
    border-top: 0;
    padding: 0 0 24px;
  }
  .oh-footer-column:nth-child(n + 3) {
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    padding-top: 24px;
  }
  .oh-footer-column h2 {
    font-size: 18px;
    margin-bottom: 12px;
  }
  .oh-footer-column a {
    font-size: 14px;
  }
  .oh-footer .oh-footer-badge-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
}

.cinema-header.site-header-focused {
  height: 88px;
  padding: 12px 32px;
  position: relative;
  z-index: 20;
}
.cinema-header.site-header-focused .cinema-nav {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  height: 64px;
  max-width: 1280px;
  margin-inline: auto;
  gap: 20px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 22px;
  background: transparent;
  color: rgb(248, 245, 250);
}
.cinema-header.site-header-focused .cinema-brand {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  gap: 9px;
  text-decoration: none;
}
.cinema-header.site-header-focused .cinema-brand-wordmark {
  display: block;
  flex-shrink: 0;
}
.cinema-header.site-header-focused .cinema-brand-wordmark img {
  display: block;
  width: 210px;
  height: 60px;
  object-fit: contain;
  border-radius: 8px;
  mix-blend-mode: lighten;
}
.cinema-header.site-header-focused .cinema-nav-links {
  display: flex;
  align-items: center;
  gap: clamp(18px, 1.8vw, 28px);
  margin: 0 auto 0 24px;
  font-size: 14px;
}
.cinema-header.site-header-focused .cinema-nav-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: rgb(230, 234, 245);
  text-decoration: none;
  transition: color 150ms;
}
.cinema-header.site-header-focused .cinema-nav-links a:hover {
  color: rgb(244, 172, 207);
}
.cinema-header.site-header-focused .cinema-nav-utilities {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  gap: 12px;
  margin-left: auto;
  color: rgb(230, 234, 245);
}
.cinema-lang-wrap {
  position: relative;
}
.cinema-lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 0 10px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: rgb(230, 234, 245);
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
}
.cinema-lang-btn:hover,
.cinema-header.site-header-focused .site-nav-account:hover {
  background: rgba(244, 172, 207, 0.08);
  color: rgb(244, 172, 207);
}
.cinema-lang-menu {
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  min-width: 132px;
  padding: 6px;
  border: 1px solid rgba(229, 200, 241, 0.22);
  border-radius: 12px;
  background: rgb(20, 14, 32);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45);
}
.cinema-lang-option {
  display: block;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 13px;
  color: rgb(248, 245, 250);
  background: rgba(244, 172, 207, 0.12);
}
.cinema-header.site-header-focused .site-nav-account {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 10px;
  border-radius: 10px;
  color: rgb(241, 243, 251);
  font-size: 14px;
  text-decoration: none;
  white-space: nowrap;
}
.cinema-header.site-header-focused .site-nav-create {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  gap: 10px;
  min-height: 44px;
  padding: 10px 18px;
  border: 1px solid rgba(255, 214, 246, 0.36);
  border-radius: 12px;
  background: linear-gradient(103deg, rgb(168, 45, 136) 0%, rgb(129, 52, 181) 55%, rgb(91, 33, 182) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22);
  color: rgb(255, 247, 252);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
  text-decoration: none;
  white-space: nowrap;
  transition: filter 180ms;
}
.cinema-header.site-header-focused .site-nav-create:hover {
  filter: brightness(1.08);
}
.cinema-header.site-header-focused .site-nav-create-short,
.cinema-header.site-header-focused .cinema-menu-toggle {
  display: none;
}
.cinema-header.site-header-focused .site-mobile-nav {
  position: absolute;
  top: calc(100% + 2px);
  right: 32px;
  width: min(380px, calc(100vw - 24px));
  padding: 14px;
  border: 1px solid rgba(240, 244, 252, 0.8);
  border-radius: 20px;
  background: linear-gradient(135deg, rgb(247, 250, 255), rgb(214, 223, 238));
  color: rgb(23, 43, 75);
  box-shadow: 0 16px 40px rgba(8, 19, 37, 0.35);
}
.cinema-header.site-header-focused .site-mobile-nav[hidden],
.cinema-lang-menu[hidden] {
  display: none;
}
.cinema-header.site-header-focused .site-mobile-nav a:not(.site-nav-create) {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 12px;
  border-radius: 10px;
  color: rgb(23, 43, 75);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
}
.cinema-header.site-header-focused .site-mobile-nav a:not(.site-nav-create):hover {
  background: rgba(168, 52, 107, 0.1);
  color: rgb(134, 40, 84);
}
.cinema-header.site-header-focused .cinema-mobile-utilities {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(96, 113, 139, 0.2);
}
.cinema-header.site-header-focused .site-mobile-create {
  display: flex;
  width: 100%;
  margin-top: 12px;
}
@media (max-width: 1180px) {
  .cinema-header.site-header-focused .cinema-nav-links,
  .cinema-header.site-header-focused .cinema-nav-utilities,
  .cinema-header.site-header-focused .site-nav-create-full {
    display: none;
  }
  .cinema-header.site-header-focused .site-nav-create-short {
    display: inline;
  }
  .cinema-header.site-header-focused .cinema-nav > .site-nav-create {
    margin-left: auto;
    padding: 8px 14px;
    font-size: 13px;
  }
  .cinema-header.site-header-focused .cinema-menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: rgb(241, 243, 251);
    cursor: pointer;
  }
  .cinema-header.site-header-focused .cinema-menu-toggle .cinema-close-icon,
  .cinema-header.site-header-focused .cinema-menu-toggle[data-open="true"] .cinema-menu-icon {
    display: none;
  }
  .cinema-header.site-header-focused .cinema-menu-toggle[data-open="true"] .cinema-close-icon {
    display: block;
  }
}
@media (max-width: 767px) {
  .cinema-header.site-header-focused {
    height: 76px;
    padding: 8px 12px;
  }
  .cinema-header.site-header-focused .cinema-nav {
    height: 60px;
    gap: 8px;
    padding-inline: 12px;
  }
  .cinema-header.site-header-focused .cinema-brand-wordmark img {
    width: 176px;
    height: 38px;
  }
  .cinema-header.site-header-focused .site-mobile-nav {
    right: 12px;
  }
}

@media (max-width: 1180px) {
  .cinema-header.site-header-focused .cinema-brand {
    flex-shrink: 1;
    min-width: 0;
  }
  .cinema-header.site-header-focused .cinema-brand-wordmark,
  .cinema-header.site-header-focused .cinema-brand-wordmark img {
    max-width: 100%;
    height: auto;
  }
  .cinema-header.site-header-focused .cinema-nav > .site-nav-create {
    gap: 6px;
    padding: 7px 12px;
    border-radius: 6px;
  }
  .cinema-header.site-header-focused .cinema-nav > .site-nav-create svg {
    width: 15px;
    height: 15px;
  }
  .cinema-header.site-header-focused .cinema-menu-toggle {
    flex-shrink: 0;
  }
}
