* { box-sizing: border-box; }
html, body {
  height: 100%;
  margin: 0;
  overflow: hidden;
  position: fixed;
  width: 100%;
}

body {
  background: #000;
  display: grid;
  place-items: center;
  min-height: 100svh;
  color: #fff;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  overflow: hidden;
  position: relative;
  touch-action: pan-y;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: none;
  opacity: 0;
  animation: bgFadeIn 1.5s ease-out forwards;
  z-index: -1;
}

body.loaded::before {
  background: url("bg.gif") center / cover no-repeat;
}

@keyframes bgFadeIn {
  to { opacity: 1; }
}

/* Site Loading Screen */
.site-loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  opacity: 1;
  transition: opacity 0.5s ease-out;
}

.site-loading-screen.hidden {
  opacity: 0;
  pointer-events: none;
}

.site-loading-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  width: 70%;
  max-width: 600px;
}

.site-loading-bar-container {
  width: 100%;
  height: 8px;
  background: transparent;
  border: 2px solid #d0d0d0;
  box-shadow: 0 0 10px rgba(208, 208, 208, 0.4), inset 0 0 15px rgba(208, 208, 208, 0.3);
  overflow: hidden;
}

.site-loading-bar {
  height: 100%;
  width: 0%;
  background: #d0d0d0;
  box-shadow: 0 0 20px rgba(208, 208, 208, 0.8), inset 0 0 20px rgba(208, 208, 208, 0.5);
  transition: width 0.2s ease;
}

.site-loading-percentage {
  color: #d0d0d0;
  text-align: center;
  font-size: clamp(0.9rem, 2.5vw, 1.1rem);
  line-height: 1.6;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.6);
  font-family: inherit;
}

@media (max-width: 768px) {
  .site-loading-content {
    width: 80%;
  }

  .site-loading-bar-container {
    height: 6px;
  }
}

.stage {
  width: 100%;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  text-align: right;
  padding-right: 5vw;
  transition: opacity 1s ease-in-out;
  will-change: opacity;
  z-index: 1;
}

.logo {
  width: min(60vw, 600px);
  height: auto;
  filter: drop-shadow(0 8px 24px rgba(0,0,0,.4));
  -webkit-user-drag: none;
  user-select: none;
  visibility: hidden;
  z-index: 2;
  position: relative;
}

@keyframes logoShow {
  to { visibility: visible; }
}

@keyframes logoHide {
  to { visibility: hidden; }
}

.stage.fade-out {
  opacity: 0;
  pointer-events: none;
}

/* Startup Screen Styles */
.startup-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  animation: startupFadeIn 1.5s ease-out forwards;
  transition: opacity 0.8s ease-in-out;
}

@keyframes startupFadeIn {
  to { opacity: 1; }
}

.startup-screen::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url("bg.gif") center / cover no-repeat;
  opacity: 1;
  z-index: -1;
}

.startup-screen.fade-out .startup-header,
.startup-screen.fade-out .startup-content {
  opacity: 0;
  transition: opacity 0.5s ease-out;
}

.startup-screen.intro-ready {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.8s ease-in-out;
}

.startup-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  width: 100%;
  padding: 0 5vw;
  margin-bottom: 3rem;
}

.startup-title {
  font-size: clamp(1.2rem, 3vw, 1.5rem);
  text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
  text-align: left;
}

.startup-datetime {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
  text-align: right;
  line-height: 1.4;
}

.startup-content {
  position: relative;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.startup-line {
  width: 100%;
  height: 1px;
  background: #fff;
}

.startup-line.top {
  margin-bottom: 20vh;
}

.startup-line.bottom {
  margin-top: 20vh;
}

.startup-message {
  text-align: center;
  font-size: clamp(0.9rem, 2.5vw, 1.1rem);
  line-height: 1.6;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.6);
  margin: 2rem;
}

.startup-button {
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
  padding: 0;
  background: transparent;
  border: none;
  color: #fff;
  font-family: inherit;
  font-size: 1rem;
  cursor: pointer;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.6);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.startup-button:hover {
  box-shadow: 0 0 20px rgba(255,255,255,0.4);
  text-shadow: 1px 1px 3px rgba(0,0,0,0.8);
}

.startup-button:hover::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255,255,255,0.1);
  pointer-events: none;
}

.startup-button:active {
  opacity: 0.7;
  transition: opacity 0.1s ease;
}

/* Main Menu Styles */
.main-menu {
  position: fixed;
  top: 33.33vh;
  left: 5vw;
  display: flex;
  gap: 4rem;
  z-index: 3;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s ease-in-out, visibility 0.8s ease-in-out;
}

.main-menu.show {
  opacity: 1;
  visibility: visible;
}

.menu-time {
  position: fixed;
  top: 2rem;
  right: 2rem;
  color: #fff;
  font-family: inherit;
  font-size: 1rem;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.6);
  border: 1px solid #a3a3a3;
  padding: 0.8rem 1.2rem;
  background: rgba(0,0,0,0.3);
  backdrop-filter: blur(5px);
  z-index: 4;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s ease-in-out, visibility 0.8s ease-in-out;
}

.menu-time.show {
  opacity: 1;
  visibility: visible;
}

.menu-button {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 1rem;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.menu-icon {
  width: 80px;
  height: 80px;
  filter: drop-shadow(2px 2px 6px rgba(0,0,0,0.8));
  transition: all 0.3s ease;
  -webkit-user-drag: none;
  user-select: none;
}

.menu-text {
  color: #fff;
  font-family: inherit;
  font-size: 1rem;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.6);
  margin-top: 0.5rem;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
}

.menu-button:hover .menu-text,
.menu-button.active .menu-text {
  opacity: 1;
  transform: translateY(0);
}

.menu-button:hover,
.menu-button.active {
  transform: translateY(-5px);
}

.menu-button:hover .menu-icon,
.menu-button.active .menu-icon {
  filter: drop-shadow(2px 2px 6px rgba(0,0,0,0.8)) brightness(1.6);
}

.menu-button:active {
  opacity: 0.7;
  transition: opacity 0.1s ease;
}

/* Dropdown Styles */
.work-dropdown,
.contact-dropdown,
.about-dropdown,
.games-dropdown {
  position: fixed;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  z-index: 4;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-20px);
  transition: all 0.5s ease-in-out;
}

.contact-dropdown {
  gap: 2.5rem;
}

@media (max-width: 768px) {
  .work-dropdown,
  .contact-dropdown,
  .about-dropdown,
  .games-dropdown {
    position: fixed !important;
    top: calc(35vh + 80px) !important;
    left: 50% !important;
    transform: translate3d(-50%, 0, 0) !important;
    width: 90vw;
    max-width: 400px;
    transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out !important;
    -webkit-transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out !important;
    will-change: opacity, visibility;
    -webkit-backface-visibility: hidden;
  }

  .work-dropdown:not(.show),
  .contact-dropdown:not(.show),
  .about-dropdown:not(.show),
  .games-dropdown:not(.show) {
    transition: opacity 0.15s ease-out, visibility 0.15s ease-out !important;
    -webkit-transition: opacity 0.15s ease-out, visibility 0.15s ease-out !important;
    position: fixed !important;
    top: calc(35vh + 80px) !important;
    left: 50% !important;
    transform: translate3d(-50%, 0, 0) !important;
    will-change: opacity, visibility;
    -webkit-backface-visibility: hidden;
  }

  .mobile-break {
    display: block;
  }
}

/* Hide mobile breaks on desktop */
@media (min-width: 769px) {
  .mobile-break {
    display: none;
  }
}

.work-dropdown.show,
.contact-dropdown.show,
.about-dropdown.show,
.games-dropdown.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-item {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 1rem;
  padding: 0.8rem;
  cursor: pointer;
  transition: all 0.3s ease;
  border-radius: 8px;
  position: relative;
}

.folder-icon {
  width: 64px;
  height: 64px;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  filter: drop-shadow(1px 1px 3px rgba(0,0,0,0.6)) drop-shadow(0 0 10px rgba(128,128,128,0.6));
  transition: all 0.3s ease;
  -webkit-user-drag: none;
  user-select: none;
}

.folder-title {
  color: #fff;
  font-family: inherit;
  font-size: 1rem;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.6);
  transition: all 0.3s ease;
  margin-left: calc(50% + 32px + 0.5rem);
  white-space: nowrap;
}

.dropdown-item:hover,
.dropdown-item.keyboard-selected {
  transform: translateX(10px);
}

.dropdown-item:hover .folder-icon,
.dropdown-item.keyboard-selected .folder-icon {
  filter: drop-shadow(1px 1px 3px rgba(0,0,0,0.6)) drop-shadow(0 0 20px rgba(128,128,128,1)) brightness(1.8);
}

.dropdown-item:hover .folder-title,
.dropdown-item.keyboard-selected .folder-title {
  text-shadow: 1px 1px 3px rgba(0,0,0,0.8);
}

.dropdown-item:active {
  opacity: 0.7;
  transition: opacity 0.1s ease;
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
  .stage {
    padding-right: 2vw;
    align-items: center;
    text-align: center;
    justify-content: flex-start;
    padding-top: 25vh;
  }

  .logo {
    width: min(80vw, 400px);
  }

  .startup-header {
    padding: 0 3vw;
    margin-bottom: 2rem;
    flex-direction: row;
    gap: 1rem;
    align-items: flex-start;
    justify-content: space-between;
  }

  .startup-title {
    text-align: left;
    font-size: clamp(0.9rem, 2.5vw, 1.2rem);
  }

  .startup-datetime {
    text-align: right;
    font-size: clamp(0.8rem, 2vw, 1rem);
  }

  .startup-line.top {
    margin-bottom: 15vh;
  }

  .startup-line.bottom {
    margin-top: 15vh;
  }

  .main-menu {
    position: fixed;
    top: 35vh;
    bottom: auto;
    left: 2.5vw;
    right: 2.5vw;
    width: 95vw;
    transform: translate3d(0, -50%, 0);
    gap: 1rem;
    justify-content: space-evenly;
    flex-wrap: nowrap;
    transition: transform 0.5s ease !important;
    -webkit-transition: -webkit-transform 0.5s ease !important;
    will-change: transform;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    transform-style: preserve-3d;
    -webkit-transform-style: preserve-3d;
  }

  .main-menu.center-about {
    transform: translate3d(40%, -50%, 0) !important;
    -webkit-transform: translate3d(40%, -50%, 0) !important;
  }

  .main-menu.center-work {
    transform: translate3d(20%, -50%, 0) !important;
    -webkit-transform: translate3d(20%, -50%, 0) !important;
  }

  .main-menu.center-games {
    transform: translate3d(0%, -50%, 0) !important;
    -webkit-transform: translate3d(0%, -50%, 0) !important;
  }

  .main-menu.center-gallery {
    transform: translate3d(-20%, -50%, 0) !important;
    -webkit-transform: translate3d(-20%, -50%, 0) !important;
  }

  .main-menu.center-contact {
    transform: translate3d(-40%, -50%, 0) !important;
    -webkit-transform: translate3d(-40%, -50%, 0) !important;
  }

  .menu-button {
    padding: 0.8rem;
    flex: 1;
    max-width: 120px;
    min-height: 44px;
    min-width: 44px;
  }

  .menu-icon {
    width: 60px;
    height: 60px;
  }

  .menu-text {
    font-size: 0.9rem;
    opacity: 1;
    transform: translateY(0);
  }

  .menu-time {
    top: 1rem;
    right: 1rem;
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
  }

  .dropdown-item {
    padding: 1rem;
    margin: 0;
    background: transparent;
    backdrop-filter: none;
    border: none;
    border-radius: 0;
    min-height: 44px;
  }

  .folder-icon {
    width: 48px;
    height: 48px;
  }

  .folder-title {
    font-size: 0.95rem;
  }

  .dropdown-item:hover {
    transform: translateX(0) scale(1.02);
  }
}

@media (max-width: 480px) {
  .logo {
    width: min(90vw, 300px);
  }

  .main-menu {
    gap: 0.5rem;
    left: 1vw;
    right: 1vw;
    width: 98vw;
  }

  .menu-button {
    flex: 1;
    max-width: 100px;
    padding: 0.5rem;
    min-height: 44px;
    min-width: 44px;
  }

  .menu-icon {
    width: 45px;
    height: 45px;
  }

  .menu-text {
    font-size: 0.75rem;
  }

  .startup-message {
    margin: 1.5rem 1rem;
  }

  .dropdown-item {
    gap: 0.8rem;
    padding: 0.8rem;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    position: relative;
  }

  .folder-icon {
    width: 40px;
    height: 40px;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
  }

  .folder-title {
    font-size: 0.9rem;
    margin-left: calc(50% + 20px + 0.4rem);
  }
}

/* Gallery Screen Styles */
.gallery-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #000;
  display: none;
  flex-direction: column;
  z-index: 1000;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
  overflow-y: auto;
}

.gallery-screen::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url("bg.gif") center / cover no-repeat;
  opacity: 0.3;
  z-index: -1;
}

.gallery-screen.show {
  opacity: 1;
}

.gallery-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2rem;
  position: sticky;
  top: 0;
  background: rgba(0,0,0,0.8);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,0.1);
  z-index: 10;
  opacity: 0;
  transform: translateY(-20px);
  transition: opacity 0.6s ease-out 0.2s, transform 0.6s ease-out 0.2s;
}

.gallery-screen.show .gallery-header {
  opacity: 1;
  transform: translateY(0);
}

.gallery-title {
  color: #fff;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  font-weight: normal;
  margin: 0;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
}

.gallery-close {
  background: transparent;
  border: none;
  color: #fff;
  font-size: 2.5rem;
  cursor: pointer;
  padding: 0.5rem;
  transition: all 0.3s ease;
  line-height: 1;
}

.gallery-close:hover {
  transform: scale(1.2);
  text-shadow: 0 0 10px rgba(255,255,255,0.8);
}

.gallery-close:active {
  opacity: 0.7;
  transition: opacity 0.1s ease;
}

.gallery-loading {
  display: none;
  justify-content: center;
  align-items: center;
  padding: 4rem 2rem;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out 0.4s, transform 0.6s ease-out 0.4s;
}

.gallery-screen.show .gallery-loading {
  opacity: 1;
  transform: translateY(0);
}

.loading-text {
  color: #fff;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  font-size: clamp(0.9rem, 2.5vw, 1.1rem);
  text-shadow: 1px 1px 3px rgba(0,0,0,0.6);
  animation: loadingPulse 1.5s ease-in-out infinite;
  opacity: 1;
}

@keyframes loadingPulse {
  0%, 100% {
    opacity: 0.2;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.05);
  }
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  padding: 2rem;
  max-width: 1400px;
  margin: 0 auto;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out 0.4s, transform 0.6s ease-out 0.4s;
}

.gallery-screen.show .gallery-grid {
  opacity: 1;
  transform: translateY(0);
}

.gallery-item {
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  background: rgba(255,255,255,0.1);
}

.gallery-item:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 32px rgba(255,255,255,0.2);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.3s ease;
}

.gallery-item:hover img {
  transform: scale(1.1);
}

.gallery-item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.3s ease;
}

.gallery-item:hover video {
  transform: scale(1.1);
}

.gallery-item:active {
  opacity: 0.7;
  transition: opacity 0.1s ease;
}


/* Lightbox Styles */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.95);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
}

.lightbox.show {
  opacity: 1;
}

.lightbox-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-image,
.lightbox-video {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 8px;
}

.lightbox-close {
  position: absolute;
  top: -3rem;
  right: 0;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 2.5rem;
  cursor: pointer;
  padding: 0.5rem;
  transition: all 0.3s ease;
  line-height: 1;
}

.lightbox-close:hover {
  transform: scale(1.2);
  text-shadow: 0 0 10px rgba(255,255,255,0.8);
}

.lightbox-close:active {
  opacity: 0.7;
  transition: opacity 0.1s ease;
}

.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.5);
  border: none;
  color: #fff;
  font-size: 3rem;
  cursor: pointer;
  padding: 1rem;
  transition: all 0.3s ease;
  border-radius: 50%;
  width: 4rem;
  height: 4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.lightbox-prev {
  left: -5rem;
}

.lightbox-next {
  right: -5rem;
}

.lightbox-prev:hover,
.lightbox-next:hover {
  background: rgba(255,255,255,0.2);
  transform: translateY(-50%) scale(1.1);
}

.lightbox-prev:active,
.lightbox-next:active {
  opacity: 0.7;
  transition: opacity 0.1s ease;
}

@media (max-width: 1024px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
    max-width: 1200px;
  }
}

@media (max-width: 768px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
    padding: 1rem;
  }

  .gallery-header {
    padding: 1rem;
  }

  .gallery-title {
    font-size: clamp(1.2rem, 3vw, 1.8rem);
  }

  .gallery-close {
    font-size: 2rem;
  }

  .lightbox-prev {
    left: 1rem;
  }

  .lightbox-next {
    right: 1rem;
  }

  .lightbox-prev,
  .lightbox-next {
    font-size: 2rem;
    width: 3rem;
    height: 3rem;
  }

  .lightbox-close {
    top: -2.5rem;
    font-size: 2rem;
  }
}

@media (max-width: 480px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Disc Screen Styles */
.disc-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #000;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
}

.disc-screen::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url("bg.gif") center / cover no-repeat;
  opacity: 1;
  z-index: -1;
}

.disc-screen.show {
  opacity: 1;
}

.disc-content {
  position: relative;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out 0.2s, transform 0.6s ease-out 0.2s;
}

.disc-screen.show .disc-content {
  opacity: 1;
  transform: translateY(0);
}

.disc-line {
  width: 100%;
  height: 1px;
  background: #fff;
}

.disc-line.top {
  margin-bottom: 20vh;
}

.disc-line.bottom {
  margin-top: 20vh;
}

.disc-message {
  text-align: center;
  font-size: clamp(0.9rem, 2.5vw, 1.1rem);
  line-height: 1.6;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.6);
  margin: 2rem;
  color: #fff;
  font-family: inherit;
}

.go-back-button {
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
  padding: 0;
  background: transparent;
  border: none;
  color: #fff;
  font-family: inherit;
  font-size: 1rem;
  cursor: pointer;
  text-shadow: 0 0 5px rgba(255,255,255,0.3);
  transition: all 0.3s ease;
  position: relative;
}

.go-back-button:hover {
  text-shadow: 0 0 15px rgba(255,255,255,0.8), 0 0 30px rgba(255,255,255,0.5);
  transform: translateY(-2px);
  color: rgba(255,255,255,0.95);
}

.go-back-button:active {
  opacity: 0.7;
  transition: opacity 0.1s ease;
}

@media (max-width: 768px) {
  .disc-line.top {
    margin-bottom: 15vh;
  }

  .disc-line.bottom {
    margin-top: 15vh;
  }
}

/* Browser Modal Styles */
.browser-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 10001;
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
}

.browser-modal.show {
  opacity: 1;
}

.browser-window {
  width: 90vw;
  max-width: 1200px;
  height: 85vh;
  background: #000;
  border: 2px solid #d0d0d0;
  box-shadow: 0 0 12px rgba(208, 208, 208, 0.4);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transform: scale(0.9);
  transition: transform 0.3s ease-in-out;
}

.browser-modal.show .browser-window {
  transform: scale(1);
}

.browser-header {
  background: #000;
  border-bottom: 2px solid #d0d0d0;
  box-shadow: 0 0 8px rgba(208, 208, 208, 0.3);
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
}

.browser-close {
  background: transparent;
  border: none;
  color: #d0d0d0;
  font-size: 2rem;
  cursor: pointer;
  padding: 0;
  transition: all 0.3s ease;
  line-height: 1;
  flex-shrink: 0;
}

.browser-close:hover {
  transform: scale(1.2);
  text-shadow: 0 0 10px rgba(208, 208, 208, 0.8);
}

.browser-close:active {
  opacity: 0.7;
  transition: opacity 0.1s ease;
}

.browser-tab {
  background: transparent;
  padding: 0.4rem 1rem;
  border: 2px solid #d0d0d0;
  box-shadow: 0 0 6px rgba(208, 208, 208, 0.3);
  flex-shrink: 0;
}

.tab-text {
  color: #d0d0d0;
  font-size: 0.85rem;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  text-shadow: 0 0 5px rgba(208, 208, 208, 0.4);
}

.browser-url {
  flex: 1;
  background: transparent;
  padding: 0.4rem 1rem;
  border: 2px solid #d0d0d0;
  box-shadow: 0 0 6px rgba(208, 208, 208, 0.3);
  display: flex;
  align-items: center;
}

.url-text {
  color: #d0d0d0;
  font-size: 0.85rem;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  text-shadow: 0 0 5px rgba(208, 208, 208, 0.4);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.browser-content {
  flex: 1;
  background: #000;
  overflow-y: auto;
  overflow-x: hidden;
  position: relative;
}

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

@media (max-width: 768px) {
  .browser-modal {
    align-items: flex-start;
    padding: 0;
  }

  .browser-window {
    width: 100vw;
    height: 100vh;
    max-width: 100vw;
    max-height: 100vh;
    margin: 0;
  }

  .browser-header {
    padding: 0.5rem;
    gap: 0.5rem;
    align-items: center;
    position: relative;
    z-index: 10;
  }

  .browser-close {
    font-size: 1.5rem;
    align-self: center;
  }

  .browser-tab {
    display: none;
  }

  .tab-text,
  .url-text {
    font-size: 0.75rem;
  }

  .browser-url {
    padding: 0.3rem 0.6rem;
  }

  .browser-content {
    position: relative;
    z-index: 1;
  }
}

@media (max-width: 480px) {
  .browser-window {
    width: 100vw;
    height: 100vh;
    border: 2px solid #d0d0d0;
  }

  .browser-header {
    padding: 0.4rem 0.5rem;
    gap: 0.4rem;
  }

  .browser-tab {
    max-width: 80px;
    padding: 0.25rem 0.5rem;
  }

  .tab-text {
    font-size: 0.7rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .browser-url {
    padding: 0.25rem 0.5rem;
  }

  .url-text {
    font-size: 0.7rem;
  }

  .browser-close {
    font-size: 1.3rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .stage { transition: none; }
  .startup-screen { transition: none; }
  .startup-button { transition: none; }
  .main-menu { transition: none; }
  .menu-button { transition: none; }
  .menu-icon { transition: none; }
  .menu-text { transition: none; }
  .work-dropdown,
  .contact-dropdown,
  .about-dropdown,
  .games-dropdown { transition: none; }
  .dropdown-item { transition: none; }
  .folder-icon { transition: none; }
  .folder-title { transition: none; }
  .disc-screen { transition: none; }
  .go-back-button { transition: none; }
  .gallery-screen { transition: none; }
  .gallery-close { transition: none; }
  .gallery-item { transition: none; }
  .gallery-item img { transition: none; }
  .gallery-item video { transition: none; }
  .lightbox { transition: none; }
  .lightbox-close { transition: none; }
  .lightbox-prev { transition: none; }
  .lightbox-next { transition: none; }
  .loading-text { animation: none; opacity: 1; }
  .browser-modal { transition: none; }
  .browser-window { transition: none; }
}

/* Wikipedia Mock Styles */
.wiki-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  border-bottom: 1px solid #e5e7eb;
  background: #f8fafc;
}

.wiki-topbar__brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  letter-spacing: 0.3px;
  color: #1a1a1a;
}

.wiki-logo {
  width: 28px;
  height: 28px;
  display: block;
}

.wiki-topbar__search {
  flex: 1;
  max-width: 300px;
}

.wiki-topbar__search input {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  font-family: inherit;
  font-size: 14px;
  color: #1a1a1a;
  background: #ffffff;
}

.wiki-topbar__search input:focus {
  outline: 2px solid #2b6cb0;
  outline-offset: 0;
}

.wiki-page {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 22px;
  padding: 18px 16px 40px;
  background: #ffffff;
  min-height: calc(100% - 50px);
}

.wiki-article {
  min-width: 0;
}

.wiki-article__title {
  font-size: 32px;
  line-height: 1.2;
  margin: 6px 0 10px;
  color: #1a1a1a;
  font-weight: normal;
  font-family: 'Linux Libertine', 'Georgia', 'Times New Roman', serif;
}

.wiki-quote {
  font-style: italic;
}

.wiki-lead {
  font-size: 17px;
  color: #1a1a1a;
  line-height: 1.6;
}

.wiki-article a {
  color: #0645ad;
  text-decoration: none;
}

.wiki-article a:hover {
  text-decoration: underline;
}

.wiki-edit {
  font-size: 14px;
  margin-left: 8px;
  color: #6b7280;
}

.wiki-edit:focus,
.wiki-edit:hover {
  color: #0645ad;
}

.wiki-toc {
  border: 1px solid #e5e7eb;
  background: #f9fafb;
  padding: 10px 12px;
  margin: 12px 0 14px;
  border-radius: 6px;
  font-size: 14px;
}

.wiki-toc-title {
  font-weight: 700;
  margin-bottom: 8px;
  color: #1a1a1a;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

.wiki-toc-link {
  display: block;
  padding: 2px 0;
  color: #0645ad;
  text-decoration: none;
}

.wiki-toc-link:hover {
  text-decoration: underline;
}

.wiki-toc-link.active {
  font-weight: 700;
  color: #2b6cb0;
}

.wiki-section {
  margin: 26px 0;
  color: #1a1a1a;
}

.wiki-section__title {
  border-bottom: 1px solid #e5e7eb;
  font-weight: normal;
  padding-bottom: 6px;
  margin: 18px 0 12px;
  color: #1a1a1a;
  font-size: 24px;
  font-family: 'Linux Libertine', 'Georgia', 'Times New Roman', serif;
}

.wiki-section p {
  line-height: 1.6;
  margin: 0 0 12px;
  color: #1a1a1a;
}

.wiki-figure {
  margin: 8px 0 10px;
}

.wiki-figure--right {
  float: right;
  max-width: 180px;
  margin-left: 16px;
  margin-bottom: 10px;
}

.wiki-figure--wide {
  clear: both;
  margin: 16px 0;
  max-width: 350px;
}

.wiki-sneaker-container {
  display: flex;
  gap: 16px;
  margin: 16px 0;
  flex-wrap: wrap;
}

.wiki-figure--inline {
  flex: 1;
  min-width: 150px;
  max-width: 180px;
  display: flex;
  flex-direction: column;
  height: 260px;
}

.wiki-figure--inline img {
  width: 100%;
  flex: 1;
  object-fit: cover;
  display: block;
  border: 1px solid #e5e7eb;
  border-bottom: 0;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.wiki-figure--inline img:hover {
  opacity: 0.8;
}

.wiki-figure--inline figcaption {
  flex-shrink: 0;
}

@media (min-width: 1024px) {
  .wiki-figure--inline {
    height: 310px;
  }
}

.wiki-figure--wide img {
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid #e5e7eb;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.wiki-figure--wide img:hover {
  opacity: 0.8;
}

.wiki-figure img {
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid #e5e7eb;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.wiki-figure img:hover {
  opacity: 0.8;
}

.wiki-figure figcaption {
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
  border-top: 0;
  padding: 6px 8px;
  font-size: 12px;
  color: #6b7280;
}

.wiki-infobox {
  height: fit-content;
  padding: 0;
}

.infobox-table {
  width: 100%;
  border: 1px solid #e5e7eb;
  background: #f8fafc;
  border-radius: 8px;
  border-collapse: separate;
  overflow: hidden;
}

.infobox-table .infobox-above {
  background: #eee;
  font-size: 20px;
  font-weight: 700;
  text-align: center;
  padding: 10px 8px;
  border-bottom: 1px solid #e5e7eb;
  color: #1a1a1a;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

.infobox-table .infobox-image {
  text-align: center;
  padding: 8px 8px 0 8px;
}

.infobox-table .infobox-image img {
  width: 100%;
  height: auto;
  max-width: 250px;
  border: 1px solid #e5e7eb;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.infobox-table .infobox-image img:hover {
  opacity: 0.8;
}

.infobox-table .infobox-caption {
  font-size: 12px;
  color: #6b7280;
  padding: 6px 8px 10px 8px;
  border-bottom: 1px solid #e5e7eb;
  text-align: center;
}

.infobox-label {
  width: 36%;
  vertical-align: top;
  padding: 8px;
  font-weight: 600;
  border-bottom: 1px solid #e5e7eb;
  color: #1a1a1a;
}

.infobox-data {
  width: 64%;
  padding: 8px;
  border-bottom: 1px solid #e5e7eb;
  color: #1a1a1a;
}

.infobox-header {
  text-align: center;
  background: #f1f5f9;
  padding: 6px 8px;
  border-top: 1px solid #e5e7eb;
  border-bottom: 1px solid #e5e7eb;
  font-weight: 600;
  color: #1a1a1a;
}

.infobox-full-data {
  text-align: center;
  padding: 10px 8px;
}

.infobox-projects {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.infobox-projects div {
  line-height: 1.6;
  color: #1a1a1a;
}

.hlist ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.hlist li {
  display: inline;
}

.hlist li::after {
  content: " · ";
  font-weight: bold;
}

.hlist li:last-child::after {
  content: "";
}

.infobox-table a {
  text-decoration: none;
  color: #0645ad;
}

.infobox-table a:hover {
  text-decoration: underline;
}

.wiki-refs {
  clear: both;
}

.wiki-refs__list {
  padding-left: 22px;
  color: #1a1a1a;
  line-height: 1.6;
}

.wiki-refs__list li {
  margin: 8px 0;
  font-size: 14px;
}

.wiki-ref {
  cursor: pointer;
  color: #0645ad;
  font-size: 11px;
  vertical-align: super;
  line-height: 0;
}

.wiki-footer {
  border-top: 1px solid #e5e7eb;
  color: #6b7280;
  font-size: 12px;
  padding: 16px;
  text-align: center;
  background: #f8fafc;
}

.back-to-top {
  color: #0645ad;
  text-decoration: none;
  font-size: 14px;
}

.back-to-top:hover {
  text-decoration: underline;
}

mark {
  background: #fff3a6;
  padding: 0;
}

.wiki-section.flash {
  animation: wikiFlash 0.8s;
}

@keyframes wikiFlash {
  0% { background: #fff7c2; }
  100% { background: transparent; }
}

@media (max-width: 1023px) {
  .wiki-page {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-areas:
      "article"
      "infobox";
  }

  .wiki-article {
    grid-area: article;
    display: contents;
  }

  .wiki-article__title {
    order: 1;
  }

  .wiki-lead {
    order: 2;
  }

  .wiki-infobox {
    order: 3;
  }

  .wiki-toc {
    order: 4;
  }

  .wiki-section {
    order: 5;
  }

  .wiki-infobox {
    max-width: 350px;
    margin: 16px auto;
  }

  .infobox-table .infobox-image img {
    max-width: 200px;
  }

  .wiki-figure--right {
    max-width: 150px;
    float: none;
    margin: 8px auto;
  }

  .wiki-figure--wide {
    max-width: 300px;
  }

  .wiki-figure--inline {
    max-width: 150px;
    min-width: 120px;
  }
}

@media (max-width: 767px) {
  .wiki-topbar {
    padding: 8px 10px;
    gap: 8px;
  }

  .wiki-topbar__brand {
    font-size: 14px;
    gap: 6px;
  }

  .wiki-logo {
    width: 24px;
    height: 24px;
  }

  .wiki-topbar__search {
    max-width: 200px;
  }

  .wiki-topbar__search input {
    padding: 6px 8px;
    font-size: 13px;
  }

  .wiki-page {
    padding: 12px 10px 30px;
    gap: 16px;
  }

  .wiki-article__title {
    font-size: 24px;
  }

  .wiki-lead {
    font-size: 15px;
  }

  .wiki-section__title {
    font-size: 20px;
  }

  .wiki-figure--right {
    float: right;
    margin: 0 0 8px 12px;
    max-width: 150px;
  }

  .wiki-infobox {
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  .wiki-article__title {
    font-size: 20px;
  }

  .wiki-section__title {
    font-size: 18px;
  }

  .wiki-topbar__search {
    max-width: 150px;
  }
}

/* Wiki Lightbox */
.wiki-lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 10002;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.wiki-lightbox.show {
  opacity: 1;
}

.wiki-lightbox-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.wiki-lightbox-image {
  max-width: 100%;
  max-height: calc(90vh - 60px);
  object-fit: contain;
  border-radius: 4px;
}

.wiki-lightbox-caption {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  color: #ffffff;
  background: rgba(0, 0, 0, 0.85);
  padding: 10px 20px;
  border-radius: 6px;
  font-size: 14px;
  text-align: center;
  max-width: 85vw;
  z-index: 10003;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.wiki-lightbox-close {
  position: absolute;
  top: -3rem;
  right: 0;
  background: transparent;
  border: none;
  color: #ffffff;
  font-size: 2.5rem;
  cursor: pointer;
  padding: 0.5rem;
  transition: all 0.3s ease;
  line-height: 1;
}

.wiki-lightbox-close:hover {
  transform: scale(1.2);
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
}

.wiki-lightbox-close:active {
  opacity: 0.7;
}

@media (max-width: 768px) {
  .wiki-lightbox-close {
    top: 1rem;
    right: 1rem;
    font-size: 2rem;
  }

  .wiki-lightbox-caption {
    font-size: 13px;
    padding: 8px 16px;
    bottom: 15px;
    max-width: calc(100vw - 2rem);
  }

  .wiki-lightbox-image {
    max-height: calc(90vh - 80px);
  }

  .wiki-lightbox-content {
    max-height: 95vh;
    padding: 1rem;
  }
}