/* conditionsapply.omniworlds.ai — the game's site: home, support, privacy. Same night palette as the game
   (src/ui/style.css): dark violet ground, cream paper cards, amber only for things you can press.
   Pixel art is always scaled by whole numbers with image-rendering: pixelated.
   Headings use the game's title font (a subset made by tools/site.py); body text uses the system font. */
@font-face { font-family: 'CA Display'; src: url('assets/display.woff2') format('woff2'); font-display: swap; }
:root {
  color-scheme: dark;
  --night: #17141f; --bar: #110e17; --panel: #231c2c; --panel-2: #2f2639; --line: #463a52;
  --paper: #ece2cc; --paper-2: #d6c8aa; --ink: #2a2230; --ink-2: #6b5d70;
  --fg: #efe7d6; --muted: #a99db6;
  --amber: #e8a24a; --amber-2: #b97a2e; --stamp: #cf4a40;
  --display: 'CA Display', 'PingFang SC', 'Noto Sans SC', system-ui, sans-serif;
  --body: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Hiragino Sans GB', 'Noto Sans SC', 'Segoe UI', 'Microsoft YaHei', system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { background: var(--night); color: var(--fg); font-family: var(--body); font-size: 16px; line-height: 1.7; -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; }
html[lang="en"] .zh, html[lang="zh-CN"] .en { display: none !important; }
a { color: var(--amber); text-underline-offset: 3px; }
a:hover { color: var(--paper); }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }
img.px { image-rendering: pixelated; image-rendering: crisp-edges; display: block; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; margin: 0; letter-spacing: .06em; color: var(--paper); line-height: 1.25; }
p { margin: 0; }
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.muted { color: var(--muted); }

/* top bar */
.top { position: sticky; top: 0; z-index: 10; background: var(--bar); border-bottom: 1px solid var(--line); }
.top .wrap { height: 64px; display: flex; align-items: center; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--paper); flex-shrink: 0; }
.brand img { width: 36px; height: 36px; border-radius: 8px; }
.brand b { font-family: var(--display); font-weight: 400; font-size: 22px; letter-spacing: .08em; }
.nav { display: flex; gap: 22px; }
.nav a { color: var(--muted); text-decoration: none; font-size: 15px; padding: 4px 0; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a.on { color: var(--fg); border-bottom-color: var(--amber); }
.lang { margin-left: auto; display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line); background: var(--bar); }
.lang button { font: inherit; font-size: 14px; color: var(--muted); background: none; border: 0; padding: 0 12px; min-height: 36px; cursor: pointer; }
.lang button.on { background: var(--amber); color: #2a1c10; font-weight: 700; }

/* home: the first screen */
.hero { padding: 64px 0 0; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 48px; align-items: center; }
.hero h1 { font-size: 64px; letter-spacing: .1em; }
.hero .sub { font-family: var(--display); font-size: 20px; letter-spacing: .3em; color: var(--muted); margin-top: 6px; }
.hero .tag { font-size: 22px; color: var(--paper); margin-top: 28px; }
.hero .pitch { color: var(--muted); margin-top: 14px; max-width: 34em; }
.hero .art { border: 2px solid var(--line); background: var(--bar); }
.hero .art img { width: 100%; height: auto; }
.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 28px; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 26px; font-family: var(--display); font-size: 22px; letter-spacing: .1em; text-decoration: none; background: var(--amber); color: #2a1c10; box-shadow: 0 3px 0 var(--amber-2); }
.btn:hover { color: #2a1c10; background: #f0b25f; }
.btn.soon { background: var(--panel-2); color: var(--muted); box-shadow: 0 3px 0 #0c0a11; cursor: default; }
.cta .note { color: var(--muted); font-size: 14px; }

/* sections */
section { padding: 88px 0 0; }
section > .wrap > h2 { font-size: 36px; margin-bottom: 10px; }
section > .wrap > .lead { color: var(--muted); max-width: 44em; margin-bottom: 32px; }
.feats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.feat { background: var(--panel); border: 1px solid var(--line); padding: 22px; }
.feat .n { font-family: var(--display); color: var(--amber); font-size: 15px; letter-spacing: .14em; }
.feat h3 { font-size: 24px; margin: 4px 0 10px; }
.feat p { color: var(--muted); font-size: 15px; }
.stamp { display: inline-block; font-family: var(--display); color: var(--stamp); border: 3px solid currentColor; padding: 0 12px; transform: rotate(-4deg); letter-spacing: .14em; font-size: 20px; margin-top: 14px; }

.cities { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.city { background: var(--panel); border: 1px solid var(--line); display: flex; flex-direction: column; }
.city img { width: 100%; height: auto; border-bottom: 1px solid var(--line); }
.city .t { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 8px; }
.city h3 { font-size: 30px; }
.city p { color: var(--fg); font-size: 15px; }
.city dl { margin: 6px 0 0; display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; font-size: 14px; }
.city dt { color: var(--muted); }
.city dd { margin: 0; }

.cast { display: flex; flex-direction: column; gap: 28px; }
.cast h3 { font-size: 24px; margin-bottom: 12px; }
.girls { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.girl { background: var(--paper); color: var(--ink); padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.girl img { width: 128px; height: 144px; border: 2px solid #3b2a2b; align-self: center; }
.girl b { font-family: var(--display); font-weight: 400; font-size: 22px; letter-spacing: .06em; line-height: 1.2; }
.girl .lv { color: var(--amber-2); font-size: 13px; letter-spacing: .1em; }
.girl p { font-size: 13.5px; line-height: 1.55; color: var(--ink); }

.shots { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.shots img { width: 100%; height: auto; display: block; border: 1px solid var(--line); background: var(--bar); }

.buy { background: var(--paper); color: var(--ink); padding: 28px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px 32px; align-items: center; border-left: 6px solid var(--stamp); }
.buy h3 { color: var(--ink); font-size: 28px; }
.buy p { color: var(--ink-2); margin-top: 6px; }
.buy ul { margin: 10px 0 0; padding-left: 1.2em; color: var(--ink); }

/* support and privacy */
.page { padding: 56px 0 0; }
.page h1 { font-size: 48px; }
.page .lead { color: var(--muted); margin: 8px 0 32px; max-width: 44em; }
.cols { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 40px; align-items: start; }
.panel { background: var(--panel); border: 1px solid var(--line); padding: 22px 24px; }
.panel h3 { font-size: 22px; margin-bottom: 8px; }
.panel + .panel { margin-top: 20px; }
.faq { display: flex; flex-direction: column; gap: 22px; margin-top: 18px; }
.faq h3 { font-family: var(--body); font-weight: 600; font-size: 17px; letter-spacing: 0; color: var(--fg); }
.faq p { color: var(--muted); margin-top: 4px; }
.side ol { margin: 0; padding-left: 1.3em; color: var(--muted); }
.legal { max-width: 46em; }
.legal h2 { font-size: 36px; }
.legal h3 { font-family: var(--body); font-weight: 600; font-size: 17px; letter-spacing: 0; color: var(--fg); margin-top: 26px; }
.legal p, .legal li { color: var(--muted); }
.legal p { margin-top: 6px; }
.legal ul { margin: 6px 0 0; padding-left: 1.3em; }

footer { margin-top: 96px; background: var(--bar); border-top: 1px solid var(--line); }
footer .wrap { padding: 36px 24px 32px; display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; }
footer .links { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 26px; font-size: 15px; }
footer .copy { color: var(--muted); font-size: 13px; }

@media (max-width: 960px) {
  .hero .wrap, .cols { grid-template-columns: minmax(0, 1fr); }
  .hero .art { order: -1; }
  .feats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cities { grid-template-columns: minmax(0, 1fr); }
  .girls { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .shots { grid-template-columns: repeat(5, 62%); overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -24px; padding: 0 24px 8px; }
  .shots img { scroll-snap-align: center; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .top .wrap { gap: 14px; height: 56px; }
  .brand b { display: none; }
  .nav { gap: 16px; }
  .nav a { font-size: 14px; }
  .hero { padding-top: 24px; }
  .hero .wrap { gap: 24px; }
  .hero h1 { font-size: 44px; }
  .hero .sub { font-size: 15px; }
  section { padding-top: 64px; }
  section > .wrap > h2, .page h1, .legal h2 { font-size: 30px; }
  .feats { grid-template-columns: minmax(0, 1fr); }
  .girls { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .shots { grid-template-columns: repeat(5, 72%); margin: 0 -16px; padding: 0 16px 8px; }
  .buy { grid-template-columns: minmax(0, 1fr); padding: 22px; }
  .btn { width: 100%; }
}
