html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
}

body {
  position: relative;
  font-family: Cousine, monospace;
  cursor: url("../images/Cursor/Cursor_2.png"), auto;
  background: radial-gradient(circle,rgba(255, 255, 255, 1) 0%, rgb(203, 255, 168) 51%, rgba(255, 209, 233, 1) 100%);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

img {
  user-select: none;
  -webkit-user-drag: none;
}

button,
a {
 cursor: url("../images/Cursor/Cursor_3.png"), pointer;
}

.video-room {
  position: relative;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
}

.top-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 42px;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.538);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(28, 39, 56, 0.2);
}

.top-bar-menu {
  display: flex;
  align-items: center;
  gap: 18px;
  color: #17202b;
  font-size: 13px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.top-bar-return {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(21, 27, 36, 0.2);
  background: rgba(0, 0, 0, 0.78);
  color: #ffffff;
  font-size: 12px;
  text-decoration: none;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.08);
}

.studio-sign {
  position: fixed;
  left: clamp(12px, 1.6vw, 24px);
  bottom: clamp(12px, 1.6vw, 24px);
  width: clamp(120px, 12vw, 220px);
  height: auto;
  z-index: 20;
  pointer-events: none;
}

.desktop-shell {
  position: absolute;
  inset: 0;
  padding: 50px 8px 8px;
}

.screen-content {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
 
}

.desktop-icons {
  position: absolute;
  inset: 0;
}

.desktop-icon {
  position: absolute;
  width: clamp(76px, 9vw, 128px);
  padding: 0;
  border: 0;
  background: transparent;
  transition: transform 0.2s ease, filter 0.2s ease;
  z-index: 1;
  touch-action: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.desktop-icon.is-hidden {
  display: none;
}

.desktop-icon-textedit {
  top: 72%;
  left: 18%;
}

.desktop-icon-textedit img {
  border-radius: 8px;
}

.desktop-icon[data-category="thevictory"] {
  top: 8%;
  left: 4.5%;
}

.desktop-icon[data-category="visions"] {
  top: 29%;
  left: 6%;
}

.desktop-icon[data-category="theassignment"] {
  top: 50%;
  left: 5%;
}

.desktop-icon[data-category="myworld"] {
  top: 15%;
  left: 18%;
}

.desktop-icon img {
  display: block;
  width: 100%;
  height: auto;
  pointer-events: none;
  filter: drop-shadow(0 14px 22px rgba(0, 0, 0, 0.3));
}

.desktop-icon-label {
  display: block;
  max-width: 140%;
  padding: 2px 6px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.22);
  color: #fff;
  font-size: clamp(10px, 0.9vw, 12px);
  line-height: 1.2;
  text-align: center;
  white-space: nowrap;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
  pointer-events: none;
}

.desktop-icon:hover {
  transform: scale(1.03);
  filter: brightness(1.06);
}

.window {
  position: absolute;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(8, 12, 18, 0.8);
  border-radius: 14px;
  background: rgba(242, 242, 242, 0.98);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.35);
  touch-action: none;
}

.window.is-hidden {
  display: none;
}

.window-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 42px;
  padding: 8px 12px;
  background: linear-gradient(180deg, #f6f6f6, #d9d9d9);
  border-bottom: 1px solid rgba(0, 0, 0, 0.12);
  cursor: url("../images/Cursor/Cursor_3.png"), pointer;
}

.window-bar:active {
  cursor: grabbing;
}

.window-title {
  font-size: clamp(11px, 1vw, 14px);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #1f1f1f;
}

.window-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 2px solid #000000;
  border-radius: 50%;
  background: #ec72ad;
  color: #111;
  font: inherit;
  font-weight: 700;
  line-height: 1;
}

.window-close span {
  transform: translateY(-1px);
}

.is-text-edit {
  top: 7%;
  left: 31%;
  width: min(42%, 500px);
  z-index: 8;
}

.text-edit-image {
  display: block;
  width: 100%;
  height: auto;
}

.project-window {
  top: 7.5%;
  left: 7.5%;
  width: 85%;
  z-index: 6;
}

.window-content {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}

.carousel-image {
  display: none;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}

.carousel-image.active {
  display: block;
}

iframe.carousel-image.active {
  border: 0;
}

.window-controls {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 10px 12px 12px;
  background: rgba(228, 228, 228, 0.98);
}

.carousel-btn {
  border: 1px solid rgba(0, 0, 0, 0.35);
  border-radius: 999px;
  background: #111;
  color: #fff;
  padding: 8px 14px;
  font: inherit;
  font-size: clamp(11px, 0.95vw, 13px);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.carousel-btn:hover {
  background: #000;
  transform: scale(1.03);
}

@media (min-width: 901px) {
  .project-window {
    top: 16%;
    left: 18%;
    width: 64%;
  }
}

@media (max-width: 900px) {
  .desktop-shell {
    padding: 6px;
  }

  .desktop-icon {
    width: clamp(62px, 10vw, 100px);
  }

  .desktop-icon-label {
    max-width: 150%;
    font-size: 10px;
  }

  .window-bar {
    min-height: 36px;
    padding: 6px 10px;
  }

  .window-close {
    width: 24px;
    height: 24px;
  }

  .window-controls {
    gap: 8px;
    padding: 8px 10px 10px;
  }

  .carousel-btn {
    padding: 7px 10px;
  }
}

@media (max-width: 640px) {
  .desktop-shell {
    padding: 4px;
  }

  .screen-content {
    border-radius: 10px;
  }

  .desktop-icon {
    width: clamp(50px, 11vw, 74px);
  }

  .desktop-icon-label {
    max-width: 160%;
    font-size: 9px;
  }

  .window-title {
    font-size: 10px;
  }

  .is-text-edit {
    width: 75%;
    left: 24%;
  }

  .studio-sign {
    width: clamp(90px, 20vw, 120px);
  }

  .top-bar {
    min-height: 38px;
    padding: 6px 10px;
  }

  .top-bar-menu {
    gap: 10px;
    font-size: 11px;
  }

  .top-bar-return {
    min-height: 26px;
    padding: 5px 10px;
    font-size: 11px;
  }
}
