:root {
  --wall: #e8e5dd;
  --wall-line: rgba(84, 78, 64, 0.07);
  --desk: #d3cec2;
  --ink: #1f2124;
  --ink-soft: #55585d;
  --ink-faint: #85878a;
  --graphite: #26292d;
  --graphite-2: #34383d;
  --graphite-3: #474c52;
  --line: #cbc6ba;
  --shell-hi: #e6e0d3;
  --shell: #d1c9b8;
  --shell-lo: #b3aa96;
  --shell-edge: #8b836f;
  --bezel: #1b1d1b;
  --lcd: #e3e7da;
  --lcd-ink: #161912;
  --lcd-dim: #6c7363;
  --key: #1c1d1f;
  --key-hi: #3a3c40;
  --key-ink: #f5f4ef;
  --branco: #f6f5f0;
  --corrige: #e2802a;
  --corrige-lo: #a85614;
  --corrige-ink: #b45a14;
  --confirma: #2e8a40;
  --confirma-lo: #1d5f2b;
  --paper: #fbfaf5;
  --paper-ink: #2d2c29;
  --paper-dim: #77756f;
  --ok: #2e8a40;
  --err: #b4281b;
  --radius: 14px;
  --font-ui: 'Archivo', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-lcd: 'VT323', 'Courier New', monospace;
  --font-paper: 'IBM Plex Mono', 'Courier New', monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--wall);
  background-image:
    linear-gradient(var(--wall-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--wall-line) 1px, transparent 1px);
  background-size: 56px 56px;
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.55;
}

main {
  flex: 1 0 auto;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: var(--corrige-ink);
}

button {
  font: inherit;
}

:focus-visible {
  outline: 3px solid var(--corrige);
  outline-offset: 2px;
}

kbd {
  display: inline-block;
  min-width: 1.6em;
  padding: 0 0.4em;
  border-radius: 4px;
  background: var(--key);
  color: var(--key-ink);
  font-family: var(--font-ui);
  font-size: 0.82em;
  font-weight: 700;
  line-height: 1.5;
  text-align: center;
  box-shadow: 0 2px 0 #000;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 50;
  padding: 10px 16px;
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
  font-weight: 700;
}

.skip:focus {
  top: 12px;
}

.wrap {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 32px);
}

.top {
  position: relative;
  z-index: 5;
  background: var(--graphite);
  color: #f1efe8;
}

.top__inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 32px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 60px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  text-decoration: none;
  flex: none;
}

.brand__mark {
  width: 28px;
  height: 28px;
  color: var(--corrige);
}

.brand__text {
  font-stretch: 80%;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.brand__text b {
  font-weight: 800;
  margin-right: 4px;
}

.tabs {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.tabs::-webkit-scrollbar {
  display: none;
}

.tabs__item {
  position: relative;
  flex: none;
  padding: 18px 14px;
  color: #c9c6bd;
  font-stretch: 85%;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
}

.tabs__item:hover {
  color: #fff;
}

.tabs__item[aria-current="page"] {
  color: #fff;
}

.tabs__item[aria-current="page"]::after {
  content: '';
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 0;
  height: 4px;
  border-radius: 4px 4px 0 0;
  background: var(--corrige);
}

.status {
  background: #f4f2ec;
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft);
}

.status__inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 8px clamp(16px, 4vw, 32px);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  font-size: 13px;
  font-weight: 600;
}

.status__dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--ink-faint);
  flex: none;
}

.status--voting .status__dot,
.status--apurado .status__dot {
  background: var(--confirma);
  box-shadow: 0 0 0 0 rgba(46, 138, 64, 0.5);
  animation: status-pulse 2.4s ease-out infinite;
}

.status--closed .status__dot {
  background: var(--corrige);
}

.status__clock {
  margin-left: auto;
  font-family: var(--font-paper);
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

@keyframes status-pulse {
  0% { box-shadow: 0 0 0 0 rgba(46, 138, 64, 0.45); }
  70% { box-shadow: 0 0 0 8px rgba(46, 138, 64, 0); }
  100% { box-shadow: 0 0 0 0 rgba(46, 138, 64, 0); }
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--corrige-ink);
  font-stretch: 85%;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero {
  padding: clamp(32px, 6vw, 64px) 0 clamp(20px, 3vw, 32px);
}

.hero--compact {
  padding-bottom: 8px;
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
  gap: clamp(20px, 4vw, 56px);
  align-items: end;
}

.hero__title {
  margin: 0;
  font-stretch: 68%;
  font-size: clamp(44px, 8vw, 88px);
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}

.hero__title span {
  display: inline-block;
  color: var(--corrige-ink);
}

.hero__lead {
  max-width: 62ch;
  margin: 18px 0 0;
  color: var(--ink-soft);
  font-size: clamp(16px, 1.6vw, 18px);
}

.hero__lead strong {
  color: var(--ink);
}

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.steps__item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.55);
  font-size: 15px;
}

.steps__n {
  flex: none;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 7px;
  background: var(--key);
  color: var(--key-ink);
  font-weight: 800;
  box-shadow: 0 3px 0 #000;
}

.steps__n--ok {
  background: var(--confirma);
  box-shadow: 0 3px 0 var(--confirma-lo);
}

.booth {
  padding: clamp(12px, 2vw, 24px) 0 clamp(36px, 6vw, 64px);
}

.urna {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(250px, 1fr);
  gap: clamp(14px, 2.4vw, 28px);
  padding: clamp(14px, 2.6vw, 30px);
  border: 1px solid var(--shell-edge);
  border-radius: 24px 24px 16px 16px;
  background:
    radial-gradient(120% 60% at 50% 0%, rgba(255, 255, 255, 0.45), rgba(255, 255, 255, 0) 60%),
    linear-gradient(180deg, var(--shell-hi), var(--shell) 45%, var(--shell-lo));
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, 0.6),
    inset 0 -8px 0 rgba(0, 0, 0, 0.1),
    0 3px 0 var(--shell-edge),
    0 40px 70px -40px rgba(38, 32, 18, 0.65);
}

.urna__screen {
  padding: clamp(10px, 1.6vw, 16px);
  border-radius: 12px;
  background: var(--bezel);
  box-shadow: inset 0 4px 12px rgba(0, 0, 0, 0.65), 0 1px 0 rgba(255, 255, 255, 0.5);
}

.lcd {
  position: relative;
  min-height: 360px;
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: clamp(14px, 2.2vw, 22px) clamp(14px, 2.4vw, 26px);
  border-radius: 4px;
  overflow: hidden;
  background-color: var(--lcd);
  background-image: repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.035) 0 1px, transparent 1px 3px);
  box-shadow: inset 0 0 50px rgba(60, 72, 40, 0.2);
  color: var(--lcd-ink);
  font-family: var(--font-lcd);
  font-size: clamp(20px, 2.4vw, 25px);
  line-height: 1.15;
}

.lcd__head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.9em;
  text-transform: uppercase;
}

.lcd__flag {
  padding: 0 6px;
  background: var(--lcd-ink);
  color: var(--lcd);
}

.lcd__office {
  margin: 6px 0 14px;
  font-size: clamp(34px, 4.2vw, 46px);
  line-height: 1;
  text-transform: uppercase;
}

.lcd__main {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: start;
}

.lcd__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 12px;
  margin: 0 0 10px;
}

.lcd__k {
  min-width: 4.6em;
  color: var(--lcd-dim);
}

.lcd__v {
  font-size: 1.15em;
  text-transform: uppercase;
}

.lcd__v--big {
  font-size: 1.5em;
}

.slots {
  display: inline-flex;
  align-items: flex-end;
  gap: 5px;
}

.slot {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 1.08em;
  height: 1.3em;
  border: 2px solid var(--lcd-ink);
  font-size: clamp(32px, 4.4vw, 46px);
  line-height: 1;
}

.slot.is-active::after {
  content: '';
  position: absolute;
  left: 18%;
  right: 18%;
  bottom: 12%;
  height: 3px;
  background: var(--lcd-ink);
  animation: lcd-blink 1s steps(2, start) infinite;
}

.slot.is-pad {
  color: var(--lcd-dim);
}

.slots__sep,
.slots__unit {
  font-size: clamp(32px, 4.4vw, 46px);
  line-height: 1;
}

@keyframes lcd-blink {
  to { visibility: hidden; }
}

.lcd__photo {
  width: clamp(92px, 11vw, 124px);
  margin: 0;
  border: 2px solid var(--lcd-ink);
  text-align: center;
}

.lcd__photo svg {
  width: 100%;
  height: auto;
  color: var(--lcd-dim);
}

.lcd__photo figcaption {
  border-top: 2px solid var(--lcd-ink);
  font-size: 1.1em;
}

.lcd__alert {
  margin: 8px 0;
  font-size: clamp(30px, 4vw, 42px);
  line-height: 1.05;
  text-transform: uppercase;
}

.lcd__msg {
  margin: 0 0 8px;
  max-width: 34ch;
}

.lcd__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 12em), 1fr));
  gap: 4px 14px;
  max-height: 9.5em;
  overflow-y: auto;
}

.lcd__opt {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 2px 6px;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.lcd__opt:hover {
  background: rgba(22, 25, 18, 0.08);
}

.lcd__opt.is-sel {
  background: var(--lcd-ink);
  color: var(--lcd);
}

.lcd__optn {
  min-width: 1.6em;
  text-align: right;
}

.lcd__help {
  margin-top: 14px;
  padding-top: 10px;
  border-top: 2px solid var(--lcd-ink);
  font-size: 0.86em;
}

.lcd__help p {
  margin: 0;
}

.lcd__tag {
  display: inline-block;
  padding: 0 5px;
  color: #fff;
}

.lcd__tag--confirma {
  background: var(--confirma);
}

.lcd__tag--corrige {
  background: var(--corrige);
}

.lcd__fim {
  flex: 1;
  display: grid;
  place-items: center;
  font-size: clamp(110px, 16vw, 180px);
  line-height: 1;
  letter-spacing: 0.08em;
}

.lcd__bar {
  height: 22px;
  margin: 14px 0;
  border: 2px solid var(--lcd-ink);
  padding: 2px;
}

.lcd__bar span {
  display: block;
  height: 100%;
  width: 0;
  background: repeating-linear-gradient(90deg, var(--lcd-ink) 0 10px, transparent 10px 13px);
  animation: lcd-fill 1.4s linear forwards;
}

@keyframes lcd-fill {
  to { width: 100%; }
}

.urna__panel {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: clamp(12px, 2vw, 20px);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.12));
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.18), 0 1px 0 rgba(255, 255, 255, 0.5);
}

.urna__plate {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  background: var(--graphite);
  color: #ece9df;
  font-stretch: 80%;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.urna__plate svg {
  width: 24px;
  height: 24px;
  flex: none;
  color: var(--corrige);
}

.keypad {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(8px, 1.2vw, 12px);
}

.key {
  min-height: 54px;
  border: 0;
  border-radius: 9px;
  cursor: pointer;
  font-weight: 800;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  transition: transform 0.06s, box-shadow 0.06s, filter 0.15s;
}

.key--num {
  background: linear-gradient(180deg, var(--key-hi), var(--key) 45%);
  color: var(--key-ink);
  font-size: 26px;
  box-shadow: 0 4px 0 #000, 0 6px 10px rgba(0, 0, 0, 0.25);
}

.key--zero {
  grid-column: 2;
  grid-row: 4;
}

.key--branco {
  grid-column: 1;
  grid-row: 5;
}

.key--corrige {
  grid-column: 2;
  grid-row: 5;
}

.key--confirma {
  grid-column: 3;
  grid-row: 5;
}

.key--branco,
.key--corrige,
.key--confirma {
  align-self: end;
  margin-top: 6px;
  font-stretch: 78%;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.key--branco {
  background: var(--branco);
  color: #1d1d1b;
  box-shadow: 0 4px 0 #a9a69b, 0 6px 10px rgba(0, 0, 0, 0.18);
}

.key--corrige {
  background: var(--corrige);
  color: #1d1306;
  box-shadow: 0 4px 0 var(--corrige-lo), 0 6px 10px rgba(0, 0, 0, 0.2);
}

.key--confirma {
  min-height: 68px;
  background: var(--confirma);
  color: #fff;
  font-size: 14px;
  box-shadow: 0 4px 0 var(--confirma-lo), 0 6px 10px rgba(0, 0, 0, 0.22);
}

.key:hover {
  filter: brightness(1.08);
}

.key:active,
.key.is-pressed {
  transform: translateY(3px);
  box-shadow: 0 1px 0 #000;
}

.key--branco:active,
.key--branco.is-pressed {
  box-shadow: 0 1px 0 #a9a69b;
}

.key--corrige:active,
.key--corrige.is-pressed {
  box-shadow: 0 1px 0 var(--corrige-lo);
}

.key--confirma:active,
.key--confirma.is-pressed {
  box-shadow: 0 1px 0 var(--confirma-lo);
}

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

.booth__hint {
  margin: 0;
  color: var(--ink-soft);
  font-size: 14px;
}

.booth__alert {
  margin: 14px 0 0;
  padding: 12px 14px;
  border-left: 4px solid var(--corrige);
  border-radius: 6px;
  background: #fff6ec;
  font-size: 15px;
}

.mute {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.6);
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.mute::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--confirma);
}

.mute[aria-pressed="true"]::before {
  background: var(--ink-faint);
}

.receipt-slot:empty {
  display: none;
}

.receipt {
  position: relative;
  max-width: 440px;
  margin: 28px auto 0;
  padding: 22px 22px 26px;
  background: var(--paper);
  color: var(--paper-ink);
  font-family: var(--font-paper);
  font-size: 13.5px;
  box-shadow: 0 18px 30px -18px rgba(0, 0, 0, 0.45);
  animation: receipt-out 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.receipt::after,
.bu::before,
.bu::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: 10px;
  background:
    linear-gradient(135deg, var(--paper) 5px, transparent 0) 0 0 / 12px 10px repeat-x,
    linear-gradient(-135deg, var(--paper) 5px, transparent 0) 0 0 / 12px 10px repeat-x;
}

.receipt::after,
.bu::after {
  bottom: -10px;
}

.bu::before {
  top: -10px;
  transform: rotate(180deg);
}

@keyframes receipt-out {
  from { opacity: 0; transform: translateY(-14px); clip-path: inset(0 0 100% 0); }
  to { opacity: 1; transform: none; clip-path: inset(0 0 -20px 0); }
}

.receipt__head {
  margin: 0 0 12px;
  padding-bottom: 10px;
  border-bottom: 1px dashed var(--paper-dim);
  text-align: center;
  text-transform: uppercase;
}

.receipt__head b {
  display: block;
  font-size: 15px;
  letter-spacing: 0.08em;
}

.receipt__line,
.bu__line {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin: 0 0 4px;
}

.receipt__fill,
.bu__fill {
  flex: 1;
  min-width: 12px;
  border-bottom: 1px dotted var(--paper-dim);
  transform: translateY(-4px);
}

.receipt__v,
.bu__v {
  font-weight: 600;
  text-align: right;
}

.receipt__foot {
  margin: 12px 0 0;
  padding-top: 10px;
  border-top: 1px dashed var(--paper-dim);
  color: var(--paper-dim);
  font-size: 12px;
}

.receipt__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 20px;
  border: 0;
  border-radius: 9px;
  cursor: pointer;
  font-family: var(--font-ui);
  font-stretch: 80%;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
  transition: transform 0.06s, box-shadow 0.06s, filter 0.15s;
}

.btn:hover {
  filter: brightness(1.07);
}

.btn:active {
  transform: translateY(2px);
}

.btn[disabled] {
  cursor: not-allowed;
  filter: grayscale(0.6);
  opacity: 0.6;
}

.btn--confirma {
  background: var(--confirma);
  color: #fff;
  box-shadow: 0 4px 0 var(--confirma-lo);
}

.btn--confirma:active {
  box-shadow: 0 2px 0 var(--confirma-lo);
}

.btn--ghost {
  background: transparent;
  color: var(--ink);
  box-shadow: inset 0 0 0 2px var(--line);
}

.btn--small {
  min-height: 36px;
  padding: 6px 14px;
  font-size: 13px;
}

.btn--xl {
  width: 100%;
  min-height: 72px;
  font-size: 24px;
  border-radius: 12px;
  box-shadow: 0 6px 0 var(--confirma-lo), 0 16px 24px -12px rgba(29, 95, 43, 0.6);
}

.btn--xl:active {
  box-shadow: 0 2px 0 var(--confirma-lo);
}

.band {
  padding: clamp(36px, 6vw, 64px) 0;
  border-top: 1px solid var(--line);
  background: #f4f2ec;
}

.band__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: start;
}

.section-title {
  margin: 0 0 8px;
  font-stretch: 72%;
  font-size: clamp(28px, 3.6vw, 40px);
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
}

.section-lead {
  max-width: 62ch;
  margin: 0 0 18px;
  color: var(--ink-soft);
}

.grid-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}

.grid-table th {
  padding: 8px 10px;
  border-bottom: 2px solid var(--ink);
  color: var(--ink-soft);
  font-stretch: 85%;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-align: left;
  text-transform: uppercase;
}

.grid-table td {
  padding: 9px 10px;
  border-bottom: 1px dashed var(--line);
  font-variant-numeric: tabular-nums;
}

.grid-table td:not(:first-child),
.grid-table th:not(:first-child) {
  text-align: right;
}

.grid-table--names td:nth-child(2),
.grid-table--names th:nth-child(2) {
  text-align: left;
}

.grid-table__muted td {
  color: var(--ink-faint);
}

.grid-table tr.is-out td {
  color: var(--ink-faint);
  text-decoration: line-through;
}

.example {
  margin: 16px 0 0;
  color: var(--ink-soft);
  font-size: 15px;
}

.example__tag {
  display: inline-block;
  margin-right: 8px;
  padding: 1px 8px;
  border-radius: 4px;
  background: var(--graphite);
  color: #fff;
  font-stretch: 85%;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  vertical-align: 2px;
}

.facts {
  display: grid;
  gap: 12px;
}

.facts__item {
  display: grid;
  gap: 2px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-left: 5px solid var(--graphite);
  border-radius: 8px;
  background: #fff;
}

.facts__k {
  color: var(--ink-soft);
  font-stretch: 85%;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.facts__v {
  font-stretch: 75%;
  font-size: 26px;
  font-weight: 800;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.facts__note {
  color: var(--ink-soft);
  font-size: 14px;
}

.arena {
  padding: clamp(16px, 3vw, 32px) 0 clamp(36px, 6vw, 64px);
}

.arena__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(260px, 1fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
}

.wheel-box {
  display: grid;
  place-items: center;
}

.wheel-frame {
  position: relative;
  width: min(100%, 500px);
  aspect-ratio: 1;
  padding: 4%;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 30%, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0) 55%),
    linear-gradient(180deg, var(--shell-hi), var(--shell) 50%, var(--shell-lo));
  border: 1px solid var(--shell-edge);
  box-shadow: inset 0 3px 0 rgba(255, 255, 255, 0.6), inset 0 -6px 0 rgba(0, 0, 0, 0.12), 0 30px 60px -30px rgba(38, 32, 18, 0.7);
}

.wheel {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--bezel);
  box-shadow: 0 0 0 5px var(--bezel);
}

.wheel-pointer {
  position: absolute;
  top: -2%;
  left: 50%;
  z-index: 2;
  width: 9%;
  aspect-ratio: 0.8;
  transform: translateX(-50%);
  background: var(--corrige);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  filter: drop-shadow(0 3px 2px rgba(0, 0, 0, 0.35));
}

.wheel-pointer.is-ticking {
  animation: pointer-kick 0.12s ease-out;
}

@keyframes pointer-kick {
  40% { transform: translateX(-50%) rotate(-12deg); }
}

.wheel-hub {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 21%;
  aspect-ratio: 1;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle at 40% 30%, var(--graphite-3), var(--graphite) 70%);
  box-shadow: 0 0 0 4px var(--shell), 0 4px 10px rgba(0, 0, 0, 0.45);
  color: var(--corrige);
}

.wheel-hub svg {
  width: 52%;
}

.wheel-slice__face {
  transition: opacity 0.3s;
}

.wheel-slice__qty {
  font-family: var(--font-ui);
  font-stretch: 70%;
  font-size: 17px;
  font-weight: 800;
}

.wheel-slice__label {
  font-family: var(--font-ui);
  font-stretch: 75%;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.wheel-slice.is-out {
  opacity: 0.28;
}

.wheel.is-resolved .wheel-slice:not(.is-won) {
  opacity: 0.45;
}

.wheel-slice.is-won .wheel-slice__face {
  stroke: var(--corrige);
  stroke-width: 4;
}

.console {
  display: grid;
  gap: 14px;
  align-content: start;
}

.counter {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 18px;
  border: 10px solid var(--bezel);
  border-radius: 12px;
  background-color: var(--lcd);
  background-image: repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.035) 0 1px, transparent 1px 3px);
  color: var(--lcd-ink);
  font-family: var(--font-lcd);
}

.counter__label {
  font-size: 24px;
  text-transform: uppercase;
}

.counter__value {
  font-size: 64px;
  line-height: 1;
}

.console .mute {
  justify-self: start;
}

.console__status {
  min-height: 1.55em;
  margin: 0;
  font-weight: 600;
}

.console__status.is-error {
  color: var(--err);
}

.console__note {
  margin: 0;
  color: var(--ink-soft);
  font-size: 14px;
}

.ticker {
  position: relative;
  padding: 20px 20px 24px;
  background: var(--paper);
  font-family: var(--font-paper);
  font-size: 13px;
  box-shadow: 0 18px 30px -20px rgba(0, 0, 0, 0.4);
}

.ticker__title {
  margin: 0 0 10px;
  padding-bottom: 8px;
  border-bottom: 1px dashed var(--paper-dim);
  font-family: var(--font-paper);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-align: center;
  text-transform: uppercase;
}

.ticker__list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 420px;
  overflow-y: auto;
}

.ticker__list li {
  padding: 6px 0;
  border-bottom: 1px dotted var(--line);
}

.ticker__list li.is-new {
  animation: ticker-in 0.6s ease-out;
}

.ticker__who {
  font-weight: 600;
}

.ticker__when {
  float: right;
  color: var(--paper-dim);
}

.ticker__what {
  display: block;
  color: var(--paper-dim);
}

.ticker__empty {
  color: var(--paper-dim);
  text-align: center;
}

@keyframes ticker-in {
  from { background: #fff1de; }
}

.paper-desk {
  padding: clamp(28px, 5vw, 56px) 0 clamp(48px, 7vw, 80px);
}

.paper-desk__cta {
  margin: 32px 0 0;
  text-align: center;
}

.bu {
  position: relative;
  max-width: 600px;
  margin: 10px auto 0;
  padding: clamp(20px, 4vw, 34px) clamp(16px, 4vw, 34px);
  background: var(--paper);
  color: var(--paper-ink);
  font-family: var(--font-paper);
  font-size: 13.5px;
  line-height: 1.5;
  box-shadow: 0 30px 50px -30px rgba(0, 0, 0, 0.55);
}

.bu p {
  margin: 0;
}

.bu__head {
  padding-bottom: 14px;
  border-bottom: 2px solid var(--paper-ink);
  text-align: center;
  text-transform: uppercase;
}

.bu__title {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0.12em;
}

.bu__sec {
  padding: 14px 0;
  border-bottom: 1px dashed var(--paper-dim);
}

.bu__sec--mine {
  border-bottom: 0;
}

.bu__h {
  margin-bottom: 8px !important;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.bu__line--win {
  font-weight: 600;
}

.bu__line--sub {
  padding-left: 14px;
  color: var(--paper-dim);
}

.bu__small {
  color: var(--paper-dim);
  font-size: 12.5px;
}

.bu__wait {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.bu__stamp {
  display: inline-block;
  margin-top: 10px !important;
  padding: 4px 12px;
  border: 2px solid var(--paper-ink);
  border-radius: 4px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transform: rotate(-2deg);
}

.bu__bar {
  margin-bottom: 10px;
}

.bu__meter {
  display: block;
  height: 10px;
  margin: 2px 0 4px;
  border: 1px solid var(--paper-ink);
  background: linear-gradient(90deg, var(--paper-ink) var(--w), transparent var(--w));
}

.bu__table {
  width: 100%;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}

.bu__table th {
  padding: 4px 4px 6px;
  border-bottom: 1px solid var(--paper-ink);
  font-size: 11.5px;
  font-weight: 600;
  text-align: right;
  text-transform: uppercase;
}

.bu__table td {
  padding: 4px;
  text-align: right;
}

.bu__table th:nth-child(2),
.bu__table td:nth-child(2) {
  text-align: left;
  word-break: break-word;
}

.bu__table tr.is-mine td {
  background: var(--paper-ink);
  color: var(--paper);
}

.bu__you {
  display: inline-block;
  margin-left: 4px;
  padding: 0 4px;
  border: 1px solid currentColor;
  font-size: 10.5px;
  text-transform: uppercase;
}

.bu__foot {
  padding-top: 16px;
  text-align: center;
  text-transform: uppercase;
}

.bu__barcode {
  display: block;
  height: 48px;
  margin: 0 auto 8px;
  max-width: 320px;
  background: repeating-linear-gradient(90deg,
    var(--paper-ink) 0 2px, transparent 2px 4px,
    var(--paper-ink) 4px 5px, transparent 5px 8px,
    var(--paper-ink) 8px 11px, transparent 11px 12px,
    var(--paper-ink) 12px 13px, transparent 13px 16px);
}

.bu__hash {
  margin-bottom: 4px !important;
  letter-spacing: 0.08em;
}

.notice-board {
  padding: clamp(24px, 4vw, 40px) 0 clamp(48px, 7vw, 80px);
}

.notice {
  max-width: 880px;
  padding: clamp(20px, 4vw, 44px);
  border: 1px solid var(--line);
  border-top: 10px solid var(--graphite);
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 24px 40px -30px rgba(0, 0, 0, 0.5);
}

.notice__art + .notice__art {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px dashed var(--line);
}

.notice__art h2 {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 10px;
  font-stretch: 75%;
  font-size: clamp(22px, 2.6vw, 28px);
  font-weight: 800;
  line-height: 1.1;
  text-transform: uppercase;
}

.notice__art h2 span {
  flex: none;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 7px;
  background: var(--key);
  color: var(--key-ink);
  font-size: 18px;
  box-shadow: 0 3px 0 #000;
}

.notice__art p,
.notice__art ul {
  margin: 0 0 12px;
  color: var(--ink-soft);
}

.notice__art ul {
  padding-left: 1.2em;
}

.notice__art li + li {
  margin-top: 6px;
}

.notice__art .grid-table {
  margin: 8px 0 12px;
}

.notice__small {
  font-size: 14px;
}

.sheet {
  width: min(460px, calc(100vw - 32px));
  padding: 28px;
  border: 0;
  border-top: 8px solid var(--graphite);
  border-radius: 12px;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.7);
}

.sheet::backdrop {
  background: rgba(24, 25, 27, 0.6);
}

.sheet[open] {
  animation: sheet-in 0.25s ease-out;
}

@keyframes sheet-in {
  from { opacity: 0; transform: translateY(12px); }
}

.sheet__eyebrow {
  margin: 0 0 6px;
  color: var(--corrige-ink);
  font-stretch: 85%;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.sheet__title {
  margin: 0 0 10px;
  font-stretch: 75%;
  font-size: 28px;
  font-weight: 800;
  line-height: 1.05;
  text-transform: uppercase;
}

.sheet__text {
  margin: 0 0 20px;
  color: var(--ink-soft);
}

.sheet__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.sheet--prize {
  text-align: center;
}

.sheet--prize .sheet__actions {
  justify-content: center;
}

.prize-icon {
  width: 96px;
  height: 96px;
  margin: 8px auto 14px;
  padding: 18px;
  border-radius: 50%;
  background: var(--graphite);
  color: var(--corrige);
  box-shadow: 0 0 0 6px var(--shell), 0 10px 20px rgba(0, 0, 0, 0.3);
}

.prize-icon svg {
  width: 100%;
  height: 100%;
}

.prize-icon[data-tier="jackpot"],
.prize-icon[data-tier="premium"] {
  background: var(--confirma);
  color: #fff;
}

.foot {
  flex: none;
  margin-top: auto;
  background: var(--graphite);
  color: #c9c6bd;
  font-size: 14px;
}

.foot__inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 28px clamp(16px, 4vw, 32px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px 32px;
  align-items: center;
}

.foot__neutral {
  max-width: 78ch;
  margin: 0;
}

.foot__neutral strong {
  color: #fff;
}

.foot__links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin: 0;
}

.foot__links a {
  color: #f1efe8;
  font-weight: 700;
}

@media (max-width: 920px) {
  .hero__grid,
  .band__grid,
  .arena__grid,
  .foot__inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .urna {
    grid-template-columns: minmax(0, 1fr);
  }

  .lcd {
    min-height: 320px;
  }

  .keypad {
    max-width: 420px;
    width: 100%;
    margin: 0 auto;
  }

  .urna__plate {
    max-width: 420px;
    width: 100%;
    margin: 0 auto;
  }
}

@media (max-width: 560px) {
  .top__inner {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding-top: 10px;
  }

  .tabs__item {
    padding: 12px 10px 14px;
    font-size: 13px;
  }

  .status__clock {
    margin-left: 0;
    width: 100%;
  }

  .lcd__main {
    grid-template-columns: minmax(0, 1fr);
  }

  .lcd__photo {
    display: none;
  }

  .key {
    min-height: 50px;
  }

  .counter__value {
    font-size: 52px;
  }

  .bu__table th:nth-child(3),
  .bu__table td:nth-child(3) {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .slot.is-active::after {
    animation: none;
  }
}
