/* ==========================================
   ETHAN'S MORNING ADVENTURE - STYLING SHEET
   Theme: Aurora Cyber Adventure (極光冒險風格)
   ========================================== */

:root {
  --bg-dark: #0a0f1d;
  --text-light: #f8f9fa;
  --text-muted: #a0aec0;
  
  --primary-color: #3a86ff;
  --primary-glow: rgba(58, 134, 255, 0.45);
  
  --accent-color: #06d6a0;
  --accent-glow: rgba(6, 214, 160, 0.45);
  
  --warning-color: #ffd166;
  --warning-glow: rgba(255, 209, 102, 0.45);
  
  --danger-color: #ef476f;
  --success-color: #06d6a0;
  
  --glass-bg: rgba(255, 255, 255, 0.04);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-panel-shadow: 0 10px 40px 0 rgba(0, 0, 0, 0.35);
  
  --font-display: 'Fredoka', system-ui, sans-serif;
  --font-body: 'Outfit', system-ui, sans-serif;
  
  --map-width: 1600px;
  --map-height: 800px;
}

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

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

h1, h2, h3, h4, .logo-text, .btn-icon-labeled span {
  font-family: var(--font-display);
}

/* ==========================================
   2. AURORA BACKGROUND EFFECT
   ========================================== */
.aurora-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -2;
  overflow: hidden;
  background: radial-gradient(circle at 50% 50%, #151e3f 0%, #060913 100%);
}

.aurora-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  -webkit-filter: blur(100px);
  opacity: 0.18;
  mix-blend-mode: screen;
  pointer-events: none;
  animation: aurora-float 25s infinite alternate ease-in-out;
  will-change: transform;
  transform: translate3d(0, 0, 0);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.aurora-glow-1 {
  width: 600px;
  height: 600px;
  background-color: #3a86ff;
  top: -10%;
  left: -10%;
}

.aurora-glow-2 {
  width: 500px;
  height: 500px;
  background-color: #7209b7;
  bottom: -10%;
  right: -10%;
  animation-duration: 30s;
  animation-delay: -5s;
}

.aurora-glow-3 {
  width: 700px;
  height: 650px;
  background-color: #06d6a0;
  top: 40%;
  left: 30%;
  animation-duration: 35s;
  animation-delay: -10s;
}

@keyframes aurora-float {
  0% {
    transform: translate3d(0, 0, 0) scale3d(1, 1, 1) rotate(0deg);
  }
  100% {
    transform: translate3d(80px, 50px, 0) scale3d(1.15, 1.15, 1) rotate(45deg);
  }
}

/* ==========================================
   3. APP CONTAINER & LAYOUT
   ========================================== */
.app-container {
  display: flex;
  flex-direction: column;
  max-width: 1400px;
  margin: 0 auto;
  padding: 20px;
  min-height: 100vh;
  gap: 16px;
  position: relative;
  z-index: 1;
}

.glass-panel {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  box-shadow: var(--glass-panel-shadow);
}

.glass-panel-inner {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  padding: 16px;
}

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 12px;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  border: none;
  text-decoration: none;
  outline: none;
}

.primary-btn {
  background: linear-gradient(135deg, #3a86ff, #4ea8de);
  color: white;
  box-shadow: 0 4px 15px var(--primary-glow);
}

.primary-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(58, 134, 255, 0.6);
  filter: brightness(1.1);
}

.primary-btn:active {
  transform: translateY(0);
}

.secondary-btn {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-light);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.secondary-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}

.danger-btn {
  background: linear-gradient(135deg, #ef476f, #d90429);
  color: white;
  box-shadow: 0 4px 15px rgba(239, 71, 111, 0.4);
}

.danger-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(239, 71, 111, 0.55);
}

.glass-btn {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-light);
  border: 1px solid var(--glass-border);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.glass-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.glass-btn:active {
  transform: translateY(0);
}

.btn-icon-labeled {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-weight: 500;
  font-size: 0.95rem;
}

.btn-icon-labeled i {
  width: 20px;
  height: 20px;
}

.btn-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
  transition: color 0.2s;
}

.btn-close:hover {
  color: var(--danger-color);
}

.badge {
  background-color: var(--danger-color);
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 20px;
  box-shadow: 0 2px 6px rgba(239, 71, 111, 0.4);
}

.hidden {
  display: none !important;
}

/* ==========================================
   4. HEADER
   ========================================== */
.main-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 10px;
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-icon {
  font-size: 2.2rem;
  animation: bounce-float 3s infinite ease-in-out;
}

.logo-text {
  font-size: 1.6rem;
  font-weight: 700;
  background: linear-gradient(135deg, #f8f9fa, #a0aec0);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.header-actions {
  display: flex;
  gap: 12px;
  position: relative;
}

/* ==========================================
   5. NEXT REWARD HUD (頂部進度看板)
   ========================================== */
.next-reward-hud {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  gap: 24px;
}

.hud-left {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1;
}

.hud-reward-preview {
  width: 56px;
  height: 56px;
  background: rgba(255, 209, 102, 0.15);
  border: 2px dashed var(--warning-color);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--warning-color);
  animation: glow-pulse-gold 2s infinite alternate ease-in-out;
}

.hud-reward-preview i {
  width: 28px;
  height: 28px;
}

.hud-reward-info {
  display: flex;
  flex-direction: column;
}

.hud-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.hud-reward-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-light);
  margin: 2px 0;
}

.hud-reward-countdown {
  font-size: 0.9rem;
  color: var(--accent-color);
  font-weight: 500;
}

.hud-right {
  width: 320px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.progress-container {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.progress-text-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  font-weight: 600;
}

.progress-val {
  color: var(--text-muted);
}

.progress-percent {
  color: var(--primary-color);
}

.progress-bar-bg {
  height: 12px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #3a86ff, #06d6a0);
  border-radius: 6px;
  transition: width 1.2s cubic-bezier(0.1, 0.8, 0.2, 1);
  box-shadow: 0 0 10px var(--primary-glow);
}

/* ==========================================
   6. MAP SECTION (地圖區塊)
   ========================================== */
.map-section {
  flex: 1;
  padding: 10px;
  overflow: hidden;
  display: flex;
  border-radius: 28px;
}

.map-scroll-container {
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 30px;
  border-radius: 20px;
  background: rgba(0, 0, 0, 0.3);
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.1) transparent;
  -webkit-overflow-scrolling: touch;
}

/* Custom Scrollbar for Map */
.map-scroll-container::-webkit-scrollbar {
  height: 8px;
}
.map-scroll-container::-webkit-scrollbar-track {
  background: transparent;
}
.map-scroll-container::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 4px;
}
.map-scroll-container::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.3);
}

.map-inner-wrapper {
  width: var(--map-width);
  height: var(--map-height);
  position: relative;
}

.adventure-svg {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  pointer-events: none;
}

.road-path {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Three overlapping strokes for a beautiful glowing road */
#road-shadow {
  stroke: rgba(0, 0, 0, 0.5);
  stroke-width: 32px;
}

#road-path {
  stroke: url(#road-grad);
  stroke-width: 22px;
  filter: url(#glow);
}

#road-guide {
  stroke: rgba(255, 255, 255, 0.35);
  stroke-width: 3px;
}

/* MAP MARKERS & NODES */
.map-overlays {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

/* General Step Node */
.map-node {
  position: absolute;
  width: 22px;
  height: 22px;
  background: #1a233a;
  border: 3px solid rgba(255, 255, 255, 0.45);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  z-index: 5;
  box-shadow: 0 3px 8px rgba(0,0,0,0.5);
  transition: all 0.3s ease;
  pointer-events: auto;
  cursor: help;
}

.map-node.passed {
  background: var(--primary-color);
  border-color: #fff;
  box-shadow: 0 0 8px var(--primary-glow);
}

.map-node.current {
  background: var(--accent-color);
  border-color: #fff;
  width: 26px;
  height: 26px;
  box-shadow: 0 0 12px var(--accent-glow);
}

.map-node.start-end {
  width: 30px;
  height: 30px;
  background: linear-gradient(135deg, #ff007f, #7f00ff);
  border-color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 700;
}

.map-node-tooltip {
  position: absolute;
  bottom: 150%;
  left: 50%;
  transform: translateX(-50%) translateY(5px);
  background: rgba(13, 27, 42, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 5px 10px;
  border-radius: 8px;
  font-size: 0.75rem;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: all 0.2s ease;
  box-shadow: 0 4px 15px rgba(0,0,0,0.4);
  color: var(--text-light);
}

.map-node:hover .map-node-tooltip {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* REWARD CHEST */
.map-reward-chest {
  position: absolute;
  transform: translate(-50%, -50%);
  z-index: 6;
  pointer-events: auto;
  cursor: pointer;
  width: 50px;
  height: 50px;
  transition: transform 0.2s ease;
}

.chest-icon-wrapper {
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(255, 209, 102, 0.2) 0%, rgba(255, 209, 102, 0) 70%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: float 2.5s infinite ease-in-out;
  will-change: transform;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.map-reward-chest:hover {
  transform: translate(-50%, -50%) scale(1.18);
}

.map-reward-chest.claimed .chest-icon-wrapper {
  background: none;
  filter: grayscale(1) opacity(0.65);
  animation: none;
}

.map-reward-chest.surprise .chest-icon-wrapper {
  background: radial-gradient(circle, rgba(114, 9, 183, 0.3) 0%, rgba(114, 9, 183, 0) 70%);
}

.chest-icon {
  width: 32px;
  height: 32px;
  color: var(--warning-color);
  filter: drop-shadow(0 2px 5px rgba(0,0,0,0.3));
}

.map-reward-chest.surprise .chest-icon {
  color: #c77dff;
}

.chest-label {
  position: absolute;
  top: 105%;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(5px);
  padding: 3px 8px;
  border-radius: 10px;
  font-size: 0.7rem;
  white-space: nowrap;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

/* ETHAN CHARACTER AVATAR */
.map-character-avatar {
  position: absolute;
  z-index: 10;
  left: 0;
  top: 0;
  transform: translate3d(0, 0, 0) translate(-50%, -80%);
  pointer-events: none;
  /* Smooth movement logic */
  transition: transform 1.5s cubic-bezier(0.25, 1, 0.5, 1);
  will-change: transform;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.avatar-circle {
  width: 58px;
  height: 58px;
  background: linear-gradient(135deg, #06d6a0, #3a86ff);
  border: 4px solid #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4), 0 0 15px var(--accent-glow);
  animation: character-bounce 2s infinite ease-in-out;
  position: relative;
  will-change: transform;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.avatar-circle::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 2px solid var(--accent-color);
  animation: radar-ripple 2s infinite ease-out;
  will-change: transform, opacity;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.avatar-tag {
  background: #06d6a0;
  color: #0c1821;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.8rem;
  padding: 2px 10px;
  border-radius: 12px;
  margin-top: 6px;
  text-align: center;
  box-shadow: 0 3px 6px rgba(0,0,0,0.3);
}

/* ==========================================
   7. FOOTER
   ========================================== */
.game-status-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 15px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.sync-status {
  display: flex;
  align-items: center;
  gap: 6px;
}

.sync-status i {
  width: 14px;
  height: 14px;
}

.sync-status.synced {
  color: var(--accent-color);
}

/* ==========================================
   8. SLIDE OUT DRAWER (背包樣式)
   ========================================== */
.drawer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.6);
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  will-change: opacity, visibility;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.drawer-overlay.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.drawer-content {
  position: absolute;
  right: 0;
  top: 0;
  width: 420px;
  height: 100%;
  border-radius: 30px 0 0 30px;
  border-right: none;
  display: flex;
  flex-direction: column;
  transform: translate3d(100%, 0, 0);
  transition: transform 0.35s cubic-bezier(0.1, 0.8, 0.2, 1);
  padding: 24px;
  will-change: transform;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.drawer-overlay.open .drawer-content {
  transform: translate3d(0, 0, 0);
}

.drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  padding-bottom: 16px;
}

.drawer-header h2 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.35rem;
}

.drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px 0;
  scrollbar-width: none;
}

.drawer-body::-webkit-scrollbar {
  display: none;
}

.inventory-summary {
  display: flex;
  justify-content: space-between;
  padding: 12px 16px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 12px;
  margin-bottom: 20px;
  font-size: 0.9rem;
}

.inventory-summary strong {
  color: var(--warning-color);
}

.inventory-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 20px;
  color: var(--text-muted);
  text-align: center;
  gap: 16px;
}

.empty-state i {
  width: 48px;
  height: 48px;
  stroke-width: 1.5;
}

/* Inventory Item Card */
.inventory-card {
  display: flex;
  align-items: center;
  padding: 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  gap: 16px;
  transition: transform 0.2s, background-color 0.2s;
}

.inventory-card:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.06);
}

.inv-icon-box {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  background: rgba(58, 134, 255, 0.1);
  border: 1px solid rgba(58, 134, 255, 0.2);
}

.inventory-card.unclaimed {
  border-color: rgba(6, 214, 160, 0.3);
  box-shadow: 0 4px 12px rgba(6, 214, 160, 0.08);
}

.inventory-card.unclaimed .inv-icon-box {
  background: rgba(6, 214, 160, 0.1);
  border-color: rgba(6, 214, 160, 0.3);
  animation: card-glow-pulse 2s infinite alternate;
}

.inventory-card.claimed {
  opacity: 0.6;
}

.inv-info {
  flex: 1;
}

.inv-name {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 2px;
}

.inv-date {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.inv-status-tag {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 8px;
  text-transform: uppercase;
}

.inv-status-tag.unclaimed {
  background: rgba(255, 209, 102, 0.12);
  color: var(--warning-color);
  border: 1px solid rgba(255, 209, 102, 0.2);
  cursor: pointer;
}

.inv-status-tag.unclaimed:hover {
  background: var(--warning-color);
  color: #0c1821;
}

.inv-status-tag.claimed {
  background: rgba(239, 71, 111, 0.1);
  color: var(--danger-color);
  border: 1px solid rgba(239, 71, 111, 0.2);
  position: relative;
  overflow: hidden;
}

.inv-status-tag.claimed::after {
  content: '✓';
  margin-left: 2px;
}

/* ==========================================
   9. MODALS (對話框與後台)
   ========================================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(5, 7, 15, 0.75);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  padding: 20px;
  will-change: opacity, visibility;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.modal-overlay.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* PIN Lock Modal */
.pin-modal {
  width: 100%;
  max-width: 360px;
  text-align: center;
  padding: 28px;
  border-radius: 24px;
}

.pin-modal h2 {
  font-size: 1.25rem;
  margin-bottom: 8px;
  color: var(--warning-color);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.pin-modal p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.pin-inputs-container {
  display: flex;
  justify-content: center;
  margin-bottom: 24px;
}

.pin-input-field {
  width: 140px;
  letter-spacing: 12px;
  text-align: center;
  font-size: 2.2rem;
  background: rgba(0, 0, 0, 0.3);
  border: 2px solid rgba(255,255,255,0.15);
  color: white;
  border-radius: 12px;
  padding: 6px 0;
  font-family: monospace;
  outline: none;
  transition: border-color 0.2s;
}

.pin-input-field:focus {
  border-color: var(--primary-color);
}

.pin-actions {
  display: flex;
  gap: 12px;
}

.pin-actions button {
  flex: 1;
}

/* Redemption Preview */
.redeem-item-preview {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 10px 16px;
  margin-bottom: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-weight: 600;
  font-size: 1.1rem;
}

.redeem-item-preview span:first-child {
  font-size: 1.5rem;
}

/* GM Admin Dashboard */
.admin-dashboard {
  width: 100%;
  max-width: 800px;
  height: 90%;
  max-height: 640px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 28px;
  padding: 0;
}

.admin-dashboard .modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.admin-dashboard .modal-header h2 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.4rem;
}

.modal-tabs {
  display: flex;
  background: rgba(0, 0, 0, 0.2);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  padding: 0 10px;
}

.tab-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 15px 20px;
  cursor: pointer;
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s;
}

.tab-btn i {
  width: 16px;
  height: 16px;
}

.tab-btn:hover {
  color: var(--text-light);
}

.tab-btn.active {
  color: var(--primary-color);
}

.tab-btn.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--primary-color);
  border-radius: 3px 3px 0 0;
  box-shadow: 0 -2px 10px var(--primary-glow);
}

.admin-dashboard .modal-body {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
}

.tab-pane {
  display: none;
}

.tab-pane.active {
  display: block;
}

/* Checkin Tab styling */
.checkin-section {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.section-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: -6px;
}

.checkin-buttons {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.checkin-btn {
  height: 140px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: white;
  transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.checkin-btn:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.06);
}

.status-emoji {
  font-size: 2.2rem;
  margin-bottom: 6px;
  transition: transform 0.3s;
}

.checkin-btn:hover .status-emoji {
  transform: scale(1.15) rotate(5deg);
}

.status-title {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
}

.status-reward {
  font-size: 1.2rem;
  font-weight: 700;
  font-family: var(--font-display);
  margin-top: 4px;
}

.early-btn {
  border-color: rgba(6, 214, 160, 0.2);
}
.early-btn:hover {
  box-shadow: 0 8px 25px rgba(6, 214, 160, 0.25);
  border-color: var(--accent-color);
}
.early-btn .status-reward {
  color: var(--accent-color);
}

.ontime-btn {
  border-color: rgba(58, 134, 255, 0.2);
}
.ontime-btn:hover {
  box-shadow: 0 8px 25px rgba(58, 134, 255, 0.25);
  border-color: var(--primary-color);
}
.ontime-btn .status-reward {
  color: var(--primary-color);
}

.late-btn {
  border-color: rgba(239, 71, 111, 0.2);
}
.late-btn:hover {
  box-shadow: 0 8px 25px rgba(239, 71, 111, 0.25);
  border-color: var(--danger-color);
}
.late-btn .status-reward {
  color: var(--danger-color);
}

.manual-adjustment h4, .history-log h4, .rewards-editor-section h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-light);
  border-left: 3px solid var(--primary-color);
  padding-left: 8px;
}

.adjustment-controls {
  display: flex;
  align-items: flex-end;
  gap: 16px;
}

.control-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.control-group label, .form-group label {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
}

.control-group input, .form-group input, .form-group select {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 10px 14px;
  color: white;
  font-size: 0.95rem;
  outline: none;
  font-family: var(--font-body);
}

.control-group input:focus, .form-group input:focus, .form-group select:focus {
  border-color: var(--primary-color);
}

.log-table-wrapper, .rewards-table-wrapper {
  overflow-x: auto;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.06);
  background: rgba(0,0,0,0.15);
}

.log-table, .rewards-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
  text-align: left;
}

.log-table th, .rewards-table th {
  background: rgba(255,255,255,0.03);
  padding: 12px 16px;
  font-weight: 600;
  color: var(--text-muted);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.log-table td, .rewards-table td {
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}

.log-table tr:last-child td, .rewards-table tr:last-child td {
  border-bottom: none;
}

.empty-table-text {
  text-align: center;
  padding: 30px !important;
  color: var(--text-muted);
}

/* Rewards Editor styles */
.rewards-editor-section {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.reward-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-row {
  display: flex;
  gap: 16px;
}

.form-row .form-group {
  flex: 1;
}

.checkbox-group {
  display: flex;
  align-items: center;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  user-select: none;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 20px;
}

.checkbox-label input {
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 16px;
}

.rewards-list-container {
  margin-top: 10px;
}

.rewards-table td button {
  padding: 6px 10px;
  font-size: 0.75rem;
  border-radius: 6px;
}

/* Sync Settings tab */
.sync-settings-section {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.sync-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 10px;
}

.sync-actions-row {
  display: flex;
  gap: 12px;
}

/* ==========================================
   10. CELEBRATION OVERLAY (解鎖寶箱特效)
   ========================================== */
.celebration-overlay {
  background-color: rgba(5, 6, 12, 0.92);
  z-index: 300;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.celebration-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  max-width: 500px;
  width: 100%;
  position: relative;
}

.particles-canvas {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  pointer-events: none;
  z-index: 1;
}

.chest-animation-container {
  position: relative;
  width: 260px;
  height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  margin-bottom: -20px;
}

.glowing-orb {
  position: absolute;
  width: 160px;
  height: 160px;
  background: radial-gradient(circle, rgba(255, 209, 102, 0.45) 0%, rgba(255, 114, 9, 0) 70%);
  border-radius: 50%;
  animation: orb-glowing 2s infinite alternate ease-in-out;
  z-index: -1;
}

.chest-image-wrapper {
  width: 180px;
  height: 180px;
  animation: bounce-shake 0.8s infinite ease-in-out alternate;
  cursor: pointer;
}

.chest-image-wrapper.open {
  animation: float 3s infinite ease-in-out;
}

.svg-chest {
  width: 100%;
  height: 100%;
  overflow: visible;
}

/* Celebration text card */
.celebration-text-card {
  padding: 30px;
  border-radius: 28px;
  text-align: center;
  width: 100%;
  z-index: 2;
  box-shadow: 0 15px 50px rgba(0,0,0,0.6);
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.5s cubic-bezier(0.18, 0.89, 0.32, 1.28);
  border-color: rgba(255, 209, 102, 0.2);
}

.celebration-overlay.open .celebration-text-card.show {
  opacity: 1;
  transform: translateY(0);
}

.celebration-badge {
  background: var(--warning-color);
  color: #0c1821;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.75rem;
  padding: 4px 12px;
  border-radius: 12px;
  display: inline-block;
  margin-bottom: 12px;
  box-shadow: 0 3px 8px var(--warning-glow);
  animation: pulse-active 1.5s infinite;
}

.celebration-title {
  font-size: 1.8rem;
  font-weight: 800;
  color: white;
  margin-bottom: 16px;
}

.celebration-reward-reveal {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px dashed rgba(255, 209, 102, 0.35);
  border-radius: 20px;
  margin-bottom: 16px;
}

.reveal-icon {
  font-size: 3.5rem;
  line-height: 1;
  animation: scale-pop 0.5s cubic-bezier(0.18, 0.89, 0.32, 1.28) 0.5s both;
}

.reveal-name {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--warning-color);
  text-shadow: 0 2px 10px rgba(255,209,102,0.2);
}

.celebration-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 24px;
  line-height: 1.5;
}

.scale-up-btn {
  padding: 14px 32px;
  font-size: 1.1rem;
}

/* ==========================================
   11. ANIMATIONS LIBRARY
   ========================================== */

/* Character bouncing */
@keyframes character-bounce {
  0%, 100% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(0, -8px, 0);
  }
}

/* Floating animation */
@keyframes float {
  0%, 100% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(0, -6px, 0);
  }
}

@keyframes bounce-float {
  0%, 100% {
    transform: translate3d(0, 0, 0) scale3d(1, 1, 1);
  }
  50% {
    transform: translate3d(0, -5px, 0) scale3d(1.05, 1.05, 1);
  }
}

/* Pulse Glows */
@keyframes glow-pulse-gold {
  0% {
    box-shadow: 0 0 5px rgba(255, 209, 102, 0.2), inset 0 0 5px rgba(255, 209, 102, 0.1);
  }
  100% {
    box-shadow: 0 0 15px rgba(255, 209, 102, 0.5), inset 0 0 10px rgba(255, 209, 102, 0.3);
  }
}

@keyframes card-glow-pulse {
  0% {
    box-shadow: 0 0 5px rgba(6, 214, 160, 0.1);
  }
  100% {
    box-shadow: 0 0 12px rgba(6, 214, 160, 0.4);
  }
}

@keyframes orb-glowing {
  0% {
    transform: scale3d(0.95, 0.95, 1);
    opacity: 0.4;
  }
  100% {
    transform: scale3d(1.15, 1.15, 1);
    opacity: 0.8;
  }
}

/* Radar ripple */
@keyframes radar-ripple {
  0% {
    transform: scale3d(1, 1, 1);
    opacity: 0.8;
  }
  100% {
    transform: scale3d(1.4, 1.4, 1);
    opacity: 0;
  }
}

/* Shake bounce */
@keyframes bounce-shake {
  0% { transform: translate3d(0, 0, 0) rotate(0deg) scale3d(1, 1, 1); }
  25% { transform: translate3d(0, -4px, 0) rotate(-3deg) scale3d(1.02, 1.02, 1); }
  50% { transform: translate3d(0, 0, 0) rotate(3deg) scale3d(1, 1, 1); }
  75% { transform: translate3d(0, -4px, 0) rotate(-3deg) scale3d(1.02, 1.02, 1); }
  100% { transform: translate3d(0, 0, 0) rotate(0deg) scale3d(1, 1, 1); }
}

/* Pop */
@keyframes scale-pop {
  0% { transform: scale3d(0, 0, 1); }
  100% { transform: scale3d(1, 1, 1); }
}

@keyframes pulse-active {
  0% { transform: scale3d(1, 1, 1); }
  50% { transform: scale3d(1.05, 1.05, 1); }
  100% { transform: scale3d(1, 1, 1); }
}

/* ==========================================
   11.5 NEW STYLES (CHECK-IN HUD, MAP DECORATIONS, ROAD FLOW)
   ========================================== */

/* Daily Check-in Card (Outer HUD) */
.ethan-checkin-hud {
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: linear-gradient(135deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.02) 100%);
  border: 1px solid rgba(255,255,255,0.08);
}

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

.checkin-hud-header h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.25rem;
  color: var(--warning-color);
}

.checkin-hud-header .header-icon {
  font-size: 1.4rem;
  animation: bounce-float 2.5s infinite ease-in-out;
}

.checkin-date-badge {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.1);
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
}

.checkin-hud-body {
  width: 100%;
}

.checkin-hud-buttons {
  display: flex;
  gap: 16px;
  width: 100%;
}

.checkin-hud-btn {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 24px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: white;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
  text-align: left;
  outline: none;
}

.checkin-hud-btn:hover {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.08);
}

.checkin-hud-btn:active {
  transform: translateY(0);
}

.checkin-hud-btn .btn-emoji {
  font-size: 2.2rem;
  line-height: 1;
  transition: transform 0.3s ease;
}

.checkin-hud-btn:hover .btn-emoji {
  transform: scale(1.2) rotate(6deg);
}

.checkin-hud-btn .btn-text {
  display: flex;
  flex-direction: column;
}

.checkin-hud-btn .btn-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
}

.checkin-hud-btn .btn-subtitle {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.checkin-hud-btn.early-btn:hover {
  border-color: var(--accent-color);
  box-shadow: 0 6px 20px rgba(6, 214, 160, 0.3);
}

.checkin-hud-btn.early-btn .btn-title {
  color: var(--accent-color);
}

.checkin-hud-btn.ontime-btn:hover {
  border-color: var(--primary-color);
  box-shadow: 0 6px 20px rgba(58, 134, 255, 0.3);
}

.checkin-hud-btn.ontime-btn .btn-title {
  color: var(--primary-color);
}

/* Checkin Completed Screen */
.checkin-hud-completed {
  display: flex;
  align-items: center;
  gap: 20px;
  background: rgba(6, 214, 160, 0.05);
  border: 1px dashed rgba(6, 214, 160, 0.25);
  border-radius: 20px;
  padding: 16px 24px;
  animation: scale-pop 0.4s cubic-bezier(0.18, 0.89, 0.32, 1.28);
}

.completed-icon {
  font-size: 2.8rem;
  animation: bounce-float 2s infinite ease-in-out;
}

.completed-text h4 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--accent-color);
  margin-bottom: 2px;
}

.completed-text p {
  font-size: 0.9rem;
  color: var(--text-light);
}

/* Map Flowing Path & Animations */
@keyframes road-flow {
  to {
    stroke-dashoffset: -40;
  }
}

#road-guide {
  stroke: rgba(255, 255, 255, 0.55) !important;
  stroke-width: 3px !important;
  animation: road-flow 1.5s linear infinite !important;
}

#road-path {
  stroke-width: 26px !important;
  filter: drop-shadow(0 0 16px rgba(78, 168, 222, 0.5)) !important;
}

/* Map Background Decorations & Scenery */
.map-decorations {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

.deco-item {
  position: absolute;
  transform: translate(-50%, -50%);
  pointer-events: none;
  user-select: none;
}

/* Emojis floating animation */
@keyframes float-cloud {
  0% { transform: translate(-50%, -50%) translateX(0px); }
  100% { transform: translate(-50%, -50%) translateX(35px); }
}

.deco-item.cloud {
  font-size: 2.2rem;
  opacity: 0.16;
  animation: float-cloud 10s infinite alternate ease-in-out;
}

.deco-cloud-1 { left: 280px; top: 110px; animation-duration: 8s; }
.deco-cloud-2 { left: 1150px; top: 210px; animation-duration: 12s; }
.deco-cloud-3 { left: 750px; top: 580px; animation-duration: 15s; }

/* Landmark Placement */
.deco-stadium { left: 800px; top: 180px; font-size: 3.5rem; opacity: 0.35; filter: saturate(0.6); }
.deco-bats { left: 1350px; top: 380px; font-size: 2.5rem; opacity: 0.28; }
.deco-popcorn { left: 220px; top: 410px; font-size: 2.3rem; opacity: 0.28; }
.deco-hotdog { left: 1400px; top: 620px; font-size: 2.3rem; opacity: 0.28; }
.deco-home { left: 60px; top: 90px; font-size: 2.3rem; opacity: 0.45; }
.deco-trophy {
  left: 60px;
  top: 690px;
  font-size: 3.6rem;
  opacity: 0.75;
  filter: drop-shadow(0 0 12px rgba(255, 209, 102, 0.45));
}

.deco-star-1 { left: 950px; top: 450px; font-size: 1.8rem; opacity: 0.35; animation: float 3s infinite alternate ease-in-out; }
.deco-star-2 { left: 450px; top: 650px; font-size: 1.8rem; opacity: 0.35; animation: float 2.5s infinite alternate ease-in-out; }

/* Rich Map Grid Dots with Step Numbers inside */
.map-node {
  width: 22px;
  height: 22px;
  background: #111a2e;
  border: 2.5px solid rgba(255, 255, 255, 0.45);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  z-index: 5;
  box-shadow: 0 4px 10px rgba(0,0,0,0.5);
  
  /* Flex text settings */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-size: 0.58rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.5);
}

.map-node.passed {
  background: linear-gradient(135deg, #3a86ff, #4ea8de);
  border-color: #ffffff;
  color: #ffffff;
  box-shadow: 0 0 8px var(--primary-glow);
}

.map-node.current {
  background: linear-gradient(135deg, #06d6a0, #3a86ff);
  border-color: #ffffff;
  width: 28px;
  height: 28px;
  color: #ffffff;
  box-shadow: 0 0 16px var(--accent-glow);
  font-size: 0.65rem;
}

/* ==========================================
   12. MEDIA QUERIES (RWD)
   ========================================== */
@media (max-width: 992px) {
  .next-reward-hud {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }
  
  .hud-right {
    width: 100%;
  }
  
  .checkin-buttons {
    grid-template-columns: 1fr;
  }
  
  .checkin-btn {
    height: 90px;
    flex-direction: row;
    padding: 15px;
    gap: 16px;
    justify-content: flex-start;
  }
  
  .status-emoji {
    font-size: 1.8rem;
    margin-bottom: 0;
  }
  
  .status-reward {
    margin-top: 0;
    margin-left: auto;
  }
  
  .drawer-content {
    width: 100%;
    border-radius: 0;
  }
}

@media (max-width: 576px) {
  .logo-text {
    font-size: 1.3rem;
  }
  
  .logo-icon {
    font-size: 1.8rem;
  }
  
  .app-container {
    padding: 10px;
  }
  
  .btn-icon-labeled span {
    display: none;
  }
  
  .btn-icon-labeled {
    padding: 10px;
  }
}

/* ==========================================
   13. ROUNDS BADGES & SPECIAL DEEDS STYLES
   ========================================== */

/* Rounds Completed Badge in Header */
.round-badge {
  background: linear-gradient(135deg, #ffd166, #ff7209);
  color: #0c1821;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.78rem;
  padding: 4px 10px;
  border-radius: 20px;
  box-shadow: 0 0 10px rgba(255, 209, 102, 0.4);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: 8px;
  animation: bounce-float 3s infinite alternate ease-in-out;
}

/* Special Deed Application Card (Ethan's Screen) */
.ethan-special-deed-card {
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: linear-gradient(135deg, rgba(255,255,255,0.04) 0%, rgba(255,255,255,0.01) 100%);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 24px;
  box-shadow: var(--glass-panel-shadow);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.special-deed-header h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.15rem;
  color: var(--accent-color);
}

.special-deed-input-row {
  display: flex;
  gap: 12px;
  width: 100%;
}

.special-deed-input-row input {
  flex: 1;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 12px 16px;
  color: white;
  font-size: 0.9rem;
  outline: none;
  font-family: var(--font-body);
  transition: border-color 0.2s;
}

.special-deed-input-row input:focus {
  border-color: var(--accent-color);
}

.special-deed-status {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 18px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px dashed rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  width: 100%;
}

.special-deed-status.approved {
  background: rgba(6, 214, 160, 0.05);
  border-color: rgba(6, 214, 160, 0.2);
}
.special-deed-status.approved .status-icon {
  animation: pulse-active 1.5s infinite;
}
.special-deed-status.approved h4 {
  color: var(--accent-color);
}

.special-deed-status.rejected {
  background: rgba(239, 71, 111, 0.05);
  border-color: rgba(239, 71, 111, 0.2);
}
.special-deed-status.rejected h4 {
  color: var(--danger-color);
}

.special-deed-status .status-icon {
  font-size: 1.8rem;
}

.special-deed-status .status-text h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 2px;
}

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

/* Special Deed Approval Items in GM Backend */
.special-deed-approval {
  margin-top: 16px !important;
}

.pending-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 8px;
}

.pending-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 10px;
  gap: 12px;
}

.pending-info {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.pending-desc {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-light);
}

.pending-date {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 2px;
}

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

.pending-actions select {
  background: rgba(0,0,0,0.3);
  border: 1px solid rgba(255,255,255,0.15);
  color: white;
  border-radius: 6px;
  padding: 4px 8px;
  font-size: 0.8rem;
  outline: none;
}

.pending-actions button {
  padding: 5px 10px;
  font-size: 0.78rem;
  font-weight: bold;
}

.special-deeds-status-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  margin-top: 12px;
}

/* 手動直接補分/扣分樣式 */
.manual-direct-deed h4 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-light);
  border-left: 3px solid var(--accent-color);
  padding-left: 8px;
}

.direct-deed-buttons .btn {
  transition: all 0.15s ease-in-out;
}

.direct-deed-buttons .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  filter: brightness(1.25);
}

.direct-deed-buttons .btn:active {
  transform: translateY(0);
}

/* 行動端特定優化：停用造成重繪卡頓與閃爍的高負載特效 */
@media (max-width: 768px) {
  /* 停用極光背景的漂浮動畫 */
  .aurora-glow {
    animation: none !important;
  }
  
  /* 停用道路路徑的高負載陰影濾鏡，防堵與引導虛線滾動衝突所產生的閃爍 */
  #road-path {
    filter: none !important;
  }
}
