/* The landing page: hero with the gameplay preview, the rules, the Daily Shift, the game,
   accounts, stores. Drawn as the game's screen design: glowing type, neon buttons, stat
   chips, the grid. */

/* Hero */

.home-hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(40px, 7vw, 80px) clamp(56px, 9vw, 96px);
}

/* The home screen's ambient: grid lines drifting slowly down, three orbs floating */

.home-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 75% at 50% 40%, #000 30%, transparent 100%);
  animation: home-grid 4s linear infinite;
  pointer-events: none;
}

@keyframes home-grid {
  from {
    background-position: 0 0;
  }

  to {
    background-position: 0 48px;
  }
}

.home-hero__ambient {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.home-hero__orb {
  position: absolute;
  width: 14px;
  height: 14px;
  animation: home-float 6s ease-in-out infinite alternate;
}

.home-hero__orb--1 {
  left: 8%;
  bottom: 14%;
}

.home-hero__orb--2 {
  left: 46%;
  bottom: 7%;
  animation-delay: -2s;
}

.home-hero__orb--3 {
  right: 6%;
  bottom: 20%;
  animation-delay: -4s;
}

@keyframes home-float {
  from {
    transform: translate(-14px, 10px);
  }

  to {
    transform: translate(14px, -12px);
  }
}

.home-hero__inner {
  position: relative;
  display: grid;
  gap: 56px;
  align-items: center;
}

@media (min-width: 900px) {
  .home-hero__inner {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: 64px;
  }
}

.home-hero__copy {
  display: grid;
  gap: 18px;
  justify-items: start;
}

/* The game's title: NEON in cyan over SHIFT in magenta, heavy spaced capitals that glow */

.home-hero__heading {
  margin-block: 4px 2px;
  font: 900 clamp(56px, 12vw, 112px)/0.98 var(--display);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.home-hero__word {
  display: block;
}

.home-hero__word--cyan {
  color: var(--cyan);
}

.home-hero__word--magenta {
  color: var(--magenta);
}

.home-hero__tagline {
  color: var(--muted);
  font-size: clamp(16px, 1.8vw, 18px);
  letter-spacing: 0.1em;
}

.home-hero__lead {
  max-width: 50ch;
  color: var(--muted);
  font-size: clamp(17px, 2vw, 19px);
}

/* The home screen's two buttons: PLAY filled, DAILY SHIFT outlined lime, each with a line under the label */

.home-hero__actions {
  display: grid;
  gap: 14px;
  width: min(100%, 440px);
  margin-top: 10px;
}

.home-hero__cta {
  justify-content: flex-start;
  gap: 14px;
  min-height: 66px;
  padding: 10px 18px 10px 20px;
  text-align: left;
}

.home-hero__cta-icon {
  flex: none;
  width: 24px;
  height: 24px;
}

.home-hero__cta-icon--filled {
  fill: currentColor;
}

.home-hero__cta-text {
  display: grid;
  gap: 3px;
  flex: 1;
}

.home-hero__cta-label {
  font: 900 17px/1.15 var(--display);
  letter-spacing: 0.14em;
}

.home-hero__cta-sub {
  font: 600 12px/1.3 var(--text);
  letter-spacing: 0.06em;
  text-transform: none;
  opacity: 0.75;
}

.home-hero__cta-chevron {
  flex: none;
  width: 22px;
  height: 22px;
}

/* The gameplay preview (sample content): the HUD and the arena in the snake's colour */

.home-hero__preview {
  display: flex;
  justify-content: center;
}

.home-phone {
  position: relative;
  display: grid;
  gap: 12px;
  width: min(340px, 86vw);
  padding: 50px 14px 16px;
  background: linear-gradient(var(--bg-top), var(--bg) 70%);
  border: 1px solid var(--line);
  border-radius: 46px;
  box-shadow: 0 0 0 8px var(--surface), 0 40px 80px rgb(0 0 0 / 60%), 0 0 90px rgb(255 43 214 / 14%);
  user-select: none;
}

.home-phone__notch {
  position: absolute;
  top: 14px;
  left: 50%;
  width: 92px;
  height: 24px;
  border-radius: 12px;
  background: var(--bg);
  transform: translateX(-50%);
}

.home-phone__hud {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-inline: 2px;
}

.home-phone__ring {
  position: relative;
  flex: none;
  width: 34px;
  height: 34px;
  border: 3px solid var(--magenta);
  border-radius: 50%;
  box-shadow: 0 0 14px rgb(255 43 214 / 70%);
}

.home-phone__ring::after {
  content: '';
  position: absolute;
  inset: 6px;
  border-radius: 50%;
  background: var(--magenta);
}

.home-phone__score-box {
  display: grid;
  flex: 1;
}

.home-phone__label {
  font: 700 9px/1.4 var(--text);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

.home-phone__score {
  color: var(--ink);
  font: 900 26px/1.05 var(--display);
  letter-spacing: 0.03em;
  font-variant-numeric: tabular-nums;
}

.home-phone__combo {
  padding: 3px 10px;
  border: 2px solid var(--magenta);
  border-radius: 11px;
  background: rgb(255 43 214 / 15%);
  color: var(--magenta);
  font: 900 15px/1.2 var(--display);
  letter-spacing: 0.04em;
}

.home-phone__pause {
  flex: none;
  width: 26px;
  height: 26px;
  color: var(--ink);
  stroke-width: 3.5;
  stroke-linecap: butt;
}

.home-phone__arena {
  width: 100%;
}

/* Sections */

.home-section {
  padding-block: clamp(56px, 9vw, 96px);
}

/* A band on the arena's dotted grid */

.home-section--band {
  background-color: var(--arena);
  background-image: radial-gradient(var(--grid) 1.2px, transparent 1.6px);
  background-size: 26px 26px;
  border-block: 1px solid var(--line);
}

.home-section__intro {
  display: grid;
  gap: 12px;
  max-width: 660px;
  margin-bottom: 36px;
}

.home-section__heading {
  font-size: clamp(28px, 4.5vw, 42px);
}

.home-section__lead {
  color: var(--muted);
  font-size: 17px;
}

/* The rules: one card each, with its scene on a tile tinted in the card's colour */

.home-rules,
.home-features,
.home-accounts {
  display: grid;
  gap: 14px;
  padding: 0;
  list-style: none;
}

.home-rules {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr));
}

.home-rule {
  --tone: var(--cyan);
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 20px;
}

.home-rule--magenta {
  --tone: var(--magenta);
}

.home-rule--lime {
  --tone: var(--lime);
}

.home-rule--prism {
  --tone: var(--ink);
}

.home-rule__scene {
  display: grid;
  place-items: center;
  height: 84px;
  margin-bottom: 6px;
  border: 1px solid color-mix(in srgb, var(--tone) 22%, transparent);
  border-radius: var(--radius-tile);
  background: color-mix(in srgb, var(--tone) 6%, var(--arena));
}

.home-rule__art {
  width: 132px;
}

.home-rule__title {
  color: var(--tone);
  font-size: 19px;
}

.home-rule__text {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}

/* The Daily Shift: the copy beside the home screen's stat chips and its button */

.home-daily {
  display: grid;
  gap: 40px;
  align-items: center;
}

@media (min-width: 900px) {
  .home-daily {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 64px;
  }
}

.home-daily__copy {
  display: grid;
  gap: 14px;
}

.home-daily__preview {
  display: grid;
  gap: 22px;
  width: min(100%, 440px);
  justify-self: center;
  user-select: none;
}

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

.home-daily__stat {
  display: grid;
  justify-items: center;
  gap: 4px;
  padding: 12px 6px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-tile);
}

.home-daily__stat-label {
  font: 700 10px/1.4 var(--text);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

.home-daily__stat-value {
  font: 800 clamp(20px, 5vw, 26px)/1.1 var(--display);
  letter-spacing: 0.03em;
  font-variant-numeric: tabular-nums;
}

.home-daily__stat-value--cyan {
  color: var(--cyan);
}

.home-daily__stat-value--lime {
  color: var(--lime);
}

.home-daily__stat-value--ink {
  color: var(--ink);
}

.home-daily__button {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 66px;
  padding: 10px 18px 10px 20px;
  border: 2px solid var(--lime);
  border-radius: var(--radius-button);
  color: var(--lime);
  box-shadow: 0 0 24px rgb(182 255 59 / 25%);
}

.home-daily__button-icon,
.home-daily__button-chevron {
  flex: none;
  width: 22px;
  height: 22px;
}

.home-daily__button-text {
  display: grid;
  gap: 3px;
  flex: 1;
}

.home-daily__button-label {
  font: 900 17px/1.15 var(--display);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.home-daily__button-sub {
  font: 600 12px/1.3 var(--text);
  letter-spacing: 0.06em;
  opacity: 0.75;
}

/* The game's features */

.home-features {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
}

.home-feature {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 24px;
}

.home-feature__icon,
.home-account__icon {
  --tone: var(--cyan);
  display: grid;
  place-items: center;
  flex: none;
  width: 44px;
  height: 44px;
  border: 1px solid color-mix(in srgb, var(--tone) 30%, transparent);
  border-radius: 12px;
  background: color-mix(in srgb, var(--tone) 10%, transparent);
  color: var(--tone);
}

.home-feature:nth-child(2) .home-feature__icon,
.home-account:nth-child(2) .home-account__icon {
  --tone: var(--magenta);
}

.home-feature:nth-child(3) .home-feature__icon,
.home-account:nth-child(3) .home-account__icon {
  --tone: var(--lime);
}

.home-feature__icon .icon,
.home-account__icon .icon {
  width: 22px;
  height: 22px;
}

.home-feature__icon {
  margin-bottom: 6px;
}

.home-feature__title,
.home-account__title {
  font-size: 19px;
}

.home-feature__text,
.home-account__text {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}

/* Accounts */

@media (min-width: 720px) {
  .home-accounts {
    grid-template-columns: 1fr 1fr;
  }
}

.home-account {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 20px;
}

.home-account__body {
  display: grid;
  gap: 4px;
}

.home-accounts__note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 20px;
  color: var(--muted);
  font-size: 15px;
}

.home-accounts__note-icon {
  flex: none;
  width: 20px;
  height: 20px;
  margin-top: 2px;
  color: var(--primary-text);
}

/* Closing: where to get the app */

.home-closing {
  display: grid;
  justify-items: center;
  gap: 14px;
  padding: clamp(32px, 6vw, 56px) clamp(20px, 5vw, 56px);
  text-align: center;
  background: radial-gradient(min(560px, 90vw) 260px at 50% 0%, rgb(0 240 255 / 10%), transparent 75%), var(--surface);
  box-shadow: var(--shadow);
}

.home-closing__logo {
  width: 96px;
  height: 96px;
  margin-bottom: 10px;
  filter: drop-shadow(0 0 10px rgb(0 240 255 / 45%)) drop-shadow(0 0 18px rgb(255 43 214 / 30%));
}

.home-closing__lead {
  max-width: 48ch;
  margin-bottom: 10px;
}

.home-closing__contact {
  margin-top: 12px;
  color: var(--muted);
}

.home-closing__link {
  font-weight: 700;
}
