/* Yasins Spielwelt - Game Screens, HUD, Canvases, Controls */

/* Common HUD */
.game-hud {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  background: rgba(15, 12, 32, 0.7);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.hud-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-size: 1.1rem;
  background: rgba(255, 255, 255, 0.08);
  padding: 6px 14px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.hud-icon {
  font-size: 1.25rem;
}

/* Overlays (Game Over / Victory) */
.game-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 8, 22, 0.85);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 50;
  padding: 20px;
}

.game-overlay.hidden {
  display: none;
}

.overlay-card {
  background: #1e153d;
  border: 2px solid var(--primary-cyan);
  border-radius: 24px;
  padding: 32px 24px;
  text-align: center;
  max-width: 380px;
  width: 100%;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 25px rgba(0, 242, 254, 0.3);
  animation: popIn 0.35s ease;
}

.overlay-emoji {
  font-size: 4rem;
  margin-bottom: 10px;
}

.overlay-title {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.overlay-score {
  font-size: 1.25rem;
  color: var(--accent-gold);
  font-weight: 700;
  margin-bottom: 24px;
}

/* ============================
   1. Balloon Game
   ============================ */
#balloon-canvas {
  width: 100%;
  height: calc(100% - 60px);
  display: block;
  touch-action: none;
  background: radial-gradient(circle at bottom, #1f1442 0%, #0c081d 100%);
  cursor: crosshair;
}

/* ============================
   2. Runner Game
   ============================ */
#runner-canvas {
  width: 100%;
  height: calc(100% - 60px);
  display: block;
  touch-action: none;
}

.runner-jump-hint {
  position: absolute;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 8px 18px;
  border-radius: 20px;
  font-size: 0.95rem;
  font-weight: 600;
  pointer-events: all;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  animation: bounceSlow 1.5s infinite;
}

/* ============================
   3. Memory Game
   ============================ */
.memory-board-wrapper {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.memory-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  max-width: 540px;
  width: 100%;
  perspective: 1000px;
}

.memory-card {
  aspect-ratio: 1 / 1;
  cursor: pointer;
}

.card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform 0.45s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  transform-style: preserve-3d;
  border-radius: 18px;
}

.memory-card.flipped .card-inner,
.memory-card.matched .card-inner {
  transform: rotateY(180deg);
}

.card-front, .card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  box-shadow: 0 6px 16px rgba(0,0,0,0.35);
}

.card-front {
  background: linear-gradient(135deg, #7928ca, #ff007f);
  border: 2px solid rgba(255, 255, 255, 0.3);
  color: white;
}

.card-back {
  background: #251b47;
  border: 2px solid var(--primary-cyan);
  transform: rotateY(180deg);
}

.memory-card.matched .card-back {
  border-color: var(--accent-green);
  box-shadow: 0 0 20px rgba(0, 230, 118, 0.5);
  animation: pulseGlow 1.5s infinite;
}

/* ============================
   4. Snake Game
   ============================ */
.snake-arena-wrapper {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
}

#snake-canvas {
  background: #150f2e;
  border: 3px solid var(--primary-purple);
  border-radius: 16px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5), 0 0 15px rgba(121, 40, 202, 0.4);
  max-width: 90vw;
  max-height: 52vh;
  aspect-ratio: 1 / 1;
}

/* Virtual D-Pad for Mobile */
.touch-controls {
  padding: 10px 0 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.dpad-row {
  display: flex;
  gap: 12px;
}

.dpad-btn {
  width: 58px;
  height: 52px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 14px;
  color: white;
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  user-select: none;
  transition: all 0.1s;
}

.dpad-btn:active {
  background: var(--primary-cyan);
  color: #000;
  transform: scale(0.92);
}

/* ============================
   5. Paint Canvas
   ============================ */
.paint-toolbar {
  background: rgba(15, 12, 32, 0.85);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 8px 14px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.paint-colors {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.color-swatch {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.2s;
}

.color-swatch.active {
  border-color: white;
  transform: scale(1.2);
  box-shadow: 0 0 10px white;
}

.rainbow-btn, .size-btn, .sticker-btn {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  padding: 4px 8px;
  font-size: 1.1rem;
  color: white;
  cursor: pointer;
}

.rainbow-btn.active, .sticker-btn.active, .size-btn.active {
  border-color: var(--accent-gold);
  background: rgba(255, 215, 0, 0.25);
}

.paint-sizes {
  display: flex;
  gap: 6px;
  align-items: center;
}

.size-sm { font-size: 0.75rem; }
.size-md { font-size: 1.1rem; }
.size-lg { font-size: 1.45rem; }

.paint-stickers {
  display: flex;
  gap: 4px;
}

.paint-actions {
  display: flex;
  gap: 8px;
}

.paint-canvas-wrapper {
  flex: 1;
  position: relative;
  background: #ffffff;
  overflow: hidden;
  cursor: crosshair;
}

#paint-canvas {
  width: 100%;
  height: 100%;
  display: block;
  touch-action: none;
}

/* ============================
   6. Tic-Tac-Toe
   ============================ */
.ttt-status {
  text-align: center;
  font-size: 1.3rem;
  font-weight: 700;
  padding: 14px 0;
  color: var(--primary-cyan);
}

.ttt-board-wrapper {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ttt-board {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  max-width: 360px;
  width: 90%;
  aspect-ratio: 1 / 1;
}

.ttt-cell {
  background: rgba(255, 255, 255, 0.08);
  border: 2px solid rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.2rem;
  cursor: pointer;
  transition: all 0.2s;
  user-select: none;
}

.ttt-cell:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--primary-cyan);
}

.ttt-cell.win-cell {
  background: rgba(0, 230, 118, 0.25);
  border-color: var(--accent-green);
  animation: pulseGlow 1.2s infinite;
}

.ttt-controls {
  padding: 16px;
  display: flex;
  justify-content: center;
}

/* ============================
   7. YasinCraft 3D
   ============================ */
.craft-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #7ac1eb;
}

#craft-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

/* Crosshair */
.craft-crosshair {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 16px;
  height: 16px;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 10;
}

.craft-crosshair::before,
.craft-crosshair::after {
  content: '';
  position: absolute;
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.7);
}

.craft-crosshair::before {
  top: 0;
  left: 7px;
  width: 2px;
  height: 16px;
}

.craft-crosshair::after {
  top: 7px;
  left: 0;
  width: 16px;
  height: 2px;
}

/* Desktop Hint */
.craft-hint {
  position: absolute;
  top: 15px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.65);
  color: #ffffff;
  padding: 8px 18px;
  border-radius: 20px;
  font-size: 0.95rem;
  font-weight: 600;
  pointer-events: none;
  z-index: 10;
  border: 1px solid rgba(255, 255, 255, 0.2);
  white-space: nowrap;
}

/* Hotbar */
.craft-hotbar {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(18, 14, 38, 0.85);
  backdrop-filter: blur(8px);
  border: 2px solid rgba(255, 255, 255, 0.25);
  border-radius: 16px;
  padding: 6px 10px;
  display: flex;
  gap: 8px;
  z-index: 20;
  max-width: 95vw;
  overflow-x: auto;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

.hotbar-slot {
  position: relative;
  width: 46px;
  height: 46px;
  background: rgba(255, 255, 255, 0.08);
  border: 2px solid transparent;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s;
}

.hotbar-slot .slot-icon {
  font-size: 1.6rem;
}

.hotbar-slot .slot-num {
  position: absolute;
  bottom: 2px;
  right: 4px;
  font-size: 0.7rem;
  font-weight: 700;
  color: #ffffff;
  opacity: 0.7;
}

.hotbar-slot.active {
  background: rgba(255, 255, 255, 0.2);
  border-color: #ffd700;
  box-shadow: 0 0 12px rgba(255, 215, 0, 0.6);
  transform: scale(1.12);
}

/* Mobile Touch Controls */
.craft-touch-left {
  position: absolute;
  bottom: 85px;
  left: 15px;
  z-index: 20;
}

.craft-dpad {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.craft-dpad-middle {
  display: flex;
  gap: 4px;
}

.craft-dpad-btn {
  width: 50px;
  height: 46px;
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: white;
  border-radius: 12px;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
  cursor: pointer;
}

.craft-dpad-btn:active {
  background: var(--primary-cyan);
  color: black;
}

.craft-touch-right {
  position: absolute;
  bottom: 85px;
  right: 15px;
  z-index: 20;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

.craft-action-group {
  display: flex;
  gap: 10px;
}

.craft-action-btn {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.3);
  color: white;
  font-size: 1.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
  transition: transform 0.1s;
}

.craft-action-btn:active {
  transform: scale(0.9);
}

.craft-btn-mine {
  background: linear-gradient(135deg, #ff4757, #ff6b81);
}

.craft-btn-place {
  background: linear-gradient(135deg, #2ed573, #1e90ff);
}

.craft-btn-jump {
  background: linear-gradient(135deg, #ffa502, #ffd700);
  width: 50px;
  height: 50px;
  font-size: 1.3rem;
  align-self: center;
}

@media (min-width: 900px) {
  /* On large desktop screens, hide touch dpad unless touch is present */
  .craft-touch-left, .craft-touch-right {
    opacity: 0.85;
  }
}

/* =========================================================
   Minecraft Authentic Title Screen & Menu
   ========================================================= */
.mc-menu-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, rgba(30, 20, 50, 0.7) 0%, rgba(10, 5, 20, 0.94) 100%);
  backdrop-filter: blur(8px);
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.3s ease;
}

.mc-menu-overlay.hidden {
  display: none;
}

/* 3D Minecraft Logo */
.mc-logo-wrapper {
  position: relative;
  margin-bottom: 35px;
  text-align: center;
}

.mc-logo-title {
  font-family: 'Fredoka', 'Arial Black', sans-serif;
  font-size: 3.6rem;
  font-weight: 900;
  letter-spacing: 4px;
  color: #c4c4c4;
  text-shadow: 
    0 2px 0 #8f8f8f,
    0 4px 0 #6e6e6e,
    0 6px 0 #4f4f4f,
    0 8px 12px rgba(0, 0, 0, 0.8),
    0 0 20px rgba(0, 242, 254, 0.4);
  transform: perspective(400px) rotateX(10deg);
  user-select: none;
}

.mc-logo-title span {
  color: #55ff55;
  text-shadow: 
    0 2px 0 #2e8b57,
    0 4px 0 #1b5e20,
    0 6px 0 #0d3813,
    0 8px 12px rgba(0, 0, 0, 0.8);
}

/* Bouncing Yellow Splash Text */
.mc-splash-text {
  position: absolute;
  right: -20px;
  bottom: -15px;
  color: #ffff00;
  font-size: 1.25rem;
  font-weight: 800;
  text-shadow: 2px 2px 0 #3f3f00;
  transform: rotate(-18deg);
  animation: splashBounce 0.8s infinite alternate ease-in-out;
  white-space: nowrap;
  pointer-events: none;
}

@keyframes splashBounce {
  0% {
    transform: rotate(-18deg) scale(1);
  }
  100% {
    transform: rotate(-18deg) scale(1.15);
  }
}

/* Minecraft Stone Buttons */
.mc-buttons-group {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
  max-width: 380px;
}

.mc-btn {
  background: linear-gradient(180deg, #787878 0%, #525252 100%);
  border: 3px solid;
  border-color: #a8a8a8 #383838 #262626 #969696;
  color: #ffffff;
  font-family: inherit;
  font-size: 1.15rem;
  font-weight: 700;
  padding: 12px 24px;
  cursor: pointer;
  text-align: center;
  text-shadow: 2px 2px 0 #222222;
  box-shadow: inset 1px 1px 0 #ffffff, 0 4px 12px rgba(0, 0, 0, 0.5);
  transition: all 0.1s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 4px;
}

.mc-btn:hover {
  background: linear-gradient(180deg, #8c8c8c 0%, #686868 100%);
  border-color: #ffffff #444444 #333333 #ffffff;
  color: #ffffa0;
  text-shadow: 2px 2px 0 #4a4a00;
  transform: translateY(-2px);
}

.mc-btn:active {
  background: linear-gradient(180deg, #444444 0%, #585858 100%);
  border-color: #222222 #888888 #888888 #222222;
  transform: translateY(1px);
}

.mc-btn-primary {
  background: linear-gradient(180deg, #43a047 0%, #2e7d32 100%);
  border-color: #81c784 #1b5e20 #0e3d13 #66bb6a;
}

.mc-btn-primary:hover {
  background: linear-gradient(180deg, #4caf50 0%, #388e3c 100%);
  color: #ffffff;
}

/* Active Map Indicator on Menu */
.mc-active-map-badge {
  color: var(--accent-gold);
  font-weight: 700;
  font-size: 0.95rem;
  margin-top: 6px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

/* Map Selection Modal */
.mc-map-modal {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(8, 5, 18, 0.92);
  backdrop-filter: blur(10px);
  z-index: 120;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.mc-map-modal.hidden {
  display: none;
}

.mc-map-card {
  background: #25203b;
  border: 3px solid #7c68a3;
  border-radius: 18px;
  padding: 24px;
  max-width: 580px;
  width: 100%;
  text-align: center;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.7);
}

.mc-map-title {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: #ffd700;
}

.mc-maps-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-bottom: 22px;
}

.mc-map-option {
  background: rgba(255, 255, 255, 0.08);
  border: 2px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  padding: 16px 12px;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.mc-map-option.active, .mc-map-option:hover {
  border-color: #ffd700;
  background: rgba(255, 215, 0, 0.15);
  box-shadow: 0 0 15px rgba(255, 215, 0, 0.4);
  transform: scale(1.04);
}

.mc-map-icon {
  font-size: 2.2rem;
}

.mc-map-name {
  font-weight: 700;
  font-size: 1.05rem;
}

.mc-map-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* =========================================================
   Minecraft Mods Manager Modal & In-Game GUI
   ========================================================= */
.mc-mods-modal {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 8, 22, 0.94);
  backdrop-filter: blur(12px);
  z-index: 130;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  overflow-y: auto;
}

.mc-mods-modal.hidden {
  display: none !important;
}

.mc-mods-card {
  background: linear-gradient(145deg, #2a2444 0%, #171328 100%);
  border: 3px solid #00f2fe;
  box-shadow: 0 0 35px rgba(0, 242, 254, 0.4), inset 0 0 20px rgba(0, 0, 0, 0.6);
  border-radius: 20px;
  padding: 22px 24px;
  max-width: 680px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.mc-mods-header {
  text-align: center;
  border-bottom: 2px dashed rgba(255, 255, 255, 0.15);
  padding-bottom: 12px;
}

.mc-mods-header h2 {
  font-size: 1.8rem;
  font-weight: 800;
  background: linear-gradient(135deg, #00f2fe 0%, #ffd700 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 4px;
}

.mc-mods-header p {
  color: #b8b2d4;
  font-size: 0.92rem;
}

.mc-mods-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
}

.mc-mod-item {
  background: rgba(255, 255, 255, 0.06);
  border: 2px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

.mc-mod-item:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(0, 242, 254, 0.6);
  transform: translateY(-2px);
}

.mc-mod-item.active {
  background: linear-gradient(135deg, rgba(0, 242, 254, 0.2) 0%, rgba(85, 255, 85, 0.15) 100%);
  border-color: #55ff55;
  box-shadow: 0 0 16px rgba(85, 255, 85, 0.35);
}

.mc-mod-info {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
}

.mc-mod-icon {
  font-size: 2rem;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 10px;
  flex-shrink: 0;
}

.mc-mod-text {
  display: flex;
  flex-direction: column;
  text-align: start;
}

.mc-mod-title {
  font-weight: 700;
  font-size: 1rem;
  color: #ffffff;
}

.mc-mod-desc {
  font-size: 0.78rem;
  color: #a49fc4;
  line-height: 1.3;
}

/* Mod Toggle Switch */
.mc-toggle-switch {
  position: relative;
  width: 46px;
  height: 26px;
  background: #3a3556;
  border-radius: 20px;
  transition: background 0.25s;
  flex-shrink: 0;
}

.mc-toggle-thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  background: #ffffff;
  border-radius: 50%;
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 5px rgba(0,0,0,0.4);
}

.mc-mod-item.active .mc-toggle-switch {
  background: #2ed573;
}

.mc-mod-item.active .mc-toggle-thumb {
  transform: translateX(20px);
}

/* Instant Actions & Builder Section */
.mc-mods-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: rgba(0, 0, 0, 0.25);
  border-radius: 14px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.mc-mods-actions-title {
  font-weight: 800;
  font-size: 1.05rem;
  color: #ffd700;
  display: flex;
  align-items: center;
  gap: 8px;
}

.mc-action-btns-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 8px;
}

.mc-action-btn {
  background: linear-gradient(180deg, #443c68 0%, #2e284a 100%);
  border: 2px solid #6b5ea3;
  color: white;
  padding: 8px 12px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.15s;
}

.mc-action-btn:hover {
  background: linear-gradient(180deg, #5b518c 0%, #3e3663 100%);
  border-color: #ffd700;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 215, 0, 0.3);
}

.mc-action-btn.btn-nuke {
  background: linear-gradient(180deg, #ff4757 0%, #c0392b 100%);
  border-color: #ff6b81;
}

.mc-action-btn.btn-nuke:hover {
  box-shadow: 0 4px 16px rgba(255, 71, 87, 0.5);
}

/* In-Game Floating HUD Elements */
.craft-hud-top-right {
  position: absolute;
  top: 15px;
  right: 15px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  z-index: 25;
}

.craft-mods-btn {
  background: linear-gradient(135deg, #9b51e0 0%, #00f2fe 100%);
  border: 2px solid #ffffff;
  color: #ffffff;
  padding: 9px 16px;
  border-radius: 25px;
  font-weight: 800;
  font-size: 1rem;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(155, 81, 224, 0.6);
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.craft-mods-btn:hover {
  transform: scale(1.08) translateY(-2px);
  box-shadow: 0 6px 24px rgba(0, 242, 254, 0.8);
}

.craft-mods-btn:active {
  transform: scale(0.95);
}

.craft-mods-badge {
  background: #ff4757;
  color: white;
  border-radius: 12px;
  padding: 1px 7px;
  font-size: 0.75rem;
  font-weight: 900;
}

/* Active Mods Indicator Pills */
.craft-active-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
  max-width: 280px;
  pointer-events: none;
}

.craft-chip {
  background: rgba(18, 14, 38, 0.85);
  border: 1px solid rgba(0, 242, 254, 0.6);
  color: #ffffff;
  padding: 3px 8px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 700;
  backdrop-filter: blur(4px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
  animation: chipGlow 2s infinite alternate;
}

@keyframes chipGlow {
  0% { border-color: rgba(0, 242, 254, 0.4); }
  100% { border-color: rgba(85, 255, 85, 0.9); box-shadow: 0 0 10px rgba(85, 255, 85, 0.5); }
}

/* Touch Flying Controls */
.craft-fly-controls {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 6px;
}

.craft-btn-fly {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid #00f2fe;
  background: linear-gradient(135deg, #00c6ff, #0072ff);
  color: white;
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(0, 114, 255, 0.5);
  cursor: pointer;
  transition: transform 0.1s;
}

.craft-btn-fly:active {
  transform: scale(0.9);
}

/* Lucky Block Toast Notification */
.craft-lucky-toast {
  position: absolute;
  top: 60px;
  left: 50%;
  transform: translateX(-50%) translateY(-20px);
  background: linear-gradient(135deg, #ffd700 0%, #ff8c00 100%);
  color: #1a0f00;
  border: 3px solid #ffffff;
  padding: 12px 26px;
  border-radius: 30px;
  font-weight: 900;
  font-size: 1.25rem;
  box-shadow: 0 8px 30px rgba(255, 215, 0, 0.7), inset 0 0 15px rgba(255, 255, 255, 0.6);
  z-index: 50;
  pointer-events: none;
  opacity: 0;
  transition: all 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  display: flex;
  align-items: center;
  gap: 10px;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.8);
}

.craft-lucky-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* =========================================================
   8. Super Yasin World (Mario Platformer)
   ========================================================= */
.mario-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #5c94fc;
}

#mario-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.mario-hud {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding: 10px 18px;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(6px);
  z-index: 10;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.mario-touch-controls {
  position: absolute;
  bottom: 20px;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding: 0 20px;
  z-index: 20;
  pointer-events: none;
}

.mario-touch-left, .mario-touch-right {
  display: flex;
  gap: 12px;
  pointer-events: all;
}

.mario-touch-btn {
  width: 62px;
  height: 62px;
  background: rgba(0, 0, 0, 0.55);
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  color: white;
  font-size: 1.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  user-select: none;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
  transition: transform 0.1s;
}

.mario-touch-btn:active {
  transform: scale(0.9);
  background: #ff0000;
  border-color: #ffffff;
}

.mario-btn-jump {
  width: 70px;
  height: 70px;
  font-size: 1.8rem;
  background: linear-gradient(135deg, #ff3d00, #ff9100);
}

/* =========================================================
   9. Yasins Garage: Auto-Simulator
   ========================================================= */
.garage-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #212121;
}

.garage-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 16px;
  background: rgba(15, 12, 32, 0.85);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  z-index: 10;
}

.garage-env-buttons, .garage-car-selector {
  display: flex;
  gap: 8px;
}

.garage-btn {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 12px;
  color: white;
  font-size: 0.95rem;
  font-weight: 700;
  padding: 6px 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s;
}

.garage-btn:active {
  background: var(--primary-cyan);
  color: black;
  transform: scale(0.95);
}

.garage-model-btn {
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid transparent;
  border-radius: 12px;
  font-size: 1.4rem;
  padding: 4px 10px;
  cursor: pointer;
  transition: all 0.15s;
}

.garage-model-btn.active, .garage-model-btn:hover {
  border-color: #ffd700;
  background: rgba(255, 215, 0, 0.2);
  transform: scale(1.1);
}

#garage-canvas {
  flex: 1;
  width: 100%;
  display: block;
}

.garage-bottom-deck {
  background: rgba(15, 12, 32, 0.9);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 10px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 10;
}

.garage-paint-palette {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.color-dot {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: transform 0.15s;
}

.color-dot.active {
  border-color: #ffffff;
  transform: scale(1.25);
  box-shadow: 0 0 10px white;
}

.garage-tools-row {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.garage-tool-btn {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 18px;
  color: white;
  font-size: 0.95rem;
  font-weight: 700;
  padding: 8px 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s;
}

.garage-tool-btn:active {
  transform: scale(0.92);
}

.garage-drive-btn {
  background: linear-gradient(135deg, #00e676, #00b0ff);
  color: black;
  border-color: #00e676;
  font-weight: 800;
}

/* ==============================================
   10. PC Simulator & Laggy Minecraft (GlitchCraft)
   ============================================== */
.pc-simulator {
  position: relative;
  width: 100%;
  height: calc(100vh - 70px);
  min-height: 520px;
  background: #000;
  overflow: hidden;
  user-select: none;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --pc-accent: #00f2fe;
}

/* Desktop Canvas & Wallpaper */
.pc-desktop {
  position: relative;
  width: 100%;
  height: calc(100% - 48px);
  background-size: cover !important;
  background-position: center !important;
  overflow: hidden;
}

/* Smoke particles when melting */
.pc-smoke-container {
  position: absolute;
  top: 0;
  right: 0;
  width: 200px;
  height: 200px;
  pointer-events: none;
  z-index: 5;
}

.smoke-puff {
  position: absolute;
  background: radial-gradient(circle, rgba(200, 200, 200, 0.8) 0%, rgba(100, 100, 100, 0) 70%);
  border-radius: 50%;
  animation: smokeRise 2s infinite ease-out;
}
.smoke-puff.p1 { width: 60px; height: 60px; top: 100px; right: 40px; animation-delay: 0s; }
.smoke-puff.p2 { width: 90px; height: 90px; top: 120px; right: 60px; animation-delay: 0.6s; }
.smoke-puff.p3 { width: 120px; height: 120px; top: 140px; right: 20px; animation-delay: 1.2s; }

@keyframes smokeRise {
  0% { transform: translateY(0) scale(0.4); opacity: 0.8; }
  100% { transform: translateY(-160px) scale(1.6); opacity: 0; }
}

/* Desktop Icons Grid */
.pc-desktop-icons {
  position: absolute;
  top: 16px;
  left: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 2;
}

body.is-rtl .pc-desktop-icons {
  left: auto;
  right: 16px;
}

.pc-icon {
  width: 82px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 6px 4px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
}

.pc-icon:hover {
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(6px);
  transform: translateY(-2px);
}

.pc-icon:active {
  transform: scale(0.95);
}

.pc-icon-badge {
  font-size: 2.3rem;
  filter: drop-shadow(0 3px 6px rgba(0,0,0,0.6));
}

.pc-icon-label {
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 600;
  text-align: center;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.95);
  margin-top: 3px;
  line-height: 1.15;
}

/* Windows (Fluent / Aero Glass style) */
.pc-window {
  position: absolute;
  background: rgba(18, 24, 40, 0.94);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 10px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.7);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  max-width: 96vw;
}

.pc-window.hidden {
  display: none !important;
}

.screen-shake {
  animation: winShake 0.4s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}

@keyframes winShake {
  10%, 90% { transform: translate3d(-3px, 0, 0); }
  20%, 80% { transform: translate3d(5px, 0, 0); }
  30%, 50%, 70% { transform: translate3d(-6px, 0, 0); }
  40%, 60% { transform: translate3d(6px, 0, 0); }
}

/* Window Header */
.pc-win-header {
  background: rgba(28, 36, 58, 0.96);
  padding: 8px 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: grab;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.pc-win-header:active {
  cursor: grabbing;
}

.pc-win-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  color: #f1f2f6;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pc-win-controls {
  display: flex;
  gap: 6px;
}

.pc-win-btn {
  width: 28px;
  height: 24px;
  border-radius: 4px;
  border: none;
  background: transparent;
  color: #a4b0be;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
}

.pc-win-btn:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
}

.pc-win-btn.btn-close:hover {
  background: #e84118;
  color: #ffffff;
}

/* =========================================================
   10. Super Pong: Cyber Neon Arcade (🏓 Pong Game)
   ========================================================= */
.pong-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: radial-gradient(circle at center, #0f142e 0%, #060914 100%);
  user-select: none;
  touch-action: none;
}

#pong-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

/* Retro Digital Top HUD */
.pong-hud {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 20px;
  background: rgba(14, 18, 42, 0.85);
  border: 2px solid rgba(0, 242, 254, 0.35);
  border-radius: 30px;
  padding: 6px 20px;
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6), 0 0 15px rgba(0, 242, 254, 0.2);
  z-index: 15;
}

.pong-score-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pong-score-name {
  font-weight: 700;
  font-size: 0.95rem;
}

.pong-p1-name {
  color: #00f2fe;
  text-shadow: 0 0 8px rgba(0, 242, 254, 0.6);
}

.pong-p2-name {
  color: #ff007f;
  text-shadow: 0 0 8px rgba(255, 0, 127, 0.6);
}

.pong-score-val {
  font-size: 1.7rem;
  font-weight: 900;
  font-family: 'Fredoka', 'Courier New', monospace;
  min-width: 24px;
  text-align: center;
}

.pong-vs-badge {
  font-size: 0.8rem;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.1);
  padding: 3px 8px;
  border-radius: 12px;
  color: #ffd700;
}

/* Floating Controls Bar at bottom */
.pong-bottom-bar {
  position: absolute;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 15;
}

.pong-btn-sm {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  backdrop-filter: blur(6px);
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 6px;
  touch-action: manipulation;
  pointer-events: auto;
  user-select: none;
}

.pong-btn-sm:hover {
  background: rgba(0, 242, 254, 0.2);
  border-color: #00f2fe;
  box-shadow: 0 0 10px rgba(0, 242, 254, 0.4);
}

.pong-btn-sm:active {
  transform: scale(0.95);
}

#pong-quick-diff-btn {
  background: rgba(255, 215, 0, 0.12);
  border: 1.5px solid rgba(255, 215, 0, 0.5);
  color: #ffd700;
  font-weight: 800;
}

#pong-quick-diff-btn:hover {
  background: rgba(255, 215, 0, 0.25);
  border-color: #ffd700;
  box-shadow: 0 0 14px rgba(255, 215, 0, 0.5);
}

/* On-Screen Touch Controls */
.pong-touch-left,
.pong-touch-right {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 16px;
  z-index: 20;
}

.pong-touch-left { left: 16px; }
.pong-touch-right { right: 16px; }

.pong-arrow-btn {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.6);
  border: 2px solid;
  color: white;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  user-select: none;
  touch-action: manipulation;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
  transition: transform 0.1s;
}

.pong-touch-left .pong-arrow-btn {
  border-color: #00f2fe;
  box-shadow: 0 0 12px rgba(0, 242, 254, 0.3);
}

.pong-touch-right .pong-arrow-btn {
  border-color: #ff007f;
  box-shadow: 0 0 12px rgba(255, 0, 127, 0.3);
}

.pong-arrow-btn:active {
  transform: scale(0.9);
}

/* Pong Pre-Game Menu Modal Overlay */
.pong-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(6, 9, 24, 0.88);
  backdrop-filter: blur(10px);
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  pointer-events: auto;
  touch-action: auto;
}

.pong-modal-overlay.hidden {
  display: none !important;
}

.pong-menu-card {
  background: linear-gradient(145deg, #1b2042 0%, #0d1127 100%);
  border: 3px solid #00f2fe;
  border-radius: 24px;
  padding: 26px 28px;
  max-width: 480px;
  width: 100%;
  text-align: center;
  color: white;
  box-shadow: 0 0 35px rgba(0, 242, 254, 0.35);
  display: flex;
  flex-direction: column;
  gap: 18px;
  pointer-events: auto !important;
  touch-action: auto !important;
}

.pong-menu-title {
  font-size: 2rem;
  font-weight: 900;
  background: linear-gradient(135deg, #00f2fe 0%, #ff007f 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 2px;
}

.pong-menu-desc {
  color: #a4b0be;
  font-size: 0.92rem;
}

.pong-options-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: start;
}

.pong-options-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: #ffd700;
}

.pong-modes-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.pong-opt-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 2px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  padding: 10px 8px;
  color: white;
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
  pointer-events: auto !important;
  touch-action: manipulation !important;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

.pong-opt-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: #00f2fe;
}

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

.pong-opt-btn.active {
  background: linear-gradient(135deg, rgba(0, 242, 254, 0.3) 0%, rgba(255, 0, 127, 0.3) 100%);
  border-color: #00f2fe;
  box-shadow: 0 0 14px rgba(0, 242, 254, 0.4);
}

.pong-diff-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.pong-btn-start {
  background: linear-gradient(135deg, #00f2fe 0%, #0072ff 100%);
  border: none;
  color: white;
  padding: 14px 24px;
  border-radius: 14px;
  font-size: 1.15rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(0, 114, 255, 0.5);
  transition: transform 0.15s, box-shadow 0.15s;
  pointer-events: auto !important;
  touch-action: manipulation !important;
  user-select: none;
}

.pong-btn-start:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 242, 254, 0.7);
}

.pong-btn-start:active {
  transform: translateY(1px) scale(0.98);
}

/* Winner Celebration Screen */
.pong-winner-banner {
  font-size: 1.6rem;
  font-weight: 900;
  color: #ffd700;
  text-shadow: 0 0 15px rgba(255, 215, 0, 0.8);
  animation: pulse 1s infinite alternate;
}

/* Minecraft Window Elements */
.mc-toolbar {
  background: #2f3542;
  padding: 6px 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.4);
}

.mc-tool-group {
  display: flex;
  align-items: center;
  gap: 6px;
}

.mc-btn {
  padding: 5px 10px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: #57606f;
  color: white;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s;
}

.mc-btn:active {
  transform: scale(0.94);
}

.mc-btn-danger {
  background: linear-gradient(135deg, #ff4757, #ff6b81);
  border-color: #ff4757;
}

.mc-btn-warning {
  background: linear-gradient(135deg, #ffa502, #eccc68);
  color: #1e272e;
}

.mc-btn-freeze {
  background: linear-gradient(135deg, #70a1ff, #1e90ff);
}

.mc-fps-btn.active {
  background: #2ed573;
  color: #1e272e;
  font-weight: 800;
}

.mc-speed-label {
  color: #ced6e0;
  font-size: 0.8rem;
  font-weight: 700;
}

.mc-canvas-wrap {
  position: relative;
  width: 100%;
  background: #000000;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

#mc-canvas {
  width: 100%;
  height: 340px;
  display: block;
  image-rendering: pixelated;
}

/* Frosted Not Responding Overlay */
.mc-freeze-wash {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(5px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 25;
}

.mc-freeze-spinner {
  width: 44px;
  height: 44px;
  border: 4px solid #0078d7;
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}

.mc-freeze-msg {
  color: #1e272e;
  font-size: 1.15rem;
  font-weight: 800;
  margin-top: 14px;
}

/* Touch controls on mobile */
.mc-mobile-controls {
  position: absolute;
  bottom: 8px;
  left: 8px;
  right: 8px;
  display: flex;
  justify-content: space-between;
  pointer-events: none;
  z-index: 15;
}

.mc-m-left, .mc-m-right {
  display: flex;
  gap: 8px;
}

.mc-touch-btn {
  pointer-events: auto;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.65);
  border: 2px solid rgba(255, 255, 255, 0.7);
  color: white;
  font-size: 1.25rem;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mc-touch-btn:active {
  transform: scale(0.9);
  background: #00f2fe;
  color: black;
}

/* Hotbar */
.mc-hotbar {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 4px;
  background: rgba(0, 0, 0, 0.75);
  border: 2px solid #747d8c;
  border-radius: 8px;
  padding: 3px;
  z-index: 12;
}

.mc-slot {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  border-radius: 4px;
  cursor: pointer;
}

.mc-slot.active {
  border: 2px solid #ffffff;
  background: rgba(255, 255, 255, 0.25);
}

/* ============================
   Task Manager Styles
   ============================ */
.pc-taskmgr-body {
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  color: #f1f2f6;
}

.taskmgr-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.metric-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 10px;
}

.metric-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.88rem;
  margin-bottom: 6px;
}

.metric-graph-wrap {
  width: 100%;
  height: 45px;
  background: rgba(0, 0, 0, 0.35);
  border-radius: 4px;
  overflow: hidden;
}

#tm-cpu-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.metric-bar {
  width: 100%;
  height: 12px;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 6px;
  overflow: hidden;
}

.metric-fill {
  height: 100%;
  background: linear-gradient(90deg, #00f2fe, #ff007f);
  transition: width 0.3s;
}

.metric-sub {
  font-size: 0.72rem;
  color: #a4b0be;
  margin-top: 5px;
}

.taskmgr-actions-row {
  display: flex;
  gap: 8px;
}

.pc-action-btn {
  flex: 1;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
}

.pc-action-btn.pc-btn-danger {
  background: linear-gradient(135deg, #ff4757, #ff6b81);
  border-color: #ff4757;
}

.taskmgr-table-wrap {
  background: rgba(0, 0, 0, 0.3);
  border-radius: 6px;
  overflow-y: auto;
  max-height: 150px;
}

.taskmgr-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8rem;
  text-align: left;
}

body.is-rtl .taskmgr-table {
  text-align: right;
}

.taskmgr-table th {
  padding: 6px 10px;
  background: rgba(255, 255, 255, 0.08);
  color: #a4b0be;
}

.taskmgr-table td {
  padding: 6px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.taskmgr-table tr.selected {
  background: rgba(0, 242, 254, 0.15);
}

.status-warn { color: #ffa502; font-weight: 700; }
.status-danger { color: #ff4757; font-weight: 800; animation: pulse 1s infinite; }

/* ============================
   This PC & Hardware Styles
   ============================ */
.pc-thispc-body {
  padding: 16px;
  color: #f1f2f6;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.specs-box {
  background: rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  padding: 12px;
  font-size: 0.85rem;
  line-height: 1.6;
}

.specs-box h4 {
  margin-bottom: 8px;
  color: #00f2fe;
}

.drive-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.06);
  padding: 10px 14px;
  border-radius: 8px;
}

.drive-icon {
  font-size: 2.2rem;
}

.drive-info {
  flex: 1;
}

.drive-bar {
  width: 100%;
  height: 10px;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 5px;
  margin: 4px 0;
  overflow: hidden;
}

.drive-fill-danger {
  height: 100%;
  background: #ff4757;
}

.danger-zone {
  display: flex;
  justify-content: center;
}

.pc-danger-btn {
  padding: 10px 18px;
  background: linear-gradient(135deg, #ff4757, #c0392b);
  border: 1px solid #ff4757;
  color: white;
  border-radius: 8px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(255, 71, 87, 0.4);
}

/* ============================
   Browser Styles
   ============================ */
.browser-body {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.browser-url-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: rgba(0, 0, 0, 0.35);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.browser-url-bar input {
  flex: 1;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 14px;
  padding: 4px 12px;
  color: #ced6e0;
  font-size: 0.8rem;
}

.browser-content {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  overflow-y: auto;
}

.browser-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 14px;
  color: white;
}

.browser-card h3 {
  color: #00f2fe;
  font-size: 1rem;
  margin-bottom: 6px;
}

.browser-card p {
  font-size: 0.82rem;
  color: #a4b0be;
  margin-bottom: 10px;
}

.browser-download-btn {
  padding: 8px 14px;
  background: linear-gradient(135deg, #00f2fe, #4facfe);
  border: none;
  border-radius: 6px;
  color: black;
  font-weight: 800;
  cursor: pointer;
}

.dl-progress {
  width: 100%;
  height: 8px;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 4px;
  margin-top: 10px;
  overflow: hidden;
}

.dl-fill {
  height: 100%;
  background: #00e676;
  width: 0%;
  transition: width 0.3s;
}

/* ============================
   Notepad Styles
   ============================ */
.notepad-body {
  height: calc(100% - 38px);
}

#notepad-text {
  width: 100%;
  height: 100%;
  background: #1e1e1e;
  color: #f1f2f6;
  border: none;
  padding: 12px;
  font-family: monospace;
  font-size: 0.9rem;
  resize: none;
  outline: none;
}

/* ============================
   Fan & Overclock Controls
   ============================ */
.control-body {
  padding: 16px;
  color: white;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.fan-widget {
  display: flex;
  align-items: center;
  gap: 16px;
  background: rgba(255, 255, 255, 0.06);
  padding: 14px;
  border-radius: 10px;
}

.fan-icon-spin {
  font-size: 3rem;
  animation: spin 0.7s linear infinite;
}

.temp-badge {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 12px;
  background: rgba(0, 230, 118, 0.2);
  color: #00e676;
  font-weight: 700;
  font-size: 0.78rem;
  margin-top: 4px;
}

.temp-badge.warn { background: rgba(255, 165, 2, 0.2); color: #ffa502; }
.temp-badge.danger { background: rgba(255, 71, 87, 0.2); color: #ff4757; animation: pulse 0.8s infinite; }

.fan-mode-buttons {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.fan-mode-btn {
  flex: 1;
  min-width: 120px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  color: white;
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 700;
}

.fan-mode-btn.active {
  background: #00f2fe;
  color: black;
  border-color: #00f2fe;
}

.fan-mode-btn.fan-danger {
  border-color: #ff4757;
}

.rgb-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.rgb-palette {
  display: flex;
  gap: 8px;
}

.rgb-dot {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid white;
  cursor: pointer;
}

/* ============================
   Taskbar & Start Menu
   ============================ */
.pc-taskbar {
  height: 48px;
  background: rgba(14, 18, 30, 0.96);
  backdrop-filter: blur(20px);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 10px;
  z-index: 100;
}

.pc-start-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: white;
  padding: 6px 14px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  transition: all 0.15s;
}

.pc-start-btn:hover {
  background: rgba(255, 255, 255, 0.16);
  box-shadow: 0 0 12px rgba(0, 242, 254, 0.3);
}

.start-logo {
  color: #00f2fe;
  font-size: 1.1rem;
}

.pc-task-items {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  max-width: 60%;
}

.taskbar-item {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #dcdde1;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.8rem;
  cursor: pointer;
  white-space: nowrap;
}

.taskbar-item.active {
  background: rgba(0, 242, 254, 0.15);
  border-color: #00f2fe;
  color: #00f2fe;
  font-weight: 700;
}

.pc-system-tray {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #a4b0be;
  font-size: 0.85rem;
}

.tray-icon {
  cursor: pointer;
}

.tray-clock {
  color: white;
  font-weight: 700;
}

/* Start Menu Pop-out */
.pc-start-menu {
  position: absolute;
  bottom: 56px;
  left: 12px;
  width: 280px;
  background: rgba(20, 26, 44, 0.98);
  backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.8);
  z-index: 101;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

body.is-rtl .pc-start-menu {
  left: auto;
  right: 12px;
}

.start-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 10px;
}

.start-user {
  display: flex;
  align-items: center;
  gap: 8px;
  color: white;
}

.start-avatar {
  font-size: 1.6rem;
}

.start-user small {
  display: block;
  color: #a4b0be;
  font-size: 0.75rem;
}

.start-power-btn {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: white;
  font-size: 1rem;
  padding: 6px;
  border-radius: 6px;
  cursor: pointer;
}

.start-pinned {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.start-item {
  padding: 8px 12px;
  border-radius: 6px;
  color: #f1f2f6;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
}

.start-item:hover {
  background: rgba(255, 255, 255, 0.14);
}

/* ============================
   Dialogs & Modals
   ============================ */
.pc-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 150;
}

.pc-dialog-card {
  width: 90%;
  max-width: 420px;
  background: #1e2438;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.8);
}

.pc-dialog-titlebar {
  background: #2b334d;
  padding: 8px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: white;
  font-size: 0.85rem;
  font-weight: 700;
}

.dialog-close-x {
  background: transparent;
  border: none;
  color: #a4b0be;
  cursor: pointer;
  font-size: 0.9rem;
}

.pc-dialog-body {
  padding: 16px;
  display: flex;
  gap: 14px;
  color: white;
}

.dialog-icon {
  font-size: 2.2rem;
}

.dialog-text h4 {
  margin-bottom: 6px;
  font-size: 1rem;
}

.dialog-text p {
  font-size: 0.82rem;
  color: #a4b0be;
  line-height: 1.4;
}

.pc-dialog-footer {
  padding: 10px 14px;
  background: rgba(0, 0, 0, 0.25);
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.pc-dialog-btn {
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.1);
  color: white;
}

.pc-dialog-btn.pc-btn-primary {
  background: #0078d7;
  border-color: #0078d7;
}

.pc-dialog-btn.pc-btn-danger {
  background: #ff4757;
  border-color: #ff4757;
}

/* ============================
   Blue Screen of Death (BSOD)
   ============================ */
.pc-bsod-screen {
  position: absolute;
  inset: 0;
  background: #0078d7;
  color: white;
  padding: 30px 40px;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  justify-content: center;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.bsod-sad-face {
  font-size: 5.5rem;
  font-weight: 300;
  margin-bottom: 12px;
}

.bsod-header {
  font-size: 1.5rem;
  font-weight: 400;
  margin-bottom: 14px;
  line-height: 1.3;
}

.bsod-text {
  font-size: 1rem;
  opacity: 0.9;
  margin-bottom: 20px;
}

.bsod-progress {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 24px;
}

.bsod-details {
  display: flex;
  align-items: center;
  gap: 20px;
}

.qr-mock {
  width: 64px;
  height: 64px;
  background: white;
  border: 4px solid white;
  background-image: repeating-linear-gradient(45deg, #0078d7 0, #0078d7 4px, white 0, white 8px);
}

.bsod-stopcode {
  font-size: 0.85rem;
  opacity: 0.85;
  line-height: 1.5;
}

/* BIOS Boot Screen */
.pc-bios-screen {
  position: absolute;
  inset: 0;
  background: #000000;
  color: #00ff00;
  font-family: monospace;
  padding: 30px;
  z-index: 2001;
  font-size: 1.05rem;
  line-height: 1.8;
}

/* ==============================================
   Windows 95 Retro Desktop Simulator (#008080)
   ============================================== */
#screen-pcsim {
  padding: 0 !important;
  background: #008080 !important;
}

#screen-pcsim .game-screen-header {
  display: none !important;
}

#screen-pcsim .game-viewport {
  height: 100vh !important;
  max-height: 100vh !important;
  overflow: hidden !important;
}

.win95-root {
  position: absolute;
  inset: 0;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  user-select: none;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background: #008080;
  color: #000000;
}

/* Windows 95 Desktop Surface */
.win95-desktop {
  position: relative;
  width: 100%;
  height: calc(100vh - 36px);
  background: #008080;
  overflow: hidden;
}

/* Smoke FX for Overclocking */
.win95-smoke {
  position: absolute;
  top: 15px;
  right: 60px;
  display: flex;
  gap: 10px;
  pointer-events: none;
  z-index: 1000;
}

.smoke-puff {
  font-size: 2.5rem;
  animation: w95SmokeRise 1.2s infinite ease-out;
}

@keyframes w95SmokeRise {
  0% { transform: translateY(0) scale(0.6); opacity: 0.9; }
  100% { transform: translateY(-40px) scale(1.6); opacity: 0; }
}

/* ============================
   Desktop Icons
   ============================ */
.win95-icons {
  position: absolute;
  top: 12px;
  left: 12px;
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  align-content: flex-start;
  max-height: calc(100vh - 55px);
  gap: 14px 18px;
  z-index: 2;
}

body.is-rtl .win95-icons {
  left: auto;
  right: 12px;
}

.w95-icon {
  width: 76px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 4px;
  border: 1px dotted transparent;
  cursor: pointer;
  text-align: center;
  border-radius: 2px;
  transition: transform 0.1s;
}

.w95-icon:hover {
  transform: translateY(-2px);
}

.w95-icon:hover, .w95-icon.active-icon {
  border-color: #ffffff;
  background: rgba(0, 0, 128, 0.45);
}

.w95-icon-graphic {
  font-size: 2.2rem;
  margin-bottom: 2px;
  filter: drop-shadow(1px 1px 0 rgba(0,0,0,0.6));
}

.w95-icon-label {
  color: #ffffff;
  font-size: 11px;
  line-height: 1.2;
  word-break: break-word;
  text-shadow: 1px 1px 1px #000000;
  font-weight: 500;
}

/* ============================
   3D Windows 95 Window Frames
   ============================ */
.w95-window {
  position: absolute;
  background: #c0c0c0;
  border: 2px solid;
  border-color: #ffffff #808080 #808080 #ffffff;
  box-shadow: inset 1px 1px 0 #dfdfdf, inset -1px -1px 0 #000000, 3px 3px 10px rgba(0,0,0,0.4);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  font-size: 11px;
  max-width: 98vw;
  max-height: calc(100vh - 40px);
}

.w95-window.hidden {
  display: none !important;
}

.w95-window.maximized {
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: calc(100vh - 36px) !important;
  max-height: calc(100vh - 36px) !important;
  border-radius: 0 !important;
}

/* Title Bar with Navy Blue Gradient */
.w95-title-bar {
  height: 24px;
  min-height: 24px;
  background: linear-gradient(90deg, #000080 0%, #1084d0 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2px 4px;
  font-weight: bold;
  font-size: 11px;
  cursor: grab;
  user-select: none;
}

.w95-title-bar:active {
  cursor: grabbing;
}

.w95-title-bar.inactive-bar {
  background: linear-gradient(90deg, #808080 0%, #b5b5b5 100%);
  color: #dfdfdf;
}

.w95-title-text {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.w95-title-buttons {
  display: flex;
  gap: 2px;
}

.w95-btn-title {
  width: 16px;
  height: 14px;
  background: #c0c0c0;
  border: 1px solid;
  border-color: #ffffff #808080 #808080 #ffffff;
  box-shadow: inset 1px 1px 0 #dfdfdf, inset -1px -1px 0 #000000;
  font-family: monospace;
  font-size: 10px;
  font-weight: bold;
  line-height: 1;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #000000;
}

.w95-btn-title:active {
  border-color: #808080 #ffffff #ffffff #808080;
  box-shadow: inset 1px 1px 0 #000000;
  padding-top: 1px;
  padding-left: 1px;
}

/* Windows 95 Menu Bar */
.w95-menu-bar {
  background: #c0c0c0;
  display: flex;
  gap: 12px;
  padding: 3px 8px;
  font-size: 11px;
  border-bottom: 1px solid #808080;
  color: #000000;
  user-select: none;
}

.w95-menu-bar span {
  cursor: pointer;
  padding: 1px 4px;
}

.w95-menu-bar span:hover {
  background: #000080;
  color: #ffffff;
}

/* Windows 95 Client / Workspace Area */
.w95-client-area {
  flex: 1;
  background: #c0c0c0;
  padding: 8px;
  overflow: auto;
  display: flex;
  flex-direction: column;
}

/* 3D Bevel Buttons */
.w95-bevel-btn {
  background: #c0c0c0;
  border: 2px solid;
  border-color: #ffffff #808080 #808080 #ffffff;
  box-shadow: inset 1px 1px 0 #dfdfdf, inset -1px -1px 0 #000000;
  color: #000000;
  font-family: inherit;
  font-size: 11px;
  font-weight: normal;
  padding: 3px 10px;
  cursor: pointer;
  user-select: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  white-space: nowrap;
}

.w95-bevel-btn:hover {
  filter: brightness(1.03);
}

.w95-bevel-btn:active, .w95-bevel-btn.active {
  border-color: #808080 #ffffff #ffffff #808080;
  box-shadow: inset 1px 1px 0 #000000;
  padding: 4px 9px 2px 11px;
  background: #b5b5b5;
}

.w95-bevel-btn.default-btn {
  font-weight: bold;
  border-color: #000000 #000000 #000000 #000000;
  outline: 1px solid #000000;
}

/* ============================
   Windows 95 Taskbar & Start
   ============================ */
.win95-taskbar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 36px;
  background: #c0c0c0;
  border-top: 2px solid #ffffff;
  box-shadow: inset 0 1px 0 #dfdfdf;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2px 4px;
  z-index: 9999;
  font-size: 11px;
  user-select: none;
}

.w95-start-btn {
  height: 28px;
  padding: 2px 8px;
  background: #c0c0c0;
  border: 2px solid;
  border-color: #ffffff #808080 #808080 #ffffff;
  box-shadow: inset 1px 1px 0 #dfdfdf, inset -1px -1px 0 #000000;
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: bold;
  font-size: 12px;
  cursor: pointer;
  color: #000000;
}

.w95-start-btn.start-depressed, .w95-start-btn:active {
  border-color: #808080 #ffffff #ffffff #808080;
  box-shadow: inset 1px 1px 0 #000000;
  background: #dfdfdf;
  padding: 3px 7px 1px 9px;
}

/* 4-Color Windows Flag */
.w95-flag-icon {
  display: grid;
  grid-template-columns: 6px 6px;
  grid-template-rows: 6px 6px;
  gap: 1px;
}

.w95-flag-r { background: #ff0000; }
.w95-flag-g { background: #00aa00; }
.w95-flag-b { background: #0000ff; }
.w95-flag-y { background: #ffcc00; }

.w95-taskbar-tabs {
  display: flex;
  gap: 4px;
  flex: 1;
  margin: 0 6px;
  overflow-x: auto;
  height: 28px;
  align-items: center;
}

.w95-taskbar-tab {
  min-width: 110px;
  max-width: 170px;
  height: 26px;
  padding: 2px 6px;
  background: #c0c0c0;
  border: 2px solid;
  border-color: #ffffff #808080 #808080 #ffffff;
  box-shadow: inset 1px 1px 0 #dfdfdf, inset -1px -1px 0 #000000;
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: normal;
  cursor: pointer;
  color: #000000;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.w95-taskbar-tab.tab-sunken {
  border-color: #808080 #ffffff #ffffff #808080;
  box-shadow: inset 1px 1px 0 #000000;
  background: #e0e0e0;
  font-weight: bold;
}

/* System Tray */
.w95-systray {
  height: 26px;
  border: 2px solid;
  border-color: #808080 #ffffff #ffffff #808080;
  box-shadow: inset 1px 1px 0 #000000;
  padding: 0 8px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  color: #000000;
}

.w95-tray-icon {
  cursor: pointer;
}

.w95-tray-cpu {
  color: #000080;
}

.w95-tray-clock {
  font-weight: 500;
}

/* ============================
   Start Menu Pop-out
   ============================ */
.w95-start-menu {
  position: absolute;
  bottom: 36px;
  left: 2px;
  width: 230px;
  background: #c0c0c0;
  border: 2px solid;
  border-color: #ffffff #808080 #808080 #ffffff;
  box-shadow: inset 1px 1px 0 #dfdfdf, inset -1px -1px 0 #000000, 4px 4px 10px rgba(0,0,0,0.5);
  z-index: 10000;
  display: flex;
}

.w95-start-menu.hidden {
  display: none !important;
}

body.is-rtl .w95-start-menu {
  left: auto;
  right: 2px;
}

.w95-start-banner {
  width: 28px;
  background: linear-gradient(180deg, #000080, #1084d0);
  color: #ffffff;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 8px 4px;
  font-size: 15px;
  font-weight: bold;
  letter-spacing: 2px;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
  user-select: none;
}

.w95-banner-text strong {
  margin-left: 4px;
}

.w95-start-items {
  flex: 1;
  padding: 4px 2px;
  display: flex;
  flex-direction: column;
}

.w95-menu-item {
  padding: 6px 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  cursor: pointer;
  color: #000000;
  user-select: none;
}

.w95-menu-item:hover {
  background: #000080;
  color: #ffffff;
}

.w95-m-icon {
  font-size: 1.1rem;
}

.w95-menu-divider {
  height: 2px;
  border-top: 1px solid #808080;
  border-bottom: 1px solid #ffffff;
  margin: 4px 2px;
}

/* ============================
   Minecraft 95 (Lag Edition)
   ============================ */
.mc95-toolbar {
  background: #c0c0c0;
  padding: 4px 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #808080;
  flex-wrap: wrap;
  gap: 6px;
}

.mc95-tool-group {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
}

.mc95-canvas-wrap {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #000000;
  border: 2px solid;
  border-color: #808080 #ffffff #ffffff #808080;
  box-shadow: inset 1px 1px 0 #000000;
  overflow: hidden;
}

#mc-canvas {
  width: 100%;
  height: 100%;
  max-height: 310px;
  display: block;
  image-rendering: pixelated;
}

.mc95-freeze-wash {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(1px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 10;
  cursor: wait;
}

.mc95-freeze-wash.hidden {
  display: none !important;
}

.w95-hourglass-cursor {
  font-size: 3.5rem;
  animation: w95HourglassFlip 1.2s infinite ease-in-out;
}

@keyframes w95HourglassFlip {
  0%, 45% { transform: rotate(0deg); }
  50%, 95% { transform: rotate(180deg); }
  100% { transform: rotate(360deg); }
}

.mc95-freeze-msg {
  background: #ffffcc;
  border: 1px solid #808080;
  padding: 4px 10px;
  font-weight: bold;
  font-size: 12px;
  margin-top: 8px;
  color: #000000;
  box-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.mc95-touch-controls {
  position: absolute;
  bottom: 42px;
  left: 8px;
  right: 8px;
  display: flex;
  justify-content: space-between;
  pointer-events: none;
  z-index: 5;
}

.mc-touch-group {
  display: flex;
  gap: 4px;
  pointer-events: auto;
}

.w95-tbtn {
  font-size: 11px;
  font-weight: bold;
  padding: 6px 10px;
}

.mc95-hotbar {
  position: absolute;
  bottom: 6px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 4px;
  background: #c0c0c0;
  border: 2px solid;
  border-color: #ffffff #808080 #808080 #ffffff;
  padding: 2px;
  z-index: 5;
}

.mc95-slot {
  padding: 3px 8px;
  font-size: 11px;
  cursor: pointer;
  border: 1px solid transparent;
}

.mc95-slot.active {
  border-color: #808080 #ffffff #ffffff #808080;
  background: #dfdfdf;
  font-weight: bold;
}

/* ============================
   Minesweeper 95
   ============================ */
.ms95-body {
  background: #c0c0c0;
  padding: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.ms95-header {
  width: 100%;
  border: 2px solid;
  border-color: #808080 #ffffff #ffffff #808080;
  box-shadow: inset 1px 1px 0 #000000;
  background: #c0c0c0;
  padding: 4px 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.ms95-digits {
  background: #000000;
  color: #ff0000;
  font-family: "Courier New", Courier, monospace;
  font-size: 20px;
  font-weight: bold;
  letter-spacing: 2px;
  padding: 2px 4px;
  border: 1px solid #808080;
  width: 50px;
  text-align: right;
}

.ms95-face-btn {
  width: 26px;
  height: 26px;
  background: #c0c0c0;
  border: 2px solid;
  border-color: #ffffff #808080 #808080 #ffffff;
  box-shadow: inset 1px 1px 0 #dfdfdf, inset -1px -1px 0 #000000;
  font-size: 15px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.ms95-face-btn:active {
  border-color: #808080 #ffffff #ffffff #808080;
  box-shadow: inset 1px 1px 0 #000000;
}

.ms95-grid {
  display: grid;
  grid-template-columns: repeat(9, 24px);
  grid-template-rows: repeat(9, 24px);
  border: 3px solid;
  border-color: #808080 #ffffff #ffffff #808080;
  box-shadow: inset 1px 1px 0 #000000;
  background: #808080;
}

.ms95-cell {
  width: 24px;
  height: 24px;
  background: #c0c0c0;
  border: 2px solid;
  border-color: #ffffff #808080 #808080 #ffffff;
  box-shadow: inset 1px 1px 0 #dfdfdf, inset -1px -1px 0 #000000;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: bold;
  cursor: pointer;
  user-select: none;
  font-family: "MS Sans Serif", Tahoma, sans-serif;
}

.ms95-cell.revealed {
  border: 1px solid #808080;
  box-shadow: none;
  background: #c0c0c0;
}

.ms95-cell.mine {
  background: #ff0000 !important;
}

.ms-c1 { color: #0000ff; }
.ms-c2 { color: #008000; }
.ms-c3 { color: #ff0000; }
.ms-c4 { color: #000080; }
.ms-c5 { color: #800000; }
.ms-c6 { color: #008080; }
.ms-c7 { color: #000000; }
.ms-c8 { color: #808080; }

/* ============================
   Blue Screen of Death (BSOD)
   ============================ */
.w95-bsod {
  position: absolute;
  inset: 0;
  background: #0000aa;
  color: #ffffff;
  z-index: 20000;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Lucida Console", "Courier New", Courier, monospace;
  padding: 30px;
}

.w95-bsod.hidden {
  display: none !important;
}

.bsod95-content {
  max-width: 650px;
  line-height: 1.6;
  font-size: 14px;
}

.bsod95-title {
  display: inline-block;
  background: #c0c0c0;
  color: #0000aa;
  font-weight: bold;
  padding: 2px 14px;
  margin-bottom: 20px;
  font-size: 16px;
}

.bsod95-prompt {
  margin-top: 24px;
  font-weight: bold;
}

.blink-cursor {
  animation: w95Blink 0.8s infinite;
}

@keyframes w95Blink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

.bsod-reboot-btn {
  margin-top: 20px;
  background: #c0c0c0;
  color: #000000;
  font-weight: bold;
  padding: 8px 18px;
  font-size: 13px;
}

/* ============================
   Illegal Operation Dialog
   ============================ */
.w95-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.35);
  z-index: 15000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.w95-modal-backdrop.hidden {
  display: none !important;
}

.w95-error-box {
  width: 90%;
  max-width: 440px;
  background: #c0c0c0;
  border: 2px solid;
  border-color: #ffffff #808080 #808080 #ffffff;
  box-shadow: inset 1px 1px 0 #dfdfdf, inset -1px -1px 0 #000000, 4px 4px 12px rgba(0,0,0,0.5);
  font-size: 11px;
}

.w95-error-body {
  padding: 16px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.w95-err-icon {
  font-size: 2.2rem;
}

.w95-err-msg p {
  margin-top: 6px;
  color: #333333;
}

.w95-error-actions {
  background: #c0c0c0;
  padding: 10px 14px;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  border-top: 1px solid #dfdfdf;
}

/* ============================
   File Explorer, Recycle, IE, Notepad
   ============================ */
.w95-folder-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(85px, 1fr));
  gap: 12px;
  padding: 8px;
}

.w95-f-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 6px;
  cursor: pointer;
  text-align: center;
  border: 1px dotted transparent;
}

.w95-f-item:hover {
  border-color: #000080;
  background: rgba(0,0,128,0.12);
}

.w95-f-icon {
  font-size: 2.2rem;
  margin-bottom: 3px;
}

.w95-recycle-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.w95-trash-list {
  border: 2px solid;
  border-color: #808080 #ffffff #ffffff #808080;
  background: #ffffff;
  padding: 6px;
  min-height: 160px;
  max-height: 220px;
  overflow-y: auto;
}

.w95-trash-row {
  display: flex;
  justify-content: space-between;
  padding: 4px 6px;
  font-size: 11px;
  border-bottom: 1px solid #eee;
}

.w95-empty-msg {
  padding: 14px;
  color: #808080;
  text-align: center;
}

.w95-notepad-textarea {
  width: 100%;
  height: calc(100% - 24px);
  border: 2px solid;
  border-color: #808080 #ffffff #ffffff #808080;
  background: #ffffff;
  color: #000000;
  font-family: "Lucida Console", Courier, monospace;
  font-size: 12px;
  padding: 8px;
  resize: none;
  outline: none;
}

.ie95-address-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  background: #c0c0c0;
  border-bottom: 1px solid #808080;
  font-size: 11px;
}

.w95-input {
  flex: 1;
  border: 2px solid;
  border-color: #808080 #ffffff #ffffff #808080;
  background: #ffffff;
  padding: 2px 6px;
  font-family: inherit;
  font-size: 11px;
}

.ie95-body {
  gap: 12px;
}

.ie95-card {
  background: #ffffff;
  border: 2px solid;
  border-color: #808080 #ffffff #ffffff #808080;
  padding: 12px;
}

.ie95-card h3 {
  margin-bottom: 6px;
  color: #000080;
}

.ie95-card p {
  margin-bottom: 10px;
  color: #333333;
}

.ie95-prog-bar {
  width: 100%;
  height: 16px;
  border: 2px solid;
  border-color: #808080 #ffffff #ffffff #808080;
  background: #c0c0c0;
  margin-top: 8px;
  overflow: hidden;
}

.ie95-prog-bar.hidden {
  display: none !important;
}

.ie95-prog-fill {
  height: 100%;
  background: #000080;
  width: 0%;
  transition: width 0.2s;
}

/* ============================
   Task Manager & Control Panel
   ============================ */
.w95-taskmgr-body {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.w95-task-list {
  border: 2px solid;
  border-color: #808080 #ffffff #ffffff #808080;
  background: #ffffff;
  min-height: 180px;
  max-height: 220px;
  overflow-y: auto;
  padding: 4px;
}

.w95-proc-item {
  padding: 4px 8px;
  cursor: pointer;
  user-select: none;
  font-size: 11px;
}

.w95-proc-item.selected {
  background: #000080;
  color: #ffffff;
}

.w95-task-actions {
  display: flex;
  justify-content: flex-end;
  gap: 6px;
  margin-top: 6px;
}

.w95-cp-widget {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #ffffff;
  border: 2px solid;
  border-color: #808080 #ffffff #ffffff #808080;
  padding: 12px;
  margin-bottom: 12px;
}

.w95-fan-icon {
  font-size: 2.5rem;
  animation: w95FanSpin 0.6s linear infinite;
}

@keyframes w95FanSpin {
  100% { transform: rotate(360deg); }
}

.w95-cp-buttons {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* ============================
   Mini-Games in Windows 95 Frames
   ============================ */
.w95-game-hud {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 8px;
  background: #c0c0c0;
  border-top: 1px solid #808080;
  font-size: 11px;
  margin-top: 4px;
}

.garage95-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 20px;
  background: #1a1a2e;
  height: 100%;
}

.garage95-car {
  font-size: 5.5rem;
  filter: drop-shadow(0 8px 16px rgba(0,0,0,0.6));
  animation: w95CarIdle 2s infinite ease-in-out;
}

@keyframes w95CarIdle {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.garage95-buttons {
  display: flex;
  gap: 10px;
}

.paint95-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 6px;
}

.paint95-tools {
  display: flex;
  align-items: center;
  gap: 6px;
}

.paint-color-btn {
  width: 22px;
  height: 22px;
  border: 2px solid #808080;
  cursor: pointer;
}

.paint-color-btn.active {
  outline: 2px solid #000000;
  transform: scale(1.15);
}

#paint-win-canvas {
  border: 2px solid;
  border-color: #808080 #ffffff #ffffff #808080;
  background: #ffffff;
  cursor: crosshair;
}

.snake-dpad {
  display: flex;
  gap: 3px;
}

.ttt95-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 10px;
}

.ttt95-status {
  font-weight: bold;
  font-size: 12px;
  color: #000080;
}

.ttt95-grid {
  display: grid;
  grid-template-columns: repeat(3, 70px);
  grid-template-rows: repeat(3, 70px);
  gap: 6px;
  border: 2px solid;
  border-color: #808080 #ffffff #ffffff #808080;
  background: #c0c0c0;
  padding: 6px;
}

.ttt95-cell {
  background: #c0c0c0;
  border: 2px solid;
  border-color: #ffffff #808080 #808080 #ffffff;
  box-shadow: inset 1px 1px 0 #dfdfdf, inset -1px -1px 0 #000000;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: bold;
  cursor: pointer;
}

.ttt95-cell.x-cell { color: #000080; }
.ttt95-cell.o-cell { color: #ff0000; }

.mem95-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 10px;
}

.mem95-hud {
  font-size: 12px;
  font-weight: bold;
}

.mem95-grid {
  display: grid;
  grid-template-columns: repeat(4, 70px);
  grid-template-rows: repeat(2, 70px);
  gap: 8px;
  border: 2px solid;
  border-color: #808080 #ffffff #ffffff #808080;
  padding: 6px;
  background: #c0c0c0;
}

.mem95-card {
  background: #c0c0c0;
  border: 2px solid;
  border-color: #ffffff #808080 #808080 #ffffff;
  box-shadow: inset 1px 1px 0 #dfdfdf, inset -1px -1px 0 #000000;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  cursor: pointer;
  user-select: none;
}

.mem95-card .mem95-front {
  display: block;
  font-weight: bold;
  color: #808080;
}

.mem95-card .mem95-back {
  display: none;
}

.mem95-card.flipped .mem95-front, .mem95-card.matched .mem95-front {
  display: none;
}

.mem95-card.flipped .mem95-back, .mem95-card.matched .mem95-back {
  display: block;
}

.mem95-card.matched {
  border-color: #808080 #ffffff #ffffff #808080;
  background: #dfdfdf;
}

/* ==============================================
   MULTI-OS SWITCHER & THEMES
   (Windows 95, Windows XP, Windows 11, Apple macOS, Ubuntu Linux)
   ============================================== */

/* Floating OS Switcher Quick Bar */
.os-quick-bar {
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(16px);
  padding: 4px 12px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  z-index: 5000;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.6);
  user-select: none;
}

.os-bar-label {
  color: #94a3b8;
  font-weight: 800;
  font-size: 11px;
  margin-right: 4px;
}

.os-pill-btn {
  padding: 4px 11px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.os-pill-btn:hover {
  background: rgba(255, 255, 255, 0.22);
  transform: translateY(-1px);
}

.os-pill-btn.active {
  background: linear-gradient(135deg, #00f2fe, #4facfe);
  color: #000000;
  border-color: #00f2fe;
  box-shadow: 0 0 12px rgba(0, 242, 254, 0.7);
}

/* ==============================================
   WINDOWS 95 RETRO THEME & CRT SCANLINES
   ============================================== */
.win95-crt-scanlines {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.28) 50%),
              linear-gradient(90deg, rgba(255, 0, 0, 0.04), rgba(0, 255, 0, 0.02), rgba(0, 0, 255, 0.04));
  background-size: 100% 3px, 6px 100%;
  z-index: 9998;
}

.w95-tray-crt {
  cursor: pointer;
  padding: 1px 4px;
  border-radius: 2px;
  font-size: 13px;
}

.w95-tray-crt:hover {
  background: rgba(0, 0, 0, 0.2);
}

/* ==============================================
   WINDOWS XP THEME (LUNA BLUE & DUAL-COLUMN START)
   ============================================== */
.win95-root.os-winxp .win95-desktop {
  background: linear-gradient(180deg, #1668c2 0%, #3ca0ec 38%, #85c8f8 50%, #4da539 52%, #388a2e 72%, #2a6f22 100%) !important;
}

.win95-root.os-winxp .win95-taskbar {
  background: linear-gradient(180deg, #3886ea 0%, #245edb 10%, #1941a5 50%, #1952c4 100%) !important;
  border-top: 2px solid #5aa5ff !important;
  box-shadow: 0 -2px 10px rgba(36, 94, 219, 0.5) !important;
}

.win95-root.os-winxp .w95-start-btn {
  background: linear-gradient(180deg, #60b644 0%, #3e8d24 50%, #2b6d16 100%) !important;
  border: 2px solid #3e8d24 !important;
  border-radius: 0 14px 14px 0 !important;
  color: #ffffff !important;
  text-shadow: 1px 1px 2px #000 !important;
  font-style: italic !important;
  font-size: 13px !important;
  box-shadow: 2px 2px 6px rgba(0,0,0,0.4) !important;
}

.win95-root.os-winxp .w95-systray {
  background: #0f3885 !important;
  border: 1px solid #0b2861 !important;
  color: #ffffff !important;
}

.win95-root.os-winxp .w95-title-bar {
  background: linear-gradient(90deg, #0058ee 0%, #3593ff 50%, #0058ee 100%) !important;
  border-radius: 6px 6px 0 0 !important;
}

.win95-root.os-winxp .w95-btn-close {
  background: linear-gradient(180deg, #f05040 0%, #c82010 100%) !important;
  border: 1px solid #ffffff !important;
  color: #ffffff !important;
  border-radius: 3px !important;
  font-weight: bold !important;
}

.win95-root.os-winxp .w95-btn-min,
.win95-root.os-winxp .w95-btn-max {
  background: linear-gradient(180deg, #3886ea 0%, #1941a5 100%) !important;
  border: 1px solid #ffffff !important;
  color: #ffffff !important;
  border-radius: 3px !important;
}

/* Windows XP Dual-Column Start Menu */
.xp-start-menu {
  position: absolute;
  bottom: 36px;
  left: 0;
  width: 380px;
  background: #245edb;
  border-radius: 8px 8px 0 0;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  z-index: 10000;
  overflow: hidden;
  font-family: "Segoe UI", Tahoma, sans-serif;
  color: #000000;
  border: 1px solid #1642a8;
  display: flex;
  flex-direction: column;
}

body.is-rtl .xp-start-menu {
  left: auto;
  right: 0;
}

.xp-menu-header {
  background: linear-gradient(180deg, #245edb 0%, #1742a7 100%);
  padding: 8px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #ffffff;
}

.xp-user-avatar {
  width: 44px;
  height: 44px;
  background: #ffffff;
  border: 2px solid #ffcc00;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.4);
}

.xp-user-name {
  font-weight: bold;
  font-size: 15px;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
}

.xp-menu-columns {
  display: flex;
  min-height: 320px;
  border-top: 1px solid #ffcc00;
}

.xp-col-left {
  flex: 1.1;
  background: #ffffff;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.xp-col-right {
  flex: 0.9;
  background: #d3e5fa;
  border-left: 1px solid #9bbfe6;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

body.is-rtl .xp-col-right {
  border-left: none;
  border-right: 1px solid #9bbfe6;
}

.xp-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 8px;
  border-radius: 3px;
  cursor: pointer;
  font-size: 11.5px;
  transition: background 0.1s;
}

.xp-item:hover {
  background: #2f71f6;
  color: #ffffff !important;
}

.xp-item:hover small {
  color: #e0e8ff !important;
}

.xp-item-icon {
  font-size: 20px;
}

.xp-item-text {
  display: flex;
  flex-direction: column;
}

.xp-item-text small {
  font-size: 10px;
  color: #666;
}

.xp-sep {
  height: 1px;
  background: #ddd;
  margin: 4px 0;
}

.xp-col-right .xp-sep {
  background: #a8caea;
}

.xp-all-programs {
  margin-top: auto;
  border-top: 1px solid #eee;
  padding: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-weight: bold;
  font-size: 12px;
}

.xp-all-programs:hover {
  background: #2f71f6;
  color: #fff;
}

.xp-menu-footer {
  background: linear-gradient(180deg, #3d89ec 0%, #205ac7 100%);
  padding: 8px 14px;
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  border-top: 1px solid #1642a8;
}

.xp-footer-btn {
  background: transparent;
  border: none;
  color: #ffffff;
  font-weight: bold;
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 3px;
}

.xp-footer-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* ==============================================
   WINDOWS 11 THEME (FLUENT DARK ACRYLIC & BLOOM)
   ============================================== */
.win95-root.os-win11 .win95-desktop {
  background: radial-gradient(circle at 50% 65%, #2563eb 0%, #1e1b4b 45%, #020617 100%) !important;
}

.win95-root.os-win11 .win95-taskbar {
  background: rgba(15, 23, 42, 0.82) !important;
  backdrop-filter: blur(28px) !important;
  border-top: 1px solid rgba(255, 255, 255, 0.14) !important;
  justify-content: center !important;
  gap: 12px;
}

.win95-root.os-win11 .w95-start-btn {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  color: #38bdf8 !important;
  font-size: 1.25rem !important;
  border-radius: 8px !important;
  padding: 4px 10px !important;
}

.win95-root.os-win11 .w95-start-btn:hover {
  background: rgba(255, 255, 255, 0.12) !important;
}

.win95-root.os-win11 .w95-taskbar-tab {
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 6px !important;
  color: #f1f5f9 !important;
  box-shadow: none !important;
}

.win95-root.os-win11 .w95-taskbar-tab.tab-sunken {
  background: rgba(56, 189, 248, 0.22) !important;
  border-color: #38bdf8 !important;
  color: #38bdf8 !important;
}

.win95-root.os-win11 .w95-window {
  border-radius: 12px !important;
  background: rgba(30, 41, 59, 0.94) !important;
  backdrop-filter: blur(35px) !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  box-shadow: 0 20px 55px rgba(0, 0, 0, 0.75) !important;
  color: #f1f5f9 !important;
}

.win95-root.os-win11 .w95-title-bar {
  background: rgba(15, 23, 42, 0.96) !important;
  color: #f1f5f9 !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

.win95-root.os-win11 .w95-btn-title {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  color: #94a3b8 !important;
  font-size: 12px !important;
  border-radius: 4px !important;
}

.win95-root.os-win11 .w95-btn-close:hover {
  background: #ef4444 !important;
  color: #ffffff !important;
}

/* Windows 11 Centered Start Menu */
.w11-start-menu {
  position: absolute;
  bottom: 48px;
  left: 50%;
  transform: translateX(-50%);
  width: 520px;
  background: rgba(30, 41, 59, 0.92);
  backdrop-filter: blur(35px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 16px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8);
  padding: 20px;
  z-index: 10000;
  color: #f1f5f9;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.w11-search-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  padding: 8px 14px;
}

.w11-search-bar input {
  background: transparent;
  border: none;
  color: #ffffff;
  width: 100%;
  outline: none;
  font-size: 13px;
}

.w11-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: bold;
  font-size: 12px;
  color: #94a3b8;
}

.w11-all-apps-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #f1f5f9;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  cursor: pointer;
}

.w11-pinned-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
}

.w11-app-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 8px 4px;
  border-radius: 8px;
  cursor: pointer;
  text-align: center;
  font-size: 11px;
  transition: all 0.15s;
}

.w11-app-cell:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-2px);
}

.w11-cell-icon {
  font-size: 26px;
}

.w11-recommended-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.w11-rec-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 10px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 12px;
}

.w11-rec-row:hover {
  background: rgba(255, 255, 255, 0.1);
}

.w11-rec-row small {
  display: block;
  font-size: 10px;
  color: #94a3b8;
}

.w11-menu-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 10px;
}

.w11-user-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
}

.w11-user-pill:hover {
  background: rgba(255, 255, 255, 0.1);
}

.w11-user-avatar {
  font-size: 22px;
}

.w11-power-btn {
  background: transparent;
  border: none;
  font-size: 18px;
  color: #f1f5f9;
  cursor: pointer;
  padding: 6px 10px;
  border-radius: 6px;
}

.w11-power-btn:hover {
  background: rgba(239, 68, 68, 0.3);
  color: #ef4444;
}

/* Windows 11 Quick Settings Panel */
.w11-quick-settings {
  position: absolute;
  bottom: 44px;
  right: 12px;
  width: 320px;
  background: rgba(30, 41, 59, 0.95);
  backdrop-filter: blur(30px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 14px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7);
  padding: 16px;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 12px;
  color: #ffffff;
}

body.is-rtl .w11-quick-settings {
  right: auto;
  left: 12px;
}

.w11-qs-toggles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.w11-qs-tile {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 10px 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: #fff;
  cursor: pointer;
  font-size: 11px;
}

.w11-qs-tile.active {
  background: #0078d4;
  border-color: #0078d4;
}

.w11-qs-slider-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
}

.w11-slider {
  flex: 1;
  accent-color: #0078d4;
}

.w11-qs-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 8px;
  font-size: 11px;
  color: #94a3b8;
}

.w11-qs-btn {
  background: transparent;
  border: none;
  color: #fff;
  cursor: pointer;
  font-size: 14px;
}

/* ==============================================
   APPLE macOS THEME (GLASS DOCK, CC & TRAFFIC LIGHTS)
   ============================================== */
.win95-root.os-macos .win95-desktop {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 35%, #4facfe 70%, #00f2fe 100%) !important;
}

/* macOS Floating Frosted Dock */
.mac-dock {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: flex-end;
  gap: 8px;
  background: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(35px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 22px;
  padding: 6px 14px;
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.55);
  z-index: 1000;
  user-select: none;
}

.mac-dock-item {
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.15s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.mac-dock-item:hover {
  transform: translateY(-8px) scale(1.15);
}

.mac-dock-item .dock-icon {
  font-size: 28px;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

.mac-dock-item .dock-dot {
  position: absolute;
  bottom: -4px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  display: none;
}

.mac-dock-item.is-running .dock-dot {
  display: block;
  box-shadow: 0 0 6px #ffffff;
}

.mac-dock-item.dock-bounce {
  animation: macDockBounce 0.5s ease;
}

@keyframes macDockBounce {
  0%, 100% { transform: translateY(0); }
  40% { transform: translateY(-20px); }
  60% { transform: translateY(-8px); }
}

.mac-dock-sep {
  width: 1px;
  height: 32px;
  background: rgba(255, 255, 255, 0.3);
  margin: 0 4px;
  align-self: center;
}

/* macOS Control Center */
.mac-control-center {
  position: absolute;
  top: 36px;
  right: 14px;
  width: 290px;
  background: rgba(40, 44, 60, 0.85);
  backdrop-filter: blur(35px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
  padding: 14px;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  color: #ffffff;
}

.mac-cc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.mac-cc-card {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 8px 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  cursor: pointer;
}

.mac-cc-card.active {
  background: #007aff;
}

.mac-cc-slider-card {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 8px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 11px;
}

.mac-cc-slider {
  accent-color: #007aff;
}

.win95-root.os-macos .w95-window {
  border-radius: 12px !important;
  background: rgba(24, 27, 40, 0.94) !important;
  backdrop-filter: blur(35px) !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.75) !important;
  color: #ffffff !important;
}

.win95-root.os-macos .w95-title-bar {
  background: rgba(35, 38, 54, 0.96) !important;
  color: #ffffff !important;
  flex-direction: row-reverse !important;
}

.win95-root.os-macos .w95-title-buttons {
  flex-direction: row-reverse !important;
  gap: 6px !important;
}

.win95-root.os-macos .w95-btn-close {
  background: #ff5f56 !important;
  border: none !important;
  border-radius: 50% !important;
  width: 13px !important;
  height: 13px !important;
  font-size: 0 !important;
}

.win95-root.os-macos .w95-btn-close:hover::after {
  content: '✕';
  font-size: 9px;
  color: #4a0000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.win95-root.os-macos .w95-btn-min {
  background: #ffbd2e !important;
  border: none !important;
  border-radius: 50% !important;
  width: 13px !important;
  height: 13px !important;
  font-size: 0 !important;
}

.win95-root.os-macos .w95-btn-min:hover::after {
  content: '−';
  font-size: 10px;
  color: #5a3800;
  display: flex;
  align-items: center;
  justify-content: center;
}

.win95-root.os-macos .w95-btn-max {
  background: #27c93f !important;
  border: none !important;
  border-radius: 50% !important;
  width: 13px !important;
  height: 13px !important;
  font-size: 0 !important;
}

.win95-root.os-macos .w95-btn-max:hover::after {
  content: '+';
  font-size: 10px;
  color: #004510;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ==============================================
   DEBIAN GNU/LINUX 12 (BOOKWORM) THEME
   ============================================== */
.win95-root.os-linux .win95-desktop {
  background: radial-gradient(circle at 85% 15%, rgba(215, 10, 83, 0.28) 0%, transparent 45%),
              radial-gradient(circle at 15% 85%, rgba(22, 42, 77, 0.45) 0%, transparent 55%),
              linear-gradient(135deg, #0b162c 0%, #162a4d 40%, #1b1329 75%, #080d1a 100%) !important;
}

/* Debian Linux Top Panel */
.linux-top-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 28px;
  background: #0d1527;
  color: #dfdfdf;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 12px;
  z-index: 1000;
  border-bottom: 1px solid rgba(215, 10, 83, 0.35);
}

.linux-activities-btn {
  background: transparent;
  border: none;
  color: #ffffff;
  font-weight: bold;
  font-size: 12px;
  cursor: pointer;
  padding: 2px 8px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.linux-activities-btn:hover {
  background: rgba(215, 10, 83, 0.25);
}

.linux-top-right {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
}

.linux-power-icon {
  cursor: pointer;
  color: #d70a53;
}

/* ==============================================
   DEBIAN LINUX BOTTOM CENTERED DOCK
   ============================================== */
.linux-dock {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  top: auto;
  right: auto;
  width: auto;
  height: 56px;
  background: rgba(11, 22, 44, 0.94);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(215, 10, 83, 0.4);
  border-radius: 18px;
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.65), 0 0 20px rgba(215, 10, 83, 0.25);
  display: flex;
  flex-direction: row;
  align-items: center;
  padding: 0 12px;
  gap: 8px;
  z-index: 999;
}

body.is-rtl .linux-dock {
  left: 50%;
  right: auto;
  transform: translateX(-50%);
  border: 1px solid rgba(215, 10, 83, 0.4);
}

.linux-dock-item {
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.linux-dock-item:hover {
  background: rgba(215, 10, 83, 0.28);
  transform: translateY(-5px) scale(1.12);
}

.linux-dock-icon {
  font-size: 24px;
  line-height: 1;
}

.linux-dock-item .linux-dot {
  position: absolute;
  bottom: 2px;
  left: 50%;
  top: auto;
  right: auto;
  transform: translateX(-50%);
  width: 14px;
  height: 3px;
  border-radius: 2px;
  background: #d70a53;
  box-shadow: 0 0 8px #d70a53;
  display: none;
}

body.is-rtl .linux-dock-item .linux-dot {
  left: 50%;
  right: auto;
  transform: translateX(-50%);
}

.linux-dock-item.is-running .linux-dot {
  display: block;
}

.linux-dock-spacer {
  width: 1px;
  height: 26px;
  background: rgba(255, 255, 255, 0.2);
  margin: 0 4px;
  flex: none;
}

.win95-root.os-linux .win95-icons {
  max-height: calc(100vh - 90px);
}

/* Debian Linux Fullscreen Activities Grid Overlay */
.linux-activities-overlay {
  position: absolute;
  top: 28px;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(11, 22, 44, 0.88);
  backdrop-filter: blur(35px);
  z-index: 5000;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 40px 20px;
  gap: 30px;
  color: #ffffff;
  animation: fadeIn 0.2s ease-out;
}

.linux-act-search input {
  width: 380px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(215, 10, 83, 0.4);
  border-radius: 24px;
  padding: 10px 20px;
  color: #ffffff;
  font-size: 14px;
  outline: none;
  text-align: center;
}

.linux-act-search input:focus {
  border-color: #d70a53;
  box-shadow: 0 0 12px rgba(215, 10, 83, 0.45);
}

.linux-act-grid {
  display: grid;
  grid-template-columns: repeat(5, 110px);
  gap: 20px;
}

.linux-act-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 14px 8px;
  border-radius: 12px;
  cursor: pointer;
  text-align: center;
  font-size: 12px;
  transition: all 0.15s;
}

.linux-act-card:hover {
  background: rgba(215, 10, 83, 0.25);
  transform: translateY(-4px);
}

.act-card-icon {
  font-size: 34px;
}

.win95-root.os-linux .w95-window {
  background: #0f172a !important;
  border: 1px solid rgba(215, 10, 83, 0.5) !important;
  border-radius: 8px !important;
  color: #ffffff !important;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.6), 0 0 15px rgba(215, 10, 83, 0.2) !important;
}

.win95-root.os-linux .w95-title-bar {
  background: linear-gradient(90deg, #1b2844 0%, #0b162c 100%) !important;
  border-bottom: 1px solid #d70a53 !important;
  color: #ffffff !important;
}

/* ==============================================
   TERMINAL WINDOW STYLES
   ============================================== */
.term-quick-bar {
  padding: 6px 10px;
  background: #161b22;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
}

.term-q-btn {
  font-size: 10px;
  padding: 2px 7px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #00f2fe;
  border-radius: 3px;
  cursor: pointer;
}

.term-q-btn:hover {
  background: rgba(0, 242, 254, 0.25);
}

.term-q-btn.term-danger {
  color: #ff4757;
  border-color: #ff4757;
}

.term-screen-body {
  flex: 1;
  background: #0c1017;
  color: #f1f2f6;
  font-family: "Lucida Console", "Courier New", Courier, monospace;
  font-size: 11px;
  padding: 10px;
  overflow-y: auto;
  line-height: 1.5;
}

.term-line {
  margin-bottom: 3px;
}

.term-prompt {
  color: #00e676;
  font-weight: bold;
}

.term-user-cmd {
  color: #ffffff;
  font-weight: bold;
}

.term-neofetch {
  color: #00f2fe;
  font-size: 10.5px;
  white-space: pre-wrap;
  background: rgba(0, 0, 0, 0.4);
  padding: 6px;
  border-radius: 4px;
}

.term-success {
  color: #00e676;
}

.term-error {
  color: #ff4757;
}

.term-warn {
  color: #ffa502;
}

.term-input-row {
  display: flex;
  align-items: center;
  padding: 6px 10px;
  background: #161b22;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-family: "Lucida Console", "Courier New", Courier, monospace;
}

.term-input {
  flex: 1;
  background: transparent;
  border: none;
  color: #ffffff;
  font-family: inherit;
  font-size: 11px;
  outline: none;
}

/* ==============================================
   OS BOOT SEQUENCE & LOADING SCREENS
   (Win 95, Win XP, Win 11, Apple macOS, Linux Ubuntu)
   ============================================== */
.os-boot-overlay {
  position: absolute;
  inset: 0;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  user-select: none;
  transition: opacity 0.45s cubic-bezier(0.4, 0, 0.2, 1), transform 0.45s ease;
  overflow: hidden;
}

.os-boot-overlay.hidden {
  display: none !important;
}

.os-boot-overlay.boot-fade-out {
  opacity: 0;
  pointer-events: none;
  transform: scale(1.03);
}

.boot-content-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.boot-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  animation: bootBoxIn 0.3s ease-out;
}

@keyframes bootBoxIn {
  from { opacity: 0; transform: scale(0.97); }
  to { opacity: 1; transform: scale(1); }
}

/* 1. Windows 95 Boot Style */
.os-boot-overlay.boot-win95 {
  background: #000000;
  color: #ffffff;
}

.boot-win95 .w95-boot-logo {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 50px;
}

.boot-win95 .w95-flag-box {
  display: grid;
  grid-template-columns: 24px 24px;
  grid-template-rows: 24px 24px;
  gap: 3px;
  transform: rotate(-6deg) skew(-5deg);
  filter: drop-shadow(0 0 10px rgba(255,255,255,0.4));
}

.boot-win95 .w95-f-r { background: #ff3333; }
.boot-win95 .w95-f-g { background: #33cc33; }
.boot-win95 .w95-f-b { background: #3366ff; }
.boot-win95 .w95-f-y { background: #ffcc00; }

.boot-win95 .w95-boot-brand {
  text-align: left;
}

.boot-win95 .w95-boot-sub {
  font-family: Arial, sans-serif;
  font-size: 14px;
  color: #cccccc;
  letter-spacing: 1px;
}

.boot-win95 .w95-boot-main {
  font-family: "Times New Roman", Times, serif;
  font-size: 3rem;
  font-weight: bold;
  font-style: italic;
  line-height: 1;
  color: #ffffff;
}

.boot-win95 .w95-boot-main span {
  font-family: Arial, sans-serif;
  font-style: normal;
  font-weight: 800;
  font-size: 3.2rem;
  margin-left: 6px;
  color: #008080;
  text-shadow: 2px 2px 0 #ffffff;
}

.boot-win95 .w95-boot-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.boot-win95 .w95-boot-track {
  width: 260px;
  height: 18px;
  border: 2px solid #808080;
  background: #111111;
  position: relative;
  overflow: hidden;
  box-shadow: inset 1px 1px 2px #000;
}

.boot-win95 .w95-boot-glow {
  position: absolute;
  top: 0;
  left: 0;
  width: 80px;
  height: 100%;
  background: linear-gradient(90deg, transparent, #0080ff, #00f2fe, #ffffff, #0080ff, transparent);
  animation: w95GlowScan 1.2s linear infinite;
}

@keyframes w95GlowScan {
  0% { transform: translateX(-90px); }
  100% { transform: translateX(270px); }
}

.boot-win95 .w95-boot-status {
  font-family: "Lucida Console", "Courier New", monospace;
  font-size: 13px;
  color: #a0a0a0;
  letter-spacing: 0.5px;
}

/* 2. Windows XP Boot Style */
.os-boot-overlay.boot-winxp {
  background: #000000;
  color: #ffffff;
}

.boot-winxp .xp-boot-logo {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 45px;
}

.boot-winxp .xp-flag-icon {
  font-size: 3.2rem;
  filter: drop-shadow(0 2px 8px rgba(0, 102, 255, 0.4));
}

.boot-winxp .xp-boot-brand {
  text-align: left;
}

.boot-winxp .xp-boot-sub {
  font-family: Arial, sans-serif;
  font-size: 13px;
  color: #999999;
  letter-spacing: 0.5px;
}

.boot-winxp .xp-boot-main {
  font-family: 'Segoe UI', Arial, sans-serif;
  font-size: 2.8rem;
  font-weight: bold;
  letter-spacing: -1px;
  color: #ffffff;
}

.boot-winxp .xp-boot-main span {
  font-size: 2.9rem;
  color: #ff8c00;
  margin-left: 5px;
  font-weight: 800;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.8);
}

.boot-winxp .xp-boot-track {
  width: 170px;
  height: 15px;
  border: 2px solid #333333;
  border-radius: 6px;
  background: #0a0a0a;
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.8);
}

.boot-winxp .xp-boot-slider {
  position: absolute;
  top: 1px;
  left: -50px;
  display: flex;
  gap: 4px;
  animation: xpMarquee 1.3s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

.boot-winxp .xp-boot-slider span {
  width: 11px;
  height: 9px;
  border-radius: 2px;
  background: linear-gradient(180deg, #60a5fa 0%, #2563eb 60%, #1d4ed8 100%);
  box-shadow: 0 0 6px #3b82f6;
}

@keyframes xpMarquee {
  0% { left: -50px; }
  100% { left: 180px; }
}

.boot-winxp .xp-boot-copy {
  font-size: 11px;
  color: #666666;
  margin-top: 45px;
  font-family: Arial, sans-serif;
}

/* 3. Windows 11 Boot Style */
.os-boot-overlay.boot-win11 {
  background: #000000;
  color: #ffffff;
}

.boot-win11 .w11-boot-logo {
  margin-bottom: 40px;
}

.boot-win11 .w11-logo-grid {
  display: grid;
  grid-template-columns: 24px 24px;
  grid-template-rows: 24px 24px;
  gap: 4px;
}

.boot-win11 .w11-logo-grid span {
  background: #00a4ef;
  border-radius: 2px;
  box-shadow: 0 0 10px rgba(0, 164, 239, 0.35);
}

.boot-win11 .w11-boot-spinner {
  margin-top: 20px;
}

.boot-win11 .w11-spinner-ring {
  width: 38px;
  height: 38px;
  border: 3px solid rgba(255, 255, 255, 0.12);
  border-top-color: #38bdf8;
  border-radius: 50%;
  animation: w11Spin 0.9s linear infinite;
}

@keyframes w11Spin {
  100% { transform: rotate(360deg); }
}

.boot-win11 .w11-boot-name {
  font-size: 14px;
  color: #94a3b8;
  letter-spacing: 1px;
  margin-top: 18px;
  font-family: 'Segoe UI', sans-serif;
}

/* 4. Apple macOS Boot Style */
.os-boot-overlay.boot-macos {
  background: #000000;
  color: #ffffff;
}

.boot-macos .mac-boot-apple {
  font-size: 4.5rem;
  margin-bottom: 45px;
  filter: drop-shadow(0 4px 15px rgba(255, 255, 255, 0.25));
}

.boot-macos .mac-boot-track {
  width: 190px;
  height: 5px;
  background: #333336;
  border-radius: 4px;
  overflow: hidden;
}

.boot-macos .mac-boot-fill {
  height: 100%;
  width: 0%;
  background: #ffffff;
  border-radius: 4px;
  animation: macProgress 1.9s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

@keyframes macProgress {
  0% { width: 0%; }
  35% { width: 45%; }
  75% { width: 85%; }
  100% { width: 100%; }
}

/* 5. Ubuntu Linux Boot Style */
.os-boot-overlay.boot-linux {
  background: #2c001e;
  color: #ffffff;
}

.boot-linux .linux-boot-icon {
  font-size: 3.5rem;
  margin-bottom: 10px;
}

.boot-linux .linux-boot-ubuntu {
  font-size: 2.2rem;
  font-weight: 300;
  font-family: 'Ubuntu', Arial, sans-serif;
  color: #ffffff;
  letter-spacing: 2px;
}

.boot-linux .linux-boot-dots {
  display: flex;
  gap: 8px;
  margin-top: 30px;
}

.boot-linux .linux-boot-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #e95420;
  animation: linuxDotPulse 1.2s infinite ease-in-out;
}

.boot-linux .linux-boot-dots span:nth-child(2) { animation-delay: 0.18s; }
.boot-linux .linux-boot-dots span:nth-child(3) { animation-delay: 0.36s; }
.boot-linux .linux-boot-dots span:nth-child(4) { animation-delay: 0.54s; }
.boot-linux .linux-boot-dots span:nth-child(5) { animation-delay: 0.72s; }

@keyframes linuxDotPulse {
  0%, 100% { transform: scale(0.6); opacity: 0.25; }
  50% { transform: scale(1.25); opacity: 1; box-shadow: 0 0 8px #e95420; }
}

.boot-linux .linux-boot-log {
  font-size: 11px;
  font-family: "Lucida Console", "Courier New", monospace;
  color: #a4b0be;
  margin-top: 25px;
}

/* Skip Boot Button */
.boot-skip-btn {
  position: absolute;
  bottom: 22px;
  right: 22px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  backdrop-filter: blur(8px);
  z-index: 10000;
}

.boot-skip-btn:hover {
  background: rgba(255, 255, 255, 0.28);
  transform: translateY(-1px);
}

/* ==============================================
   AUTHENTIC OS CURSORS (Pixel, XP 3D, Fluent, Mac, Linux)
   ============================================== */

/* 1. Windows 95 Retro Pixel Cursor */
.win95-root.os-win95,
.win95-root.os-win95 * {
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='24' viewBox='0 0 16 24'%3E%3Cpolygon points='0,0 0,17 4,13 7,20 9,19 6,12 11,12' fill='%23ffffff' stroke='%23000000' stroke-width='1.2' stroke-linejoin='miter' shape-rendering='crispEdges'/%3E%3C/svg%3E") 0 0, default !important;
}
.win95-root.os-win95 button,
.win95-root.os-win95 a,
.win95-root.os-win95 .w95-icon,
.win95-root.os-win95 .w95-btn-title,
.win95-root.os-win95 .w95-menu-item,
.win95-root.os-win95 .w95-bevel-btn,
.win95-root.os-win95 .ms-cell,
.win95-root.os-win95 .ttt95-cell,
.win95-root.os-win95 .mem95-card {
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='24' viewBox='0 0 20 24'%3E%3Cpath d='M6,2 L8,2 L8,9 L10,9 L10,11 L12,11 L12,13 L14,13 L14,19 L6,19 L4,15 L1,12 L3,10 L6,13 Z' fill='%23ffffff' stroke='%23000000' stroke-width='1.2' shape-rendering='crispEdges'/%3E%3C/svg%3E") 6 2, pointer !important;
}
.win95-root.os-win95.is-busy,
.win95-root.os-win95.is-busy * {
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='24' viewBox='0 0 18 24'%3E%3Cpolygon points='1,2 17,2 10,12 17,22 1,22 8,12' fill='%23ffffff' stroke='%23000000' stroke-width='1.5'/%3E%3Cpolygon points='4,4 14,4 9,10' fill='%23008080'/%3E%3Cpolygon points='4,20 14,20 9,14' fill='%23008080'/%3E%3C/svg%3E") 9 12, wait !important;
}

/* 2. Windows XP 3D Shadowed Cursor */
.win95-root.os-winxp,
.win95-root.os-winxp * {
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='28' viewBox='0 0 24 28'%3E%3Cdefs%3E%3Cfilter id='xpshadow' x='-20%25' y='-20%25' width='150%25' height='150%25'%3E%3CfeDropShadow dx='1.5' dy='1.5' stdDeviation='1.2' flood-color='rgba(0,0,0,0.5)'/%3E%3C/filter%3E%3C/defs%3E%3Cpolygon points='2,2 2,21 6.8,16.2 10.5,24.5 13.5,23 9.8,15 16,15' fill='%23ffffff' stroke='%23222222' stroke-width='1.4' stroke-linejoin='round' filter='url(%23xpshadow)'/%3E%3C/svg%3E") 2 2, default !important;
}
.win95-root.os-winxp button,
.win95-root.os-winxp a,
.win95-root.os-winxp .w95-icon,
.win95-root.os-winxp .w95-btn-title,
.win95-root.os-winxp .w95-menu-item,
.win95-root.os-winxp .w95-bevel-btn,
.win95-root.os-winxp .ms-cell,
.win95-root.os-winxp .ttt95-cell,
.win95-root.os-winxp .mem95-card {
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='26' viewBox='0 0 22 26'%3E%3Cdefs%3E%3Cfilter id='xpptr'%3E%3CfeDropShadow dx='1.5' dy='1.5' stdDeviation='1.2' flood-color='rgba(0,0,0,0.45)'/%3E%3C/filter%3E%3C/defs%3E%3Cpath d='M8,2 C8,2 8,10 8,10 C7,9 5.5,9 4.5,10 C3.5,11 3.5,12.5 4.5,13.5 L9,19 C10,20.5 11.5,21 13.5,21 L16,21 C18,21 19,19.5 19,18 L19,13 C19,11.5 18,11.5 17,11.5 C16.5,11.5 16,11.8 15.5,12.2 C15,11 14,10.8 13,11 C12.5,10 11.5,9.8 10.5,10 L10.5,4 C10.5,2.5 8,2.5 8,2 Z' fill='%23ffffff' stroke='%23222222' stroke-width='1.3' stroke-linejoin='round' filter='url(%23xpptr)'/%3E%3C/svg%3E") 8 2, pointer !important;
}
.win95-root.os-winxp.is-busy,
.win95-root.os-winxp.is-busy * {
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='28' viewBox='0 0 22 28'%3E%3Cdefs%3E%3Cfilter id='s2'%3E%3CfeDropShadow dx='1' dy='1' stdDeviation='1' flood-color='rgba(0,0,0,0.4)'/%3E%3C/filter%3E%3C/defs%3E%3Crect x='3' y='1' width='16' height='3' fill='%232563eb' rx='1.5' filter='url(%23s2)'/%3E%3Crect x='3' y='24' width='16' height='3' fill='%232563eb' rx='1.5' filter='url(%23s2)'/%3E%3Cpath d='M5,4 C5,10 9,12 9,14 C9,16 5,18 5,24 L17,24 C17,18 13,16 13,14 C13,12 17,10 17,4 Z' fill='%23e2e8f0' stroke='%231e3a8a' stroke-width='1' filter='url(%23s2)'/%3E%3Cpolygon points='6,6 16,6 11,13' fill='%23f59e0b'/%3E%3Cpolygon points='7,22 15,22 11,16' fill='%23f59e0b'/%3E%3C/svg%3E") 11 14, wait !important;
}

/* 3. Windows 11 Fluent Clean Cursor */
.win95-root.os-win11,
.win95-root.os-win11 * {
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='26' viewBox='0 0 24 26'%3E%3Cdefs%3E%3Cfilter id='w11s'%3E%3CfeDropShadow dx='1' dy='1' stdDeviation='1.2' flood-color='rgba(0,0,0,0.4)'/%3E%3C/filter%3E%3C/defs%3E%3Cpath d='M3,2 L3,20.5 L7.5,16 L12,23.5 L14.5,22 L10,14.5 L16.5,14.5 Z' fill='%23ffffff' stroke='%23000000' stroke-width='1.2' stroke-linejoin='round' filter='url(%23w11s)'/%3E%3C/svg%3E") 3 2, default !important;
}
.win95-root.os-win11 button,
.win95-root.os-win11 a,
.win95-root.os-win11 .w95-icon,
.win95-root.os-win11 .w95-btn-title,
.win95-root.os-win11 .w95-menu-item,
.win95-root.os-win11 .w95-bevel-btn,
.win95-root.os-win11 .ms-cell,
.win95-root.os-win11 .ttt95-cell,
.win95-root.os-win11 .mem95-card {
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='24' viewBox='0 0 22 24'%3E%3Cdefs%3E%3Cfilter id='w11p'%3E%3CfeDropShadow dx='1' dy='1' stdDeviation='1' flood-color='rgba(0,0,0,0.35)'/%3E%3C/filter%3E%3C/defs%3E%3Cpath d='M7,2 L7,9 C6,8.5 4.5,8.5 3.5,9.5 C2.5,10.5 2.5,12 3.5,13 L8,18 C9,19.5 10.5,20 12.5,20 L15,20 C17,20 18,18.5 18,17 L18,12 C18,10.5 17,10.5 16,10.5 C15.5,10.5 15,10.8 14.5,11.2 C14,10 13,9.8 12,10 C11.5,9 10.5,8.8 9.5,9 L9.5,4 C9.5,2.5 7,2.5 7,2 Z' fill='%23ffffff' stroke='%23000000' stroke-width='1.2' filter='url(%23w11p)'/%3E%3C/svg%3E") 7 2, pointer !important;
}
.win95-root.os-win11.is-busy,
.win95-root.os-win11.is-busy * {
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28' viewBox='0 0 28 28'%3E%3Ccircle cx='14' cy='14' r='10' fill='none' stroke='rgba(0,164,239,0.25)' stroke-width='3'/%3E%3Cpath d='M14,4 A10,10 0 0,1 24,14' fill='none' stroke='%2300a4ef' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E") 14 14, wait !important;
}

/* 4. Apple macOS Black Pointer & Spinning Beach Ball */
.win95-root.os-macos,
.win95-root.os-macos * {
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='26' viewBox='0 0 22 26'%3E%3Cdefs%3E%3Cfilter id='ms'%3E%3CfeDropShadow dx='1' dy='1.5' stdDeviation='1.2' flood-color='rgba(0,0,0,0.45)'/%3E%3C/filter%3E%3C/defs%3E%3Cpath d='M3,2 L3,18 L7.2,14.5 L11,21.5 L13.5,20 L9.8,13.2 L15.5,13.2 Z' fill='%23080808' stroke='%23ffffff' stroke-width='1.5' stroke-linejoin='miter' filter='url(%23ms)'/%3E%3C/svg%3E") 3 2, default !important;
}
.win95-root.os-macos button,
.win95-root.os-macos a,
.win95-root.os-macos .w95-icon,
.win95-root.os-macos .w95-btn-title,
.win95-root.os-macos .w95-menu-item,
.win95-root.os-macos .w95-bevel-btn,
.win95-root.os-macos .ms-cell,
.win95-root.os-macos .ttt95-cell,
.win95-root.os-macos .mem95-card {
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='24' viewBox='0 0 22 24'%3E%3Cdefs%3E%3Cfilter id='mp'%3E%3CfeDropShadow dx='1' dy='1' stdDeviation='1' flood-color='rgba(0,0,0,0.35)'/%3E%3C/filter%3E%3C/defs%3E%3Cpath d='M7,2 L7,9 C6,8.5 4.5,8.5 3.5,9.5 C2.5,10.5 2.5,12 3.5,13 L8,18 C9,19.5 10.5,20 12.5,20 L15,20 C17,20 18,18.5 18,17 L18,12 C18,10.5 17,10.5 16,10.5 C15.5,10.5 15,10.8 14.5,11.2 C14,10 13,9.8 12,10 C11.5,9 10.5,8.8 9.5,9 L9.5,4 C9.5,2.5 7,2.5 7,2 Z' fill='%23080808' stroke='%23ffffff' stroke-width='1.4' filter='url(%23mp)'/%3E%3C/svg%3E") 7 2, pointer !important;
}
.win95-root.os-macos.is-busy,
.win95-root.os-macos.is-busy * {
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='26' height='26' viewBox='0 0 26 26'%3E%3Ccircle cx='13' cy='13' r='11' fill='none' stroke='%23000' stroke-width='1'/%3E%3Cpath d='M13,13 L13,2 A11,11 0 0,1 22.5,7.5 Z' fill='%23ff3b30'/%3E%3Cpath d='M13,13 L22.5,7.5 A11,11 0 0,1 22.5,18.5 Z' fill='%23ff9500'/%3E%3Cpath d='M13,13 L22.5,18.5 A11,11 0 0,1 13,24 Z' fill='%23ffcc00'/%3E%3Cpath d='M13,13 L13,24 A11,11 0 0,1 3.5,18.5 Z' fill='%2334c759'/%3E%3Cpath d='M13,13 L3.5,18.5 A11,11 0 0,1 3.5,7.5 Z' fill='%23007aff'/%3E%3Cpath d='M13,13 L3.5,7.5 A11,11 0 0,1 13,2 Z' fill='%23af52de'/%3E%3Ccircle cx='13' cy='13' r='2.5' fill='%23fff'/%3E%3C/svg%3E") 13 13, wait !important;
}

/* 5. Debian GNU/Linux 12 Crimson Cursor */
.win95-root.os-linux,
.win95-root.os-linux * {
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='26' viewBox='0 0 22 26'%3E%3Cdefs%3E%3Cfilter id='ls'%3E%3CfeDropShadow dx='1' dy='1' stdDeviation='1' flood-color='rgba(0,0,0,0.5)'/%3E%3C/filter%3E%3C/defs%3E%3Cpolygon points='2,2 2,19 6.5,14.5 10.5,22.5 13.5,21 9.5,13.5 15.5,13.5' fill='%230b162c' stroke='%23d70a53' stroke-width='1.4' stroke-linejoin='round' filter='url(%23ls)'/%3E%3C/svg%3E") 2 2, default !important;
}
.win95-root.os-linux button,
.win95-root.os-linux a,
.win95-root.os-linux .w95-icon,
.win95-root.os-linux .w95-btn-title,
.win95-root.os-linux .w95-menu-item,
.win95-root.os-linux .w95-bevel-btn,
.win95-root.os-linux .ms-cell,
.win95-root.os-linux .ttt95-cell,
.win95-root.os-linux .mem95-card {
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='24' viewBox='0 0 22 24'%3E%3Cdefs%3E%3Cfilter id='lp'%3E%3CfeDropShadow dx='1' dy='1' stdDeviation='1' flood-color='rgba(0,0,0,0.35)'/%3E%3C/filter%3E%3C/defs%3E%3Cpath d='M7,2 L7,9 C6,8.5 4.5,8.5 3.5,9.5 C2.5,10.5 2.5,12 3.5,13 L8,18 C9,19.5 10.5,20 12.5,20 L15,20 C17,20 18,18.5 18,17 L18,12 C18,10.5 17,10.5 16,10.5 C15.5,10.5 15,10.8 14.5,11.2 C14,10 13,9.8 12,10 C11.5,9 10.5,8.8 9.5,9 L9.5,4 C9.5,2.5 7,2.5 7,2 Z' fill='%230b162c' stroke='%23d70a53' stroke-width='1.3' filter='url(%23lp)'/%3E%3C/svg%3E") 7 2, pointer !important;
}
.win95-root.os-linux.is-busy,
.win95-root.os-linux.is-busy * {
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='26' height='26' viewBox='0 0 26 26'%3E%3Ccircle cx='13' cy='13' r='9' fill='none' stroke='rgba(215,10,83,0.3)' stroke-width='3'/%3E%3Ccircle cx='13' cy='13' r='9' fill='none' stroke='%23d70a53' stroke-width='3' stroke-dasharray='16 40'/%3E%3C/svg%3E") 13 13, wait !important;
}

/* ==============================================
   AUTHENTIC SHUTDOWN & MODAL DIALOGS
   ============================================== */

/* Windows 95 Safe Turn Off Screen */
.w95-safe-shutdown-screen {
  position: absolute;
  inset: 0;
  background: #000000;
  color: #ff8c00;
  font-family: "Courier New", Courier, monospace;
  font-size: 1.8rem;
  font-weight: bold;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  z-index: 10000;
  text-align: center;
  padding: 20px;
  user-select: none;
}

.w95-safe-shutdown-screen .shutdown-btn-wrap {
  margin-top: 20px;
}

/* Windows XP Turn Off Computer Modal */
.xp-shutdown-modal {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: grayscale(85%) brightness(85%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
}

.xp-shutdown-box {
  width: 390px;
  background: linear-gradient(180deg, #0055ea 0%, #0036a4 32px, #f2f5fb 33px, #f2f5fb 100%);
  border: 1px solid #ffffff;
  border-radius: 8px;
  box-shadow: 0 12px 35px rgba(0,0,0,0.7);
  overflow: hidden;
  color: #000000;
  font-family: 'Segoe UI', Tahoma, sans-serif;
}

.xp-shutdown-titlebar {
  padding: 7px 14px;
  color: #ffffff;
  font-weight: bold;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.xp-shutdown-body {
  padding: 26px 20px;
  display: flex;
  justify-content: space-around;
  align-items: center;
}

.xp-power-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  background: transparent;
  border: none;
  font-size: 12px;
  font-weight: bold;
  color: #333333;
}

.xp-power-btn .p-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: #ffffff;
  box-shadow: 0 3px 6px rgba(0,0,0,0.3);
  transition: transform 0.15s;
}

.xp-power-btn:hover .p-icon {
  transform: scale(1.1);
}

.xp-power-btn.standby .p-icon { background: linear-gradient(135deg, #fbbf24, #d97706); }
.xp-power-btn.turnoff .p-icon { background: linear-gradient(135deg, #ef4444, #b91c1c); }
.xp-power-btn.restart .p-icon { background: linear-gradient(135deg, #22c55e, #15803d); }

.xp-shutdown-footer {
  padding: 10px 16px 14px;
  display: flex;
  justify-content: flex-end;
  background: #f2f5fb;
  border-top: 1px solid #d1d5db;
}

/* macOS About This Mac Window */
.mac-about-modal {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9500;
}

.mac-about-card {
  width: 420px;
  background: rgba(36, 39, 58, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 14px;
  box-shadow: 0 25px 50px rgba(0,0,0,0.7);
  color: #ffffff;
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.mac-about-apple {
  font-size: 3.5rem;
  margin-bottom: 8px;
}

.mac-about-os {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.mac-about-version {
  font-size: 0.85rem;
  color: #94a3b8;
  margin-bottom: 16px;
}

.mac-about-specs {
  width: 100%;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 14px;
  margin-bottom: 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.85rem;
  color: #cbd5e1;
}

.mac-about-specs div {
  display: flex;
  justify-content: space-between;
}

.mac-about-specs span:first-child {
  color: #94a3b8;
}

.mac-about-close {
  position: absolute;
  top: 12px;
  left: 12px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: #ff5f56;
  border: none;
  cursor: pointer;
}

.w95-safe-shutdown-screen.hidden,
.xp-shutdown-modal.hidden,
.mac-about-modal.hidden,
.mac-top-bar.hidden,
.mac-apple-dropdown.hidden {
  display: none !important;
}

/* macOS Top Menu Bar */
.mac-top-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 30px;
  background: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(25px) saturate(180%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.35);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', Roboto, sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: #1d1d1f;
  z-index: 1000;
  user-select: none;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.mac-top-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.mac-apple-menu-btn {
  font-size: 17px;
  cursor: pointer;
  padding: 2px 7px;
  border-radius: 4px;
  line-height: 1;
}

.mac-apple-menu-btn:hover {
  background: rgba(0, 0, 0, 0.1);
}

.mac-app-bold {
  font-weight: 700;
}

.mac-nav-item {
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 4px;
  color: #1d1d1f;
}

.mac-nav-item:hover {
  background: rgba(0, 0, 0, 0.08);
}

.mac-top-right {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 12px;
  color: #1d1d1f;
}

.mac-apple-dropdown {
  position: absolute;
  top: 32px;
  left: 10px;
  width: 220px;
  background: rgba(250, 250, 252, 0.94);
  backdrop-filter: blur(35px);
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.28);
  padding: 6px 0;
  z-index: 2000;
  font-size: 13px;
  color: #1d1d1f;
}

.mac-dd-item {
  padding: 6px 16px;
  cursor: pointer;
  transition: background 0.1s;
}

.mac-dd-item:hover {
  background: #007aff;
  color: #ffffff;
}

.mac-dd-sep {
  height: 1px;
  background: rgba(0, 0, 0, 0.12);
  margin: 5px 0;
}

/* ==============================================
   YASIN RETRO MEDIA PLAYER 🎵
   ============================================== */
.player95-body {
  background: #111420;
  color: #00ff66;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-family: 'Courier New', monospace;
}

.player-display {
  background: #000000;
  border: 2px inset #555555;
  border-radius: 4px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.player-track-info {
  font-size: 13px;
  font-weight: bold;
  color: #00ff66;
  text-shadow: 0 0 8px rgba(0, 255, 102, 0.7);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.player-visualizer {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 48px;
  padding: 2px 4px;
  background: #0a0d14;
  border: 1px solid #222;
}

.vis-bar {
  flex: 1;
  background: linear-gradient(180deg, #ff0055 0%, #ffcc00 40%, #00ff66 100%);
  height: 15%;
  border-radius: 2px 2px 0 0;
  transition: height 0.08s ease;
}

.player-controls {
  display: flex;
  gap: 8px;
  justify-content: center;
}

.player-btn {
  font-size: 14px;
  font-weight: bold;
  padding: 6px 14px;
  cursor: pointer;
}

.player-tracklist {
  background: #050810;
  border: 2px inset #444;
  max-height: 140px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.player-track-item {
  padding: 6px 10px;
  font-size: 12px;
  cursor: pointer;
  border-bottom: 1px solid #1a2030;
  color: #a0aec0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.player-track-item:hover {
  background: #1e293b;
  color: #00ff66;
}

.player-track-item.active {
  background: #00ff66;
  color: #000000;
  font-weight: bold;
}

/* ==============================================
   SUPER PAINT STAMPS PALETTE 🎨
   ============================================== */
.paint-stamps-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  background: #d4d0c8;
  border-bottom: 1px solid #808080;
  flex-wrap: wrap;
}

.stamp-btn {
  width: 32px;
  height: 32px;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #d4d0c8;
  border: 2px outset #ffffff;
  cursor: pointer;
  border-radius: 3px;
  transition: transform 0.1s;
}

.stamp-btn:hover {
  transform: scale(1.15);
}

.stamp-btn.active {
  border: 2px inset #000000;
  background: #b0aca4;
}

.rainbow-toggle-btn {
  font-size: 12px;
  font-weight: bold;
  padding: 4px 10px;
}

/* ==============================================
   COMPREHENSIVE RESPONSIVE & MOBILE RULES
   (SMARTPHONES, TABLETS & RETINA DISPLAYS)
   ============================================== */

/* --- TABLETS & MEDIUM SCREENS (<= 1024px) --- */
@media (max-width: 1024px) {
  .linux-act-grid {
    grid-template-columns: repeat(4, 100px);
    gap: 16px;
  }
  .mac-dock {
    max-width: 94vw;
  }
}

/* --- MOBILE PHONES & PHABLETS (<= 768px) --- */
@media (max-width: 768px) {
  /* PC Simulator Window Engine: Fluid Mobile Layout */
  .w95-window {
    width: 96vw !important;
    left: 2vw !important;
    max-width: 96vw !important;
    max-height: calc(100vh - 42px) !important;
    top: 6px !important;
    border-radius: 6px !important;
    box-sizing: border-box !important;
  }

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

  .w95-title-bar {
    padding: 3px 6px !important;
    font-size: 11px !important;
  }

  .w95-title-text {
    font-size: 11px !important;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: calc(100% - 70px);
  }

  .w95-btn-title {
    width: 20px !important;
    height: 20px !important;
    font-size: 10px !important;
  }

  .w95-menu-bar {
    padding: 2px 4px !important;
    font-size: 11px !important;
    gap: 8px !important;
  }

  /* Desktop Icons: Touch-friendly Compact Grid */
  .win95-icons {
    padding: 6px !important;
    gap: 6px !important;
    max-height: calc(100vh - 44px) !important;
    overflow-y: auto !important;
  }

  .w95-icon {
    width: 60px !important;
    padding: 4px 2px !important;
    margin-bottom: 4px !important;
  }

  .w95-icon-graphic {
    font-size: 26px !important;
  }

  .w95-icon-label {
    font-size: 10px !important;
    line-height: 1.1 !important;
  }

  /* Start Menus: Centered, Adaptive Height & Scroll */
  .w95-start-menu,
  .xp-start-menu,
  .w11-start-menu {
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: min(94vw, 420px) !important;
    max-height: 75vh !important;
    overflow-y: auto !important;
    bottom: 38px !important;
  }

  /* Taskbar on Mobile */
  .win95-taskbar {
    height: 38px !important;
    padding: 2px 4px !important;
  }

  .w95-start-btn {
    padding: 2px 8px !important;
    font-size: 11px !important;
  }

  .xp-start-btn {
    padding: 2px 10px !important;
    font-size: 12px !important;
  }

  .w95-task-tabs {
    gap: 3px !important;
    overflow-x: auto !important;
  }

  .w95-task-tab {
    min-width: 60px !important;
    max-width: 110px !important;
    font-size: 10px !important;
    padding: 2px 4px !important;
  }

  .w95-tray {
    padding: 2px 6px !important;
    font-size: 10px !important;
    gap: 4px !important;
  }

  /* Windows 11 Centered Dock on Mobile */
  .win95-root.os-win11 .win95-taskbar {
    justify-content: center !important;
    padding: 0 4px !important;
  }

  .w11-task-dock {
    gap: 4px !important;
    overflow-x: auto !important;
    max-width: 96vw !important;
  }

  .w11-dock-item {
    width: 34px !important;
    height: 34px !important;
  }

  /* Apple macOS Sonoma Dock on Mobile */
  .mac-dock {
    max-width: 96vw !important;
    padding: 4px 6px !important;
    gap: 4px !important;
    bottom: 4px !important;
    border-radius: 16px !important;
  }

  .mac-dock-item {
    width: 36px !important;
    height: 36px !important;
    border-radius: 8px !important;
  }

  .dock-icon {
    font-size: 20px !important;
  }

  /* Debian Linux Bottom Dock & Activities on Mobile */
  .linux-dock {
    height: 46px !important;
    bottom: 6px !important;
    padding: 0 8px !important;
    gap: 4px !important;
    max-width: 96vw !important;
    overflow-x: auto !important;
    border-radius: 14px !important;
  }

  .linux-dock-item {
    width: 36px !important;
    height: 36px !important;
    flex-shrink: 0 !important;
  }

  .linux-dock-icon {
    font-size: 19px !important;
  }

  .linux-activities-overlay {
    padding: 16px 10px !important;
    gap: 16px !important;
  }

  .linux-act-search input {
    width: min(92vw, 360px) !important;
    padding: 8px 14px !important;
    font-size: 13px !important;
  }

  .linux-act-grid {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 10px !important;
    max-width: 95vw !important;
  }

  .linux-act-card {
    padding: 10px 4px !important;
    font-size: 11px !important;
  }

  .act-card-icon {
    font-size: 26px !important;
  }

  /* Minecraft Window Mobile Adaptation */
  .mc95-toolbar {
    flex-wrap: wrap !important;
    gap: 4px !important;
    padding: 4px !important;
  }

  .mc95-canvas-wrap {
    max-width: 100% !important;
    overflow: hidden !important;
  }

  #mc-canvas {
    max-width: 100% !important;
    height: auto !important;
  }

  .mc95-touch-controls {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: space-between !important;
    gap: 4px !important;
    padding: 4px !important;
  }

  .mc-touch-group {
    display: flex !important;
    gap: 4px !important;
  }

  .w95-tbtn {
    padding: 6px 10px !important;
    font-size: 12px !important;
  }

  .mc95-hotbar {
    max-width: 100% !important;
    overflow-x: auto !important;
    padding: 3px !important;
    gap: 3px !important;
  }

  .mc95-slot {
    font-size: 10px !important;
    padding: 3px 6px !important;
    white-space: nowrap !important;
  }

  /* Mini-Games In Windows (Mario, Runner, Paint, Snake, etc.) */
  #mario-win-canvas,
  #runner-win-canvas,
  #paint-win-canvas,
  #snake-win-canvas,
  #balloons-win-canvas {
    max-width: 100% !important;
    height: auto !important;
  }

  .paint-toolbar,
  .paint-stamps-bar {
    flex-wrap: wrap !important;
    gap: 3px !important;
    padding: 4px !important;
  }

  .stamp-btn {
    width: 28px !important;
    height: 28px !important;
    font-size: 15px !important;
  }

  /* Fullscreen Standalone Game Screens */
  .game-screen {
    padding: 0 !important;
  }

  .game-screen-header {
    padding: 8px 12px !important;
    font-size: 14px !important;
  }

  .game-controls-bar {
    flex-wrap: wrap !important;
    gap: 6px !important;
    padding: 6px !important;
  }

  /* YasinCraft (Minecraft 3D Sandbox Screen) */
  .craft-hud-bar {
    max-width: 96vw !important;
    overflow-x: auto !important;
    padding: 4px !important;
    gap: 4px !important;
  }

  /* Super Mario Game Controls */
  .mario-controls-overlay {
    padding: 6px 12px !important;
    gap: 8px !important;
  }

  /* Garage Showroom */
  .garage-view-container {
    max-width: 96vw !important;
  }

  .garage-controls-wrap {
    flex-wrap: wrap !important;
    gap: 6px !important;
  }
}

/* --- SMALL MOBILES (<= 480px) --- */
@media (max-width: 480px) {
  .w95-window {
    width: 98vw !important;
    left: 1vw !important;
    max-width: 98vw !important;
  }

  .w95-icons {
    grid-template-columns: repeat(3, 1fr) !important;
  }

  .linux-act-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  .w11-apps-grid {
    grid-template-columns: repeat(3, 1fr) !important;
  }
}

/* ==========================================================================
   11. YASINS WABBEL-GARTEN (حديقة ياسين الووبلي) - SANDBOX & RAGDOLL PHYSICS
   ========================================================================== */
.garden-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  user-select: none;
  -webkit-user-select: none;
  background: #54a0ff;
  font-family: inherit;
}

.garden-hud-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 16px;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 2px solid rgba(16, 172, 132, 0.4);
  z-index: 20;
  gap: 12px;
  flex-wrap: wrap;
}

.garden-hud-left,
.garden-hud-center,
.garden-hud-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.garden-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: 16px;
  border: none;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  text-decoration: none;
}

.garden-btn:hover {
  transform: translateY(-2px);
}

.garden-btn:active {
  transform: translateY(1px) scale(0.98);
}

.garden-btn-backpack {
  background: linear-gradient(135deg, #10ac84, #00cec9);
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(16, 172, 132, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.garden-btn-backpack:hover {
  box-shadow: 0 6px 20px rgba(16, 172, 132, 0.6);
  border-color: #ffd700;
}

.backpack-icon {
  font-size: 1.25rem;
}

.garden-stat-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(0, 0, 0, 0.45);
  padding: 6px 14px;
  border-radius: 20px;
  font-weight: 800;
  font-size: 1rem;
  color: #ffd700;
  border: 1px solid rgba(255, 215, 0, 0.35);
}

.garden-btn-action {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.garden-btn-action:hover {
  background: rgba(255, 255, 255, 0.22);
  border-color: rgba(255, 255, 255, 0.4);
}

.garden-btn-danger {
  background: rgba(235, 77, 75, 0.22);
  color: #ff7675;
  border: 1px solid rgba(235, 77, 75, 0.4);
}

.garden-btn-danger:hover {
  background: rgba(235, 77, 75, 0.4);
  color: #ffffff;
}

.garden-select-wrapper {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.garden-hud-label {
  font-size: 0.88rem;
  font-weight: 700;
  color: #cbd5e1;
}

.garden-select {
  background: #1e293b;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 6px 12px;
  border-radius: 12px;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  outline: none;
}

.garden-select:focus {
  border-color: #10ac84;
}

/* Canvas Container */
.garden-canvas-container {
  position: relative;
  flex: 1;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

#garden-canvas {
  width: 100%;
  height: 100%;
  display: block;
  touch-action: none;
  cursor: grab;
}

#garden-canvas:active {
  cursor: grabbing;
}

/* Bottom Hint Banner */
.garden-bottom-hint {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #f1f5f9;
  padding: 8px 22px;
  border-radius: 30px;
  font-size: 0.9rem;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.18);
  display: flex;
  align-items: center;
  gap: 10px;
  pointer-events: none;
  z-index: 10;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.35);
  max-width: 90%;
  text-align: center;
}

.hint-key {
  background: #feca57;
  color: #000;
  padding: 2px 8px;
  border-radius: 8px;
  font-weight: 900;
  font-size: 0.85rem;
  letter-spacing: 0.5px;
}

/* Quick Floating Bag */
.garden-floating-bag {
  position: absolute;
  bottom: 20px;
  right: 22px;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: linear-gradient(135deg, #10ac84, #feca57);
  box-shadow: 0 8px 25px rgba(16, 172, 132, 0.55), 0 0 15px rgba(254, 202, 87, 0.4);
  border: 3px solid #ffffff;
  font-size: 1.9rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 15;
  transition: transform 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.garden-floating-bag:hover {
  transform: scale(1.12) rotate(6deg);
}

.garden-floating-bag:active {
  transform: scale(0.95);
}

.bag-key-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: #ff007f;
  color: #ffffff;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  font-size: 0.8rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* E-Key Object Spawner Modal */
.garden-modal-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 15, 30, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.garden-modal-backdrop.hidden {
  display: none !important;
}

.garden-modal-box {
  max-width: 820px;
  width: 100%;
  max-height: 86vh;
  overflow-y: auto;
  background: #1a163a;
  border: 2px solid #10ac84;
  border-radius: 28px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7), 0 0 40px rgba(16, 172, 132, 0.35);
  padding: 28px;
  animation: popIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.garden-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.modal-title-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.modal-title-group h3 {
  font-size: 1.6rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0;
}

.modal-header-icon {
  font-size: 2.2rem;
}

.garden-modal-close {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: #ffffff;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  font-size: 1.3rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.garden-modal-close:hover {
  background: #ff4757;
  transform: rotate(90deg);
}

.garden-modal-hint {
  color: #94a3b8;
  font-size: 0.95rem;
  margin: 0 0 18px 0;
  line-height: 1.4;
}

/* Category Tabs */
.garden-tabs {
  display: flex;
  gap: 10px;
  border-bottom: 2px solid rgba(255, 255, 255, 0.12);
  padding-bottom: 14px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.garden-tab-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #cbd5e1;
  padding: 10px 20px;
  border-radius: 20px;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s;
}

.garden-tab-btn:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
}

.garden-tab-btn.active {
  background: linear-gradient(135deg, #10ac84, #00cec9);
  color: #ffffff;
  border-color: #10ac84;
  box-shadow: 0 4px 15px rgba(16, 172, 132, 0.45);
}

/* Items Grid */
.garden-items-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}

.garden-items-grid.hidden {
  display: none !important;
}

.garden-item-card {
  background: rgba(255, 255, 255, 0.06);
  border: 2px solid rgba(255, 255, 255, 0.12);
  border-radius: 22px;
  padding: 18px 14px;
  text-align: center;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.garden-item-card:hover {
  transform: translateY(-6px) scale(1.03);
  background: rgba(255, 255, 255, 0.12);
  border-color: #feca57;
  box-shadow: 0 12px 28px rgba(254, 202, 87, 0.35);
}

.item-card-preview {
  font-size: 3.4rem;
  margin-bottom: 10px;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.item-card-name {
  font-size: 1.15rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 6px;
}

.item-card-desc {
  font-size: 0.84rem;
  color: #94a3b8;
  line-height: 1.35;
  margin-bottom: 14px;
  flex-grow: 1;
}

.btn-spawn-item {
  width: 100%;
  background: linear-gradient(135deg, #10ac84, #1dd1a1);
  color: #ffffff;
  border: none;
  border-radius: 14px;
  padding: 9px 12px;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.2s;
  box-shadow: 0 4px 12px rgba(16, 172, 132, 0.3);
}

.garden-item-card:hover .btn-spawn-item {
  background: linear-gradient(135deg, #feca57, #ff9f43);
  color: #000000;
  box-shadow: 0 4px 15px rgba(254, 202, 87, 0.5);
}

/* Featured card in Lobby */
.featured-garden-card {
  position: relative;
  overflow: hidden;
}

.featured-garden-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(16, 172, 132, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
  .garden-hud-bar {
    padding: 6px 10px;
    gap: 8px;
  }
  .garden-btn {
    padding: 6px 12px;
    font-size: 0.85rem;
  }
  .garden-bottom-hint {
    display: none;
  }
  .garden-floating-bag {
    bottom: 16px;
    right: 16px;
    width: 54px;
    height: 54px;
    font-size: 1.6rem;
  }
  .garden-items-grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 10px;
  }
  .item-card-preview {
    font-size: 2.5rem;
  }
  .garden-modal-box {
    padding: 18px;
  }
}

/* Featured card in Lobby - RealCraft 3D */
.featured-realcraft-card {
  position: relative;
  overflow: hidden;
}

.featured-realcraft-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(225, 112, 85, 0.18) 0%, transparent 70%);
  pointer-events: none;
}

/* ===================================================
   12. RealCraft 3D: Destruction & Physics Sandbox
   =================================================== */
.realcraft-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #080811;
  user-select: none;
  font-family: inherit;
}

.realcraft-top-hud {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 18px;
  background: rgba(12, 10, 26, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  z-index: 30;
  flex-shrink: 0;
  gap: 12px;
}

.realcraft-title-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 1.1rem;
  color: #00f2fe;
  text-shadow: 0 0 12px rgba(0, 242, 254, 0.5);
}

.pulse-icon {
  display: inline-block;
  animation: realcraftPulse 2.2s infinite ease-in-out;
}

@keyframes realcraftPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.18); }
}

@keyframes detonateGlow {
  0% { box-shadow: 0 0 12px rgba(255, 71, 87, 0.6); }
  100% { box-shadow: 0 0 24px rgba(255, 71, 87, 0.95); }
}

.realcraft-stat-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  font-size: 0.88rem;
  font-weight: 600;
  color: #ecf0f1;
}

.realcraft-stat-pill strong {
  color: #00f2fe;
  font-weight: 800;
}

.realcraft-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 10px;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.realcraft-btn:hover {
  background: rgba(255, 255, 255, 0.18);
  transform: translateY(-2px);
  border-color: rgba(0, 242, 254, 0.4);
}

.realcraft-btn:active {
  transform: translateY(0);
}

.realcraft-btn-primary {
  background: linear-gradient(135deg, #00cec9, #0984e3);
  color: #fff;
  border: none;
  box-shadow: 0 4px 15px rgba(0, 206, 201, 0.35);
}

.realcraft-btn-primary:hover {
  box-shadow: 0 6px 20px rgba(0, 206, 201, 0.6);
}

#rc-btn-detonate {
  background: linear-gradient(135deg, #ff4757, #ff6b81);
  color: #fff;
  border: none;
  font-weight: 800;
  box-shadow: 0 4px 18px rgba(255, 71, 87, 0.5);
  animation: detonateGlow 1.2s infinite alternate;
}

.realcraft-viewport {
  position: relative;
  flex: 1;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #000;
  cursor: crosshair;
}

#realcraft-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.realcraft-crosshair {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 28px;
  height: 28px;
  pointer-events: none;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
}

.realcraft-crosshair::before,
.realcraft-crosshair::after {
  content: '';
  position: absolute;
  background: rgba(255, 255, 255, 0.7);
  box-shadow: 0 0 4px rgba(0, 242, 254, 0.8);
}

.realcraft-crosshair::before {
  width: 18px;
  height: 2px;
}

.realcraft-crosshair::after {
  width: 2px;
  height: 18px;
}

.crosshair-dot {
  width: 6px;
  height: 6px;
  background: #00f2fe;
  border-radius: 50%;
  box-shadow: 0 0 8px #00f2fe, 0 0 2px #fff;
  z-index: 2;
}

.realcraft-alert {
  position: absolute;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(235, 47, 47, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #ffffff;
  padding: 8px 24px;
  border-radius: 30px;
  font-weight: 800;
  font-size: 1.05rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 8px 30px rgba(235, 47, 47, 0.6);
  z-index: 40;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  display: flex;
  align-items: center;
  gap: 8px;
  pointer-events: none;
}

.realcraft-alert.hidden {
  opacity: 0;
  transform: translate(-50%, -25px);
}

.realcraft-hotbar {
  position: absolute;
  bottom: 38px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  background: rgba(10, 8, 22, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 8px 12px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.7);
  z-index: 30;
}

.hotbar-slot {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 68px;
  height: 68px;
  background: rgba(255, 255, 255, 0.06);
  border: 2px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  color: #fff;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 4px;
}

.hotbar-slot:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(0, 242, 254, 0.5);
  transform: translateY(-3px);
}

.hotbar-slot.active {
  background: linear-gradient(135deg, rgba(0, 242, 254, 0.25), rgba(79, 172, 254, 0.12));
  border-color: #00f2fe;
  box-shadow: 0 0 18px rgba(0, 242, 254, 0.55);
  transform: translateY(-5px);
}

.slot-num {
  position: absolute;
  top: 3px;
  left: 6px;
  font-size: 0.72rem;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.65);
}

.slot-icon {
  font-size: 1.7rem;
  line-height: 1;
  margin-bottom: 3px;
}

.slot-name {
  font-size: 0.66rem;
  font-weight: 700;
  max-width: 62px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: rgba(255, 255, 255, 0.9);
}

.realcraft-controls-hint {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.68);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.76rem;
  padding: 4px 18px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  pointer-events: none;
  z-index: 25;
  white-space: nowrap;
}

@media (max-width: 768px) {
  .realcraft-top-hud {
    padding: 6px 10px;
    gap: 6px;
  }
  .realcraft-title-badge span:last-child {
    display: none;
  }
  .realcraft-btn {
    padding: 5px 10px;
    font-size: 0.8rem;
  }
  .realcraft-hotbar {
    bottom: 12px;
    gap: 6px;
    padding: 6px 8px;
  }
  .hotbar-slot {
    width: 50px;
    height: 50px;
    border-radius: 10px;
  }
  .hotbar-slot .slot-icon {
    font-size: 1.35rem;
  }
  .hotbar-slot .slot-name {
    display: none;
  }
  .realcraft-controls-hint {
    display: none;
  }
}

/* ===================================================
   RealCraft 3D: Minecraft-Style Title Menu & Modals
   =================================================== */
.realcraft-menu-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 50;
  background: radial-gradient(circle at center, rgba(10, 8, 22, 0.45) 0%, rgba(5, 4, 12, 0.85) 100%);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  transition: opacity 0.3s ease, visibility 0.3s ease;
  cursor: var(--cursor-joystick) !important;
}

.realcraft-menu-overlay.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.realcraft-modal {
  cursor: var(--cursor-joystick) !important;
}

.realcraft-menu-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 460px;
  width: 90%;
  padding: 20px;
  z-index: 52;
  animation: popIn 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.minecraft-logo-container {
  position: relative;
  margin-bottom: 32px;
  text-align: center;
}

.minecraft-title {
  font-size: 3.4rem;
  font-weight: 900;
  letter-spacing: 4px;
  color: #dcdde1;
  text-transform: uppercase;
  text-shadow: 0 4px 0 #2f3640, 0 7px 0 #1e272e, 0 10px 18px rgba(0, 0, 0, 0.9), 0 0 25px rgba(0, 242, 254, 0.55);
  -webkit-text-stroke: 1.5px #1e272e;
  margin: 0;
  font-family: 'Segoe UI', Impact, Arial Black, sans-serif;
  user-select: none;
}

.minecraft-splash {
  position: absolute;
  bottom: -14px;
  right: -26px;
  color: #f1c40f;
  font-weight: 900;
  font-size: 1.15rem;
  text-shadow: 2px 2px 0 #000, 0 0 10px rgba(241, 196, 15, 0.6);
  transform: rotate(-16deg);
  animation: mcSplashAnim 0.8s infinite alternate ease-in-out;
  white-space: nowrap;
  pointer-events: none;
  z-index: 55;
  user-select: none;
}

@keyframes mcSplashAnim {
  0% { transform: rotate(-16deg) scale(0.95); }
  100% { transform: rotate(-16deg) scale(1.14); }
}

.minecraft-menu-buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

.minecraft-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 12px 20px;
  background: linear-gradient(180deg, #718093 0%, #4b6584 100%);
  border-top: 3px solid #a5b1c2;
  border-left: 3px solid #a5b1c2;
  border-right: 3px solid #2f3640;
  border-bottom: 3px solid #1e272e;
  color: #ffffff;
  font-size: 1.05rem;
  font-weight: 800;
  cursor: pointer;
  text-shadow: 2px 2px 0 #000;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
  border-radius: 4px;
  transition: transform 0.12s cubic-bezier(0.4, 0, 0.2, 1), filter 0.12s, border-color 0.12s;
  user-select: none;
  font-family: inherit;
}

.minecraft-btn:hover {
  filter: brightness(1.22);
  border-color: #00f2fe;
  box-shadow: 0 0 18px rgba(0, 242, 254, 0.6);
  transform: scale(1.02);
}

.minecraft-btn:active {
  transform: scale(0.98);
  border-top: 3px solid #1e272e;
  border-left: 3px solid #1e272e;
  border-right: 3px solid #a5b1c2;
  border-bottom: 3px solid #a5b1c2;
}

.btn-primary-mc {
  background: linear-gradient(180deg, #20bf6b 0%, #0fb9b1 100%);
  border-top-color: #7bed9f;
  border-left-color: #7bed9f;
  border-right-color: #0c2461;
  border-bottom-color: #0a1835;
}

.btn-danger-mc {
  background: linear-gradient(180deg, #eb3b5a 0%, #b71540 100%);
  border-top-color: #ff6b81;
  border-left-color: #ff6b81;
  border-right-color: #4b0d1e;
  border-bottom-color: #2b050f;
}

.mc-btn-icon {
  font-size: 1.25rem;
}

/* Modals for World Selection, Settings & Controls */
.realcraft-modal {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(5, 4, 14, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 60;
  padding: 16px;
}

.realcraft-modal.hidden {
  display: none;
}

.realcraft-modal-content {
  background: #191432;
  border: 3px solid #718093;
  border-radius: 14px;
  padding: 24px;
  max-width: 620px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.85), 0 0 25px rgba(0, 242, 254, 0.25);
  animation: popIn 0.25s ease;
}

.rc-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 2px solid rgba(255, 255, 255, 0.12);
  padding-bottom: 12px;
  margin-bottom: 16px;
}

.rc-modal-header h3 {
  margin: 0;
  font-size: 1.35rem;
  color: #00f2fe;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 8px;
}

.rc-modal-close {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: #fff;
  cursor: pointer;
  transition: all 0.2s;
}

.rc-modal-close:hover {
  background: #ff4757;
  border-color: #ff6b81;
  transform: rotate(90deg);
}

.world-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.world-card {
  padding: 16px;
  background: rgba(255, 255, 255, 0.06);
  border: 2px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  text-align: start;
}

.world-card:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(0, 242, 254, 0.5);
  transform: translateY(-3px);
}

.world-card.active {
  background: linear-gradient(135deg, rgba(0, 242, 254, 0.25), rgba(79, 172, 254, 0.15));
  border-color: #00f2fe;
  box-shadow: 0 0 18px rgba(0, 242, 254, 0.45);
}

.world-card-icon {
  font-size: 2.2rem;
  margin-bottom: 6px;
}

.world-card h4 {
  margin: 0 0 6px 0;
  font-size: 1.05rem;
  color: #fff;
  font-weight: 800;
}

.world-card p {
  margin: 0;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.4;
}

.settings-rows {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.setting-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.06);
  padding: 14px 18px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-weight: 700;
  font-size: 0.95rem;
  color: #fff;
}

.toggle-pill {
  padding: 6px 18px;
  border-radius: 20px;
  font-weight: 800;
  font-size: 0.88rem;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  transition: all 0.2s;
}

.toggle-pill:hover {
  filter: brightness(1.2);
}

.toggle-pill.active {
  background: #20bf6b;
  border-color: #7bed9f;
  color: #000;
  box-shadow: 0 0 12px rgba(32, 191, 107, 0.5);
}

.controls-guide-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.guide-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: rgba(255, 255, 255, 0.05);
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.9rem;
  color: #fff;
}

.guide-item kbd {
  background: #2f3640;
  border: 1px solid #718093;
  border-radius: 6px;
  padding: 4px 10px;
  font-family: monospace;
  font-weight: 800;
  color: #f5f6fa;
  box-shadow: 0 2px 0 #1e272e;
  white-space: nowrap;
}

@media (max-width: 768px) {
  .minecraft-title {
    font-size: 2.2rem;
  }
  .minecraft-splash {
    font-size: 0.9rem;
    right: -10px;
  }
  .world-cards-grid {
    grid-template-columns: 1fr;
  }
}
