@font-face {
  font-family: "MElle HK";
  src: url("assets/fonts/MElleHK-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "MHei HK";
  src: url("assets/fonts/MHeiHK-Light.ttf") format("truetype");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "MHei HK";
  src: url("assets/fonts/MHeiHK-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "MHei HK";
  src: url("assets/fonts/MHeiHK-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "MHei HK";
  src: url("assets/fonts/MHeiHK-Xbold.ttf") format("truetype");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --blue: #0054a1;
  --cyan: #62c5f0;
  --title: #62c7f0;
  --orange: #f08300;
  --ink: #231a15;
  --muted: #898a89;
  --line: #aeaeae;
  --font-elle: "MElle HK", "Noto Sans TC", sans-serif;
  --font-hei: "MHei HK", "Noto Sans TC", sans-serif;
  --font-en: Impact, Haettenschweiler, "Arial Narrow", sans-serif;
  --content: 1302px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: #fff;
  font-family: var(--font-hei);
  font-weight: 500;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

.page {
  position: relative;
  max-width: 1920px;
  margin: 0 auto;
  overflow: visible;
  background: #fff;
  container-type: inline-size;
}

.header {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 28px 4px;
}

.header__logo {
  width: min(260px, 40vw);
  height: auto;
}

.utils {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 10px;
  font-size: 15px;
  font-weight: 500;
  color: #000;
}

.utils a:hover {
  color: var(--blue);
}

.sep {
  color: #9aa3a6;
}

.text-size {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.text-size__btn {
  border: 0;
  background: transparent;
  padding: 0 2px;
  line-height: 1;
  color: #8d9698;
}

.text-size__btn--s { font-size: 13px; }
.text-size__btn--m { font-size: 16px; }
.text-size__btn--l { font-size: 19px; }

.text-size__btn.is-active {
  color: var(--blue);
  font-weight: 700;
}

.hero {
  position: relative;
  z-index: 3;
  min-height: 0;
  padding: 72px 24px 48px;
  overflow: visible;
}

.hero:not(.hero--vote):not(.hero--gallery) {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100cqi * 1152 / 2688);
  padding: 24px;
}

.hero:not(.hero--vote):not(.hero--gallery) .hero__content {
  width: 100%;
}

.hero:not(.hero--vote):not(.hero--gallery) .hero__stack {
  display: grid;
  grid-template-columns: max-content;
  justify-content: center;
  width: 100%;
  max-width: 100%;
}

.hero:not(.hero--vote):not(.hero--gallery) .hero__zh {
  width: max-content;
  max-width: 100%;
  justify-self: center;
}

.hero:not(.hero--vote):not(.hero--gallery) .hero__kicker,
.hero:not(.hero--vote):not(.hero--gallery) .hero__copy {
  width: 0;
  min-width: 100%;
  margin-left: 0;
  margin-right: 0;
}

.hero:not(.hero--vote):not(.hero--gallery) .hero__copy,
.hero:not(.hero--vote):not(.hero--gallery) .hero__copy p {
  text-align: start;
}

.hero--vote {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100cqi * 1152 / 2688);
  padding: 24px;
  overflow: visible;
}

.hero--vote .bleed {
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transform: none;
  object-fit: cover;
  object-position: center center;
}

.hero--vote .hero__content {
  width: 100%;
  text-align: center;
}

.hero--vote + .groups--vote {
  margin-top: 36px;
  margin-bottom: 8px;
}

.hero--vote ~ .cats {
  width: min(var(--content), calc(100% - 48px));
  padding-left: 0;
  padding-right: 0;
}

.bleed {
  position: absolute;
  left: 50%;
  width: 100%;
  height: auto;
  transform: translateX(-50%);
  pointer-events: none;
  user-select: none;
  z-index: 0;
}

.hero .bleed {
  top: 0;
}

.hero__content,
.sheet__inner,
.footer__inner {
  position: relative;
  z-index: 1;
}

.groups {
  position: relative;
  z-index: 4;
}

.hero__en {
  display: table;
  margin: 0 auto 10px;
  padding-bottom: 12px;
  border-bottom: 4px solid var(--line);
  text-align: center;
  font-family: var(--font-en);
  font-weight: 400;
  font-size: clamp(40px, 3.75vw, 72px);
  letter-spacing: 0.01em;
  line-height: 1.05;
  color: var(--blue);
}

.hero__rule {
  display: none;
}

.hero__zh {
  margin: 0;
  text-align: center;
  font-family: var(--font-elle);
  font-weight: 500;
  font-size: clamp(34px, 4vw, 72px);
  line-height: 1.25;
  color: var(--title);
}

.hero__kicker,
.hero__vote {
  margin: 28px 0 0;
  text-align: center;
  font-family: var(--font-elle);
  font-weight: 500;
  line-height: 1.2;
}

.hero__kicker {
  font-size: clamp(28px, 2.4vw, 45px);
  color: var(--orange);
}

.hero__vote {
  margin-top: 36px;
  font-size: clamp(28px, 3.2vw, 56px);
  color: var(--orange);
}

.hero--vote .hero__vote {
  max-width: 18em;
  margin-left: auto;
  margin-right: auto;
}

.hero__copy {
  width: min(760px, 100%);
  margin: 22px auto 0;
  font-size: 21px;
  line-height: 1.7;
  font-weight: 500;
}

.hero__copy p {
  margin: 0 0 18px;
}

.hero__em {
  margin-top: 8px;
  color: var(--blue);
  font-size: clamp(24px, 1.7vw, 33px);
  font-weight: 800;
  line-height: 1.45;
}

.groups {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 28px 40px;
  margin: 8px auto 36px;
  padding: 12px 48px 24px;
}

.hero:not(.hero--vote):not(.hero--gallery) + .groups {
  flex-wrap: nowrap;
  width: min(1040px, calc(100cqi - 96px));
  margin-top: 48px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 0;
  padding-right: 0;
  box-sizing: border-box;
}

.hero:not(.hero--vote):not(.hero--gallery) + .groups .pill {
  flex: 1 1 0;
  width: auto;
  min-width: 0;
  min-height: 58px;
  padding: 10px 28px 10px 68px;
  font-size: clamp(17px, 1.3vw, 21px);
}

.hero:not(.hero--vote):not(.hero--gallery) + .groups .pill__icon {
  width: 70px;
}

.groups--vote {
  gap: 20px 48px;
  margin: 28px auto 0;
  padding: 12px 48px 8px;
}

.pill {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: min(280px, 100%);
  min-height: 48px;
  padding: 8px 24px 8px 58px;
  border: 1.4px solid var(--cyan);
  border-radius: 999px;
  background: #fff;
  box-shadow:
    0 0 0 4px #fff,
    0 0 12px 1px rgba(98, 197, 240, 0.7);
  color: var(--orange);
  font-family: var(--font-elle);
  font-size: clamp(15px, 1.15vw, 18px);
  font-weight: 500;
  line-height: 1.2;
  text-align: center;
}

.pill:hover,
.pill.is-selected {
  box-shadow:
    0 0 0 4px #fff,
    0 0 14px 2px rgba(240, 131, 0, 0.28);
}

.pill__icon {
  position: absolute;
  left: -4px;
  top: 50%;
  width: 58px;
  height: auto;
  transform: translateY(-50%);
}

.groups--vote .pill {
  min-width: min(340px, 100%);
  min-height: 58px;
  padding: 10px 28px 10px 68px;
  font-size: clamp(17px, 1.3vw, 21px);
  box-shadow:
    0 0 0 4px rgba(255, 255, 255, 0.92),
    0 0 12px 1px rgba(98, 197, 240, 0.75);
}

.groups--vote .pill__icon {
  left: -6px;
  width: 70px;
}

.sheet {
  position: relative;
  z-index: 1;
  padding: 28px 24px 230px;
  overflow: visible;
}

.sheet > .bleed {
  z-index: 0;
  pointer-events: none;
}

.sheet__inner {
  width: min(var(--content), 100%);
  margin: 0 auto;
}

.bleed--hex {
  top: -40px;
}

.page--home .sheet,
.page--form .sheet {
  min-height: calc(100cqi * 1520 / 2688);
  padding-bottom: clamp(230px, 32cqi, 360px);
}

.bleed--end {
  bottom: 0;
  top: auto;
  left: 0;
  width: 100%;
  height: clamp(260px, 36cqi, 420px);
  transform: none;
  object-fit: cover;
  object-position: center bottom;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.2) 16%, #000 48%);
  mask-image: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.2) 16%, #000 48%);
}

.acc {
  position: relative;
  width: min(1040px, calc(100cqi - 96px));
  margin: 12px auto 4px;
  box-sizing: border-box;
}

.acc__head {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 108px 1fr 76px;
  align-items: center;
  width: calc(100% - 8px);
  min-height: 86px;
  margin: 0 auto;
  padding: 0 8px 0 0;
  border: 1.4px solid var(--cyan);
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(98, 197, 240, 0.16);
  text-align: left;
}

.acc__head--img {
  display: block;
  width: 100%;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.acc__head--img img {
  display: block;
  width: 100%;
  height: auto;
}

.acc__head--img:hover {
  box-shadow: none;
}

.acc__icon {
  width: 118px;
  height: 118px;
  margin-left: -18px;
  object-fit: contain;
}

.acc__title {
  text-align: center;
  font-family: var(--font-elle);
  font-size: clamp(26px, 2.3vw, 42px);
  font-weight: 500;
  color: var(--blue);
  line-height: 1.2;
}

.acc__chev {
  width: 62px;
  height: 62px;
  justify-self: end;
  border-radius: 50%;
  background: var(--orange);
  display: grid;
  place-items: center;
}

.acc__chev::before {
  content: "";
  width: 12px;
  height: 12px;
  border-right: 3px solid #fff;
  border-bottom: 3px solid #fff;
  transform: translateY(-3px) rotate(45deg);
}

.acc.is-open .acc__chev::before {
  transform: translateY(4px) rotate(225deg);
}

.acc {
  overflow: visible;
}

.acc__panel {
  position: relative;
  z-index: 1;
  margin: -22px 10px 18px;
  padding: 32px 24px 16px;
  border: 1px solid var(--cyan);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.94);
}

.acc__panel p {
  margin: 0 0 14px;
  font-size: 15px;
  line-height: 1.65;
}

.acc__panel ul {
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}

.acc__panel li {
  margin: 0 0 6px;
  font-size: 15px;
  line-height: 1.65;
}

.acc__panel li::before {
  content: "‧ ";
}

.cats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px 20px;
  width: min(var(--content), 100%);
  margin: 8px auto 28px;
  padding: 4px 24px 8px;
  position: relative;
  z-index: 4;
}

.cat {
  min-height: 46px;
  border: 1.5px solid var(--cyan);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--blue);
  font-family: var(--font-hei);
  font-weight: 500;
  font-size: clamp(16px, 1.2vw, 20px);
  letter-spacing: 0.02em;
}

.cat__num {
  font-weight: 300;
  font-size: 1.12em;
}

.cat.is-selected {
  color: var(--orange);
  box-shadow: 0 0 0 4px rgba(240, 131, 0, 0.08);
}

.form-wrap {
  position: relative;
  z-index: 1;
  width: min(var(--content), 100%);
  margin: 0 auto;
  padding: 10px 0 80px;
}

.field {
  margin: 0 0 18px;
}

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

.field label,
.field__label {
  display: block;
  margin: 0 0 6px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
}

.req {
  color: var(--orange);
  font-weight: 700;
}

.control,
.select {
  width: 100%;
  height: 44px;
  padding: 0 14px;
  border: 1px solid var(--cyan);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  font-size: 15px;
  font-weight: 400;
}

.select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--cyan) 50%),
    linear-gradient(135deg, var(--cyan) 50%, transparent 50%);
  background-position: calc(100% - 22px) 50%, calc(100% - 14px) 50%;
  background-size: 8px 8px, 8px 8px;
  background-repeat: no-repeat;
  padding-right: 42px;
}

.control::placeholder {
  color: var(--muted);
  font-weight: 500;
}

textarea.control {
  height: 220px;
  padding-top: 16px;
  resize: vertical;
}

.control:focus,
.select:focus,
.acc__head:focus-visible,
.pill:focus-visible,
.cat:focus-visible,
.text-size__btn:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

.form-title {
  margin: 8px 0 22px;
  color: var(--blue);
  font-family: var(--font-elle);
  font-size: clamp(18px, 1.4vw, 24px);
  font-weight: 500;
  line-height: 1.2;
}

.form-title--sub {
  margin-top: 12px;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.field__label-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.field-legend {
  display: block;
  margin: 0 0 6px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
}

.char-count {
  font-size: 16px;
  font-weight: 500;
  color: var(--muted);
  white-space: nowrap;
}

.field input[readonly] {
  background: #f4f8fb;
  color: #5c6b73;
}

.field textarea.control {
  height: 140px;
}

.form-divider {
  border: 0;
  height: 1px;
  margin: 8px 0 4px;
  background: rgba(98, 197, 240, 0.55);
}

.dropzone {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 108px;
  padding: 18px 16px;
  border: 1.5px dashed var(--cyan);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.9);
  cursor: pointer;
}

.dropzone:hover,
.dropzone:focus-visible,
.dropzone.is-dragover {
  border-style: solid;
  box-shadow: 0 0 0 4px rgba(98, 197, 240, 0.2);
  outline: none;
}

.dropzone.has-file {
  border-style: solid;
}

.dropzone--image {
  min-height: 120px;
}

.dropzone__input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.dropzone__body {
  position: relative;
  z-index: 1;
  max-width: 460px;
  pointer-events: none;
  text-align: center;
}

.dropzone__title {
  margin: 0;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.5;
}

.dropzone__browse {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.dropzone__hint,
.dropzone__file {
  margin: 8px 0 0;
  font-size: 15px;
  line-height: 1.5;
}

.dropzone__hint {
  color: var(--muted);
}

.dropzone__file {
  color: var(--blue);
  font-weight: 700;
  word-break: break-all;
}

.dropzone__preview {
  display: block;
  max-width: min(240px, 100%);
  max-height: 140px;
  margin: 16px auto 0;
  object-fit: cover;
  border: 1px solid var(--cyan);
  border-radius: 10px;
}

.form-actions,
.submit-success__actions {
  display: flex;
  justify-content: center;
  padding-top: 8px;
}

.btn-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 148px;
  min-height: 42px;
  padding: 8px 24px;
  border: 0;
  border-radius: 999px;
  background: var(--orange);
  color: #fff;
  font-family: var(--font-elle);
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(240, 131, 0, 0.28);
}

.btn-submit:hover {
  filter: brightness(1.05);
}

.btn-submit--ghost {
  background: #fff;
  color: var(--blue);
  border: 1.5px solid var(--cyan);
  box-shadow: none;
}

.submit-success {
  position: relative;
  z-index: 2;
  width: min(760px, calc(100% - 48px));
  margin: 12px auto 72px;
}

.submit-success[hidden] {
  display: none !important;
}

.submit-success__card {
  padding: 48px 40px 40px;
  border: 1.5px solid var(--cyan);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.96);
  text-align: center;
  box-shadow: 0 12px 28px rgba(98, 197, 240, 0.16);
}

.submit-success__icon {
  display: inline-grid;
  place-items: center;
  width: 68px;
  height: 68px;
  margin-bottom: 16px;
  border-radius: 50%;
  background: var(--orange);
  color: #fff;
  font-size: 32px;
  font-weight: 700;
}

.submit-success__card h2 {
  margin: 0 0 10px;
  color: var(--blue);
  font-family: var(--font-elle);
  font-size: 36px;
  font-weight: 500;
}

.submit-success__lead,
.submit-success__note {
  margin: 0 0 22px;
  font-size: 18px;
  line-height: 1.7;
}

.submit-success__meta {
  display: grid;
  gap: 12px;
  margin: 0 0 22px;
  padding: 18px 20px;
  border: 1px solid rgba(98, 197, 240, 0.7);
  border-radius: 16px;
  text-align: left;
}

.submit-success__meta div {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 12px;
  align-items: baseline;
}

.submit-success__meta dt,
.submit-success__meta dd {
  margin: 0;
}

.submit-success__meta dt {
  font-size: 15px;
  font-weight: 700;
  color: var(--muted);
}

.submit-success__meta dd {
  font-size: 18px;
  font-weight: 700;
  word-break: break-word;
}

.submit-success__actions {
  justify-content: center;
}

.note {
  margin: 4px 0 28px;
  font-size: 15px;
  line-height: 1.65;
  font-weight: 500;
}

.footer {
  position: relative;
  z-index: 2;
  padding: 0 36px 0;
  background: transparent;
}

.sheet + .footer,
.sheet + .submit-success[hidden] + .footer,
.gallery-sheet + .footer,
.gallery-sheet + .submit-success[hidden] + .footer {
  margin-top: -168px;
}

.page.is-vote-success .groups,
.page.is-vote-success .cats,
.page.is-vote-success .gallery-sheet,
.page.is-vote-success .hero__vote {
  display: none;
}

.page.is-vote-success .hero--gallery {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100cqi * 768 / 1574);
  padding: 72px 24px;
}

.page.is-vote-success .hero__content {
  width: 100%;
}

.page.is-vote-success .submit-success {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 280px;
  margin: 36px auto 56px;
}

.page.is-vote-success .submit-success__actions {
  justify-content: center;
}

.page.is-vote-success .footer {
  container-type: inline-size;
  margin-top: 0;
  padding: 0 0 28px;
  background: #fff;
}

.page.is-vote-success .footer::before {
  content: "";
  display: block;
  width: 100%;
  height: clamp(260px, 36cqi, 420px);
  background: url("assets/d1/bg-gallery-end.jpg") center bottom / cover no-repeat;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.2) 16%, #000 48%);
  mask-image: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.2) 16%, #000 48%);
}

.page.is-vote-success .footer__links {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(clamp(260px, 36cqi, 420px) - 76px);
  margin-top: 0;
  padding-top: 0;
}

.page.is-vote-success .footer__meta {
  margin-top: 0;
  margin-left: 0;
  margin-right: 0;
  background: #fff;
}

.footer__links {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 0;
  margin: 0;
  padding: 20px 0 0;
  font-size: 17px;
  font-weight: 500;
}

.footer__links .sep {
  margin: 0 18px;
  color: #7d878b;
  font-weight: 400;
  line-height: 1;
}

.footer__links a:hover {
  color: var(--blue);
}

.footer__meta {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: end;
  gap: 16px;
  margin-top: 32px;
  margin-left: -36px;
  margin-right: -36px;
  padding: 16px 36px 20px;
  background: #fff;
}

.footer__copy {
  grid-column: 2;
  margin: 0;
  text-align: center;
  font-size: 16px;
  font-weight: 500;
}

.footer__rev::before {
  content: "\3000\3000";
}

.footer__marks {
  grid-column: 3;
  justify-self: end;
  display: flex;
  align-items: flex-end;
  gap: 14px;
}

.footer__marks img {
  height: 56px;
  width: auto;
}

.footer__marks img:first-child {
  height: 22px;
  margin-bottom: 4px;
}

@media (max-width: 1100px) {
  .hero {
    padding-top: 48px;
  }

  .hero:not(.hero--vote):not(.hero--gallery) {
    padding: 24px;
  }

  .hero--vote {
    min-height: calc(100cqi * 1152 / 2688);
    padding: 24px;
  }

  .groups--vote {
    margin-top: 12px;
  }

  .acc__panel {
    padding: 36px 22px 16px;
  }

  .acc__icon {
    width: 84px;
    height: 84px;
    margin-left: -8px;
  }

  .acc__head {
    grid-template-columns: 76px 1fr 58px;
    min-height: 72px;
  }

  .acc__head--img {
    display: block;
    min-height: 0;
    grid-template-columns: none;
  }

  .acc__chev {
    width: 48px;
    height: 48px;
  }

  .field-row,
  .submit-success__meta div {
    grid-template-columns: 1fr;
  }

  .form-actions {
    justify-content: center;
  }

  .footer__meta {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .footer__copy,
  .footer__marks {
    grid-column: auto;
  }

  .footer__rev {
    display: block;
  }

  .footer__rev::before {
    content: none;
  }

  .footer__marks {
    justify-self: center;
  }
}

/* Gallery / voting area */
.hero--gallery {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: calc(100cqi * 768 / 1574);
  padding: clamp(72px, 6vw, 110px) 24px 36px;
  overflow: visible;
}

.hero--gallery + .groups--vote {
  flex-wrap: nowrap;
  width: min(100%, 880px);
  margin-top: calc(100cqi * -0.045);
  padding-top: 0;
}

.hero--gallery .hero__vote {
  margin-top: clamp(40px, 3.6vw, 70px);
  font-size: clamp(40px, 4vw, 77px);
}

.hero--gallery .groups--vote {
  flex-wrap: nowrap;
  width: min(100%, 880px);
  margin: auto auto 0;
  padding: 16px 8px 0;
}

.hero--gallery .groups--vote .pill {
  flex: 0 1 400px;
  min-width: 0;
  max-width: 400px;
  width: auto;
}

.page--gallery .cat {
  min-height: 48px;
  font-size: clamp(16px, 1.2vw, 20px);
}

.hero--gallery .bleed {
  top: 0;
  left: 0;
  width: 100%;
  height: auto;
  transform: none;
  object-fit: contain;
  object-position: center top;
}

.page--gallery .cats {
  width: min(var(--content), calc(100% - 48px));
  margin-top: 22px;
  padding-left: 0;
  padding-right: 0;
}

@media (max-width: 1100px) {
  .hero--gallery {
    padding: 48px 16px 36px;
  }

  .hero--gallery .hero__vote {
    margin-top: 18px;
    font-size: clamp(32px, 4.2vw, 48px);
  }
}

.gallery-sheet {
  position: relative;
  z-index: 1;
  padding: 12px 24px 300px;
  overflow: visible;
}

.page--gallery .gallery-sheet {
  min-height: calc(100cqi * 1086 / 1920);
  padding-bottom: clamp(230px, 32cqi, 360px);
}

.gallery-sheet > .bleed {
  z-index: 0;
  pointer-events: none;
}


.gallery-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 36px 28px;
  width: min(var(--content), 100%);
  margin: 0 auto;
}

.entry__media {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  padding: 0;
  border: 0;
  border-radius: 8px;
  overflow: hidden;
  background: #1a1a1a;
  cursor: pointer;
}

.entry__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.55;
}

.entry__play {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 0 0 4px rgba(98, 197, 240, 0.55);
}

.entry__play::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 54%;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 12px 0 12px 20px;
  border-color: transparent transparent transparent var(--blue);
  transform: translate(-50%, -50%);
}

.entry__school,
.entry__title,
.voted-item__school,
.voted-item__title {
  margin: 8px 0 0;
  text-align: center;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
}

.entry__title,
.voted-item__title {
  margin-top: 4px;
  font-weight: 500;
  color: var(--muted);
}

.entry__school,
.entry__title {
  text-align: start;
  font-weight: 700;
  color: inherit;
}

.entry.is-voted .entry__media {
  outline: 3px solid var(--orange);
  outline-offset: 2px;
}

.gallery-empty {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--muted);
  font-size: 15px;
}

.vote-dock {
  position: sticky;
  bottom: 28px;
  z-index: 5;
  display: flex;
  justify-content: center;
  pointer-events: none;
  margin-top: -260px;
  padding: 0 24px 12px;
}

.vote-dock + .footer {
  margin-top: 24px;
}

.vote-dock__btn {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  gap: 16px;
  min-height: 52px;
  padding: 8px 22px 8px 16px;
  border: 1.5px solid var(--cyan);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 0 12px rgba(98, 197, 240, 0.4);
  color: var(--blue);
  font-family: var(--font-elle);
  font-size: clamp(15px, 1.2vw, 20px);
}

.vote-dock__icon {
  width: 44px;
  height: 44px;
}

.vote-dock__count {
  color: var(--orange);
  font-size: clamp(18px, 1.8vw, 28px);
  font-weight: 700;
  line-height: 1;
}

.voted-panel {
  position: relative;
  z-index: 1;
  width: min(var(--content), 100%);
  margin: 8px auto 0;
  padding: 36px 40px 28px;
  border: 1.5px solid var(--cyan);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 12px 28px rgba(98, 197, 240, 0.14);
}

.voted-panel__title {
  margin: 0 0 24px;
  text-align: center;
  color: var(--orange);
  font-family: var(--font-elle);
  font-size: clamp(22px, 2vw, 32px);
  font-weight: 500;
}

.voted-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.voted-item {
  display: grid;
  grid-template-columns: 48px 160px 1fr 56px;
  gap: 18px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid rgba(98, 197, 240, 0.35);
}

.voted-item:last-child {
  border-bottom: 0;
}

.voted-item__num {
  font-size: 28px;
  font-weight: 700;
  color: var(--blue);
}

.voted-item__thumb {
  width: 160px;
  height: 90px;
  object-fit: cover;
  border-radius: 8px;
  background: #222;
}

.voted-item__copy {
  text-align: left;
}

.voted-item__school,
.voted-item__title {
  text-align: left;
}

.voted-item__remove {
  border: 0;
  background: transparent;
  color: #6b7780;
  padding: 8px;
}

.voted-item__remove:hover {
  color: var(--orange);
}

.voted-empty {
  text-align: center;
  color: var(--muted);
  font-size: 18px;
}

.voted-actions {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  gap: 48px;
  width: min(var(--content), 100%);
  margin: 28px auto 0;
}

.pill--action {
  min-width: 180px;
  min-height: 58px;
  padding: 10px 32px;
  font-size: clamp(17px, 1.3vw, 21px);
  color: var(--blue);
  cursor: pointer;
}

.pill--confirm {
  color: var(--blue);
}

body.modal-open {
  overflow: hidden;
}

.video-modal {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow-y: auto;
  padding: 72px 24px 40px;
}

.video-modal[hidden] {
  display: none !important;
}

.video-modal__backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
}

.video-modal__dialog {
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
  width: min(980px, 100%);
  margin: auto;
  background: transparent;
}

.video-modal__close {
  position: absolute;
  top: -52px;
  right: 0;
  z-index: 2;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #fff;
  font-size: 40px;
  line-height: 1;
  box-shadow: none;
}

.video-modal__player {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #111;
  border-radius: 6px;
}

.video-modal__poster,
.video-modal__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-modal__play {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 84px;
  height: 84px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 0 0 5px rgba(98, 197, 240, 0.55);
}

.video-modal__play span {
  display: block;
  width: 0;
  height: 0;
  margin: 0 auto;
  border-style: solid;
  border-width: 16px 0 16px 26px;
  border-color: transparent transparent transparent var(--blue);
  transform: translateX(4px);
}

.video-modal__body {
  position: relative;
  margin-top: 4px;
  padding: 18px 8px 12px;
  background: transparent;
  color: #fff;
}

.video-modal__heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.video-modal__names {
  min-width: 0;
}

.video-modal__school,
.video-modal__title {
  margin: 0;
  font-family: var(--font-elle);
  font-weight: 700;
  font-size: clamp(18px, 1.6vw, 24px);
  line-height: 1.3;
}

.video-modal__title {
  margin-top: 2px;
}

.video-modal__desc {
  margin: 12px 0 18px;
  font-size: 14px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.92);
}

.video-modal__hint {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: fit-content;
  margin: 0 auto;
  min-height: 44px;
  padding: 8px 24px;
  border-radius: 999px;
  background: #fff;
  color: var(--blue);
  font-family: var(--font-elle);
  font-weight: 700;
  font-size: 14px;
  pointer-events: none;
  user-select: none;
}

.video-modal__hint .heart {
  width: 1.25em;
  height: auto;
  display: inline-block;
  vertical-align: -0.2em;
}

.video-modal__heart {
  position: relative;
  flex: 0 0 auto;
  z-index: 3;
  width: 52px;
  aspect-ratio: 654 / 561;
  height: auto;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  filter: none;
}

.video-modal__heart img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  pointer-events: none;
}

.video-modal__heart img[hidden] {
  display: none !important;
}

.video-modal__heart:hover,
.video-modal__heart:focus-visible {
  transform: scale(1.06);
  outline: none;
}

.video-modal__heart.is-voted {
  filter: none;
}

@media (max-width: 1100px) {
  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .voted-item {
    grid-template-columns: 36px 120px 1fr 48px;
  }
}

@media (max-width: 760px) {
  .header {
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 16px 0;
  }

  .utils {
    font-size: 15px;
  }

  .groups {
    gap: 28px 16px;
  }

  .hero:not(.hero--vote):not(.hero--gallery) + .groups {
    flex-wrap: nowrap;
    gap: 12px;
    width: min(1040px, calc(100cqi - 32px));
  }

  .hero:not(.hero--vote):not(.hero--gallery) + .groups .pill {
    width: auto;
    min-width: 0;
    flex: 1 1 0;
    min-height: 52px;
    padding: 8px 14px 8px 48px;
    font-size: 15px;
  }

  .hero:not(.hero--vote):not(.hero--gallery) + .groups .pill__icon {
    width: 50px;
  }

  .acc {
    width: min(1040px, calc(100cqi - 32px));
  }

  .pill {
    width: 100%;
    font-size: 15px;
  }

  .groups--vote .pill {
    min-height: 52px;
    padding: 8px 14px 8px 48px;
  }

  .groups--vote .pill__icon {
    width: 50px;
  }

  .cats,
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .acc__panel p,
  .acc__panel li,
  .field label,
  .field__label,
  .control,
  .select,
  .note {
    font-size: 15px;
  }

  .sheet {
    padding-bottom: 200px;
  }

  .gallery-sheet {
    padding-bottom: 220px;
  }

  .sheet + .footer,
  .sheet + .submit-success[hidden] + .footer,
  .gallery-sheet + .footer,
  .gallery-sheet + .submit-success[hidden] + .footer {
    margin-top: -120px;
  }

  .vote-dock {
    margin-top: -180px;
  }

  .footer__links {
    font-size: 16px;
    gap: 6px 0;
  }

  .footer__links .sep {
    margin: 0 8px;
  }

  .page.is-vote-success .hero--gallery {
    min-height: calc(100cqi * 768 / 1574);
    padding: 36px 16px;
  }

  .hero--gallery {
    display: block;
    min-height: 0;
    padding: 28px 16px 12px;
  }

  .hero--gallery + .groups--vote {
    flex-wrap: wrap;
    width: 100%;
    margin-top: calc(100cqi * -0.06);
  }

  .hero--gallery .groups--vote .pill {
    flex: 1 1 100%;
    max-width: none;
    width: 100%;
  }

  .hero--gallery .hero__vote {
    margin-top: 20px;
    font-size: 36px;
  }

  .page.is-vote-success .footer__links {
    top: calc(clamp(260px, 36cqi, 420px) - 88px);
  }

  .voted-item {
    grid-template-columns: 28px 1fr 40px;
  }

  .voted-item__thumb {
    display: none;
  }

  .voted-actions {
    flex-direction: column;
    gap: 16px;
  }

  .video-modal__heart {
    width: 44px;
  }

  .video-modal__school,
  .video-modal__title {
    font-size: 16px;
  }

  .video-modal__close {
    right: 0;
    top: -44px;
  }
}
