@import url("https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300..700&display=swap");
:root {
  --primary-accent: #2f0753;
  --primary-accent-dark: #260642;
  --bg-gradient-1: #0a0010;
  --settings-item-bg: rgba(255, 255, 255, 0.04);
  --window-bg: linear-gradient(180deg, rgba(10, 10, 10, 0.6), rgba(10, 10, 10, 0.4));
  --bg-gradient-2: #000;
  --taskbar-bg: linear-gradient(180deg, rgba(18, 18, 25, 0.55), rgba(18, 18, 18, 0.35));
  --transition-speed: 0.25s;
  --shadow: 0 4px 32px 0 rgba(0, 0, 0, 0.25), 0 1.5px 4px 0 rgba(0, 0, 0, 0.1);
  --border: 1.5px solid rgba(255, 255, 255, 0.1);
  --blur: blur(10px);
  --titlebar-height: 5%;
  --titlebar-bg: rgba(61, 61, 61, 0.4);
  --font-main: "Space Grotesk";
  --font-color: #fff;
  --font-secondary: #bbb;
  --radius-sm: 5px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 18px;
  --radius-round: 50%;
  --bg: rgba(255, 255, 255, 0.651);
  --gradient: linear-gradient(0deg, rgb(0, 0, 0), rgba(0, 0, 0, 0));
  --accent-shadow: 0 0 10px var(--primary-accent);
  --accent-drop-shadow: drop-shadow(var(--accent-shadow));
  --input-bg: rgba(60, 60, 60, 0.7);
  --input-border: #555;
  --panel-height: 48px;
  --panel-bg: rgba(45, 45, 45, 0.4);
}
@keyframes expandwindowSlideOpen {
  0% {
    opacity: 0;
    transform: scaleX(0.1) scaleY(2) translateY(60px);
    filter: blur(10px);
  }
  100% {
    opacity: 1;
    transform: scaleX(1) scaleY(1) translateY(0);
    filter: none;
  }
}
@keyframes movin {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}
@keyframes fadeUpIn {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
  }
}
@keyframes popIn {
  from {
    opacity: 0;
    transform: scale(0.4);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
@keyframes tipIn {
  0% { opacity: 0; transform: translateY(12px) scale(.98); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes btnPulseIn {
  0% { opacity: 0; transform: scale(.96); }
  100% { opacity: 1; transform: scale(1); }
}
@keyframes tourPulse {
  0%, 100% { outline-offset: 2px; box-shadow: 0 0 0 0 var(--primary-accent); }
  50% { outline-offset: 6px; box-shadow: 0 0 0 6px var(--primary-accent); }
}
::selection {
  background: var(--primary-accent);
  color: #fff;
}
button {
  user-select: none;
  -webkit-user-drag: none;
}
body {
  margin: 0;
  min-block-size: 100vh;
  background: linear-gradient(
    -45deg,
    var(--bg-gradient-1),
    var(--bg-gradient-2),
    var(--bg-gradient-1)
  );
  background-size: 175% 175%;
  animation: movin 5s ease infinite;
  font-family: var(--font-main);
  overflow: auto;
  width: 100vw;
  height: 100vh;
  padding: 0;
}
.svgLogo {
  color: var(--primary-accent);
  filter: var(--accent-drop-shadow);
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  margin: auto;
  width: 7vw;
  z-index: 2;
  animation: fadeUpIn 1s cubic-bezier(0.3, 1.1, 0.5, 1) backwards;
  transition: var(--transition-speed);
}
.taskbar,
.svgLogo,
.container-window {
  will-change: border-radius, transform, opacity, backdrop-filter;
}
.taskbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 10px;
  margin-left: auto;
  margin-right: auto;
  height: 7vh;
  background: var(--taskbar-bg);
  border-radius: var(--radius-xl);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  border: var(--border);
  box-shadow: var(--shadow);
  display: flex;
  justify-content: center;
  align-items: center;
  padding-inline: 0.75vw;
  gap: 0.75vw;
  z-index: 3;
  animation: fadeUpIn 1s cubic-bezier(0.4, 2, 0.6, 1) backwards;
  width: fit-content;
  outline: 1px solid rgba(255, 255, 255, 0.05);
  outline-offset: -1px;
}
.taskbarButton {
  -webkit-app-region: no-drag;
  -webkit-user-drag: none;
  width: 70%;
  height: 70%;
  aspect-ratio: 1 / 1;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.384), rgba(14, 14, 14, 0.253));
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 6px 24px rgba(0,0,0,0.25), 0 1px 2px rgba(255,255,255,0.04) inset;
  transition: background var(--transition-speed),
    transform var(--transition-speed), box-shadow var(--transition-speed);
  animation: popIn 0.5s cubic-bezier(0.4, 2, 0.6, 1) backwards;
}
.taskbarButton:nth-child(1) {
  animation-delay: 0.1s;
}
.taskbarButton:nth-child(2) {
  animation-delay: 0.2s;
}
.taskbarButton:nth-child(3) {
  animation-delay: 0.3s;
}
.taskbarButton:nth-child(4) {
  animation-delay: 0.4s;
}
.taskbarButton:nth-child(5) {
  animation-delay: 0.5s;
}
.taskbarButton:nth-child(6) {
  animation-delay: 0.6s;
}
.taskbarButton:nth-child(7) {
  animation-delay: 0.7s;
}
.taskbarButton:nth-child(8) {
  animation-delay: 0.8s;
}
.taskbarButton:hover {
  background: var(--primary-accent);
  transform: scale(1.1);
  box-shadow: var(--accent-shadow);
}
.taskbarButtonIcon {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  pointer-events: none;
  user-select: none;
}
.titlebar-text {
  pointer-events: none;
}
.titlebar-fps {
  position: absolute;
  left: 5%;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  font-size: 0.9rem;
  opacity: 0.8;
}
.iframe-titlebar {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--titlebar-height);
  z-index: 1200;
  background: var(--titlebar-bg);
  color: var(--font-color);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 1rem;
  font-family: var(--font-main);
  font-weight: bold;
  letter-spacing: 0.01em;
  border-start-end-radius: var(--radius-lg);
  border-start-start-radius: var(--radius-lg);
  user-select: none;
  cursor: move;
}
.games-container,
.media-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  margin: auto;
  color: #fff;
  font-family: "Space Grotesk", sans-serif;
  text-align: center;
}
.game,
.media {
  display: inline-flex;
  border-radius: var(--radius-lg);
  aspect-ratio: 16/9;
  width: 20%;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 100%;
  justify-content: center;
  align-items: center;
  font-family: var(--font-main);
  font-weight: 500;
  cursor: pointer;
  transition: transform var(--transition-speed),
    background var(--transition-speed);
  color: var(--font-color);
  position: relative;
  margin: 10px;
  animation: expandwindowSlideOpen 1s;
}
.game:hover,
.media:hover {
  background-size: 110%;
  border-radius: var(--radius-lg);
  outline: 3px solid var(--primary-accent);
  box-shadow: var(--accent-shadow);
}
.media .item-name,
.game .item-name {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.5s, transform 0.5s;
  position: absolute;
  width: 100%;
  height: 100%;
  pointer-events: none;
  color: var(--font-color);
  font-size: 2vw;
  font-weight: bold;
  background: var(--gradient);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  text-align: center;
}
.media:hover .item-name,
.game:hover .item-name {
  opacity: 1;
  transform: translateY(0);
}
.container-window {
  position: absolute;
  top: calc(50vh - 13.125vw);
  left: calc(50vw - 21vw);
  width: 42vw;
  height: 26.25vw;
  opacity: 1;
  transform: none;
  backdrop-filter: var(--blur);
  border-radius: var(--radius-lg);
  z-index: 6;
  border-bottom-left-radius: var(--radius-lg);
  border-bottom-right-radius: var(--radius-lg);
  animation: popIn 0.5s cubic-bezier(0.4, 1.3, 0.6, 1);
  transition: border-radius 0.3s ease-out, transform 0.3s ease-out, opacity 0.3s ease-out;
}
.container-window.maximized {
  width: 100vw;
  height: 100vh;
  top: 0;
  left: 0;
  transform: none;
  border-radius: 0;
  border: none;
}
.windowed-iframe {
  scrollbar-width: none; 
  -ms-overflow-style: none; 
  width: 100%;
  height: calc(100% - var(--titlebar-height));
  top: var(--titlebar-height);
  border: none;
  display: block;
  position: absolute;
  border-bottom-left-radius: var(--radius-lg);
  border-bottom-right-radius: var(--radius-lg);
  opacity: 0;
  transition: opacity 320ms ease;
  pointer-events: none; 
}
::-webkit-scrollbar {
  display: none;
  width: 0 !important;
  height: 0 !important;
  background: transparent;
}
.button-container {
  position: absolute;
  inset-inline-end: 0.5%;
  z-index: 7;
  pointer-events: none;
  display: flex;
  height: 100%;
  align-items: center;
  gap: 0.1vw;
}
.button-container > * {
  pointer-events: auto;
  display: inline-flex;
  height: 100%;
}
.button-fps,
.button-close,
.button-maximize,
.button-reload {
  backdrop-filter: var(--blur);
  box-shadow: var(--shadow);
  color: var(--font-color);
  border: none;
  cursor: pointer;
  font-size: 1rem;
  transition: background var(--transition-speed), filter 0.2s;
  overflow: hidden;
  height: 75%;
  aspect-ratio: 1 / 1;
  border-radius: 100%;
  min-width: 0;
  min-height: 0;
  width: auto;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.button-fps {
  background: var(--primary-accent-dark);
}
.button-fps.active {
  background: var(--primary-accent);
  box-shadow: var(--accent-shadow);
}
.button-close {
  background: #ff5f57;
  border: 1.5px solid #e33e41;
}
.button-maximize {
  background: #28c940;
  border: 1.5px solid #12ac28;
}
.button-reload {
  background: #fdbc40;
  border: 1.5px solid #e09e3e;
}
.button-close:hover {
  filter: brightness(1.15) drop-shadow(0 0 2px #e33e41);
}
.button-maximize:hover {
  filter: brightness(1.15) drop-shadow(0 0 2px #12ac28);
}
.button-reload:hover {
  filter: brightness(1.15) drop-shadow(0 0 2px #e09e3e);
}
.button-fps:hover {
  filter: brightness(1.15) drop-shadow(0 0 2px var(--primary-accent-dark));
}
h2 {
  font-size: 24px;
  text-align: center;
  margin-bottom: 20px;
  color: var(--font-color);
}
body.custom-ui {
  font-family: "Tahoma", sans-serif;
  background: var(--window-bg);
  color: var(--font-color);
  margin: 0;
  width: auto;
}
.settings-container {
  max-width: 60%;
  margin: auto;
}
.settings-container h2 {
  text-align: center;
  margin-bottom: 20px;
  font-size: 2rem;
}
.settings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}
.setting-item {
  background: var(--setting-item-bg);
  border: var(--setting-item-border);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 6px 24px rgba(0,0,0,0.25), 0 1px 2px rgba(255,255,255,0.04) inset;
  padding: 15px;
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.setting-label {
  font-weight: bold;
  font-size: 1.2rem;
  margin-bottom: 8px;
}
.setting-desc {
  font-size: 0.9rem;
  color: var(--font-secondary);
  margin-bottom: 12px;
}
.setting-control {
  display: flex;
  justify-content: flex-start;
  align-items: center;
}
.switch {
  position: relative;
  width: 48px;
  height: 24px;
}
.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #4444448e;
  transition: background-color 0.4s;
  border-radius: var(--radius-xl);
}
.slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: transform 0.4s, background-color 0.4s;
  border-radius: var(--radius-round);
  transform: translateX(0);
}
.switch input:checked + .slider {
  background-color: var(--primary-accent, #2f0753);
}
.switch input:checked + .slider:before {
  transform: translateX(24px);
  background-color: #fff;
}
.customButton {
  background: var(--custom-button-bg);
  border: var(--custom-button-border);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 6px 24px rgba(0,0,0,0.25), 0 1px 2px rgba(255,255,255,0.04) inset;
  color: var(--font-color);
  margin: 4px;
  padding: 2%;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 1rem;
  transition: background var(--transition-speed), transform var(--transition-speed), box-shadow var(--transition-speed);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.customButton:hover {
  background: var(--primary-accent);
  transform: scale(1.05);
  box-shadow: var(--accent-shadow);
}
input[type="color"] {
  background: var(--color-input-bg);
  border: var(--color-input-border);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 6px 24px rgba(0,0,0,0.25), 0 1px 2px rgba(255,255,255,0.04) inset;
  border-radius: var(--radius-sm);
  width: 50px;
  height: 30px;
  cursor: pointer;
  transition: transform var(--transition-speed);
}
input[type="color"]:hover {
  transform: scale(1.05);
}
.bookmark-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px;
  background: var(--settings-item-bg);
  border-radius: var(--radius-md);
  margin-bottom: 10px;
  animation: fadeUpIn 0.4s cubic-bezier(0.4, 1.2, 0.6, 1) backwards;
  box-shadow: var(--shadow);
}
.bookmark-item:nth-child(n) {
  animation-delay: 0.1s;
}
.bookmark-item:nth-child(2) {
  animation-delay: 0.2s;
}
.bookmark-item:nth-child(3) {
  animation-delay: 0.3s;
}
.bookmark-item:nth-child(4) {
  animation-delay: 0.4s;
}
.bookmark-item:nth-child(5) {
  animation-delay: 0.5s;
}
.bookmark-item:nth-child(6) {
  animation-delay: 0.6s;
}
.bookmark-item span {
  flex-grow: 1;
}
.bookmark-item button {
  margin-left: 10px;
}
.bookmark-launch-btn,
.bookmark-remove-btn {
  padding: 8px 12px;
  border: none;
  border-radius: var(--radius-sm);
  color: #fff;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, filter 0.2s ease, box-shadow 0.2s ease;
}
.bookmark-launch-btn {
  background: linear-gradient(135deg, #22c55e, #16a34a);
  background-size: 200% 200%;
  animation: movin 6s linear infinite;
}
.bookmark-remove-btn {
  background: linear-gradient(135deg, #b91c1c, #f97316);
  background-size: 200% 200%;
  animation: movin 8s linear infinite;
}
.bookmark-launch-btn:hover,
.bookmark-remove-btn:hover {
  transform: translateY(-1px) scale(1.02);
  filter: brightness(1.1);
  box-shadow: var(--accent-shadow);
}
.tag-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 1;
  padding: 2% 4%;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #fff;
  border-radius: var(--radius-sm);
  backdrop-filter: blur(6px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.25);
  border: 1px solid rgba(255,255,255,0.15);
  text-transform: uppercase;
  pointer-events: none;
}
.tag-badge.tag-new {
  background: linear-gradient(135deg, #16a34a, #4ade80);
}
.tag-badge.tag-update {
  background: linear-gradient(135deg, #2563eb, #22d3ee);
}
.tag-badge.tag-hot {
  background: linear-gradient(135deg, #ef4444, #f43f5e);
  box-shadow: 0 0 10px rgba(244,63,94,0.45), 0 4px 16px rgba(0,0,0,0.25);
}
.no-results {
  text-align: center;
  color: var(--font-secondary);
  font-style: italic;
  font-size: 1.1rem;
}
.settings-input {
  padding: 10px 14px;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--input-border);
  background: var(--input-bg);
  color: var(--font-color);
  font-size: 1rem;
  font-family: var(--font-main);
  outline: none;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
  transition: border-color 0.3s, box-shadow 0.3s;
  text-align: center;
}
.settings-input:focus {
  border-color: var(--primary-accent);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1),
    0 0 0 3px color-mix(in srgb, var(--primary-accent) 20%, transparent);
}
.search-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 32px 0 24px 0;
  width: 100%;
}
.search-input,
.launcher-input {
  width: 320px;
  max-width: 90vw;
  padding: 12px 18px;
  border-radius: 12px;
  border: none;
  background: var(--search-input-bg);
  color: var(--font-color, #222);
  font-size: 1.1rem;
  font-family: "Space Grotesk";
  outline: none;
  box-shadow: 0 2px 8px 0 rgba(0, 0, 0, 0.04);
  transition: border 0.5s, box-shadow 0.5s;
  display: block;
  align-self: center;
}
.search-input:focus,
.launcher-input:focus {
  border: 1.5px solid var(--primary-accent, #2f0753);
  background: var(--search-input-focus-bg);
  box-shadow: 0 0 0 3px rgba(47, 7, 83, 0.2);
}
.custom-ui {
  overflow-y: auto;
  padding: 1rem;
}
.custom-ui h2 {
  font-size: 24px;
  text-align: center;
  margin-bottom: 20px;
  color: var(--font-color);
}
.custom-ui::-webkit-scrollbar {
  display: none;
}
.custom-ui {
  scrollbar-width: none;
}
.bookmark-item {
  border: 1px solid #ccc;
  padding: 10px;
  border-radius: 8px;
  text-align: center;
}
.performance-mode,
.performance-mode * {
  animation: none !important;
  transition: none !important; 
  transition-property: none !important; 
  will-change: auto !important;
  filter: none !important;
  box-shadow: none !important;
  text-shadow: none !important;
  backdrop-filter: none !important; 
}
.performance-mode body,
.performance-mode {
  background-size: auto !important;
  animation: none !important;
}
.performance-mode .container-window,
.performance-mode .taskbar,
.performance-mode .svgLogo {
  backdrop-filter: none !important; 
  filter: none !important; 
  box-shadow: none !important; 
}
.loading-screen {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--window-bg);
  z-index: 999;
  border-radius: inherit;
  transition: opacity 320ms ease;
  opacity: 1;
  pointer-events: auto; 
}
.loading-content {
  display: flex;
  align-items: center;
  justify-content: center;
}
.spinner-container {
  width: 48px;
  height: 48px;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.spinner {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 4px solid rgba(255, 255, 255, 0.12);
  border-top-color: var(--primary-accent);
  animation: spin 1s linear infinite;
  box-sizing: border-box;
}
.spinner-overlay {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  box-shadow: 0 0 18px rgba(0, 0, 0, 0.25) inset;
  pointer-events: none;
}
.loading-screen[style*="opacity: 0"] {
  pointer-events: none;
}
.notification-header {
  width: 100%;
  height: 4px;
  border-radius: var(--radius-sm);
  background: var(--primary-accent);
}
.notification-message {
  margin: 0;
  font-size: 1rem;
  color: var(--font-color);
}
.notification {
  position: fixed;
  top: 20px;
  left: 0;
  right: 0;
  margin-left: auto;
  margin-right: auto;
  background: linear-gradient(180deg, rgba(34,34,42,0.66), rgba(18,18,26,0.46));
  border: 1px solid rgba(255,255,255,0.12);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 6px 24px rgba(0,0,0,0.25), 0 1px 2px rgba(255,255,255,0.04) inset;
  color: var(--font-color);
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  z-index: 1000;
  width: 300px;
  animation: bounceIn 0.4s forwards;
  position: relative;
}
.notification-close {
  position: absolute;
  top: 4px;
  right: 8px;
  background: none;
  border: none;
  color: var(--font-secondary);
  font-size: 20px;
  cursor: pointer;
  padding: 0;
  line-height: 1;
  transition: color 0.2s;
}
.notification-close:hover {
  color: var(--font-color);
}
.notification-timer {
  width: 100%;
  height: 3px;
  background: rgba(255,255,255,0.18);
  border-radius: 3px;
  transition: width var(--notif-duration, 3000ms) linear;
}
.priority-low { background-color: #28c940 !important; }
.priority-medium { background-color: #fdbc40 !important; }
.priority-high { background-color: #ff5f57 !important; }
.games-container, .media-container { width: 100%; overflow-x: hidden; }
.tour-overlay{position:fixed;inset:0;background:rgba(0,0,0,.3);z-index:2000}
.tour-tip{
  position:fixed;max-width:320px;height:fit-content;z-index:2001;pointer-events:auto;
  background: linear-gradient(180deg, rgba(18,18,24,.55), rgba(18,18,24,.35));
  color:#fff;border:var(--border);border-radius:12px;box-shadow:var(--shadow);padding:12px;
  animation: fadeUpIn 1s cubic-bezier(.2,.9,.3,1) both;
  overflow:auto;
}
.tour-tip.animate .tour-title{ animation: fadeUpIn .28s ease both; animation-delay: .04s; }
.tour-tip.animate .tour-text{ animation: fadeUpIn .32s ease both; animation-delay: .08s; }
.tour-tip.animate .tour-actions{ animation: fadeUpIn .36s ease both; animation-delay: .12s; }
.tour-tip.animate .tour-btn{ animation: btnPulseIn .28s ease both; }
.tour-tip.animate .tour-actions .tour-btn:nth-child(1){ animation-delay: .16s; }
.tour-tip.animate .tour-actions .tour-btn:nth-child(2){ animation-delay: .20s; }
.tour-tip h4{margin:0 0 6px 0;font:600 14px Space Grotesk,system-ui}
.tour-actions{display:flex;gap:8px;justify-content:flex-end;margin-top:10px}
.tour-btn{
  appearance:none; border:none; cursor:pointer; border-radius:10px; padding:9px 12px; color:#fff;
  background: linear-gradient(180deg, rgba(255,255,255,.12), rgba(255,255,255,.06));
  border: 1px solid rgba(255,255,255,.14);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 8px 26px rgba(0,0,0,.28), inset 0 1px 0 rgba(255,255,255,.06);
  transition: transform .16s ease, box-shadow .2s ease, background .2s ease;
  animation: btnPulseIn .22s ease both;
}
.tour-btn:hover{ transform: translateY(-1px); box-shadow: 0 14px 34px rgba(0,0,0,.34), inset 0 1px 0 rgba(255,255,255,.08); }
.tour-btn:active{ transform: translateY(0); box-shadow: 0 8px 20px rgba(0,0,0,.28) inset; }
.tour-btn.tour-skip{ background: linear-gradient(180deg, rgba(80,80,80,.28), rgba(60,60,60,.18)); border-color: rgba(255,255,255,.1); }
.tour-highlight{outline:2px solid #2f0753;outline-offset:2px;border-radius:10px;transition:outline-color .2s;animation: tourPulse 1.2s ease-in-out infinite}
.tour-note{margin-top:6px;opacity:.75;font-size:12px}
.tour-tip.centered{ position:fixed; inset:0; margin:auto; transform:none; width:360px; overflow:auto }

/* Theme transition class for smooth theme changes */
.theme-transition {
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

/* Light mode enhancements */
html.light-mode {
  color-scheme: light;
}

html.light-mode body {
  background: linear-gradient(
    -45deg,
    var(--bg-gradient-1),
    var(--bg-gradient-2),
    var(--bg-gradient-1)
  );
  background-size: 175% 175%;
  animation: movin 5s ease infinite;
}

html.light-mode .taskbarButtonIcon {
  filter: brightness(1);
  transition: filter var(--transition-speed);
}

html.light-mode .custom-ui {
  background: var(--window-bg);
  color: var(--font-color);
}

html.light-mode .notification {
  background: linear-gradient(180deg, rgba(255,255,255,0.95), rgba(248,249,250,0.9));
  color: var(--font-color);
  border: 1px solid rgba(0,0,0,0.1);
}

html.light-mode .notification-close {
  color: var(--font-secondary);
}

html.light-mode .notification-close:hover {
  color: var(--font-color);
}

/* Ensure proper contrast for all interactive elements in light mode */
html.light-mode button,
html.light-mode .customButton,
html.light-mode .bookmark-launch-btn,
html.light-mode .bookmark-remove-btn {
  color: var(--font-color);
}

html.light-mode input,
html.light-mode textarea {
  background: var(--input-bg);
  border-color: var(--input-border);
  color: var(--font-color);
}

html.light-mode input:focus,
html.light-mode textarea:focus {
  border-color: var(--primary-accent);
  box-shadow: 0 0 0 3px rgba(47, 7, 83, 0.15);
}

/* Light mode toggle slider enhancement */
html.light-mode .slider {
  background-color: rgba(0, 0, 0, 0.15);
}

html.light-mode .slider:before {
  background-color: #fff;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Performance mode optimizations for light mode */
html.light-mode.performance-mode .taskbarButtonIcon {
  filter: brightness(0.4) invert(0.05);
}

/* Ensure proper theming for iframe content */
html.light-mode .custom-ui h2,
html.light-mode .custom-ui .setting-label,
html.light-mode .custom-ui .setting-desc {
  color: var(--font-color);
}

html.light-mode .custom-ui .setting-desc {
  color: var(--font-secondary);
}

/* Fun event animations */
@keyframes rainbow-bg {
  0% { 
    background: linear-gradient(-45deg, 
      #ff0000 0%, 
      #ff1100 8%, 
      #ff2200 16%, 
      #ff3300 24%, 
      #ff4400 32%, 
      #ff5500 40%, 
      #ff6600 48%, 
      #ff7700 56%, 
      #ff8800 64%, 
      #ff9900 72%, 
      #ffaa00 80%, 
      #ffbb00 88%, 
      #ffcc00 92%, 
      #ffdd00 96%, 
      #ffff00 100%
    );
    background-size: 600% 600%;
    background-position: 0% 50%;
  }
  16.66% { 
    background-position: 50% 0%;
  }
  33.33% { 
    background-position: 100% 50%;
  }
  50% { 
    background-position: 50% 100%;
  }
  66.66% { 
    background-position: 0% 50%;
  }
  83.33% { 
    background-position: 25% 25%;
  }
  100% { 
    background-position: 0% 50%;
  }
}

@keyframes fall {
  0% {
    transform: translateY(-100px) rotate(0deg);
    opacity: 1;
  }
  100% {
    transform: translateY(calc(100vh + 100px)) rotate(360deg);
    opacity: 0;
  }
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  10%, 30%, 50%, 70%, 90% { transform: translateX(-10px); }
  20%, 40%, 60%, 80% { transform: translateX(10px); }
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

/* Fun effect animations */
@keyframes rainbow-bg {
  0% { background: linear-gradient(45deg, #ff0000, #ff7300, #fffb00, #48ff00, #00ffd5, #002bff, #7a00ff, #ff00c8, #ff0000); }
  100% { background: linear-gradient(45deg, #ff0000, #ff7300, #fffb00, #48ff00, #00ffd5, #002bff, #7a00ff, #ff00c8, #ff0000); }
}

@keyframes party-rainbow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes fall {
  0% {
    transform: translateY(0) rotate(0deg);
    opacity: 1;
  }
  100% {
    transform: translateY(100vh) rotate(360deg);
    opacity: 0;
  }
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  10%, 30%, 50%, 70%, 90% { transform: translateX(-10px); }
  20%, 40%, 60%, 80% { transform: translateX(10px); }
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Fun effect specific styles */
.fun-rainbow {
  background-size: 400% 400% !important;
  animation: rainbow-bg 6s ease-in-out infinite !important;
}

/* Fun event classes */
.fun-rainbow {
  animation: rainbow-bg 6s ease-in-out infinite !important;
}

.fun-emoji {
  position: fixed;
  font-size: 2rem;
  z-index: 9999;
  pointer-events: none;
  animation: fall 3s linear forwards;
}

.fun-shake {
  animation: shake 0.5s ease-in-out !important;
}

.fun-pulse {
  animation: pulse 1s ease-in-out infinite !important;
}

.fun-confetti {
  position: fixed;
  width: 10px;
  height: 10px;
  background: linear-gradient(45deg, #ff6b6b, #4ecdc4, #45b7d1, #96ceb4, #feca57);
  z-index: 9999;
  pointer-events: none;
  animation: fall 2s linear forwards;
}

/* Additional fun event styles */
.fun-snow {
  position: fixed;
  color: white;
  font-size: 1.5rem;
  z-index: 9999;
  pointer-events: none;
  animation: fall 4s linear forwards;
  text-shadow: 0 0 10px rgba(255,255,255,0.8);
}

.fun-spin {
  animation: spin 2s linear !important;
}

.fun-blur {
  filter: blur(5px) !important;
}

.fun-upside-down {
  transform: rotate(180deg) !important;
}

.fun-big-text {
  font-size: 200% !important;
}

.fun-tiny-text {
  font-size: 50% !important;
}

/* Notification System Animations */
@keyframes bounceIn {
  0% {
    opacity: 0;
    transform: scale(0.3) translateY(-50px);
  }
  50% {
    transform: scale(1.05) translateY(0);
  }
  70% {
    transform: scale(0.9) translateY(0);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@keyframes slideOut {
  0% {
    opacity: 1;
    transform: translateX(0);
  }
  100% {
    opacity: 0;
    transform: translateX(100%);
  }
}

.notification {
  animation: bounceIn 0.4s forwards;
}

.notification.removing {
  animation: slideOut 0.3s forwards;
}
