:root {
  --bg-color: #2c3e50;
  --card-bg: #34495e;
  --text-color: #ffffff;
  --accent-color: #2ecc71;
}
body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--bg-color);
  color: var(--text-color);
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  transition: background-color 0.15s ease;
  position: relative;
}
#app-container {
  position: relative;
  width: 90%;
  max-width: 600px;
  background: var(--card-bg);
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  text-align: center;
}
.app-title-banner {
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 2px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;    
  align-items: center;
  gap: 8px;
}
.app-title-banner h1 {
  margin: 0;
  font-size: 2.2rem;        
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--accent-color);
  text-transform: uppercase;
}
#info-btn {
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: rgba(255, 255, 255, 0.7);
  padding: 4px 12px;
  font-size: 0.85rem;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.2s ease;
}
#info-btn:hover {
  color: var(--text-color);
  border-color: var(--accent-color);
  background: rgba(46, 204, 113, 0.1);
}
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  z-index: 2000;
  justify-content: center;
  align-items: center;
  box-sizing: border-box;
  padding: 20px;
}
#instruction-modal.menu-layout-active {
  display: flex !important;
  gap: 20px;
}
.modal-content {
  background: #2c3e50;
  color: var(--text-color);
  width: 90%;
  max-width: 500px;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.5);
  position: relative;
  text-align: left;
  margin: 0 auto; 
  animation: fadeIn 0.2s ease-out;
}
@keyframes fadeIn {
  from { transform: scale(0.95); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
.modal-close-x {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 1.8rem;
  background: none;
  border: none;
  color: #bdc3c7;
  cursor: pointer;
}
.modal-close-x:hover { 
  color: #e74c3c;
}
.modal-content h3 {
  margin-top: 0;
  color: var(--accent-color);
  font-size: 1.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  padding-bottom: 10px;
}
.menu-dropdown-content {
  display: none; 
  position: absolute; 
  top: 40px; 
  right: 0; 
  background: #2c3e50; 
  border: 2px solid var(--accent-color); 
  border-radius: 8px; 
  width: 230px; 
  box-shadow: 0 8px 30px rgba(0,0,0,0.6); 
  z-index: 2500; 
  flex-direction: column; 
  padding: 8px; 
  gap: 4px; 
  box-sizing: border-box;
}
.instruction-body {
  max-height: 300px;
  overflow-y: auto;
  margin-bottom: 20px;
  font-size: 0.95rem;
  line-height: 1.5;
}
.instruction-step { margin-bottom: 12px; }
.instruction-step strong { color: #f1c40f; }
.modal-close-btn {
  width: 100%;
  padding: 10px;
  background: #7f8c8d;
  color: white;
  border: none;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.2s;
}
.modal-close-btn:hover { background: #95a5a6; }
.app-footer {
  position: fixed;
  bottom: 15px;
  left: 0;         
  width: 100%;
  text-align: center;
  font-size: 0.8rem;
  color: #7f8c8d; 
  letter-spacing: 0.5px;
  pointer-events: none; 
  z-index: 999;    
}
.premium-badge {
  background: linear-gradient(135deg, #f1c40f, #f39c12);
  color: #2c3e50;
  font-size: 0.75rem;
  font-weight: bold;
  padding: 3px 8px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}
#setup-screen {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
h2 { 
  margin-top: 5px !important; 
  margin-bottom: 5px !important;
}
textarea {
  width: 100%;
  box-sizing: border-box;
  height: 150px;
  padding: 12px;
  border-radius: 6px;
  border: none;
  font-size: 1rem;
  resize: vertical;
  font-family: inherit;
}
#start-btn {
  padding: 12px;
  font-size: 1.1rem;
  font-weight: bold;
  background-color: var(--accent-color);
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s;
}
#start-btn:hover { background-color: #27ae60; }
#practice-screen { display: none; margin-top: 20px; }
#reset-btn {
  position: absolute;
  top: 15px;
  right: 15px;
  padding: 6px 12px;
  font-size: 0.85rem;
  font-weight: bold;
  background-color: #e67e22;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.2s;
}
#reset-btn:hover { background-color: #d35400; }
#prompt-display { font-size: 2.2rem; font-weight: bold; margin-bottom: 25px; letter-spacing: 0.5px; }
#input-field {
  width: 100%;
  box-sizing: border-box;
  padding: 15px;
  font-size: 1.5rem;
  border: none;
  border-radius: 6px;
  background: #ecf0f1;
  color: #2c3e50;
  outline: none;
  text-align: center;
}
#feedback-panel { display: none; margin-top: 20px; }
#comparison-output {
  font-family: monospace;
  font-size: 1.6rem;
  margin: 20px 0;
  padding: 10px;
  background: rgba(0,0,0,0.2);
  border-radius: 4px;
}
.char-correct { color: var(--accent-color); }
.char-wrong { color: #e74c3c; text-decoration: line-through; }
.char-missing { color: #f1c40f; opacity: 0.7; }
#metrics-panel { font-size: 1.2rem; font-weight: 600; margin-top: 15px; }
#main-viewport-center-stack {
  display: flex;
  flex-direction: column;
  align-items: center; 
  width: 100%;
  box-sizing: border-box;
  padding: 20px 0;
}
#premium-dashboard-wrapper {
  display: none;
  width: 90%;
  max-width: 600px;
  margin: 0 0 20px 0;
  background: var(--card-bg);
  padding: 15px 20px 20px 20px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  text-align: center;
}
#user-shelf-heading {  
  margin: 0 0 12px 0;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent-color);
  letter-spacing: 0.5px;
}
#premium-lists-shelf {
  display: flex;
  gap: 15px;
  width: 100%;
  box-sizing: border-box;
  justify-content: flex-start; 
  align-items: center;
  overflow-x: auto;
  padding: 5px 0 18px 0;
  cursor: grab;                 
  user-select: none;
}
#premium-lists-shelf:active {
  cursor: grabbing;             
}
#premium-lists-shelf::-webkit-scrollbar {
  height: 8px;
  display: block;
}
#premium-lists-shelf::-webkit-scrollbar-track {
  background: #2c3e50; 
  border-radius: 4px;
}
#premium-lists-shelf::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.22);
  cursor: pointer;
}
#secret-counter-wrapper {
  position: fixed;
  bottom: 12px;
  left: 12px;
  font-family: monospace;
  font-size: 0.75rem;
  color: transparent; 
  text-align: left;
  line-height: 1.4;
  cursor: default;
  user-select: none;
  z-index: 9999;
  transition: color 0.2s ease;
}
#secret-counter-wrapper:hover {
  color: rgba(255, 255, 255, 0.4); 
}
#secret-reset-trigger {
  display: none;
  background: #e67e22;
  color: white;
  border: none;
  font-size: 0.7rem;
  padding: 2px 6px;
  border-radius: 3px;
  margin-top: 4px;
  cursor: pointer;
  font-weight: bold;
}
#secret-reset-trigger:hover { background: #d35400; }
#premium-nav-btn {
  background: linear-gradient(135deg, #f1c40f, #e67e22);
  color: white;
  border: none;
  padding: 5px 14px;
  font-size: 0.85rem;
  font-weight: bold;
  border-radius: 20px;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(230, 126, 34, 0.3);
  transition: transform 0.2s, box-shadow 0.2s;
}
#premium-nav-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 15px rgba(230, 126, 34, 0.4);
}
.pricing-grid { display: flex; gap: 15px; margin: 20px 0; }
.pricing-card {
  flex: 1;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  padding: 20px;
  text-align: center;
  transition: border-color 0.2s, transform 0.2s;
}
.pricing-card:hover { border-color: var(--accent-color); transform: translateY(-2px); }
.pricing-card.popular { border-color: #f1c40f; background: rgba(241, 196, 15, 0.03); position: relative; }
.pricing-card h4 { margin: 0 0 10px 0; font-size: 1.2rem; color: #fff; }
.pricing-card .price { font-size: 1.8rem; font-weight: 800; color: var(--accent-color); margin-bottom: 5px; }
.pricing-card .price-sub { font-size: 0.8rem; color: #bdc3c7; }
.features-list { list-style: none; padding: 0; margin: 15px 0 0 0; text-align: left; font-size: 0.9rem; }
.features-list li { margin-bottom: 8px; display: flex; align-items: center; gap: 8px; }
.checkout-btn {
  width: 100%;
  padding: 10px;
  background: var(--accent-color);
  color: white;
  border: none;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
  margin-top: 15px;
  transition: background 0.2s;
}
.checkout-btn:hover { background: #27ae60; }
.checkout-btn.gold { background: #e67e22; }
.checkout-btn.gold:hover { background: #d35400; }

.is-premium .premium-only-item { 
  display: none !important; 
}
@keyframes characterSquatMotionEffect {
  0% { transform: scale(1, 1); }
  30% { transform: scale(1.15, 0.62) translateY(22px); } 
  45% { transform: scale(1.15, 0.62) translateY(22px); } 
  75% { transform: scale(0.92, 1.12) translateY(-6px); } 
  100% { transform: scale(1, 1) translateY(0); } 
}
.execute-squat-animation {
  animation: characterSquatMotionEffect 0.65s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
}
.menu-layout-active {
  display: flex !important;
  flex-direction: row !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 30px !important;
}
.menu-layout-active #premium-dropdown-content {
  position: relative !important;
  top: auto !important;
  left: auto !important;
  margin: 0 !important;
  display: flex !important;
}
.menu-layout-active .modal-content {
  margin: 0 !important; 
}
#auth-btn {
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: rgba(255, 255, 255, 0.7);
  padding: 4px 12px;
  font-size: 0.85rem;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.2s ease;
}

#auth-btn:hover {
  color: var(--text-color);
  border-color: var(--accent-color);
  background: rgba(46, 204, 113, 0.1);
}