:root {
  color-scheme: light;
  font-family:
    ui-rounded, "SF Pro Rounded", "Avenir Next Rounded", "Arial Rounded MT Bold",
    system-ui, sans-serif;
  color: #2b2540;
  background: #fff4ce;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-width: 320px;
  min-height: 100%;
  margin: 0;
}

body {
  min-height: 100svh;
  overflow-x: hidden;
}

.background,
.wash {
  position: fixed;
  inset: 0;
}

.background {
  z-index: -2;
  background: #dff2ff url("assets/jay-kay-elle-central-park.png") 58% 56% / cover
    no-repeat;
  transform: scale(1.01);
}

.wash {
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgb(255 248 224 / 0.8) 0%, rgb(255 248 224 / 0.24) 48%, transparent 74%),
    linear-gradient(0deg, rgb(35 43 49 / 0.27), transparent 38%);
}

.picker {
  display: flex;
  flex-direction: column;
  width: min(100%, 1180px);
  min-height: 100svh;
  margin: 0 auto;
  padding:
    max(32px, env(safe-area-inset-top))
    max(28px, env(safe-area-inset-right))
    max(18px, env(safe-area-inset-bottom))
    max(28px, env(safe-area-inset-left));
}

.hero {
  width: min(520px, 47vw);
  margin: 0 0 18px;
  text-shadow: 0 2px 18px rgb(255 255 255 / 0.9);
}

.eyebrow,
.tagline,
.footer-note {
  margin: 0;
  font-weight: 800;
}

.eyebrow {
  color: #97521d;
  font-size: clamp(0.82rem, 1.4vw, 1.05rem);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

h1 {
  max-width: 620px;
  margin: 5px 0 7px;
  color: #31264e;
  font-size: clamp(2.55rem, 5.4vw, 5.3rem);
  line-height: 0.93;
  letter-spacing: -0.06em;
}

h1 span {
  color: #e84473;
}

.tagline {
  color: #604575;
  font-size: clamp(1rem, 2vw, 1.35rem);
}

.app-panel {
  width: min(560px, 52vw);
  padding: 12px;
  border: 1px solid rgb(255 255 255 / 0.7);
  border-radius: 28px;
  background: rgb(255 255 255 / 0.5);
  box-shadow:
    0 20px 50px rgb(49 38 78 / 0.18),
    inset 0 1px 0 rgb(255 255 255 / 0.9);
  backdrop-filter: blur(18px) saturate(1.18);
  -webkit-backdrop-filter: blur(18px) saturate(1.18);
}

.app-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.continue-playing {
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgb(49 38 78 / 12%);
}

.continue-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 4px 8px;
  color: #31264e;
  font-size: 0.78rem;
  font-weight: 900;
}

.continue-heading > div {
  display: grid;
  gap: 2px;
}

.continue-heading small {
  color: rgb(49 38 78 / 62%);
  font-family: system-ui, sans-serif;
  font-size: 0.66rem;
  font-weight: 650;
}

.continue-heading button {
  min-height: 34px;
  padding: 6px 10px;
  border: 1px solid rgb(49 38 78 / 15%);
  border-radius: 10px;
  color: #604575;
  background: rgb(255 255 255 / 58%);
  font: 750 0.7rem system-ui, sans-serif;
  cursor: pointer;
}

.continue-heading button:focus-visible {
  outline: 3px solid #342852;
  outline-offset: 2px;
}

.continue-card {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 16px;
  align-items: center;
  gap: 10px;
  min-height: 62px;
  padding: 9px 12px;
  border: 1px solid rgb(255 255 255 / 82%);
  border-radius: 16px;
  color: #2d2941;
  background: linear-gradient(135deg, rgb(255 255 255 / 84%), rgb(244 235 255 / 84%));
  box-shadow: 0 7px 18px rgb(62 46 83 / 10%);
  text-decoration: none;
}

.continue-card:focus-visible {
  outline: 4px solid #342852;
  outline-offset: 3px;
}

.continue-card > span:nth-child(2) {
  display: grid;
  gap: 3px;
}

.continue-card small {
  color: rgb(45 41 65 / 64%);
  font: 650 0.7rem system-ui, sans-serif;
}

.continue-icon {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 13px;
  color: #fff;
  background: linear-gradient(135deg, #e84473, #8056c7);
  font: 800 0.85rem system-ui, sans-serif;
}

.app-card {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr) 18px;
  align-items: center;
  min-height: 94px;
  padding: 12px 12px 12px 13px;
  overflow: hidden;
  border: 1px solid rgb(255 255 255 / 0.76);
  border-radius: 20px;
  color: #2d2941;
  text-decoration: none;
  box-shadow: 0 9px 22px rgb(62 46 83 / 0.11);
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    filter 160ms ease;
  -webkit-tap-highlight-color: transparent;
}

.app-card--sunny {
  background: linear-gradient(145deg, #fff8ca, #ffd883);
}

.app-card--berry {
  background: linear-gradient(145deg, #ffe1eb, #ffafc9);
}

.app-card--mint {
  background: linear-gradient(145deg, #e2fae5, #aee8c3);
}

.app-card--sky {
  background: linear-gradient(145deg, #e2f4ff, #aed9ff);
}

.app-card--aqua {
  background: linear-gradient(145deg, #e3fbf7, #a9e4d7);
}

.app-card--lavender {
  background: linear-gradient(145deg, #f2ebff, #cab7ee);
}

.app-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 28px rgb(62 46 83 / 0.16);
  filter: saturate(1.05);
}

.app-card:active {
  transform: translateY(0) scale(0.985);
}

.app-card:focus-visible {
  outline: 4px solid #342852;
  outline-offset: 3px;
}

.app-icon {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border: 1px solid rgb(255 255 255 / 0.8);
  border-radius: 16px;
  background: rgb(255 255 255 / 0.66);
  box-shadow: 0 5px 13px rgb(59 49 73 / 0.12);
  font-family: system-ui, sans-serif;
  font-size: 2.05rem;
  line-height: 1;
}

.app-icon--character {
  color: #ca2d45;
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  font-size: 2.1rem;
  font-weight: 900;
}

.app-icon img {
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
}

.app-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding-left: 9px;
}

.app-copy strong {
  font-size: clamp(0.93rem, 1.3vw, 1.05rem);
  line-height: 1.15;
}

.app-description {
  margin-top: 4px;
  overflow: hidden;
  color: rgb(45 41 65 / 0.68);
  font-family: system-ui, sans-serif;
  font-size: 0.72rem;
  font-weight: 650;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-arrow {
  color: rgb(45 41 65 / 0.5);
  font-family: system-ui, sans-serif;
  font-size: 1.8rem;
  font-weight: 400;
  text-align: right;
}

.footer-note {
  width: min(560px, 52vw);
  padding-top: 13px;
  color: rgb(255 255 255 / 0.92);
  font-family: system-ui, sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-align: center;
  text-shadow: 0 1px 8px rgb(0 0 0 / 0.55);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.noscript {
  position: fixed;
  inset: auto 16px 16px;
  z-index: 2;
  padding: 12px;
  border-radius: 12px;
  background: #fff;
  text-align: center;
}

@media (max-width: 760px) and (orientation: portrait) {
  .background {
    background-position: 66% 53%;
  }

  .wash {
    background:
      linear-gradient(180deg, rgb(255 248 224 / 0.8), transparent 27%),
      linear-gradient(0deg, rgb(30 34 44 / 0.44), transparent 57%);
  }

  .picker {
    justify-content: flex-start;
    padding-top: max(20px, env(safe-area-inset-top));
    padding-right: max(13px, env(safe-area-inset-right));
    padding-bottom: max(10px, env(safe-area-inset-bottom));
    padding-left: max(13px, env(safe-area-inset-left));
  }

  .hero {
    width: 100%;
    margin: 0;
    text-align: center;
  }

  h1 {
    margin-top: 3px;
    font-size: clamp(2.45rem, 13vw, 4.1rem);
  }

  .tagline {
    font-size: 1rem;
  }

  .app-panel {
    width: 100%;
    margin-top: 0;
    padding: 8px;
    border-radius: 24px;
  }

  .app-grid {
    gap: 7px;
  }

  .app-card {
    grid-template-columns: 50px minmax(0, 1fr);
    min-height: 82px;
    padding: 9px;
    border-radius: 18px;
  }

  .app-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    font-size: 1.75rem;
  }

  .app-icon--character {
    font-size: 1.8rem;
  }

  .app-copy strong {
    font-size: clamp(0.79rem, 3.6vw, 0.98rem);
  }

  .app-description,
  .app-arrow {
    display: none;
  }

  .footer-note {
    width: 100%;
    padding-top: 7px;
    font-size: 0.64rem;
  }
}

@media (max-height: 520px) and (orientation: landscape) {
  .background {
    background-position: 58% 60%;
  }

  .picker {
    display: grid;
    grid-template-columns: minmax(240px, 0.8fr) minmax(480px, 1.3fr);
    grid-template-rows: 1fr auto;
    align-items: start;
    column-gap: 24px;
    padding-top: max(13px, env(safe-area-inset-top));
    padding-bottom: max(9px, env(safe-area-inset-bottom));
  }

  .hero {
    width: auto;
    margin: 0;
  }

  h1 {
    font-size: clamp(2.3rem, 5.8vw, 4rem);
  }

  .app-panel {
    width: 100%;
    padding: 8px;
    border-radius: 22px;
  }

  .app-card {
    grid-template-columns: 48px minmax(0, 1fr);
    min-height: 72px;
    padding: 8px;
    border-radius: 16px;
  }

  .app-icon {
    width: 45px;
    height: 45px;
    border-radius: 13px;
    font-size: 1.65rem;
  }

  .app-copy strong {
    font-size: 0.85rem;
  }

  .app-description,
  .app-arrow {
    display: none;
  }

  .footer-note {
    grid-column: 2;
    width: 100%;
    padding-top: 7px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .app-card {
    transition: none;
  }
}
