:root {
  --ink: #242341;
  --muted: #66647c;
  --blue: #5541c9;
  --teal: #6b55da;
  --line: #e5e1f3;
  --paper: #f2f0fb;
  --radius: 17px;
  --shadow: 0 4px 13px #5140aa19, inset 0 1px 2px white;
  --violet: linear-gradient(
    155deg,
    #b685fa 0%,
    #7056e4 35%,
    #443bd7 83%,
    #7668ed
  );
  --glass: linear-gradient(150deg, #f9f8fff5, #f5f4fceb);
  --serif: "Kaiti SC", "STKaiti", "Songti SC", "SimSun", serif;
}
body {
  background: #e5e2ef;
}
.phone {
  max-width: 480px;
  margin: auto;
  min-height: 100vh;
  min-height: 100dvh;
  padding-bottom: calc(80px + env(safe-area-inset-bottom));
  background: linear-gradient(
    #30327f 0 230px,
    #aaaaf0 370px,
    #eeeefc 530px,
    #f5f3fc 90%
  );
  position: relative;
  overflow-wrap: anywhere;
  box-shadow: 0 0 42px #39316621;
}
.page-pad {
  padding: 12px;
  position: relative;
}
.phone .panel,
dialog {
  background: var(--glass);
  border: 1px solid #fffc;
  box-shadow: var(--shadow);
  border-radius: var(--radius);
}
.phone .panel {
  padding: 14px;
}
.phone h2 {
  font-size: 17px;
  line-height: 1.45;
}
.phone h2:before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 0.88em;
  vertical-align: -0.05em;
  margin-right: 8px;
  border-radius: 6px;
  background: var(--violet);
}
.grad,
.primary,
.cta.grad {
  background: var(--violet);
  color: white;
  border: 1px solid #ffffff85;
  box-shadow:
    inset 0 1px 3px #ffffff87,
    0 4px 10px #5447c138;
  border-radius: 24px;
}
.light {
  background: #f8f6ff;
  color: var(--blue);
  border-color: #d5cdf6;
  border-radius: 22px;
}
.cta {
  display: block;
  width: 100%;
  text-align: center;
  padding: 10px 14px;
  font-weight: 700;
}
.text-btn,
.bar > a {
  border: 0;
  background: none;
  padding: 3px;
  color: #625e83;
  font-size: 13px;
}
.masthead {
  height: clamp(228px, 74vw, 355px);
  position: relative;
  isolation: isolate;
  color: white;
  background: #28469b var(--campaign-cover, url(h5-art/campus.webp)) center
    57% / cover;
  overflow: hidden;
  text-align: center;
}
.brandline {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: calc(9px + env(safe-area-inset-top)) 68px 0;
  font-family: var(--serif);
  font-size: clamp(13px, 4vw, 20px);
  text-shadow: 0 1px 5px #172449;
}
.brandline img {
  width: 26px;
  height: 26px;
  object-fit: contain;
  border-radius: 50%;
}
.mast-tools {
  display: flex;
  gap: 5px;
  position: absolute;
  right: 9px;
  top: calc(9px + env(safe-area-inset-top));
}
.mast-tools button,
.mobile-head button {
  display: grid;
  place-content: center;
  width: 29px;
  height: 29px;
  border: 1px solid #ffffff36;
  background: #18274369;
  color: white;
  border-radius: 50%;
  padding: 0;
}
.event-label {
  display: table;
  max-width: 90%;
  margin: 7px auto 0;
  padding: 1px 12px;
  border: 1px solid #f5d28891;
  border-radius: 20px;
  color: #fff2ce;
  font: 600 12px/1.6 var(--serif);
  background: #18235995;
}
.hero-copy {
  position: absolute;
  top: 30%;
  left: 8%;
  width: 58%;
  text-align: center;
  color: #fff9e6;
  text-shadow: 0 2px 7px #122b60;
}
.hero-copy h1 {
  font: italic 650 clamp(25px, 8.4vw, 41px) / 1.15 var(--serif);
  letter-spacing: 0.08em;
  text-wrap: balance;
  transform: rotate(-4deg);
}
.hero-copy p {
  font-size: 10px;
  letter-spacing: 0.12em;
  margin-top: 10px;
}
.ribbon {
  position: absolute;
  width: 101%;
  height: 22%;
  left: -0.5%;
  bottom: -1px;
  pointer-events: none;
}
.mobile-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: calc(8px + env(safe-area-inset-top)) 12px 8px;
  color: white;
  background: #252d76;
}
.mobile-head a {
  color: white;
  font-size: 24px;
}
.bottom {
  position: fixed;
  z-index: 5;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(100%, 480px);
  display: flex;
  align-items: center;
  background: #faf9fff5;
  padding: 7px 0 calc(7px + env(safe-area-inset-bottom));
  border: 1px solid white;
  border-radius: 23px 23px 0 0;
  box-shadow: 0 -3px 16px #37306e13;
  backdrop-filter: blur(12px);
}
.bottom a {
  flex: 1;
  display: grid;
  justify-items: center;
  gap: 3px;
  font-size: 12px;
  color: #626075;
}
.bottom .icon {
  width: 22px;
  height: 22px;
}
.bottom [aria-current] {
  color: var(--blue);
  font-weight: 700;
}
.bottom .join-tab .icon {
  margin-top: -23px;
  width: 43px;
  height: 43px;
  padding: 10px;
  color: white;
  background: var(--violet);
  border: 2px solid #fff;
  border-radius: 50%;
  box-shadow: 0 3px 9px #6044bf42;
}
.count {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: white;
  flex-wrap: wrap;
  font-size: 12px;
  margin: 0 0 12px;
}
.count small {
  color: inherit;
}
.phase-mark {
  border-radius: 20px;
  background: linear-gradient(#fff1d8, #e8b276);
  padding: 3px 10px;
  color: #573619;
  font-weight: 700;
}
#countdown b {
  display: inline-block;
  background: #24255e;
  padding: 1px 4px;
  border-radius: 5px;
  font-size: 14px;
  margin: 0 2px;
}
.home-content {
  padding-top: 5px;
  background: linear-gradient(#30327f, #aaabef 88px, #eeedfb 150px);
}
.overview-stats {
  display: flex;
  align-items: center;
  text-align: center;
}
.overview-stats > div {
  flex: 1;
  position: relative;
  display: grid;
  justify-items: center;
  font-size: 12px;
}
.overview-stats > div + div:before {
  content: "";
  position: absolute;
  left: 0;
  top: 20%;
  height: 65%;
  width: 1px;
  background: #d8d4e8;
}
.overview-stats b {
  font-size: 20px;
  line-height: 1.22;
}
.overview-stats .icon {
  width: 23px;
  height: 23px;
  color: #6854c8;
}
.overview-stats div:nth-child(2) .icon {
  color: #c79348;
}
.overview-stats div:nth-child(3) .icon {
  color: #4187d3;
}
.searchbox {
  display: flex;
  align-items: center;
  gap: 5px;
  background: #faf9ff;
  border: 1px solid white;
  box-shadow: var(--shadow);
  padding: 3px 4px 3px 12px;
  border-radius: 24px;
  margin: 15px 0 9px;
}
.searchbox input:not([type]) {
  border: 0;
  background: transparent;
  padding: 5px;
  font-size: 13px;
  flex: 1;
}
.searchbox button {
  padding: 4px 17px;
  font-size: 13px;
}
.region-tabs {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  padding: 3px 2px;
  scrollbar-width: thin;
}
.region-tabs button {
  flex: 1 0 auto;
  padding: 4px 12px;
  border: 1px solid transparent;
  border-radius: 20px;
  background: #e3e1f3;
  font-size: 13px;
  color: #605e7b;
}
.region-tabs .selected {
  border-color: #8e7fd2;
  background: #f4f0ff;
  color: #4a39a6;
}
#students .bar {
  margin: 15px 2px 10px;
}
.student-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.student {
  position: relative;
  display: block;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #fff;
  box-shadow: var(--shadow);
  color: white;
  background: #655aab;
}
.student img {
  display: block;
  width: 100%;
  aspect-ratio: 0.83;
  object-fit: cover;
  object-position: 50% 26%;
}
.student-copy {
  position: absolute;
  bottom: 29px;
  inset-inline: 0;
  display: grid;
  padding: 16px 6px 5px;
  background: linear-gradient(transparent, #423587dc);
}
.student-copy b {
  font-size: 14px;
}
.student small {
  color: #f2eefe;
  font-size: 10px;
}
.student footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 5px 4px;
  background: #fbf9ff;
  color: var(--ink);
  font-size: 10px;
  min-height: 29px;
}
.student footer b {
  color: #be4871;
}
.student footer em {
  font-style: normal;
  border-radius: 12px;
  background: var(--violet);
  padding: 1px 6px;
  color: white;
}
.medal {
  position: absolute;
  left: 4px;
  top: 2px;
  background: #edb348;
  color: white;
  padding: 0 5px;
  border-radius: 2px 2px 9px 9px;
  font-weight: bold;
}
.medal.m2 {
  background: #919bb9;
}
.medal.m3 {
  background: #c58664;
}
.load {
  width: 100%;
  margin-top: 9px;
}
.school-teaser {
  margin-top: 22px;
}
.intro,
.school-article {
  font-size: 14px;
  line-height: 1.7;
}
.wide,
.school-album img,
.school-article img {
  max-width: 100%;
  border-radius: 11px;
}
.wide {
  width: 100%;
  margin: 8px 0;
}
.school-album {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
}
.consult-qr {
  width: min(175px, 70%);
}
.published-prize img {
  max-width: 100px;
}
.shortcuts {
  margin-top: 10px;
}
.phone .overview-stats {
  padding-block: 9px;
}
[data-section="detail"] .bottom,
[data-section="join"] .bottom {
  display: none;
}
.phone:is([data-section="detail"], [data-section="join"]) {
  padding-bottom: calc(22px + env(safe-area-inset-bottom));
}
.phone[data-section="detail"] {
  background: linear-gradient(
    #26307a,
    #6263c1 220px,
    #e0dffc 390px,
    #f4f2fc 75%
  );
}
#detail {
  padding: 6px 9px;
}
.student-poster {
  position: relative;
  border: 1px solid #d7d0fb;
  border-radius: 16px;
  overflow: hidden;
  background: #242d72;
  box-shadow: 0 4px 15px #241f5736;
}
.poster-stage {
  display: grid;
  place-items: center;
}
.poster-stage img {
  max-width: 100%;
  width: auto;
  max-height: 60vh;
  height: auto;
  display: block;
}
.poster-save {
  position: absolute;
  bottom: 7px;
  right: 8px;
  border-radius: 12px;
  background: #202456bc;
  padding: 3px 9px;
  color: white;
  font-size: 11px;
}
.student-metrics {
  display: flex;
  justify-content: space-around;
  margin: 9px 0;
}
.phone .student-metrics {
  padding: 9px 1px;
}
.student-metrics > div {
  flex: 1;
  text-align: center;
}
.student-metrics > div + div {
  border-left: 1px solid var(--line);
}
.student-metrics dd {
  font-weight: 750;
  margin: 0;
  font-size: 17px;
}
.student-metrics dt {
  font-size: 11px;
}
.student-metrics .icon {
  color: #7660ce;
}
.student-metrics > div:nth-child(2) .icon {
  color: #c4953b;
}
.student-identity dl {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin: 7px 0 0;
  font-size: 12px;
}
.student-identity dl > div {
  display: flex;
  align-items: baseline;
  gap: 6px;
  border-top: 1px solid var(--line);
  padding: 7px 0;
}
.student-identity dt {
  color: var(--muted);
  flex: none;
}
.student-identity dd {
  margin: 0;
}
.student-identity .bio {
  grid-column: 1/-1;
}
#vote {
  width: 94%;
  margin: 12px auto 9px;
  background: linear-gradient(
    145deg,
    #ffe5a3,
    #d9a15e 29%,
    #9272b5 61%,
    #5440cb 82%,
    #8974e9
  );
  font-size: 18px;
}
.student-links {
  display: flex;
  gap: 8px;
  justify-content: center;
}
.student-links > * {
  flex: 1;
  text-align: center;
  font-size: 12px;
  line-height: 35px;
  border: 1px solid white;
  border-radius: 22px;
  background: var(--glass);
  box-shadow: var(--shadow);
  padding: 0;
  color: var(--blue);
}
.student-links button {
  color: #9e6928;
  background: #fff6e7;
}
.quota-note {
  text-align: center;
  font-size: 12px;
  padding: 5px 8px;
  border: 1px solid #d8d1f0;
  border-radius: 18px;
  margin: 9px 1px;
  color: #534e73;
}
.student-story {
  padding: 10px 12px;
}
.student-story h2 {
  margin-bottom: 6px;
}
.student-story p {
  font-size: 13px;
}
.campus-strip {
  display: flex;
  gap: 8px;
  margin: 8px 0;
}
.campus-strip img {
  min-width: 0;
  max-height: 145px;
  flex: 1;
  object-fit: cover;
  border-radius: 12px;
}
.consult-link {
  color: var(--blue);
  font-size: 13px;
}
.scenic,
.phone[data-role="voter"] .masthead,
.phone[data-role="parent"] .masthead {
  background-image:
    url(h5-art/skyline.webp),
    linear-gradient(159deg, #173080, #3357ad 57%, #90bbff);
  background-size:
    100% 33%,
    cover;
  background-position:
    center 91%,
    center;
  background-repeat: no-repeat;
  height: clamp(164px, 52vw, 249px);
}
.scenic .hero-copy,
.phone[data-role="voter"] .hero-copy {
  top: 34%;
  left: 14%;
  width: 72%;
}
.phone[data-section="rank"] {
  background: linear-gradient(
    #30327f 220px,
    #5a54aa 390px,
    #d1cef4 490px,
    #efedfc 90%
  );
}
.rank-body {
  padding: 0 10px 12px;
}
.rank-tools {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: -15px 4px 5px;
  position: relative;
}
.segments {
  display: flex;
  gap: 5px;
}
.segments button,
.rank-tools .searchbox {
  padding: 2px 8px;
  border-radius: 15px;
  background: #dfdafa;
  font-size: 11px;
}
.segments button {
  color: #534c72;
}
.segments .active {
  background: #7266ba;
  color: white;
}
.rank-tools .searchbox {
  width: 105px;
  margin: 0;
}
.rank-tools .searchbox input {
  font-size: 11px;
  padding: 2px;
}
.rank-body .region-tabs {
  border: 1px solid #ffffff4d;
  border-radius: 25px;
  background: #ffffff25;
  padding: 3px;
}
.rank-body .region-tabs button {
  background: none;
  color: white;
}
.rank-body .region-tabs .selected {
  background: #e7dfff;
  color: #42329e;
}
#podium {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 6px;
  padding: 14px 1px 16px;
}
.pod {
  --metal: #d5def9;
  flex: 1;
  min-width: 0;
  text-align: center;
  color: white;
  display: grid;
  justify-items: center;
}
.pod.place-1 {
  --metal: #f6cb68;
}
.pod.place-3 {
  --metal: #efb089;
}
.pod-crown {
  font-size: 36px;
  color: var(--metal);
  line-height: 0.74;
  text-shadow: 0 0 8px #ffefd89c;
  z-index: 1;
}
.pod-face {
  position: relative;
  width: 81%;
  max-width: 110px;
}
.place-1 .pod-face {
  width: 91%;
}
.pod-face img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  object-position: 50% 26%;
  border: 3px solid var(--metal);
  border-radius: 50%;
  box-shadow: 0 0 9px var(--metal);
}
.pod-face b {
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--metal);
  color: #513963;
  border-radius: 100%;
  width: 22px;
}
.pod strong {
  margin-top: 6px;
}
.pod small {
  font-size: 10px;
  color: #eeebff;
}
.pod em {
  font-style: normal;
  font-weight: 650;
  background: #ffffff24;
  border: 1px solid #d4caff80;
  border-radius: 14px;
  padding: 1px 9px;
  font-size: 12px;
  margin-top: 3px;
}
.listhead {
  font-size: 12px;
  color: #676079;
  padding-bottom: 6px;
}
.rank-item {
  display: grid;
  grid-template-columns: 25px 37px 1fr auto;
  gap: 7px;
  align-items: center;
  padding: 5px 0;
  border-top: 1px solid var(--line);
  color: var(--ink);
}
.rank-item img {
  width: 36px;
  height: 36px;
  object-fit: cover;
  border-radius: 50%;
}
.rank-item small {
  display: block;
  font-size: 10px;
}
.rank-item em {
  font-style: normal;
  font-size: 13px;
  font-weight: 700;
}
.rank-item em:before {
  content: "♥ ";
  color: #df82a0;
}
.rank-list + .cta {
  margin-top: 13px;
}
dialog {
  max-height: 85dvh;
  border: 2px solid #e7e3ff;
  color: var(--ink);
}
dialog::backdrop {
  background: #2d2c6b75;
  backdrop-filter: blur(2px);
}
.dialog-head {
  text-align: center;
  padding: 4px 0 12px;
}
.dialog-head > .icon,
.ballot-emblem .icon {
  width: 46px;
  height: 46px;
  padding: 9px;
  border-radius: 14px;
  background: linear-gradient(145deg, #ece4fe, #a99bfa);
  color: #5940c5;
}
.dialog-head p {
  font-size: 13px;
}
.form-error {
  color: #99384c;
}
.form-error:empty {
  display: none;
}
#sms .row input {
  min-width: 0;
  flex: 1;
}
.slide-challenge > div:first-child {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
#graphic {
  padding: 4px 6px;
  font-size: 12px;
  color: #58499a;
  background: transparent;
  border: 0;
}
.slide-track {
  position: relative;
  height: 44px;
  margin: 4px 0;
  border: 1px solid #dbd6ed;
  border-radius: 22px;
  background: linear-gradient(110deg, #f7f5ff, #ece8fa);
}
.slide-track img {
  position: absolute;
  inset: 3px 17px;
  width: calc(100% - 34px);
  height: 36px;
}
#slide-input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  margin: 0;
  border: 0;
  border-radius: 22px;
  box-shadow: none;
  background: transparent;
  appearance: none;
  -webkit-appearance: none;
  cursor: ew-resize;
  touch-action: pan-y;
}
#slide-input:focus-visible {
  outline: 2px solid #7056bf;
}
#slide-input::-webkit-slider-thumb {
  appearance: none;
  -webkit-appearance: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 2px solid white;
  box-shadow: 0 2px 6px #4d399355;
  background:
    radial-gradient(circle, white 0 2px, transparent 3px),
    linear-gradient(135deg, #ac8ee8, #5442b8);
}
#slide-input::-moz-range-thumb {
  width: 30px;
  height: 30px;
  border: 2px solid white;
  border-radius: 50%;
  background: radial-gradient(circle, white 0 2px, transparent 3px), #7257c2;
}
#send {
  font-size: 12px;
  white-space: nowrap;
}
.check {
  font-size: 12px;
}
#ballot {
  width: min(310px, 89vw);
  overflow: visible;
  background: linear-gradient(
    160deg,
    #9683ec,
    #413591 22%,
    #d9d4fa 40%,
    #f0edff 66%,
    #e4daf9
  );
  padding: 22px 14px 19px;
  box-shadow:
    0 8px 36px #29216650,
    inset 0 1px 3px white;
}
.ballot-emblem {
  position: absolute;
  top: -40px;
  left: 50%;
  transform: translateX(-50%) rotate(-9deg);
  filter: drop-shadow(0 3px 7px #8973dd);
}
#ballot h2 {
  text-align: center;
  color: white;
  font-family: var(--serif);
  margin: 5px 0 14px;
}
.ballot-quota {
  border-radius: 13px;
  background: #faf9ffe8;
  padding: 5px 12px;
}
.ballot-quota p,
.quantity-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 0;
  font-size: 13px;
}
.ballot-quota p + p {
  border-top: 1px solid var(--line);
}
.quantity-row input {
  max-width: 74px;
  text-align: center;
}
.quantity-row {
  margin: 7px 4px;
}
#ballot .close {
  position: absolute;
  right: 9px;
  top: 6px;
  color: white;
}
.student-poster {
  isolation: isolate;
}
.student-poster:before {
  content: "";
  position: absolute;
  inset: -12%;
  background:
    linear-gradient(#302c7740, #29296091),
    var(--poster) center/cover;
  filter: blur(12px);
  z-index: -1;
}
.poster-stage img {
  max-height: min(72vw, 345px);
}
.scenic:before,
.phone:is([data-role="voter"], [data-role="parent"]) .masthead:before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: url(h5-art/campus.webp) left top/100% auto;
  mask-image: linear-gradient(135deg, black, transparent 34%);
}
#ballot .close {
  background: transparent;
  border: none;
  z-index: 1;
}
#ballot .quantity-row input {
  padding: 4px;
}
.quantity-controls {
  display: flex;
  align-items: center;
  gap: 4px;
}
.quantity-controls button {
  padding: 3px 10px;
  color: var(--blue);
}
.quantity-controls input {
  width: 49px;
}
.section-title {
  margin: 0;
  text-align: center;
  font: 700 24px/1.4 var(--serif);
  color: white;
  background: #30327f;
  padding: 3px 0 10px;
}
.section-title:before,
.section-title:after {
  content: "❧";
  display: inline-block;
  color: #e5c897;
  font-size: 21px;
  margin: 0 12px;
}
.section-title:after {
  transform: scaleX(-1);
}
[data-section="join"] .masthead,
[data-section="me"] .masthead {
  height: clamp(207px, 66vw, 317px);
}
.join-body {
  background: linear-gradient(
    #30327f,
    #7272c6 55px,
    #deddfb 145px,
    var(--paper) 70%
  );
}
.steps {
  list-style: none;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 12px 5px;
  margin: 0 0 12px;
  font-size: 12px;
}
.steps li {
  flex: 1;
  text-align: center;
  display: grid;
  justify-items: center;
  gap: 5px;
  position: relative;
  color: #64617b;
}
.steps li .icon {
  width: 30px;
  height: 30px;
  padding: 6px;
  border-radius: 50%;
  background: #cbc9df;
  color: white;
}
.steps li + li:before {
  position: absolute;
  content: "";
  height: 1px;
  width: calc(100% - 31px);
  right: calc(50% + 16px);
  top: 15px;
  background: #bcb4df;
}
.steps [aria-current] {
  color: var(--blue);
  font-weight: 700;
}
.steps [aria-current] .icon {
  background: var(--violet);
}
.steps [aria-current]:after {
  content: "";
  width: 24px;
  height: 3px;
  background: var(--blue);
  border-radius: 2px;
}
#join-form {
  display: grid;
  gap: 12px;
}
#join-identity label {
  grid-template-columns: 32% 1fr;
  align-items: center;
  font-size: 13px;
}
.join-body input:not([type="checkbox"]),
.join-body select {
  border-radius: 14px;
  font-size: 13px;
  background: #faf9ff;
  border: 1px solid #e5e0f2;
  box-shadow: inset 0 1px 4px #39326509;
}
#join-identity label span:before {
  content: "◇";
  display: inline-block;
  color: #7864d4;
  background: #ece8fa;
  padding: 2px 5px;
  margin-right: 5px;
  border-radius: 5px;
}
#join-identity label b {
  color: #bf4771;
}
.join-body .cta {
  width: 92%;
  margin: 3px auto;
  font-size: 16px;
}
.join-links {
  display: flex;
  justify-content: space-evenly;
  gap: 7px;
  align-items: center;
  font-size: 12px;
  margin: 16px auto;
}
.join-links .text-btn {
  font-size: 12px;
}
.upload-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 13px;
  align-items: stretch;
}
.upload-tile {
  position: relative;
  min-height: 143px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(160deg, #f8f5ff, #e6e2fa);
  color: var(--blue);
  border: 1px dashed #a79aca;
  border-radius: 11px;
}
.upload-tile .icon {
  width: 32px;
  height: 32px;
}
.upload-tile input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}
.crop-frame {
  display: grid;
  align-content: center;
  text-align: center;
  gap: 6px;
  font-size: 12px;
}
.crop-frame canvas {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
  touch-action: none;
}
.crop-frame input {
  width: 100%;
}
.upload-note {
  padding: 8px;
  background: #edeaf9;
  font-size: 12px;
}
.join-body .check {
  align-items: baseline;
  color: #55516f;
}
.join-body #join-progress .steps {
  margin: 12px 0 0;
}
.join-body #join-progress li:before {
  display: none;
}
#join-summary {
  margin: 0;
}
#join-summary div {
  display: flex;
  justify-content: space-between;
  padding: 9px;
  border-top: 1px solid var(--line);
}
#join-error {
  color: #962c47;
}
#profile {
  display: grid;
  gap: 12px;
  background: linear-gradient(
    #30327f,
    #8582cf 70px,
    #e6e3f9 190px,
    #f2effb 85%
  );
  min-height: 52vh;
  align-content: start;
}
.profile-head {
  display: flex;
  align-items: center;
  gap: 10px;
}
.profile-head > .icon {
  width: 54px;
  height: 54px;
  padding: 10px;
  color: white;
  background: linear-gradient(140deg, #ebebff, #9188dd);
  border: 2px solid #fff;
  border-radius: 50%;
  box-shadow: var(--shadow);
}
.welcome .cta {
  margin: 10px auto 0;
}
.welcome h2:before,
.quota-card h2:before {
  display: none;
}
.guest-note {
  margin: 0 6px;
  text-align: center;
  padding: 4px;
  background: #fcf1df;
  border-radius: 16px;
  font-size: 11px;
  color: #705c48;
}
.profile-menu {
  display: grid;
  gap: 0;
}
.phone .profile-menu {
  padding: 4px 13px;
}
.profile-menu > * {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 2px;
  background: transparent;
  border: 0;
  border-radius: 0;
  color: var(--ink);
  text-align: left;
  font-size: 14px;
}
.profile-menu > * + * {
  border-top: 1px solid #e7e3f0;
}
.profile-menu .icon {
  width: 31px;
  height: 31px;
  padding: 6px;
  background: linear-gradient(140deg, #f1edff, #e3dffa);
  color: #6656c5;
  border-radius: 9px;
}
.profile-menu span {
  margin-left: auto;
  font-size: 20px;
  color: #88839a;
}
.phone[data-role="voter"] .masthead,
.phone[data-role="parent"] .masthead {
  height: clamp(145px, 44vw, 211px);
}
[data-role="voter"] .profile-title,
[data-role="voter"] .hero-copy p {
  display: none;
}
.phone[data-role="parent"] .hero-copy {
  top: 41%;
  left: 10%;
  width: 44%;
}
.phone[data-role="parent"] .hero-copy h1 {
  font-size: clamp(17px, 5.5vw, 25px);
}
.phone[data-role="parent"] .hero-copy p {
  display: none;
}
#profile > .profile-head {
  color: white;
  padding: 0 8px 2px;
}
#profile > .profile-head > .icon {
  width: 43px;
  height: 43px;
}
#profile > .profile-head .phase-mark {
  font-size: 11px;
}
.quota-card,
.profile-entry,
.history-row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.quota-card > .icon {
  width: 68px;
  height: 68px;
  padding: 14px;
  background: linear-gradient(140deg, #fff0ce, #b7abfc);
  color: #7464df;
  border-radius: 16px;
}
.quota-card > div,
.profile-entry > div {
  min-width: 0;
  flex: 1;
}
.quota-card b {
  font-size: 23px;
  color: #4e399e;
}
.quota-card small,
.history-row small {
  display: block;
  font-size: 11px;
}
.quota-card progress {
  accent-color: #7052df;
  width: 100%;
  height: 9px;
  display: block;
  margin-top: 4px;
}
.history-row {
  padding: 10px 0;
  border-top: 1px solid var(--line);
}
.history-row > .icon {
  color: #bd7390;
}
.history-row > strong {
  margin-left: auto;
}
.recent-votes .bar {
  margin-bottom: 6px;
}
.profile-entry {
  margin-top: 9px;
}
.profile-entry img {
  width: 26%;
  max-height: 110px;
  aspect-ratio: 0.95;
  object-fit: cover;
  border-radius: 10px;
}
.profile-entry p {
  font-size: 11px;
  color: var(--muted);
}
.entry-metrics,
.track {
  display: flex;
  justify-content: space-around;
  gap: 4px;
}
.entry-metrics {
  margin: 10px 0 0;
}
.entry-metrics > div,
.track > div {
  flex: 1;
  text-align: center;
}
.entry-metrics dd {
  margin: 0;
  font-weight: bold;
}
.entry-metrics dt,
.track small {
  font-size: 10px;
}
.track div {
  display: grid;
  justify-items: center;
  gap: 3px;
}
.track .icon {
  color: #7260ca;
}
.track b {
  font-size: 12px;
  color: #524285;
  background: #e8e2fa;
  border-radius: 12px;
  padding: 1px 6px;
}
.phone .award-card {
  background: linear-gradient(140deg, #fff5dd, #faf3fa);
}
.award-record {
  padding-top: 8px;
}
.return-profile {
  color: white;
}
.join-body:after {
  content: "";
  display: block;
  height: 36px;
  margin: 24px -12px -12px;
  background: linear-gradient(
    172deg,
    transparent 48%,
    #d8cef7 49%,
    #a89ce6 75%,
    #e5cb9c
  );
  clip-path: polygon(
    0 10%,
    20% 30%,
    50% 76%,
    74% 63%,
    100% 15%,
    100% 100%,
    0 100%
  );
}
[data-section="join"]:has(#join-upload:not([hidden])) .masthead {
  height: clamp(171px, 53vw, 250px);
}
.join-body .crop-frame canvas {
  max-height: 139px;
  object-fit: contain;
}
.join-body .upload-tile {
  min-height: 127px;
}
.join-body:has(#join-upload:not([hidden])) .stack {
  gap: 9px;
}
@media (max-width: 350px) {
  .phone .panel {
    padding: 11px;
  }
  .count {
    gap: 3px;
  }
  .count small {
    font-size: 10px;
  }
  #countdown b {
    margin: 0 1px;
    padding: 1px 2px;
  }
  .student-grid {
    gap: 4px;
  }
  .student small {
    font-size: 9px;
  }
  .brandline {
    padding-inline: 62px;
  }
  .join-links {
    flex-wrap: wrap;
  }
  .region-tabs button {
    padding-inline: 8px;
  }
  .student-ballot,
  .student-links {
    gap: 3px;
  }
}
.campus-strip > a {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  position: relative;
  min-height: 88px;
  overflow: hidden;
  border-radius: 12px;
  background: linear-gradient(135deg, #8b87ce, #3c398b);
  color: white;
}
.campus-strip img {
  width: 100%;
  height: 111px;
  max-height: none;
  display: block;
  border-radius: 0;
}
.campus-strip b {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 15px 8px 5px;
  background: linear-gradient(transparent, #433689ee);
  font-size: 13px;
}
.phone .unavailable {
  margin: 20px 12px;
}
#roster-option {
  font-size: 12px;
  color: var(--muted);
}
#roster-option summary {
  cursor: pointer;
}
#roster-option[open] {
  display: grid;
  gap: 8px;
}
#roster-option label {
  margin: 8px 0;
}
.phone:has(.unavailable) .mobile-head {
  justify-content: flex-start;
  gap: 24px;
}
.history-row img {
  width: 48px;
  height: 48px;
  object-fit: cover;
  object-position: 50% 25%;
  border-radius: 13px;
}
.history-row strong small {
  font-weight: 500;
  color: #846124;
  text-align: center;
  background: #fcf0d9;
  border-radius: 12px;
}
.hero-copy:after {
  position: absolute;
  content: "✦";
  color: #fff1b9;
  right: -5px;
  top: 0;
  text-shadow: 0 0 7px #ffdc72;
  font-size: 14px;
}
.hero-copy:before {
  content: "";
  position: absolute;
  right: 0;
  width: 23%;
  height: 7px;
  top: 4px;
  border-top: 1px solid #ffeab4;
  border-radius: 50%;
  transform: rotate(-14deg);
}
.section-title {
  background: linear-gradient(#30327f, #393887);
}
.section-title + .join-body,
#profile {
  background: linear-gradient(
    #393887,
    #827bcc 75px,
    #e7e4fa 180px,
    #f3f0fb 74%
  );
}
[data-section="join"] .join-body:has(#join-upload:not([hidden])) .steps {
  padding: 9px 4px;
}
.upload-note,
.crop-frame small {
  color: #625a75;
}
.scenic:after,
.phone:is([data-role="voter"], [data-role="parent"]) .masthead:after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(transparent 48%, #4c65b9 55%, transparent 64%);
}
.poster-stage img {
  max-height: min(65vw, 312px);
}
.join-body:has(#join-upload:not([hidden])) > .steps .icon {
  width: 20px;
  height: 20px;
  padding: 3px;
}
.join-body:has(#join-upload:not([hidden])) > .steps li + li:before {
  top: 10px;
}
.crop-frame canvas {
  max-width: 105px;
  margin: auto;
}
.crop-frame #zoom {
  height: 17px;
  padding: 0;
  box-shadow: none;
}
.crop-frame label {
  gap: 0;
  font-size: 10px;
  line-height: 1.35;
}
.upload-grid {
  align-items: center;
}
.upload-grid .upload-tile {
  align-self: stretch;
}
#join-progress .steps li .icon {
  width: 26px;
  height: 26px;
  padding: 5px;
  background: #e0dbf5;
  color: #7861c1;
}
.ballot-emblem {
  display: grid;
  place-items: center;
  width: 80px;
  height: 43px;
  top: -36px;
  border-radius: 50%;
  background: radial-gradient(
    ellipse at center,
    #fff4d3 0%,
    #dac9f7 40%,
    transparent 70%
  );
  border-bottom: 2px solid #fae1af;
}
.ballot-emblem span {
  position: absolute;
  top: -15px;
  width: 28px;
  height: 32px;
  line-height: 32px;
  text-align: center;
  background: linear-gradient(135deg, #fff, #ecdff8);
  border-radius: 3px;
  color: #e37da5;
  transform: rotate(19deg);
  box-shadow: 0 1px 6px #9173cf;
}
.ballot-emblem .icon {
  margin-top: 15px;
  width: 51px;
  height: 33px;
  padding: 4px;
  border-radius: 6px;
  box-shadow: 0 3px 8px #7552bf7a;
}

.student-grid .empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 20px 8px;
}
.pod-crown {
  width: 35px;
  height: 21px;
  fill: var(--metal);
  stroke: #fff9;
  stroke-width: 1;
  filter: drop-shadow(0 0 4px var(--metal));
  margin-bottom: -2px;
}
.place-1 .pod-crown {
  width: 42px;
  height: 25px;
}
.ballot-verified {
  text-align: center;
  font-size: 12px;
  color: #67558c;
  margin-top: 13px;
}
.ballot-verified .icon {
  color: #6a54c5;
}
#ballot:after {
  content: "";
  pointer-events: none;
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 14px;
  border-radius: 0 0 16px 16px;
  background: linear-gradient(100deg, #a48de4, #ffe9c8, #c2a3e7);
  clip-path: polygon(0 0, 20% 35%, 50% 85%, 80% 30%, 100% 0, 100% 100%, 0 100%);
}
/* Detail composition follows design/h5-final/1.png. */
.phone[data-section="detail"] {
  padding-bottom: calc(16px + env(safe-area-inset-bottom));
  background: linear-gradient(#252967, #a39ae1 200px, #eeebfb 320px);
}
#detail {
  padding: 0 9px 8px;
}
.student-poster:has(.poster-stage img[src*="scene-hero"]) {
  border: 0;
  margin: 0 -9px;
  border-radius: 0;
  box-shadow: none;
}
.poster-stage img[src*="scene-hero"] {
  width: 100%;
  max-height: none;
}
.poster-save {
  font-size: 10px;
  padding: 2px 6px;
}
.declaration-panel {
  position: relative;
  background: linear-gradient(160deg, #fffaf4, #f7f5fe);
  border: 1px solid #fff9;
  border-radius: 15px 15px 0 0;
  margin-top: -4px;
  padding: 7px 7px 0;
}
.declaration-panel header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 4px 6px;
}
.declaration-panel header b {
  color: #322b64;
  font-size: 16px;
}
.declaration-panel header small {
  font-size: 11px;
}
#declaration-player {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  aspect-ratio: 2.12;
  border-radius: 9px;
  background: #221f40;
  color: white;
}
#declaration-player:fullscreen {
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
}
#declaration-player video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
#declaration-player button {
  background: #171629a8;
  color: white;
  border: 0;
}
.sound-toggle,
.play-toggle,
.play-message,
.media-controls {
  position: absolute;
}
.sound-toggle {
  top: 7px;
  right: 7px;
  font-size: 11px;
}
.play-toggle {
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  width: 35px;
  height: 35px;
  padding: 0;
}
.play-message {
  left: 5%;
  right: 5%;
  bottom: 25%;
  font-size: 12px;
  text-shadow: 0 1px 3px #000;
  text-align: center;
  pointer-events: none;
}
.media-controls {
  inset: auto 0 0;
  padding: 3px 9px;
  display: flex;
  align-items: center;
  gap: 7px;
  background: linear-gradient(transparent, #181325ce);
  font-size: 10px;
}
.media-controls input[type="range"] {
  flex: 1;
  min-width: 0;
  padding: 0;
  height: 14px;
  accent-color: #a998ee;
}
.media-controls .fullscreen {
  padding: 0 3px;
  font-size: 17px;
}
.media-controls output {
  white-space: nowrap;
}
.student-metrics.panel {
  border-radius: 10px;
  margin: 5px 0;
  padding: 4px 0;
  background: #efeafa;
}
.student-metrics > div {
  display: grid;
  grid-template-columns: auto auto;
  align-items: center;
  justify-content: center;
  column-gap: 6px;
}
.student-metrics .icon {
  grid-row: span 2;
}
.student-metrics dd {
  font-size: 15px;
}
.student-metrics dt {
  font-size: 9px;
}
.student-identity dl > div {
  padding: 3px 0;
}
.student-identity .bio dt {
  display: none;
}
.student-identity .bio {
  font-size: 13px;
}
#video-upload video {
  width: 100%;
  max-height: 210px;
  background: #24243a;
}
#video-upload p {
  font-size: 13px;
}
.award-avatar {
  width: 37px;
  height: 37px;
  object-fit: cover;
  border-radius: 50%;
  vertical-align: middle;
  margin-right: 8px;
}
[data-section="detail"] .mobile-head {
  height: calc(36px + env(safe-area-inset-top));
  padding: env(safe-area-inset-top) 13px 0;
  background: linear-gradient(100deg, #293370, #24245e);
}
[data-section="detail"] .mobile-head button {
  background: none;
  border: none;
}
#detail {
  background: linear-gradient(
    180deg,
    transparent 145px,
    #fbf8ff 215px,
    #f8f5ff
  );
  margin-bottom: 8px;
  border-radius: 0 0 16px 16px;
}
.phone .student-identity.panel {
  border: none;
  box-shadow: none;
  background: transparent;
  padding: 6px 14px;
}
.student-identity .bar small {
  font-size: 10px;
}
.student-identity p {
  font-size: 13px;
  line-height: 1.55;
  color: #403b53;
  margin-top: 4px;
}
#detail .quota-note {
  padding: 0;
  border: 0;
  margin: 5px auto;
  font-size: 11px;
}
#detail .quota-note summary {
  cursor: pointer;
}
#detail .quota-note p {
  padding: 4px;
}
#detail #vote {
  margin: 8px auto 4px;
  padding-block: 6px;
}
.student-links > * {
  line-height: 30px;
}
.detail-school.panel {
  margin: 0 9px 10px;
  padding: 9px 10px;
}
.school-overview {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 6px;
}
.school-overview img {
  width: 31%;
  aspect-ratio: 1.55;
  object-fit: cover;
  border-radius: 9px;
}
.school-overview div {
  flex: 1;
  min-width: 0;
}
.school-overview b,
.school-overview a {
  font-size: 12px;
}
.school-overview p {
  font-size: 11px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.school-overview a {
  color: var(--blue);
}

/* Shared campaign typography and the ornamental layers of the reference mastheads. */
.brandline {
  font-size: clamp(15px, 4.45vw, 20px);
  letter-spacing: 0.045em;
}
.event-label {
  position: relative;
  border: 0;
  border-radius: 0;
  background: linear-gradient(
    90deg,
    transparent,
    #19265fa8 20% 80%,
    transparent
  );
  padding: 1px 17px;
  color: #fff1c3;
  font-size: clamp(11px, 3.2vw, 15px);
  letter-spacing: 0.075em;
}
.event-label:before,
.event-label:after,
.section-title:before,
.section-title:after,
.scenic .hero-copy h1:before,
.scenic .hero-copy h1:after,
#ballot-title:before,
#ballot-title:after {
  display: inline-block;
  content: "";
  width: 0.9em;
  height: 1.25em;
  vertical-align: -0.16em;
  background: url(h5-art/laurel.svg) center/contain no-repeat;
}
.event-label:before,
.event-label:after {
  position: absolute;
  bottom: 0;
  left: 0;
}
.event-label:after {
  right: 0;
  left: auto;
  transform: scaleX(-1);
}
.section-title:after,
.scenic .hero-copy h1:after,
#ballot-title:after {
  transform: scaleX(-1);
}
.hero-copy {
  top: 29%;
  left: 9%;
  width: 58%;
}
.hero-copy h1 {
  font-weight: 500;
  font-size: clamp(29px, 9.7vw, 45px);
  line-height: 1.04;
  letter-spacing: 0.02em;
  text-shadow: 0 2px 5px #233a70;
}
.hero-copy p {
  font-size: clamp(9px, 2.6vw, 12px);
  margin-top: 7px;
  letter-spacing: 0.13em;
}
.hero-copy:before {
  width: 27%;
  right: 0;
  top: 7px;
  transform: rotate(-16deg);
  border-color: #ffe4a3;
}
.hero-copy:after {
  top: 1px;
}
.scenic,
.phone:is([data-role="voter"], [data-role="parent"]) .masthead {
  background: linear-gradient(
    170deg,
    #163180 0%,
    #335ab5 45%,
    #82a6e8 65%,
    #abbde4
  );
}
.scenic:before,
.phone:is([data-role="voter"], [data-role="parent"]) .masthead:before {
  inset: 0;
  background: url(h5-art/spring-sky.webp) center top/100% 68% no-repeat;
  mask-image: linear-gradient(black 20%, #000b 50%, transparent 72%);
}
.scenic:after,
.phone:is([data-role="voter"], [data-role="parent"]) .masthead:after {
  inset: 0;
  background: url(h5-art/rank-campus.webp) center bottom/100% 55% no-repeat;
}
.scenic .ribbon,
.phone:is([data-role="voter"], [data-role="parent"]) .ribbon {
  height: 28%;
}
.scenic .hero-copy {
  top: 32%;
  width: 84%;
  left: 8%;
}
.scenic .hero-copy h1 {
  font-size: clamp(30px, 9vw, 42px);
  transform: none;
}
.scenic .hero-copy h1:before,
.scenic .hero-copy h1:after {
  margin: 0 6px;
  width: 0.6em;
  height: 0.95em;
}
.scenic .hero-copy:before,
.scenic .hero-copy:after {
  display: none;
}
.scenic .hero-copy p {
  font-size: 9px;
  margin-top: 3px;
}
.rank-tools {
  margin: -18px 5px 4px;
}
.rank-tools .segments button {
  background: #302d7480;
  color: #ede8ff;
  box-shadow: none;
  border: 1px solid #aaa0e966;
  font-size: 10px;
  padding: 1px 7px;
}
.rank-tools .segments .active {
  color: #fff0c0;
  border-color: #d5c8a882;
}
.rank-body .region-tabs {
  padding: 2px;
  margin: 4px 5px;
  background: linear-gradient(115deg, #a39bef88, #8c88c166);
  box-shadow: inset 0 1px 5px #aaa1ec80;
}
.rank-body .region-tabs button {
  position: relative;
  padding: 3px 9px;
}
.rank-body .region-tabs button + button:before {
  content: "";
  position: absolute;
  left: -3px;
  top: 23%;
  height: 54%;
  width: 1px;
  background: #dcd9ff70;
}
.rank-body .region-tabs .selected {
  background: linear-gradient(115deg, #fff9ff, #dbd4fc);
  box-shadow: 0 0 5px #d4c6ff;
}
.phone[data-section="rank"] {
  background:
    radial-gradient(ellipse 106% 155px at 49% 377px, #7764cb88, transparent),
    linear-gradient(
      180deg,
      #30327f 230px,
      #514994 352px,
      #8076c7 419px,
      #cdcaf6 474px,
      #eeedfc 565px
    );
}
#podium {
  gap: 3px;
  padding: 0 1px 12px;
}
.pod-face {
  width: 76%;
  max-width: 99px;
}
.place-1 .pod-face {
  width: 85%;
  max-width: 108px;
}
.pod-face img {
  border-width: 3px;
  box-shadow:
    0 0 2px 1px white,
    0 0 7px 2px var(--metal);
}
.pod.place-1 .pod-face:before,
.pod.place-1 .pod-face:after {
  content: "";
  position: absolute;
  z-index: 1;
  bottom: 0;
  width: 23%;
  height: 30%;
  background: url(h5-art/laurel.svg) center/contain no-repeat;
  left: -5%;
}
.pod.place-1 .pod-face:after {
  left: auto;
  right: -5%;
  transform: scaleX(-1);
}
.pod-face b {
  background: linear-gradient(120deg, #fff, var(--metal) 52%, #ffffffb0);
  border: 1px solid var(--metal);
}
.pod em {
  color: white;
  text-shadow: 0 1px 3px #463e91;
  background: linear-gradient(145deg, #beb1fa99, #7763c888);
  box-shadow: 0 2px 6px #30276544;
}
.pod strong {
  font-size: 15px;
  margin-top: 4px;
}
.phone .rank-list {
  padding: 0 10px 5px;
  border-radius: 15px;
  overflow: hidden;
  background: linear-gradient(140deg, #fffaff, #eeeefa);
}
.rank-list .listhead {
  margin: 0 -10px;
  padding: 7px 16px;
  background: linear-gradient(105deg, #e5e0f7, #f3efff);
  font-size: 11px;
}
.rank-item {
  padding: 4px 5px;
  grid-template-columns: 31px 40px minmax(0, 1fr) auto;
}
.rank-item > b {
  text-align: center;
}
.rank-item img {
  width: 36px;
  height: 36px;
}
.overview-stats {
  background: linear-gradient(150deg, #ede9ff, #fbfaff) !important;
}
.student-copy {
  background: linear-gradient(transparent, #6451a3b8 43%, #7063b5);
  padding-top: 14px;
}
.student small {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: clamp(8px, 2.2vw, 10px);
}
.medal {
  left: 2px;
  top: 0;
  padding: 4px 6px 1px;
  border-radius: 0 0 9px 9px;
  background: linear-gradient(120deg, #ffe58c, #eaa436, #ffce66);
  clip-path: polygon(
    0 6%,
    24% 20%,
    50% 0,
    76% 20%,
    100% 6%,
    97% 80%,
    50% 100%,
    3% 80%
  );
}
.medal.m2 {
  background: linear-gradient(115deg, #e9e8fa, #8e9fc4, #d5d9e8);
}
.medal.m3 {
  background: linear-gradient(115deg, #ffd8a5, #ca885a, #ffc390);
}
.bottom {
  min-height: 65px;
}
.bottom [aria-current]:after {
  content: "";
  position: absolute;
  bottom: 4px;
  width: 20px;
  height: 2px;
  border-radius: 4px;
  background: var(--blue);
}
.join-instructions {
  margin: 0 auto;
  text-align: center;
  padding: 2px 12% 12px;
  font-size: 12px;
  line-height: 1.65;
  letter-spacing: 0.03em;
  color: #f7f2ff;
  background: #393887;
}
[data-section="join"]:has(#join-identity[hidden]) .join-instructions {
  display: none;
}
#join-identity label span:before {
  display: none;
}
#join-identity label span > .icon {
  width: 23px;
  height: 23px;
  vertical-align: middle;
  padding: 4px;
  margin-right: 4px;
  color: #6959c1;
  background: linear-gradient(135deg, #faf9ff, #e1dcf8);
  border-radius: 7px;
}
.steps li.complete .icon {
  background: var(--violet);
  color: white;
}
.steps li.complete + li:before {
  background: #9280de;
}
.upload-tile {
  background:
    radial-gradient(ellipse at 20% 112%, #e4dffa 0 27%, transparent 28%),
    linear-gradient(150deg, #f8f7ff, #e9e6fa);
}
.phone[data-role="parent"] .masthead {
  height: clamp(126px, 38vw, 183px);
}
.phone[data-role="parent"] .profile-title {
  padding-bottom: 0;
  font-size: 22px;
}
.phone[data-role="parent"] #profile {
  padding-top: 4px;
}
.profile-head > .icon {
  background:
    radial-gradient(circle at 50% 34%, #e8e8ff 0 20%, transparent 21%),
    radial-gradient(ellipse at 50% 106%, #e6e7ff 0 39%, transparent 40%),
    linear-gradient(140deg, #aaa5e3, #8078d1);
  stroke: transparent;
}
.quota-art,
.ballot-emblem {
  background: url(h5-art/ballot-box.svg) center/contain no-repeat;
}
.quota-art {
  flex: 0 0 24%;
  height: 68px;
}
.quota-card {
  gap: 8px;
}
.quota-card progress {
  height: 8px;
  border: 0;
  border-radius: 6px;
  overflow: hidden;
  background: #ddd9f2;
}
.quota-card progress::-webkit-progress-bar {
  background: #ddd9f2;
}
.quota-card progress::-webkit-progress-value {
  background: var(--violet);
  border-radius: 6px;
}
.track > div:before {
  content: "";
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: #ccc8db;
  color: white;
  z-index: 1;
  line-height: 13px;
  font-size: 11px;
}
.track > div.complete:before {
  content: "✓";
  background: var(--violet);
}
.track {
  position: relative;
}
.track:before {
  content: "";
  position: absolute;
  top: 5px;
  left: 16%;
  right: 16%;
  height: 3px;
  background: #c3b9ef;
}
.track .complete b {
  background: #e2f3df;
  color: #47713b;
}
.profile-entry small {
  float: right;
  padding: 1px 7px;
  background: #ebe7fc;
  border-radius: 12px;
  color: #6b5db0;
}
.entry-metrics > div + div {
  border-left: 1px solid #dedaf0;
}
.entry-metrics > div + div dd {
  color: #9e7021;
}
#ballot {
  margin: auto;
  top: 6%;
  border-radius: 24px;
  padding: 24px 14px 21px;
  background:
    radial-gradient(ellipse at 3% 0%, #d0aaff, #927af0 13%, transparent 36%),
    linear-gradient(
      165deg,
      #4b3daa 8%,
      #7461d2 20%,
      #d1c8fa 39%,
      #f7f3ff 61%,
      #e5def9 95%
    );
}
#ballot-title {
  font-weight: bold;
  font-size: 20px;
}
#ballot-title:before,
#ballot-title:after {
  width: 18px;
  height: 22px;
  margin: 0 6px;
}
#ballot .ballot-emblem {
  width: 100px;
  height: 78px;
  top: -61px;
  border: 0;
  border-radius: 0;
  transform: translateX(-50%) rotate(-8deg);
  filter: drop-shadow(0 0 6px #d4beff);
}
.ballot-emblem > * {
  display: none;
}
.ballot-quota .icon {
  width: 21px;
  height: 21px;
  vertical-align: middle;
  margin-right: 4px;
  padding: 3px;
  background: #ece7fb;
  color: #7763c7;
  border-radius: 5px;
}
#ballot::backdrop {
  backdrop-filter: blur(1px);
  background: #45418c65;
}
.declaration-panel header b {
  font-size: 15px;
}
.declaration-panel header small {
  font-size: 10px;
}
#declaration-player {
  aspect-ratio: 2.3;
}
.hero .hero-copy h1,
.phone[data-section="join"] .hero-copy h1,
.phone[data-role="guest"] .hero-copy h1 {
  padding-left: 0.4em;
  text-indent: -0.8em;
}
.phone[data-section="rank"] #podium {
  padding-bottom: 8px;
}
.pod-face {
  width: 73%;
}
.place-1 .pod-face {
  width: 81%;
}
.phone[data-section="join"] .join-body > .steps {
  padding: 9px 4px 7px;
}
.phone[data-section="join"] .steps [aria-current]:after {
  position: absolute;
  bottom: -4px;
}
.phone[data-section="join"]:has(#join-upload:not([hidden]))
  .join-body
  > .steps {
  padding-block: 6px;
}
.join-body input[type="range"] {
  accent-color: var(--blue);
}
#join-upload h2:before {
  background: none;
  color: var(--blue);
  content: "▧";
  font: 700 21px/1 system-ui;
  width: auto;
  height: auto;
}
.phone .quota-card {
  padding: 10px 14px;
}
.quota-card > div {
  position: relative;
}
.quota-card small {
  font-size: 10px;
}
#detail #vote {
  min-height: 35px;
  padding: 4px 10px;
  font-size: 16px;
}
#detail .quota-note {
  margin-block: 2px;
}
.detail-school.panel {
  padding-block: 6px;
}
.school-overview {
  margin-top: 2px;
}
@media (max-width: 350px) {
  .section-title {
    font-size: 21px;
  }
  .student-grid {
    gap: 4px;
  }
  .rank-tools .segments {
    gap: 2px;
  }
}
.phone[data-section="rank"] {
  padding-bottom: calc(84px + env(safe-area-inset-bottom));
}
.phone .join-success {
  margin: 18px 12px;
  padding: 28px 20px;
  text-align: center;
  display: grid;
  justify-items: center;
  gap: 12px;
}
.join-success > .icon {
  width: 54px;
  height: 54px;
  padding: 14px;
  border-radius: 50%;
  color: white;
  background: var(--violet);
}
.join-success .cta {
  width: min(100%, 300px);
}
#video-upload .video-tile {
  width: min(100%, 190px);
  min-height: 132px;
  aspect-ratio: 1.35;
  justify-self: start;
  cursor: pointer;
}

.rank-tools > .searchbox:only-child {margin-left:auto}

#share-poster {
  box-sizing: border-box;
  width: min(100%, 460px);
  max-width: 100%;
  max-height: 100vh;
  max-height: 100dvh;
  margin: auto;
  padding: 14px 16px max(14px, env(safe-area-inset-bottom));
  overflow-y: auto;
  overscroll-behavior: contain;
  color: #fff6e2;
  background: radial-gradient(ellipse at 44% 95%, #6150a7, transparent 60%), linear-gradient(155deg, #182252, #232651 62%, #393066);
  border: 1px solid #8887bd;
  border-radius: 19px;
}
#share-poster::backdrop { background: rgba(12, 14, 45, .83); }
#share-poster h2 { margin: 0; padding: 3px 36px; text-align: center; color: inherit; font: 600 18px/1.5 var(--serif); }
#share-poster .close { color: #fff; background: #383862; }
#poster-preview img {
  display: block;
  width: min(100%, calc((100vh - 153px) * .4878));
  width: min(100%, calc((100dvh - 153px) * .4878));
  min-width: min(205px, 100%);
  margin: 0 auto;
  border-radius: 13px;
  box-shadow: 0 9px 25px #0e123c99;
}
.poster-actions { display: flex; justify-content: center; gap: 8px; margin-top: 12px; }
.poster-actions .cta { flex: 1; max-width: 220px; margin: 0; }
#poster-picker label { color: #fff; }
#poster-picker input { color: #292747; background: #fff; }
#poster-options button, #poster-more {
  display: block; width: 100%; padding: 12px; text-align: left; color: #322d66;
  background: #f4f1ff; border: 1px solid #dcd5f7; border-radius: 10px; margin-top: 6px;
}
#poster-more[hidden] { display: none; }
#poster-message { text-align: center; color: #e6deff; font-size: 13px; margin: 7px 0; }
