:root {
  --brand-logo: url("./static/logo.png");
  --md-sys-color-primary: #d0bcff;
  --md-sys-color-on-primary: #381e72;
  --md-sys-color-primary-container: #4f378b;
  --md-sys-color-on-primary-container: #eaddff;
  --md-sys-color-secondary: #ccc2dc;
  --md-sys-color-on-secondary: #332d41;
  --md-sys-color-secondary-container: #4a4458;
  --md-sys-color-on-secondary-container: #e8def8;
  --md-sys-color-tertiary: #efb8c8;
  --md-sys-color-on-tertiary: #492532;
  --md-sys-color-surface: #141218;
  --md-sys-color-on-surface: #e6e0e9;
  --md-sys-color-on-surface-variant: #cac4d0;
  --md-sys-color-outline: #938f99;
  --md-sys-color-outline-variant: #49454f;
  --md-sys-color-surface-container-lowest: #0f0d13;
  --md-sys-color-surface-container-low: #1d1b20;
  --md-sys-color-surface-container: #211f26;
  --md-sys-color-surface-container-high: #2b2930;
  --md-sys-color-surface-container-highest: #36343b;
  --md-sys-shape-small: 8px;
  --md-sys-shape-medium: 12px;
  --md-sys-shape-large: 16px;
  --md-sys-shape-extra-large: 28px;
  --content-width: 900px;
  --font: "Noto Sans TC", "Roboto", "PingFang TC", "Microsoft JhengHei", sans-serif;
}

* {
  box-sizing: border-box;
  letter-spacing: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 12px;
}

.js.is-loading {
  overflow: hidden;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--md-sys-color-on-surface);
  background: var(--md-sys-color-surface);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  display: block;
}

img {
  max-width: 100%;
}

a {
  color: inherit;
  -webkit-tap-highlight-color: transparent;
}

h1,
h2,
h3,
p {
  margin-top: 0;
  line-break: strict;
  text-wrap: pretty;
}

p {
  line-height: 1.75;
}

.content-container {
  width: min(calc(100% - 48px), var(--content-width));
  margin-inline: auto;
}

.site-loader {
  position: fixed;
  z-index: 2000;
  inset: 0;
  display: none;
  place-items: center;
  padding: 24px;
  color: var(--md-sys-color-on-surface);
  background: var(--md-sys-color-surface-container-lowest);
  opacity: 1;
  visibility: visible;
  overscroll-behavior: contain;
  transition: opacity 320ms cubic-bezier(0.2, 0, 0, 1), visibility 0s linear 320ms;
}

.js .site-loader {
  display: grid;
}

.js.is-loaded .site-loader {
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
}

.js.is-loading body > :not(.site-loader) {
  pointer-events: none;
  user-select: none;
}

.site-loader-content {
  display: flex;
  width: min(100%, 320px);
  align-items: center;
  flex-direction: column;
  text-align: center;
}

.site-loader-mark {
  position: relative;
  display: grid;
  width: 112px;
  height: 112px;
  margin-bottom: 22px;
  place-items: center;
  animation: loader-mark-in 520ms cubic-bezier(0.2, 0, 0, 1) both;
}

.site-loader-mark img {
  width: 84px;
  height: 84px;
  object-fit: contain;
  filter: drop-shadow(0 10px 24px rgba(208, 188, 255, 0.2));
}

.site-loader-ring {
  position: absolute;
  inset: 0;
  border: 2px solid rgba(208, 188, 255, 0.16);
  border-top-color: var(--md-sys-color-primary);
  border-right-color: rgba(239, 184, 200, 0.64);
  border-radius: 50%;
  animation: loader-ring-turn 1.4s linear infinite;
}

.site-loader-brand {
  display: grid;
  gap: 4px;
  animation: loader-copy-in 440ms 100ms cubic-bezier(0.2, 0, 0, 1) both;
}

.site-loader-brand strong {
  color: #ffffff;
  font-family: "Roboto", var(--font);
  font-size: 24px;
  font-weight: 500;
  line-height: 1.2;
}

.site-loader-brand span {
  color: var(--md-sys-color-on-surface-variant);
  font-size: 14px;
  font-weight: 500;
}

.site-loader-progress {
  position: relative;
  width: 168px;
  height: 3px;
  margin-top: 28px;
  overflow: hidden;
  background: rgba(208, 188, 255, 0.16);
  border-radius: 2px;
}

.site-loader-progress span {
  position: absolute;
  inset: 0 auto 0 0;
  width: 46%;
  background: var(--md-sys-color-primary);
  border-radius: inherit;
  animation: loader-progress 1.25s cubic-bezier(0.65, 0, 0.35, 1) infinite;
}

@keyframes loader-ring-turn {
  to {
    transform: rotate(360deg);
  }
}

@keyframes loader-progress {
  0% {
    transform: translateX(-115%);
  }

  55% {
    transform: translateX(80%);
  }

  100% {
    transform: translateX(235%);
  }
}

@keyframes loader-mark-in {
  from {
    opacity: 0;
    transform: scale(0.92);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes loader-copy-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  color: var(--md-sys-color-on-primary);
  background: var(--md-sys-color-primary);
  border-radius: var(--md-sys-shape-small);
  transform: translateY(-160%);
  transition: transform 180ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.top-app-bar {
  display: flex;
  width: 100%;
  height: 72px;
  align-items: center;
  justify-content: space-between;
  padding-inline: max(24px, calc((100% - var(--content-width)) / 2));
  color: var(--md-sys-color-on-surface);
  background: var(--md-sys-color-surface-container);
  border-bottom: 1px solid var(--md-sys-color-outline-variant);
}

.hero-logo {
  display: block;
  flex: 0 0 auto;
  background-image: var(--brand-logo);
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
}

.app-brand {
  display: inline-flex;
  max-width: 100%;
  min-width: 0;
  align-items: center;
  text-decoration: none;
}

.app-brand-logo {
  max-width: 100%;
  width: auto;
  height: 52px;
  object-fit: contain;
}

.hero {
  position: relative;
  display: grid;
  min-height: 500px;
  place-items: center;
  overflow: hidden;
  background-color: var(--md-sys-color-surface-container-lowest);
  background-image: url("./static/配色.png");
  background-position: center bottom;
  background-size: cover;
}

.hero::before {
  position: absolute;
  inset: 0;
  content: "";
  background: rgba(20, 18, 24, 0.36);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  width: min(calc(100% - 48px), 900px);
  flex-direction: column;
  align-items: center;
  padding: 56px 0 60px;
  text-align: center;
}

.hero-logo {
  width: 88px;
  height: 88px;
  margin-bottom: 14px;
  filter: drop-shadow(0 12px 22px rgba(208, 188, 255, 0.2));
}

.section-label {
  font-family: "Roboto", var(--font);
  font-weight: 700;
}

.hero h1 {
  width: 100%;
  margin-bottom: 2px;
  color: #ffffff;
  font-family: "Roboto", var(--font);
  font-size: 45px;
  font-weight: 500;
  line-height: 1.05;
  overflow-wrap: anywhere;
}

.hero-name {
  margin-bottom: 20px;
  color: var(--md-sys-color-on-surface-variant);
  font-size: 13px;
  font-weight: 600;
}

.hero h2 {
  max-width: 820px;
  margin-bottom: 14px;
  color: var(--md-sys-color-on-surface);
  font-size: 36px;
  line-height: 1.35;
}

.hero-lead {
  max-width: 680px;
  margin-bottom: 0;
  color: var(--md-sys-color-on-surface-variant);
  font-size: 17px;
}

.md3-filled-button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 22px;
  border: 0;
  border-radius: 24px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  transition: background-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.about-section {
  padding: 64px 0 70px;
  background: var(--md-sys-color-surface);
}

.section-heading {
  max-width: 820px;
}

.section-label {
  margin-bottom: 7px;
  color: var(--md-sys-color-primary);
  font-size: 12px;
}

.section-heading h2 {
  margin-bottom: 12px;
  font-size: 36px;
  line-height: 1.3;
}

.section-heading p:last-child {
  margin-bottom: 0;
  color: var(--md-sys-color-on-surface-variant);
  font-size: 18px;
}

.origin-surface {
  max-width: 960px;
  margin-top: 30px;
  padding: 24px 0;
  color: var(--md-sys-color-on-surface-variant);
  border-top: 1px solid var(--md-sys-color-outline-variant);
  border-bottom: 1px solid var(--md-sys-color-outline-variant);
}

.origin-surface p {
  margin: 0;
  font-size: 20px;
}

.info-grid {
  display: grid;
  grid-template-columns: 1fr;
  margin-top: 0;
}

.md3-detail {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
  padding: 28px 0;
  border-bottom: 1px solid var(--md-sys-color-outline-variant);
}

.md3-detail:nth-child(odd) {
  border-right: 0;
}

.md3-detail h3 {
  margin: 0;
  color: var(--md-sys-color-primary);
  font-family: "Roboto", var(--font);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.5;
  text-transform: uppercase;
}

.md3-detail p {
  margin-bottom: 0;
  color: var(--md-sys-color-on-surface-variant);
  font-size: 20px;
}

.join-section {
  padding: 52px 24px;
  color: var(--md-sys-color-on-primary-container);
  background: var(--md-sys-color-primary-container);
}

.join-content {
  display: flex;
  width: min(100%, 820px);
  margin-inline: auto;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.join-label {
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 700;
}

.join-content h2 {
  margin-bottom: 12px;
  font-size: 34px;
  line-height: 1.35;
}

.join-description {
  max-width: 620px;
  margin-bottom: 28px;
  font-size: 17px;
}

.join-facts {
  display: grid;
  width: 100%;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0 0 30px;
  padding: 18px 0;
  border-top: 1px solid rgba(234, 221, 255, 0.28);
  border-bottom: 1px solid rgba(234, 221, 255, 0.28);
}

.join-facts div {
  padding-inline: 14px;
}

.join-facts div + div {
  border-left: 1px solid rgba(234, 221, 255, 0.22);
}

.join-facts dt {
  font-size: 13px;
  font-weight: 500;
}

.join-facts dd {
  margin: 6px 0 0;
  font-size: 18px;
  font-weight: 700;
}

.md3-filled-button {
  color: var(--md-sys-color-on-primary);
  background: var(--md-sys-color-primary);
}

.md3-filled-button:not(.is-locked):hover,
.md3-filled-button:not(.is-locked):focus-visible {
  background: #dac7ff;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.28);
}

.md3-filled-button.is-locked {
  color: rgba(234, 221, 255, 0.62);
  background: rgba(230, 224, 233, 0.12);
  box-shadow: none;
  cursor: not-allowed;
  pointer-events: none;
}

.join-availability {
  margin: 14px 0 0;
  color: rgba(234, 221, 255, 0.82);
  font-size: 14px;
  font-weight: 500;
}

.discord-icon {
  width: 19px;
  height: 19px;
  fill: currentColor;
}

:focus-visible {
  outline: 3px solid var(--md-sys-color-tertiary);
  outline-offset: 3px;
}

.js .reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 480ms ease, transform 480ms ease;
}

.js .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 760px) {
  .content-container {
    width: min(calc(100% - 32px), var(--content-width));
  }

  .top-app-bar {
    height: 64px;
    padding-inline: 16px;
  }

  .hero {
    min-height: 0;
  }

  .hero-content {
    width: min(calc(100% - 32px), 900px);
    padding: 62px 0 66px;
  }

  .hero-logo {
    width: 84px;
    height: 84px;
  }

  .hero h1 {
    font-size: 36px;
  }

  .hero h2 {
    font-size: 31px;
  }

  .hero-lead {
    font-size: 16px;
  }

  .about-section {
    padding: 64px 0 70px;
  }

  .section-heading h2 {
    font-size: 32px;
  }

  .info-grid {
    grid-template-columns: 1fr;
  }

  .md3-detail {
    grid-template-columns: 88px minmax(0, 1fr);
    gap: 20px;
    padding: 24px 0;
    border-right: 0;
    border-bottom: 1px solid var(--md-sys-color-outline-variant);
  }

  .md3-detail:nth-child(odd) {
    border-right: 0;
  }

  .md3-detail:last-child {
    border-bottom: 0;
  }

  .join-section {
    padding: 48px 16px;
  }

  .join-content h2 {
    font-size: 30px;
  }

  .join-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 0;
  }

  .join-facts div {
    padding: 16px 10px;
  }

  .join-facts div:nth-child(3) {
    border-top: 1px solid rgba(234, 221, 255, 0.22);
    border-left: 0;
  }

  .join-facts div:nth-child(4) {
    border-top: 1px solid rgba(234, 221, 255, 0.22);
  }

  .md3-filled-button {
    width: min(100%, 360px);
  }
}

@media (max-width: 480px) {
  .app-brand-logo {
    height: 44px;
  }

  .hero-content {
    padding: 52px 0 58px;
  }

  .hero-logo {
    width: 78px;
    height: 78px;
    margin-bottom: 13px;
  }

  .hero h1 {
    font-size: 36px;
  }

  .hero-name {
    margin-bottom: 18px;
    font-size: 11px;
  }

  .hero h2 {
    font-size: 30px;
  }

  .hero-lead {
    font-size: 15px;
  }

  .about-section {
    padding: 54px 0 60px;
  }

  .section-heading h2 {
    font-size: 31px;
  }

  .section-heading p:last-child {
    font-size: 17px;
  }

  .origin-surface {
    margin-top: 28px;
    padding: 20px 0;
  }

  .origin-surface p {
    font-size: 18px;
  }

  .info-grid {
    margin-top: 14px;
  }

  .md3-detail {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 24px 0;
  }

  .md3-detail p {
    font-size: 18px;
  }

  .join-section {
    padding: 42px 16px;
  }

  .join-content h2 {
    font-size: 28px;
  }

  .join-description {
    font-size: 16px;
  }

  .join-facts dd {
    font-size: 17px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }

  .site-loader-mark,
  .site-loader-ring,
  .site-loader-brand,
  .site-loader-progress span {
    animation: none;
  }
}
