/* Motion, video, signup, ideas. Reduced motion and data-saver are handled in shell.js. */

.hero-banner {
  position: relative;
  height: 250px;
  margin: 4px 0 14px;
  border-radius: 22px;
  overflow: hidden;
  background: #1c1915;
}

.hero-banner .hero-poster,
.hero-banner .hero-loop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 62%;
}

.hero-banner .hero-loop {
  opacity: 0;
}

.hero-banner .hero-loop.is-playing {
  opacity: 1;
}

.hero-caption {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 10px;
  margin: 0;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(20, 16, 12, 0.72);
  color: #f6f1e8;
  font-size: 13px;
  font-weight: 650;
}

.shorts {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 148px;
  gap: 10px;
  margin: 8px -20px 8px;
  padding: 0 20px 8px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  list-style: none;
}

.shorts::-webkit-scrollbar {
  height: 0;
}

.short {
  appearance: none;
  scroll-snap-align: start;
  width: 148px;
  min-height: 210px;
  padding: 0;
  border: 0;
  border-radius: 18px;
  overflow: hidden;
  background: #1c1915;
  color: #f6f1e8;
  text-align: left;
  position: relative;
  touch-action: manipulation;
}

.short img {
  width: 148px;
  height: 210px;
  object-fit: cover;
  display: block;
}

.short span {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 22px 8px 8px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.82));
  font-size: 13px;
  font-weight: 680;
  line-height: 1.25;
}

.section-label {
  margin: 28px 0 14px;
  font-size: 22px;
  font-weight: 780;
  letter-spacing: 0;
  text-transform: none;
  text-decoration: none;
}

.stills {
  display: grid;
  gap: 10px;
  margin-top: 8px;
}

.still {
  margin: 0;
  border-radius: 18px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.35);
}

.still img {
  width: 100%;
  height: 210px;
  object-fit: cover;
  object-position: center 40%;
  display: block;
}

.still figcaption {
  padding: 8px 10px 10px;
  font-size: 14px;
  font-weight: 650;
}

.scene-art img,
.result-art {
  width: 100%;
  height: 230px;
  object-fit: contain;
  object-position: center bottom;
  display: block;
  background: transparent;
}

.player {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: #07060a;
  display: flex;
  flex-direction: column;
  padding: calc(10px + env(safe-area-inset-top)) 12px calc(16px + env(safe-area-inset-bottom));
}

.player-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 48px;
}

.player-close {
  appearance: none;
  min-height: 48px;
  min-width: 48px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 0;
  background: #f4efe6;
  color: #1c1915;
  font-weight: 750;
}

.player video {
  flex: 1;
  width: 100%;
  min-height: 0;
  background: #000;
  border-radius: 16px;
  object-fit: contain;
}

.player-title {
  margin: 10px 0 0;
  color: #f6f1e8;
  font-family: var(--font-display);
  font-size: 22px;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.sound-toggle {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 0;
  background: #f3efe6;
  color: #1c1915;
  box-shadow: inset 0 0 0 2px rgba(28, 25, 21, 0.14);
  font-weight: 750;
  font-size: 14px;
}

.page-last .sound-toggle,
.page-last .player-close {
  color: #1c1915;
}

.signup,
.ideas-teaser,
.tiktok-row,
.daily,
.rather,
.doors {
  margin-top: 18px;
}

.signup,
.ideas-teaser,
.daily,
.rather,
.doors {
  padding: 14px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.55);
  border: 2px solid rgba(28, 25, 21, 0.12);
}

.page-last .signup,
.page-last .ideas-teaser,
.page-last .doors {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(243, 234, 223, 0.2);
}

.signup-pitch {
  font-family: var(--font-display);
  font-size: 26px;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin: 0 0 10px;
}

.signup input[type="email"] {
  width: 100%;
  min-height: 48px;
  margin-top: 6px;
}

.signup .btn {
  margin-top: 10px;
}

.signup-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.signup-privacy {
  margin: 10px 0 0;
  font-size: 14px;
}

.signup-error {
  margin: 10px 0 0;
  font-weight: 700;
}

.signup-error:focus {
  outline: none;
}

.tiktok-row {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
}

.tiktok-row a {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  font-weight: 750;
}

.daily {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 10px;
  align-items: center;
  text-decoration: none;
  color: inherit;
}

.daily img {
  width: 84px;
  height: 84px;
  object-fit: cover;
  border-radius: 16px;
}

.daily > span {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.daily strong {
  display: block;
  font-family: var(--font-display);
  font-size: 22px;
  line-height: 1;
  letter-spacing: -0.03em;
}

.install-banner {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: calc(12px + env(safe-area-inset-bottom));
  z-index: 70;
  max-width: 416px;
  margin: 0 auto;
  padding: 14px;
  border-radius: 20px;
  background: #1c1915;
  color: #f4efe6;
  box-shadow: 0 12px 32px rgba(28, 25, 21, 0.28);
}

.install-title {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-size: 22px;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.install-banner p {
  margin: 0 0 10px;
}

.install-reassure {
  font-size: 14.5px;
  line-height: 1.35;
  color: #e7dfd2;
}

.install-actions {
  display: flex;
  gap: 8px;
}

.install-banner .btn {
  width: auto;
  flex: 1;
  min-height: 48px;
  background: #f4efe6;
  color: #1c1915;
  border-color: transparent;
}

.install-banner .btn-secondary {
  background: transparent;
  color: #f4efe6;
  border-color: #f4efe6;
}

.wall-form input,
.wall-form select,
.wall-form textarea {
  width: 100%;
  margin-top: 6px;
}

.surprise {
  margin-top: 10px;
}

.choice.tap-card,
.option.tap-card,
.channel.tap-card,
.scenario.tap-card,
.q.tap-card,
.short.tap-card,
.door.tap-card,
.rather-choice.tap-card {
  transition: transform 140ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.tap-card:active {
  transform: translateY(2px) scale(0.98) rotate(-0.5deg);
}

.rather-choice,
.door {
  appearance: none;
  width: 100%;
  text-align: left;
  min-height: 64px;
  margin-top: 10px;
  padding: 14px;
  border-radius: 16px;
  border: 2px solid currentColor;
  background: transparent;
  color: inherit;
  font-weight: 680;
  font-size: 16.5px;
  line-height: 1.3;
}

.door-art {
  width: 100%;
  height: 220px;
  object-fit: cover;
  object-position: center 30%;
  border-radius: 16px;
  display: block;
  background: #111;
}

.rather-art {
  width: 100%;
  height: 230px;
  object-fit: contain;
  object-position: center bottom;
  border-radius: 16px;
  display: block;
  background: #d5e8f6;
}

.ending-title {
  font-family: var(--font-display);
  font-size: 32px;
  line-height: 1;
  letter-spacing: -0.03em;
  margin: 8px 0;
}

.confetti {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 60;
  overflow: hidden;
}

.confetti i {
  position: absolute;
  top: -12px;
  width: 8px;
  height: 14px;
  border-radius: 2px;
  animation: confetti-fall 1.5s ease-in forwards;
}

@keyframes confetti-fall {
  to {
    transform: translateY(100vh) rotate(240deg);
    opacity: 0.2;
  }
}

.page-last .fog {
  pointer-events: none;
  position: fixed;
  inset: -10%;
  z-index: 1;
  background:
    radial-gradient(40% 30% at 20% 80%, rgba(180, 170, 200, 0.16), transparent 70%),
    radial-gradient(36% 28% at 80% 20%, rgba(120, 110, 150, 0.14), transparent 70%);
  animation: fog-drift 9s ease-in-out infinite alternate;
}

.page-last .sheet {
  position: relative;
  z-index: 2;
}

.page-last .hero-banner {
  animation: flicker 6.5s steps(1, end) infinite;
}

@keyframes fog-drift {
  from { transform: translate3d(-2%, 0, 0); }
  to { transform: translate3d(2%, -1%, 0); }
}

@keyframes flicker {
  0%, 92%, 100% { opacity: 1; }
  93% { opacity: 0.72; }
  95% { opacity: 1; }
  97% { opacity: 0.84; }
}

@keyframes rise {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: no-preference) {
  .sheet {
    animation: rise 320ms ease;
  }
}

.idea-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.idea {
  padding: 12px;
  border-radius: 16px;
  border: 2px solid rgba(28, 25, 21, 0.14);
  background: rgba(255, 255, 255, 0.7);
}

.idea p {
  margin: 0;
}

.idea .meta {
  margin-top: 6px;
  font-size: 13px;
  color: var(--muted);
}

.like-btn {
  appearance: none;
  margin-top: 8px;
  min-height: 44px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 2px solid currentColor;
  background: transparent;
  font-weight: 750;
}

.like-btn[aria-pressed="true"] {
  background: #1c1915;
  color: #fff;
}

.wall-form textarea {
  width: 100%;
  min-height: 110px;
}

.coming {
  margin-top: 12px;
  padding: 12px;
  border-radius: 14px;
  background: rgba(28, 25, 21, 0.06);
}

.admin-list {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}

.admin-card {
  padding: 12px;
  border-radius: 16px;
  border: 2px solid rgba(28, 25, 21, 0.16);
}

.admin-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 8px;
}

.channel-art img {
  width: 68px;
  height: 68px;
  object-fit: cover;
  border-radius: 16px;
  display: block;
}

.page-whatif .q-mark img {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 14px;
  display: block;
}

.answer .answer-art {
  width: 100%;
  border-radius: 16px;
  margin-bottom: 10px;
  display: block;
  max-height: 280px;
  object-fit: cover;
}

@media (prefers-reduced-motion: reduce) {
  .confetti,
  .page-last .fog,
  .page-last .hero-banner,
  .sheet,
  .tap-card,
  .tap-card:active {
    animation: none !important;
    transition: none !important;
    transform: none !important;
  }
}
