/* ========================================
   MINI GAMES — Design System & Styles
   Font: Bricolage Grotesque
   Mode: Light (natural, warm tones)
   ======================================== */

/* --- Reset & Base --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  /* Natural warm palette */
  --bg-body: #F7F3EE;
  --bg-primary: #F7F3EE;
  --bg-secondary: #FFFFFF;
  --bg-card: #FFFFFF;
  --bg-card-hover: #FAF8F5;
  --bg-input: #F0EBE4;
  --bg-overlay: rgba(139, 126, 116, 0.08);

  /* Text */
  --text-primary: #2C2520;
  --text-secondary: #7A6E64;
  --text-tertiary: #A89E94;
  --text-inverse: #FFFFFF;

  --btn-primary-hover: #3D3530;

  /* Accents */
  --accent-teal: #5AAFA5;
  --accent-teal-light: #E8F5F3;
  --accent-coral: #E8836B;
  --accent-coral-light: #FDF0ED;
  --accent-amber: #E6A94D;
  --accent-amber-light: #FDF5E8;
  --accent-lavender: #9B8EC4;
  --accent-lavender-light: #F3F0F9;

  /* Game feedback colors */
  --correct: #6AAB6E;
  --correct-bg: #EDF7EE;
  --present: #D4A843;
  --present-bg: #FBF5E6;
  --absent: #C4BAB0;
  --absent-bg: #F0EBE4;

  /* Borders & shadows */
  --border: #E8E1D9;
  --border-focus: #8B7E74;
  --shadow-sm: 0 1px 3px rgba(44, 37, 32, 0.06);
  --shadow-md: 0 4px 12px rgba(44, 37, 32, 0.08);
  --shadow-lg: 0 8px 30px rgba(44, 37, 32, 0.1);
  --shadow-card: 0 2px 8px rgba(44, 37, 32, 0.05);

  /* Radius */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 50%;

  /* Spacing */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 64px;

  /* Typography */
  --font-family: 'Bricolage Grotesque', system-ui, sans-serif;
  --font-size-xs: 0.75rem;
  --font-size-sm: 0.875rem;
  --font-size-base: 1rem;
  --font-size-lg: 1.125rem;
  --font-size-xl: 1.375rem;
  --font-size-2xl: 1.75rem;
  --font-size-3xl: 2.25rem;
  --font-size-4xl: 3rem;

  /* Transitions */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --duration-fast: 150ms;
  --duration-normal: 250ms;
  --duration-slow: 400ms;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg-body: #1A1715;
    --bg-primary: #1A1715;
    --bg-secondary: #24201D;
    --bg-card: #24201D;
    --bg-card-hover: #2C2824;
    --bg-input: #110F0E;
    --bg-overlay: rgba(0, 0, 0, 0.6);

    --text-primary: #F0EBE4;
    --text-secondary: #A89E94;
    --text-tertiary: #7A6E64;
    --text-inverse: #1A1715;

    --btn-primary-hover: #E0D9D3;

    --accent-teal: #4CA49A;
    --accent-teal-light: rgba(90, 175, 165, 0.15);
    --accent-coral: #E37459;
    --accent-coral-light: rgba(232, 131, 107, 0.15);
    --accent-amber: #E09E38;
    --accent-amber-light: rgba(230, 169, 77, 0.15);
    --accent-lavender: #9283BF;
    --accent-lavender-light: rgba(155, 142, 196, 0.15);

    --correct: #5CA360;
    --correct-bg: rgba(92, 163, 96, 0.15);
    --present: #CE9F34;
    --present-bg: rgba(206, 159, 52, 0.15);
    --absent: #38332E;
    --absent-bg: #24201D;

    --border: #3A342F;
    --border-focus: #7A6E64;
    
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.5);
    --shadow-card: 0 2px 8px rgba(0, 0, 0, 0.3);
  }
}

html, body {
  margin: 0;
  padding: 0;
  font-family: var(--font-family);
  background-color: var(--bg-body);
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
  
  /* Lock viewport and prevent body scrolling / zooming */
  height: 100%;
  height: 100dvh;
  overflow: hidden;
  touch-action: manipulation;
}

#app {
  max-width: 480px;
  margin: 0 auto;
  min-height: 100%;
  height: 100%;
  overflow-y: auto;
  background-color: var(--bg-body);
  position: relative;
  box-shadow: 0 0 20px rgba(0,0,0,0.05);
}

/* --- Screen Container --- */
.screen {
  padding: var(--space-lg);
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  animation: screenFadeIn var(--duration-slow) var(--ease-out);
}

.screen--center {
  justify-content: center;
  align-items: center;
  text-align: center;
}

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

/* --- Typography --- */
.heading-1 {
  font-size: var(--font-size-3xl);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.heading-2 {
  font-size: var(--font-size-2xl);
  font-weight: 650;
  line-height: 1.2;
  letter-spacing: -0.015em;
  color: var(--text-primary);
}

.heading-3 {
  font-size: var(--font-size-xl);
  font-weight: 600;
  line-height: 1.25;
  color: var(--text-primary);
}

.subtitle {
  font-size: var(--font-size-base);
  font-weight: 400;
  color: var(--text-secondary);
  line-height: 1.5;
}

.label {
  font-size: var(--font-size-sm);
  font-weight: 500;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.caption {
  font-size: var(--font-size-xs);
  color: var(--text-tertiary);
  font-weight: 400;
}

/* --- Cards --- */
.card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border);
  transition: transform var(--duration-fast) var(--ease-out),
              box-shadow var(--duration-fast) var(--ease-out);
}

.card--interactive {
  cursor: pointer;
  -webkit-user-select: none;
  user-select: none;
}

.card--interactive:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.card--interactive:active {
  transform: translateY(0) scale(0.98);
  box-shadow: var(--shadow-sm);
}

.card--game {
  padding: var(--space-xl);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.card--game .card__icon {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-md);
  font-size: 28px;
}

.card--game .card__title {
  font-size: var(--font-size-lg);
  font-weight: 600;
  margin-bottom: var(--space-xs);
}

.card--game .card__desc {
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 14px var(--space-lg);
  border-radius: var(--radius-md);
  font-family: var(--font-family);
  font-size: var(--font-size-base);
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease-out);
  -webkit-user-select: none;
  user-select: none;
  text-decoration: none;
  line-height: 1;
  width: 100%;
}

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

.btn--primary {
  background: var(--text-primary);
  color: var(--text-inverse);
}

.btn--primary:hover {
  background: var(--btn-primary-hover);
}

.btn--secondary {
  background: var(--bg-input);
  color: var(--text-primary);
}

.btn--secondary:hover {
  background: #E8E1D9;
}

.btn--ghost {
  background: transparent;
  color: var(--text-secondary);
  padding: 10px var(--space-md);
}

.btn--ghost:hover {
  background: var(--bg-overlay);
  color: var(--text-primary);
}

.btn--small {
  padding: 10px var(--space-md);
  font-size: var(--font-size-sm);
  border-radius: var(--radius-sm);
}

.btn--icon {
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: var(--radius-full);
  font-size: var(--font-size-xl);
}

.btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
}

/* --- Inputs --- */
.input-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.input-group__label {
  font-size: var(--font-size-sm);
  font-weight: 500;
  color: var(--text-secondary);
}

.input {
  width: 100%;
  padding: 14px var(--space-md);
  background: var(--bg-input);
  border: 2px solid transparent;
  border-radius: var(--radius-md);
  font-family: var(--font-family);
  font-size: var(--font-size-base);
  color: var(--text-primary);
  outline: none;
  transition: border-color var(--duration-fast) var(--ease-out),
              background var(--duration-fast) var(--ease-out);
}

.input:focus {
  border-color: var(--border-focus);
  background: var(--bg-secondary);
}

.input::placeholder {
  color: var(--text-tertiary);
}

.input--large {
  font-size: var(--font-size-2xl);
  font-weight: 600;
  text-align: center;
  letter-spacing: 0.15em;
  padding: var(--space-lg);
}

/* --- Avatar --- */
.avatar {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: var(--font-size-lg);
  color: white;
  flex-shrink: 0;
}

.avatar--large {
  width: 80px;
  height: 80px;
  font-size: var(--font-size-2xl);
}

.avatar--small {
  width: 36px;
  height: 36px;
  font-size: var(--font-size-sm);
}

/* Avatar color picker */
.avatar-picker {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  flex-wrap: wrap;
}

.avatar-picker__option {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  border: 3px solid transparent;
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease-out);
}

.avatar-picker__option:hover {
  transform: scale(1.1);
}

.avatar-picker__option.active {
  border-color: var(--text-primary);
  box-shadow: 0 0 0 3px var(--bg-primary);
}

/* --- Stats --- */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}

.stat-item {
  text-align: center;
  padding: var(--space-md);
  background: var(--bg-input);
  border-radius: var(--radius-md);
}

.stat-item__value {
  font-size: var(--font-size-2xl);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
}

.stat-item__label {
  font-size: var(--font-size-xs);
  color: var(--text-secondary);
  margin-top: var(--space-xs);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 500;
}

/* --- Game Board: Word Mode --- */
.word-grid {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: center;
  margin: var(--space-lg) 0;
}

.word-row {
  display: flex;
  gap: 6px;
}

.word-cell {
  width: 56px;
  height: 56px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--font-size-xl);
  font-weight: 700;
  text-transform: uppercase;
  transition: all var(--duration-fast) var(--ease-out);
  background: var(--bg-card);
}

.word-cell--filled {
  border-color: var(--text-tertiary);
  animation: cellPop var(--duration-fast) var(--ease-out);
}

.word-cell--correct {
  background: var(--correct);
  border-color: var(--correct);
  color: white;
}

.word-cell--present {
  background: var(--present);
  border-color: var(--present);
  color: white;
}

.word-cell--absent {
  background: var(--absent);
  border-color: var(--absent);
  color: white;
}

.word-cell--reveal {
  animation: cellFlip 0.5s var(--ease-out);
}

.word-cell--active {
  border-color: var(--text-primary);
}

@keyframes cellPop {
  0% { transform: scale(1); }
  50% { transform: scale(1.08); }
  100% { transform: scale(1); }
}

@keyframes cellFlip {
  0% { transform: rotateX(0); }
  45% { transform: rotateX(90deg); }
  55% { transform: rotateX(90deg); }
  100% { transform: rotateX(0); }
}

/* --- Turn Indicator --- */
.turn-indicator {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 8px 20px;
  background: var(--bg-card);
  border: 2px solid var(--border);
  border-radius: var(--radius-full);
  margin-bottom: var(--space-md);
  box-shadow: var(--shadow-sm);
  transition: all var(--duration-normal) var(--ease-out);
  font-weight: 600;
}

.turn-indicator--active {
  background: rgba(80, 163, 135, 0.1);
  border-color: var(--correct);
  color: var(--correct);
  animation: pulseActive 2s infinite;
}

@keyframes pulseActive {
  0% { box-shadow: 0 0 0 0 rgba(80, 163, 135, 0.4); }
  70% { box-shadow: 0 0 0 10px rgba(80, 163, 135, 0); }
  100% { box-shadow: 0 0 0 0 rgba(80, 163, 135, 0); }
}

.turn-indicator__dot {
  width: 10px;
  height: 10px;
  border-radius: var(--radius-full);
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(-16px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* --- Keyboard (on-screen) --- */
.keyboard {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: center;
  padding: var(--space-md) 0;
}

.keyboard__row {
  display: flex;
  gap: 5px;
}

.key {
  min-width: 32px;
  height: 50px;
  border: none;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  color: var(--text-primary);
  font-family: var(--font-family);
  font-size: var(--font-size-sm);
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--duration-fast) var(--ease-out);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  text-transform: uppercase;
  -webkit-user-select: none;
  user-select: none;
}

.key:active {
  transform: scale(0.93);
  box-shadow: none;
}

.key--wide {
  min-width: 56px;
  font-size: var(--font-size-xs);
}

.key--correct {
  background: var(--correct);
  color: white;
  border-color: var(--correct);
}

.key--present {
  background: var(--present);
  color: white;
  border-color: var(--present);
}

.key--absent {
  background: var(--absent);
  color: white;
  border-color: var(--absent);
  opacity: 0.6;
}

.keyboard--disabled {
  opacity: 0.5;
  pointer-events: none;
  filter: grayscale(0.5);
}

/* --- Number Pad --- */
.numpad {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-sm);
  max-width: 260px;
  margin: 0 auto;
  padding-bottom: env(safe-area-inset-bottom, 20px);
}

.numpad__key {
  height: 56px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-card);
  color: var(--text-primary);
  font-family: var(--font-family);
  font-size: var(--font-size-xl);
  font-weight: 600;
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease-out);
  box-shadow: var(--shadow-sm);
  -webkit-user-select: none;
  user-select: none;
}

.numpad__key:active {
  transform: scale(0.93);
  box-shadow: none;
  background: var(--bg-input);
}

.numpad__key--action {
  font-size: var(--font-size-sm);
  font-weight: 600;
}

.numpad__key--submit {
  background: var(--text-primary);
  color: var(--text-inverse);
  border-color: var(--text-primary);
}

.numpad__key:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

/* --- Share Link --- */
.share-box {
  background: var(--bg-input);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  text-align: center;
}

.share-box__code {
  font-size: var(--font-size-3xl);
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--text-primary);
  margin: var(--space-md) 0;
}

.share-box__url {
  font-size: var(--font-size-sm);
  color: var(--text-tertiary);
  word-break: break-all;
  margin-bottom: var(--space-md);
}

/* --- Turn Indicator --- */
.turn-indicator {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-xl);
  background: var(--bg-card);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  font-size: var(--font-size-sm);
  font-weight: 500;
  margin: 0 auto var(--space-lg);
  width: fit-content;
}

.turn-indicator__dot {
  width: 8px;
  height: 8px;
  border-radius: var(--radius-full);
  animation: pulse 1.5s var(--ease-in-out) infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.85); }
}

/* --- Header / Nav --- */
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-md) 0;
  margin-bottom: var(--space-md);
}

.header__back {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: var(--bg-input);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--font-size-lg);
  color: var(--text-secondary);
  transition: all var(--duration-fast) var(--ease-out);
}

.header__back:hover {
  background: var(--border);
}

.header__back:active {
  transform: scale(0.93);
}

.header__title {
  font-size: var(--font-size-lg);
  font-weight: 600;
}

.header__action {
  width: 40px;
  height: 40px;
}

/* --- Game Mode Cards on Home --- */
.game-modes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
  margin: var(--space-lg) 0;
}

/* --- Waiting State --- */
.waiting {
  text-align: center;
  padding: var(--space-3xl) var(--space-lg);
}

.waiting__dots {
  display: flex;
  gap: var(--space-sm);
  justify-content: center;
  margin: var(--space-xl) 0;
}

.waiting__dot {
  width: 10px;
  height: 10px;
  border-radius: var(--radius-full);
  background: var(--text-tertiary);
  animation: waitingBounce 1.2s var(--ease-in-out) infinite;
}

.waiting__dot:nth-child(2) { animation-delay: 0.15s; }
.waiting__dot:nth-child(3) { animation-delay: 0.3s; }

@keyframes waitingBounce {
  0%, 80%, 100% { transform: translateY(0); opacity: 0.4; }
  40% { transform: translateY(-10px); opacity: 1; }
}

/* --- Results --- */
.results {
  text-align: center;
  padding: var(--space-xl) 0;
}

.results__trophy {
  font-size: 64px;
  margin-bottom: var(--space-lg);
  animation: trophyBounce 0.6s var(--ease-out);
}

@keyframes trophyBounce {
  0% { transform: scale(0); opacity: 0; }
  60% { transform: scale(1.2); }
  100% { transform: scale(1); opacity: 1; }
}

.results__player-row {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md);
  background: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  margin-bottom: var(--space-sm);
}

.results__player-row--winner {
  border-color: var(--correct);
  background: var(--correct-bg);
}

.results__player-info {
  flex: 1;
  text-align: left;
}

.results__player-name {
  font-weight: 600;
  font-size: var(--font-size-base);
}

.results__player-guesses {
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
}

.results__player-badge {
  padding: 4px 12px;
  border-radius: var(--radius-xl);
  font-size: var(--font-size-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.results__player-badge--won {
  background: var(--correct);
  color: white;
}

.results__player-badge--lost {
  background: var(--absent);
  color: white;
}

.results__player-badge--draw {
  background: var(--present);
  color: white;
}

/* --- Profile Stats Page --- */
.stats-section {
  margin-bottom: var(--space-xl);
  padding-bottom: env(safe-area-inset-bottom, 20px);
}

.stats-section__title {
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-md);
}

.game-type-stat {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md);
  background: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  margin-bottom: var(--space-sm);
}

.game-type-stat__icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.game-type-stat__info {
  flex: 1;
}

.game-type-stat__name {
  font-weight: 600;
  font-size: var(--font-size-base);
}

.game-type-stat__record {
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
}

/* --- Win Rate Bar --- */
.win-rate-bar {
  height: 8px;
  background: var(--bg-input);
  border-radius: var(--radius-xl);
  overflow: hidden;
  margin-top: var(--space-sm);
}

.win-rate-bar__fill {
  height: 100%;
  border-radius: var(--radius-xl);
  background: var(--correct);
  transition: width var(--duration-slow) var(--ease-out);
}

/* --- Toast / Notification --- */
.toast {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(-100px);
  background: var(--text-primary);
  color: var(--text-inverse);
  padding: 12px var(--space-lg);
  border-radius: var(--radius-xl);
  font-size: var(--font-size-sm);
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  z-index: 1000;
  transition: transform var(--duration-normal) var(--ease-out);
  pointer-events: none;
}

.toast--visible {
  transform: translateX(-50%) translateY(0);
}

/* --- Error State --- */
.error-text {
  color: var(--accent-coral);
  font-size: var(--font-size-sm);
  font-weight: 500;
  margin-top: var(--space-xs);
}

/* --- Spacing Helpers --- */
.mt-xs { margin-top: var(--space-xs); }
.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }
.mt-2xl { margin-top: var(--space-2xl); }
.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }
.gap-sm { gap: var(--space-sm); }
.gap-md { gap: var(--space-md); }
.text-center { text-align: center; }
.flex-col { display: flex; flex-direction: column; }
.flex-1 { flex: 1; }

/* --- Responsive --- */
@media (max-width: 400px) {
  .word-cell {
    width: 48px;
    height: 48px;
    font-size: var(--font-size-lg);
  }

  .key {
    min-width: 28px;
    height: 44px;
    font-size: var(--font-size-xs);
  }

  .heading-1 {
    font-size: var(--font-size-2xl);
  }
}
