:root {
  --bg: #f5f5f3;
  --surface: #ffffff;
  --border: #e1e1de;
  --text: #24262a;
  --text-muted: #82858c;
  --accent: #4a5c6e;
  --accent-soft: #dde3e8;
  --danger: #b5543a;
  --break: #5b8a72;
  --break-soft: #e0ebe4;
  --pixel: #d9679a;
  --pixel-soft: #fbe4f0;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(36, 38, 42, 0.05), 0 8px 24px rgba(36, 38, 42, 0.06);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #191a1c;
    --surface: #232527;
    --border: #35383c;
    --text: #eceef0;
    --text-muted: #9a9da3;
    --accent: #8ba3b8;
    --accent-soft: #2c3a45;
    --danger: #e08a5b;
    --break: #7fb99a;
    --break-soft: #2c3a32;
    --pixel: #ee8fb8;
    --pixel-soft: #3a2530;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.2), 0 8px 24px rgba(0, 0, 0, 0.3);
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
}

.app {
  max-width: 520px;
  margin: 0 auto;
  padding: 40px 20px 80px;
}

.app-header {
  text-align: center;
  margin-bottom: 32px;
}

.app-header h1 {
  font-size: 1.6rem;
  margin: 0 0 6px;
  letter-spacing: -0.02em;
}

.subtitle {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin: 0;
}

.hidden { display: none !important; }

/* ---------- Theme picker ---------- */

.theme-picker {
  display: inline-flex;
  gap: 6px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px;
  margin-top: 16px;
}

.theme-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: 999px;
  cursor: pointer;
}

.theme-btn-icon {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

.theme-btn.active {
  background: var(--accent-soft);
  color: var(--text);
}

/* ---------- Theme skins ---------- */
/* Cozy and Pixel commit to their own fixed palette (they don't follow
   system light/dark) so each theme reads as a distinct, complete look
   rather than just a decoration layered on the default skin. */

body.theme-cozy {
  --bg: #fbf3e7;
  --surface: #fffaf2;
  --border: #e8d4b8;
  --text: #4a3624;
  --text-muted: #8a7358;
  --accent: #c4693f;
  --accent-soft: #f0dccd;
  --shadow: 0 1px 2px rgba(74, 54, 36, 0.06), 0 8px 24px rgba(74, 54, 36, 0.08);
}

body.theme-cozy .app-header h1,
body.theme-cozy #current-task-name,
body.theme-cozy .complete-card h2 {
  font-family: Georgia, "Iowan Old Style", "Times New Roman", serif;
}

body.theme-pixel {
  --bg: #f3ecfb;
  --surface: #ffffff;
  --border: #2a2140;
  --text: #2a2140;
  --text-muted: #7d6f96;
  --accent: #d9679a;
  --accent-soft: #fbe4f0;
  --shadow: 0 2px 0 rgba(42, 33, 64, 0.15);
  font-family: ui-monospace, "SF Mono", "Courier New", monospace;
}

body.theme-pixel .btn,
body.theme-pixel .theme-picker,
body.theme-pixel .mode-toggle,
body.theme-pixel .auto-time-input,
body.theme-pixel .buffer-input,
body.theme-pixel .task-row,
body.theme-pixel .current-task,
body.theme-pixel .complete-card {
  border-radius: 8px;
}

body.theme-pixel .btn {
  border: 2px solid var(--text);
  box-shadow: 3px 3px 0 var(--text);
  transition: transform 0.05s ease, box-shadow 0.05s ease;
}

body.theme-pixel .btn:active {
  transform: translate(3px, 3px);
  box-shadow: 0 0 0 var(--text);
}

body.theme-pixel .btn-primary { border-color: var(--text); }

body.theme-pixel .theme-picker,
body.theme-pixel .mode-toggle {
  border: 2px solid var(--border);
}

body.theme-cyberpunk {
  --cyber-cyan: #2de3ff;
  --bg: #0d0a17;
  --surface: #17122b;
  --border: #3d2f5c;
  --text: #f1ecff;
  --text-muted: #9b8fc4;
  --accent: #ff2fb0;
  --accent-soft: #3a1f4d;
  --shadow: 0 0 0 1px rgba(255, 47, 176, 0.15), 0 0 24px rgba(255, 47, 176, 0.12);
  font-family: "Special Elite", "Courier New", monospace;
}

body.theme-cyberpunk .app-header h1 {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  animation: cyber-title-glitch 5s infinite;
}

@keyframes cyber-title-glitch {
  0%, 92%, 100% {
    text-shadow: 0 0 12px rgba(255, 47, 176, 0.5);
    transform: translate(0, 0);
  }
  92.5% {
    text-shadow: 2px 0 var(--cyber-cyan), -2px 0 #ff2fb0, 0 0 16px rgba(255, 47, 176, 0.7);
    transform: translate(-2px, 0);
  }
  93% {
    text-shadow: -3px 0 var(--cyber-cyan), 3px 0 #ff2fb0, 0 0 6px rgba(255, 47, 176, 0.3);
    transform: translate(2px, 0);
  }
  93.5% {
    text-shadow: 2px 0 var(--cyber-cyan), -1px 0 #ff2fb0, 0 0 18px rgba(255, 47, 176, 0.8);
    transform: translate(-1px, 0);
  }
  94% {
    text-shadow: 0 0 12px rgba(255, 47, 176, 0.5);
    transform: translate(0, 0);
  }
}

body.theme-cyberpunk .theme-btn.active,
body.theme-cyberpunk .mode-btn.active {
  animation: cyber-buzz 3.4s infinite;
}

@keyframes cyber-buzz {
  0%, 87%, 100% { box-shadow: 0 0 10px rgba(255, 47, 176, 0.45); }
  88%           { box-shadow: 0 0 3px rgba(255, 47, 176, 0.15); }
  89%           { box-shadow: 0 0 14px rgba(255, 47, 176, 0.65); }
  90%           { box-shadow: 0 0 2px rgba(255, 47, 176, 0.1); }
  91%           { box-shadow: 0 0 10px rgba(255, 47, 176, 0.45); }
}

body.theme-cyberpunk .btn,
body.theme-cyberpunk .theme-picker,
body.theme-cyberpunk .mode-toggle,
body.theme-cyberpunk .auto-time-input,
body.theme-cyberpunk .buffer-input,
body.theme-cyberpunk .task-row,
body.theme-cyberpunk .current-task,
body.theme-cyberpunk .complete-card {
  border-radius: 8px;
  border: 1px solid var(--border);
}

body.theme-cyberpunk .current-task:not(.on-break) {
  animation: cyber-card-glitch 6s infinite;
}

@keyframes cyber-card-glitch {
  0%, 95%, 100% {
    transform: translate(0, 0);
    box-shadow: var(--shadow);
  }
  95.3% {
    transform: translate(-4px, 0);
    box-shadow: 3px 0 0 rgba(45, 227, 255, 0.5), -3px 0 0 rgba(255, 47, 176, 0.5);
  }
  95.6% {
    transform: translate(3px, 0);
    box-shadow: -3px 0 0 rgba(45, 227, 255, 0.5), 3px 0 0 rgba(255, 47, 176, 0.5);
  }
  96%   {
    transform: translate(-2px, 0);
    box-shadow: 2px 0 0 rgba(45, 227, 255, 0.4), -2px 0 0 rgba(255, 47, 176, 0.4);
  }
  96.4% {
    transform: translate(0, 0);
    box-shadow: var(--shadow);
  }
}

body.theme-cyberpunk .btn-primary {
  animation: cyber-buzz 3.4s infinite;
}

body.theme-cyberpunk .btn-primary:hover {
  box-shadow: 0 0 22px rgba(255, 47, 176, 0.75);
}

/* ---------- Planning screen ---------- */

.mode-toggle {
  display: flex;
  gap: 6px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px;
  margin-bottom: 16px;
}

.mode-btn {
  flex: 1;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  padding: 8px 10px;
  border-radius: 999px;
  cursor: pointer;
}

.mode-btn.active {
  background: var(--accent-soft);
  color: var(--text);
}

.auto-time-input {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 14px 16px;
  margin-bottom: 14px;
}

.auto-time-label {
  display: block;
  color: var(--text-muted);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}

.auto-time-fields {
  display: flex;
  align-items: center;
  gap: 6px;
}

.auto-time-fields input {
  width: 56px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
  color: var(--text);
  font-size: 0.95rem;
  text-align: center;
  padding: 8px 4px;
  outline: none;
}

.auto-time-fields input:focus { border-color: var(--accent); }

.auto-time-fields .unit {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-right: 8px;
}

.task-row .priority-select {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
  color: var(--text);
  font-size: 0.85rem;
  padding: 6px 4px;
  outline: none;
}

.task-row .priority-select:focus { border-color: var(--accent); }

.task-row .computed-minutes {
  min-width: 52px;
  text-align: right;
  color: var(--text-muted);
  font-size: 0.85rem;
  font-variant-numeric: tabular-nums;
}

.task-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 14px;
}

.task-row {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 12px;
  box-shadow: var(--shadow);
}

.task-row input[type="text"] {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  color: var(--text);
  font-size: 0.98rem;
  outline: none;
}

.task-row input[type="text"]::placeholder { color: var(--text-muted); }

.task-row .task-minutes {
  width: 56px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
  color: var(--text);
  font-size: 0.92rem;
  text-align: center;
  padding: 6px 4px;
  outline: none;
}

.task-row .task-minutes:focus { border-color: var(--accent); }

.task-row .unit {
  color: var(--text-muted);
  font-size: 0.82rem;
}

.task-row .remove-task {
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  padding: 4px 6px;
  border-radius: 6px;
}

.task-row .remove-task:hover {
  color: var(--danger);
  background: var(--accent-soft);
}

.buffer-input {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 14px 16px;
  margin: 14px 0;
}

.buffer-label {
  display: block;
  color: var(--text-muted);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}

.buffer-fields {
  display: flex;
  align-items: center;
  gap: 6px;
}

.buffer-fields input {
  width: 56px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
  color: var(--text);
  font-size: 0.95rem;
  text-align: center;
  padding: 8px 4px;
  outline: none;
}

.buffer-fields input:focus { border-color: var(--accent); }

.buffer-fields .unit {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.buffer-hint {
  margin: 8px 0 0;
  color: var(--text-muted);
  font-size: 0.78rem;
}

.buffer-indicator {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.82rem;
  margin: 14px 0 0;
}

.planning-summary {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.88rem;
  margin: 6px 0 20px;
}

.btn {
  font-family: inherit;
  font-size: 0.95rem;
  border-radius: 999px;
  padding: 12px 20px;
  border: none;
  cursor: pointer;
  transition: transform 0.06s ease, opacity 0.15s ease, background 0.15s ease;
}

.btn:active { transform: scale(0.97); }

.btn-primary {
  width: 100%;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
}

.btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.btn-secondary {
  background: var(--accent-soft);
  color: var(--text);
  font-weight: 600;
}

.btn-ghost {
  width: 100%;
  background: transparent;
  color: var(--text-muted);
  border: 1px dashed var(--border);
}

#add-task-btn { width: 100%; }

.session-controls .btn-ghost {
  width: auto;
  border: none;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- Session screen ---------- */

.session-progress {
  height: 6px;
  background: var(--border);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 10px;
}

.session-progress-bar {
  height: 100%;
  width: 0%;
  background: var(--accent);
  transition: width 0.3s ease;
}

.up-next {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.82rem;
  min-height: 1.2em;
  margin-bottom: 24px;
}

.current-task {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: var(--shadow);
  padding: 28px 24px 24px;
  text-align: center;
}

.current-task-label {
  color: var(--text-muted);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0 0 4px;
}

.current-task h2 {
  margin: 0 0 20px;
  font-size: 1.3rem;
}

.timer-ring-wrap {
  position: relative;
  width: 200px;
  height: 200px;
  margin: 0 auto 20px;
}

.timer-ring { width: 100%; height: 100%; transform: rotate(-90deg); }

.timer-ring-bg, .timer-ring-fg {
  fill: none;
  stroke-width: 10;
}

.timer-ring-bg { stroke: var(--border); }

.timer-ring-fg {
  stroke: var(--accent);
  stroke-linecap: round;
  stroke-dasharray: 565.48;
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 0.3s linear;
}

.timer-time {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}

.task-progress {
  height: 4px;
  background: var(--border);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 4px;
}

.task-progress-bar {
  height: 100%;
  width: 0%;
  background: var(--accent);
  transition: width 0.3s linear;
}

.session-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-top: 24px;
}

.float-btn {
  width: 100%;
  margin-top: 16px;
}

.float-hint {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.8rem;
  margin: 10px 0 0;
}

/* ---------- Floating widget (PiP window content) ---------- */

.pip-widget {
  background: var(--bg);
  color: var(--text);
  text-align: center;
  padding: 16px 12px;
  font-family: inherit;
}

.pip-task-name {
  font-size: 0.95rem;
  font-weight: 600;
  margin: 0 0 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pip-ring-wrap {
  width: 120px;
  height: 120px;
  margin: 0 auto 12px;
}

.pip-timer-time {
  font-size: 1.3rem;
}

.pip-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.pip-controls .btn {
  padding: 8px 14px;
  font-size: 0.85rem;
}

/* ---------- Complete screen ---------- */

.complete-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: var(--shadow);
  padding: 40px 28px;
  text-align: center;
}

.complete-card h2 { margin: 0 0 10px; }

.complete-card p {
  color: var(--text-muted);
  margin: 0 0 24px;
}

.paused .timer-ring-fg { stroke: var(--text-muted); }

.current-task.on-break {
  background: var(--break-soft);
}

.current-task.on-break .timer-ring-fg { stroke: var(--break); }
.current-task.on-break .task-progress-bar { background: var(--break); }
.current-task.on-break .current-task-label { color: var(--break); }
.paused .current-task.on-break .timer-ring-fg { stroke: var(--text-muted); }

/* ---------- Cozy theme ---------- */

.cozy-leaves {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 5;
}

.cozy-leaves .leaf {
  position: absolute;
  top: -50px;
  width: 26px;
  height: 26px;
  background: url("assets/cozy/leaf.png") center / contain no-repeat;
  opacity: 0.9;
  animation: leaf-fall linear infinite;
}

.cozy-leaves .leaf:nth-child(1) { left: 6%;  width: 22px; height: 22px; animation-duration: 12s; animation-delay: 0s; }
.cozy-leaves .leaf:nth-child(2) { left: 22%; width: 32px; height: 32px; animation-duration: 16s; animation-delay: 2s; }
.cozy-leaves .leaf:nth-child(3) { left: 40%; width: 20px; height: 20px; animation-duration: 10s; animation-delay: 4s; }
.cozy-leaves .leaf:nth-child(4) { left: 62%; width: 28px; height: 28px; animation-duration: 15s; animation-delay: 1s; }
.cozy-leaves .leaf:nth-child(5) { left: 80%; width: 24px; height: 24px; animation-duration: 11s; animation-delay: 5s; }
.cozy-leaves .leaf:nth-child(6) { left: 92%; width: 22px; height: 22px; animation-duration: 17s; animation-delay: 3s; }

@keyframes leaf-fall {
  0%   { transform: translate(0, 0) rotate(0deg); opacity: 0; }
  8%   { opacity: 0.9; }
  30%  { transform: translate(30px, 30vh) rotate(160deg); }
  60%  { transform: translate(-24px, 62vh) rotate(300deg); }
  92%  { opacity: 0.9; }
  100% { transform: translate(20px, 105vh) rotate(500deg); opacity: 0; }
}

.cozy-scene {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 28px;
  margin-top: 20px;
}

.cozy-candle-wrap {
  width: 54px;
  height: 96px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.cozy-candle-scale {
  width: 100%;
  height: 100%;
  transform-origin: bottom center;
  transform: scaleY(1);
  transition: transform 1s linear;
  animation: candle-flicker 2.4s ease-in-out infinite;
}

.cozy-candle {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: bottom;
  display: block;
}

@keyframes candle-flicker {
  0%, 100% { filter: brightness(1); }
  25%      { filter: brightness(1.05); }
  50%      { filter: brightness(0.97); }
  75%      { filter: brightness(1.03); }
}

.cozy-coffee-wrap {
  position: relative;
  width: 44px;
  height: 70px;
  animation: coffee-bob 3.6s ease-in-out infinite;
}

.cozy-coffee {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: bottom;
  display: block;
}

@keyframes coffee-bob {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-4px); }
}

.cozy-steam {
  position: absolute;
  top: -6px;
  width: 5px;
  height: 14px;
  border-radius: 50%;
  background: var(--text-muted);
  opacity: 0;
  filter: blur(2px);
  animation: steam-rise 3s ease-in infinite;
}

.cozy-steam:first-child { left: 14px; animation-delay: 0s; }
.cozy-steam:last-child  { left: 24px; animation-delay: 1.4s; }

@keyframes steam-rise {
  0%   { transform: translateY(0) scaleX(1); opacity: 0; }
  20%  { opacity: 0.45; }
  80%  { opacity: 0.15; }
  100% { transform: translateY(-26px) scaleX(1.6); opacity: 0; }
}

/* ---------- Pixel theme ---------- */

.pixel-sparkles {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 5;
}

.pixel-sparkles .sparkle {
  position: absolute;
  width: 28px;
  height: 28px;
  object-fit: contain;
  opacity: 0;
  animation: sparkle-twinkle 3.6s ease-in-out infinite;
}

.pixel-sparkles .sparkle:nth-child(1) { top: 10%;  left: 8%;  animation-delay: 0s; }
.pixel-sparkles .sparkle:nth-child(2) { top: 18%;  right: 10%; animation-delay: 0.9s; }
.pixel-sparkles .sparkle:nth-child(3) { bottom: 22%; left: 6%;  animation-delay: 1.8s; }
.pixel-sparkles .sparkle:nth-child(4) { bottom: 14%; right: 8%; animation-delay: 2.7s; }

@keyframes sparkle-twinkle {
  0%, 100% { opacity: 0; transform: scale(0.7) rotate(0deg); }
  50%      { opacity: 0.9; transform: scale(1.05) rotate(8deg); }
}

.pixel-track {
  position: relative;
  height: 68px;
  margin-top: 20px;
}

.pixel-rabbit-pos {
  position: absolute;
  bottom: 0;
  left: 0%;
  width: 56px;
  transition: left 1s linear;
}

.pixel-rabbit-hop {
  width: 100%;
  display: block;
  animation: pixel-hop 0.6s ease-in-out infinite;
}

@keyframes pixel-hop {
  0%, 100% { transform: translateY(0) scaleX(1); }
  35%      { transform: translateY(-7px) scaleX(0.96); }
  55%      { transform: translateY(-7px) scaleX(0.96); }
  80%      { transform: translateY(0) scaleX(1.02); }
}

.pixel-strawberry {
  position: absolute;
  bottom: 2px;
  right: 4px;
  width: 38px;
  object-fit: contain;
  animation: pixel-pulse 1.8s ease-in-out infinite;
}

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

.current-task.theme-pixel:not(.on-break) .timer-ring-fg { stroke: var(--pixel); }
.current-task.theme-pixel:not(.on-break) .task-progress-bar { background: var(--pixel); }

.pixel-celebrate {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 6px;
}

.pixel-celebrate img {
  object-fit: contain;
  animation: pixel-celebrate-pop 1.4s ease-in-out infinite;
}

.pixel-celebrate-rabbit { width: 72px; animation-delay: 0s; }
.pixel-celebrate-strawberry { width: 40px; animation-delay: 0.15s; }
.pixel-celebrate-bow { width: 36px; animation-delay: 0.3s; }

@keyframes pixel-celebrate-pop {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%      { transform: translateY(-10px) rotate(-6deg); }
}

/* ---------- Cyberpunk theme ---------- */

.cyberpunk-eyes {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 5;
}

.cyberpunk-eyes .cyber-eye {
  position: absolute;
  width: 34px;
  height: 34px;
  object-fit: contain;
  opacity: 0;
  filter: drop-shadow(0 0 6px rgba(255, 47, 176, 0.6));
  animation: cyber-eye-blink 5s ease-in-out infinite;
}

.cyberpunk-eyes .cyber-eye:nth-child(1) { top: 14%; left: 8%;  animation-delay: 0s; }
.cyberpunk-eyes .cyber-eye:nth-child(2) { top: 68%; right: 10%; animation-delay: 1.8s; }
.cyberpunk-eyes .cyber-eye:nth-child(3) { bottom: 8%; left: 14%; animation-delay: 3.4s; }

@keyframes cyber-eye-blink {
  0%, 100% { opacity: 0; transform: scaleY(0.1); }
  4%       { opacity: 0.9; transform: scaleY(1); }
  10%      { opacity: 0.9; transform: scaleY(0.1); }
  14%      { opacity: 0.9; transform: scaleY(1); }
  40%      { opacity: 0.9; transform: scaleY(1); }
  46%      { opacity: 0; transform: scaleY(0.1); }
}

.cyberpunk-scanlines {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 3;
  background: repeating-linear-gradient(
    0deg,
    rgba(255, 255, 255, 0.05) 0px,
    rgba(255, 255, 255, 0.05) 1px,
    transparent 1px,
    transparent 3px
  );
  animation: scanline-drift 6s linear infinite;
}

@keyframes scanline-drift {
  from { background-position-y: 0; }
  to   { background-position-y: 300px; }
}

.cyberpunk-glitch-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 6;
  opacity: 0;
  background:
    linear-gradient(180deg, transparent 38%, rgba(45, 227, 255, 0.14) 39%, transparent 41%, transparent 58%, rgba(255, 47, 176, 0.14) 59%, transparent 61%);
  animation: cyber-screen-glitch 6.5s infinite;
}

@keyframes cyber-screen-glitch {
  0%, 96%, 100% { opacity: 0; transform: translateX(0); }
  96.4%         { opacity: 1; transform: translateX(-10px); }
  96.7%         { opacity: 0.7; transform: translateX(10px); }
  97%           { opacity: 1; transform: translateX(-5px); }
  97.3%         { opacity: 0; transform: translateX(0); }
}

.cyberpunk-scene {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin-top: 20px;
}

.cyberpunk-cat {
  width: 76px;
  object-fit: contain;
  filter: drop-shadow(0 0 6px rgba(45, 227, 255, 0.4)) brightness(0.85);
  transition: filter 1s linear;
}

.cyberpunk-heart {
  width: 46px;
  object-fit: contain;
  filter: drop-shadow(0 0 8px rgba(255, 47, 176, 0.55));
  animation: cyber-heartbeat 1.2s ease-in-out infinite;
}

@keyframes cyber-heartbeat {
  0%, 100% { transform: scale(1); }
  25%      { transform: scale(1.18); }
  40%      { transform: scale(1); }
  55%      { transform: scale(1.12); }
}

.current-task.theme-cyberpunk:not(.on-break) .timer-ring-fg {
  stroke: var(--accent);
  filter: drop-shadow(0 0 6px rgba(255, 47, 176, 0.7));
}
.current-task.theme-cyberpunk:not(.on-break) .task-progress-bar { background: var(--accent); }

.cyberpunk-celebrate {
  display: flex;
  justify-content: center;
  margin-bottom: 6px;
}

.cyberpunk-celebrate img {
  width: 130px;
  object-fit: contain;
  filter: drop-shadow(0 0 14px rgba(255, 47, 176, 0.6));
  animation: cyber-glitch-in 1.6s ease-out 1;
}

@keyframes cyber-glitch-in {
  0%   { opacity: 0; transform: translate(-6px, 0); clip-path: inset(0 0 60% 0); }
  8%   { opacity: 1; transform: translate(4px, 0); clip-path: inset(40% 0 0 0); }
  16%  { transform: translate(-3px, 0); clip-path: inset(0 0 20% 0); }
  24%  { transform: translate(3px, 0); clip-path: inset(10% 0 0 0); }
  32%  { transform: translate(0, 0); clip-path: inset(0 0 0 0); }
  100% { transform: translate(0, 0); clip-path: inset(0 0 0 0); }
}
