:root {
  --cream: #fffaf5;
  --paper: rgba(255, 255, 255, .91);
  --pink: #c96f76;
  --pink-dark: #a64f59;
  --pink-soft: #f6e1e2;
  --brown: #503a32;
  --brown-soft: #80685e;
  --gold: #c18b42;
  --line: #ecdcd3;
  --shadow: 0 18px 50px rgba(91, 56, 47, .11);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--brown);
  background: linear-gradient(145deg, #fffaf5 0%, #f8eee8 54%, #f8e7e8 100%);
  font-family: "Zen Maru Gothic", "Yu Gothic", sans-serif;
  overflow-x: hidden;
}
button { font: inherit; }
.background-blob { position: fixed; border-radius: 50%; filter: blur(2px); opacity: .48; pointer-events: none; }
.blob-one { width: 330px; height: 330px; background: #f5ced1; top: -130px; right: -120px; }
.blob-two { width: 250px; height: 250px; background: #f1dfc8; bottom: -100px; left: -100px; }
.app-shell { position: relative; width: min(100% - 28px, 680px); margin: 0 auto; padding: 22px 0 46px; z-index: 1; }
.brand { display: flex; align-items: center; justify-content: center; gap: 10px; margin-bottom: 18px; }
.brand-mark { display: grid; place-items: center; width: 39px; height: 39px; border-radius: 50%; color: white; background: var(--pink); font-family: Georgia, serif; font-size: 23px; box-shadow: 0 6px 18px rgba(166, 79, 89, .2); }
.brand b, .brand small { display: block; }
.brand b { font-size: 14px; letter-spacing: .08em; }
.brand small { color: var(--brown-soft); font-size: 8px; letter-spacing: .16em; }
.screen { display: none; animation: appear .36s ease both; }
.screen.active { display: block; }
@keyframes appear { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

#start-screen { padding: 26px 23px 28px; text-align: center; background: var(--paper); border: 1px solid rgba(255,255,255,.92); border-radius: 28px; box-shadow: var(--shadow); backdrop-filter: blur(8px); }
.eyebrow { display: inline-block; padding: 6px 13px; color: var(--pink-dark); background: var(--pink-soft); border-radius: 999px; font-size: 12px; font-weight: 700; letter-spacing: .06em; }
.cake-illustration { position: relative; width: 155px; height: 130px; margin: 12px auto 0; }
.cake-layer, .cream, .plate, .berry { position: absolute; display: block; }
.cake-layer { left: 34px; width: 88px; height: 21px; background: #d49b68; border-radius: 5px; box-shadow: inset 0 -5px rgba(102, 61, 44, .12); }
.cake-layer.top { top: 48px; transform: rotate(-1deg); }
.cake-layer.middle { top: 71px; }
.cake-layer.bottom { top: 94px; transform: rotate(1deg); }
.cream { z-index: 2; top: 40px; left: 30px; width: 96px; height: 18px; background: #fff9eb; border-radius: 50% 50% 8px 8px; box-shadow: 0 3px 0 #f1d7c6; }
.berry { z-index: 3; width: 23px; height: 23px; border-radius: 50% 50% 45% 45%; background: #bd4f5d; box-shadow: inset -4px -3px rgba(102,30,41,.2); }
.berry::before { content: ""; position: absolute; left: 8px; top: -7px; width: 8px; height: 10px; border-radius: 80% 0; background: #6f8e62; transform: rotate(25deg); }
.berry-a { top: 24px; left: 57px; transform: rotate(-8deg); }
.berry-b { top: 27px; left: 80px; transform: scale(.84) rotate(10deg); }
.plate { left: 12px; bottom: 2px; width: 132px; height: 16px; background: #e8d7cf; border-radius: 50%; box-shadow: inset 0 -4px rgba(96,71,60,.08); }
.lead-quote { margin: 1px 0 9px; color: var(--pink-dark); font-weight: 900; font-size: 15px; }
h1 { margin: 0; font-size: clamp(24px, 7.3vw, 37px); line-height: 1.43; letter-spacing: .02em; }
h1 em { color: var(--pink-dark); font-style: normal; font-size: 1.1em; }
h1 span { display: inline-block; margin-top: 4px; padding-bottom: 2px; border-bottom: 5px solid #ebc9a1; }
.intro { max-width: 470px; margin: 17px auto 0; color: var(--brown-soft); font-size: 14px; line-height: 1.9; }
.benefits { display: grid; gap: 8px; margin: 19px auto 22px; padding: 0; max-width: 360px; list-style: none; text-align: left; }
.benefits li { position: relative; padding-left: 31px; font-size: 14px; font-weight: 700; }
.benefits li::before { content: "✓"; position: absolute; left: 0; top: -2px; display: grid; place-items: center; width: 22px; height: 22px; color: white; background: var(--pink); border-radius: 50%; font-size: 12px; }
.primary-button { width: 100%; min-height: 58px; padding: 13px 20px; color: white; background: linear-gradient(135deg, var(--pink), var(--pink-dark)); border: 0; border-radius: 17px; box-shadow: 0 10px 24px rgba(166,79,89,.25); font-weight: 900; cursor: pointer; transition: transform .18s, box-shadow .18s, opacity .18s; }
.primary-button:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 14px 28px rgba(166,79,89,.29); }
.primary-button:focus-visible, .answer-button:focus-visible, .back-button:focus-visible, .restart-button:focus-visible { outline: 3px solid rgba(193,139,66,.48); outline-offset: 3px; }
.primary-button:disabled { opacity: .42; cursor: not-allowed; box-shadow: none; }
.primary-button span { float: right; font-size: 25px; line-height: 20px; }
.privacy-note { margin: 11px 0 0; color: #99847a; font-size: 11px; }

.progress-meta { display: flex; justify-content: space-between; margin: 4px 4px 8px; color: var(--brown-soft); font-size: 12px; font-weight: 700; }
.progress-track { height: 7px; overflow: hidden; background: rgba(255,255,255,.75); border-radius: 999px; }
.progress-track span { display: block; height: 100%; width: 20%; background: linear-gradient(90deg, #d4959a, var(--pink)); border-radius: inherit; transition: width .35s ease; }
.question-card { margin-top: 18px; padding: 27px 20px 23px; background: var(--paper); border-radius: 25px; box-shadow: var(--shadow); }
.question-number { color: var(--pink-dark); font-family: Georgia, serif; font-size: 17px; font-weight: 700; letter-spacing: .08em; }
.question-card h2 { min-height: 61px; margin: 7px 0 21px; font-size: clamp(19px, 5.4vw, 25px); line-height: 1.55; }
.answer-list { display: grid; gap: 11px; }
.answer-button { position: relative; width: 100%; min-height: 60px; padding: 14px 44px 14px 16px; color: var(--brown); background: #fff; border: 1.5px solid var(--line); border-radius: 15px; text-align: left; line-height: 1.55; font-size: 14px; font-weight: 700; cursor: pointer; transition: background .16s, border .16s, transform .16s; }
.answer-button::after { content: ""; position: absolute; right: 16px; top: 50%; width: 18px; height: 18px; border: 2px solid #d9c6bc; border-radius: 50%; transform: translateY(-50%); }
.answer-button:hover { border-color: #d9a3a7; transform: translateY(-1px); }
.answer-button.selected { background: #fff5f5; border-color: var(--pink); }
.answer-button.selected::after { border: 5px solid var(--pink); background: white; }
.question-actions { display: grid; grid-template-columns: .85fr 1.3fr; gap: 10px; margin-top: 15px; }
.back-button { min-height: 54px; color: var(--brown-soft); background: rgba(255,255,255,.62); border: 1px solid var(--line); border-radius: 16px; font-weight: 700; cursor: pointer; }
.answer-hint { margin: 10px 0 0; text-align: center; color: #9c8980; font-size: 11px; }

.result-heading { margin: 5px 0 14px; text-align: center; }
.result-heading span, .result-heading small { display: block; }
.result-heading span { color: var(--pink-dark); font-size: 13px; font-weight: 900; letter-spacing: .16em; }
.result-heading small { margin-top: 3px; color: var(--brown-soft); }
.result-card { padding: 29px 20px 23px; background: var(--paper); border-radius: 28px; box-shadow: var(--shadow); }
.result-icon { display: grid; place-items: center; width: 67px; height: 67px; margin: 0 auto 10px; background: var(--pink-soft); border-radius: 50%; font-size: 35px; }
.result-kicker { margin: 0; text-align: center; color: var(--pink-dark); font-size: 12px; font-weight: 900; letter-spacing: .08em; }
.result-card > h2 { margin: 4px 0 8px; text-align: center; font-size: clamp(25px, 7vw, 34px); }
.result-catch { margin: 0 auto 25px; max-width: 480px; text-align: center; color: var(--brown-soft); font-weight: 700; line-height: 1.7; }
.result-section { padding: 18px 2px; border-top: 1px solid var(--line); }
.result-section.soft { margin: 0 -5px; padding: 17px 14px; background: #fff8f4; border: 0; border-radius: 15px; }
.result-section h3 { margin: 0 0 8px; color: var(--pink-dark); font-size: 15px; }
.result-section p { margin: 0; line-height: 1.9; font-size: 14px; }
.action-section ol { display: grid; gap: 10px; margin: 10px 0 0; padding: 0; list-style: none; counter-reset: action; }
.action-section li { position: relative; padding: 11px 12px 11px 45px; background: #fff8f4; border-radius: 12px; font-size: 13px; font-weight: 700; counter-increment: action; }
.action-section li::before { content: counter(action); position: absolute; left: 11px; top: 9px; display: grid; place-items: center; width: 25px; height: 25px; color: white; background: var(--gold); border-radius: 50%; }
.next-step { margin-top: 7px; padding: 20px 16px 17px; background: linear-gradient(145deg, #f8e5e5, #f5eee8); border-radius: 18px; text-align: center; }
.next-step > p:first-child { margin: 0 0 15px; font-size: 14px; font-weight: 700; line-height: 1.8; }
.course-note { margin: 10px 0 0; color: var(--brown-soft); font-size: 11px; }
.restart-button { display: block; margin: 17px auto 0; padding: 9px 18px; color: var(--brown-soft); background: transparent; border: 0; border-bottom: 1px solid currentColor; cursor: pointer; }
.disclaimer { max-width: 520px; margin: 20px auto 0; color: #927f77; font-size: 10px; line-height: 1.7; text-align: center; }
footer { position: relative; padding: 0 15px 25px; color: #9a8279; text-align: center; font-size: 10px; z-index: 1; }

@media (min-width: 600px) {
  .app-shell { padding-top: 36px; }
  #start-screen { padding: 32px 48px 35px; }
  .question-card, .result-card { padding-left: 36px; padding-right: 36px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}
