/* CaseKing — "Мистериозна отстъпка" scratch card (pkg-newsletter, 2026-11-06).
   Palette "Дълбок петрол": a deep petrol frame, a bone card, champagne foil. */
.ck-nl {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: grid;
  place-items: center;
  padding: 16px;
  font-family: Inter, system-ui, sans-serif;
  opacity: 0;
  transition: opacity .3s cubic-bezier(.22, .61, .36, 1);
}
.ck-nl.is-open { opacity: 1; }
html.ck-nl-lock { overflow: hidden; }
.ck-nl-backdrop { position: absolute; inset: 0; background: rgba(11, 43, 48, .62); }
.ck-nl-card {
  position: relative;
  width: min(400px, 100%);
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
  box-sizing: border-box;
  background: #F6F4EF;
  color: #161A1B;
  border-radius: 18px;
  padding: 26px 24px 16px;
  text-align: center;
  /* A petrol frame with a thin champagne line inside it. */
  box-shadow: 0 0 0 7px #123E44, 0 0 0 8px #C8A86E, 0 30px 80px rgba(11, 43, 48, .45);
  transform: translateY(14px) scale(.97);
  transition: transform .35s cubic-bezier(.22, .61, .36, 1);
}
.ck-nl.is-open .ck-nl-card { transform: none; }
.ck-nl-card:focus { outline: none; }
.ck-nl-close {
  position: absolute;
  top: 6px;
  right: 8px;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #5A615F;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}
.ck-nl-close:hover { color: #123E44; background: #E6ECE9; }
.ck-nl-crown { color: #B8955A; margin: 0 auto 6px; line-height: 0; }
.ck-nl-title {
  margin: 0 auto 6px;
  max-width: 15em;
  font-family: Manrope, Inter, sans-serif;
  font-weight: 800;
  font-size: 25px;
  line-height: 1.15;
  letter-spacing: -.01em;
  color: #123E44;
  text-wrap: balance;
}
.ck-nl-lead { margin: 0 auto 16px; max-width: 30em; font-size: 14px; line-height: 1.5; color: #5A615F; }

/* The scratch panel: prize underneath, foil canvas on top. */
.ck-nl-scratch {
  position: relative;
  height: 176px;
  border-radius: 12px;
  overflow: hidden;
  background: #123E44;
  outline: 2px dashed rgba(184, 149, 90, .7);
  outline-offset: 4px;
}
.ck-nl-prize {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  gap: 2px;
  color: #F6F4EF;
  background:
    radial-gradient(circle at 50% 40%, rgba(200, 168, 110, .28), transparent 62%),
    #123E44;
}
.ck-nl-prize { padding: 0 20px; }
.ck-nl-prize-mark {
  font-family: Manrope, Inter, sans-serif;
  font-weight: 800;
  font-size: 44px;
  line-height: 1;
  color: #C8A86E;
}
.ck-nl-prize-value {
  font-family: Manrope, Inter, sans-serif;
  font-weight: 800;
  font-size: 26px;
  line-height: 1.15;
  letter-spacing: -.01em;
  color: #F6F4EF;
  text-wrap: balance;
}
.ck-nl-prize-note { font-size: 14px; color: #E6ECE9; }
.ck-nl-foil {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  touch-action: none;
  cursor: grab;
  transition: opacity .45s ease;
}
.ck-nl.is-scratching .ck-nl-foil { cursor: grabbing; }
.ck-nl.is-revealed .ck-nl-foil { opacity: 0; pointer-events: none; }
.ck-nl.is-revealed .ck-nl-prize-value { animation: ck-nl-pop .5s cubic-bezier(.22, .61, .36, 1); }
@keyframes ck-nl-pop { 0% { transform: scale(.82); } 60% { transform: scale(1.08); } 100% { transform: none; } }
.ck-nl.is-claiming .ck-nl-scratch { height: 120px; }
.ck-nl.is-claiming .ck-nl-prize-mark { display: none; }
.ck-nl.is-claiming .ck-nl-prize-value { font-size: 22px; }

.ck-nl-skip {
  margin: 12px auto 0;
  border: 0;
  background: transparent;
  color: #86692F;
  font: inherit;
  font-size: 13px;
  text-decoration: underline;
  cursor: pointer;
}
.ck-nl-claim, .ck-nl-submit {
  width: 100%;
  padding: 14px 16px;
  border: 0;
  border-radius: 10px;
  background: #B8955A;
  color: #0B2B30;
  font: inherit;
  font-family: Manrope, Inter, sans-serif;
  font-weight: 800;
  font-size: 16px;
  cursor: pointer;
}
.ck-nl-claim { margin-top: 18px; }
.ck-nl-claim:hover, .ck-nl-submit:hover { background: #C8A86E; }
.ck-nl-submit:disabled { opacity: .7; cursor: wait; }
.ck-nl-step2 { margin-top: 18px; text-align: left; }
.ck-nl-form { display: grid; gap: 10px; }
.ck-nl-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.ck-nl-input {
  width: 100%;
  box-sizing: border-box;
  padding: 13px 14px;
  border: 1px solid rgba(18, 62, 68, .3);
  border-radius: 10px;
  background: #fff;
  font: inherit;
  font-size: 16px;
  color: #161A1B;
}
.ck-nl-consent { display: flex; gap: 8px; align-items: flex-start; font-size: 12px; line-height: 1.45; color: #5A615F; }
.ck-nl-consent input { margin-top: 2px; accent-color: #123E44; flex: none; }
.ck-nl-consent a { color: #86692F; }
.ck-nl-msg { margin: 0; min-height: 1em; font-size: 13px; }
.ck-nl-msg.is-error { color: #9b2c2c; }
.ck-nl-later {
  display: block;
  margin: 10px auto 0;
  padding: 6px 10px;
  border: 0;
  background: transparent;
  color: #5A615F;
  font: inherit;
  font-size: 13px;
  text-decoration: underline;
  cursor: pointer;
}
.ck-nl-done { font-size: 14px; line-height: 1.5; color: #161A1B; text-align: center; }
.ck-nl-done p { margin: 0 0 8px; }
.ck-nl-done-title { font-family: Manrope, Inter, sans-serif; font-weight: 800; font-size: 19px; color: #123E44; }
.ck-nl-hint { color: #5A615F; font-size: 12px; }
.ck-nl button:focus-visible, .ck-nl-input:focus-visible, .ck-nl-consent input:focus-visible {
  outline: 2px solid #1F5A61;
  outline-offset: 2px;
}

@media (max-width: 420px) {
  .ck-nl-card { padding: 22px 18px 12px; }
  .ck-nl-title { font-size: 22px; }
  .ck-nl-scratch { height: 160px; }
}
@media (prefers-reduced-motion: reduce) {
  .ck-nl, .ck-nl-card, .ck-nl-foil { transition: none; }
  .ck-nl.is-revealed .ck-nl-prize-value { animation: none; }
}

/* /abonament — the confirmation / unsubscribe page */
.ck-sub-code {
  display: inline-block;
  margin: 8px 0 4px;
  padding: 12px 24px;
  border: 2px dashed #B8955A;
  border-radius: 10px;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 2px;
  color: #123E44;
  background: #fff;
}
.ck-sub-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 16px; }
.ck-sub-btn {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 8px;
  border: 0;
  background: #123E44;
  color: #F6F4EF;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}
.ck-sub-btn.is-ghost { background: transparent; color: #123E44; border: 1px solid rgba(18, 62, 68, .3); }
