/* ===========================
   ICE on the EDGE - Immersive Layout
   =========================== */

/* External link icons: color overrides only (structure from style.css) */

/* Scroll Snap */
.iote-content {
  scroll-snap-type: y mandatory;
  overflow-y: auto;
  height: 100vh;
  height: 100dvh;
  scroll-behavior: smooth;
  position: relative;
  z-index: 2;
  color: #fff;
}

.iote-hero,
.iote-section {
  scroll-snap-align: start;
  position: relative;
}

/* Background Video */
.iote-bg-video {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
  background: #000;
}

.iote-bg-video video {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  object-fit: cover;
}

.iote-bg-video::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.3);
  box-shadow: inset 0 0 50px rgba(0, 0, 0, 0.5);
  z-index: 1;
}

/* Loading Screen */
.iote-loading {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  background: #000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s ease;
}

.iote-loading-text {
  width: 180px;
  height: auto;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 16px;
}

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

.iote-progress {
  width: 200px;
  height: 2px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 1px;
  overflow: hidden;
}

.iote-progress-bar {
  width: 0%;
  height: 100%;
  background: rgba(255, 255, 255, 0.8);
  transition: width 0.2s ease;
}

/* Hide header & footer on IOTE page */
.iote-page .header,
.iote-page .footer {
  display: none;
}

.iote-page body,
body.iote-page {
  background: #000;
}

/* Hero */
.iote-hero {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 120px 24px 80px;
  text-align: center;
}

.iote-title {
  margin-bottom: 32px;
  text-align: center;
}

.iote-logo {
  max-width: 720px;
  width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

/* SNS Links */
.iote-social {
  display: flex;
  gap: 40px;
  justify-content: center;
  flex-wrap: wrap;
}

.iote-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.6;
  transition: opacity 0.2s, transform 0.2s;
}

.iote-social a:hover {
  opacity: 1;
  transform: scale(1.1);
}

.iote-social a img {
  width: 3.75rem;
  height: 3.75rem;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

/* Sections */
.iote-section {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 24px;
  text-align: center;
  width: 100%;
}

.iote-section.iote-section-compact {
  min-height: 100vh;
  min-height: 100dvh;
}

.iote-section > *:not(.iote-scroll-hint) {
  width: 100%;
  max-width: 720px;
}

.iote-section-label {
  font-size: var(--font-lg);
  font-weight: 100;
  letter-spacing: 0.2em;
  margin-bottom: 8px;
  opacity: 0.85;
}

/* Trailer */
.iote-trailer {
  max-width: 720px;
  margin: 0 auto;
}

/* Poster (thumbnail before play) */
.iote-trailer-poster {
  position: relative;
  cursor: pointer;
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-heavy);
}

.iote-trailer-poster img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.3s;
}

.iote-trailer-poster:hover img {
  transform: scale(1.02);
}

.iote-trailer-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: none;
  border: none;
  cursor: pointer;
  opacity: 0.85;
  transition: opacity 0.2s, transform 0.2s;
}

.iote-trailer-poster:hover .iote-trailer-play {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1.1);
}

/* Trailer Modal */
.iote-trailer-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}

.iote-trailer-modal.show {
  opacity: 1;
  visibility: visible;
}

.iote-trailer-modal__overlay {
  position: absolute;
  inset: 0;
  background: #000;
}

.iote-trailer-modal__content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  max-width: 100vw;
  max-height: 90vh;
  aspect-ratio: 16 / 9;
}

.iote-trailer-modal__content iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.iote-trailer-modal__close {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  border: none;
  color: #fff;
  font-size: 1.25rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.iote-trailer-modal__close:hover {
  background: rgba(255, 255, 255, 0.3);
}


/* News */
.iote-news {
  max-width: 720px;
  margin: 0 auto;
  text-align: left;
}

.iote-news .news-item {
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  color: #000;
  padding: 14px 12px;
}

.iote-news .news-item:last-child {
  border-bottom: none;
}

.iote-news .news-category {
  display: none;
}

.iote-news .news-date {
  font-size: var(--font-sm);
  color: var(--text-sub);
  opacity: 1;
}

.iote-news .news-arrow {
  color: rgba(0, 0, 0, 0.3);
}

.iote-news .news-item:hover .news-arrow {
  color: rgba(0, 0, 0, 0.6);
}

/* Card */
.iote-card {
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-heavy);
  padding: 20px 32px 32px;
  margin: 0 auto;
  max-width: 720px;
  color: #000;
  text-align: left;
}

.iote-card table {
  width: 100%;
  border-collapse: collapse;
}

.iote-card th,
.iote-card td {
  padding: 10px 12px;
  font-size: var(--font-sm);
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  vertical-align: top;
}

.iote-card tr:last-child th,
.iote-card tr:last-child td {
  border-bottom: none;
}

.iote-card th {
  font-weight: 600;
  color: #666;
  white-space: nowrap;
  width: 120px;
}

.iote-footer-links a[target="_blank"]::after {
  background-color: rgba(255, 255, 255, 0.5);
}

.iote-footer-links a[target="_blank"]:hover::after {
  background-color: #fff;
}

.iote-card-note {
  text-align: center;
  font-size: var(--font-md);
  color: rgba(255, 255, 255, 0.5);
  margin-top: 16px;
}

/* Footer area */
.iote-product-footer {
  margin-top: 48px;
  padding: 32px;
  border-radius: var(--radius-card);
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  box-shadow: var(--shadow-heavy);
}

.iote-footer-logo {
  margin-bottom: 24px;
}

.iote-footer-logo img {
  height: 35px;
  margin: 0 auto;
  filter: brightness(0) invert(1);
}

.iote-footer-links {
  display: flex;
  gap: 24px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.iote-footer-links a {
  font-size: var(--font-sm);
  color: rgba(255, 255, 255, 0.5);
  transition: color 0.2s;
}

.iote-footer-links a:hover {
  color: #fff;
}

.iote-copyright {
  font-size: var(--font-sm);
  color: rgba(255, 255, 255, 0.3);
}

/* Section dot nav — desktop only */
.iote-section-nav {
  display: none;
}

/* Mobile scroll cue — hidden, replaced by nav buttons */
.iote-scroll-cue {
  display: none;
}

/* Scroll nav button */
.iote-mobile-nav-wrap {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 5%;
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.iote-jump-label {
  font-size: var(--font-md);
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #fff;
  margin-bottom: 8px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.iote-jump-label.visible {
  opacity: 1;
}

.iote-jump-label.float-up {
  animation: iote-float-up 2s ease-out forwards;
}

/* Ice particles */
.iote-particles {
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  pointer-events: none;
}

.iote-particle {
  position: absolute;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.8);
  animation: iote-particle 1s ease-out forwards;
}

@keyframes iote-particle {
  0% {
    opacity: 1;
    transform: translate(0, 0) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(var(--px), var(--py)) scale(0);
  }
}

@keyframes iote-float-up {
  0% {
    opacity: 1;
    transform: translateY(0);
  }
  100% {
    opacity: 0;
    transform: translateY(-40px);
  }
}

.iote-mobile-nav {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.iote-mobile-nav:hover {
  background: rgba(255, 255, 255, 0.3);
}

.iote-mobile-nav .icon {
  font-size: 1.25rem;
}

.iote-mobile-nav.spinning {
  animation: iote-quad 1s ease-in-out;
}

@keyframes iote-quad {
  from { transform: rotate(0deg); }
  to { transform: rotate(-1440deg); }
}

/* Section scroll hints */
.iote-scroll-hint {
  display: none;
  justify-content: center;
  position: absolute;
  left: 0;
  right: 0;
}

.iote-scroll-hint.top {
  top: 5vh;
}

.iote-scroll-hint.bottom {
  bottom: 5vh;
}

.iote-scroll-hint a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.iote-scroll-hint a:hover {
  background: rgba(255, 255, 255, 0.3);
}

.iote-scroll-hint .icon {
  font-size: 1.25rem;
}

/* Language Switcher */
.iote-lang {
  display: flex;
  gap: 8px;
  justify-content: center;
  align-items: center;
  font-size: var(--font-md);
  font-weight: 700;
  letter-spacing: 0.1em;
}

.iote-lang a,
.iote-lang span {
  color: rgba(255, 255, 255, 0.4);
  transition: color 0.2s;
}

.iote-lang a:hover,
.iote-lang a.active,
.iote-lang span.active {
  color: #fff;
  -webkit-text-fill-color: #fff;
}

/* Underline: color override only (structure from shared component) */
.iote-lang a::after,
.iote-lang span::after,
.iote-news .pagination-num::after,
.iote-section .pagination-num::after {
  background: #fff;
}

.iote-lang > [data-icon] {
  color: rgba(255, 255, 255, 0.4);
  font-size: 1.25rem;
  margin-right: 8px;
}

.iote-lang-sep {
  color: rgba(255, 255, 255, 0.2);
}

/* Steam CTA */
.iote-cta {
  display: flex;
  justify-content: center;
  margin-top: 32px;
}

.iote-cta a {
  transition: transform 0.2s;
}

.iote-cta a:hover {
  transform: scale(1.03);
}

.iote-cta img {
  width: 320px;
  height: auto;
}

/* Pagination (dark context) */
.iote-section .pagination {
  margin-top: 0;
  padding: 8px 0;
}

.iote-news .pagination-ellipsis {
  color: #666;
  font-size: var(--font-md);
}

.iote-news .pagination-num {
  font-size: var(--font-md);
  color: #666;
  -webkit-text-fill-color: #666;
}

.iote-news .pagination-num:hover,
.iote-news .pagination-num.active {
  color: #fff;
  -webkit-text-fill-color: #fff;
  background: none;
}


/* IOTE Responsive */
@media (max-width: 768px) {
  .iote-content {
    scroll-snap-type: none;
  }

  .iote-hero,
  .iote-section {
    scroll-snap-align: none;
  }

  .iote-hero {
    padding: 80px 24px 60px;
  }

  .iote-section {
    padding: 60px 24px;
  }

  .iote-social a img {
    width: 3rem;
    height: 3rem;
  }


  .iote-scroll-hint a {
    min-width: 44px;
    min-height: 44px;
  }

  .iote-scroll-hint .icon {
    font-size: var(--font-md);
  }

.iote-scroll-hint.top {
    top: 3vh;
  }

  .iote-scroll-hint.bottom {
    bottom: 3vh;
  }

  .iote-cta img {
    width: 260px;
  }

  .iote-footer-links {
    gap: 16px;
  }
}

@media (max-width: 480px) {
  .iote-hero {
    padding: 60px 16px 48px;
  }

  .iote-section {
    padding: 48px 16px;
  }

  .iote-card {
    padding: 16px 16px 24px;
  }

  .iote-social {
    gap: 16px;
  }

  .iote-social a img {
    width: 2.5rem;
    height: 2.5rem;
  }

  .iote-cta img {
    width: 220px;
  }

  .iote-section-label {
    font-size: 1.25rem;
  }

  .iote-footer-links {
    flex-direction: column;
    gap: 12px;
  }
}
