/* Bungee: David Jonathan Ross, SIL OFL 1.1. See fonts/OFL-Bungee.txt.
   Dela Gothic One: The Dela Gothic Project Authors, SIL OFL 1.1. See fonts/OFL-DelaGothicOne.txt. */
@font-face {
  font-family: "Bungee";
  src: url("fonts/bungee-subset.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0020, U+0041-005A;
}
@font-face {
  font-family: "DelaGothic";
  src: url("fonts/dela-subset.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #14110e;
  --paper: #f4efe4;
  --magenta: #ff2ea8;
  --gold: #ffe14a;
  --teal: #14f0dc;
  --violet: #14061f;
  --display: "Bungee", "Arial Black", sans-serif;
  --kana: "DelaGothic", "Hiragino Sans", "Yu Gothic", "PingFang SC", sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  min-height: 100dvh;
  overflow: hidden;
  color: var(--paper);
  background: var(--violet);
  font-family: var(--kana);
}

.title-card { position: relative; min-height: 100dvh; }
.stage { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
.speed {
  position: absolute;
  inset: -30%;
  background: repeating-conic-gradient(from -20deg at 8% 78%, transparent 0deg 7deg, rgba(255, 225, 74, .72) 7deg 8.2deg);
  -webkit-mask-image: radial-gradient(circle at 8% 78%, #000 0 18%, transparent 58%);
  mask-image: radial-gradient(circle at 8% 78%, #000 0 18%, transparent 58%);
}
.wedge {
  position: absolute;
  top: -8%;
  right: -12%;
  width: 58vmin;
  height: 58vmin;
  background: var(--teal);
  border: 8px solid var(--ink);
  transform: rotate(18deg);
  box-shadow: 10px 10px 0 var(--ink);
}
.band {
  position: absolute;
  left: -18%;
  top: 30%;
  width: 140%;
  height: 46%;
  background: var(--magenta);
  border-top: 8px solid var(--ink);
  border-bottom: 8px solid var(--ink);
  transform: rotate(-8deg);
  box-shadow: 0 0 0 7px var(--gold), 0 14px 0 var(--ink);
}
.dots {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(0, 0, 0, .55) 1.15px, transparent 1.25px);
  background-size: 7px 7px;
  mix-blend-mode: multiply;
  opacity: .55;
}

.title-card main {
  position: relative;
  z-index: 1;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: max(20px, env(safe-area-inset-top)) 7vw max(24px, env(safe-area-inset-bottom));
}
.gogo, .dodo, h1, .sub { width: max-content; max-width: 100%; }
.gogo, .dodo {
  margin: 0;
  font-family: var(--kana);
  font-weight: 400;
  line-height: .85;
  color: var(--paper);
  -webkit-text-stroke: 8px var(--ink);
  paint-order: stroke fill;
  letter-spacing: .04em;
}
.gogo {
  font-size: clamp(52px, 9vw, 120px);
  transform: rotate(-6deg);
  transform-origin: left center;
  text-shadow: 6px 6px 0 var(--gold);
}
.gogo span, .dodo span { display: inline-block; }
.gogo span { animation: menace 1.05s steps(2, end) infinite; }
.gogo span:nth-child(2) { animation-delay: .08s; }
.gogo span:nth-child(3) { animation-delay: .16s; }
.gogo span:nth-child(4) { animation-delay: .24s; }
.gogo span:nth-child(5) { animation-delay: .32s; }
h1 { margin: 1.6vh 0 0; }
.en {
  display: block;
  font-family: var(--display);
  font-size: clamp(68px, 13vw, 156px);
  line-height: .92;
  color: var(--gold);
  -webkit-text-stroke: 7px var(--ink);
  paint-order: stroke fill;
  text-shadow: 8px 8px 0 var(--ink);
  transform: rotate(-3deg);
  transform-origin: left center;
}
.cosmos {
  font-size: clamp(40px, 7.4vw, 92px);
  line-height: 1;
  color: var(--teal);
  margin: .16em 0 0 .08em;
}
.sub {
  margin: clamp(18px, 2.8vh, 36px) 0 0 .12em;
  font-family: var(--kana);
  font-size: clamp(26px, 3.4vw, 44px);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: .16em;
  color: var(--paper);
  -webkit-text-stroke: 6px var(--ink);
  paint-order: stroke fill;
  text-shadow: 4px 4px 0 var(--ink);
}
.dodo {
  margin-top: clamp(18px, 2.6vh, 32px);
  font-size: clamp(28px, 4vw, 48px);
  color: var(--gold);
  transform: rotate(4deg);
  transform-origin: left center;
}
.dodo span { animation: thud 1.4s steps(2, end) infinite; }
.dodo span:nth-child(2) { animation-delay: .1s; }
.dodo span:nth-child(3) { animation-delay: .2s; }
.dodo span:nth-child(4) { animation-delay: .3s; }

.tbc {
  position: fixed;
  z-index: 2;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom));
  width: min(280px, 72vw);
  filter: drop-shadow(6px 6px 0 var(--ink));
}
.tbc svg { display: block; width: 100%; height: auto; }
.tbc text { font-family: var(--display); font-size: 20px; fill: var(--ink); }

.entries { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 3vh; }
.entry {
  display: inline-flex;
  align-items: center;
  min-height: 64px;
  padding: 10px 16px;
  border: 5px solid var(--ink);
  background: var(--gold);
  color: var(--ink);
  text-decoration: none;
  font-weight: 900;
  box-shadow: 6px 6px 0 var(--ink);
}

@keyframes menace {
  0%, 45% { transform: translateY(0) scale(1); }
  55%, 100% { transform: translateY(-8%) scale(1.08); }
}
@keyframes thud {
  0%, 60% { transform: scale(1); }
  70%, 100% { transform: scale(1.12) rotate(-2deg); }
}

@media (max-width: 720px) {
  .band { top: 24%; height: 46%; transform: rotate(-5deg); }
  .wedge { width: 42vmin; height: 42vmin; }
  .gogo { -webkit-text-stroke-width: 5px; text-shadow: 4px 4px 0 var(--gold); }
  .en { -webkit-text-stroke-width: 4px; text-shadow: 5px 5px 0 var(--ink); }
  .sub { margin-top: 16px; letter-spacing: .1em; -webkit-text-stroke-width: 4px; }
  .dodo { margin-top: 16px; }
  .tbc { width: min(230px, 78vw); }
}

@media (prefers-reduced-motion: reduce) {
  .gogo span, .dodo span { animation: none; }
}
