* {
    margin: 0;
}

:root {
  --bg: #0f1724;
  --card: #0b1220;
  --accent: #7c3aed;
  --muted: #94a3b8;
  --good: #16a34a;
  --bad: #ef4444;
  --glass: rgba(255, 255, 255, 0.03);
  --radius: 12px;
  --gap: 16px;
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  background: linear-gradient(180deg, var(--bg), #071021 120%);
  color: #e6eef8;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 32px;
}

#chart_container {
  display: flex;
  flex-direction: row;
  width: 80%;
  justify-content: space-around;
  flex-wrap: wrap;
}

.container {
  width: 100%;
  max-width: 880px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.01));
  padding: 24px;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(2, 6, 23, 0.6);
}

.container_quotes {
  width: 20%;
  max-width: 430px;
  height: auto;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.01));
  padding: 24px;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(2, 6, 23, 0.6);
  margin: 20px;
}

.chart {
  width: 100%;
  height: 100%;
}

#quotes_container {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 10%;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: space-around;
}

.chart_container {
  height: 400px;
  width: 400px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.01));
  padding: 24px;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(2, 6, 23, 0.6);
}

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
}

h1 {
  font-size: 18px;
  margin: 0;
}

.meta {
  display: flex;
  gap: 12px;
  align-items: center;
}

.chip {
  background: var(--glass);
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 13px;
}

.card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.01), rgba(255, 255, 255, 0.02));
  border-radius: var(--radius);
  padding: 20px;
  display: grid;
  gap: 12px;
}

.quote-box {
  min-height: 110px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 18px;
  font-size: 18px;
  line-height: 1.4;
  color: #dbeafe;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.01), rgba(255, 255, 255, 0.00));
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.03);
}

.options {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 8px;
}

.opt {
  padding: 12px 14px;
  border-radius: 10px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.04);
  cursor: pointer;
  font-size: 15px;
  text-align: center;
  color: inherit;
  transition: transform 0.15s ease;
}

.opt:hover {
  transform: translateY(-2px);
}

.opt.correct {
  border-color: rgba(22, 163, 74, 0.16);
  background: linear-gradient(90deg, rgba(22, 163, 74, 0.06), rgba(22, 163, 74, 0.02));
  box-shadow: 0 6px 18px rgba(22, 163, 74, 0.06);
}

.opt.wrong {
  border-color: rgba(239, 68, 68, 0.12);
  background: linear-gradient(90deg, rgba(239, 68, 68, 0.04), rgba(239, 68, 68, 0.02));
}

.controls {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
}

.left-controls {
  display: flex;
  gap: 8px;
  align-items: center;
}

button.btn {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: inherit;
  padding: 8px 12px;
  border-radius: 10px;
  cursor: pointer;
}

button.btn.primary {
  background: linear-gradient(90deg, var(--accent), #5b21b6);
  border: none;
  color: white;
}

.score {
  font-weight: 600;
}

.small {
  font-size: 13px;
  color: var(--muted);
}

footer {
  margin-top: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.hint {
  font-size: 13px;
  color: var(--muted);
}

@media (max-width: 560px) {
  .options {
    grid-template-columns: 1fr;
  }
  .container {
    padding: 16px;
  }
  .quote-box {
    font-size: 16px;
  }
}
