/* ==========================================================================
   SINDER — light "embers & chat" theme
   Adult dating-sim promo site. Unique per-game design: warm cream canvas,
   ember-coral accents, chat-bubble motifs. Responsive 768px / 480px.
   ========================================================================== */

:root {
  --bg: #fdf9f3;
  --surface: #ffffff;
  --ink: #3b2b26;
  --muted: #8a7669;
  --ember: #e2543d;
  --ember-dark: #c03a26;
  --amber: #f2a65a;
  --gold: #f4c95d;
  --line: #f1e3d6;
  --soft: #fbf0e4;
  --shadow: 0 10px 30px rgba(89, 51, 32, 0.10);
  --shadow-sm: 0 4px 14px rgba(89, 51, 32, 0.08);
  --radius: 18px;
  --radius-sm: 10px;
  --font: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, "Noto Sans JP", "Hiragino Kaku Gothic ProN", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.02rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--bg);
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--ember-dark); text-decoration: none; }

.container {
  width: min(1120px, 92%);
  margin: 0 auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(253, 249, 243, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: 0.02em;
  color: var(--ink);
}

.brand-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  object-fit: cover;
}

.brand-name em {
  font-style: normal;
  color: var(--ember);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 18px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-link {
  display: block;
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--ink);
  font-weight: 600;
  font-size: 0.95rem;
}

.nav-link:hover,
.nav-link.active {
  background: var(--soft);
  color: var(--ember-dark);
}

.btn-play {
  display: inline-block;
  padding: 10px 22px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--ember), var(--ember-dark));
  color: #fff;
  font-weight: 700;
  font-size: 0.98rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-play:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.nav-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  padding: 8px;
  cursor: pointer;
}

.nav-btn span {
  display: block;
  width: 24px;
  height: 3px;
  border-radius: 3px;
  background: var(--ink);
}

/* ---------- Buttons ---------- */

.btn-primary {
  display: inline-block;
  padding: 14px 34px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--ember), var(--ember-dark));
  color: #fff;
  font-weight: 700;
  font-size: 1.05rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.btn-ghost {
  display: inline-block;
  padding: 13px 30px;
  border-radius: 999px;
  border: 2px solid var(--ember);
  color: var(--ember-dark);
  font-weight: 700;
  font-size: 1.02rem;
  transition: background 0.15s ease, color 0.15s ease;
}

.btn-ghost:hover {
  background: var(--ember);
  color: #fff;
}

/* ---------- Hero (index) ---------- */

.hero {
  padding: 64px 0 56px;
  background:
    radial-gradient(900px 420px at 85% -10%, rgba(244, 201, 93, 0.28), transparent 60%),
    radial-gradient(700px 380px at -5% 20%, rgba(226, 84, 61, 0.14), transparent 55%),
    var(--bg);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}

.hero-copy { min-width: 0; }

.hero-eyebrow {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--soft);
  border: 1px solid var(--line);
  color: var(--ember-dark);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.hero-title {
  font-size: clamp(2.1rem, 4.2vw, 3.2rem);
  line-height: 1.12;
  margin: 0 0 16px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.hero-title em {
  font-style: normal;
  background: linear-gradient(120deg, var(--ember), var(--amber));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-tagline {
  font-size: 1.15rem;
  color: var(--muted);
  margin: 0 0 22px;
  max-width: 34em;
}

.hero-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 26px;
}

.chip {
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 600;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.hero-media { min-width: 0; position: relative; }

.hero-shot {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}

.chat-card {
  position: absolute;
  left: -26px;
  bottom: 24px;
  width: min(300px, 72%);
  background: var(--surface);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  padding: 14px 16px;
}

.chat-bubble {
  background: var(--soft);
  border-radius: 14px 14px 14px 4px;
  padding: 8px 12px;
  font-size: 0.88rem;
  margin: 0 0 8px;
  display: inline-block;
  max-width: 92%;
}

.chat-bubble.alt {
  background: linear-gradient(135deg, var(--ember), var(--ember-dark));
  color: #fff;
  border-radius: 14px 14px 4px 14px;
  float: right;
}

.chat-meta {
  clear: both;
  margin: 6px 0 0;
  font-size: 0.78rem;
  color: var(--muted);
  text-align: right;
}

/* ---------- Sections ---------- */

.section { padding: 56px 0; }

.section-alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.section-divider { padding-top: 8px; }

.section-head {
  max-width: 680px;
  margin: 0 auto 36px;
  text-align: center;
}

.section-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin: 0 0 10px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.section-sub {
  color: var(--muted);
  margin: 0;
  font-size: 1.05rem;
}

/* ---------- Facts bar ---------- */

.facts-bar {
  padding: 0 0 56px;
}

.facts-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 18px;
  box-shadow: var(--shadow-sm);
}

.fact { text-align: center; }

.fact-label {
  display: block;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--muted);
  margin-bottom: 4px;
}

.fact-value {
  display: block;
  font-weight: 800;
  font-size: 1.02rem;
}

/* ---------- Feature cards ---------- */

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 22px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.card-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  background: var(--soft);
  margin-bottom: 14px;
}

.card-title {
  margin: 0 0 8px;
  font-size: 1.12rem;
  font-weight: 800;
}

.card-text { margin: 0; color: var(--muted); font-size: 0.97rem; }

/* ---------- Gallery ---------- */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.gallery-item {
  position: relative;
  display: block;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--line);
  cursor: zoom-in;
  box-shadow: var(--shadow-sm);
}

.gallery-item img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform 0.25s ease;
}

.gallery-item:hover img { transform: scale(1.04); }

.gallery-cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 22px 12px 8px;
  background: linear-gradient(transparent, rgba(40, 22, 14, 0.78));
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
}

/* ---------- Lightbox ---------- */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(30, 16, 9, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 30px;
}

.lightbox.open { display: flex; }

.lightbox-inner {
  position: relative;
  max-width: min(960px, 100%);
  text-align: center;
}

#lightboxImage {
  max-width: 100%;
  max-height: 82vh;
  margin: 0 auto;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
}

.lb-close,
.lb-prev,
.lb-next {
  position: absolute;
  background: rgba(255, 255, 255, 0.14);
  border: 0;
  color: #fff;
  font-size: 1.6rem;
  line-height: 1;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.15s ease;
}

.lb-close:hover,
.lb-prev:hover,
.lb-next:hover { background: rgba(255, 255, 255, 0.3); }

.lb-close { top: -14px; right: -14px; }

.lb-prev { left: -66px; top: 50%; transform: translateY(-50%); }

.lb-next { right: -66px; top: 50%; transform: translateY(-50%); }

.lb-caption {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.92rem;
  margin: 12px 0 0;
}

/* ---------- Quotes ---------- */

.quotes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.quote {
  background: var(--soft);
  border-radius: var(--radius);
  padding: 24px 22px;
  border: 1px solid var(--line);
}

.quote-text {
  margin: 0 0 12px;
  font-size: 0.98rem;
  font-style: italic;
}

.quote-author {
  font-style: normal;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--ember-dark);
}

/* ---------- Play banner ---------- */

.play-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  background: linear-gradient(120deg, var(--ember), #d9713d 60%, var(--amber));
  border-radius: var(--radius);
  padding: 34px 38px;
  color: #fff;
  box-shadow: var(--shadow);
}

.play-banner-title {
  margin: 0 0 6px;
  font-size: 1.5rem;
  font-weight: 800;
}

.play-banner-text { margin: 0; opacity: 0.95; }

.play-banner .btn-primary {
  background: #fff;
  color: var(--ember-dark);
  white-space: nowrap;
}

/* ---------- Sub-page hero ---------- */

.page-hero {
  padding: 52px 0 40px;
  background:
    radial-gradient(700px 300px at 90% -20%, rgba(244, 201, 93, 0.25), transparent 60%),
    var(--bg);
  border-bottom: 1px solid var(--line);
}

.page-hero-inner { max-width: 820px; }

.page-eyebrow {
  display: inline-block;
  padding: 5px 13px;
  border-radius: 999px;
  background: var(--soft);
  border: 1px solid var(--line);
  color: var(--ember-dark);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.page-title {
  font-size: clamp(1.9rem, 3.4vw, 2.7rem);
  margin: 0 0 14px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.page-lede {
  margin: 0;
  font-size: 1.12rem;
  color: var(--muted);
  max-width: 40em;
}

/* ---------- Article prose ---------- */

.article { max-width: 760px; margin: 0 auto 40px; }

.article-center {
  max-width: 760px;
  margin: 0 auto 40px;
}

.article h2 {
  font-size: 1.4rem;
  margin: 34px 0 12px;
  font-weight: 800;
}

.article h3 {
  font-size: 1.15rem;
  margin: 26px 0 10px;
  font-weight: 800;
}

.article p { margin: 0 0 16px; }

.article ul,
.article ol { margin: 0 0 18px; padding-left: 22px; }

.article li { margin-bottom: 8px; }

.content-img {
  margin: 26px auto;
  max-width: 720px;
}

.content-img img {
  width: 100%;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.content-img figcaption {
  font-size: 0.86rem;
  color: var(--muted);
  text-align: center;
  margin-top: 8px;
}

/* ---------- Character cards ---------- */

.character-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.character-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 22px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.character-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.character-avatar {
  width: 86px;
  height: 86px;
  border-radius: 50%;
  margin: 0 auto 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 800;
  color: #fff;
  border: 4px solid var(--soft);
}

.avatar-grad-1 { background: linear-gradient(135deg, #e2543d, #f2a65a); }
.avatar-grad-2 { background: linear-gradient(135deg, #c03a26, #e2543d); }
.avatar-grad-3 { background: linear-gradient(135deg, #d9713d, #f4c95d); }
.avatar-grad-4 { background: linear-gradient(135deg, #a32f2f, #e2543d); }
.avatar-grad-5 { background: linear-gradient(135deg, #f2a65a, #e2543d); }
.avatar-grad-6 { background: linear-gradient(135deg, #b0452f, #f2a65a); }

.character-name {
  margin: 0 0 4px;
  font-size: 1.15rem;
  font-weight: 800;
}

.character-tag {
  display: inline-block;
  padding: 3px 12px;
  border-radius: 999px;
  background: var(--soft);
  color: var(--ember-dark);
  font-size: 0.78rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.character-desc { margin: 0; color: var(--muted); font-size: 0.95rem; }

/* ---------- Guide tips ---------- */

.tip-list {
  list-style: none;
  padding: 0;
  margin: 0 0 18px;
}

.tip {
  display: flex;
  gap: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  margin-bottom: 12px;
  box-shadow: var(--shadow-sm);
}

.tip-num {
  flex: 0 0 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--ember), var(--ember-dark));
  color: #fff;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tip-title {
  margin: 0 0 4px;
  font-weight: 800;
  font-size: 1.02rem;
}

.tip-text { margin: 0; color: var(--muted); font-size: 0.96rem; }

/* ---------- FAQ ---------- */

.faq-list { max-width: 780px; margin: 0 auto 20px; }

.faq-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.faq-q {
  display: block;
  width: 100%;
  text-align: left;
  background: none;
  border: 0;
  padding: 16px 20px;
  font: inherit;
  font-weight: 700;
  font-size: 1.02rem;
  color: var(--ink);
  cursor: pointer;
}

.faq-q::after {
  content: "+";
  float: right;
  font-size: 1.3rem;
  color: var(--ember);
  font-weight: 700;
}

.faq-item[open] .faq-q::after { content: "–"; }

.faq-a {
  padding: 0 20px 16px;
  color: var(--muted);
}

.faq-a p { margin: 0 0 10px; }

.faq-a p:last-child { margin-bottom: 0; }

/* ---------- Table ---------- */

.sysreq {
  max-width: 780px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.sysreq-table {
  width: 100%;
  border-collapse: collapse;
}

.faq-sysreq { margin-top: 0; }

.sysreq table {
  width: 100%;
  border-collapse: collapse;
}

.sysreq caption { padding: 12px; font-weight: 800; text-align: center; }

.sysreq th,
.sysreq td {
  padding: 12px 16px;
  text-align: left;
  border-top: 1px solid var(--line);
  font-size: 0.95rem;
}

.sysreq th {
  background: var(--soft);
  font-weight: 700;
  width: 40%;
}

/* ---------- Ghost ending ---------- */

.ghost-wrap {
  text-align: center;
  margin: 40px 0 8px;
}

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--surface);
  padding: 26px 0 30px;
  margin-top: 40px;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.footer-copy {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.lang-switch {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.lang-link {
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--ink);
  font-size: 0.85rem;
  font-weight: 600;
}

.lang-link:hover { border-color: var(--ember); color: var(--ember-dark); }

.lang-switch a.active,
.lang-switch .lang-link.active {
  background: linear-gradient(135deg, var(--ember), var(--ember-dark));
  border-color: transparent;
  color: #fff;
}

/* ---------- Responsive: 768px ---------- */

@media (max-width: 768px) {
  .hero-inner { grid-template-columns: 1fr; gap: 30px; }
  .hero { padding: 44px 0 40px; }
  .chat-card { position: static; margin: -46px auto 0; width: 78%; }
  .facts-grid { grid-template-columns: repeat(3, 1fr); row-gap: 18px; }
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .quotes-grid { grid-template-columns: 1fr; }
  .character-grid { grid-template-columns: repeat(2, 1fr); }

  .nav-btn { display: flex; }
  .site-nav { position: absolute; top: 100%; left: 0; right: 0; }
  .nav-links {
    display: none;
    flex-direction: column;
    align-items: stretch;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    padding: 10px 4vw 16px;
    gap: 2px;
  }
  .site-nav.open .nav-links { display: flex; }
  .nav-link { padding: 12px 14px; }
  .btn-play { margin: 12px 4vw 0; align-self: flex-start; }
  .site-nav.open .btn-play { display: inline-block; }
  .site-nav .btn-play { display: none; }

  .lb-prev { left: 0; top: auto; bottom: -66px; transform: none; }
  .lb-next { right: 0; top: auto; bottom: -66px; transform: none; }
  .lb-close { top: -8px; right: -8px; }
  .lightbox { padding: 20px; }
}

/* ---------- Responsive: 480px ---------- */

@media (max-width: 480px) {
  body { font-size: 1rem; }
  .brand-name { font-size: 1.15rem; }
  .brand-icon { width: 34px; height: 34px; }
  .facts-grid { grid-template-columns: repeat(2, 1fr); }
  .cards-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
  .character-grid { grid-template-columns: 1fr; }
  .section { padding: 42px 0; }
  .play-banner { padding: 26px 22px; }
  .play-banner .btn-primary { width: 100%; text-align: center; }
  .hero-cta .btn-primary,
  .hero-cta .btn-ghost { width: 100%; text-align: center; }
  .chat-card { width: 92%; }
  .footer-inner { justify-content: center; text-align: center; }
}
