* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

html::-webkit-scrollbar {
  display: none;
}

body {
  min-height: 100%;
  margin: 0;
  background: #005aff;
  font-family: Arial, Helvetica, sans-serif;
  overflow-x: hidden;
}

.page-shell {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  width: 100%;
  background: #005aff;
}

.center-logo {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 0;
  width: min(70vmin, 720px);
  max-width: 86vw;
  transform: translate(-50%, -50%);
  user-select: none;
  pointer-events: none;
}

.top-nav {
  position: sticky;
  top: 16px;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  width: min(1100px, 92%);
  height: 64px;
  min-height: 64px;
  margin: 16px auto 0;
  padding: 0 24px;
  border-radius: 16px;
  background: #0000008c;
  transform: perspective(1200px) rotateX(-10deg);
}

.nav-item {
  padding: 8px 16px;
  border-radius: 10px;
  color: #ffffff;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transform: perspective(600px) rotateX(-10deg);
}

.nav-item:hover,
.nav-item.active {
  background: #ffffff1f;
}

.content-space {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(1400px, 96%);
  margin: 0 auto;
  padding: 32px 0;
  perspective: 1200px;
}

.center-panel {
  position: relative;
  z-index: 1;
  transform: translateY(-1.5%) rotateX(10deg);
  transition: transform 0.15s ease-out;
  will-change: transform;
  width: 100%;
  height: auto;
  min-height: 45vh;
  border-radius: 16px;
  background: #0000008c;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 32px 48px;
  text-align: left;
  color: #ffffff;
}

.center-panel.settling {
  transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.panel-view {
  width: 100%;
  height: 100%;
}

.panel-view[hidden] {
  display: none;
}

.preview-view {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
}

.preview-info {
  align-self: flex-start;
}

.preview-media {
  position: relative;
  max-width: 46%;
  max-height: 100%;
}

.preview-image {
  display: block;
  max-width: 100%;
  max-height: 100%;
  border-radius: 12px;
  object-fit: contain;
}

.fullscreen-btn {
  position: absolute;
  bottom: 10px;
  right: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  border: none;
  border-radius: 8px;
  background: #0000008c;
  color: #ffffff;
  cursor: pointer;
}

.fullscreen-btn:hover {
  background: #005aff;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000000a6;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  cursor: pointer;
}

.lightbox[hidden] {
  display: none;
}

.lightbox {
  animation: lightbox-fade 0.45s ease-out;
}

.lightbox.closing {
  animation: lightbox-fade-out 0.45s ease-out forwards;
}

@keyframes lightbox-fade-out {
  from {
    background: #000000a6;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
  }
  to {
    background: #00000000;
    backdrop-filter: blur(0px);
    -webkit-backdrop-filter: blur(0px);
  }
}

.lightbox-image {
  max-width: 88vw;
  max-height: 88vh;
  border-radius: 12px;
  will-change: transform;
}

.lightbox-close {
  position: absolute;
  top: 24px;
  right: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  border: none;
  border-radius: 10px;
  background: #0000008c;
  color: #ffffff;
  cursor: pointer;
}

.lightbox-close:hover {
  background: #005aff;
}

@keyframes lightbox-fade {
  from {
    background: #00000000;
    backdrop-filter: blur(0px);
    -webkit-backdrop-filter: blur(0px);
  }
  to {
    background: #000000a6;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
  }
}


.center-panel.swoosh-out {
  animation: swoosh-out 0.35s ease-in forwards;
}

.center-panel.swoosh-in {
  animation: swoosh-in 0.35s ease-out;
}

@keyframes swoosh-out {
  from {
    transform: translateY(-1.5%) rotateX(10deg);
    opacity: 1;
  }
  to {
    transform: translateY(90%) rotateX(10deg);
    opacity: 0;
  }
}

@keyframes swoosh-in {
  from {
    transform: translateY(90%) rotateX(10deg);
    opacity: 0;
  }
  to {
    transform: translateY(-1.5%) rotateX(10deg);
    opacity: 1;
  }
}

.dev-badge {
  position: fixed;
  bottom: 16px;
  right: 24px;
  z-index: 20;
  margin: 0;
  color: #ffffff;
  font-size: 16px;
  font-weight: bold;
  pointer-events: none;
  user-select: none;
}

.dev-dots span {
  animation: dev-dot-blink 1.4s infinite;
}

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

.dev-dots span:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes dev-dot-blink {
  0%,
  60%,
  100% {
    opacity: 0;
  }
  30% {
    opacity: 1;
  }
}

.scroll-indicator {
  position: fixed;
  bottom: 20px;
  left: 50%;
  z-index: 20;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  pointer-events: none;
  user-select: none;
}

.scroll-indicator[hidden] {
  display: none;
}

.scroll-mouse {
  display: flex;
  justify-content: center;
  width: 26px;
  height: 42px;
  border: 2px solid #ffffff;
  border-radius: 14px;
}

.scroll-wheel {
  width: 4px;
  height: 9px;
  margin-top: 6px;
  border-radius: 2px;
  background: #ffffff;
  animation: scroll-wheel 1.6s ease-in-out infinite;
}

@keyframes scroll-wheel {
  0%,
  100% {
    transform: translateY(0);
    opacity: 1;
  }
  50% {
    transform: translateY(13px);
    opacity: 0.35;
  }
}

.scroll-arrow {
  width: 8px;
  height: 8px;
  border-right: 2px solid #ffffff;
  border-bottom: 2px solid #ffffff;
  animation: scroll-arrow-pulse 1.6s ease-in-out infinite;
}

.scroll-arrow.up {
  transform: rotate(-135deg);
}

.scroll-arrow.down {
  transform: rotate(45deg);
}

@keyframes scroll-arrow-pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.3;
  }
}

.panel-title {
  margin: 0 0 16px;
  font-size: 40px;
}

.panel-text {
  max-width: 820px;
  margin: 0;
  font-size: 18px;
  font-weight: bold;
  line-height: 1.7;
  color: #ffffffd9;
}

.panel-list {
  margin: 16px 0 0;
  padding-left: 24px;
  font-size: 18px;
  font-weight: bold;
  line-height: 1.7;
  color: #ffffffd9;
}

.panel-button {
  position: absolute;
  top: 50%;
  right: 48px;
  transform: translateY(-50%);
  padding: 14px 28px;
  border: none;
  border-radius: 12px;
  background: #ffffff1f;
  color: #ffffff;
  font-size: 16px;
  font-weight: bold;
  font-family: inherit;
  cursor: pointer;
}

.panel-button:hover {
  background: #005aff;
}

.volume-btn {
  position: absolute;
  top: 50%;
  right: 16px;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  border: none;
  border-radius: 10px;
  background: none;
  color: #ffffff;
  cursor: pointer;
}

.volume-btn:hover {
  background: #ffffff1f;
}

.volume-btn svg[hidden] {
  display: none;
}

@media (max-width: 768px) {
  .page-shell {
    min-height: 100dvh;
  }

  .top-nav {
    gap: 4px;
    width: 94%;
    height: 56px;
    min-height: 56px;
    padding: 0 48px 0 8px;
  }

  .nav-item {
    padding: 6px 10px;
    font-size: 13px;
  }

  .volume-btn {
    right: 8px;
  }

  .content-space {
    width: 94%;
    padding: 24px 0;
  }

  .center-panel {
    height: auto;
    min-height: 45vh;
    padding: 24px 20px;
  }

  .panel-title {
    font-size: 28px;
  }

  .panel-text,
  .panel-list {
    font-size: 15px;
  }

  .panel-button {
    position: static;
    transform: none;
    margin-top: 20px;
    padding: 12px 20px;
    font-size: 14px;
  }

  .preview-view {
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
  }

  .preview-media {
    max-width: 100%;
  }

  .preview-image {
    width: 100%;
  }

  .lightbox-image {
    max-width: 94vw;
  }

  .lightbox-close {
    top: 16px;
    right: 16px;
  }

  .dev-badge {
    right: 16px;
    bottom: 12px;
    font-size: 12px;
  }

  .scroll-indicator {
    bottom: 12px;
    transform: translateX(-50%) scale(0.85);
  }
}
