/* The eight campaign plates are 941×1672. Component dimensions scale with the
   390px mobile canvas. Device chrome and bottom safe area stay independent. */
#h5 {
  --midnight: #20235f;
  --lilac: #dad5f5;
  --cream: #ffebc2;
  --shadow: inset 0 1px 1px #fff, 0 2px 8px #251e6920;
  --glass: linear-gradient(115deg, #fffaf8f5 0%, #faf8ff 47%, #ece9fb 100%);
  --gold: #6f3b13;
  --serif: "Kaiti SC", "STKaiti", "Songti SC", "Noto Serif CJK SC", serif;
  --panel-radius: 14px;
  container-type: inline-size;
  background:
    url(h5-art/share-lavender-base.webp) center bottom / 100% 55% no-repeat,
    linear-gradient(#222c6c 0%, #454991 31%, #b4acdf 53%, #e4e0f6 72%, #f0ebfa);
  color: #23213d;
}
#h5 .panel {
  border-radius: var(--panel-radius);
  box-shadow: var(--shadow);
}
#h5 .panel h2:before,
#students h2:before {
  display: none;
}
#h5 .bottom {
  min-height: 58px;
  padding-top: 7px;
  box-shadow: 0 -2px 14px #4e439326;
  background: linear-gradient(120deg, #f9f7fff7, #f6f2fff0);
  border-radius: 22px 22px 0 0;
}
#h5 .bottom a {
  font-size: 11px;
  gap: 3px;
}
#h5 .bottom [aria-current] {
  color: #4230b8;
}
#h5 .bottom [aria-current]:after {
  background: #e6b35d;
}
#h5 .page-pad {
  padding-inline: 3.6%;
}
#h5 input,
#h5 textarea,
#h5 select,
dialog input {
  accent-color: #7760c6;
  caret-color: #4c369e;
}
#h5 :focus-visible,
dialog :focus-visible {
  outline: 3px solid #866cc8;
  outline-offset: 2px;
}
#h5 [hidden],
dialog [hidden] {
  display: none !important;
}
.campaign-head {
  position: relative;
  isolation: isolate;
  height: clamp(198px, 61.5vw, 296px);
  height: 61.5cqw;
  overflow: hidden;
  color: #fff;
  background: #27316b;
}
.campaign-campus,
.campaign-sash,
.campaign-subject,
.campaign-ambassador {
  position: absolute;
  pointer-events: none;
}
.campaign-campus {
  inset: 0;
  background: var(--school-campus, url(h5-art/campaign-campus.webp)) center
    60% / cover no-repeat;
}
.campaign-head:before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(
      180deg,
      #0b1c4970,
      transparent 32%,
      transparent 80%,
      #19204a40
    ),
    linear-gradient(108deg, #081d581f, transparent 76%);
}
.campaign-head:after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 24%;
  height: 56%;
  pointer-events: none;
  background: url(h5-art/share-foliage-left.webp) left top/contain no-repeat;
  opacity: 0.72;
  z-index: 1;
}
.campaign-ambassador {
  right: -2.5%;
  height: 86%;
  bottom: 2%;
  width: 41%;
  object-fit: contain;
  object-position: bottom center;
  filter: drop-shadow(-2px 2px 3px #201c442e);
  z-index: 2;
}
.campaign-sash {
  inset: auto -1% -2px;
  height: 25%;
  background: var(--scene-sash, url(h5-art/campaign-sash.webp)) center / 100%
    100% no-repeat;
  z-index: 4;
}
.campaign-top {
  position: relative;
  z-index: 7;
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 40px;
  padding: calc(7px + env(safe-area-inset-top)) 3.9% 1px;
  line-height: 1.15;
}
.campus-label {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  color: #fff;
  text-shadow: 0 1px 4px #081437;
  font: 600 clamp(12px, 3.2vw, 16px) / 1.2 var(--serif);
  letter-spacing: 0.08em;
}
.campus-label img {
  width: 25px;
  height: 25px;
  object-fit: contain;
}
.campus-label strong {
  border-left: 1px solid #fff8;
  padding-left: 7px;
  max-width: 57vw;
}
.campus-label strong:only-child {
  border: 0;
  padding: 0;
}
.campaign-tools {
  margin-left: auto;
  display: flex;
  gap: 5px;
}
.campaign-tools button,
.home-return {
  color: #fffcf1;
  background: transparent;
  border: 0;
  padding: 4px;
  min-width: 27px;
  min-height: 30px;
  display: grid;
  place-items: center;
}
.campaign-tools .icon,
.home-return .icon {
  width: 17px;
  height: 17px;
  filter: drop-shadow(0 1px 2px #132659);
}
.home-return .icon {
  transform: rotate(180deg);
}
.campaign-type {
  position: absolute;
  z-index: 3;
  top: 20%;
  left: 7.7%;
  width: 63%;
  display: grid;
  justify-items: center;
  text-align: center;
}
.campaign-heading {
  font: italic 700 clamp(25px, 7vw, 42px) / 1.03 var(--serif);
  font-size: 7.9cqw;
  text-align: center;
  text-wrap: balance;
  margin: 0;
  color: #fff2cd;
  filter: drop-shadow(0 2px 2px #18234f);
  letter-spacing: 0.04em;
}
.campaign-heading img {
  width: 100%;
  height: auto;
  display: block;
}
.campaign-plaque {
  background: url(h5-art/share-plaque.webp) center/100% 100% no-repeat;
  padding: 3px 18px;
  color: #362845;
  font: 700 clamp(11px, 2.9vw, 15px) / 1.35 var(--serif);
  max-width: 100%;
  margin: 4px 0 0;
}
.campaign-subtitle {
  font: 500 clamp(9px, 2.5vw, 13px) / 1.45 var(--serif);
  color: #fff8d9;
  text-shadow:
    0 1px 3px #091142,
    0 1px 5px #142963;
  margin: 1px 0 0;
  max-width: 100%;
}
[data-view="rank"] {
  height: 24cqw;
  background: radial-gradient(ellipse at 92% 15%, #5264ad, #24316c 65%);
}
[data-view="rank"] .campaign-campus {
  opacity: 0.25;
  background-position: center 4%;
}
[data-view="rank"] .campaign-sash {
  display: none;
}
[data-view="rank"] .campaign-type {
  top: 31%;
  width: 65%;
  left: 17.5%;
}
[data-view="rank"] .campaign-heading {
  font-size: 8.2cqw;
  letter-spacing: 0.13em;
}
[data-view="rank"] .campaign-subtitle {
  display: none;
}
[data-view="rank"] .campaign-plaque {
  margin: 0;
  font-size: 10px;
}
[data-view="join"] .campaign-type {
  top: 23%;
}
[data-view="join"] .campaign-heading {
  font-size: 6.4cqw;
}
[data-view="join"] .campaign-plaque {
  margin-top: 8px;
}
[data-view="rules"],
[data-view="school"],
[data-view="consult"],
[data-view="privacy"] {
  height: 53cqw;
}
[data-view="rules"] .campaign-type,
[data-view="school"] .campaign-type,
[data-view="consult"] .campaign-type,
[data-view="privacy"] .campaign-type {
  top: 22%;
  width: 57%;
}
[data-view="rules"] .campaign-ambassador {
  height: 76%;
}
.phone[data-role="parent"] .campaign-head,
.phone[data-role="voter"] .campaign-head {
  height: 36cqw;
}
.phone:is([data-role="parent"], [data-role="voter"]) .campaign-ambassador {
  display: none;
}
.phone:is([data-role="parent"], [data-role="voter"]) .campaign-type {
  top: 34%;
  width: 78%;
  left: 11%;
}
.phone:is([data-role="parent"], [data-role="voter"]) .campaign-heading {
  font-size: 7cqw;
}
.phone:is([data-role="parent"], [data-role="voter"]) .campaign-subtitle {
  display: none;
}
.campaign-head[data-view="detail"] {
  height: 59cqw;
}
.campaign-subject.student-visual[data-template="T01"] {
  inset: 0;
  position: absolute;
  height: 100%;
  width: 100%;
  border: 0;
  border-radius: 0;
  background: none;
  pointer-events: none;
  z-index: 2;
  overflow: visible;
}
.campaign-subject.student-visual:before,
.campaign-subject.student-visual:after {
  content: none;
}
.campaign-subject .poster-stage {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.campaign-subject.student-visual[data-template="T01"] .student-figure {
  position: absolute;
  width: 48%;
  height: 91%;
  inset: auto -2% 0 auto;
  object-fit: contain;
  object-position: bottom center;
  max-height: none;
  pointer-events: auto;
}
.campaign-subject .prepared-scene {
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: cover;
  pointer-events: auto;
}
.prepared-hero .campaign-type,
.prepared-hero .campaign-sash,
.prepared-hero:after {
  display: none;
}
.scene-caption {
  position: absolute;
  z-index: 5;
  left: 6%;
  bottom: 5%;
  font: 600 14px/1.3 var(--serif);
  color: #fff7e0;
  text-shadow: 0 1px 3px #161f51;
}
.applause-mark {
  display: inline-block;
  width: 1.24em;
  height: 1.24em;
  background: url(h5-art/applause.svg) center/contain no-repeat;
  vertical-align: -0.19em;
  flex: none;
}
.gold-action,
.phone #join-next,
.phone #join-submit,
.phone #signin,
dialog .primary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 43px;
  padding: 7px 14px;
  border-radius: 28px;
  font: 700 17px/1.35 var(--serif, "Songti SC", serif);
  letter-spacing: 0.05em;
  color: #522a17;
  text-shadow: 0 1px 1px #ffe5aa;
  background: #e9b36e url(h5-art/gold-button.svg) center/100% 100% no-repeat;
  border: 1px solid #ffe2aa;
  box-shadow:
    inset 0 1px 2px #fff3c7,
    0 3px 8px #65411f2a;
}
.gold-action small {
  font: 600 11px/1.4 system-ui;
  letter-spacing: normal;
  margin-left: auto;
  border-left: 1px solid #965f3244;
  padding-left: 10px;
}
.gold-action:disabled {
  filter: grayscale(0.75);
  color: #413943;
}
.witness-banner {
  display: flex;
  align-items: center;
  gap: 7px;
  position: relative;
  min-height: 39px;
  overflow: hidden;
  margin: 11px 0 0;
  padding: 5px 11px 5px 21%;
  border-radius: 24px;
  border: 1px solid #c8b8ef;
  color: #fff0c3;
  background:
    url(h5-art/campaign-trophy.webp) 5% center / auto 86% no-repeat,
    url(h5-art/share-glint.webp) 4% 56% / 23% auto no-repeat,
    linear-gradient(104deg, #5651a3, #26275c 48%, #5950a0 96%);
  box-shadow: 0 2px 8px #32286835;
}
.witness-banner span {
  font: 700 17px/1.2 var(--serif);
  white-space: nowrap;
}
.witness-banner small {
  font: 10px/1.3 var(--serif);
  max-width: 10em;
  padding-left: 8px;
  border-left: 1px solid #f6d6a066;
  color: #fff3d9;
}
.witness-banner b {
  margin-left: auto;
  white-space: nowrap;
  font-size: 10px;
  border-radius: 14px;
  background: linear-gradient(#fff5ca, #eab773);
  color: #4d3151;
  padding: 3px 8px;
}
#h5 .home-content {
  padding-top: 0;
  background: linear-gradient(#343675 0, #6866ad 11%, #dad5f4 28%, #ebe6f8 88%);
}
.count {
  gap: 4px;
  margin: 0 auto 8px;
  padding: 2px 6px 2px 2px;
  width: fit-content;
  max-width: 100%;
  border: 1px solid #b6a2de80;
  border-radius: 15px;
  background: linear-gradient(105deg, #474782, #25294e);
  font-size: 10px;
}
.count .phase-mark {
  font-size: 10px;
  padding: 3px 8px;
  color: #382957;
}
.count small {
  font-size: 9px;
}
#countdown b {
  font-size: 11px;
  padding: 1px 2px;
  margin: 0 1px;
}
#h5 .overview-stats {
  padding: 5px 0;
}
.overview-stats > div {
  font-size: 10px;
  gap: 0;
}
.overview-stats b {
  font-size: 18px;
  line-height: 1.12;
  font-family: Georgia, serif;
}
.overview-stats .icon,
.overview-stats .applause-mark {
  width: 18px;
  height: 18px;
}
#home-search {
  margin: 8px 0 5px;
  padding: 1px 5px 1px 10px;
}
#home-search input {
  min-width: 0;
}
#home-search button {
  border: 0;
  box-shadow: none;
  background: none;
  color: #564b88;
  font-size: 11px;
}
#h5 .home-content .region-tabs {
  padding: 0;
  gap: 3px;
}
.home-content .region-tabs button {
  background: transparent;
  color: #524873;
  padding: 2px 8px;
  font-size: 12px;
}
.home-content .region-tabs .selected {
  color: #51336c;
  background: linear-gradient(#fff4d8, #e9c585);
  border: 1px solid #fff2c2;
}
#students .bar {
  margin: 7px 1px 5px;
}
#students h2 {
  font: 700 16px/1.4 var(--serif);
}
#students .student-grid {
  gap: 7px;
}
#h5 .student {
  height: 25.5cqw;
  min-height: 90px;
  border-radius: 12px;
  background: #d3cce3;
  isolation: isolate;
}
#h5 .student .student-visual {
  display: block;
  width: 100%;
  height: 100%;
}
#h5 .student .student-copy {
  bottom: 0;
  z-index: 2;
  padding: 13px 5px 3px;
  display: grid;
  gap: 0;
  color: #27233a;
  background: linear-gradient(
    0deg,
    #fff9ed 0%,
    #f4eef7ef 60%,
    transparent 100%
  );
}
#h5 .student-copy b {
  font: 700 13px/1.2 var(--serif);
}
#h5 .student-copy small {
  color: #503756;
  font: 600 10px/1.5 system-ui;
}
.student-copy .applause-mark {
  margin-right: 3px;
}
.student-visual .prepared-scene {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: cover;
  max-height: none;
}
#h5 .choose-student {
  margin: 10px 0 0;
}
#h5 .school-teaser {
  margin: 16px 0 0;
}
#h5 .rank-body {
  padding-top: 3px;
  background: linear-gradient(
    #30336d 0%,
    #474583 18%,
    #958fc8 33%,
    #d5cef1 58%,
    #e6e1f6 100%
  );
  min-height: 70vh;
}
#h5 .rank-tools {
  margin: 0 5px 4px;
}
#h5 .rank-tools input {
  min-width: 0;
}
#h5 .rank-body .region-tabs .selected {
  background: linear-gradient(#fff3d2, #deb277);
  color: #473048;
}
#h5 #podium {
  padding: 11px 0 13px;
  gap: 2%;
  background: radial-gradient(ellipse at 51% 94%, #ffcf703b, transparent 57%);
}
#h5 #podium .student-visual {
  display: block;
  width: 93%;
  aspect-ratio: 1;
  position: relative;
  flex: none;
}
#h5 #podium .place-1 {
  flex: 1.13;
}
#h5 #podium .place-1 .student-visual {
  width: 100%;
}
#h5 #podium .pod strong {
  z-index: 2;
  margin: -8px 0 0;
  padding: 1px 7px;
  background: linear-gradient(100deg, #38345bc0, #56517aeb, #343351cb);
  border-radius: 4px;
  font: 700 14px/1.3 var(--serif);
}
#h5 #podium .pod em {
  margin-top: 2px;
  padding: 1px 5px;
  background: transparent;
  border: none;
  box-shadow: none;
  font: 650 10px/1.4 system-ui;
}
.rank-item .student-visual,
.student-identity .student-visual {
  width: 34px;
  height: 34px;
  display: block;
  flex: none;
  border-radius: 50%;
  overflow: hidden;
}
.rank-item em:before {
  content: none;
}
.rank-item .applause-mark {
  margin-right: 3px;
}
#h5 .rank-item {
  padding: 4px 0;
  grid-template-columns: 25px 34px minmax(0, 1fr) auto;
  gap: 5px;
}
.rank-item small {
  font-size: 9px;
}
#h5 .rank-item em {
  font-size: 11px;
}
.rank-body .gold-action {
  margin: 9px 0;
}
#h5 #detail {
  padding: 2px 3.6% 0;
}
#h5 .student-identity {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 65px;
  padding: 8px 12px;
  background: var(--glass);
}
#h5 .student-identity > div {
  flex: 1;
  min-width: 0;
}
.student-identity .student-visual {
  width: 49px;
  height: 49px;
  border-radius: 11px;
}
#h5 .student-identity h2 {
  color: var(--midnight);
  font: 700 16px/1.3 var(--serif);
}
#h5 .student-identity p {
  font-size: 12px;
  line-height: 1.5;
  margin: 3px 0 0;
}
#h5 #detail #vote {
  min-height: 43px;
  font: 700 18px/1.3 var(--serif);
  margin: 8px 0 3px;
}
#h5 #detail .quota-note {
  text-align: center;
  background: linear-gradient(100deg, #eeeaf9, #fff7e2, #ebe4f8);
  border-radius: 12px;
}
#h5 .student-metrics {
  margin: 7px 0;
  min-height: 59px;
}
#h5 .student-links {
  margin: 6px 0;
  gap: 7px;
}
#h5 .student-links > * {
  border: 1px solid #d4cee9;
  background: var(--glass);
  color: #45355f;
  border-radius: 26px;
  min-height: 34px;
  font-size: 12px;
}
#h5[data-section="detail"] {
  padding-bottom: calc(72px + env(safe-area-inset-bottom));
}
#h5 .detail-school {
  margin: 8px 3.6%;
}
.sticky-applause {
  position: fixed;
  z-index: 8;
  bottom: 0;
  left: 50%;
  width: min(100%, 480px);
  transform: translateX(-50%);
  background: #f6f1ffed;
  border-top: 1px solid #fff8;
  padding: 6px 5% calc(6px + env(safe-area-inset-bottom));
  box-shadow: 0 -3px 14px #3d326b1c;
  backdrop-filter: blur(10px);
}
#h5 .join-body,
#h5 #profile {
  background: linear-gradient(
    #383771 0,
    #7975b2 58px,
    #d9d3f0 145px,
    #ece6f8 93%
  );
  padding-top: 9px;
}
#h5 #join-heading,
#h5 .profile-title {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
#h5 .enroll-callout {
  padding: 12px;
  border-radius: 9px;
  color: #573c2b;
  background: linear-gradient(105deg, #ffedce, #fff8ea 78%, #ead2af);
  font: 600 15px/1.4 var(--serif);
}
#h5 .join-body .steps {
  margin-bottom: 7px;
}
#h5 .steps [aria-current] .icon {
  background: linear-gradient(140deg, #ffdc8b, #b17b50);
  color: #432b2b;
}
#h5 .join-body:after {
  display: none;
}
#h5 .public-consent {
  display: block;
  font-size: 12px;
  line-height: 1.6;
  margin: 8px 2px;
}
#h5 .public-consent input {
  width: auto;
  margin: 0 4px 0 0;
}
#h5 .public-consent a {
  text-decoration: underline;
  color: #453493;
}
#h5 .join-body .upload-tile {
  background: linear-gradient(135deg, #f7f4ff, #ebe6f8);
  border: 1px dashed #aca1d0;
}
#h5 .guest-history h2 {
  font-size: 14px;
}
.guest-history > div {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  min-height: 52px;
  color: #655c84;
}
.guest-history > div .icon {
  width: 43px;
  height: 43px;
  color: #9589ca;
  stroke-width: 1;
}
.guest-history p {
  font-size: 12px;
  margin: 0;
  line-height: 1.5;
}
#h5 #profile {
  gap: 8px;
}
#h5 .profile-head {
  color: #252143;
}
#h5 #profile > .profile-head {
  padding: 10px 14px;
  border-radius: 12px;
  background: var(--glass);
  box-shadow: var(--shadow);
}
#h5 .quota-card {
  background: linear-gradient(112deg, #393375, #26265c 66%, #58509b);
  color: #fff1c8;
  border: 1px solid #aea1cf;
}
#h5 .quota-card small,
#h5 .quota-card b {
  color: #fff2cb;
}
#h5 .quota-art {
  background: url(h5-art/applause.svg) center / 62% auto no-repeat;
  height: 50px;
}
#h5 .profile-menu {
  background: var(--glass);
}
#h5 .profile-menu > * {
  padding: 10px 2px;
  font-size: 13px;
}
.rule-book {
  display: grid;
  gap: 10px;
  padding-top: 7px;
}
.rule-card {
  position: relative;
  min-height: 85px;
}
.rule-card h2 {
  display: table;
  background: linear-gradient(110deg, #635c9c, #312e6b);
  color: #ffedc4;
  font: 700 16px/1.4 var(--serif);
  border-radius: 13px;
  padding: 1px 15px;
  margin: -9px 0 9px;
}
.rule-card p,
.rule-card a {
  font-size: 13px;
  line-height: 1.65;
}
.rule-card p {
  margin: 5px 0;
}
.rule-card[data-emblem="applause"],
.rule-card[data-emblem="award"] {
  padding-left: 24%;
}
.rule-card:is([data-emblem="applause"], [data-emblem="award"]):before {
  position: absolute;
  content: "";
  left: 3%;
  top: 15%;
  height: 70%;
  width: 19%;
  background: url(h5-art/applause.svg) center/contain no-repeat;
}
.rule-card[data-emblem="award"]:before {
  background-image: url(h5-art/campaign-trophy.webp);
}
#h5 .rule-card[data-emblem="award"] {
  background: linear-gradient(110deg, #494584, #302d61);
  color: #fff1ce;
}
#h5 .rule-card[data-emblem="award"] h2 {
  background: transparent;
  padding-left: 0;
}
dialog:not(#share-poster) {
  background: linear-gradient(145deg, #fffdf9, #f8f5ff 65%, #ede6fa);
  border-radius: 19px;
}
dialog .dialog-head > .icon {
  background: linear-gradient(135deg, #e7dffa, #8972c2);
}
.applause-receipt {
  width: 86px;
  height: 76px;
  margin: 2px auto;
  background: url(h5-art/applause-success.svg) center/contain no-repeat;
}
.phone .join-success .cta {
  display: block;
}
@media (max-width: 350px) {
  .campaign-top {
    padding-top: 4px;
    min-height: 30px;
  }
  .campaign-type {
    top: 19%;
  }
  .witness-banner {
    gap: 4px;
  }
  .witness-banner small {
    font-size: 9px;
  }
  .gold-action {
    font-size: 15px;
  }
}

.photo-example {
  position: relative;
  overflow: hidden;
  height: 110px;
  border-radius: 9px;
  background: linear-gradient(130deg, #d4cde9, #e8e0ef);
}
.photo-example img {
  height: 100%;
  width: 100%;
  object-fit: contain;
  object-position: center bottom;
}
.photo-example small {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: #292449a6;
  color: white;
  text-align: center;
  font-size: 9px;
}
#h5 #podium {
  background: url(h5-art/honor-stage.webp) center bottom / 100% 100% no-repeat;
}
#h5 #cards > .empty {
  padding: 68px 12px 15px;
  background:
    url(h5-art/growth-empty.svg) center 7px / 58px 52px no-repeat,
    var(--glass);
}
/* The sky and the school photograph are separate exposures; school-provided
   landscapes can be composed without putting typography across the building. */
.campaign-head {
  background:
    linear-gradient(110deg, #101e54a6, #242e7129 65%, #56549d22),
    url(h5-art/spring-sky.webp) center top/100% 65% no-repeat,
    #293878;
}
.campaign-head .campaign-campus {
  top: 27%;
  bottom: 0;
  background-position: center 66%;
  mask-image: linear-gradient(
    180deg,
    transparent 0%,
    #0006 17%,
    #000e 39%,
    #000 58%
  );
  -webkit-mask-image: linear-gradient(
    180deg,
    transparent 0%,
    #0006 17%,
    #000e 39%,
    #000 58%
  );
}
.campaign-head:before {
  background:
    linear-gradient(135deg, #1c245d5e 0%, transparent 70%),
    linear-gradient(180deg, #1c265543, transparent 50%);
}
.campaign-head:after {
  width: 18%;
  height: 43%;
  opacity: 0.35;
}
.campaign-ambassador {
  height: 90%;
  right: -3.2%;
  width: 42%;
  object-position: 50% 0;
  object-fit: cover;
  mask-image: linear-gradient(180deg, #000 83%, transparent 100%);
}
.campaign-head[data-view="rank"] {
  background:
    radial-gradient(ellipse at 100% 0, #626cb0, transparent 68%),
    linear-gradient(130deg, #19295d, #343873);
}
.campaign-head[data-view="rank"] .campaign-campus {
  opacity: 0.1;
}
.campaign-type {
  top: 21%;
}
.campaign-sash {
  height: 28%;
}
#h5 #podium {
  isolation: isolate;
  position: relative;
  background: none;
}
#h5 #podium:before {
  content: "";
  z-index: -1;
  position: absolute;
  inset: -12% -3.8% -2%;
  background: url(h5-art/honor-stage.webp) center bottom/100% 100% no-repeat;
  mix-blend-mode: screen;
  opacity: 0.75;
  pointer-events: none;
  mask-image: linear-gradient(transparent, #000 55%, #000 92%, transparent);
}
#h5 .student .student-figure {
  aspect-ratio: auto;
  object-fit: contain;
  height: 134%;
  top: 1%;
  object-position: center top;
}
#h5 .gold-action,
#h5 #detail #vote {
  background: #d79d5e url(h5-art/gold-button.svg) center/100% 100% no-repeat;
  color: #fff4d6;
  text-shadow:
    0 1px 2px #603210,
    0 0 1px #4b2b16;
}
#h5 #detail #vote {
  width: 100%;
}
#h5 .choose-student small {
  color: #fff5dc;
}
#h5 .rank-tools .rank-caption {
  color: #fff0c9;
  font: 600 13px/1.4 var(--serif);
  padding-left: 8px;
}
.campaign-head:not([data-view="rank"]) {
  background:
    linear-gradient(155deg, #17276192 0%, #263f8433 54%, #3050a34a 76%),
    url(h5-art/spring-sky.webp) center top / 100% 72% no-repeat,
    #3050a3;
}
.campaign-head:not([data-view="rank"]) .campaign-campus {
  top: 40%;
  background-position: center 63%;
  mask-image: linear-gradient(
    180deg,
    transparent,
    #0005 14%,
    #000d 36%,
    #000 57%
  );
  -webkit-mask-image: linear-gradient(
    180deg,
    transparent,
    #0005 14%,
    #000d 36%,
    #000 57%
  );
}
.campaign-plaque {
  min-width: 76%;
  padding: 3px 13px 4px;
  background-size: 100% 100%;
  font-weight: 750;
}
.campaign-subtitle {
  font-family: system-ui;
  font-size: clamp(9px, 2.45vw, 12px);
  background: linear-gradient(
    90deg,
    transparent,
    #19295d94 16% 84%,
    transparent
  );
  padding: 2px 8px;
}
.scene-caption {
  padding: 3px 8px;
  border-left: 2px solid #f4cf83;
  background: linear-gradient(90deg, #2e2b58eb, #29254f80);
  bottom: 5%;
}
#h5 #podium .pod strong {
  background: none;
  color: #45283b;
  text-shadow: 0 1px 1px #fff1cc;
  position: relative;
  margin: -16% 0 3%;
  line-height: 1.2;
}
#h5 #podium .pod:has(.prepared-scene) strong {
  margin: 2px 0;
  color: #fff;
  background: #36345b;
}
#h5 .campaign-head[data-view="rank"] {
  background-color: #30336d;
}
#h5:has(#join-upload:not([hidden])) .campaign-head {
  height: 49cqw;
}
#h5:has(#join-upload:not([hidden])) .campaign-type {
  top: 20%;
}
#h5:has(#join-upload:not([hidden])) .join-body > .steps {
  padding: 4px;
}
#h5 .join-body #join-upload,
#h5 .join-body #video-upload {
  gap: 5px;
  padding: 9px 12px;
}
#h5 .join-body .shooting-guide {
  font-size: 11px;
  line-height: 1.5;
  color: #514668;
}
#h5 .shooting-guide summary {
  cursor: pointer;
  color: #51427c;
  display: list-item;
  font-weight: 600;
}
#h5 .shooting-guide p {
  margin: 4px 0;
}
#h5 .join-body #join-upload .upload-tile,
#h5 #video-upload .video-tile {
  min-height: 72px;
  padding: 7px;
  aspect-ratio: auto;
  width: 100%;
}
#h5 .join-body .upload-tile .icon {
  height: 22px;
  width: 22px;
}
#h5 .join-body .upload-tile strong {
  font-size: 13px;
}
#h5 .join-body .upload-tile small {
  font-size: 10px;
}
#h5 .photo-example {
  height: 60px;
}
#h5 .crop-frame {
  gap: 1px;
}
#h5 #join-progress {
  padding: 6px 12px;
  font-size: 11px;
  color: #514668;
}
#h5 #join-progress .steps {
  margin: 3px 0;
}
#h5:has(#join-upload:not([hidden])) .join-body #join-form {
  gap: 6px;
}
#h5 .join-body .public-consent {
  margin: 2px 0;
  font-size: 11px;
}
#h5 .upload-grid:has(#crop-box:not([hidden])) {
  align-items: start;
}
.campaign-head:not([data-view="rank"], .prepared-hero):after {
  inset: 0 0 auto;
  width: 100%;
  height: 78%;
  z-index: 1;
  background: url(h5-art/campaign-canopy.webp) center top / 100% 100% no-repeat;
  opacity: 0.8;
}
#h5.campaign-unavailable {
  padding-bottom: 30px;
  background: linear-gradient(#29336e, #8882bf 32%, #e2dcf3 65%, #f0eaf8);
}
.campaign-unavailable .empty-landscape {
  height: 51cqw;
  background:
    url(h5-art/campaign-sash.webp) center bottom/100% 23% no-repeat,
    url(h5-art/campaign-campus.webp) center 80% / cover;
}
.campaign-unavailable .unavailable {
  margin: 12px 4%;
  padding: 105px 18px 24px;
  text-align: center;
  background:
    url(h5-art/growth-empty.svg) center 16px/84px auto no-repeat,
    var(--glass);
}
#h5 .profile-entry .student-visual {
  width: 68px;
  height: 68px;
  border-radius: 10px;
}
#h5 .profile-entry .student-visual img {
  width: 100%;
  height: 100%;
  border-radius: 0;
}
#h5 #podium .pod {
  max-width: 31%;
}
#h5 #podium .place-1 {
  max-width: 34%;
}
#h5 #podium .pod .pod-name {
  margin: 0;
  position: absolute;
  z-index: 2;
  top: 86%;
  left: 50%;
  width: 66%;
  transform: translate(-50%, -50%);
  color: #342139;
  line-height: 1;
  font-size: clamp(10px, 2.85vw, 14px);
  font-weight: 800;
  text-shadow: none;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
  padding: 0;
}
#h5 #podium .pod:has(.pod-name) .prepared-name {
  display: none;
}
.campaign-ambassador {
  height: 82%;
  width: 41%;
  right: -1.5%;
  bottom: 1%;
  object-fit: contain;
  object-position: center bottom;
}
.campaign-subject.student-visual[data-template="T01"] .student-figure {
  height: 84%;
  width: 43%;
  right: -1.5%;
}
#h5 .rule-card:has(.rule-symbol) {
  padding-left: 24%;
}
.rule-symbol {
  position: absolute;
  left: 3%;
  width: 18%;
  top: 50%;
  transform: translateY(-50%);
  height: 62px;
  display: grid;
  place-items: center;
}
#h5 .profile-shortcuts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 5px 4px;
}
#h5 .profile-shortcuts > * {
  display: grid;
  gap: 2px;
  justify-items: center;
  align-content: start;
  text-align: center;
  padding: 6px 2px;
  font-size: 11px;
}
#h5 .profile-shortcuts > * > span {
  display: none;
}
#h5 .profile-shortcuts .icon {
  width: 23px;
  height: 23px;
  padding: 2px;
}
.campaign-heading {
  position: relative;
}
.campaign-heading:before,
.campaign-heading:after {
  position: absolute;
  content: "";
  pointer-events: none;
  top: 32%;
  left: -11%;
  width: 13%;
  height: 72%;
  background: url(h5-art/share-laurel.webp) center/contain no-repeat;
}
.campaign-heading:after {
  left: auto;
  right: -11%;
  transform: scaleX(-1);
}
[data-view="rank"] .campaign-heading:before,
[data-view="rank"] .campaign-heading:after {
  top: 17%;
  width: 24%;
  height: 94%;
  left: -29%;
}
[data-view="rank"] .campaign-heading:after {
  left: auto;
  right: -29%;
}
#h5 .rank-body .rank-item {
  padding: 2px 0;
  grid-template-columns: 24px 30px minmax(0, 1fr) auto;
}
.rank-item .student-visual[data-template="T04"] {
  width: 29px;
  height: 29px;
}
#h5 .rank-body .rank-tools {
  margin: 0 3px 2px;
}
#h5 .rank-body .region-tabs {
  margin: 1px 3px 2px;
}
.rank-body .region-tabs button {
  font-size: 11px;
}
.rank-list .load {
  padding: 4px 0;
  margin: 0;
  background: transparent;
  color: #655684;
  border: 0;
  border-top: 1px solid #e4dded;
  border-radius: 0;
  font-size: 11px;
}
.campaign-error {
  grid-column: 1/-1;
  display: grid;
  justify-items: center;
  gap: 10px;
  text-align: center;
  color: #4a3d61;
  background: var(--glass);
}
/* Measurements from the 390px device captures. */
#h5[data-section="home"] .campaign-head {
  height: 59.5cqw;
}
#h5 .count {
  min-height: 22px;
  line-height: 1.1;
  padding-block: 1px;
  margin-bottom: 6px;
}
#h5 .count small,
#h5 .count .phase-mark {
  line-height: 1.25;
}
#h5 .overview-stats {
  padding: 4px 0;
}
#h5 .overview-stats > div {
  line-height: 1.2;
}
#h5 #students .bar {
  margin: 5px 1px 4px;
  line-height: 1.25;
}
#h5 #students .text-btn {
  line-height: 1.35;
}
#h5 .campaign-head[data-view="rank"] {
  height: 21.8cqw;
}
#h5 .rank-tools {
  height: 22px;
}
#h5 .rank-tools .searchbox {
  height: 21px;
  padding: 1px 6px;
}
#h5 .rank-tools .searchbox input {
  line-height: 1.2;
  padding: 0 3px;
}
#h5 .rank-tools .searchbox .icon {
  height: 13px;
  width: 13px;
}
#h5 .rank-body .region-tabs {
  padding: 1px;
}
#h5 .rank-body .region-tabs button {
  line-height: 1.35;
  padding: 2px 7px;
}
#h5 #podium {
  padding: 6px 0 7px;
  line-height: 1.2;
}
#h5 #podium .student-visual {
  width: 86%;
  aspect-ratio: 120/112;
}
#h5 #podium .place-1 .student-visual {
  width: 92%;
}
#h5 #podium .pod em {
  margin: 0;
  line-height: 1.3;
}
#h5 .rank-list {
  padding-bottom: 0;
}
#h5 .rank-list .listhead {
  padding: 3px 13px;
  line-height: 1.35;
  font-size: 10px;
}
#h5 .rank-item {
  min-height: 29px;
  height: auto;
  line-height: 1.14;
}
#h5 .rank-item > span:not(.student-visual) {
  font-size: 12px;
  line-height: 1.15;
}
#h5 .rank-item > span:not(.student-visual) > b,
#h5 .rank-item small {
  display: block;
  line-height: 1.15;
}
#h5 .rank-body .rank-item {
  padding-block: 1px;
}
#h5 .rank-item .student-visual[data-template="T04"] {
  height: 25px;
  width: 25px;
}
#h5 .rank-item small {
  font-size: 9px;
}
#h5 .rank-list .load {
  line-height: 1.1;
  padding: 3px 0;
  font-size: 10px;
}
#h5 .rank-body .witness-banner {
  margin: 8px 0 0;
}
#h5 .rank-body .gold-action {
  margin: 8px 0;
}
#h5 .quota-card {
  padding: 8px 12px;
  min-height: 62px;
}
#h5 .quota-card > div {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1px 10px;
  align-items: baseline;
}
#h5 .quota-card h2 {
  font-size: 14px;
  line-height: 1.2;
}
#h5 .quota-card b {
  font-size: 18px;
  line-height: 1.3;
}
#h5 .quota-card small,
#h5 .quota-card progress {
  grid-column: 1/-1;
  line-height: 1.25;
  margin: 0;
}
#h5 .quota-card progress {
  height: 5px;
  margin-top: 2px;
}
#h5 .quota-art {
  height: 40px;
  flex-basis: 18%;
}
#h5 .entry-card {
  padding: 8px 12px;
}
#h5 .entry-card h2 {
  font-size: 14px;
  margin-bottom: 2px;
}
#h5 .profile-entry {
  gap: 8px;
}
#h5 .profile-entry p {
  margin: 1px 0;
  font-size: 11px;
}
#h5 .entry-metrics {
  margin-top: 3px;
}
#h5 .entry-status {
  padding: 7px 9px;
}
#h5 .track .icon {
  width: 18px;
  height: 18px;
}
#h5 #podium {
  padding-bottom: 13px;
}
#h5 .rank-list .listhead {
  min-height: 21px;
  display: flex;
  align-items: center;
  gap: 8px;
}
#h5 .rank-list .listhead > :first-child {
  margin-right: auto;
}
#h5 .rank-list .listhead .load {
  width: auto;
  padding: 1px 4px;
  border: none;
  color: #554575;
  background: none;
  font-size: 10px;
  line-height: 1.15;
}
#h5 .count {
  margin-bottom: 11px;
}
#h5 .choose-student {
  margin-top: 13px;
}
#h5 .home-content .witness-banner {
  margin-top: 8px;
}
#h5 .rank-body .witness-banner,
#h5 .rank-body .gold-action {
  margin-top: 11px;
}
#h5 .identity-copy {
  display: grid;
  min-width: 0;
}
.identity-copy small {
  font-size: 11px;
  color: #615775;
}
#h5 .rule-book {
  gap: 7px;
  padding-top: 7px;
}
#h5 .rule-card {
  min-height: 0;
  padding: 8px 10px 8px 24%;
}
#h5 .rule-card h2 {
  font-size: 14px;
  line-height: 1.25;
  padding: 1px 10px;
  margin: 0 0 3px;
}
#h5 .rule-card p,
#h5 .rule-card a,
#h5 .rule-card summary {
  font-size: 12px;
  line-height: 1.42;
}
#h5 .rule-card p {
  margin: 2px 0;
}
#h5 .rule-card summary {
  cursor: pointer;
  color: #544783;
  font-size: 11px;
}
#h5 .rule-card[data-emblem="award"] summary {
  color: #fff1ce;
}
#h5 .rule-card[data-emblem="award"] h2 {
  padding-left: 0;
}
#h5 .rule-card summary:focus-visible {
  outline-offset: 1px;
}
#h5 .published-prize {
  margin: 6px 0 3px;
  padding: 6px 1px;
  border-top: 1px solid #f3dbaf65;
}
#h5 .profile-shortcuts {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding: 8px 3px;
}
#h5 .profile-shortcuts > * {
  border: 0;
  min-height: 44px;
  gap: 3px;
  padding: 2px;
}
#h5 .profile-shortcuts .icon {
  width: 25px;
  height: 25px;
}
#h5[data-role="guest"] #profile {
  min-height: 0;
  gap: 6px;
}
#h5[data-role="guest"] .guest-history {
  padding: 8px 12px;
}
#h5[data-role="guest"] .guest-history > div {
  min-height: 40px;
  gap: 12px;
}
#h5[data-role="guest"] .guest-history > div .icon {
  height: 34px;
  width: 34px;
}
#h5[data-role="guest"] .guest-history p {
  line-height: 1.35;
  font-size: 11px;
}
#h5[data-role="guest"] .welcome {
  padding: 9px 12px;
}
#h5[data-role="guest"] .welcome .cta {
  min-height: 37px;
  padding: 5px 12px;
}
.guest-secondary {
  display: flex;
  justify-content: space-evenly;
  gap: 8px;
  font-size: 11px;
}
.campaign-head[data-view="rules"] {
  height: 47cqw;
}
.campaign-head[data-view="rules"] .campaign-type {
  top: 20%;
  width: 53%;
}

#h5 .rule-card[data-emblem="applause"]:before {
  background-image: url(h5-art/rule-clap.webp);
}
#h5 .rule-symbol {
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  width: 20%;
  left: 2%;
  height: 70px;
}
.rule-card[data-emblem="phone"] .rule-symbol {
  background-image: url(h5-art/rule-phone.webp);
}
.rule-card[data-emblem="podium"] .rule-symbol {
  background-image: url(h5-art/rule-podium.webp);
}
.rule-card[data-emblem="privacy"] .rule-symbol {
  background-image: url(h5-art/rule-bell.webp);
}
.guest-illustration {
  display: block;
  width: 72px;
  height: 43px;
  flex: none;
  background-position: center;
  background-size: contain;
  background-repeat: no-repeat;
}
.guest-records {
  background-image: url(h5-art/guest-records.webp);
}
.guest-follow {
  background-image: url(h5-art/guest-follow.webp);
}
#h5 #signin,
#h5 #join-next,
#h5 #join-submit {
  color: #fff5d9;
  text-shadow:
    0 1px 2px #603210,
    0 0 1px #4b2b16;
}

/* The legacy, operator-positioned T01 canvas is 900×400. Preserve its edges
   when a school has already composed a name, logo or custom foreground. */
#h5 .campaign-head.prepared-hero {
  height: auto;
  aspect-ratio: 9 / 4;
}
.prepared-hero .campaign-subject .prepared-scene {
  object-fit: contain;
}
.prepared-hero .campus-label {
  display: none;
}
.prepared-hero .campaign-top {
  justify-content: flex-end;
}
.prepared-hero .campaign-tools {
  margin-left: 0;
}

/* Plate 6 is a continuous reading page with a return action in its header. */
#h5[data-section="rules"]:not([data-state="archived"]) .bottom {
  display: none;
}
#h5[data-section="rules"]:not([data-state="archived"]) {
  padding-bottom: max(14px, env(safe-area-inset-bottom));
}

/* Sky plate from the unlettered layer on the campaign's ninth design board. */
.campaign-head:not([data-view="rank"]) {
  background:
    linear-gradient(165deg, #111b463d, transparent 66%),
    url(h5-art/masthead-sky.webp) center top / 100% 76% no-repeat,
    #879fe3;
}
.campaign-head:not([data-view="rank"])::after {
  display: none;
}
.campaign-head:not([data-view="rank"]) .campaign-campus {
  top: 44%;
  background-position: center 92%;
  mask-image: linear-gradient(transparent, #0004 11%, #000 43%);
}
.campaign-head[data-view="join"] {
  height: 59.5cqw;
}
.campaign-head[data-view="join"] .campaign-type {
  width: 63%;
  left: 12%;
  top: 25%;
}
.campaign-head[data-view="join"] .campaign-heading {
  font-size: 7cqw;
}

/* Ceremony controls and honor cards, measured on the 390 px design board. */
#h5 .gold-action, #h5 #detail #vote {
  background: #ae6b31 url(h5-art/applause-enamel.webp) center / 100% 100% no-repeat;
  box-shadow: 0 1px 5px #fff1bf, 0 3px 7px #87592844;
  font-family: system-ui, sans-serif;
  letter-spacing: .01em;
}
#h5 .gold-action .applause-mark { filter: brightness(1.5) saturate(.4); }
#h5 .choose-student { width: 97%; margin-inline: auto; justify-content: space-evenly; gap: 3px; }
#h5 .choose-student small { margin-left: 0; border-color: #ffdfa2; }
#h5 .rank-body .gold-action { width: 82%; margin-inline: auto; }
#h5 .witness-banner {
  background: url(h5-art/witness-cup.webp) left center / auto 100% no-repeat,
    url(h5-art/share-glint.webp) 2% 45% / 30% auto no-repeat,
    radial-gradient(ellipse at 9% 100%,#b98b73,transparent 23%),
    linear-gradient(110deg,#6c5da1,#272955 45%,#423784 93%,#8f75b4);
}
#h5 #podium::before {
  opacity: 1;
  background: radial-gradient(ellipse 28% 80% at 50% 62%,#f1b65155,transparent 84%),
    url(h5-art/honor-stage.webp) center bottom / 100% 100% no-repeat;
  mask-image: linear-gradient(transparent,#000 40%,#000 96%,transparent);
}
#h5 #podium .pod .pod-name { font: 700 clamp(10px,3vw,14px)/1.1 system-ui,sans-serif; }
#h5 .rank-item > b {
  justify-self: center;
  border-radius: 5px;
  padding-inline: 2px;
  white-space: nowrap;
  font: italic 700 14px/1.25 Georgia,serif;
  background: linear-gradient(105deg,transparent,#e0dcf8,transparent);
}
#h5 .rank-item { background: linear-gradient(105deg,#ffffff42,#f0edfc55); }
#h5 .overview-stats > div, #h5 .student-metrics > div { position: relative; }
#h5 .overview-stats > div::before, #h5 .overview-stats > div::after,
#h5 .student-metrics > div::before, #h5 .student-metrics > div::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 16%;
  width: 12px;
  height: 21px;
  transform: translateY(-50%);
  opacity: .46;
  background: url(h5-art/laurel.svg) center / contain no-repeat;
  pointer-events: none;
}
#h5 .overview-stats > div::after, #h5 .student-metrics > div::after {
  left: auto; right: 16%; transform: translateY(-50%) scaleX(-1);
}
#h5 .student-metrics { min-height: 64px; }
#h5 .student-metrics > div {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px;
}
#h5 .student-metrics .icon, #h5 .student-metrics .applause-mark { width: 16px; height: 16px; }
#h5 .student-identity.panel { min-height: 88px; border: 1px solid #fff9; box-shadow: 0 2px 6px #3b32651c; }
#h5 .student-identity .student-visual { width: 23%; height: 70px; flex: none; }
#h5 #detail .quota-note { padding: 6px 9px; margin: 6px 0; }
#h5 .student-links { margin-block: 8px; }
#h5 .student-links > * { min-height: 38px; }
#h5 .student-links #share { background: linear-gradient(145deg,#fff9e7,#f4d6a6); }
.campaign-head:not([data-view="rank"]) .campaign-sash {
  inset: auto 0 -1px;
  height: 18.1cqw;
  background-image: var(--scene-sash, url(h5-art/masthead-ribbon.webp));
}
.campaign-head:not([data-view="rank"])::before {
  background: linear-gradient(130deg, #0b174526, transparent 57%, #ffe0c526);
}

#h5 .home-content {
  background: url(h5-art/lavender-silk.svg) center 355px / 100% 100px no-repeat,
    linear-gradient(#343675,#716eaf 52px,#e0daf6 146px,#f1ebfb 352px,#d8ceee 456px,#eee8fa);
}
#h5 .rank-body {
  background: url(h5-art/lavender-silk.svg) center 451px / 100% 125px no-repeat,
    linear-gradient(#30336d,#454484 140px,#b9aedf 209px,#e6dff7 388px,#cfc3ed 489px,#e8e2f9 605px);
}
#h5 .bottom { min-height: 54px; padding-top: 5px; }
#h5 .bottom .icon { width: 21px; height: 21px; stroke-width: 1.55; }
#h5 .bottom [aria-current] .icon { fill: #4938aa; stroke: #4938aa; }
#h5 .bottom [aria-current]::after { border-radius: 50%; box-shadow: 0 0 5px #f2c574; }
#students h2 { display:flex; align-items:center; gap:4px; }
#h5 #students h2::before, #h5 #students h2::after {
  content:""; display:block; width:12px; height:18px; background: url(h5-art/laurel.svg) center / contain no-repeat;
}
#h5 #students h2::after { transform:scaleX(-1); }
/* Keep the crest and honor title legible against the indigo stage. */
#h5 .campaign-head[data-view="rank"] {
  background:
    linear-gradient(to bottom, transparent 40%, #30336d),
    linear-gradient(115deg, #12194326, #25255794),
    url(h5-art/masthead-sky.webp) center 17% / 100% auto,
    #242958;
}
.campaign-head[data-view="rank"]::after {
  display: none;
}
.campaign-head[data-view="rank"] .campaign-campus {
  opacity: 0;
}
.campaign-head[data-view="rank"] .campaign-heading::before {
  left: -24%;
}
.campaign-head[data-view="rank"] .campaign-heading::after {
  right: -24%;
}
.campaign-head .campaign-type:has(img[src$="/masthead-heading.webp"]) {
  width: 59%;
  left: 12%;
}
.campaign-heading:has(img[src$="/masthead-heading.webp"])::before,
.campaign-heading:has(img[src$="/masthead-heading.webp"])::after {
  display: none;
}
#h5 .student .student-visual[data-template="T02"]:not(:has(.prepared-scene))::before {
  content:""; position:absolute; inset:-4px;
  background: var(--card-scenery,url(h5-art/card-bokeh-gold.webp)) center / cover;
}
#h5 .student:nth-child(3n + 2) .student-copy { background: linear-gradient(0deg,#dce2fc,#f2f2fbe8 54%,transparent); }
#h5 .student:nth-child(3n) .student-copy { background: linear-gradient(0deg,#f5d5c5,#fff1e9e8 54%,transparent); }
#h5 .declaration-heading small { color:#fff5dd; }
#h5 .declaration-heading h2::before { display:none; }

#h5 .student:has(.m2) { --card-scenery:url(h5-art/card-bokeh-silver.webp); }
#h5 .student:has(.m3) { --card-scenery:url(h5-art/card-bokeh-bronze.webp); }
.campaign-head .campaign-plaque {
  min-width: 0;
  width: max-content;
  max-width: 100%;
  padding: 2px 6.2cqw 3px;
  margin-top: 1px;
  background-image: url(h5-art/masthead-plaque.webp);
  line-height: 1.25;
}
.campaign-head .campaign-subtitle {
  background: transparent;
  font-family: var(--serif);
}
.campaign-head:not([data-view="rank"]) .campaign-campus {
  top: 49%;
  background-position: center 85%;
}
.campaign-head:is([data-view="home"], [data-view="join"]) .campaign-ambassador {
  width: 46%;
  height: 90%;
  right: -4%;
  bottom: -9%;
}
.campaign-head[data-view="home"] .campus-label {
  margin-left: 8cqw;
}

/* The exposed school is a distant plane. The central layer uses the same
   activity photo as its margins, with a soft join on both sides. */
.campaign-head:not([data-view="rank"],.prepared-hero) .campaign-campus {
  top: 51%; background-position: center 90%;
  mask-image: linear-gradient(transparent, #000a 18%, #000 40%);
}
.campaign-head:not([data-view="rank"],.prepared-hero) .campaign-campus::before {
  content: ""; position: absolute; inset: 0;
  background: var(--school-campus,url(h5-art/campaign-campus.webp)) center 96% / 74% auto no-repeat;
  mask-image: linear-gradient(90deg,transparent 10%,black 22% 78%,transparent 90%);
}
.campaign-head:not([data-view="rank"],.prepared-hero)::before {
  z-index: 1;
  background: radial-gradient(ellipse 23% 46% at 92% 55%,#fff5cf8a,transparent 89%),
              linear-gradient(128deg,transparent 57%,#fff1d722 71%,transparent 83%);
}
.campaign-head .campaign-ambassador,
.campaign-head:not(.prepared-hero) .campaign-subject .student-figure {
  filter: saturate(1.05) drop-shadow(1.8px -.8px 3px #f6d8ac44);
}
#h5 .rank-body {position:relative}
.rank-search {position:absolute;z-index:8;right:20%;top:calc(-21.8cqw + 7px);color:#fff8de}
.rank-search summary {width:28px;height:28px;display:grid;place-items:center;cursor:pointer;list-style:none}
.rank-search summary::-webkit-details-marker {display:none}
.rank-search .icon {width:17px;height:17px}
#h5 .rank-search .rank-tools {
  position:absolute;right:-40px;top:100%;width:min(290px,80vw);height:auto;
  padding:8px;margin:0;border:1px solid #c8bee5;border-radius:12px;
  background:#353369;box-shadow:0 4px 12px #1d18454d;
}
#h5 .rank-search .searchbox {flex:1;min-width:0}
#h5 .rank-body .region-tabs {margin:4px 3px}
#h5 #podium {min-height:39cqw;align-items:end}
#h5 #podium .student-visual {width:98%}
#h5 #podium .place-1 .student-visual {width:108%}
#h5 #podium .student-visual[data-medal]:not(:has(.prepared-scene))::after {
  filter:drop-shadow(0 1px .55px #503458b0) contrast(1.12);
}
#h5 #podium .place-1 .student-visual:not(:has(.prepared-scene))::after {
  background-image:url(h5-art/share-glint.webp),var(--honor-frame);
  background-size:26% auto,100% 100%;background-position:47% 0%,center;background-repeat:no-repeat;
  filter:drop-shadow(0 -1px 2px #ffc851a8);
}

#h5 #podium::before {
  background:
    radial-gradient(ellipse 23% 62% at 50% 64%,#ffdf9dd9,#d99a5852 56%,transparent 94%),
    radial-gradient(ellipse 34% 50% at 8% 55%,#8294d880,transparent),
    radial-gradient(ellipse 28% 50% at 91% 60%,#d4a1bd6b,transparent),
    linear-gradient(176deg,#282c68,#383984 50%,#64569f);
  inset:-8% -4% -2%;mix-blend-mode:normal;
}
#h5 .rank-body > #share {margin-top:40px}
.campaign-head[data-view="home"] .campaign-ambassador {bottom:-11%}

#h5 #podium::after {
  content:"";position:absolute;inset:auto -4% -1%;height:39%;
  z-index:-1;pointer-events:none;mix-blend-mode:screen;
  background:
    radial-gradient(ellipse 21% 11% at 50% 74%,transparent 74%,#ffe4a5bb 88%,#b77751 93%,transparent),
    radial-gradient(ellipse 25% 20% at 50% 77%,#ffe1a4bd,transparent 78%),
    radial-gradient(ellipse 63% 105% at 49% -9%,transparent 94%,#c58e5d 95%,#ffe6b4 98%,#b67c49 99%,transparent 100%),
    url(h5-art/honor-stage.webp) center bottom / 100% 260% no-repeat;
  mask-image:linear-gradient(transparent,#000 57%);
}
#h5 #podium .pod {transform:translateY(-5px)}
#h5 #podium .pod em {font-size:11px;text-shadow:0 1px 3px #201b53}
#h5 .rank-body .region-tabs {
  margin-inline:4.2%;border:1px solid #aa9bc0;border-radius:18px;
  background:linear-gradient(#353774,#292762);
}
#h5 .rank-body .region-tabs button:not(.selected) {color:#fff5df}
.campaign-head:is([data-view="home"],[data-view="detail"]):not(.prepared-hero) .campaign-campus {
  top:56%;background-position:center 85%;
}
.campaign-head:is([data-view="home"],[data-view="detail"]):not(.prepared-hero) .campaign-campus::before {
  background-size:62% auto;background-position:center 93%;
  mask-image:linear-gradient(90deg,transparent 18%,black 30% 70%,transparent 82%);
}
.student-visual[data-template="T03"] .honor-window {
  position:absolute;left:14%;top:15%;width:72%;aspect-ratio:1;overflow:hidden;border-radius:50%;
  background:var(--seat-photo,url(h5-art/card-bokeh-gold.webp)) center / cover;
}
.student-visual[data-medal="silver"] {--seat-photo:url(h5-art/card-bokeh-silver.webp)}
.student-visual[data-medal="bronze"] {--seat-photo:url(h5-art/card-bokeh-bronze.webp)}
.student-visual[data-template="T03"] .honor-window .student-figure {
  inset:1% auto auto -10%;width:120%;height:121%;border-radius:0;
  object-fit:cover;object-position:center 6%;
}

/* The school sign sits in the landscape; the school name in the masthead remains accessible. */
.campaign-head .campus-sign {
  position:absolute;z-index:2;left:30%;bottom:5%;max-width:43%;overflow:hidden;
  white-space:nowrap;text-overflow:ellipsis;padding:1px 5px;
  background:linear-gradient(125deg,#e6c6a6,#f1dcca 45%,#bd9e8a);
  border:1px solid #e8c7a2;border-radius:2px;color:#4c3931;
  font:600 9px/1.25 var(--serif);text-shadow:none;
}
.campaign-head[data-view="detail"]:not(.prepared-hero) .scene-caption {
  z-index:5;left:5%;bottom:9%;max-width:60%;padding:3px 9px;
  overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
  border:1px solid #d9be8d;border-radius:4px;
  background:linear-gradient(105deg,#282b53f7,#403559eb);
  color:#fff4da;font:600 11px/1.35 var(--serif);text-shadow:none;
}
#h5[data-section="home"] .campaign-head {height:61.3cqw}
#h5 #home-search {height:29px;min-height:29px;margin-block:6px 4px}
#h5 #home-search input {min-height:24px;height:24px}
#h5 .student .student-figure {height:166%;top:2%}
#h5 .student .student-visual[data-template="T02"]::after {height:23%}
#h5 .student .student-copy {padding:6px 7px 4px}
#h5 .choose-student {display:grid;grid-template-columns:1.18fr 1fr;gap:0;padding-inline:4%}
#h5 .choose-student .applause-label {display:flex;align-items:center;justify-content:center;gap:6px}
#h5 .choose-student small {justify-self:center;padding:2px 8px;border:1px solid #efd095;border-radius:12px;
  background:linear-gradient(115deg,#fff3c9,#e9b877);color:#59391f;text-shadow:none}
#h5[data-section="detail"] .campaign-head {height:57.3cqw}
#h5 .student-identity .bar {justify-content:flex-start;gap:7px;flex-wrap:wrap}
#h5 .student-identity .bar small {background:#e1dcf4;border-radius:5px;padding:1px 5px;color:#51496c}
#h5 .student-identity .bar .identity-region {display:inline-flex;align-items:center;gap:2px;background:none;padding:0}
.identity-region .icon {width:12px;height:12px}
#h5 .student-identity .bio-label {font:600 10px/1.5 var(--serif);color:#735132;border-radius:6px;padding:1px 6px;background:#f2dfb8}
#h5 .student-identity p {margin-top:2px;font-size:12px}
#h5 #detail .quota-note {padding:3px 10px;border:1px solid #fff8}
#h5 #detail .quota-note summary {cursor:pointer;line-height:21px}
#h5 #detail .quota-note summary b {font:700 15px/1 Georgia,serif;color:#633c25;background:#f3d295;padding:0 4px}
#h5 #detail .quota-note summary small {margin-left:8px;border-left:1px solid #cebdc6;padding-left:8px;color:#704825}
#h5 .student-links {display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}
#h5 .student-links #share:first-child {grid-column:1/-1}
#h5 .student-links .save-student-poster {grid-column:1/-1;justify-self:center;padding:0 12px;line-height:28px;min-height:28px;margin-block:6px}
#h5 .student-links > :is(a,button):not(.save-student-poster) {display:flex;align-items:center;justify-content:center;gap:5px}
#h5 .student-links .icon {height:19px;width:19px}
#h5 .student .medal {
  clip-path:none;display:grid;place-items:center;box-sizing:border-box;
  width:29px;height:24px;padding:4px 0 0;text-align:center;line-height:1;
  background:transparent url(h5-art/share-crown.webp) center / 100% 100% no-repeat;
  color:#583b19;font-size:13px;text-shadow:0 1px 1px #fff2ba;
}
#h5 .student .medal.m2 {filter:grayscale(.93);color:#302c3b}
#h5 .student .medal.m3 {filter:sepia(.28) hue-rotate(-15deg) saturate(.88);color:#5a3025}
#h5 .student .student-visual[data-template="T02"]::after {opacity:.78}
#h5[data-section="detail"] #detail .student-identity {padding-block:5px}
#h5 .student-metrics dd {font-variant-numeric:tabular-nums}

#h5 #detail #vote {
  justify-content:center;gap:10px;padding-block:2px;
  font:750 clamp(19px,5.45cqw,25px)/1.2 system-ui,sans-serif;
}
#h5 #detail #vote .applause-mark {width:1.5em;height:1.5em}
#h5 #detail #vote:not(:disabled)::after {
  content:"";width:9px;height:9px;border:solid #fff6d9;border-width:2px 2px 0 0;
  transform:rotate(45deg);margin-inline:3px 4px;
}
