:root {
  --bg: #0d0a09; --card: #161210; --gold: #e8b86d; --text: #f8f4ef; --muted: #b8a99a; --border: rgba(232,184,109,0.2); --input-bg: #1a1512;
}
body.light { --bg: #f8f4ef; --card: #fff; --text: #1a1208; --muted: #6b5e52; --border: rgba(196,154,74,0.3); --input-bg: #f5f0e8; }
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; font-size: 18px; }
body { font-family: 'Outfit', system-ui, sans-serif; background: var(--bg); color: var(--text); transition: background 0.3s, color 0.3s; }
.app { max-width: 480px; margin: 0 auto; min-height: 100vh; position: relative; }
.screen { display: none; padding: 12px 16px 100px; min-height: 100vh; }
.screen.active { display: flex; flex-direction: column; }
.top-controls { display: flex; justify-content: flex-end; margin-bottom: 8px; }
.theme-btn { background: transparent; border: 1px solid var(--border); color: var(--gold); width: 42px; height: 42px; border-radius: 50%; cursor: pointer; font-size: 18px; }
.hero-image { position: relative; border-radius: 16px; overflow: hidden; margin-bottom: 12px; flex: 1; min-height: 0; }
.hero-image img { width: 100%; height: 100%; object-fit: cover; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.75), transparent 55%); display: flex; flex-direction: column; justify-content: flex-end; padding: 16px; text-align: center; }
.kicker { font-size: 13px; letter-spacing: 1.5px; color: var(--gold); font-weight: 600; margin-bottom: 4px; }
h1 { font-family: 'Fraunces', serif; font-size: clamp(32px, 9vw, 40px); margin: 2px 0 6px; }
.hero-overlay p { color: #e8e0d8; font-size: 16px; line-height: 1.4; }
.btn-gold { background: linear-gradient(90deg, #f5c27a, #e8a84a); color: #1a1208; border: none; padding: 18px; border-radius: 16px; font-size: 18px; font-weight: 700; cursor: pointer; width: 100%; }
.btn-gold.big { margin-bottom: 10px; padding: 20px; font-size: 19px; }
.btn-outline { background: transparent; border: 2px solid var(--gold); color: var(--gold); padding: 16px; border-radius: 16px; width: 100%; margin-top: 8px; cursor: pointer; font-size: 17px; font-weight: 600; }
.progress-dots { display: flex; gap: 6px; margin: 8px 0 12px; }
.progress-dots span { height: 5px; flex: 1; background: #333; border-radius: 4px; }
body.light .progress-dots span { background: #ddd; }
.progress-dots span.on { background: linear-gradient(90deg, #e23d3d, #f5c27a); }
h2 { font-family: 'Fraunces', serif; font-size: clamp(26px, 7vw, 32px); margin-bottom: 8px; }
.sub { color: var(--muted); margin-bottom: 14px; font-size: 16px; }
input, select { width: 100%; background: var(--input-bg); border: 2px solid var(--border); border-radius: 16px; padding: 18px; color: var(--text); font-size: 20px; font-weight: 600; text-align: center; margin-bottom: 12px; }
.result-hero { text-align: center; padding: 8px 0 12px; }
.big-number { font-family: 'Fraunces', serif; font-size: clamp(56px, 14vw, 72px); color: var(--gold); }
.time { font-size: 18px; margin-top: 4px; }
.progress-bar-wrap { margin: 12px 0 16px; }
.progress-label { font-size: 16px; color: var(--muted); margin-bottom: 8px; }
.progress-bar { height: 10px; background: #333; border-radius: 8px; overflow: hidden; }
body.light .progress-bar { background: #e0d8cc; }
.progress-fill { height: 100%; background: linear-gradient(90deg, #e23d3d, #f5c27a); transition: width 0.6s; }
.day-card { background: var(--input-bg); border: 1px solid var(--border); border-radius: 16px; padding: 16px; margin-bottom: 16px; }
.day-title { font-weight: 700; font-size: 18px; margin-bottom: 6px; }
.recipe-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 12px 0 16px; }
.recipe-item { background: var(--input-bg); border: 1px solid var(--border); border-radius: 14px; padding: 12px; text-align: center; }
.recipe-item .amt { font-weight: 700; color: var(--gold); font-size: 18px; }
.recipe-item .nm { font-size: 14px; color: var(--muted); }
.instructions, .tips { background: var(--input-bg); border: 1px solid var(--border); border-radius: 14px; padding: 14px; margin-bottom: 14px; }
.instructions h4, .tips h4 { margin: 0 0 10px; font-size: 17px; }
.instructions ol, .tips ul { margin: 0; padding-left: 20px; font-size: 16px; color: var(--muted); }
.instructions li, .tips li { margin-bottom: 6px; }
.days-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 12px; }
.day-box { background: var(--input-bg); border: 1px solid var(--border); border-radius: 12px; padding: 14px 8px; text-align: center; cursor: pointer; font-size: 16px; font-weight: 600; }
.day-box.done { background: #2a1f12; border-color: var(--gold); }
.day-box.current { outline: 3px solid var(--gold); }
.bottom-nav { position: fixed; bottom: 0; left: 0; right: 0; max-width: 480px; margin: 0 auto; background: var(--bg); border-top: 2px solid var(--border); display: flex; padding: 10px 0; }
.nav-btn { flex: 1; background: none; border: none; color: var(--muted); padding: 12px 4px; font-size: 15px; font-weight: 600; cursor: pointer; }
.nav-btn.active { color: var(--gold); font-weight: 700; font-size: 16px; }