@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/static/pretendard.css');
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;500&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@400;700&display=swap');
@import url('components.css');

:root {
  --font-ko: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, Roboto, sans-serif;
  --font-en: 'Outfit', sans-serif;

  --primary: #15347a;
  --primary-light: #204db5;
  --secondary: #f0f4ff;
  --dark: #1e293b;
  --gray-800: #1f2937;
  --gray-600: #4b5563;
  --gray-400: #9ca3af;
  --gray-200: #e5e7eb;
  --gray-100: #f3f4f6;
  --gray-50: #f9fafb;

  --border-radius-sm: 8px;
  --border-radius-md: 12px;
  --border-radius-lg: 20px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

/* Reset & Base */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: smooth;
  background-color: #F9F9F9;
  overflow-x: hidden;
  overscroll-behavior-x: none; /* Disables browser history back/forward swipe gestures */
}

body {
  font-family: var(--font-ko);
  color: var(--dark);
  line-height: 1.5;
  background-color: #F9F9F9;
  /* Mobile default background */
  min-height: 100vh;
  overflow-x: hidden;
  overscroll-behavior-x: none; /* Disables browser history back/forward swipe gestures */
}

/* PC Centered Mobile Frame (Mobile-first default) */
.app-container {
  width: 100%;
  max-width: 100%;
  background-color: #F9F9F9;
  min-height: 100vh;
  position: relative;
  display: flex;
  flex-direction: column;
  padding-top: 110px; /* Base page clearance for fixed header */
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  color: var(--dark);
  line-height: 1.25;
}

.en {
  font-family: var(--font-en);
}

a {
  color: inherit;
  text-decoration: none;
}

/* Header & Navigation */
.header-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--gray-100);
}

/* Desktop / PC Media Query (Centers screen for widths >= 480px) */
@media (min-width: 480px) {
  body {
    background-color: #E5E5E5; /* Slightly darker shade outside the centered frame for contrast */
    display: flex;
    justify-content: center;
  }

  .app-container {
    max-width: 390px;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.1);
  }

  .header-wrapper {
    left: 50%;
    transform: translateX(-50%);
    max-width: 390px;
  }
}

.header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
}

.logo-link img {
  height: 24px;
  display: block;
}

.menu-toggle {
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.menu-toggle img {
  width: 24px;
  height: 24px;
  display: block;
}

/* Navigation Menu */
.nav-menu {
  display: flex;
  justify-content: space-around;
  padding: 8px clamp(2px, 2vw, 10px);
  background-color: #ffffff;
  border-bottom: 1px solid var(--gray-100);
}

.nav-item {
  font-family: 'Noto Sans KR', sans-serif;
  font-size: clamp(9px, 3.5vw, 14px); /* Scales down to 9px for ultra-narrow viewports */
  font-weight: 400;
  color: #4B4C4E;
  padding: 8px clamp(2px, 1.5vw, 10px); /* Lowered horizontal padding */
  position: relative;
  transition: var(--transition);
  white-space: nowrap !important;
  flex-shrink: 0;
  line-height: 1.40;
}

.nav-item.active {
  font-family: 'Noto Sans KR', sans-serif;
  font-weight: 700;
  color: #1F3B7A;
}

.nav-item.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: clamp(2px, 1.5vw, 10px);
  right: clamp(2px, 1.5vw, 10px);
  height: 2px;
  background-color: #1F3B7A;
  border-radius: 2px;
}

/* Hero Carousel */
.hero-section {
  position: relative;
  width: 100%;
  height: auto;
  aspect-ratio: 390 / 330;
  overflow: hidden;
  background-color: #000;
  margin-top: 16px; /* Spacing between header tabs and slider */
}

.carousel-container {
  display: flex;
  width: 500%;
  height: 100%;
  transition: transform 0.5s ease-in-out;
}

.carousel-slide {
  width: 20%;
  height: 100%;
  position: relative;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.65);
  user-select: none;
  pointer-events: none;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  color: #ffffff;
  box-sizing: border-box;
}

.hero-logo-group {
  position: absolute;
  top: 24px;
  /* Matches Top 221px absolute offset (header 94 + hero 103 + 24) */
  left: 24px;
  display: flex;
  align-items: center;
  height: 16px;
}

.hero-logo-toraysee {
  width: 61px;
  height: 16px;
  color: #ffffff;
}

.hero-logo-separator {
  font-family: var(--font-en);
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
  margin: 0 10px;
  line-height: 1;
}

.hero-logo-ticro {
  width: 36px;
  height: 11px;
  color: #ffffff;
  margin-top: 1px;
  /* Align to Top 222px absolute offset (1px lower than Toraysee) */
}

.hero-text-content {
  margin-top: 25.5%; /* Top 221px - header 94px = 127px down, but let's align exactly with mockup */
  display: flex;
  flex-direction: column;
  gap: 24px; /* Matches the space in the mockup */
}

@media (max-width: 375px) {
  .hero-text-content {
    margin-top: 23%;
    gap: 16px;
  }
}

.hero-title {
  font-size: 24px;
  line-height: 1.45;
  font-weight: 600;
  color: #ffffff;
  margin: 0;
}

.hero-subtitle {
  font-size: 16px;
  opacity: 0.95;
  line-height: 1.5;
  font-weight: 400;
  margin: 0;
}

.carousel-dots {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}

.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: var(--transition);
}

.dot.active {
  background-color: #ffffff;
  width: 18px;
  border-radius: 3px;
}



/* Sections General */
section {
  padding: 60px 20px;
  border-bottom: 8px solid var(--gray-100);
}

#intro {
  border-bottom: none;
  padding-bottom: 24px;
}

#method {
  border-bottom: none;
  padding-top: 32px;
  padding-bottom: 32px;
}

#event {
  padding-top: 32px;
  padding-left: 14px;
  padding-right: 14px;
  padding-bottom: 0;
  border-bottom: none;
}

#how-to {
  padding-top: 130px;
  padding-left: 14px;
  padding-right: 14px;
}

.section-title {
  font-size: 18px;
  font-weight: 500;
  margin-bottom: 8px;
  color: var(--dark);
}

.section-subtitle {
  font-size: 18px;
  font-weight: 500;
  color: var(--gray-600);
  margin-bottom: 30px;
}

/* Welcome Method Buttons */
.method-quick-links {
  display: flex;
  flex-direction: column;
  margin-top: 12px;
}

.method-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
  background-color: transparent;
  border: none;
  border-bottom: 1px solid var(--gray-200);
  font-weight: 200; /* ExtraLight */
  font-size: 16px;
  line-height: 1.42; /* 142% line-height */
  color: var(--dark);
  transition: var(--transition);
}

.method-link strong {
  font-weight: 600 !important; /* SemiBold override */
  font-size: 16px;
  color: #15347a;
}

.method-link:hover {
  background-color: transparent;
  color: var(--primary);
}

.method-link img {
  width: 16px;
  height: 16px;
  transition: var(--transition);
}

.method-link:hover img {
  transform: translateX(4px);
}

/* Intro Image */
.intro-image-container {
  margin: 32px 0; 
  width: 100%;
  border-radius: var(--border-radius-md); /* Restored rounded corners */
  overflow: hidden;
}

.intro-image-container img {
  width: 100%;
  display: block;
}

.intro-description {
  font-family: var(--font-ko) !important;
  font-weight: 300; /* Light */
  font-size: 16px;
  line-height: 1.42; /* 142% line-height */
  color: var(--gray-600);
  margin-bottom: 32px; /* Spacing below is 32px */
}

.intro-title-sub {
  font-family: var(--font-ko) !important;
  font-weight: 500; /* Medium */
  font-size: 24px;
  line-height: 1.4; /* 140% line-height */
  color: var(--dark);
  margin: 32px 0 16px;
}

/* Intro Section Footer Styles */
.intro-footer-box {
  text-align: left;
  margin-top: 24px;
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-start; /* Left-align the first two blocks */
  gap: 8px; /* Reduced from 16px to draw elements closer */
  width: 100%;
}

.intro-footer-ticro {
  font-family: 'Montserrat', sans-serif !important;
  font-weight: 500;
  font-size: 12px;
  line-height: 1.4; /* 140% line-height */
  letter-spacing: 0;
  color: var(--gray-400);
  margin: 0;
}

.intro-footer-title {
  font-family: var(--font-ko) !important;
  font-weight: 200; /* ExtraLight */
  font-size: clamp(18px, 6.15vw, 24px); /* Scales down to 18px on fold cover screens */
  line-height: 1.42; /* 142% line-height */
  letter-spacing: 0;
  color: var(--dark);
  margin: 0;
}

.intro-footer-subtitle {
  font-family: var(--font-ko) !important;
  font-weight: 500; /* Medium */
  font-size: clamp(13px, 4.10vw, 16px); /* Scales down to 13px on fold cover screens */
  line-height: 1.42; /* 142% line-height */
  letter-spacing: 0;
  color: var(--gray-600);
  margin: 0;
  align-self: flex-start; /* Changed from center to left align */
  text-align: left; /* Changed from center to left align */
  margin-top: 4px; /* Reduced from 8px for matching mockup spacing */
}

/* Art Editions */
.edition-title-sub {
  font-size: 16px;
  font-weight: 700;
  margin: 32px 0 16px;
  color: var(--dark);
  border-left: none; /* Removed vertical bar */
  padding-left: 0; /* Reset padding */
}

.public-title-sub {
  margin-top: 64px !important; /* Doubled margin top from 32px to 64px */
}

.secret-title-sub {
  margin-top: 128px !important; /* Doubled margin top from 64px to 128px */
}

.edition-grid {
  display: flex;
  flex-direction: column;
  gap: 80px; /* Doubled vertical space from 40px to 80px */
}

.edition-card {
  background-color: transparent;
  border-radius: 0;
  overflow: visible; /* Allow shadow to display without clipping */
  transition: var(--transition);
}

.edition-images {
  display: flex;
  gap: 8px;
  align-items: flex-start; /* Align images to top */
}

.edition-images img {
  width: calc(50% - 4px);
  object-fit: cover;
  border-radius: 0; /* Removed image round */
  background-color: var(--gray-100);
}

.edition-images img:first-child {
  aspect-ratio: 150 / 150; /* Left image: 150x150 ratio */
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.08); /* Subtle product box shadow */
}

.edition-images img:last-child {
  aspect-ratio: 150 / 180; /* Right image: 150x180 ratio */
}

.edition-info {
  padding: 8px 0 0; /* Aligned exactly under the left edge of the image, pulled closer */
}

.edition-name {
  color: var(--dark);
  line-height: 1.4;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
}

.edition-title {
  font-size: 16px;
  font-weight: 300; /* Light */
  color: var(--dark);
  font-family: var(--font-ko);
}

.edition-artist {
  font-size: 12px;
  font-weight: 300; /* Light */
  color: var(--gray-600);
  font-family: var(--font-ko);
  margin-left: 2px;
}

.secret-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 108px; /* Spacing below secret grid (60% of 180px) */
}

.secret-item {
  display: flex;
  flex-direction: column;
  gap: 8px; /* Spacing between card and text */
}

.secret-card {
  aspect-ratio: 1;
  background-color: #000000;
  border-radius: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #ffffff;
  position: relative;
  border: 1px solid rgba(212, 175, 55, 0.25); /* Subtle gold outer border */
}

.secret-card::after {
  content: '';
  position: absolute;
  top: 6px;
  left: 6px;
  right: 6px;
  bottom: 6px;
  border: 1px solid rgba(212, 175, 55, 0.15); /* Double gold inner frame border */
  pointer-events: none;
}

.secret-question {
  font-size: 32px;
  font-weight: 300;
  color: #FFFFFF;
  z-index: 2;
}

.secret-num {
  font-family: 'Pretendard', var(--font-ko);
  font-weight: 300;
  font-size: clamp(14px, 4.10vw, 16px); /* Scales down to 14px on Fold cover screens */
  line-height: 1.40;
  letter-spacing: 0%;
  color: #19191A;
  margin: 0;
}

/* Event 1: Purchase Table & Method 1 Overrides */
#method .section-num,
#event .section-num {
  font-family: 'Pretendard', var(--font-ko);
  font-weight: 100;
  font-size: clamp(23px, 6.67vw, 26px);
  line-height: 1.40;
  letter-spacing: 0%;
  color: var(--primary);
  margin-bottom: 6px;
}

#method .section-title,
#event .section-title,
#how-to .section-title {
  font-family: 'Pretendard', var(--font-ko);
  font-weight: 500;
  font-size: clamp(21px, 6.15vw, 24px);
  line-height: 1.40;
  letter-spacing: 0%;
  color: #000000;
  margin-bottom: 8px;
}

#how-to .section-title {
  margin-top: 0;
}

#method .section-desc,
#event .section-desc {
  font-family: 'Pretendard', var(--font-ko);
  font-weight: 300;
  font-size: clamp(14px, 4.10vw, 16px);
  line-height: 1.42;
  letter-spacing: 0%;
  color: var(--gray-600);
  margin-bottom: 30px;
}

.price-table {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 24px 0;
  background-color: #ffffff;
  border: 1px solid #E5E7EB;
  border-radius: 16px;
  padding: 24px 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
}

.price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: 'Pretendard', var(--font-ko);
  font-weight: 400;
  font-size: clamp(14px, 4.10vw, 16px);
  line-height: 1.42;
  letter-spacing: 0%;
  color: #000000;
}

.price-label {
  font-weight: 400;
  background-color: #ffffff;
  padding-right: 8px;
  z-index: 2;
}

.price-dots {
  flex-grow: 1;
  border-bottom: 1px dotted #D9D9D9;
  margin: 0 8px;
  position: relative;
  top: -2px;
}

.price-value {
  font-weight: 400;
  background-color: #ffffff;
  padding-left: 8px;
  z-index: 2;
}

.price-row.highlighted {
  background-color: #EDF1F6;
  border: 1px solid #1F3B7A;
  padding: 14px 16px;
  border-radius: var(--border-radius-sm);
  font-family: 'Pretendard', var(--font-ko);
  font-weight: 600;
  font-size: clamp(14px, 4.10vw, 16px);
  line-height: 1.42;
  letter-spacing: 0%;
  color: #1F3B7A;
}

.price-row.highlighted .price-label,
.price-row.highlighted .price-value {
  background-color: transparent;
  font-weight: 600;
  color: #1F3B7A;
  padding: 0;
}

.price-row.highlighted .price-dots {
  border-color: #D9D9D9;
}

.table-notice {
  font-family: 'Pretendard', var(--font-ko);
  font-weight: 300;
  font-size: clamp(12px, 3.59vw, 14px);
  line-height: 1.42;
  letter-spacing: 0%;
  color: #19191A;
  margin-bottom: 24px;
}

/* Buttons */
.cta-button {
  display: block;
  width: 100%;
  background-color: #1F3B7A;
  border: 1px solid #233A6B;
  color: #ffffff;
  text-align: center;
  padding: 16px;
  border-radius: var(--border-radius-sm);
  font-family: 'Pretendard', var(--font-ko);
  font-weight: 500;
  font-size: clamp(14px, 4.10vw, 16px);
  line-height: 1.42;
  letter-spacing: 0%;
  cursor: pointer;
  transition: var(--transition);
}

.cta-button:hover {
  background-color: #233A6B;
  box-shadow: 0 4px 15px rgba(31, 59, 122, 0.2);
}

#shareBtn {
  display: block;
  width: clamp(319px, 92.82vw, 362px); /* 362px at 390px viewport */
  height: 46px;
  background-color: #1F3B7A;
  border: 1px solid #233A6B;
  color: #FFFFFF;
  text-align: center;
  padding: 0;
  border-radius: 10px;
  font-family: 'Pretendard', var(--font-ko);
  font-weight: 500;
  font-size: clamp(14px, 4.10vw, 16px); /* 16px at 390px viewport */
  line-height: 1.42;
  letter-spacing: 0%;
  cursor: pointer;
  margin: 16px auto 100px auto;
  transition: var(--transition);
}

#shareBtn:hover {
  background-color: #233A6B;
  box-shadow: 0 4px 15px rgba(31, 59, 122, 0.2);
}

/* Event 2: SNS Rounds */
.sns-rounds {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 30px;
}

.sns-round-item {
  display: flex;
  gap: 4px; /* 14px padding + 36px timeline + 4px gap = 54px card left offset */
  align-items: flex-start;
  position: relative;
}

.round-timeline {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  width: clamp(32px, 9.23vw, 36px);
  flex-shrink: 0;
  align-self: stretch;
}

.round-num-bg-box {
  width: clamp(32px, 9.23vw, 36px);
  height: clamp(32px, 9.23vw, 36px);
  background-color: #FFFFFF;
  border: 1px solid #EAEAEA;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  margin-top: clamp(9px, 2.56vw, 10px);
}

.timeline-line {
  position: absolute;
  top: clamp(25px, 7.18vw, 28px);
  bottom: clamp(-36px, -9.23vw, -32px);
  width: 1px;
  background-color: #D9D9D9;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
}

.sns-round-item:last-child .timeline-line {
  display: none;
}

.round-card {
  width: clamp(284px, 82.56vw, 322px); /* Proportional card width: 322px at 390px, 284px at 344px */
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 0; /* Set to 0 to maximize available width for content and badge */
  padding: 18px 0 18px 16px; /* Removed right padding here to let badge handle its own padding */
  background-color: #FFFFFF;
  border: 1px solid #EAEAEB;
  border-radius: 10px;
  position: relative;
  min-height: clamp(114px, 33.08vw, 129px);
}

.round-num-badge {
  width: clamp(25px, 7.18vw, 28px);
  height: clamp(25px, 7.18vw, 28px);
  background-color: #1F3B7A;
  border: 1px solid #233A6B;
  color: #ffffff;
  font-family: var(--font-en);
  font-size: clamp(12px, 3.59vw, 14px);
  font-weight: 600;
  border-radius: 6px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
  z-index: 3;
}

.round-content {
  width: clamp(172px, 50vw, 195px); /* Proportional left width: 195px at 390px, 172px at 344px */
  flex-shrink: 0;
  padding-right: 16px;
  border-right: 2px dashed #D9D9D9;
}

.round-title {
  font-family: 'Pretendard', var(--font-ko);
  font-weight: 500;
  font-size: clamp(16px, 4.62vw, 18px);
  line-height: 1.40;
  color: #000000;
  margin-bottom: 8px;
}

.round-dates {
  font-family: 'Pretendard', var(--font-ko);
  font-weight: 500;
  font-size: clamp(12px, 3.59vw, 14px);
  line-height: 1.42;
  color: #646568;
}

.round-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  flex-grow: 1; /* Automatically takes the remaining card width (exactly 111px at 390px viewport) */
  padding-left: clamp(10px, 3vw, 12px); /* Optimized symmetric padding to prevent text overflow */
  padding-right: clamp(10px, 3vw, 12px); /* Optimized symmetric padding to prevent text overflow */
}

.round-badge-lbl {
  font-family: 'Pretendard', var(--font-ko);
  font-weight: 500;
  font-size: clamp(10.5px, 3.08vw, 12px);
  line-height: 1.42;
  letter-spacing: 0%;
  color: #1F3B7A;
  border: 1px solid #1F3B7A;
  border-radius: 4px;
  padding: 2px 6px;
  display: inline-block;
  margin-bottom: 6px;
  white-space: nowrap;
}

.round-badge-val {
  font-family: 'Pretendard', var(--font-ko);
  font-weight: 600;
  font-size: clamp(28px, 8.20vw, 32px);
  line-height: 1.40;
  letter-spacing: 0%;
  color: #1F3B7A;
  white-space: nowrap;
}


/* Awards */
.award-bonus-label {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 24px;
  margin-bottom: 4px;
}

.award-bonus-label .bonus-ko {
  font-family: 'Pretendard', var(--font-ko);
  font-weight: 300;
  font-size: clamp(14px, 4.10vw, 16px);
  line-height: 1.42;
  letter-spacing: 0%;
  color: #1F3B7A;
}

.award-bonus-label .bonus-en {
  font-family: 'Montserrat', sans-serif;
  font-weight: 300;
  font-size: clamp(14px, 4.10vw, 16px);
  line-height: 1.40;
  letter-spacing: 0%;
  color: var(--gray-400);
}

.award-title {
  font-family: 'Pretendard', var(--font-ko);
  font-weight: 500;
  font-size: clamp(21px, 6.15vw, 24px);
  line-height: 1.40;
  letter-spacing: 0%;
  color: #19191A;
  margin-bottom: 16px;
}

.awards-list {
  display: flex;
  flex-direction: column;
  background-color: #ffffff;
  border: 1px solid #E5E7EB;
  border-radius: 16px;
  width: clamp(319px, 92.82vw, 362px); /* 362px at 390px screen */
  height: 301px; /* Fixed height regardless of screen width */
  margin: 16px auto;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
  overflow: hidden;
}

.award-item {
  display: flex;
  align-items: center;
  height: 33.33%;
  border-bottom: 1px solid #F0F0F0;
  background-color: transparent;
}

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

.award-left {
  display: flex;
  align-items: center;
  width: clamp(207px, 60.25vw, 235px); /* 235px at 390px screen */
  flex-shrink: 0;
  gap: clamp(12px, 4.10vw, 16px);
  padding-left: clamp(14px, 4.62vw, 18px);
}

.award-icon-box {
  width: clamp(53px, 15.38vw, 60px); /* 60x60px at 390px screen */
  height: clamp(53px, 15.38vw, 60px);
  background-color: #EDF1F6;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
}

.award-icon-box img {
  width: 70%; 
  height: 70%;
}

.award-name-desc {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.award-name {
  font-family: 'Pretendard', var(--font-ko);
  font-weight: 500;
  font-size: clamp(14px, 4.10vw, 16px);
  line-height: 1.42;
  letter-spacing: 0%;
  color: #19191A;
}

.award-desc {
  font-family: 'Pretendard', var(--font-ko);
  font-weight: 500;
  font-size: clamp(12.3px, 3.59vw, 14px);
  line-height: 1.42;
  letter-spacing: 0%;
  color: #646568;
}

.award-divider {
  border-left: 2px dashed #D9D9D9;
  height: 60%;
  flex-shrink: 0;
}

.award-right {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 8px;
}

.award-gift-label {
  font-family: 'Pretendard', var(--font-ko);
  font-weight: 500;
  font-size: clamp(12.3px, 3.59vw, 14px);
  line-height: 1.42;
  letter-spacing: 0%;
  color: #19191A;
}

.award-gift-value {
  font-family: 'Pretendard', var(--font-ko);
  font-weight: 600;
  font-size: clamp(15.8px, 4.62vw, 18px);
  line-height: 1.42;
  letter-spacing: 0%;
  color: #19191A;
  margin-top: 2px;
}

/* Row 1 blue highlight styling */
.award-item.highlight-blue .award-gift-label {
  color: #1F3B7A;
}

.award-item.highlight-blue .award-gift-value {
  color: #1F3B7A;
}

.bullet-points {
  list-style: none;
  padding-left: 0;
  margin: 16px 0 24px 0;
}

.bullet-points li {
  position: relative;
  padding-left: 18px;
  font-family: 'Pretendard', var(--font-ko);
  font-weight: 300;
  font-size: clamp(12.3px, 3.59vw, 14px); /* 14px at 390px screen */
  line-height: 1.42;
  letter-spacing: 0%;
  color: #000000;
  margin-bottom: 6px;
}

.bullet-points li::before {
  content: "※";
  position: absolute;
  left: 0;
  top: 0;
}

.summary-pill-container {
  display: flex;
  justify-content: center;
  margin-top: 16px;
  margin-bottom: 16px;
}

.summary-pill {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background-color: #EDF1F6;
  border: 1px solid #E8EBF2;
  border-radius: 10px;
  width: clamp(319px, 92.82vw, 362px);
  height: 46px;
  box-sizing: border-box;
}

.summary-pill img {
  width: 20px;
  height: 20px;
}

.summary-pill .summary-text {
  font-family: 'Pretendard', var(--font-ko);
  font-weight: 500;
  font-size: clamp(12.3px, 3.59vw, 14px); /* 14px at 390px screen */
  line-height: 1.42;
  letter-spacing: 0%;
  color: #19191A;
}

.summary-pill .summary-text .summary-num {
  font-family: 'Pretendard', var(--font-ko);
  font-weight: 600;
  font-size: clamp(15.8px, 4.62vw, 18px); /* 18px at 390px screen */
  line-height: 1.42;
  letter-spacing: 0%;
  color: #1F3B7A;
  margin: 0 2px;
}

/* Chances Table */
.chance-title {
  font-family: 'Pretendard', var(--font-ko);
  font-weight: 500;
  font-size: clamp(15.8px, 4.62vw, 18px); /* 18px at 390px viewport */
  line-height: 1.42;
  letter-spacing: 0%;
  color: #000000;
  text-align: left;
  margin-bottom: 20px;
}.chance-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 60px;
}

.chance-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;  /* Fixed height regardless of screen width */
  padding: 0 clamp(16px, 5.12vw, 20px);
}

.chance-label {
  font-family: 'Pretendard', var(--font-ko);
  font-weight: 500;
  font-size: clamp(14px, 4.10vw, 16px); /* 16px at 390px */
  line-height: 1.42;
  letter-spacing: 0%;
  color: #000000;
}

.chance-steps {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  width: clamp(160px, 48.71vw, 190px); /* 190px at 390px */
  position: relative;
}

.chance-connector-line {
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  height: 1px;
  border-top: 1px dashed #EAEAEB;
  z-index: 1;
}

.chance-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 2;
  width: 48px;
}

.chance-step .step-label {
  font-family: 'Pretendard', var(--font-ko);
  font-weight: 400;
  font-size: clamp(12px, 3.59vw, 14px); /* 14px at 390px */
  line-height: 1.42;
  letter-spacing: 0%;
  color: #4B4C4E;
  margin-top: 6px;
  white-space: nowrap;
}

.conditions-title {
  font-family: 'Pretendard', var(--font-ko);
  font-weight: 500;
  font-size: clamp(21px, 6.15vw, 24px); /* 24px at 390px viewport */
  line-height: 1.40;
  letter-spacing: 0%;
  color: #000000;
  text-align: left;
  margin-bottom: 12px; /* 12px margin between title and description */
}

.conditions-desc {
  font-family: 'Pretendard', var(--font-ko);
  font-weight: 300;
  font-size: clamp(14px, 4.10vw, 16px); /* 16px at 390px viewport */
  line-height: 1.42;
  letter-spacing: 0%;
  color: #4B4C4E;
  text-align: left;
  margin-bottom: 16px;
}

/* Conditions Grid */
.conditions-box {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 20px 0;
}

.condition-card {
  display: flex;
  flex-direction: column;
  height: 133px; /* Fixed height regardless of screen width */
  padding: 16px 12px;
}

.condition-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.condition-title-text {
  font-family: 'Pretendard', var(--font-ko);
  font-weight: 500;
  font-size: clamp(14px, 4.10vw, 16px); /* 16px at 390px */
  line-height: 1.42;
  letter-spacing: 0%;
  color: #19191A;
}

.condition-content {
  display: flex;
  flex-direction: column;
}

.condition-item {
  font-family: 'Pretendard', var(--font-ko);
  font-weight: 300;
  font-size: clamp(14px, 4.10vw, 16px); /* 16px at 390px */
  line-height: 1.42;
  letter-spacing: 0%;
  color: #19191A;
  white-space: nowrap;
}

.condition-divider {
  border-top: 1px solid #EAEAEB;
  margin-top: 10px;
  margin-bottom: 6px;
  width: 100%;
}



.conditions-footnote {
  position: relative;
  padding-left: 18px;
  font-family: 'Pretendard', var(--font-ko);
  font-weight: 300;
  font-size: clamp(12.3px, 3.59vw, 14px); /* 14px at 390px viewport */
  line-height: 1.42;
  letter-spacing: 0%;
  color: #19191A;
  margin-top: 18px;
  text-align: left;
}

.conditions-footnote::before {
  content: "※";
  position: absolute;
  left: 0;
  top: 0;
}

/* Step Flow */
.steps-container {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 24px 0;
}

.step-card {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  height: 126px; /* Fixed height for box-type element */
  padding: 0 16px;
  position: relative;
}

.step-num-bubble {
  position: absolute;
  top: 12px;
  left: 12px;
  background-color: #1F3B7A;
  border: 1px solid #233A6B;
  color: #ffffff;
  width: 26px;
  height: 26px;
  border-radius: 6px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: 'Pretendard', var(--font-ko);
  font-weight: 600;
  font-size: 14px;
  z-index: 10;
}

.step-icon-wrapper {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background-color: rgba(237, 240, 246, 0.4);
  border: 1px solid rgba(232, 235, 242, 0.4);
  display: flex;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
  margin-left: 12px; /* Leaves space for absolute positioned step badge */
  margin-right: 16px;
}

.step-icon-wrapper img {
  width: 70px;
  height: 70px;
}

.step-info {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.step-title {
  font-family: 'Pretendard', var(--font-ko);
  font-weight: 500;
  font-size: clamp(15.8px, 4.62vw, 18px); /* 18px at 390px viewport */
  line-height: 1.42;
  letter-spacing: 0%;
  color: #19191A;
  margin-bottom: 0;
}

.step-desc {
  font-family: 'Pretendard', var(--font-ko);
  font-weight: 400;
  font-size: clamp(14px, 4.10vw, 16px); /* 16px at 390px viewport */
  line-height: 1.42;
  letter-spacing: 0%;
  color: #4B4C4E;
}

.step-connector {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 32px;
  height: 32px;
  background-color: #EAEAEB;
  border: 1px solid #D8D8D9;
  border-radius: 50%;
  margin: -11px auto;
  position: relative;
  z-index: 5;
}

.step-connector svg {
  display: block;
}

.hashtags {
  font-size: 14px;
  font-weight: 700;
  color: var(--primary-light);
  text-align: center;
  margin: 16px 0 24px;
}

/* Submission Form */
.submission-form-container {
  margin: 30px 0 40px;
}

.input-group {
  display: flex;
  gap: 8px;
}

.url-input {
  flex-grow: 1;
  padding: 14px 16px;
  border: 1px solid var(--gray-200);
  border-radius: var(--border-radius-sm);
  font-size: 14px;
  outline: none;
  transition: var(--transition);
}

.url-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(21, 52, 122, 0.1);
}

.submit-btn {
  background-color: var(--primary);
  color: #ffffff;
  border: none;
  padding: 0 24px;
  font-weight: 700;
  font-size: 14px;
  border-radius: var(--border-radius-sm);
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.submit-btn:hover {
  background-color: var(--primary-light);
}

/* Board UI */
.board-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.board-title {
  font-size: 16px;
  font-weight: 700;
}

.board-count {
  color: var(--primary);
  font-family: var(--font-en);
  margin-left: 4px;
}

.board-tabs {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--gray-200);
  margin-bottom: 16px;
  overflow-x: auto;
  scrollbar-width: none;
  position: sticky;
  top: 110px;
  z-index: 90;
  background-color: #ffffff;
  padding-top: 10px;
  padding-bottom: 10px;
}

.board-tabs::-webkit-scrollbar {
  display: none;
}

.board-tab {
  padding: 10px 14px;
  font-size: 13px;
  color: var(--gray-600);
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: var(--transition);
}

.board-tab.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.board-list {
  display: flex;
  flex-direction: column;
}

.board-item-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 4px;
  border-bottom: 1px solid var(--gray-100);
  font-size: 13px;
}

.board-item-main {
  display: flex;
  align-items: center;
  gap: 8px;
}

.board-item-status {
  color: var(--primary);
  font-weight: 700;
}

.board-item-index {
  color: var(--gray-400);
  font-family: var(--font-en);
}

.board-item-info {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--gray-400);
  font-size: 11px;
}

.board-item-user {
  font-weight: 500;
  color: var(--gray-600);
}

.board-item-link-icon {
  width: 14px;
  height: 14px;
  cursor: pointer;
}

.board-empty {
  padding: 40px 0;
  text-align: center;
  color: var(--gray-400);
  font-size: 13px;
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  margin-top: 24px;
}

.page-num {
  font-family: var(--font-en);
  font-size: 13px;
  color: var(--gray-400);
  cursor: pointer;
  padding: 4px 8px;
  transition: var(--transition);
}

.page-num.active {
  color: var(--primary);
  font-weight: 700;
}

/* Footer */
footer {
  background-color: var(--gray-50);
  padding: 40px 20px;
  font-size: 12px;
  color: var(--gray-600);
  line-height: 1.6;
}

.footer-logo {
  margin-bottom: 20px;
}

.footer-logo img {
  height: 20px;
}

.company-info {
  margin-bottom: 24px;
}

.company-info p {
  margin-bottom: 4px;
}

.cs-info {
  border-top: 1px solid var(--gray-200);
  padding-top: 20px;
  margin-bottom: 24px;
}

.cs-phone {
  font-size: 18px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 4px;
  font-family: var(--font-en);
}

.copyright {
  font-family: var(--font-en);
  color: var(--gray-400);
}

/* Modals System */
.modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  width: calc(100% - 40px);
  max-width: 380px;
  background-color: #ffffff;
  border-radius: var(--border-radius-lg);
  padding: 30px 24px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  transform: translateY(20px);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-overlay.active .modal-content {
  transform: translateY(0);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.modal-title {
  font-size: 18px;
  font-weight: 700;
}

.close-btn {
  background: none;
  border: none;
  font-size: 20px;
  color: var(--gray-400);
  cursor: pointer;
  padding: 4px;
}

/* Login Modal Specific */
.login-sub {
  font-size: 13px;
  color: var(--gray-600);
  margin-bottom: 24px;
}

.social-login-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 14px;
  border-radius: var(--border-radius-sm);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: var(--transition);
}

.social-btn.kakao {
  background-color: #fee500;
  color: #191919;
}

.social-btn.naver {
  background-color: #03c75a;
  color: #ffffff;
}

.social-btn.google {
  background-color: #ffffff;
  color: var(--dark);
  border: 1px solid var(--gray-200);
}

.social-btn img {
  width: 18px;
  height: 18px;
}

/* Toast Notification */
.toast-msg {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background-color: rgba(30, 41, 59, 0.95);
  color: #ffffff;
  padding: 12px 24px;
  border-radius: 30px;
  font-size: 13px;
  font-weight: 600;
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.3s ease;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  white-space: nowrap;
}

.toast-msg.active {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}