.wq-quiz-preview .greeting__left { position: relative; }
.wq-quiz-preview .greeting__btns-container { z-index: 3; }

.wq-snow-entry {
  position: absolute;
  top: calc(100% + 16px);
  left: 0;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  width: max-content;
  min-height: 44px;
  padding: 8px 14px;
  border: 1px solid #dabbe3;
  border-radius: 99px;
  background: #fdf6fc;
  color: #51266b;
  font: 700 14px/1.25 system-ui, sans-serif;
  cursor: pointer;
  transition: background-color .17s ease, scale .17s ease;
}

.wq-snow-entry:hover { background: #f8e9f9; }
.wq-snow-entry:active { scale: .96; }
.wq-snow-entry svg { width: 21px; height: 21px; color: #b92d78; }

.wq-snow-layer {
  position: fixed;
  inset: 0;
  overflow: clip;
  pointer-events: none;
  z-index: 2;
}

.wq-snow-layer canvas { display: block; width: 100%; height: 100%; }

.wq-snow-layer canvas[hidden] { display: none; }

.home-page > .wq-snow-tiles {
  position: absolute;
  inset: 0;
  overflow: hidden;
  overflow: clip;
  pointer-events: none;
  z-index: 2;
}

.wq-snow-tiles canvas {
  position: absolute;
  inset-inline: 0;
  display: block;
  width: 100%;
}

@media (max-width: 1023px) {
  .wq-quiz-preview .home-page { position: relative; }
}


.wq-snow-catching { cursor: pointer; }

.wq-snow-flake {
  position: absolute;
  top: 0;
  left: 0;
  display: grid;
  place-items: center;
  width: 46px;
  aspect-ratio: 1;
  appearance: none;
  padding: 3px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
  pointer-events: none;
  clip-path: inset(50%);
}

.wq-snow-flake:focus-visible { clip-path: none; background: #fffc; }
.wq-snow-flake .flake-art { width: 100%; filter: drop-shadow(0 1px 1px #49316b55); }

.wq-snow-dialog {
  display: none;
  position: fixed;
  inset: 0;
  width: min(1080px, calc(100vw - 30px));
  height: fit-content;
  max-width: none;
  max-height: none;
  margin: auto;
  padding: 0;
  overflow: hidden;
  border: 1px solid #ded2ec;
  border-radius: 22px;
  background: #f3f3fc;
  color: #21194b;
  font-family: system-ui, sans-serif;
  box-shadow: 0 25px 100px #19102e4f;
}

.wq-snow-dialog[open] { display: grid; }
.wq-snow-dialog::backdrop { background: #18102f8c; }

.wq-snow-dialog--workshop { height: min(820px, calc(100dvh - 30px)); }
.wq-snow-dialog--workshop[open] { grid-template-rows: auto minmax(0, 1fr); }
.wq-snow-dialog--detail { width: min(350px, calc(100vw - 30px)); }

.wq-snow-dialog__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 14px 8px 20px;
  border-bottom: 1px solid #e0d6ee;
}

.wq-snow-dialog__bar h2 { margin: 0; color: #21194b; font: 760 clamp(16px, 2.8vw, 24px)/1.15 system-ui, sans-serif; }

.wq-snow-close {
  flex: 0 0 44px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #49336b;
  font: 400 27px/1 system-ui, sans-serif;
  cursor: pointer;
}

.wq-snow-close:hover { background: #e9e1fa; }

.wq-snow-frame { width: 100%; height: 100%; display: block; border: 0; background: #f3f3fc; }

.wq-snow-detail {
  padding: 13px 16px 16px;
  display: grid;
  gap: 12px;
  color: #493767;
  font: 500 14px/1.4 system-ui, sans-serif;
}

.wq-snow-detail__art {
  display: grid;
  place-items: center;
  min-height: 160px;
  border-radius: 14px;
  background: radial-gradient(ellipse at center, #593b90, #25183f);
}

.wq-snow-detail__art svg {
  width: 132px;
  filter: drop-shadow(0 0 15px #dfceff69);
}

.wq-snow-detail__signature {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 5px 12px;
  margin: 0;
  padding: 10px 12px;
  border-radius: 11px;
  background: #ebe5f9;
}

.wq-snow-detail__signature[hidden] { display: none; }
.wq-snow-detail__signature dt { color: #59477c; }
.wq-snow-detail__signature dd { margin: 0; overflow-wrap: anywhere; font-weight: 700; }

.wq-snow-detail__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 12px;
}

.wq-snow-detail__make {
  flex: 1 1 auto;
  min-height: 44px;
  padding: 6px 14px;
  border: 0;
  border-radius: 10px;
  background: #6342ce;
  color: white;
  font: 700 14px/1.25 system-ui, sans-serif;
  cursor: pointer;
}

.wq-snow-detail__report {
  min-height: 40px;
  margin-inline-start: auto;
  padding-inline: 4px;
  border: 0;
  background: transparent;
  color: inherit;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
  text-decoration: underline;
  cursor: pointer;
}
.wq-snow-detail__report:disabled { cursor: default; }
.wq-snow-detail__report-status { margin: 0; }
.wq-snow-detail__report-status:empty { display: none; }

.wq-snow-entry:focus-visible, .wq-snow-flake:focus-visible,
.wq-snow-close:focus-visible, .wq-snow-detail__make:focus-visible,
.wq-snow-detail__report:focus-visible {
  outline: 2px solid #5a37b3;
  outline-offset: 2px;
}

.wq-quiz-preview .wq-snow-dialog {
  border-color: #d8e4ec;
  border-radius: 28px;
  background: #edf2f5;
  color: #0b3044;
  font-family: Inter, system-ui, sans-serif;
  box-shadow: 0 25px 90px #072b4460;
}

.wq-quiz-preview .wq-snow-dialog::backdrop { background: #092d4696; }
.wq-quiz-preview .wq-snow-dialog--workshop {
  width: min(1100px, calc(100vw - 30px));
  height: min(780px, calc(100dvh - 30px));
}
.wq-quiz-preview .wq-snow-dialog__bar {
  min-height: 66px;
  gap: 12px;
  padding-inline: 16px;
  border-color: #dce6ed;
  background: white;
}

.wq-snow-dialog__logo { width: 42px; height: 40px; object-fit: contain; }
.wq-quiz-preview .wq-snow-dialog__bar h2 {
  flex: 1;
  color: #0b3044;
  font: 800 clamp(17px, 2.4vw, 25px)/1.13 "Inter Tight", Inter, system-ui, sans-serif;
  letter-spacing: -.025em;
}

.wq-quiz-preview .wq-snow-close { border-radius: 50%; background: #edf4f8; color: #0b3044; }
.wq-quiz-preview .wq-snow-close:hover { background: #dfeaf2; }
.wq-quiz-preview .wq-snow-frame { background: #edf2f5; }
.wq-quiz-preview .wq-snow-detail { color: #0b3044; font-family: Inter, system-ui, sans-serif; }
.wq-quiz-preview .wq-snow-detail__art { background: radial-gradient(ellipse at 30% 15%, #216395, transparent 65%), #0a2e49; }
.wq-quiz-preview .wq-snow-detail__signature { background: #eef5f9; }
.wq-quiz-preview .wq-snow-detail__signature dt { color: #456175; }
.wq-quiz-preview .wq-snow-detail__make { border-radius: 999px; background: #d30d57; font-family: inherit; }
.wq-quiz-preview .wq-snow-detail__make:hover { background: #b30f4d; }
.wq-quiz-preview :is(.wq-snow-close, .wq-snow-detail__make, .wq-snow-detail__report):focus-visible { outline-color: #ba1555; }

@media (max-width: 1023px) {
  .wq-snow-entry { position: relative; top: auto; left: auto; margin-top: 13px; }
}

@media (max-width: 480px) {
  .wq-snow-dialog--workshop { width: calc(100vw - 14px); height: calc(100dvh - 20px); border-radius: 17px; }
  .wq-quiz-preview .wq-snow-dialog--workshop {
    width: calc(100vw - 12px);
    height: calc(100dvh - 20px);
    border-radius: 20px;
  }
  .wq-quiz-preview .wq-snow-dialog__bar { min-height: 60px; gap: 8px; padding-inline: 10px; }
  .wq-snow-dialog__logo { width: 32px; height: 32px; }
}

@media (prefers-reduced-motion: reduce) {
  .wq-snow-entry { transition: none; }
}
