/* ========================================================
   0. 전체화면 불투명 로그인 오버레이 (배경 단어 100% 차단)
   ======================================================== */
.auth-fullscreen-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  padding: 1.25rem;
}

.auth-card {
  background: #ffffff;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 2.25rem 1.75rem;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Header & Navigation */
.student-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 0.75rem 0;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.header-brand-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-main);
  text-decoration: none;
}

.brand-badge {
  font-size: 0.72rem;
  background: var(--primary-light);
  color: var(--primary);
  border: 1px solid var(--primary-border);
  padding: 0.15rem 0.45rem;
  border-radius: var(--radius-xs);
  font-weight: 600;
}

.mobile-header-toggle {
  display: none; /* 데스크톱에서는 숨김 */
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

/* Student Profile Badge */
.student-profile-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: var(--surface-hover);
  border: 1px solid var(--border-strong);
  padding: 0.3rem 0.65rem;
  border-radius: var(--radius-sm);
}

.student-profile-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-main);
}

.lesson-select-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.lesson-dropdown {
  appearance: none;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  color: var(--text-main);
  font-weight: 600;
  font-size: 0.88rem;
  padding: 0.45rem 2rem 0.45rem 0.8rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  box-shadow: var(--shadow-xs);
  transition: border-color var(--transition-fast);
}

.lesson-dropdown:hover {
  border-color: var(--primary);
}

.select-arrow-icon {
  position: absolute;
  right: 0.75rem;
  pointer-events: none;
  color: var(--text-muted);
  font-size: 0.7rem;
}

/* Header Language Selector Dropdown */
.lang-dropdown-wrap {
  position: relative;
  display: inline-block;
}

.lang-dropdown-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  color: var(--text-main);
  font-weight: 600;
  font-size: 0.88rem;
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  box-shadow: var(--shadow-xs);
  transition: all var(--transition-fast);
}

.lang-dropdown-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.lang-dropdown-arrow {
  font-size: 0.65rem;
  color: var(--text-muted);
  transition: transform var(--transition-fast);
}

.lang-dropdown-wrap.open .lang-dropdown-arrow {
  transform: rotate(180deg);
}

.lang-dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: auto;
  min-width: 220px;
  max-width: calc(100vw - 2rem);
  background: #FFFFFF;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.12), 0 8px 10px -6px rgba(0, 0, 0, 0.08);
  padding: 0.4rem;
  z-index: 1000;
  animation: dropdownFadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.lang-dropdown-wrap.open .lang-dropdown-menu {
  display: block;
}

.lang-dropdown-header-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  padding: 0.35rem 0.6rem;
  border-bottom: 1px solid #F1F5F9;
  margin-bottom: 0.25rem;
}

.lang-dropdown-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0.5rem 0.65rem;
  border: none;
  background: transparent;
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #334155;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-align: left;
}

.lang-dropdown-item:hover {
  background: #F1F5F9;
  color: var(--primary);
}

.lang-dropdown-item.active {
  background: var(--primary-light);
  color: var(--primary);
  font-weight: 700;
}

.lang-dropdown-item-left {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.lang-dropdown-native {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.lang-dropdown-check {
  font-size: 0.8rem;
  color: var(--primary);
  font-weight: 800;
}

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

/* Hero Section */
.lesson-hero {
  padding: 1.75rem 0 1rem 0;
  text-align: center;
}

.hero-title {
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 0.35rem;
  letter-spacing: -0.02em;
}

.hero-subtitle {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
  font-weight: 400;
}

.hero-objective-card {
  display: block;
  background: #F8FAFC;
  border: 1px solid var(--border-strong);
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-md);
  max-width: 660px;
  margin: 0.5rem auto 0.75rem auto;
  box-sizing: border-box;
}

.objective-card-inner {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  text-align: left;
}

.objective-label-col {
  flex-shrink: 0;
  padding-top: 0.15rem;
}

.objective-badge {
  display: inline-block;
  background: var(--primary-light);
  color: var(--primary);
  border: 1px solid var(--primary-border);
  font-size: 0.78rem;
  font-weight: 800;
  padding: 0.35rem 0.65rem;
  border-radius: 4px;
  white-space: nowrap;
  letter-spacing: -0.01em;
}

.objective-content-col {
  flex: 1;
}

.objective-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  text-align: left;
}

.objective-list-item {
  display: flex;
  align-items: baseline;
  gap: 0.45rem;
  font-size: 0.88rem;
  color: var(--text-main);
  line-height: 1.45;
  font-weight: 500;
  text-align: left;
}

.obj-bullet {
  color: var(--primary);
  font-weight: 800;
  flex-shrink: 0;
}

.obj-text {
  flex: 1;
  text-align: left;
}

/* Hero Assignment Callout Banner */
.hero-assignment-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #FFFFFF;
  border: 1.5px solid #2563EB;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.08);
  border-radius: var(--radius-md);
  padding: 0.75rem 1.25rem;
  max-width: 660px;
  margin: 0.85rem auto 0 auto;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-align: left;
}

.hero-assignment-banner:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.16);
  background: #FAFCFF;
}

.assignment-banner-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.assignment-tag {
  background: #2563EB;
  color: #FFFFFF;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 0.25rem 0.55rem;
  border-radius: 4px;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.assignment-banner-info {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.assignment-banner-info strong {
  font-size: 0.92rem;
  color: var(--text-main);
}

.assignment-status-text {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.assignment-status-text.submitted {
  color: #16A34A;
  font-weight: 700;
}

.assignment-banner-btn {
  font-weight: 700;
  white-space: nowrap;
  padding: 0.4rem 0.85rem;
  font-size: 0.82rem;
}

/* Main Navigation Tabs (Modern Segmented Bar) */
.main-nav-tabs {
  display: flex;
  justify-content: center;
  background: #F1F5F9;
  border: 1px solid var(--border);
  padding: 0.25rem;
  border-radius: var(--radius-sm);
  gap: 0.25rem;
  max-width: 680px;
  margin: 1.5rem auto 2rem auto;
}

.main-nav-tab {
  flex: 1;
  background: transparent;
  border: none;
  padding: 0.55rem 0.75rem;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  white-space: nowrap;
}

.main-nav-tab:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.6);
}

.main-nav-tab.active {
  background: var(--surface);
  color: var(--primary);
  font-weight: 700;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.tab-content-section {
  display: none;
}

.tab-content-section.active {
  display: block;
}

/* Vocab Filter Navigation */
.vocab-filter-nav {
  display: flex;
  justify-content: center;
  gap: 0.4rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.vocab-filter-btn {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-xs);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.vocab-filter-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.vocab-filter-btn.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

/* Category Notice Banner */
.category-notice-banner {
  background: var(--surface-subtle);
  border: 1px solid var(--border);
  border-left: 3px solid var(--primary);
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.88rem;
  color: var(--text-secondary);
}

/* ========================================================
   1. 단어 학습 (Vocabulary & Flashcard)
   ======================================================== */
.flashcard-wrapper {
  max-width: 540px;
  margin: 0 auto 2.5rem auto;
  perspective: 1200px;
}

.flashcard-container {
  width: 100%;
  height: 330px;
  position: relative;
  cursor: pointer;
}

.flashcard-inner {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

.flashcard-container.is-flipped .flashcard-inner {
  transform: rotateY(180deg);
}

.flashcard-face {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: var(--radius-md);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-sm);
  transition: border-color var(--transition-fast);
}

.flashcard-container:hover .flashcard-face {
  border-color: var(--primary-border);
}

.flashcard-back {
  transform: rotateY(180deg);
  background: #FAFBFC;
}

.fc-badge-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.fc-flip-hint {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 500;
}

.fc-center-content {
  text-align: center;
  padding: 1rem 0;
}

.fc-korean-word {
  font-size: 2.3rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 0.35rem;
  letter-spacing: -0.01em;
}

.fc-pronun-text {
  font-size: 1rem;
  color: var(--text-muted);
  font-weight: 400;
}

.fc-meaning-text {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
}

.fc-bottom-example {
  background: var(--surface-subtle);
  border: 1px solid var(--border);
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  color: var(--text-secondary);
  text-align: center;
}

.flashcard-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin-top: 1.25rem;
}

.card-counter-badge {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-secondary);
  background: var(--surface-hover);
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-xs);
  border: 1px solid var(--border);
}

/* Words Grid */
.words-grid-section-title {
  margin-bottom: 1rem;
}

.words-grid-section-title h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-main);
}

.words-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
  margin-bottom: 3rem;
}

.word-card-item {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.word-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.6rem;
}

.word-index-tag {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
}

.pos-badge {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 600;
}

.word-korean-text {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.15rem;
}

.word-pronun-text {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}

.word-en-text {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 0.85rem;
}

.word-example-box {
  background: var(--surface-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  padding: 0.55rem 0.75rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.word-example-box small {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 0.15rem;
}

/* ========================================================
   다국어 (Multilingual UI) 컴포넌트 스타일
   ======================================================== */
.lang-selector-card {
  background: #FFFFFF;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  padding: 0.85rem 1.25rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-xs);
}

.lang-selector-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.65rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.lang-selector-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.lang-selector-badge {
  font-size: 0.75rem;
  color: var(--primary);
  background: var(--primary-light);
  border: 1px solid var(--primary-border);
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-xs);
  font-weight: 600;
}

.lang-chips-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.lang-chip-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--surface-subtle);
  border: 1.5px solid #E2E8F0;
  color: #334155;
  padding: 0.4rem 0.85rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.lang-chip-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: #FFFFFF;
  transform: translateY(-1px);
}

.lang-chip-btn.active {
  background: var(--primary);
  color: #FFFFFF;
  border-color: var(--primary);
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.25);
}

.lang-chip-flag {
  font-size: 1.05rem;
  line-height: 1;
}

.lang-native-label {
  font-size: 0.78rem;
  opacity: 0.85;
}

/* 단어 카드 내부 다국어 표현 */
.word-primary-meaning-box {
  margin-bottom: 0.75rem;
  min-height: 2.2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.meaning-chips-container {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
}

.meaning-chip-item {
  display: inline-flex;
  align-items: center;
  background: #EEF2FF;
  color: #312E81;
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
  font-size: 0.95rem;
  font-weight: 700;
  border: 1px solid #C7D2FE;
  word-break: keep-all;
}

.word-langs-accordion-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  background: transparent;
  border: 1px dashed #CBD5E1;
  color: #64748B;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.3rem 0.5rem;
  border-radius: 4px;
  cursor: pointer;
  transition: all var(--transition-fast);
  margin-bottom: 0.75rem;
  width: 100%;
}

.word-langs-accordion-toggle:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: #F8FAFC;
}

.word-langs-accordion-toggle.active {
  background: #F1F5F9;
  border-style: solid;
  color: #1E293B;
}

.word-langs-accordion-content {
  display: none;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 6px;
  padding: 0.55rem 0.75rem;
  margin-bottom: 0.75rem;
  animation: fadeIn 0.2s ease;
}

.word-langs-accordion-content.show {
  display: block;
}

.lang-grid-row {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  padding: 0.25rem 0;
  border-bottom: 1px dashed #E2E8F0;
  font-size: 0.82rem;
}

.lang-grid-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.lang-row-tag {
  flex-shrink: 0;
  font-weight: 700;
  color: #64748B;
  min-width: 82px;
  font-size: 0.76rem;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.lang-row-text {
  color: #0F172A;
  font-weight: 600;
  word-break: keep-all;
}

/* 플래시카드 다국어 전체보기 모달/드롭다운 */
.fc-langs-btn {
  background: #FFFFFF;
  border: 1px solid #CBD5E1;
  color: #475569;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.35rem 0.75rem;
  border-radius: 4px;
  cursor: pointer;
  margin-top: 0.6rem;
  transition: all var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.fc-langs-btn:hover {
  background: var(--primary-light);
  color: var(--primary);
  border-color: var(--primary-border);
}

.fc-langs-list-box {
  display: none;
  background: #FFFFFF;
  border: 1px solid #CBD5E1;
  border-radius: 6px;
  padding: 0.6rem 0.85rem;
  margin-top: 0.5rem;
  text-align: left;
  max-height: 150px;
  overflow-y: auto;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}

.fc-langs-list-box.show {
  display: block;
}

/* 전체 비교 테이블 뷰 (Comparison Table) */
.vocab-compare-container {
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow-x: auto;
  margin-bottom: 3rem;
  box-shadow: var(--shadow-xs);
}

.vocab-compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.86rem;
  text-align: left;
  min-width: 850px;
}

.vocab-compare-table th {
  background: #F8FAFC;
  color: #334155;
  font-weight: 700;
  padding: 0.75rem 0.85rem;
  border-bottom: 1.5px solid #E2E8F0;
  white-space: nowrap;
}

.vocab-compare-table td {
  padding: 0.75rem 0.85rem;
  border-bottom: 1px solid #F1F5F9;
  vertical-align: middle;
}

.vocab-compare-table tr:hover {
  background: #F8FAFC;
}

.vocab-compare-table .ko-col {
  font-weight: 800;
  color: var(--text-main);
  font-size: 0.95rem;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ========================================================
   2. 게임 액티비티 (Mini Games)
   ======================================================== */
.game-sub-nav {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.game-sub-tab {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  padding: 0.45rem 1rem;
  border-radius: var(--radius-xs);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.game-sub-tab:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.game-sub-tab.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.game-view-panel {
  max-width: 800px;
  margin: 0 auto 3rem auto;
}

.game-header-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1.25rem;
  box-shadow: var(--shadow-xs);
}

.game-stat {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.game-stat span[id] {
  color: var(--primary);
  font-weight: 700;
}

/* Match Game Grid */
.match-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
}

@media (max-width: 640px) {
  .match-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.match-card {
  height: 120px;
  perspective: 800px;
  cursor: pointer;
}

.match-card .card-inner {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.3s;
}

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

.match-card.matched .card-back {
  border-color: #10B981;
  background: #ECFDF5;
}

.match-card .card-front,
.match-card .card-back {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0.75rem;
  text-align: center;
  border: 1px solid var(--border-strong);
}

.match-card .card-front {
  background: #F1F5F9;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.85rem;
}

.match-card .card-back {
  transform: rotateY(180deg);
  background: white;
}

.match-card .card-main-text {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
}

.match-card .card-type-badge {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

/* Speed Quiz */
.quiz-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
}

.quiz-question-box {
  text-align: center;
  margin-bottom: 1.75rem;
}

.quiz-korean-word {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 0.25rem;
}

.quiz-options-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

@media (max-width: 580px) {
  .quiz-options-grid {
    grid-template-columns: 1fr;
  }
}

.quiz-option-btn {
  background: var(--surface-subtle);
  border: 1px solid var(--border-strong);
  padding: 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-main);
  cursor: pointer;
  text-align: left;
  transition: all var(--transition-fast);
}

.quiz-option-btn:hover {
  background: var(--surface-hover);
  border-color: var(--primary);
}

/* ========================================================
   3. 단어 활용 문장 만들기 스튜디오 (Sentence Studio)
   ======================================================== */
.assignment-header-card {
  padding: 1.5rem;
  background: #FFFFFF;
  border: 1.5px solid #2563EB;
  border-radius: var(--radius-md);
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.08);
}

.assignment-steps-bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: #F8FAFC;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.65rem 1rem;
  flex-wrap: wrap;
}

.step-item {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.step-circle {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #E2E8F0;
  color: #64748B;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 800;
}

.step-item.active {
  color: var(--primary);
  font-weight: 700;
}

.step-item.active .step-circle {
  background: var(--primary);
  color: white;
}

.step-item.done {
  color: #15803D;
  font-weight: 600;
}

.step-item.done .step-circle {
  background: #DCFCE7;
  color: #15803D;
}

.step-divider {
  color: var(--border-strong);
  font-size: 0.75rem;
}

.studio-progress-card {
  padding: 1.25rem;
}

.studio-progress-bar-bg {
  width: 100%;
  height: 6px;
  background: var(--border);
  border-radius: var(--radius-full);
  overflow: hidden;
  margin-top: 0.5rem;
}

.studio-progress-bar-fill {
  height: 100%;
  background: var(--primary);
  border-radius: var(--radius-full);
  transition: width 0.3s ease;
}

.studio-word-chips {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.word-chip {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-xs);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.word-chip:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.word-chip.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.word-chip.completed {
  border-color: #10B981;
  background: #F0FDF4;
  color: #15803D;
}

.word-chip.completed.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.studio-main-card {
  padding: 1.75rem;
  margin-bottom: 3rem;
}

.studio-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
}

.studio-target-word-banner {
  background: #F8FAFC;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1.25rem;
  margin-bottom: 1.25rem;
}

.word-big-title h2 {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text-main);
}

.word-big-meaning {
  font-size: 1.05rem;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 0.6rem;
}

.word-example-hint {
  font-size: 0.88rem;
  color: var(--text-secondary);
  background: white;
  border: 1px solid var(--border);
  padding: 0.6rem 0.85rem;
  border-radius: var(--radius-xs);
}

.hint-tag {
  font-weight: 700;
  color: var(--text-muted);
  margin-right: 0.4rem;
}

/* ========================================================
   4. 학습 결과 및 유인물 요약 (Summary & Print View)
   ======================================================== */
.summary-container {
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: 2.5rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  max-width: 860px;
  margin: 0 auto 3rem auto;
}

/* Official Handout Header with Structured Meta Card */
.summary-header-doc {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px solid var(--text-main);
  padding-bottom: 1.25rem;
  margin-bottom: 1.75rem;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.summary-doc-title {
  flex: 1;
  min-width: 240px;
}

.summary-doc-title h2 {
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--text-main);
  margin-top: 0.25rem;
  letter-spacing: -0.01em;
}

.summary-doc-meta-card {
  background: #F8FAFC;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-xs);
  padding: 0.6rem 1rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(130px, 1fr));
  gap: 0.35rem 1rem;
  font-size: 0.85rem;
  box-sizing: border-box;
}

.summary-meta-item {
  display: flex;
  align-items: baseline;
  gap: 0.45rem;
  white-space: nowrap;
}

.summary-meta-label {
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.8rem;
  min-width: 38px;
  white-space: nowrap;
}

.summary-meta-value {
  color: var(--text-main);
  font-weight: 700;
  font-size: 0.88rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.summary-progress-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.75rem;
}

@media (max-width: 580px) {
  .summary-progress-row {
    grid-template-columns: 1fr;
  }
}

.summary-stat-card {
  background: var(--surface-subtle);
  border-radius: var(--radius-xs);
  padding: 1rem 1.25rem;
  border: 1px solid var(--border);
  border-left: 3px solid var(--primary);
}

.summary-stat-card h4 {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
  font-weight: 600;
}

.summary-stat-card p {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-main);
}

.handout-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.75rem;
  font-size: 0.88rem;
}

.handout-table th, .handout-table td {
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--border);
  text-align: left;
  vertical-align: middle;
}

.handout-table th {
  background: #F8FAFC;
  font-weight: 700;
  color: var(--text-secondary);
  font-size: 0.82rem;
}

.handout-section-heading {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--text-main);
}

.summary-sentence-item {
  background: #F8FAFC;
  border: 1px solid var(--border);
  padding: 0.75rem 1rem;
  border-radius: var(--radius-xs);
  margin-bottom: 0.6rem;
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

.summary-sentence-item .sent-num {
  background: var(--primary-light);
  color: var(--primary);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.15rem 0.45rem;
  border-radius: 3px;
  white-space: nowrap;
}

.summary-sentence-item .sent-text {
  font-size: 0.95rem;
  margin-bottom: 0.15rem;
  color: var(--text-main);
}

.summary-action-bar {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1.75rem;
  flex-wrap: wrap;
}

.summary-sync-row {
  display: flex;
  justify-content: center;
  margin-top: 0.6rem;
}

.student-sync-status {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  background: var(--surface-subtle);
  border: 1px solid var(--border);
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
}

/* ---- 선생님 첨삭 반영 (원문 / 수정 구분) ---- */
.corr-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  background: #F8FAFC;
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  padding: 0.5rem 0.85rem;
  margin-bottom: 0.75rem;
  font-size: 0.82rem;
  color: var(--text-secondary);
}

.corr-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.summary-sentence-item .sent-body {
  flex: 1;
  min-width: 0;
}

.summary-sentence-item.corrected {
  flex-direction: row;
  border-color: var(--primary-border);
  background: #FCFDFF;
}

.sent-word {
  font-size: 0.9rem;
  color: var(--text-main);
  margin-bottom: 0.3rem;
}

.sent-line {
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 0.2rem;
}

.sent-line-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 0.05rem 0.4rem;
  border-radius: 3px;
  margin-right: 0.35rem;
  vertical-align: middle;
}

.sent-line-orig .sent-line-tag {
  color: var(--text-muted);
  background: #E2E8F0;
}

.sent-line-fix .sent-line-tag {
  color: #fff;
  background: var(--primary);
}

.sent-comment {
  margin-top: 0.35rem;
  font-size: 0.85rem;
  color: var(--accent-amber);
  font-weight: 600;
}

/* Print Optimization - A4 1 Page Layout */
@media print {
  @page {
    size: A4 portrait;
    margin: 8mm 10mm;
  }

  *, *::before, *::after {
    box-shadow: none !important;
    text-shadow: none !important;
  }

  html, body {
    background: white !important;
    color: black !important;
    font-size: 9pt !important;
    line-height: 1.25 !important;
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
  }

  .student-header,
  .lesson-hero,
  .main-nav-tabs,
  .vocab-filter-nav,
  .summary-action-bar,
  .summary-sync-row,
  #section-vocab,
  #section-games,
  #section-sentence,
  .btn-delete-sm {
    display: none !important;
  }

  main.container {
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  #section-summary,
  .tab-content-section {
    display: block !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  .summary-container {
    box-shadow: none !important;
    padding: 0 !important;
    max-width: 100% !important;
    border: none !important;
    margin: 0 !important;
  }

  .summary-header-doc {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    border-bottom: 2px solid #000 !important;
    padding-bottom: 0.4rem !important;
    margin-bottom: 0.5rem !important;
  }

  .summary-doc-title h2 {
    font-size: 13pt !important;
    margin: 0 !important;
  }

  .summary-doc-title .badge {
    display: inline-block !important;
    font-size: 7.5pt !important;
    padding: 0.1rem 0.3rem !important;
    margin-bottom: 0.15rem !important;
  }

  .summary-doc-meta-card {
    background: transparent !important;
    border: 1px solid #444 !important;
    padding: 0.35rem 0.65rem !important;
    grid-template-columns: repeat(3, auto) !important;
    gap: 0.2rem 0.65rem !important;
    font-size: 8pt !important;
  }

  .summary-meta-label {
    font-size: 7.5pt !important;
    min-width: 32px !important;
  }

  .summary-meta-value {
    font-size: 8pt !important;
  }

  .summary-progress-row {
    grid-template-columns: 1fr 1fr !important;
    gap: 0.5rem !important;
    margin-bottom: 0.5rem !important;
  }

  .summary-stat-card {
    background: #FAFAFA !important;
    border: 1px solid #ccc !important;
    border-left: 3px solid #333 !important;
    padding: 0.35rem 0.6rem !important;
  }

  .summary-stat-card h4 {
    font-size: 7.5pt !important;
    margin-bottom: 0.1rem !important;
  }

  .summary-stat-card p {
    font-size: 9.5pt !important;
    margin: 0 !important;
  }

  .handout-section-heading {
    font-size: 9pt !important;
    font-weight: 700 !important;
    margin-top: 0.4rem !important;
    margin-bottom: 0.25rem !important;
    border-bottom: 1px solid #bbb !important;
    padding-bottom: 0.15rem !important;
  }

  .handout-table-wrapper {
    border: none !important;
    margin-bottom: 0.4rem !important;
    overflow: visible !important;
  }

  .handout-table {
    width: 100% !important;
    margin-bottom: 0 !important;
    font-size: 8pt !important;
    border-collapse: collapse !important;
  }

  .handout-table th {
    background: #F0F0F0 !important;
    color: black !important;
    font-size: 7.5pt !important;
    padding: 3px 5px !important;
    border: 1px solid #777 !important;
  }

  .handout-table td {
    padding: 3px 5px !important;
    border: 1px solid #777 !important;
    font-size: 8pt !important;
    line-height: 1.2 !important;
  }

  .summary-sentence-item {
    background: #fff !important;
    border: 1px solid #888 !important;
    padding: 3px 6px !important;
    margin-bottom: 3px !important;
    gap: 0.4rem !important;
    page-break-inside: avoid !important;
    break-inside: avoid !important;
  }

  .summary-sentence-item .sent-num {
    font-size: 7pt !important;
    padding: 0.1rem 0.3rem !important;
    background: #eee !important;
    color: #000 !important;
    border: 1px solid #ccc !important;
  }

  .summary-sentence-item .sent-text {
    font-size: 8pt !important;
    margin: 0 !important;
    line-height: 1.2 !important;
  }

  .summary-sentence-item small {
    display: none !important;
  }

  /* 첨삭 대조 마크는 인쇄 시에도 색상 유지 */
  .diff-del,
  .diff-ins,
  .sent-line-tag,
  .corr-legend {
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  .corr-legend {
    border: 1px solid #999 !important;
    padding: 2px 5px !important;
    margin-bottom: 3px !important;
    gap: 0.15rem 0.75rem !important;
    font-size: 7.5pt !important;
  }

  .summary-sentence-item.corrected .sent-body {
    width: 100% !important;
  }

  .sent-word {
    font-size: 8pt !important;
    margin-bottom: 1px !important;
  }

  .sent-line {
    font-size: 8.5pt !important;
    line-height: 1.35 !important;
    margin-bottom: 1px !important;
  }

  .sent-line-tag {
    font-size: 6.5pt !important;
    padding: 0 2px !important;
  }

  .sent-comment {
    display: block !important;
    font-size: 7.5pt !important;
    margin-top: 1px !important;
    color: #B45309 !important;
  }
}

/* ========================================================
   5. 모바일 스마트폰 완벽 대응 (Mobile Responsive)
   ======================================================== */
.handout-table-wrapper {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 1.5rem;
  border-radius: var(--radius-xs);
  border: 1px solid var(--border);
}

.handout-table-wrapper .handout-table {
  min-width: 600px;
  margin-bottom: 0;
  border: none;
}

@media (max-width: 768px) {
  .app-header .header-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 0.65rem;
    padding: 0.75rem 1rem;
  }

  .header-left, .header-right {
    width: 100%;
    justify-content: space-between;
  }

  .lesson-select-wrap {
    width: 100%;
  }

  .lesson-select-box {
    width: 100%;
    max-width: 100%;
    font-size: 0.88rem;
  }

  .hero-title {
    font-size: 1.45rem;
  }

  .hero-objective-card {
    padding: 0.75rem 1rem;
  }

  .objective-card-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.45rem;
  }

  .hero-assignment-banner {
    flex-direction: column;
    align-items: stretch;
    gap: 0.65rem;
    padding: 0.85rem 1rem;
  }

  .assignment-banner-btn {
    width: 100%;
    text-align: center;
    padding: 0.55rem;
  }

  /* 4개 탭을 모바일에서 2x2 그리드로 정돈 */
  .main-nav-tabs {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.45rem;
    padding: 0.4rem;
    margin-bottom: 1.5rem;
  }

  .main-nav-tab {
    padding: 0.65rem 0.5rem;
    font-size: 0.88rem;
    text-align: center;
    justify-content: center;
  }

  /* 모바일 입력창 줌 방지 (iOS 16px rule) */
  input[type="text"],
  input[type="password"],
  input[type="number"],
  textarea,
  select {
    font-size: 16px !important;
  }

  .flashcard-container {
    min-height: 250px;
  }

  .fc-korean-word {
    font-size: 1.85rem;
  }

  .words-grid {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }

  .studio-main-card {
    padding: 1.25rem 1rem;
  }

  .studio-card-header {
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .studio-action-row {
    flex-direction: column;
    align-items: stretch;
    gap: 0.65rem;
  }

  .studio-action-row .d-flex {
    justify-content: flex-end;
  }

  .summary-container {
    padding: 1.25rem 0.85rem;
  }

  .summary-header-doc {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }

  .summary-doc-meta-card {
    grid-template-columns: 1fr;
    gap: 0.4rem;
  }

  .modal-content {
    width: 92% !important;
    padding: 1.5rem 1.25rem !important;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 1.3rem;
  }

  .match-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
  }

  .match-card {
    height: 105px;
  }

  .match-card .card-main-text {
    font-size: 0.95rem;
  }

  .quiz-card {
    padding: 1.25rem 1rem;
  }

  .assignment-header-card {
    padding: 1.1rem 0.9rem;
  }

  .assignment-steps-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
  }

  .step-divider {
    display: none;
  }
}

/* ========================================================
   단어 타자 게임 (Speed Typing Rush) & 실시간 순위표 스타일
   ======================================================== */

.game-sub-tab.highlight-tab {
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.08), rgba(236, 72, 153, 0.08));
  color: var(--primary);
  border-color: rgba(79, 70, 229, 0.3);
  font-weight: 700;
}

.game-sub-tab.highlight-tab.active {
  background: linear-gradient(135deg, #4f46e5, #ec4899);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 4px 14px rgba(79, 70, 229, 0.35);
}

/* 1. 로비 화면 */
.typing-lobby {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  max-width: 800px;
  margin: 1.5rem auto;
  box-shadow: var(--shadow-md);
  text-align: center;
}

.game-badge-pulse {
  display: inline-block;
  background: linear-gradient(135deg, #ec4899, #f59e0b);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  box-shadow: 0 0 12px rgba(236, 72, 153, 0.4);
}

.typing-lobby h2 {
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 0.5rem;
}

.lobby-desc {
  color: var(--text-muted);
  font-size: 0.98rem;
  max-width: 600px;
  margin: 0 auto 1.75rem;
  line-height: 1.5;
  word-break: keep-all;
  overflow-wrap: break-word;
}

.lobby-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.lobby-stat-card {
  background: var(--surface-hover);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.1rem 0.8rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  transition: transform 0.2s, box-shadow 0.2s;
}

.lobby-stat-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.lobby-stat-card.highlight {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.08), rgba(236, 72, 153, 0.08));
  border-color: rgba(245, 158, 11, 0.3);
}

.lobby-stat-card .stat-icon {
  font-size: 1.6rem;
}

.lobby-stat-card .stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 600;
}

.lobby-stat-card .stat-val {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
}

.lobby-word-preview {
  background: var(--surface-hover);
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  margin-bottom: 2rem;
  text-align: left;
}

.lobby-word-preview h4 {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.word-chips-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.word-chip {
  display: inline-flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 0.35rem 0.65rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
}

.word-chip strong {
  color: var(--primary);
  font-size: 0.92rem;
}

.word-chip small {
  color: var(--text-muted);
  font-size: 0.75rem;
}

.lobby-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.pulse-btn {
  animation: pulse-shadow 2s infinite;
}

@keyframes pulse-shadow {
  0% { box-shadow: 0 0 0 0 rgba(79, 70, 229, 0.6); }
  70% { box-shadow: 0 0 0 12px rgba(79, 70, 229, 0); }
  100% { box-shadow: 0 0 0 0 rgba(79, 70, 229, 0); }
}

/* 2. 게임 플레이 아레나 */
.typing-arena {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  max-width: 820px;
  margin: 1.5rem auto;
  box-shadow: var(--shadow-lg);
}

.typing-hud {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border);
}

.hud-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hud-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-bottom: 0.2rem;
}

.hud-value {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-main);
  font-variant-numeric: tabular-nums;
}

.hud-value.timer-val {
  color: var(--primary);
}

.hud-value.timer-val.urgent-pulse {
  color: #ef4444;
  animation: timer-blink 0.5s infinite alternate;
}

@keyframes timer-blink {
  from { transform: scale(1); }
  to { transform: scale(1.1); }
}

.hud-value.score-val {
  color: #10b981;
}

.combo-badge {
  display: inline-block;
  background: var(--surface-hover);
  color: var(--text-muted);
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-xs);
  font-size: 0.85rem !important;
  transition: all 0.2s;
}

.combo-badge.active {
  background: #f59e0b;
  color: #fff;
  transform: scale(1.05);
}

.combo-badge.on-fire {
  background: linear-gradient(135deg, #ef4444, #f59e0b);
  color: #fff;
  transform: scale(1.12);
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.5);
  animation: fire-shake 0.4s infinite alternate;
}

@keyframes fire-shake {
  0% { transform: scale(1.12) rotate(-2deg); }
  100% { transform: scale(1.12) rotate(2deg); }
}

.typing-progress-bar-wrap {
  height: 6px;
  background: var(--surface-hover);
  border-radius: 999px;
  overflow: hidden;
  margin: 1rem 0 1.5rem;
}

.typing-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #4f46e5, #06b6d4);
  transition: width 0.1s linear, background-color 0.3s;
}

/* 중앙 단어 카드 */
.typing-target-card {
  background: linear-gradient(180deg, var(--surface) 0%, var(--surface-hover) 100%);
  border: 2px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 2.25rem 1.5rem;
  text-align: center;
  margin-bottom: 1.5rem;
  position: relative;
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.02);
}

.target-meta-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.target-pronunciation {
  font-size: 0.88rem;
  color: var(--text-muted);
  font-style: italic;
}

.target-word-display {
  font-size: 2.75rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  margin-bottom: 0.75rem;
  color: var(--text-main);
  user-select: none;
}

.target-char {
  display: inline-block;
  transition: color 0.1s, transform 0.1s;
}

.target-char.char-correct {
  color: #10b981;
  text-shadow: 0 0 10px rgba(16, 185, 129, 0.4);
}

.target-char.char-wrong {
  color: #ef4444;
  text-decoration: underline;
  text-shadow: 0 0 8px rgba(239, 68, 68, 0.4);
}

.target-meaning-display .meaning-text {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 0.25rem;
}

.target-meaning-display .example-text {
  color: var(--text-muted);
  font-size: 0.88rem;
}

/* 입력 필드 */
.typing-input-wrapper {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.input-glow-box {
  position: relative;
  width: 100%;
}

.typing-main-input {
  width: 100%;
  padding: 1.1rem 1.5rem;
  font-size: 1.6rem;
  font-weight: 700;
  text-align: center;
  border-radius: var(--radius-md);
  border: 2px solid var(--primary);
  background: var(--surface);
  color: var(--text-main);
  outline: none;
  box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.15);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.typing-main-input:focus {
  border-color: #6366f1;
  box-shadow: 0 0 0 5px rgba(99, 102, 241, 0.3);
}

.typing-main-input.correct-glow {
  border-color: #10b981 !important;
  box-shadow: 0 0 0 6px rgba(16, 185, 129, 0.3) !important;
}

.typing-main-input.shake {
  animation: shake-anim 0.35s ease-in-out;
  border-color: #ef4444 !important;
  box-shadow: 0 0 0 6px rgba(239, 68, 68, 0.3) !important;
}

@keyframes shake-anim {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-8px); }
  40%, 80% { transform: translateX(8px); }
}

.typing-hint-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* 3. 결과 화면 */
.typing-result-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  max-width: 700px;
  margin: 1.5rem auto;
  box-shadow: var(--shadow-lg);
}

.result-badge-top {
  display: inline-block;
  background: linear-gradient(135deg, #4f46e5, #ec4899);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 800;
  padding: 0.35rem 1rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}

.result-title {
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 1.5rem;
}

.rank-highlight-box {
  display: flex;
  justify-content: center;
  align-items: center;
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.08), rgba(245, 158, 11, 0.08));
  border: 1px solid rgba(79, 70, 229, 0.2);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  margin-bottom: 1.75rem;
  gap: 1.5rem;
}

.rank-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}

.rank-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 600;
}

.rank-val {
  font-size: 1.2rem;
  color: var(--text-main);
}

.rank-val strong {
  font-size: 1.5rem;
  color: #f59e0b;
}

.rank-divider {
  width: 1px;
  height: 40px;
  background: var(--border-strong);
}

.typing-final-score-display {
  margin-bottom: 1.75rem;
}

.typing-final-score-display .big-score {
  font-size: 3.5rem;
  font-weight: 900;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 0.35rem;
}

.typing-final-score-display .big-score small {
  font-size: 1.25rem;
  color: var(--text-muted);
  font-weight: 600;
}

.score-sub-text {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.final-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  margin-bottom: 2rem;
}

@media (max-width: 600px) {
  .final-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.f-stat-box {
  background: var(--surface-hover);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.85rem 0.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
}

.f-stat-box .label {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.f-stat-box .val {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-main);
}

.result-actions-group {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* 4. 실시간 순위표 뷰 */
.leaderboard-view {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  max-width: 850px;
  margin: 1.5rem auto;
  box-shadow: var(--shadow-lg);
}

.leaderboard-header h2 {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text-main);
  margin-top: 0.25rem;
}

.lb-tabs-nav {
  display: flex;
  gap: 0.5rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.5rem;
}

.lb-tab-btn {
  background: transparent;
  border: none;
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s;
}

.lb-tab-btn:hover {
  color: var(--text-main);
  background: var(--surface-hover);
}

.lb-tab-btn.active {
  color: var(--primary);
  background: var(--primary-light);
  font-weight: 700;
}

.leaderboard-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
}

.leaderboard-table th {
  background: var(--surface-hover);
  color: var(--text-muted);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.75rem 0.9rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.leaderboard-table td {
  padding: 0.85rem 0.9rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.92rem;
  color: var(--text-main);
}

.leaderboard-table tr:hover {
  background: var(--surface-hover);
}

.leaderboard-table tr.my-row {
  background: rgba(79, 70, 229, 0.08);
  font-weight: 700;
}

.rank-cell {
  font-weight: 700;
}

.rank-pill {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-xs);
  font-size: 0.82rem;
}

.top-rank.rank-1 .rank-pill {
  background: #fef3c7;
  color: #b45309;
  font-weight: 800;
}

.top-rank.rank-2 .rank-pill {
  background: #f1f5f9;
  color: #475569;
  font-weight: 800;
}

.top-rank.rank-3 .rank-pill {
  background: #ffedd5;
  color: #9a3412;
  font-weight: 800;
}

.name-cell {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.badge-me {
  background: #4f46e5;
  color: #fff;
  font-size: 0.68rem;
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
}

.student-id-text {
  color: var(--text-muted);
  font-size: 0.8rem;
}

.score-cell strong {
  color: var(--primary);
  font-size: 1.05rem;
}

.my-best-summary-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--surface-hover);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  padding: 0.85rem 1.25rem;
  margin-top: 1.25rem;
  font-size: 0.95rem;
}

/* 순수 한국어 타자 카드 스타일 */
.typing-target-card.pure-card {
  padding: 3rem 1.5rem;
  background: linear-gradient(180deg, var(--surface) 0%, var(--surface-hover) 100%);
}

.target-word-display.pure-korean {
  font-size: 3.8rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  margin: 0;
  color: var(--text-main);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.word-chip.pure-chip {
  padding: 0.4rem 0.8rem;
}
.word-chip.pure-chip strong {
  font-size: 1rem;
}

/* ========================================================
   단어 풍선 팡팡 (Word Balloon Pop) 스타일
   ======================================================== */

.game-sub-tab.balloon-tab {
  background: linear-gradient(135deg, rgba(236, 72, 153, 0.08), rgba(245, 158, 11, 0.08));
  color: #db2777;
  border-color: rgba(236, 72, 153, 0.3);
  font-weight: 700;
}

.game-sub-tab.balloon-tab.active {
  background: linear-gradient(135deg, #ec4899, #f59e0b);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 4px 14px rgba(236, 72, 153, 0.35);
}

/* 로비 */
.balloon-lobby {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  max-width: 800px;
  margin: 1.5rem auto;
  box-shadow: var(--shadow-md);
  text-align: center;
}

.game-badge-balloon {
  display: inline-block;
  background: linear-gradient(135deg, #ec4899, #f59e0b);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  box-shadow: 0 0 12px rgba(236, 72, 153, 0.4);
}

.balloon-lobby h2 {
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 0.5rem;
}

/* 아레나 */
.balloon-arena {
  background: linear-gradient(180deg, #f0fdf4 0%, #e0f2fe 50%, #eff6ff 100%);
  border: 1px solid rgba(14, 165, 233, 0.2);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  max-width: 860px;
  margin: 1.5rem auto;
  box-shadow: var(--shadow-lg);
  color: var(--text-main);
  position: relative;
  overflow: hidden;
}

.balloon-hud {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.balloon-hud .hud-label {
  color: #64748b;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
}

.balloon-hud .hud-value {
  color: var(--text-main);
  font-size: 1.35rem;
  font-weight: 800;
}

.target-val {
  color: #ec4899 !important;
}

/* 풍선 하늘 구역 */
.balloon-sky-zone {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem 1rem;
  min-height: 380px;
  margin: 1.25rem 0;
  padding: 1rem 0.5rem;
  align-items: center;
  justify-items: center;
}

@media (max-width: 650px) {
  .balloon-sky-zone {
    grid-template-columns: repeat(2, 1fr);
    min-height: 440px;
  }
}

/* 🎈 풍선 컴포넌트 */
.balloon-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  cursor: default;
  user-select: none;
  transition: transform 0.2s, opacity 0.3s;
}

/* 둥실둥실 애니메이션 3종 */
.float-anim-0 {
  animation: balloon-float-1 3.2s ease-in-out infinite alternate;
}
.float-anim-1 {
  animation: balloon-float-2 3.8s ease-in-out infinite alternate 0.5s;
}
.float-anim-2 {
  animation: balloon-float-3 3.5s ease-in-out infinite alternate 1s;
}

@keyframes balloon-float-1 {
  0% { transform: translateY(0px) rotate(-2deg); }
  100% { transform: translateY(-16px) rotate(2deg); }
}

@keyframes balloon-float-2 {
  0% { transform: translateY(-4px) rotate(2deg); }
  100% { transform: translateY(-20px) rotate(-2deg); }
}

@keyframes balloon-float-3 {
  0% { transform: translateY(-12px) rotate(-1deg); }
  100% { transform: translateY(2px) rotate(2deg); }
}

.balloon-body {
  width: 148px;
  height: 168px;
  border-radius: 50% 50% 50% 50% / 40% 40% 60% 60%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  box-shadow: inset -6px -8px 14px rgba(0, 0, 0, 0.15), 0 8px 20px rgba(0, 0, 0, 0.12);
  padding: 0.6rem 0.5rem;
  text-align: center;
  transition: transform 0.15s;
}

/* 풍선 광택 */
.balloon-shine {
  position: absolute;
  top: 15px;
  left: 20px;
  width: 28px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  transform: rotate(28deg);
  pointer-events: none;
}

.balloon-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  width: 100%;
  max-width: 138px;
}

.balloon-korean {
  font-size: 1.3rem;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: 0.02em;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
  line-height: 1.2;
}

.balloon-meaning {
  font-size: 0.74rem;
  font-weight: 700;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.32);
  padding: 0.2rem 0.55rem;
  border-radius: 12px;
  backdrop-filter: blur(2px);
  max-width: 130px;
  width: auto;
  white-space: normal;
  word-break: keep-all;
  word-wrap: break-word;
  line-height: 1.25;
  text-align: center;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
}

/* 풍선 매듭 & 실 */
.balloon-knot {
  width: 0;
  height: 0;
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
  border-bottom: 9px solid rgba(0, 0, 0, 0.25);
  margin-top: -2px;
}

.balloon-string {
  width: 1.5px;
  height: 35px;
  background: rgba(0, 0, 0, 0.25);
  margin-top: 1px;
}

/* 🎈 풍선 6종 컬러 테마 */
.balloon-color-rose .balloon-body {
  background: radial-gradient(circle at 35% 30%, #fb7185 0%, #e11d48 100%);
}
.balloon-color-rose .balloon-knot { border-bottom-color: #be123c; }

.balloon-color-sky .balloon-body {
  background: radial-gradient(circle at 35% 30%, #38bdf8 0%, #0284c7 100%);
}
.balloon-color-sky .balloon-knot { border-bottom-color: #0369a1; }

.balloon-color-emerald .balloon-body {
  background: radial-gradient(circle at 35% 30%, #34d399 0%, #059669 100%);
}
.balloon-color-emerald .balloon-knot { border-bottom-color: #047857; }

.balloon-color-amber .balloon-body {
  background: radial-gradient(circle at 35% 30%, #fbbf24 0%, #d97706 100%);
}
.balloon-color-amber .balloon-knot { border-bottom-color: #b45309; }

.balloon-color-violet .balloon-body {
  background: radial-gradient(circle at 35% 30%, #a78bfa 0%, #7c3aed 100%);
}
.balloon-color-violet .balloon-knot { border-bottom-color: #6d28d9; }

.balloon-color-coral .balloon-body {
  background: radial-gradient(circle at 35% 30%, #fb923c 0%, #ea580c 100%);
}
.balloon-color-coral .balloon-knot { border-bottom-color: #c2410c; }

/* 💥 터지는 애니메이션 */
.balloon-item.popping {
  transform: scale(1.4) !important;
  opacity: 0;
  pointer-events: none;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.25s ease-out;
}

/* 하단 입력바 */
.balloon-input-bar {
  display: flex;
  justify-content: center;
  margin-top: 0.5rem;
}

.balloon-main-input {
  width: 100%;
  max-width: 600px;
  padding: 1.1rem 1.5rem;
  font-size: 1.4rem;
  font-weight: 700;
  text-align: center;
  border-radius: var(--radius-md);
  border: 2px solid #ec4899;
  background: #ffffff;
  color: #1e293b;
  outline: none;
  box-shadow: 0 0 0 4px rgba(236, 72, 153, 0.2);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.balloon-main-input:focus {
  border-color: #db2777;
  box-shadow: 0 0 0 6px rgba(236, 72, 153, 0.35);
}

.balloon-main-input::placeholder {
  color: #94a3b8;
  font-size: 1.1rem;
  font-weight: 500;
}

/* 결과 카드 */
.balloon-result-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  max-width: 700px;
  margin: 1.5rem auto;
  box-shadow: var(--shadow-lg);
}

/* ========================================================
   📱 모바일(스마트폰) 최적화: 접이식 헤더 및 컴팩트 타자 뷰
   ======================================================== */
@media (max-width: 768px) {
  .student-header {
    padding: 0.35rem 0;
  }

  .header-container {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0 0.85rem;
  }

  .header-brand-row {
    width: 100%;
    padding: 0.15rem 0;
  }

  .brand-logo {
    font-size: 1.02rem;
  }

  /* 모바일 토글 버튼 */
  .mobile-header-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    color: #1e293b;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 0.3rem 0.65rem;
    border-radius: 999px;
    cursor: pointer;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
    transition: all 0.2s;
  }

  .mobile-header-toggle:hover {
    background: #e2e8f0;
  }

  .mobile-toggle-arrow {
    font-size: 0.6rem;
    color: #64748b;
    transition: transform 0.2s ease;
  }

  .mobile-header-toggle.open .mobile-toggle-arrow {
    transform: rotate(180deg);
  }

  /* 모바일에서 기본 접힘(숨김) 처리되는 상단 메뉴 */
  .header-actions {
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
    padding: 0.75rem 0.5rem 0.6rem;
    margin-top: 0.35rem;
    border-top: 1px dashed #e2e8f0;
    background: #ffffff;
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    box-shadow: 0 8px 16px rgba(0,0,0,0.08);
    animation: dropdownFadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .header-actions.open {
    display: flex;
  }

  .header-actions .student-profile-badge,
  .header-actions .lang-dropdown-wrap,
  .header-actions .lesson-select-wrap,
  .header-actions .lesson-dropdown,
  .header-actions .lang-dropdown-btn {
    width: 100%;
    justify-content: space-between;
  }

  /* ⌨️ 모바일 타자 게임 아레나 컴팩트 최적화 (가상 키보드 가림 완벽 방지) */
  .typing-arena {
    padding: 0.85rem 0.75rem;
    margin: 0.5rem auto;
  }

  .typing-hud {
    padding-bottom: 0.5rem;
    gap: 0.25rem;
  }

  .typing-hud .hud-label {
    font-size: 0.62rem;
  }

  .typing-hud .hud-value {
    font-size: 1.1rem;
  }

  .typing-progress-bar-wrap {
    margin: 0.5rem 0 0.75rem;
  }

  .typing-target-card {
    padding: 0.9rem 0.6rem;
    margin-bottom: 0.75rem;
  }

  .target-word-display {
    font-size: 2.1rem;
    margin-bottom: 0.2rem;
    letter-spacing: 0.04em;
  }

  .typing-main-input {
    font-size: 1.2rem;
    padding: 0.75rem 1rem;
  }

  /* 풍선 팡팡 모바일 최적화 */
  .balloon-arena {
    padding: 0.85rem 0.6rem;
    margin: 0.5rem auto;
  }

  .balloon-sky-zone {
    min-height: 280px;
    gap: 0.75rem 0.5rem;
    margin: 0.5rem 0;
  }

  .balloon-body {
    width: 124px;
    height: 144px;
    padding: 0.45rem 0.35rem;
  }

  .balloon-content {
    max-width: 116px;
    gap: 0.15rem;
  }

  .balloon-korean {
    font-size: 1.1rem;
  }

  .balloon-meaning {
    font-size: 0.68rem;
    max-width: 110px;
    padding: 0.15rem 0.4rem;
    line-height: 1.2;
  }

  .balloon-main-input {
    font-size: 1.2rem;
    padding: 0.75rem 1rem;
  }
}



