/* =========================================================================
   1. DESIGN TOKENS & SPEAKEASY DARK-AMBER THEME (FROM 0.html)
   ========================================================================= */
#support-dalgona-modal,
.fullscreen-scene,
.black-curtain {
  --bg-page: #070605;
  --bg-scene: #0e0b08;
  --bg-surface: #17120e;
  --bg-elevated: #211a14;
  --border-subtle: rgba(243, 203, 120, 0.16);
  --border-gold: rgba(243, 203, 120, 0.42);
  --gold-light: #fae1a5;
  --gold-main: #e6b45c;
  --amber-accent: #c96a1b;
  --kraft-fill: #b88d58;
  --kraft-dark: #9c7240;
  --kraft-border: #6b4a28;
  --kraft-dot: rgba(95, 65, 34, 0.42);
  --stamp-red: #b91c1c;
  --text-main: #f7f1e6;
  --text-sub: #c6b8a3;
  --text-muted: #8f8270;
  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 13px;
  --radius-sm: 10px;
  --font-sans: "Pretendard", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", system-ui, sans-serif;
}

.fullscreen-scene,
.fullscreen-scene * {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  -webkit-user-select: none;
}

body.scene-locked {
  overflow: hidden;
  height: 100dvh;
}

/* =========================================================================
   2. FULL-SCREEN CINEMATIC OVERLAY & FADE-TO-BLACK CURTAIN
   ========================================================================= */
.black-curtain {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: #000000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.34s ease;
}

.black-curtain.active {
  opacity: 1;
  pointer-events: auto;
}

.fullscreen-scene {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100dvh;
  z-index: 9999;
  background: linear-gradient(180deg, #130f0b 0%, var(--bg-scene) 50%, #090705 100%);
  color: var(--text-main);
  font-family: var(--font-sans);
  display: flex;
  flex-direction: column;
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition: opacity 0.32s ease, visibility 0.32s ease;
  overflow: hidden;
}

.fullscreen-scene.open,
.fullscreen-scene.active {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
}

.scene-inner {
  width: 100%;
  max-width: 920px;
  height: 100dvh;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  position: relative;
  background: linear-gradient(180deg, #15110d 0%, #0d0a07 100%);
  box-shadow: 0 0 80px rgba(0, 0, 0, 0.9);
  overflow: hidden;
}

/* =========================================================================
   3. PERSISTENT FULL-SCREEN TOP BAR (TIER 1)
   ========================================================================= */
.fs-topbar {
  position: relative;
  z-index: 30;
  flex-shrink: 0;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: max(12px, env(safe-area-inset-top)) 14px 12px;
  background: linear-gradient(180deg, rgba(22, 17, 13, 0.96) 0%, rgba(16, 12, 9, 0.9) 100%);
  border-bottom: 1px solid var(--border-subtle);
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
}

.topbar-badge {
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(230, 180, 92, 0.14);
  border: 1px solid rgba(243, 203, 120, 0.36);
  color: var(--gold-light);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.topbar-icon-btn {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(34, 28, 22, 0.9);
  color: var(--text-sub);
  font-size: 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: border-color 0.18s ease, color 0.18s ease;
}

.topbar-icon-btn:hover {
  border-color: var(--gold-main);
  color: var(--gold-light);
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-shrink: 0;
}

.country-dropdown-wrap {
  position: relative;
}

.country-pill-btn {
  height: 34px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(243, 203, 120, 0.3);
  background: rgba(34, 27, 20, 0.92);
  color: var(--text-main);
  font-family: inherit;
  font-size: 11.5px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
}

.country-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 152px;
  background: #1b1611;
  border: 1px solid var(--border-gold);
  border-radius: 14px;
  padding: 5px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.88);
  display: none;
  flex-direction: column;
  gap: 3px;
  z-index: 50;
}

.country-menu.open {
  display: flex;
}

.country-option {
  width: 100%;
  padding: 9px 10px;
  border: none;
  border-radius: 9px;
  background: transparent;
  color: var(--text-sub);
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
}

.country-option:hover {
  background: rgba(230, 180, 92, 0.12);
  color: var(--text-main);
}

.country-option.active {
  background: rgba(230, 180, 92, 0.22);
  color: var(--gold-light);
}

.fullscreen-scene .exit-btn {
  height: 34px;
  padding: 0 11px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(36, 29, 23, 0.92);
  color: var(--text-main);
  font-family: inherit;
  font-size: 12px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  white-space: nowrap;
  transition: border-color 0.18s ease, color 0.18s ease;
}

.fullscreen-scene .exit-btn:hover {
  border-color: var(--gold-main);
  color: var(--gold-light);
}

/* =========================================================================
   4. ACT CONTAINERS
   ========================================================================= */
.act-panel {
  display: none;
  flex: 1 1 auto;
  min-height: 0;
  flex-direction: column;
  width: 100%;
  animation: actFadeIn 0.32s ease;
}

.act-panel.active {
  display: flex;
}

@keyframes actFadeIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =========================================================================
   5. ACT 1: 3-TIER SPEAKEASY CUTSCENE STAGE & 3D BUSINESS CARD (TIER 2)
   ========================================================================= */
.cutscene-stage {
  position: relative;
  flex: 1 1 auto;
  min-height: 240px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding: 12px 16px clamp(18px, 4.8vh, 44px);
  background: radial-gradient(ellipse at 50% 34%, rgba(214, 128, 38, 0.22) 0%, rgba(15, 11, 7, 0.96) 64%, #080604 100%);
  overflow: hidden;
  perspective: 1100px;
}

#dustCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
}

.stage-spotlight {
  position: absolute;
  bottom: 16%;
  left: 50%;
  transform: translateX(-50%);
  width: min(92vw, 440px);
  height: clamp(280px, 48vh, 430px);
  background: radial-gradient(ellipse at 50% 38%, rgba(245, 178, 72, 0.26) 0%, rgba(198, 114, 34, 0.1) 44%, transparent 72%);
  pointer-events: none;
  z-index: 1;
}

.stage-vignette {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 6, 4, 0.14) 0%, transparent 22%, transparent 74%, rgba(8, 6, 4, 0.72) 100%);
  pointer-events: none;
  z-index: 4;
}

/* Suited Mysterious Host Silhouette (Grounded to Bottom of Stage) */
.silhouette-wrap {
  position: absolute;
  left: 50%;
  bottom: -10px;
  height: clamp(320px, 56vh, 500px);
  max-height: calc(100% - 6px);
  width: auto;
  aspect-ratio: 280 / 380;
  transform-origin: bottom center;
  transform: translateX(-50%) translateY(24px) scale(0.96);
  opacity: 0;
  z-index: 3;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 76%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 0%, #000 76%, transparent 100%);
  transition: transform 0.78s cubic-bezier(0.2, 0.85, 0.25, 1), opacity 0.65s ease, filter 0.65s ease;
}

.silhouette-wrap.entered {
  opacity: 1;
  transform: translateX(-50%) translateY(0) scale(1);
  filter: brightness(1) blur(0px);
}

.silhouette-wrap.receded {
  opacity: 0.78;
  transform: translateX(-50%) scale(0.95);
  filter: brightness(0.6) blur(1.2px);
}

.silhouette-svg {
  width: 100%;
  height: 100%;
  overflow: visible;
  animation: silhouetteBreathe 4.4s ease-in-out infinite;
}

@keyframes silhouetteBreathe {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-4px);
  }
}

.sil-arm {
  transform-origin: 186px 158px;
  transition: transform 0.72s cubic-bezier(0.22, 1, 0.36, 1);
}

.silhouette-wrap.hand-extended .sil-arm {
  transform: translate(-22px, -14px) rotate(13deg) scale(1.06);
}

/* 3D Kraft Business Card (Positioned Over Gentleman's Chest / Hand Area) */
.card-stage-anchor {
  position: relative;
  z-index: 6;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  pointer-events: none;
  perspective: 1100px;
  margin-bottom: clamp(2px, 1.5vh, 14px);
}

.card-presenter {
  width: min(82vw, 310px);
  aspect-ratio: 1.72 / 1;
  opacity: 0;
  transform: translate3d(34px, 34px, -180px) scale(0.42) rotateZ(12deg) rotateX(16deg);
  transition: transform 0.84s cubic-bezier(0.18, 0.9, 0.24, 1), opacity 0.5s ease;
  transform-style: preserve-3d;
  cursor: pointer;
}

.card-presenter.presented {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1) rotateZ(0deg) rotateX(0deg);
  pointer-events: auto;
}

.card-float {
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.14s ease-out;
}

.card-presenter.presented:not(.tilting) .card-float {
  animation: cardFloatIdle 4.4s ease-in-out infinite;
}

@keyframes cardFloatIdle {
  0%, 100% {
    transform: translateY(0) rotateX(2deg) rotateY(-2deg);
  }
  50% {
    transform: translateY(-5px) rotateX(-2deg) rotateY(2.5deg);
  }
}

.card-flipper {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.85s cubic-bezier(0.24, 0.9, 0.3, 1);
}

.card-flipper.flipped {
  transform: rotateY(180deg);
}

.card-aura {
  position: absolute;
  inset: -12px;
  border-radius: 16px;
  background: radial-gradient(circle, rgba(245, 178, 66, 0.44) 0%, transparent 70%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s ease;
  transform: translateZ(-2px);
}

.card-flipper.flipped .card-aura {
  opacity: 1;
}

.card-face {
  position: absolute;
  inset: 0;
  border-radius: 7px;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  background:
    radial-gradient(circle at 25% 20%, rgba(255, 240, 210, 0.18) 0%, transparent 55%),
    linear-gradient(145deg, #c39762 0%, var(--kraft-fill) 55%, var(--kraft-dark) 100%);
  border: 3px solid var(--kraft-border);
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.88), 0 6px 16px rgba(0, 0, 0, 0.6), inset 0 0 0 1px rgba(255, 232, 195, 0.28);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.card-front {
  transform: rotateY(0deg);
  z-index: 2;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.18s ease 0.18s, visibility 0s linear 0s;
}

.card-flipper.flipped .card-front {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.16s ease 0.14s, visibility 0s linear 0.3s;
}

.card-dot-grid {
  position: absolute;
  inset: 11px 16px;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-template-rows: repeat(4, 1fr);
  place-items: center;
  pointer-events: none;
  z-index: 1;
}

.card-dot-grid span {
  width: 3px;
  height: 2px;
  border-radius: 1px;
  background: var(--kraft-dot);
}

.card-symbols {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  width: 100%;
  padding: 0 16px;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.geo-symbol {
  width: 48px;
  height: 48px;
  filter: drop-shadow(0 1px 0 rgba(70, 10, 10, 0.28));
}

/* Card Back: Gold-Foil VIP Secret Pass */
.card-back {
  transform: rotateY(180deg);
  z-index: 1;
  opacity: 0;
  visibility: hidden;
  background:
    radial-gradient(circle at 50% 0%, rgba(243, 203, 120, 0.22) 0%, transparent 65%),
    linear-gradient(155deg, #211912 0%, #140f0b 55%, #1d150e 100%);
  border: 2.5px solid #c59647;
  flex-direction: column;
  gap: 6px;
  padding: 14px;
  text-align: center;
  transition: opacity 0.16s ease 0.14s, visibility 0s linear 0.3s;
}

.card-flipper.flipped .card-back {
  z-index: 3;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.18s ease 0.18s, visibility 0s linear 0.18s;
}

.card-back-frame {
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(243, 203, 120, 0.36);
  border-radius: 4px;
  pointer-events: none;
}

.card-back-kicker {
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.2em;
  color: var(--gold-main);
}

.card-back-title {
  font-size: 14px;
  font-weight: 900;
  color: var(--gold-light);
  letter-spacing: -0.02em;
}

.card-back-divider {
  width: 54px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-main), transparent);
}

.card-back-country {
  padding: 4px 11px;
  border-radius: 999px;
  background: rgba(230, 180, 92, 0.14);
  border: 1px solid rgba(230, 180, 92, 0.38);
  color: #fff3d6;
  font-size: 11px;
  font-weight: 800;
}

.stage-flip-hint {
  position: relative;
  z-index: 9;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(15, 12, 9, 0.82);
  border: 1px solid rgba(243, 203, 120, 0.28);
  color: var(--text-sub);
  font-size: 11px;
  font-weight: 700;
  opacity: 0;
  transform: translateY(4px);
  pointer-events: none;
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.stage-flip-hint.visible {
  opacity: 1;
  transform: translateY(0);
}

/* =========================================================================
   6. VISUAL NOVEL DIALOGUE DOCK & CHOICE BUTTONS (TIER 3)
   ========================================================================= */
.dialogue-dock {
  flex-shrink: 0;
  position: relative;
  z-index: 15;
  padding: 12px 14px max(16px, env(safe-area-inset-bottom));
  background: linear-gradient(180deg, rgba(16, 12, 9, 0.96) 0%, #0b0806 100%);
  border-top: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
}

.dialogue-box {
  position: relative;
  background: rgba(18, 14, 11, 0.94);
  border: 1px solid rgba(245, 158, 11, 0.38);
  border-radius: 16px;
  padding: 18px 18px 14px;
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.65), inset 0 1px 0 rgba(250, 225, 165, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  cursor: pointer;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.dialogue-box.dramatic {
  border-color: rgba(245, 158, 11, 0.65);
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.7), 0 0 24px rgba(230, 180, 92, 0.16);
}

.speaker-plate {
  position: absolute;
  top: -12px;
  left: 16px;
  padding: 3px 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, #3a2713 0%, #22160a 100%);
  border: 1px solid rgba(245, 158, 11, 0.7);
  color: var(--gold-light);
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: -0.01em;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.dialogue-text {
  margin: 2px 0 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-main);
  word-break: keep-all;
  min-height: 66px;
}

.dialogue-footer {
  margin-top: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11.5px;
  color: var(--text-muted);
}

.dialogue-footer.hidden {
  display: none;
}

.next-arrow {
  color: var(--gold-main);
  font-weight: 800;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.next-arrow.visible {
  opacity: 1;
  animation: arrowBounce 1.1s ease-in-out infinite;
}

@keyframes arrowBounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(3px);
  }
}

.choices-wrap {
  display: none;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
}

.choices-wrap.visible {
  display: flex;
}

.choice-btn {
  width: 100%;
  padding: 12px 15px;
  border-radius: 12px;
  border: 1px solid rgba(245, 158, 11, 0.34);
  background: linear-gradient(135deg, rgba(38, 29, 21, 0.96) 0%, rgba(24, 18, 13, 0.98) 100%);
  color: var(--text-main);
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 800;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
  transition: transform 0.12s ease, border-color 0.2s ease, background 0.2s ease, filter 0.2s ease;
}

.choice-btn:hover {
  border-color: var(--gold-light);
  background: linear-gradient(135deg, rgba(54, 40, 27, 0.98) 0%, rgba(32, 24, 16, 0.98) 100%);
}

.choice-btn:active {
  transform: scale(0.98);
}

.choice-btn .chevron {
  color: var(--gold-main);
  font-size: 16px;
  font-weight: 900;
  line-height: 1;
  flex-shrink: 0;
}

.choice-btn.primary {
  background: linear-gradient(135deg, #d88d2c 0%, #9f5415 100%);
  border-color: rgba(250, 225, 165, 0.65);
  color: #fffaf0;
  box-shadow: 0 8px 22px rgba(201, 106, 27, 0.36), inset 0 1px 0 rgba(255, 245, 220, 0.35);
}

.choice-btn.primary:hover {
  filter: brightness(1.08);
}

.choice-btn.primary .chevron {
  color: #fffaf0;
}

.choice-btn.ghost {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.14);
  color: var(--text-sub);
  box-shadow: none;
}

.choice-btn.ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(243, 203, 120, 0.34);
  color: var(--text-main);
}

.choice-btn.ghost .chevron {
  color: var(--text-muted);
}

/* =========================================================================
   7. ACT 2: FULL-SCREEN SECRET LOUNGE (2 DECOUPLED TABS)
   ========================================================================= */
.lounge-tabs-bar {
  padding: 12px 14px 10px;
  background: rgba(16, 13, 10, 0.96);
  border-bottom: 1px solid var(--border-subtle);
  flex-shrink: 0;
}

.lounge-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 4px;
  border-radius: 14px;
  background: #0d0a08;
  border: 1px solid var(--border-subtle);
}

.lounge-tab-btn {
  padding: 10px 8px;
  border: none;
  border-radius: 10px;
  background: transparent;
  color: var(--text-muted);
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  transition: all 0.2s ease;
}

.lounge-tab-btn.active {
  background: linear-gradient(135deg, rgba(216, 141, 44, 0.28) 0%, rgba(159, 84, 21, 0.38) 100%);
  color: var(--gold-light);
  box-shadow: inset 0 0 0 1px rgba(243, 203, 120, 0.44);
}

.tab-dot-indicator {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 8px rgba(74, 222, 128, 0.8);
  display: none;
}

.tab-dot-indicator.show {
  display: inline-block;
}

.lounge-scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(243, 203, 120, 0.55) rgba(255, 255, 255, 0.06);
  padding: 12px 14px max(32px, env(safe-area-inset-bottom));
}

.lounge-scroll::-webkit-scrollbar {
  width: 6px !important;
  height: 6px !important;
  display: block !important;
}

.lounge-scroll::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 999px;
}

.lounge-scroll::-webkit-scrollbar-thumb {
  background: rgba(243, 203, 120, 0.55);
  border-radius: 999px;
}

.lounge-scroll::-webkit-scrollbar-thumb:hover {
  background: rgba(243, 203, 120, 0.8);
}

.lounge-pane {
  display: none;
  flex-direction: column;
  gap: 14px;
  animation: actFadeIn 0.26s ease;
}

.lounge-pane.active {
  display: flex;
}

/* ---- TAB 1: VIP 비밀 상회 (0원 후원 통로) ---- */
.portal-hero {
  padding: 15px;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, #1d1711 0%, #14100c 100%);
  border: 1px solid rgba(243, 203, 120, 0.26);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.portal-hero-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.portal-title {
  margin: 0;
  flex: 1 1 180px;
  min-width: 0;
  font-size: 15.5px;
  line-height: 1.35;
  font-weight: 900;
  color: var(--gold-light);
  overflow-wrap: anywhere;
}

.portal-lang-select {
  flex-shrink: 0;
  max-width: 100%;
  padding: 6px 28px 6px 11px;
  border-radius: 999px;
  background-color: rgba(34, 27, 20, 0.96);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23fae1a5' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='7 15 12 20 17 15'/%3E%3Cpolyline points='7 9 12 4 17 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 9px center;
  background-size: 12px 12px;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  border: 1px solid rgba(243, 203, 120, 0.42);
  font-family: inherit;
  font-size: 11.5px;
  font-weight: 800;
  color: var(--gold-light);
  outline: none;
  cursor: pointer;
}

.portal-lang-select option {
  background: #17120e;
  color: var(--text-main);
}

.portal-subtitle {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.54;
  color: var(--text-sub);
  word-break: keep-all;
}

.partner-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
  align-items: start;
}

@media (max-width: 740px) {
  .partner-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
  }
}

@media (max-width: 519px) {
  .partner-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}

.partner-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.partner-card {
  width: 100%;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(243, 203, 120, 0.26);
  background: linear-gradient(135deg, rgba(33, 26, 20, 0.96) 0%, rgba(21, 17, 13, 0.98) 100%);
  color: var(--text-main);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: transform 0.14s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.partner-card:hover {
  border-color: var(--gold-main);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.45), 0 0 16px rgba(230, 180, 92, 0.14);
  transform: translateY(-1px);
}

.partner-card:active {
  transform: scale(0.98);
}

.partner-icon-box {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(230, 180, 92, 0.12);
  border: 1px solid rgba(230, 180, 92, 0.28);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
  flex-shrink: 0;
}

.partner-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.partner-name-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.partner-name {
  font-size: 14.5px;
  font-weight: 800;
  color: var(--text-main);
}

.partner-badge {
  padding: 2px 6px;
  border-radius: 6px;
  background: rgba(201, 106, 27, 0.24);
  border: 1px solid rgba(245, 166, 35, 0.4);
  color: var(--gold-light);
  font-size: 10px;
  font-weight: 800;
}

.partner-desc {
  font-size: 12px;
  color: var(--text-muted);
}

.partner-go {
  font-size: 11.5px;
  font-weight: 800;
  color: var(--gold-main);
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(230, 180, 92, 0.12);
  border: 1px solid rgba(230, 180, 92, 0.28);
  white-space: nowrap;
  flex-shrink: 0;
}

/* Special copyable promo code row (e.g., Temu referral code) */
.partner-promo-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 5px 9px;
  border-radius: 8px;
  background: rgba(230, 180, 92, 0.1);
  border: 1px dashed rgba(243, 203, 120, 0.42);
}

.partner-promo-text {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--gold-light);
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.partner-promo-text code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  font-weight: 900;
  color: #fff3d6;
  background: rgba(0, 0, 0, 0.35);
  padding: 1px 5px;
  border-radius: 5px;
}

.partner-promo-copy-btn {
  flex-shrink: 0;
  padding: 4px 9px;
  border-radius: 999px;
  border: 1px solid rgba(243, 203, 120, 0.55);
  background: rgba(230, 180, 92, 0.22);
  color: #fff6e0;
  font-family: inherit;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.12s ease, background 0.16s ease;
}

.partner-promo-copy-btn:hover {
  background: rgba(230, 180, 92, 0.36);
}

.partner-promo-copy-btn:active {
  transform: scale(0.95);
}

/* Individual legal disclosure placed directly beneath each partner link (FTC/Platform compliance: >= 12px, high contrast) */
.partner-disclosure,
.dalgona-disclosure {
  margin: 0;
  padding: 5px 8px;
  border-left: 2.5px solid var(--gold-main);
  border-radius: 0 8px 8px 0;
  background: rgba(230, 180, 92, 0.08);
  font-size: 0.75rem;
  line-height: 1.4;
  color: #efe4d2;
  word-break: keep-all;
}

.lounge-footer-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin-top: 4px;
}

.lounge-sub-btn {
  padding: 12px 10px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-sub);
  font-family: inherit;
  font-size: 12.2px;
  font-weight: 800;
  cursor: pointer;
}

.lounge-sub-btn:hover {
  border-color: var(--gold-main);
  color: var(--gold-light);
}

/* ---- TAB 2: 오늘의 비밀 달고나 (FREE DAILY EASTER EGG) ---- */
.dalgona-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 13px;
}

.policy-free-banner {
  width: 100%;
  padding: 11px 13px;
  border-radius: var(--radius-md);
  background: rgba(74, 222, 128, 0.08);
  border: 1px solid rgba(74, 222, 128, 0.28);
  color: #bbf7d0;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.48;
  text-align: center;
  word-break: keep-all;
}

.dalgona-status-bar {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 11px 14px;
  border-radius: var(--radius-md);
  background: rgba(28, 22, 16, 0.94);
  border: 1px solid var(--border-subtle);
}

.dalgona-stat-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 800;
  color: var(--text-main);
}

.dalgona-stat-chip .hl {
  color: var(--gold-light);
}

.daily-badge {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 800;
  background: rgba(74, 222, 128, 0.16);
  border: 1px solid rgba(74, 222, 128, 0.42);
  color: #86efac;
}

.daily-badge.used {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.18);
  color: var(--text-sub);
}

.dalgona-canvas-wrap {
  position: relative;
  width: 100%;
  max-width: 280px;
  aspect-ratio: 1 / 1;
  border-radius: 18px;
  background: radial-gradient(circle at 50% 45%, #2b1d12 0%, #120c08 75%);
  border: 1.5px solid rgba(245, 158, 11, 0.34);
  box-shadow: inset 0 0 28px rgba(0, 0, 0, 0.8), 0 12px 30px rgba(0, 0, 0, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  touch-action: manipulation;
  overflow: hidden;
}

.dalgona-canvas-wrap.is-shaking {
  animation: dalgonaShake 0.11s linear infinite;
}

@keyframes dalgonaShake {
  0% { transform: translate(0, 0); }
  25% { transform: translate(-2px, 1px); }
  50% { transform: translate(2px, -1px); }
  75% { transform: translate(-1px, -2px); }
  100% { transform: translate(1px, 2px); }
}

#dalgonaCanvas {
  width: 100%;
  height: 100%;
  display: block;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

.dalgona-primary-btn {
  width: 100%;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(250, 225, 165, 0.55);
  background: linear-gradient(135deg, #d88d2c 0%, #9f5415 100%);
  color: #fffaf0;
  font-family: inherit;
  font-size: 14.5px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(201, 106, 27, 0.34);
  transition: transform 0.12s ease, filter 0.2s ease;
}

.dalgona-primary-btn:active {
  transform: scale(0.98);
}

.cooldown-card {
  width: 100%;
  padding: 14px;
  border-radius: var(--radius-md);
  background: rgba(28, 22, 17, 0.94);
  border: 1px solid rgba(243, 203, 120, 0.28);
  text-align: center;
  display: none;
  flex-direction: column;
  gap: 6px;
}

.cooldown-card.visible {
  display: flex;
}

.cooldown-title {
  font-size: 14px;
  font-weight: 800;
  color: var(--gold-light);
}

.cooldown-timer {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-sub);
  font-variant-numeric: tabular-nums;
}

.cooldown-sub-btn {
  margin-top: 6px;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid rgba(243, 203, 120, 0.34);
  background: rgba(230, 180, 92, 0.12);
  color: var(--gold-light);
  font-family: inherit;
  font-size: 12.2px;
  font-weight: 800;
  cursor: pointer;
}

/* 100% Completion Secret QR Reward Card */
.qr-reward-card {
  width: 100%;
  padding: 18px 16px;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 50% 0%, rgba(243, 203, 120, 0.22) 0%, transparent 60%),
    linear-gradient(180deg, #211911 0%, #140f0b 100%);
  border: 1.5px solid var(--gold-main);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.7), 0 0 26px rgba(230, 180, 92, 0.18);
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 11px;
  text-align: center;
  animation: actFadeIn 0.45s ease;
}

.qr-reward-card.visible {
  display: flex;
}

.qr-badge {
  padding: 4px 11px;
  border-radius: 999px;
  background: rgba(230, 180, 92, 0.2);
  border: 1px solid var(--gold-main);
  color: var(--gold-light);
  font-size: 11px;
  font-weight: 800;
}

.qr-title {
  margin: 0;
  font-size: 17px;
  font-weight: 900;
  color: var(--gold-light);
}

.qr-desc {
  margin: 0;
  font-size: 12.4px;
  line-height: 1.52;
  color: var(--text-sub);
  word-break: keep-all;
}

.qr-canvas-frame {
  padding: 10px;
  border-radius: 14px;
  background: #fffdf8;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.55);
}

#qrCanvas {
  display: block;
  width: 164px;
  height: 164px;
  image-rendering: pixelated;
}

.qr-cta-link {
  width: 100%;
  padding: 13px 14px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, #d88d2c 0%, #9f5415 100%);
  border: 1px solid rgba(250, 225, 165, 0.55);
  color: #fffaf0;
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 800;
  text-align: center;
  box-shadow: 0 8px 22px rgba(201, 106, 27, 0.34);
}

.qr-copy-btn {
  width: 100%;
  padding: 11px 14px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(243, 203, 120, 0.34);
  background: rgba(230, 180, 92, 0.1);
  color: var(--gold-light);
  font-family: inherit;
  font-size: 12.2px;
  font-weight: 800;
  cursor: pointer;
}

/* =========================================================================
   8. IN-SCENE TOAST MESSAGE
   ========================================================================= */
.scene-toast {
  position: absolute;
  left: 50%;
  bottom: max(18px, env(safe-area-inset-bottom));
  transform: translateX(-50%) translateY(16px);
  width: calc(100% - 28px);
  max-width: 400px;
  padding: 11px 15px;
  border-radius: 13px;
  background: rgba(24, 18, 13, 0.96);
  border: 1px solid var(--gold-main);
  color: var(--gold-light);
  font-size: 12.4px;
  font-weight: 700;
  text-align: center;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.85);
  opacity: 0;
  pointer-events: none;
  z-index: 60;
  transition: opacity 0.24s ease, transform 0.24s ease;
}

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

/* =========================================================================
   9. SETTINGS MODAL ENTRY BUTTON (ROSE/PINK SECRET INVITATION)
   ========================================================================= */
.settings-support-btn {
  width: 100%;
  margin-top: 10px;
  background: linear-gradient(135deg, rgba(244, 63, 94, 0.22), rgba(190, 18, 60, 0.35)) !important;
  color: #fecdd3 !important;
  border: 1px solid rgba(251, 113, 133, 0.45) !important;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.settings-support-btn:hover {
  background: linear-gradient(135deg, rgba(244, 63, 94, 0.34), rgba(190, 18, 60, 0.48)) !important;
}
