/* What Kind of Doodle Are You? — scoped to .dq so it can't leak into site styles */
.dq {
  --blue: #8cb0bc;
  --blue-d: #5f8a98;
  --cream: #faf7f1;
  --ink: #2b2622;
  --muted: #6d655d;
  --line: #e7dfd2;
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Jost', system-ui, -apple-system, sans-serif;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--cream);
  min-height: 100vh;
}
.dq * { box-sizing: border-box; }
.dq-top { display: flex; justify-content: space-between; align-items: center; padding: 18px 22px; max-width: 980px; margin: 0 auto; }
.dq-brand { font-family: var(--serif); font-size: 22px; font-weight: 600; color: var(--ink); text-decoration: none; letter-spacing: .01em; }
.dq-top a.dq-home { color: var(--muted); font-size: 15px; text-decoration: none; }
.dq-wrap { max-width: 680px; margin: 0 auto; padding: 8px 20px 64px; }
.dq-screen { display: none; animation: dqIn .35s ease; }
.dq-screen.on { display: block; }
@keyframes dqIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.dq h1, .dq h2 { font-family: var(--serif); font-weight: 600; line-height: 1.08; margin: 0 0 14px; }
.dq h1 { font-size: clamp(40px, 8vw, 62px); }
.dq h2 { font-size: clamp(30px, 6vw, 42px); }
.dq p { line-height: 1.6; font-size: 17px; margin: 0 0 16px; }
.dq .dq-kicker { text-transform: uppercase; letter-spacing: .14em; font-size: 13px; color: var(--blue-d); font-weight: 500; margin-bottom: 10px; }

/* intro */
.dq-intro { text-align: center; padding-top: 10px; }
.dq-collage { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin: 6px auto 28px; max-width: 520px; }
.dq-collage img { width: 100%; height: auto; aspect-ratio: 1; border-radius: 50%; object-fit: cover; box-shadow: 0 4px 14px rgba(60, 40, 20, .12); }
.dq-intro p { color: var(--muted); max-width: 470px; margin-left: auto; margin-right: auto; }

.dq-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 30px; border: 0; border-radius: 999px; background: var(--ink); color: #fff; font: 500 17px var(--sans); cursor: pointer; text-decoration: none; transition: transform .15s, background .15s; }
.dq-btn:hover { background: #000; transform: translateY(-1px); }
.dq-btn.blue { background: var(--blue-d); }
.dq-btn.ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--line); }
.dq-small { font-size: 14px; color: var(--muted); margin-top: 14px; }

/* question */
.dq-prog { display: flex; align-items: center; gap: 14px; margin: 6px 0 26px; }
.dq-bar { flex: 1; height: 8px; background: var(--line); border-radius: 99px; overflow: hidden; }
.dq-bar span { display: block; height: 100%; background: var(--blue); border-radius: 99px; transition: width .35s ease; }
.dq-count { font-size: 14px; color: var(--muted); white-space: nowrap; }
.dq-q { font-family: var(--serif); font-size: clamp(28px, 5.6vw, 38px); font-weight: 600; line-height: 1.15; margin: 0 0 22px; }
.dq-opts { display: grid; gap: 12px; }
.dq-opt { text-align: left; min-height: 60px; padding: 16px 20px; background: #fff; border: 1.5px solid var(--line); border-radius: 16px; font: 400 17px/1.4 var(--sans); color: var(--ink); cursor: pointer; transition: border-color .15s, transform .15s, background .15s; }
.dq-opt:hover { border-color: var(--blue); transform: translateY(-1px); }
.dq-opt.picked { border-color: var(--blue-d); background: #eef4f6; }
.dq-qpic { margin: 18px auto 0; width: min(300px, 72vw); background: #fff; padding: 10px 10px 14px; border-radius: 18px; box-shadow: 0 10px 28px rgba(60, 40, 20, .14); animation: dqPop .35s ease; }
.dq-qpic img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 12px; display: block; }
.dq-qpic.tilt-l { transform: rotate(-2.5deg); }
.dq-qpic.tilt-r { transform: rotate(2.5deg); }
@keyframes dqPop { from { opacity: 0; transform: scale(.94); } }
.dq-back { background: none; border: 0; color: var(--muted); font: 15px var(--sans); cursor: pointer; padding: 12px 0; margin-top: 10px; min-height: 44px; }

/* gate */
.dq-gate { text-align: center; }
.dq-tease { width: 180px; height: 180px; margin: 4px auto 22px; border-radius: 50%; overflow: hidden; position: relative; box-shadow: 0 8px 26px rgba(60, 40, 20, .15); }
.dq-tease img { width: 100%; height: 100%; filter: blur(14px) saturate(1.1); transform: scale(1.15); }
.dq-tease::after { content: '?'; position: absolute; inset: 0; display: grid; place-items: center; font: 600 72px var(--serif); color: #fff; text-shadow: 0 2px 12px rgba(0, 0, 0, .25); }
.dq-form { max-width: 420px; margin: 0 auto; text-align: left; }
.dq-form label { display: block; font-size: 14px; font-weight: 500; margin: 0 0 6px; }
.dq-form input[type=text], .dq-form input[type=email] { width: 100%; min-height: 52px; padding: 0 16px; border: 1.5px solid var(--line); border-radius: 12px; font: 17px var(--sans); background: #fff; margin-bottom: 16px; }
.dq-form input:focus { outline: none; border-color: var(--blue-d); }
.dq-form .dq-btn { width: 100%; margin-top: 4px; }
.dq-err { color: #a33; font-size: 14px; min-height: 20px; margin: -6px 0 8px; }
.dq-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.dq-fine { font-size: 13px; color: var(--muted); text-align: center; margin-top: 14px; line-height: 1.5; }

/* result */
.dq-result { text-align: center; }
.dq-portrait { width: min(340px, 82vw); aspect-ratio: 1; border-radius: 28px; overflow: hidden; margin: 6px auto 22px; box-shadow: 0 14px 40px rgba(60, 40, 20, .16); }
.dq-portrait img { width: 100%; height: 100%; display: block; }
.dq-type { font-family: var(--serif); font-style: italic; font-size: 26px; color: var(--blue-d); margin: -6px 0 16px; }
.dq-traits { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 0 0 22px; padding: 0; list-style: none; }
.dq-traits li { background: #fff; border: 1px solid var(--line); border-radius: 99px; padding: 7px 14px; font-size: 14px; }
.dq-blurb { text-align: left; }
.dq-power { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 16px 20px; text-align: left; margin: 6px 0 26px; }
.dq-power b { display: block; font-size: 13px; text-transform: uppercase; letter-spacing: .12em; color: var(--blue-d); margin-bottom: 4px; font-weight: 500; }

.dq-share { background: #fff; border: 1.5px solid var(--blue); border-radius: 22px; padding: 24px 20px; margin: 0 0 30px; }
.dq-share h3 { font-family: var(--serif); font-size: 28px; margin: 0 0 6px; font-weight: 600; }
.dq-share p { color: var(--muted); font-size: 16px; margin-bottom: 18px; }
.dq-share-btns { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; }
.dq-sbtn { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; border-radius: 12px; border: 1.5px solid var(--line); background: #fff; color: var(--ink); font: 500 15px var(--sans); text-decoration: none; cursor: pointer; }
.dq-sbtn svg { width: 20px; height: 20px; flex: none; }
.dq-sbtn.fb { background: #1877f2; border-color: #1877f2; color: #fff; grid-column: 1 / -1; min-height: 54px; font-size: 16px; }
.dq-sbtn.native { background: var(--ink); border-color: var(--ink); color: #fff; grid-column: 1 / -1; }

.dq-cardtabs { display: inline-flex; background: var(--cream); border: 1px solid var(--line); border-radius: 99px; padding: 4px; margin: 0 0 16px; }
.dq-cardtabs button { border: 0; background: none; font: 500 15px var(--sans); color: var(--muted); padding: 8px 20px; min-height: 40px; border-radius: 99px; cursor: pointer; }
.dq-cardtabs button.on { background: var(--ink); color: #fff; }
.dq-cardwrap { width: min(360px, 78vw); aspect-ratio: 1080 / 1350; margin: 0 auto 18px; border-radius: 16px; overflow: hidden; background: var(--line); box-shadow: 0 10px 30px rgba(60, 40, 20, .15); }
.dq-cardwrap.story { width: min(300px, 66vw); aspect-ratio: 1080 / 1920; }
.dq-cardwrap img { width: 100%; height: 100%; display: block; }
.dq-buddies { margin: 0 0 30px; }
.dq-buddies h3, .dq-next h3 { font-family: var(--serif); font-size: 26px; font-weight: 600; margin: 0 0 14px; }
.dq-buddy-row { display: flex; gap: 14px; justify-content: center; }
.dq-buddy { width: 150px; text-decoration: none; color: var(--ink); font-size: 15px; }
.dq-buddy img { width: 100%; height: auto; aspect-ratio: 1; border-radius: 18px; display: block; margin-bottom: 8px; }
.dq-buddy span { display: block; color: var(--muted); font-size: 13px; }

.dq-next { border-top: 1px solid var(--line); padding-top: 28px; }
.dq-next-grid { display: grid; gap: 12px; text-align: left; }
.dq-card { display: block; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 16px 20px; color: var(--ink); text-decoration: none; }
.dq-card b { font-weight: 500; display: block; margin-bottom: 2px; }
.dq-card span { color: var(--muted); font-size: 15px; }
.dq-card:hover { border-color: var(--blue); }
.dq-retake { margin-top: 24px; }
.dq-toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 12px 20px; border-radius: 99px; font-size: 15px; opacity: 0; transition: opacity .2s; pointer-events: none; z-index: 50; }
.dq-toast.on { opacity: 1; }

@media (min-width: 640px) {
  .dq-opts { grid-template-columns: 1fr 1fr; }
  .dq-opt { min-height: 84px; }
  .dq-next-grid { grid-template-columns: 1fr 1fr 1fr; }
}
