:root {
  --bg: #060e1f;
  --surface: #0f1f3d;
  --accent: #3b6eff;
  --accent-cyan: #22d3c8;
  --accent-amber: #f5a623;
  --text: #eef2fb;
  --text-dim: #8291b3;
  --sans: "Manrope", -apple-system, BlinkMacSystemFont, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
}

.eb-page {
  max-width: 480px;
  margin: 0 auto;
  padding: 1rem 1rem 3rem;
}

.eb-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 0 1.5rem;
}

.eb-header img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

.eb-header h1 {
  font-size: 1.1rem;
  margin: 0;
}

.eb-lang {
  margin-left: auto;
  background: var(--surface);
  color: var(--text-dim);
  border: 1px solid rgba(59, 110, 255, 0.3);
  border-radius: 0.5rem;
  padding: 0.3rem 0.6rem;
  font-family: var(--sans);
}

.eb-panel {
  display: block;
  width: 100%;
  text-align: left;
  background: var(--surface);
  border: 1px solid rgba(59, 110, 255, 0.25);
  border-radius: 1rem;
  padding: 1.5rem;
  margin-bottom: 1rem;
  color: var(--text);
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
}

.eb-panel--secondary {
  font-size: 0.95rem;
  color: var(--text-dim);
  font-weight: 500;
  background: transparent;
  border-style: dashed;
}

.eb-field {
  margin-bottom: 1rem;
}

.eb-field label {
  display: block;
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-bottom: 0.4rem;
}

.eb-input {
  width: 100%;
  padding: 0.6rem 0.8rem;
  border-radius: 0.6rem;
  border: 1px solid rgba(130, 145, 179, 0.4);
  background: rgba(15, 23, 42, 0.6);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1rem;
}

.eb-btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 0.6rem;
  padding: 0.7rem 1.2rem;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  text-decoration: none;
}

.eb-btn--outline {
  background: transparent;
  border: 1px solid var(--accent);
  color: var(--accent);
}

.eb-bubble-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(64px, 1fr));
  gap: 0.6rem;
  margin: 1rem 0;
}

.eb-bubble {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
}

.eb-bubble__number {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--text-dim);
}

.eb-bubble__input {
  width: 100%;
  text-align: center;
  font-family: var(--mono);
  font-size: 0.95rem;
  padding: 0.4rem 0.2rem;
  border-radius: 0.7rem;
  border: 1px solid rgba(130, 145, 179, 0.4);
  background: rgba(15, 23, 42, 0.6);
  color: var(--text);
}

.eb-bubble--correct .eb-bubble__input {
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
}

.eb-bubble--wrong .eb-bubble__input {
  border-color: var(--accent-amber);
  color: var(--accent-amber);
}

.eb-bubble__caption {
  font-family: var(--mono);
  font-size: 0.65rem;
  color: var(--accent-amber);
}

.eb-score {
  font-family: var(--mono);
  font-size: 3rem;
  font-weight: 700;
  color: var(--accent-cyan);
  text-align: center;
  margin: 1.5rem 0 0.25rem;
}

.eb-score__label {
  text-align: center;
  color: var(--text-dim);
  margin-bottom: 1.5rem;
}

.eb-list-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid rgba(130, 145, 179, 0.15);
}

.eb-list-row__main {
  flex: 1;
}

.eb-list-row__name {
  font-weight: 600;
}

.eb-list-row__meta {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--text-dim);
}

.eb-pill {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
}

.eb-pill--open {
  background: rgba(34, 211, 200, 0.15);
  color: var(--accent-cyan);
}

.eb-pill--upcoming {
  background: rgba(245, 166, 35, 0.15);
  color: var(--accent-amber);
}

.eb-pill--closed {
  background: rgba(130, 145, 179, 0.15);
  color: var(--text-dim);
}

.eb-hint {
  color: var(--text-dim);
  font-size: 0.85rem;
}
