:root {
  --blue: #1336c0;
  --orange: #fb8c00;
  --text: #1a1a1a;
  --muted: #6b6b6b;
}

* { box-sizing: border-box; }

html, body {
  height: 100%;
  margin: 0;
}

body {
  font-family: "Roboto", sans-serif;
  background: #fff;
  color: var(--text);
  overflow: hidden;
}

.guide {
  height: 100%;
  display: flex;
  flex-direction: column;
  padding-top: env(safe-area-inset-top);
  padding-bottom: env(safe-area-inset-bottom);
}

.topbar {
  flex-shrink: 0;
  padding: 18px 16px 10px;
  text-align: center;
}

.title {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.25;
  margin: 0 0 6px;
}

.description {
  font-size: 17px;
  line-height: 1.4;
  color: var(--muted);
  margin: 0 0 10px;
}

.nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 0;
  background: var(--orange);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  box-shadow: 0 4px 12px rgba(251, 140, 0, 0.35);
  -webkit-tap-highlight-color: transparent;
}

.nav-btn.prev { left: 4px; }
.nav-btn.next { right: 4px; }

.nav-btn:active:not(:disabled) {
  background: #e07e00;
}

.nav-btn:disabled {
  opacity: 0.28;
  cursor: default;
}

.nav-btn svg {
  width: 18px;
  height: 18px;
}

.stage {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  padding: 0 8px;
  container-type: size;
}

.phone {
  position: relative;
  flex: 0 0 auto;
  width: min(100%, calc(100cqb * 480 / 988));
  height: auto;
  aspect-ratio: 480 / 988;
  max-height: 100%;
  filter: drop-shadow(0 10px 22px rgba(0, 0, 0, 0.2));
}

.phone-screen {
  position: absolute;
  left: 5%;
  top: 2.834%;
  width: 89.583%;
  height: 94.332%;
  overflow: hidden;
  border-radius: 13.5% / 6.22%;
  background: #000;
  z-index: 2;
  touch-action: pan-y;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.phone-screen img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}

.phone-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

.pager {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 3px;
}

.dot {
  width: 22px;
  height: 22px;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  -webkit-tap-highlight-color: transparent;
}

.dot::after {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #cfd5ea;
}

.dot.is-active::after {
  width: 16px;
  border-radius: 999px;
  background: var(--blue);
}
