:root {
  --page-width: 1200px;
  --ink: #24306b;
  --gold: #f6c83a;
  --gold-deep: #e7ae22;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  color: var(--ink);
  font-family: "PingFang TC", "Noto Sans TC", "Microsoft JhengHei", sans-serif;
  background: #b9e4ff url("../images/bg.jpg") center top / cover no-repeat fixed;
}

.page {
  width: var(--page-width);
  max-width: calc(100% - 32px);
  margin: 0 auto;
  padding: 6px 0 0;
}

.masthead {
  position: relative;
  z-index: 2;
}

.partner-logo {
  display: block;
  width: min(620px, 58%);
  height: auto;
}

.project-logo {
  display: block;
  width: 440px;
  max-width: 78%;
  height: auto;
  margin: 12px auto -28px;
}

.panel {
  position: relative;
  z-index: 1;
  padding: 48px 64px 28px;
  border-radius: 0;
  background: #e69f36;
  box-shadow: 0 0 14px 2px rgba(255, 255, 255, 0.92);
}

@media (min-width: 900px) {
  .project-logo {
    margin-top: -20px;
    margin-bottom: -156px;
  }

  .panel {
    padding-top: 172px;
  }
}

.block + .block {
  margin-top: 36px;
}

.block h2 {
  margin: 0;
  color: #fff;
  font-size: 34px;
  font-weight: 900;
  letter-spacing: 0.04em;
  line-height: 1.2;
}

.block-body {
  min-height: 72px;
}

.block-body p {
  margin: 14px 0 6px;
  color: #302059;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.75;
}

.register-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 36px;
  margin-top: 22px;
  flex-wrap: wrap;
}

.register-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.register-item > a:first-child {
  display: block;
  line-height: 0;
}

.register-actions img {
  display: block;
  height: 148px;
  width: auto;
}

.register-actions a:hover img,
.register-actions a:focus img {
  transform: translateY(-2px);
}

.register-site {
  color: #000;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.4;
  text-decoration: underline;
}

.register-site:hover,
.register-site:focus {
  color: #fff;
}

.scope-layout {
  display: flex;
  align-items: flex-start;
  gap: 48px;
}

.scope-main {
  flex: 1.15;
  min-width: 0;
}

.scope-main p {
  margin: 14px 0 0;
  color: #302059;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.75;
}

.scope-ref {
  flex: 0 0 420px;
  max-width: 46%;
}

.scope-ref a {
  display: block;
  margin-top: 14px;
  line-height: 0;
}

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

.scope-note {
  margin: 10px 0 0;
  color: #302059;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.6;
  text-align: center;
}

.award-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px 36px;
  margin-top: 16px;
}

.award-grid h3 {
  margin: 0 0 10px;
  color: #fff;
  font-size: 22px;
  font-weight: 900;
  line-height: 1.3;
}

.award-grid p {
  margin: 0 0 8px;
  color: #000;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.65;
}

.contact {
  margin: 40px 0 8px;
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.7;
}

.contact a {
  color: #fff;
}

.schedule-wrap {
  margin-top: 16px;
  overflow-x: auto;
}

.schedule {
  width: 100%;
  border-collapse: separate;
  border-spacing: 5px;
  background: #fff;
  color: #302059;
  font-size: 18px;
  line-height: 1.5;
}

.schedule th,
.schedule td {
  padding: 16px 14px;
  font-weight: 700;
  text-align: center;
  vertical-align: middle;
}

.schedule td {
  text-align: left;
  padding-left: 20px;
}

.schedule a {
  color: inherit;
}

.schedule thead th {
  background: #2e6cc6;
  color: #fff;
  font-size: 22px;
}

.schedule tbody th {
  width: 148px;
  font-size: 28px;
}

.schedule .prelim th,
.schedule .prelim td {
  background: #f2bb54;
}

.schedule .final th,
.schedule .final td {
  background: #ec9045;
}

.supporters {
  margin-top: 0;
  background: #fff;
  padding: 24px 16px 36px;
}

.organizer-logo {
  display: block;
  width: 50%;
  height: auto;
  margin: 0 auto 8px;
}

.supporters picture img {
  display: block;
  width: 100%;
  height: auto;
}

@media (max-width: 720px) {
  .partner-logo {
    width: 100%;
    margin: 0 auto;
  }

  .project-logo {
    margin: 6px auto -48px;
  }

  .panel {
    padding: 64px 22px 16px;
  }

  .block h2 {
    font-size: 26px;
  }

  .block-body {
    min-height: 48px;
  }

  .block-body p {
    font-size: 16px;
  }

  .register-actions {
    gap: 16px;
  }

  .register-actions img {
    height: 96px;
  }

  .award-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .scope-layout {
    flex-direction: column;
    gap: 28px;
  }

  .scope-ref {
    flex-basis: auto;
    max-width: 100%;
  }

  .scope-main p,
  .contact {
    font-size: 16px;
  }

  .schedule {
    font-size: 15px;
  }

  .schedule thead th {
    font-size: 18px;
  }

  .schedule tbody th {
    width: 72px;
    font-size: 20px;
  }

  .schedule th,
  .schedule td {
    padding: 12px 8px;
  }
}
