

@font-face {
  font-family: "Nosifer";
  src: url("assets/fonts/nosifer-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Special Elite";
  src: url("assets/fonts/special-elite-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Bebas Neue";
  src: url("assets/fonts/bebas-neue-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("assets/fonts/jetbrains-mono-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("assets/fonts/jetbrains-mono-latin-600-normal.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

#ce-root {
  position: absolute;
  right: 16px;
  top: 16px;
  bottom: 64px;
  z-index: 10000;
  font-family: ui-sans-serif, system-ui, "Segoe UI", "Inter", "Roboto", sans-serif;
  pointer-events: none;
}

#ce-root .ce-card { --ce-display: ui-rounded, "SF Pro Rounded", "Segoe UI", system-ui, sans-serif; }

#ce-breadcrumb {
  position: absolute;
  left: 16px;
  top: 16px;
  z-index: 9999;
  max-width: 60%;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 6px 5px 11px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-family: ui-sans-serif, system-ui, "Segoe UI", "Inter", "Roboto", sans-serif;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
  pointer-events: none;
  animation: ce-card-in 0.28s cubic-bezier(0.2, 0.8, 0.3, 1);
}
#ce-breadcrumb .ce-breadcrumb-label {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
#ce-breadcrumb .ce-breadcrumb-back {
  flex-shrink: 0;
  pointer-events: auto;
  border: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  font: inherit;
  font-weight: 700;
  padding: 3px 9px;
  cursor: pointer;
}
#ce-breadcrumb .ce-breadcrumb-back:hover { background: rgba(255, 255, 255, 0.3); }
#ce-breadcrumb .ce-breadcrumb-back:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 1px;
}
@media (prefers-reduced-motion: reduce) {
  #ce-breadcrumb { animation: none; }
}

.ce-path-controls {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}
.ce-path-heading {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  opacity: 0.8;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.85);
  margin-bottom: 2px;
}
.ce-btn-path-back,
.ce-btn-path-alt {
  text-align: left;
  font-size: 12.5px;
  padding: 9px 11px;
}
.ce-btn-path-back { opacity: 0.78; }
.ce-btn-path-back:hover { opacity: 1; }

#ce-root .ce-card[data-style="title_card"] .ce-path-controls { align-items: center; }
#ce-root .ce-card[data-style="title_card"] .ce-path-heading { text-align: center; }
#ce-root .ce-card[data-style="title_card"] .ce-btn-path-back,
#ce-root .ce-card[data-style="title_card"] .ce-btn-path-alt {
  width: 100%;
  text-align: center;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}
#ce-root .ce-card[data-style="title_card"] .ce-btn-path-back:hover,
#ce-root .ce-card[data-style="title_card"] .ce-btn-path-alt:hover {
  background: rgba(255, 255, 255, 0.2);
}

.ce-hint-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 30;
}
.ce-hint {
  position: absolute;
  bottom: 7px; 
  width: 11px;
  height: 11px;
  margin-left: -5.5px;
  border-radius: 50%;
  background: var(--ce-accent, #ffd54a);
  border: 1px solid rgba(0, 0, 0, 0.65);
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.6);
  pointer-events: auto;
  cursor: pointer;
  transition: transform 0.1s ease;
}
.ce-hint:hover {
  transform: scale(1.45);
}

#ce-root .ce-thread {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-end;
  height: 100%;
  max-height: 70vh;
  overflow-y: auto;
  pointer-events: auto;
}

#ce-root .ce-thread .ce-card:first-child { margin-top: auto; }

#ce-root .ce-privacy-notice {
  margin-top: auto;
  max-width: 320px;
  box-sizing: border-box;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(20, 22, 26, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #f2f4f7;
  font: 400 12.5px/1.45 system-ui, -apple-system, "Segoe UI", sans-serif;
  pointer-events: auto;
}
#ce-root .ce-privacy-notice-title { display: block; font-size: 12.5px; font-weight: 650; }
#ce-root .ce-privacy-notice-body { margin: 4px 0 8px; opacity: 0.86; }

#ce-root .ce-privacy-notice-share {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0 0 9px;
  cursor: pointer;
  font-weight: 600;
}
#ce-root .ce-privacy-notice-check { margin: 0; accent-color: var(--ce-primary, #2962ff); cursor: pointer; }
#ce-root .ce-privacy-notice-dismiss {
  font: inherit;
  font-weight: 650;
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: transparent;
  color: inherit;
  cursor: pointer;
}
#ce-root .ce-privacy-notice-dismiss:hover { background: rgba(255, 255, 255, 0.1); }

#ce-root .ce-thread .ce-card { flex-shrink: 0; }

#ce-root[data-position^="top"] .ce-thread .ce-card:first-child { margin-top: 0; }

#ce-root .ce-thread .ce-card:not(:last-child) { opacity: 0.62; }

#ce-root .ce-countdown-bar {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 3px;
  width: 100%;
  border-bottom-left-radius: 14px;
  border-bottom-right-radius: 14px;
  background: var(--ce-accent, var(--ce-primary, #2962ff));
  opacity: 0.8;
  pointer-events: none;
}

#ce-root .ce-card {
  pointer-events: auto;
  position: relative;
  width: 300px;
  max-width: 82vw;
  box-sizing: border-box;
  
  cursor: grab;
  touch-action: none;
  user-select: none;
  
  --ce-type: var(--ce-primary, #2962ff);
  --ce-ok: #1e8e3e;
  --ce-danger: #d93025;
  background: var(--ce-background, #ffffff);
  color: var(--ce-text, #111111);
  border-radius: 14px;
  
  border: 1px solid color-mix(in srgb, var(--ce-text, #111111) 12%, transparent);
  border-top: 2px solid color-mix(in srgb, var(--ce-type) 70%, transparent);
  box-shadow: 0 14px 34px -14px rgba(0, 0, 0, 0.5), 0 3px 10px -4px rgba(0, 0, 0, 0.28);
  padding: 13px 15px 14px;
  font-size: 13.5px;
  line-height: 1.5;
  animation: ce-card-in 0.28s cubic-bezier(0.2, 0.8, 0.3, 1);
}

#ce-root .ce-card.ce-dragging { cursor: grabbing; }

#ce-root .ce-card button,
#ce-root .ce-card a,
#ce-root .ce-card input,
#ce-root .ce-card textarea,
#ce-root .ce-card select {
  cursor: pointer;
  user-select: auto;
}
#ce-root .ce-card textarea,
#ce-root .ce-card input {
  cursor: text;
}

#ce-root .ce-card[data-style="compact"] {
  width: 264px;
  padding: 11px 13px;
  border-radius: 12px;
}
#ce-root .ce-card[data-style="compact"] .ce-body { margin-bottom: 9px; font-size: 13.5px; }
#ce-root .ce-card[data-style="compact"] .ce-header { margin-bottom: 7px; }

#ce-root .ce-card[data-style="minimal"] {
  width: 272px;
  padding: 12px 15px;
  border-radius: 13px;
  box-shadow: 0 8px 22px -8px rgba(0, 0, 0, 0.35);
}
#ce-root .ce-card[data-style="minimal"] .ce-title { display: none; }
#ce-root .ce-card[data-style="minimal"] .ce-body { margin-bottom: 9px; }

#ce-root .ce-card[data-style="minimal"] .ce-header {
  justify-content: flex-end;
  gap: 2px;
  margin-bottom: 6px;
}

#ce-root .ce-card[data-style="bold"] {
  width: 340px;
  padding: 17px 19px;
  border-radius: 16px;
  box-shadow: 0 22px 52px -16px rgba(0, 0, 0, 0.58), 0 6px 18px -8px rgba(0, 0, 0, 0.38);
}
#ce-root .ce-card[data-style="bold"] .ce-body { font-size: 15px; line-height: 1.5; }

#ce-root .ce-card[data-style="horror"] {
  position: relative;
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.38) 0%, rgba(0, 0, 0, 0) 75%);
  backdrop-filter: blur(2.5px);
  border: none;
  border-top: none;
  box-shadow: none;
  padding: 10px 6px;
  overflow: hidden;
  animation: ce-horror-fade-in 1.1s ease-out both;
}

#ce-root .ce-card[data-style="horror"]::before {
  content: "";
  position: absolute;
  inset: -20%;
  pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 3px 3px;
  animation: ce-horror-grain 0.4s steps(2) infinite;
  opacity: 0.35;
  mix-blend-mode: overlay;
  z-index: 0;
}
#ce-root .ce-card[data-style="horror"] .ce-header,
#ce-root .ce-card[data-style="horror"] .ce-body,
#ce-root .ce-card[data-style="horror"] .ce-content,
#ce-root .ce-card[data-style="horror"] .ce-feedback {
  position: relative;
  z-index: 1;
}

#ce-root .ce-card[data-style="horror"] .ce-title {
  position: relative;
  padding-left: 18px;
  font-family: "Nosifer", cursive;
  font-weight: 400;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: #e21f1f;
  text-transform: none;
  animation: ce-horror-glow-pulse 3.6s ease-in-out infinite;
}
#ce-root .ce-card[data-style="horror"] .ce-title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 8px;
  height: 8px;
  margin-top: -4px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #ff3b3b, #7a0e0e 70%);
  animation: ce-horror-pulse-dot 2.2s ease-in-out infinite;
}
#ce-root .ce-card[data-style="horror"] .ce-title::after {
  content: "";
  position: absolute;
  left: 3px;
  top: calc(50% + 4px);
  width: 2px;
  background: linear-gradient(#9a1414, transparent);
  border-radius: 0 0 2px 2px;
  animation: ce-horror-drip 2.2s ease-in-out infinite;
}

#ce-root .ce-card[data-style="horror"] .ce-body {
  font-family: "Special Elite", monospace;
  font-size: 14px;
  line-height: 1.6;
  color: #f0e9e2;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9), 0 0 14px rgba(0, 0, 0, 0.8);
}
#ce-root .ce-card[data-style="horror"] .ce-caption,
#ce-root .ce-card[data-style="horror"] .ce-upnext-heading {
  font-family: "Nosifer", cursive;
  font-weight: 400;
  color: #c9a730;
  text-shadow: 0 0 10px rgba(200, 160, 50, 0.4);
}
#ce-root .ce-card[data-style="horror"] .ce-dismiss,
#ce-root .ce-card[data-style="horror"] .ce-snooze-toggle {
  color: #4a423c;
}
#ce-root .ce-card[data-style="horror"] .ce-dismiss:hover,
#ce-root .ce-card[data-style="horror"] .ce-snooze-toggle:hover {
  color: #8a7168;
}

#ce-root .ce-card[data-style="horror"] .ce-btn {
  background: none;
  border: none;
  border-bottom: 1px solid rgba(120, 40, 40, 0.18);
  border-radius: 0;
  color: #a89e96;
  font-family: "JetBrains Mono", monospace;
  font-weight: 400;
  padding: 11px 2px;
  box-shadow: none;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.85);
  transition: color 0.25s, text-shadow 0.25s;
}
#ce-root .ce-card[data-style="horror"] .ce-btn:hover {
  background: none;
  border-color: rgba(120, 40, 40, 0.18);
  color: #ff8f8f;
  text-shadow: 0 0 10px rgba(255, 60, 60, 0.5);
}
#ce-root .ce-card[data-style="horror"] .ce-btn.ce-chosen:not(.ce-right):not(.ce-wrong) {
  background: none;
  color: #ff6a6a;
  font-weight: 600;
  text-shadow: 0 0 14px rgba(255, 40, 40, 0.7), 0 0 30px rgba(200, 0, 0, 0.4);
  box-shadow: none;
}
#ce-root .ce-card[data-style="horror"] .ce-btn-scale {
  font-family: "Bebas Neue", sans-serif;
  font-size: 20px;
  border-bottom-width: 2px;
}
#ce-root .ce-card[data-style="horror"] .ce-btn.ce-right,
#ce-root .ce-card[data-style="horror"] .ce-btn.ce-wrong {
  background: none;
  border-radius: 0;
}

@keyframes ce-horror-fade-in {
  from { opacity: 0; filter: blur(6px); transform: translateY(6px); }
  to   { opacity: 1; filter: blur(0px); transform: translateY(0); }
}
@keyframes ce-horror-grain {
  0%   { transform: translate(0, 0); }
  10%  { transform: translate(-2%, -4%); }
  30%  { transform: translate(3%, 2%); }
  50%  { transform: translate(-3%, 3%); }
  70%  { transform: translate(2%, -3%); }
  100% { transform: translate(0, 0); }
}
@keyframes ce-horror-glow-pulse {
  0%, 100% { text-shadow: 0 0 8px rgba(220, 20, 20, 0.5), 0 0 22px rgba(150, 0, 0, 0.25); }
  50%      { text-shadow: 0 0 16px rgba(255, 40, 40, 0.85), 0 0 40px rgba(180, 0, 0, 0.4); }
}
@keyframes ce-horror-pulse-dot {
  0%, 100% { box-shadow: 0 0 6px 2px rgba(180, 0, 0, 0.7), 0 0 0 0 rgba(180, 0, 0, 0.5); }
  50%      { box-shadow: 0 0 16px 6px rgba(220, 10, 10, 1), 0 0 0 8px rgba(180, 0, 0, 0.2); }
}
@keyframes ce-horror-drip {
  0%   { height: 0px; opacity: 0; }
  35%  { opacity: 0.9; }
  100% { height: 12px; opacity: 0.9; }
}

#ce-root.ce-dismissing .ce-card[data-style="horror"] {
  animation: ce-horror-fade-out 0.2s ease forwards;
}
@keyframes ce-horror-fade-out {
  from { opacity: 1; filter: blur(0px); }
  to   { opacity: 0; filter: blur(6px); }
}

@media (prefers-reduced-motion: reduce) {
  #ce-root .ce-card[data-style="horror"] { animation: none; }
  #ce-root .ce-card[data-style="horror"]::before { animation: none; }
  #ce-root .ce-card[data-style="horror"] .ce-title { animation: none; }
  #ce-root .ce-card[data-style="horror"] .ce-title::before { animation: none; }
  #ce-root .ce-card[data-style="horror"] .ce-title::after { animation: none; }
  #ce-root.ce-dismissing .ce-card[data-style="horror"] { animation: none; }
}

#ce-root .ce-card[data-style="title_card"] {
  position: relative;
  width: 340px;
  max-width: 82vw;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.32), rgba(0, 0, 0, 0.66));
  backdrop-filter: blur(4px);
  border: none;
  border-top: none;
  box-shadow: none;
  border-radius: 10px;
  padding: 28px 22px;
  text-align: center;
  overflow: hidden;
  animation: ce-title-card-in 0.9s cubic-bezier(0.16, 1, 0.3, 1) both;
}
#ce-root .ce-card[data-style="title_card"] .ce-title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--ce-type, var(--ce-primary, #2962ff));
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.7);
  justify-content: center;
}
#ce-root .ce-card[data-style="title_card"] .ce-body {
  font-size: 19px;
  line-height: 1.45;
  font-weight: 600;
  color: #ffffff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.85), 0 2px 12px rgba(0, 0, 0, 0.6);
}

#ce-root .ce-card[data-style="title_card"] .ce-body::after {
  content: "";
  display: block;
  width: 48px;
  height: 2px;
  margin: 16px auto 0;
  background: var(--ce-type, var(--ce-primary, #2962ff));
  opacity: 0.8;
}
#ce-root .ce-card[data-style="title_card"] .ce-caption,
#ce-root .ce-card[data-style="title_card"] .ce-upnext-heading {
  color: rgba(255, 255, 255, 0.75);
}
#ce-root .ce-card[data-style="title_card"] .ce-dismiss,
#ce-root .ce-card[data-style="title_card"] .ce-snooze-toggle {
  color: rgba(255, 255, 255, 0.5);
}
#ce-root .ce-card[data-style="title_card"] .ce-dismiss:hover,
#ce-root .ce-card[data-style="title_card"] .ce-snooze-toggle:hover {
  color: rgba(255, 255, 255, 0.9);
}
@keyframes ce-title-card-in {
  from { opacity: 0; transform: scale(0.94); filter: blur(3px); }
  to   { opacity: 1; transform: scale(1); filter: blur(0); }
}
#ce-root.ce-dismissing .ce-card[data-style="title_card"] {
  animation: ce-title-card-out 0.2s ease forwards;
}
@keyframes ce-title-card-out {
  from { opacity: 1; transform: scale(1); }
  to   { opacity: 0; transform: scale(0.96); }
}
@media (prefers-reduced-motion: reduce) {
  #ce-root .ce-card[data-style="title_card"] { animation: none; }
  #ce-root.ce-dismissing .ce-card[data-style="title_card"] { animation: none; }
}

@keyframes ce-card-in {
  from { opacity: 0; transform: translateY(14px) scale(0.98); filter: blur(4px); }
  to   { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}

#ce-root.ce-dismissing .ce-card {
  animation: ce-card-out 0.2s ease forwards;
}
@keyframes ce-card-out {
  from { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
  to   { opacity: 0; transform: translateY(10px) scale(0.98); filter: blur(4px); }
}

@media (prefers-reduced-motion: reduce) {
  #ce-root .ce-card { animation: none; }
  #ce-root.ce-dismissing .ce-card { animation: none; }
}

#ce-root .ce-celebrate {
  pointer-events: auto;
  width: 340px;
  max-width: 85vw;
  box-sizing: border-box;
  text-align: center;
  font-weight: 700;
  padding: 12px 16px;
  border-radius: 12px;
  color: var(--ce-text, #111111);
  background: var(--ce-background, #ffffff);
  border: 2px solid var(--ce-accent, #ffd54a);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
  animation: ce-celebrate-pop 0.5s cubic-bezier(0.2, 0.9, 0.3, 1.4);
}
@keyframes ce-celebrate-pop {
  0% { opacity: 0; transform: scale(0.8); }
  60% { transform: scale(1.06); }
  100% { opacity: 1; transform: scale(1); }
}
@media (prefers-reduced-motion: reduce) {
  #ce-root .ce-celebrate { animation: none; }
}

#ce-root .ce-no-pack {
  pointer-events: auto;
  background: var(--ce-background, #ffffff);
  color: var(--ce-text, #111111);
  border-radius: 10px;
  padding: 8px 14px;
  font-size: 13px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(127, 127, 127, 0.2);
  animation: ce-fade-in-out 3.5s ease forwards;
}
@keyframes ce-fade-in-out {
  0% { opacity: 0; transform: translateY(8px); }
  12% { opacity: 1; transform: translateY(0); }
  70% { opacity: 1; }
  100% { opacity: 0; transform: translateY(-6px); }
}
@media (prefers-reduced-motion: reduce) {
  #ce-root .ce-no-pack { animation: none; opacity: 0; }
}

.ce-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.ce-title {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: var(--ce-display);
  font-weight: 700;
  font-size: 11.5px;
  color: var(--ce-type, var(--ce-primary, #2962ff));
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.ce-title::before {
  content: "";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 6px;
  font-size: 11px;
  line-height: 1;
  flex: none;
  color: var(--ce-type, var(--ce-primary, #2962ff));
  background: color-mix(in srgb, var(--ce-type) 14%, transparent);
}
#ce-root .ce-card[data-primitive="single_choice"] .ce-title::before { content: "?"; font-weight: 800; }
#ce-root .ce-card[data-primitive="scale"] .ce-title::before { content: "▦"; }
#ce-root .ce-card[data-primitive="notice"] .ce-title::before { content: "i"; font-style: italic; font-weight: 800; font-family: Georgia, serif; }
#ce-root .ce-card[data-primitive="action"] .ce-title::before { content: "★"; }
#ce-root .ce-card[data-primitive="up_next"] .ce-title::before { content: "»"; font-weight: 800; }

.ce-dismiss {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 14px;
  color: var(--ce-text, #111111);
  opacity: 0.55;
  padding: 2px 6px;
}
.ce-dismiss:hover { opacity: 1; }

#ce-root .ce-card .ce-copy,
#ce-root .ce-card .ce-savenote,
#ce-root .ce-card .ce-snooze {
  opacity: 0;
  transition: opacity 0.14s ease;
}
#ce-root .ce-card:hover .ce-copy,
#ce-root .ce-card:hover .ce-savenote,
#ce-root .ce-card:hover .ce-snooze,
#ce-root .ce-card:focus-within .ce-copy,
#ce-root .ce-card:focus-within .ce-savenote,
#ce-root .ce-card:focus-within .ce-snooze {
  opacity: 1;
}

@media (hover: none) {
  #ce-root .ce-card .ce-copy,
  #ce-root .ce-card .ce-savenote,
  #ce-root .ce-card .ce-snooze {
    opacity: 1;
  }
}

#ce-root .ce-card .ce-snooze:has(.ce-snooze-menu[data-open="true"]) { opacity: 1; }

#ce-root .ce-card .ce-header { cursor: grab; }
#ce-root .ce-card .ce-header:active { cursor: grabbing; }

.ce-snooze { position: relative; display: inline-flex; }
.ce-snooze-toggle {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 13px;
  color: var(--ce-text, #111111);
  opacity: 0.55;
  padding: 2px 6px;
}
.ce-snooze-toggle:hover { opacity: 1; }
.ce-snooze-menu {
  position: absolute;
  top: 100%;
  right: 0;
  z-index: 1;
  display: none;
  flex-direction: column;
  min-width: 150px;
  margin-top: 4px;
  background: var(--ce-background, #ffffff);
  border: 1px solid rgba(127, 127, 127, 0.3);
  border-radius: 8px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
  overflow: hidden;
}
.ce-snooze-menu[data-open="true"] { display: flex; }
.ce-snooze-opt {
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  padding: 8px 12px;
  font-size: 13px;
  color: var(--ce-text, #111111);
}
.ce-snooze-opt:hover { background: var(--ce-type, var(--ce-primary, #2962ff)); color: var(--ce-background, #ffffff); }

.ce-card-image {
  display: block;
  width: 100%;
  max-height: 168px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 10px;
}

.ce-caption {
  margin-bottom: 4px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ce-type, var(--ce-primary, #2962ff));
}

.ce-body {
  margin-bottom: 12px;
  font-size: 14.5px;
  font-weight: 450;
  letter-spacing: 0.002em;
  color: color-mix(in srgb, var(--ce-text, #111111) 92%, transparent);
  overflow-wrap: break-word;
  word-wrap: break-word;
}

.ce-upnext-heading {
  margin-bottom: 4px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ce-type, var(--ce-primary, #2962ff));
}

.ce-actions,
.ce-scale {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ce-choice-wrap { display: flex; gap: 4px; width: 100%; }

.ce-btn {
  cursor: pointer;
  border: 1px solid color-mix(in srgb, var(--ce-type, #2962ff) 32%, transparent);
  background: color-mix(in srgb, var(--ce-type, #2962ff) 6%, var(--ce-background, #ffffff));
  color: color-mix(in srgb, var(--ce-type, #2962ff) 88%, var(--ce-text, #111));
  border-radius: 10px;
  padding: 9px 13px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s, color 0.15s, transform 0.05s;
}
.ce-btn:hover {
  background: var(--ce-type, #2962ff);
  border-color: var(--ce-type, #2962ff);
  color: var(--ce-background, #ffffff);
}
.ce-btn:active { transform: translateY(1px); }
.ce-btn:focus-visible {
  outline: 2px solid var(--ce-accent, #ffd54a);
  outline-offset: 2px;
}

.ce-btn-choice { flex: 1; text-align: left; transition: background 0.15s, border-color 0.15s, opacity 0.15s; }
.ce-btn-scale { min-width: 38px; text-align: center; }

.ce-btn:disabled { cursor: default; opacity: 0.55; }
.ce-btn.ce-chosen { opacity: 1; }
.ce-btn.ce-chosen:not(.ce-right):not(.ce-wrong) {
  background: var(--ce-type, var(--ce-primary, #2962ff));
  color: var(--ce-background, #ffffff);
  
  font-weight: 700;
  box-shadow: 0 6px 16px -6px color-mix(in srgb, var(--ce-type, #2962ff) 70%, transparent);
}
.ce-btn.ce-right {
  background: var(--ce-ok, #1e8e3e);
  border-color: var(--ce-ok, #1e8e3e);
  color: #ffffff;
  opacity: 1;
  
  animation: ce-answer-blink 0.5s ease-in-out 3;
}
.ce-btn.ce-wrong {
  background: var(--ce-danger, #d93025);
  border-color: var(--ce-danger, #d93025);
  color: #ffffff;
  opacity: 1;
  
}
@keyframes ce-answer-blink {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.45); }
}
@media (prefers-reduced-motion: reduce) {
  .ce-btn.ce-right { animation: none; }
}

.ce-feedback {
  display: flex;
  justify-content: flex-end;
  gap: 6px;
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid rgba(127, 127, 127, 0.18);
}
.ce-fb-btn {
  cursor: pointer;
  border: none;
  background: none;
  font-size: 15px;
  line-height: 1;
  padding: 4px 6px;
  border-radius: 6px;
  opacity: 0.55;
  transition: opacity 0.15s, transform 0.1s;
}
.ce-fb-btn:hover { opacity: 1; }
.ce-fb-btn:active { transform: scale(0.9); }
.ce-fb-btn:disabled { cursor: default; }
.ce-fb-btn.ce-fb-chosen { opacity: 1; transform: scale(1.1); }
.ce-feedback[data-done="true"] .ce-fb-btn:not(.ce-fb-chosen) { opacity: 0.25; }

.ce-btn-ack,
.ce-btn-replay {
  background: var(--ce-type, var(--ce-primary, #2962ff));
  color: var(--ce-background, #ffffff);
  border-color: transparent;
}
.ce-btn-ack:hover,
.ce-btn-replay:hover { background: color-mix(in srgb, var(--ce-type, #2962ff) 85%, #000); }

.ce-btn-upnext-jump,
.ce-btn-subscribe {
  background: var(--ce-type, var(--ce-primary, #2962ff));
  color: var(--ce-background, #ffffff);
  border-color: transparent;
  text-decoration: none;
}
.ce-btn-upnext-jump:hover,
.ce-btn-subscribe:hover { background: color-mix(in srgb, var(--ce-type, #2962ff) 85%, #000); }
.ce-btn-fullscreen { border-color: transparent; }

.ce-btn-link {
  border-color: transparent;
  font-weight: 400;
}

.ce-scale-labels {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  opacity: 0.7;
  margin-top: 4px;
}

.ce-cta-image {
  display: block;
  width: 100%;
  max-height: 168px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 10px;
}
.ce-cta-price {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 6px;
}
.ce-cta-disclosure {
  font-size: 11px;
  opacity: 0.6;
  margin-bottom: 8px;
}
.ce-btn-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 11px 14px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.01em;
  background: var(--ce-type, var(--ce-primary, #2962ff));
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 6px 16px -6px color-mix(in srgb, var(--ce-type, #2962ff) 70%, transparent);
}
.ce-btn-cta:hover { background: color-mix(in srgb, var(--ce-type, #2962ff) 85%, #000); color: #fff; }

#ce-root[data-position^="top"]    { top: 64px; bottom: 16px; }
#ce-root[data-position^="middle"] { top: 50%; bottom: auto; transform: translateY(-50%); }
#ce-root[data-position^="bottom"] { bottom: 64px; top: 16px; }
#ce-root[data-position$="left"]   { left: 16px; right: auto; }
#ce-root[data-position$="right"]  { right: 16px; left: auto; }
#ce-root[data-position$="center"] { left: 50%; right: auto; transform: translateX(-50%); }

#ce-root[data-position="center"] { left: 50%; top: 50%; right: auto; bottom: auto; transform: translate(-50%, -50%); }
#ce-root[data-position$="left"] .ce-thread   { align-items: flex-start; }
#ce-root[data-position$="center"] .ce-thread { align-items: center; }

#ce-root[data-promo="true"] {
  left: 12px;
  right: 12px;
  bottom: 12px;
  top: auto;
  transform: none;
}
#ce-root[data-promo="true"] .ce-thread {
  align-items: stretch;
  max-height: none;
  width: 100%;
}
#ce-root[data-promo="true"] .ce-card {
  width: 100%;
  max-width: 100%;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 13px;
  padding: 10px 14px;
  animation: ce-promo-in 0.3s cubic-bezier(0.2, 0.8, 0.3, 1);
}

#ce-root[data-promo="true"] .ce-card .ce-header,
#ce-root[data-promo="true"] .ce-card .ce-content { display: contents; }

#ce-root[data-promo="true"] .ce-card .ce-cta-image {
  order: 1; width: 50px; height: 50px; max-height: 50px; margin: 0; border-radius: 10px; flex: none;
}
#ce-root[data-promo="true"] .ce-card .ce-title {
  order: 2; flex: none; margin: 0; white-space: nowrap;
}
#ce-root[data-promo="true"] .ce-card .ce-body {
  order: 3; flex: 1 1 auto; min-width: 0; margin: 0;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
#ce-root[data-promo="true"] .ce-card .ce-cta-disclosure {
  order: 4; flex: none; margin: 0; font-size: 10.5px;
}
#ce-root[data-promo="true"] .ce-card .ce-cta-price {
  order: 5; flex: none; margin: 0; font-size: 15px;
}
#ce-root[data-promo="true"] .ce-card .ce-btn-cta {
  order: 6; width: auto; flex: none; padding: 9px 16px;
}
#ce-root[data-promo="true"] .ce-card .ce-dismiss {
  order: 7; flex: none; align-self: flex-start;
}

#ce-root[data-promo="true"] .ce-card .ce-feedback { display: none; }
@keyframes ce-promo-in {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  #ce-root[data-promo="true"] .ce-card { animation: none; }
}

#ce-notify {
  position: fixed;
  right: 16px;
  top: 16px;
  z-index: 10001;
  font-family: "Roboto", "Segoe UI", system-ui, sans-serif;
  pointer-events: none;
}
#ce-notify .ce-notify-card {
  position: relative;
  pointer-events: auto;
  width: 300px;
  max-width: 80vw;
  box-sizing: border-box;
  background: var(--ce-background, #ffffff);
  color: var(--ce-text, #111111);
  border-radius: 12px;
  border: 1px solid rgba(127, 127, 127, 0.2);
  border-left: 3px solid var(--ce-accent, var(--ce-primary, #c5a200));
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.3), 0 2px 8px rgba(0, 0, 0, 0.22);
  padding: 12px 14px;
  font-size: 14px;
  line-height: 1.45;
  animation: ce-notify-in 0.32s cubic-bezier(0.2, 0.8, 0.3, 1);
}
@keyframes ce-notify-in {
  from { opacity: 0; transform: translateY(-10px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
@media (prefers-reduced-motion: reduce) {
  #ce-notify .ce-notify-card { animation: none; }
}
.ce-notify-eyebrow {
  font-weight: 700;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ce-primary, #2962ff);
  margin-bottom: 4px;
  padding-right: 18px; 
}
.ce-notify-title {
  font-weight: 600;
  margin-bottom: 10px;
  overflow-wrap: break-word;
  word-wrap: break-word;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ce-notify-sub {
  font-size: 12px;
  opacity: 0.72;
  margin: -6px 0 10px;
}
.ce-notify-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.ce-notify-watch { padding: 7px 14px; width: auto; }
.ce-notify-secondary { padding: 7px 8px; }
.ce-notify-mute { padding: 7px 6px; opacity: 0.7; margin-left: auto; }
.ce-notify-mute:hover { opacity: 1; }
.ce-notify-close {
  position: absolute;
  top: 6px;
  right: 8px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 13px;
  line-height: 1;
  color: var(--ce-text, #111111);
  opacity: 0.5;
  padding: 2px 4px;
}
.ce-notify-close:hover { opacity: 1; }

#ce-root .ce-card .ce-body[data-len="long"] { font-size: 13px; line-height: 1.45; }
#ce-root .ce-card .ce-body[data-len="xlong"] { font-size: 12px; line-height: 1.4; }

.ce-hdr-action {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 13px;
  color: var(--ce-text, #111111);
  opacity: 0.55;
  padding: 2px 6px;
  line-height: 1;
}
.ce-hdr-action:hover { opacity: 1; }
.ce-hdr-action[data-done="true"] { opacity: 0.9; cursor: default; }

@keyframes pulse-launcher {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.15); opacity: 0.8; }
}

.ce-notebook-launcher {
  position: absolute;
  bottom: 100%;
  margin-bottom: 6px;
  transform: translateX(-50%);
  pointer-events: auto;
  z-index: 2147482999;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.85);
  cursor: pointer;
  font-size: 22px;
  line-height: 40px;
  text-align: center;
  background: rgba(var(--ce-accent-rgb, 255, 213, 74), 0.35);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
}
.ce-notebook-launcher:hover {
  
  transform: translateX(-50%) scale(1.1);
  background: rgba(var(--ce-accent-rgb, 255, 213, 74), 0.35);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}
.ce-notebook-launcher.pulse { animation: pulse-launcher 1.2s ease-out; }

.ce-notebook {
  position: fixed;
  z-index: 2147483000;
  width: 320px;
  max-width: calc(100vw - 36px);
  max-height: 60vh;
  display: flex;
  flex-direction: column;
  background: rgba(var(--ce-background-rgb, 255, 255, 255), 0.05);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 14px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  font-family: ui-rounded, "SF Pro Rounded", "Segoe UI", system-ui, sans-serif;
  overflow: hidden;
  backdrop-filter: blur(12px);
}
.ce-nb-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.ce-nb-title { font-weight: 700; font-size: 13px; flex: 1; letter-spacing: 0.3px; }
.ce-nb-input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  font-size: 13px;
  line-height: 1.5;
  font-family: inherit;
  resize: none;
  min-height: 50px;
  max-height: 120px;
  box-sizing: border-box;
}
.ce-nb-input::placeholder { color: rgba(255, 255, 255, 0.6); }
.ce-nb-input:focus {
  outline: none;
  border-color: rgba(var(--ce-primary-rgb, 41, 98, 255), 0.8);
  background: rgba(255, 255, 255, 0.15);
  box-shadow: 0 0 0 2px rgba(var(--ce-primary-rgb, 41, 98, 255), 0.2);
}

.ce-nb-input.ce-nb-save-failed {
  border-color: var(--ce-danger, #d93025);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--ce-danger, #d93025) 30%, transparent);
}
.ce-nb-list { overflow-y: auto; padding: 6px 0; max-height: 30vh; }
.ce-nb-empty { padding: 18px 14px; font-size: 12px; opacity: 0.7; line-height: 1.5; text-align: center; }
.ce-nb-note {
  padding: 10px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 12px;
}
.ce-nb-note:last-child { border-bottom: none; }
.ce-nb-meta { font-size: 11px; opacity: 0.6; margin-bottom: 3px; }
.ce-nb-jump {
  cursor: pointer;
  color: #64b5f6;
  opacity: 0.9;
  text-decoration: none;
}
.ce-nb-jump:hover { text-decoration: underline; }
.ce-nb-body { font-size: 12px; line-height: 1.4; white-space: pre-wrap; opacity: 0.85; }
.ce-nb-answer {
  font-size: 11px;
  margin-top: 4px;
  color: #81c784;
}

.ce-nb-thoughts {
  width: 100%;
  box-sizing: border-box;
  margin-top: 5px;
  padding: 4px 6px;
  border-radius: 6px;
  border: 1px solid transparent;
  background: rgba(255, 255, 255, 0.04);
  color: inherit;
  font: inherit;
  font-size: 12px;
  line-height: 1.4;
  resize: vertical;
}
.ce-nb-thoughts[readonly] { cursor: pointer; opacity: 0.75; }
.ce-nb-thoughts:not([readonly]) {
  border-color: rgba(100, 181, 246, 0.6);
  background: rgba(255, 255, 255, 0.08);
}
.ce-nb-note.editing .ce-nb-thoughts { outline: none; }
.ce-nb-actions .ce-nb-delete { color: #ef9a9a; }
.ce-nb-actions { display: flex; gap: 8px; margin-top: 6px; align-items: center; font-size: 11px; }
.ce-nb-actions .ce-btn-link { padding: 2px 0; opacity: 0.7; color: #64b5f6; }
.ce-nb-actions .ce-btn-link:hover { opacity: 1; }

#ce-root .ce-card:not([data-style="horror"]):not([data-style="title_card"]) {
  background:
    linear-gradient(180deg, color-mix(in srgb, #ffffff 7%, transparent), transparent 42%),
    color-mix(in srgb, var(--ce-background, #ffffff) 93%, transparent);
  backdrop-filter: blur(18px) saturate(1.5);
  -webkit-backdrop-filter: blur(18px) saturate(1.5);
  box-shadow:
    0 22px 48px -18px rgba(0, 0, 0, 0.55),
    0 4px 12px -4px rgba(0, 0, 0, 0.3),
    0 0 0 1px color-mix(in srgb, var(--ce-type) 10%, transparent),
    0 18px 40px -22px color-mix(in srgb, var(--ce-type) 70%, transparent);
  animation: ce-card-spring 0.62s cubic-bezier(0.34, 1.4, 0.64, 1) both;
}

#ce-root .ce-card:not([data-style="horror"]):not([data-style="title_card"])::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(115deg, transparent 35%, color-mix(in srgb, #ffffff 16%, transparent) 50%, transparent 65%);
  background-size: 250% 100%; background-position: 130% 0; opacity: 0;
  animation: ce-card-sheen 1.1s ease-out 0.18s both;
}
@keyframes ce-card-spring {
  0%   { opacity: 0; transform: translateY(18px) scale(0.94); filter: blur(6px); }
  55%  { opacity: 1; filter: blur(0); }
  100% { opacity: 1; transform: none; filter: none; }
}
@keyframes ce-card-sheen {
  0% { opacity: 1; background-position: 130% 0; }
  100% { opacity: 0; background-position: -60% 0; }
}
#ce-root.ce-dismissing .ce-card:not([data-style="horror"]):not([data-style="title_card"]) {
  animation: ce-card-away 0.2s cubic-bezier(0.4, 0, 1, 1) forwards;
}
@keyframes ce-card-away {
  to { opacity: 0; transform: translateY(8px) scale(0.95); filter: blur(5px); }
}

#ce-root .ce-card:not([data-style="horror"]):not([data-style="title_card"]) :is(.ce-header, .ce-card-image, .ce-caption, .ce-upnext-heading, .ce-body, .ce-content, .ce-actions, .ce-scale, .ce-feedback) {
  animation: ce-pop-in 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
}
#ce-root .ce-card :is(.ce-body, .ce-caption, .ce-upnext-heading) { animation-delay: 0.07s; }
#ce-root .ce-card :is(.ce-content, .ce-actions, .ce-scale) { animation-delay: 0.13s; }
#ce-root .ce-card .ce-feedback { animation-delay: 0.22s; }
@keyframes ce-pop-in { from { opacity: 0; transform: translateY(6px); } }

#ce-root .ce-card:not([data-style="horror"]):not([data-style="title_card"]) .ce-title::before {
  animation: ce-glyph 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 0.18s both;
  box-shadow: 0 0 0 0 color-mix(in srgb, var(--ce-type) 40%, transparent);
}
@keyframes ce-glyph {
  0% { transform: scale(0) rotate(-30deg); }
  60% { transform: scale(1.2) rotate(6deg); box-shadow: 0 0 0 5px color-mix(in srgb, var(--ce-type) 18%, transparent); }
  100% { transform: none; box-shadow: 0 0 0 0 transparent; }
}

#ce-root .ce-countdown-bar {
  background: linear-gradient(90deg, var(--ce-primary, #2962ff), var(--ce-accent, var(--ce-primary, #2962ff)));
  box-shadow: 0 0 10px color-mix(in srgb, var(--ce-accent, var(--ce-primary, #2962ff)) 70%, transparent);
}

#ce-root .ce-card .ce-btn {
  position: relative;
  transition: background 0.2s, border-color 0.2s, color 0.2s, box-shadow 0.25s, transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
#ce-root .ce-card .ce-btn:not(:disabled):hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px -8px color-mix(in srgb, var(--ce-type, #2962ff) 75%, transparent);
}
#ce-root .ce-card .ce-btn:not(:disabled):active { transform: scale(0.96); transition-duration: 0.06s; }
#ce-root .ce-card .ce-btn-choice { transition: background 0.2s, border-color 0.2s, color 0.2s, opacity 0.25s, box-shadow 0.25s, transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1); }
#ce-root .ce-card .ce-btn-choice:not(:disabled):hover { transform: translateX(3px); }
#ce-root .ce-card .ce-btn.ce-chosen { animation: ce-chosen 0.45s cubic-bezier(0.34, 1.56, 0.64, 1); }
@keyframes ce-chosen { 0% { transform: scale(0.94); } 60% { transform: scale(1.04); } 100% { transform: none; } }

#ce-root .ce-card .ce-btn.ce-right {
  animation: ce-right-ring 0.5s ease-out 3; 
  padding-right: 30px;
}
#ce-root .ce-card .ce-btn.ce-right::after,
#ce-root .ce-card .ce-btn.ce-wrong::after {
  position: absolute; right: 10px; top: 50%; margin-top: -8px; width: 16px; height: 16px;
  display: grid; place-items: center; border-radius: 50%;
  font-size: 11px; font-weight: 800; line-height: 1; color: #ffffff; background: rgba(255, 255, 255, 0.22);
  animation: ce-mark-in 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}
#ce-root .ce-card .ce-btn.ce-right::after { content: "✓"; }
#ce-root .ce-card .ce-btn.ce-wrong { animation: ce-shake 0.42s cubic-bezier(0.36, 0.07, 0.19, 0.97); padding-right: 30px; }
#ce-root .ce-card .ce-btn.ce-wrong::after { content: "✕"; }
@keyframes ce-right-ring {
  0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--ce-ok, #1e8e3e) 65%, transparent); filter: brightness(1.2); }
  100% { box-shadow: 0 0 0 10px transparent; filter: brightness(1); }
}
@keyframes ce-shake {
  15%, 55% { transform: translateX(-4px); }
  35%, 75% { transform: translateX(4px); }
  90% { transform: translateX(-1px); }
}
@keyframes ce-mark-in { from { transform: scale(0) rotate(-45deg); opacity: 0; } }

#ce-root .ce-card .ce-fb-btn { transition: opacity 0.2s, transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1); }
#ce-root .ce-card .ce-fb-btn:not(:disabled):hover { transform: translateY(-2px) scale(1.12); }
#ce-root .ce-card .ce-fb-btn.ce-fb-chosen { animation: ce-thumb 0.55s cubic-bezier(0.34, 1.56, 0.64, 1) both; }
@keyframes ce-thumb { 0% { transform: scale(0.8); } 50% { transform: scale(1.45) rotate(-12deg); } 100% { transform: scale(1.1); } }

#ce-root .ce-celebrate { position: relative; overflow: visible; isolation: isolate; }
#ce-root .ce-celebrate::before,
#ce-root .ce-celebrate::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 12px; margin: -6px; z-index: -1;
  border-radius: 50%; pointer-events: none;
  box-shadow:
    -120px -34px 0 -2px var(--ce-accent, #ffd54a), 110px -40px 0 -3px var(--ce-primary, #2962ff),
    -150px 16px 0 -3px var(--ce-primary, #2962ff), 160px 10px 0 -2px var(--ce-accent, #ffd54a),
    -60px -52px 0 -4px var(--ce-accent, #ffd54a), 70px 46px 0 -4px var(--ce-accent, #ffd54a),
    -90px 44px 0 -3px var(--ce-primary, #2962ff), 30px -58px 0 -3px var(--ce-primary, #2962ff);
  animation: ce-burst 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.1s both;
}
#ce-root .ce-celebrate::after { transform: rotate(40deg) scale(0.8); animation-delay: 0.22s; }
@keyframes ce-burst {
  0% { opacity: 1; transform: scale(0.1); }
  70% { opacity: 1; }
  100% { opacity: 0; transform: scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  #ce-root .ce-card:not([data-style="horror"]):not([data-style="title_card"]) { animation: ce-fade 0.18s ease both; }
  #ce-root.ce-dismissing .ce-card:not([data-style="horror"]):not([data-style="title_card"]) { animation: ce-fade-away 0.2s ease forwards; }
  #ce-root .ce-card::after,
  #ce-root .ce-card :is(.ce-header, .ce-card-image, .ce-caption, .ce-upnext-heading, .ce-body, .ce-content, .ce-actions, .ce-scale, .ce-feedback),
  #ce-root .ce-card .ce-title::before,
  #ce-root .ce-card .ce-btn,
  #ce-root .ce-card .ce-fb-btn,
  #ce-root .ce-celebrate::before, #ce-root .ce-celebrate::after { animation: none !important; transform: none !important; }
  #ce-root .ce-card .ce-btn.ce-right::after, #ce-root .ce-card .ce-btn.ce-wrong::after { animation: none; }
}
@keyframes ce-fade { from { opacity: 0; } }
@keyframes ce-fade-away { to { opacity: 0; } }
