* {
  box-sizing: border-box;
}

:root {
  --green: #24d15f;
  --green-dark: #08a946;
  --lime: #c9ff55;
  --blue: #1599ff;
  --violet: #7868ff;
  --yellow: #ffd845;
  --orange: #ff7a37;
  --ink: #141824;
  --muted: #7c8494;
  --line: #e8eef4;
  --bg: #f3f7f8;
  --night: #12131f;
}

body {
  margin: 0;
  min-height: 100vh;
  background: #e8eef3;
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
}

.stage {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 22px;
}

.phone {
  width: 375px;
  min-height: 812px;
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: var(--bg);
  box-shadow: 0 22px 70px rgba(23, 37, 84, 0.18);
}

.screen {
  min-height: 812px;
  padding: 12px 14px 86px;
}

.status {
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 4px;
  font-size: 13px;
  font-weight: 800;
}

.icons {
  display: flex;
  align-items: center;
  gap: 4px;
}

.signal,
.wifi,
.battery {
  display: inline-block;
  background: currentColor;
}

.signal {
  width: 16px;
  height: 10px;
  clip-path: polygon(0 100%, 18% 64%, 18% 100%, 35% 100%, 35% 42%, 53% 42%, 53% 100%, 70% 100%, 70% 18%, 90% 18%, 90% 100%);
}

.wifi {
  width: 15px;
  height: 10px;
  border-radius: 12px 12px 2px 2px;
  clip-path: polygon(0 36%, 50% 0, 100% 36%, 86% 52%, 50% 28%, 14% 52%);
}

.battery {
  width: 22px;
  height: 10px;
  border-radius: 2px;
  position: relative;
}

.battery::after {
  content: "";
  position: absolute;
  top: 3px;
  right: -3px;
  width: 2px;
  height: 4px;
  border-radius: 1px;
  background: currentColor;
}

.nav {
  position: relative;
  height: 44px;
  display: grid;
  place-items: center;
  font-size: 17px;
  font-weight: 800;
}

.nav .left,
.nav .right {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-weight: 600;
}

.nav .left {
  left: 2px;
  font-size: 24px;
}

.nav .right {
  right: 2px;
  font-size: 14px;
}

.card {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 10px 28px rgba(23, 37, 84, .07);
}

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
}

.green-pill {
  color: #087d3d;
  background: rgba(210, 255, 216, .76);
}

.gold-pill {
  color: #724704;
  background: linear-gradient(135deg, #fff1a9, #ffc34c);
}

.blue-pill {
  color: #0e61c7;
  background: #e8f4ff;
}

.hero-green {
  color: #0b3519;
  background:
    radial-gradient(circle at 50% 58%, rgba(255,255,255,.72), transparent 31%),
    linear-gradient(180deg, #4dec25 0%, #b6ff8e 62%, #ebfff0 100%);
}

.carbon-hero {
  margin: -12px -14px 0;
  padding: 12px 14px 28px;
  min-height: 570px;
  position: relative;
  overflow: hidden;
}

.carbon-cloud {
  position: absolute;
  left: -30px;
  right: -30px;
  bottom: 64px;
  height: 140px;
  background:
    radial-gradient(ellipse at 18% 50%, rgba(255,255,255,.78) 0 34%, transparent 35%),
    radial-gradient(ellipse at 42% 60%, rgba(255,255,255,.86) 0 35%, transparent 36%),
    radial-gradient(ellipse at 72% 52%, rgba(255,255,255,.78) 0 34%, transparent 35%);
  opacity: .9;
}

.island {
  position: relative;
  width: 290px;
  height: 230px;
  margin: 20px auto 12px;
  border-radius: 48% 52% 46% 54%;
  background:
    radial-gradient(circle at 58% 34%, #d7ff86 0 13%, transparent 14%),
    radial-gradient(circle at 42% 30%, #8ee85c 0 25%, transparent 26%),
    linear-gradient(180deg, #77d84d 0%, #a6ec70 45%, #c87548 46%, #a95b38 100%);
  box-shadow: 0 36px 34px rgba(64, 116, 41, .2);
  transform: perspective(480px) rotateX(12deg);
}

.island::after {
  content: "";
  position: absolute;
  left: 42px;
  right: 42px;
  bottom: 48px;
  height: 70px;
  border-radius: 18px;
  background:
    linear-gradient(90deg, transparent 48%, rgba(255,255,255,.5) 49% 51%, transparent 52%),
    linear-gradient(0deg, transparent 48%, rgba(255,255,255,.5) 49% 51%, transparent 52%),
    linear-gradient(135deg, #129fff, #2575ff);
  box-shadow: inset 0 0 0 5px rgba(255,255,255,.35);
}

.building {
  position: absolute;
  z-index: 2;
  border-radius: 9px 9px 5px 5px;
  background: #fff6cc;
  box-shadow: 0 8px 14px rgba(87, 83, 38, .16);
}

.building.school {
  left: 48px;
  top: 72px;
  width: 62px;
  height: 62px;
}

.building.station {
  right: 42px;
  top: 80px;
  width: 76px;
  height: 50px;
  background: #f8fff4;
}

.building.cafe {
  right: 42px;
  bottom: 58px;
  width: 48px;
  height: 44px;
  background: #ffd66c;
}

.tree {
  position: absolute;
  z-index: 3;
  width: 24px;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(180deg, #4bc34e, #127e38);
}

.tree::after {
  content: "";
  position: absolute;
  left: 10px;
  bottom: -14px;
  width: 5px;
  height: 20px;
  background: #7b5631;
}

.tree.one {
  right: 82px;
  top: 34px;
}

.tree.two {
  left: 78px;
  bottom: 52px;
  transform: scale(.8);
}

.rider {
  position: absolute;
  z-index: 4;
  left: 32px;
  bottom: 54px;
  width: 44px;
  height: 70px;
  border-radius: 24px 24px 12px 12px;
  background: #ffcf31;
  box-shadow: 0 10px 18px rgba(106, 83, 17, .18);
}

.rider::before {
  content: "";
  position: absolute;
  top: 15px;
  left: 14px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #14212f;
  box-shadow: 17px 0 #14212f;
}

.progress {
  height: 11px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255,255,255,.64);
}

.progress i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #ffb900, #ff812b);
}

.cta-row {
  display: grid;
  grid-template-columns: 1fr 2.2fr 1fr;
  gap: 10px;
  align-items: center;
}

.bubble-btn,
.primary-btn,
.ghost-btn {
  border: 0;
  font-weight: 900;
  font-size: 14px;
}

.bubble-btn {
  height: 42px;
  color: #0d7e2f;
  border-radius: 999px;
  background: rgba(207, 255, 142, .88);
}

.primary-btn {
  height: 52px;
  color: #fff;
  border-radius: 999px;
  background: linear-gradient(180deg, #50ed58, #05b83f);
  box-shadow: inset 0 2px 8px rgba(255,255,255,.45), 0 10px 20px rgba(10, 168, 66, .24);
}

.ghost-btn {
  height: 46px;
  color: #fff;
  border-radius: 999px;
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.24);
}

.section-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 18px 2px 10px;
  font-size: 18px;
  font-weight: 900;
}

.section-title span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin: 0 -14px 0;
  padding: 22px 34px 16px;
  border-radius: 26px 26px 0 0;
  background: linear-gradient(180deg, #efffec, #f3f8f6);
}

.tabs div {
  text-align: center;
  color: #4d5965;
  font-size: 18px;
  font-weight: 900;
}

.tabs .active::after {
  content: "";
  display: block;
  width: 34px;
  height: 5px;
  margin: 8px auto 0;
  border-radius: 999px;
  background: #20c76b;
}

.badge-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px 10px;
  text-align: center;
}

.badge {
  position: relative;
  min-height: 122px;
}

.hex {
  width: 72px;
  height: 78px;
  margin: 0 auto 8px;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 1000;
  font-size: 20px;
  clip-path: polygon(25% 5%, 75% 5%, 100% 50%, 75% 95%, 25% 95%, 0 50%);
  background: linear-gradient(135deg, #8df46b, #18b756);
  box-shadow: 0 10px 18px rgba(27, 177, 79, .18);
}

.hex.bike {
  background: linear-gradient(135deg, #a794ff, #566dff);
}

.hex.gold {
  color: #744500;
  background: linear-gradient(135deg, #ffef8a, #ffb540);
}

.hex.dark {
  background: linear-gradient(135deg, #4b5364, #141824);
}

.hex.locked {
  color: #9aa1aa;
  background: linear-gradient(135deg, #d9dde2, #a9afb7);
  filter: grayscale(1);
}

.new-tag {
  position: absolute;
  left: 50%;
  top: 54px;
  transform: translateX(-50%);
  min-width: 58px;
  padding: 2px 6px;
  color: #fff;
  border-radius: 8px;
  background: linear-gradient(180deg, #ffd84d, #ff932c);
  font-size: 12px;
  font-weight: 1000;
  text-shadow: 0 1px 1px rgba(112, 64, 0, .25);
}

.badge b {
  display: block;
  font-size: 13px;
  line-height: 1.3;
}

.badge span {
  color: #a0a6b0;
  font-size: 11px;
}

.bottom-nav {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 74px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-items: center;
  border-top: 1px solid rgba(232,238,244,.88);
  background: rgba(255,255,255,.96);
}

.bottom-nav div {
  text-align: center;
  color: #606a78;
  font-size: 10px;
}

.bottom-nav b {
  display: grid;
  place-items: center;
  width: 25px;
  height: 25px;
  margin: 0 auto 4px;
  border-radius: 9px;
  font-size: 13px;
}

.bottom-nav .active {
  color: var(--blue);
  font-weight: 900;
}

.bottom-nav .active b,
.bottom-nav .scan b {
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--violet));
}

.bottom-nav .scan b {
  width: 44px;
  height: 44px;
  margin-top: -18px;
  border-radius: 50%;
  font-size: 18px;
}

.night {
  color: #fff;
  background:
    radial-gradient(circle at 64% 12%, rgba(80, 244, 143, .18), transparent 30%),
    var(--night);
}

.milestone-title {
  margin: 34px 0 22px;
  font-size: 48px;
  line-height: .95;
  font-weight: 1000;
  letter-spacing: 0;
}

.milestone-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 38px 30px;
}

.big-badge {
  text-align: center;
}

.shield {
  width: 118px;
  height: 130px;
  margin: 0 auto 10px;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 38px;
  font-weight: 1000;
  background:
    radial-gradient(circle at 50% 36%, rgba(255,255,255,.18), transparent 28%),
    linear-gradient(135deg, #1bd85a, #15284a);
  clip-path: polygon(18% 7%, 82% 7%, 96% 42%, 78% 92%, 22% 92%, 4% 42%);
  border: 4px solid #27d94c;
  filter: drop-shadow(0 12px 14px rgba(0,0,0,.22));
}

.shield.gold {
  color: #fff4c2;
  background: linear-gradient(135deg, #322813, #c9972b);
  border-color: #f0cc55;
}

.shield.blue {
  background: linear-gradient(135deg, #20efff, #5032a7);
  border-color: #26f0ff;
}

.shield.locked {
  filter: grayscale(1) opacity(.48);
}

.dots {
  margin-top: 8px;
  letter-spacing: 4px;
  color: #ff7c38;
  font-size: 17px;
}

.report {
  padding: 16px;
  background:
    radial-gradient(circle at 94% 4%, rgba(255,255,255,.75), transparent 18%),
    linear-gradient(135deg, #fff069, #fff8a7);
  border-radius: 16px;
  color: #171923;
}

.report-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.report-stat {
  padding: 10px 8px;
  min-height: 92px;
  border-radius: 12px;
  background: rgba(255,255,255,.76);
}

.report-stat b {
  display: block;
  margin: 8px 0 4px;
  font-size: 22px;
  line-height: 1;
}

.report-stat span {
  font-size: 11px;
  color: #707783;
}

.ride-map {
  height: 146px;
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  background:
    linear-gradient(28deg, transparent 45%, #d9e4ef 46%, #d9e4ef 49%, transparent 50%),
    linear-gradient(117deg, transparent 48%, #d7e3ef 49%, #d7e3ef 52%, transparent 53%),
    linear-gradient(0deg, #f8fafc 24%, #eef4f9 25%, #eef4f9 27%, #f8fafc 28%, #f8fafc 68%, #eef4f9 69%, #eef4f9 71%, #f8fafc 72%);
}

.route {
  position: absolute;
  left: 80px;
  top: 45px;
  width: 150px;
  height: 62px;
  border-left: 4px solid var(--blue);
  border-bottom: 4px solid var(--blue);
  transform: skewX(-18deg);
}

.pin {
  position: absolute;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  color: #fff;
  border: 3px solid #fff;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 900;
  box-shadow: 0 5px 15px rgba(17, 24, 39, .18);
}

.pin.s {
  left: 68px;
  top: 36px;
  background: #17c471;
}

.pin.e {
  right: 90px;
  top: 80px;
  background: var(--blue);
}

.modal-bg {
  position: absolute;
  inset: 0;
  color: #fff;
  background:
    radial-gradient(circle at 50% 28%, rgba(146, 255, 128, .16), transparent 32%),
    rgba(8, 12, 8, .87);
  display: grid;
  place-items: center;
  padding: 30px;
}

.modal-medal {
  width: 158px;
  height: 172px;
  margin: 20px auto 26px;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 58px;
  font-weight: 1000;
  clip-path: polygon(25% 5%, 75% 5%, 100% 50%, 75% 95%, 25% 95%, 0 50%);
  background: linear-gradient(135deg, #a794ff, #566dff);
  box-shadow: 0 26px 34px rgba(0,0,0,.28);
}

.poster {
  min-height: 812px;
  padding: 16px 18px 30px;
  color: #fff;
  background:
    radial-gradient(circle at 50% 22%, rgba(82, 255, 124, .2), transparent 28%),
    linear-gradient(180deg, #10131d 0%, #162018 58%, #f2f7f0 58%, #f2f7f0 100%);
}

.qr {
  width: 92px;
  height: 92px;
  padding: 8px;
  background:
    linear-gradient(90deg, #111 8px, transparent 8px) 0 0 / 21px 21px,
    linear-gradient(#111 8px, transparent 8px) 0 0 / 21px 21px,
    #fff;
  border: 8px solid #fff;
  box-shadow: 0 8px 18px rgba(17,24,39,.12);
}

.index-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(240px, 1fr));
  gap: 18px;
  width: min(980px, 100%);
}

.index-card {
  display: block;
  padding: 18px;
  color: var(--ink);
  text-decoration: none;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 16px 44px rgba(23, 37, 84, 0.1);
}

.index-card b {
  display: block;
  margin-bottom: 8px;
  font-size: 18px;
}

.index-card span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

@media (max-width: 520px) {
  .stage {
    padding: 0;
  }

  .phone {
    width: 100vw;
    min-height: 100vh;
    border-radius: 0;
    box-shadow: none;
  }

  .screen,
  .poster {
    min-height: 100vh;
  }

  .index-grid {
    grid-template-columns: 1fr;
    padding: 16px;
  }
}
