/* Multi-contest navigation and vote-card polish. */
.main {
  animation: app-page-enter .48s cubic-bezier(.22, 1, .36, 1) both;
  transition:
    opacity .24s cubic-bezier(.22, 1, .36, 1),
    transform .24s cubic-bezier(.22, 1, .36, 1),
    filter .24s cubic-bezier(.22, 1, .36, 1);
  will-change: opacity, transform;
}

body.is-route-leaving .main {
  opacity: 0;
  transform: translateY(12px) scale(.992);
  filter: blur(1.5px);
}

body.is-route-leaving .top-nav {
  box-shadow: 0 10px 28px rgba(0, 0, 0, .06);
}

@keyframes app-page-enter {
  from {
    opacity: 0;
    transform: translateY(14px) scale(.992);
    filter: blur(1.5px);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .main {
    animation: none;
    transition: none;
  }
  body.is-route-leaving .main {
    opacity: 1;
    transform: none;
    filter: none;
  }
}

.top-nav {
  gap: 18px;
}

.top-nav-left {
  min-width: 0;
  flex: 1 1 auto;
  gap: 18px;
}

.top-nav-right,
.logo,
.logo-divider {
  flex-shrink: 0;
}

.activity-tag.contest-switcher {
  display: flex;
  align-items: center;
  flex: 1 1 auto;
  background: transparent;
  padding: 0;
  border-radius: 0;
  gap: 10px;
  overflow-x: auto;
  overflow-y: hidden;
  white-space: nowrap;
  scrollbar-width: none;
  max-width: none;
  min-width: 0;
  cursor: grab;
  scroll-behavior: smooth;
  -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 34px), transparent);
  mask-image: linear-gradient(90deg, #000 calc(100% - 34px), transparent);
  touch-action: pan-x;
}

.activity-tag.contest-switcher::-webkit-scrollbar { display: none; }
.activity-tag.contest-switcher::before { content: none; }

.activity-tag.contest-switcher.is-dragging,
.contest-nav-groups.is-dragging,
.home-featured-items.is-dragging {
  cursor: grabbing;
  scroll-behavior: auto;
  user-select: none;
}

body.is-nav-dragging {
  cursor: grabbing;
  user-select: none;
}

.activity-home-link {
  display: inline-flex;
  align-items: center;
  height: 32px;
  padding: 0 13px;
  border: 1px solid #d9d3cb;
  border-radius: 999px;
  background: #fff;
  color: #2a2622;
  text-decoration: none;
  font-size: 14px;
  font-weight: 800;
  flex-shrink: 0;
}

.activity-home-link:hover {
  background: #f8f4ef;
  border-color: #cfc4b9;
}

.activity-home-link.active {
  background: #1f1f1f;
  border-color: #1f1f1f;
  color: #fff;
}

.contest-nav-divider {
  width: 1px;
  height: 24px;
  background: #ddd5cd;
  flex-shrink: 0;
}

.contest-nav-groups {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 10px;
  min-width: max-content;
  overflow: visible;
  scrollbar-width: none;
  cursor: grab;
  scroll-behavior: smooth;
  touch-action: pan-x;
}

.contest-nav-groups::-webkit-scrollbar { display: none; }

.contest-nav-group {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.contest-group-label {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 7px;
  border-radius: 999px;
  background: #f3eee7;
  color: #7b7067;
  font-size: 12px;
  font-weight: 800;
}

.contest-switch-empty {
  color: #aaa29a;
  font-size: 12px;
  font-weight: 700;
  padding: 0 4px;
}

.contest-switch-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 32px;
  padding: 0 13px;
  border: 1px solid #e5ded5;
  border-radius: 999px;
  background: #fff;
  color: #38332e;
  text-decoration: none;
  font-size: 14px;
  font-weight: 900;
  flex-shrink: 0;
  overflow: hidden;
  isolation: isolate;
}

.contest-switch-link:hover {
  background: #f7f4ef;
  border-color: #cbc3ba;
  color: #1f1f1f;
}

.contest-switch-link.is-nav-pending {
  background: #1f1f1f;
  border-color: #1f1f1f;
  color: #fff;
  transform: translateY(-1px);
}

.contest-switch-link::after {
  content: '';
  position: absolute;
  left: 11px;
  right: 11px;
  bottom: 6px;
  height: 5px;
  border-radius: 999px;
  background: rgba(95, 87, 79, .16);
  transform: scaleX(.28);
  transform-origin: left center;
  opacity: 0;
  transition: transform .18s ease, opacity .18s ease;
  z-index: -1;
}

.contest-switch-link:hover::after,
.contest-switch-link.active::after {
  opacity: 1;
  transform: scaleX(1);
}

.contest-switch-link.active {
  background: #1f1f1f;
  border-color: #1f1f1f;
  color: #fff;
}

.contest-switch-name {
  position: relative;
  z-index: 1;
  color: inherit;
  font-weight: 900;
  text-shadow:
    0 1px 0 rgba(255, 255, 255, .82),
    0 5px 14px rgba(31, 31, 31, .10);
  overflow: hidden;
}

.contest-switch-link.active .contest-switch-name {
  color: #fff;
  text-shadow: 0 1px 10px rgba(255, 255, 255, .18);
}

.contest-switch-link.is-nav-pending .contest-switch-name {
  color: #fff;
  text-shadow: 0 1px 10px rgba(255, 255, 255, .18);
}

.contest-switch-name::after {
  content: '';
  position: absolute;
  top: -20%;
  bottom: -20%;
  width: 42%;
  left: -70%;
  transform: skewX(-18deg);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .72), transparent);
  opacity: .32;
  mix-blend-mode: screen;
  animation: contest-name-sheen 4.8s ease-in-out infinite;
  pointer-events: none;
}

.contest-switch-link:not(.active) .contest-switch-name::after {
  background: linear-gradient(90deg, transparent, rgba(60, 55, 50, .22), transparent);
  opacity: .26;
}

@keyframes contest-name-sheen {
  0%, 62% { left: -70%; }
  82%, 100% { left: 128%; }
}

@media (prefers-reduced-motion: reduce) {
  .contest-switch-name::after {
    animation: none;
    opacity: 0;
  }
}

.contest-switch-link.active::before {
  content: '';
  width: 6px;
  height: 6px;
  background: #fff;
  border-radius: 50%;
  margin-right: 7px;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.hero-detail-btn {
  position: absolute;
  top: 36px;
  right: 40px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 94px;
  height: 34px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, .26);
  border-radius: 999px;
  background: rgba(255, 255, 255, .14);
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  font-family: inherit;
  backdrop-filter: blur(12px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, .18);
  cursor: pointer;
  transition: transform .16s ease, background .16s ease, border-color .16s ease;
}

.hero-detail-btn:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, .2);
  border-color: rgba(255, 255, 255, .42);
}

.hero-content .hero-badge {
  margin-right: 132px;
}

.contest-notice {
  margin-bottom: 18px;
  padding: 14px 16px;
  border-radius: 12px;
  background: #f8f4ef;
  color: #5f574f;
  font-size: 13px;
  line-height: 1.7;
}

.contest-notice strong {
  color: #1f1f1f;
}

.home-carousel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  min-height: 460px;
  margin-bottom: 46px;
  overflow: hidden;
  border-radius: 16px;
  background: #171717;
  color: #fff;
}

.home-carousel-stage {
  position: relative;
  min-height: 460px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  cursor: grab;
  touch-action: pan-y;
  transform: translateX(var(--home-slide-drag, 0));
  transition: transform .18s ease, filter .18s ease;
}

.home-carousel-stage.is-dragging {
  cursor: grabbing;
  transition: none;
}

.home-carousel-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, .06) 0%, rgba(0, 0, 0, .72) 100%),
    linear-gradient(90deg, rgba(0, 0, 0, .68) 0%, rgba(0, 0, 0, .28) 54%, rgba(0, 0, 0, .05) 100%);
}

.home-page-particles {
  position: fixed;
  left: 0;
  right: 0;
  top: 56px;
  bottom: 0;
  z-index: 4;
  pointer-events: none;
  overflow: hidden;
}

.home-page-particles ~ .home-carousel,
.home-page-particles ~ .section {
  position: relative;
  z-index: 3;
}

.home-page-particles span {
  --size: 3px;
  position: absolute;
  left: var(--x);
  top: -12vh;
  display: block;
  opacity: 0;
  animation: home-particle-fall var(--duration) linear infinite;
  animation-delay: var(--delay);
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .16));
}

.home-page-particles .is-diamond {
  width: var(--size);
  height: var(--size);
  background: rgba(255, 255, 255, .72);
  border: 1px solid rgba(224, 90, 43, .35);
  transform: translate3d(-50%, 0, 0) rotate(45deg);
}

.home-page-particles .is-dash,
.home-page-particles .is-line {
  width: calc(var(--size) * 5);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(224, 90, 43, .6), rgba(31, 31, 31, .34), transparent);
  transform: translate3d(-50%, 0, 0) rotate(64deg);
}

.home-page-particles .is-line {
  width: calc(var(--size) * 8);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .74), rgba(224, 90, 43, .46), transparent);
}

.home-page-particles .is-spark {
  width: calc(var(--size) * 3);
  height: calc(var(--size) * 3);
  transform: translate3d(-50%, 0, 0);
}

.home-page-particles .is-spark::before,
.home-page-particles .is-spark::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  background: rgba(255, 255, 255, .76);
  box-shadow: 0 0 0 1px rgba(31, 31, 31, .12);
  transform: translate(-50%, -50%);
}

.home-page-particles .is-spark::before {
  width: 100%;
  height: 1px;
}

.home-page-particles .is-spark::after {
  width: 1px;
  height: 100%;
}

@keyframes home-particle-fall {
  0% {
    opacity: 0;
    translate: -10px -10vh;
  }
  10% {
    opacity: .82;
  }
  62% {
    opacity: .58;
  }
  100% {
    opacity: 0;
    translate: 42px 118vh;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-page-particles span {
    animation: none;
    opacity: .28;
    translate: none;
  }
}

.home-carousel-content {
  position: relative;
  z-index: 2;
  width: min(560px, 80%);
  padding: 54px 46px 58px;
}

.home-featured-pill {
  display: inline-flex;
  align-items: center;
  height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .16);
  border: 1px solid rgba(255, 255, 255, .18);
  backdrop-filter: blur(10px);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 14px;
}

.home-carousel-stage.is-featured-slide .home-featured-pill {
  background: rgba(255, 255, 255, .22);
  border-color: rgba(255, 255, 255, .32);
}

.home-carousel-content h1 {
  font-size: 34px;
  line-height: 1.12;
  font-weight: 900;
  letter-spacing: 0;
  margin-bottom: 12px;
}

.home-carousel-content p {
  font-size: 15px;
  line-height: 1.75;
  color: rgba(255, 255, 255, .9);
  margin-bottom: 18px;
}

.home-carousel-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.home-carousel-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 120px;
  height: 38px;
  padding: 0 18px;
  border-radius: 10px;
  background: #fff;
  color: #121212;
  text-decoration: none;
  font-size: 14px;
  font-weight: 900;
}

.home-carousel-controls {
  position: absolute;
  z-index: 4;
  left: 50%;
  bottom: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  transform: translateX(-50%);
}

.home-carousel-arrow {
  position: relative;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 999px;
  background: rgba(18, 18, 18, .38);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(10px);
  transition: background .18s ease, border-color .18s ease, transform .18s ease;
}

.home-carousel-arrow:hover {
  background: rgba(18, 18, 18, .58);
  border-color: rgba(255, 255, 255, .34);
  transform: translateY(-1px) scale(1.04);
}

.home-carousel-arrow svg {
  width: 20px;
  height: 20px;
}

.home-carousel-arrow.prev {
  left: auto;
}

.home-carousel-arrow.next {
  right: auto;
}

.home-carousel-dots {
  display: flex;
  align-items: center;
  gap: 8px;
}

.home-carousel-dots button {
  width: 22px;
  height: 5px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, .46);
  cursor: pointer;
}

.home-carousel-dots button.active {
  width: 34px;
  background: #fff;
}

.home-featured-list {
  background: #171717;
  padding: 24px 8px 24px 20px;
  min-width: 0;
}

.home-featured-title {
  color: #bbb5ad;
  font-size: 14px;
  font-weight: 900;
  margin: 0 0 10px 2px;
}

.home-featured-items {
  display: grid;
  gap: 8px;
  max-height: 392px;
  overflow-y: auto;
  padding-right: 8px;
}

.home-featured-items::-webkit-scrollbar {
  width: 6px;
}

.home-featured-items::-webkit-scrollbar-thumb {
  background: #3c3c3c;
  border-radius: 999px;
}

.home-featured-item {
  width: 100%;
  min-width: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #fff;
  padding: 9px;
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 10px;
  text-align: left;
  cursor: pointer;
}

.home-section {
  padding-top: 2px;
}

.home-contest-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.home-topic-section {
  border-top: 1px solid #e4ded5;
  padding-top: 30px;
  margin-top: 12px;
}

.home-topic-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.home-contest-grid .contest-cover-title,
.home-topic-grid .contest-cover-title {
  font-size: 18px;
}

.home-contest-grid .contest-card .card-body,
.home-topic-grid .contest-card .card-body {
  padding: 14px 14px 10px;
}

.home-contest-grid .contest-card .card-actions,
.home-topic-grid .contest-card .card-actions {
  padding: 0 14px 14px;
}

@media (max-width: 1100px) {
  .home-contest-grid,
  .home-topic-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .home-contest-grid,
  .home-topic-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .home-contest-grid,
  .home-topic-grid {
    grid-template-columns: 1fr;
  }
}

.home-featured-item:hover,
.home-featured-item.active {
  background: #2c2c2c;
}

.home-featured-item.is-featured {
  position: relative;
  background: linear-gradient(90deg, rgba(255, 255, 255, .11), rgba(255, 255, 255, .04));
}

.home-featured-item.is-featured::after {
  content: "主推";
  position: absolute;
  top: 8px;
  right: 8px;
  height: 18px;
  padding: 0 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .16);
  color: #fff;
  font-size: 10px;
  font-weight: 900;
  line-height: 18px;
}

.home-featured-item.is-featured.active {
  background: #333;
}

.home-featured-thumb {
  width: 58px;
  height: 40px;
  border-radius: 6px;
  background-size: cover;
  background-position: center;
}

.home-featured-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
}

.home-featured-copy strong,
.home-featured-copy span {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-featured-copy strong {
  font-size: 13px;
  font-weight: 900;
}

.home-featured-hot {
  display: inline-block;
  margin-right: 5px;
}

.home-featured-copy span {
  font-size: 11px;
  color: #b8b8b8;
}

.empty-home-carousel {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    linear-gradient(110deg, rgba(255, 255, 255, .08), transparent 30%),
    linear-gradient(135deg, #161616 0%, #26343a 50%, #1b1715 100%);
  border: 1px solid #2e2b27;
  color: rgba(255, 255, 255, .76);
}

.empty-home-carousel .empty {
  position: relative;
  z-index: 2;
  color: rgba(255, 255, 255, .78);
}

.nav-btn.active {
  background: #1f1f1f;
  border-color: #1f1f1f;
  color: #fff;
}

.avatar.is-login-entry {
  width: auto;
  min-width: 50px;
  padding: 0 12px;
  border-radius: 999px;
  background: #1a1a1a;
  font-size: 13px;
}

.login-prompt-modal {
  z-index: 1300;
}

.login-prompt-card {
  width: 420px;
}

.login-prompt-body p {
  color: #555;
  font-size: 15px;
  line-height: 1.7;
}

.login-prompt-actions .btn {
  text-decoration: none;
}

.cards-grid {
  align-items: stretch;
}

.contest-card {
  border-radius: 14px;
  border-color: #e5ded5;
  overflow: hidden;
  background: #fff;
}

.contest-card .card-cover {
  padding-top: 66%;
  border-radius: 0;
  background: #eee7dd;
}

.contest-card .card-cover::after {
  content: none;
}

.contest-card .contest-card-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0) 30%, rgba(0, 0, 0, .72) 100%),
    linear-gradient(90deg, rgba(0, 0, 0, .36) 0%, rgba(0, 0, 0, 0) 62%);
  z-index: 1;
}

.contest-card .card-rank-badge,
.contest-card .card-id-badge {
  z-index: 2;
}

.contest-card .card-id-badge {
  background: rgba(255, 255, 255, .94);
  color: #211d19;
  font-weight: 900;
  border-radius: 999px;
}

.contest-cover-copy {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  z-index: 2;
  color: #fff;
}

.contest-cover-kicker {
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .8px;
  opacity: .78;
  margin-bottom: 5px;
}

.contest-cover-title {
  font-size: 22px;
  line-height: 1.18;
  font-weight: 900;
  letter-spacing: 0;
  text-shadow: 0 2px 12px rgba(0, 0, 0, .35);
}

.contest-card .card-body {
  padding: 16px 16px 12px;
}

.contest-card-time {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 24px;
  padding: 0 9px;
  margin: 2px 0 9px;
  border-radius: 999px;
  background: #f5efe7;
  color: #755c44;
  font-size: 12px;
  font-weight: 900;
}

.contest-card .card-intro {
  min-height: 44px;
}

.contest-card .card-actions {
  padding: 0 16px 16px;
}

.contest-card .vote-btn {
  border-radius: 10px;
}

.card.vote-card {
  border-radius: 12px;
  border-color: #e5ded5;
  box-shadow: 0 1px 0 rgba(26, 26, 26, .03);
  overflow: hidden;
  background: #fff;
}

.card.vote-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(26, 26, 26, .08);
}

.vote-card .card-cover {
  padding-top: 54.5%;
  border-radius: 0;
  background: #efece5;
}

.vote-card .card-cover::after,
.vote-card .card-cover-overlay {
  display: none;
}

.vote-card .card-cover-text span {
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, .24);
}

.vote-card .card-rank-badge {
  top: 10px;
  left: 12px;
  background: rgba(255, 255, 255, .94);
  color: #28231f;
  font-size: 13px;
  font-weight: 800;
  padding: 6px 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .08);
}

.vote-card .card-id-badge {
  top: 10px;
  right: 12px;
  background: rgba(21, 18, 32, .82);
  font-size: 12px;
  font-weight: 800;
  padding: 6px 10px;
}

.vote-card .card-mine-tag {
  right: 10px;
  bottom: 10px;
  background: #151515;
  border-radius: 3px;
  font-size: 11px;
  padding: 4px 8px;
}

.vote-card .card-body {
  padding: 16px 16px 10px;
}

.vote-card .card-title {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0;
  -webkit-line-clamp: 1;
}

.vote-card .card-intro {
  margin-top: 8px;
  min-height: 40px;
  color: #8d867f;
  font-size: 13px;
  line-height: 1.55;
}

.vote-card .card-meta {
  margin-top: 14px;
  gap: 8px;
  color: #9a928a;
  font-size: 12px;
}

.vote-card .card-meta-author-avatar {
  width: 17px;
  height: 17px;
  background: #dedbd5;
  color: #fff;
  font-size: 10px;
}

.vote-card .card-heat {
  color: #e64a25;
  font-weight: 800;
}

.vote-card .card-actions {
  padding: 0 16px 16px;
  gap: 8px;
}

.vote-card .vote-btn {
  height: 38px;
  border-radius: 8px;
  background: #171717;
  color: #fff;
  font-size: 14px;
  font-weight: 800;
}

.vote-card .vote-btn.voted {
  background: #fff4ed;
  color: #e05a2b;
  border: 1px solid #ffc9ad;
}

.vote-card .vote-btn.disabled {
  background: #f0efeb;
  color: #aaa;
  border: 1px solid #e5ded5;
}

.vote-card .share-icon-btn,
.vote-card .admin-heat-btn {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: #f8f7f3;
  border-color: #e5ded5;
  flex: 0 0 auto;
}

.vote-card .admin-heat-btn {
  color: #e05a2b;
}

.fab {
  border-radius: 999px;
  background: #171717;
  box-shadow: 0 10px 28px rgba(26, 26, 26, .22);
  font-weight: 800;
}

body.is-uploaded-html-view {
  background: #fff;
}

body.is-uploaded-html-view .main {
  width: 100%;
  max-width: none;
  min-height: calc(100vh - 56px);
  margin: 0;
  padding: 0;
}

.uploaded-html-shell {
  position: relative;
  width: 100%;
  min-height: calc(100vh - 56px);
  background: #fff;
}

.uploaded-html-frame {
  width: 100%;
  height: calc(100vh - 56px);
  min-height: calc(100vh - 56px);
  border: 0;
  display: block;
  background: #fff;
  opacity: 1;
  transition: opacity .28s ease;
}

.uploaded-html-shell.is-loading .uploaded-html-frame {
  opacity: 0;
}

.uploaded-html-loader {
  position: absolute;
  inset: 0;
  z-index: 40;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: calc(100vh - 56px);
  background:
    radial-gradient(circle at 50% 42%, rgba(224, 90, 43, .06), transparent 30%),
    #fff;
  color: #1f1f1f;
  transition: opacity .28s ease, visibility .28s ease;
}

.uploaded-html-shell.is-loaded .uploaded-html-loader {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.uploaded-html-spinner {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 3px solid #eee7df;
  border-top-color: #1f1f1f;
  animation: uploaded-html-spin .8s linear infinite;
}

.uploaded-html-loader-title {
  font-size: 15px;
  font-weight: 900;
}

.uploaded-html-loader-sub {
  color: #8b8378;
  font-size: 13px;
}

.uploaded-html-loader.is-slow .uploaded-html-loader-sub {
  color: #6f675e;
}

@keyframes uploaded-html-spin {
  to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  .uploaded-html-spinner {
    animation: none;
  }
}

.uploaded-html-back {
  position: fixed;
  top: 76px;
  right: 22px;
  z-index: 80;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 108px;
  height: 38px;
  padding: 0 16px;
  border-radius: 10px;
  background: rgba(26, 26, 26, .92);
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 900;
  box-shadow: 0 10px 28px rgba(0, 0, 0, .18);
  backdrop-filter: blur(10px);
}

.uploaded-html-back:hover {
  background: #000;
}

.uploaded-html-empty {
  min-height: calc(100vh - 56px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #8b8378;
  font-size: 15px;
  padding: 32px;
  text-align: center;
}

@media (max-width: 720px) {
  .top-nav {
    height: auto;
    min-height: 92px;
    padding: 10px 14px 9px;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 10px;
  }
  .top-nav-left {
    display: contents;
  }
  .logo {
    order: 1;
    min-width: 0;
    font-size: 17px;
  }
  .logo svg {
    width: 20px;
    height: 20px;
  }
  .logo-divider { display: none; }
  .top-nav-right {
    order: 2;
    margin-left: auto;
    gap: 8px;
  }
  .top-nav-right .nav-btn {
    height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 900;
    background: #1f1f1f;
    color: #fff;
  }
  .avatar {
    width: 34px;
    height: 34px;
  }
  .activity-tag.contest-switcher {
    order: 3;
    display: flex;
    flex: 0 0 100%;
    width: 100%;
    max-width: none;
    min-height: 32px;
    gap: 8px;
    -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent);
    mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent);
  }
  .activity-home-link {
    height: 30px;
    padding: 0 10px;
    font-size: 13px;
  }
  .contest-nav-divider {
    height: 20px;
  }
  .contest-group-label {
    display: none;
  }
  .contest-nav-groups {
    flex: 0 0 auto;
    min-width: max-content;
    overflow: visible;
  }
  .contest-nav-group {
    gap: 8px;
  }
  .contest-switch-link {
    height: 30px;
    padding: 0 10px;
    font-size: 13px;
  }
  .home-carousel-arrow {
    width: 34px;
    height: 34px;
  }
  .home-carousel-controls {
    gap: 11px;
    bottom: 17px;
  }
}

@media (max-width: 600px) {
  .home-carousel {
    grid-template-columns: 1fr;
    border-radius: 14px;
    min-height: 0;
  }
  .home-carousel-stage {
    min-height: 360px;
  }
  .home-carousel-content {
    width: 100%;
    padding: 90px 22px 48px;
  }
  .home-carousel-content h1 {
    font-size: 28px;
  }
  .home-carousel-content p {
    font-size: 14px;
  }
  .home-featured-list {
    padding: 14px;
  }
  .home-featured-items {
    display: flex;
    overflow-x: auto;
    overflow-y: hidden;
    max-height: none;
    padding-right: 0;
    padding-bottom: 4px;
  }
  .home-featured-item {
    width: 250px;
    flex-shrink: 0;
  }
  .hero-detail-btn {
    position: relative;
    top: auto;
    right: auto;
    align-self: flex-end;
    min-width: 84px;
    height: 32px;
    margin: -4px 0 12px auto;
    padding: 0 13px;
    font-size: 12px;
  }
  .hero-content .hero-badge {
    margin-right: 0;
  }
  .uploaded-html-back {
    top: 68px;
    right: 12px;
    height: 34px;
    min-width: 96px;
    padding: 0 12px;
    border-radius: 9px;
    font-size: 13px;
  }
}
