/* DUNGEON MASTER: THE HUNT — landing page styles.
   Dark dungeon aesthetic. Black + deep red + neon pink accents. Text+emoji first. */

:root {
  --bg:            #0a0608;
  --bg-panel:     #17101a;
  --bg-elev:      #22182c;
  --border:        #3a2a4a;
  --text:          #eee2f2;
  --text-dim:      #a791b0;
  --accent:        #ff3c86;         /* hot pink */
  --accent-dim:    #a71a4e;
  --danger:        #e14b3f;
  --ok:            #53d68a;
  --warn:          #ffb84a;
  --radius:        12px;
  --shadow:        0 8px 32px rgba(0,0,0,0.6);
  --mono:          ui-monospace, SFMono-Regular, Menlo, monospace;
  --sans:          -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
html, body {
  margin: 0; padding: 0;
  background: radial-gradient(ellipse at top, #1a0a14, var(--bg) 70%);
  color: var(--text);
  font-family: var(--sans);
  min-height: 100vh;
}

body { overflow-x: hidden; }

/* Hero */
.hero {
  padding: 60px 24px 24px;
  text-align: center;
  border-bottom: 1px solid var(--border);
  position: relative;
}
.hero h1 {
  font-family: var(--mono);
  font-size: clamp(2rem, 6vw, 4rem);
  letter-spacing: 0.08em;
  margin: 0 0 8px;
  color: var(--accent);
  text-shadow: 0 0 16px rgba(255, 60, 134, 0.35);
}
.hero .tag {
  color: var(--text-dim);
  font-style: italic;
  font-size: clamp(0.9rem, 2vw, 1.1rem);
  margin: 0;
}
.hero .version {
  position: absolute; top: 12px; right: 16px;
  font-family: var(--mono); font-size: 0.75rem;
  color: var(--text-dim);
}

/* Layout */
.container {
  max-width: 980px; margin: 0 auto;
  padding: 24px;
  display: grid; gap: 24px;
}

.card {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  box-shadow: var(--shadow);
}
.card h2 {
  margin: 0 0 12px;
  font-family: var(--mono);
  font-size: 1.1rem;
  letter-spacing: 0.05em;
  color: var(--accent);
}
.card h3 { margin: 16px 0 10px; font-size: 1rem; color: var(--text); }

/* Status pills */
.status-row { margin: 6px 0; }
.pill {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-family: var(--mono);
  border: 1px solid var(--border);
  background: var(--bg-elev);
}
.pill-ok  { border-color: var(--ok);     color: var(--ok); }
.pill-bad { border-color: var(--danger); color: var(--danger); }

/* Small text */
.small { font-size: 0.85rem; color: var(--text-dim); margin: 4px 0; }
.muted { opacity: 0.7; }

/* Code blocks */
.code-block {
  background: #000;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 12px;
  color: #8ee4ff;
  font-family: var(--mono);
  font-size: 0.85rem;
  margin: 6px 0;
  overflow-x: auto;
  white-space: pre-wrap;
  word-break: break-all;
}

/* Step cards */
.step-card {
  background: var(--bg-elev);
  border-left: 3px solid var(--accent);
  border-radius: 6px;
  padding: 10px 14px;
  margin: 10px 0;
}
.step-label { font-weight: 600; margin-bottom: 4px; }
.step-note  { color: var(--text-dim); font-size: 0.82rem; margin-top: 4px; }

/* Buttons */
button {
  font-family: var(--sans);
  cursor: pointer;
  border: 1px solid var(--border);
  background: var(--bg-elev);
  color: var(--text);
  padding: 8px 14px;
  border-radius: 8px;
  transition: all 0.15s;
}
button:hover:not(:disabled) {
  background: var(--accent-dim);
  border-color: var(--accent);
}
button:disabled { opacity: 0.4; cursor: not-allowed; }

.btn-small { padding: 4px 10px; font-size: 0.82rem; margin: 2px 4px 2px 0; }
.btn-primary { background: var(--accent); border-color: var(--accent); color: #000; font-weight: 600; }
.btn-primary:hover:not(:disabled) { background: #ff5a9a; }
.btn-danger  { border-color: var(--danger); color: var(--danger); }
.btn-danger:hover:not(:disabled)  { background: var(--danger); color: #fff; }

/* Launch CTA */
.launch-row { text-align: center; margin: 24px 0; }
#launch-btn {
  padding: 18px 36px;
  font-size: 1.2rem;
  font-family: var(--mono);
  letter-spacing: 0.08em;
  background: var(--accent);
  border-color: var(--accent);
  color: #000;
  font-weight: 700;
  box-shadow: 0 4px 24px rgba(255, 60, 134, 0.4);
}
#launch-btn:disabled {
  background: var(--bg-elev);
  color: var(--text-dim);
  box-shadow: none;
  border-color: var(--border);
}

/* Model grid */
.model-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.model-card {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 14px;
}
.model-card.active { border-color: var(--accent); box-shadow: 0 0 12px rgba(255, 60, 134, 0.3); }
.model-name { font-weight: 600; margin-bottom: 4px; }
.model-meta {
  display: flex; gap: 8px; flex-wrap: wrap;
  font-size: 0.78rem; color: var(--text-dim); margin-bottom: 6px;
}
.tag-unc, .tag-ok { padding: 1px 6px; border-radius: 10px; font-family: var(--mono); }
.tag-unc { background: #3a1a22; color: var(--warn); }
.tag-ok  { background: #1a3a22; color: var(--ok); }
.model-notes { font-size: 0.82rem; color: var(--text-dim); margin-bottom: 8px; }

/* Progress bar */
.progress-bar {
  width: 100%;
  height: 8px;
  background: #000;
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
  margin: 6px 0;
}
.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), #ff80b4);
  transition: width 0.3s;
}

/* Fields */
.field {
  display: flex; align-items: center; gap: 12px; margin: 10px 0;
}
.field > span { min-width: 140px; color: var(--text-dim); font-size: 0.9rem; }
.text-input, input[type=text], input[type=password], input[type=number], select {
  flex: 1;
  background: #000;
  border: 1px solid var(--border);
  color: var(--text);
  padding: 8px 10px;
  border-radius: 6px;
  font-family: var(--mono);
  font-size: 0.88rem;
}
input:focus, select:focus { outline: none; border-color: var(--accent); }
.polly-row { display: flex; gap: 8px; align-items: center; }

/* Settings slide-out */
.settings-panel {
  position: fixed; top: 0; right: -420px;
  width: 400px; max-width: 90vw; height: 100vh;
  background: var(--bg-panel);
  border-left: 1px solid var(--border);
  box-shadow: var(--shadow);
  padding: 24px;
  overflow-y: auto;
  transition: right 0.25s;
  z-index: 100;
}
body.settings-open .settings-panel { right: 0; }
.settings-section {
  border-bottom: 1px solid var(--border);
  padding-bottom: 16px; margin-bottom: 16px;
}
.settings-section:last-child { border-bottom: none; }

/* Top-right settings button */
#open-settings-btn {
  position: fixed; top: 12px; left: 16px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  font-size: 1.1rem;
  padding: 6px 12px;
  z-index: 90;
}

/* Links */
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Footer */
footer {
  padding: 24px;
  text-align: center;
  color: var(--text-dim);
  font-size: 0.78rem;
  border-top: 1px solid var(--border);
  margin-top: 48px;
}

.btn-row { display: flex; gap: 8px; flex-wrap: wrap; }

/* ─────────────────────────────────────────────────────────────────
   Expanded landing-page presentation (home section beauty pass).
   ───────────────────────────────────────────────────────────────── */

/* Stats counter row */
.pitch-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  margin: 28px 0 14px;
  padding: 18px 20px;
  background: linear-gradient(135deg, rgba(255,60,134,0.08), rgba(120,30,90,0.06));
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.pitch-item {
  display: flex; flex-direction: column; gap: 4px;
  text-align: center;
}
.pitch-item b {
  font-family: var(--mono);
  font-size: 1.8rem;
  color: var(--accent);
  letter-spacing: 0.04em;
  text-shadow: 0 0 12px rgba(255,60,134,0.4);
}
.pitch-item span {
  font-size: 0.78rem;
  color: var(--text-dim);
  line-height: 1.35;
}

/* Section heading bar */
.section-h {
  font-family: var(--mono);
  font-size: 1.4rem;
  letter-spacing: 0.06em;
  margin: 36px 0 14px;
  padding: 8px 0 8px 14px;
  color: var(--accent);
  border-left: 4px solid var(--accent);
  background: linear-gradient(90deg, rgba(255,60,134,0.08), transparent);
}
.section-sub {
  margin: -8px 0 14px;
  color: var(--text-dim);
  font-size: 0.92rem;
  line-height: 1.5;
}

/* The Loop — game-loop visual */
.loop-flow {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin: 14px 0 28px;
}
.loop-step {
  position: relative;
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-top: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: 22px 18px 18px;
  transition: transform 0.18s, border-color 0.18s, box-shadow 0.18s;
}
.loop-step:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
  box-shadow: 0 8px 24px rgba(255,60,134,0.18);
}
.loop-step .num {
  position: absolute; top: -16px; left: 16px;
  width: 32px; height: 32px;
  background: var(--accent);
  color: #18001a;
  font-family: var(--mono);
  font-weight: 700;
  font-size: 1rem;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(255,60,134,0.5);
}
.loop-step h3 { margin: 6px 0 8px; font-size: 1.05rem; color: #ffd8e8; }
.loop-step p { margin: 0; font-size: 0.88rem; color: var(--text-dim); line-height: 1.5; }

/* Wider, richer feature cards */
.home-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
  margin: 14px 0 28px;
}
.home-feature {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
  transition: transform 0.15s, border-color 0.15s, box-shadow 0.15s;
}
.home-feature:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  box-shadow: 0 6px 20px rgba(255,60,134,0.15);
}
.home-feature h3 {
  margin: 0 0 8px;
  font-size: 1.02rem;
  color: #ffd8e8;
  letter-spacing: 0.01em;
}
.home-feature p {
  margin: 0;
  font-size: 0.86rem;
  color: var(--text-dim);
  line-height: 1.5;
}

/* Tier variant — premium / danger / setup accents on cards */
.home-feature.tier-premium { border-top: 3px solid #ffd166; }
.home-feature.tier-danger  { border-top: 3px solid var(--danger); }
.home-feature.tier-tech    { border-top: 3px solid #6ad1ff; }
.home-feature.tier-econ    { border-top: 3px solid var(--ok); }
.home-feature.tier-meta    { border-top: 3px solid #b48bff; }

/* In-game state-bar visual mockup for "Inside Her Room" */
.room-mock {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 14px 0 28px;
}
@media (max-width: 720px) { .room-mock { grid-template-columns: 1fr; } }
.room-mock .room-card {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
}
.room-mock h3 { margin: 0 0 12px; color: var(--accent); font-size: 1rem; }
.bar-row { display: flex; align-items: center; gap: 10px; margin: 6px 0; }
.bar-row .lbl { min-width: 90px; font-size: 0.82rem; color: var(--text-dim); }
.bar-row .bar { flex: 1; height: 8px; background: #000; border: 1px solid var(--border); border-radius: 4px; overflow: hidden; }
.bar-row .bar .fill { height: 100%; }
.fill.bond     { background: linear-gradient(90deg, var(--accent), #ff80b4); width: 65%; }
.fill.mood     { background: linear-gradient(90deg, var(--ok), #9fefb5); width: 45%; }
.fill.stamina  { background: linear-gradient(90deg, var(--warn), #ffd166); width: 72%; }
.fill.health   { background: linear-gradient(90deg, #6ad1ff, #aae8ff); width: 88%; }
.fill.arousal  { background: linear-gradient(90deg, #ff3c86, #ff80b4); width: 30%; }
.fill.coke     { background: linear-gradient(90deg, #b48bff, #d4b8ff); width: 55%; }
.bar-row .val { font-family: var(--mono); font-size: 0.78rem; color: var(--text); min-width: 38px; text-align: right; }

/* Privacy strip — special muted callout */
.privacy-strip {
  margin: 28px 0 14px;
  padding: 18px 20px;
  background: linear-gradient(135deg, rgba(83,214,138,0.06), rgba(40,80,55,0.04));
  border: 1px solid #2f5d3a;
  border-left: 4px solid var(--ok);
  border-radius: var(--radius);
}
.privacy-strip h3 { margin: 0 0 8px; color: var(--ok); font-size: 1.02rem; }
.privacy-strip p { margin: 0; font-size: 0.9rem; color: var(--text-dim); line-height: 1.55; }
.privacy-strip a { color: var(--ok); border-bottom: 1px dashed currentColor; }

/* Quick start */
.quickstart {
  counter-reset: qs;
  padding-left: 0;
  list-style: none;
  margin: 14px 0 28px;
}
.quickstart li {
  position: relative;
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 8px;
  padding: 14px 18px 14px 56px;
  margin: 10px 0;
  font-size: 0.92rem;
  color: var(--text);
  line-height: 1.5;
  counter-increment: qs;
}
.quickstart li::before {
  content: counter(qs);
  position: absolute;
  left: 14px; top: 50%; transform: translateY(-50%);
  width: 28px; height: 28px;
  background: var(--accent);
  color: #18001a;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-weight: 700; font-size: 0.95rem;
}

/* Closing line */
.closing {
  text-align: center;
  padding: 24px 12px;
  border-top: 1px solid var(--border);
  margin-top: 32px;
  font-size: 0.88rem;
}

/* Hero polish */
.home-hero h1 {
  font-family: var(--mono);
  font-size: clamp(2.4rem, 7vw, 4.2rem);
  letter-spacing: 0.06em;
  color: var(--accent);
  text-shadow: 0 0 24px rgba(255,60,134,0.4);
  margin: 0 0 14px;
}
.home-hero p.tag {
  font-style: italic;
  font-size: clamp(0.95rem, 2vw, 1.15rem);
  color: var(--text-dim);
  max-width: 740px;
  margin: 0 auto 20px;
  line-height: 1.55;
}
.home-cta-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin: 22px 0 8px; }
.home-cta-row button { font-size: 1.05rem; padding: 14px 28px; cursor: pointer; }
.home-cta-primary {
  background: linear-gradient(135deg, var(--accent), #ff5a9a);
  color: #1a0010;
  border: 1px solid var(--accent);
  border-radius: 8px;
  font-weight: 700;
  font-family: var(--mono);
  letter-spacing: 0.04em;
  box-shadow: 0 4px 16px rgba(255,60,134,0.4);
}
.home-cta-primary:hover:not(:disabled) { background: linear-gradient(135deg, #ff5a9a, #ffa0c8); }
.home-cta-secondary {
  background: var(--bg-elev);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: var(--mono);
  letter-spacing: 0.04em;
}
.home-cta-secondary:hover:not(:disabled) { background: var(--accent-dim); border-color: var(--accent); }
.home-cta-secondary:disabled { opacity: 0.4; cursor: not-allowed; }
