:root {
  color-scheme: light;
  --bg: #f5f7fb;
  --panel: rgba(255, 255, 255, 0.92);
  --panel-border: rgba(15, 23, 42, 0.14);
  --text: #101827;
  --muted: #5d6878;
  --accent: #12233f;
  --yes: #d71920;
  --no: #138a43;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  transition:
    background-color 180ms ease,
    color 180ms ease;
}

body.result-yes {
  background: var(--yes);
  color: #ffffff;
}

body.result-no {
  background: var(--no);
  color: #ffffff;
}

.shell {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 24px;
}

.status-panel {
  width: min(900px, 100%);
  max-height: calc(100vh - 48px);
  overflow: auto;
  padding: clamp(22px, 4vw, 40px);
  border: 1px solid var(--panel-border);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.22);
  color: var(--text);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.brand img {
  width: 46px;
  height: 46px;
  border-radius: 8px;
  object-fit: cover;
}

.eyebrow {
  margin: 0;
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.language-control {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

select {
  min-height: 38px;
  max-width: 210px;
  padding: 0 34px 0 12px;
  border: 1px solid rgba(15, 23, 42, 0.16);
  border-radius: 8px;
  background: #ffffff;
  color: var(--text);
  font: inherit;
}

[dir="rtl"] select {
  padding: 0 12px 0 34px;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 20px 0 22px;
  color: var(--muted);
  font-size: 0.95rem;
}

.meta span {
  min-height: 2.25rem;
  padding: 8px 12px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.75);
}

.news-section {
  margin-bottom: 22px;
}

h2 {
  margin: 0 0 12px;
  font-size: 1rem;
  line-height: 1.25;
  letter-spacing: 0;
}

.news-list {
  display: grid;
  gap: 10px;
  max-height: min(46vh, 430px);
  margin: 0;
  padding: 0;
  overflow: auto;
  list-style: none;
}

.news-list li {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 8px;
  background: #ffffff;
}

.news-list a {
  color: var(--text);
  font-size: 0.98rem;
  font-weight: 750;
  line-height: 1.3;
  text-decoration: none;
}

.news-list a:hover {
  text-decoration: underline;
}

.news-list span {
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.3;
}

h1 {
  min-height: 8rem;
  margin: 0;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--no);
  color: #ffffff;
  font-size: clamp(5rem, 18vw, 12rem);
  line-height: 0.9;
  letter-spacing: 0;
  text-align: center;
  text-transform: uppercase;
}

body.result-yes h1 {
  background: var(--yes);
}

body.result-no h1 {
  background: var(--no);
}

button {
  display: block;
  min-width: 132px;
  min-height: 44px;
  margin: 0 auto;
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: #ffffff;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
}

button:disabled {
  cursor: wait;
  opacity: 0.7;
}

.error h1 {
  background: #3f1212;
  font-size: clamp(1.6rem, 5vw, 3.2rem);
  line-height: 1.05;
  padding: 20px;
  text-transform: none;
}

@media (max-width: 560px) {
  .shell {
    padding: 14px;
  }

  .status-panel {
    max-height: calc(100vh - 28px);
    padding: 18px;
  }

  .topbar {
    align-items: stretch;
    flex-direction: column;
    gap: 12px;
  }

  .brand {
    justify-content: center;
  }

  .language-control {
    justify-content: space-between;
  }

  select {
    max-width: 68%;
  }

  .news-list {
    max-height: 42vh;
  }

  h1 {
    min-height: 7rem;
    font-size: clamp(4rem, 24vw, 7rem);
  }
}
