.charge-pips {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.charge-pip {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: transparent;
  border: 2px solid var(--text-dim);
  transition: background 0.2s, border-color 0.2s;
}

.charge-pip.filled {
  background: var(--accent);
  border-color: var(--accent);
}

.charge-timer {
  margin-left: 0.55rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
}

.btn {
  padding: 0.55rem 0.9rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  width: 100%;
  margin-top: 0.5rem;
}

.modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
}

.modal-card {
  background: var(--sidebar-bg);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 1.5rem;
  width: min(360px, 90vw);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5);
  color: var(--text);
}

.modal-card h2 { font-weight: 700; letter-spacing: -0.01em; }

.invite-welcome {
  margin: -0.25rem 0 0.75rem;
  font-size: 0.88rem;
  line-height: 1.45;
  color: var(--text-muted, #8a9199);
  text-align: center;
}

.support-card {
  width: min(380px, 92vw);
  text-align: center;
}

.support-intro {
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--text-muted, #8a9199);
}

.support-kofi-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-top: 0.25rem;
  text-decoration: none;
}

.modal-card label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.85rem;
}

.modal-card input,
.modal-card select {
  padding: 0.6rem;
  border-radius: 10px;
  border: 1px solid var(--card-border);
  background: var(--card-bg);
  color: var(--text);
}

.country-select-wrap {
  position: relative;
  margin-top: 0.35rem;
}

.country-select-trigger {
  width: 100%;
  padding: 0.55rem 0.65rem;
  text-align: left;
  border-radius: 10px;
  border: 1px solid var(--card-border);
  background: var(--card-bg);
  color: var(--text);
  font-size: 0.95rem;
  cursor: pointer;
}

.country-select-trigger {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.country-select-trigger::after {
  content: '▾';
  margin-left: auto;
  opacity: 0.6;
}

.ball-img {
  width: 22px;
  height: 20px;
  object-fit: contain;
  vertical-align: middle;
  flex-shrink: 0;
}

.country-select-option {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.country-select-list {
  display: none;
  position: absolute;
  z-index: 120;
  left: 0;
  right: 0;
  max-height: 220px;
  overflow-y: auto;
  margin: 0;
  padding: 0.25rem 0;
  list-style: none;
  border: 1px solid var(--card-border);
  border-radius: 10px;
  background: var(--card-bg);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.country-select-list.open {
  display: block;
}

.country-select-option {
  display: block;
  width: 100%;
  padding: 0.45rem 0.65rem;
  border: none;
  background: transparent;
  color: var(--text);
  text-align: left;
  font-size: 0.92rem;
  cursor: pointer;
}

.country-select-option:hover,
.country-select-option.active {
  background: rgba(22, 101, 52, 0.1);
}

.flag-img {
  display: inline-block;
  width: 20px;
  height: 15px;
  margin-right: 0.35rem;
  vertical-align: -2px;
  object-fit: cover;
  border-radius: 1px;
}

.end-card {
  width: min(400px, 92vw);
}

.end-winner {
  font-size: 1rem;
  color: var(--accent);
  margin: 0 0 0.75rem;
  line-height: 1.45;
}

.end-subtitle {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin: 0 0 0.5rem;
}

.end-rank-list {
  list-style: none;
  margin: 0 0 1rem;
  max-height: 220px;
  overflow-y: auto;
}

.end-rank-list li {
  display: flex;
  justify-content: space-between;
  padding: 0.4rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.88rem;
}

.end-stats {
  font-size: 0.82rem;
  margin: 0 0 0.75rem;
}

.end-countdown {
  margin: 1rem 0 0;
  padding: 0.75rem;
  text-align: center;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--accent);
  border: 1px solid var(--border);
  border-radius: 6px;
  background: rgba(22, 101, 52, 0.06);
}

.tutorial-card {
  width: min(440px, 92vw);
}

.tutorial-intro {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.45;
  margin: 0;
}

.tutorial-list {
  margin: 0;
  padding-left: 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  font-size: 0.82rem;
  line-height: 1.4;
  color: var(--text);
}

.tutorial-list li::marker {
  color: var(--accent);
}

.tutorial-actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 0.25rem;
}

.toast {
  position: fixed;
  bottom: 5rem;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: rgba(26, 26, 26, 0.9);
  color: #fff;
  padding: 0.75rem 1.25rem;
  border-radius: 8px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s, transform 0.25s;
  z-index: 200;
  max-width: 90vw;
  text-align: center;
  font-size: 0.85rem;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.recent-matches-list {
  list-style: none;
  font-size: 0.78rem;
}

.recent-matches-list li {
  padding: 0.3rem 0;
  border-bottom: 1px solid var(--border);
  color: var(--text-muted);
}

.recent-matches-list li.rank-empty {
  font-style: italic;
}

.rank-subtitle {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin: 0.85rem 0 0.45rem;
}

.admob-slot {
  width: 100%;
  overflow: hidden;
}
