@import url("https://cdn-uicons.flaticon.com/4.0.0/uicons-brands/css/uicons-brands.css");

:root {
  color-scheme: light;
  font-family: "Inter", system-ui, sans-serif;
  color: #162440;
  background: #f4f6fa;
  --navy: #101e3f;
  --blue: #284dbb;
  --muted: #536079;
  --line: #dce2ed;
}

* { box-sizing: border-box; }
body { margin: 0; }
.wrap { width: min(1080px, calc(100% - 48px)); margin-inline: auto; }
.site-header { background: #fff; border-bottom: 1px solid var(--line); }
.masthead { min-height: 70px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { color: var(--navy); text-decoration: none; font-weight: 850; font-size: 1.2rem; display: inline-flex; align-items: center; gap: 12px; }
.flag { width: 29px; height: 20px; border-radius: 4px; border: 1px solid var(--line); background: linear-gradient(90deg, #284dbb 33.33%, white 33.33% 66.67%, #e65068 66.67%); }
.edition { font-size: .875rem; color: var(--muted); text-align: right; }
.hero {
  color: white;
  background: radial-gradient(ellipse at 88% 110%, #2e4892, transparent 57%), var(--navy);
  position: relative;
  isolation: isolate;
  overflow: hidden;
}
.hero::after {
  content: "";
  width: 400px;
  height: 400px;
  position: absolute;
  right: max(4%, calc((100% - 1090px) / 2));
  top: -30px;
  border-radius: 50%;
  border: 1px solid #ffffff25;
  box-shadow: 0 0 0 35px #ffffff0a, 0 0 0 76px #ffffff09, 0 0 0 116px #ffffff08;
  z-index: -1;
}
.intro { padding-block: 42px 61px; }
.eyebrow { display: flex; align-items: center; gap: 10px; font-size: .875rem; font-weight: 750; color: #c1d0ff; letter-spacing: .1em; }
.eyebrow span { width: 5px; height: 5px; border-radius: 50%; background: #ff7e94; }
h1 { max-width: 760px; font-size: clamp(2.35rem, 7vw, 5rem); letter-spacing: -.07em; line-height: .99; margin: 18px 0; }
h1 span { color: #ff7e94; }
.intro p { max-width: 535px; color: #e1e8ff; line-height: 1.6; margin: 0; }
.section-heading { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
h2 { margin: 0; font-size: 1.45rem; letter-spacing: -.035em; }
.demo { background: #e4eaff; color: #2546a3; padding: 4px 10px; border-radius: 20px; font-size: .875rem; font-weight: 700; }
.muted { color: var(--muted); }
.description { margin: 8px 0 18px; line-height: 1.45; }
.summary { background: white; border: 1px solid var(--line); border-radius: 16px; }
.candidate-name { font-weight: 650; }
.candidate-name { min-width: 0; overflow-wrap: anywhere; }
.candidate-party { color: #2546a3; font-weight: 800; }
.avatar { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; font-weight: 800; font-size: .875rem; }
.blue { background: #e4ebff; color: #284dbb; }
:focus-visible { outline: 3px solid #5679db; outline-offset: 3px; }
.summary { padding: 24px; box-shadow: 0 9px 24px #1624400b; }
.summary .muted { margin: 12px 0 0; }
.summary .text-button { background: transparent; color: var(--blue); font-size: .875rem; }
.summary .text-button:hover { background: #e4ebff; }
.local-note, .status { font-size: .875rem; line-height: 1.45; }
button { width: 100%; border: 0; border-radius: 9px; padding: 12px 8px; font: inherit; font-weight: 750; background: var(--blue); color: white; cursor: pointer; }
button:disabled { background: #e6ebf5; color: #536079; cursor: default; }
button:not(:disabled):hover { background: #1e3990; }
.status { margin: 10px 0 0; font-weight: 650; }
.status:empty { display: none; }
.local-note { color: var(--muted); margin: 12px 0 0; }
footer { border-top: 1px solid var(--line); padding-block: 18px; color: var(--muted); font-size: .875rem; }
footer span { padding-inline: 6px; }

@media (min-width: 741px) {
  .summary { position: sticky; top: 20px; }
}

@media (max-width: 740px) {
  .hero::after { right: -215px; }
}
@media (max-width: 400px) {
  .wrap { width: calc(100% - 28px); }
}



.statistics { padding-block: 34px 44px; }
.results { width: 100%; border-spacing: 0; border: 1px solid var(--line); border-radius: 16px; background: white; }
.results th, .results td { padding: 12px 16px; text-align: left; }
.results tbody th, .results td { border-top: 1px solid var(--line); }
.results thead th, .result-count { color: var(--muted); font-size: .875rem; }
.result-name { display: flex; align-items: center; gap: 10px; }
.result-name .avatar { flex-shrink: 0; }
.result-count { display: block; }
.personal-choices { overflow: hidden; }
.personal-choices .majority-agreement { background-color: #d9f4e3; }
.personal-choices .majority-disagreement { background-color: #fde3e3; }
.results meter { display: block; width: min(100%, 8rem); height: 8px; margin-top: 4px; }
.results meter::-webkit-meter-optimum-value { background: var(--blue); }
.results meter::-moz-meter-bar { background: var(--blue); }

@media (max-width: 520px) {
  .results th, .results td { padding-inline: 8px; }
  .result-name .avatar { display: none; }
}

.results-heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; }
.results-heading .share { margin-inline-start: auto; }
.share { position: relative; font-size: .875rem; }
.share-options { margin-top: 6px; }
.share summary { list-style: none; cursor: pointer; border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px; font-weight: 750; color: var(--blue); }
.share summary::-webkit-details-marker { display: none; }
.share summary:hover, .share-options[open] summary { background: #e4eaff; }
.share-menu { position: absolute; z-index: 2; inset-inline-end: 0; top: 100%; width: min(220px, 100%); padding: 8px; background: white; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 9px 24px #16244020; }
.share-networks { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.share-network, .share-menu button { border-radius: 6px; padding: 8px 10px; text-align: left; font-weight: 650; }
.share-menu button { color: var(--navy); background: transparent; }
.share-menu button:not(:disabled):hover { background: #e4eaff; }
.share-network { display: flex; align-items: center; gap: 8px; color: white; text-decoration: none; }
.share-network:hover { filter: brightness(.92); }
.share-network .fi { font-size: 1.1rem; line-height: 1; }
.share-network--facebook { background: #0866ff; }
.share-network--x { background: #000; }
.share-network--whatsapp { background: #25d366; color: #132e21; }
.share-credit { display: block; padding: 4px 10px 0; color: var(--muted); font-size: .75rem; }
.share-credit a { color: inherit; }
.share-menu input { width: 100%; margin-top: 6px; padding: 6px; font: inherit; }
.share-feedback { margin: 0; padding-inline: 10px; color: var(--muted); }
.share-feedback:not(:empty) { margin-block: 6px; }

.ballot-game { max-width: 600px; padding-block: 30px 42px; }
.game-progress p { margin: 0 0 8px; font-weight: 700; color: var(--muted); }
.game-progress progress { display: block; width: 100%; height: 8px; accent-color: var(--blue); }
.game-card { margin-top: 16px; padding: clamp(24px, 5vw, 42px); text-align: center; }
.game-avatar { width: 64px; height: 64px; margin: 0 auto 16px; border-radius: 18px; font-size: 1.35rem; }
.game-candidate-heading { display: flex; align-items: baseline; justify-content: center; flex-wrap: wrap; gap: 6px 12px; }
.game-card h2 { font-size: clamp(1.65rem, 5vw, 2.4rem); line-height: 1.12; }
.game-card h2:focus { outline: none; }
.game-party { margin: 0; color: var(--blue); }
.game-question { margin: 22px 0 12px; font-weight: 650; }
.game-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.game-pick { min-height: 50px; }
.game-pick-no { background: #e8ecf5; color: var(--navy); }
.game-pick-no:not(:disabled):hover { background: #dbe2f1; }
.game-pick[aria-pressed="true"] { outline: 2px solid var(--blue); outline-offset: 2px; }
.game-navigation { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-top: 12px; font-size: .875rem; }
.game-navigation > span { margin-inline-start: auto; }
.personal-comparison { padding-top: 28px; }
.comparison-table { margin-top: 12px; }


.game-intro { padding: clamp(24px, 5vw, 36px); }
.game-hook { margin: 12px 0 0; color: var(--muted); line-height: 1.5; }
.game-intro ol { margin-block: 18px 24px; padding-inline-start: 24px; line-height: 1.55; }
.game-intro li + li { margin-top: 10px; }

.game-score { margin-bottom: 16px; }
.confirmed-score { margin-top: 24px; }
.game-score-line { display: flex; align-items: center; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; margin-block: 12px; }
.game-score-line .share { margin-inline-start: auto; }
.game-score-line .game-score-value { margin: 0; }
.game-score-value strong { font-size: 2rem; letter-spacing: -.05em; margin-inline-end: 10px; }
.game-score p { line-height: 1.5; }

.game-photo { width: min(300px, 100%); margin: 0 auto 16px; }
.game-photo img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 16px; }
.game-photo figcaption { margin-top: 4px; text-align: right; font-size: .875rem; }
