* {
  box-sizing: border-box;
}

html {
  height: 100%;
  background: #210000;
  overscroll-behavior-y: none;
}

body {
  margin: 0;
  min-height: 100%;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: #210000;
  color: #1f2937;
  overscroll-behavior-y: none;
}

body.home-body {
  background: #b89b75;
  color: #5d2d0c;
}

.home-page {
  position: relative;
  width: 100%;
  max-width: 750px;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0 auto;
  overflow: hidden;
  background: #f7e5ae;
}

.home-kv {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: inherit;
  overflow: hidden;
  background: #f7e5ae;
}

.home-kv::before {
  content: none;
}

.home-kv-layer {
  position: absolute;
  display: block;
  max-width: none;
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
}

.home-kv-bg {
  z-index: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: fill;
}

.home-kv-water {
  z-index: 2;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: fill;
}

.home-kv-petals {
  z-index: 8;
  top: 43.4%;
  right: 0;
  width: 29.2%;
  height: 56.3%;
  object-fit: fill;
  opacity: 0.92;
}

.home-kv-logo {
  z-index: 5;
  top: 3.8%;
  left: 6.4%;
  width: 17.2%;
}

.home-kv-title {
  z-index: 6;
  top: 1.7%;
  left: 50%;
  width: 76.5%;
  transform: translateX(-50%);
}

.home-kv-subtitle {
  z-index: 6;
  top: 27.3%;
  left: 50%;
  width: 58%;
  transform: translateX(-50%);
}

.home-kv-registration {
  position: absolute;
  z-index: 7;
  top: 31.55%;
  left: 50%;
  display: flex;
  width: 34.2%;
  flex-direction: column;
  align-items: center;
  gap: calc(var(--design-w) * 9 / 750);
  transform: translateX(-50%);
}

.home-kv-registration img {
  display: block;
  width: 100%;
}

.home-kv-deadline {
  display: block;
  width: max-content;
  max-width: calc(var(--design-w) * 360 / 750);
  color: #eebf77;
  font-size: calc(var(--design-w) * 25 / 750);
  font-weight: 500;
  line-height: 1.25;
  text-align: center;
  white-space: nowrap;
}

.home-kv-moment {
  z-index: 5;
  top: 40.85%;
  left: 50%;
  width: 68.4%;
  transform: translateX(-50%);
}

.home-kv-reflection-soft {
  z-index: 3;
  top: 78.8%;
  left: 50%;
  width: 86.3%;
  transform: translateX(-50%);
  opacity: 0.78;
}

.home-kv-reflection {
  z-index: 4;
  top: 75.5%;
  left: 50%;
  width: 95.9%;
  transform: translateX(-50%);
}

.home-kv-products {
  z-index: 9;
  left: 3.0%;
  bottom: 4.4%;
  width: 40%;
}

.home-kv-no-minors {
  z-index: 10;
  left: 5.1%;
  bottom: calc(1.45% + env(safe-area-inset-bottom));
  width: 24.1%;
}

.home-quick-links {
  position: absolute;
  z-index: 11;
  right: 3.2%;
  bottom: calc(4.55% + env(safe-area-inset-bottom));
  display: flex;
  width: 38.5%;
  flex-direction: column;
  align-items: center;
  gap: calc(var(--design-w) * 21 / 750);
}

.home-quick-links a {
  display: inline-flex;
  width: 100%;
  aspect-ratio: 867 / 216;
  align-items: center;
  justify-content: center;
  background: url('/assets/home-kv-v2/action-button.png') center / 100% 100% no-repeat;
  line-height: 1;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  transition: filter 120ms ease, transform 120ms ease;
}

.home-quick-links a img {
  display: block;
  width: 43.6%;
  pointer-events: none;
}

.home-quick-links a picture {
  display: flex;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
}

.home-quick-links a:nth-child(2) img {
  width: 42.6%;
}

.home-quick-links .home-rules-text {
  width: auto;
  min-width: calc(var(--design-w) * 226 / 750);
  aspect-ratio: auto;
  margin-top: calc(var(--design-w) * -1 / 750);
  background: transparent;
  color: #cf8d31;
  font-size: calc(var(--design-w) * 30 / 750);
  font-weight: 600;
  line-height: 1.1;
  white-space: nowrap;
}

.home-quick-links .home-rules-text:hover,
.home-quick-links .home-rules-text:focus {
  color: #cf8d31;
}

.home-quick-links a:active {
  filter: brightness(0.96);
  transform: scale(0.985);
}

.home-quick-links .home-rules-text:active {
  filter: brightness(0.9);
  transform: none;
}

.home-quick-links a:focus-visible {
  outline: 2px solid rgba(130, 72, 12, 0.82);
  outline-offset: 3px;
}

.registration-notice-modal {
  position: fixed;
  z-index: 1000;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.registration-notice-modal.hidden {
  display: none;
}

.registration-notice-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(33, 0, 0, 0.48);
}

.registration-notice-panel {
  position: relative;
  width: min(78vw, 360px);
  padding: 28px 24px 22px;
  border: 1px solid rgba(255, 235, 181, 0.72);
  border-radius: 18px;
  background: linear-gradient(180deg, #fff7dd 0%, #f8d485 100%);
  box-shadow: 0 18px 48px rgba(55, 20, 0, 0.34);
  color: #8d4a05;
  text-align: center;
}

.registration-notice-text {
  margin: 0;
  color: #8d4a05;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.45;
}

.registration-notice-button {
  display: inline-flex;
  min-width: 116px;
  height: 42px;
  margin-top: 20px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, #c77d16 0%, #eca72d 100%);
  color: #fff;
  font-size: 17px;
  font-weight: 700;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

body.rules-body {
  background: #f6f6f6;
  color: #333;
}

.rules-page-mobile {
  width: 100%;
  max-width: 750px;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0 auto;
  border-right: 1px solid #d9d9d9;
  border-left: 1px solid #d9d9d9;
  background: #fff;
}

.rules-content {
  padding: 24px clamp(20px, 5vw, 48px) calc(118px + env(safe-area-inset-bottom));
}

.rules-section {
  padding: 20px 0;
  border-bottom: 1px solid #eeeeee;
}

.rules-section:first-child {
  padding-top: 0;
}

.rules-section:last-child {
  border-bottom: 0;
}

.rules-section h2 {
  margin: 0 0 12px;
  color: #333;
  font-size: clamp(18px, 4vw, 24px);
  font-weight: 800;
  line-height: 1.5;
}

.rules-section ol {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0;
  padding-left: 1.35em;
}

.rules-section li,
.prize-list p {
  margin: 0;
  color: #444;
  font-size: clamp(15px, 3.4vw, 18px);
  font-weight: 400;
  line-height: 1.85;
  text-align: justify;
}

.prize-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.prize-list strong {
  color: #333;
  font-weight: 800;
}

.rules-fixed-actions {
  position: sticky;
  bottom: 0;
  display: flex;
  padding: 14px clamp(20px, 5vw, 48px) calc(14px + env(safe-area-inset-bottom));
  border-top: 1px solid #eeeeee;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
}

.rules-primary-action {
  display: inline-flex;
  width: 100%;
  min-height: 58px;
  align-items: center;
  justify-content: center;
  border: 2px solid #858585;
  border-radius: 16px;
  background: #fff;
  color: #333;
  font-size: 20px;
  font-weight: 700;
  text-decoration: none;
}

.rules-primary-action:active {
  transform: scale(0.99);
}

body.submit-body {
  background: #f6f6f6;
  color: #333;
}

.submit-page-mobile {
  display: flex;
  width: 100%;
  max-width: 750px;
  min-height: 100vh;
  min-height: 100dvh;
  flex-direction: column;
  margin: 0 auto;
  border-right: 1px solid #d9d9d9;
  border-left: 1px solid #d9d9d9;
  background: #fff;
}

.submit-form-mobile {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 0;
}

.submit-form-content {
  flex: 1;
  padding: clamp(34px, 6vw, 52px) clamp(24px, 7vw, 56px) 18px;
}

.submit-section {
  display: flex;
  flex-direction: column;
  gap: clamp(22px, 4.2vw, 32px);
}

.submit-section + .submit-section {
  margin-top: clamp(48px, 8vw, 70px);
}

.submit-section h2 {
  margin: 0;
  color: #333;
  font-size: clamp(26px, 5.2vw, 36px);
  font-weight: 500;
  line-height: 1.25;
}

.submit-field-row {
  display: grid;
  align-items: center;
  gap: clamp(16px, 3.5vw, 28px);
  grid-template-columns: clamp(116px, 24vw, 150px) minmax(0, 1fr);
  font-size: clamp(17px, 3.5vw, 26px);
  font-weight: 400;
  line-height: 1.2;
}

.submit-field-row span {
  color: #333;
  text-align: right;
  white-space: nowrap;
}

.submit-field-row input {
  width: 100%;
  height: clamp(48px, 9vw, 68px);
  border: 0;
  border-radius: 0;
  padding: 0 clamp(14px, 3vw, 22px);
  background: #f1f1f1;
  color: #333;
  font-size: clamp(17px, 3.5vw, 26px);
  font-weight: 400;
  outline: none;
}

.submit-field-row input::placeholder {
  color: #8f8f8f;
}

.submit-field-row input:focus {
  border-color: transparent;
  box-shadow: inset 0 0 0 2px rgba(8, 168, 255, 0.45);
}

.submit-helper,
.submit-notes {
  display: grid;
  grid-template-columns: clamp(116px, 24vw, 150px) minmax(0, 1fr);
  gap: clamp(16px, 3.5vw, 28px);
  margin: -6px 0 0;
  color: #9b9b9b;
  font-size: clamp(14px, 3vw, 22px);
  font-weight: 600;
  line-height: 1.7;
}

.helper-icon {
  display: inline-flex;
  justify-self: end;
  width: clamp(22px, 4vw, 30px);
  height: clamp(22px, 4vw, 30px);
  align-items: center;
  justify-content: center;
  color: #111;
}

.helper-icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.submit-notes {
  align-items: start;
  margin-top: -2px;
}

.submit-notes ol {
  margin: 0;
  padding-left: 0;
  list-style-position: inside;
}

.submit-notes li {
  margin: 0;
  color: #9b9b9b;
  text-align: left;
}

.submit-bottom-actions {
  display: flex;
  justify-content: center;
  flex-shrink: 0;
  padding: 18px clamp(24px, 7vw, 56px) calc(22px + env(safe-area-inset-bottom));
}

.submit-primary-action {
  width: min(326px, 100%);
  min-height: clamp(58px, 10vw, 74px);
  margin-top: 0;
  border: 2px solid #858585;
  border-radius: 16px;
  padding: 0 18px;
  background: #fff;
  color: #333;
  font-size: clamp(18px, 3.6vw, 26px);
  font-weight: 700;
}

.submit-primary-action:disabled {
  opacity: 0.65;
  border-color: #b6b6b6;
  background: #f5f5f5;
  color: #666;
}

.submit-page-mobile .message {
  margin-top: 22px;
}

@media (max-width: 420px) {
  .submit-form-content {
    padding-right: 18px;
    padding-left: 18px;
  }

  .submit-field-row,
  .submit-helper,
  .submit-notes {
    grid-template-columns: 106px minmax(0, 1fr);
    gap: 12px;
  }
}

body.feedback-body {
  background: #f6f6f6;
  color: #333;
}

.feedback-page-mobile {
  display: flex;
  width: 100%;
  max-width: 750px;
  min-height: 100vh;
  min-height: 100dvh;
  flex-direction: column;
  margin: 0 auto;
  border-right: 1px solid #d9d9d9;
  border-left: 1px solid #d9d9d9;
  background: #fff;
}

.feedback-content {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  padding: clamp(260px, 32dvh, 420px) clamp(24px, 7vw, 56px) 0;
  text-align: center;
}

.feedback-success-icon {
  width: clamp(150px, 28vw, 212px);
  height: clamp(150px, 28vw, 212px);
  color: #898b8b;
}

.feedback-success-icon svg {
  width: 100%;
  height: 100%;
}

.feedback-success-icon circle {
  fill: currentColor;
}

.feedback-success-icon path {
  fill: none;
  stroke: #fff;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 13;
}

.feedback-content h2 {
  margin: clamp(74px, 9vw, 86px) 0 0;
  color: #333;
  font-size: clamp(26px, 5.2vw, 36px);
  font-weight: 800;
  line-height: 1.2;
}

.feedback-copy {
  margin-top: clamp(170px, 19dvh, 230px);
  color: #333;
  font-size: clamp(17px, 3.6vw, 26px);
  font-weight: 500;
  line-height: 1.55;
  text-align: left;
}

.feedback-copy p {
  margin: 0;
}

.feedback-time {
  margin: clamp(28px, 4vw, 36px) 0 0;
  color: #a3a3a3;
  font-size: clamp(16px, 3.2vw, 24px);
  font-weight: 600;
  line-height: 1.4;
}

.feedback-bottom-actions {
  display: flex;
  justify-content: center;
  flex-shrink: 0;
  padding: 18px clamp(24px, 7vw, 56px) calc(34px + env(safe-area-inset-bottom));
}

.feedback-rank-btn {
  display: inline-flex;
  width: min(326px, 100%);
  min-height: clamp(58px, 10vw, 74px);
  align-items: center;
  justify-content: center;
  border: 2px solid #858585;
  border-radius: 16px;
  background: #fff;
  color: #333;
  font-size: clamp(18px, 3.6vw, 26px);
  font-weight: 700;
  text-decoration: none;
}

.feedback-rank-btn:active {
  transform: scale(0.99);
}

@media (max-height: 760px) {
  .feedback-content {
    padding-top: 150px;
  }

  .feedback-content h2 {
    margin-top: 48px;
  }

  .feedback-copy {
    margin-top: 90px;
  }
}

.page {
  min-height: 100vh;
  padding: 24px 16px;
}

.card {
  max-width: 560px;
  margin: 0 auto;
  background: #ffffff;
  border-radius: 18px;
  padding: 24px 18px;
  box-shadow: 0 12px 40px rgba(84, 104, 255, 0.12);
}

h1 {
  margin: 0 0 10px;
  font-size: 28px;
}

.desc {
  margin: 0 0 22px;
  font-size: 14px;
  line-height: 1.7;
  color: #4b5563;
}

.form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
}

input,
textarea {
  width: 100%;
  border: 1px solid #dbe1f0;
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 15px;
  outline: none;
  background: #fcfdff;
}

input:focus,
textarea:focus {
  border-color: #667cff;
  box-shadow: 0 0 0 3px rgba(102, 124, 255, 0.12);
}


.is-locked,
input[readonly],
textarea[readonly] {
  color: #4b5563;
  background: #f5f7ff;
  cursor: not-allowed;
  -webkit-text-fill-color: #4b5563;
}

button {
  margin-top: 8px;
  border: 0;
  border-radius: 12px;
  padding: 14px 16px;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(90deg, #4f46e5 0%, #7c3aed 100%);
}

button:disabled {
  opacity: 1;
  cursor: not-allowed;
  background: linear-gradient(90deg, #94a3b8 0%, #64748b 100%);
}

.message {
  margin-top: 18px;
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.6;
}

.message.success {
  background: #ecfdf5;
  color: #047857;
}

.message.error {
  background: #fef2f2;
  color: #b91c1c;
}

.hidden {
  display: none;
}

.tips {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px dashed #dbe1f0;
}

.tips h2 {
  margin: 0 0 8px;
  font-size: 16px;
}

.tips ul {
  padding-left: 18px;
  margin: 0;
  color: #4b5563;
  line-height: 1.8;
  font-size: 14px;
}


.admin-link {
  display: inline-block;
  margin-bottom: 10px;
  color: #4338ca;
  font-weight: 700;
  text-decoration: none;
}

.admin-link:hover {
  text-decoration: underline;
}

.page-actions {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 10px;
}

.page-actions-between {
  justify-content: space-between;
  gap: 10px;
}

.ghost-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid #dbe1f0;
  border-radius: 12px;
  color: #4338ca;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  background: #f8faff;
}

.ghost-link:hover,
.ghost-link:focus {
  border-color: #b9c3ff;
  background: #eef2ff;
}

.submit-card h1,
.rules-card h1 {
  font-size: 28px;
}

.rules-card {
  max-width: 640px;
}

.rules-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 18px 0 0;
  padding-left: 22px;
  color: #374151;
  font-size: 15px;
  line-height: 1.8;
}

.rankings-page {
  padding-top: 32px;
  padding-bottom: 32px;
}

.rankings-card {
  max-width: 900px;
}

.ranking-toolbar {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.ranking-tabs {
  display: inline-flex;
  gap: 10px;
  flex-wrap: wrap;
}

.ranking-tab,
.secondary-btn {
  margin-top: 0;
  padding: 12px 18px;
  border-radius: 999px;
  cursor: pointer;
}

.ranking-tab {
  color: #4338ca;
  background: #eef2ff;
}

.ranking-tab.active {
  color: #fff;
  background: linear-gradient(90deg, #4f46e5 0%, #7c3aed 100%);
}

.secondary-btn {
  color: #4338ca;
  background: #eef2ff;
}

.ranking-summary {
  margin-bottom: 16px;
  color: #4b5563;
  font-size: 14px;
}

.ranking-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.ranking-item {
  display: flex;
  gap: 14px;
  align-items: stretch;
  padding: 16px;
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  background: #fcfdff;
}

.ranking-rank {
  display: flex;
  width: 68px;
  min-width: 68px;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  background: #eef2ff;
  color: #4338ca;
  font-size: 20px;
  font-weight: 800;
}

.rank-top-1 {
  background: linear-gradient(180deg, #f59e0b 0%, #f97316 100%);
  color: #fff;
}

.rank-top-2 {
  background: linear-gradient(180deg, #94a3b8 0%, #64748b 100%);
  color: #fff;
}

.rank-top-3 {
  background: linear-gradient(180deg, #fb7185 0%, #e11d48 100%);
  color: #fff;
}

.ranking-main {
  flex: 1;
  min-width: 0;
}

.ranking-head {
  display: flex;
  gap: 12px;
  align-items: center;
}

.ranking-avatar {
  display: flex;
  width: 52px;
  height: 52px;
  min-width: 52px;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 50%;
  background: #e0e7ff;
}

.ranking-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ranking-avatar-fallback {
  color: #4338ca;
  font-weight: 800;
}

.ranking-meta {
  min-width: 0;
}

.ranking-title {
  display: block;
  width: 100%;
  margin-bottom: 6px;
  overflow: hidden;
  color: #111827;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.5;
  text-decoration: none;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ranking-title:hover {
  color: #4338ca;
}

.ranking-author,
.ranking-time {
  color: #6b7280;
  font-size: 13px;
  line-height: 1.7;
}

.ranking-metrics {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.metric-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: #f3f4f6;
  color: #374151;
  font-size: 13px;
  font-weight: 700;
}

.metric-chip-primary {
  background: #ede9fe;
  color: #5b21b6;
}

.metric-icon {
  display: inline-flex;
  width: 18px;
  height: 18px;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.metric-icon svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.empty-state {
  padding: 30px 16px;
  border-radius: 16px;
  text-align: center;
  color: #6b7280;
  background: #f8fafc;
}

@media (max-width: 640px) {
  .ranking-item {
    flex-direction: column;
  }

  .ranking-rank {
    width: 100%;
    min-width: 100%;
    min-height: 52px;
  }
}

.ranking-pager {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 20px;
}

.pager-btn {
  margin-top: 0;
  padding: 10px 18px;
  border-radius: 999px;
  cursor: pointer;
}

.pager-btn:disabled {
  cursor: not-allowed;
}

.pager-info {
  color: #4b5563;
  font-size: 14px;
  font-weight: 700;
}

/* 2026-04-27 design draft restoration */
:root {
  --app-height: 100vh;
  --design-w: 100vw;
  --gold: #ffef74;
  --deep-red: #360504;
  --wine-red: #5d150a;
  --panel: rgba(31, 0, 0, 0.76);
  --gold-line: rgba(255, 233, 113, 0.9);
}

@supports (width: min(100vw, 750px)) {
  :root {
    --design-w: min(100vw, 750px);
  }
}

body.home-body {
  min-height: var(--app-height);
  height: auto;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  background: #b89b75;
  color: #5d2d0c;
  font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

body.submit-body,
body.feedback-body,
body.rules-body,
body.rankings-body {
  min-height: var(--app-height);
  height: auto;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  background: #210000;
  color: var(--gold);
  font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

body.submit-body {
  height: auto;
  min-height: 100vh;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

body.submit-body.submit-keyboard-open {
  padding-bottom: var(--submit-keyboard-gap, 45vh);
}

.wechat-share-image {
  position: absolute;
  left: 0;
  top: 0;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.home-page,
.submit-page-mobile,
.feedback-page-mobile,
.rules-page-mobile,
.rankings-page {
  position: relative;
  width: var(--design-w);
  max-width: 750px;
  margin: 0 auto;
  border: 0;
  overflow: hidden;
  background-color: #260201;
  background-size: 100% 100%;
  background-repeat: no-repeat;
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.5);
  height: var(--app-height);
  min-height: var(--app-height);
}

.home-page {
  height: var(--app-height);
  min-height: calc(var(--design-w) * 1334 / 750);
  height: max(var(--app-height), calc(var(--design-w) * 1334 / 750));
  min-height: max(var(--app-height), calc(var(--design-w) * 1334 / 750));
  background-color: #f7e5ae;
  background-image: none;
  background-size: cover;
}
.submit-page-mobile { background-image: none; }
.feedback-page-mobile { background-image: none; }
.rankings-page { background-image: none; }
.rules-page-mobile { background-image: none; }

.submit-page-mobile {
  height: max(var(--app-height), calc(var(--design-w) * 1334 / 750));
  min-height: max(var(--app-height), calc(var(--design-w) * 1334 / 750));
  background-size: 100% 100%;
}

.feedback-page-mobile,
.rankings-page {
  height: max(var(--app-height), calc(var(--design-w) * 1334 / 750));
  min-height: max(var(--app-height), calc(var(--design-w) * 1334 / 750));
  background-size: 100% 100%;
}

body.rules-body {
  height: auto;
  min-height: var(--app-height);
  overflow-y: auto;
}

.rules-page-mobile {
  height: max(var(--app-height), calc(var(--design-w) * 1768 / 750));
  min-height: max(var(--app-height), calc(var(--design-w) * 1768 / 750));
  background-size: 100% 100%;
}

.design-back-link {
  position: absolute;
  z-index: 6;
  top: calc(var(--design-w) * 52 / 750);
  left: calc(var(--design-w) * 24 / 750);
  width: calc(var(--design-w) * 46 / 750);
  height: calc(var(--design-w) * 62 / 750);
  color: transparent;
  text-decoration: none;
}

.music-toggle {
  position: fixed;
  z-index: 30;
  top: max(18px, calc(var(--design-w) * 42 / 750)) !important;
  right: max(14px, calc((100vw - var(--design-w)) / 2 + var(--design-w) * 28 / 750)) !important;
  bottom: auto !important;
  left: auto !important;
  display: inline-flex;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 239, 116, 0.86);
  border-radius: 50%;
  background: rgba(54, 5, 4, 0.52);
  color: var(--gold);
  cursor: pointer;
  font-family: Georgia, 'Times New Roman', serif;
  line-height: 1;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.22);
  -webkit-tap-highlight-color: transparent;
}

body:not(.home-body) .music-toggle {
  display: none !important;
}

.music-toggle:focus-visible {
  outline: 2px solid #fff2a5;
  outline-offset: 3px;
}

.music-note {
  display: block;
  color: currentColor;
  font-size: 23px;
  font-weight: 700;
  transform: translateY(-1px);
}

.music-toggle.is-paused::after {
  position: absolute;
  width: 24px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  content: "";
  transform: rotate(-42deg);
}

@media (max-width: 520px) {
  .home-quick-links {
    transform: translateX(-16%);
  }

}

@media (max-width: 420px) {
  .music-toggle {
    width: 34px;
    height: 34px;
    top: max(16px, calc(var(--design-w) * 42 / 750)) !important;
  }

  .music-note {
    font-size: 22px;
  }
}

/* Home: keep the supplied visual as the source of truth, expose only hit areas. */
.home-content,
.home-bottom-actions {
  position: static;
  padding: 0;
}
.home-content .brand-hero,
.home-content .event-summary {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}
.home-page .rules-link {
  position: absolute;
  z-index: 3;
  right: calc(var(--design-w) * 64 / 750);
  bottom: calc(var(--design-w) * 48 / 750);
  width: calc(var(--design-w) * 220 / 750);
  height: calc(var(--design-w) * 60 / 750);
  margin: 0;
  color: transparent;
  text-decoration: none;
}
.home-bottom-actions {
  position: absolute;
  z-index: 3;
  right: calc(var(--design-w) * 49 / 750);
  bottom: calc(var(--design-w) * 114 / 750);
  display: flex;
  width: calc(var(--design-w) * 292 / 750);
  flex-direction: column;
  gap: calc(var(--design-w) * 27 / 750);
}
.home-action-btn {
  width: 100%;
  height: calc(var(--design-w) * 74 / 750);
  min-height: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: transparent;
  box-shadow: none;
}

/* Submit page reconstructed from supplied layered artwork. */
.submit-page-mobile {
  isolation: isolate;
  background:
    url('/assets/submit-kv/background.webp') center top / 100% 100% no-repeat,
    #f7e9bd;
}

.submit-decor,
.submit-brand-title,
.submit-panel-art,
.submit-wheel-mark {
  position: absolute;
  display: block;
  max-width: none;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}

.submit-decor-water {
  z-index: 1;
  inset: 0;
  width: 100%;
  height: 100%;
}

.submit-decor-petals {
  z-index: 4;
  right: 0;
  bottom: 0;
  width: 91.5%;
}

.submit-brand-title {
  z-index: 4;
  top: calc(var(--design-w) * 18 / 750);
  right: calc(var(--design-w) * 36 / 750);
  width: calc(var(--design-w) * 164 / 750);
}

.submit-header {
  position: absolute;
  z-index: 8;
  top: calc(var(--design-w) * 58 / 750);
  left: calc(var(--design-w) * 27 / 750);
  display: flex;
  align-items: center;
  gap: calc(var(--design-w) * 16 / 750);
}

.design-back-link {
  position: static;
  display: flex;
  width: calc(var(--design-w) * 23 / 750);
  height: calc(var(--design-w) * 36 / 750);
  align-items: center;
  justify-content: center;
}

.design-back-link img {
  display: block;
  width: 100%;
  height: 100%;
}

.submit-header h1 {
  margin: 0;
  color: #fff;
  font-size: calc(var(--design-w) * 29 / 750);
  font-weight: 400;
  line-height: 1;
}

.submit-form-mobile {
  position: absolute;
  z-index: 5;
  top: calc(var(--design-w) * 143 / 750);
  left: calc(var(--design-w) * 28 / 750);
  width: calc(var(--design-w) * 694 / 750);
  height: calc(var(--design-w) * 1088 / 750);
}

.submit-panel-art {
  z-index: 0;
  inset: 0;
  width: 100%;
  height: 100%;
}

.submit-wheel-mark {
  z-index: 1;
  top: calc(var(--design-w) * 394 / 750);
  left: 50%;
  width: calc(var(--design-w) * 458 / 750);
  opacity: 0.14;
  transform: translateX(-50%);
}

.submit-form-content {
  position: relative;
  z-index: 2;
  display: block;
  height: 100%;
  padding: calc(var(--design-w) * 35 / 750) calc(var(--design-w) * 32 / 750) 0;
}

.submit-section {
  display: block;
}

.submit-section + .submit-section {
  margin-top: calc(var(--design-w) * 34 / 750);
}

.submit-section h2 {
  position: relative;
  display: flex;
  width: fit-content;
  min-width: calc(var(--design-w) * 225 / 750);
  height: calc(var(--design-w) * 54 / 750);
  align-items: center;
  margin: 0 0 calc(var(--design-w) * 30 / 750) calc(var(--design-w) * -43 / 750);
  padding: 0 calc(var(--design-w) * 29 / 750);
  color: #7d1907;
  background: url('/assets/submit-kv/section-label.webp') center / 100% 100% no-repeat;
  font-size: calc(var(--design-w) * 27 / 750);
  font-weight: 700;
  line-height: 1;
}

.submit-field-row {
  display: grid;
  height: calc(var(--design-w) * 43 / 750);
  align-items: center;
  grid-template-columns: calc(var(--design-w) * 130 / 750) 1px minmax(0, 1fr);
  gap: calc(var(--design-w) * 14 / 750);
  margin: 0 0 calc(var(--design-w) * 14 / 750);
  border: 1px solid rgba(255, 239, 160, 0.92);
  border-radius: 999px;
  padding: 0 calc(var(--design-w) * 15 / 750);
  color: #fff1b3;
}

.submit-field-row span {
  color: #fff082;
  font-size: calc(var(--design-w) * 19 / 750);
  font-weight: 700;
  line-height: 1;
  text-align: left;
}

.submit-field-row::after {
  justify-self: center;
  width: 1px;
  height: calc(var(--design-w) * 26 / 750);
  background: rgba(255, 239, 160, 0.9);
  content: "";
}

.submit-field-row input {
  order: 3;
  width: 100%;
  height: 100%;
  min-width: 0;
  border: 0;
  padding: 0;
  background: transparent;
  color: #fff;
  font-size: clamp(16px, calc(var(--design-w) * 19 / 750), 19px);
  font-weight: 500;
  line-height: 1.15;
  outline: 0;
  box-shadow: none;
  -webkit-text-fill-color: #fff;
}

.submit-field-row input::placeholder {
  color: rgba(255, 255, 255, 0.96);
}

.submit-helper,
.submit-notes {
  display: block;
  margin: 0;
  color: #fff;
  font-size: calc(var(--design-w) * 17 / 750);
  font-weight: 500;
  line-height: 1.65;
}

.submit-helper {
  margin-top: calc(var(--design-w) * -3 / 750);
  padding-left: calc(var(--design-w) * 12 / 750);
}

.submit-helper .helper-icon,
.submit-notes .helper-icon {
  display: none;
}

.submit-helper span:last-child::before {
  content: "（备注：";
}

.submit-helper span:last-child::after {
  content: "）";
}

.submit-notes {
  margin-top: calc(var(--design-w) * 20 / 750);
  padding-left: calc(var(--design-w) * 11 / 750);
}

.submit-notes::before {
  display: block;
  margin-bottom: calc(var(--design-w) * 8 / 750);
  content: "备注：";
}

.submit-notes ol {
  margin: 0;
  padding-left: calc(var(--design-w) * 22 / 750);
  list-style-position: outside;
}

.submit-notes li {
  margin-bottom: calc(var(--design-w) * 8 / 750);
  color: #fff;
}

.submit-bottom-actions {
  position: absolute;
  z-index: 3;
  right: 0;
  bottom: calc(var(--design-w) * 112 / 750);
  left: 0;
  display: flex;
  justify-content: center;
}

.submit-primary-action {
  width: calc(var(--design-w) * 472 / 750);
  height: calc(var(--design-w) * 90 / 750);
  min-height: 0;
  border: 0;
  border-radius: 999px;
  background: url('/assets/submit-kv/submit-button.webp') center / 100% 100% no-repeat;
  color: #7d1907;
  font-size: calc(var(--design-w) * 31 / 750);
  font-weight: 700;
  line-height: 1;
  -webkit-tap-highlight-color: transparent;
}

.submit-field-row input:focus {
  box-shadow: none;
}

@media (max-width: 520px) {
  .submit-field-row input {
    width: 142.857%;
    transform: scale(0.7);
    transform-origin: left center;
  }
}

.submit-page-mobile .message {
  position: absolute;
  z-index: 7;
  left: 50%;
  top: 50%;
  right: auto;
  bottom: auto;
  margin: 0;
  min-width: calc(var(--design-w) * 260 / 750);
  max-width: calc(var(--design-w) * 420 / 750);
  padding: calc(var(--design-w) * 14 / 750) calc(var(--design-w) * 24 / 750);
  border: 1px solid rgba(255, 233, 113, .5);
  background: rgba(50, 4, 0, .92);
  color: #fff7bf;
  text-align: center;
  transform: translate(-50%, -50%);
  box-shadow: 0 calc(var(--design-w) * 10 / 750) calc(var(--design-w) * 28 / 750) rgba(0, 0, 0, 0.28);
}

/* Feedback */
/* Feedback page reconstructed from supplied layered artwork. */
.feedback-page-mobile {
  isolation: isolate;
  background:
    url('/assets/feedback-kv/background.webp') center top / 100% 100% no-repeat,
    #f7e9bd;
}

.feedback-decor,
.feedback-brand-title,
.feedback-panel-art,
.feedback-wheel-mark,
.feedback-status-ring,
.feedback-status-mark {
  position: absolute;
  display: block;
  max-width: none;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}

.feedback-decor-water {
  z-index: 1;
  inset: 0;
  width: 100%;
  height: 100%;
}

.feedback-decor-petals {
  z-index: 4;
  right: 0;
  bottom: 0;
  width: 91.5%;
}

.feedback-brand-title {
  z-index: 5;
  top: calc(var(--design-w) * 18 / 750);
  right: calc(var(--design-w) * 36 / 750);
  width: calc(var(--design-w) * 164 / 750);
}

.feedback-header {
  position: absolute;
  z-index: 8;
  top: calc(var(--design-w) * 58 / 750);
  left: calc(var(--design-w) * 27 / 750);
  display: flex;
  align-items: center;
  gap: calc(var(--design-w) * 16 / 750);
}

.feedback-header .design-back-link {
  position: static;
  display: flex;
  width: calc(var(--design-w) * 23 / 750);
  height: calc(var(--design-w) * 36 / 750);
  align-items: center;
  justify-content: center;
}

.feedback-header .design-back-link img {
  display: block;
  width: 100%;
  height: 100%;
}

.feedback-header h1 {
  margin: 0;
  color: #fff;
  font-size: calc(var(--design-w) * 29 / 750);
  font-weight: 400;
  line-height: 1;
}

.feedback-panel-art {
  z-index: 3;
  top: calc(var(--design-w) * 143 / 750);
  left: calc(var(--design-w) * 28 / 750);
  width: calc(var(--design-w) * 694 / 750);
  height: calc(var(--design-w) * 1088 / 750);
}

.feedback-wheel-mark {
  z-index: 4;
  top: calc(var(--design-w) * 548 / 750);
  left: 50%;
  width: calc(var(--design-w) * 470 / 750);
  opacity: 0.15;
  transform: translateX(-50%);
}

.feedback-content,
.feedback-bottom-actions {
  position: absolute;
  z-index: 6;
  inset: 0;
  display: block;
  padding: 0;
  margin: 0;
  text-align: center;
}

.feedback-status-ring {
  top: calc(var(--design-w) * 308 / 750);
  left: 50%;
  width: calc(var(--design-w) * 284 / 750);
  transform: translateX(-50%);
}

.feedback-status-mark {
  left: 50%;
  transform: translateX(-50%);
}

.feedback-success-mark {
  top: calc(var(--design-w) * 365 / 750);
  width: calc(var(--design-w) * 190 / 750);
}

.feedback-fail-mark {
  top: calc(var(--design-w) * 375 / 750);
  display: none;
  width: calc(var(--design-w) * 144 / 750);
}

.feedback-content h2 {
  position: absolute;
  top: calc(var(--design-w) * 660 / 750);
  left: 0;
  width: 100%;
  margin: 0;
  color: #fff082;
  font-size: calc(var(--design-w) * 29 / 750);
  font-weight: 700;
  line-height: 1;
}

.feedback-copy {
  position: absolute;
  top: calc(var(--design-w) * 779 / 750);
  left: 50%;
  width: calc(var(--design-w) * 420 / 750);
  margin: 0;
  color: #fff;
  font-size: calc(var(--design-w) * 24 / 750);
  font-weight: 500;
  line-height: 1.45;
  transform: translateX(-50%);
}

.feedback-copy p {
  margin: 0;
}

.feedback-time {
  position: absolute;
  z-index: 6;
  top: calc(var(--design-w) * 862 / 750);
  left: 0;
  width: 100%;
  margin: 0;
  color: #ffe489;
  font-size: calc(var(--design-w) * 22 / 750);
  font-weight: 500;
  line-height: 1;
  text-align: center;
}

.feedback-rank-btn,
.feedback-home-link {
  position: absolute;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  border: 0;
  appearance: none;
  -webkit-appearance: none;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}

.feedback-rank-btn {
  top: calc(var(--design-w) * 1028 / 750);
  left: 50%;
  width: calc(var(--design-w) * 472 / 750);
  height: calc(var(--design-w) * 90 / 750);
  min-height: 0;
  background: url('/assets/feedback-kv/action-button.webp') center / 100% 100% no-repeat;
  color: #7d1907;
  font-size: calc(var(--design-w) * 31 / 750);
  font-weight: 700;
  transform: translateX(-50%);
}

.feedback-home-link {
  top: calc(var(--design-w) * 1163 / 750);
  left: 50%;
  width: calc(var(--design-w) * 185 / 750);
  color: #fff082;
  font-size: calc(var(--design-w) * 29 / 750);
  font-weight: 400;
  transform: translateX(-50%);
}

.feedback-page-mobile.is-fail .feedback-success-mark {
  display: none;
}

.feedback-page-mobile.is-fail .feedback-fail-mark {
  display: block;
}

.feedback-page-mobile .feedback-rank-btn,
.feedback-page-mobile .feedback-rank-btn:hover,
.feedback-page-mobile .feedback-rank-btn:focus,
.feedback-page-mobile .feedback-rank-btn:active {
  background: url('/assets/feedback-kv/action-button.webp') center / 100% 100% no-repeat !important;
  color: #7d1907 !important;
}

.feedback-page-mobile .feedback-home-link,
.feedback-page-mobile .feedback-home-link:hover,
.feedback-page-mobile .feedback-home-link:focus,
.feedback-page-mobile .feedback-home-link:active {
  background: transparent !important;
  color: #fff082 !important;
}

/* Rules page reconstructed from supplied layered artwork. */
.rules-page-mobile {
  isolation: isolate;
  background:
    url('/assets/rules-kv/background.webp') center top / 100% 100% no-repeat,
    #f7e9bd;
}

.rules-page-mobile::before {
  position: absolute;
  z-index: 3;
  top: calc(var(--design-w) * 144 / 750);
  left: calc(var(--design-w) * 28 / 750);
  width: calc(var(--design-w) * 694 / 750);
  height: calc(var(--design-w) * 1478 / 750);
  border: calc(var(--design-w) * 5 / 750) solid rgba(255, 232, 123, 0.88);
  border-radius: calc(var(--design-w) * 28 / 750);
  background: rgba(216, 155, 74, 0.86);
  content: "";
  pointer-events: none;
}

.rules-decor,
.rules-brand-title,
.rules-products,
.rules-panel-art,
.rules-wheel-mark {
  position: absolute;
  display: block;
  max-width: none;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}

.rules-decor-water {
  z-index: 1;
  inset: 0;
  width: 100%;
  height: 100%;
}

.rules-decor-petals-left {
  z-index: 4;
  left: 0;
  bottom: calc(var(--design-w) * -74 / 750);
  width: 95.3%;
  opacity: 0.38;
}

.rules-decor-petals-right {
  z-index: 4;
  right: 0;
  bottom: calc(var(--design-w) * -118 / 750);
  width: 79%;
  opacity: 0.34;
}

.rules-brand-title {
  z-index: 5;
  top: calc(var(--design-w) * 23 / 750);
  right: calc(var(--design-w) * 38 / 750);
  width: calc(var(--design-w) * 164 / 750);
}

.rules-products {
  z-index: 6;
  right: calc(var(--design-w) * 18 / 750);
  bottom: calc(var(--design-w) * 9 / 750);
  width: calc(var(--design-w) * 196 / 750);
}

.rules-header {
  position: absolute;
  z-index: 8;
  top: calc(var(--design-w) * 61 / 750);
  left: calc(var(--design-w) * 27 / 750);
  display: flex;
  align-items: center;
  gap: calc(var(--design-w) * 16 / 750);
}

.rules-header .design-back-link {
  position: static;
  display: flex;
  width: calc(var(--design-w) * 23 / 750);
  height: calc(var(--design-w) * 36 / 750);
  align-items: center;
  justify-content: center;
}

.rules-header .design-back-link img {
  display: block;
  width: 100%;
  height: 100%;
}

.rules-header h1 {
  margin: 0;
  color: #fff;
  font-size: calc(var(--design-w) * 29 / 750);
  font-weight: 400;
  line-height: 1;
}

.rules-panel-art {
  display: none;
  z-index: 3;
  top: calc(var(--design-w) * 144 / 750);
  left: calc(var(--design-w) * 28 / 750);
  width: calc(var(--design-w) * 694 / 750);
  height: calc(var(--design-w) * 1673 / 750);
}

.rules-wheel-mark {
  z-index: 4;
  top: calc(var(--design-w) * 1051 / 750);
  left: 50%;
  width: calc(var(--design-w) * 462 / 750);
  opacity: 0.1;
  transform: translateX(-50%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 0%, #000 46%, rgba(0, 0, 0, 0.55) 62%, transparent 78%);
  mask-image: radial-gradient(ellipse at center, #000 0%, #000 46%, rgba(0, 0, 0, 0.55) 62%, transparent 78%);
}

.rules-content {
  position: relative;
  z-index: 5;
  width: calc(var(--design-w) * 645 / 750);
  margin: 0 auto;
  padding: calc(var(--design-w) * 177 / 750) 0 calc(var(--design-w) * 16 / 750);
}

.rules-section {
  margin: 0 0 calc(var(--design-w) * 18 / 750);
  padding: 0;
  border: 0;
}

.rules-section h2 {
  display: flex;
  width: fit-content;
  min-width: calc(var(--design-w) * 225 / 750);
  height: calc(var(--design-w) * 54 / 750);
  align-items: center;
  margin: 0 0 calc(var(--design-w) * 12 / 750) calc(var(--design-w) * -40 / 750);
  padding: 0 calc(var(--design-w) * 29 / 750);
  background: url('/assets/rules-kv/label-short.webp') center / 100% 100% no-repeat;
  color: #7d1907;
  font-size: calc(var(--design-w) * 28 / 750);
  font-weight: 700;
  line-height: 1;
}

.rules-section:nth-of-type(3) h2 {
  min-width: calc(var(--design-w) * 372 / 750);
  background-image: url('/assets/rules-kv/label-long.webp');
}

.rules-section ol {
  display: flex;
  flex-direction: column;
  gap: calc(var(--design-w) * 9 / 750);
  margin: 0;
  padding-left: calc(var(--design-w) * 29 / 750);
}

.rules-section li,
.prize-list p {
  margin: 0;
  color: #fff;
  font-size: calc(var(--design-w) * 18 / 750);
  font-weight: 500;
  line-height: 1.58;
  text-align: left;
}

.prize-list {
  display: flex;
  flex-direction: column;
  gap: calc(var(--design-w) * 1 / 750);
  padding-left: calc(var(--design-w) * 18 / 750);
}

.prize-list p::before {
  margin-right: calc(var(--design-w) * 10 / 750);
  color: #fff27c;
  content: "•";
}

.prize-list strong {
  color: #fff;
  font-weight: 500;
}

/* Ranking page reconstructed from supplied layered artwork. */
.rankings-page {
  padding: 0;
  overflow: hidden;
  isolation: isolate;
  background:
    url('/assets/rankings-kv/background.webp') center top / 100% 100% no-repeat,
    #f7e9bd;
}

.rankings-decor,
.rankings-brand-title,
.rankings-panel-art,
.rankings-wheel-mark {
  position: absolute;
  display: block;
  max-width: none;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}

.rankings-decor-water {
  z-index: 1;
  inset: 0;
  width: 100%;
  height: 100%;
}

.rankings-decor-petals {
  z-index: 4;
  right: 0;
  bottom: 0;
  width: 91.5%;
}

.rankings-brand-title {
  z-index: 5;
  top: calc(var(--design-w) * 18 / 750);
  right: calc(var(--design-w) * 36 / 750);
  width: calc(var(--design-w) * 164 / 750);
}

.rankings-header {
  position: absolute;
  z-index: 8;
  top: calc(var(--design-w) * 58 / 750);
  left: calc(var(--design-w) * 27 / 750);
  display: flex;
  align-items: center;
  gap: calc(var(--design-w) * 16 / 750);
}

.rankings-header .design-back-link {
  position: static;
  display: flex;
  width: calc(var(--design-w) * 23 / 750);
  height: calc(var(--design-w) * 36 / 750);
  align-items: center;
  justify-content: center;
}

.rankings-header .design-back-link img {
  display: block;
  width: 100%;
  height: 100%;
}

.rankings-header h1 {
  margin: 0;
  color: #fff;
  font-size: calc(var(--design-w) * 29 / 750);
  font-weight: 400;
  line-height: 1;
}

.rankings-panel-art {
  z-index: 3;
  top: calc(var(--design-w) * 143 / 750);
  left: calc(var(--design-w) * 28 / 750);
  width: calc(var(--design-w) * 694 / 750);
  height: calc(var(--design-w) * 1182 / 750);
}

.rankings-wheel-mark {
  z-index: 4;
  top: calc(var(--design-w) * 551 / 750);
  left: 50%;
  width: calc(var(--design-w) * 470 / 750);
  opacity: 0.15;
  transform: translateX(-50%);
}

.rankings-card {
  position: absolute;
  z-index: 5;
  left: calc(var(--design-w) * 33 / 750);
  top: calc(var(--design-w) * 181 / 750);
  width: calc(var(--design-w) * 684 / 750);
  max-width: none;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  overflow: hidden;
}
.rankings-card .page-actions,
.rankings-card .desc,
.ranking-toolbar,
.ranking-summary,
#rankingMessage {
  display: none !important;
}
.rankings-card h1 {
  position: absolute;
  left: calc(var(--design-w) * 54 / 750);
  top: calc(var(--design-w) * -102 / 750);
  margin: 0;
  color: var(--gold);
  font-size: calc(var(--design-w) * 31 / 750);
  font-weight: 500;
  white-space: nowrap;
}
.design-ranking-table {
  min-height: 100%;
  background: transparent;
}
.ranking-list {
  position: relative;
  z-index: 1;
  height: 100%;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.ranking-list::-webkit-scrollbar {
  display: none;
}
.design-ranking-body {
  position: relative;
  z-index: 1;
}
.design-ranking-row {
  display: grid;
  grid-template-columns: 15% 34% 34% 17%;
  align-items: center;
  min-height: calc(var(--design-w) * 42 / 750);
  color: #fff;
  font-size: calc(var(--design-w) * 21 / 750);
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
}
.design-ranking-row > div {
  overflow: hidden;
  padding: 0 calc(var(--design-w) * 5 / 750);
  text-overflow: ellipsis;
  white-space: nowrap;
}
.design-ranking-rank {
  font-size: calc(var(--design-w) * 20 / 750);
  font-weight: 600;
  letter-spacing: 0;
}
.design-ranking-head {
  position: sticky;
  z-index: 2;
  top: 0;
  min-height: calc(var(--design-w) * 43 / 750);
  background: #ffed91;
  color: #9b1f12;
  font-size: calc(var(--design-w) * 29 / 750);
  font-weight: 500;
}
.design-ranking-head > div + div {
  border-left: calc(var(--design-w) * 7 / 750) solid rgba(72, 0, 0, 0.65);
}
.my-rank-card {
  position: fixed;
  z-index: 8;
  left: 50%;
  bottom: 0;
  display: flex;
  width: var(--design-w);
  min-height: calc(var(--design-w) * 164 / 750);
  align-items: center;
  gap: calc(var(--design-w) * 38 / 750);
  transform: translateX(-50%);
  border-radius: calc(var(--design-w) * 24 / 750) calc(var(--design-w) * 24 / 750) 0 0;
  padding: calc(var(--design-w) * 18 / 750) calc(var(--design-w) * 85 / 750);
  background: url('/assets/rankings-kv/footer.webp') center / 100% 100% no-repeat;
  color: #9b1f12;
  font-size: calc(var(--design-w) * 30 / 750);
  font-weight: 800;
  box-shadow: none;
}
.my-rank-medal {
  width: calc(var(--design-w) * 98 / 750);
  height: calc(var(--design-w) * 98 / 750);
  flex: 0 0 auto;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff5d8, #cf9e22 45%, #8a3b0b 80%);
  border: 3px solid #fff5bf;
  box-shadow: 0 4px 12px rgba(84, 0, 0, .4);
}
#rankingPager {
  display: none !important;
}

@media (min-width: 751px) {
  .my-rank-card { width: 750px; }
}
.feedback-page-mobile.is-fail { background-image: none; }
.submit-field-row input::placeholder {
  color: transparent !important;
  -webkit-text-fill-color: transparent !important;
  opacity: 0 !important;
}

/* New submit reconstruction uses live placeholder text and visible action styling. */
.submit-page-mobile .submit-field-row input::placeholder {
  color: rgba(255, 255, 255, 0.96) !important;
  -webkit-text-fill-color: rgba(255, 255, 255, 0.96) !important;
  opacity: 1 !important;
}

.submit-page-mobile .submit-primary-action,
.submit-page-mobile .submit-primary-action:hover,
.submit-page-mobile .submit-primary-action:focus,
.submit-page-mobile .submit-primary-action:active {
  background: url('/assets/submit-kv/submit-button.webp') center / 100% 100% no-repeat !important;
  color: #7d1907 !important;
}

/* Transparent click hot-zones must never paint over the design draft. */
.home-action-btn,
.home-action-btn:hover,
.home-action-btn:focus,
.home-action-btn:active,
.home-page .rules-link,
.home-page .rules-link:hover,
.home-page .rules-link:focus,
.home-page .rules-link:active,
.feedback-rank-btn,
.feedback-rank-btn:hover,
.feedback-rank-btn:focus,
.feedback-rank-btn:active,
.feedback-home-link,
.feedback-home-link:hover,
.feedback-home-link:focus,
.feedback-home-link:active,
.submit-primary-action,
.submit-primary-action:hover,
.submit-primary-action:focus,
.submit-primary-action:active {
  border: 0 !important;
  background: transparent !important;
  color: transparent !important;
  box-shadow: none !important;
  outline: none !important;
  transform: none !important;
  -webkit-tap-highlight-color: transparent;
}

/* Feedback page keeps real visible controls, unlike the older transparent hot-zone pages. */
.feedback-page-mobile .feedback-copy {
  left: 50% !important;
  width: calc(var(--design-w) * 420 / 750) !important;
  text-align: center !important;
  transform: translateX(-50%) !important;
}

.feedback-page-mobile .feedback-time {
  text-align: center !important;
}

.feedback-page-mobile .feedback-rank-btn,
.feedback-page-mobile .feedback-rank-btn:hover,
.feedback-page-mobile .feedback-rank-btn:focus,
.feedback-page-mobile .feedback-rank-btn:active {
  left: 50% !important;
  width: calc(var(--design-w) * 472 / 750) !important;
  height: calc(var(--design-w) * 90 / 750) !important;
  background: url('/assets/feedback-kv/action-button.webp') center / 100% 100% no-repeat !important;
  color: #7d1907 !important;
  transform: translateX(-50%) !important;
}

.feedback-page-mobile .feedback-home-link,
.feedback-page-mobile .feedback-home-link:hover,
.feedback-page-mobile .feedback-home-link:focus,
.feedback-page-mobile .feedback-home-link:active {
  left: 50% !important;
  background: transparent !important;
  color: #fff082 !important;
  transform: translateX(-50%) !important;
}

/* Ranking refinements for the dynamic shell. */
.rankings-card::before {
  display: none;
}
.design-ranking-table {
  position: relative;
  z-index: 1;
  background: transparent !important;
}
.design-ranking-row {
  position: relative;
  z-index: 1;
}
.my-rank-card {
  display: none !important;
}
.design-ranking-table {
  min-height: 100%;
}

/* Dynamic current-user ranking bar. It intentionally covers the baked sample footer in the design draft. */
.my-rank-card {
  display: flex !important;
  position: fixed;
  z-index: 8;
  left: 50%;
  bottom: 0;
  width: var(--design-w);
  min-height: calc(var(--design-w) * 164 / 750);
  align-items: center;
  justify-content: center;
  gap: calc(var(--design-w) * 34 / 750);
  transform: translateX(-50%);
  border-radius: calc(var(--design-w) * 24 / 750) calc(var(--design-w) * 24 / 750) 0 0;
  padding: calc(var(--design-w) * 18 / 750) calc(var(--design-w) * 72 / 750);
  background: url('/assets/rankings-kv/footer.webp') center / 100% 100% no-repeat;
  color: #9b1f12;
  font-size: calc(var(--design-w) * 30 / 750);
  font-weight: 800;
  box-shadow: none;
}
.my-rank-copy {
  display: inline-flex;
  min-width: calc(var(--design-w) * 380 / 750);
  align-items: baseline;
  justify-content: center;
  gap: calc(var(--design-w) * 16 / 750);
  text-align: center;
  white-space: nowrap;
}
.my-rank-copy strong {
  font-size: calc(var(--design-w) * 31 / 750);
}
.my-rank-avatar,
.my-rank-avatar-fallback {
  display: inline-flex;
  width: calc(var(--design-w) * 112 / 750);
  height: calc(var(--design-w) * 112 / 750);
  flex: 0 0 auto;
  overflow: hidden;
  border-radius: 50%;
  background: url('/assets/rankings-kv/avatar-ring.webp') center / 100% 100% no-repeat;
}
.my-rank-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.my-rank-avatar-fallback {
  background:
    url('/assets/rankings-kv/avatar.webp') center / cover no-repeat,
    url('/assets/rankings-kv/avatar-ring.webp') center / 100% 100% no-repeat,
    radial-gradient(circle at 50% 50%, #f8e8b2 0%, #e7b954 58%, #9d5c16 100%);
}
.rankings-card {
  bottom: calc(var(--design-w) * 164 / 750);
}

/* The submit PSD already contains the empty-state copy; hide native placeholders to avoid double text on iOS. */
.submit-field-row input::placeholder {
  color: transparent !important;
  -webkit-text-fill-color: transparent !important;
  opacity: 0 !important;
}

.design-back-link,
.design-back-link:hover,
.design-back-link:focus,
.design-back-link:active,
.design-back-link:visited {
  border: 0 !important;
  background: transparent !important;
  color: transparent !important;
  box-shadow: none !important;
  outline: none !important;
  text-decoration: none !important;
  transform: none !important;
  -webkit-tap-highlight-color: transparent;
}

.my-rank-avatar {
  display: inline-flex;
  width: calc(var(--design-w) * 112 / 750);
  height: calc(var(--design-w) * 112 / 750);
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 0;
  border-radius: 50%;
  background:
    url('/assets/rankings-kv/avatar.webp') center / cover no-repeat,
    url('/assets/rankings-kv/avatar-ring.webp') center / 100% 100% no-repeat,
    radial-gradient(circle at 35% 30%, #fff5d8, #cf9e22 45%, #8a3b0b 80%);
  box-shadow: none;
}
.my-rank-avatar img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.my-rank-medal {
  display: none !important;
}
