/* ============================================================
   Indulgence Studio — shared stylesheet
   A self-contained, dependency-free design system.
   Theme: warm, indulgent, tasteful. Fictional fantasy content.
   ============================================================ */

:root {
  /* Palette */
  --bg:        #170d13;
  --bg-alt:    #1f121b;
  --surface:   #2a1824;
  --surface-2: #361f2e;
  --border:    rgba(240, 201, 135, 0.16);
  --border-strong: rgba(240, 201, 135, 0.34);

  --text:      #f4e8df;
  --muted:     #c7a99e;
  --faint:     #9b8077;

  --gold:      #f0c987;
  --gold-deep: #d8a857;
  --rose:      #e08aa0;
  --rose-deep: #c25f7a;
  --plum:      #8a5a86;
  --good:      #8fd19a;
  --warn:      #e8b86d;
  --bad:       #e08a8a;

  /* Type */
  --font-display: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* Shape */
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 18px 50px -20px rgba(0, 0, 0, 0.7);
  --maxw: 1080px;
}

/* ---------- Reset-ish ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  background:
    radial-gradient(1200px 700px at 80% -10%, rgba(138, 90, 134, 0.18), transparent 60%),
    radial-gradient(900px 600px at -10% 10%, rgba(216, 168, 87, 0.10), transparent 55%),
    var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

img { max-width: 100%; display: block; }
a { color: var(--gold); text-decoration: none; transition: color .18s ease; }
a:hover { color: var(--rose); }

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.15; margin: 0 0 .5em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.5rem, 3.2vw, 2.2rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1rem; }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: .28em;
  font-size: .72rem;
  font-weight: 700;
  color: var(--gold-deep);
  font-family: var(--font-body);
  margin: 0 0 .9rem;
}

.lead { font-size: 1.15rem; color: var(--muted); max-width: 60ch; }
.muted { color: var(--muted); }
.center { text-align: center; }

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }
section { padding: 64px 0; }
.section-sm { padding: 40px 0; }

.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 820px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
}

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(23, 13, 19, 0.78);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 14px 0;
}
.brand { display: flex; align-items: center; gap: 11px; font-family: var(--font-display); font-weight: 700; font-size: 1.18rem; color: var(--text); }
.brand:hover { color: var(--text); }
.brand .mark {
  width: 34px; height: 34px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, var(--gold), var(--rose-deep));
  display: grid; place-items: center; color: #2a1824; font-weight: 800; font-size: 1rem;
  box-shadow: 0 0 0 1px var(--border-strong), inset 0 -3px 8px rgba(0,0,0,.25);
}
.brand small { display:block; font-family: var(--font-body); font-weight: 500; font-size:.62rem; letter-spacing:.22em; text-transform:uppercase; color: var(--faint); }

.nav-links { display: flex; align-items: center; gap: 6px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  color: var(--muted); padding: 8px 13px; border-radius: 8px; font-size: .92rem; font-weight: 500;
}
.nav-links a:hover { color: var(--text); background: var(--surface); }
.nav-links a.active { color: var(--gold); }
.nav-links .badge18 {
  margin-left: 4px; font-size: .68rem; font-weight: 700; color: var(--rose);
  border: 1px solid var(--border-strong); border-radius: 999px; padding: 3px 9px;
}

.nav-toggle { display: none; background: none; border: 1px solid var(--border); color: var(--text);
  border-radius: 8px; padding: 7px 10px; cursor: pointer; font-size: 1.1rem; }

@media (max-width: 780px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; top: 100%; right: 0; left: 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: var(--bg-alt); border-bottom: 1px solid var(--border);
    padding: 10px 22px 18px; display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 11px 12px; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-body); font-weight: 600; font-size: .95rem;
  padding: 12px 22px; border-radius: 999px; cursor: pointer;
  border: 1px solid transparent; transition: transform .12s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
  text-align: center; line-height: 1.1;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: linear-gradient(135deg, var(--gold), var(--rose-deep));
  color: #25131e; box-shadow: 0 10px 28px -10px rgba(224, 138, 160, .55);
}
.btn-primary:hover { color: #25131e; box-shadow: 0 14px 34px -10px rgba(224, 138, 160, .7); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border-strong); }
.btn-ghost:hover { background: var(--surface); color: var(--text); }
.btn-block { width: 100%; justify-content: center; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.btn-sm { padding: 8px 15px; font-size: .85rem; }

/* ---------- Cards ---------- */
.card {
  background: linear-gradient(180deg, var(--surface), var(--bg-alt));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
}
.card h3 { color: var(--text); }
.card-hover { transition: transform .18s ease, border-color .18s ease; }
.card-hover:hover { transform: translateY(-4px); border-color: var(--border-strong); }

.tag {
  display: inline-block; font-size: .72rem; font-weight: 600; letter-spacing: .04em;
  color: var(--gold); background: rgba(240, 201, 135, .08);
  border: 1px solid var(--border); border-radius: 999px; padding: 4px 11px; margin: 0 6px 6px 0;
}

/* ---------- Hero ---------- */
.hero { padding: 86px 0 56px; position: relative; }
.hero .lead { margin-bottom: 26px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-orbs { position: absolute; inset: 0; overflow: hidden; z-index: -1; pointer-events: none; }

/* ---------- Pills / feature list ---------- */
.feature { display: flex; gap: 14px; align-items: flex-start; }
.feature .ico {
  flex: 0 0 auto; width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center;
  font-size: 1.3rem; background: var(--surface-2); border: 1px solid var(--border);
}
.feature h3 { margin-bottom: .25em; font-size: 1.08rem; }
.feature p { margin: 0; color: var(--muted); font-size: .95rem; }

/* ---------- Disclaimer banner ---------- */
.disclaimer {
  border: 1px solid var(--border-strong);
  background: rgba(224, 138, 160, .07);
  border-radius: var(--radius-sm);
  padding: 16px 18px; font-size: .9rem; color: var(--muted);
}
.disclaimer strong { color: var(--rose); }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg-alt);
  margin-top: 40px;
  padding: 46px 0 30px;
  color: var(--muted);
  font-size: .9rem;
}
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 30px; }
@media (max-width: 780px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 { font-family: var(--font-body); text-transform: uppercase; letter-spacing: .16em;
  font-size: .72rem; color: var(--faint); margin-bottom: 12px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 7px; }
.footer-bottom { margin-top: 30px; padding-top: 18px; border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; font-size: .82rem; color: var(--faint); }

/* ============================================================
   Age gate
   ============================================================ */
.agegate {
  position: fixed; inset: 0; z-index: 1000;
  background: radial-gradient(900px 600px at 50% 0%, rgba(138,90,134,.25), transparent 60%), rgba(12, 7, 10, .96);
  backdrop-filter: blur(6px);
  display: grid; place-items: center; padding: 22px;
}
.agegate[hidden] { display: none; }
body.gate-locked { overflow: hidden; }
.agegate-card {
  max-width: 540px; width: 100%;
  background: linear-gradient(180deg, var(--surface), var(--bg-alt));
  border: 1px solid var(--border-strong);
  border-radius: 18px; padding: 38px 34px; text-align: center;
  box-shadow: var(--shadow);
  animation: pop .28s ease;
}
@keyframes pop { from { transform: scale(.96); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.agegate-card .mark { width: 54px; height: 54px; margin: 0 auto 16px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, var(--gold), var(--rose-deep)); display: grid; place-items: center;
  color: #25131e; font-weight: 800; font-size: 1.4rem; }
.agegate-card h2 { font-size: 1.7rem; }
.agegate-card p { color: var(--muted); font-size: .96rem; }
.agegate-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 22px; }
.agegate-fine { font-size: .78rem; color: var(--faint); margin-top: 18px; line-height: 1.5; }
.agegate-deny { display: none; margin-top: 20px; color: var(--bad); font-size: .95rem; }

/* ============================================================
   Commission specifics
   ============================================================ */
.tier { display: flex; flex-direction: column; height: 100%; }
.tier .price { font-family: var(--font-display); font-size: 2.1rem; color: var(--gold); margin: 6px 0 2px; }
.tier .price small { font-size: .85rem; color: var(--faint); font-family: var(--font-body); }
.tier ul { list-style: none; padding: 0; margin: 16px 0 22px; flex: 1; }
.tier li { padding: 7px 0 7px 26px; position: relative; border-bottom: 1px dashed var(--border); font-size: .92rem; }
.tier li:last-child { border-bottom: 0; }
.tier li::before { content: "✦"; position: absolute; left: 0; color: var(--gold-deep); }
.tier.featured { border-color: var(--border-strong); position: relative; }
.tier.featured::after {
  content: "Most popular"; position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(135deg, var(--gold), var(--rose-deep)); color: #25131e;
  font-size: .68rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  padding: 4px 12px; border-radius: 999px; white-space: nowrap;
}

.status-pill { display:inline-flex; align-items:center; gap:8px; font-size:.85rem; font-weight:600;
  border-radius:999px; padding:6px 14px; border:1px solid var(--border-strong); }
.status-open { color: var(--good); }
.status-open .dot { background: var(--good); }
.status-closed { color: var(--bad); }
.status-closed .dot { background: var(--bad); }
.dot { width:9px; height:9px; border-radius:50%; box-shadow: 0 0 8px currentColor; }

/* Forms */
.field { margin-bottom: 16px; text-align: left; }
.field label { display:block; font-size:.82rem; font-weight:600; letter-spacing:.04em; color: var(--muted); margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; background: var(--bg); border: 1px solid var(--border); color: var(--text);
  border-radius: 10px; padding: 11px 13px; font: inherit; font-size: .95rem;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--gold-deep); box-shadow: 0 0 0 3px rgba(216,168,87,.16);
}
.field textarea { resize: vertical; min-height: 120px; }
.checkline { display:flex; gap:10px; align-items:flex-start; font-size:.9rem; color: var(--muted); }
.checkline input { width: auto; margin-top: 4px; }
.form-note { font-size:.82rem; color: var(--faint); margin-top: 6px; }

/* Steps */
.steps { counter-reset: step; display: grid; gap: 18px; }
.step { display:flex; gap:16px; align-items:flex-start; }
.step .num { counter-increment: step; flex:0 0 auto; width:38px; height:38px; border-radius:50%;
  display:grid; place-items:center; font-family: var(--font-display); font-weight:700; color: var(--gold);
  border:1px solid var(--border-strong); background: var(--surface); }
.step .num::before { content: counter(step); }

/* FAQ */
details.faq { border:1px solid var(--border); border-radius: var(--radius-sm); margin-bottom: 12px;
  background: var(--surface); overflow:hidden; }
details.faq summary { cursor:pointer; padding: 16px 18px; font-weight:600; list-style:none; display:flex;
  justify-content:space-between; align-items:center; gap: 12px; }
details.faq summary::-webkit-details-marker { display:none; }
details.faq summary::after { content:"+"; color: var(--gold); font-size:1.3rem; line-height:1; }
details.faq[open] summary::after { content:"–"; }
details.faq .faq-body { padding: 0 18px 16px; color: var(--muted); font-size:.94rem; }

/* ============================================================
   WG Simulator
   ============================================================ */
.sim-layout { display: grid; grid-template-columns: 1fr 1.1fr; gap: 26px; align-items: start; }
@media (max-width: 900px) { .sim-layout { grid-template-columns: 1fr; } }

.sim-stage {
  position: sticky; top: 86px;
  background: radial-gradient(420px 320px at 50% 25%, rgba(138,90,134,.22), transparent 70%), var(--bg-alt);
  border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; text-align: center;
}
@media (max-width: 900px) { .sim-stage { position: static; } }
.sim-figure { width: 100%; max-width: 320px; margin: 0 auto; overflow: visible; }
/* SVG part transforms scale from sensible origins, smoothly */
#figure-body { transform-box: fill-box; transform-origin: 50% 100%; transition: transform .5s cubic-bezier(.22,.61,.36,1); }
#figure-head { transform-box: fill-box; transform-origin: 50% 70%; transition: transform .5s cubic-bezier(.22,.61,.36,1); }
#cheekL, #cheekR { transform-box: fill-box; transform-origin: 50% 50%; transition: transform .5s cubic-bezier(.22,.61,.36,1); }
#smile { transition: d .4s ease; }
.sim-name { font-family: var(--font-display); font-size: 1.5rem; margin: 8px 0 2px; }
.sim-tier { color: var(--gold); font-weight: 600; font-size: .95rem; }
.sim-desc { color: var(--muted); font-size: .9rem; min-height: 3.2em; margin-top: 8px; }

.stat { margin-bottom: 12px; text-align: left; }
.stat-top { display:flex; justify-content: space-between; font-size:.82rem; margin-bottom: 5px; }
.stat-top .label { color: var(--muted); font-weight:600; letter-spacing:.03em; }
.stat-top .val { color: var(--text); font-variant-numeric: tabular-nums; }
.bar { height: 11px; border-radius: 999px; background: var(--bg); overflow: hidden; border:1px solid var(--border); }
.bar > span { display:block; height:100%; border-radius:999px; transition: width .45s cubic-bezier(.22,.61,.36,1); }
.bar.fullness > span { background: linear-gradient(90deg, var(--gold-deep), var(--gold)); }
.bar.happiness > span { background: linear-gradient(90deg, var(--rose-deep), var(--rose)); }
.bar.energy > span { background: linear-gradient(90deg, #6fae7e, var(--good)); }

.readout { display:grid; grid-template-columns: repeat(3,1fr); gap: 10px; margin: 14px 0; }
.readout .box { background: var(--surface); border:1px solid var(--border); border-radius: 10px; padding: 10px; text-align:center; }
.readout .box .n { font-family: var(--font-display); font-size: 1.5rem; color: var(--gold); line-height:1.1; }
.readout .box .k { font-size: .68rem; letter-spacing:.12em; text-transform:uppercase; color: var(--faint); }

.food-grid { display:grid; grid-template-columns: repeat(2,1fr); gap: 10px; }
@media (max-width: 460px){ .food-grid { grid-template-columns: 1fr; } }
.food {
  display:flex; gap:12px; align-items:center; text-align:left; cursor:pointer;
  background: var(--surface); border:1px solid var(--border); border-radius: 11px; padding: 11px 13px;
  color: var(--text); font: inherit; transition: border-color .15s ease, transform .1s ease, background .15s ease;
}
.food:hover:not([disabled]) { border-color: var(--border-strong); transform: translateY(-2px); }
.food:active:not([disabled]) { transform: translateY(0); }
.food[disabled] { opacity: .4; cursor: not-allowed; }
.food .emoji { font-size: 1.6rem; }
.food .meta { display:flex; flex-direction:column; }
.food .meta .fname { font-weight:600; font-size:.95rem; }
.food .meta .fstat { font-size:.74rem; color: var(--faint); }

.sim-actions { display:flex; gap:10px; flex-wrap:wrap; margin: 18px 0; }
.sim-log { background: var(--bg); border:1px solid var(--border); border-radius: 10px; padding: 12px 14px;
  height: 150px; overflow-y:auto; font-size:.86rem; color: var(--muted); }
.sim-log p { margin: 0 0 6px; }
.sim-log .t { color: var(--gold-deep); font-weight:600; }
.sim-log .flash { color: var(--rose); }

.toolbar { display:flex; justify-content: space-between; align-items:center; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.toolbar .day { font-family: var(--font-display); font-size: 1.3rem; }

.toast {
  position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%) translateY(20px);
  background: var(--surface-2); border:1px solid var(--border-strong); color: var(--text);
  padding: 12px 20px; border-radius: 999px; box-shadow: var(--shadow); font-size: .92rem;
  opacity: 0; pointer-events: none; transition: opacity .25s ease, transform .25s ease; z-index: 80;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- Utilities ---------- */
.divider { height:1px; background: var(--border); border:0; margin: 40px 0; }
.stack > * + * { margin-top: 14px; }
.flex { display:flex; gap: 12px; align-items:center; flex-wrap: wrap; }
.spacer { flex: 1; }
.pill-row { display:flex; flex-wrap:wrap; gap: 8px; }
.text-gold { color: var(--gold); }
.small { font-size: .85rem; }
.hidden { display: none !important; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
