/* ============================================================================
   GERMAN ARTICLES GYM - STYLESHEET
   Mobile-First Design with Fluid Responsive Patterns
   Reference Device: iPhone 14 Pro Max (430px × 932px)
   ============================================================================ */

/* ============================================================================
   1. CSS VARIABLES & DESIGN TOKENS
   ============================================================================ */

/* Vue.js v-cloak - Hide uncompiled templates */
[v-cloak] {
  display: none !important;
}

:root {
  /* Color Palette - Colorblind Safe */
  --color-der: #2563eb;
  --color-die: #dc2626;
  --color-das: #16a34a;

  /* Neutral Colors */
  --color-text-primary: #111827;
  --color-text-secondary: #4b5563;
  --color-text-muted: #6b7280;
  --color-background: #ffffff;
  --color-surface: #f8fafc;
  --color-border: #e5e7eb;

  /* Typography - Fluid Scaling */
  --font-family-system: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, sans-serif;
  --font-size-noun: clamp(2.5rem, 8vw, 4.5rem);
  --font-size-body: clamp(1rem, 2.5vw, 1.125rem);
  --font-size-small: clamp(0.875rem, 2vw, 1rem);

  /* Fluid Spacing - Scales with Viewport */
  --spacing-xs: clamp(0.25rem, 0.5vw, 0.5rem);
  --spacing-sm: clamp(0.5rem, 1vw, 0.75rem);
  --spacing-md: clamp(0.75rem, 2vw, 1rem);
  --spacing-lg: clamp(1rem, 2.5vw, 1.5rem);
  --spacing-xl: clamp(2rem, 4vw, 3rem);

  /* Fluid Card Sizing - iPhone 14 Pro Max calibrated */
  --card-size: clamp(320px, 90vw, 420px);
  --card-height: clamp(320px, 65vh, 480px);
  --card-padding: clamp(1rem, 3vw, 1.5rem);
  --card-border-radius: clamp(0.75rem, 2vw, 1rem);
  --card-word-offset: clamp(1.25rem, 4vh, 2.5rem);

  /* Fluid Button Sizing */
  --btn-padding-x: clamp(2rem, 5.5vw, 2.5rem);
  --btn-padding-y: clamp(1rem, 2.5vh, 1.25rem);
  --btn-font-size: clamp(1.35rem, 3.5vw, 1.5rem);
  --btn-min-width: clamp(5.5rem, 16vw, 6rem);
  --btn-border-radius: clamp(1.5rem, 4vw, 2rem);

  /* Animations */
  --animation-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --animation-duration: 0.2s;

  /* Shadows */
  --shadow-soft: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
  --shadow-medium: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
}

/* ============================================================================
   2. RESET & BASE STYLES
   ============================================================================ */

* {
  box-sizing: border-box;
}

body {
  font-family: var(--font-family-system);
  font-size: var(--font-size-body);
  line-height: 1.6;
  color: var(--color-text-primary);
  background-color: var(--color-background);
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Accessibility: Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Custom Scrollbar for Webkit Browsers */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--color-surface);
}

::-webkit-scrollbar-thumb {
  background: var(--color-border);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-text-muted);
}

/* ============================================================================
   3. UTILITY CLASSES
   ============================================================================ */

.fade-in {
  animation: fadeIn var(--animation-duration) ease-in;
}

.text-muted {
  color: var(--color-text-secondary);
  font-weight: 500;
}

.small {
  font-size: var(--font-size-small);
}

.spinner-border {
  width: 3rem;
  height: 3rem;
}

/* Focus Styles for Accessibility */
.btn:focus,
.form-check-input:focus,
.hint-dot:focus {
  outline: 2px solid var(--color-der);
  outline-offset: 2px;
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
  :root {
    --color-background: #ffffff;
    --color-text-primary: #000000;
    --color-border: #000000;
  }

  .article-btn {
    border: 2px solid #000000;
  }
}

/* ============================================================================
   4. ERROR HANDLING & MODALS
   ============================================================================ */

.error-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  animation: fadeIn 0.3s ease-out;
}

.error-modal {
  background: white;
  border-radius: 12px;
  box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 10px 10px -5px rgb(0 0 0 / 0.04);
  max-width: 500px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  animation: slideIn 0.3s ease-out;
}

.error-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 24px 24px 16px;
  border-bottom: 1px solid var(--color-border);
}

.error-icon {
  width: 24px;
  height: 24px;
  color: #dc2626;
  flex-shrink: 0;
}

.error-header h4 {
  margin: 0;
  color: var(--color-text-primary);
  font-size: 1.25rem;
  font-weight: 600;
}

.error-body {
  padding: 16px 24px 24px;
}

.error-body p {
  margin: 0 0 20px;
  color: var(--color-text-secondary);
  line-height: 1.5;
}

.error-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

.error-actions .btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 8px;
  font-weight: 500;
  transition: all 0.2s ease;
  border: none;
  cursor: pointer;
}

.error-actions .btn-primary {
  background-color: var(--color-der);
  color: white;
}

.error-actions .btn-primary:hover {
  background-color: #1d4ed8;
  transform: translateY(-1px);
}

.error-actions .btn-secondary {
  background-color: var(--color-surface);
  color: var(--color-text-primary);
  border: 1px solid var(--color-border);
}

.error-actions .btn-secondary:hover {
  background-color: var(--color-border);
  transform: translateY(-1px);
}

/* ============================================================================
   5. WELCOME SCREEN
   ============================================================================ */

.welcome-screen {
  position: relative;
  display: flex;
  flex-direction: column;
  background-color: var(--color-background);
}

/* Login Section */
.login-section {
  position: absolute;
  top: clamp(0.75rem, 2vh, 1.5rem);
  right: clamp(1.5rem, 4vw, 3rem);
  z-index: 10;
}

.login-btn {
  display: inline-block;
  padding: clamp(0.375rem, 1.5vw, 0.5rem) clamp(0.75rem, 2.5vw, 1rem);
  background-color: var(--color-der);
  color: white;
  text-decoration: none;
  border: 1px solid var(--color-der);
  border-radius: 0.375rem;
  font-size: clamp(0.75rem, 2vw, 0.875rem);
  font-weight: 500;
  transition: all var(--animation-duration) ease;
}

.login-btn:hover {
  background-color: #1d4ed8;
  color: white;
  text-decoration: none;
  border-color: #1d4ed8;
}

.user-status.logged-in {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(0.25rem, 1vw, 0.75rem);
  flex-wrap: nowrap;
  max-width: 100%;
}

.user-info {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  padding: clamp(0.25rem, 1vw, 0.375rem) clamp(0.5rem, 1.5vw, 0.75rem);
  background-color: rgba(107, 114, 128, 0.1);
  color: #6b7280;
  border-radius: 0.375rem;
  font-size: clamp(0.625rem, 1.8vw, 0.75rem);
  font-weight: 400;
  width: clamp(100px, 25vw, 120px);
  max-width: clamp(100px, 25vw, 120px);
}

.user-icon {
  font-size: clamp(0.75rem, 2vw, 0.875rem);
  flex-shrink: 0;
}

#user-greeting {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  min-width: 0;
}

#user-greeting span {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  display: block;
}

.user-buttons {
  display: flex;
  flex-direction: row;
  gap: clamp(0.125rem, 0.5vw, 0.375rem);
  align-items: center;
  flex-shrink: 0;
}

.btn-stats,
.btn-logout,
.btn-progress {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: clamp(0.375rem, 1.5vw, 0.5rem) clamp(0.5rem, 1.8vw, 0.75rem);
  border-radius: 0.375rem;
  font-size: clamp(0.625rem, 1.8vw, 0.75rem);
  font-weight: 500;
  text-decoration: none;
  transition: all var(--animation-duration) ease;
  cursor: pointer;
  min-width: clamp(3.5rem, 18vw, 80px);
  justify-content: center;
  text-align: center;
}

.btn-stats {
  background-color: white;
  color: #3b82f6;
  border: 1px solid #3b82f6;
}

.btn-stats:hover {
  background-color: #3b82f6;
  color: white;
  text-decoration: none;
}

.btn-logout {
  background-color: white;
  color: #dc2626;
  border: 1px solid #dc2626;
}

.btn-logout:hover {
  background-color: #dc2626;
  color: white;
  text-decoration: none;
}

.btn-progress {
  background-color: white;
  color: #166534;
  /* dark green */
  border: 1px solid #166534;
}

.btn-progress:hover {
  background-color: #166534;
  color: white;
  border-color: #166534;
}

/* Welcome Main Content */
.welcome-main {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: clamp(1rem, 3vw, 2rem);
  padding-top: clamp(4rem, 10vh, 5rem);
  text-align: center;
}

.welcome-content {
  max-width: clamp(100%, 90vw, 500px);
  width: 100%;
}

.app-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(1rem, 3vw, 1.5rem);
}

/* Country Flags */
.country-flags {
  display: flex;
  gap: clamp(0.75rem, 2vw, 1rem);
  justify-content: center;
  align-items: center;
}

.flag {
  width: clamp(28px, 7vw, 32px);
  height: clamp(20px, 5.25vw, 24px);
  border-radius: 2px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  transition: transform var(--animation-duration) ease;
}

.flag:hover {
  transform: scale(1.1);
}

/* Swiss Flag */
.swiss-flag {
  position: relative;
  background-color: #DC143C;
}

.flag-bg {
  width: 100%;
  height: 100%;
  background-color: #DC143C;
}

.flag-cross {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: clamp(16px, 4vw, 18px);
  height: clamp(16px, 4vw, 18px);
}

.flag-cross::before,
.flag-cross::after {
  content: '';
  position: absolute;
  background-color: white;
}

.flag-cross::before {
  top: clamp(6px, 1.5vw, 7px);
  left: 0;
  width: clamp(16px, 4vw, 18px);
  height: 4px;
}

.flag-cross::after {
  top: 0;
  left: clamp(6px, 1.5vw, 7px);
  width: 4px;
  height: clamp(16px, 4vw, 18px);
}

/* German Flag */
.german-flag {
  display: flex;
  flex-direction: column;
}

.german-flag .stripe {
  flex: 1;
  height: clamp(6.67px, 1.75vw, 8px);
}

.german-flag .black {
  background-color: #000000;
}

.german-flag .red {
  background-color: #DD0000;
}

.german-flag .gold {
  background-color: #FFCE00;
}

/* Austrian Flag */
.austrian-flag {
  display: flex;
  flex-direction: column;
}

.austrian-flag .stripe {
  flex: 1;
  height: clamp(6.67px, 1.75vw, 8px);
}

.austrian-flag .red {
  background-color: #ED2939;
}

.austrian-flag .white {
  background-color: #FFFFFF;
}

/* Settings Section */
.settings-section {
  max-width: clamp(280px, 80vw, 300px);
  margin: 0 auto;
  margin-bottom: 2rem;
}

.settings-toggle-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: clamp(0.625rem, 2vw, 0.75rem) clamp(1.25rem, 3vw, 1.5rem);
  background-color: transparent;
  color: var(--color-text-secondary);
  border: 1px solid var(--color-border);
  border-radius: 0.5rem;
  font-size: clamp(0.75rem, 2.2vw, 0.875rem);
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.settings-toggle-btn.expanded {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  border-bottom-color: transparent;
}

.settings-toggle-btn:hover {
  background-color: var(--color-surface);
  color: var(--color-text-primary);
  border-color: var(--color-text-secondary);
}

.settings-toggle-btn.expanded:hover {
  border-bottom-color: transparent;
}

.settings-section:hover .settings-toggle-btn.expanded {
  border-color: var(--color-text-secondary);
  border-bottom-color: transparent;
}

.settings-section:hover .settings-panel.expanded {
  border-color: var(--color-text-secondary);
}

.chevron-icon {
  width: 16px;
  height: 16px;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.settings-toggle-btn.expanded .chevron-icon {
  transform: rotate(180deg);
}

.settings-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
    border-color 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border-left: 1px solid var(--color-border);
  border-right: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  border-top: none;
  border-radius: 0 0 0.5rem 0.5rem;
  margin-top: 0;
  opacity: 0;
  transform: translateY(-10px);
}

.settings-panel.expanded {
  max-height: 600px;
  opacity: 1;
  transform: translateY(0);
}

.settings-content {
  background-color: var(--color-surface);
  border-radius: 0 0 0.375rem 0.375rem;
  padding: clamp(1rem, 3vw, 1.5rem);
  margin: 0;
}

.settings-grid {
  display: flex;
  flex-direction: column;
  gap: clamp(0.75rem, 2vw, 1rem);
}

.form-check {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0;
  padding: clamp(0.375rem, 1.5vw, 0.5rem) clamp(0.75rem, 2.5vw, 1rem);
  width: 100%;
}

.form-check-input {
  margin: 0;
  flex-shrink: 0;
  width: 18px;
  height: 18px;
}

.form-check-label {
  font-size: clamp(0.75rem, 2.2vw, 0.875rem);
  font-weight: 500;
  cursor: pointer;
  user-select: none;
  color: var(--color-text-primary);
  line-height: 1.4;
  flex: 1;
  text-align: left;
}

.btn-start-session {
  background-color: var(--color-der);
  color: white;
  border: 1px solid var(--color-der);
  transition: all var(--animation-duration) ease;
}

.btn-start-session:hover {
  background-color: #1d4ed8;
  border-color: #1d4ed8;
}

/* ============================================================================
   6. TRAINING SCREEN
   ============================================================================ */

.training-container {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background-color: var(--color-background);
}

.training-header {
  flex-shrink: 0;
  border-bottom: 1px solid var(--color-border);
  background-color: var(--color-surface);
}

.training-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  min-height: calc(100vh - 80px);
  padding: var(--spacing-xl) var(--spacing-md);
  padding-top: clamp(2rem, 8vh, 6rem);
  padding-bottom: clamp(6rem, 15vh, 8rem);
  position: relative;
}

/* Fixed container for the noun card */
.noun-card-container {
  position: absolute;
  top: clamp(2rem, 8vh, 6rem);
  left: 50%;
  transform: translateX(-50%);
  width: var(--card-size);
  max-width: min(95vw, 420px);
}

.training-main.clickable-advance {
  cursor: pointer;
}

/* Noun Card - Fluid Sizing */
.noun-card {
  position: relative;
  cursor: grab;
  user-select: none;
  transition: background-color var(--animation-duration) ease, border-color var(--animation-duration) ease;

  /* Fluid sizing calibrated to iPhone 14 Pro Max */
  width: 100%;
  min-height: var(--card-height);
  max-height: min(80vh, 600px);

  padding: var(--card-padding);
  border-radius: var(--card-border-radius);
  background-color: var(--color-surface);
  box-shadow: var(--shadow-soft);
  border: 2px solid transparent;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.noun-card:active {
  cursor: grabbing;
}

.noun-card.dragging {
  transform: scale(1.05);
  box-shadow: var(--shadow-medium);
  z-index: 10;
}

.noun-card.feedback-correct {
  background-color: #dcfce7;
  border-color: #16a34a;
}

.noun-card.feedback-incorrect {
  background-color: #fef2f2;
  border-color: #dc2626;
  animation: shake 0.3s ease-in-out;
}

.noun-text {
  /* Font-size is set dynamically by JavaScript adjustNounFontSize() */
  /* This provides a fallback only - JavaScript calculates optimal size based on word length */
  font-size: var(--font-size-noun);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--color-text-primary);
  text-align: center;
  white-space: nowrap;
  overflow: visible;
  text-overflow: ellipsis;
  transition: font-size 0.2s ease, letter-spacing 0.2s ease;

  /* Keep noun at a consistent offset from the card top */
  margin-top: var(--card-word-offset);
  flex-shrink: 0;
}

.noun-translation {
  font-size: clamp(0.8rem, 2.2vw, 0.9rem);
  color: var(--color-text-secondary);
  text-align: center;
  margin: clamp(0.4rem, 1.5vw, 0.5rem) 0;
  font-style: italic;
  line-height: 1.4;
}

/* Hint System */
.audio-btn {
  display: block;
  margin: 0.5rem auto;
}

.hint-container {
  text-align: center;
  margin: 2rem auto 0 auto;
  margin-top: auto;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hint-dot {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border: none;
  border-radius: 50%;
  width: clamp(2.5rem, 8vw, 3rem);
  height: clamp(2.5rem, 8vw, 3rem);
  color: white;
  font-size: clamp(0.9rem, 2.5vw, 1rem);
  font-weight: 600;
  cursor: pointer;
  transition: all var(--animation-duration) ease;
  box-shadow: 0 4px 15px 0 rgba(102, 126, 234, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.hint-dot::before {
  content: '?';
  font-size: clamp(1.1rem, 3vw, 1.25rem);
  font-weight: 700;
}

.hint-dot:hover,
.hint-dot:active {
  background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
  transform: scale(1.1);
  box-shadow: 0 6px 20px 0 rgba(102, 126, 234, 0.4);
}

.hint-tooltip {
  position: absolute;
  bottom: 120%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-text-primary);
  color: white;
  padding: clamp(0.625rem, 2vw, 0.75rem) clamp(0.875rem, 2.5vw, 1rem);
  border-radius: 0.75rem;
  font-size: clamp(0.85rem, 2.2vw, 0.9rem);
  white-space: normal;
  width: max(280px, 70vw);
  max-width: min(380px, calc(100vw - 2rem));
  text-align: center;
  line-height: 1.5;
  box-shadow: var(--shadow-medium);
  z-index: 20;
}

.hint-tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: var(--color-text-primary);
}

/* Article Buttons - Fluid Design */
.article-buttons {
  position: fixed;
  bottom: clamp(0.5rem, 2vh, 2rem);
  left: clamp(0.5rem, 2vw, 1rem);
  right: clamp(0.5rem, 2vw, 1rem);
  z-index: 5;
  display: flex;
  gap: clamp(0.5rem, 2vw, 1rem);
  justify-content: center;
  max-width: calc(100vw - 1rem);
  margin: 0 auto;
}

.article-btn {
  padding: var(--btn-padding-y) var(--btn-padding-x);
  font-size: var(--btn-font-size);
  font-weight: 700;
  border-radius: var(--btn-border-radius);
  border: 3px solid transparent;
  min-width: var(--btn-min-width);
  flex: 1 1 auto;
  max-width: clamp(7rem, 20vw, 8rem);
  transition: all var(--animation-duration) var(--animation-spring);
  text-transform: lowercase;
  box-shadow: var(--shadow-medium);
  display: flex;
  align-items: center;
  justify-content: center;
}

.article-der {
  background-color: var(--color-der);
  color: white;
}

.article-der:hover,
.article-der.target-hover {
  background-color: var(--color-der);
  box-shadow: var(--shadow-medium);
}

.article-die {
  background-color: var(--color-die);
  color: white;
}

.article-die:hover,
.article-die.target-hover {
  background-color: var(--color-die);
  box-shadow: var(--shadow-medium);
}

.article-das {
  background-color: var(--color-das);
  color: white;
}

.article-das:hover,
.article-das.target-hover {
  background-color: var(--color-das);
  box-shadow: var(--shadow-medium);
}

/* Article Button - Processing State */
.article-btn.processing {
  transform: scale(1.1);
  pointer-events: none;
  opacity: 0.9;
  box-shadow: 0 8px 16px -4px rgba(0, 0, 0, 0.3);
}

/* Article Button - Disabled State (when another button is processing) */
.article-btn:disabled,
.article-btn.disabled {
  opacity: 0.5;
  pointer-events: none;
  cursor: not-allowed;
}

/* Loading Indicator Overlay */
.loading-indicator-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  animation: fadeIn 0.2s ease-out;
}

.loading-indicator {
  background: white;
  padding: 1.5rem 2rem;
  border-radius: 1rem;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid #f3f4f6;
  border-top-color: #2563eb;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.loading-indicator-text {
  font-size: 0.875rem;
  color: var(--color-text-secondary);
  font-weight: 500;
}

/* Feedback Display */
.feedback-display {
  text-align: center;
  padding: 0.25rem 0;
  margin: 0.25rem 0;
}

.continue-prompt {
  margin-top: var(--spacing-lg);
  min-height: 2rem;
}

.continue-prompt p {
  color: var(--color-text-muted);
  font-size: clamp(0.9rem, 2.5vw, 1rem);
  margin: 0;
}

.feedback-display h3,
.feedback-display h4 {
  font-size: var(--font-size-noun);
  font-weight: 700;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

.feedback-display.minimal-feedback .text-success h3,
.feedback-display.minimal-feedback .correct-article {
  font-size: var(--font-size-noun);
  margin-bottom: 0.25rem;
}

.feedback-display .text-success {
  color: #16a34a;
}

.feedback-display .text-danger {
  color: #dc2626;
}

.feedback-display .chosen-article {
  font-size: clamp(1.15rem, 3.2vw, 1.25rem);
  font-weight: 600;
  margin-bottom: 0.25rem;
  padding: 0.4rem 0.8rem;
  border-radius: 0.5rem;
  background-color: rgba(220, 38, 38, 0.1);
  border: 2px solid #dc2626;
}

.correct-answer {
  margin-bottom: 0.25rem;
}

.correct-label {
  font-size: clamp(1.1rem, 3vw, 1.25rem);
  font-weight: 600;
  color: #16a34a;
  margin-bottom: 0.25rem;
}

.correct-article {
  font-size: var(--font-size-noun);
  font-weight: 700;
  text-align: center;
}

.example-sentence {
  font-size: clamp(0.85rem, 2.2vw, 0.95rem);
  color: var(--color-text-secondary);
  margin-top: 0.5rem;
  margin-bottom: 0;
  font-weight: 400;
  font-style: italic;
  line-height: 1.4;
}

.feedback-display .text-muted {
  font-size: clamp(0.85rem, 2.2vw, 0.95rem);
  margin-bottom: 0.5rem;
}

.feedback-display .plural-text {
  font-size: clamp(0.75rem, 2vw, 0.85rem);
  margin-top: 0.75rem;
  margin-bottom: 0;
}

/* Summary Screen */
.summary-content {
  max-width: 600px;
  width: 100%;
  padding: clamp(1rem, 3vw, 2rem);
  overflow-y: auto;
}

.summary-content h1 {
  font-size: clamp(1.6rem, 5vw, 2.5rem);
  font-weight: 300;
  margin-bottom: clamp(1.5rem, 4vw, 3rem);
  color: var(--color-text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.stats-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1rem, 2.5vw, 1.5rem);
  max-width: clamp(280px, 80vw, 400px);
  margin: 0 auto;
  margin-bottom: clamp(1.5rem, 4vw, 2rem);
}

.stat-card {
  background-color: var(--color-surface);
  padding: clamp(0.75rem, 2.5vw, 1.5rem);
  border-radius: 1rem;
  box-shadow: var(--shadow-soft);
}

.stat-value {
  font-size: clamp(1.75rem, 5vw, 2rem);
  font-weight: 700;
  color: var(--color-text-primary);
}

.stat-label {
  font-size: clamp(0.8rem, 2.2vw, 0.875rem);
  margin-top: var(--spacing-xs);
}

.stat-meta {
  font-size: clamp(0.7rem, 2vw, 0.75rem);
}

.mistakes-section {
  margin: clamp(1.5rem, 4vw, 2rem) 0;
}

.mistakes-section h3 {
  font-size: clamp(0.9rem, 2.5vw, 1.1rem);
  margin-bottom: clamp(0.75rem, 2vw, 1rem);
  font-weight: 500;
  color: var(--color-text-secondary);
}

.mistakes-grid {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(0.5rem, 1.5vw, 0.75rem);
  justify-content: center;
  max-width: 500px;
  margin: 0 auto;
}

.mistake-badge {
  font-size: clamp(0.75rem, 2.2vw, 0.875rem);
  padding: 0.5rem 1rem;
  background-color: var(--color-surface);
  color: var(--color-text-primary);
  border: 1px solid var(--color-border);
  border-radius: 2rem;
  font-weight: 500;
  white-space: nowrap;
}

.summary-content .btn {
  padding: clamp(0.5rem, 2vw, 0.75rem) clamp(1rem, 3vw, 2rem);
  font-weight: 500;
  border-radius: 0.75rem;
  min-width: clamp(100px, 25vw, 120px);
  font-size: clamp(0.875rem, 2.2vw, 1rem);
}

.coffee-btn {
  max-width: clamp(200px, 60vw, 240px);
  width: 100%;
  background-color: #fff5e6;
  border-color: #ff8c00;
  color: #ff8c00;
  font-weight: 500;
  transition: all var(--animation-duration) ease;
}

.coffee-btn:hover {
  background-color: #ff8c00;
  border-color: #ff8c00;
  color: white;
  transform: translateY(-1px);
  box-shadow: var(--shadow-medium);
}

.summary-content .d-flex {
  margin-top: clamp(1rem, 3vw, 2rem);
}

.summary-content .d-flex.flex-column {
  gap: clamp(0.75rem, 2vw, 1rem);
}

/* Progress Indicator */
.progress-info {
  font-weight: 600;
  color: var(--color-text-primary);
  font-size: clamp(1rem, 2.8vw, 1.125rem);
}

.streak-indicator {
  color: #f59e0b;
}

/* ============================================================================
   7. PROGRESS VIEW
   ============================================================================ */

.progress-view {
  max-width: 1400px;
  margin: 0 auto;
  padding: clamp(1rem, 3vw, 2rem);
  min-height: 100vh;
}

.progress-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--color-border);
  flex-wrap: wrap;
  gap: 1rem;
}

.progress-header h2 {
  margin: 0;
  font-size: clamp(1.5rem, 4vw, 2rem);
  color: var(--color-text-primary);
}

.header-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.header-actions .btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.progress-loading,
.no-progress {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 50vh;
  text-align: center;
}

.no-progress i {
  width: 64px;
  height: 64px;
  stroke: var(--color-text-muted);
  margin-bottom: 1rem;
}

.no-progress h3 {
  color: var(--color-text-secondary);
  margin-bottom: 0.5rem;
}

.no-progress p {
  color: var(--color-text-muted);
  margin-bottom: 2rem;
}

.progress-table-container {
  background: white;
  border-radius: 8px;
  box-shadow: var(--shadow-medium);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.progress-table {
  width: 100%;
  min-width: 600px;
  border-collapse: collapse;
}

.progress-table thead {
  background: var(--color-surface);
  border-bottom: 2px solid var(--color-border);
}

.progress-table th {
  padding: clamp(0.75rem, 2vw, 1rem);
  text-align: left;
  font-weight: 600;
  color: var(--color-text-secondary);
  font-size: clamp(0.75rem, 2vw, 0.875rem);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.progress-table th.sortable {
  cursor: pointer;
  user-select: none;
  transition: background 0.2s;
}

.progress-table th.sortable:hover {
  background: #e2e8f0;
}

.progress-table tbody tr {
  border-bottom: 1px solid var(--color-border);
}

.progress-table tbody tr:nth-child(even) {
  background: #f8fafc;
}

.progress-table tbody tr:nth-child(odd) {
  background: white;
}

.progress-table tbody tr.clickable-row {
  cursor: pointer;
  transition: background 0.2s;
}

.progress-table tbody tr.clickable-row:hover {
  background: #e2e8f0;
}

.progress-table td {
  padding: clamp(0.75rem, 2vw, 1rem);
  vertical-align: middle;
  font-size: clamp(0.875rem, 2.2vw, 1rem);
}

.article-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.25rem 0.75rem;
  border-radius: 4px;
  font-weight: 600;
  font-size: clamp(0.75rem, 2vw, 0.875rem);
  width: 60px;
  text-align: center;
  white-space: nowrap;
  line-height: 1;
  margin-left: 0.5rem;
}

.article-badge.article-der {
  background: rgba(37, 99, 235, 0.1);
  color: var(--color-der);
}

.article-badge.article-die {
  background: rgba(220, 38, 38, 0.1);
  color: var(--color-die);
}

.article-badge.article-das {
  background: rgba(22, 163, 74, 0.1);
  color: var(--color-das);
}

.word-cell strong {
  color: var(--color-text-primary);
  font-size: clamp(1rem, 2.5vw, 1.1rem);
}

.translation-cell {
  color: var(--color-text-secondary);
}

.attempts-cell {
  display: flex;
  gap: 0.25rem;
  white-space: nowrap;
  align-items: center;
}

.attempt-icon {
  font-size: clamp(1rem, 2.8vw, 1.2rem);
}

.accuracy-cell {
  font-weight: 600;
  white-space: nowrap;
}

.accuracy-high {
  color: #22c55e;
}

.accuracy-medium {
  color: #f59e0b;
}

.accuracy-low {
  color: #ef4444;
}

.attempts-count {
  color: var(--color-text-muted);
  font-size: clamp(0.75rem, 2vw, 0.875rem);
  margin-left: 0.5rem;
}

.keep-learning-cell {
  text-align: center;
}

.keep-learning-checkbox {
  width: 1.25rem;
  height: 1.25rem;
  cursor: pointer;
}

.pagination-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: clamp(0.75rem, 2vw, 1rem);
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  flex-wrap: wrap;
  gap: 1rem;
}

.pagination-info {
  color: var(--color-text-secondary);
  font-size: clamp(0.75rem, 2vw, 0.875rem);
}

.pagination-container .btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Word Detail Modal */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: clamp(0.5rem, 2vw, 1rem);
}

.modal-content {
  background: white;
  border-radius: 12px;
  max-width: 800px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.modal-content .modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: clamp(1rem, 3vw, 1.5rem);
  border-bottom: 1px solid var(--color-border);
}

.modal-content .modal-header h3 {
  margin: 0;
  font-size: clamp(1.25rem, 3.5vw, 1.5rem);
  color: var(--color-text-primary);
}

.modal-content .btn-close {
  background: none;
  border: none;
  font-size: 2rem;
  color: var(--color-text-muted);
  cursor: pointer;
  line-height: 1;
  padding: 0;
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s;
}

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

.modal-loading {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 4rem 2rem;
}

.modal-content .modal-body {
  padding: clamp(1.5rem, 4vw, 2rem);
}

.word-info {
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--color-border);
}

.word-info h2 {
  font-size: clamp(2rem, 6vw, 2.5rem);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: clamp(0.75rem, 2.5vw, 1rem) clamp(1rem, 3vw, 1.5rem);
  border-radius: 8px;
  background: #fefefe;
  border: 1px solid #e5e7eb;
  flex-wrap: wrap;
}

.word-info h2.article-der {
  color: var(--color-der);
  background: #fefefe;
  border-color: #d1d5db;
}

.word-info h2.article-die {
  color: var(--color-die);
  background: #fefefe;
  border-color: #d1d5db;
}

.word-info h2.article-das {
  color: var(--color-das);
  background: #fefefe;
  border-color: #d1d5db;
}

.word-info .translation {
  font-size: clamp(1.1rem, 3vw, 1.25rem);
  color: var(--color-text-secondary);
  margin-bottom: 0.5rem;
}

.word-info .plural {
  color: var(--color-text-muted);
  margin-bottom: 0.5rem;
}

.word-info .example {
  color: var(--color-text-secondary);
  font-style: italic;
}

.hints-section {
  margin-bottom: 2rem;
  padding: clamp(1rem, 3vw, 1.5rem);
  background: #fef3c7;
  border-radius: 8px;
  border-left: 4px solid #f59e0b;
}

.hints-section h4 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  color: var(--color-text-primary);
}

.hints-section h4 i {
  width: 20px;
  height: 20px;
  stroke: #f59e0b;
}

.hints-list {
  margin: 0;
  padding-left: clamp(1rem, 3vw, 1.5rem);
}

.hints-list li {
  margin-bottom: 0.5rem;
  color: var(--color-text-secondary);
}

.attempts-history h4 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.attempts-history h4 i {
  width: 20px;
  height: 20px;
  stroke: var(--color-text-primary);
}

.accuracy-summary {
  margin-bottom: 1.5rem;
  font-size: clamp(1rem, 2.8vw, 1.1rem);
  color: var(--color-text-secondary);
}

.attempts-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.attempt-item {
  display: flex;
  align-items: center;
  gap: clamp(0.5rem, 2vw, 1rem);
  padding: clamp(0.75rem, 2.5vw, 1rem);
  border-radius: 8px;
  background: var(--color-surface);
  flex-wrap: wrap;
}

.attempt-item.correct {
  background: #f0fdf4;
  border-left: 4px solid #22c55e;
}

.attempt-item.incorrect {
  background: #fef2f2;
  border-left: 4px solid #ef4444;
}

.attempt-item .attempt-icon {
  font-size: clamp(1.1rem, 3vw, 1.25rem);
  flex-shrink: 0;
}

.attempt-item .attempt-answer {
  flex: 1;
  color: var(--color-text-secondary);
  font-size: clamp(0.875rem, 2.2vw, 1rem);
}

.attempt-item .attempt-answer strong {
  color: var(--color-text-primary);
}

.attempt-item .correct-answer {
  color: var(--color-text-muted);
  font-size: clamp(0.75rem, 2vw, 0.875rem);
}

.attempt-item .attempt-time {
  color: var(--color-text-muted);
  font-size: clamp(0.75rem, 2vw, 0.875rem);
}

.attempt-item .hint-badge {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: clamp(0.75rem, 2vw, 0.875rem);
  color: #f59e0b;
  background: #fef3c7;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
}

.attempt-item .hint-badge i {
  width: 14px;
  height: 14px;
}

.attempt-item .response-time {
  color: var(--color-text-muted);
  font-size: clamp(0.75rem, 2vw, 0.875rem);
}

/* ============================================================================
   8. STATISTICS MODAL
   ============================================================================ */

.stats-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(0.5rem, 2vw, 1.5rem);
  animation: fadeIn 0.3s ease-out;
}

.stats-modal {
  background: var(--color-background);
  border-radius: clamp(0.75rem, 2vw, 1rem);
  box-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.25);
  max-width: min(1200px, 95vw);
  width: 100%;
  max-height: 90vh;
  overflow: hidden;
  animation: slideUp 0.3s var(--animation-spring);
}

.stats-modal-header {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: clamp(1rem, 3vw, 1.5rem) clamp(3rem, 15vw, 80px) clamp(0.75rem, 2vw, 1rem) clamp(1rem, 3vw, 1.5rem);
  border-bottom: 1px solid var(--color-border);
  background: var(--color-surface);
}

.stats-modal-title {
  margin: 0;
  font-size: clamp(1.5rem, 4vw, 1.75rem);
  font-weight: 600;
  color: var(--color-text-primary);
}

.stats-close-btn {
  position: absolute;
  top: clamp(16px, 4vw, 20px);
  right: clamp(16px, 4vw, 20px);
  width: clamp(28px, 7vw, 32px);
  height: clamp(28px, 7vw, 32px);
  border-radius: 50%;
  border: 2px solid #6c757d;
  background-color: rgba(108, 117, 125, 0.1);
  color: #495057;
  font-size: clamp(16px, 4vw, 18px);
  font-weight: normal;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 1000;
  padding: 0;
  font-family: Arial, sans-serif;
}

.stats-close-btn:hover {
  background-color: #495057;
  border-color: #495057;
  color: white;
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(73, 80, 87, 0.3);
}

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

.stats-close-btn:focus {
  box-shadow: 0 0 0 3px rgba(108, 117, 125, 0.4);
  outline: none;
}

.stats-modal-content {
  padding: clamp(1rem, 3vw, 1.5rem);
  max-height: calc(90vh - 80px);
  overflow-y: auto;
}

.stats-overview {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(clamp(150px, 35vw, 200px), 1fr));
  gap: clamp(1rem, 3vw, 1.5rem);
  margin-bottom: clamp(1.5rem, 4vw, 2rem);
}

.stats-card {
  background: var(--color-surface);
  padding: clamp(1rem, 3vw, 1.5rem);
  border-radius: 0.75rem;
  border: 1px solid var(--color-border);
  text-align: center;
  transition: all var(--animation-duration) ease;
  position: relative;
  overflow: hidden;
}

.stats-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
  border-color: var(--color-der);
}

.stats-card-value {
  font-size: clamp(2rem, 6vw, 2.5rem);
  font-weight: 700;
  color: var(--color-der);
  margin-bottom: var(--spacing-sm);
  line-height: 1;
}

.stats-card-label {
  font-size: clamp(0.875rem, 2.5vw, 1rem);
  font-weight: 600;
  color: var(--color-text-primary);
  margin-bottom: var(--spacing-xs);
}

.stats-card-meta {
  font-size: clamp(0.75rem, 2vw, 0.875rem);
  color: var(--color-text-muted);
  line-height: 1.4;
}

.stats-charts {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.5rem, 4vw, 2rem);
  margin-bottom: clamp(1.5rem, 4vw, 2rem);
}

.chart-container {
  background: var(--color-surface);
  padding: clamp(1rem, 3vw, 1.5rem);
  border-radius: 0.75rem;
  border: 1px solid var(--color-border);
}

.chart-container h3 {
  margin: 0 0 clamp(1rem, 3vw, 1.5rem) 0;
  font-size: clamp(1.1rem, 3vw, 1.25rem);
  font-weight: 600;
  color: var(--color-text-primary);
}

.chart-container canvas {
  width: 100% !important;
  height: clamp(200px, 50vw, 300px) !important;
}

.stats-section {
  margin-bottom: clamp(1.5rem, 4vw, 2rem);
}

.stats-section h3 {
  margin: 0 0 clamp(1rem, 3vw, 1.5rem) 0;
  font-size: clamp(1.25rem, 3.5vw, 1.5rem);
  font-weight: 600;
  color: var(--color-text-primary);
}

.difficult-words-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(clamp(200px, 45vw, 250px), 1fr));
  gap: clamp(0.75rem, 2vw, 1rem);
}

.difficult-word-card {
  background: var(--color-background);
  border: 1px solid var(--color-border);
  border-radius: 0.5rem;
  padding: clamp(0.75rem, 2.5vw, 1rem);
  transition: all var(--animation-duration) ease;
  position: relative;
}

.difficult-word-card:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-soft);
}

.difficult-word-article {
  font-size: clamp(1.25rem, 3.5vw, 1.5rem);
  font-weight: 700;
  margin-bottom: var(--spacing-xs);
}

.difficult-word-word {
  font-size: clamp(1rem, 2.8vw, 1.125rem);
  font-weight: 600;
  color: var(--color-text-primary);
  margin-bottom: var(--spacing-xs);
}

.difficult-word-stats {
  font-size: clamp(0.75rem, 2vw, 0.875rem);
  color: var(--color-text-muted);
}

.stats-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-xl);
}

/* ============================================================================
   9. ANIMATIONS
   ============================================================================ */

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-20px) scale(0.95);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes shake {

  0%,
  100% {
    transform: translateX(0);
  }

  25% {
    transform: translateX(-5px);
  }

  75% {
    transform: translateX(5px);
  }
}

/* ============================================================================
   10. MEDIA QUERIES - MOBILE-FIRST
   ============================================================================ */

/* Tablet and Up (768px+) */
@media (min-width: 768px) {
  :root {
    /* Enhance spacing for larger screens */
    --spacing-xl: 3rem;

    /* Larger card for tablets */
    --card-size: 420px;
    --card-height: 420px;
  }

  .noun-card {
    min-height: 420px;
    max-height: min(80vh, 600px);
  }

  .user-status.logged-in {
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    gap: 0.5rem;
  }

  .user-buttons {
    flex-direction: column;
    gap: 0.375rem;
    align-items: flex-end;
  }

  /* Ensure equal button widths in column layout (tablet and up) */
  .btn-stats,
  .btn-logout,
  .btn-progress {
    width: clamp(120px, 14vw, 160px);
  }

  /* Make user info match the same width as the buttons */
  .user-info {
    width: clamp(120px, 14vw, 160px);
    max-width: clamp(120px, 14vw, 160px);
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }

  .stats-charts {
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  }

  .chart-container canvas {
    height: 300px !important;
  }
}

/* Desktop and Up (1024px+) */
@media (min-width: 1024px) {
  .welcome-content {
    max-width: 600px;
  }

  .country-flags {
    gap: 1.5rem;
  }

  .flag {
    width: 40px;
    height: 30px;
  }

  .flag-cross {
    width: 22px;
    height: 22px;
  }

  .flag-cross::before {
    top: 9px;
    width: 22px;
    height: 4px;
  }

  .flag-cross::after {
    top: 0;
    left: 9px;
    width: 4px;
    height: 22px;
  }

  .german-flag .stripe,
  .austrian-flag .stripe {
    height: 10px;
  }

  /* Desktop keyboard hints */
  .article-btn::after {
    content: '';
    display: block;
    font-size: 0.75rem;
    opacity: 0.7;
    margin-top: 0.25rem;
  }
}

/* Large Desktop (1440px+) */
@media (min-width: 1440px) {
  .stats-modal {
    max-width: 1200px;
  }
}