/* Exact CSS replica of stripchat.xfras.com (Xfras Live Landing) */

:root {
  --primary: #a855f7;
  --primary-rgb: 168, 85, 247;
  --primary-dark: #9333ea;
  --primary-dark-rgb: 147, 51, 234;
  --purple-border: rgba(168, 85, 247, 0.4);
  --btn-gradient: linear-gradient(135deg, #9333ea, #a855f7);
  --cta-color: #a855f7;
  --title-color: #a855f7;
  --desc-color: #c084fc;
  --bg-color: #1a1a1a;
  --bg-light: #222222;
  --loading-color: #d8b4fe;
  --login-gradient: linear-gradient(
    135deg,
    rgba(30, 10, 60, 0.85),
    rgba(60, 20, 100, 0.8) 25%,
    rgba(147, 51, 234, 0.3) 50%,
    rgba(168, 85, 247, 0.2) 75%,
    rgba(216, 180, 254, 0.15)
  );
  --error-red: #ff4d4d;
  --gold: #ffd700;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: var(--bg-color);
  color: #fff;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  overflow-x: hidden;
}

.container {
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 15px;
  display: flex;
  flex-direction: column;
}

.header {
  margin-top: 10px;
}

.description {
  color: var(--desc-color);
  font-size: 24px;
  text-align: center;
  margin-top: 100px;
  font-weight: 500;
}

.main-image-section {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 200vh;
  height: 200dvh;
  z-index: -1;
  overflow: hidden;
}

.scrolling-images {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 200%;
  animation: 30s linear infinite scrollBackground;
  will-change: transform;
}

.scrolling-image {
  width: 100%;
  height: 12.5%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
}

.scrolling-image::after {
  color: rgba(255, 255, 255, 0.3);
  font-size: 14px;
  text-align: center;
}

@keyframes scrollBackground {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(-50%);
  }
}

.left-container {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(calc(-50% + 5px));
  z-index: 9;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  width: auto;
}

.title-text {
  width: auto;
  min-width: 300px;
  white-space: nowrap;
  margin-right: auto;
  color: var(--title-color);
  font-style: italic;
  font-size: 42px;
  font-weight: 900;
  text-align: center;
  text-shadow: 0 4px 8px rgba(0, 0, 0, 0.7);
  letter-spacing: 2px;
  margin-left: 30px;
  font-family: Montserrat, sans-serif;
}

.left-image-text-container {
  display: flex;
  align-items: center;
  gap: 15px;
  width: 100vw;
  position: relative;
  left: -50%;
  margin-left: 50%;
  padding-left: 20px;
  padding-right: 20px;
}

.left-image {
  width: 60px;
  height: 60px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
  transition: transform 0.25s ease;
}

.left-image:hover {
  transform: scale(1.1);
}

.left-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.placeholder-avatar {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #667eea 0, #764ba2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: #fff;
}

.text-label {
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  font-style: italic;
  font-family: "Comic Sans MS", "Comic Sans", cursive;
  line-height: 1.4;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  flex: 1;
  text-align: left;
}

.thumbnails {
  position: fixed;
  bottom: 65px;
  left: 0;
  width: 100%;
  display: flex;
  gap: 5px;
  z-index: 5;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
}

.thumbnails::-webkit-scrollbar {
  display: none;
}

.thumbnails-container {
  display: flex;
  flex-shrink: 0;
  width: max-content;
  gap: 5px;
  animation: 20s linear infinite scroll;
  will-change: transform;
}

@keyframes scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.thumbnail {
  width: 120px;
  height: 200px;
  flex-shrink: 0;
  border-radius: 16px;
  object-fit: cover;
  border: none;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.5);
  transition: transform 0.3s;
}

.thumbnail-placeholder {
  width: 120px;
  height: 200px;
  border-radius: 16px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.5);
  transition: transform 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
  text-align: center;
  padding: 10px;
  flex-shrink: 0;
}

.thumbnail-placeholder:hover,
.thumbnail:hover {
  transform: scale(1.05);
}

.download-button {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  background: var(--cta-color);
  border: none;
  border-radius: 30px;
  cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s;
  animation: 2s infinite pulse;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 300px;
  height: 95px;
  padding: 0 24px;
  box-shadow: 0 8px 25px rgba(255, 215, 0, 0.4);
  touch-action: manipulation;
}

.download-button::before {
  content: var(--btn-text, "Android 版をダウンロード");
  color: #fff;
  font-size: 24px;
  font-weight: 900;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  letter-spacing: 1px;
  line-height: 1.4;
  position: relative;
  top: -5px;
}

.download-button:hover {
  transform: translateX(-50%) scale(1.05);
  box-shadow: 0 12px 35px rgba(255, 215, 0, 0.6);
}

.download-button:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

@keyframes pulse {
  0%,
  100% {
    transform: translateX(-50%) scale(1);
  }
  50% {
    transform: translateX(-50%) scale(1.05);
  }
}

@media (min-width: 768px) {
  .main-image-section {
    left: 50%;
    transform: translateX(-50%);
    width: 400px;
  }

  .scrolling-images {
    animation: 30s linear infinite scrollBackgroundDesktop;
  }

  .container {
    width: 400px;
    margin: 0 auto;
  }

  body {
    display: flex;
    justify-content: center;
  }

  .left-container {
    left: 50%;
    transform: translateX(calc(-50% + 5px));
  }

  .title-text {
    font-size: 48px;
    margin-left: 40px;
  }

  .left-image-text-container {
    width: 400px;
    left: 0;
    margin-left: 0;
    padding-left: 0;
    padding-right: 0;
  }

  .left-image {
    width: 70px;
    height: 70px;
  }

  .text-label {
    font-size: 16px;
  }

  .thumbnails {
    left: 50%;
    transform: translateX(-50%);
    width: 400px;
    bottom: 80px;
  }

  .download-button {
    height: 80px;
    min-width: 350px;
  }

  .download-button::before {
    font-size: 36px;
  }
}

@keyframes scrollBackgroundDesktop {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(-50%);
  }
}

.xfras-in-app .download-button {
  display: none;
}

.toast-banner {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 30;
  max-width: min(92vw, 460px);
  padding: 10px 16px;
  border-radius: 10px;
  background: rgba(20, 20, 24, 0.92);
  border: 1px solid var(--purple-border);
  color: #fff;
  font-size: 13px;
  line-height: 1.4;
  word-break: break-all;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
}
