/* AnimeRadar v2.4.194 — desktop Anime Voting golden-master surface.
 * Every rule is scoped to #view-voting (or the voting route shell). Existing
 * voting data, security, routes and mobile controls remain the source of truth. */

#view-voting {
  --voting-bg: #0d0c0d;
  --voting-card: #141213;
  --voting-card-raised: #181415;
  --voting-border: #2c2224;
  --voting-border-strong: #492326;
  --voting-accent: #ff353a;
  --voting-accent-deep: #8d171d;
  --voting-text: #f1edef;
  --voting-muted: #a79fa2;
  --voting-dim: #756d70;
  color: var(--voting-text);
}

html body[data-active-view="voting"] {
  background: #0b0a0b !important;
}

@media (min-width: 960px) {
  html:not(.native-app) body[data-active-view="voting"] .topbar {
    background: #0d0c0d !important;
  }
}

#view-voting :where(.voting-option-card, .voting-duel-panel, .voting-info-panel, .voting-history-panel, .voting-lower-panel) {
  min-width: 0;
  border: 1px solid var(--voting-border) !important;
  border-radius: 11px !important;
  background: linear-gradient(145deg, #151314, #111011) !important;
  box-shadow: 0 10px 28px rgba(0, 0, 0, .18) !important;
}

#view-voting .voting-mode-switch {
  display: inline-flex !important;
  width: auto;
  max-width: 100%;
  padding: 0 !important;
  border: 1px solid var(--voting-border) !important;
  border-radius: 9px !important;
  background: #151213 !important;
  box-shadow: none !important;
  overflow: hidden;
}

#view-voting .voting-mode-btn {
  min-height: 39px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 20px;
  border: 0 !important;
  border-radius: 8px !important;
  color: #d4cdd0 !important;
  background: transparent !important;
  font-size: 14px;
  white-space: nowrap;
}

/* Die Modus-Umschalter tragen bewusst kein Icon mehr: nur Text, mittig. */

#view-voting .voting-mode-btn:hover:not(.is-active),
#view-voting .voting-mode-btn:focus-visible:not(.is-active) {
  color: var(--voting-text) !important;
  background: rgba(255, 53, 58, .07) !important;
}

#view-voting .voting-mode-btn.is-active {
  color: #fff !important;
  background: linear-gradient(135deg, #852026, #60171b) !important;
  box-shadow: inset 0 0 0 1px rgba(255, 65, 70, .22) !important;
}

#view-voting .voting-side-column,
#view-voting .voting-center-column {
  min-width: 0;
}

#view-voting .voting-option-card {
  position: relative;
  overflow: hidden;
}

#view-voting .voting-option-card.has-vote {
  border-color: #8f292e !important;
  box-shadow: 0 0 0 1px rgba(255, 53, 58, .22), 0 12px 30px rgba(0, 0, 0, .26) !important;
}

#view-voting .voting-image-shell {
  position: relative;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  border: 0 !important;
  border-radius: 8px !important;
  background:
    radial-gradient(circle at 50% 28%, rgba(124, 29, 35, .34), transparent 38%),
    #090809 !important;
  box-shadow: none !important;
}

#view-voting .voting-image-shell::after {
  content: "";
  position: absolute;
  inset: 38% 0 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(7, 7, 8, .28) 28%, rgba(8, 8, 9, .96) 100%);
}

#view-voting .voting-option-image {
  width: 100% !important;
  height: 100% !important;
  display: block;
  object-fit: cover !important;
  object-position: center 22% !important;
  background: #090809;
}

#view-voting .voting-option-badge {
  position: absolute;
  top: 11px;
  left: 11px;
  z-index: 3;
  min-width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  padding: 0 8px;
  border: 1px solid rgba(255, 96, 101, .32);
  border-radius: 7px;
  background: linear-gradient(135deg, rgba(155, 35, 43, .96), rgba(96, 20, 25, .96));
  color: #fff;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .28);
  font-size: 18px;
  font-weight: 700;
}

#view-voting .voting-option-copy {
  position: absolute;
  right: 14px;
  bottom: 13px;
  left: 14px;
  z-index: 2;
  min-height: 0;
  display: block;
  text-align: left;
}

#view-voting .voting-option-copy h2 {
  margin: 0 !important;
  overflow: hidden;
  color: #fff !important;
  font-size: clamp(19px, 1.45vw, 25px) !important;
  font-weight: 600 !important;
  line-height: 1.12 !important;
  letter-spacing: -.025em !important;
  overflow-wrap: anywhere;
  text-wrap: balance;
  text-shadow: 0 2px 12px rgba(0, 0, 0, .9);
}

#view-voting .voting-option-copy h2.is-long-title {
  font-size: clamp(17px, 1.25vw, 21px) !important;
}

#view-voting .voting-option-copy h2.is-very-long-title {
  font-size: clamp(14px, 1.05vw, 18px) !important;
  line-height: 1.16 !important;
}

#view-voting .voting-option-meta {
  display: block;
  margin-top: 5px;
  color: #aaa1a4;
  font-size: 10px;
  font-weight: 450;
  line-height: 1.2;
  text-shadow: 0 2px 8px rgba(0, 0, 0, .9);
}

#view-voting .voting-result {
  position: relative;
  min-width: 0;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: 16px 16px;
  align-content: center;
  align-items: center;
  column-gap: 13px;
  row-gap: 4px;
  padding: 4px 3px 0 !important;
}

#view-voting .voting-result.is-hidden {
  display: grid !important;
}

#view-voting .voting-result.is-hidden > *,
#view-voting .voting-result.is-hidden::after {
  visibility: hidden;
}

#view-voting .voting-result-meta {
  grid-column: 2;
  grid-row: 1 / 3;
  display: block;
  margin: 0;
}

#view-voting .voting-result-meta strong {
  color: var(--voting-accent) !important;
  font-size: 20px;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

#view-voting .voting-result-meta span {
  display: none;
}

#view-voting .voting-result-track {
  grid-column: 1;
  grid-row: 1;
  height: 8px;
  overflow: hidden;
  border: 1px solid #31282a !important;
  border-radius: 999px !important;
  background: #1d191a !important;
}

#view-voting .voting-result-track span {
  display: block;
  height: 100% !important;
  border-radius: inherit;
  background: linear-gradient(90deg, #ff343a, #e62f35) !important;
  transition: width .4s var(--md-motion);
}

#view-voting .voting-result::after {
  content: "Ergebnis nach deiner Stimme";
  grid-column: 1;
  grid-row: 2;
  color: var(--voting-dim);
  font-size: 10px;
  line-height: 1;
}

#view-voting .voting-cast-btn {
  border: 1px solid #922b30 !important;
  border-radius: 8px !important;
  background: linear-gradient(135deg, #9f2229, #791a20) !important;
  color: #fff !important;
  box-shadow: 0 8px 20px rgba(74, 7, 12, .24) !important;
  transition: transform .16s ease, filter .16s ease, border-color .16s ease;
}

#view-voting .voting-cast-btn:hover:not(:disabled),
#view-voting .voting-cast-btn:focus-visible:not(:disabled) {
  border-color: #d64248 !important;
  background: linear-gradient(135deg, #b7272f, #852027) !important;
  transform: translateY(-1px);
  filter: brightness(1.04);
}

#view-voting .voting-cast-btn:disabled {
  border-color: #3a292c !important;
  background: #211a1c !important;
  color: #81777a !important;
  box-shadow: none !important;
  opacity: .78;
}

#view-voting .voting-button-icon {
  width: 28px;
  height: 28px;
  display: grid;
  grid-row: 1 / 3;
  place-items: center;
  color: #ff777b;
  font-size: 20px;
  line-height: 1;
}

#view-voting .voting-button-copy {
  min-width: 0;
  display: grid;
  gap: 1px;
  text-align: left;
}

#view-voting .voting-button-copy strong {
  overflow: hidden;
  color: inherit;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#view-voting .voting-button-copy small {
  overflow: hidden;
  color: rgba(255, 255, 255, .68);
  font-size: 10px;
  font-weight: 450;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#view-voting .voting-cast-btn:disabled .voting-button-copy small,
#view-voting .voting-cast-btn:disabled .voting-button-icon {
  color: #736a6d;
}

#view-voting .voting-center-head {
  display: block;
  padding: 4px 0 0;
  line-height: normal;
  text-align: center;
}

#view-voting .voting-center-head .section-kicker {
  width: max-content;
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--voting-accent) !important;
  font-size: 11px !important;
  font-weight: 650 !important;
  letter-spacing: .035em !important;
  text-transform: uppercase !important;
  margin: 0 auto;
}

/* --------------------------------------------------------------------- */
/* Icons im Voting laufen ueber dieselbe CSS-Maske wie die Navigation:    */
/* Inline-SVG, viewBox 0 0 24 24, stroke-width 1.7, runde Enden.          */
/* Dadurch erben sie Farbe und Hover-Zustand des jeweiligen Textes.       */
/* --------------------------------------------------------------------- */
#view-voting [data-voting-icon] {
  display: inline-grid;
  place-items: center;
  font-size: 0;
}

#view-voting [data-voting-icon]::before,
#view-voting .voting-center-head .section-kicker::before {
  content: "";
  display: block;
  background-color: currentColor;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: contain;
  mask-size: contain;
}

#view-voting .voting-center-head .section-kicker::before {
  content: "" !important;
  width: 15px;
  height: 15px;
  display: block !important;
  -webkit-mask-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'><path d='M4.2 9.1h14.2'/><path d='m15.2 5.9 3.2 3.2-3.2 3.2'/><path d='M19.8 14.9H5.6'/><path d='m8.8 11.7-3.2 3.2 3.2 3.2'/></svg>");
  mask-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'><path d='M4.2 9.1h14.2'/><path d='m15.2 5.9 3.2 3.2-3.2 3.2'/><path d='M19.8 14.9H5.6'/><path d='m8.8 11.7-3.2 3.2 3.2 3.2'/></svg>");
}

/* Kachel im "So funktioniert's": Rahmen und Flaeche bleiben, das Icon sitzt
   mit 20 px mittig darin. In der Infozeile gibt es keine Kachel. */
#view-voting .voting-how-list li > span[data-voting-icon]::before,
#view-voting .voting-info-item > span[data-voting-icon]::before {
  width: 20px;
  height: 20px;
}

#view-voting [data-voting-icon="duel"]::before {
  -webkit-mask-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'><path d='M4.2 9.1h14.2'/><path d='m15.2 5.9 3.2 3.2-3.2 3.2'/><path d='M19.8 14.9H5.6'/><path d='m8.8 11.7-3.2 3.2 3.2 3.2'/></svg>");
  mask-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'><path d='M4.2 9.1h14.2'/><path d='m15.2 5.9 3.2 3.2-3.2 3.2'/><path d='M19.8 14.9H5.6'/><path d='m8.8 11.7-3.2 3.2 3.2 3.2'/></svg>");
}
#view-voting [data-voting-icon="clock"]::before {
  -webkit-mask-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'><circle cx='12' cy='12' r='8.4'/><path d='M12 7.2V12l3.2 2'/></svg>");
  mask-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'><circle cx='12' cy='12' r='8.4'/><path d='M12 7.2V12l3.2 2'/></svg>");
}
#view-voting [data-voting-icon="calendar"]::before {
  -webkit-mask-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'><rect x='3.6' y='5' width='16.8' height='15.4' rx='2.4'/><path d='M8.2 3.4v3.2M15.8 3.4v3.2M3.6 10.2h16.8'/></svg>");
  mask-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'><rect x='3.6' y='5' width='16.8' height='15.4' rx='2.4'/><path d='M8.2 3.4v3.2M15.8 3.4v3.2M3.6 10.2h16.8'/></svg>");
}
/* Aktiver Modus: eigenes kantiges Z. Keine uebernommene Logodatei, sondern
   eine selbst gezeichnete Kontur im vorhandenen Maskensystem. */
#view-voting [data-voting-icon="mode-z"]::before {
  width: 21px;
  height: 21px;
  -webkit-mask-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M5.6 3.2 L21.2 3.2 L19.6 7.6 L11.4 16.4 L18.6 16.4 L17 20.8 L2.8 20.8 L4.4 16.4 L12.6 7.6 L4.6 7.6 Z' fill='black'/></svg>");
  mask-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M5.6 3.2 L21.2 3.2 L19.6 7.6 L11.4 16.4 L18.6 16.4 L17 20.8 L2.8 20.8 L4.4 16.4 L12.6 7.6 L4.6 7.6 Z' fill='black'/></svg>");
}

/* Die Abstimmknoepfe tragen dasselbe Duell-Icon statt der Unicode-Glyphe. */
#view-voting .voting-button-icon[data-voting-icon]::before {
  width: 17px;
  height: 17px;
}

#view-voting .voting-center-head h2 {
  margin: 16px 0 0 !important;
  color: var(--voting-text) !important;
  font-size: 25px !important;
  font-weight: 600 !important;
  line-height: 1.12 !important;
}

#view-voting .voting-center-head p {
  margin: 6px 0 0;
  color: var(--voting-muted) !important;
  font-size: 12px;
  line-height: 1.3;
}

#view-voting .voting-center-actions {
  position: relative;
  min-width: 0;
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  align-items: end !important;
  gap: 80px !important;
  margin-top: 8px;
  padding-top: 99px;
}

#view-voting .voting-desktop-cast-btn {
  min-width: 0;
  min-height: 53px;
  display: grid;
  grid-template-columns: 31px minmax(0, 1fr);
  grid-template-rows: auto auto;
  align-content: center;
  align-items: center;
  column-gap: 7px;
  padding: 7px 12px;
}

#view-voting .voting-vs {
  position: absolute;
  top: 0;
  left: 50%;
  width: 188px;
  height: 96px;
  display: grid !important;
  place-items: center;
  border: 0 !important;
  border-radius: 0 !important;
  background:
    radial-gradient(ellipse at center, rgba(255, 40, 45, .26), transparent 45%),
    repeating-conic-gradient(from 0deg at 50% 50%, rgba(255, 53, 58, .5) 0 .65deg, transparent .65deg 16deg) !important;
  box-shadow: none !important;
  transform: translateX(-50%);
  isolation: isolate;
}

#view-voting .voting-vs::after {
  content: "";
  position: absolute;
  inset: 25% 19%;
  z-index: -1;
  background: radial-gradient(ellipse, rgba(255, 49, 55, .34), transparent 68%);
  filter: blur(8px);
}

#view-voting .voting-vs span {
  color: #fff4f4 !important;
  font-size: 60px;
  font-weight: 750;
  font-style: italic;
  line-height: 1;
  letter-spacing: -.09em;
  text-shadow:
    0 0 5px #ff3439,
    0 0 18px rgba(255, 31, 38, .9),
    0 0 34px rgba(255, 31, 38, .48);
  transform: translateX(-3px);
}

#view-voting .voting-status:not([data-kind="error"]) {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
}

#view-voting .voting-status[data-kind="error"] {
  position: absolute;
  right: 12px;
  bottom: 8px;
  left: 12px;
  z-index: 4;
  margin: 0;
  padding: 6px 9px;
  border: 1px solid #6b2a31;
  border-radius: 6px;
  background: rgba(45, 16, 20, .96);
  color: #ffc5c8 !important;
  font-size: 10px;
  line-height: 1.25;
  text-align: center;
}

#view-voting .voting-info-panel {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: center;
  padding: 11px 8px;
}

#view-voting .voting-info-item {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 10px;
}

#view-voting .voting-info-item + .voting-info-item {
  border-left: 1px solid #2a2224;
}

#view-voting .voting-info-item > span {
  flex: 0 0 auto;
  color: #b5acae;
  font-size: 20px;
  line-height: 1;
}

#view-voting .voting-info-item div {
  min-width: 0;
  display: grid;
  gap: 2px;
}

#view-voting .voting-info-item strong {
  overflow: hidden;
  color: var(--voting-text);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

#view-voting .voting-info-item small {
  overflow: hidden;
  color: var(--voting-dim);
  font-size: 10px;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#view-voting .voting-history-panel {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 13px 14px !important;
}

#view-voting .voting-history-header {
  flex: 0 0 auto;
  margin: 0 0 7px;
  text-align: left;
}

#view-voting .voting-history-header h3,
#view-voting .voting-lower-panel h2 {
  margin: 0 !important;
  color: var(--voting-text) !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  line-height: 1.2 !important;
}

#view-voting .voting-history-table-wrap {
  min-height: 0;
  flex: 1 1 auto;
  overflow: auto;
  scrollbar-width: thin;
}

#view-voting .voting-history-table {
  width: 100%;
  min-width: 0;
  table-layout: fixed;
  border-collapse: collapse;
  font-size: 10.5px;
}

#view-voting .voting-history-table th,
#view-voting .voting-history-table td {
  height: 39px;
  padding: 6px 7px;
  overflow: hidden;
  border-bottom: 1px solid #292224 !important;
  color: #d9d3d5 !important;
  text-align: left;
  text-overflow: ellipsis;
  vertical-align: middle;
}

#view-voting .voting-history-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  height: 30px;
  background: #151314 !important;
  color: #8d8487 !important;
  font-size: 9px;
  font-weight: 550;
  letter-spacing: .02em;
  text-transform: none;
}

#view-voting .voting-history-table th:nth-child(1),
#view-voting .voting-history-table td:nth-child(1) { width: 62px; }
#view-voting .voting-history-table th:nth-child(3),
#view-voting .voting-history-table td:nth-child(3) { width: 105px; }
#view-voting .voting-history-table th:nth-child(4),
#view-voting .voting-history-table td:nth-child(4) { width: 62px; text-align: right; }

#view-voting .voting-history-duel {
  display: block;
}

#view-voting .voting-history-duel b {
  display: block;
  overflow: hidden;
  color: #d9d3d5 !important;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#view-voting .voting-history-duel span {
  display: none;
}

#view-voting .voting-history-winner {
  color: #e2dcde !important;
  font-weight: 500;
  white-space: nowrap;
  text-overflow: ellipsis;
}

#view-voting .voting-history-result {
  color: #a89fa2 !important;
  font-weight: 550;
  white-space: nowrap;
}

#view-voting .voting-history-mobile {
  display: none;
}

#view-voting .voting-lower-panel {
  overflow: hidden;
  padding: 17px 18px !important;
}

#view-voting .voting-how-list,
#view-voting .voting-weekly-list {
  margin: 13px 0 0;
  padding: 0;
  list-style: none;
}

#view-voting .voting-how-list {
  display: grid;
  gap: 10px;
}

/* Schritte als schlichte Aufzaehlung: ein kleiner Akzentpunkt statt Icon.
   Die Spaltenbreite faellt von 40 px auf die Punktbreite, damit links kein
   leerer Platz bleibt. */
#view-voting .voting-how-list li {
  min-width: 0;
  display: grid;
  grid-template-columns: 7px minmax(0, 1fr);
  align-items: center;
  gap: 11px;
}

#view-voting .voting-how-list li::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--voting-accent);
}

#view-voting .voting-how-list div {
  min-width: 0;
  display: grid;
  gap: 2px;
}

#view-voting .voting-how-list strong {
  overflow: hidden;
  color: #dcd6d8;
  font-size: 11.5px;
  font-weight: 550;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#view-voting .voting-how-list small {
  overflow: hidden;
  color: var(--voting-dim);
  font-size: 9.5px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#view-voting .voting-weekly-list {
  display: grid;
  gap: 9px;
}

#view-voting .voting-weekly-row {
  min-width: 0;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) 46px;
  grid-template-rows: 23px 8px;
  align-items: center;
  column-gap: 9px;
  row-gap: 3px;
}

#view-voting .voting-weekly-rank {
  width: 28px;
  height: 28px;
  display: grid;
  grid-row: 1 / 3;
  place-items: center;
  border: 1px solid #57484b;
  border-radius: 50%;
  color: #d7d0d2;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

#view-voting .voting-weekly-row:first-child .voting-weekly-rank {
  border-color: #ac7b06;
  color: #ffc400;
}

#view-voting .voting-weekly-title {
  overflow: hidden;
  color: #dcd6d8;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#view-voting .voting-weekly-result {
  color: var(--voting-accent);
  font-size: 12px;
  font-weight: 600;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

#view-voting .voting-weekly-track {
  height: 5px;
  overflow: hidden;
  border-radius: 99px;
  background: #2a2224;
}

#view-voting .voting-weekly-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--voting-accent);
}

#view-voting .voting-weekly-date {
  color: var(--voting-dim);
  font-size: 8.5px;
  line-height: 1;
  text-align: right;
}

#view-voting .voting-weekly-empty {
  padding: 20px 10px;
  color: var(--voting-dim);
  font-size: 11px;
  line-height: 1.4;
  text-align: center;
}

#view-voting .voting-history-mobile-card {
  display: grid;
  gap: 6px;
  padding: 12px 14px;
  border: 1px solid var(--voting-border);
  border-radius: 9px;
  background: #171415;
}

#view-voting .voting-history-mobile-card time {
  color: var(--voting-dim);
  font-size: 10px;
}

#view-voting .voting-history-mobile-card strong {
  color: var(--voting-text);
  font-size: 13px;
  line-height: 1.35;
}

#view-voting .voting-history-mobile-card span {
  color: var(--voting-accent);
  font-size: 12px;
  font-weight: 600;
}

@media (min-width: 1181px) {
  html:not(.native-app) body[data-active-view="voting"] .content-topbar {
    display: none !important;
  }

  html:not(.native-app) body #view-voting {
    width: min(100%, clamp(1354px, calc(100vw - 520px), 2400px));
    max-width: 2400px;
    margin: 0 auto;
    padding-top: 24px;
  }

  html:not(.native-app) body #view-voting .voting-page-title {
    position: static !important;
    width: auto !important;
    height: auto !important;
    min-height: 0;
    margin: 0 0 12px !important;
    overflow: visible !important;
    clip: auto !important;
    clip-path: none !important;
    font-size: 14px !important;
    line-height: 1.4 !important;
    white-space: normal !important;
  }

  #view-voting .voting-page-title > div {
    line-height: normal;
  }

  #view-voting .voting-page-title .section-kicker {
    display: block !important;
    color: var(--voting-accent) !important;
    font-size: 11px !important;
    font-weight: 650 !important;
    letter-spacing: .02em !important;
    text-transform: uppercase !important;
  }

  #view-voting .voting-page-title .page-main-title {
    margin: 10px 0 0 !important;
    color: #f3eff0 !important;
    font-size: 30px !important;
    font-weight: 600 !important;
    line-height: 1.08 !important;
    letter-spacing: -.025em !important;
  }

  #view-voting .voting-page-title p {
    margin: 4px 0 0;
    color: var(--voting-muted) !important;
    font-size: 13px;
    line-height: 1.35;
  }

  #view-voting .voting-mode-switch {
    margin: 0 0 12px 4px !important;
  }

  #view-voting .voting-mode-btn:first-child { min-width: 157px; }
  #view-voting .voting-mode-btn:last-child { min-width: 228px; }

  #view-voting .voting-desktop-stage {
    width: 100%;
    height: 718px;
    display: grid !important;
    grid-template-columns: minmax(0, 27fr) minmax(0, 38fr) minmax(0, 27fr) !important;
    grid-template-areas: "option-a center option-b" !important;
    grid-template-rows: minmax(0, 1fr) !important;
    gap: 16px !important;
    align-items: stretch !important;
    margin: 0;
  }

  #view-voting .voting-side-a { grid-area: option-a; }
  #view-voting .voting-side-b { grid-area: option-b; }
  #view-voting .voting-center-column { grid-area: center; }

  #view-voting .voting-side-column {
    display: grid;
    grid-template-rows: 478px minmax(0, 1fr);
    gap: 14px;
  }

  #view-voting .voting-option-card {
    grid-area: auto !important;
    display: grid !important;
    grid-template-rows: minmax(0, 1fr) 74px;
    gap: 0;
    height: 478px;
    padding: 10px !important;
  }

  #view-voting .voting-image-shell {
    aspect-ratio: auto !important;
  }

  #view-voting .voting-mobile-cast-btn {
    display: none !important;
  }

  #view-voting .voting-center-column {
    display: grid !important;
    grid-template-rows: 285px 82px minmax(0, 1fr);
    gap: 10px;
    padding: 0 !important;
  }

  #view-voting .voting-duel-panel {
    position: relative;
    height: 285px;
    overflow: hidden;
    padding: 18px 16px 13px;
  }

  #view-voting .voting-center-actions {
    padding-top: 111px;
  }

  #view-voting .voting-history-panel,
  #view-voting .voting-lower-panel {
    min-height: 0;
  }
}

@media (min-width: 1181px) and (min-height: 1050px) {
  #view-voting .voting-desktop-stage {
    height: clamp(718px, calc(90dvh - 129px), 1100px);
  }

  #view-voting .voting-side-column {
    grid-template-rows: clamp(478px, calc(50dvh + 8px), 700px) minmax(0, 1fr);
  }

  #view-voting .voting-option-card {
    height: clamp(478px, calc(50dvh + 8px), 700px);
  }

  #view-voting .voting-center-column {
    grid-template-rows: clamp(285px, calc(35dvh - 44px), 450px) clamp(82px, calc(10dvh - 12px), 110px) minmax(0, 1fr);
  }

  #view-voting .voting-duel-panel {
    height: clamp(285px, calc(35dvh - 44px), 450px);
  }

  #view-voting .voting-center-actions {
    padding-top: clamp(111px, calc(20dvh - 77px), 175px);
  }
}

@media (max-width: 1180px) {
  #view-voting .voting-page-title {
    position: static;
    width: auto;
    height: auto;
    overflow: visible;
    clip: auto;
    clip-path: none;
    white-space: normal;
  }

  #view-voting .voting-mode-switch {
    margin: 0 auto 18px !important;
  }

  #view-voting .voting-desktop-stage {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    grid-template-areas:
      "option-a option-b"
      "center center" !important;
    gap: 18px !important;
    max-width: 900px;
    margin: 0 auto;
  }

  #view-voting .voting-side-a { grid-area: option-a; }
  #view-voting .voting-side-b { grid-area: option-b; }
  #view-voting .voting-center-column { grid-area: center; }

  #view-voting .voting-how-panel,
  #view-voting .voting-weekly-panel {
    display: none;
  }

  #view-voting .voting-option-card {
    display: flex !important;
    flex-direction: column;
    gap: 10px;
    height: auto;
    padding: 12px !important;
  }

  #view-voting .voting-image-shell {
    aspect-ratio: 1 / 1.15;
  }

  #view-voting .voting-result.is-hidden {
    display: none !important;
  }

  #view-voting .voting-center-column {
    display: grid !important;
    gap: 14px;
    width: min(100%, 850px);
    justify-self: center;
    padding: 0 !important;
  }

  #view-voting .voting-duel-panel {
    position: relative;
    padding: 18px;
  }

  #view-voting .voting-history-panel {
    min-height: 330px;
  }
}

@media (max-width: 760px) {
  #view-voting .voting-mode-switch {
    display: flex !important;
    width: 100%;
    max-width: 460px;
  }

  #view-voting .voting-mode-btn {
    min-width: 0;
    flex: 1 1 0;
    padding: 0 8px;
    font-size: 11px;
  }

  #view-voting .voting-desktop-stage {
    grid-template-columns: minmax(0, 1fr) !important;
    grid-template-areas:
      "option-a"
      "option-b"
      "center" !important;
    gap: 13px !important;
    max-width: 520px;
  }

  #view-voting .voting-option-card {
    gap: 8px;
    padding: 11px !important;
  }

  #view-voting .voting-option-copy h2 {
    font-size: clamp(17px, 5.5vw, 24px) !important;
  }

  #view-voting .voting-desktop-cast-btn,
  #view-voting .voting-center-actions {
    display: none !important;
  }

  #view-voting .voting-mobile-cast-btn {
    min-height: 48px;
    display: grid !important;
    grid-template-columns: 30px minmax(0, 1fr);
    grid-template-rows: auto auto;
    align-content: center;
    align-items: center;
    column-gap: 7px;
    padding: 7px 13px;
  }

  #view-voting .voting-info-panel {
    padding: 10px 4px;
  }

  #view-voting .voting-info-item {
    gap: 5px;
    padding: 0 5px;
  }

  #view-voting .voting-info-item > span {
    display: none;
  }

  #view-voting .voting-info-item strong {
    font-size: 11px;
  }

  #view-voting .voting-info-item small {
    font-size: 8px;
  }

  #view-voting .voting-history-panel {
    min-height: 0;
    padding: 14px !important;
  }

  #view-voting .voting-history-table-wrap {
    display: none;
  }

  #view-voting .voting-history-mobile {
    display: grid;
    gap: 9px;
  }
}

.native-app #view-voting .voting-how-panel,
.native-app #view-voting .voting-weekly-panel {
  display: none;
}

.native-app #view-voting .voting-side-column {
  min-width: 0;
}
