/* In-device HTML mockups — static recreations of Stompa screens (no screenshot PNGs). */

.device .screen [data-mock] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.device .screen .app-mock {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, #1a1e55 0%, #0d0f2b 42%, #06081c 100%);
  color: #fff;
  font-family: var(--font);
  font-size: 11px;
  line-height: 1.35;
  overflow: hidden;
}

.app-mock * { box-sizing: border-box; }

.app-scroll {
  flex: 1;
  overflow: hidden;
  padding: 0 12px 8px;
}

.app-status {
  height: 28px;
  flex-shrink: 0;
}

/* ---------- Glass primitives ---------- */
.app-glass {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.app-glass-strong {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
}

/* ---------- Tab bar ---------- */
.app-tabbar {
  flex-shrink: 0;
  margin: 0 10px 10px;
  padding: 6px 8px;
  display: flex;
  justify-content: space-around;
  align-items: center;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.app-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 4px 10px;
  color: rgba(235, 235, 245, 0.45);
  font-size: 9px;
  font-weight: 600;
}

.app-tab svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.app-tab.is-active {
  color: #00e5c3;
}

.app-tab.is-active svg {
  fill: rgba(0, 229, 195, 0.15);
}

.interactive-device .app-tab {
  border: 0;
  background: transparent;
  font: inherit;
  cursor: pointer;
  border-radius: 14px;
}

.interactive-device .app-tab:hover,
.interactive-device .app-tab:focus-visible {
  color: #00e5c3;
  background: rgba(255, 255, 255, 0.06);
  outline: none;
}

/* ---------- Home screen ---------- */
.mock-home .mock-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  padding-top: 4px;
  margin-bottom: 10px;
}

.mock-home .mock-eyebrow {
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(235, 235, 245, 0.6);
}

.mock-home .mock-greeting {
  margin: 2px 0 0;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.mock-home .mock-plan {
  margin-top: 3px;
  font-size: 10px;
  font-weight: 600;
  color: rgba(235, 235, 245, 0.6);
}

.mock-bell {
  width: 32px;
  height: 32px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.85);
}

.mock-bell svg { width: 15px; height: 15px; }

.mock-ring-wrap {
  display: flex;
  justify-content: center;
  margin: 4px 0 10px;
}

.mock-ring {
  position: relative;
  width: 132px;
  height: 132px;
}

.mock-ring svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.mock-ring-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 6px;
}

.mock-ring-label {
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(235, 235, 245, 0.55);
}

.mock-ring-value {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  margin-top: 2px;
}

.mock-ring-goal {
  font-size: 9px;
  font-weight: 600;
  color: rgba(235, 235, 245, 0.45);
  margin-top: 2px;
}

.mock-stat-row {
  display: flex;
  gap: 6px;
  margin-bottom: 8px;
}

.mock-stat {
  flex: 1;
  padding: 8px 7px;
  min-width: 0;
}

.mock-stat--wide { flex: 1.35; }

.mock-stat-head {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 7px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(235, 235, 245, 0.5);
  margin-bottom: 3px;
}

.mock-stat-head .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.mock-stat-value {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.mock-week {
  padding: 10px 10px 8px;
  margin-bottom: 8px;
}

.mock-week-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.mock-week-sub {
  font-size: 8px;
  color: rgba(235, 235, 245, 0.55);
  margin-top: 2px;
}

.mock-bars {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 4px;
  height: 52px;
  margin-top: 10px;
}

.mock-bar-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  height: 100%;
  justify-content: flex-end;
}

.mock-bar {
  width: 100%;
  max-width: 18px;
  border-radius: 4px 4px 2px 2px;
  background: rgba(0, 229, 195, 0.35);
}

.mock-bar.is-today {
  background: linear-gradient(180deg, #00e5c3, #00b894);
  box-shadow: 0 0 12px rgba(0, 229, 195, 0.35);
}

.mock-bar.is-goal {
  border: 1px solid rgba(0, 229, 195, 0.5);
}

.mock-bar-day {
  font-size: 7px;
  font-weight: 600;
  color: rgba(235, 235, 245, 0.4);
}

.mock-bar-day.is-today { color: #00e5c3; }

.mock-section-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin: 6px 0 6px;
}

.mock-section-title {
  font-size: 11px;
  font-weight: 700;
}

.mock-section-sub {
  font-size: 8px;
  color: rgba(235, 235, 245, 0.5);
  margin-top: 1px;
}

.mock-section-link {
  font-size: 9px;
  font-weight: 700;
  color: #00e5c3;
}

.mock-friends-scroll {
  display: flex;
  gap: 6px;
  overflow: hidden;
  margin-bottom: 4px;
}

.mock-friend-chip {
  flex-shrink: 0;
  width: 68px;
  padding: 8px 6px;
  text-align: center;
}

.mock-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  margin: 0 auto 4px;
  display: grid;
  place-items: center;
  font-size: 10px;
  font-weight: 800;
  color: #0a0c26;
}

.mock-friend-name {
  font-size: 8px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mock-friend-steps {
  font-size: 9px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: #00e5c3;
  margin-top: 2px;
}

/* ---------- Groups screen ---------- */
.mock-social .mock-header {
  padding-top: 6px;
  margin-bottom: 8px;
}

.mock-social .mock-page-eyebrow {
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(235, 235, 245, 0.55);
}

.mock-social .mock-page-title {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.04em;
  margin: 2px 0 8px;
}

.mock-segment {
  display: flex;
  padding: 3px;
  gap: 2px;
  margin-bottom: 8px;
}

.mock-segment-btn {
  flex: 1;
  text-align: center;
  padding: 6px 4px;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 700;
  color: rgba(235, 235, 245, 0.55);
}

.mock-segment-btn.is-active {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.mock-summary {
  display: flex;
  gap: 6px;
  margin-bottom: 8px;
}

.mock-summary-cell {
  flex: 1;
  padding: 8px 6px;
  text-align: center;
}

.mock-summary-val {
  font-size: 14px;
  font-weight: 800;
}

.mock-summary-lbl {
  font-size: 7px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: rgba(235, 235, 245, 0.45);
  margin-top: 2px;
}

.mock-group-card {
  overflow: hidden;
  margin-bottom: 8px;
}

.mock-group-header {
  padding: 10px 10px 8px;
  position: relative;
}

.mock-group-header--teal {
  background: linear-gradient(135deg, #00d4aa, #00d4aa99);
}

.mock-group-header--violet {
  background: linear-gradient(135deg, #818cf8, #818cf888);
}

.mock-group-header-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.mock-group-emoji { font-size: 18px; }

.mock-group-name {
  font-size: 12px;
  font-weight: 800;
  color: #0a0c26;
  letter-spacing: -0.02em;
}

.mock-group-sub {
  font-size: 8px;
  font-weight: 600;
  color: rgba(10, 12, 38, 0.65);
  margin-top: 1px;
}

.mock-group-body {
  padding: 8px 10px 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.mock-rank-block .mock-rank-lbl {
  font-size: 7px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(235, 235, 245, 0.45);
}

.mock-rank-block .mock-rank-val {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.mock-rank-block .mock-rank-gap {
  font-size: 8px;
  color: rgba(235, 235, 245, 0.5);
  margin-top: 1px;
}

.mock-avatar-stack {
  display: flex;
}

.mock-avatar-stack .mock-avatar {
  width: 22px;
  height: 22px;
  font-size: 8px;
  margin: 0;
  border: 1.5px solid #0d0f2b;
  margin-left: -6px;
}

.mock-avatar-stack .mock-avatar:first-child { margin-left: 0; }

/* ---------- Leaderboard screen ---------- */
.mock-lb .mock-group-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-top: 4px;
  margin-bottom: 6px;
}

.mock-back {
  width: 30px;
  height: 30px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.mock-back svg { width: 14px; height: 14px; stroke: #fff; fill: none; stroke-width: 2; }

.mock-lb-title {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.mock-lb-emoji { font-size: 14px; margin-right: 4px; }

.mock-period-tabs {
  display: flex;
  padding: 3px;
  gap: 2px;
  margin-bottom: 8px;
}

.mock-period-tab {
  flex: 1;
  text-align: center;
  padding: 5px 2px;
  border-radius: 999px;
  font-size: 8px;
  font-weight: 700;
  color: rgba(235, 235, 245, 0.5);
}

.mock-period-tab.is-active {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #fff;
}

.mock-lb-card {
  padding: 0;
  overflow: hidden;
}

.mock-lb-row {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.mock-lb-row:last-child { border-bottom: none; }

.mock-lb-row.is-you {
  background: rgba(0, 229, 195, 0.06);
}

.mock-rank-badge {
  width: 18px;
  text-align: center;
  font-size: 10px;
  font-weight: 800;
  color: rgba(235, 235, 245, 0.45);
  font-variant-numeric: tabular-nums;
}

.mock-rank-badge.gold { color: #ffb547; }
.mock-rank-badge.silver { color: rgba(235, 235, 245, 0.7); }
.mock-rank-badge.bronze { color: #cd8b62; }

.mock-lb-mid {
  flex: 1;
  min-width: 0;
}

.mock-lb-name {
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mock-lb-row.is-you .mock-lb-name { color: #00e5c3; }

.mock-lb-sync {
  font-size: 7px;
  color: rgba(235, 235, 245, 0.38);
  margin-top: 1px;
}

.mock-lb-steps {
  font-size: 10px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.mock-lb-row .mock-avatar {
  width: 26px;
  height: 26px;
  font-size: 9px;
  margin: 0;
}

/* ---------- Challenges screen ---------- */
.mock-challenges .mock-header {
  padding-top: 6px;
  margin-bottom: 8px;
}

.mock-challenges .mock-page-eyebrow {
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(235, 235, 245, 0.55);
}

.mock-challenges .mock-page-title {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.04em;
  margin: 2px 0 8px;
}

.mock-challenge-hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px;
  margin-bottom: 10px;
  background:
    radial-gradient(circle at 85% 20%, rgba(0, 229, 195, 0.18), transparent 40%),
    rgba(255, 255, 255, 0.07);
}

.mock-challenge-label {
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: #00e5c3;
}

.mock-challenge-title {
  margin-top: 3px;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.mock-challenge-sub {
  margin-top: 3px;
  font-size: 8px;
  color: rgba(235, 235, 245, 0.5);
}

.mock-challenge-ring {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  background:
    radial-gradient(circle at center, #0d0f2b 52%, transparent 54%),
    conic-gradient(#00e5c3 0 68%, rgba(255, 255, 255, 0.1) 68% 100%);
}

.mock-challenge-ring span {
  font-size: 12px;
  font-weight: 800;
  color: #fff;
}

.mock-challenge-progress {
  display: grid;
  gap: 7px;
  margin-bottom: 10px;
}

.mock-progress-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.mock-progress-row.is-you {
  background: rgba(0, 229, 195, 0.08);
  border-color: rgba(0, 229, 195, 0.22);
}

.mock-progress-row .mock-avatar {
  margin: 0;
  flex-shrink: 0;
}

.mock-progress-main {
  flex: 1;
  min-width: 0;
}

.mock-progress-top {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 9px;
  font-weight: 700;
}

.mock-progress-top strong {
  color: #00e5c3;
  font-variant-numeric: tabular-nums;
}

.mock-progress-track {
  overflow: hidden;
  height: 6px;
  border-radius: 999px;
  margin-top: 5px;
  background: rgba(255, 255, 255, 0.1);
}

.mock-progress-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #00e5c3, #4ff0d6);
}

.mock-mini-challenge {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px;
}

.mock-mini-icon {
  width: 32px;
  height: 32px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(255, 181, 71, 0.16);
}

.mock-mini-title {
  font-size: 11px;
  font-weight: 800;
}

.mock-mini-sub {
  margin-top: 2px;
  font-size: 8px;
  color: rgba(235, 235, 245, 0.5);
}

/* Hide img when mock is present */
.device .screen:has(.app-mock) img { display: none; }
