:root {
  --bg-color: #F8B499;
  --panel-bg: rgba(255, 255, 255, 0.88);
  --panel-border: rgba(255, 255, 255, 0.95);
  --hud-bg: rgba(255, 255, 255, 0.88);
  --hud-border: rgba(255, 255, 255, 0.95);
  --text-main: #0F172A;
  --text-muted: #64748B;
  --color-you: #E11D48;
  --color-bot: #2563EB;
  --gold: #D97706;
  --font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left: env(safe-area-inset-left, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: var(--bg-color);
  font-family: var(--font-family);
}

.pool-app {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  overflow: hidden;
}

/* Main Canvas */
.canvas-wrapper {
  position: relative;
  flex: 1 1 0;
  width: 100%;
  min-height: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

#game-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: block;
  touch-action: none;
}

/* --- LIGHT FROSTED GLASS HUD BAR --- */
.hud-container {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 440px;
  padding-top: max(10px, calc(env(safe-area-inset-top, 0px) + 6px));
  padding-bottom: 6px;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  animation: hud-slide-down 0.4s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes hud-slide-down {
  from { opacity: 0; transform: translateY(-16px); }
  to { opacity: 1; transform: translateY(0); }
}

.hud-bar {
  width: 100%;
  max-width: 350px;
  height: 50px;
  background: var(--hud-bg);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-radius: 25px;
  border: 1.5px solid var(--hud-border);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.12), 0 2px 8px rgba(15, 23, 42, 0.04);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 14px;
  color: var(--text-main);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hud-bar:hover {
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.16);
}

.hud-team {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: transform 0.15s ease;
  min-width: 0;
}

.hud-team--you {
  justify-content: flex-start;
}

.hud-team--ai {
  justify-content: flex-end;
}

.hud-team:active {
  transform: scale(0.94);
}

.hud-flag {
  font-size: 20px;
  line-height: 1;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.12));
  flex-shrink: 0;
}

.hud-label {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.3px;
  max-width: 60px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hud-team--you .hud-label,
.hud-team--you .hud-score {
  color: var(--color-you);
}

.hud-team--ai .hud-label,
.hud-team--ai .hud-score {
  color: var(--color-bot);
}

.hud-score {
  font-size: 22px;
  font-weight: 900;
  min-width: 16px;
  text-align: center;
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
}

.hud-middle {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 1px;
  cursor: pointer;
  padding: 2px 8px;
  border-radius: 12px;
  transition: transform 0.15s ease, background-color 0.15s ease;
  justify-self: center;
}

.hud-middle:active {
  transform: scale(0.92);
  background: rgba(0, 0, 0, 0.05);
}

.hud-level-badge {
  font-size: 9px;
  font-weight: 800;
  background: rgba(15, 23, 42, 0.07);
  padding: 2px 7px;
  border-radius: 6px;
  color: #334155;
  letter-spacing: 0.4px;
  white-space: nowrap;
  text-align: center;
  display: inline-block;
}

.hud-vs {
  font-size: 11px;
  font-weight: 900;
  color: #94A3B8;
  letter-spacing: 0.8px;
  line-height: 1;
  margin-top: 1px;
  text-align: center;
}


/* Bot Thinking Pill */
.bot-thinking-pill {
  position: absolute;
  top: max(76px, calc(env(safe-area-inset-top, 0px) + 68px));
  left: 50%;
  transform: translateX(-50%) translateY(-10px);
  z-index: 10;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.95);
  color: var(--color-bot);
  padding: 6px 14px;
  border-radius: 16px;
  font-size: 12px;
  font-weight: 800;
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.15);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.bot-thinking-pill.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Toast Notice */
.toast-notice {
  position: absolute;
  top: max(74px, calc(env(safe-area-inset-top, 0px) + 66px));
  left: 50%;
  transform: translateX(-50%) scale(0.9);
  z-index: 20;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.95);
  color: #0F172A;
  padding: 8px 18px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 800;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.15);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.toast-notice.is-visible {
  opacity: 1;
  transform: translateX(-50%) scale(1);
}

/* Bottom Arch Banner */
.banner-your-turn {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%) translateY(100%);
  z-index: 10;
  pointer-events: none;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.banner-your-turn.is-visible {
  transform: translateX(-50%) translateY(0);
}

.banner-arch-content {
  background: linear-gradient(180deg, #10B981 0%, #059669 100%);
  border-top-left-radius: 36px;
  border-top-right-radius: 36px;
  padding: 10px 32px max(14px, calc(env(safe-area-inset-bottom, 0px) + 12px)) 32px;
  box-shadow: 0 -4px 20px rgba(16, 185, 129, 0.35);
}

.banner-text {
  font-size: 15px;
  font-weight: 900;
  color: #FFFFFF;
  letter-spacing: 0.6px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

/* --- LIGHT ANIMATED OVERLAYS & MODALS --- */
.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 30;
  background: rgba(248, 250, 252, 0.45);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: max(16px, env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) max(16px, env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px));
  opacity: 1;
  transition: opacity 0.25s ease;
  overflow: hidden;
}

.overlay[hidden] {
  display: none !important;
  opacity: 0;
}

/* Ambient animated floating gradient background inside overlays */
.overlay::before {
  content: '';
  position: absolute;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(254, 215, 170, 0.45) 0%, rgba(254, 215, 170, 0) 70%);
  top: 10%;
  left: -10%;
  pointer-events: none;
  animation: float-blob-1 8s ease-in-out infinite alternate;
}

.overlay::after {
  content: '';
  position: absolute;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(191, 219, 254, 0.45) 0%, rgba(191, 219, 254, 0) 70%);
  bottom: 10%;
  right: -10%;
  pointer-events: none;
  animation: float-blob-2 7s ease-in-out infinite alternate;
}

@keyframes float-blob-1 {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(40px, 30px) scale(1.12); }
}

@keyframes float-blob-2 {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-30px, -40px) scale(1.15); }
}

.overlay-card {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 340px;
  background: var(--panel-bg);
  backdrop-filter: blur(24px) saturate(190%);
  -webkit-backdrop-filter: blur(24px) saturate(190%);
  border: 1.5px solid var(--panel-border);
  border-radius: 28px;
  padding: 24px 20px;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.15), 0 4px 16px rgba(15, 23, 42, 0.05);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  color: var(--text-main);
  animation: card-pop-in 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

@keyframes card-pop-in {
  from { opacity: 0; transform: scale(0.9) translateY(16px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.card-kicker {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.2px;
  color: #D97706;
  margin-bottom: 4px;
}

.overlay-card h1 {
  font-size: 24px;
  font-weight: 900;
  letter-spacing: 0.4px;
  margin-bottom: 16px;
  color: #0F172A;
}

.overlay-copy {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.4;
  margin-bottom: 16px;
}

/* --- MODE SELECTION CARDS --- */
.mode-card {
  max-width: 345px;
}

.mode-header-title {
  font-size: 22px !important;
  font-weight: 900;
  color: #0F172A;
  margin-bottom: 16px !important;
  letter-spacing: 0.5px;
}

.mode-options-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

.mode-card-btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.9);
  border: 1.5px solid rgba(226, 232, 240, 0.9);
  border-radius: 18px;
  color: #0F172A;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
  transition: transform 0.15s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.15s ease, border-color 0.15s ease;
}

.mode-card-btn:active {
  transform: scale(0.96);
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.08);
}

.mode-card-icon {
  font-size: 28px;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(226, 232, 240, 0.8);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  animation: pulse-icon 3s ease-in-out infinite alternate;
}

@keyframes pulse-icon {
  0% { transform: translateY(0) scale(1); }
  100% { transform: translateY(-2px) scale(1.06); }
}

.mode-card-info {
  flex: 1;
  min-width: 0;
}

.mode-card-title {
  font-size: 15px;
  font-weight: 900;
  color: #0F172A;
  letter-spacing: 0.4px;
  margin-bottom: 2px;
}

.mode-card-desc {
  font-size: 12px;
  color: #64748B;
  font-weight: 600;
}

.mode-card--worldcup {
  background: linear-gradient(135deg, rgba(254, 243, 199, 0.75) 0%, rgba(255, 251, 235, 0.95) 100%);
  border-color: rgba(245, 158, 11, 0.4);
}
.mode-card--worldcup .mode-card-title { color: #B45309; }

.mode-card--quick {
  background: linear-gradient(135deg, rgba(224, 242, 254, 0.75) 0%, rgba(240, 249, 255, 0.95) 100%);
  border-color: rgba(56, 189, 248, 0.4);
}
.mode-card--quick .mode-card-title { color: #0369A1; }

.mode-card--2p {
  background: linear-gradient(135deg, rgba(254, 226, 226, 0.6) 0%, rgba(219, 234, 254, 0.7) 100%);
  border-color: rgba(147, 197, 253, 0.6);
}
.mode-card--2p .mode-card-title { color: #4338CA; }

/* --- TOURNAMENT MODAL --- */
.tournament-card {
  max-width: 350px;
}

.tournament-stage-title {
  font-size: 16px;
  font-weight: 900;
  color: #B45309;
  margin: -4px 0 12px 0;
  letter-spacing: 0.5px;
}

.tournament-box {
  width: 100%;
  background: rgba(241, 245, 249, 0.8);
  border-radius: 14px;
  padding: 10px 12px;
  margin-bottom: 12px;
  border: 1px solid rgba(226, 232, 240, 0.9);
}

.tournament-box-header {
  font-size: 10px;
  font-weight: 800;
  color: #64748B;
  margin-bottom: 6px;
  letter-spacing: 0.6px;
  text-align: left;
}

.standings-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  color: #0F172A;
}

.standings-table th {
  font-size: 10px;
  font-weight: 800;
  color: #94A3B8;
  padding: 2px 4px;
  text-align: center;
}
.standings-table th:first-child { text-align: left; }

.standings-table td {
  padding: 5px 4px;
  text-align: center;
  border-top: 1px solid rgba(226, 232, 240, 0.8);
}
.standings-table td:first-child {
  text-align: left;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
}

.standings-table tr.is-you {
  color: #E11D48;
  background: rgba(254, 226, 226, 0.6);
  border-radius: 6px;
}

.next-match-card {
  width: 100%;
  background: rgba(241, 245, 249, 0.8);
  border-radius: 14px;
  padding: 10px 12px;
  margin-bottom: 14px;
  border: 1px solid rgba(226, 232, 240, 0.9);
}

.next-match-kicker {
  font-size: 10px;
  font-weight: 800;
  color: #2563EB;
  letter-spacing: 0.8px;
  display: block;
  margin-bottom: 6px;
}

/* --- DIFFICULTY BUTTONS --- */
.difficulty-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  margin: 12px 0 16px 0;
}

.diff-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px 16px;
  border: 1.5px solid rgba(226, 232, 240, 0.9);
  border-radius: 16px;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
  transition: transform 0.15s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.15s ease;
}

.diff-btn:active {
  transform: scale(0.96);
}

.diff-badge {
  font-size: 15px;
  font-weight: 900;
}

.diff-btn--easy {
  background: linear-gradient(135deg, rgba(220, 252, 231, 0.85) 0%, rgba(240, 253, 244, 0.95) 100%);
  border-color: rgba(34, 197, 94, 0.4);
  color: #15803D;
}

.diff-btn--med {
  background: linear-gradient(135deg, rgba(254, 243, 199, 0.85) 0%, rgba(255, 251, 235, 0.95) 100%);
  border-color: rgba(245, 158, 11, 0.4);
  color: #B45309;
}

.diff-btn--hard {
  background: linear-gradient(135deg, rgba(254, 226, 226, 0.85) 0%, rgba(255, 241, 242, 0.95) 100%);
  border-color: rgba(239, 68, 68, 0.4);
  color: #B91C1C;
}

/* --- 2 PLAYERS SETUP --- */
.p2-picker-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  margin: 12px 0 16px 0;
}

.p2-pick-box {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(248, 250, 252, 0.85);
  border: 1.5px solid rgba(226, 232, 240, 0.9);
  border-radius: 16px;
  padding: 12px 14px;
  cursor: pointer;
  transition: transform 0.15s cubic-bezier(0.34, 1.56, 0.64, 1), background-color 0.15s ease;
}

.p2-pick-box:active {
  transform: scale(0.96);
  background: #EFF6FF;
  border-color: #3B82F6;
}

.p2-pick-role {
  font-size: 11px;
  font-weight: 800;
  color: #64748B;
  min-width: 110px;
  text-align: left;
}

.p2-pick-flag {
  font-size: 24px;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.p2-pick-name {
  font-size: 14px;
  font-weight: 800;
  color: #0F172A;
  flex: 1;
  text-align: left;
}

/* --- COUNTRY SEARCH & LIST --- */
.card-back-btn {
  position: absolute;
  top: 18px;
  left: 18px;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: rgba(241, 245, 249, 0.85);
  border: 1.5px solid rgba(203, 213, 225, 0.9);
  color: #334155;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04);
  transition: transform 0.15s cubic-bezier(0.34, 1.56, 0.64, 1), background-color 0.15s ease;
  z-index: 5;
}

.card-back-btn:active {
  transform: scale(0.92);
  background: #E2E8F0;
}

.country-card {
  max-width: 380px;
  width: min(92vw, 380px);
  max-height: 84vh;
  display: flex;
  flex-direction: column;
}

.country-search-wrap {
  width: 100%;
  margin-bottom: 12px;
}

.country-search {
  width: 100%;
  height: 42px;
  padding: 0 14px;
  border-radius: 14px;
  border: 1.5px solid rgba(203, 213, 225, 0.9);
  background: rgba(241, 245, 249, 0.85);
  color: #0F172A;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.country-search:focus {
  border-color: #2563EB;
  background: #FFFFFF;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.country-search::placeholder {
  color: #94A3B8;
}

.country-list {
  flex: 1;
  overflow-y: auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  padding: 2px 2px 4px 0;
  max-height: 52vh;
  -webkit-overflow-scrolling: touch;
}

.country-list::-webkit-scrollbar {
  width: 4px;
}

.country-list::-webkit-scrollbar-thumb {
  background: rgba(203, 213, 225, 0.8);
  border-radius: 4px;
}

.country-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 10px;
  border-radius: 12px;
  border: 1.5px solid rgba(226, 232, 240, 0.9);
  background: rgba(255, 255, 255, 0.85);
  color: #0F172A;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  min-width: 0;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.03);
  transition: transform 0.15s ease, background 0.15s, border-color 0.15s;
}

.country-item:active {
  transform: scale(0.96);
}

.country-item.is-selected {
  background: rgba(219, 234, 254, 0.9);
  border-color: #2563EB;
  box-shadow: 0 0 0 1px #2563EB;
}

.country-item-emoji {
  font-size: 18px;
  line-height: 1;
  flex-shrink: 0;
}

.country-item-name {
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

.country-empty {
  grid-column: 1 / -1;
  padding: 24px;
  color: #94A3B8;
  font-size: 13px;
  font-weight: 700;
}

/* --- RESULT & FAIL MODALS --- */
.result-matchup {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 6px 0 12px;
  font-weight: 900;
}

.result-flag {
  font-size: 22px;
  line-height: 1;
}

.result-team-name {
  font-size: 13px;
  letter-spacing: 0.5px;
  color: var(--color-you);
  max-width: 90px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.result-team-name:last-of-type {
  color: var(--color-bot);
}

.result-vs {
  font-size: 10px;
  color: #94A3B8;
  letter-spacing: 1px;
}

.result-score {
  color: #0F172A !important;
  font-size: 28px !important;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  margin-bottom: 16px;
}

/* --- BUTTONS --- */
.primary-btn {
  width: 100%;
  height: 48px;
  background: linear-gradient(135deg, #2563EB 0%, #1D4ED8 100%);
  color: #FFFFFF;
  border: none;
  border-radius: 16px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.6px;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.28);
  transition: transform 0.15s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.15s ease;
}

.primary-btn:active {
  transform: scale(0.96);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

.secondary-btn {
  width: 100%;
  height: 44px;
  background: rgba(241, 245, 249, 0.9);
  color: #475569;
  border: 1px solid rgba(203, 213, 225, 0.9);
  border-radius: 16px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.5px;
  cursor: pointer;
  margin-top: 10px;
  transition: transform 0.15s cubic-bezier(0.34, 1.56, 0.64, 1), background-color 0.15s ease;
}

.secondary-btn:active {
  transform: scale(0.96);
  background: #E2E8F0;
}

/* Mode Country Selector Pill */
.mode-country-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.95);
  border: 1.5px solid rgba(226, 232, 240, 0.9);
  padding: 6px 14px;
  border-radius: 20px;
  margin-bottom: 12px;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05);
  transition: transform 0.15s cubic-bezier(0.34, 1.56, 0.64, 1), background-color 0.15s ease;
}

.mode-country-pill:active {
  transform: scale(0.95);
  background: #EFF6FF;
  border-color: #3B82F6;
}

.mode-country-flag {
  font-size: 18px;
  line-height: 1;
}

.mode-country-name {
  font-size: 13px;
  font-weight: 800;
  color: #0F172A;
}

.mode-country-change {
  font-size: 10px;
  font-weight: 800;
  color: #2563EB;
  letter-spacing: 0.5px;
  margin-left: 2px;
}

/* Default Scrolly Result Screen Typography */
.result-stars {
  font-size: 26px !important;
  color: #F59E0B !important;
  letter-spacing: 4px;
  margin: 4px 0 6px 0 !important;
  text-shadow: 0 0 12px rgba(245, 158, 11, 0.35);
}

.result-total {
  font-size: 11px !important;
  font-weight: 800;
  color: #64748B !important;
  letter-spacing: 0.8px;
  margin-bottom: 16px !important;
}

.result-total strong {
  color: #0F172A;
  font-size: 14px;
  font-weight: 900;
}

.tertiary-link-btn {
  background: none;
  border: none;
  color: #64748B;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.6px;
  cursor: pointer;
  margin-top: 8px;
  padding: 6px 12px;
  border-radius: 8px;
  transition: color 0.15s ease, background-color 0.15s ease;
}

.tertiary-link-btn:active {
  color: #E11D48;
  background: rgba(225, 29, 72, 0.08);
}
