* {
  box-sizing: border-box;
}

:root {
  --gap: 3px;
  --cell: min(42px, calc((100vw - 52px - (11 * var(--gap))) / 12));
  font-family: 'Avenir Next', 'Avenir', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

body { 
  margin: 0; 
  background: #f5f1e8;
  color: #2a2a2a;
  line-height: 1.6;
}

header { 
  padding: 24px 24px 16px;
  background: #fff;
  border-bottom: 2px solid #d4c5a9;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

header h1 { 
  margin: 0; 
  font-size: 28px; 
  font-weight: 600;
  color: #1a1a1a;
  letter-spacing: -0.5px;
  font-family: 'Avenir Next', 'Avenir', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

header p { 
  margin: 8px 0 0; 
  color: #5a5a5a;
  font-size: 15px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.wrap { 
  display: grid; 
  grid-template-columns: 1fr; 
  gap: 20px; 
  padding: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

@media (min-width: 700px) {
  .wrap { 
    grid-template-columns: 1fr; 
    align-items: start; 
    gap: 32px; 
    padding: 32px; 
  }
  
  /* Compact clues on desktop */
  .panel.clues {
    padding: 12px;
  }
  
  .clue {
    padding: 5px 10px;
    margin-bottom: 2px;
    border-width: 1px;
  }
  
  .clue .text {
    font-size: 12px;
    line-height: 1.25;
  }
  
  .clues h2 {
    font-size: 15px;
    margin-bottom: 4px;
    padding-bottom: 3px;
  }
  
  .row {
    margin-bottom: 4px;
  }
  
  :root { --cell: min(52px, calc((100vw - 142px) / 12)); }
}

.panel { 
  background: #fff;
  border: 1px solid #d4c5a9;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.08);
}

.grid-container {
  background: #fdfcfa;
  border: 2px solid #b8a888;
  border-radius: 6px;
  padding: 12px;
  transition: opacity 0.3s ease;
}

.grid-container.locked {
  opacity: 0.6;
  pointer-events: none;
}

.grid {
  display: grid;
  grid-template-columns: repeat(12, var(--cell));
  grid-template-rows: repeat(12, var(--cell));
  gap: var(--gap);
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}

.cell {
  width: var(--cell); 
  height: var(--cell);
  display: grid; 
  place-items: center;
  border-radius: 4px;
  font-weight: 600;
  font-size: 18px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  letter-spacing: 0.5px;
  border: 1.5px solid #c4b599;
  background: #f9f7f4;
  color: #2a2a2a;
  position: relative;
  transition: all 0.12s ease;
  cursor: pointer;
}

.cell:hover {
  border-color: #a89775;
  background: #fff;
  transform: scale(1.03);
}

.cell.hidden {
  background: linear-gradient(135deg, #e8e4d9 0%, #ded9cb 100%);
  border-color: #c9c1b0;
  color: transparent;
  position: relative;
}

.cell.hidden::before {
  content: "";
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(circle at 30% 40%, rgba(255,255,255,0.4), transparent 60%),
    radial-gradient(circle at 70% 60%, rgba(255,255,255,0.2), transparent 50%);
  border-radius: 4px;
}

.cell.revealed {
  background: #fff;
  border-color: #b8a888;
  color: #2a2a2a;
}

.cell.sel { 
  outline: 3px solid #6b9bd1;
  outline-offset: -2px;
  background: #e3f0ff;
  border-color: #6b9bd1;
  transform: scale(1.05);
  z-index: 10;
  color: #1a1a1a;
  font-weight: 700;
}

.cell.found { 
  background: #d4edda;
  outline: 3px solid #5fa76f;
  outline-offset: -2px;
  border-color: #5fa76f;
  color: #1a5928;
  font-weight: 700;
}

.clues h2 { 
  margin: 0 0 16px; 
  font-size: 18px; 
  font-weight: 600;
  color: #1a1a1a;
  font-family: 'Avenir Next', 'Avenir', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  padding-bottom: 8px;
  border-bottom: 1px solid #e0d8c5;
}

.clue {
  padding: 6px 10px;
  border-radius: 6px;
  border: 1px solid #e0d8c5;
  background: #fdfcfa;
  margin-bottom: 6px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: all 0.15s ease;
}

.clue:hover {
  background: #fff;
  border-color: #c9c1b0;
}

.clue .text { 
  font-size: 14px;
  line-height: 1.5;
  color: #2a2a2a;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.clue .meta { 
  font-size: 12px;
  color: #6a6a6a;
}

.clue.found { 
  background: #f0f8f1;
  border-color: #b8d4be;
}

.clue.found .text {
  color: #5a5a5a;
  text-decoration: line-through;
  opacity: 0.7;
}

.badge { 
  padding: 3px 9px;
  border-radius: 12px;
  font-size: 11px; 
  font-weight: 600;
  border: 1px solid #c9c1b0;
  background: #f5f1e8;
  color: #5a5a5a;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.row { 
  display: flex; 
  gap: 12px; 
  flex-wrap: wrap; 
  align-items: center; 
  justify-content: space-between; 
  margin-bottom: 16px;
}

button {
  appearance: none;
  border: 1.5px solid #a89775;
  background: #fff;
  color: #2a2a2a;
  border-radius: 6px;
  padding: 9px 16px;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.15s ease;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

button:hover {
  background: #f9f7f4;
  border-color: #8a7960;
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

button:active { 
  transform: translateY(0px);
  box-shadow: none;
}

.status {
  font-size: 14px;
  font-weight: 600;
  color: #6b9bd1;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.tip {
  margin-top: 16px;
  padding: 12px;
  background: #fdfcfa;
  border: 1px solid #e0d8c5;
  border-radius: 6px;
  font-size: 13px;
  color: #6a6a6a;
  line-height: 1.5;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* Hero Word Challenge Popup */
.hero-popup {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  align-items: center;
  justify-content: center;
}

.hero-popup.show {
  display: flex;
  animation: fadeIn 0.3s ease;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
}

.hero-modal {
  position: relative;
  background: #fff;
  border: 3px solid #d4c5a9;
  border-radius: 16px;
  padding: 32px;
  max-width: 500px;
  width: 90%;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  animation: slideUp 0.4s ease;
}

.hero-close-x {
  position: absolute;
  top: 12px;
  right: 12px;
  background: transparent;
  border: none;
  font-size: 32px;
  line-height: 1;
  color: #8a7960;
  cursor: pointer;
  padding: 4px 8px;
  transition: all 0.2s ease;
  font-weight: 300;
}

.hero-close-x:hover {
  color: #2a2a2a;
  transform: scale(1.1);
  background: transparent;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from { 
    opacity: 0;
    transform: translateY(30px) scale(0.95);
  }
  to { 
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.hero-modal h3 {
  margin: 0 0 16px;
  font-size: 24px;
  font-weight: 600;
  color: #1a1a1a;
  font-family: 'Avenir Next', 'Avenir', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.hero-modal .final-clue {
  font-size: 16px;
  color: #5a5a5a;
  margin-bottom: 24px;
  font-style: italic;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.letter-boxes {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.hero-input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 1px;
  height: 1px;
}

.hero-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 20px;
}

.hero-hint-btn,
.hero-share-btn,
.hero-type-btn {
  flex: 1;
  max-width: 180px;
  padding: 12px 20px;
  font-size: 15px;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 2px solid;
}

.hero-type-btn {
  background: #8e7cc3;
  border-color: #8e7cc3;
  color: #fff;
  margin: 10px auto;
  display: none; /* Hidden by default, shown on mobile */
  max-width: 200px;
}

.hero-type-btn:hover {
  background: #7a6aad;
  border-color: #7a6aad;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(142, 124, 195, 0.3);
}

.hero-hint-btn {
  background: #6b9bd1;
  border-color: #6b9bd1;
  color: #fff;
}

.hero-hint-btn:hover {
  background: #5a8ab8;
  border-color: #5a8ab8;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(107, 155, 209, 0.3);
}

.hero-share-btn {
  background: #5fa76f;
  border-color: #5fa76f;
  color: #fff;
}

.hero-share-btn:hover {
  background: #4d8c5c;
  border-color: #4d8c5c;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(95, 167, 111, 0.3);
}

.hero-result {
  margin-top: 12px;
  font-size: 14px;
  font-weight: 600;
  display: none;
}

.letter-box {
  width: 50px;
  height: 60px;
  border: 2px solid #c4b599;
  border-radius: 8px;
  background: #fdfcfa;
  display: grid;
  place-items: center;
  font-size: 28px;
  font-weight: 700;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: #2a2a2a;
  text-transform: uppercase;
  transition: all 0.2s ease;
  cursor: default;
}

.letter-box.active {
  border-color: #6b9bd1;
  border-width: 3px;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(107, 155, 209, 0.2);
}

.letter-box.correct {
  background: #d4edda;
  border-color: #5fa76f;
  color: #1a5928;
  border-width: 3px;
}

.letter-box.wrong {
  animation: shake 0.3s ease;
  border-color: #dc3545;
  background: #ffe6e6;
  border-width: 3px;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-10px); }
  75% { transform: translateX(10px); }
}

.hero-hint {
  font-size: 13px;
  color: #8a7960;
  margin-top: 16px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.victory-message {
  display: none;
  margin-top: 20px;
  padding: 20px;
  background: #d4edda;
  border: 2px solid #5fa76f;
  border-radius: 12px;
  font-size: 18px;
  font-weight: 600;
  color: #1a5928;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.victory-message.show {
  display: block;
  animation: slideUp 0.4s ease;
}

.close-button {
  margin-top: 20px;
  padding: 12px 32px;
  background: #5fa76f;
  border: 2px solid #5fa76f;
  color: #fff;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.close-button:hover {
  background: #4d8c5c;
  border-color: #4d8c5c;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(95, 167, 111, 0.3);
}

.close-button:active {
  transform: translateY(0);
}

@keyframes confetti-fall {
  to {
    transform: translateY(100vh) rotate(720deg);
    opacity: 0;
  }
}

/* Hint Button */
.header-buttons {
  display: flex;
  gap: 8px;
  align-items: center;
}

.hint-button {
  background: #6b9bd1 !important;
  border-color: #6b9bd1 !important;
  color: #fff !important;
  font-size: 14px !important;
  padding: 8px 16px !important;
}

.hint-button:hover {
  background: #5a8ab8 !important;
  border-color: #5a8ab8 !important;
}

.share-button {
  background: #5fa76f !important;
  border-color: #5fa76f !important;
  color: #fff !important;
  font-size: 14px !important;
  padding: 8px 16px !important;
}

.share-button:hover {
  background: #4d8c5c !important;
  border-color: #4d8c5c !important;
}

/* Hint Popup Modal */
.hint-popup {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
  align-items: center;
  justify-content: center;
}

.hint-popup.show {
  display: flex;
  animation: fadeIn 0.3s ease;
}

.hint-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
}

.hint-modal {
  position: relative;
  background: #fff;
  border: 3px solid #d4c5a9;
  border-radius: 12px;
  padding: 30px;
  max-width: 450px;
  width: 90%;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
  animation: slideUp 0.4s ease;
}

.hint-modal h3 {
  margin: 0 0 12px;
  font-size: 22px;
  font-weight: 600;
  color: #1a1a1a;
  font-family: 'Avenir Next', 'Avenir', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.hint-message {
  font-size: 15px;
  color: #5a5a5a;
  margin-bottom: 20px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.hint-ad-container {
  background: #f5f1e8;
  border: 2px solid #d4c5a9;
  border-radius: 8px;
  padding: 40px 20px;
  margin-bottom: 20px;
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hint-ad-placeholder {
  text-align: center;
}

.hint-ad-placeholder p {
  color: #999;
  font-size: 13px;
  margin-bottom: 15px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.hint-countdown {
  font-size: 48px;
  font-weight: 700;
  color: #6b9bd1;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.hint-timer-text {
  font-size: 14px;
  color: #6a6a6a;
  margin-bottom: 15px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.hint-close-btn {
  background: #5fa76f;
  border: 2px solid #5fa76f;
  color: #fff;
  padding: 12px 32px;
  font-size: 16px;
  font-weight: 700;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.hint-close-btn:hover {
  background: #4d8c5c;
  border-color: #4d8c5c;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(95, 167, 111, 0.3);
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from { 
    opacity: 0;
    transform: translateY(30px) scale(0.95);
  }
  to { 
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 599px) {
  .hint-modal {
    padding: 25px 20px;
  }
  
  .hint-modal h3 {
    font-size: 20px;
  }
  
  .hint-countdown {
    font-size: 40px;
  }
  
  .hint-ad-container {
    padding: 30px 15px;
    min-height: 180px;
  }
}



/* Flash animation for hint reveals */
@keyframes flash {
  0%, 100% {
    background: #d4edda;
    border-color: #5fa76f;
  }
  50% {
    background: #fff;
    border-color: #6b9bd1;
    box-shadow: 0 0 20px rgba(107, 155, 209, 0.5);
  }
}

/* Mobile responsive adjustments for hero popup */
@media (max-width: 599px) {
  .hero-modal {
    padding: 25px 20px;
  }
  
  .hero-buttons {
    flex-direction: column;
    gap: 10px;
  }
  
  .hero-hint-btn,
  .hero-share-btn {
    max-width: 100%;
  }
  
  .letter-box {
    width: 45px;
    height: 55px;
    font-size: 24px;
  }
  
  /* Header buttons mobile - stack vertically */
  .header-buttons {
    flex-direction: column;
    gap: 6px;
    width: 100%;
  }
  
  .hint-button,
  .share-button {
    width: 100%;
    font-size: 13px !important;
    padding: 6px 12px !important;
  }
}

/* Mobile Ad Banner (320x100) */
.mobile-ad-banner {
  display: none; /* Hidden by default (desktop) */
  margin: 20px auto;
  padding: 12px;
  background: #fdfcfa;
  border: 1px solid #e0d8c5;
  border-radius: 8px;
  text-align: center;
  max-width: 100%;
}

.mobile-ad-banner ins {
  display: block;
  min-height: 100px;
  width: 100%;
  max-width: 320px;
  margin: 0 auto;
}

/* Show on mobile only */
@media (max-width: 699px) {
  .mobile-ad-banner {
    display: block;
  }
}

/* Extra small mobile - reduce padding */
@media (max-width: 400px) {
  .mobile-ad-banner {
    padding: 8px;
    margin: 16px auto;
  }
}

/* Mobile: Hide "Word Puzzle" suffix to save space */
@media (max-width: 600px) {
  header h1 {
    font-size: 20px;
  }
  
  /* Hide "Word Puzzle" text on mobile */
  .word-puzzle-suffix {
    display: none;
  }
  
  /* Show Type Answer button on mobile */
  .hero-type-btn {
    display: block;
  }
}


/* GridSpy timer - append to the end of wordhunt.css */
.game-timer-wrap {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-weight: 600;
  font-size: 15px;
  color: #5a5a5a;
  padding: 4px 10px;
  border: 1px solid #d4c5a9;
  border-radius: 12px;
  background: #fdfcfa;
  white-space: nowrap;
}
.game-timer { font-variant-numeric: tabular-nums; }
.game-timer.finished { color: #1a5928; }
.victory-message .final-time { margin: 8px 0 0; font-size: 16px; }

@media (max-width: 599px) {
  .game-timer-wrap { font-size: 14px; }
}

/* ---------- Width fixes ---------- */
/* Keep the grid centred in its panel */
.panel > .grid { margin: 0 auto; width: max-content; }

/* From 900px: grid and clues side by side, cells shrink to leave room for the clues */
@media (min-width: 900px) {
  .wrap { grid-template-columns: auto 1fr; }
  :root { --cell: clamp(34px, calc((100vw - 445px) / 12), 52px); }
}

/* 760-899px (small laptop windows): side by side, tighter padding, smaller cells */
@media (min-width: 760px) and (max-width: 899px) {
  .wrap { grid-template-columns: auto 1fr; padding: 16px; gap: 16px; }
  :root { --cell: clamp(28px, calc((100vw - 423px) / 12), 52px); }
}

/* Phones: less padding so the grid fits the screen exactly */
@media (max-width: 699px) {
  .wrap { padding: 12px; gap: 12px; }
  .panel { padding: 12px; }
}

/* ---------- Leaderboard (Phase 4) ---------- */
/* Narrow screens: a slim strip above the grid, tap to open the full top 5 */
.leaderboard {
  grid-column: 1 / -1;
  background: #fff;
  border: 1px solid #d4c5a9;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.08);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
.leaderboard:empty { display: none; }
/* While the leaderboard loads, keep its space so the page doesn't jump */
.wrap.has-lb .leaderboard:empty { display: block; visibility: hidden; min-height: 44px; }

.lb-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  padding: 10px 14px;
  border: none;
  border-radius: 8px;
  background: transparent;
  box-shadow: none;
  transform: none;
  font-size: 14px;
  font-weight: 600;
  color: #2a2a2a;
  text-align: left;
}
.lb-head:hover { background: #f9f7f4; transform: none; box-shadow: none; }
.lb-title { display: none; }
.lb-summary { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lb-caret { color: #8a7960; transition: transform 0.2s ease; }
.leaderboard.open .lb-caret { transform: rotate(180deg); }
.lb-body { display: none; padding: 0 14px 12px; }
.leaderboard.open .lb-body { display: block; }

/* Wide screens: a proper panel on the left, always open */
@media (min-width: 1360px) {
  .wrap.has-lb {
    grid-template-columns: 240px auto minmax(260px, 1fr);
    max-width: 1500px;
  }
  .leaderboard { grid-column: auto; align-self: start; padding: 12px; }
  .lb-head { padding: 0 0 8px; border-bottom: 1px solid #e0d8c5; border-radius: 0; cursor: default; pointer-events: none; }
  .lb-title { display: block; font-size: 15px; font-family: 'Avenir Next', 'Avenir', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; }
  .lb-summary, .lb-caret { display: none; }
  .lb-body { display: block; padding: 8px 0 0; }
}
@media (min-width: 1360px) and (max-width: 1499px) {
  .wrap.has-lb { --cell: 46px; }
}

.lb-list { list-style: none; margin: 0; padding: 0; }
.lb-list li {
  display: grid;
  grid-template-columns: 24px 1fr auto;
  gap: 8px;
  padding: 5px 8px;
  font-size: 14px;
  border-radius: 6px;
}
.lb-list li:nth-child(odd) { background: #fdfcfa; }
.lb-list li.me { background: #d4edda; font-weight: 700; color: #1a5928; }
.lb-rank { color: #8a7960; font-weight: 600; }
.lb-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lb-time { font-variant-numeric: tabular-nums; font-weight: 600; }
.lb-empty { margin: 4px 0 0; font-size: 13px; color: #6a6a6a; }

/* Mobile: Share lives in the finish popup instead of the clue panel */
@media (max-width: 699px) {
  #share-btn { display: none; }
}

/* Name entry and result shown in the finished-puzzle popup */
.lb-result { display: none; margin-top: 16px; }
.lb-result.show { display: block; animation: slideUp 0.4s ease; }
.lb-result .lb-list { max-width: 320px; margin: 10px auto 0; text-align: left; }
.lb-message {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 600;
  color: #1a1a1a;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
.lb-form { display: flex; gap: 8px; justify-content: center; }
.lb-form input {
  flex: 1;
  max-width: 220px;
  padding: 10px 12px;
  border: 2px solid #c4b599;
  border-radius: 8px;
  font-size: 15px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
.lb-form input:focus { outline: none; border-color: #6b9bd1; }
.lb-submit {
  background: #5fa76f;
  border: 2px solid #5fa76f;
  color: #fff;
  border-radius: 8px;
  padding: 10px 18px;
  font-size: 15px;
  font-weight: 700;
}
.lb-submit:hover { background: #4d8c5c; border-color: #4d8c5c; }
.lb-submit:disabled { opacity: 0.6; cursor: default; transform: none; box-shadow: none; }
.lb-note { margin: 6px 0 0; font-size: 13px; color: #b3261e; min-height: 1em;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; }
