/* ==========================================================================
   SNS Coffee Cup Ride Section Styles (Wide 3D Elliptical Orbit & No Scroll)
   ========================================================================== */

/* --- Container & Layout (No Vertical Scroll) --- */
.sns-container {
  flex: 1;
  overflow: hidden;
  padding: 45px 16px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  background: url('../assets/sns_stage_bg_v3.png') center top / cover no-repeat;
  position: relative;
  animation: pageFadeIn 0.85s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes pageFadeIn {
  0% {
    opacity: 0;
    transform: scale(0.985);
  }

  100% {
    opacity: 1;
    transform: scale(1);
  }
}

/* --- Attraction Header Section --- */
.sns-header-section {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0px;
  margin-top: 0;
  z-index: 5;
  width: 100%;
  max-width: 560px;
  position: relative;
}

/* Golden Ribbon Banner Header (Matching History Page 100%) */
.sns-ribbon-banner {
  position: relative;
  width: 100%;
  max-width: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.22));
}

.sns-ribbon-img {
  width: 100%;
  height: auto;
  display: block;
}

.sns-curved-title-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.sns-title-svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}



/* --- Coffee Cup Attraction Stage Section --- */

/* --- Coffee Cup Attraction Stage Section --- */
.sns-stage-section {
  width: 100%;
  max-width: 720px;
  position: relative;
  height: 350px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  cursor: grab;
  touch-action: pan-y;
}

.sns-stage-section:active {
  cursor: grabbing;
}

/* Pedestal Base Image Wrapper (Grand stage presence) */
.sns-pedestal-wrapper {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  max-width: 700px;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 1;
}

.sns-pedestal-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 12px 28px rgba(0, 0, 0, 0.3));
}

/* Clockwise Orbit Stage Container (Centered Perfectly Over Pedestal Top Surface) */
.cups-orbit-container {
  position: absolute;
  top: 36%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 320px;
  height: 180px;
  margin-top: 0;
  z-index: 3;
  touch-action: pan-y;
}

/* Individual Cup Orbit Anchor Item (Frameless) */
.cup-item {
  position: absolute;
  top: 50%;
  left: 50%;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 5;
  animation: orbitCW 26s linear infinite;
  transform-origin: center center;
}

/* 4 Orbit Positions (Clockwise Spaced by 90 Degrees) */
.cup-item-youtube {
  animation-delay: 0s;
}

.cup-item-tiktok {
  animation-delay: -6.5s;
}

.cup-item-insta {
  animation-delay: -13s;
}

.cup-item-x {
  animation-delay: -19.5s;
}

/* Static Upright Cup Wrapper */
.cup-sway {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Hover Interaction: Scale Up with Glow without pausing orbit */
.cup-item:hover .cup-img {
  transform: scale(1.16) rotate(-3deg);
}

.cup-item-youtube:hover .cup-img {
  filter: drop-shadow(0 10px 20px rgba(239, 68, 68, 0.6));
}

.cup-item-tiktok:hover .cup-img {
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.55));
}

.cup-item-insta:hover .cup-img {
  filter: drop-shadow(0 10px 20px rgba(236, 72, 153, 0.6));
}

.cup-item-x:hover .cup-img {
  filter: drop-shadow(0 10px 20px rgba(56, 189, 248, 0.6));
}

/* Frameless Cup Image (Base size for tablet/laptop) */
.cup-img {
  width: 125px;
  height: 125px;
  object-fit: contain;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.22));
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.35s ease, opacity 0.3s ease;
  user-select: none;
  pointer-events: none;
}

/* Empty Cup (100% Opaque & Slightly Smaller than Chara Cup) */
.cup-img-empty {
  display: block;
  opacity: 1;
  transform: scale(0.82);
}

/* Chara Cup (Hidden by default, popped when front) */
.cup-img-chara {
  display: none;
  opacity: 0;
}

/* Front Cup Position Styling: Only front cup shows Chara & Pill Tag and is Clickable */
.cup-item.is-front {
  z-index: 100;
  pointer-events: auto;
  cursor: pointer;
}

.cup-item:not(.is-front) {
  z-index: 5;
  pointer-events: none !important;
  cursor: default;
}

.cup-item:not(.is-front) .cup-pill-tag {
  opacity: 0 !important;
  pointer-events: none;
  transform: translateY(6px) scale(0.85);
}

.cup-item.is-front .cup-img-empty {
  display: none;
  opacity: 0;
}

.cup-item.is-front .cup-img-chara {
  display: block;
  opacity: 1;
  animation: popChara 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.cup-item.is-front .cup-pill-tag {
  opacity: 1;
  transform: translateY(-8px) scale(1.12);
  background: #ffffff;
  box-shadow: 0 6px 16px rgba(245, 158, 11, 0.35);
}

@keyframes popChara {
  0% {
    transform: scale(0.7) translateY(12px);
    opacity: 0;
  }

  100% {
    transform: scale(1.32) translateY(-6px);
    opacity: 1;
  }
}

.sns-container img {
  -webkit-user-drag: none;
  -khtml-user-drag: none;
  -moz-user-drag: none;
  -o-user-drag: none;
  user-drag: none;
  user-select: none;
  -webkit-user-select: none;
}

/* --- Swipe Prompt Guidance Speech Bubble (Positioned below subtitle with eye-catching bounce) --- */
.sns-swipe-prompt {
  position: relative;
  margin-top: 45px;
  z-index: 90;
  display: flex;
  flex-direction: column;
  align-items: center;
  user-select: none;
  pointer-events: none;
}

.swipe-speech-bubble {
  background: linear-gradient(135deg, #ffffff 0%, #fffdf0 100%);
  color: #b45309;
  font-size: 13.5px;
  font-weight: 800;
  padding: 8px 20px;
  border-radius: 24px;
  border: 2.5px solid #f59e0b;
  box-shadow: 0 8px 24px rgba(217, 119, 6, 0.32);
  white-space: nowrap;
  position: relative;
  animation: pulseAttention 2.6s ease-in-out infinite alternate;
  display: flex;
  align-items: center;
  gap: 8px;
}

.swipe-speech-bubble::after {
  content: '';
  position: absolute;
  bottom: -7px;
  left: 50%;
  transform: translateX(-50%);
  border-width: 7px 6px 0;
  border-style: solid;
  border-color: #f59e0b transparent transparent;
  display: block;
  width: 0;
}

.swipe-hand-icon {
  font-size: 16px;
}

@keyframes pulseAttention {
  0% {
    transform: translateY(0) scale(1);
    box-shadow: 0 6px 18px rgba(217, 119, 6, 0.28);
  }

  50% {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 9px 22px rgba(245, 158, 11, 0.38);
  }

  100% {
    transform: translateY(-1px) scale(1.01);
    box-shadow: 0 7px 20px rgba(217, 119, 6, 0.3);
  }
}

@keyframes floatSwipeBubble {
  0% {
    transform: translateY(0);
  }

  100% {
    transform: translateY(-5px);
  }
}

/* Clean Pill Tag Label Positioned Further to Top-Right of Cup (Hidden by default, reveals on hover) */
.cup-pill-tag {
  position: absolute;
  top: -24px;
  right: -36px;
  padding: 4px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border: 1.5px solid #e2e8f0;
  z-index: 6;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transform: translateY(6px) scale(0.9);
  transition: opacity 0.28s ease, transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1), background-color 0.25s ease;
}

.cup-platform-name {
  font-family: var(--font-eng);
  font-size: 11px;
  font-weight: 700;
  color: #334155;
  letter-spacing: 0.5px;
}

.cup-item.is-front .cup-pill-tag,
.cup-item:hover .cup-pill-tag,
.cup-item:focus .cup-pill-tag {
  opacity: 1;
  transform: translateY(0) scale(1.08);
  background: #ffffff;
  box-shadow: 0 6px 16px rgba(245, 158, 11, 0.35);
}

.tag-yt {
  border-color: #fca5a5;
}

.tag-tiktok {
  border-color: #94a3b8;
}

.tag-insta {
  border-color: #f472b6;
}

.tag-x {
  border-color: #7dd3fc;
}

/* --- Official Site Theme Park Easel Signboard --- */
.sns-official-site-section {
  position: absolute;
  bottom: 20px;
  left: 20px;
  z-index: 10;
  width: auto;
}

.sns-easel-link {
  display: block;
  text-decoration: none;
  color: inherit;
  outline: none;
  cursor: pointer;
  user-select: none;
}

.easel-wrapper {
  position: relative;
  width: 210px;
}

.easel-board-img {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.18));
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.3s ease;
}

.sns-easel-link:hover .easel-board-img {
  transform: translateY(-5px) scale(1.04) rotate(-1.5deg);
  filter: drop-shadow(0 12px 26px rgba(217, 119, 6, 0.35));
}

/* --- Header Link Support --- */
.header-logo-link {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
}

.active-link {
  font-weight: 700;
}

/* --- Interactive Steering Wheel Control Widget --- */
.sns-steering-control {
  position: absolute;
  bottom: 22%;
  left: 85%;
  transform: translateX(-50%);
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: center;
  user-select: none;
  touch-action: none;
}

/* Speech Bubble Prompt */
.steering-speech-bubble {
  background: linear-gradient(135deg, #ffffff 0%, #fffdf0 100%);
  color: #b45309;
  font-size: 13px;
  font-weight: 800;
  padding: 6px 14px;
  border-radius: 20px;
  border: 2px solid #f59e0b;
  box-shadow: 0 6px 18px rgba(217, 119, 6, 0.28);
  margin-bottom: 8px;
  white-space: nowrap;
  position: relative;
  animation: floatBubble 2.5s ease-in-out infinite alternate;
  display: flex;
  align-items: center;
  gap: 4px;
}

.steering-speech-bubble::after {
  content: '';
  position: absolute;
  bottom: -7px;
  left: 50%;
  transform: translateX(-50%);
  border-width: 7px 6px 0;
  border-style: solid;
  border-color: #f59e0b transparent transparent;
  display: block;
  width: 0;
}

@keyframes floatBubble {
  0% {
    transform: translateY(0);
  }

  100% {
    transform: translateY(-4px);
  }
}

/* Steering Wheel Graphic Container */
.steering-wheel-wrapper {
  width: 82px;
  height: 82px;
  background: radial-gradient(circle, #fef3c7 0%, #fde68a 100%);
  border-radius: 50%;
  border: 3px solid #d97706;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25), inset 0 0 12px rgba(255, 255, 255, 0.8);
  padding: 5px;
  box-sizing: border-box;
  cursor: grab;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.steering-wheel-wrapper:active {
  cursor: grabbing;
  transform: scale(0.96);
}

.steering-wheel-disc {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: linear-gradient(135deg, #fbbf24 0%, #d97706 100%);
  position: relative;
  box-shadow: inset 0 2px 6px rgba(255, 255, 255, 0.6);
  transform-origin: center center;
  will-change: transform;
}

.wheel-outer-rim {
  position: absolute;
  top: 4px;
  left: 4px;
  right: 4px;
  bottom: 4px;
  border: 4px solid #78350f;
  border-radius: 50%;
  pointer-events: none;
}

.wheel-center-cap {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 22px;
  height: 22px;
  background: #fffbeb;
  border: 2px solid #b45309;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: #d97706;
  font-weight: bold;
  z-index: 5;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.wheel-spoke {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 4px;
  height: 100%;
  background: #78350f;
  transform-origin: center center;
}

.wheel-spoke.spoke-1 {
  transform: translate(-50%, -50%) rotate(0deg);
}

.wheel-spoke.spoke-2 {
  transform: translate(-50%, -50%) rotate(60deg);
}

.wheel-spoke.spoke-3 {
  transform: translate(-50%, -50%) rotate(120deg);
}

/* --- Keyframe Animations --- */

/* Native Hardware-Accelerated 100% Smooth Circular Orbit */
@keyframes orbitCW {
  0% {
    transform: translate(-50%, -50%) rotate(0deg) translateY(calc(-1 * var(--orbit-radius, 125px))) rotate(0deg);
  }

  100% {
    transform: translate(-50%, -50%) rotate(360deg) translateY(calc(-1 * var(--orbit-radius, 125px))) rotate(-360deg);
  }
}

/* ==========================================================================
   Media Queries (Grouped at the bottom per AGENTS.md guidelines)
   ========================================================================== */

/* ==========================================================================
   Media Queries (Grouped at the bottom per AGENTS.md guidelines)
   ========================================================================== */

/* --- 1. Large Desktop / PC (min-width: 1200px) --- */
@media (min-width: 1200px) {
  .sns-container {
    padding: 60px 24px 28px;
    background-image: url('../assets/sns_stage_bg_v3.png');
    background-position: center top;
  }

  .sns-header-section {
    margin-top: 0;
  }

  .sns-ribbon-banner {
    max-width: 660px;
  }

  .sns-title-curved {
    font-size: 43px;
    letter-spacing: 1px;
  }

  .sns-header-section {
    margin-top: 0;
  }

  .sns-stage-section {
    height: 350px;
    max-width: 720px;
    margin-top: 0;
  }

  .sns-pedestal-wrapper {
    top: 50%;
    width: 100%;
    max-width: 700px;
  }

  .cups-orbit-container {
    top: 36%;
    width: 320px;
    height: 180px;
    margin-top: 0;
  }

  .cup-img {
    width: 148px;
    height: 148px;
  }

  .cup-pill-tag {
    top: -6px;
    right: -24px;
    padding: 4px 12px;
  }

  .cup-platform-name {
    font-size: 11px;
  }

  .sns-official-site-section {
    bottom: 20px;
    left: 22px;
  }

  .easel-wrapper {
    width: 210px;
  }
}

/* --- 2. Medium Desktop / Tablet Landscape (769px to 1199px) --- */
@media (min-width: 769px) and (max-width: 1199px) {
  .sns-container {
    padding: 65px 20px 24px;
    background-image: url('../assets/sns_stage_bg_v3.png');
    background-position: center top;
  }

  .sns-header-section {
    margin-top: 0;
  }

  .sns-ribbon-banner {
    max-width: 500px;
  }

  .sns-title-curved {
    font-size: 46px;
    letter-spacing: 1px;
  }

  .sns-stage-section {
    height: 300px;
    max-width: 500px;
    margin-top: 0;
  }

  .sns-pedestal-wrapper {
    top: 42%;
    width: 90%;
    max-width: 480px;
  }

  .cups-orbit-container {
    top: 42%;
    width: 360px;
    height: 240px;
    margin-top: 0;
  }

  .cup-img {
    width: 155px;
    height: 155px;
  }

  .cup-pill-tag {
    top: -6px;
    right: -24px;
    padding: 4px 12px;
  }

  .cup-platform-name {
    font-size: 11px;
  }

  .sns-official-site-section {
    bottom: 20px;
    left: 22px;
  }

  .easel-wrapper {
    width: 210px;
  }
}

/* --- 3. Tablet Portrait / Small Tablet (481px to 768px) --- */
@media (min-width: 481px) and (max-width: 768px) {
  .sns-container {
    padding: 60px 16px 20px;
    background-image: url('../assets/sns_stage_sp_bg_v2.png');
    background-position: center top;
    background-size: cover;
    background-repeat: no-repeat;
  }

  .sns-header-section {
    margin-top: 3%;
  }

  .sns-ribbon-banner {
    max-width: 420px;
  }

  .sns-title-curved {
    font-size: 42px;
    letter-spacing: 1px;
  }

  .sns-stage-section {
    height: 340px;
    max-width: 480px;
  }

  .cups-orbit-container {
    width: 360px;
    height: 260px;
    margin-top: 0;
  }

  .cup-img {
    width: 120px;
    height: 120px;
  }

  .cup-pill-tag {
    top: -5px;
    right: -20px;
    padding: 3px 10px;
  }

  .cup-platform-name {
    font-size: 10px;
  }

  .sns-official-site-section {
    bottom: 16px;
    left: 16px;
  }

  .easel-wrapper {
    width: 190px;
  }
}

/* --- 4. Mobile Phone SP (max-width: 480px) --- */
@media (max-width: 480px) {
  .sns-container {
    padding: 48px 10px 16px;
    background-image: url('../assets/sns_stage_sp_bg_v2.png');
    background-position: center top;
    background-size: cover;
    background-repeat: no-repeat;
  }

  .sns-ribbon-banner {
    max-width: 320px;
  }

  .sns-title-curved {
    font-size: 34px;
  }

  .sns-stage-section {
    height: 290px;
    margin-top: 5px;
    max-width: 440px;
  }

  .sns-pedestal-wrapper {
    max-width: 420px;
  }

  .cups-orbit-container {
    width: 310px;
    height: 220px;
    margin-top: 0;
  }

  .cup-img {
    width: 92px;
    height: 92px;
  }

  .cup-pill-tag {
    top: -20px;
    right: -30px;
    padding: 2px 7px;
  }

  .cup-platform-name {
    font-size: 9px;
  }

  .sns-official-site-section {
    bottom: 12px;
    left: 10px;
  }

  .easel-wrapper {
    width: 120px;
  }

  .sns-swipe-prompt {
    position: relative;
    margin-top: 26px;
    left: auto;
    transform: none;
  }

  .swipe-speech-bubble {
    font-size: 11px;
    padding: 5px 14px;
  }
}