:root {
  --q4-blue-soft: #eaf3ff;
  --q4-blue-line: #a8c5eb;
  --q4-lime: #cfff54;
}

.q4-page .holiday-header { background: rgba(255,255,255,.94); }
.q4-page .tool-main { padding-top: 24px; }
.q4-page .holiday-breadcrumb { margin-bottom: 22px; }
.q4-intro { max-width: 880px; margin-bottom: 26px; }
.q4-intro h1 { margin: 0 0 14px; font-size: clamp(3.2rem,6.5vw,6.2rem); line-height: .92; letter-spacing: -.018em; }
.q4-intro h1 span { display: block; }
.q4-intro .holiday-lead { max-width: 820px; margin: 0; }

.q4-layout { display: grid; grid-template-columns: minmax(0,1.48fr) minmax(330px,.82fr); gap: 20px; align-items: stretch; }
.q4-workbench { min-width: 0; padding: clamp(24px,3.4vw,38px); border: 1px solid var(--q4-blue-line); border-radius: 12px; background: rgba(255,255,255,.97); box-shadow: 0 18px 45px rgba(35,67,111,.06); }
.q4-aside { min-width: 0; padding: clamp(24px,3vw,34px); border-radius: 12px; background: var(--holiday-night); color: #fff; box-shadow: var(--holiday-shadow); }
.q4-aside h2 { margin: 0 0 24px; font-size: clamp(1.8rem,3vw,2.55rem); line-height: 1.04; letter-spacing: -.012em; }
.q4-aside-steps { display: grid; gap: 18px; margin: 0 0 24px; padding: 0 0 24px; border-bottom: 1px solid #697386; list-style: none; }
.q4-aside-steps li { display: grid; grid-template-columns: 34px minmax(0,1fr); gap: 12px; }
.q4-aside-steps b { width: 34px; height: 34px; display: grid; place-items: center; border: 2px solid #61b6ff; border-radius: 50%; color: #61b6ff; }
.q4-aside-steps li { opacity: .72; transition: opacity var(--holiday-motion-base) ease, transform var(--holiday-motion-base) var(--holiday-motion-ease); }
.q4-aside-steps li.is-current, .q4-aside-steps li.is-complete { opacity: 1; transform: translateX(3px); }
.q4-aside-steps li.is-current b { border-color: #fff; color: #fff; box-shadow: 0 0 0 6px rgba(97,182,255,.13); }
.q4-aside-steps li.is-complete b { border-color: var(--q4-lime); background: var(--q4-lime); color: var(--holiday-night); }
.q4-aside-steps strong, .q4-aside-steps span { display: block; }
.q4-aside-steps strong { font-size: 1rem; }
.q4-aside-steps span { margin-top: 3px; color: #c3ccda; font-size: .82rem; line-height: 1.45; }
.q4-saved-title { margin: 0 0 12px; font-size: 1.25rem; }
.q4-empty { margin: 0; color: #bdc7d6 !important; font-size: .86rem; line-height: 1.55 !important; }
.q4-big-count { display: block; color: var(--q4-lime); font-size: 4.7rem; line-height: .9; letter-spacing: -.04em; }
.q4-aside .holiday-button.secondary { border-color: #9aa7ba; }
.q4-share-list, .q4-share-saved { width: 100%; margin-top: 18px; }

.q4-form { display: grid; gap: 21px; }
.q4-fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
.q4-fieldset legend, .q4-input-group label { display: block; margin-bottom: 9px; color: var(--holiday-ink); font-size: .9rem; font-weight: 810; }
.q4-fieldset select, .q4-input-group input, .q4-input-group select { width: 100%; min-height: 50px; padding: 11px 14px; border: 1px solid #9caec7; border-radius: 9px; background: #fff; color: var(--holiday-ink); font-size: 1rem; }
.q4-choices { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 10px; }
.q4-choice { position: relative; min-width: 0; }
.q4-choice input { position: absolute; opacity: 0; pointer-events: none; }
.q4-choice span { min-height: 48px; display: flex; align-items: center; justify-content: center; padding: 9px 12px; border: 1px solid #a9b8cc; border-radius: 9px; background: #fff; color: #252b34; font-size: .88rem; font-weight: 730; text-align: center; transition: background .18s ease, border-color .18s ease, box-shadow .18s ease, transform .18s ease; }
.q4-choice span::before { content: ""; width: 18px; height: 18px; flex: 0 0 18px; margin-right: 8px; border: 2px solid #718199; border-radius: 50%; box-shadow: inset 0 0 0 4px #fff; }
.q4-choice input:checked + span { border-color: var(--holiday-blue); background: #edf5ff; box-shadow: 0 0 0 1px var(--holiday-blue); }
.q4-choice input:checked + span::before { border-color: var(--holiday-blue); background: var(--holiday-blue); }
.q4-choice input:checked + span { animation: q4-choice-select 240ms var(--holiday-motion-ease); }
.q4-choice input:focus-visible + span { outline: 3px solid rgba(18,88,255,.3); outline-offset: 3px; }
.q4-choice:hover span { transform: translateY(-1px); border-color: #6f87a8; }
@keyframes q4-choice-select { 0% { transform: scale(.975); } 70% { transform: scale(1.012); } 100% { transform: none; } }
.q4-submit { width: 100%; margin-top: 2px; border-radius: 8px; }

@media (min-width: 981px) {
  .q4-workbench #q4-tool-root > .q4-form { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .q4-workbench #q4-tool-root > .q4-form > .q4-submit,
  .q4-workbench #q4-tool-root > .q4-form > .q4-form-grid { grid-column: 1 / -1; }
  .q4-workbench #q4-tool-root > .q4-form > .q4-fieldset:nth-child(3):nth-last-child(2) { grid-column: 1 / -1; }
  .q4-workbench .q4-choices { gap: 7px; }
  .q4-workbench .q4-choice span { padding-inline: 7px; font-size: .8rem; }
  .q4-workbench .q4-choice span::before { width: 16px; height: 16px; flex-basis: 16px; margin-right: 6px; box-shadow: inset 0 0 0 3px #fff; }
}

.q4-form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; }
.q4-span-2 { grid-column: 1 / -1; }
.q4-input-with-unit { position: relative; }
.q4-input-with-unit input { padding-right: 48px; }
.q4-input-with-unit span { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); color: var(--holiday-muted); font-weight: 760; }
.q4-inline-form { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr) auto; gap: 12px; align-items: end; margin-bottom: 24px; }

.q4-results { scroll-margin-top: 92px; margin-top: 18px; }
.q4-results[hidden] { display: none; }
.q4-affiliate-disclosure { margin: 0 0 22px; padding: 13px 16px; border: 1px solid var(--q4-blue-line); border-radius: 8px; background: #fff; color: #344154; font-size: .8rem; line-height: 1.45; }
.q4-results-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin: 28px 0 15px; }
.q4-results-head h2, .q4-results > h2 { margin: 0; font-size: clamp(2.15rem,4.5vw,4.1rem); line-height: 1.03; letter-spacing: -.015em; }
.q4-results-head p { margin: 0; padding-left: 18px; border-left: 2px solid var(--holiday-blue); color: #3e4958; font-size: .88rem; text-transform: capitalize; }
.q4-marketplace-note { margin: -3px 0 15px; padding: 11px 14px; border-left: 3px solid var(--holiday-blue); background: #edf5ff; color: #334054; font-size: .78rem; line-height: 1.5; }
.q4-result-list { display: grid; gap: 9px; }
.q4-result-row { min-height: 112px; display: grid; grid-template-columns: 180px minmax(0,1fr) auto; align-items: center; overflow: hidden; border: 1px solid var(--q4-blue-line); border-radius: 10px; background: #fff; }
.q4-result-row { transition: transform var(--holiday-motion-base) var(--holiday-motion-ease), border-color var(--holiday-motion-fast) ease, box-shadow var(--holiday-motion-base) ease; }
.q4-result-row:hover { transform: translateY(-2px); border-color: #73a7e9; box-shadow: 0 14px 30px rgba(35,67,111,.09); }
.q4-result-art { height: 100%; min-height: 112px; display: grid; place-items: center; background: linear-gradient(135deg,#e1f0ff,#f8fbff); }
.q4-result-row:nth-child(3n+2) .q4-result-art { background: linear-gradient(135deg,#eee8ff,#faf8ff); }
.q4-result-row:nth-child(3n) .q4-result-art { background: linear-gradient(135deg,#efffc8,#fbfff4); }
.q4-icon { width: 58px; height: 58px; display: grid; place-items: center; color: var(--holiday-ink); }
.q4-icon svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.q4-result-row .q4-icon, .q4-affiliate-item { transition: transform var(--holiday-motion-base) var(--holiday-motion-ease); }
.q4-result-row:hover .q4-icon { transform: rotate(-4deg) scale(1.06); }
.q4-result-copy { min-width: 0; padding: 18px 24px; }
.q4-result-copy h3 { margin: 0 0 5px; font-size: 1.22rem; letter-spacing: -.015em; }
.q4-result-copy p { margin: 0; color: var(--holiday-muted); font-size: .88rem; line-height: 1.48; }
.q4-product-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 7px 0 8px; color: #465267; font-size: .72rem; font-weight: 720; }
.q4-product-meta span { white-space: nowrap; }
.q4-product-badge { padding: 5px 8px; border-radius: 999px; background: var(--q4-lime); color: #18210a; font-size: .68rem; font-weight: 850; letter-spacing: .01em; }
.q4-result-actions { display: flex; align-items: center; justify-content: flex-end; gap: 9px; padding: 16px 18px; }
.q4-reroll { margin-top: 16px; }

.q4-saved-list { overflow: hidden; border-radius: 9px; background: #fff; color: var(--holiday-ink); }
.q4-saved-row { min-width: 0; display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 8px; padding: 11px 12px; border-bottom: 1px solid var(--holiday-line); }
.q4-saved-row:last-child { border-bottom: 0; }
.q4-saved-row a { min-width: 0; color: var(--holiday-ink); font-size: .82rem; font-weight: 760; line-height: 1.3; overflow-wrap: anywhere; text-decoration: none; }
.q4-saved-row a:hover { color: var(--holiday-blue); }
.q4-remove { min-height: 44px; padding: 8px; border: 0; background: transparent; color: #5a6574; font-size: .72rem; text-decoration: underline; }

.q4-editorial { display: grid; grid-template-columns: minmax(250px,.65fr) minmax(0,1.35fr); gap: 38px; margin-top: 46px; padding: 40px 0 18px; border-top: 1px solid var(--holiday-line); }
.q4-editorial h2 { margin: 0; font-size: clamp(2rem,4vw,3.5rem); line-height: 1.04; letter-spacing: -.012em; }
.q4-editorial-copy { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 24px; }
.q4-editorial-copy h3 { margin: 0 0 8px; font-size: 1.05rem; }
.q4-editorial-copy p { margin: 0; color: var(--holiday-muted); line-height: 1.65; }

.q4-wish-list, .q4-message-list { display: grid; gap: 10px; }
.q4-wish-row { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 18px; padding: 18px; border: 1px solid var(--holiday-line); border-radius: 10px; background: #fff; }
.q4-wish-row h3 { margin: 0 0 4px; }
.q4-wish-row p { margin: 0; color: var(--holiday-muted); font-size: .84rem; }
.q4-empty-state { display: grid; justify-items: center; padding: 48px 24px; text-align: center; }
.q4-empty-state h2 { margin: 18px 0 8px; }
.q4-empty-state p { max-width: 520px; margin: 0; color: var(--holiday-muted); line-height: 1.6; }

.q4-safety-note { margin: 16px 0 24px; padding: 14px 16px; border-left: 3px solid var(--holiday-gold); background: #fff8e8; color: #5b4a24; line-height: 1.55; }
.q4-timeline { position: relative; display: grid; gap: 0; margin: 24px 0; padding: 0; list-style: none; }
.q4-timeline::before { content: ""; position: absolute; left: 18px; top: 15px; bottom: 15px; width: 2px; background: var(--q4-blue-line); }
.q4-timeline li { position: relative; padding: 0 0 28px 54px; }
.q4-timeline li::before { content: ""; position: absolute; left: 10px; top: 3px; width: 18px; height: 18px; border: 4px solid #fff; border-radius: 50%; background: var(--holiday-blue); box-shadow: 0 0 0 1px var(--holiday-blue); }
.motion-result-enter .q4-timeline li::before { animation: q4-timeline-pop 360ms var(--holiday-motion-ease) both; animation-delay: calc(var(--motion-order, 0) * 70ms); }
@keyframes q4-timeline-pop { 0% { transform: scale(.5); } 75% { transform: scale(1.16); } 100% { transform: none; } }
.q4-timeline strong { color: var(--holiday-blue); font-size: .78rem; }
.q4-timeline h3 { margin: 4px 0; font-size: 1.22rem; }
.q4-timeline p { margin: 0; color: var(--holiday-muted); line-height: 1.55; }
.q4-affiliate-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; margin-top: 16px; }
.q4-affiliate-item { min-height: 72px; display: flex; align-items: center; padding: 16px; border: 1px solid var(--holiday-line); border-radius: 10px; background: #fff; color: var(--holiday-ink); font-size: .86rem; font-weight: 760; line-height: 1.4; text-decoration: none; transition: border-color .18s ease, transform .18s ease; }
.q4-affiliate-item:hover { transform: translateY(-2px); border-color: var(--holiday-blue); }

.q4-game-card { min-height: 340px; display: grid; align-content: center; justify-items: center; padding: clamp(30px,6vw,70px); border-radius: 16px; background: var(--holiday-night); color: #fff; text-align: center; }
.q4-game-card .q4-icon { width: 82px; height: 82px; color: var(--q4-lime); }
.motion-result-enter .q4-game-card .q4-icon { animation: q4-game-icon 560ms var(--holiday-motion-ease) both; }
@keyframes q4-game-icon { 0% { opacity: 0; transform: translateY(16px) rotate(-9deg) scale(.82); } 70% { opacity: 1; transform: translateY(-4px) rotate(3deg) scale(1.04); } 100% { transform: none; } }
.q4-game-card h2 { max-width: 760px; margin: 22px 0 12px; font-size: clamp(2.4rem,5vw,4.8rem); line-height: .98; letter-spacing: -.012em; }
.q4-game-card p { max-width: 680px; margin: 0 0 24px; color: #c7d0de; font-size: 1.04rem; line-height: 1.6; }
.q4-game-card .holiday-button.secondary { border-color: #fff; }

.q4-message-card { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 20px; padding: 22px; border: 1px solid var(--q4-blue-line); border-radius: 10px; background: #fff; }
.q4-message-card p { margin: 0; font-size: 1.05rem; line-height: 1.65; }

.q4-pumpkin-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; margin-top: 22px; }
.q4-pumpkin-card { display: grid; justify-items: center; padding: 18px; border: 1px solid var(--holiday-line); border-radius: 12px; background: #fff; text-align: center; }
.q4-pumpkin-art { width: 100%; aspect-ratio: 1.15; display: grid; place-items: center; border-radius: 9px; background: #fff0d5; }
.q4-pumpkin-art svg { width: 72%; height: 72%; fill: none; stroke: #15181e; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.q4-pumpkin-card h3 { margin: 14px 0; }
.q4-pumpkin-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }

@media (max-width: 980px) {
  .q4-layout { grid-template-columns: 1fr; }
  .q4-aside { order: 2; }
  .q4-aside-steps { grid-template-columns: repeat(3,1fr); }
  .q4-aside-steps li { grid-template-columns: 30px 1fr; }
  .q4-choices { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .q4-result-row { grid-template-columns: 140px minmax(0,1fr); }
  .q4-result-actions { grid-column: 2; justify-content: flex-start; padding-top: 0; }
}

@media (max-width: 680px) {
  .q4-page .tool-main { padding-top: 18px; }
  .q4-intro h1 { font-size: clamp(2.65rem,12.5vw,3.2rem); line-height: .94; }
  .q4-workbench, .q4-aside { padding: 21px; }
  .q4-aside-steps { grid-template-columns: 1fr; }
  .q4-choices, .q4-form-grid, .q4-editorial-copy, .q4-affiliate-grid, .q4-pumpkin-grid { grid-template-columns: 1fr; }
  .q4-inline-form, .q4-editorial { grid-template-columns: 1fr; }
  .q4-span-2 { grid-column: auto; }
  .q4-results-head { display: block; }
  .q4-results-head p { margin-top: 12px; }
  .q4-result-row { grid-template-columns: 94px minmax(0,1fr); }
  .q4-result-art { min-height: 100%; }
  .q4-result-copy { padding: 16px; }
  .q4-result-actions { grid-column: 1 / -1; padding: 0 14px 14px; }
  .q4-result-actions .holiday-button { flex: 1; }
  .q4-wish-row, .q4-message-card { grid-template-columns: 1fr; }
  .q4-wish-row .q4-result-actions { padding: 0; }
  .q4-editorial { gap: 22px; }
}

@media print {
  .q4-page .holiday-header, .q4-page .holiday-footer, .q4-page .holiday-breadcrumb, .q4-page .q4-intro, .q4-page .q4-layout, .q4-page .q4-affiliate-disclosure, .q4-page .q4-affiliate-grid, .q4-page .q4-editorial, .q4-pumpkin-card:not(.print-selected) { display: none !important; }
  .q4-pumpkin-card.print-selected { border: 0; }
  .q4-pumpkin-card.print-selected .holiday-button, .q4-pumpkin-card.print-selected h3 { display: none; }
  .q4-pumpkin-card.print-selected .q4-pumpkin-art { width: 7.5in; max-width: 100%; background: #fff; }
  .q4-pumpkin-card.print-selected .q4-pumpkin-art svg { width: 90%; height: 90%; }
}
