/* Festival content extends the existing visual system and keeps working surfaces intact. */
.site-header {
  flex-wrap: wrap;
}
.site-header .brand {
  gap: 16px;
}
.site-header .festival-wordmark {
  display: block;
  font-size: 14px;
  line-height: 1.35;
  letter-spacing: 1px;
}
.site-header .festival-wordmark small {
  color: #8fffe4;
  font-size: 13px;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}
.consult-link {
  background: transparent;
  border: 0;
  padding: 10px 0;
  color: #bfe9ee;
  font-size: 14px;
}
.hero-title-outline {
  font-size: clamp(25px, 3vw, 38px);
  letter-spacing: 0;
}
.hero .event-title-en {
  font-size: clamp(54px, 6vw, 76px);
  line-height: 1.1;
}
.hero .event-title-cn {
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.35;
  margin-top: 8px;
}
.hero-copy > .hero-subtitle {
  font-size: 16px;
  line-height: 1.6;
  color: #d5f2f5;
  font-weight: 600;
  margin: 12px 0 18px;
}
.hero-subtitle > span {
  color: #96d8dc;
  font-size: 13px;
  letter-spacing: 1px;
}
.hero-date strong {
  font-size: clamp(28px, 3.4vw, 46px);
  white-space: nowrap;
}
.festival-section {
  width: calc(100% - 80px);
  max-width: 1180px;
  margin: 64px auto;
}
.festival-section h2 {
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.4;
  margin: 10px 0 20px;
}
.festival-section p {
  color: #bdcfe1;
}
.festival-section .section-heading {
  padding: 0;
  margin: 0 0 28px;
}
.festival-intro {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 48px;
  padding: 38px 0;
  border-block: 1px solid #2b4058;
}
.festival-intro p:first-child {
  margin-top: 0;
}
.theme-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.theme-card {
  padding: 30px;
  border: 1px solid #344e69;
  background: linear-gradient(140deg, #11263a, #091322);
}
.theme-card > span,
.schedule-grid article > span {
  font-size: 12px;
  letter-spacing: 0.6px;
  color: #7fdddf;
}
.theme-card h3 {
  font-size: 24px;
  margin: 24px 0 12px;
  line-height: 1.4;
}
.theme-card p {
  margin-bottom: 0;
}
.contest-rules {
  scroll-margin-top: 24px;
}
.draft-notice {
  padding: 16px 20px;
  border-left: 3px solid #79ffe2;
  background: #102634;
  font-size: 14px;
}
.schedule-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid #334c64;
  background: #334c64;
  margin-top: 28px;
}
.schedule-grid article {
  padding: 24px 20px;
  background: #0b1828;
}
.schedule-grid h3 {
  font-size: 24px;
  margin: 12px 0;
  white-space: nowrap;
}
.schedule-grid p {
  font-size: 14px;
  margin-bottom: 0;
}
.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-top: 32px;
}
.detail-block {
  padding: 28px;
  background: #0b1726;
  border: 1px solid #2f455f;
}
.detail-block h3,
.rewards-heading h3 {
  font-size: 21px;
  margin: 0 0 16px;
}
.detail-block p:last-child {
  margin-bottom: 0;
}
.detail-block ul {
  color: #bdcfe1;
  padding-left: 22px;
}
.detail-block li {
  margin: 12px 0;
}
.rights-block {
  margin-top: 24px;
}
.pending-label {
  display: inline-block;
  font-size: 12px;
  font-weight: 400;
  padding: 3px 10px;
  color: #ffe0a8;
  border: 1px solid #796449;
  vertical-align: middle;
  margin-left: 8px;
}
.rewards-heading {
  margin: 36px 0 20px;
}
.rewards-table {
  overflow-x: auto;
}
.rewards-table table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 15px;
}
.rewards-table th,
.rewards-table td {
  padding: 18px 20px;
  border: 1px solid #344a63;
}
.rewards-table thead {
  background: #183044;
  color: #d9f7ff;
}
.rewards-table tbody th {
  font-weight: 500;
}
.rewards-table tbody tr:nth-child(even) {
  background: #0d1b2a;
}
.rewards-table td:nth-child(2) {
  white-space: nowrap;
}
.consult-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid #344a63;
  padding-top: 40px;
}
.consult-section h2 {
  margin-bottom: 12px;
}
.consult-qr-placeholder {
  width: 224px;
  height: 224px;
  margin: 26px auto;
  border: 2px dashed #607a92;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #afc2d7;
  background: #101e2e;
}
.consult-qr-placeholder > span:first-child {
  font-size: 40px;
  line-height: 1;
  color: #77dcd8;
}
.festival-footer {
  display: block;
  padding: 36px 40px;
  max-width: 1260px;
  margin: 40px auto 0;
}
.footer-top,
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.footer-festival {
  font-weight: 700;
  font-size: 18px;
  color: #dbf3fc;
  letter-spacing: 1px;
}
.partner-list {
  display: flex;
  align-items: center;
  gap: 48px;
  padding: 36px 0;
}
.partner-list > div {
  min-width: 0;
}
.partner-primary > a,
.partner-official > a {
  display: flex;
  align-items: center;
  min-height: 64px;
}
.partner-primary .scpg-logo {
  display: block;
  width: 136px;
  height: auto;
  filter: brightness(0) invert(1);
}
.partner-official {
  border-left: 1px solid #334456;
  padding-left: 48px;
}
.partner-official > a {
  gap: 12px;
  white-space: nowrap;
}
.partner-official img {
  display: block;
  width: 44px;
  height: 44px;
  object-fit: contain;
}
.partner-list strong {
  color: #fff;
  font-size: 22px;
}
.partner-list a:focus-visible {
  outline: 2px solid #91ffe3;
  outline-offset: 8px;
  border-radius: 2px;
}
.footer-bottom {
  border-top: 1px solid #2d4158;
  padding-top: 20px;
  font-size: 13px;
  color: #a7b9ce;
}
.work-theme {
  color: #91ffe3;
  font-size: 13px;
}
.work-body .work-process {
  color: #afc5d8;
  font-size: 14px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
@media (max-width: 1050px) {
  .site-header nav {
    order: 3;
    width: 100%;
    justify-content: center;
  }
  .schedule-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .theme-card {
    padding: 22px;
  }
}
@media (max-width: 760px) {
  .site-header {
    padding: 18px 20px;
    gap: 12px;
  }
  .site-header .brand-logo {
    width: 118px;
  }
  .site-header .festival-wordmark {
    font-size: 11px;
  }
  .site-header .festival-wordmark small {
    font-size: 11px;
  }
  .site-header .brand {
    gap: 10px;
  }
  .header-actions {
    gap: 12px;
    flex-wrap: wrap;
  }
  .header-actions .button.small {
    padding: 10px 12px;
    font-size: 13px;
  }
  .site-header nav {
    justify-content: space-between;
    gap: 6px;
    flex-wrap: nowrap;
  }
  .site-header nav a {
    font-size: 14px;
  }
  .festival-section {
    width: calc(100% - 40px);
    margin: 40px auto;
  }
  .festival-intro,
  .theme-grid,
  .detail-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }
  .festival-intro {
    padding: 26px 0;
  }
  .theme-card h3 {
    margin-top: 16px;
  }
  .schedule-grid article {
    padding: 18px 14px;
  }
  .schedule-grid h3 {
    font-size: 18px;
  }
  .detail-block {
    padding: 22px;
  }
  .rewards-table th,
  .rewards-table td {
    padding: 13px 12px;
  }
  .rewards-table tbody th {
    min-width: 125px;
  }
  .consult-section {
    align-items: flex-start;
    flex-direction: column;
  }
  .festival-footer {
    padding: 24px 20px;
  }
  .partner-list {
    gap: 24px;
    padding: 28px 0;
  }
  .partner-primary .scpg-logo {
    width: 112px;
  }
  .partner-official {
    padding-left: 24px;
  }
  .partner-official > a {
    gap: 8px;
    min-height: 52px;
  }
  .partner-official img {
    width: 36px;
    height: 36px;
  }
  .partner-list strong {
    font-size: 18px;
  }
  .hero-date {
    flex-wrap: wrap;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
