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

:root {
  --bg-dark: #090a0d;
  --card-bg: #131418;
  --btn-bg: #1c1d24;
  --btn-hover: #252730;
  --text-main: #f1f2f6;
  --text-sub: #8d909b;
  --text-muted: #6b6e7a;
  
  --wine-light: #b01e2c;
  --wine-main: #7a0f19;
  --wine-dark: #40050b;
  --wine-sub: rgba(122, 15, 25, 0.18);
  --wine-border: rgba(176, 30, 44, 0.42);

  --gold-light: #fbbf24;
  --gold-main: #d97706;
  --gold-sub: rgba(245, 158, 11, 0.14);
  --gold-border: rgba(245, 158, 11, 0.45);
}

body {
  font-family: "Pretendard", "Plus Jakarta Sans", -apple-system, sans-serif;
  background: var(--bg-dark);
  color: var(--text-main);
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.star-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
}

.star {
  position: absolute;
  border-radius: 50%;
  background: #ffffff;
  opacity: 0.5;
  animation: twinkle 3s infinite ease-in-out;
}

@keyframes twinkle {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 0.12; }
}

/* 5단계 축하 폭죽 캔버스 */
#celebration-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 999;
}

/* 인트로 수정구슬 무대 */
#intro-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  background: #050608;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 0 16px;
  z-index: 9999;
  transition: opacity 0.5s ease;
  overflow: hidden;
}

.orb-stage {
  position: relative;
  width: 320px;
  height: 320px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.mystic-crystal-orb {
  position: absolute;
  width: 270px;
  height: 270px;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle at 35% 28%, rgba(255, 255, 255, 0.28) 0%, rgba(176, 30, 44, 0.22) 32%, rgba(40, 5, 11, 0.45) 70%, rgba(9, 10, 13, 0.85) 100%);
  box-shadow: 
    inset 0 0 35px rgba(255, 157, 165, 0.25),
    inset 0 0 15px rgba(255, 255, 255, 0.35),
    0 0 50px rgba(176, 30, 44, 0.45),
    0 0 100px rgba(122, 15, 25, 0.3);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 157, 165, 0.22);
  animation: orbPulse 4s infinite ease-in-out;
  z-index: 1;
}

.mystic-crystal-orb::after {
  content: "";
  position: absolute;
  top: 26px;
  left: 42px;
  width: 60px;
  height: 34px;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(255, 255, 255, 0.5) 0%, transparent 80%);
  transform: rotate(-32deg);
  filter: blur(1.5px);
}

.astral-ring {
  position: absolute;
  width: 310px;
  height: 310px;
  border-radius: 50%;
  border: 1px dashed rgba(229, 144, 152, 0.25);
  animation: ringRotate 24s linear infinite;
  pointer-events: none;
  z-index: 0;
}

.astral-ring::before {
  content: "✦";
  position: absolute;
  top: -9px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 14px;
  color: #fde68a;
  text-shadow: 0 0 8px #fbbf24;
}

@keyframes orbPulse {
  0%, 100% {
    transform: scale(0.97);
    box-shadow: inset 0 0 30px rgba(255, 157, 165, 0.2), 0 0 40px rgba(176, 30, 44, 0.35);
  }
  50% {
    transform: scale(1.03);
    box-shadow: inset 0 0 45px rgba(255, 157, 165, 0.35), 0 0 70px rgba(176, 30, 44, 0.6), 0 0 120px rgba(122, 15, 25, 0.4);
  }
}

@keyframes ringRotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.typing-line {
  font-family: "Plus Jakarta Sans", "Pretendard", sans-serif;
  font-size: 2.3rem;
  font-weight: 900;
  margin: 3px 0;
  min-height: 3rem;
  letter-spacing: -1.2px;
  text-align: center;
  line-height: 1.15;
  word-break: keep-all;
  position: relative;
  z-index: 2;
  
  background: linear-gradient(135deg, #ffffff 0%, #ffc5cb 45%, #e59098 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.8)) drop-shadow(0 0 14px rgba(176, 30, 44, 0.5));
}

/* 상단 헤더 */
.app-header {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 450px;
  height: 60px;
  background: rgba(9, 10, 13, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 1000;
}

.brand-box {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.brand-title {
  font-family: "Silkscreen", monospace, sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.2px;
  line-height: 1.2;
  display: inline-block;
  background: linear-gradient(180deg, #f3f4f6 0%, #cbd5e1 50%, #9ca3af 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.5));
}

.brand-desc {
  font-size: 0.75rem;
  color: var(--text-sub);
  margin-top: 2px;
  font-weight: 500;
}

.language-selector {
  display: flex;
  background: #15161c;
  padding: 3px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.lang-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  border-radius: 9px;
  padding: 5px 8px;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}

.lang-btn.active {
  background: #252732;
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

/* 메인 뷰 컨테이너 */
#main-content {
  position: relative;
  z-index: 1;
  margin-top: 60px;
  width: 100%;
  max-width: 450px;
  min-height: calc(100vh - 60px);
  min-height: calc(100dvh - 60px);
  display: flex;
  flex-direction: column;
  padding: 0 12px 16px 12px;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.spacer-top {
  flex: 2;
  min-height: 8px;
}

.main-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex-shrink: 0;
}

.spacer-bottom {
  flex: 6;
  min-height: 16px;
}

/* 카드 및 박스 컴포넌트 */
.section-card {
  background: var(--card-bg);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 26px;
  padding: 26px 18px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.45);
  text-align: center;
  overflow: hidden;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin-bottom: 16px;
  padding: 0 2px;
}

.title-badge-container {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, rgba(122, 15, 25, 0.22) 0%, rgba(64, 5, 11, 0.12) 100%);
  border: 1px solid var(--wine-border);
  padding: 7px 16px;
  border-radius: 14px;
  box-shadow: 0 4px 14px rgba(122, 15, 25, 0.2);
}

.title-badge-text {
  font-size: 0.96rem;
  font-weight: 800;
  color: #e59098;
  letter-spacing: -0.3px;
}

.quotes-container {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 22px;
  width: 100%;
}

.quote-card {
  background: linear-gradient(145deg, rgba(28, 20, 24, 0.75) 0%, rgba(18, 19, 24, 0.95) 100%);
  border: 1px solid rgba(176, 30, 44, 0.3);
  border-radius: 20px;
  padding: 24px 18px 20px 18px;
  text-align: center;
  position: relative;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
}

.quote-en {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-style: italic;
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.55;
  color: #f1f2f6;
  margin-bottom: 12px;
  word-break: keep-all;
}

.quote-author-line {
  font-family: "Plus Jakarta Sans", "Pretendard", sans-serif;
  font-size: 0.88rem;
  font-weight: 800;
  color: #e59098;
  margin-bottom: 10px;
  letter-spacing: -0.2px;
}

.quote-kr {
  font-size: 0.82rem;
  line-height: 1.55;
  color: #9ca3af;
  word-break: keep-all;
}

.hero-slogan {
  font-size: 0.92rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 20px 0;
  line-height: 1.5;
  word-break: keep-all;
  overflow-wrap: break-word;
  padding: 0 6px;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.7);
  letter-spacing: -0.3px;
}

.mode-guide-box {
  background: #000000;
  border: 1px solid rgba(176, 30, 44, 0.35);
  border-radius: 14px;
  padding: 13px 16px;
  margin-bottom: 18px;
  text-align: center;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4), inset 0 0 12px rgba(122, 15, 25, 0.15);
}

.mode-guide-text {
  font-size: 0.92rem;
  color: #ffffff;
  letter-spacing: -0.3px;
  font-weight: 700;
  line-height: 1.4;
  margin: 0;
  word-break: keep-all;
  overflow-wrap: break-word;
}

.mode-selection-wrap {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

.game-grid-top {
  display: grid;
  gap: 12px;
  width: 100%;
  grid-template-columns: repeat(2, 1fr);
}

.game-btn {
  background: var(--btn-bg);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 22px 10px 18px 10px;
  gap: 10px;
  cursor: pointer;
  user-select: none;
  transition: all 0.2s cubic-bezier(0.2, 0, 0, 1);
}

.game-btn:hover {
  background: var(--btn-hover);
  transform: translateY(-2px);
  border-color: var(--wine-border);
  box-shadow: 0 8px 20px rgba(122, 15, 25, 0.25);
}

.game-btn:active {
  transform: scale(0.97);
}

.icon-box {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
}

.icon-box svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke: #d66d77;
}

.game-label {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-main);
  text-align: center;
  letter-spacing: -0.2px;
  line-height: 1.25;
}

.game-btn-advanced {
  background: linear-gradient(135deg, rgba(38, 30, 20, 0.88) 0%, rgba(22, 22, 28, 0.96) 100%);
  border: none;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  cursor: pointer;
  user-select: none;
  position: relative;
  overflow: hidden;
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.4), inset 0 0 18px rgba(245, 158, 11, 0.1);
  transition: all 0.25s cubic-bezier(0.2, 0, 0, 1);
}

.game-btn-advanced:hover {
  background: linear-gradient(135deg, rgba(48, 38, 22, 0.96) 0%, rgba(28, 28, 36, 0.98) 100%);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(245, 158, 11, 0.25), inset 0 0 22px rgba(245, 158, 11, 0.16);
}

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

.game-btn-advanced .icon-box {
  border: 1px solid rgba(245, 158, 11, 0.35);
  background: var(--gold-sub);
}

.game-btn-advanced .icon-box svg {
  stroke: var(--gold-light);
}

.advanced-left {
  display: flex;
  align-items: center;
  gap: 16px;
  text-align: left;
}

.advanced-info-box {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.advanced-tag {
  font-size: 0.72rem;
  font-weight: 800;
  color: #fde68a;
  background: var(--gold-sub);
  border: 1px solid var(--gold-border);
  padding: 2px 8px;
  border-radius: 6px;
  display: inline-block;
  width: fit-content;
  letter-spacing: 0.3px;
}

.advanced-title {
  font-size: 1rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.3px;
}

.advanced-sub {
  font-size: 0.78rem;
  color: #d1d5db;
  line-height: 1.3;
}

.advanced-arrow {
  font-size: 1.25rem;
  color: var(--gold-light);
  font-weight: 800;
  padding-left: 6px;
  transition: transform 0.2s ease;
}

.game-btn-advanced:hover .advanced-arrow {
  transform: translateX(3px);
}

.story-card {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 18px 8px;
  text-align: left;
  box-shadow: none;
}

.story-tag {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 800;
  color: #e59098;
  background: var(--wine-sub);
  border: 1px solid var(--wine-border);
  padding: 4px 10px;
  border-radius: 8px;
  margin-bottom: 12px;
  letter-spacing: 0.3px;
}

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

.story-icon {
  font-size: 24px;
  background: rgba(255, 255, 255, 0.04);
  width: 46px;
  height: 46px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.story-title-box strong {
  display: block;
  font-size: 0.96rem;
  color: #ffffff;
  font-weight: 700;
  letter-spacing: -0.2px;
  line-height: 1.35;
  word-break: keep-all;
  overflow-wrap: break-word;
}

.story-title-box span {
  display: block;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 2px;
  line-height: 1.3;
  word-break: keep-all;
  overflow-wrap: break-word;
}

.story-desc {
  font-size: 0.85rem;
  line-height: 1.7;
  color: #b8bccb;
  margin: 0;
  word-break: keep-all;
  overflow-wrap: break-word;
  text-align: center;
}

.start-accent-btn {
  font-family: inherit;
  background: linear-gradient(135deg, #a71d2a 0%, #730a13 55%, #420207 100%);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 17px 32px;
  border-radius: 30px;
  font-size: 1.05rem;
  font-weight: 800;
  cursor: pointer;
  letter-spacing: -0.3px;
  box-shadow: 0 8px 26px rgba(115, 10, 19, 0.55), 0 0 14px rgba(66, 2, 7, 0.4);
  transition: all 0.25s cubic-bezier(0.2, 0, 0, 1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 320px;
  white-space: nowrap;
}

.start-accent-btn:hover {
  background: linear-gradient(135deg, #b92634 0%, #870f19 55%, #52050b 100%);
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 12px 30px rgba(115, 10, 19, 0.65), 0 0 18px rgba(66, 2, 7, 0.5);
}

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

.action-btn {
  font-family: inherit;
  background: linear-gradient(135deg, #373945, #22232c);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 16px 36px;
  border-radius: 30px;
  font-size: 1rem;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s ease;
  letter-spacing: -0.2px;
  width: 100%;
  max-width: 280px;
  margin-top: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.action-btn:hover {
  background: #444756;
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.45);
}

.step-badge {
  display: inline-block;
  font-size: 1.15rem;
  font-weight: 800;
  padding: 6px 18px;
  border-radius: 22px;
  background: var(--wine-sub);
  color: #ff9da5;
  border: 1px solid var(--wine-border);
  margin-bottom: 14px;
}

.question-text {
  font-size: 1.22rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 24px;
  line-height: 1.5;
  word-break: keep-all;
}

.cards-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  margin: 20px 0 24px 0;
  flex-wrap: wrap;
  max-width: 420px;
}

/* 3D 카드 플립 */
.card {
  width: 76px;
  height: 112px;
  perspective: 1000px;
  -webkit-perspective: 1000px;
  cursor: pointer;
  position: relative;
  user-select: none;
  background: transparent;
  border: none;
}

.card:hover { transform: translateY(-4px) scale(1.03); }

.card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  transform-style: preserve-3d;
  -webkit-transform-style: preserve-3d;
  border-radius: 18px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.45);
}

.card.is-flipped .card-inner {
  transform: rotateY(180deg);
  -webkit-transform: rotateY(180deg);
}

.card-face {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.card-face-front {
  background-color: #171116;
  background-image: 
    radial-gradient(circle at 50% 50%, rgba(122, 15, 25, 0.35) 0%, transparent 70%),
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.02) 0, rgba(255, 255, 255, 0.02) 2px, transparent 2px, transparent 8px);
  border: 1.5px solid var(--wine-border);
  box-shadow: inset 0 0 16px rgba(0, 0, 0, 0.6);
  transform: rotateY(0deg);
  -webkit-transform: rotateY(0deg);
  z-index: 2;
}

.card-face-front::after {
  content: "✦";
  display: flex;
  align-items: center;
  justify-content: center;
  width: calc(100% - 14px);
  height: calc(100% - 14px);
  border: 1px solid rgba(176, 30, 44, 0.4);
  border-radius: 12px;
  font-size: 1.2rem;
  color: #e59098;
  text-shadow: 0 0 10px rgba(176, 30, 44, 0.6);
  box-shadow: inset 0 0 10px rgba(122, 15, 25, 0.25);
}

.card-face-back {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  color: #111215;
  font-size: 1.8rem;
  font-weight: 900;
  transform: rotateY(180deg);
  -webkit-transform: rotateY(180deg);
  border: 2px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  z-index: 1;
}

/* 색상 오브 */
.color-card {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
  transition: all 0.25s cubic-bezier(0.2, 0, 0.2, 1);
  user-select: none;
  background: radial-gradient(circle at 35% 30%, #2a2c36 0%, #15161c 65%, #0d0e12 100%);
  border: 2px solid rgba(176, 30, 44, 0.45);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.5), inset 0 2px 4px rgba(255, 255, 255, 0.15), inset 0 -4px 8px rgba(0, 0, 0, 0.7);
  position: relative;
}

.color-card:not(.revealed)::after {
  content: "";
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(229, 144, 152, 0.4) 0%, transparent 70%);
  box-shadow: 0 0 12px rgba(176, 30, 44, 0.5);
  animation: pulseGlow 2.5s infinite ease-in-out;
}

@keyframes pulseGlow {
  0%, 100% { transform: scale(0.9); opacity: 0.4; }
  50% { transform: scale(1.2); opacity: 0.85; }
}

.color-card:hover { 
  transform: translateY(-3px) scale(1.06); 
  border-color: rgba(229, 144, 152, 0.7);
  box-shadow: 0 12px 28px rgba(122, 15, 25, 0.35);
}

.color-card.revealed {
  border: 3px solid rgba(255, 255, 255, 0.3);
  color: #ffffff;
  text-shadow: 0 1px 3px rgba(0,0,0,0.8);
}

/* 럭셔리 아치형 도어 */
.door-card {
  width: 90px;
  height: 132px;
  border-radius: 20px;
  background: linear-gradient(145deg, #1f1419 0%, #0d0e12 100%);
  border: 1.5px solid var(--wine-border);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 10px 26px rgba(0,0,0,0.5), inset 0 0 16px rgba(122, 15, 25, 0.2);
  transition: all 0.25s cubic-bezier(0.2, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  padding: 10px 8px;
}

.door-card:hover {
  transform: translateY(-4px) scale(1.04);
  border-color: #ff9da5;
  box-shadow: 0 14px 32px rgba(176, 30, 44, 0.38), inset 0 0 20px rgba(176, 30, 44, 0.3);
}

.door-card svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.6));
  transition: all 0.3s ease;
}

/* 가위바위보 카드 */
.rps-card {
  width: 80px;
  height: 80px;
  border-radius: 22px;
  border: 2px solid rgba(255, 255, 255, 0.12);
  background: #1c1d24;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 38px;
  transition: all 0.2s ease;
  user-select: none;
  box-shadow: 0 8px 20px rgba(0,0,0,0.4);
}

.rps-card:hover {
  transform: translateY(-3px) scale(1.05);
  border-color: var(--wine-border);
}

/* 제너 심볼(Zener ESP) 카드 */
.zener-card {
  width: 74px;
  height: 108px;
  border-radius: 18px;
  background: linear-gradient(145deg, #181920 0%, #0e0f14 100%);
  border: 1.5px solid rgba(251, 191, 36, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(0,0,0,0.45), inset 0 0 14px rgba(245, 158, 11, 0.08);
  transition: all 0.25s cubic-bezier(0.2, 0, 0.2, 1);
  font-size: 2.2rem;
  color: #94a3b8;
  user-select: none;
}

.zener-card:hover {
  transform: translateY(-4px) scale(1.05);
  border-color: var(--gold-light);
  box-shadow: 0 12px 28px rgba(245, 158, 11, 0.35);
}

.zener-card.revealed {
  border: 2px solid var(--gold-light);
  color: #fde68a;
  text-shadow: 0 0 14px rgba(251, 191, 36, 0.7);
}

/* 결과 대전 표시 영역 */
.result-container {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin: 18px 0;
}

.result-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  color: var(--text-sub);
}

.result-image {
  width: 74px;
  height: 74px;
  border-radius: 18px;
  background: #1c1d24;
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
}

/* 결과 메시지 */
.result-msg {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 22px 0 16px 0;
  padding: 18px 18px;
  border-radius: 18px;
  line-height: 1.65;
  display: none;
  word-break: keep-all;
}

.success {
  background: rgba(16, 185, 129, 0.14);
  color: #6ee7b7;
  border: 1px solid rgba(16, 185, 129, 0.35);
}

.failure {
  background: rgba(122, 15, 25, 0.22);
  color: #ff9da5;
  border: 1px solid var(--wine-border);
}

.draw {
  background: rgba(122, 15, 25, 0.16);
  color: #e59098;
  border: 1px solid var(--wine-border);
}

.hidden { display: none !important; }

@media (max-width: 480px) {
  .orb-stage {
    width: 270px;
    height: 270px;
  }
  .mystic-crystal-orb {
    width: 230px;
    height: 230px;
  }
  .astral-ring {
    width: 260px;
    height: 260px;
  }
  .typing-line {
    font-size: 1.85rem;
    min-height: 2.5rem;
  }
  .quote-en { font-size: 0.94rem; }
  .hero-slogan { font-size: 0.88rem; }
  .card { width: 68px; height: 102px; }
  .color-card { width: 62px; height: 62px; }
  .door-card { width: 80px; height: 120px; }
  .zener-card { width: 68px; height: 98px; font-size: 1.9rem; }
  .rps-card { width: 72px; height: 72px; font-size: 32px; }
  .question-text { font-size: 1.12rem; }
  .result-msg { font-size: 0.95rem; }
  .advanced-title { font-size: 0.94rem; }
  .advanced-sub { font-size: 0.74rem; }
}