:root {
  --bg: #03071d;
  --panel: rgba(8, 18, 45, 0.78);
  --panel-strong: rgba(8, 18, 45, 0.94);
  --text: #fff8f1;
  --muted: #9fb4d4;
  --soft: #eaf2ff;
  --border: rgba(145, 203, 255, 0.26);
  --border-strong: rgba(126, 221, 255, 0.45);
  --cyan: #79e9ff;
  --yellow: #ffd322;
  --pink: #ff5fa8;
  --green: #82f36a;
  --ink: #071027;
  --shadow: 0 22px 54px rgba(0, 0, 0, 0.42);
  --comic-shadow: 0 4px 0 #15335d, 0 10px 20px rgba(0, 0, 0, 0.36);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html,
body {
  margin: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: "Trebuchet MS", "Arial Rounded MT Bold", "Segoe UI", Arial, sans-serif;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  touch-action: none;
}

button,
select,
input {
  font: inherit;
}

a {
  color: inherit;
}

.privacy-root {
  min-height: 100%;
  height: auto;
  overflow: auto;
}

.privacy-page {
  min-height: 100%;
  height: auto;
  overflow: auto;
  background:
    radial-gradient(circle at 18% 16%, rgba(118, 228, 247, 0.12), transparent 32%),
    radial-gradient(circle at 82% 72%, rgba(255, 142, 199, 0.1), transparent 30%),
    var(--bg);
  -webkit-user-select: text;
  user-select: text;
  touch-action: auto;
}

.privacy-page button,
.privacy-page a {
  touch-action: manipulation;
}

.privacy-shell {
  width: min(760px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 48px 0 72px;
}

.privacy-back {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 9px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--soft);
  text-decoration: none;
  font-weight: 900;
}

.privacy-shell h1 {
  margin: 28px 0 0;
  font-size: clamp(2.2rem, 7vw, 4rem);
  line-height: 1.02;
  letter-spacing: 0;
}

.privacy-lead,
.privacy-section {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(8, 17, 31, 0.74);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(12px);
}

.privacy-lead {
  margin: 18px 0 0;
  padding: 18px;
  color: var(--soft);
  font-size: 1.12rem;
  line-height: 1.5;
}

.privacy-section {
  margin-top: 14px;
  padding: 20px;
}

.privacy-section h2 {
  margin: 0;
  color: var(--cyan);
  font-size: 1.18rem;
  line-height: 1.2;
}

.privacy-section p,
.privacy-section li {
  color: var(--soft);
  line-height: 1.55;
}

.privacy-section p {
  margin: 12px 0 0;
}

.privacy-section ul {
  margin: 12px 0 0;
  padding-left: 22px;
}

#stage {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  display: block;
  background: var(--bg);
}

#play-ui {
  position: fixed;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}

.topbar {
  position: fixed;
  top: calc(env(safe-area-inset-top, 0px) + 14px);
  left: calc(env(safe-area-inset-left, 0px) + 14px);
  right: calc(env(safe-area-inset-right, 0px) + 14px);
  z-index: 5;
  display: grid;
  grid-template-columns: minmax(210px, 280px) minmax(0, 1fr) minmax(210px, 320px);
  grid-template-rows: auto auto;
  align-items: start;
  gap: 12px;
  pointer-events: none;
}

.brand-mark,
.live-strip,
.hud,
.share-dock,
.parent-panel,
.start-panel,
.toast {
  border: 1px solid var(--border);
  background:
    linear-gradient(180deg, rgba(20, 40, 84, 0.82), rgba(6, 15, 39, 0.78));
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.13);
  backdrop-filter: blur(14px) saturate(1.35);
}

.brand-mark {
  grid-column: 1;
  grid-row: 1;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 42px;
  padding: 8px 12px;
  border-radius: 22px;
  text-decoration: none;
  font-weight: 900;
  color: var(--text);
  pointer-events: auto;
}

.brand-star {
  display: grid;
  place-items: center;
  width: 25px;
  height: 25px;
  border-radius: 9px;
  color: #09121f;
  background: linear-gradient(135deg, #fff070, #ff80b7);
  line-height: 1;
}

.live-strip {
  grid-column: 1;
  grid-row: 2;
  justify-self: start;
  display: flex;
  flex-direction: column;
  gap: 7px;
  max-width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.live-strip p {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  grid-template-areas:
    "icon label"
    "icon number";
  align-items: center;
  gap: 1px 10px;
  min-width: min(270px, calc(100vw - 28px));
  min-height: 58px;
  margin: 0;
  padding: 9px 12px;
  border: 1px solid rgba(139, 198, 255, 0.27);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(20, 40, 84, 0.85), rgba(8, 18, 45, 0.82));
  color: var(--soft);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  font-size: 0.78rem;
  line-height: 1.05;
}

.stat-icon {
  grid-area: icon;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  color: var(--ink);
  background: linear-gradient(135deg, #fff070, #ff77ae);
  font-size: 1.05rem;
  line-height: 1;
  box-shadow: 0 8px 18px rgba(255, 95, 168, 0.22);
}

.live-strip p:nth-child(2) .stat-icon {
  background: linear-gradient(135deg, #9bff6f, #7de8ff);
}

.live-strip p > span:last-child {
  grid-area: label;
  color: rgba(234, 242, 255, 0.72);
  font-weight: 900;
  text-transform: lowercase;
}

.live-strip strong {
  grid-area: number;
  color: #adff76;
  font-size: clamp(1.35rem, 2.2vw, 2rem);
  line-height: 0.95;
  font-weight: 900;
  text-shadow: 0 3px 0 rgba(15, 70, 27, 0.65), 0 0 20px rgba(130, 243, 106, 0.35);
  font-variant-numeric: tabular-nums;
}

.live-strip p:nth-child(2) strong {
  color: var(--yellow);
  text-shadow: 0 3px 0 rgba(92, 66, 0, 0.65), 0 0 20px rgba(255, 211, 34, 0.32);
}

.hud strong {
  color: #fff;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 12px rgba(131, 242, 178, 0.9);
}

.hud {
  grid-column: 3;
  grid-row: 1;
  justify-self: end;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-areas:
    "icon label"
    "icon number";
  align-items: center;
  gap: 2px 12px;
  min-width: min(320px, 100%);
  min-height: 78px;
  padding: 13px 18px;
  border-radius: 24px;
}

.hud span:first-child {
  grid-area: icon;
  font-size: 1.8rem;
  filter: drop-shadow(0 8px 12px rgba(255, 211, 34, 0.22));
}

.hud span:not(:first-child) {
  grid-area: label;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 900;
}

.hud strong {
  grid-area: number;
  min-width: 3ch;
  text-align: left;
  font-size: clamp(1.75rem, 3vw, 2.55rem);
  line-height: 0.95;
  text-shadow: var(--comic-shadow);
}

#parent-corner {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 7;
  width: 84px;
  height: 84px;
  border: 0;
  padding: 0;
  background: transparent;
  pointer-events: auto;
  cursor: default;
}

#parent-corner::after {
  content: "";
  position: absolute;
  top: 14px;
  left: 14px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.26);
  box-shadow: 0 0 18px rgba(118, 228, 247, 0.42);
}

.start-overlay {
  position: fixed;
  inset: 0;
  z-index: 4;
  display: grid;
  place-items: center;
  padding: 74px max(18px, env(safe-area-inset-right)) 126px max(18px, env(safe-area-inset-left));
  background:
    radial-gradient(circle at 50% 38%, rgba(26, 118, 255, 0.12), transparent 38%),
    linear-gradient(180deg, rgba(2, 5, 18, 0.02), rgba(2, 5, 18, 0.2));
  pointer-events: auto;
  transition: opacity 220ms ease, visibility 220ms ease;
}

.start-overlay.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.start-panel {
  position: relative;
  z-index: 6;
  width: min(850px, calc(100vw - 520px));
  min-width: min(700px, 100%);
  padding: clamp(18px, 3vw, 26px);
  border-color: rgba(145, 203, 255, 0.18);
  border-radius: 34px;
  background: transparent;
  text-align: center;
  box-shadow: none;
  backdrop-filter: none;
}

.hero-mini,
.proof-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.hero-mini span,
.proof-row span {
  min-height: 28px;
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 999px;
  background: rgba(9, 22, 55, 0.72);
  color: var(--soft);
  font-size: 0.86rem;
  font-weight: 800;
  line-height: 1;
}

.hero-brand-word {
  margin: clamp(10px, 2vw, 18px) auto 4px;
  color: #fff9f2;
  font-size: clamp(3.9rem, 7vw, 7rem);
  font-weight: 900;
  line-height: 0.92;
  letter-spacing: 0;
  text-shadow:
    0 5px 0 #ead5cc,
    0 12px 0 #20396d,
    0 22px 34px rgba(0, 0, 0, 0.44),
    0 0 44px rgba(255, 255, 255, 0.16);
  transform: rotate(-1deg);
}

.start-panel h1 {
  margin: 10px auto 0;
  max-width: 780px;
  font-size: clamp(2rem, 4vw, 3.35rem);
  line-height: 1.08;
  letter-spacing: 0;
  text-shadow: 0 4px 0 rgba(12, 27, 62, 0.88), 0 12px 26px rgba(0, 0, 0, 0.34);
}

.start-panel h1 span,
.start-panel h1 strong {
  display: block;
}

.start-panel h1 strong {
  color: var(--yellow);
  font-weight: 900;
  text-shadow: 0 4px 0 #906b00, 0 13px 26px rgba(0, 0, 0, 0.34), 0 0 24px rgba(255, 211, 34, 0.22);
}

.start-lead {
  margin: 16px auto 0;
  max-width: 660px;
  color: var(--soft);
  font-size: clamp(1rem, 2.2vw, 1.22rem);
  line-height: 1.45;
}

.start-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
}

.primary-button,
.ghost-button,
.share-actions button,
.share-actions a,
.panel-actions button {
  min-height: 44px;
  border-radius: 18px;
  padding: 12px 16px;
  font-weight: 900;
  cursor: pointer;
  text-decoration: none;
}

.primary-button {
  min-width: min(430px, 100%);
  min-height: 86px;
  border: 0;
  color: var(--ink);
  background: linear-gradient(180deg, #ffe955, #ffbf09);
  box-shadow: 0 9px 0 #a65f00, 0 18px 34px rgba(255, 191, 9, 0.28), inset 0 3px 0 rgba(255, 255, 255, 0.42);
  font-size: clamp(1.45rem, 3vw, 2.25rem);
  text-shadow: 0 2px 0 rgba(255, 255, 255, 0.25);
}

.ghost-button,
.share-actions button,
.share-actions a {
  border: 2px solid rgba(255, 211, 34, 0.58);
  color: var(--text);
  background: rgba(9, 22, 55, 0.76);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.proof-row {
  margin-top: 14px;
}

.parent-hint {
  margin: 12px auto 0;
  max-width: 600px;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.4;
}

.parent-hint a,
.panel-note a {
  color: var(--cyan);
  font-weight: 900;
}

.daily-challenge {
  width: fit-content;
  max-width: 100%;
  margin: 14px auto 0;
  padding: 9px 12px;
  border: 1px solid rgba(255, 214, 110, 0.28);
  border-radius: 8px;
  background: rgba(255, 214, 110, 0.1);
  color: #ffe28c;
  font-size: 0.94rem;
  font-weight: 900;
  line-height: 1.32;
}

.share-dock {
  position: fixed;
  left: 50%;
  bottom: calc(env(safe-area-inset-bottom, 0px) + 14px);
  z-index: 5;
  width: min(680px, calc(100vw - 44px));
  min-width: 0;
  padding: 10px 14px 12px;
  border-radius: 22px;
  transform: translateX(-50%);
  pointer-events: none;
}

.share-dock p {
  margin: 0;
  text-align: center;
}

#share-line {
  display: none;
  color: var(--soft);
  font-weight: 900;
  line-height: 1.25;
}

.challenge-meter {
  margin-top: 0;
  padding: 8px 10px 9px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
}

.challenge-copy {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--soft);
  font-size: 0.88rem;
  font-weight: 900;
  line-height: 1.2;
}

.challenge-copy span,
.challenge-copy strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.challenge-copy strong {
  color: var(--yellow);
  font-size: 0.82rem;
  font-weight: 900;
  white-space: nowrap;
}

.challenge-track {
  height: 9px;
  margin-top: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
}

.challenge-track span {
  display: block;
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--cyan), var(--yellow), var(--pink));
  box-shadow: 0 0 18px rgba(255, 214, 110, 0.28);
  transition: width 180ms ease;
}

.rank-label {
  display: flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  max-width: 100%;
  margin: 9px auto 0;
  padding: 7px 12px;
  border: 1px solid rgba(255, 214, 110, 0.24);
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255, 214, 110, 0.16), rgba(255, 142, 199, 0.12));
  color: #ffe28c;
  font-size: 0.9rem;
  font-weight: 900;
  line-height: 1.2;
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.share-actions {
  display: none;
  justify-content: center;
  gap: 8px;
  margin-top: 9px;
}

.share-actions button,
.share-actions a {
  min-height: 38px;
  padding: 9px 11px;
  font-size: 0.9rem;
}

.share-status {
  min-height: 0;
  color: var(--yellow);
  font-size: 0.84rem;
  font-weight: 800;
}

.share-status:empty {
  display: none;
}

body:not(.is-playing) .share-dock {
  bottom: calc(env(safe-area-inset-bottom, 0px) + 8px);
  width: min(520px, calc(100vw - 44px));
  padding: 8px 10px;
  border-radius: 18px;
  opacity: 0.9;
}

body:not(.is-playing) .challenge-meter {
  padding: 7px 9px;
  border-radius: 12px;
}

body:not(.is-playing) .challenge-copy {
  font-size: 0.78rem;
}

body:not(.is-playing) .challenge-track {
  height: 6px;
  margin-top: 6px;
}

body:not(.is-playing) .rank-label {
  display: none;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(env(safe-area-inset-bottom, 0px) + 112px);
  z-index: 8;
  max-width: min(620px, calc(100vw - 32px));
  padding: 12px 16px;
  border-radius: 999px;
  transform: translateX(-50%);
  color: var(--text);
  font-weight: 900;
  text-align: center;
  pointer-events: none;
}

.parent-panel {
  position: fixed;
  top: calc(env(safe-area-inset-top, 0px) + 68px);
  right: calc(env(safe-area-inset-right, 0px) + 14px);
  z-index: 9;
  width: min(420px, calc(100vw - 24px));
  max-height: calc(100vh - 84px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px));
  overflow: auto;
  padding: 18px;
  border-color: var(--border-strong);
  border-radius: 28px;
  background: var(--panel-strong);
  box-shadow: var(--shadow);
  pointer-events: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(118, 228, 247, 0.45) transparent;
}

.parent-panel::-webkit-scrollbar {
  width: 8px;
}

.parent-panel::-webkit-scrollbar-track {
  background: transparent;
}

.parent-panel::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(118, 228, 247, 0.42);
}

.parent-panel.is-preview {
  top: calc(env(safe-area-inset-top, 0px) + 20px);
  max-height: calc(100vh - 38px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px));
}

.panel-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}

.panel-header h2 {
  margin: 0;
  color: var(--pink);
  font-size: 1.6rem;
  line-height: 1.2;
}

.panel-header p,
.panel-note {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.42;
}

.icon-button {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  cursor: pointer;
  font-size: 1.35rem;
  line-height: 1;
}

.control-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.11);
  color: var(--text);
  font-weight: 900;
}

.switch-row {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

.control-row select,
.control-row input[type="range"] {
  width: 100%;
}

.control-row select {
  min-height: 42px;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 0 12px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--text);
}

.control-row input[type="checkbox"] {
  width: 24px;
  height: 24px;
  accent-color: var(--cyan);
}

.control-row input[type="range"] {
  accent-color: var(--yellow);
}

.panel-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 16px;
}

.panel-actions button:first-child {
  border: 0;
  color: var(--ink);
  background: linear-gradient(135deg, var(--cyan), var(--yellow));
}

.panel-actions button:last-child {
  color: var(--text);
  border: 1px solid rgba(255, 142, 199, 0.42);
  background: rgba(255, 142, 199, 0.13);
}

@media (max-width: 760px) {
  .topbar {
    grid-template-columns: 1fr auto;
    align-items: start;
  }

  .brand-mark {
    width: fit-content;
  }

  .live-strip {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-self: stretch;
    flex-direction: column;
    gap: 8px;
    border-radius: 8px;
  }

  .live-strip p {
    flex: 1 1 150px;
    justify-content: center;
    min-width: 0;
  }

  .start-overlay {
    padding-top: 178px;
    padding-bottom: 144px;
  }

  .start-panel {
    padding: 20px;
    overflow: hidden;
  }

  .start-panel h1 {
    max-width: 12ch;
    font-size: clamp(1.9rem, 7.8vw, 2.35rem);
    line-height: 1.08;
  }

  .hero-brand-word {
    font-size: clamp(3.6rem, 16vw, 5.1rem);
  }

  .start-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .primary-button,
  .ghost-button {
    width: 100%;
    min-width: 0;
  }

  .proof-row span {
    flex: 1 1 130px;
    min-width: 0;
  }

  .proof-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .daily-challenge {
    display: none;
  }

  .share-actions {
    flex-wrap: wrap;
  }

  .share-actions button,
  .share-actions a {
    flex: 1 1 120px;
    text-align: center;
  }

  .parent-panel {
    left: 12px;
    right: 12px;
    top: 108px;
    width: auto;
  }

  .panel-actions {
    grid-template-columns: 1fr;
  }
}

@media (max-height: 760px) and (min-width: 761px) {
  .start-overlay {
    padding-top: 86px;
    padding-bottom: 124px;
  }

  .start-panel {
    padding: 22px;
  }

  .start-panel h1 {
    font-size: clamp(2rem, 4vw, 3.15rem);
  }

  .start-lead {
    margin-top: 12px;
    font-size: 1rem;
  }

  .daily-challenge,
  .parent-hint {
    display: none;
  }
}

@media (min-width: 1081px) {
  .start-panel {
    width: min(620px, calc(100vw - 700px));
    min-width: min(500px, 100%);
    transform: none;
  }

  .share-dock {
    width: min(680px, calc(100vw - 44px));
    transform: translateX(-50%);
  }
}

@media (max-width: 1360px) {
  .parent-panel.is-preview {
    display: none;
  }
}

@media (max-width: 430px) {
  .topbar {
    gap: 8px;
  }

  .brand-mark,
  .hud {
    min-height: 38px;
    padding: 7px 10px;
  }

  .live-strip p {
    min-height: 48px;
    padding: 8px 10px;
  }

  .stat-icon {
    width: 30px;
    height: 30px;
    border-radius: 10px;
    font-size: 1rem;
  }

  .live-strip strong {
    font-size: 1.26rem;
  }

  .primary-button {
    min-height: 56px;
    font-size: 1.28rem;
  }

  .brand-mark span:last-child,
  .hud span {
    font-size: 0.86rem;
  }

  .hud span:not(:first-child) {
    display: none;
  }

  .start-overlay {
    padding-inline: 14px;
    padding-top: 188px;
    padding-bottom: 154px;
  }

  .start-lead {
    max-width: 30ch;
    margin-inline: auto;
    font-size: 0.96rem;
  }

  .share-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .share-actions button,
  .share-actions a {
    min-width: 0;
    width: 100%;
  }

}

@media (max-width: 600px) {
  .topbar {
    right: auto;
    width: min(362px, calc(100vw - 28px));
  }

  .live-strip {
    display: none;
  }

  .start-overlay {
    justify-items: start;
    padding-top: 86px;
  }

  .start-panel {
    width: min(362px, 100%);
  }

  .proof-row {
    display: none;
  }

  .parent-hint {
    display: none;
  }

  .share-dock {
    left: 50%;
    width: min(362px, calc(100vw - 24px));
    bottom: calc(env(safe-area-inset-bottom, 0px) + 8px);
    padding: 8px 9px 9px;
    transform: translateX(-50%);
  }

  #share-line {
    display: none;
  }

  .challenge-meter {
    margin-top: 0;
  }

  .challenge-copy {
    font-size: 0.76rem;
  }

  .challenge-copy strong {
    max-width: 42%;
    font-size: 0.72rem;
  }

  .rank-label {
    display: flex;
    margin-top: 7px;
    padding: 6px 9px;
    font-size: 0.76rem;
  }

  .share-status {
    min-height: 0;
  }
}

#parent-corner,
.parent-panel {
  display: none !important;
}

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