/* ========================
   RESET & BASE
   ======================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

:root {
  --coral:       #FF6B6B;
  --coral-dark:  #E85555;
  --sky:         #4ECDC4;
  --sky-dark:    #38B2AA;
  --purple:      #9B59B6;
  --purple-dark: #7D3C98;
  --yellow:      #FFD93D;
  --green:       #6BCB77;
  --green-dark:  #52A85C;
  --bg:          #F7F5FF;
  --bg-card:     #FFFFFF;
  --text-dark:   #1A1035;
  --text-mid:    #5A4F7A;
  --text-muted:  #9A90B8;
  --border:      #E8E0FF;
  /* Safe area for notched phones */
  --safe-top:    env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

html {
  height: -webkit-fill-available;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Noto Sans KR', sans-serif;
  background: #C9B8FF;
  background-image:
    radial-gradient(ellipse at 10% 10%, rgba(255,107,107,0.35) 0%, transparent 55%),
    radial-gradient(ellipse at 90% 90%, rgba(78,205,196,0.35) 0%, transparent 55%),
    radial-gradient(ellipse at 50% 50%, rgba(155,89,182,0.2) 0%, transparent 60%);
  min-height: 100vh;
  min-height: -webkit-fill-available;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  overscroll-behavior: none;
}

button {
  font-family: 'Noto Sans KR', sans-serif;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-appearance: none;
  border: none;
  outline: none;
}

input, select {
  font-family: 'Noto Sans KR', sans-serif;
  font-size: 16px; /* Prevents iOS zoom on focus */
  -webkit-appearance: none;
  border-radius: 0;
  outline: none;
}

a {
  text-decoration: none;
  touch-action: manipulation;
}

img { max-width: 100%; }

/* ========================
   PHONE FRAME
   ======================== */
.phone-frame {
  width: 100%;
  max-width: 450px;
  min-height: 100vh;
  min-height: -webkit-fill-available;
  background: var(--bg);
  position: relative;
  overflow-x: hidden;
  box-shadow: 0 0 60px rgba(100, 60, 200, 0.3);
  /* Account for notch */
  padding-top: var(--safe-top);
  padding-bottom: var(--safe-bottom);
}

#app { width: 100%; min-height: 100vh; }

/* ========================
   PWA INSTALL BANNER
   ======================== */
.install-banner {
  background: linear-gradient(135deg, #9B59B6, #7D3C98);
  color: white;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  from { transform: translateY(-100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.install-banner-text {
  font-size: 13px;
  font-weight: 500;
  flex: 1;
  line-height: 1.4;
}

.install-banner-text strong {
  display: block;
  font-weight: 700;
  font-size: 14px;
}

.btn-install {
  background: white;
  color: var(--purple);
  border: none;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
}

.btn-install-close {
  background: none;
  border: none;
  color: rgba(255,255,255,0.7);
  font-size: 20px;
  line-height: 1;
  padding: 4px;
  flex-shrink: 0;
}

/* ========================
   PAGES
   ======================== */
.page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  padding: 20px 18px 32px;
}

/* ========================
   HOME PAGE
   ======================== */
.home-page {
  align-items: center;
  justify-content: flex-start;
  gap: 14px;
  padding-top: 16px;
}

/* Update badge */
.update-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: white;
  border: 2px solid var(--border);
  color: var(--purple);
  font-size: 12px;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 20px;
  box-shadow: 0 2px 12px rgba(155, 89, 182, 0.2);
}

/* Hero */
.home-hero { width: 100%; border-radius: 28px; overflow: hidden; }

.hero-gradient {
  background: linear-gradient(135deg, #FF6B6B 0%, #FFD93D 40%, #6BCB77 70%, #4ECDC4 100%);
  padding: 28px 24px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-gradient::before {
  content: '';
  position: absolute;
  top: -40px; right: -40px;
  width: 160px; height: 160px;
  background: rgba(255,255,255,0.15);
  border-radius: 50%;
}

.hero-gradient::after {
  content: '';
  position: absolute;
  bottom: -50px; left: -30px;
  width: 140px; height: 140px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
}

.hero-emojis {
  font-size: 32px;
  display: block;
  margin-bottom: 8px;
  position: relative;
  z-index: 1;
}

.hero-logo {
  font-family: 'Nunito', 'Noto Sans KR', sans-serif;
  font-size: 40px;
  font-weight: 900;
  color: white;
  text-shadow: 0 3px 12px rgba(0,0,0,0.15);
  display: block;
  margin-bottom: 4px;
  position: relative;
  z-index: 1;
  letter-spacing: -1px;
}

.hero-sub-title {
  font-size: 14px;
  font-weight: 700;
  color: rgba(255,255,255,0.92);
  margin-bottom: 4px;
  position: relative;
  z-index: 1;
}

.hero-desc {
  font-size: 12px;
  color: rgba(255,255,255,0.78);
  position: relative;
  z-index: 1;
}

/* Section label */
.section-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  align-self: flex-start;
}

/* Difficulty buttons */
.difficulty-buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

.diff-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  border: none;
  border-radius: 20px;
  font-size: 15px;
  font-weight: 700;
  color: white;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
  text-align: left;
  position: relative;
  overflow: hidden;
  /* Minimum touch target 48px */
  min-height: 64px;
  touch-action: manipulation;
  -webkit-user-select: none;
  user-select: none;
}

.diff-btn::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 80px; height: 100%;
  background: rgba(255,255,255,0.08);
  clip-path: ellipse(60px 100% at 100% 50%);
}

.diff-btn::after {
  content: '→';
  position: absolute;
  right: 20px;
  font-size: 18px;
  opacity: 0.7;
}

.diff-btn:active {
  transform: scale(0.97);
  box-shadow: 0 2px 10px rgba(0,0,0,0.12) !important;
}

.diff-btn .btn-emoji { font-size: 28px; flex-shrink: 0; }
.diff-btn .btn-label { display: flex; flex-direction: column; line-height: 1.4; }
.diff-btn .btn-main  { font-size: 15px; font-weight: 700; }
.diff-btn .btn-sub   { font-size: 12px; font-weight: 400; opacity: 0.88; margin-top: 1px; }

.diff-easy   { background: linear-gradient(135deg, #6BCB77, #52A85C); box-shadow: 0 4px 20px rgba(107, 203, 119, 0.45); }
.diff-medium { background: linear-gradient(135deg, #4ECDC4, #38B2AA); box-shadow: 0 4px 20px rgba(78, 205, 196, 0.45); }
.diff-hard   { background: linear-gradient(135deg, #9B59B6, #7D3C98); box-shadow: 0 4px 20px rgba(155, 89, 182, 0.4); }

/* Stats row */
.stats-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
  width: 100%;
}

.stat-card {
  background: white;
  border: 2px solid var(--border);
  border-radius: 16px;
  padding: 12px 8px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(155,89,182,0.06);
}

.stat-emoji { font-size: 20px; display: block; margin-bottom: 4px; }
.stat-num   { font-size: 18px; font-weight: 900; color: var(--purple); display: block; }
.stat-label { font-size: 10px; color: var(--text-muted); font-weight: 500; }

/* Fun box */
.fun-box {
  background: white;
  border: 2px solid var(--border);
  border-radius: 20px;
  padding: 14px 18px;
  width: 100%;
  box-shadow: 0 2px 14px rgba(155,89,182,0.08);
}

.fun-box-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 1px;
  margin-bottom: 5px;
}

.fun-quote { font-size: 14px; font-weight: 500; color: var(--text-dark); line-height: 1.7; }

/* Share button */
.share-row { width: 100%; }

.btn-share {
  width: 100%;
  padding: 14px;
  border: 2px solid var(--border);
  border-radius: 18px;
  background: white;
  color: var(--purple);
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 2px 10px rgba(155,89,182,0.08);
  touch-action: manipulation;
}

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

/* Footer */
.site-footer {
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  text-align: center;
}

.footer-brand {
  font-family: 'Nunito', sans-serif;
  font-size: 15px;
  font-weight: 900;
  color: var(--purple);
  margin-bottom: 8px;
  display: block;
}

.footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 8px;
}

.footer-links a { font-size: 12px; color: var(--text-muted); transition: color 0.2s; }
.footer-links a:hover { color: var(--purple); }

.footer-copy { font-size: 11px; color: var(--text-muted); line-height: 1.7; }

/* ========================
   QUIZ PAGE
   ======================== */
.quiz-page { gap: 16px; }

.quiz-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 44px;
}

.back-btn {
  background: white;
  border: 2px solid var(--border);
  border-radius: 20px;
  font-size: 13px;
  color: var(--text-mid);
  padding: 8px 14px;
  font-weight: 600;
  min-width: 80px;
  min-height: 44px;
  touch-action: manipulation;
}

.diff-badge {
  font-size: 12px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 20px;
  color: white;
  min-height: 34px;
  display: flex;
  align-items: center;
}
.diff-badge-easy   { background: var(--green); }
.diff-badge-medium { background: var(--sky); }
.diff-badge-hard   { background: var(--purple); }

/* Card flip */
.card-wrapper {
  flex: 1;
  perspective: 1400px;
  min-height: 240px;
  max-height: 360px;
  position: relative;
}

.card {
  width: 100%;
  height: 100%;
  min-height: 240px;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.55s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.card-face {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px 24px;
}

.card-front {
  background: white;
  border: 2px solid var(--border);
  box-shadow: 0 6px 32px rgba(155, 89, 182, 0.12);
}

.card-back {
  background: linear-gradient(145deg, #F0EBFF, #E8FFFD);
  border: 2px solid #D4C0FF;
  box-shadow: 0 6px 32px rgba(155, 89, 182, 0.2);
  transform: rotateY(180deg);
}

.card-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.card-question {
  font-size: 21px;
  font-weight: 700;
  color: var(--text-dark);
  text-align: center;
  line-height: 1.6;
  word-break: keep-all;
}

.card-answer {
  font-size: 42px;
  font-weight: 900;
  color: var(--purple);
  text-align: center;
  line-height: 1.2;
  letter-spacing: -1px;
}

.card-fun-msg { font-size: 13px; color: var(--text-mid); margin-top: 12px; text-align: center; }

.quiz-actions { padding-bottom: 4px; }

.btn-reveal {
  width: 100%;
  padding: 19px;
  border-radius: 20px;
  background: linear-gradient(135deg, #FF6B6B, #FF4444);
  color: white;
  font-size: 16px;
  font-weight: 700;
  box-shadow: 0 4px 20px rgba(255, 107, 107, 0.45);
  transition: transform 0.12s;
  min-height: 58px;
  touch-action: manipulation;
}
.btn-reveal:active { transform: scale(0.97); }

.btn-next {
  width: 100%;
  padding: 19px;
  border-radius: 20px;
  background: linear-gradient(135deg, #9B59B6, #7D3C98);
  color: white;
  font-size: 16px;
  font-weight: 700;
  box-shadow: 0 4px 20px rgba(155, 89, 182, 0.4);
  transition: transform 0.12s;
  min-height: 58px;
  touch-action: manipulation;
}
.btn-next:active { transform: scale(0.97); }

/* ========================
   ADMIN PAGE
   ======================== */
.admin-page { background: #F0EBFF; gap: 14px; }

.admin-login-wrap { flex: 1; display: flex; align-items: center; justify-content: center; }

.admin-login-card {
  background: white;
  border: 2px solid var(--border);
  border-radius: 28px;
  padding: 36px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: 0 4px 24px rgba(155,89,182,0.12);
  width: 100%;
}

.admin-lock-icon { font-size: 44px; text-align: center; }
.admin-login-card h2 { font-size: 20px; font-weight: 700; color: var(--text-dark); text-align: center; }

.error-msg {
  background: #FFF0F0;
  border: 1px solid #FFD0D0;
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 13px;
  color: #C44;
  text-align: center;
}

.pw-input, .text-input, .diff-select {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid var(--border);
  border-radius: 14px;
  font-size: 16px;
  outline: none;
  transition: border-color 0.2s;
  background: white;
  color: var(--text-dark);
  min-height: 52px;
}
.pw-input:focus, .text-input:focus, .diff-select:focus { border-color: var(--purple); }

.btn-login, .btn-add {
  width: 100%;
  padding: 16px;
  border-radius: 16px;
  background: linear-gradient(135deg, #9B59B6, #7D3C98);
  color: white;
  font-size: 16px;
  font-weight: 700;
  box-shadow: 0 4px 16px rgba(155,89,182,0.35);
  transition: transform 0.12s;
  min-height: 54px;
}
.btn-login:active, .btn-add:active { transform: scale(0.97); }

.btn-ghost {
  background: none;
  color: var(--text-muted);
  font-size: 13px;
  padding: 10px 0;
  text-align: center;
  width: 100%;
  min-height: 44px;
}

.admin-header { display: flex; align-items: center; justify-content: space-between; }
.admin-header h2 { font-size: 18px; font-weight: 700; color: var(--text-dark); }

.btn-logout {
  border: 1.5px solid #DDD;
  border-radius: 10px;
  padding: 8px 14px;
  font-size: 13px;
  color: #999;
  background: none;
  min-height: 40px;
}

.admin-form-card {
  background: white;
  border: 2px solid var(--border);
  border-radius: 20px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: 0 2px 14px rgba(155,89,182,0.07);
}

.admin-form-card h3, .quiz-list-section h3 { font-size: 14px; font-weight: 700; color: var(--text-mid); }
.quiz-list-section { display: flex; flex-direction: column; }
.quiz-list-section h3 { margin-bottom: 8px; }

.quiz-row {
  background: white;
  border: 1.5px solid var(--border);
  border-radius: 14px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.quiz-row-diff { font-size: 11px; font-weight: 700; white-space: nowrap; min-width: 54px; color: #999; }
.quiz-row-q { flex: 1; font-size: 13px; color: #555; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.quiz-row-a { font-size: 13px; font-weight: 700; color: var(--purple); white-space: nowrap; min-width: 36px; text-align: right; }

.btn-delete {
  border: 1.5px solid #FFCCCC;
  border-radius: 8px;
  padding: 6px 10px;
  color: #E07070;
  font-size: 12px;
  flex-shrink: 0;
  background: none;
  min-height: 36px;
}
.btn-delete:active { background: #FFF0F0; }

.empty-list { font-size: 14px; color: #bbb; text-align: center; padding: 24px; background: white; border-radius: 14px; }

/* ========================
   ABOUT & PRIVACY PAGES
   ======================== */
.info-page { gap: 20px; padding-top: 24px; }

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

.info-page-header button {
  background: none;
  font-size: 14px;
  color: var(--text-muted);
  padding: 8px 0;
  min-height: 44px;
}

.info-page-header h1 { font-size: 18px; font-weight: 700; color: var(--text-dark); }

.info-card {
  background: white;
  border: 2px solid var(--border);
  border-radius: 20px;
  padding: 24px 20px;
  box-shadow: 0 2px 14px rgba(155,89,182,0.07);
}

.info-card h2 {
  font-size: 15px;
  font-weight: 700;
  color: var(--purple);
  margin-bottom: 8px;
  margin-top: 18px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border);
}
.info-card h2:first-of-type { margin-top: 0; }
.info-card p { font-size: 13px; color: #555; line-height: 1.8; margin-bottom: 8px; }
.info-card a { color: var(--purple); }
.info-card ul { padding-left: 16px; font-size: 13px; color: #555; line-height: 1.8; }

.info-highlight {
  background: #F4EEFF;
  border: 2px solid var(--border);
  border-radius: 14px;
  padding: 14px 16px;
  font-size: 14px;
  color: var(--text-mid);
  font-weight: 500;
  line-height: 1.7;
}

/* Empty state */
.empty-state {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  text-align: center;
}

.empty-state p { font-size: 15px; color: #999; }

.btn-primary {
  padding: 14px 32px;
  border-radius: 16px;
  background: linear-gradient(135deg, #9B59B6, #7D3C98);
  color: white;
  font-size: 15px;
  font-weight: 700;
  box-shadow: 0 4px 16px rgba(155,89,182,0.3);
  min-height: 52px;
}

/* ========================
   SHARE BIG BUTTON
   ======================== */
.btn-share-big {
  width: 100%;
  padding: 16px;
  border: 2.5px solid var(--border);
  border-radius: 18px;
  background: white;
  color: var(--purple);
  font-size: 15px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 2px 10px rgba(155,89,182,0.08);
  touch-action: manipulation;
  min-height: 54px;
  transition: transform 0.12s, box-shadow 0.12s;
}
.btn-share-big:active {
  transform: scale(0.97);
  box-shadow: 0 1px 6px rgba(155,89,182,0.12);
}

/* ========================
   QUIZ SHARE + CARD HINT
   ======================== */
.card-tap-hint {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 16px;
  opacity: 0.8;
}
.card.flipped .card-tap-hint { display: none; }

.btn-quiz-share {
  width: 100%;
  padding: 14px;
  border: 2px solid var(--border);
  border-radius: 16px;
  background: white;
  color: var(--text-mid);
  font-size: 14px;
  font-weight: 600;
  margin-top: 10px;
  touch-action: manipulation;
  min-height: 50px;
  transition: transform 0.1s;
}
.btn-quiz-share:active { transform: scale(0.97); }

/* ========================
   SNS SHARE MODAL (bottom sheet)
   ======================== */
.share-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0,0,0,0);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  transition: background 0.25s;
}
.share-overlay--visible { background: rgba(0,0,0,0.45); }

.share-sheet {
  background: white;
  border-radius: 28px 28px 0 0;
  padding: 12px 20px 32px;
  width: 100%;
  max-width: 450px;
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.4,0,0.2,1);
  box-shadow: 0 -8px 40px rgba(0,0,0,0.18);
  padding-bottom: calc(32px + env(safe-area-inset-bottom, 0px));
}
.share-overlay--visible .share-sheet { transform: translateY(0); }

.share-sheet-handle {
  width: 40px;
  height: 4px;
  background: #E0D8F0;
  border-radius: 2px;
  margin: 0 auto 16px;
}

.share-sheet-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-dark);
  text-align: center;
  margin-bottom: 20px;
}

.share-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px 8px;
  margin-bottom: 16px;
}

.share-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  background: none;
  border: none;
  cursor: pointer;
  text-decoration: none;
  font-family: 'Noto Sans KR', sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-dark);
  padding: 8px 4px;
  border-radius: 14px;
  transition: transform 0.12s, background 0.12s;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  min-height: 80px;
  justify-content: center;
}
.share-item:active { transform: scale(0.93); background: #F4F0FF; }

.share-icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  color: white;
  box-shadow: 0 3px 12px rgba(0,0,0,0.15);
}

.share-close-btn {
  width: 100%;
  padding: 15px;
  border: 2px solid var(--border);
  border-radius: 16px;
  background: #F7F5FF;
  color: var(--text-mid);
  font-size: 15px;
  font-weight: 700;
  font-family: 'Noto Sans KR', sans-serif;
  touch-action: manipulation;
  min-height: 52px;
}
.share-close-btn:active { background: #EDE8FF; }

/* ========================
   TOAST NOTIFICATION
   ======================== */
.fun-toast {
  position: fixed;
  bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: #1A1035;
  color: white;
  padding: 12px 20px;
  border-radius: 24px;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  z-index: 2000;
  opacity: 0;
  transition: opacity 0.25s, transform 0.25s;
  box-shadow: 0 4px 20px rgba(0,0,0,0.25);
  max-width: calc(100vw - 40px);
  text-align: center;
  white-space: normal;
}
.fun-toast--visible { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ========================
   ADMIN SYNC BUTTON
   ======================== */
.btn-sync {
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 12px;
  color: var(--purple);
  background: white;
  font-weight: 600;
  font-family: 'Noto Sans KR', sans-serif;
  touch-action: manipulation;
  min-height: 40px;
}
.btn-sync:disabled { opacity: 0.5; }

/* ========================
   RESPONSIVE
   ======================== */
@media (max-width: 380px) {
  .hero-logo { font-size: 34px; }
  .card-question { font-size: 19px; }
  .card-answer { font-size: 36px; }
  .diff-btn { padding: 15px 16px; }
}

@media (prefers-color-scheme: dark) {
  /* Respect system dark mode only for non-critical elements */
  .update-badge { border-color: rgba(255,255,255,0.2); }
}

/* Landscape mode - compact */
@media (max-height: 600px) and (orientation: landscape) {
  .home-hero .hero-gradient { padding: 16px 24px; }
  .hero-emojis { font-size: 24px; margin-bottom: 4px; }
  .hero-logo { font-size: 28px; }
  .home-page { gap: 10px; }
  .diff-btn { min-height: 52px; padding: 12px 20px; }
}
