/* ==========================================================================
   Design System, Variables & Base Reset
   ========================================================================== */
:root {
  /* Color Palette (Pastels & Dusty Tones) */
  --color-bg-light: #f6f5f0;
  --color-bg-dark: #cbd5e1;
  --color-main: #8a8a85;
  --color-text-dark: #575752;
  --color-sub-blue: #7a90a6;
  --color-sub-blue-light: #b4c6db;
  --color-accent-yellow: #e8d08d;
  --color-accent-yellow-light: #faebc5;
  --color-gold-glitter: #f3d78b;
  --color-white: #ffffff;

  /* Fonts */
  --font-jap: 'Zen Maru Gothic', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-eng: 'Fredoka', cursive, sans-serif;
  --font-circus: 'Rye', 'Sancreek', 'Alfa Slab One', serif;
}

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

body {
  background-color: #2b303a;
  font-family: var(--font-jap);
  color: var(--color-text-dark);
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
}

.phone-frame {
  position: relative;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  background: linear-gradient(to bottom, #a1b7cf 0%, #cbd6e2 35%, #f6f5f0 65%, #eae7df 100%);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.phone-frame::-webkit-scrollbar {
  width: 4px;
}

.phone-frame::-webkit-scrollbar-thumb {
  background: var(--color-sub-blue);
  border-radius: 4px;
}

/* --- Global Handwritten Decorative Overlay Text --- */
.handwritten-decor {
  position: absolute;
  font-family: 'Caveat', cursive;
  font-size: 28px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.95);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.45), 0 0 10px rgba(255, 255, 255, 0.25);
  pointer-events: none;
  z-index: 1500;
  white-space: nowrap;
  line-height: 1.15;
}

/* Base Body/Frame PC Overrides */
@media (min-width: 769px) {
  body {
    background-color: #eae7df;
    overflow: hidden;
    padding: 0;
    margin: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .phone-frame {
    max-width: none;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    min-height: 0;
    max-height: none;
    background: transparent;
    box-shadow: none;
    overflow: hidden;
    margin: 0;
  }
}

@media (max-width: 768px) {
  body {
    background-color: #a1b7cf;
    display: block;
    min-height: 100%;
    height: 100%;
  }

  html {
    height: 100%;
  }
}
/* ==========================================================================
   Common Park Attraction Ribbon Title & Subtitle System (100% Unified Across All Pages)
   ========================================================================== */
.attraction-title-curved {
  font-family: 'Rye', 'Sancreek', cursive;
  font-weight: 700;
  font-size: 48px;
  fill: #3b4252;
  letter-spacing: 1px;
  filter: drop-shadow(2px 2px 0px rgba(255, 255, 255, 0.95));
}

.profile-subtitle,
.sns-subtitle,
.history-subtitle,
.theater-subtitle,
.share-subtitle,
.ad-subtitle,
.countdown-subtitle {
  font-family: var(--font-jap);
  font-size: 15px;
  color: #1e293b;
  font-weight: 700;
  margin-top: 8px;
  margin-bottom: 20px;
  letter-spacing: 1px;
  text-align: center;
  text-shadow:
    0 0 12px #ffffff,
    0 0 6px #ffffff,
    0 2px 6px rgba(15, 23, 42, 0.35);
}

/* --- Responsive Subtitle Breakpoint Scaling --- */
@media (min-width: 1200px) {
  .profile-subtitle,
  .sns-subtitle,
  .history-subtitle,
  .theater-subtitle,
  .share-subtitle,
  .ad-subtitle,
  .countdown-subtitle {
    margin-top: 10px;
    margin-bottom: 22px;
    font-size: 17px;
  }
}

@media (min-width: 769px) and (max-width: 1199px) {
  .profile-subtitle,
  .sns-subtitle,
  .history-subtitle,
  .theater-subtitle,
  .share-subtitle,
  .ad-subtitle,
  .countdown-subtitle {
    margin-top: 8px;
    margin-bottom: 20px;
    font-size: 15px;
  }
}

@media (min-width: 481px) and (max-width: 768px) {
  .profile-subtitle,
  .sns-subtitle,
  .history-subtitle,
  .theater-subtitle,
  .share-subtitle,
  .ad-subtitle,
  .countdown-subtitle {
    margin-top: 6px;
    margin-bottom: 16px;
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .attraction-title-curved {
    font-size: 35px;
  }

  .profile-subtitle,
  .sns-subtitle,
  .history-subtitle,
  .theater-subtitle,
  .share-subtitle,
  .ad-subtitle,
  .countdown-subtitle {
    margin-top: 6px;
    margin-bottom: 14px;
    font-size: 12px;
  }
}
