/* ==========================================================================
   Salaryman 3-Min Break (ขอพักสายตา 3 นาที)
   Mobile-First Eye-Care Comfort Stylesheet
   ออกแบบตามหลัก Ergonomics และโทนสีถนอมสายตาลดความล้าของกล้ามเนื้อตา
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. CSS Custom Properties (ตัวแปรโทนสีและขนาด)
   -------------------------------------------------------------------------- */
:root {
  /* โทนสีเขียวหมอกถนอมสายตา (Soft Mist Sage & Deep Forest Green) */
  --bg-primary: #E8F0EC;          /* สีพื้นหลังเขียวหมอกอ่อนถนอมสายตา */
  --bg-card: #F7FAF8;             /* สีพื้นหลังการ์ดหลัก */
  --bg-card-subtle: #DCE8E2;      /* สีพื้นหลังรอง หรือกรอบข้อความภาษาอังกฤษ */
  --bg-card-alt: #EFF5F2;         /* สีพื้นหลังรองการ์ดย่อย */
  
  /* ตัวหนังสือถนอมสายตา คมชัดผ่านเกณฑ์ WCAG AA (Contrast > 4.5:1) */
  --text-primary: #1C2320;        /* สีตัวอักษรหลัก Deep Charcoal */
  --text-secondary: #434D46;      /* สีตัวอักษรรอง Forest Charcoal (Contrast > 7:1) */
  --text-muted: #556159;          /* สีตัวอักษรข้อความคำแนะนำ (Contrast > 5.5:1) */
  
  /* สีเอกลักษณ์ของแอป */
  --primary-green: #2E5A44;       /* สีเขียวใบไม้เข้ม Deep Sage Green */
  --primary-green-hover: #244836;
  --primary-green-light: #E3ECE6; /* สีเขียวมิ้นต์อ่อนละมุน */
  --primary-green-border: #BCD1C4;
  
  /* สีส้มอบอุ่นสำหรับเกร็ดความรู้ (Warm Amber) */
  --accent-orange: #D97742;
  --accent-orange-light: #FDF1EA;
  --accent-orange-border: #F3CAAF;
  
  /* สีน้ำเงินอ่อนสำหรับป้ายภาษาอังกฤษ */
  --accent-blue: #3E6B89;
  --accent-blue-light: #EBF2F7;
  
  /* เส้นขอบและเงาแบบนุ่มนวล (Soft Shadows & Borders) */
  --border-color: #C8DBD1;
  --border-subtle: #D5E5DC;
  --shadow-sm: 0 2px 8px rgba(46, 90, 68, 0.05);
  --shadow-md: 0 6px 20px rgba(46, 90, 68, 0.08);
  --shadow-lg: 0 12px 32px rgba(46, 90, 68, 0.12);
  --shadow-sticky: 0 -4px 20px rgba(46, 90, 68, 0.08);

  /* รัศมีความโค้งมนของการ์ด (Card Rounded Corners) */
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;

  /* แบบอักษร (Fonts) */
  --font-heading: 'Prompt', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Sarabun', 'Prompt', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', -apple-system, BlinkMacSystemFont, monospace;

  /* การเปลี่ยนผ่านของสี (Transition) */
  --theme-transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

/* --------------------------------------------------------------------------
   2. Dark Eye-Care Mode (โหมดมืดถนอมสายตาสำหรับมนุษย์เงินเดือนทำโอที)
   โทนสีป่ากลางคืน (Dark Forest) ไม่มืดทึบ 100% เพื่อไม่ให้ค่า Contrast ตัดกันจนตาเมื่อย
   -------------------------------------------------------------------------- */
[data-theme="dark"] {
  --bg-primary: #151B18;
  --bg-card: #1D2521;
  --bg-card-subtle: #242E29;
  --bg-card-alt: #1A221E;

  --text-primary: #E5ECE8;
  --text-secondary: #ADC0B5;
  --text-muted: #95A59B;

  --primary-green: #51A578;
  --primary-green-hover: #63B588;
  --primary-green-light: #1D3126;
  --primary-green-border: #2C4B3A;

  --accent-orange: #EB8F59;
  --accent-orange-light: #332319;
  --accent-orange-border: #4D3325;

  --accent-blue: #61A4CC;
  --accent-blue-light: #182833;

  --border-color: #2B3730;
  --border-subtle: #242E28;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 6px 20px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.45);
  --shadow-sticky: 0 -4px 20px rgba(0, 0, 0, 0.4);
}

/* --------------------------------------------------------------------------
   3. รีเซ็ตและตั้งค่าพื้นฐาน (Base & Reset)
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  height: 100%;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  min-height: 100dvh;
  transition: var(--theme-transition);
  display: flex;
  justify-content: center;
  overflow-x: hidden;
}

/* --------------------------------------------------------------------------
   4. โครงสร้างคอนเทนเนอร์ Mobile-First (App Container)
   -------------------------------------------------------------------------- */
.app-container {
  width: 100%;
  max-width: 480px;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 16px 16px 110px 16px; /* เผื่อที่ด้านล่างสำหรับ Sticky Action Bar */
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
}

/* --------------------------------------------------------------------------
   5. ส่วนหัวแอปพลิเคชัน (Top Navigation Header)
   -------------------------------------------------------------------------- */
.top-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 4px 8px 4px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-icon {
  font-size: 1.75rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  background-color: var(--primary-green-light);
  border-radius: var(--radius-md);
  border: 1px solid var(--primary-green-border);
  transition: var(--theme-transition);
}

.brand-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
}

.brand-subtitle {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--primary-green);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.icon-btn {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.1rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.icon-btn:hover {
  background-color: var(--bg-card-subtle);
  transform: translateY(-1px);
}

.icon-btn:active {
  transform: scale(0.92);
}

/* --------------------------------------------------------------------------
   6. ส่วนนาฬิกาจับเวลา 3 นาที (Timer Section & Progress Bar)
   -------------------------------------------------------------------------- */
.timer-section {
  width: 100%;
}

.timer-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 16px 20px;
  box-shadow: var(--shadow-sm);
  transition: var(--theme-transition);
}

.timer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.timer-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background-color: var(--primary-green);
  border-radius: 50%;
  display: inline-block;
  opacity: 0.6;
  transition: opacity 0.3s ease;
}

.pulse-dot.running {
  opacity: 1;
  animation: pulseAnimation 1.6s infinite ease-in-out;
}

@keyframes pulseAnimation {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(46, 90, 68, 0.4); }
  50% { transform: scale(1.3); box-shadow: 0 0 0 6px rgba(46, 90, 68, 0); }
  100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(46, 90, 68, 0); }
}

.reset-btn {
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  font-size: 0.82rem;
  font-family: var(--font-body);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all 0.2s ease;
}

.reset-btn:hover {
  background-color: var(--bg-card-subtle);
  color: var(--text-primary);
  border-color: var(--text-muted);
}

.reset-btn:active {
  transform: scale(0.95);
}

.timer-display-wrapper {
  text-align: center;
  margin: 4px 0 14px 0;
}

.timer-clock {
  font-family: var(--font-mono);
  font-size: 3.25rem;
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1;
  color: var(--primary-green);
  font-variant-numeric: tabular-nums;
  text-shadow: 0 2px 4px rgba(46, 90, 68, 0.1);
  transition: color 0.3s ease;
}

.timer-hint {
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin-top: 6px;
}

/* หลอดเวลา Progress Bar นุ่มนวล */
.progress-track {
  width: 100%;
  height: 8px;
  background-color: var(--bg-card-subtle);
  border-radius: var(--radius-full);
  overflow: hidden;
  position: relative;
}

.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--primary-green) 0%, #5BB582 100%);
  border-radius: var(--radius-full);
  width: 0%;
  transition: width 1s linear;
}

/* --------------------------------------------------------------------------
   7. แบนเนอร์ฉลองเมื่อพักสายตาครบ 3 นาที (Completion Banner)
   -------------------------------------------------------------------------- */
.completion-banner {
  background-color: var(--primary-green-light);
  border: 1px solid var(--primary-green-border);
  border-radius: var(--radius-lg);
  padding: 16px 18px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  animation: slideDown 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  box-shadow: var(--shadow-md);
  position: relative;
}

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

.banner-icon {
  font-size: 2rem;
  line-height: 1;
  flex-shrink: 0;
}

.banner-content {
  flex-grow: 1;
}

.banner-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary-green);
  margin-bottom: 4px;
}

.banner-desc {
  font-size: 0.85rem;
  color: var(--text-primary);
  line-height: 1.45;
}

.close-banner-btn {
  background: transparent;
  border: none;
  font-size: 1rem;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
  line-height: 1;
  border-radius: 4px;
}

.close-banner-btn:hover {
  color: var(--text-primary);
}

/* --------------------------------------------------------------------------
   8. การ์ดแสดงเนื้อหาหลัก (Main Content Card)
   -------------------------------------------------------------------------- */
.content-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  min-height: 280px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  transition: var(--theme-transition);
}

/* --- สถานะเริ่มต้น (Welcome State) --- */
.welcome-state {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: fadeIn 0.4s ease;
}

.welcome-illustration {
  font-size: 2.75rem;
  line-height: 1;
  margin-bottom: 12px;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.05));
}

.welcome-heading {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
  line-height: 1.3;
}

.welcome-subheading {
  font-size: 0.92rem;
  color: var(--text-secondary);
  margin-bottom: 18px;
}

.eye-tip-box {
  background-color: var(--bg-card-alt);
  border: 1px dashed var(--border-color);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  text-align: left;
  margin-bottom: 16px;
  width: 100%;
}

.eye-tip-title {
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--primary-green);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
}

.eye-tip-desc {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.welcome-cta-text {
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.45;
}

/* --- สถานะกำลังโหลด (Skeleton Shimmer State) --- */
.loading-state {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 8px 0;
  animation: fadeIn 0.3s ease;
}

.shimmer {
  background: linear-gradient(
    90deg,
    var(--bg-card-subtle) 0%,
    var(--bg-primary) 50%,
    var(--bg-card-subtle) 100%
  );
  background-size: 200% 100%;
  animation: shimmerAnimation 1.5s infinite;
  border-radius: var(--radius-sm);
}

@keyframes shimmerAnimation {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.skeleton-badge {
  width: 140px;
  height: 28px;
  border-radius: var(--radius-full);
}

.skeleton-line {
  height: 20px;
}

.skeleton-line.large { width: 90%; }
.skeleton-line.medium { width: 75%; }
.skeleton-line.small { width: 50%; }

.skeleton-box {
  height: 80px;
  width: 100%;
  margin-top: 8px;
}

.loading-caption {
  font-size: 0.82rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: 10px;
}

/* --- สถานะแสดงเนื้อหา (Active Content State) --- */
.active-content {
  display: flex;
  flex-direction: column;
  gap: 16px;
  animation: fadeIn 0.35s ease-out;
}

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

.card-meta-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

/* ป้ายกำกับหมวดหมู่ (Badge) */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1;
  transition: all 0.2s ease;
}

.badge-joke {
  background-color: var(--primary-green-light);
  color: var(--primary-green);
  border: 1px solid var(--primary-green-border);
}

.badge-fact {
  background-color: var(--accent-orange-light);
  color: var(--accent-orange);
  border: 1px solid var(--accent-orange-border);
}

.badge-sub {
  font-size: 0.75rem;
  font-weight: 500;
  opacity: 0.85;
  margin-left: 2px;
}

.card-quick-actions {
  display: flex;
  gap: 6px;
}

.quick-btn {
  background-color: var(--bg-card-subtle);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-size: 0.82rem;
  font-family: var(--font-body);
  padding: 5px 10px;
  border-radius: var(--radius-full);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.2s ease;
}

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

.quick-btn:active {
  transform: scale(0.95);
}

/* กล่องเนื้อหาภาษาไทย */
.thai-content-box {
  margin: 4px 0;
}

.thai-main-text {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.55;
  color: var(--text-primary);
  letter-spacing: -0.2px;
}

/* สไตล์มุก 2 จังหวะ (Twopart) */
.twopart-box {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.role-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.setup-tag {
  background-color: var(--bg-card-subtle);
  color: var(--text-secondary);
}

.delivery-tag {
  background-color: var(--primary-green-light);
  color: var(--primary-green);
}

.punchline-container {
  margin-top: 4px;
}

.reveal-btn {
  width: 100%;
  background-color: var(--bg-card-alt);
  border: 1.5px dashed var(--primary-green);
  color: var(--primary-green);
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.reveal-btn:hover {
  background-color: var(--primary-green-light);
  transform: translateY(-1px);
}

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

.twopart-delivery {
  background-color: var(--primary-green-light);
  border: 1px solid var(--primary-green-border);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  animation: popIn 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes popIn {
  0% { opacity: 0; transform: scale(0.95); }
  100% { opacity: 1; transform: scale(1); }
}

.thai-punchline-text {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.5;
  color: var(--primary-green);
}

/* กล่องเนื้อหาต้นฉบับภาษาอังกฤษ (Details & Summary) */
.eng-details {
  background-color: var(--bg-card-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-top: 4px;
  transition: var(--theme-transition);
}

.eng-summary {
  list-style: none;
  padding: 10px 14px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
  background-color: var(--bg-card-alt);
  border-bottom: 1px solid transparent;
}

.eng-details[open] .eng-summary {
  border-bottom-color: var(--border-color);
}

.eng-summary::-webkit-details-marker {
  display: none;
}

.eng-summary-title {
  display: flex;
  align-items: center;
  gap: 6px;
}

.flag-icon {
  font-size: 0.95rem;
}

.eng-toggle-hint {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 400;
}

.eng-content-inner {
  padding: 12px 14px;
}

.eng-text {
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--text-secondary);
  font-style: italic;
}

.eng-source {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 6px;
  font-family: var(--font-mono);
}

/* --------------------------------------------------------------------------
   9. ส่วนสถิติน่ารักๆ (Stats Section)
   -------------------------------------------------------------------------- */
.stats-section {
  width: 100%;
}

.stats-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: var(--shadow-sm);
  transition: var(--theme-transition);
}

.stats-icon {
  font-size: 1.5rem;
  line-height: 1;
}

.stats-info {
  flex-grow: 1;
}

.stats-title {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.2;
}

.stats-number {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary-green);
  line-height: 1.2;
}

.stats-number .unit {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-left: 2px;
}

.stats-badge {
  font-size: 0.78rem;
  font-weight: 600;
  background-color: var(--primary-green-light);
  color: var(--primary-green);
  padding: 4px 8px;
  border-radius: var(--radius-full);
  white-space: nowrap;
}

/* --------------------------------------------------------------------------
   10. ส่วนปุ่มกดด้านล่าง ตรึงในโซนนิ้วโป้ง (Sticky Bottom Action Bar)
   -------------------------------------------------------------------------- */
.bottom-action-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  padding: 12px 16px;
  padding-bottom: max(16px, env(safe-area-inset-bottom));
  background: linear-gradient(
    180deg,
    rgba(232, 240, 236, 0) 0%,
    var(--bg-primary) 35%,
    var(--bg-primary) 100%
  );
  box-shadow: var(--shadow-sticky);
  z-index: 100;
  display: flex;
  justify-content: center;
  transition: background-color 0.3s ease;
}

[data-theme="dark"] .bottom-action-bar {
  background: linear-gradient(
    180deg,
    rgba(21, 27, 24, 0) 0%,
    var(--bg-primary) 35%,
    var(--bg-primary) 100%
  );
}

.main-btn {
  width: 100%;
  min-height: 58px;
  background-color: var(--primary-green);
  color: #FFFFFF;
  border: none;
  border-radius: var(--radius-lg);
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(46, 90, 68, 0.28);
  transition: transform 0.15s ease, background-color 0.2s ease, box-shadow 0.2s ease;
  position: relative;
  overflow: hidden;
}

.main-btn:hover {
  background-color: var(--primary-green-hover);
  box-shadow: 0 8px 24px rgba(46, 90, 68, 0.35);
  transform: translateY(-1px);
}

.main-btn:active {
  transform: scale(0.97);
  box-shadow: 0 2px 8px rgba(46, 90, 68, 0.2);
}

.btn-icon {
  font-size: 1.3rem;
  line-height: 1;
}

.btn-text {
  letter-spacing: -0.2px;
}

/* --------------------------------------------------------------------------
   11. กล่องแจ้งเตือน Toast แจ้งเตือนสั้นๆ
   -------------------------------------------------------------------------- */
.toast {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--text-primary);
  color: var(--bg-card);
  padding: 10px 18px;
  border-radius: var(--radius-full);
  font-size: 0.84rem;
  font-family: var(--font-heading);
  box-shadow: var(--shadow-lg);
  z-index: 999;
  white-space: nowrap;
  animation: toastFade 0.3s ease;
  pointer-events: none;
}

@keyframes toastFade {
  from { opacity: 0; transform: translate(-50%, -10px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

/* --------------------------------------------------------------------------
   12. คลาสช่วยเหลือ (Utility Classes)
   -------------------------------------------------------------------------- */
.hidden {
  display: none !important;
}

/* รองรับจอขนาดเล็กมากๆ (เช่น iPhone SE หรือจอแคบกว่า 360px) */
@media (max-width: 360px) {
  .timer-clock {
    font-size: 2.75rem;
  }
  .thai-main-text {
    font-size: 1.1rem;
  }
  .main-btn {
    font-size: 1.05rem;
    min-height: 54px;
  }
}
