@font-face {
  font-family: Golos;
  src: url('./assets/golos-cyr.woff2') format('woff2');
  font-weight: 400 900;
  font-display: swap;
  unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: Golos;
  src: url('./assets/golos-latin.woff2') format('woff2');
  font-weight: 400 900;
  font-display: swap;
  unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212;
}
@font-face {
  font-family: Unbounded;
  src: url('./assets/unbounded-cyr.woff2') format('woff2');
  font-weight: 600 900;
  font-display: swap;
  unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: Unbounded;
  src: url('./assets/unbounded-latin.woff2') format('woff2');
  font-weight: 600 900;
  font-display: swap;
  unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212;
}

:root {
  color-scheme: dark;
  --bg: #10110f;
  --panel: #191a17;
  --text: #f2f2e9;
  --muted: #b2b3a7;
  --acid: #d9ff36;
  --line: #30322c;
  --display: Unbounded, Arial, sans-serif;
  --body: Golos, system-ui, sans-serif;
  --mono: 'Courier New', monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--body); line-height: 1.55; }
body:has(dialog[open]) { overflow: hidden; }
section[id] { scroll-margin-top: 96px; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
a { color: inherit; text-decoration: none; }
button:focus-visible, a:focus-visible, summary:focus-visible, input:focus-visible, label:has(:focus-visible) { outline: 2px solid var(--acid); outline-offset: 4px; }
button:disabled { cursor: default; opacity: .55; }
[hidden] { display: none !important; }
h1, h2, h3, p { margin: 0; }
.shell { width: min(100% - 104px, 1296px); margin-inline: auto; }
.skip-link { position: fixed; z-index: 9; left: 18px; top: 18px; padding: 9px 14px; color: var(--bg); background: var(--acid); transform: translateY(-200%); }
.skip-link:focus { transform: none; }

.site-header { position: sticky; top: 0; z-index: 3; background: #10110ff5; border-bottom: 1px solid var(--line); }
.header-inner { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 22px; }
.brand { display: inline-flex; align-items: center; gap: 10px; flex: 0 0 auto; font: 850 15px/1 var(--display); letter-spacing: -.04em; }
.brand-mark { display: grid; align-content: center; justify-items: center; gap: 2px; width: 31px; height: 31px; background: #181b12; border: 1px solid #4d5634; border-radius: 5px; }
.brand-mark::before { content: ''; width: 64%; height: 13px; background: linear-gradient(112deg, #ebffa8, var(--acid) 50%, #91ad31); clip-path: polygon(0 24%, 28% 49%, 50% 0, 72% 49%, 100% 24%, 85% 100%, 15% 100%); }
.brand-mark::after { content: ''; width: 44%; height: 1px; background: var(--acid); }
.brand-separator { color: var(--acid); margin-inline: 3px; }
.header-nav { display: flex; align-items: center; gap: clamp(18px, 3.3vw, 51px); font-size: 14px; font-weight: 560; color: var(--muted); }
.header-nav a, .text-link { transition: color .18s ease; }
.header-nav a:hover, .text-link:hover { color: var(--acid); }
.header-nav span { margin-left: 3px; color: var(--acid); }
.button { min-height: 52px; display: inline-flex; align-items: center; justify-content: center; gap: 13px; cursor: pointer; border: 1px solid transparent; border-radius: 5px; padding: 0 19px; font-weight: 750; white-space: nowrap; transition: background .18s ease, color .18s ease, border-color .18s ease; }
.button-outline { color: var(--text); background: transparent; border-color: #515348; }
.button-outline:hover { color: var(--acid); border-color: var(--acid); }
.header-login { min-height: 41px; padding-inline: 12px; gap: 8px; font-size: 13px; }
.vk-mark { font: 900 10px/1 var(--display); background: #f2f2e9; color: #171815; padding: 3px 4px; border-radius: 3px; letter-spacing: -.09em; }
.button-acid { color: var(--bg); background: var(--acid); }
.button-acid:hover:not(:disabled) { background: #ecff91; }
.button-acid span, .button-dark span { font-size: 20px; line-height: 1; }
.button-dark { color: var(--text); background: #141610; }
.button-dark:hover { background: #383b2a; }
.text-link { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 14px; font-weight: 650; }
.text-link span { color: var(--acid); }

.hero { overflow: clip; border-bottom: 1px solid #1e201a; }
.hero-inner { min-height: clamp(500px, 41.4vw, 605px); position: relative; display: grid; align-items: center; isolation: isolate; }
.hero-copy { z-index: 1; padding-block: 28px 44px; }
.eyebrow { display: flex; align-items: center; gap: 10px; color: var(--muted); font: 700 clamp(10px, 1vw, 13px)/1.4 var(--mono); text-transform: uppercase; letter-spacing: .075em; }
.indicator { flex: 0 0 auto; width: 7px; height: 7px; background: var(--acid); border-radius: 50%; box-shadow: 0 0 12px #d9ff3666; }
.hero h1 { display: flex; flex-direction: column; align-items: flex-start; margin-block: 22px 24px; font: 900 clamp(82px, 9.4vw, 138px)/.99 var(--display); letter-spacing: -.048em; }
.hero h1 > span { display: block; padding-right: .07em; }
.hero-accent { color: var(--acid); }
.hero-dot { color: var(--acid); }
.hero-description { color: #d3d5c8; max-width: 420px; font-size: clamp(16px, 1.65vw, 23px); letter-spacing: -.024em; text-wrap: balance; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 16px 22px; margin-top: 29px; }
.hero-art { position: absolute; z-index: -1; inset: 26px -8px 26px 38%; overflow: hidden; display: grid; place-items: center; }
.hero-art::before { content: ''; position: absolute; inset: 10px; background-image: linear-gradient(90deg, #acbd7b21 1px, transparent 1px), linear-gradient(#acbd7b21 1px, transparent 1px); background-size: 46px 46px; mask-image: radial-gradient(ellipse, #000 15%, transparent 75%); }
.crown-image { position: absolute; width: 106%; max-width: 930px; height: auto; mix-blend-mode: screen; mask-image: radial-gradient(ellipse 70% 72%, #000 52%, transparent 83%); }
.art-corner { position: absolute; z-index: 1; width: 15px; height: 15px; border-color: #78814d; border-style: solid; }
.top-left { top: 4px; left: 12px; border-width: 1px 0 0 1px; }
.top-right { top: 4px; right: 12px; border-width: 1px 1px 0 0; }
.bottom-left { bottom: 4px; left: 12px; border-width: 0 0 1px 1px; }
.bottom-right { bottom: 4px; right: 12px; border-width: 0 1px 1px 0; }

.signal-band { color: #161a09; background: var(--acid); overflow: clip; }
.signal-inner { display: flex; align-items: center; justify-content: space-between; min-height: 42px; gap: 12px; font: 850 clamp(9px, 1.08vw, 13px)/1.2 var(--display); letter-spacing: .015em; }
.signal-inner b { font: 18px/1 Arial, sans-serif; }

.section { padding-top: 74px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; flex-wrap: wrap; gap: 14px 24px; margin-bottom: 25px; }
h2 { font: 850 clamp(27px, 4.05vw, 58px)/1.1 var(--display); letter-spacing: -.052em; }
h2 span { color: var(--acid); }
.section-heading p { margin-top: 10px; color: var(--muted); font-size: 15px; }
.section-heading .status-chip { display: inline-flex; align-items: center; min-height: 35px; padding: 6px 10px; margin: 0; color: #d9dbcb; border: 1px solid #3d422e; border-radius: 4px; font: 700 12px/1.3 var(--mono); }
.status-chip::before { content: ''; width: 6px; height: 6px; margin-right: 9px; border-radius: 50%; background: var(--acid); }
.stage-progress { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0 0 20px; padding: 0; list-style: none; }
.stage-progress li { display: flex; align-items: center; gap: 12px; min-width: 0; padding: 11px 13px; border: 1px solid #35382e; border-radius: 6px; background: #181a16; }
.stage-progress li[aria-current] { border-color: #697936; background: #1d2313; }
.stage-progress .is-locked { border-style: dashed; }
.stage-number { display: grid; place-items: center; flex: 0 0 34px; min-height: 34px; border-radius: 4px; background: #24271f; color: #c4c7b9; font: 700 13px/1 var(--mono); }
.stage-progress li[aria-current] .stage-number { color: #10110f; background: var(--acid); }
.stage-progress strong { display: block; font-size: 15px; }
.stage-progress p { color: var(--muted); font-size: 13px; }
.nomination-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 11px; }
.nomination {
  --tone: var(--acid);
  --art-x: 0%;
  --art-y: 0%;
  position: relative;
  min-width: 0;
  min-height: clamp(177px, 19vw, 270px);
  display: flex;
  align-items: flex-end;
  isolation: isolate;
  text-align: left;
  color: var(--text);
  background: #0a0f0b;
  border: 1px solid #34372e;
  border-radius: 8px;
  cursor: pointer;
  padding: 18px 46px 18px 15px;
  overflow: hidden;
  transition: border-color .2s ease;
}
.nomination:hover { border-color: var(--tone); }
.tone-pink { --tone: #f8a8dc; }
.tone-blue { --tone: #9adcea; }
.tone-gold { --tone: #f4c77b; }
.nomination:nth-child(-n+4) { min-height: clamp(197px, 22vw, 310px); }
.nomination[data-id="faculty"] { grid-column: span 2; }
.nomination::after { content: ''; z-index: -1; position: absolute; inset: 0; background: linear-gradient(to top, #0b0e0bf7, #0a0d0ab8 15%, transparent 46%); }
.nomination[data-id="faculty"]::after { background: linear-gradient(to right, #0a0f0b 3%, transparent 72%), linear-gradient(to top, #0b0e0bf7, transparent 42%); }
.card-title { min-width: 0; overflow-wrap: anywhere; hyphens: auto; font: 740 clamp(14px, 1.5vw, 21px)/1.25 var(--display); letter-spacing: -.024em; text-wrap: balance; text-shadow: 0 2px 14px #070807; }
.card-art {
  position: absolute;
  z-index: -2;
  top: calc(50% - 12px);
  right: 0;
  width: 100%;
  aspect-ratio: 1;
  background: url('./assets/nomination-art.webp') var(--art-x) var(--art-y) / 400% 300% no-repeat;
  transform: translateY(-50%);
  transition: transform .24s ease;
}
.nomination:hover .card-art { transform: translateY(-50%) scale(1.045); }
.nomination[data-id="queen"] { --art-x: 33.333333%; }
.nomination[data-id="prince"] { --art-x: 66.666667%; }
.nomination[data-id="princess"] { --art-x: 100%; }
.nomination[data-id="group"] { --art-y: 50%; }
.nomination[data-id="curator"] { --art-x: 33.333333%; --art-y: 50%; }
.nomination[data-id="subject"] { --art-x: 66.666667%; --art-y: 50%; }
.nomination[data-id="building"] { --art-x: 100%; --art-y: 50%; }
.nomination[data-id="shop"] { --art-y: 100%; }
.nomination[data-id="ai"] { --art-x: 33.333333%; --art-y: 100%; }
.nomination[data-id="faculty"] { --art-x: 66.666667%; --art-y: 100%; }
.nomination[data-id="faculty"] .card-art { width: min(64%, 370px); }
.nomination[data-id="faculty"] .card-title { max-width: 28ch; }
.card-arrow { position: absolute; bottom: 14px; right: 14px; display: grid; place-items: center; width: 29px; height: 29px; border-radius: 50%; border: 1px solid #6a6d5f; background: #151812bf; color: var(--tone); font-size: 15px; }
.nomination:hover .card-arrow { background: var(--tone); color: #10110f; border-color: var(--tone); }
.voted-label { position: absolute; top: 13px; left: 13px; border-radius: 4px; background: #282e14; color: var(--acid); padding: 3px 6px; font-size: 11px; }

.how { margin-top: 69px; padding-top: 46px; border-top: 1px solid var(--line); }
.stages { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.stages li { padding: 20px; border: 1px solid #34392a; border-radius: 7px; background: linear-gradient(115deg, #202518, #151713 75%); }
.stages b { display: block; color: var(--acid); font: 700 12px/1.3 var(--mono); margin-bottom: 9px; }
.stages h3 { font: 750 clamp(18px, 2.5vw, 27px)/1.2 var(--display); letter-spacing: -.035em; }
.stages p { color: var(--muted); margin-top: 7px; font-size: 15px; }
.rules-disclaimer { margin-top: 17px; padding-block: 9px; color: var(--muted); border-top: 1px solid var(--line); font-size: 14px; }
.rules-disclaimer summary { width: fit-content; cursor: pointer; font-weight: 650; }
.rules-disclaimer summary:hover { color: var(--acid); }
.rules-disclaimer p { max-width: 70ch; margin-top: 8px; }
.telegram { margin-block: 58px 63px; padding: clamp(22px, 4vw, 47px); display: flex; align-items: center; justify-content: space-between; gap: 19px; color: #15170f; background: var(--acid); border-radius: 7px; }
.telegram h2 { font-size: clamp(22px, 3.45vw, 46px); }
.telegram .button:focus-visible { outline-color: #15170f; }
.site-footer { border-top: 1px solid var(--line); padding-block: 30px; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.footer-inner > a:last-child { white-space: nowrap; }

dialog { width: min(calc(100% - 26px), 538px); max-height: calc(100dvh - 30px); color: var(--text); background: #181a16; border: 1px solid #454936; border-radius: 9px; padding: clamp(19px, 5vw, 32px); box-shadow: 0 22px 90px #000b; overscroll-behavior: contain; }
dialog.wide-dialog { width: min(calc(100% - 26px), 692px); }
dialog::backdrop { background: #080908c9; backdrop-filter: blur(5px); }
.close-form { position: absolute; top: 13px; right: 13px; }
.icon-button { display: grid; place-items: center; width: 36px; height: 36px; color: var(--text); background: transparent; border: 1px solid #494c3f; border-radius: 5px; font: 25px/1 Arial, sans-serif; cursor: pointer; }
.icon-button:hover { color: var(--acid); border-color: var(--acid); }
.dialog-kicker { color: var(--acid); margin-bottom: 8px; font: 700 12px/1.35 var(--mono); text-transform: uppercase; letter-spacing: .06em; }
#dialog-title { overflow-wrap: anywhere; hyphens: auto; font: 800 clamp(22px, 5.5vw, 31px)/1.15 var(--display); letter-spacing: -.037em; padding-right: 38px; }
#dialog-description { margin-block: 9px 19px; color: var(--muted); font-size: 15px; }
.dialog-message, .form-feedback { color: var(--muted); font-size: 14px; }
.dialog-message strong { color: var(--text); }
.account-id { color: var(--text); user-select: all; }
.dialog-action { margin-top: 15px; }
.dialog-buttons { display: flex; flex-wrap: wrap; gap: 8px; }
.candidate-list { min-width: 0; margin: 0; padding: 0; border: 0; }
.candidate-list legend { padding: 0; margin-bottom: 8px; color: #e1e3d6; font-size: 14px; font-weight: 750; }
.candidate-rows, .admin-rows { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.candidate { min-height: 50px; display: flex; align-items: center; gap: 8px; padding: 8px 10px; border: 1px solid #3e4035; border-radius: 5px; }
label.candidate { cursor: pointer; }
label.candidate:hover { border-color: #838b55; }
.candidate:has(:checked), .candidate.is-chosen { border-color: var(--acid); background: #242a15; }
.candidate input { flex: 0 0 auto; accent-color: var(--acid); width: 17px; height: 17px; margin: 0; }
.candidate-rank { flex: 0 0 22px; text-align: center; color: var(--muted); font: 700 12px/1.3 var(--mono); }
.candidate-details { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; }
.candidate-name { display: block; font-size: 14px; font-weight: 650; }
.candidate-address { display: block; margin-top: 3px; color: var(--muted); font-size: 12px; }
.candidate-count { flex: 0 0 auto; color: #d3d5c7; white-space: nowrap; font: 750 12px/1.3 var(--body); font-variant-numeric: tabular-nums; }
.candidate.is-leader .candidate-rank, .candidate.is-leader .candidate-count { color: var(--acid); }
.vote-confirmation { margin: 0 0 10px; color: var(--acid); font-size: 14px; }
.vote-confirmation strong { overflow-wrap: anywhere; }
.ballot-sign-in { margin-top: 13px; }
.ballot-sign-in .dialog-message + .dialog-message { margin-top: 3px; }
.form-feedback { margin-top: 10px; }
.form-feedback:empty { display: none; }
.suggestion { margin-bottom: 17px; }
.suggestion-status { margin-bottom: 10px; padding: 9px 11px; border-radius: 5px; background: #25291c; color: #d0d2c7; font-size: 14px; overflow-wrap: anywhere; }
.suggestion summary { display: flex; min-height: 43px; width: fit-content; font-size: 14px; padding-inline: 13px; list-style: none; }
.suggestion summary::-webkit-details-marker { display: none; }
.suggestion-form { margin-top: 12px; }
.suggestion-group { margin-top: 10px; }
.suggestion-form label, .admin-edit label, .admin-filter { display: grid; gap: 5px; color: #dadcd0; font-size: 13px; }
.suggestion-form input, .admin-edit input, .admin-filter select { width: 100%; min-width: 0; min-height: 44px; padding: 8px 11px; border: 1px solid #56594b; border-radius: 5px; background: #11130f; color: var(--text); font: 15px/1.5 var(--body); }
.admin-filter select:focus-visible { outline: 2px solid var(--acid); outline-offset: 3px; }
.suggestion-form .button { min-height: 43px; }
.admin-list { margin-block: 16px; }
.admin-list h3 { margin: 14px 0 6px; font-size: 15px; }
.admin-blocks { margin-bottom: 16px; border: 1px solid #3e4035; border-radius: 5px; }
.admin-blocks summary { padding: 10px 12px; cursor: pointer; font-size: 14px; font-weight: 750; }
.admin-blocked-list { padding: 0 10px 10px; }
.admin-card { border: 1px solid #3e4035; padding: 9px 12px; border-radius: 5px; overflow-wrap: anywhere; }
.admin-name { font-weight: 750; }
.admin-meta { color: var(--muted); font-size: 13px; }
.admin-controls { display: flex; gap: 7px; flex-wrap: wrap; margin-top: 8px; }
.admin-button { min-height: 34px; padding: 5px 8px; font-size: 12px; white-space: normal; }
.admin-edit { display: flex; align-items: end; flex-wrap: wrap; gap: 7px; margin-top: 9px; }
.admin-edit label { flex: 1 1 100%; }
.button-danger { color: #ffe0db; border-color: #a85549; background: #54261f; }
.button-danger:hover { background: #713027; }
.toast { position: fixed; z-index: 5; right: 17px; bottom: 17px; width: min(calc(100% - 34px), 385px); color: var(--text); background: #252a1b; border: 1px solid #515b30; border-radius: 5px; padding: 12px 15px; box-shadow: 0 12px 35px #0006; }

@media (max-width: 1050px) {
  .shell { width: calc(100% - 64px); }
  .hero-art { left: 34%; }
  .nomination { padding-left: 12px; }
}

@media (max-width: 760px) {
  .shell { width: calc(100% - 36px); }
  .header-inner { min-height: 59px; gap: 8px; }
  .brand { gap: 6px; font-size: 12px; }
  .brand-mark { width: 26px; height: 26px; }
  .brand-mark::before { height: 11px; }
  .brand-separator { margin-inline: 2px; }
  .header-nav { display: none; }
  .header-login { min-height: 35px; padding-inline: 7px; font-size: 11px; gap: 6px; }
  .hero-inner { display: flex; flex-direction: column; align-items: stretch; min-height: auto; }
  .hero-copy { padding-block: 35px 0; }
  .hero h1 { font-size: clamp(53px, 12vw, 100px); margin-block: 17px 16px; }
  .hero-description { text-wrap: initial; }
  .hero-actions { margin-top: 15px; gap: 9px 14px; }
  .hero-actions .button { min-height: 44px; padding-inline: 11px; font-size: 13px; gap: 7px; }
  .hero-actions .text-link { font-size: 12px; }
  .hero-art { position: relative; z-index: 0; inset: auto; align-self: stretch; height: clamp(208px, 61vw, 350px); margin: 6px -7px 10px; }
  .crown-image { width: min(100%, 585px); }
  .art-corner { display: none; }
  .signal-inner { min-height: 34px; gap: 5px; font-size: clamp(7px, 1.85vw, 11px); }
  .signal-inner > :nth-child(n+6) { display: none; }
  .signal-inner b { font-size: 13px; }
  .section { padding-top: 44px; }
  .section-heading { margin-bottom: 17px; }
  .section-heading p { font-size: 14px; margin-top: 7px; }
  .section-heading .status-chip { min-height: 27px; margin-top: 0; padding: 4px 7px; font-size: 11px; }
  .stage-progress { grid-template-columns: 1fr; gap: 6px; margin-bottom: 14px; }
  .stage-progress li { padding: 8px 10px; }
  .nomination-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
  .nomination, .nomination:nth-child(-n+4) { min-height: clamp(141px, 38vw, 235px); padding: 10px 28px 10px 9px; }
  .card-title { font-size: clamp(13px, 3vw, 18px); }
  .card-arrow { bottom: 8px; right: 8px; width: 21px; height: 21px; font-size: 12px; }
  .nomination:is([data-id="king"], [data-id="queen"]) { padding-right: 9px; }
  .nomination:is([data-id="king"], [data-id="queen"]) .card-title { font-size: clamp(11px, 2.95vw, 18px); }
  .nomination:is([data-id="king"], [data-id="queen"]) .card-arrow { inset-block: 8px auto; }
  .card-art { top: calc(50% - 13px); }
  .nomination[data-id="faculty"] .card-art { width: min(55%, 270px); }
  .how { margin-top: 45px; padding-top: 27px; }
  .stages { grid-template-columns: 1fr; }
  .stages li { padding: 14px; }
  .stages p { font-size: 14px; }
  .telegram { align-items: flex-start; flex-direction: column; margin-block: 32px; }
  .footer-inner { flex-wrap: wrap; gap: 13px; }
  .footer-inner .text-link { font-size: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
