/* ========================================
   스트룹 훈련 전용 스타일 v1.20.21.144
   레벨 선택: 스크롤 가능 (position: static)
   게임/결과: 600px 고정 (헤더 아래 50px 여유)
   결과 통계: 1×4 레이아웃 (1줄 4개)
   2분할 레이아웃 (좌:문제 130px 좌측정렬 둥근테두리 | 우:버튼 250×120px 우측정렬 2×N 그리드)
   버튼: 가로 250px, 세로 120px, 간격 20px
   사운드: Web Audio API (정답/오답/시간초과)
   터치 스크롤: 레벨 선택 허용, 게임/결과 방지
   반응형 최적화 (800px, 700px 미만)
   PWA 모드: 모든 설정 강제 적용 (!important)
   ======================================== */

:root {
  --stroop-primary: #10b981;
  --stroop-secondary: #3b82f6;
  --stroop-danger: #ef4444;
  --stroop-warning: #f59e0b;
  --stroop-success: #22c55e;
  
  --color-red: #FF4757;
  --color-blue: #5352ED;
  --color-yellow: #FFA502;
  --color-green: #26DE81;
  --color-pink: #FC427B;
  --color-purple: #A55EEA;
}

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

html {
  overflow-y: auto;
  overflow-x: hidden;
}

body {
  font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, Roboto, sans-serif;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #1f2937;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ========================================
   헤더
   ======================================== */

.stroop-header {
  background: white;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  padding: 12px 30px;
}

.stroop-header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 2000px;
  margin: 0 auto;
}

.stroop-title {
  display: flex;
  align-items: center;
  gap: 12px;
}

.stroop-icon {
  font-size: 24px;
}

.stroop-title h1 {
  font-size: 22px;
  font-weight: 700;
  color: #1f2937;
}

.btn-back {
  padding: 8px 16px;
  background: white;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-back:hover {
  background: #f3f4f6;
  border-color: var(--stroop-primary);
  transform: translateY(-2px);
}

/* 큰 레벨 표시 */
.level-display-large {
  padding: 10px 24px;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
  border-radius: 12px;
  font-size: 24px;
  font-weight: 800;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
  letter-spacing: 1px;
  min-width: 140px;
  text-align: center;
}

.stroop-progress-info {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 10px;
  font-size: 13px;
  color: #6b7280;
}

.stroop-progress-info .divider {
  color: #d1d5db;
}

#member-display {
  color: var(--stroop-primary);
  font-weight: 600;
}

/* ========================================
   메인 영역
   ======================================== */

.stroop-main {
  max-width: 2000px;
  margin: 10px auto;
  padding: 0 30px;
  min-height: calc(100vh - 200px);
}

.stroop-screen {
  background: white;
  border-radius: 16px;
  padding: 12px 20px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.stroop-screen.hidden {
  display: none;
}

/* ========================================
   레벨 선택 화면 - 스크롤 가능
   ======================================== */

#level-select-screen {
  position: static;
  overflow-y: auto;
  max-height: none;
  height: auto;
  padding: 40px 20px;
}

.level-select-container {
  text-align: center;
}

.screen-title {
  font-size: 36px;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 16px;
}

.screen-subtitle {
  font-size: 18px;
  color: #6b7280;
  margin-bottom: 40px;
}

.level-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
  max-width: 1600px;
  margin: 0 auto;
}

.level-card {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 16px;
  padding: 32px 24px;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  color: white;
}

.level-card:hover {
  transform: translateY(-8px) scale(1.05);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
}

.level-number {
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 12px;
}

.level-name {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 8px;
}

.level-info {
  font-size: 14px;
  opacity: 0.9;
  margin-bottom: 12px;
}

.level-target {
  font-size: 16px;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.2);
  padding: 6px 12px;
  border-radius: 20px;
  display: inline-block;
}

/* ========================================
   게임 플레이 화면 - 550px 고정 높이
   ======================================== */

#game-screen {
  position: fixed;
  top: calc(80px + 50px);
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 60px);
  max-width: 1400px;
  height: 600px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  padding: 20px 30px !important;
  touch-action: none;
  overscroll-behavior: contain;
}

/* 타임바 */
.timer-container {
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 15px;
}

.timer-bar-bg {
  flex: 1;
  height: 18px;
  background: #e5e7eb;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
}

.timer-bar {
  height: 100%;
  background: linear-gradient(90deg, #22c55e 0%, #10b981 100%);
  transition: width 0.1s linear;
  border-radius: 10px;
}

.timer-text {
  font-size: 22px;
  font-weight: 700;
  color: #1f2937;
  min-width: 80px;
  text-align: right;
}

/* 2분할 게임 레이아웃 (좌:문제 | 우:버튼) */
.game-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  height: 470px;
  flex: 1;
  margin-bottom: 0;
}

/* 좌측 문제 영역 - 좌측 정렬 */
.left-question {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  height: 100%;
}

.question-text {
  font-size: 130px !important;
  font-weight: 700;
  padding: 60px;
  border-radius: 20px;
  background: #f9fafb;
  border: 4px solid #e5e7eb;
  width: 400px;
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  animation: question-appear 0.3s ease-out;
}

/* 우측 버튼 영역 - 그리드 우측 정렬 (2×N) */
.right-buttons {
  display: -ms-grid !important;
  display: grid !important;
  -ms-grid-columns: 250px 20px 250px;
  grid-template-columns: repeat(2, 250px);
  gap: 20px;
  grid-gap: 20px;
  column-gap: 20px;
  -webkit-column-gap: 20px;
  -moz-column-gap: 20px;
  row-gap: 20px;
  -webkit-row-gap: 20px;
  -moz-row-gap: 20px;
  justify-content: flex-end;
  -webkit-justify-content: flex-end;
  align-content: center;
  -webkit-align-content: center;
  height: 100%;
}

@keyframes question-appear {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* 버튼 스타일 */
.stroop-button {
  width: 250px;
  min-width: 250px;
  max-width: 250px;
  height: 120px;
  font-size: 26px;
  font-weight: 700;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  color: white;
  flex-shrink: 0;
  flex-grow: 0;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.stroop-button:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

.stroop-button:active {
  transform: translateY(-2px) scale(1.02);
}

/* 점수 영역 */
.score-container {
  display: flex;
  justify-content: space-around;
  padding: 12px 16px;
  background: #f9fafb;
  border-radius: 10px;
  height: 60px;
  align-items: center;
}

.score-item {
  text-align: center;
}

.score-label {
  display: block;
  font-size: 11px;
  color: #6b7280;
  margin-bottom: 4px;
}

.score-value {
  display: block;
  font-size: 22px;
  font-weight: 700;
  color: #1f2937;
}

.score-value.correct {
  color: var(--stroop-success);
}

.score-value.wrong {
  color: var(--stroop-danger);
}

/* ========================================
   결과 화면 - 550px 고정 높이
   ======================================== */

#result-screen {
  position: fixed;
  top: calc(80px + 50px);
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 60px);
  max-width: 1400px;
  height: 600px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  padding: 20px 30px !important;
  touch-action: none;
  overscroll-behavior: contain;
}

.result-container {
  text-align: center;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  height: 100%;
  justify-content: space-between;
}

.result-icon {
  font-size: 60px;
  margin-bottom: 8px;
  animation: bounce 0.6s ease-out;
}

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

.result-title {
  font-size: 32px;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 6px;
}

.result-subtitle {
  font-size: 16px;
  color: #6b7280;
  margin-bottom: 16px;
}

/* 통계 1x4 그리드 레이아웃 (1줄 4개) */
.result-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

.result-stat-item {
  background: linear-gradient(135deg, #f9fafb 0%, #ffffff 100%);
  padding: 16px 12px;
  border-radius: 12px;
  border: 2px solid #e5e7eb;
  transition: all 0.3s;
}

.result-stat-item:hover {
  border-color: var(--stroop-primary);
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(16, 185, 129, 0.15);
}

.result-stat-label {
  font-size: 13px;
  color: #6b7280;
  margin-bottom: 6px;
  font-weight: 600;
}

.result-stat-value {
  font-size: 32px;
  font-weight: 700;
  color: var(--stroop-primary);
  text-shadow: 0 2px 4px rgba(16, 185, 129, 0.1);
}

.result-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ========================================
   애니메이션 효과
   ======================================== */

#effect-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9999;
}

.particle {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  animation: particle-explode 0.8s ease-out forwards;
}

@keyframes particle-explode {
  to {
    transform: translate(var(--tx), var(--ty)) scale(0);
    opacity: 0;
  }
}

.flash-correct {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(34, 197, 94, 0.2);
  animation: flash 0.3s ease-out;
  pointer-events: none;
  z-index: 9998;
}

.flash-wrong {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(239, 68, 68, 0.2);
  animation: flash 0.3s ease-out;
  pointer-events: none;
  z-index: 9998;
}

@keyframes flash {
  0%, 100% { opacity: 0; }
  50% { opacity: 1; }
}

.feedback-text {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 80px;
  font-weight: 700;
  color: white;
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  animation: feedback-pop 0.6s ease-out forwards;
  pointer-events: none;
  z-index: 10000;
}

@keyframes feedback-pop {
  0% {
    transform: translate(-50%, -50%) scale(0);
    opacity: 0;
  }
  50% {
    transform: translate(-50%, -50%) scale(1.2);
    opacity: 1;
  }
  100% {
    transform: translate(-50%, -50%) scale(1) translateY(-100px);
    opacity: 0;
  }
}

/* ========================================
   버튼 공통 스타일
   ======================================== */

.btn {
  padding: 12px 24px;
  font-size: 15px;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-lg {
  padding: 14px 32px;
  font-size: 16px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--stroop-primary) 0%, #059669 100%);
  color: white;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(16, 185, 129, 0.3);
}

.btn-secondary {
  background: #f3f4f6;
  color: #1f2937;
  border: 2px solid #e5e7eb;
}

.btn-secondary:hover {
  background: #e5e7eb;
  transform: translateY(-2px);
}

.btn-success {
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
  color: white;
}

.btn-success:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(34, 197, 94, 0.3);
}

/* ========================================
   반응형 (1400px 이하)
   ======================================== */

@media (max-width: 1400px) {
  .level-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .stroop-button {
    width: 250px !important;
    min-width: 250px !important;
    max-width: 250px !important;
    height: 120px !important;
    font-size: 24px;
  }
  
  .right-buttons {
    grid-template-columns: repeat(2, 250px) !important;
    gap: 20px !important;
    column-gap: 20px !important;
    row-gap: 20px !important;
  }
  
  .question-text {
    font-size: 130px !important;
    width: 400px !important;
    height: 400px !important;
    padding: 60px;
    border-radius: 20px !important;
  }
}

@media (max-width: 768px) {
  .stroop-header {
    padding: 16px 20px;
  }
  
  .stroop-title h1 {
    font-size: 20px;
  }
  
  .stroop-main {
    padding: 0 20px;
  }
  
  .stroop-screen {
    padding: 32px 24px;
  }
  
  .level-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  
  .result-stats {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .result-actions {
    flex-direction: column;
  }
}

/* ========================================
   PWA 전체 화면 최적화 (2000×1200 패드)
   ======================================== */

/* iOS Safari PWA 전체 화면 */
@supports (-webkit-touch-callout: none) {
  body {
    padding-top: env(safe-area-inset-top);
    padding-bottom: env(safe-area-inset-bottom);
  }
  
  /* iOS PWA 모드에서 버튼 간격 강제 적용 */
  .right-buttons {
    display: grid !important;
    grid-template-columns: repeat(2, 250px) !important;
    gap: 20px !important;
    column-gap: 20px !important;
    row-gap: 20px !important;
    justify-content: flex-end !important;
  }
  
  .stroop-button {
    width: 250px !important;
    min-width: 250px !important;
    max-width: 250px !important;
    height: 120px !important;
  }
  
  /* 문제 텍스트 크기 고정 */
  .question-text {
    font-size: 130px !important;
    width: 400px !important;
    height: 400px !important;
    padding: 60px;
    border-radius: 20px !important;
  }
  
  /* 좌측 문제 영역 좌측 정렬 */
  .left-question {
    justify-content: flex-start !important;
  }
}

/* 안드로이드 PWA standalone 모드 */
@media all and (display-mode: standalone) {
  body {
    padding-top: max(20px, env(safe-area-inset-top));
    min-height: 100vh;
    min-height: -webkit-fill-available;
  }
  
  .stroop-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 2000;
  }
  
  .stroop-main {
    padding-top: 120px;
  }
  
  /* PWA 모드에서 버튼 간격 강제 적용 */
  .right-buttons {
    display: grid !important;
    grid-template-columns: repeat(2, 250px) !important;
    gap: 20px !important;
    column-gap: 20px !important;
    row-gap: 20px !important;
    justify-content: flex-end !important;
    align-content: center !important;
  }
  
  .stroop-button {
    width: 250px !important;
    min-width: 250px !important;
    max-width: 250px !important;
    height: 120px !important;
  }
  
  /* 문제 텍스트 크기 고정 */
  .question-text {
    font-size: 130px !important;
    width: 400px !important;
    height: 400px !important;
    padding: 60px;
    border-radius: 20px !important;
  }
  
  /* 좌측 문제 영역 좌측 정렬 */
  .left-question {
    justify-content: flex-start !important;
  }
}

/* 1429×872 해상도 최적화 - 600px 고정 */
@media screen and (min-width: 1400px) and (min-height: 800px) {
  #game-screen,
  #result-screen {
    height: 600px;
  }
  
  /* 2분할 레이아웃 최적화 */
  .game-layout {
    height: 470px;
  }
  
  .right-buttons {
    grid-template-columns: repeat(2, 250px) !important;
    gap: 20px !important;
    column-gap: 20px !important;
    row-gap: 20px !important;
  }
  
  .question-text {
    font-size: 130px !important;
    padding: 60px;
    width: 400px !important;
    height: 400px !important;
    border-radius: 20px !important;
  }
  
  .stroop-button {
    width: 250px !important;
    min-width: 250px !important;
    max-width: 250px !important;
    height: 120px !important;
    font-size: 26px !important;
  }
  
  /* 결과 화면 통계 */
  .result-stat-value {
    font-size: 40px;
  }
  
  /* 타이머 바 크기 */
  .timer-bar {
    height: 12px;
  }
  
  .timer-text {
    font-size: 28px;
  }
  
  /* 레벨 카드 크기 */
  .level-card {
    padding: 36px;
  }
  
  .level-number {
    font-size: 52px;
    width: 100px;
    height: 100px;
  }
  
  .level-name {
    font-size: 26px;
  }
  
  .level-info {
    font-size: 18px;
  }
  
  /* 점수 표시 크기 */
  .score-label {
    font-size: 18px;
  }
  
  .score-value {
    font-size: 36px;
  }
  
  /* 결과 화면 */
  .result-title {
    font-size: 52px;
  }
  
  .result-subtitle {
    font-size: 26px;
  }
  
  .result-stat-value {
    font-size: 40px;
  }
  
  /* 버튼 크기 */
  .btn {
    font-size: 20px;
    padding: 18px 40px;
  }
}

/* 가로 모드 최적화 (1429×872) */
@media screen and (orientation: landscape) and (min-width: 1400px) {
  .stroop-main {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 100px);
  }
  
  #game-screen,
  #result-screen {
    width: 100%;
    max-width: 1400px;
    height: 600px;
  }
  
  .game-layout {
    max-width: 1300px;
    margin: 0 auto;
    height: 470px;
  }
}

/* 800px 미만 화면: 반응형 축소 */
@media screen and (max-height: 800px) {
  #game-screen,
  #result-screen {
    height: calc(100vh - 150px);
    max-height: 600px;
    min-height: 480px;
  }
  
  .game-layout {
    height: auto;
    min-height: 350px;
  }
  
  .stroop-button {
    width: 250px !important;
    min-width: 250px !important;
    max-width: 250px !important;
    height: 120px !important;
    font-size: 24px;
  }
  
  .right-buttons {
    grid-template-columns: repeat(2, 250px) !important;
    gap: 20px !important;
    column-gap: 20px !important;
    row-gap: 20px !important;
  }
  
  .question-text {
    font-size: 130px !important;
    width: 400px !important;
    height: 400px !important;
    padding: 60px;
    border-radius: 20px !important;
  }
  
  .result-icon {
    font-size: 60px;
  }
  
  .result-title {
    font-size: 32px;
  }
  
  .result-subtitle {
    font-size: 16px;
  }
  
  .result-stat-value {
    font-size: 32px;
  }
}

/* 700px 미만 화면: 더 축소 */
@media screen and (max-height: 700px) {
  #game-screen,
  #result-screen {
    height: calc(100vh - 120px);
    min-height: 400px;
  }
  
  .game-layout {
    min-height: 280px;
  }
  
  .stroop-button {
    width: 160px;
    min-width: 160px;
    max-width: 160px;
    height: 100px;
    font-size: 20px;
  }
  
  .right-buttons {
    grid-template-columns: repeat(2, 160px);
    gap: 15px !important;
    column-gap: 15px !important;
    row-gap: 15px !important;
  }
  
  .question-text {
    font-size: 130px !important;
    width: 400px !important;
    height: 400px !important;
    padding: 60px;
  }
}

/* ========================================
   웹앱(PWA) 모드 전용 - 버튼 간격 강제 적용
   ======================================== */

/* fullscreen 모드 (웹앱 설치 시) */
@media all and (display-mode: fullscreen) {
  .right-buttons {
    display: grid !important;
    grid-template-columns: repeat(2, 250px) !important;
    gap: 20px !important;
    column-gap: 20px !important;
    row-gap: 20px !important;
    justify-content: flex-end !important;
  }
  
  .stroop-button {
    width: 250px !important;
    min-width: 250px !important;
    max-width: 250px !important;
    height: 120px !important;
  }
  
  .question-text {
    font-size: 130px !important;
    width: 400px !important;
    height: 400px !important;
    padding: 60px;
    border-radius: 20px !important;
  }
  
  .left-question {
    justify-content: flex-start !important;
  }
}

/* minimal-ui 모드 */
@media all and (display-mode: minimal-ui) {
  .right-buttons {
    display: grid !important;
    grid-template-columns: repeat(2, 250px) !important;
    gap: 20px !important;
    column-gap: 20px !important;
    row-gap: 20px !important;
    justify-content: flex-end !important;
  }
  
  .stroop-button {
    width: 250px !important;
    min-width: 250px !important;
    max-width: 250px !important;
    height: 120px !important;
  }
  
  .question-text {
    font-size: 130px !important;
    width: 400px !important;
    height: 400px !important;
    padding: 60px;
    border-radius: 20px !important;
  }
  
  .left-question {
    justify-content: flex-start !important;
  }
}

/* window-controls-overlay 모드 */
@media all and (display-mode: window-controls-overlay) {
  .right-buttons {
    display: grid !important;
    grid-template-columns: repeat(2, 250px) !important;
    gap: 20px !important;
    column-gap: 20px !important;
    row-gap: 20px !important;
    justify-content: flex-end !important;
  }
  
  .stroop-button {
    width: 250px !important;
    min-width: 250px !important;
    max-width: 250px !important;
    height: 120px !important;
  }
  
  .question-text {
    font-size: 130px !important;
    width: 400px !important;
    height: 400px !important;
    padding: 60px;
    border-radius: 20px !important;
  }
  
  .left-question {
    justify-content: flex-start !important;
  }
}

/* ========================================
   커스텀 모달 - 전체 시스템 (Alert & Confirm)
   ======================================== */

/* 모달 컨테이너 */
.training-custom-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10000;
}

.training-custom-modal.show {
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s ease;
}

/* 오버레이 */
.training-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
}

/* 모달 콘텐츠 */
.training-modal-content {
  position: relative;
  background: white;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  width: 90%;
  max-width: 480px;
  animation: slideUp 0.3s ease;
  overflow: hidden;
}

/* 모달 헤더 */
.training-modal-header {
  background: linear-gradient(135deg, #10b981 0%, #34d399 100%);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
  border-radius: 16px 16px 0 0;
}

.training-modal-icon {
  font-size: 28px;
}

.training-modal-title {
  font-size: 20px;
  font-weight: 700;
  color: white;
  flex: 1;
}

.training-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  border: none;
  background: rgba(255, 255, 255, 0.2);
  color: white;
  font-size: 24px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.training-modal-close:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* 모달 바디 */
.training-modal-body {
  padding: 24px;
}

.training-modal-message {
  font-size: 18px;
  line-height: 1.6;
  color: #1f2937;
  text-align: center;
  margin: 0;
  margin-bottom: 0;
}

/* 버튼 컨테이너 */
.training-modal-buttons {
  display: flex;
  gap: 12px;
  margin-top: 30px;
}

/* 기본 버튼 스타일 */
.training-modal-btn {
  flex: 1;
  padding: 14px 24px;
  border: none;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}

/* 단일 버튼 (Alert) */
.training-modal-btn-single {
  background: linear-gradient(135deg, #10b981 0%, #34d399 100%);
  color: white;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.training-modal-btn-single:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(16, 185, 129, 0.4);
}

/* 취소 버튼 (Confirm) */
.training-modal-btn-cancel {
  background: #6b7280;
  color: white;
}

.training-modal-btn-cancel:hover {
  background: #4b5563;
  transform: translateY(-2px);
}

/* 확인 버튼 (Confirm) */
.training-modal-btn-confirm {
  background: linear-gradient(135deg, #10b981 0%, #34d399 100%);
  color: white;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.training-modal-btn-confirm:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(16, 185, 129, 0.4);
}

.training-modal-btn:active {
  transform: translateY(0);
}

/* 애니메이션 */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

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

/* 반응형 */
@media screen and (max-width: 600px) {
  .training-modal-content {
    width: 95%;
    max-width: none;
  }
  
  .training-modal-header {
    padding: 16px 20px;
  }
  
  .training-modal-body {
    padding: 24px 20px;
  }
  
  .training-modal-message {
    font-size: 16px;
  }
}


