@font-face {
  font-family: 'Fredoka';
  src: url('/fonts/fredoka-latin.woff2') format('woff2');
  font-weight: 300 700;
  font-display: swap;
}

@font-face {
  font-family: 'Nunito';
  src: url('/fonts/nunito-latin.woff2') format('woff2');
  font-weight: 200 1000;
  font-display: swap;
}

@font-face {
  font-family: 'ZCOOL KuaiLe';
  src: url('/fonts/zcool-kuaile-tag.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
  unicode-range: U+4E2D, U+4ECA, U+6587, U+65E5, U+82F1;
}

:root {
  --bg: #FBFCFF;
  --navy: #14295C;
  --ink: #2B3F6E;
  --muted: #4A5D8A;
  --blue: #1E63C4;
  --blue-press: #174F9E;
  --red: #D9322B;
  --white: #FFFFFF;
  --stripe-padding: 28px;
  --content-gap: 26px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  font-family: 'Nunito', 'PingFang SC', 'Hiragino Sans GB', 'Noto Sans SC', 'Microsoft YaHei', sans-serif;
}

.stripes {
  flex: none;
  position: relative;
}

.stripes::before {
  content: '';
  display: block;
  height: 44px;
  background: linear-gradient(
    var(--blue) 0 18px, transparent 18px 25px,
    var(--blue) 25px 31px, transparent 31px 38px,
    var(--blue) 38px 44px
  );
}

.stripes-top { padding-top: calc(var(--stripe-padding) + env(safe-area-inset-top)); }
.stripes-bottom { padding-bottom: calc(var(--stripe-padding) + env(safe-area-inset-bottom)); }
.stripes-bottom::before { transform: scaleY(-1); }

.landing {
  flex: 1;
  width: 100%;
  max-width: 480px;
  margin-inline: auto;
  padding: 24px 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: var(--content-gap);
  text-align: center;
}

h1 {
  margin: 0;
  color: var(--navy);
  font-family: 'Fredoka', sans-serif;
  font-size: clamp(44px, 14vw, 56px);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -1px;
}

.wordmark {
  position: relative;
}

.wordmark-baseline {
  display: inline-block;
  width: 0;
  height: 0;
  vertical-align: baseline;
}

.wordmark-art, .wordmark-replay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.wordmark-art {
  overflow: visible;
  fill: var(--navy);
  pointer-events: none;
}

.wordmark-art[hidden] { display: none; }

.wordmark[data-melting] :is(.wordmark-y, .wordmark-i) {
  color: transparent;
}

.wordmark-replay {
  border: 0;
  border-radius: 14px;
  padding: 0;
  background: transparent;
  cursor: pointer;
}

.intro {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.tag {
  padding: 6px 16px 8px;
  border-radius: 14px 14px 14px 4px;
  color: var(--white);
  background: var(--red);
  font-family: 'ZCOOL KuaiLe', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  font-size: 30px;
  line-height: 1.1;
}

.tagline {
  margin: 0;
  min-height: 2lh;
  color: var(--ink);
  font-size: 19px;
  font-weight: 500;
  line-height: 1.45;
  text-wrap: balance;
}

.play {
  margin-block-start: 14px;
  display: inline-grid;
  place-items: center;
  min-width: 160px;
  height: 58px;
  padding-inline: 34px;
  border-radius: 999px;
  color: var(--white);
  background: var(--blue);
  font-size: 18px;
  font-weight: 800;
  text-decoration: none;
}

.play:hover, .play:active { background: var(--blue-press); }
.play:active { transform: scale(0.98); }

a:focus-visible, .wordmark-replay:focus-visible {
  outline: 3px solid var(--navy);
  outline-offset: 3px;
}

footer {
  padding: 8px 16px 16px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  line-height: 20px;
}

footer a {
  color: inherit;
  text-decoration: none;
}

footer a:hover, footer a:focus-visible { text-decoration: underline; }

@media (width >= 480px) {
  .tagline { min-height: 1lh; }
}

@media (height < 640px) {
  :root {
    --stripe-padding: 16px;
    --content-gap: 18px;
  }
}
