#pack-dialog {
  --pack-light: #9deaff;
  --pack-mid: #5376ec;
  --pack-deep: #171e5a;
  max-width: none;
  max-height: none;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  border-radius: 0;
  margin: 0;
  overflow: hidden;
  color: #fff;
  background: #07102e;
}
#pack-dialog[open] { display: grid; place-items: center; }
#pack-dialog.pack-finale {
  --pack-light: #e3f4ff;
  --pack-mid: #537fc7;
  --pack-deep: #203d79;
  background: #0c204b;
}
.pack-scene { position: absolute; inset: 0; overflow: hidden; isolation: isolate; pointer-events: none; }
.pack-scene::before, .pack-scene::after {
  content: '';
  position: absolute;
  inset: -45%;
  background: radial-gradient(ellipse at center, var(--pack-mid) 0%, transparent 42%);
  opacity: .55;
}
.pack-scene::after {
  background: repeating-conic-gradient(from 19deg, transparent 0 13deg, var(--pack-light) 14deg, transparent 16deg 29deg);
  mask-image: radial-gradient(ellipse, #000 0, #0007 24%, transparent 47%);
  opacity: .23;
  animation: beams 3.3s linear both;
}
.pack-floor {
  position: absolute;
  inset: 62% -28% -65%;
  background: repeating-linear-gradient(90deg, transparent 0 8%, #a7c9ff40 8.1% 8.3%),
    repeating-linear-gradient(0deg, #d8e8ff40 0 1px, transparent 2px 12%);
  transform: perspective(190px) rotateX(48deg);
  mask-image: linear-gradient(#000, transparent 56%);
}
.pack-object, .pack-reward {
  position: absolute;
  inset: 50% auto auto 50%;
  translate: -50% -50%;
  z-index: 2;
}
.pack-object {
  width: clamp(137px, 32vw, 206px);
  aspect-ratio: .73;
  color: #fff;
  filter: drop-shadow(0 0 27px var(--pack-mid));
  animation: suspense 1.16s cubic-bezier(.2,.7,.26,1) both;
}
.pack-half {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  text-align: center;
  gap: 10px;
  background: linear-gradient(118deg, #ffffff00 19%, #ffffff70 32%, #ffffff00 49%),
    repeating-linear-gradient(120deg, transparent 0 11px, #ffffff14 12px 13px),
    linear-gradient(145deg, var(--pack-mid), var(--pack-deep) 48%, var(--pack-mid));
  border: 1px solid var(--pack-light);
  border-block: 9px double var(--pack-light);
  border-radius: 10px;
}
.pack-half img { width: 72%; max-width: 123px; height: auto; filter: brightness(0) invert(1); }
.pack-half small { font-size: .72rem; font-weight: 700; letter-spacing: .15em; color: #fff; }
.pack-number { font-size: clamp(3.4rem, 9vw, 5.05rem); font-weight: 800; line-height: 1; }
.pack-left { clip-path: polygon(0 0, 54% 0, 47% 20%, 55% 29%, 47% 47%, 53% 58%, 46% 74%, 52% 100%, 0 100%); animation: tear-left .64s 1.1s ease-out both; }
.pack-right { clip-path: polygon(54% 0, 100% 0, 100% 100%, 52% 100%, 46% 74%, 53% 58%, 47% 47%, 55% 29%, 47% 20%); animation: tear-right .64s 1.1s ease-out both; }
.pack-glint {
  z-index: 1;
  position: absolute;
  inset: 50% auto auto 50%;
  translate: -50% -50%;
  width: min(78vw, 720px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, var(--pack-light), var(--pack-mid) 18%, transparent 64%);
  animation: glint 1.52s .98s ease-out both;
}
.pack-reward {
  display: grid;
  justify-items: center;
  place-content: center;
  gap: 8px;
  text-align: center;
  width: min(65vw, 198px);
  min-height: 210px;
  padding: 24px;
  border: 2px solid var(--pack-light);
  border-radius: 24px 6px 24px 6px;
  background: radial-gradient(ellipse at top, var(--pack-mid), var(--pack-deep) 77%);
  box-shadow: 0 0 45px var(--pack-mid), inset 0 0 24px #ffffff45;
  animation: reward-in 1s 1.22s cubic-bezier(.16,1,.3,1) both;
}
.pack-finale .pack-reward {
  width: min(80vw, 520px);
  aspect-ratio: 2.15;
  min-height: 0;
  padding: 22px 42px;
  color: #123876;
  border-radius: 9px;
  background: linear-gradient(115deg, #b8d4f9, #eef7ff 44%, #d7e8fc 78%, #a5c5f2);
  outline: 1px solid #4779b9;
  outline-offset: -9px;
}
.reveal-symbol { color: var(--pack-light); font-size: clamp(2.4rem, 9vw, 4.6rem); line-height: 1; }
.pack-finale .reveal-symbol { color: #1b4c9c; }
.reveal-caption { font-size: clamp(1rem, 4.4vw, 1.85rem); font-weight: 800; line-height: 1.12; margin: 0; }
.pack-confetti { position: absolute; inset: 0; z-index: 1; }
.pack-confetti > * {
  position: absolute;
  top: 50%;
  left: 50%;
  font-size: var(--size);
  animation: pack-scatter 1.65s calc(1.06s + var(--delay)) cubic-bezier(.11,.6,.3,1) both;
}
.logo-piece {
  width: var(--size);
  height: auto;
  filter: drop-shadow(0 1px 3px #08142e8c);
}
.sprinkle { width: calc(var(--size) * .58); height: 3px; border-radius: 2px; background: var(--piece-color); }
.pack-controls { position: absolute; z-index: 3; bottom: max(22px, env(safe-area-inset-bottom)); inset-inline: 12px; text-align: center; }
.pack-controls button { color: #fff; background: #10204b; border: 1px solid #b3c8f4; padding: 9px 16px; border-radius: 50px; font-size: .875rem; }
.pack-label { position: absolute; inset: max(18px, env(safe-area-inset-top)) 15px auto; text-align: center; z-index: 3; margin: 0; font-size: .94rem; color: #f0f4ff; }
@keyframes suspense {
  0% {transform: translateY(30vh) rotate(-11deg) scale(.4); opacity: 0}
  53% {transform: translateY(-9px) rotate(6deg) scale(1.02); opacity: 1}
  69% {transform: rotate(-3deg) scale(1.04)}
  84% {transform: rotate(2deg) scale(1.07)}
  100% {transform: rotate(0) scale(1.12)}
}
@keyframes tear-left {0% {transform: none; opacity:1} 100% {transform: translate(-185%, 19%) rotate(-65deg); opacity:0}}
@keyframes tear-right {0% {transform: none; opacity:1} 100% {transform: translate(185%, 19%) rotate(65deg); opacity:0}}
@keyframes beams {0% {rotate:-15deg; scale:.85} 46% {opacity:.65} 100% {rotate:15deg; scale:1.1; opacity:.23}}
@keyframes glint {0% {opacity:0; scale:.25} 26% {opacity:.78; scale:1} 100% {opacity:.2; scale:1.33}}
@keyframes reward-in {
  0% {opacity:0; transform: perspective(650px) rotateY(-79deg) scale(.28)}
  58% {opacity:1; transform: perspective(650px) rotateY(11deg) scale(1.09)}
  100% {opacity:1; transform: perspective(650px) rotateY(0) scale(1)}
}
@keyframes pack-scatter {
  0% {transform: translate(-50%, -50%) scale(.3); opacity:0}
  23% {opacity:1}
  68% {opacity:.96}
  100% {transform: translate(var(--x), var(--y)) rotate(var(--spin)); opacity:0}
}
.tip-top #tip-intro { margin: 0; line-height: 1.7; }
.prompt-box #tip-prompt { white-space: pre-wrap; }
.tip-case-links { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 17px; }
.tip-case-links[hidden], #golden-ticket[hidden], #claim-ticket[hidden] { display: none; }
.tip-case-links a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 8px 13px;
  border: 1px solid #92b4e0; border-radius: 9px; background: #fff; color: #173c77;
  font-size: .875rem; font-weight: 650; line-height: 1.4; text-underline-offset: .19em;
}
.tip-case-links a:hover { background: #e6f3ff; border-color: #1b4c9c; }
#golden-ticket {
  margin: 0 0 25px;
  border: 1px solid #85a8d9;
  border-radius: 15px;
  background: linear-gradient(120deg, #f6fbff, #e2efff 65%, #d9e8fb);
  color: #182e52;
  padding: clamp(17px, 4vw, 27px);
}
#golden-ticket h3 { margin: 5px 0 10px; font: 700 clamp(2rem, 6vw, 3.1rem)/1.12 var(--font); }
#golden-ticket p { margin: 0 0 10px; line-height: 1.65; }
#golden-ticket .ticket-kicker { font-size: .875rem; font-weight: 700; letter-spacing: .08em; }
#golden-ticket .ticket-form-note { font-size: .875rem; }
.ticket-fields { display: grid; gap: 8px 15px; grid-template-columns: minmax(0, 1fr) auto; align-items: end; margin: 18px 0 14px; }
.ticket-fields label { display: grid; gap: 5px; font-weight: 600; font-size: .875rem; }
.ticket-fields input { width: 100%; min-height: 43px; border: 1px solid #668cb6; border-radius: 8px; padding: 8px 10px; background: #fff; color: #182e52; font: inherit; font-size: 1rem; }
.ticket-fields input:focus-visible, .ticket-actions :focus-visible { outline: 3px solid #1b4c9c; outline-offset: 3px; }
.ticket-fields .ticket-form-note { margin: 0 0 6px !important; }
.ticket-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 15px; }
.ticket-actions button { border: 1px solid #1b4c9c; border-radius: 7px; background: #1b4c9c; color: #fff; min-height: 42px; padding: 7px 12px; font-size: .875rem; font-weight: 600; }
#claim-ticket { font-weight: 700; font-size: .875rem; }
.avatar-frame { position: relative; display: inline-block; margin: 12px auto 13px; }
.contact-profile .avatar-frame img { margin: 0; }
.santa-hat { position: absolute; width: 75px; height: 53px; top: -23px; left: 27px; transform: rotate(-11deg) scale(.64); transform-origin: top left; filter: drop-shadow(0 3px 3px #58132648); pointer-events: none; }
.hat-red { position: absolute; inset: 0 3px 5px 2px; clip-path: polygon(5% 88%, 17% 52%, 30% 22%, 45% 10%, 61% 8%, 81% 14%, 95% 31%, 99% 50%, 83% 44%, 74% 35%, 79% 57%, 91% 91%); background: linear-gradient(125deg,#fc6f74,#d72635 42%,#8f0d28); }
.hat-trim, .hat-pom { position: absolute; display: block; background: radial-gradient(ellipse at 38% 30%,#fff 38%,#dce6f2 94%); }
.hat-trim { width: 63px; height: 13px; border-radius: 9px; bottom: 3px; left: 3px; transform: rotate(1deg); }
.hat-pom { width: 17px; height: 17px; border-radius: 50%; top: 18px; right: -4px; }
.koploper-float, .emergency-float {
  position: fixed; z-index: 3; right: max(16px, env(safe-area-inset-right));
  bottom: max(18px, env(safe-area-inset-bottom)); display: inline-flex; align-items: center;
  gap: 8px; min-height: 46px; padding: 6px 13px 6px 6px; border: 1px solid #b4d8fd;
  border-radius: 999px; background: #f5faff; color: #152e62; box-shadow: 0 5px 21px #09204c45;
  font-size: .75rem; font-weight: 750; letter-spacing: .055em; text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease;
}
.koploper-mark { display: grid; place-items: center; width: 33px; height: 33px; border-radius: 50%; background: #1b4c9c; color: #fff2bc; font-size: 1.23rem; line-height: 1; }
.koploper-float:hover, .koploper-float:focus-visible, .emergency-float:hover, .emergency-float:focus-visible { transform: translateY(-3px); box-shadow: 0 8px 28px #09204c55; }
@media (prefers-reduced-motion: reduce) { .koploper-float, .emergency-float { transition: none; } }
@media (max-width: 520px) {
  .ticket-fields { grid-template-columns: 1fr; }
  .ticket-fields .ticket-form-note { margin-bottom: 0 !important; }
}


body {
  min-height: 100vh; min-height: 100svh;
  background: radial-gradient(ellipse at 19% 29%, #50bded38 0, transparent 45%),
    radial-gradient(ellipse at 91% 3%, #50bded2e 0, transparent 46%),
    linear-gradient(145deg, var(--blue), var(--navy) 78%);
}
.winter-world { background: none; overflow: clip; }
.koploper-float { cursor: pointer; }
#koploper-dialog { max-width: 500px; }
.koploper-content { padding: clamp(24px, 6vw, 42px); }
.koploper-content h2 { margin: 12px 0 8px; font-size: clamp(1.5rem, 5vw, 2rem); }
.koploper-content p { line-height: 1.65; }
#koploper-embed { margin-top: 22px; min-height: 47px; }
.koploper-content .koploper-note { margin: 14px 0 0; color: #4a6487; font-size: .875rem; }
#help-dialog {
  position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none;
  margin: 0; border-radius: 0; overflow: auto; overscroll-behavior: contain;
  color: #17294b; background: #eef6ff; animation: none;
}
#help-dialog[open] { display: grid; }
#help-dialog::backdrop { background: #eef6ff; backdrop-filter: none; }
body:has(#help-dialog[open]) { overflow: hidden; }
#help-dialog .help-content {
  align-self: center; width: min(100%, 790px); margin-inline: auto;
  padding: max(48px, calc(38px + env(safe-area-inset-top))) clamp(22px, 5vw, 37px) 24px;
}
#help-dialog .help-content .eyebrow { color: #174e90; line-height: 1.5; margin: 0 0 10px; }
#help-dialog .help-content h2 { font-size: clamp(2.2rem, 7vw, 3.75rem); line-height: 1.12; color: #102b56; margin: 0 0 16px; }
#help-dialog .help-content ol { color: #17294b; margin-block: 12px 15px; padding-left: 1.25rem; }
#help-dialog .help-content li { color: #17294b; margin-bottom: 10px; line-height: 1.55; font-size: 1.0625rem; }
#help-dialog .help-content strong { display: inline; }
#help-dialog .rules-safety { margin: 0; line-height: 1.55; color: #122a52; background: #d8ebff; border: 1px solid #87b6e8; border-radius: 12px; padding: 14px 16px; }
#help-dialog .close-button { color: #153c72; background: #d8eaff; top: max(15px, env(safe-area-inset-top)); right: max(16px, env(safe-area-inset-right)); }
.help-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin-top: 23px; }
.help-actions .primary-button { background: #1b4c9c; color: #fff; }
.rules-demo { min-height: 44px; border: 0; background: none; color: #164e91; text-decoration: underline; text-underline-offset: .2em; padding: 6px 2px; }
#golden-ticket .ticket-signature { font: 2rem/1.15 "Pinyon Script", "Segoe Script", cursive; margin-top: 5px; }
.ticket-fields { grid-template-columns: minmax(0, 1fr); }

@media (min-width: 1000px) {
  .winter-world { min-height: 100svh; display: flex; flex-direction: column; justify-content: center; padding-bottom: 28px; }
  .winter-landscape { height: 55px; }
  .hero {
    min-height: 0;
    margin: 0 auto;
    padding: clamp(12px, 2.5svh, 27px) 155px 12px;
  }
  .hero .eyebrow { margin-bottom: 9px; }
  .hero h1 {
    font-size: clamp(2.25rem, 5.8svh, 4.25rem);
    margin-bottom: 7px;
  }
  .hero h1 br, .hero-copy > p:last-child br { display: none; }
  .hero-copy > p:last-child { font-size: .875rem; line-height: 1.42; }
  .hero-decoration { top: -10px; transform: scale(.55); }
  .right-decoration { right: 82px; }
  .calendar-area {
    --door-height: clamp(47px, calc((100svh - 410px) / 4), 134px);
    width: 100%; max-width: 1200px;
  }
  .calendar-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 9px; }
  .door, .door-final { height: var(--door-height); }
  .door-tail, .door-final { grid-column: auto; }
  .door-number, .christmas-door .door-number {
    font-size: clamp(1.5rem, calc(var(--door-height) * .41), 3.2rem);
    left: 12px;
    top: 8px;
  }
  .door-label, .door.featured .door-label { left: 12px; bottom: 7px; font-size: .6875rem; }
  .door-handle { display: none; }
  .door-symbol, .pattern-star .door-symbol, .christmas-door .door-symbol {
    font-size: clamp(1.25rem, calc(var(--door-height) * .42), 3.25rem);
    right: 8px;
    bottom: 5px;
  }
  .christmas-door .door-label { display: none; }
  .christmas-door .final-copy {
    inset: auto 8px 7px 12px;
    z-index: 2;
    font-size: .75rem;
    line-height: 1.2;
  }
  .christmas-door .final-copy > span { font-size: .6875rem; margin-top: 3px; }
  .door .inside { gap: 2px; }
  .calendar-toolbar { margin-block: 2px 12px; }
  .preview-banner { padding-block: 6px; margin-bottom: 9px; }
  .calendar-bottom { justify-content: center; align-items: center; gap: 9px 18px; margin-top: 13px; }
  .calendar-bottom .demo-button { min-height: 38px; padding-block: 7px; }
  .countdown { margin: 0 auto 11px; }
  .countdown h2 { margin-bottom: 6px; font-size: 1rem; }
  .countdown-clock { width: min(100%, 340px); gap: 7px; }
  .countdown-clock > div { padding: 3px 4px 5px; }
  .countdown-clock span { font-size: 1.5rem; margin-bottom: 0; }
  .before-start .calendar-doors { max-height: none; overflow: visible; mask-image: none; }
  .before-start .calendar-grid { filter: blur(2px); }
}

@media (min-width: 1200px) {
  .calendar-area { --door-height: clamp(58px, calc((100svh - 420px) / 3), 148px); }
  .calendar-grid { grid-template-columns: repeat(8, minmax(0, 1fr)); }
}

@media (min-width: 1000px) and (max-height: 680px) {
  .hero h1 { font-size: clamp(1.85rem, 5.2svh, 2.35rem); }
  .hero .eyebrow { margin-bottom: 5px; }
  .hero-decoration { top: -35px; transform: scale(.35); }
  .christmas-door .door-number { top: 5px; font-size: 1.4rem; }
  .christmas-door .final-copy > span { margin-top: 2px; }
}

.hero { isolation: isolate; }
.hero-copy { position: relative; z-index: 1; min-width: 0; }
.hero-brand { display: inline-block; margin-bottom: 12px; padding: 4px; }
.hero-brand .logo { width: 142px; height: auto; filter: brightness(0) invert(1); }
.hero-decoration { pointer-events: none; z-index: 0; }
.calendar-controls { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 6px 14px; }
.calendar-controls .text-button { min-height: 38px; color: #ecf5ff; padding: 5px; }
.calendar-controls .text-button:hover { text-decoration: underline; }
.door-symbol { z-index: 0; }
.door-final .final-copy { z-index: 2; }
.christmas-door .door-face { background: linear-gradient(125deg, #ebf6ff, #a8c7ee); color: #1a386b; border-color: #daeeff; }
.christmas-door { box-shadow: 0 7px 0 #101f504d, 0 0 28px #98bdf138; }
.christmas-door .door-symbol { color: #3269b0; opacity: .21; top: 8px; bottom: auto; }
.christmas-special .tip-top { background: radial-gradient(ellipse at 20% 0, #f1f8ff, transparent 75%), #dcecff; }
.christmas-special .tip-emblem, .christmas-special .tip-top .eyebrow { color: #1b4c9c; text-shadow: none; }
#golden-ticket .certificate-support { padding: 10px 12px; border: 1px solid #9cbbdf; border-radius: 8px; background: #f6fbff; }
.certificate-support a { display: inline-block; color: #1b4c9c; font-weight: 700; white-space: nowrap; }
@media (min-width: 780px) {
  .hero { display: grid; grid-template-columns: minmax(76px, 1fr) minmax(0, 820px) minmax(76px, 1fr); align-items: center; column-gap: 24px; padding-inline: 28px; }
  .hero-decoration { position: relative; inset: auto; place-self: center; margin: -75px -35px; transform: scale(.47); }
}
@media (max-width: 779px) {
  .hero { min-height: 0; padding-block: 34px 22px; }
  .hero-decoration, .title-spark { display: none; }
}
@media (min-width: 1000px) and (max-height: 680px) {
  .hero-decoration { transform: scale(.35); }
  .hero-brand { margin-bottom: 5px; }
}

.emergency-float {
  left: max(16px, env(safe-area-inset-left)); right: auto; cursor: pointer;
  border-color: var(--ice); background: #fff; color: var(--navy); letter-spacing: .02em;
}
.emergency-mark {
  display: grid; place-items: center; flex: 0 0 33px; width: 33px; height: 33px;
  border-radius: 50%; background: var(--blue); color: #fff; font-size: 1rem; line-height: 1;
}
#emergency-dialog { max-width: 420px; }
.emergency-content { padding: clamp(23px, 6vw, 38px); text-align: center; }
.emergency-content h2 { margin: 0 0 10px; color: var(--blue); font-size: clamp(1.6rem, 5vw, 2rem); }
.emergency-content p { margin: 0; color: var(--navy); line-height: 1.6; }
.emergency-glass {
  display: inline-grid; justify-items: center; gap: 10px; width: min(100%, 230px); margin: 18px auto 0;
  border: 1px solid var(--ice); border-radius: 12px; background: #f5fbff; color: var(--blue);
  padding: 10px 12px 12px; font-size: .9375rem; font-weight: 700;
}
.emergency-glass:hover { background: #e4f4fd; }
.emergency-glass[hidden], #emergency-number[hidden] { display: none; }
.glass-case {
  position: relative; isolation: isolate; display: grid; place-items: center; width: 100%; min-height: 84px;
  border: 3px solid var(--blue); border-radius: 8px; background: linear-gradient(115deg, var(--sky), var(--blue) 80%); box-shadow: inset 0 0 18px #222b5575;
}
.glass-phone { font-size: 2.15rem; }
.glass-pane { position: absolute; inset: 0; pointer-events: none; }
.glass-pane i {
  position: absolute; inset: 0; background: linear-gradient(133deg, #fff9, #fff1 47%, #fff7 48%, #fff3 54%);
  transition: transform .53s cubic-bezier(.17,.73,.49,1), opacity .52s;
}
.glass-pane i:nth-child(1) { clip-path: polygon(0 0,100% 0,56% 54%); --shard-x: 9px; --shard-y: -26px; --shard-rotation: -12deg; }
.glass-pane i:nth-child(2) { clip-path: polygon(100% 0,100% 100%,56% 54%); --shard-x: 28px; --shard-y: 11px; --shard-rotation: 23deg; }
.glass-pane i:nth-child(3) { clip-path: polygon(100% 100%,0 100%,56% 54%); --shard-x: -8px; --shard-y: 29px; --shard-rotation: -11deg; }
.glass-pane i:nth-child(4) { clip-path: polygon(0 100%,0 0,56% 54%); --shard-x: -28px; --shard-y: 4px; --shard-rotation: 16deg; }
.emergency-glass.is-broken .glass-pane i { transform: translate(var(--shard-x), var(--shard-y)) rotate(var(--shard-rotation)); opacity: 0; }
.emergency-call {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; margin-top: 20px;
  min-height: 48px; padding: 9px 16px; border-radius: 12px; background: var(--blue); color: #fff;
  font-size: clamp(1.1rem, 5vw, 1.4rem); font-weight: 750; text-underline-offset: .2em; white-space: nowrap;
}

.hero-brand-wrap { position: relative; display: inline-block; }
.test-access {
  position: absolute; top: 50%; left: 100%; transform: translateY(-50%);
  width: 32px; height: 32px; margin-top: -6px; padding: 0; border: 0;
  border-radius: 50%; background: transparent; display: grid; place-items: center;
}
.test-access::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: #a7dcf8; opacity: .55; }
.test-access:hover::before, .test-access:focus-visible::before { opacity: 1; }
#test-dialog { max-width: 390px; }
.test-form { display: grid; gap: 12px; padding: 30px; }
.test-form h2 { color: var(--blue); margin: 0 0 6px; }
.test-form label { font-weight: 600; }
.test-form input { padding: 9px 11px; border: 1px solid #7e9ec6; border-radius: 7px; font: inherit; }
.test-form p { margin: 0; color: #7e2431; font-size: .875rem; }
.test-form .primary-button { justify-self: start; }

.hero-linkedin {
  display: grid; justify-items: center; place-self: center;
  width: max-content; max-width: 100%; margin-top: 8px; padding: 16px 4px 4px;
  border-radius: 9px;
}
.linkedin-gift {
  position: relative; display: grid; place-items: center; width: 60px; height: 58px;
  border-radius: 9px; border: 1px solid var(--ice); background: #fff;
  box-shadow: 0 6px 17px #1025546b; transition: transform .2s ease;
}
.hero-linkedin:hover .linkedin-gift, .hero-linkedin:focus-visible .linkedin-gift { transform: translateY(-3px) rotate(-4deg); }
.linkedin-logo-crop { --linkedin-logo-size: 36px; display: block; width: var(--linkedin-logo-size); height: var(--linkedin-logo-size); overflow: hidden; }
.linkedin-logo-crop img { display: block; width: auto; max-width: none; height: 100%; }
.linkedin-bow {
  position: absolute; left: 50%; top: -10px; width: 9px; height: 9px; transform: translateX(-50%);
  border-radius: 50%; background: #e3f5ff; box-shadow: 0 2px 4px #1a42836b;
}
.linkedin-bow::before, .linkedin-bow::after {
  content: ""; position: absolute; top: -4px; width: 15px; height: 10px;
  border: 3px solid var(--ice); background: #f4fbff27;
}
.linkedin-bow::before { right: 4px; border-radius: 70% 75% 12% 75%; transform: rotate(17deg); }
.linkedin-bow::after { left: 4px; border-radius: 75% 70% 75% 12%; transform: rotate(-17deg); }
@media (max-width: 779px) {
  .hero { display: flex; flex-direction: column; align-items: center; }
  .hero-linkedin { order: 1; margin-top: 12px; padding: 10px 6px 3px; }
  .linkedin-gift { width: 43px; height: 40px; }
  .linkedin-logo-crop { --linkedin-logo-size: 26px; }
  .linkedin-bow { scale: .72; top: -8px; }
}
