@font-face {
  font-family: "Christmas Workshop";
  src: url("../fonts/ChristmasWorkshop-Regular.ttf") format("truetype");
  /* block: zeigt nichts bis Font geladen (kein Schriftart-Flash beim Wechsel) */
  font-display: block;
}

.hec-app {
  --hec-navy: #160e68;
  --hec-green: #258958;
  --hec-yellow: #f9e25a;
  --hec-beige: #f7e8cb;
  --hec-text: #31274f;
  --hec-muted: #6b5d84;
  --hec-name-color: #000000;
  --hec-shadow: 0 24px 60px rgba(10, 20, 52, 0.22);
  --hec-viewport-height: 100dvh;
  --hec-keyboard-offset: 0px;
  --hec-preview-name-scale: 1;
  --hec-finish-name-scale: 1;
  position: relative;
  /* Full-bleed: aus dem Theme-Container ausbrechen, damit der Hintergrund
     den ganzen Viewport ausfüllt */
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  height: var(--hec-viewport-height);
  min-height: var(--hec-viewport-height);
  overflow: hidden;
  border-radius: 0;
  padding: max(16px, env(safe-area-inset-top)) 12px max(16px, env(safe-area-inset-bottom));
  color: var(--hec-text);
  isolation: isolate;
  background:
    radial-gradient(circle at 10% 10%, rgba(255,255,255,0.22), transparent 24%),
    radial-gradient(circle at 84% 16%, rgba(37,137,88,0.14), transparent 20%),
    linear-gradient(180deg, var(--hec-navy) 0%, #31538f 48%, var(--hec-beige) 100%);
  font-family: "Avenir Next", "Segoe UI", sans-serif;
  -webkit-text-size-adjust: 100%;
  touch-action: manipulation;
}

/* Fallback für Browser ohne dvh (alte iOS) */
@supports not (height: 100dvh) {
  .hec-app {
    --hec-viewport-height: 100svh;
  }
}

html.hec-no-scroll,
body.hec-no-scroll {
  position: fixed;
  inset: 0;
  width: 100%;
  overflow: hidden;
  touch-action: none;
  overscroll-behavior: none;
}

.hec-app * {
  box-sizing: border-box;
}

.hec-app button,
.hec-app input,
.hec-app a {
  -webkit-tap-highlight-color: transparent;
  text-transform: none !important;
  font-variant-caps: normal !important;
  letter-spacing: normal !important;
}

.hec-snow {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  /* z-index 5: über den Screens damit Schneeflocken auch ueber die Card fallen.
     Mit pointer-events:none wird kein Klick blockiert. */
  z-index: 5;
}

.hec-flake {
  position: absolute;
  top: -8%;
  width: 16px;
  height: 16px;
  background: center / contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3v18'/%3E%3Cpath d='M4.5 7.5l15 9'/%3E%3Cpath d='M4.5 16.5l15-9'/%3E%3Cpath d='M9.5 4.5L12 7L14.5 4.5'/%3E%3Cpath d='M9.5 19.5L12 17L14.5 19.5'/%3E%3Cpath d='M4.5 12L6 11.2'/%3E%3Cpath d='M18 11.2L19.5 12'/%3E%3Ccircle cx='12' cy='12' r='1.2' fill='%23ffffff'/%3E%3C/svg%3E");
  filter: drop-shadow(0 0 8px rgba(255,255,255,0.55));
  opacity: 0.7;
  animation: hec-snowfall linear infinite;
}

/* Schneeflocken-Verteilung mit Fokus auch auf die Mitte.
   Größere Flakes (16-28px) für mehr Wow-Effekt. */
.hec-flake:nth-child(1) { left: 6%; width: 22px; height: 22px; animation-duration: 13s; animation-delay: -1s; opacity: 0.65; }
.hec-flake:nth-child(2) { left: 14%; width: 16px; height: 16px; animation-duration: 16s; animation-delay: -8s; opacity: 0.5; }
.hec-flake:nth-child(3) { left: 21%; width: 26px; height: 26px; animation-duration: 11s; animation-delay: -4s; opacity: 0.7; }
.hec-flake:nth-child(4) { left: 29%; width: 18px; height: 18px; animation-duration: 14s; animation-delay: -6s; opacity: 0.55; }
.hec-flake:nth-child(5) { left: 36%; width: 24px; height: 24px; animation-duration: 15s; animation-delay: -9s; opacity: 0.65; }
.hec-flake:nth-child(6) { left: 43%; width: 14px; height: 14px; animation-duration: 17s; animation-delay: -3s; opacity: 0.42; }
.hec-flake:nth-child(7) { left: 48%; width: 26px; height: 26px; animation-duration: 12.5s; animation-delay: -11s; opacity: 0.7; }
.hec-flake:nth-child(8) { left: 55%; width: 18px; height: 18px; animation-duration: 14.5s; animation-delay: -5s; opacity: 0.55; }
.hec-flake:nth-child(9) { left: 62%; width: 22px; height: 22px; animation-duration: 11.5s; animation-delay: -7s; opacity: 0.65; }
.hec-flake:nth-child(10) { left: 70%; width: 16px; height: 16px; animation-duration: 15.5s; animation-delay: -10s; opacity: 0.5; }

/* Auf Builder-Screen weniger Schneeflocken (sonst zu unruhig mit allem UI). */
.hec-app[data-hec-screen="builder"] .hec-flake:nth-child(n+6) {
  display: none;
}
.hec-flake:nth-child(11) { left: 78%; width: 26px; height: 26px; animation-duration: 13.5s; animation-delay: -2s; opacity: 0.68; }
.hec-flake:nth-child(12) { left: 86%; width: 18px; height: 18px; animation-duration: 12.8s; animation-delay: -12s; opacity: 0.55; }
.hec-flake:nth-child(13) { left: 93%; width: 14px; height: 14px; animation-duration: 17s; animation-delay: -13s; opacity: 0.45; }
.hec-flake:nth-child(14) { left: 32%; width: 18px; height: 18px; animation-duration: 13.8s; animation-delay: -14s; opacity: 0.55; }
.hec-flake:nth-child(15) { left: 51%; width: 14px; height: 14px; animation-duration: 16.2s; animation-delay: -6.5s; opacity: 0.45; }
.hec-flake:nth-child(16) { left: 68%; width: 20px; height: 20px; animation-duration: 14.2s; animation-delay: -9.5s; opacity: 0.6; }
.hec-flake:nth-child(17) { left: 4%; width: 16px; height: 16px; animation-duration: 18s; animation-delay: -15s; opacity: 0.5; }
.hec-flake:nth-child(18) { left: 24%; width: 14px; height: 14px; animation-duration: 17.4s; animation-delay: -12.2s; opacity: 0.45; }
.hec-flake:nth-child(19) { left: 40%; width: 18px; height: 18px; animation-duration: 12.2s; animation-delay: -9.3s; opacity: 0.55; }
.hec-flake:nth-child(20) { left: 47%; width: 14px; height: 14px; animation-duration: 16.7s; animation-delay: -4.7s; opacity: 0.45; }
.hec-flake:nth-child(21) { left: 58%; width: 20px; height: 20px; animation-duration: 13.6s; animation-delay: -16s; opacity: 0.6; }
.hec-flake:nth-child(22) { left: 90%; width: 14px; height: 14px; animation-duration: 19s; animation-delay: -8.7s; opacity: 0.45; }
.hec-flake:nth-child(23) { left: 11%; width: 18px; height: 18px; animation-duration: 14.7s; animation-delay: -3.3s; opacity: 0.55; }
.hec-flake:nth-child(24) { left: 19%; width: 22px; height: 22px; animation-duration: 16.5s; animation-delay: -7.2s; opacity: 0.62; }
.hec-flake:nth-child(25) { left: 27%; width: 14px; height: 14px; animation-duration: 13.2s; animation-delay: -10.7s; opacity: 0.45; }
.hec-flake:nth-child(26) { left: 39%; width: 24px; height: 24px; animation-duration: 15.8s; animation-delay: -14.3s; opacity: 0.65; }
.hec-flake:nth-child(27) { left: 46%; width: 18px; height: 18px; animation-duration: 12.8s; animation-delay: -2.4s; opacity: 0.55; }
.hec-flake:nth-child(28) { left: 53%; width: 14px; height: 14px; animation-duration: 18.4s; animation-delay: -11.8s; opacity: 0.45; }
.hec-flake:nth-child(29) { left: 60%; width: 26px; height: 26px; animation-duration: 11.8s; animation-delay: -5.6s; opacity: 0.7; }
.hec-flake:nth-child(30) { left: 66%; width: 16px; height: 16px; animation-duration: 17.3s; animation-delay: -8.2s; opacity: 0.5; }
.hec-flake:nth-child(31) { left: 73%; width: 22px; height: 22px; animation-duration: 13.4s; animation-delay: -13.7s; opacity: 0.62; }
.hec-flake:nth-child(32) { left: 80%; width: 18px; height: 18px; animation-duration: 14.9s; animation-delay: -4.2s; opacity: 0.55; }
.hec-flake:nth-child(33) { left: 87%; width: 14px; height: 14px; animation-duration: 16.8s; animation-delay: -9.8s; opacity: 0.45; }
.hec-flake:nth-child(34) { left: 95%; width: 20px; height: 20px; animation-duration: 12.3s; animation-delay: -6.7s; opacity: 0.6; }
.hec-flake:nth-child(35) { left: 2%; width: 24px; height: 24px; animation-duration: 13.7s; animation-delay: -11.3s; opacity: 0.65; }
.hec-flake:nth-child(36) { left: 16%; width: 14px; height: 14px; animation-duration: 17.6s; animation-delay: -2.8s; opacity: 0.45; }
.hec-flake:nth-child(37) { left: 31%; width: 20px; height: 20px; animation-duration: 14.4s; animation-delay: -8.4s; opacity: 0.6; }
.hec-flake:nth-child(38) { left: 49%; width: 16px; height: 16px; animation-duration: 15.4s; animation-delay: -12.7s; opacity: 0.5; }
.hec-flake:nth-child(39) { left: 71%; width: 22px; height: 22px; animation-duration: 13.1s; animation-delay: -7.6s; opacity: 0.62; }
.hec-flake:nth-child(40) { left: 96%; width: 18px; height: 18px; animation-duration: 16.1s; animation-delay: -10.2s; opacity: 0.55; }

/* Dezenter rechtlicher Footer - position:fixed damit er auf ALLEN Screens
   sichtbar ist, auch wenn Builder-Elemente hohe z-index Stacking-Contexts haben. */
.hec-legal-footer {
  position: fixed;
  bottom: max(10px, env(safe-area-inset-bottom));
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.65);
  letter-spacing: 0.2px;
  pointer-events: auto;
  z-index: 99995;
}

.hec-legal-footer a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.hec-legal-footer a:hover,
.hec-legal-footer a:focus-visible {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 2px;
  outline: none;
}

.hec-legal-footer span {
  opacity: 0.45;
}

.hec-screen {
  position: absolute;
  inset: max(16px, env(safe-area-inset-top)) 12px max(16px, env(safe-area-inset-bottom));
  opacity: 0;
  transform: translateY(20px) scale(0.99);
  transition: opacity 0.32s ease, transform 0.32s ease;
  pointer-events: none;
  z-index: 3;
  overscroll-behavior: none;
  touch-action: manipulation;
}

.hec-screen.is-active {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

/* Name-Input Screen wird ohne Transition aktiviert,
   damit iOS den Input sofort fokussieren kann (Tastatur kommt direkt). */
.hec-screen[data-hec-screen="name-input"] {
  transition: none;
}

.hec-shell {
  position: relative;
  height: 100%;
  max-width: 430px;
  margin: 0 auto;
  border-radius: 34px;
  background: linear-gradient(180deg, rgba(255,255,255,0.84), rgba(255,247,235,0.72));
  border: 1px solid rgba(255,255,255,0.58);
  box-shadow: var(--hec-shadow);
  overflow: hidden;
  backdrop-filter: blur(18px);
}

.hec-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(145deg, rgba(255,255,255,0.28), transparent 30%),
    radial-gradient(circle at 100% 0, rgba(249,226,90,0.18), transparent 26%);
  pointer-events: none;
}

.hec-shell.hec-intro {
  background: linear-gradient(180deg, rgba(236,239,255,0.58), rgba(250,241,223,0.68));
}

.hec-shell.hec-intro::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 18%, rgba(255,255,255,0.14), transparent 22%),
    radial-gradient(circle at 78% 12%, rgba(255,255,255,0.08), transparent 18%),
    linear-gradient(180deg, rgba(22,14,104,0.08), transparent 38%);
  pointer-events: none;
}

.hec-app h1,
.hec-app h2 {
  margin: 0;
  font-family: "Christmas Workshop", "Avenir Next", sans-serif;
  font-weight: 400;
  color: var(--hec-navy);
  line-height: 0.95;
}

.hec-intro {
  display: grid;
  grid-template-rows: 1fr auto;
  padding: 28px 20px 36px;
  gap: 18px;
  overflow: hidden;
  overscroll-behavior: none;
  touch-action: none;
  justify-items: stretch;
}

.hec-intro > .hec-hero-button {
  justify-self: center;
}

.hec-intro-copy {
  align-self: center;
  position: relative;
  z-index: 1;
}

.hec-intro-copy h1 {
  font-size: clamp(48px, 10vw, 66px);
  text-wrap: balance;
}

.hec-intro-copy p {
  margin: 12px 0 0;
  color: var(--hec-muted);
  font-size: 19px;
  line-height: 1.15;
  max-width: 290px;
}

.hec-intro-copy::after {
  content: "";
  display: block;
  width: 86px;
  height: 4px;
  margin-top: 18px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255,255,255,0.1), var(--hec-yellow), rgba(255,255,255,0.1));
}

/* HERO-BUTTON auf Intro-Screen — modern, clean, garantiert rund.
   Fokus: klare Form, subtile Tiefe, keine Animation-Überfracht. */
.hec-app .hec-hero-button {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;
  width: auto !important;
  max-width: 100% !important;
  margin: 0 auto !important;
  padding: 18px 36px !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: linear-gradient(180deg, #fcd34d 0%, #f0b91e 100%) !important;
  color: var(--hec-navy) !important;
  font-family: inherit !important;
  font-size: 17px !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.7) inset,
    0 12px 28px -6px rgba(232, 173, 30, 0.55),
    0 4px 10px -2px rgba(15, 23, 42, 0.18) !important;
  position: relative;
  z-index: 1;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  letter-spacing: 0;
  line-height: 1;
  text-decoration: none;
}

.hec-app .hec-hero-button:hover,
.hec-app .hec-hero-button:focus-visible {
  transform: translateY(-1px);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.7) inset,
    0 16px 36px -6px rgba(232, 173, 30, 0.65),
    0 6px 14px -2px rgba(15, 23, 42, 0.22) !important;
  outline: none;
}

.hec-app .hec-hero-button:active {
  transform: translateY(0);
}

.hec-hero-flake {
  display: none !important;
}

.hec-hero-label {
  position: relative;
  z-index: 1;
}

.hec-hero-arrow {
  font-size: 18px;
  display: inline-block;
  position: relative;
  z-index: 1;
  margin-left: 2px;
  transition: transform 0.18s ease;
}

.hec-app .hec-hero-button:hover .hec-hero-arrow {
  transform: translateX(3px);
}

/* NAME-INPUT SCREEN */
.hec-name-input {
  display: flex;
  flex-direction: column;
  padding: max(20px, env(safe-area-inset-top)) 24px 24px;
  background:
    radial-gradient(circle at 12% 8%, rgba(255,255,255,0.08), transparent 30%),
    radial-gradient(circle at 88% 92%, rgba(252,211,77,0.08), transparent 35%),
    linear-gradient(180deg, #160e68 0%, #2a2380 50%, #3b3a8c 100%);
  position: relative;
  overflow: hidden;
}

.hec-back-link {
  appearance: none;
  border: 0;
  background: transparent;
  color: rgba(255,255,255,0.85);
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  padding: 8px 4px;
  cursor: pointer;
  align-self: flex-start;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.hec-back-link:hover,
.hec-back-link:focus-visible {
  opacity: 0.7;
  transform: translateX(-2px);
  outline: none;
}

/* Inhalt klebt oben, NICHT zentriert.
   So passt nichts an wenn die Tastatur kommt — kein Layout-Shift. */
.hec-name-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
  z-index: 1;
  padding-top: 8vh;
}

.hec-name-headline {
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: center;
  line-height: 0.98;
  color: #fff;
}

.hec-name-line-1 {
  font-family: "Christmas Workshop", "Brush Script MT", cursive;
  font-size: clamp(44px, 11vw, 64px);
  font-weight: 700;
  letter-spacing: -0.5px;
}

.hec-name-line-2 {
  font-family: "Christmas Workshop", "Brush Script MT", cursive;
  font-size: clamp(44px, 11vw, 64px);
  font-weight: 700;
  letter-spacing: -0.5px;
  color: var(--hec-yellow);
}

.hec-name-sub {
  margin: 0;
  text-align: center;
  color: rgba(255,255,255,0.78);
  font-size: 15px;
  font-weight: 500;
}

.hec-name-form {
  margin-top: 8px;
}

/* Eingabefeld mit nacktem Submit-Pfeil rechts */
.hec-name-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
  background: #fff;
  border-radius: 999px;
  padding: 4px 4px 4px 24px;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.7) inset,
    0 8px 24px rgba(0,0,0,0.18),
    0 0 0 1px rgba(252,211,77,0.4);
  transition: box-shadow 0.25s ease;
}

.hec-name-input-wrap:focus-within {
  box-shadow:
    0 1px 0 rgba(255,255,255,0.7) inset,
    0 12px 32px rgba(0,0,0,0.22),
    0 0 0 2px var(--hec-yellow);
}

.hec-name-input-wrap input {
  flex: 1;
  border: 0;
  outline: none;
  background: transparent;
  font-family: "Christmas Workshop", "Brush Script MT", cursive;
  font-size: 26px;
  font-weight: 600;
  color: var(--hec-navy);
  padding: 14px 8px;
  min-width: 0;
}

.hec-name-input-wrap input::placeholder {
  color: rgba(91, 79, 116, 0.32);
  font-weight: 500;
}

/* Submit-Pfeil als nacktes Symbol IM Input rechts.
   Initial matt grau, leuchtet gelb sobald jemand tippt. */
.hec-app .hec-name-submit {
  appearance: none !important;
  border: 0 !important;
  background: transparent !important;
  width: 48px !important;
  height: 48px !important;
  padding: 0 !important;
  margin: 0 !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: rgba(91, 79, 116, 0.28);
  transition: color 0.3s ease, transform 0.18s ease;
  position: relative;
  z-index: 10;
  flex-shrink: 0;
  box-shadow: none !important;
}

.hec-name-submit svg {
  width: 26px;
  height: 26px;
  display: block;
  pointer-events: none;
}

/* Pfeil leuchtet auf sobald getippt — via :has() oder Fallback-Klasse */
.hec-name-form:has(input:not(:placeholder-shown)) .hec-name-submit,
.hec-name-form.is-filled .hec-name-submit {
  color: #e6b91e;
}

.hec-name-form:has(input:not(:placeholder-shown)) .hec-name-submit:hover,
.hec-name-form:has(input:not(:placeholder-shown)) .hec-name-submit:focus-visible,
.hec-name-form.is-filled .hec-name-submit:hover,
.hec-name-form.is-filled .hec-name-submit:focus-visible {
  transform: translateX(2px);
  outline: none;
}

.hec-name-submit:active {
  transform: scale(0.92);
}

/* Fehlermeldung in rot — sticht klar heraus */
.hec-name-form .hec-error {
  margin: 14px 0 0;
  padding: 10px 16px;
  background: rgba(220, 38, 38, 0.95);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
  animation: hec-error-pop 0.25s ease-out;
}

@keyframes hec-error-pop {
  from { transform: scale(0.96); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.hec-error {
  margin: 8px 0 0;
  color: #a23b39;
  font-size: 13px;
  font-weight: 800;
}

.hec-app .hec-primary,
.hec-app .hec-secondary,
.hec-app .hec-category-arrow,
.hec-app .hec-option,
.hec-app .hec-ghost-chip {
  appearance: none;
  border: 0;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
  text-decoration: none;
  font-family: inherit;
}

.hec-app .hec-primary:hover,
.hec-app .hec-secondary:hover,
.hec-app .hec-category-arrow:hover,
.hec-app .hec-option:hover,
.hec-app .hec-ghost-chip:hover {
  transform: translateY(-2px);
}

.hec-app .hec-primary {
  width: 100%;
  margin-top: 12px;
  padding: 14px 16px;
  border-radius: 999px;
  background: linear-gradient(180deg, #fcd34d 0%, #f0b91e 100%);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.6) inset,
    0 8px 20px -4px rgba(232, 173, 30, 0.45),
    0 2px 6px -1px rgba(15, 23, 42, 0.12);
  color: var(--hec-navy);
  font-size: 15px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  position: relative;
  letter-spacing: 0;
  white-space: nowrap;
}

.hec-app .hec-primary:hover {
  box-shadow:
    0 1px 0 rgba(255,255,255,0.6) inset,
    0 12px 26px -4px rgba(232, 173, 30, 0.55),
    0 4px 10px -1px rgba(15, 23, 42, 0.16);
}

.hec-app .hec-secondary {
  padding: 14px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.78);
  color: #5b4f74;
  font-size: 15px;
  font-weight: 900;
  box-shadow: inset 0 0 0 1px rgba(84,71,111,0.12);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.hec-builder {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  overflow: hidden;
}

.hec-builder-top {
  min-height: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 6px;
  padding: 14px 16px 6px;
}

.hec-builder-title h2 {
  font-size: 34px;
}

.hec-cert-frame {
  position: relative;
  min-height: 0;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255,255,255,0.58), rgba(255,251,244,0.26));
  overflow: hidden;
}

.hec-cert-frame::before,
.hec-cert-frame::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 72px;
  pointer-events: none;
  opacity: 0.9;
  background-repeat: no-repeat;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 28'%3E%3Cg fill='none' stroke='%23ffffff' stroke-width='1.7' stroke-linecap='round'%3E%3Cpath d='M14 4v20M5.5 8.5l17 11M5.5 19.5l17-11'/%3E%3Cpath d='M14 4l-1.8 2M14 4l1.8 2M14 24l-1.8-2M14 24l1.8-2M5.5 8.5l2.5.2M5.5 8.5l1 2.4M22.5 19.5l-2.5-.2M22.5 19.5l-1-2.4M5.5 19.5l2.5-.2M5.5 19.5l1-2.4M22.5 8.5l-2.5.2M22.5 8.5l-1 2.4'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 22px 22px;
}

.hec-cert-frame::before { left: 0; background-position: 14px 16%; animation: hec-sideflakes-left 14s linear infinite; }
.hec-cert-frame::after { right: 0; background-position: 36px 22%; animation: hec-sideflakes-right 16s linear infinite; }

.hec-cert-stage {
  position: absolute;
  inset: 4px 10px;
  display: grid;
  place-items: center;
}

.hec-cert-sheet,
.hec-finish-sheet {
  position: relative;
  width: auto;
  max-width: min(100%, 258px);
  height: min(100%, 416px);
  aspect-ratio: 4500 / 8000;
  filter: drop-shadow(0 20px 28px rgba(15, 27, 61, 0.18));
  border-radius: 22px;
  overflow: hidden;
  /* Cremefarbe als Fallback hinter transparenten Bild-Raendern.
     So entstehen keine sichtbaren "Ecken" wenn das PNG transparente Pixel an den Raendern hat. */
  background: #f7e8cb;
}

.hec-cert-sheet > img,
.hec-finish-sheet > img {
  border-radius: 22px;
}

.hec-cert-sheet > .hec-elf-layer,
.hec-finish-sheet > .hec-finish-layer {
  border-radius: 22px;
  overflow: hidden;
}

.hec-cert-sheet > .hec-elf-layer > img,
.hec-finish-sheet > .hec-finish-layer > img {
  border-radius: 22px;
}

.hec-cert-sheet img,
.hec-finish-sheet img,
.hec-elf-layer,
.hec-finish-layer,
.hec-name-layer,
.hec-finish-name {
  position: absolute;
  inset: 0;
}

.hec-cert-sheet img,
.hec-finish-sheet img,
.hec-elf-layer img,
.hec-finish-layer img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.hec-cert-sheet img[hidden],
.hec-finish-sheet img[hidden],
.hec-elf-layer img[hidden],
.hec-finish-layer img[hidden] {
  display: none !important;
}

.hec-cert-sheet img:not([src]),
.hec-finish-sheet img:not([src]),
.hec-elf-layer img:not([src]),
.hec-finish-layer img:not([src]) {
  display: none !important;
}

.hec-elf-layer img[src=""],
.hec-finish-layer img[src=""] {
  display: none;
}

.hec-name-layer,
.hec-finish-name {
  inset: auto;
  left: 50%;
  top: var(--hec-name-y, 75.9%);
  transform: translateX(-50%) rotate(-2deg);
  width: 58%;
  text-align: center;
  font-family: "Christmas Workshop", "Avenir Next", sans-serif;
  color: var(--hec-name-color, #000000);
  white-space: nowrap;
  line-height: 1.18;
  padding: 0.04em 0 0.24em;
  overflow: visible;
  text-overflow: clip;
}

.hec-name-layer { font-size: calc(var(--hec-name-size, 25px) * var(--hec-preview-name-scale, 1)); }
.hec-finish-name { font-size: calc(var(--hec-name-size, 25px) * var(--hec-finish-name-scale, 1)); }

.hec-builder-bottom {
  padding: 0 12px 10px;
}

.hec-menu-sheet {
  height: 246px;
  padding: 12px 12px 10px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255,255,255,0.92), rgba(255,248,237,0.9));
  border: 1px solid rgba(255,255,255,0.78);
  box-shadow: 0 -6px 20px rgba(17, 28, 62, 0.08);
  display: grid;
  grid-template-rows: 34px 14px 100px 44px;
  gap: 10px;
}

.hec-selection-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.hec-selection-title-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  min-width: 0;
}

.hec-step-counter {
  font-size: 11px;
  font-weight: 700;
  color: var(--hec-muted);
  letter-spacing: 0.6px;
  text-transform: uppercase;
}

.hec-selection-title {
  text-align: center;
  font-size: 16px;
  font-weight: 900;
  color: var(--hec-navy);
}

.hec-app .hec-category-arrow {
  width: 34px;
  min-width: 34px;
  max-width: 34px;
  height: 34px;
  min-height: 34px;
  max-height: 34px;
  padding: 0;
  border: 0;
  border-radius: 999px !important;
  background: rgba(255,255,255,0.72) !important;
  background-image: none !important;
  color: #5d5077;
  font-size: 18px;
  font-weight: 800;
  line-height: 1;
  box-shadow: inset 0 0 0 1px rgba(84,71,111,0.1) !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1 / 1;
  text-indent: 0;
  transform: none;
  overflow: hidden;
}

.hec-app .hec-category-arrow:active,
.hec-app .hec-category-arrow:focus,
.hec-app .hec-category-arrow:focus-visible {
  background: rgba(255,255,255,0.72) !important;
  background-image: none !important;
  color: #5d5077 !important;
  box-shadow: inset 0 0 0 1px rgba(84,71,111,0.1) !important;
  outline: none !important;
  border-color: transparent !important;
  transform: none !important;
}

.hec-app .hec-category-arrow:hover {
  background: rgba(255,255,255,0.82) !important;
  color: #5d5077 !important;
}

.hec-app .hec-category-arrow::before,
.hec-app .hec-category-arrow::after {
  display: none !important;
}

.hec-category-dots {
  position: relative;
  width: min(100%, 180px);
  height: 14px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(var(--hec-dot-count, 5), 1fr);
  align-items: center;
}

.hec-category-dots::before {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  top: 50%;
  height: 2px;
  transform: translateY(-50%);
  background: rgba(120, 103, 145, 0.18);
}

.hec-dot {
  position: relative;
  justify-self: center;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(120, 103, 145, 0.22);
  z-index: 1;
}

.hec-dot.is-active {
  background: linear-gradient(180deg, var(--hec-yellow), #d7bd30);
  transform: scale(1.2);
}

.hec-menu-body {
  position: relative;
  height: 100px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 18px, #000 calc(100% - 18px), transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 18px, #000 calc(100% - 18px), transparent 100%);
}

.hec-option-panel {
  display: none;
}

.hec-option-panel.is-active {
  display: grid;
  height: 100px;
  place-items: center;
}

.hec-option-strip {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  overflow-y: hidden;
  width: 100%;
  height: 100px;
  padding: 10px 32px;
  scrollbar-width: none;
  align-items: center;
  scroll-padding-inline: 32px;
  touch-action: pan-x;
  overscroll-behavior-x: contain;
  overscroll-behavior-y: none;
  -webkit-overflow-scrolling: touch;
}

.hec-option-strip::-webkit-scrollbar {
  display: none;
}

.hec-app .hec-option {
  flex: 0 0 auto;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(255,255,255,0.76);
  color: #5b4f74;
  font-size: 12px;
  font-weight: 800;
  box-shadow: 0 12px 20px rgba(15, 27, 61, 0.08), inset 0 0 0 1px rgba(255,255,255,0.82);
  overflow: hidden;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.hec-app .hec-option img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 24%;
  display: block;
  transform: scale(1.12);
}

.hec-app .hec-option img.hec-contain {
  width: 74%;
  height: 74%;
  margin: 13%;
  object-fit: contain;
  object-position: center;
  transform: none;
}

.hec-app .hec-option.is-selected {
  /* Aeusserer Ring statt inset - wird nicht vom Vorschaubild ueberlagert */
  box-shadow:
    0 0 0 3px var(--hec-yellow),
    0 6px 14px rgba(215,189,48,0.28);
}

.hec-app .hec-option--empty::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 40px;
  height: 2px;
  border-radius: 999px;
  background: rgba(111, 98, 136, 0.45);
  transform: translate(-50%, -50%) rotate(-35deg);
}

.hec-app .hec-option.hec-option--text {
  width: calc(50% - 6px) !important;
  min-width: 0;
  border-radius: 999px !important;
  height: 80px !important;
  font-size: 12px;
  line-height: 1.1;
  padding: 0 16px;
  text-align: center;
  background: rgba(255,255,255,0.76);
  color: #5b4f74;
  box-shadow: inset 0 0 0 1px rgba(84,71,111,0.1);
  display: grid;
  place-items: center;
  white-space: normal;
}

.hec-app .hec-option.hec-option--text.is-selected {
  background: linear-gradient(180deg, rgba(255,255,255,1), rgba(247,199,104,0.68));
  color: #163867;
  box-shadow: inset 0 0 0 1px rgba(84,71,111,0.1);
}

.hec-app .hec-option--color {
  border-radius: 50%;
}

.hec-action-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.hec-action-row .hec-primary,
.hec-action-row .hec-secondary {
  height: 44px;
  margin-top: 0;
  padding-top: 0;
  padding-bottom: 0;
}

.hec-finish {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 16px;
  padding: 18px;
  justify-items: center;
  text-align: center;
  background: linear-gradient(180deg, rgba(9,24,53,0.04), rgba(8,16,36,0.12));
}

.hec-finish h2 {
  font-size: 62px;
  align-self: end;
  color: #fffaf0;
  text-shadow: 0 2px 0 rgba(9,24,53,0.32), 0 16px 34px rgba(9,24,53,0.28);
}

.hec-finish-card {
  position: relative;
  min-height: 0;
  width: 100%;
  height: 100%;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(10,24,52,0.82), rgba(23,48,91,0.72) 42%, rgba(255,247,233,0.24) 100%);
  display: grid;
  place-items: center;
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.12), 0 20px 50px rgba(8,17,38,0.22);
}

.hec-finish-glow {
  position: absolute;
  left: 50%;
  bottom: 8%;
  transform: translateX(-50%);
  width: 78%;
  height: 24%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(249,226,90,0.58), rgba(249,226,90,0.08) 58%, rgba(249,226,90,0.01) 75%);
  filter: blur(14px);
}

.hec-finish-sheet {
  width: min(100%, 266px);
  margin-inline: auto;
  filter: drop-shadow(0 10px 18px rgba(255,255,255,0.18)) drop-shadow(0 26px 40px rgba(0,0,0,0.22));
}

.hec-finish-actions {
  width: min(100%, 320px);
  display: grid;
  gap: 12px;
  justify-items: center;
}

.hec-finish-actions .hec-primary {
  margin-top: 0;
}

.hec-finish-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
}

.hec-finish-links::before {
  content: "";
  order: 2;
  width: 1px;
  height: 14px;
  background: rgba(100, 87, 117, 0.18);
}

.hec-finish-links > :first-child { order: 1; }
.hec-finish-links > :last-child { order: 3; }

.hec-app .hec-ghost-chip {
  appearance: none;
  border: 0;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: #5a6e95;
  font-size: 13px;
  font-weight: 800;
  box-shadow: none;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1.2;
}

@keyframes hec-snowfall {
  from { transform: translate3d(0, -12vh, 0) rotate(0deg); }
  to { transform: translate3d(8px, 112vh, 0) rotate(180deg); }
}

@keyframes hec-sideflakes-left {
  0%   { background-position: 14px -10%; }
  100% { background-position: 14px 110%; }
}

@keyframes hec-sideflakes-right {
  0%   { background-position: 36px -10%; }
  100% { background-position: 36px 110%; }
}

@media (max-height: 740px) {
  .hec-intro { padding: 16px 14px 14px; gap: 10px; }
  .hec-intro-copy h1 { font-size: 46px; }
  .hec-intro-copy p { font-size: 15px; margin-top: 8px; }
  .hec-builder-top { padding: 10px 12px 2px; gap: 4px; }
  .hec-builder-title h2 { font-size: 28px; }
  .hec-cert-sheet,
  .hec-finish-sheet {
    max-width: min(100%, 218px);
    height: min(100%, 374px);
  }
  .hec-menu-sheet { height: 226px; padding: 8px 10px 10px; gap: 6px; grid-template-rows: 32px 14px 88px 42px; }
  .hec-option-panel.is-active,
  .hec-option-strip,
  .hec-menu-body { height: 88px; }
  .hec-option-strip { padding: 8px 32px; }
  .hec-app .hec-option { width: 68px; height: 68px; }
  .hec-app .hec-option.hec-option--text {
    height: 68px !important;
    width: calc(50% - 5px) !important;
    font-size: 13px;
  }
}

@media (max-width: 819px) {
  /* Nur aktiv wenn JS die Klasse gesetzt hat (Plugin ist auf dieser Seite geladen).
     Verhindert dass scroll/background auf ANDEREN Seiten beeintraechtig wird. */
  html.hec-mobile-active,
  html.hec-mobile-active body {
    background: #160e68 !important;
    overflow: hidden !important;
  }

  html.hec-mobile-active body::before {
    content: '';
    position: fixed;
    top: 0; right: 0; bottom: 0; left: 0;
    z-index: 0;
    pointer-events: none;
    background:
      radial-gradient(ellipse at 30% 30%, rgba(130,100,255,0.22), transparent 55%),
      radial-gradient(ellipse at 70% 70%, rgba(60,30,200,0.18), transparent 50%),
      #160e68;
  }
}

@media (max-width: 819px) {
  /* Plugin fullscreen-fixed auf Mobile.
     App hat KEIN padding - der dunkelblaue Hintergrund fuellt den vollen Viewport.
     Das PADDING liegt auf dem .hec-screen, damit die Card eingerueckt ist und
     der dunkelblaue App-Hintergrund rundherum als Rand sichtbar wird. */
  .hec-app {
    position: fixed !important;
    top: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    z-index: 99990;
    background:
      radial-gradient(ellipse at 30% 30%, rgba(130,100,255,0.22), transparent 55%),
      radial-gradient(ellipse at 70% 70%, rgba(60,30,200,0.18), transparent 50%),
      #160e68 !important;
  }

  /* Screen traegt das Padding - die Shell-Card ist dadurch eingerueckt,
     der dunkelblaue App-Hintergrund ist rundherum sichtbar. */
  .hec-screen {
    inset: 0 !important;
    padding: max(8px, env(safe-area-inset-top)) 18px max(36px, calc(14px + env(safe-area-inset-bottom))) 18px !important;
  }

  /* Shell fuellt den eingerueckten Bereich des Screens (100% der content-box) */
  .hec-shell {
    height: 100%;
  }

  .hec-app,
  .hec-screen,
  .hec-shell,
  .hec-builder,
  .hec-builder-top,
  .hec-builder-bottom,
  .hec-finish,
  .hec-finish-card {
    touch-action: none;
    overscroll-behavior: none;
  }

  .hec-name-input,
  .hec-name-input * {
    touch-action: auto;
  }

  .hec-option-strip {
    touch-action: pan-x;
  }

  /* Intro auf Mobile etwas kompakter */
  .hec-intro {
    padding: 32px 22px 48px;
    gap: 24px;
  }
  .hec-intro-copy h1 {
    font-size: clamp(38px, 11vw, 54px);
    line-height: 1.0;
  }
  .hec-intro-copy p {
    font-size: 16px;
    margin-top: 10px;
    line-height: 1.2;
    max-width: 280px;
  }
  .hec-intro-copy::after {
    width: 64px;
    height: 4px;
    margin-top: 14px;
  }

  /* Hero-Button auf Mobile */
  .hec-app .hec-hero-button {
    padding: 16px 32px !important;
    font-size: 16px !important;
    gap: 8px !important;
  }
  .hec-hero-arrow {
    font-size: 17px;
  }

  /* Name-Input Mobile */
  .hec-name-input {
    padding: max(14px, env(safe-area-inset-top)) 20px 20px;
  }
  .hec-name-content {
    padding-top: 6vh;
    gap: 16px;
  }
  .hec-name-line-1,
  .hec-name-line-2 {
    font-size: clamp(38px, 11vw, 52px);
  }
  .hec-name-input-wrap {
    padding: 4px 4px 4px 20px;
  }
  .hec-name-input-wrap input {
    font-size: 22px;
    padding: 12px 6px;
  }
  .hec-app .hec-name-submit {
    width: 44px !important;
    height: 44px !important;
  }
  .hec-name-submit svg {
    width: 22px;
    height: 22px;
  }
}


@media (min-width: 820px) {
  .hec-app {
    padding: max(24px, env(safe-area-inset-top)) 24px max(24px, env(safe-area-inset-bottom));
    width: 100vw;
    margin-left: calc(50% - 50vw);
  }

  .hec-flake:nth-child(odd) { width: 18px; height: 18px; }
  .hec-flake:nth-child(even) { width: 14px; height: 14px; }

  .hec-screen {
    inset: max(24px, env(safe-area-inset-top)) 24px max(24px, env(safe-area-inset-bottom));
  }

  .hec-shell {
    max-width: 1060px;
    border-radius: 28px;
  }

  .hec-intro {
    max-width: 980px;
    grid-template-columns: minmax(0, 1fr) minmax(360px, 430px);
    grid-template-rows: 1fr;
    align-items: center;
    padding: 56px;
    gap: 54px;
  }

  .hec-intro-copy h1 { font-size: 92px; }
  .hec-intro-copy p { font-size: 23px; max-width: 420px; }
  .hec-app .hec-hero-button { padding: 20px 40px !important; font-size: 18px !important; }
  .hec-name-line-1, .hec-name-line-2 { font-size: clamp(64px, 8vw, 96px); }
  .hec-name-input-wrap { max-width: 540px; margin: 0 auto; }

  .hec-builder {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(360px, 420px);
    grid-template-rows: 1fr;
  }

  .hec-builder-top {
    height: 100%;
    min-height: 0;
    padding: 28px 24px 28px 34px;
    gap: 14px;
    border-right: 1px solid rgba(255,255,255,0.48);
  }

  .hec-builder-title h2 {
    font-size: 54px;
    text-align: left;
  }

  .hec-cert-frame {
    border-radius: 26px;
    width: 100%;
  }

  .hec-cert-sheet {
    width: min(100%, 404px);
    max-width: none;
    height: auto;
  }

  .hec-builder-bottom {
    min-height: 0;
    padding: 28px 34px 28px 24px;
    display: grid;
    align-items: stretch;
  }

  .hec-menu-sheet {
    height: 100%;
    gap: 18px;
    padding: 24px;
    border-radius: 24px;
    grid-template-rows: 46px 18px minmax(0, 1fr) 54px;
    box-shadow: 0 24px 48px rgba(12,24,52,0.16);
  }

  .hec-selection-title { font-size: 20px; }
  .hec-category-arrow {
    width: 42px;
    min-width: 42px;
    max-width: 42px;
    height: 42px;
    min-height: 42px;
    max-height: 42px;
    font-size: 22px;
    border-radius: 999px !important;
  }
  .hec-category-dots { width: min(100%, 220px); }

  .hec-menu-body,
  .hec-option-panel.is-active {
    height: 100%;
    min-height: 0;
  }

  .hec-option-strip {
    height: 100%;
    min-height: 0;
    padding: 12px 2px;
    overflow-y: auto;
    overflow-x: hidden;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    align-content: center;
    touch-action: pan-y;
  }

  .hec-app .hec-option {
    width: 100%;
    height: 104px;
    border-radius: 22px;
    justify-self: stretch;
  }

  .hec-app .hec-option--color::before {
    content: "";
    position: absolute;
    inset: 12px;
    border-radius: 16px;
    background: inherit;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.52);
  }

  .hec-app .hec-option--color::after,
  .hec-app .hec-option:not(.hec-option--color)::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 22px;
    background: linear-gradient(145deg, rgba(255,255,255,0.2), transparent 42%);
    pointer-events: none;
  }

  .hec-app .hec-option img {
    object-position: center 20%;
    transform: scale(1.02);
  }

  .hec-app .hec-option img.hec-contain {
    width: 76%;
    height: 76%;
    margin: 12%;
  }

  .hec-app .hec-option.hec-option--text {
    width: 100% !important;
    height: 104px !important;
    border-radius: 22px !important;
    font-size: 16px;
  }

  .hec-shell.hec-finish {
    max-width: 1180px;
  }

  .hec-finish {
    max-width: 1180px;
    margin: 0 auto;
    padding: 34px;
    grid-template-columns: minmax(0, 1.08fr) minmax(360px, 440px);
    grid-template-rows: 1fr;
    align-items: center;
    text-align: center;
    gap: 32px;
  }

  .hec-finish h2 {
    grid-column: 2;
    grid-row: 1;
    align-self: center;
    transform: translateY(-108px);
    font-size: 74px;
    width: 100%;
  }

  .hec-finish-card {
    height: 100%;
    grid-column: 1;
    grid-row: 1;
  }

  .hec-finish-sheet {
    width: min(100%, 390px);
    max-width: none;
    height: auto;
  }

  .hec-finish-actions {
    grid-column: 2;
    grid-row: 1;
    transform: translateY(64px);
    width: 100%;
    justify-items: stretch;
    padding: 34px;
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(255,252,246,0.9), rgba(255,245,231,0.76));
    border: 1px solid rgba(255,255,255,0.62);
    box-shadow: 0 24px 48px rgba(12,24,52,0.12);
  }

  .hec-finish-actions .hec-primary {
    height: 56px;
  }
}

/* ====== DESKTOP — Schneeflocken größer (über width/height statt scale,
   damit die Fall-Animation nicht beeinflusst wird) ====== */
@media (min-width: 820px) {
  .hec-flake { width: 22px !important; height: 22px !important; opacity: 0.9; filter: drop-shadow(0 0 14px rgba(255,255,255,0.7)); }
  .hec-flake:nth-child(odd) { width: 18px !important; height: 18px !important; }
  .hec-flake:nth-child(3n) { width: 26px !important; height: 26px !important; }
  .hec-flake:nth-child(4n+1) { width: 16px !important; height: 16px !important; }
  .hec-flake:nth-child(5n) { width: 30px !important; height: 30px !important; }
}
