@font-face { font-family: 'Noto Sans KR'; src: url('assets/fonts/NotoSansKR-Variable.ttf') format('truetype'); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: 'Oswald'; src: url('assets/fonts/Oswald-Variable.ttf') format('truetype'); font-weight: 200 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'Noto Color Emoji'; src: url('assets/fonts/NotoColorEmoji.ttf') format('truetype'); font-weight: 400; font-style: normal; font-display: swap; }
body.font-sans { font-family: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Noto Color Emoji'; }
body .font-mono { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Noto Sans KR', monospace, 'Apple Color Emoji', 'Segoe UI Emoji', 'Noto Color Emoji'; }


.font-athletic {
  font-family: 'Oswald', 'Noto Sans KR', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Noto Color Emoji';
}

/* 새로운 다이내믹 메탈릭 스포츠 카드 베이스 (User Reference Style) */
.sports-card {
  border-radius: 16px;
  position: relative;
  overflow: hidden;
  background-color: #fff;
  box-shadow: 0 15px 35px rgba(0,0,0,0.35), 0 0 0 3px #e0e4e8;
  transition: transform 0.25s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.25s cubic-bezier(0.25, 0.8, 0.25, 1);
  transform: translateZ(0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  will-change: transform;
}

/* 홀로그램 빛 반사 (마우스 호버 & 다이내믹 스윕) */
.sports-card::before {
  content: '';
  position: absolute;
  top: 0; 
  left: -150%;
  width: 100%; 
  height: 100%;
  background: linear-gradient(
    90deg, 
    rgba(255,255,255,0) 0%, 
    rgba(255,255,255,0.65) 50%, 
    rgba(255,255,255,0) 100%
  );
  transform: skewX(-25deg);
  transition: left 0.6s ease-in-out;
  z-index: 15;
  pointer-events: none;
}

.sports-card:hover {
  transform: translateY(-4px) scale(1.015);
  box-shadow: 0 25px 45px rgba(0,0,0,0.4), 0 0 20px rgba(255, 215, 0, 0.4);
}

.sports-card:hover::before {
  left: 150%;
}

/* 선수 배경 이미지 */
.card-image {
  width: 100%;
  height: 65%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  filter: contrast(1.1) saturate(1.2);
}

/* 사선형 등급 뱃지 */
.grade-badge {
  position: absolute;
  top: 10px;
  right: -8px;
  font-family: 'Oswald', 'Noto Sans KR', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Noto Color Emoji';
  font-size: 13px;
  font-style: italic;
  font-weight: 700;
  padding: 4px 18px 4px 20px;
  color: #fff;
  clip-path: polygon(15% 0, 100% 0, 100% 100%, 0 100%);
  z-index: 20;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  letter-spacing: 0.5px;
}
.grade-epic { background: linear-gradient(135deg, #f1c40f, #e67e22); }
.grade-rare { background: linear-gradient(135deg, #bdc3c7, #7f8c8d); }
.grade-legend { background: linear-gradient(135deg, #a855f7, #6366f1); }

/* 하단 정보 영역 (사선 컷팅 디자인 & 액센트 바) */
.info-panel-accent {
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 52%;
  clip-path: polygon(0 calc(14% - 3.5px), 100% 0, 100% 100%, 0 100%);
  z-index: 5;
  pointer-events: none;
}
.epic-accent { background: #f1c40f; }
.rare-accent { background: #3498db; }

.info-panel {
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 52%;
  background: #fff;
  clip-path: polygon(0 14%, 100% 3.5px, 100% 100%, 0 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 14px 10px 8px 10px;
  box-sizing: border-box;
  z-index: 6;
}

/* 해시태그 */
.tags {
  display: flex;
  gap: 4px;
  margin-bottom: 2px;
}
.tag {
  font-size: 10px;
  font-weight: 900;
  color: #555;
  background: #f0f2f5;
  padding: 2px 6px;
  border-radius: 3px;
  text-transform: uppercase;
}

/* 선수 이름 */
.player-name {
  font-size: 21px;
  font-weight: 900;
  margin: 0 0 6px 0;
  line-height: 1;
  letter-spacing: -1px;
  color: #111;
}

/* 스탯 박스 */
.stats-container {
  display: flex;
  gap: 4px;
  background: #f8f9fa;
  border-radius: 8px;
  padding: 5px 6px;
}

.stat-box {
  flex: 1;
  text-align: center;
  border-right: 1px solid #e0e0e0;
}
.stat-box:last-child { border-right: none; }

.stat-label {
  font-size: 10px;
  color: #888;
  font-weight: 700;
  line-height: 1.1;
}

.stat-value {
  font-family: 'Oswald', 'Noto Sans KR', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Noto Color Emoji';
  font-size: 21px;
  font-weight: 700;
  font-style: italic;
  color: #2c3e50;
  line-height: 1.1;
}
.stat-value.highlight { color: #e74c3c; } /* 강조 스탯 */

/* 15-degree Diagonal Cut for Badges and Panels */
.diagonal-cut {
  transform: skewX(-14deg);
}
.diagonal-cut-inner {
  transform: skewX(14deg);
}

/* Dugout Control Zone - VIP Leather Rail & 3D Chip Tray */
.dugout-leather-rail {
  background: linear-gradient(180deg, #2c1a10 0%, #19100a 35%, #080605 100%);
  border-top: 4px solid #92400e;
  box-shadow: inset 0 2px 5px rgba(245, 158, 11, 0.25), 0 -8px 20px rgba(0, 0, 0, 0.9);
}
.chip-tray-recessed {
  background: linear-gradient(180deg, #050508 0%, #0c101a 100%);
  box-shadow: inset 0 3px 10px rgba(0, 0, 0, 0.95), 0 1px 0 rgba(255, 255, 255, 0.1);
}
.clay-chip-tile {
  box-shadow: 
    0 4px 8px -1px rgba(0, 0, 0, 0.7), 
    0 2px 4px -2px rgba(0, 0, 0, 0.7),
    inset 0 1px 1px rgba(255, 255, 255, 0.4),
    inset 0 -2px 4px rgba(0, 0, 0, 0.6);
  transition: transform 0.12s ease, filter 0.12s ease;
}
.clay-chip-tile:active {
  transform: scale(0.96) translateY(2px);
  box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.85);
}

/* Volumetric God Rays & Infield Dirt */
.god-rays-overlay {
  background: radial-gradient(ellipse at 50% -12%, rgba(254, 240, 138, 0.16) 0%, rgba(251, 191, 36, 0.05) 50%, transparent 75%);
}

/* Baseball Field Textures */
.field-grass {
  background: repeating-linear-gradient(
    0deg,
    #15803d,
    #15803d 32px,
    #16a34a 32px,
    #16a34a 64px
  );
}
.infield-dirt {
  background: radial-gradient(ellipse at 50% 88%, #b45309 0%, #92400e 65%, #78350f 100%);
}
.pitcher-mound {
  background: radial-gradient(circle, #d97706 0%, #b45309 60%, #92400e 100%);
  box-shadow: 0 4px 15px rgba(0,0,0,0.5), inset 0 2px 4px rgba(255,255,255,0.2);
}

/* Dice Rolling Animations */
@keyframes roll3d {
  0% { transform: rotate(0deg) scale(0.9); }
  25% { transform: rotate(90deg) scale(1.15); }
  50% { transform: rotate(180deg) scale(0.95); }
  75% { transform: rotate(270deg) scale(1.1); }
  100% { transform: rotate(360deg) scale(1); }
}
.dice-anim {
  animation: roll3d 0.5s infinite linear;
}

/* Base Lighting */
.base-active {
  background-color: #facc15 !important;
  box-shadow: 0 0 16px #facc15;
}
.led-on-s { background-color: #eab308; box-shadow: 0 0 8px #eab308; }
.led-on-b { background-color: #3b82f6; box-shadow: 0 0 8px #3b82f6; }
.led-on-o { background-color: #ef4444; box-shadow: 0 0 8px #ef4444; }

/* Flip Card */
.perspective-1000 {
  -webkit-perspective: 1000px;
  perspective: 1000px;
}
.transform-style-3d {
  -webkit-transform-style: preserve-3d;
  transform-style: preserve-3d;
}
.backface-hidden {
  -webkit-backface-visibility: hidden !important;
  backface-visibility: hidden !important;
}
.rotate-y-180 {
  -webkit-transform: rotateY(180deg);
  transform: rotateY(180deg);
}

/* Glowing Text */
.neon-text {
  text-shadow: 0 0 10px rgba(250, 204, 21, 0.6);
}

/* Batter Card Stack & Slide Up/Down Animations */
@keyframes cardSlideUpOut {
  0% {
    transform: translateY(0) scale(1) rotate(0deg);
    opacity: 1;
  }
  100% {
    transform: translateY(-120%) scale(0.9) rotate(-4deg);
    opacity: 0;
  }
}

@keyframes cardSlideUpIn {
  0% {
    transform: translateY(65px) scale(0.92) rotate(3deg);
    opacity: 0;
  }
  100% {
    transform: translateY(0) scale(1) rotate(0deg);
    opacity: 1;
  }
}

.anim-slide-up-out {
  animation: cardSlideUpOut 0.22s cubic-bezier(0.4, 0, 0.2, 1) forwards !important;
}
.anim-slide-up-in {
  animation: cardSlideUpIn 0.26s cubic-bezier(0.18, 0.89, 0.32, 1.15) forwards !important;
}

/* Board Game Card Deck 3D Textures & Physical Depth */
.deck-card-back-pattern {
  background-color: #0b1329;
  background-image: 
    radial-gradient(#2563eb 1.5px, transparent 1.5px),
    radial-gradient(#1d4ed8 1.5px, #0b1329 1.5px);
  background-size: 16px 16px;
  background-position: 0 0, 8px 8px;
}
.deck-card-stripes {
  background: repeating-linear-gradient(
    135deg,
    #0f172a,
    #0f172a 8px,
    #1e293b 8px,
    #1e293b 16px
  );
}
.deck-physical-stack {
  box-shadow: 
    1px -1px 0px #38bdf8,
    3px -3px 0px #1d4ed8,
    5px -5px 0px #1e293b,
    7px -7px 0px #0f172a,
    9px -9px 0px #020617,
    14px 18px 24px rgba(0, 0, 0, 0.9);
}

/* Checked Swing Animation & Screen Shake */
@keyframes screenShakeAnim {
  0% { transform: translate(0, 0); }
  15% { transform: translate(-4px, 3px); }
  30% { transform: translate(4px, -3px); }
  45% { transform: translate(-3px, -2px); }
  60% { transform: translate(3px, 2px); }
  75% { transform: translate(-1px, 2px); }
  100% { transform: translate(0, 0); }
}
.shake-impact {
  animation: screenShakeAnim 0.35s ease-out;
}

@keyframes batScreech {
  0% {
    transform: rotate(-65deg) scale(0.9);
  }
  65% {
    transform: rotate(20deg) scale(1.1);
  }
  80% {
    transform: rotate(8deg) scale(1.05);
  }
  100% {
    transform: rotate(12deg) scale(1);
  }
}

@keyframes ballDirtDrop {
  0% {
    transform: translateY(-90px) scale(0.7);
    opacity: 0.6;
  }
  65% {
    transform: translateY(35px) scale(1.1);
    opacity: 1;
  }
  80% {
    transform: translateY(45px) scale(1.2);
  }
  100% {
    transform: translateY(40px) scale(1);
  }
}

.anim-bat-screech {
  animation: batScreech 0.32s cubic-bezier(0.18, 0.89, 0.32, 1.25) forwards;
}

.anim-ball-dirt {
  animation: ballDirtDrop 0.28s cubic-bezier(0.55, 0.055, 0.675, 0.19) forwards;
}

/* ==========================================================================
   1. Modern Rounded Rectangle HUD (Unified Height & Sleek Dark Metal)
   ========================================================================== */
.hud-panel-modern {
  background: linear-gradient(180deg, #1e2838 0%, #111722 55%, #0c1017 100%);
  border: 1px solid rgba(148, 163, 184, 0.28);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.12), inset 0 -1px 0 rgba(0, 0, 0, 0.5);
  border-radius: 12px;
  position: relative;
  overflow: hidden;
}
.hud-panel-modern::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
  pointer-events: none;
}

/* ==========================================================================
   2. Showdown Zone: Dynamic Clash Slash Frame
   ========================================================================== */
.showdown-frame {
  position: relative;
  background: radial-gradient(circle at 50% 50%, #0d131f 0%, #05080f 100%);
  border: 2px solid rgba(245, 158, 11, 0.7);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8), 0 0 25px rgba(245, 158, 11, 0.2);
  overflow: hidden;
  border-radius: 20px;
}

/* Background diagonal clash split (Pitcher Crimson Red vs Batter Cobalt Blue) */
.showdown-clash-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background: linear-gradient(115deg, rgba(220, 38, 38, 0.2) 0%, rgba(185, 28, 28, 0.08) 46%, transparent 48%, transparent 52%, rgba(37, 99, 235, 0.08) 54%, rgba(37, 99, 235, 0.2) 100%);
}

/* Diagonal lightning clash slash divider */
.showdown-clash-divider {
  position: absolute;
  top: -20%;
  bottom: -20%;
  left: 50%;
  width: 3px;
  transform: translateX(-50%) skewX(-18deg);
  background: linear-gradient(to bottom, rgba(245, 158, 11, 0.2), rgba(255, 255, 255, 0.95) 50%, rgba(245, 158, 11, 0.2));
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.8), 0 0 20px rgba(245, 158, 11, 0.6);
  z-index: 2;
  pointer-events: none;
}

/* Slanted Showdown Battle Tiles */
.showdown-tile-skew {
  transform: skewX(-12deg);
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
  z-index: 3;
}
.showdown-tile-content-unskew {
  transform: skewX(12deg);
}

.showdown-pitcher-tile {
  background: linear-gradient(135deg, #2b1115 0%, #451218 50%, #1a080a 100%);
  border: 2px solid rgba(239, 68, 68, 0.85);
  box-shadow: 0 6px 20px rgba(220, 38, 38, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}
.showdown-pitcher-tile:hover {
  border-color: #ef4444;
  box-shadow: 0 8px 25px rgba(239, 68, 68, 0.55);
}

.showdown-batter-tile {
  background: linear-gradient(135deg, #0e1c36 0%, #152e5c 50%, #070e1c 100%);
  border: 2px solid rgba(59, 130, 246, 0.85);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}
.showdown-batter-tile:hover {
  border-color: #3b82f6;
  box-shadow: 0 8px 25px rgba(59, 130, 246, 0.55);
}

/* Clean Minimalist Monochrome VS Emblem */
.vs-clash-badge {
  width: 32px;
  height: 32px;
  border-radius: 9999px;
  background-color: #0f172a;
  border: 1px solid rgba(148, 163, 184, 0.3);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  position: relative;
  flex-shrink: 0;
}
.vs-badge-text {
  font-family: 'Oswald', 'Noto Sans KR', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Noto Color Emoji';
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: #cbd5e1;
}

/* ==========================================================================
   3. Dynamic Metallic Action Tiles (Chips / Plates)
   ========================================================================== */
.metallic-action-tile {
  transform: skewX(-10deg);
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  isolation: isolate;
  transition: transform 0.2s ease, filter 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 12px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.3);
}
.metallic-action-tile:hover {
  transform: skewX(-10deg) translateY(-2px);
  filter: brightness(1.15);
  box-shadow: 0 8px 20px rgba(0,0,0,0.7), inset 0 1px 0 rgba(255,255,255,0.5);
}
.metallic-action-tile:active {
  transform: skewX(-10deg) translateY(1px);
  filter: brightness(0.95);
  box-shadow: 0 2px 6px rgba(0,0,0,0.4);
}
.tile-content-unskew {
  transform: skewX(10deg);
}

/* Holographic sheen reflection on hover for action tiles */
.metallic-action-tile::before {
  content: '';
  position: absolute;
  top: 0;
  left: -160%;
  width: 120%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.4) 45%,
    rgba(255, 255, 255, 0.7) 50%,
    rgba(255, 255, 255, 0.4) 55%,
    transparent 100%
  );
  transform: skewX(-20deg);
  transition: left 0.5s ease;
  pointer-events: none;
  z-index: 5;
}
.metallic-action-tile:hover::before {
  left: 160%;
}

/* Tile color themes with metallic brushed gradients and glowing borders */
.tile-fast-swing {
  background: linear-gradient(135deg, #7f1d1d 0%, #b91c1c 45%, #991b1b 70%, #450a0a 100%);
  border: 1.5px solid #f87171;
}
.tile-break-swing {
  background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 45%, #1d4ed8 70%, #0f172a 100%);
  border: 1.5px solid #60a5fa;
}
.tile-contact {
  background: linear-gradient(135deg, #064e3b 0%, #059669 45%, #047857 70%, #022c22 100%);
  border: 1.5px solid #34d399;
}
.tile-watch {
  background: linear-gradient(135deg, #581c87 0%, #7e22ce 45%, #6b21a8 70%, #3b0764 100%);
  border: 1.5px solid #c084fc;
}

.tile-fast-strike {
  background: linear-gradient(135deg, #7f1d1d 0%, #dc2626 45%, #991b1b 70%, #450a0a 100%);
  border: 1.5px solid #fca5a5;
}
.tile-fast-ball {
  background: linear-gradient(135deg, #7c2d12 0%, #ea580c 45%, #c2410c 70%, #431407 100%);
  border: 1.5px solid #fdba74;
}
.tile-break-strike {
  background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 45%, #1d4ed8 70%, #0f172a 100%);
  border: 1.5px solid #93c5fd;
}
.tile-break-ball {
  background: linear-gradient(135deg, #164e63 0%, #0891b2 45%, #0e7490 70%, #083344 100%);
  border: 1.5px solid #67e8f9;
}
.tile-decision-ball {
  background: linear-gradient(135deg, #78350f 0%, #d97706 40%, #b45309 70%, #451a03 100%);
  border: 2px solid #fde047;
  box-shadow: 0 0 15px rgba(251, 191, 36, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

/* ==================== 공수교대 준비 모달 - 우리팀 테두리 강조 ==================== */
@keyframes our-team-glow {
  0%, 100% {
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.4), 0 0 25px rgba(245, 158, 11, 0.35), inset 0 0 15px rgba(245, 158, 11, 0.08);
  }
  50% {
    box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.6), 0 0 35px rgba(245, 158, 11, 0.55), inset 0 0 20px rgba(245, 158, 11, 0.15);
  }
}

.ready-card-our-team {
  border: 2.5px solid #fbbf24 !important;
  animation: our-team-glow 2.5s infinite ease-in-out;
  background: linear-gradient(180deg, rgba(30, 41, 59, 0.95) 0%, rgba(15, 23, 42, 0.98) 100%) !important;
  position: relative;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.ready-card-our-team.ready-done {
  animation: none;
  border: 2.5px solid #10b981 !important;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.35), 0 0 25px rgba(16, 185, 129, 0.35), inset 0 0 15px rgba(16, 185, 129, 0.15) !important;
  background: linear-gradient(180deg, rgba(6, 78, 59, 0.3) 0%, rgba(15, 23, 42, 0.98) 100%) !important;
}

.ready-card-opponent {
  border: 1px solid rgba(71, 85, 105, 0.6) !important;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.4) !important;
  background: rgba(15, 23, 42, 0.65) !important;
  opacity: 0.82;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.ready-card-opponent.ready-done {
  border: 2px solid rgba(16, 185, 129, 0.7) !important;
  box-shadow: 0 0 15px rgba(16, 185, 129, 0.25) !important;
  background: rgba(6, 78, 59, 0.2) !important;
  opacity: 0.95;
}

/* ==================== 🏟️ 게임 로비 (LOBBY SCREEN) STYLES ==================== */

/* 1. 3D 투타 쇼케이스 컨테이너 */
.lobby-showcase-viewport {
  perspective: 1200px;
  perspective-origin: center center;
}

.lobby-3d-card-batter {
  transform: rotateY(14deg) rotateX(2deg) translateZ(12px);
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
  will-change: transform;
}

.lobby-3d-card-batter:hover {
  transform: rotateY(0deg) rotateX(0deg) translateZ(28px) scale(1.03);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.7), 0 0 35px rgba(245, 158, 11, 0.5) !important;
}

.lobby-3d-card-pitcher {
  transform: rotateY(-14deg) rotateX(2deg) translateZ(12px);
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
  will-change: transform;
}

.lobby-3d-card-pitcher:hover {
  transform: rotateY(0deg) rotateX(0deg) translateZ(28px) scale(1.03);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.7), 0 0 35px rgba(59, 130, 246, 0.5) !important;
}

/* 2. 중앙 'VS' 메탈릭 사선 분할 그래픽 */
.lobby-vs-slash-bg {
  position: absolute;
  top: -20%;
  left: 50%;
  width: 140px;
  height: 140%;
  transform: translateX(-50%) skewX(-18deg);
  background: linear-gradient(180deg, 
    rgba(15, 23, 42, 0.1) 0%, 
    rgba(30, 41, 59, 0.85) 30%, 
    rgba(15, 23, 42, 0.95) 70%, 
    rgba(15, 23, 42, 0.1) 100%
  );
  border-left: 2px solid rgba(245, 158, 11, 0.4);
  border-right: 2px solid rgba(59, 130, 246, 0.4);
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.8);
  pointer-events: none;
}

/* 3. [PLAY (매칭)] 평행사변형 거대 버튼 & 붉은색/푸른색 교차 네온 글로우 펄스 애니메이션 */
@keyframes red-blue-neon-pulse {
  0%, 100% {
    box-shadow: 0 0 22px rgba(239, 68, 68, 0.85), 0 0 45px rgba(239, 68, 68, 0.45), inset 0 0 15px rgba(255, 255, 255, 0.35);
    border-color: #ef4444;
  }
  50% {
    box-shadow: 0 0 22px rgba(59, 130, 246, 0.85), 0 0 45px rgba(59, 130, 246, 0.45), inset 0 0 15px rgba(255, 255, 255, 0.35);
    border-color: #3b82f6;
  }
}

.lobby-btn-play-pulse {
  animation: red-blue-neon-pulse 2.2s infinite ease-in-out;
}

/* 평행사변형 (Diagonal Cut) 버튼 프레임 */
.lobby-parallelogram-btn {
  transform: skewX(-14deg);
  transition: all 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.lobby-parallelogram-btn:hover {
  filter: brightness(1.15);
  transform: skewX(-14deg) translateY(-2px);
}

.lobby-parallelogram-btn:active {
  transform: skewX(-14deg) scale(0.96);
}

.lobby-parallelogram-content {
  transform: skewX(14deg);
}

/* 4. 로비 -> 인게임 다이내믹 트랜지션 컷씬 애니메이션 */
.lobby-fly-left {
  transform: translateX(-240%) rotateY(45deg) scale(0.7) !important;
  opacity: 0 !important;
  transition: all 0.55s cubic-bezier(0.25, 0.1, 0.25, 1) !important;
}

.lobby-fly-right {
  transform: translateX(240%) rotateY(-45deg) scale(0.7) !important;
  opacity: 0 !important;
  transition: all 0.55s cubic-bezier(0.25, 0.1, 0.25, 1) !important;
}

.lobby-vs-explode {
  transform: scale(3.5) rotate(-15deg) !important;
  opacity: 0 !important;
  transition: all 0.45s ease-out !important;
}

.lobby-screen-fadeout {
  transform: scale(1.25);
  opacity: 0;
  transition: all 0.55s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}

/* 5. 로비 배경 야구장 필드 그래픽 & 라이팅 효과 */
.lobby-stadium-field {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
  transform: translateZ(0);
}

@keyframes stadium-godray-pulse {
  0%, 100% {
    opacity: 0.45;
  }
  50% {
    opacity: 0.65;
  }
}

.stadium-godray-left {
  animation: stadium-godray-pulse 6s ease-in-out infinite alternate;
}

.stadium-godray-right {
  animation: stadium-godray-pulse 6s ease-in-out infinite 3s alternate;
}

@keyframes floodlight-sparkle {
  0%, 100% {
    filter: drop-shadow(0 0 10px rgba(254, 240, 138, 0.8)) drop-shadow(0 0 25px rgba(254, 240, 138, 0.4));
  }
  50% {
    filter: drop-shadow(0 0 14px rgba(255, 255, 255, 0.95)) drop-shadow(0 0 35px rgba(96, 165, 250, 0.5));
  }
}

.stadium-light-cluster {
  animation: floodlight-sparkle 4s ease-in-out infinite alternate;
}

/* 6. 좌우 수평 카드 리스트 (HORIZONTAL CARD RAIL) STYLES */
.custom-scrollbar::-webkit-scrollbar {
  height: 6px;
  width: 6px;
}
.custom-scrollbar::-webkit-scrollbar-track {
  background: rgba(15, 23, 42, 0.6);
  border-radius: 9999px;
}
.custom-scrollbar::-webkit-scrollbar-thumb {
  background: rgba(100, 116, 139, 0.6);
  border-radius: 9999px;
}
.custom-scrollbar::-webkit-scrollbar-thumb:hover {
  background: rgba(245, 158, 11, 0.8);
}

.lobby-hcard-item {
  flex-shrink: 0;
  transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.25s cubic-bezier(0.2, 0.8, 0.2, 1), border-color 0.25s ease;
  scroll-snap-align: center;
  cursor: pointer;
}

.lobby-hcard-item:hover {
  transform: translateY(-8px) scale(1.03);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), 0 0 25px rgba(245, 158, 11, 0.45) !important;
  z-index: 20;
}

.lobby-hcard-item.selected {
  transform: translateY(-8px) scale(1.035);
  box-shadow: 0 22px 45px rgba(0, 0, 0, 0.7), 0 0 30px rgba(245, 158, 11, 0.8) !important;
  border-color: #f59e0b !important;
  z-index: 25;
}

.lobby-hcard-item.selected::after {
  content: '선택됨';
  position: absolute;
  top: 8px;
  right: 8px;
  background: #f59e0b;
  color: #020617;
  font-size: 8px;
  font-weight: 900;
  padding: 1px 6px;
  border-radius: 9999px;
  z-index: 30;
  box-shadow: 0 2px 5px rgba(0,0,0,0.5);
  letter-spacing: 0.5px;
}

/* ==================== ⏸️ 심판 타임 & 상대 작전 중 연출 스타일 ==================== */
@keyframes umpirePulse {
  0%, 100% {
    box-shadow: 0 0 25px rgba(245, 158, 11, 0.4), inset 0 0 15px rgba(245, 158, 11, 0.2);
    border-color: rgba(245, 158, 11, 0.8);
  }
  50% {
    box-shadow: 0 0 45px rgba(245, 158, 11, 0.8), inset 0 0 25px rgba(245, 158, 11, 0.4);
    border-color: rgba(251, 191, 36, 1);
  }
}

.umpire-time-box {
  animation: umpirePulse 2s infinite ease-in-out;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.95) 0%, rgba(30, 27, 75, 0.95) 50%, rgba(15, 23, 42, 0.95) 100%);
  border: 2px solid #f59e0b;
  backdrop-filter: blur(8px);
}

.wait-stripes {
  background: repeating-linear-gradient(
    -45deg,
    rgba(15, 23, 42, 0.9),
    rgba(15, 23, 42, 0.9) 12px,
    rgba(30, 41, 59, 0.9) 12px,
    rgba(30, 41, 59, 0.9) 24px
  );
}

@keyframes timeProgress {
  0% { width: 100%; }
  100% { width: 0%; }
}



