* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  margin: 0;
  padding: 0;
  color: #f5e6c8;
  background-color: #1a0e08;
  font-family: 'Trebuchet MS', 'Segoe UI', Arial, sans-serif;
  overflow: hidden;
  -webkit-user-select: none;
  user-select: none;
  touch-action: manipulation;
}

#app {
  position: relative;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  background: radial-gradient(circle at 50% 40%, #3a2014 0%, #1a0e08 80%);
}

#game-container {
  width: 100%;
  height: 100%;
}

/* ===== Async Daily Tournament ===== */
.big-btn.tournament {
  width: 100%;
  background: linear-gradient(135deg, #d4af37 0%, #8a5a18 100%);
  color: #1a0e08;
  font-weight: 800;
  letter-spacing: 1px;
  border: 2px solid #ffd75e;
  box-shadow: 0 0 18px rgba(212, 175, 55, 0.45);
}
.big-btn.tournament:hover { filter: brightness(1.1); }
.tourney-meta {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin: 12px 0;
}
.tourney-meta > div {
  flex: 1;
  text-align: center;
  background: rgba(90, 40, 18, 0.5);
  border: 1px solid #7a3d1e;
  border-radius: 10px;
  padding: 8px 4px;
}
.tourney-meta span { display: block; font-size: 11px; color: #c9a86a; text-transform: uppercase; letter-spacing: 1px; }
.tourney-meta b { font-size: 15px; color: #ffd75e; }
.tourney-name-label { display: block; text-align: left; font-size: 12px; color: #c9a86a; margin: 6px 0 4px; }
.tourney-name { margin-bottom: 12px; }
.tourney-lb { max-height: 80vh; overflow-y: auto; }
.tourney-table, .tourney-standings {
  margin: 12px 0;
  border: 1px solid #7a3d1e;
  border-radius: 12px;
  overflow: hidden;
}
.tourney-row {
  display: grid;
  grid-template-columns: 36px 1fr auto 60px;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border-bottom: 1px solid rgba(122, 61, 30, 0.5);
  font-size: 14px;
}
.tourney-row:last-child { border-bottom: none; }
.tourney-row.you { background: rgba(212, 175, 55, 0.18); }
.tourney-row.you .tr-name { color: #ffd75e; font-weight: 800; }
.tr-rank { color: #c9a86a; font-weight: 800; text-align: center; }
.tr-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tr-meta { font-size: 11px; color: #8a6a4a; }
.tr-score { text-align: right; font-weight: 800; color: #ffd75e; }
.tourney-rank-banner {
  display: inline-block;
  margin: 6px auto 2px;
  padding: 6px 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, #d4af37, #8a5a18);
  color: #1a0e08;
  font-weight: 900;
  letter-spacing: 1px;
}
.tourney-standings .tourney-row { grid-template-columns: 36px 1fr 60px; }

/* ===== Multiplayer lobby ===== */
.join-row {
  display: flex;
  gap: 8px;
  align-items: center;
  width: 100%;
}
.join-input {
  flex: 1;
  padding: 12px 14px;
  font-size: 16px;
  font-weight: bold;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #f5e6c8;
  background: #2a1810;
  border: 2px solid #5a3a22;
  border-radius: 8px;
  outline: none;
  user-select: text;
  -webkit-user-select: text;
}
.join-input:focus { border-color: #e8a33d; }
.room-code {
  font-size: 30px;
  font-weight: bold;
  letter-spacing: 6px;
  color: #e8a33d;
  text-align: center;
  padding: 10px 0;
  user-select: text;
  -webkit-user-select: text;
}

#hud {
  position: absolute;
  inset: 0;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  z-index: 10;
}

#hud button, #hud .clickable { pointer-events: auto; }

/* ===== JOURNEY MAP (top-level entry) ===== */
.journey-map-overlay {
  position: absolute;
  inset: 0;
  z-index: 60;
  pointer-events: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow-y: auto;
  background:
    radial-gradient(120% 90% at 50% 0%, #241609 0%, #120a05 55%, #0a0603 100%);
  padding: 24px 16px 40px;
}
.journey-map-inner { width: 100%; max-width: 640px; display: flex; flex-direction: column; align-items: center; }
.journey-map-header { text-align: center; margin-bottom: 8px; }
.journey-map-title { font-size: 40px; font-weight: 900; letter-spacing: 3px; color: #f5e6c8; text-shadow: 0 4px 0 #5c2c16, 0 0 28px rgba(212,175,55,0.5); margin: 0; }
.journey-map-sub { font-size: 13px; letter-spacing: 2px; color: #c9a86a; margin: 6px 0 14px; }
.master-badge {
  display: inline-block; font-size: 12px; font-weight: 800; letter-spacing: 2px;
  padding: 8px 16px; border-radius: 999px; color: #e8d5a8;
  border: 1px solid #6b4a22; background: rgba(40,24,10,0.7);
}
.master-badge.mastered {
  color: #1a1206; border-color: #ffd75e;
  background: linear-gradient(90deg, #ffd75e, #d4af37);
  box-shadow: 0 0 22px rgba(255,215,94,0.6);
  animation: masterGlow 1.8s ease-in-out infinite;
}
@keyframes masterGlow { 0%,100% { box-shadow: 0 0 14px rgba(255,215,94,0.4); } 50% { box-shadow: 0 0 28px rgba(255,215,94,0.8); } }

.journey-map-stage { position: relative; width: 100%; max-width: 460px; aspect-ratio: 1 / 1.05; margin: 6px auto; }
.africa-silhouette { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0.92; filter: drop-shadow(0 0 18px rgba(212,175,55,0.25)); }

.map-marker {
  position: absolute; transform: translate(-50%, -50%);
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  background: none; border: none; cursor: pointer; pointer-events: auto;
  padding: 0; color: #f5e6c8; font-family: inherit;
}
.marker-ring {
  position: absolute; top: 0; left: 50%; transform: translate(-50%, -50%);
  width: 46px; height: 46px; border-radius: 50%;
  border: 2px solid var(--accent, #d4af37);
  animation: markerPulse 1.8s ease-out infinite;
}
@keyframes markerPulse {
  0% { width: 30px; height: 30px; opacity: 0.9; }
  70% { width: 60px; height: 60px; opacity: 0; }
  100% { width: 60px; height: 60px; opacity: 0; }
}
.marker-dot {
  position: relative; width: 40px; height: 40px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-size: 20px;
  background: radial-gradient(circle at 50% 35%, #3a2410, #1a1006);
  border: 2px solid var(--accent, #d4af37);
  box-shadow: 0 0 12px rgba(0,0,0,0.6), 0 0 10px var(--accent, #d4af37);
}
.marker-label { font-size: 10px; font-weight: 800; letter-spacing: 1px; text-shadow: 0 1px 3px #000; white-space: nowrap; }
.marker-check {
  position: absolute; top: -4px; right: -4px; width: 18px; height: 18px; border-radius: 50%;
  background: #2ecc71; color: #06210f; font-size: 12px; font-weight: 900;
  display: flex; align-items: center; justify-content: center; border: 2px solid #0a0603;
}
.map-marker.completed .marker-ring { border-color: #ffd75e; }

.journey-map-hint { font-size: 12px; letter-spacing: 1px; color: #9c7b4a; text-align: center; margin-top: 4px; }

/* Info card modal */
.info-card-backdrop {
  position: absolute; inset: 0; z-index: 80; pointer-events: auto;
  display: flex; align-items: center; justify-content: center; padding: 20px;
  background: rgba(8,5,2,0.78); backdrop-filter: blur(4px);
}
.info-card {
  width: 100%; max-width: 380px; text-align: center;
  background: linear-gradient(180deg, #241609, #140b05);
  border: 1px solid var(--accent, #d4af37); border-radius: 18px;
  padding: 26px 22px; box-shadow: 0 18px 50px rgba(0,0,0,0.7), 0 0 24px var(--accent, #d4af37);
}
.info-card-flag { font-size: 46px; line-height: 1; }
.info-card-country { font-size: 11px; letter-spacing: 3px; color: #c9a86a; margin: 8px 0 2px; }
.info-card-title { font-size: 26px; font-weight: 900; color: #f5e6c8; margin: 2px 0 12px; text-shadow: 0 2px 0 #5c2c16; }
.info-card-context { font-size: 14px; line-height: 1.5; color: #d8c39a; margin: 0 0 20px; }
.info-card-actions { display: flex; flex-direction: column; gap: 10px; }
.info-play-btn {
  font-family: inherit; font-size: 16px; font-weight: 900; letter-spacing: 2px; cursor: pointer;
  padding: 14px; border-radius: 12px; border: none; color: #1a1206;
  background: linear-gradient(90deg, #ffd75e, #e8a33d);
  box-shadow: 0 6px 0 #8a5a16, 0 0 18px rgba(255,215,94,0.4);
}
.info-play-btn:active { transform: translateY(3px); box-shadow: 0 3px 0 #8a5a16; }
.info-close-btn {
  font-family: inherit; font-size: 12px; font-weight: 800; letter-spacing: 2px; cursor: pointer;
  padding: 10px; border-radius: 10px; color: #c9a86a; background: transparent; border: 1px solid #6b4a22;
}

/* Back button in menu header */
.journey-back-btn {
  font-family: inherit; font-size: 11px; font-weight: 800; letter-spacing: 2px; cursor: pointer;
  padding: 7px 14px; border-radius: 999px; margin-bottom: 14px;
  color: #e8d5a8; background: rgba(40,24,10,0.7); border: 1px solid #6b4a22;
}
.journey-back-btn:active { transform: translateY(1px); }

/* ===== TOP HUD ===== */
.top-hud {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px 0;
  gap: 8px;
}
.hud-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 64px;
  padding: 8px 14px;
  border-radius: 14px;
  background: rgba(20, 10, 5, 0.72);
  border: 2px solid #5c2c16;
}
.ai-chip { border-color: #cf5b4e; }
.you-chip { border-color: #e8a33d; }
.chip-label { font-size: 11px; letter-spacing: 1px; opacity: 0.8; }
.chip-val { font-size: 26px; font-weight: 900; line-height: 1; }
.ai-chip .chip-val { color: #ff8a7a; }
.you-chip .chip-val { color: #ffce6a; }
.turn-box { text-align: center; flex: 1; }
.turn-count { font-size: 18px; font-weight: 800; color: #f5e6c8; }
.turn-who { font-size: 13px; font-weight: 700; letter-spacing: 1px; margin-top: 2px; }

/* ===== BOTTOM HUD ===== */
.bottom-hud {
  display: flex;
  justify-content: center;
  gap: 12px;
  padding: 0 16px 22px;
}
.mini-btn {
  pointer-events: auto;
  min-width: 80px;
  min-height: 44px;
  padding: 10px 16px;
  border-radius: 12px;
  background: rgba(40, 22, 12, 0.85);
  color: #f5e6c8;
  border: 2px solid #7a3d1e;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 1px;
  cursor: pointer;
}
.mini-btn:active { background: #5c2c16; }

/* ===== COMBO BANNER ===== */
.combo-banner {
  position: absolute;
  top: 42%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  pointer-events: none;
  animation: comboPop 1.3s ease-out forwards;
  z-index: 30;
}
.combo-main {
  font-size: 52px;
  font-weight: 900;
  color: #ffd75e;
  text-shadow: 0 0 18px #ff9d00, 0 4px 0 #7a3d1e, 0 0 40px #d4af37;
  letter-spacing: 2px;
}
.combo-pts {
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  text-shadow: 0 2px 8px #000;
}
.combo-banner.single .combo-pts { font-size: 30px; color: #ffd75e; }
@keyframes comboPop {
  0% { transform: translate(-50%, -50%) scale(0.3); opacity: 0; }
  25% { transform: translate(-50%, -50%) scale(1.2); opacity: 1; }
  60% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
  100% { transform: translate(-50%, -60%) scale(0.9); opacity: 0; }
}

/* ===== OVERLAYS ===== */
.overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: rgba(15, 7, 3, 0.82);
  backdrop-filter: blur(3px);
  pointer-events: auto;
  padding: 24px;
  z-index: 40;
}

/* ===== MENU ===== */
.menu-overlay { justify-content: flex-end; padding-bottom: 6vh; }
.title-block { text-align: center; margin-bottom: 36px; margin-top: auto; }
.title-eyebrow { font-size: 13px; letter-spacing: 4px; color: #d4af37; margin-bottom: 8px; }
.game-title {
  font-size: 72px;
  font-weight: 900;
  line-height: 0.9;
  color: #f5e6c8;
  text-shadow: 0 4px 0 #5c2c16, 0 0 30px rgba(212, 175, 55, 0.5);
}
.game-title span { display: block; color: #d4af37; }
.tagline { margin-top: 12px; font-size: 16px; color: #c9a86a; letter-spacing: 1px; }
.menu-buttons { width: 100%; max-width: 360px; display: flex; flex-direction: column; gap: 14px; }
.row-btns { display: flex; gap: 12px; }
.row-btns .big-btn { flex: 1; }
.menu-footer { margin-top: 22px; font-size: 12px; color: #8a6a4a; letter-spacing: 1px; }

/* ===== BUTTONS ===== */
.big-btn {
  pointer-events: auto;
  width: 100%;
  min-height: 56px;
  padding: 16px 20px;
  border-radius: 16px;
  font-size: 17px;
  font-weight: 900;
  letter-spacing: 1px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform 0.08s ease;
}
.big-btn:active { transform: scale(0.96); }
.big-btn.primary {
  background: linear-gradient(180deg, #e8a33d, #b5651d);
  color: #2b1810;
  box-shadow: 0 6px 0 #6b3410, 0 0 24px rgba(212, 175, 55, 0.4);
}
.big-btn.daily {
  background: linear-gradient(180deg, #1f7a5c, #0f3d2e);
  color: #d6ffe9;
  border-color: #2ec48a;
}
.big-btn.ghost {
  background: rgba(60, 34, 20, 0.6);
  color: #f5e6c8;
  border-color: #7a3d1e;
}
.big-btn.danger {
  background: rgba(120, 30, 20, 0.6);
  color: #ffb3a8;
  border-color: #cf5b4e;
}
.big-btn.quick {
  background: linear-gradient(180deg, #cf5b4e, #7a1f14);
  color: #ffe3d6;
  border-color: #ff8a7a;
}
.menu-stats {
  margin-top: 8px;
  display: flex;
  gap: 18px;
  justify-content: center;
  color: #c9a86a;
  letter-spacing: 1px;
}
.menu-stats b { color: #ffd75e; }
.turn-target {
  font-size: 11px;
  letter-spacing: 1px;
  color: #2ec48a;
  margin-top: 2px;
}

/* ===== COUNTDOWN ===== */
.countdown-overlay { background: rgba(15, 7, 3, 0.6); }
.countdown-card { text-align: center; animation: cdIn 0.5s ease-out; }
.cd-level { font-size: 20px; letter-spacing: 4px; color: #d4af37; }
.cd-name { font-size: 56px; font-weight: 900; color: #f5e6c8; text-shadow: 0 4px 0 #5c2c16; margin: 6px 0 16px; }
.cd-meta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; font-size: 15px; color: #c9a86a; }
.cd-meta span { padding: 6px 12px; background: rgba(40,22,12,0.7); border-radius: 10px; }
.cd-badge { border: 1px solid #d4af37; color: #ffd75e !important; }
.cd-go { margin-top: 24px; font-size: 40px; font-weight: 900; color: #2ec48a; animation: pulse 0.7s infinite alternate; }
@keyframes cdIn { from { transform: scale(0.6); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes pulse { from { transform: scale(1); } to { transform: scale(1.12); } }

/* ===== MODAL ===== */
.modal {
  width: 100%;
  max-width: 380px;
  background: linear-gradient(180deg, #3a2014, #241208);
  border: 3px solid #7a3d1e;
  border-radius: 22px;
  padding: 26px 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.6), inset 0 0 30px rgba(212,175,55,0.08);
  animation: modalIn 0.3s ease-out;
}
@keyframes modalIn { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.modal-title { font-size: 30px; font-weight: 900; text-align: center; color: #f5e6c8; margin-bottom: 6px; }
.modal-title.gold { color: #ffd75e; text-shadow: 0 0 18px rgba(212,175,55,0.6); }
.modal-title.red { color: #ff8a7a; }
.modal-sub { text-align: center; font-size: 14px; color: #c9a86a; margin-bottom: 6px; }
.result-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  background: rgba(20,10,5,0.5);
  border-radius: 10px;
  font-size: 16px;
}
.result-row b { font-size: 20px; color: #ffd75e; }
.result-row.total { border: 1px solid #d4af37; background: rgba(212,175,55,0.12); }
.hint { text-align: center; font-size: 12px; color: #8a6a4a; margin-top: 4px; }

/* ===== VICTORY ===== */
.modal.victory { text-align: center; }
.rank { font-size: 16px; color: #2ec48a; font-weight: 700; }
.final-score { font-size: 64px; font-weight: 900; color: #ffd75e; text-shadow: 0 0 24px rgba(212,175,55,0.6); line-height: 1; }
.final-label { font-size: 13px; letter-spacing: 3px; color: #c9a86a; margin-bottom: 8px; }

/* ===== RULES ===== */
.rules-list { list-style: none; display: flex; flex-direction: column; gap: 10px; margin-bottom: 8px; }
.rules-list li { font-size: 15px; line-height: 1.4; color: #e8d5b0; padding-left: 18px; position: relative; }
.rules-list li::before { content: "•"; color: #d4af37; position: absolute; left: 0; font-weight: 900; }
.rules-list b { color: #ffd75e; }

/* ===== BOARD SELECTOR ===== */
.board-selector {
  display: flex;
  gap: 12px;
  width: 100%;
  max-width: 360px;
  margin-bottom: 14px;
}
.board-pill {
  pointer-events: auto;
  flex: 1;
  min-height: 48px;
  padding: 12px 10px;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.5px;
  cursor: pointer;
  border: 2px solid #7a3d1e;
  background: rgba(40, 22, 12, 0.7);
  color: #c9a86a;
  transition: all 0.15s ease;
}
.board-pill.active.ayo {
  border-color: #d4af37;
  background: linear-gradient(180deg, rgba(212,175,55,0.25), rgba(90,60,20,0.5));
  color: #ffd75e;
  box-shadow: 0 0 14px rgba(212,175,55,0.4);
}
.board-pill.active.oware {
  border-color: #9d4edd;
  background: linear-gradient(180deg, rgba(157,78,221,0.25), rgba(60,20,90,0.5));
  color: #d4a0ff;
  box-shadow: 0 0 14px rgba(157,78,221,0.4);
}

/* ===== BLESSING BADGE ===== */
.blessing-badge {
  position: absolute;
  top: 72px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 20px;
  background: rgba(212, 175, 55, 0.18);
  border: 1px solid #d4af37;
  color: #ffd75e;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  pointer-events: none;
  animation: badgePulse 1.5s infinite alternate;
  z-index: 25;
}
.blessing-badge-icon { font-size: 14px; }
@keyframes badgePulse {
  from { box-shadow: 0 0 6px rgba(212,175,55,0.3); }
  to { box-shadow: 0 0 16px rgba(212,175,55,0.7); }
}

/* ===== BLESSING CARD MODAL ===== */
.blessing-overlay {
  background: rgba(10, 5, 2, 0.9);
  z-index: 60;
}
.blessing-card {
  width: 100%;
  max-width: 360px;
  text-align: center;
  padding: 32px 24px;
  border-radius: 22px;
  background: linear-gradient(180deg, #3a2014, #1a0e08);
  border: 3px solid #d4af37;
  box-shadow: 0 0 40px rgba(212,175,55,0.35), inset 0 0 30px rgba(212,175,55,0.08);
  animation: modalIn 0.35s ease-out;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.blessing-eyebrow {
  font-size: 11px;
  letter-spacing: 4px;
  color: #d4af37;
}
.blessing-title {
  font-size: 26px;
  font-weight: 900;
  color: #ffd75e;
  text-shadow: 0 0 18px rgba(212,175,55,0.5);
}
.blessing-proverb {
  font-size: 15px;
  font-style: italic;
  color: #e8d5b0;
  line-height: 1.5;
}
.blessing-power {
  font-size: 14px;
  font-weight: 700;
  color: #2ec48a;
  padding: 8px 12px;
  background: rgba(46,196,138,0.1);
  border-radius: 10px;
  border: 1px solid rgba(46,196,138,0.3);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 420px) {
  .game-title { font-size: 56px; }
  .cd-name { font-size: 44px; }
  .combo-main { font-size: 42px; }
}
@media (pointer: coarse) {
  .mini-btn { min-height: 48px; }
}

/* ===== DAY STREAK BADGE (menu) ===== */
.streak-badge {
  margin-top: 14px;
  display: inline-block;
  padding: 8px 18px;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255,120,40,0.25), rgba(120,40,10,0.35));
  border: 2px solid #ff8a3d;
  color: #ffd75e;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 1px;
  box-shadow: 0 0 16px rgba(255,120,40,0.4);
  animation: streakGlow 1.6s infinite alternate;
}
@keyframes streakGlow {
  from { box-shadow: 0 0 8px rgba(255,120,40,0.3); }
  to { box-shadow: 0 0 22px rgba(255,120,40,0.7); }
}

/* ===== MENU RIVAL LINE ===== */
.menu-rival { margin-top: 8px; color: #c9a86a; letter-spacing: 1px; }
.menu-rival b { color: #ff8a7a; }

/* ===== IYA NGOZI PROVERB BUBBLE ===== */
.ai-proverb-bubble {
  position: absolute;
  top: 96px;
  left: 50%;
  transform: translateX(-50%);
  max-width: 340px;
  width: calc(100% - 40px);
  padding: 12px 18px 14px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(60,20,16,0.95), rgba(30,10,8,0.95));
  border: 2px solid #cf5b4e;
  box-shadow: 0 8px 28px rgba(0,0,0,0.6), 0 0 18px rgba(207,91,78,0.35);
  text-align: center;
  pointer-events: none;
  z-index: 35;
  animation: proverbIn 0.4s ease-out;
}
.ai-proverb-bubble::after {
  content: '';
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-bottom: 10px solid #cf5b4e;
}
.ai-proverb-name {
  display: block;
  font-size: 11px;
  letter-spacing: 2px;
  color: #ff8a7a;
  font-weight: 900;
  margin-bottom: 6px;
}
.ai-proverb-text {
  display: block;
  font-size: 15px;
  font-style: italic;
  color: #f5e6c8;
  line-height: 1.45;
}
@keyframes proverbIn {
  from { transform: translateX(-50%) translateY(-12px); opacity: 0; }
  to { transform: translateX(-50%) translateY(0); opacity: 1; }
}

/* ===== COUNTDOWN RIVAL LINE ===== */
.cd-rival {
  margin-top: 14px;
  font-size: 14px;
  letter-spacing: 1px;
  color: #ff8a7a;
  font-weight: 700;
}

/* ===== END SCREEN STREAK ===== */
.end-streak {
  font-size: 16px;
  font-weight: 800;
  color: #ff8a3d;
  letter-spacing: 1px;
  text-align: center;
}

/* ===== SHARE CARD ===== */
.share-card-wrap {
  width: 100%;
  display: flex;
  justify-content: center;
  margin: 6px 0;
  max-height: 42vh;
  overflow: hidden;
}
.share-card-img {
  width: 200px;
  height: auto;
  border-radius: 14px;
  border: 2px solid #d4af37;
  box-shadow: 0 8px 28px rgba(0,0,0,0.6), 0 0 20px rgba(212,175,55,0.35);
  object-fit: contain;
}