:root {
  color-scheme: light;
  font-family: "Lucida Grande", "Lucida Sans Unicode", Helvetica, Arial, sans-serif;
  color: #313943;
  background: #21092f;
  -webkit-font-smoothing: antialiased;
}

* {
  box-sizing: border-box;
}

body {
  display: grid;
  min-height: 100svh;
  margin: 0;
  padding: clamp(1rem, 5vw, 4.5rem) clamp(.75rem, 4vw, 3rem);
  place-items: center;
  isolation: isolate;
}

.aurora {
  position: fixed;
  z-index: -1;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 15% 74%, #76216d, transparent 50%),
    radial-gradient(ellipse at 81% 24%, #432373, transparent 54%),
    #0b071f;
}

.aurora::before {
  position: absolute;
  inset: -3%;
  background: url("aurora.webp") center / cover no-repeat;
  animation: sky-drift 22s ease-in-out infinite alternate;
  content: "";
}

.aurora-mist {
  position: absolute;
  inset: -22% -16%;
  background: radial-gradient(ellipse 43% 12% at center, var(--mist-core), var(--mist-halo) 48%, transparent 100%);
  mix-blend-mode: screen;
  transform: translate(var(--mist-x), var(--mist-y)) rotate(var(--mist-angle));
  animation: mist-drift 19s ease-in-out infinite alternate;
}

.aurora-mist-rose {
  --mist-x: -25%;
  --mist-y: 12%;
  --mist-angle: -26deg;
  --mist-core: #fe599958;
  --mist-halo: #e64cc92a;
}

.aurora-mist-orchid {
  --mist-x: 26%;
  --mist-y: -11%;
  --mist-angle: -30deg;
  --mist-core: #9c8dff49;
  --mist-halo: #7b4efa21;
  animation-duration: 24s;
  animation-delay: -11s;
}

@keyframes sky-drift {
  from { transform: translate3d(-1.2%, .85%, 0) scale(1.02); }
  to { transform: translate3d(2.3%, -1.6%, 0) scale(1.105); }
}

@keyframes mist-drift {
  from {
    opacity: .34;
    transform: translate(var(--mist-x), var(--mist-y)) rotate(var(--mist-angle)) scale(.91);
  }

  to {
    opacity: .92;
    transform: translate(calc(var(--mist-x) + 6%), calc(var(--mist-y) - 8%)) rotate(calc(var(--mist-angle) + 7deg)) scale(1.13);
  }
}

.faceplate {
  width: min(100%, 64rem);
  padding: clamp(.5rem, 1.4vw, .94rem);
  border: 1px solid #818a97;
  border-radius: 1.22rem;
  background:
    repeating-linear-gradient(0deg, #fff0 0 2px, #ffffff31 2px 3px),
    linear-gradient(105deg, #c2c6ce, #f6f7f9 38%, #d4d7dc 68%, #a9b0bc);
  box-shadow:
    inset 0 1px 1px #fff,
    inset 1px 0 0 #ffffff91,
    inset 0 -1px 1px #49515a4d,
    0 0 2rem #ff74c72b,
    0 1.5rem 4rem #10051f9c;
}

.display {
  border: 1px solid #323c49;
  border-radius: .72rem;
  background: #fcfdff;
  box-shadow: 0 1px 1px #fff, 0 0 0 1px #8e98a4;
  overflow: hidden;
}

.display-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 2.2rem;
  padding: .2rem .85rem;
  border-bottom: 1px solid #929eae;
  background: linear-gradient(180deg, #fafcff 0%, #e7ecf3 50%, #cdd5e0 51%, #dfe4ed 100%);
  box-shadow: inset 0 1px 0 #fff;
  color: #293742;
  font-size: .75rem;
  font-weight: 700;
  text-shadow: 0 1px #fff;
}

.battery {
  position: relative;
  width: 1.23rem;
  height: .65rem;
  margin-right: .12rem;
  border: 1px solid #586637;
  border-radius: .14rem;
  background: linear-gradient(180deg, #efffa9, #a6d843 51%, #6bac1a 52%, #a9d63c);
  box-shadow: inset 0 0 0 1px #f8ffc099, 0 1px #ffffff8c;
}

.battery::after {
  position: absolute;
  top: .13rem;
  right: -.19rem;
  width: .13rem;
  height: .28rem;
  border-radius: 0 1px 1px 0;
  background: #586637;
  content: "";
}

.page {
  padding: clamp(1.5rem, 3.8vw, 3rem) clamp(1rem, 4.6vw, 3.8rem) clamp(2.25rem, 5.7vw, 4rem);
  background:
    radial-gradient(ellipse 65% 16rem at 10% 0%, #f7e6f7bd, transparent),
    radial-gradient(ellipse 80% 17rem at 90% 0%, #eee8fb, transparent),
    linear-gradient(180deg, #f3f6fa 0%, #fff 49%, #fbfcfe 100%);
  box-shadow: inset 0 1px 4px #253c5822;
}

.intro {
  text-align: center;
}

.player-mark {
  display: block;
  width: clamp(5.75rem, 12vw, 9rem);
  height: auto;
  margin: clamp(.5rem, 1.7vw, 1rem) auto 0;
  filter: drop-shadow(0 .35rem .4rem #29203833);
}

.wordmark {
  position: relative;
  display: table;
  max-width: 100%;
  margin: 0 auto;
  padding: .02em .05em .08em 0;
  font-family: "Myriad Pro", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: clamp(2.5rem, 12.16vw, 10.1rem);
  font-weight: 720;
  line-height: .94;
  letter-spacing: -.041em;
  color: #101012;
}

.wordmark-os {
  font-weight: 620;
  letter-spacing: -.049em;
}

@supports (background-clip: text) {
  .wordmark-type {
    display: inline-block;
    padding: .065em .06em .085em 0;
    margin: -.065em -.06em -.085em 0;
    background:
      linear-gradient(113deg, transparent 38%, #fbb9ec85 47%, #fff 50%, #fff5fbd4 52%, transparent 61%),
      linear-gradient(180deg, #0e0e10 5%, #27272a 32%, #454549 43%, #67676c 49%, #222224 51%, #0b0b0d 78%, #1a1a1c 96%);
    background-size: 275% 100%, 100% 100%;
    background-position: 100% 0, 0 0;
    background-repeat: no-repeat;
    background-clip: text;
    color: transparent;
    -webkit-text-stroke: .003em #08080a9e;
    filter: drop-shadow(0 .008em 0 #ffffffd9) drop-shadow(0 .02em .025em #24242944);
    animation: sweep 8s ease-in-out infinite;
  }
}

.wordmark-flare {
  position: absolute;
  top: .43em;
  left: 8%;
  width: min(56%, 2.4em);
  height: .61em;
  transform: translate(-50%, -50%);
  background:
    radial-gradient(ellipse at center, #fff 0%, #fff 13%, #ffe8fd7d 39%, transparent 74%) center / .19em .17em no-repeat,
    radial-gradient(ellipse at center, #fff 0%, #ffebfd 15%, #f374d295 38%, transparent 72%) center / 100% .045em no-repeat,
    radial-gradient(ellipse at center, #fff6ffdf, #f58ed47d 36%, transparent 73%) center / .035em 100% no-repeat,
    radial-gradient(ellipse at center, #f8b9ef9c, transparent 70%) center / .75em .52em no-repeat;
  mix-blend-mode: screen;
  opacity: 0;
  pointer-events: none;
  animation: flare 8s ease-in-out infinite;
}

@keyframes sweep {
  0%, 12% { background-position: 100% 0, 0 0; }
  44%, 100% { background-position: 0 0, 0 0; }
}

@keyframes flare {
  0%, 15% { left: 8%; opacity: 0; }
  22% { opacity: .88; }
  37% { opacity: .74; }
  44%, 100% { left: 94%; opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .aurora::before,
  .aurora-mist,
  .wordmark-type,
  .wordmark-flare {
    animation: none;
  }
}

.motto {
  margin: clamp(.8rem, 2.2vw, 1.25rem) 0 0;
  padding-left: .15em;
  color: #315e8d;
  font-size: clamp(.79rem, 2vw, 1.14rem);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: .17em;
  text-shadow: 0 1px #fff;
}

.motto span {
  letter-spacing: .11em;
}

.story {
  width: min(100%, 42rem);
  margin: clamp(1.75rem, 4.1vw, 3.2rem) auto 0;
  padding-top: 1.6rem;
  background: linear-gradient(90deg, transparent, #c8d3e0 17%, #c8d3e0 83%, transparent) top / 100% 1px no-repeat;
  font-size: clamp(1rem, 1.8vw, 1.07rem);
  line-height: 1.68;
}

.story p {
  margin: 0 0 1rem;
}

.story strong {
  color: #1a2b40;
}

.supported {
  margin-top: 1.55rem;
  padding-top: .85rem;
  border-top: 1px solid #dce1eb;
}

.supported h2 {
  margin: 0;
  color: #1a2b40;
  font-size: 1em;
  line-height: 1.5;
}

.device-list {
  display: flex;
  flex-wrap: wrap;
  gap: .22rem 1.12rem;
  margin: .3rem 0 .3rem;
  padding: 0;
  list-style: none;
}

.device-list li {
  position: relative;
  padding-inline-start: .65em;
}

.device-list li::before {
  position: absolute;
  top: .72em;
  inset-inline-start: 0;
  width: .24em;
  height: .24em;
  border-radius: 50%;
  background: #766d90;
  content: "";
}

.supported p {
  margin: 0;
  color: #565f71;
  font-size: .875rem;
}

.download {
  margin-top: 1.95rem;
  text-align: center;
}

.download-link,
.download-status {
  display: inline-flex;
  min-height: 2.7rem;
  margin: 0;
  padding: .58rem 1.35rem;
  align-items: center;
  justify-content: center;
  border: 1px solid #1b5795;
  border-radius: 2rem;
  background: linear-gradient(180deg, #8dc4f2, #4b96dc 47%, #2675c4 49%, #2567b0);
  box-shadow: inset 0 1px 0 #d9efff, inset 0 -1px 0 #1d508e, 0 1px 2px #214b7933;
  color: #fff;
  font-size: .9rem;
  font-weight: 700;
  line-height: 1.3;
  text-decoration: none;
  text-shadow: 0 1px #163d69;
}

.download-status {
  border-color: #a5b4c8;
  background: linear-gradient(180deg, #f5f9fd, #e4ecf6 48%, #d7e2f0 50%, #e5edf7);
  box-shadow: inset 0 1px 0 #fff, 0 1px 1px #526a8822;
  color: #365676;
  text-shadow: 0 1px #fff;
}

.download-link:hover {
  background: linear-gradient(180deg, #a2d0f6, #59a5ed 47%, #3684d1 49%, #2a71bd);
}

.download-link:focus-visible {
  outline: 2px solid #155aaa;
  outline-offset: 4px;
}

.footer {
  display: flex;
  justify-content: center;
  align-items: baseline;
  column-gap: .5rem;
  padding: .85rem .5rem .12rem;
  color: #36434f;
  text-shadow: 0 1px #fff;
}

.footer p {
  margin: 0;
  font-size: .75rem;
  line-height: 1.55;
  text-align: center;
}

.pixel-heart {
  flex: 0 0 .7rem;
  width: .7rem;
  height: .63rem;
  background: linear-gradient(#c34e73, #9e375b);
  clip-path: polygon(0 13%, 14% 13%, 14% 0, 43% 0, 43% 13%, 57% 13%, 57% 0, 86% 0, 86% 13%, 100% 13%, 100% 56%, 86% 56%, 86% 70%, 71% 70%, 71% 85%, 57% 85%, 57% 100%, 43% 100%, 43% 85%, 29% 85%, 29% 70%, 14% 70%, 14% 56%, 0 56%);
}

@media (max-width: 36rem) {
  body {
    padding-block: 2rem;
  }

  .faceplate {
    border-radius: .93rem;
  }

  .display {
    border-radius: .53rem;
  }

  .story {
    padding-top: 1.25rem;
    line-height: 1.6;
  }

  .footer {
    align-items: center;
  }
}

@media (forced-colors: active) {
  .wordmark-type {
    background: none;
    color: CanvasText;
    -webkit-text-stroke: 0;
    filter: none;
  }

  .aurora, .wordmark-flare, .battery, .pixel-heart {
    display: none;
  }
}
