.sweet-quiz {
  --sweet-red:#9f315f;
  --sweet-deep:#582941;
  --sweet-rule:#bf7498;
  max-width:1000px;
  margin:auto;
  border:1px solid #a66a88;
  color:#48283c;
  background:linear-gradient(#fbd9e59c,#fbd9e59c),url('assets/backgrouds背景纹理/古早波点.webp') center/410px;
}
.sweet-mast {
  display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap;
  gap:4px 14px; padding:8px 15px; color:#fff0db; background:#752e55;
  border-bottom:4px double #f4b9c7;
  font:13px/1.4 V4JP,var(--text);
}
.sweet-mast b { font:12px/1.4 V4Pixel,monospace; letter-spacing:.06em }
.sweet-disclaimer { text-align:center; margin:0; padding:8px 12px; background:#fff4e3; color:#623c52; font-size:12px; border-top:1px dashed var(--sweet-rule) }
.sweet-intro { position:relative; isolation:isolate; padding:42px clamp(24px,12%,132px) 39px }
.sweet-clipping {
  position:relative; text-align:center; border:1px solid #bc6c91; outline:4px double #fff8ed; outline-offset:-8px;
  background:linear-gradient(#fff8eedb,#fff4dee8),url('assets/backgrouds背景纹理/墙纸底图.jpg') center/270px;
  box-shadow:5px 6px #94537750; padding:34px 28px 25px;
}
.sweet-clipping::before {
  content:""; position:absolute; left:9px; right:9px; top:8px; height:13px;
  background:#e695b6;
  mask:url('assets/laces蕾丝花边/条形蕾丝/Blackborder-lace-plotcaster.png') center top/auto 100% repeat-x;
}
.sweet-clipping h2 { margin:4px 0 6px; font:clamp(18px,3.5vw,37px)/1.4 V4JP,var(--text); color:var(--sweet-red); text-shadow:1px 2px #fff; overflow-wrap:anywhere }
.sweet-clipping strong { display:block; font:clamp(21px,3.9vw,39px)/1.25 V4CN,var(--text); color:var(--sweet-deep) }
.sweet-subtitle { margin:9px 0 13px; font:clamp(13px,2.3vw,19px)/1.5 V4CN,var(--text); color:#8b4768 }
.sweet-intro-copy { max-width:420px; margin:auto; font-size:14px; line-height:1.65 }
.sweet-intro-copy p { margin:0 0 9px }
.sweet-index { display:table; margin:14px auto; padding:4px 8px; border:1px dashed #bc7c9e; background:#f5e2ed; font:11px/1.6 V4JP,var(--text) }
.sweet-new,.sweet-check { position:absolute; background:#fff0bd; color:#7a3958; padding:4px 9px; font:14px/1.35 V4EN,V4JP,var(--text); border:1px solid #ac765c; box-shadow:2px 3px #69334b38; pointer-events:none }
.sweet-new { top:-16px; left:13px; transform:rotate(-10deg) }
.sweet-check { right:4%; bottom:24px; transform:rotate(8deg); background:#eddef5 }
.sweet-cutout { position:absolute; display:block; object-fit:contain; filter:drop-shadow(2px 5px 2px #8c466b49); pointer-events:none }
.sweet-parfait { width:clamp(69px,18%,165px); top:103px; left:1.5%; transform:rotate(-13deg) }
.sweet-soda { height:clamp(117px,23vw,252px); width:22%; right:-1%; top:86px; transform:rotate(9deg) }
.sweet-pudding { width:clamp(64px,15%,143px); bottom:20px; left:4%; transform:rotate(11deg) }
.sweet-heart { width:clamp(27px,7%,62px); top:40px; right:7%; transform:rotate(14deg) }
.sweet-bow { width:clamp(32px,8%,75px); right:11%; bottom:57px; transform:rotate(-18deg) }
.sweet-quiz button[data-sweet] { border-radius:3px; min-height:42px; padding:6px 14px; border-color:#a56a85; box-shadow:2px 3px #ad6e8e; background:#fff5dd; color:#63364e }
.sweet-quiz button.sweet-start,.sweet-quiz button:is([data-sweet=next],[data-sweet=export]) {
  background:linear-gradient(#ffecf5 0%,#f9c0da 45%,#eca4c5 55%,#f6bbd8 100%);
  border:2px solid #a44d7c; color:#6e2851; font-family:V4JP,V4CN,var(--text); text-shadow:0 1px #ffebf6;
}
.sweet-quiz button.sweet-start { font-size:18px; padding-inline:25px }
.sweet-quiz button[data-sweet]:active:not(:disabled) { transform:translate(1px,2px); box-shadow:1px 1px #ad6e8e }
.sweet-question,.sweet-result { padding:clamp(9px,3vw,26px) }
.sweet-progress { display:flex; flex-wrap:wrap; align-items:center; gap:3px 13px; margin:0 0 9px; padding:5px 10px; background:#fff4e4; border:1px dashed var(--sweet-rule); color:#772b59; font-size:12px }
.sweet-hearts { font-size:20px; line-height:1.3; letter-spacing:.1em }
.sweet-left { margin-inline-start:7px; font-size:11px }
.sweet-question-sheet { background:#fff8eb; border:1px solid var(--sweet-rule); box-shadow:3px 4px #a76c854f; padding:clamp(9px,2.7vw,22px); animation:sweet-slide .16s ease-out }
@keyframes sweet-slide { from {opacity:.7;transform:translateX(4px)} }
.sweet-question-head { display:flex; align-items:center; justify-content:space-between; gap:8px; border-bottom:2px dotted #d197b2; padding:0 0 12px; margin:0 0 12px }
.sweet-qcount { color:#fff7e6; background:#873359; display:inline-block; padding:4px 8px; font:13px V4Pixel,monospace }
.sweet-topic { font:13px V4JP,var(--text); margin-inline-start:8px; color:#843b67 }
.sweet-question-head h2 { font:clamp(19px,3.8vw,30px)/1.38 V4CN,var(--text); letter-spacing:0; margin:8px 0 0 }
.sweet-question-art { width:clamp(55px,13%,110px); height:clamp(51px,11vw,100px); object-fit:contain; transform:rotate(8deg) }
.sweet-options { min-width:0; padding:0; margin:0; border:0; display:grid; gap:8px }
.sweet-option { position:relative; display:block; margin:0; cursor:pointer; -webkit-tap-highlight-color:transparent }
.sweet-option input { position:absolute; width:1px; height:1px; opacity:0 }
.sweet-option-paper {
  display:grid; grid-template-columns:3.4em minmax(0,1fr) 1em; align-items:center; gap:8px; min-height:45px; padding:7px 10px;
  background:#fff3dc; border:1px solid #c492a2; box-shadow:2px 2px #ead0d0; line-height:1.45;
}
.sweet-option:nth-child(even) .sweet-option-paper { background:#f5e9f3 }
.sweet-option-paper b { color:#9b3866; font:14px V4JP,var(--text); white-space:nowrap }
.sweet-option:hover .sweet-option-paper { border-color:#88335e }
.sweet-option :focus-visible+.sweet-option-paper { outline:2px solid #913b67; outline-offset:2px }
.sweet-option :checked+.sweet-option-paper { background:#f9cde2; border-color:#a8497b; transform:translate(1px,1px); box-shadow:1px 1px #d99ab8 }
.sweet-picked { color:#a83070; visibility:hidden; transform:rotate(-14deg) }
.sweet-option :checked+.sweet-option-paper .sweet-picked { visibility:visible }
.sweet-actions { margin-top:15px; display:flex; flex-wrap:wrap; justify-content:space-between; gap:9px }
.sweet-result-card {
  display:grid; grid-template-columns:minmax(0,1fr) minmax(110px,.45fr); grid-template-areas:"title art" "copy copy"; gap:8px 16px;
  padding:clamp(12px,3vw,23px); color:var(--sweet-ink); border:4px double var(--sweet-ink); background:var(--sweet-paper);
  box-shadow:4px 5px #813b6553; animation:sweet-slide .2s ease-out;
}
.sweet-result[data-layout=left] .sweet-result-card { grid-template-columns:minmax(100px,.44fr) minmax(0,1fr); grid-template-areas:"art title" "copy copy" }
.sweet-result[data-layout=center] .sweet-result-card { grid-template-columns:1fr; grid-template-areas:"art" "title" "copy"; text-align:center }
.sweet-result[data-type=parfait] .sweet-result-card { background-image:radial-gradient(#fffbf1 2px,transparent 2px); background-size:17px 17px }
.sweet-result[data-type=pudding] .sweet-result-card { background-image:repeating-linear-gradient(0deg,#fff8e248 0 11px,transparent 11px 22px),repeating-linear-gradient(90deg,#fff8e248 0 11px,transparent 11px 22px) }
.sweet-result[data-type=soda] .sweet-result-card { background-image:radial-gradient(circle at center,#ffffee50 25%,transparent 27%); background-size:26px 26px }
.sweet-result[data-type=chocolate] .sweet-result-card { border-inline-start-width:13px; background-image:repeating-linear-gradient(120deg,#fff9e632 0 7px,transparent 7px 17px) }
.sweet-result[data-type=matcha] .sweet-result-card { outline:1px dashed var(--sweet-ink); outline-offset:-11px }
.sweet-result[data-type=blueberry] .sweet-result-card { background-image:radial-gradient(#fff6ecb0 1.7px,transparent 2px); background-size:12px 12px }
.sweet-result[data-type=tea] .sweet-result-card { background-image:linear-gradient(100deg,#fff5e889,transparent 70%) }
.sweet-result-title { grid-area:title; align-self:center }
.sweet-result-id { display:inline-block; margin:0; padding:2px 7px; background:var(--sweet-ink); color:#fff4e5; font:11px V4JP,sans-serif }
.sweet-result-title h2 { margin:5px 0 2px; font:clamp(25px,4.5vw,49px)/1.1 V4CN,var(--text); letter-spacing:0 }
.sweet-result-title span,.sweet-result-title b { display:block; font:13px V4JP,var(--text) }
.sweet-result-title b { margin-top:3px; font:12px V4Pixel,monospace }
.sweet-traits { display:inline-block; margin:8px 0 0; padding:3px 8px; border:1px dashed currentColor; background:#fff8eacc; font-size:12px }
.sweet-result-art { position:relative; grid-area:art; min-height:96px; align-self:center; justify-self:center; width:min(100%,195px); text-align:center }
.sweet-result-art .sweet-dessert { display:block; max-width:100%; height:clamp(100px,21vw,170px); object-fit:contain; margin:auto; transform:rotate(var(--sweet-angle)); filter:drop-shadow(1px 4px 2px #5b354344) }
.sweet-result-art .sweet-stamp { position:absolute; bottom:0; right:-4px; width:29%; height:40%; object-fit:contain; transform:rotate(11deg) }
.sweet-result-art>span { position:absolute; left:5%; top:0; font:22px V4JP,sans-serif }
.sweet-result[data-type=tea] .sweet-result-art { background:#fff8e8; border:4px solid #fff9eb; box-shadow:2px 3px #90576a4a; transform:rotate(4deg) }
.sweet-result-copy { grid-area:copy; text-align:left; background:#fff8ed; padding:clamp(10px,2.7vw,20px); margin:5px 0 0; border-block:1px dotted var(--sweet-ink) }
.sweet-result-copy h3 { margin:0 0 9px; font:clamp(14px,3vw,20px)/1.4 V4JP,sans-serif }
.sweet-result-copy p { margin:0 0 7px; line-height:1.6 }
.sweet-result-copy aside { border-left:3px solid var(--sweet-ink); margin-top:10px; padding:3px 9px; background:var(--sweet-paper) }
.sweet-result-copy aside p { margin:2px 0 0 }
.sweet-home-art { display:block; height:91px; width:auto; margin:4px auto 7px; transform:rotate(8deg); object-fit:contain }
@media(max-width:610px){
  .sweet-intro { padding:30px 12px 15px }
  .sweet-clipping { padding:30px 13px 20px }
  .sweet-clipping h2 { max-width:85%; margin-inline:auto }
  .sweet-intro-copy { padding-inline:10px; font-size:13px }
  .sweet-parfait { top:18px; left:-4px; width:47px }
  .sweet-soda { top:auto; bottom:33px; right:2px; height:72px; width:41px }
  .sweet-pudding { bottom:26px; left:2px; width:43px }
  .sweet-heart { top:25px; right:9px; width:24px }
  .sweet-bow,.sweet-check { display:none }
  .sweet-option-paper { grid-template-columns:2.7em minmax(0,1fr) 1em; gap:4px; padding:6px; font-size:13px }
  .sweet-option-paper b { font-size:12px }
}
@media(prefers-reduced-motion:reduce){
  .sweet-question-sheet,.sweet-result-card { animation:none }
}
