:root {
  color-scheme: light;
  --navy: #082b70;
  --blue: #075fc6;
  --bright-blue: #168cf1;
  --pale-blue: #eaf5ff;
  --yellow: #f4d313;
  --ink: #092d70;
  --muted: #62799d;
  --white: #fff;
  --line: #c9dcf5;
  --soft-shadow: 0 14px 34px rgba(15, 54, 117, .11);
  font-family: Inter, "Aptos", "Segoe UI", Arial, sans-serif;
  font-synthesis: none;
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; min-height: 100vh; padding: 18px; color: var(--ink); background: radial-gradient(ellipse at 50% -30%, #fff 0, #f4f9ff 47%, #e8f3ff 100%); }
button { font: inherit; }
button:focus-visible, a:focus-visible { outline: 4px solid #efc900; outline-offset: 3px; }
.broadcast-frame { position: relative; max-width: 1580px; min-height: calc(100vh - 36px); margin: 0 auto; padding: clamp(18px, 2.1vw, 34px) clamp(18px, 2.6vw, 42px) 28px; overflow: hidden; border: 2px solid #17458d; border-radius: 26px; background: rgba(255,255,255,.88); box-shadow: 0 0 0 5px rgba(255,255,255,.8), 0 0 0 7px rgba(15,76,151,.14), 0 24px 65px rgba(25,69,128,.13); }
.broadcast-frame::before { position: absolute; inset: 0 auto 0 0; width: 7px; content: ""; background: linear-gradient(180deg, #0c55ae, #80c7ff 32%, #f4d313 50%, #0d61c1 62%, #133c82); }
.masthead { display: grid; grid-template-columns: minmax(130px, .72fr) 1px minmax(230px, 1.55fr) minmax(180px, 1.1fr) auto; align-items: center; gap: clamp(18px, 2.5vw, 40px); min-height: 118px; padding: 0 0 20px; border-bottom: 4px solid var(--navy); position: relative; }
.masthead::after { position: absolute; content: ""; left: -1px; right: -1px; bottom: -9px; height: 5px; background: linear-gradient(90deg, var(--yellow) 0 16%, transparent 16% 79%, var(--yellow) 79%); transform: skewY(-.8deg); }
.brand { display: flex; align-items: center; justify-content: center; gap: 12px; color: var(--navy); text-decoration: none; }
.brand-seal { display: grid; width: 66px; height: 66px; place-items: center; padding: 8px; border: 3px solid var(--navy); border-radius: 50%; background: linear-gradient(145deg, #fff, #edf7ff); }
.brand-seal svg { width: 100%; color: #0964c5; }
.brand-name { font-weight: 950; font-size: 26px; letter-spacing: .07em; }
.masthead-divider { height: 75px; background: #173b7a; }
.event-title { line-height: .86; text-align: center; color: #0b317c; }
.event-eyebrow { font-size: clamp(13px, 1.2vw, 19px); font-weight: 850; letter-spacing: .18em; }
.event-title h1 { margin: 7px 0 0; font-size: clamp(40px, 5vw, 72px); line-height: .94; letter-spacing: -.06em; font-weight: 950; }
.event-subtitle { position: relative; display: flex; flex-direction: column; align-items: center; color: #082b70; font-family: "Segoe Script", "Brush Script MT", cursive; font-size: clamp(21px, 2.35vw, 37px); font-style: italic; line-height: .99; transform: rotate(-2deg); }
.event-subtitle strong { font-size: 1.2em; }
.event-subtitle i { display: block; width: 82%; height: 7px; margin-top: 9px; border-radius: 50%; background: var(--yellow); transform: rotate(-3deg); }
.masthead-tools { display: grid; justify-items: end; gap: 14px; }
.live-status, .live-mini { display: flex; align-items: center; gap: 8px; color: #45618a; font-weight: 800; font-size: 10px; letter-spacing: .105em; white-space: nowrap; }
.live-dot, .live-mini span { width: 9px; height: 9px; border-radius: 50%; background: #15ad71; box-shadow: 0 0 0 4px rgba(21,173,113,.12); animation: live-pulse 1.8s ease-in-out infinite; }
.icon-button { display: inline-flex; align-items: center; gap: 8px; border: 1px solid #c9daef; border-radius: 999px; padding: 9px 13px; color: var(--navy); background: #fff; cursor: pointer; font-size: 12px; font-weight: 750; transition: background .2s, border .2s, transform .2s; }
.icon-button:hover { border-color: var(--blue); background: #f2f8ff; transform: translateY(-1px); }
.icon-button svg { width: 16px; height: 16px; }
.count-summary { display: flex; align-items: end; gap: 18px; margin: 29px 0 17px; padding: 0 3px; }
.section-kicker { display: inline-flex; align-items: center; gap: 9px; color: #587098; font-size: 10px; font-weight: 900; letter-spacing: .15em; }
.kicker-line { width: 19px; height: 3px; background: var(--yellow); }
.summary-copy p { margin: 5px 0 0; color: #092d70; font-size: clamp(19px, 2vw, 28px); font-weight: 830; letter-spacing: -.035em; }
.total-counter { display: flex; align-items: baseline; gap: 8px; margin-left: auto; color: var(--navy); }
.total-counter > span:first-child { font-size: clamp(31px, 3.6vw, 49px); font-weight: 950; line-height: .9; font-variant-numeric: tabular-nums; transition: transform .22s cubic-bezier(.2,.85,.3,1.4), color .2s; }
.total-counter.bump > span:first-child { transform: scale(1.13); color: #0a75dc; }
.total-unit { font-size: 10px; font-weight: 900; letter-spacing: .12em; color: #597399; }
.summary-note { display: inline-flex; align-items: center; gap: 7px; margin: 0 0 5px 13px; color: #62799d; font-size: 11px; font-weight: 650; }
.summary-lock { color: #22a576; font-size: 9px; text-shadow: 0 0 0 #b3f0d8; }
.candidates { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: clamp(13px, 1.4vw, 22px); }
.candidate-card { position: relative; display: grid; grid-template-columns: 37% 1fr; min-width: 0; min-height: clamp(305px, 30vw, 405px); overflow: hidden; border: 2px solid #123d83; border-radius: 22px; background: #fff; box-shadow: var(--soft-shadow); transition: box-shadow .25s, transform .25s; }
.candidate-card.is-flashing { animation: card-flash .75s ease-out; }
.candidate-photo-wrap { position: relative; min-width: 0; overflow: hidden; background: linear-gradient(145deg, #168be9, #a4d9ff); }
.candidate-photo-wrap::after { position: absolute; inset: 0; content: ""; background: linear-gradient(0deg, rgba(5,37,93,.22), transparent 40%), linear-gradient(90deg, transparent 80%, rgba(8,43,112,.1)); pointer-events: none; }
.candidate-photo { display: block; width: 100%; height: 100%; min-height: inherit; object-fit: cover; object-position: 50% 34%; }
.candidate-mazinho .candidate-photo { object-position: 50% 30%; }
.photo-ribbon { position: absolute; z-index: 1; left: 12px; bottom: 13px; padding: 6px 9px; border-radius: 999px; color: #fff; background: rgba(7,43,112,.83); font-size: 8px; font-weight: 900; letter-spacing: .13em; backdrop-filter: blur(8px); }
.candidate-info { position: relative; display: flex; min-width: 0; flex-direction: column; padding: clamp(16px, 2vw, 27px); }
.candidate-topline { display: flex; align-items: center; gap: 9px; }
.candidate-number { display: grid; width: 27px; height: 27px; place-items: center; border-radius: 50%; color: white; background: var(--navy); font-size: 10px; font-weight: 900; }
.candidate-kind { color: #7a8faf; font-size: 9px; font-weight: 900; letter-spacing: .14em; }
.candidate-info h2 { margin: 14px 0 0; color: #092d70; font-size: clamp(20px, 2.4vw, 35px); font-weight: 920; line-height: .99; letter-spacing: -.05em; }
.candidate-info h2 span { display: block; margin-top: 3px; }
.candidate-nickname { margin-top: 2px; color: #36598a; font-size: clamp(13px, 1.35vw, 17px); font-weight: 780; }
.candidate-result { display: flex; align-items: center; justify-content: space-between; gap: 9px; margin-top: auto; padding-top: 12px; }
.vote-number-wrap { display: flex; min-width: 0; flex-direction: column; }
.candidate-votes { color: #092d70; font-size: clamp(48px, 6.1vw, 82px); font-weight: 950; line-height: .88; letter-spacing: -.075em; font-variant-numeric: tabular-nums; transition: transform .22s cubic-bezier(.2,.85,.3,1.4), color .2s; }
.candidate-votes.bump { transform: translateY(-4px) scale(1.045); color: #0676df; }
.vote-caption { margin-top: 8px; color: #6680a4; font-size: 9px; font-weight: 900; letter-spacing: .18em; }
.share-wrap { position: relative; display: grid; width: clamp(70px, 8vw, 104px); height: clamp(70px, 8vw, 104px); flex: 0 0 auto; place-items: center; }
.share-ring { width: 100%; height: 100%; transform: rotate(-90deg); }
.share-ring circle { fill: none; stroke-width: 7; }
.ring-track { stroke: #e5eff9; }
.ring-progress { stroke: #168cf1; stroke-linecap: round; stroke-dasharray: 263.9; stroke-dashoffset: 263.9; transition: stroke-dashoffset .72s cubic-bezier(.2,.75,.25,1); }
.candidate-mazinho .ring-progress { stroke: #e7c400; }
.share-value { position: absolute; color: #092d70; font-size: clamp(19px, 2.2vw, 27px); font-weight: 950; letter-spacing: -.055em; font-variant-numeric: tabular-nums; }
.share-value span { margin-left: 1px; font-size: .58em; }
.candidate-actions { display: flex; align-items: center; gap: 9px; margin-top: 13px; }
.vote-button { display: inline-flex; min-width: 0; flex: 1; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 10px 11px; border: 0; border-radius: 12px; color: #fff; background: linear-gradient(105deg, #08479d, #0878d9); box-shadow: 0 6px 13px rgba(8,77,166,.22); font-size: clamp(11px, 1vw, 13px); font-weight: 850; cursor: pointer; transition: transform .16s, box-shadow .18s, filter .18s; }
.candidate-mazinho .vote-button { color: #092d70; background: linear-gradient(105deg, #f6dc2d, #efc900); box-shadow: 0 6px 13px rgba(202,166,0,.2); }
.vote-button:hover { transform: translateY(-2px); filter: saturate(1.15); box-shadow: 0 9px 18px rgba(8,77,166,.24); }
.vote-button:active { transform: translateY(1px) scale(.985); }
.vote-plus { font-size: 20px; font-weight: 500; line-height: .8; }
.vote-button-arrow { margin-left: auto; font-size: 15px; opacity: .8; }
.shortcut-hint { display: flex; flex-direction: column; align-items: center; gap: 3px; color: #7890b2; font-size: 7px; font-weight: 850; letter-spacing: .06em; white-space: nowrap; }
kbd { display: grid; width: 21px; height: 21px; place-items: center; border: 1px solid #d5e1ef; border-radius: 6px; color: #45618a; background: #f5f9fe; font: inherit; font-size: 11px; }
.vote-flash { position: absolute; z-index: 2; top: 17px; right: 17px; padding: 9px 12px; border-radius: 99px; color: white; background: #0d7bdc; box-shadow: 0 5px 14px rgba(8,73,151,.2); font-size: 10px; font-weight: 950; letter-spacing: .09em; opacity: 0; transform: translateY(8px) scale(.8); pointer-events: none; }
.candidate-mazinho .vote-flash { color: #082b70; background: var(--yellow); }
.candidate-card.is-flashing .vote-flash { animation: vote-pop 1.1s cubic-bezier(.2,.75,.3,1) both; }
.share-panel { margin-top: 20px; padding: 15px 20px 16px; border: 1px solid #d8e7f6; border-radius: 16px; background: linear-gradient(110deg, #f8fbff, #eef7ff); }
.share-panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.live-mini { font-size: 8px; letter-spacing: .1em; }
.live-mini span { width: 7px; height: 7px; }
.share-labels { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 12px 0 7px; }
.share-labels > div { display: flex; align-items: center; gap: 7px; min-width: 0; }
.share-labels strong { color: #274878; font-size: clamp(10px, 1vw, 13px); font-weight: 790; }
.legend-dot { width: 9px; height: 9px; flex: 0 0 auto; border-radius: 50%; }
.legend-shirleide { background: #168cf1; }
.legend-mazinho { background: #e7c400; }
.legend-percent { color: #092d70; font-size: 12px; font-weight: 950; font-variant-numeric: tabular-nums; }
.share-separator { color: #9db0ca; font-size: 12px; font-weight: 800; }
.legend-right { justify-content: flex-end; }
.share-track { display: flex; width: 100%; height: 12px; overflow: hidden; border: 2px solid #fff; border-radius: 999px; background: #e5eff9; box-shadow: 0 0 0 1px #d8e4f3; }
.share-segment { width: 0; height: 100%; transition: width .72s cubic-bezier(.2,.75,.25,1); }
.share-segment-shirleide { background: linear-gradient(90deg, #0d67c5, #43a7fa); }
.share-segment-mazinho { margin-left: auto; background: linear-gradient(90deg, #f6dd35, #e4bb00); }
.operator-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 14px; padding: 0 2px; }
.operator-message { display: flex; align-items: center; gap: 9px; color: #657d9e; font-size: 11px; font-weight: 650; }
.message-check { display: grid; width: 23px; height: 23px; place-items: center; border: 1px solid #d2e5da; border-radius: 50%; color: #109565; background: #f0faf5; font-size: 12px; }
.operator-controls { display: flex; align-items: center; gap: 8px; }
.utility-button { display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 7px 10px; border: 1px solid #d5e1ef; border-radius: 9px; color: #47648e; background: #fff; font-size: 10px; font-weight: 780; cursor: pointer; transition: background .15s, border .15s, opacity .15s; }
.utility-button:hover:not(:disabled) { border-color: #9bbbe2; background: #f5f9ff; }
.utility-button:disabled { opacity: .45; cursor: not-allowed; }
.utility-button > span { font-size: 15px; line-height: .8; }
.reset-button { color: #8e5260; }
.bottom-accent { position: absolute; right: 28px; bottom: 0; left: 28px; height: 7px; overflow: hidden; }
.bottom-accent span { display: block; width: 34%; height: 100%; margin: 0 auto; border-radius: 50% 50% 0 0; background: var(--yellow); transform: skewX(-32deg); }
.toast { position: fixed; z-index: 10; top: 20px; left: 50%; max-width: calc(100vw - 32px); padding: 13px 18px; border-radius: 14px; color: #fff; background: #092f72; box-shadow: 0 12px 32px rgba(3,32,77,.26); font-size: 13px; font-weight: 750; text-align: center; opacity: 0; transform: translate(-50%, -16px); pointer-events: none; transition: opacity .2s, transform .2s; }
.toast.visible { opacity: 1; transform: translate(-50%, 0); }
@keyframes live-pulse { 50% { box-shadow: 0 0 0 7px rgba(21,173,113,.04); opacity: .68; } }
@keyframes card-flash { 0%,100% { box-shadow: var(--soft-shadow); } 22% { box-shadow: 0 0 0 5px rgba(22,140,241,.18), 0 18px 40px rgba(15,54,117,.15); transform: translateY(-2px); } }
@keyframes vote-pop { 0% { opacity: 0; transform: translateY(8px) scale(.8); } 17%,67% { opacity: 1; transform: translateY(0) scale(1); } 100% { opacity: 0; transform: translateY(-4px) scale(.96); } }
@media (min-width: 1450px) and (min-height: 850px) { .broadcast-frame { display: flex; flex-direction: column; justify-content: center; } .candidate-card { min-height: 390px; } }
@media (max-width: 950px) { body { padding: 11px; } .broadcast-frame { padding: 20px; min-height: calc(100vh - 22px); } .masthead { grid-template-columns: auto 1px 1fr auto; gap: 16px; min-height: 98px; } .brand { flex-direction: column; gap: 4px; } .brand-seal { width: 50px; height: 50px; padding: 5px; } .brand-name { font-size: 17px; } .event-title h1 { font-size: 50px; } .event-subtitle { display: none; } .candidate-card { grid-template-columns: 34% 1fr; min-height: 330px; } .candidate-info { padding: 17px; } .candidate-info h2 { font-size: clamp(21px, 3.1vw, 31px); } .candidate-votes { font-size: clamp(48px, 7vw, 70px); } .share-wrap { width: 76px; height: 76px; } }
@media (max-width: 650px) { body { padding: 8px; } .broadcast-frame { min-height: calc(100vh - 16px); padding: 15px 13px 25px; border-radius: 19px; } .masthead { grid-template-columns: auto 1fr auto; gap: 12px; min-height: 80px; padding-bottom: 15px; } .brand { flex-direction: row; gap: 7px; } .brand-seal { width: 39px; height: 39px; padding: 4px; border-width: 2px; } .brand-name { font-size: 14px; } .masthead-divider { display: none; } .event-title { text-align: left; } .event-eyebrow { font-size: 9px; } .event-title h1 { margin-top: 4px; font-size: 37px; } .masthead-tools { gap: 8px; } .live-status { font-size: 7px; letter-spacing: .05em; } .live-dot { width: 7px; height: 7px; } .fullscreen-button { width: 32px; height: 32px; justify-content: center; padding: 7px; } .fullscreen-button span { display: none; } .count-summary { margin: 22px 0 13px; gap: 7px; flex-wrap: wrap; } .summary-copy p { font-size: 19px; } .section-kicker { font-size: 8px; } .total-counter { gap: 5px; } .total-counter > span:first-child { font-size: 35px; } .total-unit { font-size: 8px; } .summary-note { width: 100%; margin: 0; font-size: 9px; } .candidates { grid-template-columns: 1fr; gap: 11px; } .candidate-card { grid-template-columns: 32% 1fr; min-height: 270px; border-radius: 17px; } .candidate-info { padding: 13px; } .candidate-topline { gap: 7px; } .candidate-number { width: 23px; height: 23px; font-size: 9px; } .candidate-kind { font-size: 7px; } .candidate-info h2 { margin-top: 10px; font-size: clamp(23px, 6.2vw, 31px); } .candidate-nickname { font-size: 12px; } .candidate-result { padding-top: 8px; } .candidate-votes { font-size: 54px; } .vote-caption { margin-top: 5px; font-size: 8px; } .share-wrap { width: 67px; height: 67px; } .share-value { font-size: 19px; } .candidate-actions { gap: 7px; margin-top: 10px; } .vote-button { min-height: 40px; gap: 5px; padding: 8px; font-size: 11px; } .shortcut-hint { font-size: 6px; } .photo-ribbon { left: 7px; bottom: 8px; padding: 5px 7px; font-size: 6px; } .share-panel { margin-top: 13px; padding: 12px 12px 13px; } .share-labels { margin-top: 10px; gap: 5px; } .share-labels > div { gap: 4px; } .share-labels strong { font-size: 8px; } .legend-percent { font-size: 10px; } .legend-dot { width: 7px; height: 7px; } .share-track { height: 10px; } .operator-bar { align-items: flex-start; flex-direction: column; gap: 9px; margin-top: 11px; } .operator-message { font-size: 10px; } .operator-controls { width: 100%; } .utility-button { min-height: 32px; font-size: 9px; } .candidate-photo { object-position: 50% 33%; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; } }
@media (max-height: 700px) and (min-width: 951px) { body { padding: 10px; } .broadcast-frame { min-height: calc(100vh - 20px); padding-top: 15px; padding-bottom: 17px; } .masthead { min-height: 88px; padding-bottom: 13px; } .brand-seal { width: 50px; height: 50px; } .masthead-divider { height: 54px; } .event-title h1 { font-size: 55px; } .count-summary { margin: 19px 0 12px; } .candidate-card { min-height: 295px; } .candidate-info { padding: 17px; } .share-panel { margin-top: 13px; padding-top: 11px; padding-bottom: 12px; } .operator-bar { margin-top: 9px; } }

/* Keep both compact header controls inside narrow phone viewports. */
@media (max-width: 650px) {
  .masthead-tools { display: flex; flex-direction: row; align-items: center; gap: 9px; }
  .live-status { gap: 0; font-size: 0; }
  .live-dot { width: 8px; height: 8px; }
}
