/* =========================================================
   期末生存指南：逆向答题 (Reverse Exam Roguelike)
   Cross-Platform Responsive Stylesheet (PC, Tablet, Mobile)
   ========================================================= */

:root {
  --bg-desk: #0b1120;
  --bg-desk-radial: radial-gradient(circle at 50% 15%, #1e293b 0%, #0b1120 100%);
  --bg-paper: #fdfbf7;
  --paper-line: #e2e8f0;
  --text-primary: #1e293b;
  --text-muted: #64748b;
  --accent-gold: #f59e0b;
  --accent-blue: #2563eb;
  --accent-green: #10b981;
  --accent-red: #ef4444;
  --accent-purple: #8b5cf6;
  
  --card-score-bg: #eff6ff;
  --card-score-border: #3b82f6;
  --card-reverse-bg: #fff1f2;
  --card-reverse-border: #f43f5e;
  --card-chill-bg: #ecfdf5;
  --card-chill-border: #10b981;
  --card-strategy-bg: #faf5ff;
  --card-strategy-border: #a855f7;
  
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 10px -1px rgba(0, 0, 0, 0.12), 0 2px 5px -1px rgba(0, 0, 0, 0.07);
  --shadow-lg: 0 14px 28px -4px rgba(0, 0, 0, 0.22), 0 6px 12px -2px rgba(0, 0, 0, 0.12);
  --shadow-gold: 0 0 20px rgba(245, 158, 11, 0.55);
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none;
}

html, body {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", Roboto, sans-serif;
  background-color: var(--bg-desk);
  background-image: var(--bg-desk-radial);
  color: var(--text-primary);
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  justify-content: center;
  align-items: stretch;
  overflow-x: hidden;
}

/* Allow text selection in readable reference areas */
.modal-body,
.rule-section,
.guide-content,
.battle-log-ticker,
.card-compendium-desc,
.char-desc,
.settlement-desc,
code,
pre {
  -webkit-user-select: text;
  -moz-user-select: text;
  user-select: text;
}

/* =========================================================
   App Shell - Responsive Container (PC vs Tablet vs Mobile)
   ========================================================= */
#app-container {
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  background: #f8fafc;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all 0.3s ease;
}

/* Desktop & Wide Screens: Expands smoothly, not a cramped mobile strip! */
@media (min-width: 1025px) {
  #app-container {
    max-width: 1220px;
    margin: 20px auto;
    min-height: calc(100vh - 40px);
    border-radius: var(--radius-lg);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.1);
    overflow: hidden;
  }
}

/* Tablet Screens (769px - 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
  #app-container {
    max-width: 920px;
    margin: 12px auto;
    min-height: calc(100vh - 24px);
    border-radius: var(--radius-md);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.45);
    overflow: hidden;
  }
}

/* Mobile Screens (<= 768px): Full screen view */
@media (max-width: 768px) {
  #app-container {
    max-width: 100%;
    margin: 0;
    min-height: 100vh;
    min-height: 100dvh;
    border-radius: 0;
    box-shadow: none;
    padding-left: env(safe-area-inset-left, 0px);
    padding-right: env(safe-area-inset-right, 0px);
  }
}

/* =========================================================
   Top Global Header Bar
   ========================================================= */
.top-bar {
  background: #1e293b;
  color: #fff;
  padding: calc(10px + env(safe-area-inset-top, 0px)) 16px 10px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  z-index: 50;
  box-shadow: var(--shadow-md);
}

@media (min-width: 768px) {
  .top-bar {
    padding: calc(12px + env(safe-area-inset-top, 0px)) 28px 12px 28px;
    font-size: 14px;
  }
}

.top-bar-stats {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

@media (min-width: 768px) {
  .top-bar-stats {
    gap: 18px;
  }
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.08);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-san-bar {
  width: 70px;
  height: 8px;
  background: #334155;
  border-radius: 4px;
  overflow: hidden;
  display: inline-block;
  margin-left: 4px;
}

@media (min-width: 768px) {
  .stat-san-bar {
    width: 95px;
    height: 9px;
  }
}

.stat-san-fill {
  height: 100%;
  background: var(--accent-green);
  transition: width 0.3s ease, background-color 0.3s ease;
}

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

.icon-btn {
  background: #334155;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 5px;
  font-weight: 600;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.icon-btn:hover {
  background: #475569;
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-1px);
}

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

/* Mobile Top-Bar Refined Layout (<= 640px) */
@media (max-width: 640px) {
  .top-bar {
    flex-direction: column;
    align-items: stretch;
    padding: calc(8px + env(safe-area-inset-top, 0px)) 10px 8px 10px;
    gap: 8px;
  }
  .top-bar-stats {
    display: flex;
    justify-content: space-between;
    gap: 4px;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .top-bar-stats::-webkit-scrollbar {
    display: none;
  }
  .stat-item {
    font-size: 11px;
    padding: 3px 6px;
    white-space: nowrap;
    gap: 3px;
    flex-shrink: 0;
  }
  .stat-san-bar {
    width: 44px;
    height: 7px;
  }
  .top-bar-actions {
    display: flex;
    justify-content: flex-end;
    gap: 6px;
    width: 100%;
  }
  .icon-btn {
    padding: 5px 8px;
    font-size: 11.5px;
    gap: 3px;
  }
}

/* =========================================================
   Relics Bar
   ========================================================= */
.relics-bar {
  background: #0f172a;
  padding: 8px 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  overflow-x: auto;
  border-bottom: 1px solid #334155;
  scrollbar-width: thin;
  scrollbar-color: #475569 transparent;
  -webkit-overflow-scrolling: touch;
}

@media (min-width: 768px) {
  .relics-bar {
    padding: 10px 28px;
    flex-wrap: wrap;
    overflow-x: visible;
  }
}

.relic-pill {
  background: #1e293b;
  color: #e2e8f0;
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  border: 1px solid #475569;
  cursor: pointer;
  transition: all 0.2s ease;
}

.relic-pill:hover {
  transform: translateY(-2px);
  border-color: var(--accent-gold);
  background: #334155;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

/* =========================================================
   Screen Switcher System
   ========================================================= */
.screen {
  flex: 1;
  display: none;
  flex-direction: column;
  overflow-y: auto;
  position: relative;
  scrollbar-width: thin;
  scrollbar-color: #cbd5e1 transparent;
  -webkit-overflow-scrolling: touch;
}

.screen.active {
  display: flex;
}

/* Buttons */
.btn {
  padding: 11px 20px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow-sm);
}

@media (min-width: 768px) {
  .btn {
    padding: 12px 24px;
    font-size: 15px;
  }
}

.btn:active {
  transform: scale(0.97);
}

.btn-primary {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #fff;
}
.btn-primary:hover {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.4);
}

.btn-gold {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #fff;
}
.btn-gold:hover {
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.4);
}

.btn-success {
  background: linear-gradient(135deg, #10b981, #059669);
  color: #fff;
}
.btn-success:hover {
  background: linear-gradient(135deg, #34d399, #10b981);
}

.btn-danger {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: #fff;
}

.btn-outline {
  background: #fff;
  border: 1.5px solid #cbd5e1;
  color: #475569;
}
.btn-outline:hover {
  background: #f1f5f9;
  border-color: #94a3b8;
}

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

/* =========================================================
   Screen 1: START SCREEN (Responsive Hero)
   ========================================================= */
.start-screen-hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 40px 24px;
  text-align: center;
  background: linear-gradient(180deg, #fefae0 0%, #faedcd 100%);
  position: relative;
}

.game-logo-badge {
  font-size: 52px;
  margin-bottom: 12px;
  animation: floatEmoji 3s ease-in-out infinite;
}

@media (min-width: 768px) {
  .game-logo-badge {
    font-size: 64px;
  }
}

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

.game-title {
  font-size: 26px;
  font-weight: 800;
  color: #78350f;
  margin-bottom: 6px;
  letter-spacing: -0.5px;
}

@media (min-width: 768px) {
  .game-title {
    font-size: 36px;
  }
}

.game-subtitle {
  font-size: 13px;
  font-weight: 700;
  color: #b45309;
  letter-spacing: 2px;
  margin-bottom: 20px;
  text-transform: uppercase;
}

@media (min-width: 768px) {
  .game-subtitle {
    font-size: 15px;
  }
}

.game-slogan-box {
  background: rgba(255, 255, 255, 0.9);
  border: 2px dashed #d97706;
  border-radius: var(--radius-md);
  padding: 14px 24px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
  max-width: 620px;
}

.slogan-highlight {
  color: #dc2626;
  font-weight: 800;
  font-size: 17px;
}

@media (min-width: 768px) {
  .slogan-highlight {
    font-size: 20px;
  }
}

.slogan-sub {
  color: #4b5563;
  font-size: 13px;
  margin-top: 6px;
}

/* Feature Showcase Grid on Start Screen */
.features-showcase-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  width: 100%;
  max-width: 820px;
  margin-bottom: 28px;
}

@media (min-width: 768px) {
  .features-showcase-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
  }
}

.feature-item {
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid #e5e7eb;
  border-radius: var(--radius-md);
  padding: 14px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s;
}

.feature-item:hover {
  transform: translateY(-3px);
  background: #fff;
  box-shadow: var(--shadow-md);
}

.feature-icon {
  font-size: 26px;
}

.feature-title {
  font-size: 13px;
  font-weight: 700;
  color: #1e293b;
}

.feature-desc {
  font-size: 11px;
  color: #64748b;
  line-height: 1.35;
}

.start-btn-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  max-width: 340px;
}

@media (min-width: 768px) {
  .start-btn-group {
    flex-direction: row;
    max-width: 440px;
    gap: 16px;
  }
  .start-btn-group .btn {
    flex: 1;
  }
}

/* =========================================================
   Screen 2: CHARACTER SELECTION (3 Columns on Desktop)
   ========================================================= */
.char-select-container {
  padding: 18px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

@media (min-width: 768px) {
  .char-select-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    padding: 30px 36px;
    align-items: stretch;
    max-width: 1150px;
    margin: 0 auto;
    width: 100%;
  }
}

.char-card {
  background: #fff;
  border-radius: var(--radius-md);
  border: 2px solid #e2e8f0;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow-sm);
  position: relative;
}

.char-card:hover {
  transform: translateY(-4px);
  border-color: #93c5fd;
  box-shadow: var(--shadow-md);
}

.char-card.selected {
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.25), var(--shadow-md);
  background: #fbfdff;
  transform: translateY(-4px);
}

.char-card.selected::after {
  content: "✓ 已选择";
  position: absolute;
  top: 14px;
  right: 14px;
  background: var(--accent-blue);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 12px;
}

.char-header {
  display: flex;
  align-items: center;
  gap: 14px;
}

.char-avatar {
  font-size: 34px;
  width: 54px;
  height: 54px;
  background: #f1f5f9;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.char-name {
  font-size: 19px;
  font-weight: 800;
  color: #0f172a;
}

.char-badge {
  font-size: 11px;
  background: #dbeafe;
  color: #1e40af;
  padding: 2px 8px;
  border-radius: 10px;
  font-weight: 700;
  margin-left: 6px;
}

.char-desc {
  font-size: 13px;
  color: #475569;
  line-height: 1.5;
  flex: 1;
}

.char-trait {
  font-size: 12px;
  background: #fef3c7;
  color: #92400e;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  line-height: 1.4;
  border: 1px solid #fde68a;
}

.char-select-actions {
  padding: 16px 20px;
  background: #fff;
  border-top: 1px solid #e2e8f0;
  display: flex;
  gap: 12px;
}

@media (min-width: 768px) {
  .char-select-actions {
    padding: 18px 36px;
    max-width: 1150px;
    margin: 0 auto;
    width: 100%;
  }
}

/* =========================================================
   Screen 3: CAMPUS DAYTIME HUB (Balanced Layout on Desktop)
   ========================================================= */
.campus-header {
  background: #fff;
  padding: 14px 20px;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

@media (min-width: 768px) {
  .campus-header {
    padding: 16px 32px;
  }
}

.campus-today-subject {
  display: flex;
  flex-direction: column;
}

.sub-label {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 600;
}

.sub-title {
  font-size: 18px;
  font-weight: 800;
  color: #1e293b;
}

.ap-indicator {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #fef3c7;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 700;
  color: #92400e;
  border: 1px solid #fde68a;
}

.campus-content {
  padding: 18px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

@media (min-width: 768px) {
  .campus-content {
    padding: 24px 32px;
  }
}

/* Campus Layout Grid: 2 Columns on Desktop */
.campus-layout-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

@media (min-width: 768px) {
  .campus-layout-grid {
    display: grid;
    grid-template-columns: 1.25fr 1fr;
    gap: 24px;
    align-items: stretch;
  }
}

.action-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.action-card {
  background: #fff;
  border: 1.5px solid #e2e8f0;
  border-radius: var(--radius-md);
  padding: 16px 14px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

.action-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #3b82f6, #6366f1);
  opacity: 0.85;
  transition: all 0.25s ease;
}

.action-card:hover {
  transform: translateY(-3px);
  border-color: #cbd5e1;
  box-shadow: 0 10px 20px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.action-card:hover::before {
  height: 5px;
  opacity: 1;
}

#btn-action-library::before {
  background: linear-gradient(90deg, #3b82f6, #0284c7);
}

#btn-action-cafe::before {
  background: linear-gradient(90deg, #10b981, #059669);
}

#btn-action-shop::before {
  background: linear-gradient(90deg, #f59e0b, #d97706);
}

#btn-action-flea::before {
  background: linear-gradient(90deg, #8b5cf6, #7c3aed);
}

#btn-action-event::before {
  background: linear-gradient(90deg, #ec4899, #f43f5e);
}

.action-card:active {
  transform: scale(0.97);
}

.action-icon {
  font-size: 32px;
}

.action-title {
  font-size: 16px;
  font-weight: 700;
  color: #0f172a;
}

.action-desc {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.4;
}

.action-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 10px;
  padding: 2px 7px;
  border-radius: 10px;
  background: #e2e8f0;
  color: #475569;
  font-weight: 700;
}

/* Exam Preview Banner */
.campus-exam-banner {
  background: linear-gradient(135deg, #1e293b, #0f172a);
  color: #fff;
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  box-shadow: var(--shadow-md);
}

.exam-banner-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.exam-banner-title {
  font-size: 18px;
  font-weight: 800;
  color: #f8fafc;
}

.exam-banner-diff {
  color: #fbbf24;
  font-size: 15px;
  font-weight: 700;
}

.exam-banner-desc {
  font-size: 13px;
  color: #94a3b8;
  line-height: 1.5;
}

.exam-banner-tips {
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  font-size: 12px;
  color: #cbd5e1;
  line-height: 1.4;
}

/* =========================================================
   Screen 4: NIGHT EXAM BATTLE ARENA (Desktop 2-Column System)
   ========================================================= */
.exam-paper-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: var(--bg-paper);
  position: relative;
  border-top: 4px solid #dc2626;
}

.exam-top-info {
  background: #fff;
  padding: 12px 18px;
  border-bottom: 1px dashed #cbd5e1;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

@media (min-width: 768px) {
  .exam-top-info {
    padding: 14px 28px;
  }
}

/* Battle Arena 2-Column Responsive Layout */
.exam-battle-arena {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 10px 14px;
}

@media (min-width: 768px) {
  .exam-battle-arena {
    display: grid;
    grid-template-columns: 1fr 1.35fr;
    gap: 22px;
    padding: 18px 28px;
    align-items: stretch;
  }
}

.arena-left-pane {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.arena-right-pane {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Teacher Intent Box */
.teacher-intent-box {
  background: #fff;
  border: 1.5px solid #e2e8f0;
  border-radius: var(--radius-md);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 13px;
  box-shadow: var(--shadow-sm);
}

.teacher-avatar {
  font-size: 32px;
  width: 48px;
  height: 48px;
  background: #f1f5f9;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.intent-details {
  flex: 1;
}

.intent-title {
  font-weight: 800;
  color: #b91c1c;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
}

.intent-desc {
  color: #475569;
  font-size: 12px;
  margin-top: 2px;
}

/* Battle Log Card */
.battle-log-card {
  background: #fff;
  border: 1.5px solid #e2e8f0;
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  flex: 1;
}

.battle-log-header {
  background: #f8fafc;
  padding: 6px 12px;
  font-size: 11px;
  font-weight: 700;
  color: #64748b;
  border-bottom: 1px solid #e2e8f0;
}

.battle-log-ticker {
  background: #fdfbf7;
  padding: 8px 12px;
  font-size: 12px;
  color: #475569;
  min-height: 48px;
  max-height: 120px;
  overflow-y: auto;
  line-height: 1.5;
  scrollbar-width: thin;
  scrollbar-color: #cbd5e1 transparent;
  -webkit-overflow-scrolling: touch;
}

@media (min-width: 768px) {
  .battle-log-ticker {
    min-height: 110px;
    max-height: 160px;
  }
}

/* =========================================================
   CORE SCORE DIAL / GAUGE (Target: Exactly 60)
   ========================================================= */
.score-board {
  background: #fff;
  padding: 16px 20px;
  border-radius: var(--radius-md);
  border: 2px solid #e2e8f0;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  position: relative;
  transition: all 0.3s ease;
}

.score-board.is-perfect {
  border-color: #f59e0b;
  background: linear-gradient(180deg, #fffdf5 0%, #ffffff 100%);
  box-shadow: 0 0 25px rgba(245, 158, 11, 0.4), 0 4px 12px rgba(245, 158, 11, 0.15);
  animation: boardGlowGold 2s infinite alternate ease-in-out;
}

@keyframes boardGlowGold {
  0% {
    box-shadow: 0 0 16px rgba(245, 158, 11, 0.3), 0 2px 8px rgba(0, 0, 0, 0.05);
  }
  100% {
    box-shadow: 0 0 32px rgba(245, 158, 11, 0.55), 0 6px 16px rgba(245, 158, 11, 0.25);
  }
}

@media (max-width: 640px) {
  .score-board {
    padding: 12px 14px;
    gap: 8px;
  }
}

.score-main-display {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.score-current {
  font-size: 46px;
  font-weight: 900;
  color: #1e293b;
  font-variant-numeric: tabular-nums;
  transition: all 0.25s ease;
}

@media (max-width: 640px) {
  .score-current {
    font-size: 38px;
  }
}

@media (min-width: 768px) {
  .score-current {
    font-size: 56px;
  }
}

.score-current.is-perfect {
  color: #d97706;
  text-shadow: 0 0 14px rgba(245, 158, 11, 0.45);
  animation: pulseGold 1.5s infinite;
}

@keyframes pulseGold {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.06); }
}

.score-divider {
  font-size: 26px;
  color: #94a3b8;
  font-weight: 300;
}

.score-target {
  font-size: 26px;
  color: #64748b;
  font-weight: 700;
}

.score-status-pill {
  font-size: 12.5px;
  font-weight: 800;
  padding: 5px 14px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.25s ease;
}

.score-status-pill.below {
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
}

.score-status-pill.perfect {
  background: #fef3c7;
  color: #b45309;
  border: 1.5px solid #f59e0b;
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.3);
}

.score-status-pill.above {
  background: #fee2e2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}

/* Linear Score Gauge with 60 target pin */
.score-track-container {
  width: 100%;
  position: relative;
  padding: 8px 0 16px 0;
}

.score-track {
  width: 100%;
  height: 14px;
  background: #e2e8f0;
  border-radius: 7px;
  position: relative;
  overflow: hidden;
}

.score-fill {
  height: 100%;
  background: linear-gradient(90deg, #3b82f6 0%, #10b981 60%, #ef4444 100%);
  width: 0%;
  transition: width 0.35s ease;
  border-radius: 7px;
}

/* 60 Points Marker Pin */
.score-marker-60 {
  position: absolute;
  top: 2px;
  left: 60%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 10;
  pointer-events: none;
}

.marker-line {
  width: 3px;
  height: 28px;
  background: #dc2626;
  border-radius: 2px;
  box-shadow: 0 0 8px rgba(220, 38, 38, 0.85);
}

.marker-label {
  font-size: 10px;
  font-weight: 800;
  color: #dc2626;
  background: #fee2e2;
  padding: 2px 5px;
  border-radius: 4px;
  margin-top: 2px;
  white-space: nowrap;
  border: 1px solid #fca5a5;
}

/* Combat Stats Bar */
.exam-player-stats {
  padding: 10px 16px;
  background: #fff;
  border: 1.5px solid #e2e8f0;
  border-radius: var(--radius-md);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13.5px;
  box-shadow: var(--shadow-sm);
}

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

.energy-orb-container {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  max-width: 120px;
}

.energy-orb {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #cbd5e1;
  transition: all 0.2s;
}

@media (min-width: 768px) {
  .energy-orb-container {
    max-width: none;
    gap: 5px;
  }
  .energy-orb {
    width: 20px;
    height: 20px;
  }
}

.energy-orb.active {
  background: #f59e0b;
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.85);
}

.energy-orb.bonus {
  border: 1.5px dashed #38bdf8;
  background: rgba(56, 189, 248, 0.2);
}

.energy-orb.bonus.active {
  background: #0ea5e9;
  border: 1.5px solid #38bdf8;
  box-shadow: 0 0 12px rgba(14, 165, 233, 0.9), 0 0 4px #bae6fd;
  animation: pulseBonusOrb 1.4s infinite alternate ease-in-out;
}

@keyframes pulseBonusOrb {
  0% { transform: scale(1); filter: brightness(1); }
  100% { transform: scale(1.15); filter: brightness(1.25); }
}

/* =========================================================
   Hand Cards Area (Responsive PC Fanning & Scroll)
   ========================================================= */
.hand-container {
  padding: 12px 16px;
  display: flex;
  gap: 10px;
  overflow-x: auto;
  min-height: 180px;
  align-items: center;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: #cbd5e1 transparent;
  touch-action: pan-x;
  overscroll-behavior-x: contain;
}

.hand-container::-webkit-scrollbar {
  height: 6px;
}

.hand-container::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.05);
  border-radius: 3px;
}

.hand-container::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 3px;
}

.hand-container::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

@media (min-width: 768px) {
  .hand-container {
    padding: 16px 24px;
    min-height: 220px;
    gap: 12px;
    justify-content: flex-start;
  }
}

@media (min-width: 1200px) {
  .hand-container {
    justify-content: center;
  }
}

.card-item {
  width: 112px;
  height: 160px;
  flex-shrink: 0;
  background: #fff;
  border-radius: var(--radius-md);
  border: 2px solid #cbd5e1;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  padding: 8px 6px;
  cursor: pointer;
  position: relative;
  transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

@media (min-width: 768px) {
  .card-item {
    width: 136px;
    height: 195px;
    padding: 10px 8px;
  }
}

@media (hover: hover) and (pointer: fine) {
  .card-item:hover {
    transform: translateY(-12px) scale(1.05);
    box-shadow: var(--shadow-lg);
    z-index: 25;
  }
  .card-item.type-score:hover {
    box-shadow: 0 16px 32px -4px rgba(59, 130, 246, 0.4), 0 0 12px rgba(59, 130, 246, 0.25);
    border-color: #2563eb;
  }
  .card-item.type-reverse:hover {
    box-shadow: 0 16px 32px -4px rgba(244, 63, 94, 0.4), 0 0 12px rgba(244, 63, 94, 0.25);
    border-color: #e11d48;
  }
  .card-item.type-chill:hover {
    box-shadow: 0 16px 32px -4px rgba(16, 185, 129, 0.4), 0 0 12px rgba(16, 185, 129, 0.25);
    border-color: #059669;
  }
  .card-item.type-strategy:hover {
    box-shadow: 0 16px 32px -4px rgba(168, 85, 247, 0.4), 0 0 12px rgba(168, 85, 247, 0.25);
    border-color: #9333ea;
  }
}

.card-item:active {
  transform: scale(0.96);
}

@media (max-width: 420px) {
  .hand-container {
    padding: 10px 10px;
    min-height: 162px;
    gap: 8px;
  }
  .card-item {
    width: 102px;
    height: 152px;
    padding: 6px 5px;
  }
  .card-cost {
    width: 22px !important;
    height: 22px !important;
    font-size: 12px !important;
    top: -7px !important;
    left: -5px !important;
  }
  .card-name {
    font-size: 10.5px !important;
  }
  .card-body {
    font-size: 9.5px !important;
    padding: 2px !important;
  }
}

.card-item.disabled {
  opacity: 0.5;
  filter: grayscale(0.5);
  cursor: not-allowed;
}
.card-item.disabled:hover {
  transform: none;
  box-shadow: var(--shadow-md);
}

/* Card Types Coloring */
.card-item.type-score {
  background: var(--card-score-bg);
  border-color: var(--card-score-border);
}
.card-item.type-reverse {
  background: var(--card-reverse-bg);
  border-color: var(--card-reverse-border);
}
.card-item.type-chill {
  background: var(--card-chill-bg);
  border-color: var(--card-chill-border);
}
.card-item.type-strategy {
  background: var(--card-strategy-bg);
  border-color: var(--card-strategy-border);
}

.card-cost {
  position: absolute;
  top: -8px;
  left: -6px;
  width: 24px;
  height: 24px;
  background: #f59e0b;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 800;
  border: 2px solid #fff;
  box-shadow: var(--shadow-sm);
}

@media (min-width: 768px) {
  .card-cost {
    width: 26px;
    height: 26px;
    font-size: 14px;
    top: -10px;
    left: -8px;
  }
}

.card-top {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 3px;
}

.card-icon {
  font-size: 16px;
}

@media (min-width: 768px) {
  .card-icon {
    font-size: 19px;
  }
}

.card-name {
  font-size: 11px;
  font-weight: 800;
  color: #1e293b;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (min-width: 768px) {
  .card-name {
    font-size: 12.5px;
  }
}

.card-type-tag {
  font-size: 9.5px;
  padding: 1px 5px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.05);
  color: #64748b;
  align-self: flex-start;
  margin-top: 2px;
  font-weight: 700;
}

.card-body {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px 2px;
  font-size: 10px;
  color: #334155;
  text-align: center;
  line-height: 1.4;
}

@media (min-width: 768px) {
  .card-body {
    font-size: 11.5px;
  }
}

.val-score { color: #2563eb; font-weight: 800; }
.val-sub { color: #dc2626; font-weight: 800; }
.val-shield { color: #059669; font-weight: 800; }
.val-heal { color: #10b981; font-weight: 800; }
.val-harm { color: #ea580c; font-weight: 800; }
.val-draw { color: #7c3aed; font-weight: 800; }
.val-energy { color: #d97706; font-weight: 800; }
.val-gold { color: #b45309; font-weight: 800; }

/* Exam Bottom Controls */
.exam-controls {
  padding: 12px 18px;
  background: #fff;
  border-top: 1px solid #e2e8f0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

@media (min-width: 768px) {
  .exam-controls {
    padding: 14px 28px;
  }
}

.pile-counters {
  display: flex;
  gap: 8px;
  font-size: 12px;
  color: var(--text-muted);
}

.pile-btn {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-sm);
  padding: 5px 10px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.15s;
}

.pile-btn:hover {
  background: #e2e8f0;
}

.exam-actions-group {
  display: flex;
  gap: 10px;
}

@media (max-width: 640px) {
  .exam-controls {
    flex-direction: column;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px)) 12px;
    gap: 8px;
  }
  .pile-counters {
    width: 100%;
    display: flex;
    justify-content: space-between;
    gap: 6px;
  }
  .pile-btn {
    flex: 1;
    text-align: center;
    padding: 6px 4px;
    font-size: 11px;
    white-space: nowrap;
  }
  .exam-actions-group {
    width: 100%;
    display: flex;
    gap: 8px;
  }
  .exam-actions-group .btn {
    flex: 1;
    padding: 10px 6px;
    font-size: 13px;
    justify-content: center;
  }
}

.submit-btn {
  position: relative;
}

.submit-btn.pulse-ready {
  animation: submitPulse 1.2s infinite;
  box-shadow: 0 0 16px rgba(245, 158, 11, 0.75);
}

@keyframes submitPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

/* =========================================================
   Screen 5: SETTLEMENT & REPORT (Centered Card on Desktop)
   ========================================================= */
.settlement-card {
  margin: 20px 18px;
  background: #fff;
  border: 3px solid #1e293b;
  border-radius: var(--radius-md);
  padding: 26px 22px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

@media (min-width: 768px) {
  .settlement-card {
    max-width: 760px;
    margin: 30px auto;
    padding: 34px 40px;
    width: 100%;
  }
}

@media (max-width: 640px) {
  .settlement-card {
    margin: 14px 10px;
    padding: 20px 16px;
    gap: 12px;
  }
}

.stamp-seal {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 96px;
  height: 96px;
  border: 3px double #dc2626;
  border-radius: 50%;
  color: #dc2626;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 13px;
  transform: rotate(-15deg);
  opacity: 0.9;
  text-align: center;
  line-height: 1.2;
  box-shadow: inset 0 0 10px rgba(220, 38, 38, 0.2);
}

.stamp-seal.failed {
  border-color: #64748b;
  color: #64748b;
}

.settlement-title {
  font-size: 22px;
  font-weight: 800;
}

.settlement-score-big {
  font-size: 52px;
  font-weight: 900;
  color: #1e293b;
}

.settlement-delta-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 14.5px;
}

.delta-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 12px;
  background: #f8fafc;
  border-radius: var(--radius-sm);
}

/* Card Reward Picker */
.reward-section {
  padding: 0 18px 24px 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

@media (min-width: 768px) {
  .reward-section {
    max-width: 760px;
    margin: 0 auto;
    width: 100%;
  }
}

.reward-cards-row {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* =========================================================
   Modal Dialogs (Responsive Popups)
   ========================================================= */
.modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.75);
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
  display: none;
  justify-content: center;
  align-items: center;
  padding: 20px;
  z-index: 100;
}

@media (max-width: 640px) {
  .modal-overlay {
    padding: 12px;
  }
}

.modal-overlay.active {
  display: flex;
}

.modal-content {
  background: #fff;
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 480px;
  max-height: 85vh;
  max-height: 85dvh;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  animation: modalFadeIn 0.2s ease-out;
}

@media (min-width: 768px) {
  #modal-shop .modal-content,
  #modal-deck .modal-content {
    max-width: 780px;
  }
  #modal-rules .modal-content {
    max-width: 680px;
  }
  #modal-event .modal-content {
    max-width: 580px;
  }
}

@keyframes modalFadeIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

.modal-header {
  padding: 16px 20px;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-title {
  font-size: 18px;
  font-weight: 800;
}

.modal-body {
  padding: 18px 20px;
  overflow-y: auto;
  font-size: 14px;
  color: #334155;
  line-height: 1.6;
  scrollbar-width: thin;
  scrollbar-color: #cbd5e1 transparent;
  -webkit-overflow-scrolling: touch;
}

/* Event Choices */
.event-options-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 16px;
}

.event-option-btn {
  text-align: left;
  background: #f8fafc;
  border: 1.5px solid #cbd5e1;
  border-radius: var(--radius-md);
  padding: 14px 16px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.event-option-btn:hover {
  border-color: var(--accent-blue);
  background: #eff6ff;
  transform: translateY(-2px);
}

.opt-text {
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 4px;
}

.opt-effect {
  font-size: 12px;
  color: #64748b;
}

/* Shop Relics Grid */
.shop-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

@media (min-width: 768px) {
  .shop-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
  }
  .shop-item-card {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
    gap: 10px;
  }
  .shop-item-left {
    flex-direction: column;
    align-items: center;
  }
  .shop-item-desc {
    max-width: 100% !important;
  }
}

.shop-item-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-md);
  padding: 14px;
  background: #f8fafc;
  transition: all 0.2s;
}

.shop-item-card:hover {
  border-color: #cbd5e1;
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.shop-item-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.shop-item-icon {
  font-size: 32px;
}

.shop-item-title {
  font-weight: 800;
  font-size: 14.5px;
}

.shop-item-desc {
  font-size: 11.5px;
  color: #64748b;
  max-width: 240px;
}

/* Deck Viewer Grid */
.deck-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 10px;
  scrollbar-width: thin;
  scrollbar-color: #cbd5e1 transparent;
  -webkit-overflow-scrolling: touch;
}

@media (min-width: 768px) {
  .deck-grid {
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 14px;
  }
}

/* Confetti Canvas */
.confetti-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 110;
}

/* =========================================================
   Floating Combat Text System (Damage, Shield, Score, Heal)
   ========================================================= */
.floating-combat-number {
  position: fixed;
  font-weight: 900;
  font-size: 20px;
  pointer-events: none;
  transform: translate(-50%, 0);
  animation: floatUpAndFade 1.1s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
  z-index: 9999;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3), 0 0 10px rgba(255, 255, 255, 0.8);
  white-space: nowrap;
}

@keyframes floatUpAndFade {
  0% {
    opacity: 0;
    transform: translate(-50%, 10px) scale(0.8);
  }
  20% {
    opacity: 1;
    transform: translate(-50%, -10px) scale(1.15);
  }
  80% {
    opacity: 1;
    transform: translate(-50%, -35px) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -55px) scale(0.9);
  }
}

/* Low-SAN Panic Alert Vignette & Pulse */
.exam-player-stats.is-panic {
  border-color: #ef4444 !important;
  background: #fff5f5 !important;
  animation: panicBorderPulse 1.2s infinite ease-in-out;
}

@keyframes panicBorderPulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4);
  }
  50% {
    box-shadow: 0 0 0 6px rgba(239, 68, 68, 0.2);
  }
}

/* Intent Calculation Preview Tag */
.intent-calc-preview {
  background: rgba(254, 226, 226, 0.7);
  border: 1px solid #fca5a5;
  border-radius: 6px;
  padding: 4px 8px;
  display: inline-block;
  line-height: 1.35;
}

.stat-pill-shield {
  animation: shieldPop 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes shieldPop {
  0% { transform: scale(0.7); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

/* Card Compendium & Deck Tab Styling */
.deck-tabs-container .tab-btn {
  font-family: inherit;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.deck-tabs-container .tab-btn.active {
  background: #2563eb !important;
  color: #fff !important;
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.35);
  border-color: #2563eb !important;
}

.deck-tabs-container .tab-btn:not(.active):hover {
  background: #e2e8f0 !important;
  color: #1e293b !important;
}

.filter-pill {
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  color: #475569;
  font-size: 11.5px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 9999px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-pill:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.filter-pill.active {
  background: #2563eb;
  color: #fff;
  border-color: #2563eb;
  box-shadow: 0 1px 4px rgba(37, 99, 235, 0.25);
}

/* Card Status Badges for Compendium & Deck */
.card-status-badge {
  position: absolute;
  top: -7px;
  right: -6px;
  font-size: 9.5px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 9999px;
  line-height: 1.25;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
  z-index: 5;
  white-space: nowrap;
}

.card-status-badge.in-deck {
  background: #15803d;
  color: #fff;
  border: 1px solid #86efac;
}

.card-status-badge.unlocked {
  background: #0284c7;
  color: #fff;
  border: 1px solid #bae6fd;
}

.card-status-badge.rare {
  background: #7c3aed;
  color: #fff;
  border: 1px solid #ddd6fe;
}

.card-item.compendium-card {
  cursor: default;
}

.card-item.compendium-card:hover {
  transform: translateY(-6px) scale(1.03);
}

/* =========================================================
   In-Game Sleek Toast System
   ========================================================= */
.toast-container {
  position: fixed;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  z-index: 99999;
  pointer-events: none;
  width: 90%;
  max-width: 480px;
}

.toast-item {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 18px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.94);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: #f8fafc;
  font-size: 13.5px;
  font-weight: 600;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.12);
  animation: toastSlideDown 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.toast-item.fade-out {
  opacity: 0;
  transform: translateY(-12px) scale(0.95);
}

.toast-icon {
  font-size: 16px;
  flex-shrink: 0;
}

.toast-text {
  line-height: 1.4;
}

.toast-item.toast-success {
  border-left: 4px solid #10b981;
}

.toast-item.toast-warning {
  border-left: 4px solid #f59e0b;
}

.toast-item.toast-error {
  border-left: 4px solid #ef4444;
}

.toast-item.toast-info {
  border-left: 4px solid #3b82f6;
}

@keyframes toastSlideDown {
  from {
    opacity: 0;
    transform: translateY(-20px) scale(0.92);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

