/**
 * WoW Token 시세 조회 - 스타일시트
 * 모바일 우선, WoW 테마 다크 모드
 */

/* ============================================================================
   CSS Variables
   ============================================================================ */

:root {
  /* 색상 팔레트 - WoW 골드 테마 */
  --color-bg: #0a0e14;
  --color-bg-elevated: #111820;
  --color-bg-card: #161d27;
  --color-bg-hover: #1c2633;
  --color-border: #2a3441;
  --color-border-subtle: #1e2731;

  /* 골드 계열 */
  --color-gold: #ffd23f;
  --color-gold-bright: #ffe066;
  --color-gold-dim: #c9a227;
  --color-gold-dark: #8b6914;
  --color-gold-glow: rgba(255, 210, 63, 0.2);

  /* 텍스트 */
  --color-text: #e8eef5;
  --color-text-secondary: #9aa8b8;
  --color-text-muted: #5c6b7d;

  /* 시맨틱 컬러 */
  --color-accent: #4dabf7;
  --color-success: #51cf66;
  --color-warning: #fcc419;
  --color-error: #ff6b6b;

  /* 타이포그래피 */
  --font-main: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont,
    system-ui, Roboto, sans-serif;
  --font-title: "Cinzel", "Noto Serif KR", Georgia, serif;
  --font-mono: "JetBrains Mono", "Fira Code", "SF Mono", Consolas, monospace;

  /* 간격 */
  --spacing-2xs: 0.125rem;
  --spacing-xs: 0.25rem;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 1.5rem;
  --spacing-xl: 2rem;
  --spacing-2xl: 3rem;

  /* 둥근 모서리 */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* 그림자 */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
  --shadow-gold: 0 0 40px var(--color-gold-glow);
  --shadow-inner: inset 0 2px 4px rgba(0, 0, 0, 0.3);

  /* 트랜지션 */
  --transition-fast: 120ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 200ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 300ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================================================
   Reset & Base
   ============================================================================ */

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

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  font-family: var(--font-main);
  background: var(--color-bg);
  color: var(--color-text);
  min-height: 100vh;
  min-height: 100dvh;
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

/* 아제로스 지도 배경 */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: url('wallpaper.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.06;
  pointer-events: none;
  z-index: 0;
}

/* ============================================================================
   Background Effects
   ============================================================================ */

.background-effects {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.4;
  animation: float 20s ease-in-out infinite;
}

.glow-1 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--color-gold-dark) 0%, transparent 70%);
  top: -200px;
  right: -200px;
  animation-delay: 0s;
  opacity: 0.4;
}

.glow-2 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(77, 171, 247, 0.3) 0%, transparent 70%);
  bottom: -100px;
  left: -100px;
  animation-delay: -10s;
}

/* 모바일에서 glow 효과 약하게 */
@media (max-width: 480px) {
  .glow-1 {
    opacity: 0.2;
  }
  
  .glow-2 {
    opacity: 0.2;
  }
}

@keyframes float {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  25% {
    transform: translate(30px, -30px) scale(1.05);
  }
  50% {
    transform: translate(-20px, 20px) scale(0.95);
  }
  75% {
    transform: translate(-30px, -20px) scale(1.02);
  }
}

/* ============================================================================
   Container
   ============================================================================ */

.container {
  position: relative;
  z-index: 1;
  max-width: 640px;
  margin: 0 auto;
  padding: 0.75rem;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

/* ============================================================================
   Header
   ============================================================================ */

.header {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-xl);
  padding-top: var(--spacing-md);
}

/* ============================================================================
   WoW Token Icon (인게임 스타일)
   ============================================================================ */

.token-icon-wrapper {
  position: relative;
  width: 64px;
  height: 64px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  /* 전체가 함께 떠다니는 애니메이션 */
  animation: token-float 2.5s ease-in-out infinite;
}

@keyframes token-float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* 빛나는 배경 효과 */
.token-light {
  position: absolute;
  width: 80px;
  height: 80px;
  opacity: 0.6;
  animation: light-glow 3s ease-in-out infinite;
  pointer-events: none;
  z-index: 1;
}

@keyframes light-glow {
  0%, 100% {
    transform: scale(1) rotate(0deg);
    opacity: 0.5;
  }
  25% {
    opacity: 0.7;
  }
  50% {
    transform: scale(1.2) rotate(180deg);
    opacity: 0.8;
  }
  75% {
    opacity: 0.7;
  }
}

/* 토큰 동전 */
.token-coin {
  position: relative;
  width: 48px;
  height: 48px;
  z-index: 2;
  animation: token-shine 3s ease-in-out infinite;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.5))
          drop-shadow(0 0 20px var(--color-gold-glow));
}

@keyframes token-shine {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.08);
  }
}

.header-text {
  display: flex;
  flex-direction: column;
}

.logo {
  font-family: var(--font-title);
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  background: linear-gradient(
    135deg,
    var(--color-gold-bright) 0%,
    var(--color-gold) 50%,
    var(--color-gold-dim) 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 0 30px var(--color-gold-glow);
  line-height: 1.2;
}

.subtitle {
  font-family: var(--font-title);
  color: var(--color-text-secondary);
  font-size: 0.875rem;
  font-weight: 400;
  letter-spacing: 0.02em;
}

/* ============================================================================
   Region Selector
   ============================================================================ */

.region-selector {
  display: flex;
  gap: var(--spacing-sm);
  margin-bottom: var(--spacing-lg);
  padding: var(--spacing-xs);
  background: rgba(17, 24, 32, 0.2);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.region-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: var(--spacing-2xs);
  padding: var(--spacing-sm) var(--spacing-xs);
  border: none;
  border-radius: var(--radius-md);
  background: transparent;
  color: var(--color-text-muted);
  font-family: inherit;
  font-size: 0.8125rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.region-btn:hover {
  background: var(--color-bg-hover);
  color: var(--color-text-secondary);
}

.region-btn:focus-visible {
  outline: 2px solid var(--color-gold);
  outline-offset: 2px;
}

.region-btn.active {
  background: linear-gradient(
    135deg,
    var(--color-gold) 0%,
    var(--color-gold-dim) 100%
  );
  color: var(--color-bg);
  font-weight: 600;
  box-shadow: var(--shadow-sm), 0 0 20px var(--color-gold-glow);
}

.region-flag {
  font-size: 1.25rem;
  line-height: 1;
}

.region-name {
  line-height: 1;
}

/* ============================================================================
   Price Card
   ============================================================================ */

.price-card {
  background: rgba(22, 29, 39, 0.2);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-xl);
  padding: var(--spacing-md) var(--spacing-lg);
  margin-bottom: var(--spacing-lg);
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

/* 상단 골드 라인 */
.price-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--color-gold-dim),
    var(--color-gold),
    var(--color-gold-dim),
    transparent
  );
}

/* 가격 섹션 */
.price-section {
  text-align: center;
  padding-bottom: var(--spacing-sm);
}

.price-label {
  display: block;
  font-family: var(--font-title);
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-gold);
  margin-bottom: var(--spacing-sm);
  text-shadow: 0 0 10px var(--color-gold-glow);
}

.price-value {
  font-family: var(--font-title);
  font-size: 2.75rem;
  font-weight: 700;
  color: var(--color-gold);
  text-shadow: 0 0 30px var(--color-gold-glow);
  min-height: 3rem;
  display: flex;
  align-items: baseline;
  justify-content: center;
  letter-spacing: 0.02em;
}

/* 골드 아이콘 */
.gold-icon {
  width: 24px;
  height: 24px;
  margin-left: 4px;
  vertical-align: baseline;
  position: relative;
  top: 2px;
}

.price-raw {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  font-family: var(--font-mono);
  margin-top: var(--spacing-xs);
}

/* 변화율 컨테이너 (5분, 1시간, 1일) */
.price-changes {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-xs);
  margin-top: var(--spacing-sm);
}

/* 개별 변화율 */
.change-item {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-sm);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  width: 100%;
}

.change-item.up {
  color: var(--color-success);
}

.change-item.down {
  color: var(--color-error);
}

.change-item.same {
  color: var(--color-text-muted);
}

.change-item .change-header {
  font-size: 0.625rem;
  opacity: 0.6;
  font-weight: 400;
  color: var(--color-text-muted);
  min-width: 3rem;
  text-align: right;
}

.change-item .change-value {
  display: flex;
  align-items: center;
  gap: 3px;
  font-weight: 600;
}

.change-item .change-arrow {
  font-size: 0.625rem;
}

.change-item .change-amount {
  font-weight: 700;
  font-size: 0.75rem;
}

.change-item .change-percent {
  font-size: 0.625rem;
  opacity: 0.8;
}

/* 구분선 */
.divider {
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--color-border),
    transparent
  );
  margin-bottom: var(--spacing-sm);
}

/* 로딩 스피너 */
.loading-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--color-border);
  border-top-color: var(--color-gold);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* 메타 정보 (개발자용, 최소화) */
.meta-line {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--spacing-sm);
  font-size: 0.625rem;
  font-family: var(--font-mono);
  color: var(--color-text-muted);
  opacity: 0.5;
  margin-top: var(--spacing-xs);
}

.meta-line span {
  white-space: nowrap;
}

#cache-status.cached-true {
  color: var(--color-success);
}

#cache-status.cached-false {
  color: var(--color-accent);
}

/* ============================================================================
   Refresh Button (카드 내 우측 상단)
   ============================================================================ */

.refresh-btn {
  position: absolute;
  top: var(--spacing-md);
  right: var(--spacing-md);
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  background: rgba(17, 24, 32, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--color-text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
  z-index: 10;
}

.refresh-btn:hover:not(:disabled) {
  background: var(--color-bg-hover);
  border-color: var(--color-gold-dim);
  color: var(--color-gold);
}

.refresh-btn:active:not(:disabled) {
  transform: scale(0.95);
}

.refresh-btn:focus-visible {
  outline: 2px solid var(--color-gold);
  outline-offset: 2px;
}

.refresh-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.refresh-icon {
  width: 18px;
  height: 18px;
  transition: transform var(--transition-normal);
}

.refresh-btn.loading .refresh-icon {
  animation: spin 1s linear infinite;
}

/* ============================================================================
   Keyboard Hint
   ============================================================================ */

.keyboard-hint {
  text-align: center;
  margin-top: var(--spacing-md);
  font-size: 0.75rem;
  color: var(--color-text-muted);
  opacity: 0.6;
}

kbd {
  display: inline-block;
  padding: 2px 6px;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  background: var(--color-bg-elevated);
  border: 1px solid var(--color-border);
  border-radius: 4px;
  box-shadow: var(--shadow-inner);
}

/* ============================================================================
   Footer
   ============================================================================ */

.footer {
  margin-top: auto;
  padding-top: var(--spacing-lg);
  text-align: center;
  font-size: 0.625rem;
  color: var(--color-text-muted);
  opacity: 0.5;
  line-height: 1.8;
}

.footer p {
  margin: 0;
}

.footer a {
  color: var(--color-text-muted);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer a:hover {
  color: var(--color-gold);
}

.footer .legal-notice {
  margin-top: var(--spacing-sm);
}

/* PC에서는 법적 고지 줄바꿈 제거 */
@media (min-width: 768px) {
  .footer .legal-notice br {
    display: none;
  }
  
  .footer .legal-notice {
    white-space: normal;
  }
}

/* ============================================================================
   Error State
   ============================================================================ */

.price-card.error .price-value {
  color: var(--color-error);
  font-size: 1rem;
  font-weight: 500;
}

/* ============================================================================
   Responsive
   ============================================================================ */

@media (min-width: 480px) {
  .container {
    padding: var(--spacing-xl);
  }

  .price-value {
    font-size: 3.25rem;
  }

  .logo {
    font-size: 2rem;
  }

  .region-btn {
    flex-direction: row;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm) var(--spacing-md);
  }
}

@media (min-width: 640px) {
  .price-card {
    padding: var(--spacing-lg) var(--spacing-xl);
  }
}

/* ============================================================================
   Reduced Motion
   ============================================================================ */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .glow {
    animation: none;
  }

  /* 토큰 애니메이션은 항상 유지 */
  .token-icon-wrapper {
    animation: token-float 2.5s ease-in-out infinite !important;
  }

  .token-light {
    animation: light-glow 3s ease-in-out infinite !important;
  }

  .token-coin {
    animation: token-shine 3s ease-in-out infinite !important;
  }
}

/* ============================================================================
   Regions Table (price-card 내부)
   ============================================================================ */

.table-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.regions-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-mono);
  font-size: 0.75rem;
}

.regions-table th,
.regions-table td {
  padding: var(--spacing-xs) var(--spacing-sm);
  text-align: right;
  white-space: nowrap;
}

.regions-table th {
  color: var(--color-text-muted);
  font-weight: 500;
  font-size: 0.625rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--color-border-subtle);
}

.regions-table th:first-child,
.regions-table td:first-child {
  text-align: left;
}

.regions-table tbody tr {
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.regions-table tbody tr:last-child {
  border-bottom: none;
}

.regions-table td {
  color: var(--color-text);
}

.regions-table .region-cell {
  font-weight: 600;
  color: var(--color-text-secondary);
}

.regions-table .price-cell {
  color: var(--color-gold);
  font-weight: 600;
}

.regions-table .change-up {
  color: var(--color-success);
}

.regions-table .change-down {
  color: var(--color-error);
}

.regions-table .change-same {
  color: var(--color-text-muted);
}

.regions-table .loading-row {
  text-align: center;
  color: var(--color-text-muted);
  padding: var(--spacing-md);
}

/* KR 행 강조 */
.regions-table .kr-row {
  background: rgba(255, 210, 63, 0.08);
}

.regions-table .kr-row .region-cell {
  color: var(--color-gold);
}

.regions-table .kr-row .price-cell {
  color: var(--color-gold-bright);
}

/* 비활성화된 리전 (회색 처리) */
.regions-table .disabled-row {
  opacity: 0.5;
  filter: grayscale(100%);
}

.regions-table .disabled-row .region-cell {
  color: var(--color-text-muted);
}

.regions-table .disabled-row .price-cell,
.regions-table .disabled-row td.disabled {
  color: var(--color-text-muted);
}

/* 모바일: 테이블 텍스트 크기 축소 */
@media (max-width: 480px) {
  .regions-table {
    font-size: 0.65rem;
  }

  .regions-table th {
    font-size: 0.55rem;
    padding: var(--spacing-2xs) var(--spacing-xs);
  }

  .regions-table td {
    padding: var(--spacing-2xs) var(--spacing-xs);
  }

  .region-cell .fi {
    font-size: 0.85rem;
  }
}

/* ============================================================================
   Chart Section (price-card 내부)
   ============================================================================ */

.chart-section {
  margin-top: 10px;
}

.chart-card {
  background: rgba(22, 29, 39, 0.2);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-xl);
  padding: var(--spacing-lg);
  margin-bottom: var(--spacing-lg);
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.chart-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--color-accent),
    var(--color-gold),
    var(--color-accent),
    transparent
  );
  opacity: 0.6;
}

.chart-controls {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  margin-bottom: var(--spacing-sm);
}

.chart-period {
  font-size: 0.625rem;
  color: var(--color-text-muted);
  font-family: var(--font-mono);
  opacity: 0.6;
  white-space: nowrap;
}

/* 차트 기간 선택 버튼 */
.chart-timeframe {
  flex: 1;
  display: flex;
  gap: var(--spacing-xs);
  padding: var(--spacing-2xs);
  background: rgba(17, 24, 32, 0.3);
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.timeframe-btn {
  flex: 1;
  padding: var(--spacing-xs) var(--spacing-sm);
  border: none;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--color-text-muted);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.timeframe-btn:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--color-text-secondary);
}

.timeframe-btn:focus-visible {
  outline: 2px solid var(--color-gold);
  outline-offset: 2px;
}

.timeframe-btn.active {
  background: linear-gradient(
    135deg,
    var(--color-gold-dim) 0%,
    var(--color-gold-dark) 100%
  );
  color: var(--color-text);
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(255, 210, 63, 0.2);
}

.chart-container {
  position: relative;
  height: 200px;
  width: 100%;
  touch-action: pan-y pinch-zoom; /* 모바일에서 가로 스와이프 시 페이지 스크롤 방지 */
}

.chart-container > div {
  width: 100% !important;
  height: 100% !important;
}

/* 차트 빈 상태 */
.chart-empty {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: var(--color-bg-card);
  border-radius: var(--radius-md);
}

.chart-empty.hidden {
  display: none;
}

.chart-empty-icon {
  font-size: 2.5rem;
  margin-bottom: var(--spacing-sm);
  opacity: 0.5;
}

.chart-empty p {
  color: var(--color-text-muted);
  font-size: 0.875rem;
}

.chart-empty-hint {
  font-size: 0.75rem !important;
  margin-top: var(--spacing-xs);
  opacity: 0.7;
}

/* 차트 반응형 */
@media (min-width: 480px) {
  .chart-container {
    height: 220px;
  }

  .chart-card {
    padding: var(--spacing-xl);
  }
}

@media (min-width: 640px) {
  .chart-container {
    height: 250px;
  }
}

/* ============================================================================
   Print
   ============================================================================ */

@media print {
  .background-effects,
  .refresh-btn,
  .keyboard-hint,
  .chart-card {
    display: none;
  }

  body {
    background: white;
    color: black;
  }

  .price-card {
    border: 1px solid #ccc;
    box-shadow: none;
  }
}

/* ============================================================================
   Language Toggle Button
   ============================================================================ */

.lang-toggle {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  right: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition-fast);
  z-index: 10;
}

.lang-toggle:hover {
  background: var(--color-bg-hover);
  border-color: var(--color-gold-dim);
}

.lang-toggle:active {
  transform: translateY(-50%) scale(0.95);
}

.lang-toggle .fi {
  font-size: 1.25rem;
  line-height: 1;
  border-radius: 2px;
}

/* 테이블 내 국기 아이콘 */
.region-cell .fi {
  font-size: 1rem;
  vertical-align: middle;
  margin-right: 0.25rem;
  border-radius: 2px;
}

/* 모바일 대응 - 우측 하단 고정 + 하이라이트 */
@media (max-width: 480px) {
  .lang-toggle {
    position: fixed;
    top: auto;
    bottom: var(--spacing-lg);
    right: var(--spacing-md);
    transform: none;
    width: 48px;
    height: 48px;
    background: var(--color-bg-card);
    border: 2px solid var(--color-gold-dim);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4), 0 0 12px var(--color-gold-glow);
    border-radius: var(--radius-md);
  }

  .lang-toggle:active {
    transform: scale(0.95);
  }

  .lang-toggle .fi {
    font-size: 1.5rem;
  }
}

