/* ── Base ── */
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  background: #f8f9fa;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh; /* fallback for older browsers */
  height: 100dvh;
  font-family: 'Google Sans', sans-serif;
  overflow: hidden;
}
canvas { display: block; touch-action: manipulation; }
#gameContainer {
  position: relative;
  overflow: hidden;
}

/* ── Start Screen Overlay ── */
#startOverlay {
  display: none;
  position: absolute; inset: 0; z-index: 20;
  background: transparent;
  align-items: center;
  justify-content: center;
  font-family: 'Google Sans', sans-serif;
}
#startOverlay.visible { display: flex; }

#startCard {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 40px 32px;
  max-width: 440px;
  width: calc(100% - 32px);
  background: rgba(255, 255, 255, 0.97);
  border-radius: 20px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08), 0 2px 6px rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(0, 0, 0, 0.06);
}
#startOverlay.dark #startCard {
  background: rgba(30, 30, 30, 0.97);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25), 0 2px 6px rgba(0, 0, 0, 0.15);
}
.start-icon {
  margin-bottom: 28px;
  line-height: 0;
}
.start-title {
  font-size: 56px;
  font-weight: 700;
  color: #202124;
  line-height: 1;
  margin-bottom: 20px;
  letter-spacing: -0.5px;
}
#startOverlay.dark .start-title { color: #e8eaed; }
.start-tagline {
  font-size: 22px;
  font-weight: 400;
  color: #3c4043;
  line-height: 1.3;
  margin-bottom: 40px;
}
#startOverlay.dark .start-tagline { color: #bdc1c6; }
.start-hint {
  font-size: 14px;
  font-weight: 600;
  color: #3c4043;
  line-height: 1.5;
  margin-bottom: 32px;
  max-width: 360px;
}
.start-hint kbd {
  display: inline-block;
  padding: 2px 8px;
  border: 1px solid #dadce0;
  border-bottom-width: 2px;
  border-radius: 4px;
  background: #f8f9fa;
  font-family: 'Google Sans', sans-serif;
  font-size: 11px;
  color: #3c4043;
  font-weight: 500;
  margin: 0 2px;
}
#startOverlay.dark .start-hint { color: #e8eaed; }
#startOverlay.dark .start-hint kbd {
  background: #2d2d2d;
  border-color: #3c3d40;
  color: #e8eaed;
}
.start-key-hint {
  margin-top: 12px;
  font-size: 12px;
  color: #9aa0a6;
}
.start-key-hint kbd {
  display: inline-block;
  padding: 2px 8px;
  border: 1px solid #dadce0;
  border-bottom-width: 2px;
  border-radius: 4px;
  background: #f8f9fa;
  font-family: 'Google Sans', sans-serif;
  font-size: 11px;
  color: #3c4043;
  font-weight: 500;
  margin-left: 2px;
}
#startOverlay.dark .start-key-hint { color: #5f6368; }
#startOverlay.dark .start-key-hint kbd {
  background: #2d2d2d;
  border-color: #3c3d40;
  color: #e8eaed;
}
.start-btn {
  background: #1a73e8;
  color: #fff;
  border: none;
  padding: 18px 56px;
  font-size: 20px;
  font-weight: 700;
  border-radius: 32px;
  cursor: pointer;
  font-family: 'Google Sans', sans-serif;
  transition: transform 0.1s, background 0.1s;
  min-width: 180px;
}
.start-btn:hover { background: #4285f4; transform: scale(1.03); }
.start-btn:disabled { background: #dadce0; color: #9aa0a6; cursor: default; transform: none; }
.start-btn:disabled:hover { background: #dadce0; transform: none; }
#nameEntryOverlay.dark .start-btn:disabled { background: #3c3d40; color: #5f6368; }
.start-footer {
  margin-top: 32px;
  font-size: 14px;
  color: #5f6368;
  display: flex;
  align-items: center;
  gap: 6px;
}
#startOverlay.dark .start-footer { color: #9aa0a6; }
.start-change-link {
  color: #1a73e8;
  cursor: pointer;
  text-decoration: none;
}
.start-change-link:hover { text-decoration: underline; }
.theme-toggle-btn {
  margin-top: 36px;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid #dadce0;
  background: #fff;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  transition: background 0.15s;
}
.theme-toggle-btn:hover { background: #f1f3f4; }
#startOverlay.dark .theme-toggle-btn {
  background: #2d2d2d;
  border-color: #3c3d40;
}
#startOverlay.dark .theme-toggle-btn:hover { background: #3c3d40; }

/* ── Name Entry Overlay ── */
#nameEntryOverlay {
  display: none;
  position: absolute; inset: 0; z-index: 20;
  background: transparent;
  align-items: center;
  justify-content: center;
  font-family: 'Google Sans', sans-serif;
}
#nameEntryOverlay.visible { display: flex; }
#nameEntryCard {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 40px 32px;
  max-width: 420px;
  width: calc(100% - 32px);
  background: rgba(255, 255, 255, 0.97);
  border-radius: 20px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08), 0 2px 6px rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(0, 0, 0, 0.06);
}
#nameEntryOverlay.dark #nameEntryCard {
  background: rgba(30, 30, 30, 0.97);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25), 0 2px 6px rgba(0, 0, 0, 0.15);
}
.name-title {
  font-size: 36px;
  font-weight: 700;
  color: #202124;
  margin-bottom: 8px;
  line-height: 1.1;
}
#nameEntryOverlay.dark .name-title { color: #e8eaed; }
.name-subtitle {
  font-size: 14px;
  color: #5f6368;
  margin-bottom: 28px;
}
#nameEntryOverlay.dark .name-subtitle { color: #9aa0a6; }
.name-input-field {
  width: 280px;
  padding: 14px 18px;
  font-family: 'Google Sans', sans-serif;
  font-size: 18px;
  text-align: center;
  border: 2px solid #dadce0;
  border-radius: 14px;
  outline: none;
  background: #fff;
  color: #202124;
  margin-bottom: 24px;
  transition: border-color 0.15s;
}
.name-input-field:focus { border-color: #1a73e8; }
#nameEntryOverlay.dark .name-input-field {
  background: #2d2d2d;
  color: #e8eaed;
  border-color: #3c3d40;
}
#nameEntryOverlay.dark .name-input-field:focus { border-color: #4285f4; }
.name-cancel-link {
  margin-top: 14px;
  font-size: 13px;
  color: #5f6368;
  cursor: pointer;
  text-decoration: none;
}
.name-cancel-link:hover { color: #1a73e8; text-decoration: underline; }
#nameEntryOverlay.dark .name-cancel-link { color: #9aa0a6; }
#nameEntryOverlay.dark .name-cancel-link:hover { color: #8ab4f8; }
.name-error {
  display: none;
  color: #ea4335;
  font-size: 13px;
  margin-top: -16px;
  margin-bottom: 16px;
  text-align: center;
}

/* ── Death Screen Overlay ── */
#deathOverlay {
  display: none;
  position: absolute; inset: 0; z-index: 20;
  background: rgba(32, 33, 36, 0.55);
  flex-direction: column;
  align-items: center;
  padding: 0;
  font-family: 'Google Sans', sans-serif;
  overflow: hidden;
}
#deathOverlay.visible { display: flex; }

#deathCard {
  width: 100%; max-width: 560px;
  display: flex; flex-direction: column;
  height: 100%;
  padding: 12px 16px 16px;
  gap: 10px;
}

/* Death message */
.death-msg {
  text-align: center;
  color: #ea4335;
  font-weight: 700;
  font-size: 30px;
  line-height: 1.3;
  min-height: 28px;
  flex-shrink: 0;
  text-shadow: 0 2px 8px rgba(234, 67, 53, 0.4);
}

/* Hero header */
.hero-group {
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
}
.hero-header {
  background: linear-gradient(135deg, #4285f4 0%, #1a56db 100%);
  border-radius: 16px 16px 0 0;
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}
/* If the hero is the only card in the group, round all corners */
.hero-group .hero-header:only-child { border-radius: 16px; }
.hero-header.new-best {
  background: linear-gradient(135deg, #34a853 0%, #1e7e34 100%);
}
.hero-rank {
  color: rgba(255,255,255,0.95);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.hero-rank-num {
  color: #fff;
  font-size: 52px;
  font-weight: 700;
  line-height: 1;
  margin-top: 2px;
}
.hero-stats {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: flex-end;
}
.hero-score-box {
  background: rgba(255,255,255,0.18);
  border-radius: 12px;
  padding: 10px 18px;
  text-align: center;
}
.hero-score-label {
  color: rgba(255,255,255,0.7);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.hero-score-val {
  color: #fff;
  font-size: 32px;
  font-weight: 700;
  line-height: 1.1;
}
.hero-distance {
  color: rgba(255,255,255,0.7);
  font-size: 12px;
  margin-top: 4px;
}

/* Best effort section */
.best-section { flex-shrink: 0; }
.section-title {
  color: #9aa0a6;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.best-card {
  background: linear-gradient(135deg, #6aa0f7 0%, #4285f4 100%);
  border-radius: 0 0 16px 16px;
  padding: 10px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.best-avatar {
  width: 32px; height: 32px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; color: #fff;
  flex-shrink: 0;
  background: rgba(255,255,255,0.2);
  stroke: #fff;
}
.best-info { flex: 1; }
.best-label { color: #fff; font-size: 13px; font-weight: 600; }
.best-date { color: rgba(255,255,255,0.75); font-size: 10px; margin-top: 1px; }
.best-score-wrap { text-align: right; }
.best-score { color: #fff; font-size: 18px; font-weight: 700; }
.best-rank { color: rgba(255,255,255,0.75); font-size: 10px; margin-top: 2px; }

/* Leaderboard section */
.lb-section {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  background: #2d2e30;
  border-radius: 12px;
  overflow: hidden;
}
.lb-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-shrink: 0;
  background: #3c3d40;
  padding: 10px 14px;
  border-radius: 12px 12px 0 0;
  border-bottom: 1px solid #2d2e30;
}
.lb-header .section-title { color: #e8eaed; }
.lb-count {
  color: #bdc1c6;
  font-size: 11px;
  background: rgba(0, 0, 0, 0.25);
  padding: 3px 10px;
  border-radius: 10px;
}
.lb-list {
  flex: 1;
  overflow-y: auto;
  overscroll-behavior: contain;
  border-radius: 0 0 12px 12px;
  background: #2d2e30;
  scrollbar-width: thin;
  scrollbar-color: #5f6368 transparent;
}
.lb-list::-webkit-scrollbar { width: 6px; }
.lb-list::-webkit-scrollbar-track { background: transparent; }
.lb-list::-webkit-scrollbar-thumb { background: #5f6368; border-radius: 3px; }

.lb-row {
  display: flex;
  align-items: center;
  padding: 8px 12px;
  gap: 10px;
  border-bottom: 1px solid #3c3d40;
}
.lb-row:last-child { border-bottom: none; }
.lb-row.current {
  background: #1a3a5c;
  border-left: 3px solid #1a73e8;
  padding-left: 9px;
}
.lb-row.separator {
  justify-content: center;
  padding: 4px 0;
  color: #5f6368;
  font-size: 14px;
  border-bottom: 1px solid #3c3d40;
}
.lb-rank {
  width: 28px;
  text-align: center;
  font-size: 13px;
  color: #9aa0a6;
  flex-shrink: 0;
}
.lb-row.current .lb-rank { color: #8ab4f8; font-weight: 700; }
.lb-rank-medal { font-size: 16px; }
.lb-avatar {
  width: 28px; height: 28px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 13px; color: #fff;
  flex-shrink: 0;
}
.lb-name-col { flex: 1; min-width: 0; }
.lb-name {
  font-size: 14px;
  color: #e8eaed;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.lb-row.current .lb-name { color: #fff; font-weight: 700; }
.lb-days {
  font-size: 11px;
  color: #9aa0a6;
  margin-top: 1px;
}
.lb-row.current .lb-days { color: #8ab4f8; }
.lb-score-col {
  flex-shrink: 0;
  text-align: right;
}
.lb-score {
  font-size: 14px;
  color: #bdc1c6;
  font-weight: 600;
}
.lb-row.current .lb-score { color: #8ab4f8; font-weight: 700; }

/* Loading state */
.lb-loading {
  padding: 40px 20px;
  text-align: center;
  color: #9aa0a6;
  font-size: 13px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.spinner {
  width: 28px; height: 28px;
  border: 3px solid rgba(255,255,255,0.15);
  border-top-color: #1a73e8;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.rank-loading {
  font-size: 36px;
  color: rgba(255,255,255,0.4);
  letter-spacing: 4px;
}
#deathOverlay.light .rank-loading { color: rgba(0,0,0,0.3); }
#deathOverlay.light .spinner { border-color: rgba(0,0,0,0.1); border-top-color: #1a73e8; }

/* Action row (share + restart side by side) */
.death-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
  margin-top: 6px;
}
.death-actions > button { flex: 1; width: auto; margin-top: 0; }

/* Restart button */
.restart-btn {
  flex-shrink: 0;
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 24px;
  background: #1a73e8;
  color: #fff;
  font-family: 'Google Sans', sans-serif;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  letter-spacing: 0.5px;
  transition: background 0.15s, transform 0.1s;
  margin-top: 6px;
}
.restart-btn:hover { background: #4285f4; transform: scale(1.03); }
.restart-btn:disabled {
  background: rgba(255,255,255,0.08);
  color: #9aa0a6;
  cursor: default;
  border: 1px solid rgba(255,255,255,0.12);
}
.share-btn {
  flex-shrink: 0;
  width: 100%;
  padding: 14px;
  border: 2px solid #1a73e8;
  border-radius: 24px;
  background: rgba(255,255,255,0.9);
  color: #1a73e8;
  font-family: 'Google Sans', sans-serif;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  letter-spacing: 0.5px;
  transition: all 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.share-btn:hover { background: #fff; border-color: #1557b0; transform: scale(1.03); }
.share-btn.copied {
  border-color: #34a853;
  color: #34a853;
}
.back-link {
  display: block;
  text-align: center;
  margin-top: 14px;
  color: #9aa0a6;
  font-size: 13px;
  text-decoration: none;
  cursor: pointer;
  flex-shrink: 0;
}
.back-link:hover { color: #e8eaed; text-decoration: underline; }
#deathOverlay.light .back-link { color: #5f6368; }
#deathOverlay.light .back-link:hover { color: #202124; }

/* ── Light mode overrides ── */
#deathOverlay.light { background: rgba(248, 249, 250, 0.7); }
/* best-card keeps its blue gradient in light mode so it visually matches the hero */
#deathOverlay.light .section-title { color: #5f6368; }
#deathOverlay.light .lb-header { background: #f1f3f4; border-bottom-color: #dadce0; }
#deathOverlay.light .lb-header .section-title { color: #3c4043; }
#deathOverlay.light .lb-count { color: #5f6368; background: rgba(0,0,0,0.08); }
#deathOverlay.light .lb-section { background: #fff; border: 1px solid #dadce0; }
#deathOverlay.light .lb-list { background: #fff; }
#deathOverlay.light .lb-list::-webkit-scrollbar-thumb { background: #bdc1c6; }
#deathOverlay.light .lb-row { border-bottom-color: #e8eaed; }
#deathOverlay.light .lb-row.current { background: #e8f0fe; }
#deathOverlay.light .lb-row.separator { color: #9aa0a6; border-bottom-color: #e8eaed; }
#deathOverlay.light .lb-rank { color: #5f6368; }
#deathOverlay.light .lb-row.current .lb-rank { color: #1a73e8; }
#deathOverlay.light .lb-name { color: #202124; }
#deathOverlay.light .lb-row.current .lb-name { color: #1a73e8; }
#deathOverlay.light .lb-days { color: #70757a; }
#deathOverlay.light .lb-row.current .lb-days { color: #1a73e8; }
#deathOverlay.light .lb-score { color: #3c4043; }
#deathOverlay.light .lb-row.current .lb-score { color: #1a73e8; }
#deathOverlay.light .share-btn { background: rgba(255,255,255,0.9); border-color: #1a73e8; color: #1a73e8; }
#deathOverlay.light .share-btn:hover { background: #fff; border-color: #1557b0; }
#deathOverlay.light .restart-btn:disabled { background: #f1f3f4; color: #9aa0a6; border: 1px solid #dadce0; }

/* ── Mobile (< 640px) ── */
@media (max-width: 640px) {
  /* Start + name entry screens */
  #startCard, #nameEntryCard {
    padding: 24px 18px;
    width: calc(100% - 16px);
    max-height: 95vh;
    overflow-y: auto;
  }
  .start-icon { margin-bottom: 18px; }
  .start-icon svg { width: 100px; height: 56px; }
  .start-title { font-size: 38px; margin-bottom: 14px; }
  .start-tagline { font-size: 17px; margin-bottom: 24px; }
  .start-hint { font-size: 13px; margin-bottom: 20px; max-width: none; }
  .start-btn {
    padding: 14px 40px;
    font-size: 17px;
    min-width: 160px;
  }
  .start-key-hint { margin-top: 10px; font-size: 11px; }
  .start-footer { margin-top: 20px; font-size: 13px; }
  .theme-toggle-btn {
    margin-top: 22px;
    width: 38px; height: 38px;
    font-size: 17px;
  }
  .name-title { font-size: 28px; }
  .name-subtitle { font-size: 13px; margin-bottom: 20px; }
  .name-input-field { width: 100%; font-size: 16px; padding: 12px 14px; margin-bottom: 16px; }

  /* Death screen */
  #deathCard {
    padding: 10px 10px 12px;
    gap: 8px;
    max-width: 100%;
  }
  .death-msg {
    font-size: 18px;
    min-height: 22px;
    padding: 0 8px;
  }
  .hero-header {
    padding: 14px;
    gap: 12px;
    border-radius: 12px 12px 0 0;
  }
  .hero-header:not(:has(+ .best-card)) { border-radius: 12px; }
  .hero-rank { font-size: 10px; }
  .hero-rank-num { font-size: 36px; }
  .hero-score-box { padding: 8px 14px; border-radius: 10px; }
  .hero-score-label { font-size: 9px; }
  .hero-score-val { font-size: 24px; }
  .hero-distance { font-size: 11px; }
  .rank-loading { font-size: 24px; }
  .best-card {
    padding: 10px 12px;
    gap: 10px;
    border-radius: 0 0 12px 12px;
  }
  .best-avatar { width: 30px; height: 30px; }
  .best-label { font-size: 13px; }
  .best-date { font-size: 10px; }
  .best-score { font-size: 17px; }
  .best-rank { font-size: 10px; }
  .section-title { font-size: 10px; }
  .lb-count { font-size: 10px; }
  .lb-row { padding: 6px 10px; gap: 8px; }
  .lb-rank { width: 22px; font-size: 11px; }
  .lb-rank-medal { font-size: 14px; }
  .lb-avatar { width: 24px; height: 24px; font-size: 11px; }
  .lb-name { font-size: 12px; }
  .lb-days { font-size: 10px; }
  .lb-score { font-size: 12px; }
  .restart-btn, .share-btn {
    padding: 12px;
    font-size: 13px;
  }
  .back-link { font-size: 12px; margin-top: 10px; }
}

/* ── Landscape / very short screens ── */
@media (max-height: 500px) {
  #deathOverlay { justify-content: center; padding: 6px; }
  /* 2-column grid: hero/actions on left, leaderboard on right */
  #deathCard {
    display: grid;
    grid-template-columns: minmax(0, 240px) minmax(0, 1fr);
    grid-template-rows: auto 1fr auto;
    grid-template-areas:
      "msg   msg"
      "hero  lb"
      "acts  lb";
    column-gap: 10px;
    row-gap: 6px;
    padding: 8px 10px;
    max-height: calc(100vh - 12px);
    max-width: 780px;
    width: 100%;
  }
  .death-msg { grid-area: msg; font-size: 14px; min-height: 18px; padding: 0 4px; text-align: center; }
  .hero-group { grid-area: hero; gap: 0; }
  .lb-section { grid-area: lb; min-height: 0; }
  .death-actions { grid-area: acts; margin-top: 0; }
  /* Back link spans full width at the bottom — put inside acts row */
  .back-link { display: none; }

  /* Compact hero in the left column */
  .hero-header {
    padding: 10px 12px;
    gap: 8px;
    border-radius: 10px 10px 0 0;
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }
  .hero-rank { font-size: 9px; }
  .hero-rank-num { font-size: 22px; }
  .hero-stats { align-items: center; }
  .hero-score-box { padding: 5px 10px; border-radius: 6px; width: 100%; }
  .hero-score-label { font-size: 8px; }
  .hero-score-val { font-size: 16px; }
  .hero-distance { font-size: 9px; margin-top: 1px; }
  .rank-loading { font-size: 18px; }
  /* Best card — compact footer */
  .hero-group .best-card { display: flex; padding: 6px 10px; border-radius: 0 0 10px 10px; gap: 8px; }
  .best-section { display: none; }
  .best-avatar { width: 24px; height: 24px; }
  .best-label { font-size: 11px; }
  .best-date { font-size: 9px; }
  .best-score { font-size: 14px; }
  .best-rank { font-size: 9px; }
  .lb-section { min-height: 70px; }
  .lb-row { padding: 5px 10px; }
  .lb-rank { width: 22px; font-size: 11px; }
  .lb-rank-medal { font-size: 13px; }
  .lb-avatar { width: 22px; height: 22px; font-size: 11px; }
  .lb-name { font-size: 12px; }
  .lb-days { font-size: 9px; }
  .lb-score { font-size: 12px; }
  .share-btn, .restart-btn {
    padding: 8px;
    font-size: 11px;
  }
  .back-link { font-size: 11px; margin-top: 4px; }

  /* Start + name entry: scale down, scroll if needed */
  #startCard, #nameEntryCard {
    padding: 14px 18px;
    max-height: calc(100vh - 12px);
    overflow-y: auto;
  }
  .start-icon { margin-bottom: 8px; }
  .start-icon svg { width: 70px; height: 40px; }
  .start-title { font-size: 26px; margin-bottom: 8px; }
  .start-tagline { font-size: 14px; margin-bottom: 10px; }
  .start-hint { font-size: 11px; margin-bottom: 10px; line-height: 1.4; }
  .start-btn { padding: 10px 32px; font-size: 14px; min-width: 140px; }
  .start-key-hint { margin-top: 6px; font-size: 10px; }
  .start-footer { margin-top: 10px; font-size: 12px; }
  .theme-toggle-btn { margin-top: 12px; width: 32px; height: 32px; font-size: 14px; }
  .name-title { font-size: 22px; margin-bottom: 4px; }
  .name-subtitle { font-size: 11px; margin-bottom: 10px; }
  .name-input-field { padding: 10px 14px; font-size: 15px; margin-bottom: 10px; }
}
