@font-face {
  font-family: Nimbus;
  src: url("assets/sans.otf") format("opentype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: Nimbus;
  src: url("assets/sans-bold.otf") format("opentype");
  font-weight: 700;
  font-display: swap;
}
:root {
  font-family: Nimbus, Arial, sans-serif;
  font-synthesis: none;
  color: #fff;
  background: #02041a;
  color-scheme: dark;
  --canvas: #02041a;
  --light: #0874cc;
  --accent: #df2b0c;
  --hue: 0deg;
  --muted: #a1adc4;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select {
  font: inherit;
}
button,
a,
input,
select {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: default;
  opacity: 0.55;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
.character:focus-visible {
  outline: 3px solid white;
  outline-offset: 5px;
}
a {
  color: inherit;
}
button {
  color: inherit;
}
button:active:not(:disabled) {
  transform: scale(0.97);
}
[hidden] {
  display: none !important;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip {
  position: absolute;
  z-index: 10;
  top: 10px;
  left: 10px;
  padding: 12px;
  background: #fff;
  color: #000;
  transform: translateY(-160%);
}
.skip:focus {
  transform: none;
}
body[data-theme="pink"] {
  --canvas: #130018;
  --light: #ab096d;
  --accent: #b51263;
  --hue: 90deg;
}
body[data-theme="orange"] {
  --canvas: #150500;
  --light: #ce5e00;
  --accent: #9b4400;
  --hue: 175deg;
}
body[data-theme="violet"] {
  --canvas: #090119;
  --light: #6926e8;
  --accent: #6a26bd;
  --hue: 45deg;
}
.scene {
  position: relative;
  min-height: 850px;
  height: 100svh;
  overflow: hidden;
  border-radius: 0 0 24px 24px;
  isolation: isolate;
  background:
    radial-gradient(
      ellipse 45% 25% at 52% -3%,
      color-mix(in srgb, var(--light) 55%, transparent),
      transparent 100%
    ),
    radial-gradient(
      ellipse 75% 21% at 50% 100%,
      color-mix(in srgb, var(--light) 55%, transparent),
      transparent 100%
    ),
    var(--canvas);
}
.scene::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 78% -10% 0;
  background: repeating-linear-gradient(
    178deg,
    transparent 0 9px,
    #ffffff03 10px,
    transparent 11px 18px
  );
  mask-image: linear-gradient(transparent, #000);
}
.header {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 1.5% 0 5.2%;
  z-index: 4;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-size: 28px;
  letter-spacing: -0.04em;
  font-weight: 700;
  white-space: nowrap;
  min-height: 50px;
}
.brand-accent {
  color: #ff6149;
}
.brand-face {
  width: 46px;
  height: 46px;
  border: 1px solid #183553;
  box-shadow: 0 0 12px #126fe326 inset;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  position: relative;
  background: #010515;
}
.brand-face i {
  width: 9px;
  height: 11px;
  border-radius: 50%;
  background: #fff;
  position: relative;
}
.brand-face i::after {
  content: "";
  position: absolute;
  width: 4px;
  height: 5px;
  border-radius: 50%;
  background: #05091d;
  left: 3px;
  top: 3px;
}
.brand-face b {
  position: absolute;
  top: 29px;
  width: 10px;
  height: 5px;
  border-radius: 0 0 8px 8px;
  background: #f56338;
}
.header nav {
  display: flex;
  gap: 30px;
  align-items: center;
  margin-left: auto;
  margin-right: auto;
}
.header nav a,
.header nav button {
  font-size: 18px;
  background: none;
  border: 0;
  text-decoration: none;
  padding: 12px 4px;
  color: var(--muted);
  white-space: nowrap;
  min-height: 44px;
}
.header nav a[aria-current],
.header nav button:hover {
  color: #fff;
}
.start {
  display: flex;
  align-items: center;
  gap: 18px;
  background: var(--accent);
  border: 0;
  border-radius: 40px;
  min-height: 54px;
  padding: 6px 38px 6px 6px;
  font-weight: 700;
  font-size: 18px;
  box-shadow: 0 0 24px color-mix(in srgb, var(--light) 35%, transparent);
}
.start > span {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #02041a;
  color: #ff9d80;
  font-size: 26px;
  transition: transform 0.2s;
}
.start:hover > span {
  transform: rotate(-35deg);
}
.intro {
  position: absolute;
  left: 5.2%;
  top: 16.8%;
  width: 30%;
  max-width: 460px;
  font-size: clamp(18px, 1.48vw, 24px);
  line-height: 1.55;
  color: var(--muted);
  margin: 0;
  z-index: 2;
}
h1 {
  position: absolute;
  left: 5.2%;
  top: 43.8%;
  margin: 0;
  font-size: clamp(52px, 5vw, 80px);
  line-height: 1.1;
  font-weight: 400;
  letter-spacing: -0.055em;
  color: var(--muted);
  z-index: 2;
  pointer-events: none;
}
h1 strong {
  font-weight: 400;
  color: #fff;
}
.character {
  position: absolute;
  width: min(43vw, calc((100svh - 210px) * 0.667));
  min-width: 420px;
  left: 52%;
  bottom: 12px;
  transform: translateX(-50%);
  aspect-ratio: 2/3;
  outline-offset: -10px;
  touch-action: pan-y;
  z-index: 1;
  border-radius: 45%;
}
.figure {
  position: relative;
  width: 100%;
  height: 100%;
  filter: hue-rotate(var(--hue));
}
.character-art {
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
}
.eye {
  position: absolute;
  top: 17%;
  width: 25.4%;
  height: 17%;
  border-radius: 50%;
  overflow: hidden;
  pointer-events: none;
}
.eye-left {
  left: 23.7%;
}
.eye-right {
  left: 50.65%;
}
.pupil {
  position: absolute;
  left: 14%;
  top: 14%;
  width: 72%;
  height: 72%;
  border-radius: 50%;
  background: radial-gradient(
    ellipse at 50% 48%,
    #000b14 0 55%,
    #026191 58%,
    #168ebd 67%,
    #04223d 76%,
    #000817 88%
  );
  box-shadow: 0 1px 3px #001325;
  transform: translate(var(--eye-x, 0px), var(--eye-y, 0px));
  will-change: transform;
}
.pupil::before {
  content: "";
  position: absolute;
  left: 17%;
  top: 13%;
  width: 24%;
  height: 27%;
  border-radius: 7px;
  background: linear-gradient(135deg, #fff, #c9e4ec99);
  filter: blur(0.3px);
}
.pupil::after {
  content: "";
  position: absolute;
  right: 18%;
  bottom: 18%;
  width: 9%;
  height: 9%;
  border-radius: 50%;
  background: #70caed75;
}
.art-error {
  position: absolute;
  inset: 35% 8% auto;
  padding: 24px;
  font-size: 20px;
  line-height: 1.5;
  text-align: center;
  background: var(--canvas);
  border: 1px solid var(--muted);
  border-radius: 16px;
}
.art-unavailable .figure {
  visibility: hidden;
}
.themes {
  position: absolute;
  right: 1.5%;
  top: 31.5%;
  display: flex;
  flex-direction: column;
  gap: 20px;
  z-index: 3;
}
.theme {
  padding: 0;
  background: #02041a;
  border: 1px solid #212037;
  width: clamp(76px, 7vw, 112px);
  aspect-ratio: 1;
  border-radius: 22px;
  position: relative;
  transition:
    border-color 0.18s,
    box-shadow 0.18s;
  overflow: hidden;
}
.theme:hover {
  border-color: #8b9bb6;
}
.theme[aria-pressed="true"] {
  border: 2px solid var(--light);
  box-shadow: 0 0 18px color-mix(in srgb, var(--light) 55%, transparent);
}
.miniature {
  position: absolute;
  inset: 10% 14% auto;
  aspect-ratio: 2/3;
  filter: hue-rotate(var(--mini-hue, 0deg));
  pointer-events: none;
}
.miniature img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: fill;
}
.pink {
  --mini-hue: 90deg;
}
.orange {
  --mini-hue: 175deg;
}
.violet {
  --mini-hue: 45deg;
}
.mini-eye {
  position: absolute;
  top: 19.4%;
  width: 17.8%;
  height: 12%;
  background: radial-gradient(circle, #001423 52%, #028dc5 56%, #001123 76%);
  border-radius: 50%;
}
.mini-eye::after {
  content: "";
  position: absolute;
  left: 19%;
  top: 15%;
  width: 27%;
  height: 27%;
  background: white;
  border-radius: 50%;
}
.mini-eye.left {
  left: 27.5%;
}
.mini-eye.right {
  left: 54.5%;
}
.theme-label {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 5px 0 3px;
  background: #000b;
  font-size: 11px;
  opacity: 0;
  transition: opacity 0.15s;
}
.theme:hover .theme-label,
.theme:focus-visible .theme-label {
  opacity: 1;
}
.scene-footer {
  position: absolute;
  bottom: 34px;
  left: 5.2%;
  right: 1.5%;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  z-index: 3;
}
.footnote {
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: 390px;
}
.footnote svg {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
}
.footnote b {
  font-size: 16px;
}
.footnote span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
  margin-top: 6px;
}
.pause {
  background: transparent;
  border: 0;
  min-height: 44px;
  padding: 10px;
  color: var(--muted);
  font-size: 13px;
}
.pause:hover {
  color: white;
}
.pause span {
  margin-left: 8px;
}
.pointer-halo {
  position: absolute;
  left: 0;
  top: 0;
  width: 52px;
  height: 52px;
  border: 2px solid var(--accent);
  border-radius: 50%;
  pointer-events: none;
  z-index: 5;
  opacity: 0;
  transform: translate(var(--pointer-x, 0px), var(--pointer-y, 0px));
  box-shadow: 0 0 24px color-mix(in srgb, var(--light) 45%, transparent);
}
.pointer-halo::after {
  content: "";
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: white;
  right: 1px;
  top: 2px;
}
.tracking .pointer-halo {
  opacity: 1;
}
.template-note {
  padding: 16px 5.2%;
  color: #a1adc4;
  background: #02041a;
  font-size: 12px;
  line-height: 1.7;
}
.template-note a {
  display: inline-block;
  min-height: 44px;
  padding: 12px 4px;
}
.template-note noscript {
  display: block;
}
dialog {
  width: min(460px, calc(100% - 32px));
  max-height: calc(100svh - 32px);
  padding: 32px;
  border: 1px solid #394156;
  border-radius: 16px;
  background: #0b1020;
  color: #fff;
  overflow: auto;
}
dialog::backdrop {
  background: #000a;
}
dialog h2 {
  font-size: 30px;
  letter-spacing: -0.035em;
  line-height: 1.2;
  margin: 12px 40px 20px 0;
}
dialog p {
  font-size: 16px;
  line-height: 1.55;
  color: #bdc6d8;
  overflow-wrap: anywhere;
}
dialog .close {
  position: absolute;
  right: 12px;
  top: 12px;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: #1a2335;
  font-size: 26px;
}
form {
  display: grid;
  gap: 12px;
}
form label {
  margin-top: 4px;
}
input,
select {
  width: 100%;
  min-height: 48px;
  padding: 10px 12px;
  background: #020715;
  border: 1px solid #566175;
  border-radius: 8px;
  color: #fff;
}
form .hint {
  font-size: 13px;
  margin: 0 0 6px;
}
.download {
  min-height: 48px;
  border: 0;
  border-radius: 30px;
  background: #fff;
  color: #070a16;
  font-weight: 700;
  padding: 12px;
}
#download-status {
  min-height: 24px;
  margin: 0;
  font-size: 14px;
}
@media (max-width: 1100px) {
  .header nav {
    gap: 14px;
  }
  .header nav a,
  .header nav button {
    font-size: 16px;
  }
  .brand {
    font-size: 24px;
  }
  .start {
    padding-right: 22px;
    font-size: 16px;
  }
  .character {
    left: 55%;
    width: 48vw;
    min-width: 400px;
  }
  .intro {
    width: 33%;
  }
  h1 {
    font-size: 5.3vw;
  }
  .footnote {
    max-width: 300px;
  }
  .footnote b {
    font-size: 14px;
  }
  .themes {
    gap: 16px;
  }
}
@media (max-width: 760px) {
  .scene {
    height: auto;
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    padding: 0 20px 18px;
    border-radius: 0 0 20px 20px;
    background:
      radial-gradient(
        ellipse 80% 24% at 50% 74%,
        color-mix(in srgb, var(--light) 55%, transparent),
        transparent
      ),
      var(--canvas);
  }
  .header {
    padding: 16px 0 0;
    flex-wrap: wrap;
    gap: 12px;
  }
  .brand {
    font-size: 23px;
    gap: 7px;
  }
  .brand-face {
    width: 36px;
    height: 40px;
  }
  .start {
    min-height: 46px;
    font-size: 14px;
    gap: 8px;
    padding: 5px 13px 5px 5px;
  }
  .start > span {
    width: 34px;
    height: 34px;
  }
  .header nav {
    order: 3;
    width: 100%;
    justify-content: space-between;
    gap: 0;
    margin: 0;
    border-bottom: 1px solid #ffffff1a;
  }
  .header nav a,
  .header nav button {
    font-size: 13px;
    padding: 12px 2px;
  }
  .intro {
    position: static;
    order: 2;
    width: auto;
    font-size: 16px;
    line-height: 1.5;
    margin: 20px 0 0;
    max-width: 420px;
  }
  h1 {
    position: static;
    order: 1;
    font-size: 44px;
    line-height: 1.05;
    margin: 28px 0 0;
    letter-spacing: -0.05em;
  }
  h1 br {
    display: none;
  }
  h1 strong {
    display: block;
  }
  h1 strong br {
    display: initial;
  }
  .character {
    position: relative;
    order: 3;
    left: auto;
    bottom: auto;
    transform: none;
    width: min(100%, 360px);
    min-width: 0;
    align-self: center;
    margin: 18px 0 0;
  }
  .themes {
    position: static;
    order: 4;
    flex-direction: row;
    justify-content: center;
    gap: 12px;
    margin: 8px 0 18px;
  }
  .theme {
    width: 64px;
    border-radius: 16px;
  }
  .theme-label {
    opacity: 1;
    font-size: 10px;
  }
  .scene-footer {
    position: static;
    order: 5;
    align-items: center;
    gap: 8px;
  }
  .footnote {
    gap: 10px;
    max-width: 220px;
  }
  .footnote svg {
    width: 28px;
    height: 28px;
  }
  .footnote b {
    font-size: 12px;
  }
  .footnote span {
    font-size: 11px;
  }
  .pause {
    max-width: 98px;
    font-size: 12px;
    text-align: right;
  }
  .pointer-halo {
    display: none;
  }
  .template-note {
    padding: 12px 20px;
  }
  dialog {
    padding: 24px;
  }
}
@media (max-width: 360px) {
  .scene {
    padding-inline: 16px;
  }
  .brand {
    font-size: 21px;
  }
  .brand-face {
    width: 30px;
  }
  .header {
    gap: 8px;
  }
  .start {
    font-size: 13px;
    padding-right: 10px;
    gap: 6px;
  }
  .start > span {
    width: 30px;
    height: 30px;
  }
  h1 {
    font-size: 40px;
  }
  .themes {
    gap: 8px;
  }
  .theme {
    width: 60px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
  .pointer-halo {
    display: none;
  }
}
