/* ==================== RESET & VARIABLES ==================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg: #f9f6f0;
  --bg-warm: #fffde7;
  --black: #000000;
  --white: #ffffff;
  --yellow: #ffde4d;
  --red: #ff004d;
  --green: #38e54d;
  --cyan: #4d96ff;
  --pink: #ff6b6b;
  --mint: #00ffab;
  --accent: #b98eff;
  --accent-glow: rgba(185, 142, 255, 0.35);
  --font-display: "Archivo Black", sans-serif;
  --font-body: "Inter", sans-serif;
  --font-mono: "JetBrains Mono", monospace;
  --font-accent: "Syne", sans-serif;
  --shadow: 5px 5px 0px var(--black);
  --shadow-sm: 3px 3px 0px var(--black);
  --border: 3px solid var(--black);
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--black);
  overflow: hidden;
  height: 100vh;
  width: 100vw;
  -webkit-font-smoothing: antialiased;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

/* ==================== BOOT SEQUENCE ==================== */
#boot-screen {
  position: fixed;
  inset: 0;
  background: var(--black);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100000;
}

.boot-content {
  text-align: center;
}

.boot-logo {
  font-family: var(--font-display);
  font-size: 80px;
  color: var(--accent);
  display: flex;
  gap: 18px;
  justify-content: center;
}

.boot-logo span {
  display: inline-block;
  opacity: 0;
  transform: translateY(60px);
  animation: bootLetter 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.boot-logo span:nth-child(1) {
  animation-delay: 0.1s;
}

.boot-logo span:nth-child(2) {
  animation-delay: 0.2s;
}

.boot-logo span:nth-child(3) {
  animation-delay: 0.3s;
}

.boot-logo span:nth-child(4) {
  animation-delay: 0.4s;
}

.boot-logo span:nth-child(5) {
  animation-delay: 0.5s;
}

.boot-logo span:nth-child(6) {
  animation-delay: 0.6s;
}

@keyframes bootLetter {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.boot-bar {
  width: 280px;
  height: 12px;
  background: rgba(255, 255, 255, 0.1);
  margin: 40px auto 0;
  border: 2px solid var(--accent);
  padding: 2px;
  border-radius: 2px;
}

.boot-fill {
  height: 100%;
  width: 0%;
  background: var(--accent);
  transition: width 3.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.boot-status {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
  margin-top: 20px;
  letter-spacing: 4px;
  margin-right: -4px;
  opacity: 0;
  animation: fadeIn 0.4s ease 1s forwards;
}

/* ==================== DESKTOP ==================== */
#desktop {
  position: relative;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
}

/* Background — beige/skin color, ready for your own wallpaper */
#desktop-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  background: #EAD8C3;
}



/* ==================== TOP BAR ==================== */
#topbar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 40px;
  background: var(--white);
  border-bottom: var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  z-index: 100;
  transition: filter 0.3s ease;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-mark {
  font-size: 18px;
  color: var(--red);
}

.logo-text {
  font-family: var(--font-display);
  font-size: 16px;
  letter-spacing: 2px;
}

.topbar-right {
  display: flex;
  gap: 20px;
  align-items: center;
}

#date {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  opacity: 0.6;
}

#clock {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  background: var(--black);
  color: var(--accent);
  padding: 4px 12px;
  border-radius: 4px;
  min-width: 70px;
  text-align: center;
  letter-spacing: 1px;
  transition: opacity 0.1s ease;
}

/* Clock glitch effect */
.clock-glitch {
  animation: clockGlitch 0.08s ease infinite;
  background: var(--red) !important;
  color: var(--white) !important;
}

@keyframes clockGlitch {
  0%,
  100% {
    transform: translate(0, 0) skewX(0deg);
  }

  20% {
    transform: translate(-2px, 1px) skewX(-2deg);
  }

  40% {
    transform: translate(2px, -1px) skewX(2deg);
  }

  60% {
    transform: translate(-1px, -1px) skewX(1deg);
  }

  80% {
    transform: translate(1px, 2px) skewX(-1deg);
  }
}

/* ==================== DESKTOP ICONS ==================== */
#desktop-icons {
  position: absolute;
  top: 60px;
  left: 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  z-index: 1;
  transition: transform 0.3s ease;
}

.desk-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  width: 80px;
  user-select: none;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.desk-icon:hover {
  transform: translateY(-4px) scale(1.05);
}

.desk-icon:active {
  transform: translateY(2px) scale(0.95);
}

.desk-icon-box {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  border: var(--border);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.desk-icon:hover .desk-icon-box {
  box-shadow: 6px 6px 0px var(--black);
  transform: rotate(-3deg);
}

.desk-icon:active .desk-icon-box {
  box-shadow: 2px 2px 0px var(--black);
  transform: rotate(-1deg);
}

.desk-icon-label {
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  color: #ffffff;
  text-align: center;
  text-shadow:
    1px  1px 0px rgba(0,0,0,0.85),
   -1px -1px 0px rgba(0,0,0,0.85),
    1px -1px 0px rgba(0,0,0,0.85),
   -1px  1px 0px rgba(0,0,0,0.85),
    0px  2px 6px rgba(0,0,0,0.6);
}

/* ==================== WIDGETS ==================== */
#widgets {
  position: absolute;
  top: 60px;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  z-index: 1;
  transition: transform 0.3s ease;
}

.systems-label {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--white);
  margin-bottom: -6px;
  padding-left: 4px;
  text-shadow:
    1px  1px 0px rgba(0,0,0,0.8),
   -1px -1px 0px rgba(0,0,0,0.8),
    1px -1px 0px rgba(0,0,0,0.8),
   -1px  1px 0px rgba(0,0,0,0.8),
    0px  2px 8px rgba(0,0,0,0.55);
}

.widget {
  background: var(--white);
  border: var(--border);
  box-shadow: var(--shadow);
  border-radius: 12px;
  padding: 16px;
  min-width: 180px;
  user-select: none;
  transition: transform 0.2s ease;
}

.widget:hover {
  transform: translate(-3px, -3px);
  box-shadow: 8px 8px 0px var(--black);
}


.widget-header {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 12px;
  margin-bottom: 12px;
  border-bottom: 2px solid var(--black);
  padding-bottom: 6px;
}

.telemetry-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
}

.t-label {
  opacity: 0.6;
}

.widget-telemetry {
  min-width: 200px;
}

/* ==================== QUICK NOTES STICKY WIDGET ==================== */
.widget-notes-sticky {
  min-width: 220px;
  display: flex;
  flex-direction: column;
}

.sticky-notes-textarea {
  width: 100%;
  min-height: 120px;
  resize: none;
  border: none;
  background: transparent;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.5;
  padding: 4px 0;
  box-sizing: border-box;
  outline: none;
  color: var(--black);
  box-shadow: none;
  transition: none;
}

.sticky-notes-textarea:focus {
  border: none;
  box-shadow: none;
}

.sticky-notes-textarea::placeholder {
  color: rgba(0,0,0,0.3);
  font-style: italic;
}

.sticky-notes-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 8px;
}

.sticky-notes-count {
  font-family: var(--font-mono);
  font-size: 9px;
  opacity: 0.45;
  font-weight: 700;
}

.sticky-notes-clear {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  background: var(--white);
  border: 2px solid var(--black);
  padding: 3px 8px;
  cursor: pointer;
  box-shadow: 2px 2px 0px var(--black);
  letter-spacing: 1px;
  transition: all 0.1s ease;
}

.sticky-notes-clear:hover {
  transform: translate(-1px, -1px);
  box-shadow: 3px 3px 0px var(--black);
}

.sticky-notes-clear:active {
  transform: translate(1px, 1px);
  box-shadow: 1px 1px 0px var(--black);
}

/* ==================== DOCK ==================== */
#dock {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: flex-end;
  gap: 14px;
  background: var(--white);
  border: var(--border);
  box-shadow: var(--shadow);
  border-radius: 20px;
  padding: 14px 20px;
  z-index: 300;
  transition: transform 0.3s ease;
}

.dock-item {
  cursor: pointer;
  user-select: none;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
}

.dock-item:hover {
  transform: translateY(-16px) scale(1.2);
}

.dock-item:active {
  transform: translateY(-8px) scale(1.1);
}

.dock-box {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  border: 3px solid var(--black);
  box-shadow: 3px 3px 0px var(--black);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  transition: all 0.2s ease;
}

.dock-item:hover .dock-box {
  box-shadow: 5px 5px 0px var(--black);
}

.dock-item:active .dock-box {
  box-shadow: 1px 1px 0px var(--black);
  transform: translate(2px, 2px);
}

.dock-divider {
  width: 3px;
  height: 40px;
  background: var(--black);
  border-radius: 2px;
  margin: 0 4px;
}

.wormhole-box {
  background: var(--black) !important;
  color: var(--mint);
  animation: wormholePulse 2s ease-in-out infinite;
}

@keyframes wormholePulse {
  0%,
  100% {
    box-shadow:
      3px 3px 0px var(--black),
      0 0 0 0 rgba(0, 255, 171, 0.4);
  }

  50% {
    box-shadow:
      3px 3px 0px var(--black),
      0 0 0 10px rgba(0, 255, 171, 0);
  }
}

/* ==================== CONTEXT MENU ==================== */
#context-menu {
  position: absolute;
  background: var(--white);
  border: var(--border);
  box-shadow: var(--shadow);
  border-radius: 12px;
  padding: 8px;
  display: none;
  z-index: 9999;
  min-width: 200px;
  user-select: none;
  animation: menuPop 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes menuPop {
  from {
    opacity: 0;
    transform: scale(0.8) translateY(10px);
  }

  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.ctx-item {
  padding: 12px 16px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  cursor: pointer;
  border-radius: 8px;
  transition: all 0.15s ease;
}

.ctx-item:hover {
  background: var(--black);
  color: var(--yellow);
}

.ctx-divider {
  height: 2px;
  background: var(--black);
  margin: 6px 0;
  opacity: 0.1;
}

/* ==================== WINDOWS ==================== */
.window {
  position: absolute;
  background: var(--white);
  border: var(--border);
  box-shadow: var(--shadow);
  border-radius: 16px;
  overflow: hidden;
  z-index: 500;
  display: none;
  flex-direction: column;
  transition:
    transform 0.3s ease,
    filter 0.3s ease;
}

@keyframes windowOpen {
  from {
    opacity: 0;
    transform: scale(0.7) translateY(40px);
  }

  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.window.active {
  z-index: 600;
  box-shadow: 8px 8px 0px var(--black);
}

.window.maximized {
  top: 40px !important;
  left: 0 !important;
  width: 100vw !important;
  height: calc(100vh - 40px) !important;
  border-radius: 0 !important;
  animation: none !important;
}

.window.maximized .window-body {
  flex: 1;
  overflow: auto;
}

.window-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  cursor: move;
  user-select: none;
  user-select: none;
  border-bottom: 3px solid var(--black);
  flex-shrink: 0;
}

.window-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 14px;
  color: var(--black);
  letter-spacing: 1px;
}

.win-icon {
  font-size: 18px;
}

.window-controls {
  display: flex;
  gap: 8px;
}

.win-btn {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid var(--black);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
  background: var(--white);
  box-shadow: 2px 2px 0px var(--black);
}

.win-btn:hover {
  transform: translate(-1px, -1px);
  box-shadow: 3px 3px 0px var(--black);
}

.win-btn:active {
  transform: translate(1px, 1px);
  box-shadow: 1px 1px 0px var(--black);
}

.btn-min:hover {
  background: var(--yellow);
}

.btn-max:hover {
  background: var(--green);
}

.btn-close:hover {
  background: var(--red);
  color: var(--white);
}

.window-body {
  flex: 1;
  overflow: auto;
  display: flex;
  flex-direction: column;
}

/* ==================== TERMINAL ==================== */
.terminal-body {
  background: var(--black);
  padding: 0;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.terminal-output {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.8;
  color: var(--mint);
}

.term-line {
  margin-bottom: 6px;
  opacity: 0;
  animation: typeLine 0.3s ease forwards;
}

@keyframes typeLine {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.term-welcome {
  color: var(--green);
  font-weight: 700;
}

.term-hint {
  color: rgba(255, 255, 255, 0.4);
}

.term-cmd {
  color: var(--yellow);
  background: rgba(255, 222, 77, 0.15);
  padding: 2px 8px;
  border-radius: 4px;
}

.help-table {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px 20px;
  margin: 12px 0;
  padding: 12px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.help-cmd {
  color: var(--yellow);
  font-weight: 700;
}

.help-desc {
  color: rgba(255, 255, 255, 0.7);
}

.terminal-input {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  border-top: 2px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.5);
  flex-shrink: 0;
}

.term-prompt {
  color: var(--green);
  font-weight: 700;
  font-size: 16px;
}

#term-input {
  background: transparent;
  border: none;
  outline: none;
  color: var(--mint);
  font-family: var(--font-mono);
  font-size: 14px;
  flex: 1;
  caret-color: var(--green);
  caret-shape: block;
}

/* ==================== MUSIC ==================== */
.music-body {
  display: flex;
  flex-direction: column;
  padding: 20px;
  flex: 1;
  overflow: hidden;
}

.music-player-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.music-playlist {
  margin-top: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  border-top: 2px dashed var(--black);
  padding-top: 10px;
}

.playlist-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-display);
  font-size: 14px;
  margin-bottom: 10px;
  flex-shrink: 0;
}

.playlist-clear-btn {
  background: transparent;
  border: none;
  color: var(--red);
  font-family: var(--font-mono);
  font-size: 10px;
  cursor: pointer;
  font-weight: bold;
}

.playlist-clear-btn:hover {
  text-decoration: underline;
}

.playlist-tracks {
  list-style: none;
  margin: 0;
  padding: 0;
  overflow-y: auto;
  flex: 1;
}

.playlist-empty {
  font-family: var(--font-mono);
  font-size: 11px;
  text-align: center;
  color: var(--black);
  opacity: 0.5;
  padding: 20px 0;
}

.playlist-track {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transition: background 0.2s;
}

.playlist-track:hover {
  background: rgba(0, 0, 0, 0.05);
}

.playlist-track.active {
  background: var(--yellow);
  font-weight: bold;
}

.track-info-left {
  display: flex;
  gap: 8px;
  align-items: center;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.track-number {
  opacity: 0.5;
  font-size: 10px;
}

.track-duration-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.track-duration {
  opacity: 0.7;
  font-size: 10px;
}

.track-remove {
  background: transparent;
  border: none;
  color: var(--red);
  cursor: pointer;
  font-size: 12px;
  opacity: 0;
  padding: 0 4px;
}

.playlist-track:hover .track-remove {
  opacity: 1;
}

.vinyl-player {
  position: relative;
  width: 180px;
  height: 180px;
  flex-shrink: 0;
}

.vinyl-record {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: var(--black);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border: 3px solid var(--black);
  box-shadow: 4px 4px 0px var(--black);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.vinyl-record.playing {
  animation: vinylSpin 2.5s linear infinite;
}

.vinyl-record.drag-over {
  box-shadow:
    0 0 0 4px var(--yellow),
    4px 4px 0px var(--black);
  transform: translate(-50%, -50%) scale(1.05);
}

@keyframes vinylSpin {
  from {
    transform: translate(-50%, -50%) rotate(0deg);
  }

  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

.vinyl-grooves {
  position: absolute;
  inset: 10px;
  border-radius: 50%;
  background: repeating-radial-gradient(
    circle at center,
    transparent 0px,
    transparent 3px,
    rgba(255, 255, 255, 0.05) 4px,
    transparent 5px
  );
}

.vinyl-label {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--red);
  border: 3px solid var(--black);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
}

.vinyl-hole {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--black);
}

.vinyl-drop-hint {
  position: absolute;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  color: var(--yellow);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 10;
}

.vinyl-record.drag-over .vinyl-drop-hint {
  opacity: 1;
}

.vinyl-arm {
  position: absolute;
  top: -8px;
  right: 25px;
  width: 4px;
  height: 70px;
  background: linear-gradient(to bottom, #ccc, #888);
  border: 2px solid var(--black);
  border-radius: 2px;
  transform-origin: top center;
  transform: rotate(-35deg);
  transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 2px 2px 0px var(--black);
}

.vinyl-arm.playing {
  transform: rotate(15deg);
}

.visualizer {
  display: flex;
  gap: 5px;
  height: 50px;
  align-items: flex-end;
  justify-content: center;
  width: 100%;
}

.viz-bar {
  width: 8px;
  background: var(--red);
  border: 2px solid var(--black);
  border-radius: 4px;
  height: 6px;
  transition: height 0.05s ease;
}

.viz-bar.active {
  animation: vizBounce 0.5s ease infinite alternate;
}

.viz-bar:nth-child(1) {
  animation-delay: 0s;
}

.viz-bar:nth-child(2) {
  animation-delay: 0.08s;
}

.viz-bar:nth-child(3) {
  animation-delay: 0.16s;
}

.viz-bar:nth-child(4) {
  animation-delay: 0.24s;
}

.viz-bar:nth-child(5) {
  animation-delay: 0.32s;
}

.viz-bar:nth-child(6) {
  animation-delay: 0.4s;
}

.viz-bar:nth-child(7) {
  animation-delay: 0.48s;
}

.viz-bar:nth-child(8) {
  animation-delay: 0.56s;
}

@keyframes vizBounce {
  from {
    height: 6px;
  }

  to {
    height: 42px;
  }
}

.track-info {
  text-align: center;
}

.track-name {
  font-family: var(--font-display);
  font-size: 18px;
  letter-spacing: 2px;
}

.track-artist {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 2px;
  opacity: 0.6;
  margin-top: 4px;
}

.progress-track {
  width: 100%;
  height: 10px;
  background: var(--bg);
  border: 2px solid var(--black);
  border-radius: 5px;
  overflow: hidden;
  cursor: pointer;
}

.progress-fill {
  height: 100%;
  width: 0%;
  background: var(--red);
  transition: width 0.1s linear;
}

.music-controls {
  display: flex;
  gap: 12px;
  align-items: center;
}

.m-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 3px solid var(--black);
  background: var(--white);
  box-shadow: 3px 3px 0px var(--black);
  color: var(--black);
  cursor: pointer;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}

.m-btn:hover {
  transform: translateY(-2px);
  box-shadow: 5px 5px 0px var(--black);
}

.m-btn:active {
  transform: translateY(2px);
  box-shadow: 1px 1px 0px var(--black);
}

.m-play {
  width: 64px;
  height: 64px;
  font-size: 22px;
  background: var(--red);
  color: var(--white);
}

.m-upload {
  background: var(--yellow);
  font-size: 18px;
}

.music-volume {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
}

.music-volume input[type="range"] {
  width: 100px;
}

/* ==================== CALCULATOR ==================== */
.calc-body {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 20px;
  flex: 1;
}

.calc-display {
  background: var(--black);
  border: 3px solid var(--black);
  box-shadow: 4px 4px 0px var(--black);
  border-radius: 12px;
  padding: 16px 20px;
  text-align: right;
  flex-shrink: 0;
}

.calc-history {
  font-family: var(--font-mono);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.4);
  min-height: 18px;
}

.calc-current {
  font-family: var(--font-display);
  font-size: 40px;
  color: var(--white);
  margin-top: 4px;
  letter-spacing: 2px;
}

.calc-keypad {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  flex: 1;
}

.window.maximized .calc-keypad {
  max-width: 360px;
  margin: 0 auto;
  width: 100%;
}

.c-btn {
  border-radius: 12px;
  border: 3px solid var(--black);
  font-family: var(--font-display);
  font-size: 20px;
  cursor: pointer;
  transition: all 0.1s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  box-shadow: 3px 3px 0px var(--black);
}

.c-btn:hover {
  transform: translateY(-2px);
  box-shadow: 5px 5px 0px var(--black);
}

.c-btn:active {
  transform: translateY(2px);
  box-shadow: 1px 1px 0px var(--black);
}

.c-num {
  background: var(--white);
  color: var(--black);
}

.c-op {
  background: var(--yellow);
  color: var(--black);
}

.c-eq {
  background: var(--green);
  color: var(--black);
}

.c-wide {
  grid-column: span 2;
}

/* ==================== NOTES ==================== */
.notes-body {
  padding: 0;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.notes-toolbar {
  display: flex;
  gap: 8px;
  padding: 12px 16px;
  border-bottom: 3px solid var(--black);
  background: var(--bg);
  flex-shrink: 0;
}

.note-tool {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 3px solid var(--black);
  background: var(--white);
  box-shadow: 2px 2px 0px var(--black);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  transition: all 0.15s ease;
}

.note-tool:hover {
  transform: translateY(-2px);
  box-shadow: 4px 4px 0px var(--black);
}

.note-tool:active {
  transform: translateY(2px);
  box-shadow: 0px 0px 0px var(--black);
}

.notes-editor {
  flex: 1;
  padding: 20px;
  font-size: 15px;
  line-height: 1.8;
  outline: none;
  overflow-y: auto;
  min-height: 0;
}

.notes-editor p {
  margin-bottom: 12px;
}

/* ==================== PAINT ==================== */
.paint-body {
  padding: 0;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.paint-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  border-bottom: 3px solid var(--black);
  background: var(--bg);
  flex-shrink: 0;
  gap: 12px;
  overflow-x: auto;
  overflow-y: hidden;
  flex-wrap: nowrap;
  min-height: 56px;
}

.paint-colors {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
  align-items: center;
}

.paint-colors::after {
  content: "";
  display: block;
  width: 2px;
  height: 28px;
  background: var(--black);
  opacity: 0.2;
  margin-left: 4px;
  flex-shrink: 0;
}

.paint-color {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 3px solid var(--black);
  box-shadow: 2px 2px 0px var(--black);
  cursor: pointer;
  transition: all 0.15s ease;
}

.paint-color:hover {
  transform: scale(1.2);
}

.paint-color.active {
  box-shadow:
    0 0 0 3px var(--white),
    0 0 0 6px var(--black);
}

.paint-tools {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.paint-tools label {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
}

#brush-size {
  width: 80px;
}

.paint-btn {
  padding: 8px 12px;
  border-radius: 8px;
  border: 3px solid var(--black);
  background: var(--white);
  box-shadow: 2px 2px 0px var(--black);
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  transition: all 0.15s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.paint-btn:hover {
  background: var(--red);
  color: var(--white);
  transform: translateY(-2px);
}

.paint-btn:active {
  transform: translateY(2px);
  box-shadow: 0px 0px 0px var(--black);
}

.paint-btn.active {
  background: var(--black);
  color: var(--white);
  transform: translateY(2px);
  box-shadow: 0px 0px 0px var(--black);
}

.paint-canvas-area {
  flex: 1;
  position: relative;
  background: var(--white);
  overflow: hidden;
  min-height: 0;
}

#paint-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: block;
  cursor: crosshair;
  touch-action: none;
}
.paint-toolbar::-webkit-scrollbar {
  height: 4px;
}

.paint-toolbar::-webkit-scrollbar-track {
  background: #f5f0e8;
  border-radius: 4px;
}

.paint-toolbar::-webkit-scrollbar-thumb {
  background: #c8b89a;
  border-radius: 4px;
}

.paint-toolbar::-webkit-scrollbar-thumb:hover {
  background: #a89070;
}


.game-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 20px;
  flex: 1;
}

.game-header {
  display: flex;
  gap: 24px;
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 2px;
}

.game-canvas-wrap {
  border: 3px solid var(--black);
  box-shadow: 4px 4px 0px var(--black);
  border-radius: 12px;
  overflow: hidden;
  flex-shrink: 0;
}

#game-canvas {
  display: block;
  background: #191a1f;
}

.game-controls {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.game-btn {
  padding: 12px 40px;
  border-radius: 12px;
  border: 3px solid var(--black);
  background: var(--green);
  box-shadow: 4px 4px 0px var(--black);
  font-family: var(--font-display);
  font-size: 16px;
  letter-spacing: 2px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.game-btn:hover {
  transform: translateY(-2px);
  box-shadow: 6px 6px 0px var(--black);
}

.game-btn:active {
  transform: translateY(2px);
  box-shadow: 0px 0px 0px var(--black);
}

.game-stop {
  background: var(--red) !important;
}

.game-hint {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 2px;
  opacity: 0.5;
}

/* ==================== WORMHOLE OVERLAY ==================== */
#wormhole-overlay {
  position: fixed;
  inset: 0;
  z-index: 99980;
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  background: transparent;
  overflow: hidden;
  pointer-events: none;
}

#wormhole-overlay::before {
  display: none;
}

.wormhole-stage {
  position: relative;
  width: 200px;
  height: 200px;
  z-index: 2;
  transform: scale(0);
  transition: transform 2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.wormhole-stage.active {
  transform: scale(1);
}

/* Event Horizon - pure black center */
.wormhole-core {
  position: absolute;
  inset: 20px;
  border-radius: 50%;
  background: #000;
  box-shadow:
    0 0 0 8px rgba(255, 222, 77, 0.3),
    0 0 0 16px rgba(255, 222, 77, 0.15),
    0 0 0 24px rgba(255, 222, 77, 0.05),
    0 0 60px 20px rgba(255, 222, 77, 0.2),
    inset 0 0 40px rgba(0, 0, 0, 1);
  z-index: 3;
  transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.wormhole-core.expanding {
  transform: scale(35) !important;
}

/* Accretion disk - glowing ring */
.wormhole-core::after {
  content: "";
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  border: 4px solid var(--yellow);
  box-shadow:
    0 0 20px var(--yellow),
    0 0 40px var(--yellow),
    0 0 60px rgba(255, 222, 77, 0.5);
  animation: accretionSpin 3s linear infinite;
}

@keyframes accretionSpin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

.wormhole-ring {
  position: absolute;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.15);
}

.r1 {
  inset: -20px;
  animation: ringExpand 2s ease-out infinite;
}

.r2 {
  inset: -50px;
  animation: ringExpand 2s ease-out 0.4s infinite;
}

.r3 {
  inset: -80px;
  animation: ringExpand 2s ease-out 0.8s infinite;
}

.r4 {
  inset: -110px;
  animation: ringExpand 2s ease-out 1.2s infinite;
}

@keyframes ringExpand {
  0% {
    transform: scale(0.6);
    opacity: 1;
    border-width: 3px;
  }

  100% {
    transform: scale(2.5);
    opacity: 0;
    border-width: 0px;
  }
}

.wormhole-text {
  position: absolute;
  top: calc(50% + 140px);
  font-family: var(--font-display);
  font-size: 32px;
  color: var(--yellow);
  margin: 0;
  letter-spacing: 6px;
  z-index: 2;
  animation: textGlow 1.5s ease-in-out infinite;
  opacity: 0;
  transition: opacity 1.5s ease-in-out 0.5s;
}

.wormhole-text.active {
  opacity: 1;
}

.wormhole-sub {
  position: absolute;
  top: calc(50% + 185px);
  font-family: var(--font-mono);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.4);
  margin: 0;
  letter-spacing: 4px;
  z-index: 2;
  opacity: 0;
  transition: opacity 1.5s ease-in-out 1s;
}

.wormhole-sub.active {
  opacity: 1;
}

@keyframes textGlow {
  0%,
  100% {
    opacity: 0.6;
    text-shadow: 0 0 20px rgba(255, 222, 77, 0.3);
  }

  50% {
    opacity: 1;
    text-shadow: 0 0 40px rgba(255, 222, 77, 0.6);
  }
}

@keyframes screenShake {
  0%,
  100% {
    transform: translate(0, 0);
  }

  10% {
    transform: translate(-3px, 2px);
  }

  20% {
    transform: translate(3px, -2px);
  }

  30% {
    transform: translate(-2px, 3px);
  }

  40% {
    transform: translate(2px, -3px);
  }

  50% {
    transform: translate(-3px, -2px);
  }

  60% {
    transform: translate(3px, 2px);
  }

  70% {
    transform: translate(-2px, -2px);
  }

  80% {
    transform: translate(2px, 3px);
  }

  90% {
    transform: translate(-3px, 2px);
  }
}

.screen-shake {
  animation: screenShake 0.15s ease-in-out infinite;
}

/* Final collapse flash */
@keyframes collapseFlash {
  0% {
    opacity: 0;
  }

  50% {
    opacity: 1;
  }

  100% {
    opacity: 0;
  }
}

.collapse-flash {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #fff;
  z-index: 99999;
  opacity: 0;
  pointer-events: none;
}

/* ==================== TERMINAL UPGRADES ==================== */
.term-ascii {
  white-space: pre !important;
  font-family: var(--font-mono);
  line-height: 1.2;
  margin-bottom: 8px;
  color: var(--green);
}

.term-alert {
  color: var(--red) !important;
  font-weight: bold;
}

.term-warning {
  color: var(--yellow) !important;
}

.red-alert-flash {
  animation: redAlertAnim 1s infinite;
}

@keyframes redAlertAnim {
  0% {
    background: #000;
  }

  50% {
    background: #220000;
  }

  100% {
    background: #000;
  }
}


/* ==================== WINDOW ANIMATIONS ==================== */
.window {
 
  transition:
    width 0.2s ease,
    height 0.2s ease,
    transform 0.15s ease,
    opacity 0.15s ease;
}

.window.window-opening {
  animation: windowOpen 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.window.window-closing {
  animation: winClose 0.15s cubic-bezier(0.8, 0.2, 1, 0.2) forwards;
}

@keyframes winClose {
  0% {
    transform: scale(1);
    opacity: 1;
  }

  100% {
    transform: scale(0.95);
    opacity: 0;
  }
}

.window.window-minimizing {
  animation: winMin 0.25s cubic-bezier(0.5, 0, 1, 0.5) forwards;
}

@keyframes winMin {
  0% {
    transform: scale(1) translateY(0);
    opacity: 1;
  }

  100% {
    transform: scale(0.2) translateY(500px);
    opacity: 0;
  }
}/* ==================== SCROLLBAR ==================== */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg);
}

::-webkit-scrollbar-thumb {
  background: var(--black);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent);
}

/* ==================== TOAST NOTIFICATIONS ==================== */
.toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 99999;
  pointer-events: none;
}

.toast {
  background: var(--white);
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  padding: 14px 18px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  color: var(--black);
  display: flex;
  align-items: center;
  gap: 12px;
  animation: toastEnter 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  transform-origin: right center;
  max-width: 320px;
}

.toast-icon {
  font-size: 20px;
  flex-shrink: 0;
}

.toast-content {
  line-height: 1.5;
  text-align: left;
}

.toast.toast-error {
  background: var(--red);
  color: var(--white);
}

.toast.toast-success {
  background: var(--green);
}

.toast.toast-warning {
  background: var(--yellow);
}

.toast.leaving {
  animation: toastLeave 0.3s ease forwards;
}

@keyframes toastEnter {
  0% {
    transform: translateX(120%) scale(0.9);
    opacity: 0;
  }

  100% {
    transform: translateX(0) scale(1);
    opacity: 1;
  }
}

@keyframes toastLeave {
  0% {
    transform: translateX(0) scale(1);
    opacity: 1;
  }

  100% {
    transform: translateX(120%) scale(0.9);
    opacity: 0;
  }
}

/* ==================== CONFIRM MODAL UPGRADE ==================== */
#confirm-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.45);
  z-index: 999999;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px) saturate(140%);
  transition: opacity 0.25s ease;
}

.confirm-window {
  position: relative !important;
  width: 360px !important;
  max-width: 90% !important;
  display: flex !important;
  background: var(--white);
  border: var(--border);
  box-shadow: 10px 10px 0px var(--black);
  border-radius: 16px;
  overflow: hidden;
  flex-direction: column;
  animation: confirmSpringOpen 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes confirmSpringOpen {
  0% {
    transform: scale(0.8) translateY(30px);
    opacity: 0;
  }

  70% {
    transform: scale(1.03) translateY(-2px);
  }

  100% {
    transform: scale(1) translateY(0);
    opacity: 1;
  }
}

.confirm-body {
  padding: 24px !important;
}

.confirm-content {
  text-align: center;
}

.confirm-message {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--black);
  margin-bottom: 24px;
}

.confirm-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
}

.confirm-btn {
  flex: 1;
  padding: 12px 24px;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  border: var(--border);
  border-radius: 12px;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: all 0.15s ease;
  outline: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.confirm-btn:hover {
  transform: translateY(-2px);
  box-shadow: 5px 5px 0px var(--black);
}

.confirm-btn:active {
  transform: translateY(2px);
  box-shadow: 1px 1px 0px var(--black);
}

.confirm-btn-yes {
  background: var(--red);
  color: var(--white);
}

.confirm-btn-yes:hover {
  background: #ff2a6d;
}

.confirm-btn-no {
  background: var(--white);
  color: var(--black);
}

.confirm-btn-no:hover {
  background: var(--yellow);
}

/* ==================== SCROLLBAR FIX (NOTES, CALC, PAINT, GAME) ==================== */
.notes-body::-webkit-scrollbar,
.notes-editor::-webkit-scrollbar,
.calc-body::-webkit-scrollbar,
.paint-body::-webkit-scrollbar,
.game-body::-webkit-scrollbar,
.window-body::-webkit-scrollbar {
  width: 8px;
}

.notes-body::-webkit-scrollbar-track,
.notes-editor::-webkit-scrollbar-track,
.calc-body::-webkit-scrollbar-track,
.paint-body::-webkit-scrollbar-track,
.game-body::-webkit-scrollbar-track,
.window-body::-webkit-scrollbar-track {
  background: #f5f0e8;
}

.notes-body::-webkit-scrollbar-thumb,
.notes-editor::-webkit-scrollbar-thumb,
.calc-body::-webkit-scrollbar-thumb,
.paint-body::-webkit-scrollbar-thumb,
.game-body::-webkit-scrollbar-thumb,
.window-body::-webkit-scrollbar-thumb {
  background: #c8b89a;
  border-radius: 4px;
  border: 2px solid #f5f0e8;
}

.notes-body::-webkit-scrollbar-thumb:hover,
.notes-editor::-webkit-scrollbar-thumb:hover,
.calc-body::-webkit-scrollbar-thumb:hover,
.paint-body::-webkit-scrollbar-thumb:hover,
.game-body::-webkit-scrollbar-thumb:hover,
.window-body::-webkit-scrollbar-thumb:hover {
  background: #a89070;
}

/* ==================== POMODORO TIMER ==================== */
.pomo-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 16px 12px;
  gap: 16px;
  background: var(--bg);
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  position: relative;
}


.window.maximized .pomo-body {
  gap: 32px;
  padding: 60px 40px;
}

/* --- Mode buttons --- */
.pomo-modes {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  width: 100%;
}

.window.maximized .pomo-modes {
  width: auto;
  gap: 12px;
}

.pomo-mode-btn {
  flex: 1; 
  padding: 8px 4px;
  font-family: var(--font-display);
  font-size: 9px;
  letter-spacing: 0.5px;
  border: 2px solid var(--black);
  border-radius: 50px;
  background: var(--white);
  color: var(--black);
  cursor: pointer;
  transition: all 0.15s ease;
  box-shadow: 2px 2px 0px var(--black);
  white-space: nowrap;
}

.pomo-mode-btn:hover {
  background: var(--yellow);
  transform: translateY(-1px);
}

.pomo-mode-btn.active {
  background: #ff8c00;
  color: var(--black);
  box-shadow: 3px 3px 0px var(--black);
}

.window.maximized .pomo-mode-btn {
  flex: none; 
  padding: 12px 28px;
  font-size: 13px;
  letter-spacing: 1px;
}

/* --- Timer display --- */
.pomo-timer-display {
  font-family: var(--font-mono);
  font-size: 64px;
  font-weight: 700;
  letter-spacing: -2px;
  line-height: 1;
  text-align: center;
  border: var(--border);
  border-radius: 16px;
  padding: 16px 10px;
  background: var(--black);
  color: #ff8c00;
  box-shadow: var(--shadow);
  width: 100%;
}

.window.maximized .pomo-timer-display {
  width: auto;
  font-size: clamp(80px, 10vw, 160px);
  padding: 32px 80px;
  border-radius: 24px;
  border-width: 4px;
  box-shadow: 8px 8px 0px var(--black);
}

/* --- Label under timer --- */
.pomo-label {
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 3px;
  color: var(--black);
  opacity: 0.6;
}

.window.maximized .pomo-label {
  font-size: 14px;
  letter-spacing: 5px;
}

/* --- Progress bar --- */
.pomo-progress-wrap {
  height: 10px;
  width: 100%;
  background: rgba(0,0,0,0.1);
  border: 2px solid var(--black);
  border-radius: 4px;
  overflow: hidden;
}

.window.maximized .pomo-progress-wrap {
  width: clamp(300px, 50vw, 700px);
  height: 14px;
}

.pomo-progress-bar {
  height: 100%;
  width: 100%;
  background: #ff8c00;
  border-radius: 2px;
  transition: width 1s linear;
}

/* --- Start / Reset buttons --- */
.pomo-controls {
  display: flex;
  gap: 10px;
  width: 100%;
}

.window.maximized .pomo-controls {
  width: auto;
  gap: 20px;
}

.pomo-btn {
  flex: 1; 
  padding: 12px 0;
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 1px;
  border: var(--border);
  border-radius: 50px;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: all 0.15s ease;
  outline: none;
  white-space: nowrap;
  display: flex;
  align-items: center;
  justify-content: center;
}

.window.maximized .pomo-btn {
  flex: none; 
  padding: 18px 64px;
  font-size: 16px;
  letter-spacing: 2px;
  box-shadow: var(--shadow);
}

.pomo-btn:hover {
  transform: translateY(-2px);
  box-shadow: 5px 5px 0px var(--black);
}

.pomo-btn:active {
  transform: translateY(2px);
  box-shadow: 1px 1px 0px var(--black);
}

.pomo-start {
  background: var(--green);
  color: var(--black);
}

.pomo-reset {
  background: var(--white);
  color: var(--black);
}

/* --- Sessions completed box --- */
.pomo-sessions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  border: 2px solid var(--black);
  border-radius: 10px;
  padding: 12px 0;
  width: 100%;
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.window.maximized .pomo-sessions {
  width: auto;
  padding: 20px 80px;
  border-radius: 16px;
  box-shadow: var(--shadow);
}

.pomo-sessions-label {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 2px;
  opacity: 0.5;
}

.window.maximized .pomo-sessions-label {
  font-size: 12px;
}

.pomo-sessions-count {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  color: #ff8c00;
}

.window.maximized .pomo-sessions-count {
  font-size: 52px;
}

/* --- Custom Time Overlay --- */
.pomo-custom-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 245, 230, 0.9);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 20px;
}

.pomo-custom-box {
  background: var(--white);
  border: 3px solid var(--black);
  border-radius: 16px;
  padding: 24px;
  width: 100%;
  max-width: 320px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  box-shadow: 6px 6px 0px var(--black);
}

.pomo-custom-title {
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: 2px;
  color: var(--black);
  text-align: center;
  font-weight: 700;
}

.pomo-custom-type-toggle {
  display: flex;
  gap: 12px;
  width: 100%;
}

.pomo-custom-type-toggle input[type="radio"] {
  display: none;
}

.pomo-custom-type-toggle label {
  flex: 1;
  text-align: center;
  padding: 8px 0;
  font-family: var(--font-display);
  font-size: 10px;
  letter-spacing: 2px;
  border: 2px solid var(--black);
  border-radius: 50px;
  cursor: pointer;
  background: var(--white);
  color: var(--black);
  transition: all 0.15s ease;
  box-shadow: 2px 2px 0px var(--black);
}

.pomo-custom-type-toggle input[type="radio"]:checked + label {
  background: var(--black);
  color: var(--white);
  box-shadow: 0px 0px 0px var(--black);
  transform: translateY(2px);
}

.pomo-custom-inputs {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.pomo-time-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.pomo-time-group input {
  font-family: var(--font-mono);
  font-size: 32px;
  font-weight: 700;
  width: 64px;
  text-align: center;
  border: 2px solid var(--black);
  border-radius: 8px;
  background: #f5f0e8;
  color: var(--black);
  padding: 8px 0;
  outline: none;
}

.pomo-time-group input:focus {
  border-color: #ff8c00;
  background: var(--white);
}

.pomo-time-group label {
  font-family: var(--font-display);
  font-size: 10px;
  letter-spacing: 1px;
  color: var(--black);
  opacity: 0.7;
}

.pomo-time-sep {
  font-family: var(--font-mono);
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 20px; 
}

.pomo-custom-actions {
  display: flex;
  gap: 12px;
  width: 100%;
}

.pomo-custom-btn {
  flex: 1;
  padding: 12px 0;
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 1px;
  border: 2px solid var(--black);
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.15s ease;
  outline: none;
}

.btn-cancel {
  background: var(--white);
  color: var(--black);
  box-shadow: 2px 2px 0px var(--black);
}

.btn-set {
  background: var(--green);
  color: var(--black);
  box-shadow: 2x 2px 0px var(--black);
}

.pomo-custom-btn:hover {
  transform: translateY(-2px);
  box-shadow: 4px 4px 0px var(--black);
}

.pomo-custom-btn:active {
  transform: translateY(2px);
  box-shadow: 0px 0px 0px var(--black);
}

