:root {
  --yellow: #fede27;
  --ink: #121212;
  --paper: #ffffff;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--paper);
  color: var(--ink);
  font-family: "PingFang TC", "Noto Sans TC", "Dosis", sans-serif;
  letter-spacing: 0.04em;
}

main {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px 20px 48px;
  gap: 24px;
}

.character-frame {
  width: min(72vw, 420px);
  aspect-ratio: 1;
  background: var(--yellow);
}

.character {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
}

.character.is-loaded {
  opacity: 1;
}

h1 {
  margin: 0;
  font-size: clamp(32px, 6vw, 40px);
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
}

.links {
  list-style: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin: 0;
  padding: 0;
}

.links a {
  display: inline-block;
  min-width: 160px;
  padding: 12px 28px;
  border-radius: 4px;
  background: var(--ink);
  color: var(--paper);
  font-size: 18px;
  font-weight: 500;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
}
