:root {
  color-scheme: dark;
  --ink: #f0f7ff;
  --muted: #aebed5;
  --cyan: #85dcff;
  --line: #538ab45c;
  --panel: #0b1e38;
  --purple: #ac8dff;
}
* {
  box-sizing: border-box;
}
[hidden] {
  display: none !important;
}
body {
  margin: 0;
  background: #030a17;
  color: var(--ink);
  font:
    16px/1.55 -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}
button,
input,
select {
  font: inherit;
}
button,
a,
input,
select {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
  color: inherit;
}
button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
button:focus-visible,
a:focus-visible {
  outline: 3px solid #b0eeff;
  outline-offset: 5px;
}
button {
  min-height: 48px;
  border: 1px solid var(--line);
  background: transparent;
  border-radius: 30px;
  padding: 10px 22px;
}
button:hover {
  border-color: var(--cyan);
  background-color: #8bcaff0d;
}
a {
  color: var(--cyan);
}
.shell {
  max-width: 1080px;
  min-height: 100dvh;
  margin: auto;
  position: relative;
  background:
    radial-gradient(ellipse at 90% 20%, #19295088, transparent 48%), #061329;
  overflow: hidden;
  box-shadow: 0 0 100px #0008;
}
header {
  height: 100px;
  padding: 25px 5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 2;
  gap: 12px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  border: 0;
  padding: 0;
  font-size: 12px;
  letter-spacing: 3px;
}
.mark {
  display: inline-block;
  width: 38px;
  height: 38px;
  border: 3px solid #b1e7ff;
  border-right-color: transparent;
  border-radius: 50%;
  transform: rotate(-30deg);
  box-shadow: -3px 0 10px #70c9ff55;
  position: relative;
}
.mark:after {
  content: "";
  position: absolute;
  inset: 3px;
  border: 1px solid #d4eaff;
  border-right-color: transparent;
  border-radius: 50%;
}
.pill,
.tag {
  font-size: 11px;
  letter-spacing: 1px;
  padding: 7px 13px;
  min-height: 34px;
  white-space: nowrap;
}
.pill {
  color: #b5d7ea;
  background: #0b203c;
}
.eyebrow {
  color: var(--cyan);
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin: 0 0 14px;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1,
h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  line-height: 1.12;
}
h1 {
  font-size: clamp(36px, 5vw, 60px);
  letter-spacing: -1.4px;
  margin-bottom: 20px;
}
h2 {
  font-size: 34px;
}
h3 {
  font-weight: 500;
  font-size: 20px;
}
p {
  color: var(--muted);
}
.primary {
  background: linear-gradient(110deg, #8161e9, #377feb 58%, #36bce6);
  border: 1px solid #b7dcff;
  box-shadow:
    0 0 18px #5b88ff48,
    inset 0 0 8px #c5ddff55;
  letter-spacing: 1.7px;
  font-size: 13px;
  min-height: 58px;
  padding: 15px 36px;
}
.secondary {
  background: #12213b;
}
.attract {
  min-height: calc(100dvh - 160px);
  display: flex;
  align-items: center;
  text-align: center;
  flex-direction: column;
  padding: 5vh 28px 35px;
  position: relative;
}
.attract:before {
  content: "";
  position: absolute;
  inset: -100px 0 -70px;
  background:
    linear-gradient(#06132915, transparent 60%, #061329),
    url("assets/welcome.png") center 55% / cover;
  pointer-events: none;
}
.attract > * {
  position: relative;
}
.attract h1 {
  font-family: inherit;
  font-size: clamp(26px, 4vw, 42px);
  letter-spacing: 7px;
  font-weight: 300;
}
.attract .sub {
  font-size: 20px;
  color: #e1eaff;
}
.attract .welcome-bottom {
  margin-top: auto;
  padding-top: 42vh;
  width: 100%;
  max-width: 420px;
}
.welcome-bottom button {
  width: 100%;
}
.welcome-bottom p {
  margin: 22px auto 0;
  font-size: 13px;
  max-width: 290px;
}
.content {
  padding: 22px 5% 40px;
}
.intro {
  text-align: center;
  margin: 10px auto 30px;
}
.intro p {
  font-size: 15px;
}
.filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}
.filters button {
  font-size: 13px;
  padding: 8px 16px;
  min-height: 44px;
}
.filters .selected {
  background: #d1efff;
  color: #102342;
  border-color: #d1efff;
}
.search {
  width: 100%;
  background: #091a30;
  border: 1px solid var(--line);
  border-radius: 16px;
  color: white;
  padding: 14px 18px;
  margin-bottom: 20px;
}
.section-label {
  display: flex;
  justify-content: space-between;
  color: #b9cce0;
  font-size: 12px;
  letter-spacing: 1px;
  margin-bottom: 15px;
}
.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.card {
  text-align: left;
  padding: 0;
  min-height: 330px;
  border-radius: 22px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: #0d213b;
  isolation: isolate;
}
.card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  transition: transform 0.5s;
}
.card:hover img {
  transform: scale(1.035);
}
.card:after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent 12%, #06122560 40%, #031024 95%);
  z-index: -1;
}
.card-copy {
  padding: 24px 20px;
}
.card h3 {
  font-family: Georgia, serif;
  font-size: 27px;
  margin-bottom: 6px;
}
.card .description {
  font-size: 13px;
  color: #bed2e6;
  display: block;
  margin-bottom: 13px;
}
.card .meta {
  font-size: 10px;
  letter-spacing: 1px;
  color: #a9d4ed;
}
.arrow {
  float: right;
  border: 1px solid #90bde0;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  text-align: center;
  font-size: 21px;
  line-height: 25px;
}
.small-note {
  font-size: 12px;
  color: #93a9c4;
  margin: 22px 0;
}
.text-button {
  border: 0;
  text-decoration: underline;
  padding: 0 4px;
  font-size: 12px;
}
.back {
  margin-bottom: 22px;
  padding: 7px 18px;
  font-size: 13px;
}
.hero {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 24px;
  overflow: hidden;
  background: #071121;
}
.hero img,
.hero video {
  display: block;
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
}
.badge {
  position: absolute;
  left: 18px;
  top: 18px;
  background: #061329e6;
  border: 1px solid #6c91b0;
  border-radius: 20px;
  padding: 5px 12px;
  font-size: 10px;
  letter-spacing: 1px;
}
.details-heading {
  margin: 30px 0 20px;
  text-align: center;
}
.details-heading h1 {
  font-size: 43px;
  margin-bottom: 10px;
}
.tags {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}
.tag {
  border: 1px solid var(--line);
  border-radius: 20px;
  color: #b9d5e9;
}
.detail-body {
  margin: 24px auto;
  text-align: center;
  max-width: 570px;
}
.media-controls {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin: 14px 0;
}
.media-controls button {
  font-size: 12px;
  min-height: 44px;
}
.start-panel {
  text-align: center;
  background: #10203a8c;
  border: 1px solid var(--line);
  padding: 25px;
  border-radius: 20px;
  margin-top: 25px;
}
.start-panel .primary {
  width: 100%;
  max-width: 500px;
}
.start-panel p {
  font-size: 13px;
  margin: 12px 0 0;
}
.session-title {
  text-align: center;
  margin: 15px 0 25px;
}
.session-title h1 {
  font-size: 42px;
}
.session-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 16px;
}
.session-grid .hero video,
.session-grid .hero img {
  aspect-ratio: 3/4;
}
.interaction {
  background: #10213a;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 24px 18px;
  text-align: center;
}
.orb {
  height: 100px;
  width: 100px;
  margin: 24px auto;
  border-radius: 50%;
  background: radial-gradient(
    circle at 30% 25%,
    #d2eaff,
    #71a5ff 20%,
    #6e53c3 58%,
    #142951 80%
  );
  box-shadow:
    0 0 30px #8870fa55,
    inset 0 0 14px #a2e5ff;
}
.interaction p {
  font-size: 13px;
}
.down {
  font-size: 30px;
  color: #bbabff;
}
.status-list {
  border: 1px solid var(--line);
  background: #0a1c32;
  border-radius: 20px;
  padding: 20px;
  margin: 20px 0;
}
.status-row {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 10px 0;
  font-size: 13px;
}
.status-row span {
  color: #a7bed7;
}
.meter {
  height: 18px;
  background: repeating-linear-gradient(
    90deg,
    #102544 0,
    #102544 9%,
    #294d70 9%,
    #294d70 10%
  );
  border: 1px solid #699bc7;
  border-radius: 12px;
  overflow: hidden;
}
.meter div {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #ad91ff, #6cdfff);
  transition: width 0.3s;
}
.actions {
  display: flex;
  gap: 12px;
  margin-top: 25px;
}
.actions > * {
  flex: 1;
}
.error {
  color: #ffd2b4;
}
.empty {
  padding: 55px 22px;
  text-align: center;
  border: 1px dashed var(--line);
  border-radius: 20px;
}
.no-video {
  position: absolute;
  bottom: 15px;
  left: 15px;
  right: 15px;
  padding: 15px;
  background: #061329ed;
  font-size: 13px;
  color: #d7e9ff;
  border-radius: 12px;
}
footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 5%;
  font-size: 9px;
  letter-spacing: 2px;
  color: #88a7c3;
  position: relative;
}
footer button {
  font-size: 11px;
  border: 0;
  letter-spacing: 0;
  padding: 5px 10px;
  min-height: 44px;
}
dialog {
  background: #0c1c33;
  color: var(--ink);
  border: 1px solid #629ec2;
  border-radius: 24px;
  max-width: 560px;
  width: calc(100% - 32px);
  padding: 32px;
  max-height: 90dvh;
}
dialog::backdrop {
  background: #000b;
}
dialog p {
  font-size: 14px;
}
label {
  display: block;
  margin: 18px 0;
  font-size: 13px;
  color: #b7cde4;
}
input,
select {
  display: block;
  width: 100%;
  padding: 12px;
  background: #061329;
  border: 1px solid #54718d;
  border-radius: 10px;
  color: #eef6ff;
  margin-top: 6px;
}
hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 28px 0;
}
.close {
  float: right;
  border: 0;
  padding: 2px 12px;
  font-size: 25px;
}
#toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  background: #203452;
  border: 1px solid #7bb9df;
  border-radius: 15px;
  max-width: 90vw;
  padding: 14px 24px;
  z-index: 10;
  display: none;
}
@media (min-width: 1000px) and (orientation: landscape) {
  .shell {
    max-width: 1280px;
  }
  .grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .card {
    min-height: 350px;
  }
  .attract {
    min-height: 800px;
  }
  .attract:before {
    background-size: auto 120%;
    background-repeat: no-repeat;
    background-color: #061329;
  }
  .session-grid {
    max-width: 800px;
    margin: auto;
  }
  .hero {
    max-width: 800px;
    margin: auto;
  }
}
@media (max-width: 500px) {
  header {
    height: 80px;
  }
  .brand {
    font-size: 9px;
    letter-spacing: 1.5px;
    gap: 9px;
  }
  .mark {
    width: 29px;
    height: 29px;
  }
  .pill {
    font-size: 9px;
    padding: 5px 9px;
  }
  .card {
    min-height: 275px;
  }
  .card-copy {
    padding: 18px 13px;
  }
  .card h3 {
    font-size: 23px;
  }
  .grid {
    gap: 12px;
  }
  .card .description {
    font-size: 11px;
  }
  .session-grid {
    grid-template-columns: 1fr;
  }
  .interaction {
    display: none;
  }
  h1 {
    font-size: 38px;
  }
  footer > span {
    letter-spacing: 1px;
    font-size: 8px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
/* Preserve the complete Unity camera frame in portrait preview panels. */
.hero video {
  object-fit: contain;
  background: #020812;
}
.media-controls {
  flex-wrap: wrap;
}
/* Touch-first discovery: four worlds, then one clear action. */
:root {
  --muted: #acbfd4;
  --line: #7cabce38;
}
.shell {
  max-width: 1120px;
  background:
    radial-gradient(ellipse at 95% 4%, #23365980, transparent 38%),
    radial-gradient(ellipse at 0 65%, #14244475, transparent 55%), #071322;
}
header {
  height: 86px;
  padding: 20px 5%;
}
.brand {
  letter-spacing: 2.5px;
}
.discovery {
  padding-top: 24px;
}
.discovery-intro {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 4px 0 35px;
}
.discovery-intro h1 {
  font-size: clamp(42px, 6vw, 68px);
  line-height: 1.06;
  letter-spacing: -2px;
  margin: 0 0 18px;
}
.discovery-intro h1 em {
  font-weight: 400;
  color: #b5dcf0;
}
.discovery-intro p:last-child {
  font-size: 16px;
  margin: 0;
}
.journey-step {
  display: grid;
  grid-template-columns: 32px auto;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: #8faac3;
}
.step {
  width: 29px;
  height: 29px;
  display: grid;
  place-items: center;
  border: 1px solid #637b9566;
  border-radius: 50%;
  font-size: 12px;
}
.step.active {
  background: #bcdded;
  color: #102334;
  border-color: #bcdded;
}
.browse-tools {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  margin-bottom: 28px;
}
.browse-tools .filters {
  margin: 0;
  gap: 8px;
}
.filters button {
  min-height: 52px;
  padding: 10px 21px;
  font-size: 14px;
}
.filters .selected {
  background: #d3e8ef;
  color: #152838;
  border-color: #d3e8ef;
}
.text-button {
  color: #c5d8e8;
  min-height: 48px;
  white-space: nowrap;
}
.section-label {
  font-size: 10px;
  letter-spacing: 1.8px;
  margin-bottom: 16px;
}
.grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.card {
  min-height: 330px;
  border-radius: 25px;
  border-color: #7995ae50;
  background: #0a2035;
  transition:
    border-color 0.25s,
    transform 0.25s;
  animation: arrive 0.4s ease both;
}
.card:nth-child(2) {
  animation-delay: 35ms;
}
.card:nth-child(3) {
  animation-delay: 65ms;
}
.card:nth-child(4) {
  animation-delay: 95ms;
}
.card:hover {
  border-color: #bddff3;
  transform: translateY(-3px);
}
.card:after {
  background: linear-gradient(
    180deg,
    #0615251a 15%,
    #06142600 25%,
    #051326b3 60%,
    #041222 100%
  );
}
.card img {
  object-position: center 40%;
  filter: saturate(0.9);
}
.card-copy {
  padding: 26px;
}
.card h3 {
  font-size: 32px;
  letter-spacing: -0.5px;
  margin-bottom: 8px;
}
.card .description {
  font-size: 14px;
  color: #c2d4e6;
  max-width: 85%;
  line-height: 1.4;
}
.card-top {
  position: absolute;
  inset: 18px 18px auto;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.card-top > span {
  background: #071b30b3;
  backdrop-filter: blur(5px);
  border: 1px solid #cee8ff33;
  border-radius: 24px;
  padding: 5px 12px;
  font-size: 10px;
  letter-spacing: 1px;
}
.card-bottom {
  border-top: 1px solid #9cbedb35;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 18px;
  padding-top: 15px;
  font-size: 12px;
  letter-spacing: 0.4px;
  color: #d7e9f4;
}
.arrow {
  float: none;
  width: 33px;
  height: 33px;
  line-height: 29px;
  border-color: #84b4d06e;
}
.gallery-nav {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: center;
  gap: 12px;
  margin: 27px 0 0;
}
.gallery-nav > button {
  min-height: 56px;
  background: #112239;
  font-size: 14px;
  border-radius: 18px;
}
.gallery-nav > button:disabled {
  opacity: 0.25;
}
.gallery-nav > button:last-child {
  background: #d4e8f1;
  color: #112839;
  border-color: #d4e8f1;
}
.gallery-nav > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 10px;
  color: #90abc3;
  gap: 8px;
}
.page-dots {
  display: flex;
  gap: 7px;
}
.page-dots i {
  display: block;
  width: 6px;
  height: 6px;
  background: #34506c;
  border-radius: 12px;
  transition: width 0.25s;
}
.page-dots i.active {
  width: 22px;
  background: #9fd1e7;
}
.gallery-note {
  text-align: center;
  font-size: 12px;
  margin-top: 22px;
}
.preview-page {
  padding-top: 6px;
  padding-bottom: 12px;
}
.preview-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  gap: 14px;
}
.preview-nav .back {
  margin: 0;
  min-height: 50px;
  border-radius: 16px;
}
.preview-nav .eyebrow {
  margin: 0;
  font-size: 10px;
  letter-spacing: 2px;
}
.preview-stage {
  position: relative;
  border-radius: 26px;
  overflow: hidden;
  background: #04111e;
  border: 1px solid #8db6cc4d;
}
.preview-stage .hero {
  border: 0;
  border-radius: 0;
  max-width: none;
}
.preview-stage .hero video,
.preview-stage .hero img {
  aspect-ratio: 16/10;
  object-fit: contain;
  max-height: 52dvh;
}
.preview-stage .badge {
  font-size: 9px;
  background: #051220bb;
  left: 18px;
  top: 18px;
}
.preview-caption {
  padding: 24px 30px 28px;
  background: linear-gradient(110deg, #102c43, #0b182e);
  border-top: 1px solid #b1daff24;
}
.preview-caption h1 {
  font-size: 43px;
  margin: 12px 0 8px;
  letter-spacing: -1px;
}
.preview-caption p {
  margin: 0;
  font-size: 15px;
}
.preview-caption .tag {
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  border: 0;
  background: none;
  padding: 0;
  color: #b6dfe9;
}
.preview-under {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin: 16px 0;
}
.preview-under .tags {
  justify-content: start;
  gap: 6px;
}
.preview-under .tag {
  border: 0;
  padding: 7px 10px;
  color: #b2cadd;
  font-size: 11px;
  background: #10243a;
}
.preview-under .media-controls {
  margin: 0;
  gap: 8px;
}
.media-controls button {
  min-height: 48px;
  font-size: 12px;
  padding: 8px 15px;
}
.versions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 15px 0;
  border-top: 1px solid #aac8df20;
  color: #b5cce0;
  font-size: 12px;
}
.versions > div {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.versions button {
  font-size: 12px;
  border-radius: 13px;
  padding: 8px 14px;
  min-height: 48px;
}
.versions button.selected {
  background: #bddde8;
  border-color: #bddde8;
  color: #102839;
}
.start-dock {
  position: sticky;
  bottom: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 23px 0;
  background: #071322f5;
  border-top: 1px solid #90b3d23d;
}
.start-dock .eyebrow {
  font-size: 10px;
  margin-bottom: 6px;
}
.start-dock p:last-child {
  font-size: 14px;
  color: #d2dfeb;
  margin: 0;
}
.start-dock .primary {
  min-width: 260px;
  min-height: 66px;
  border-radius: 19px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 35px;
  font-size: 13px;
  background: linear-gradient(105deg, #8b7ed9, #438cc7 75%, #4fb5d0);
  box-shadow: 0 6px 24px #517ade26;
}
.recording-note {
  margin: 4px 0 16px;
  text-align: center;
  font-size: 10px;
  color: #8aabc7;
}
.review-notice {
  margin: 8px 0;
  color: #efc9a4;
  font-size: 13px;
}
.review-notice button {
  margin-left: 10px;
}
.session-title {
  margin-top: 10px;
}
.status-list {
  max-width: 800px;
  margin: 20px auto;
}
.session-grid .hero {
  display: flex;
  align-items: center;
  background: #020812;
}
.session-grid .hero video {
  aspect-ratio: 16/9;
  min-height: 0;
  height: auto;
}
.session-grid .hero img {
  aspect-ratio: 16/9;
}
.session-grid .interaction {
  padding: 22px 14px;
}
.session-grid .orb {
  height: 70px;
  width: 70px;
  margin: 14px auto;
}
.session-grid .interaction h3 {
  font-size: 18px;
}
.session-grid .interaction p {
  font-size: 12px;
}
.session-grid .interaction .down {
  font-size: 22px;
}
.actions {
  max-width: 800px;
  margin: 20px auto;
}
.primary:active,
.card:active {
  transform: scale(0.985);
}
@keyframes arrive {
  from {
    opacity: 0;
    transform: translateY(9px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@media (min-width: 1100px) and (orientation: landscape) {
  .shell {
    max-width: 1320px;
  }
  .discovery-intro {
    margin-bottom: 24px;
  }
  .discovery-intro h1 {
    font-size: 54px;
  }
  .discovery-intro h1 br {
    display: none;
  }
  .grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
  }
  .card {
    min-height: 380px;
  }
  .card-copy {
    padding: 22px;
  }
  .card h3 {
    font-size: 28px;
  }
  .card .description {
    max-width: 100%;
    min-height: 40px;
  }
  .preview-page {
    max-width: 1100px;
    margin: auto;
  }
  .preview-stage {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    align-items: stretch;
  }
  .preview-stage .hero {
    display: flex;
    align-items: center;
  }
  .preview-caption {
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-top: 0;
    border-left: 1px solid #b1daff24;
  }
  .preview-stage .hero video {
    aspect-ratio: 16/10;
    max-height: 50dvh;
  }
}
@media (max-width: 700px) {
  .journey-step {
    display: none;
  }
  .discovery-intro {
    margin-bottom: 24px;
  }
  .discovery-intro h1 {
    font-size: 46px;
  }
  .browse-tools {
    display: block;
    margin-bottom: 20px;
  }
  .browse-tools .filters {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }
  .filters button {
    padding: 9px 11px;
    font-size: 13px;
  }
  .browse-tools > .text-button {
    float: right;
    font-size: 11px;
  }
  .section-label {
    clear: both;
    font-size: 9px;
  }
  .card {
    min-height: 275px;
  }
  .card-copy {
    padding: 18px 15px;
  }
  .card h3 {
    font-size: 25px;
  }
  .card .description {
    font-size: 12px;
    max-width: 100%;
    min-height: 34px;
  }
  .card-top {
    inset: 12px 12px auto;
  }
  .card-top > span {
    font-size: 9px;
    padding: 4px 8px;
  }
  .card-bottom {
    font-size: 10px;
  }
  .grid {
    gap: 13px;
  }
  .preview-nav .eyebrow {
    display: none;
  }
  .preview-under {
    align-items: stretch;
    flex-direction: column;
  }
  .preview-under .media-controls {
    justify-content: start;
  }
  .preview-caption {
    padding: 20px;
  }
  .preview-caption h1 {
    font-size: 34px;
  }
  .versions {
    align-items: start;
    flex-direction: column;
    gap: 10px;
  }
  .start-dock {
    gap: 12px;
    padding: 15px 0;
  }
  .start-dock > div {
    display: none;
  }
  .start-dock .primary {
    width: 100%;
  }
  .gallery-nav {
    grid-template-columns: 1fr 0.7fr 1fr;
  }
  .gallery-nav > button {
    font-size: 12px;
    padding: 10px;
  }
  .recording-note {
    font-size: 9px;
  }
  .gallery-note {
    font-size: 11px;
  }
  .preview-stage .hero video {
    aspect-ratio: 16/10;
  }
  .preview-stage .badge {
    font-size: 8px;
    padding: 4px 7px;
    top: 10px;
    left: 10px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .card {
    animation: none;
  }
  .card:hover {
    transform: none;
  }
  .card img {
    transition: none;
  }
}
@media (min-width: 701px) and (orientation: portrait) {
  .discovery .card {
    min-height: clamp(330px, 25dvh, 440px);
  }
}
.preview-page {
  padding-bottom: 122px;
}
.start-dock {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(90vw, 990px);
  padding: 20px 0;
  box-shadow: 0 -18px 35px #071322e6;
}
.start-dock .primary:active {
  transform: scale(0.985);
}
html {
  scroll-padding-bottom: 130px;
}
button,
select {
  scroll-margin-bottom: 130px;
}
.version-select {
  display: none;
}
@media (max-width: 700px) {
  header {
    height: 72px;
  }
  .preview-caption {
    padding: 18px;
  }
  .preview-caption h1 {
    font-size: 30px;
    margin: 8px 0;
  }
  .preview-caption p {
    font-size: 13px;
  }
  .preview-stage .hero video {
    aspect-ratio: 16/9;
  }
  .versions {
    flex-direction: row;
    align-items: center;
  }
  .versions > div {
    display: none;
  }
  .version-select {
    display: block;
    width: auto;
    min-width: 0;
    flex: 1;
    margin: 0;
    font-size: 13px;
    min-height: 48px;
  }
  .versions > span {
    max-width: 95px;
  }
  .preview-under {
    margin: 12px 0;
  }
  .preview-nav {
    margin-bottom: 16px;
  }
}
/* iPad kiosk: history controls, swipeable gallery, intake questions and the closing smile. */
html {
  touch-action: manipulation;
  -webkit-text-size-adjust: 100%;
}
html.native {
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}
html.native input,
html.native textarea {
  -webkit-touch-callout: default;
  -webkit-user-select: text;
  user-select: text;
}
html.native #fullscreen {
  display: none;
}
header {
  padding-top: max(20px, env(safe-area-inset-top));
  padding-left: max(5%, env(safe-area-inset-left));
  padding-right: max(5%, env(safe-area-inset-right));
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.history-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: #0b1d34b3;
}
.history-nav button {
  min-height: 44px;
  width: 44px;
  padding: 0;
  border: 0;
  border-radius: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  color: #d6e8f4;
}
.history-nav button:disabled {
  opacity: 0.28;
}
.history-nav button svg {
  width: 21px;
  height: 21px;
  flex: none;
}
.history-nav .home {
  width: auto;
  padding: 0 16px 0 13px;
  font-size: 13px;
  letter-spacing: 0.3px;
}
.history-nav button:not(:disabled):active {
  background: #8bcaff26;
}
/* Gallery: whole pages scroll sideways with snap. */
.gallery {
  display: flex;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  margin: -8px -8px 0;
  padding: 8px 0 6px;
  -webkit-overflow-scrolling: touch;
}
.gallery::-webkit-scrollbar {
  display: none;
}
.gallery-page {
  flex: 0 0 100%;
  min-width: 0;
  padding: 0 8px;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}
.page-dots {
  gap: 0;
}
.page-dots button {
  min-height: 0;
  width: 24px;
  height: 24px;
  padding: 0;
  border: 0;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  transition: width 0.25s;
}
.page-dots button:before {
  content: "";
  display: block;
  width: 7px;
  height: 7px;
  border-radius: 7px;
  background: #34506c;
  transition:
    width 0.25s,
    background 0.25s;
}
.page-dots button.active {
  width: 38px;
}
.page-dots button.active:before {
  width: 24px;
  background: #9fd1e7;
}
.page-dots button:hover {
  background: none;
}
/* Intake */
.intake {
  padding-bottom: 150px;
  max-width: 1100px;
  margin: auto;
}
.world-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 5px 16px 5px 5px;
  border: 1px solid var(--line);
  border-radius: 30px;
  font-size: 13px;
  color: #d7e9f4;
  background: #0d2139;
  white-space: nowrap;
  max-width: 40%;
  overflow: hidden;
  text-overflow: ellipsis;
}
.world-chip img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  flex: none;
}
.intake-head {
  margin: 4px 0 20px;
}
.intake-head h1 {
  font-size: clamp(34px, 4.4vw, 52px);
  letter-spacing: -1.2px;
  margin: 0 0 8px;
}
.intake-head h1 em {
  color: #b5dcf0;
}
.intake-head p {
  margin: 0;
  font-size: 15px;
}
.intake-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 16px;
}
.question {
  background: linear-gradient(160deg, #10263fd9, #0a192cd9);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 20px 22px 22px;
  min-width: 0;
  transition: border-color 0.3s;
}
.question.wide {
  grid-column: 1/-1;
}
.question.done {
  border-color: #86d3e866;
}
.q-label {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 16px;
  color: #e6f1fa;
  font-size: 17px;
  line-height: 1.3;
}
.q-label span {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 12px;
  background: #183552;
  color: #9fd1e7;
  flex: none;
  transition:
    background 0.3s,
    color 0.3s;
}
.question.done .q-label span {
  background: #9fd1e7;
  color: #0d2134;
}
.age-picker {
  display: flex;
  align-items: center;
  gap: 10px;
}
.age-step {
  flex: none;
  width: 54px;
  height: 54px;
  min-height: 0;
  padding: 0;
  border-radius: 50%;
  font-size: 26px;
  line-height: 1;
  background: #0f2540;
}
.age-strip {
  position: relative;
  flex: 1;
  min-width: 0;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  padding: 8px 4px;
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent,
    #000 9%,
    #000 91%,
    transparent
  );
  mask-image: linear-gradient(
    90deg,
    transparent,
    #000 9%,
    #000 91%,
    transparent
  );
}
.age-strip::-webkit-scrollbar {
  display: none;
}
.age-strip button {
  flex: none;
  width: 58px;
  height: 58px;
  min-height: 0;
  padding: 0;
  border-radius: 18px;
  font-size: 21px;
  scroll-snap-align: center;
  background: #0c1f36;
  border-color: #7cabce30;
  font-variant-numeric: tabular-nums;
  transition:
    transform 0.18s,
    background 0.18s;
}
.choice-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.choice-row button {
  min-height: 58px;
  border-radius: 18px;
  font-size: 15px;
  background: #0c1f36;
  padding: 8px 12px;
}
.age-strip button.selected,
.choice-row button.selected {
  background: #d3e8ef;
  color: #102334;
  border-color: #d3e8ef;
  box-shadow: 0 8px 24px #9fd1e73a;
}
.age-strip button.selected {
  transform: scale(1.08);
}
/* 0–10 face scale */
.mood-hero {
  --hue: 205;
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 64px;
  margin: 0 0 14px;
}
.mood-hero .face {
  font-size: 50px;
  line-height: 1;
  filter: drop-shadow(0 6px 16px hsl(var(--hue) 80% 60% / 0.4));
}
.mood-hero strong {
  font-family: Georgia, serif;
  font-weight: 400;
  font-size: 26px;
  color: hsl(var(--hue) 75% 84%);
}
.mood-hero.unset .face {
  opacity: 0.35;
  filter: grayscale(1);
}
.mood-hero.unset strong {
  font-family: inherit;
  font-size: 15px;
  color: #8faac3;
}
.mood-hero.pop .face {
  animation: pop 0.45s cubic-bezier(0.3, 1.6, 0.5, 1);
}
@keyframes pop {
  from {
    transform: scale(0.55) rotate(-10deg);
  }
  to {
    transform: scale(1) rotate(0);
  }
}
.mood-scale {
  display: grid;
  grid-template-columns: repeat(11, minmax(0, 1fr));
  gap: 8px;
}
.mood-scale button {
  min-height: 0;
  aspect-ratio: 1/1.2;
  padding: 4px 0;
  border-radius: 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  border: 1px solid hsl(var(--hue) 60% 62% / 0.3);
  background: hsl(var(--hue) 45% 32% / 0.16);
  transition:
    transform 0.18s,
    background 0.18s,
    box-shadow 0.18s,
    border-color 0.18s;
}
.mood-scale button:hover {
  border-color: hsl(var(--hue) 80% 70% / 0.8);
  background: hsl(var(--hue) 50% 40% / 0.22);
}
.mood-scale .face {
  font-size: clamp(22px, 2.7vw, 36px);
  line-height: 1.15;
}
.mood-scale .num {
  font-size: 12px;
  color: hsl(var(--hue) 55% 80%);
  font-variant-numeric: tabular-nums;
}
.mood-scale button.selected {
  background: hsl(var(--hue) 70% 55% / 0.34);
  border-color: hsl(var(--hue) 85% 72%);
  transform: translateY(-5px) scale(1.08);
  box-shadow: 0 12px 28px hsl(var(--hue) 80% 50% / 0.35);
}
.scale-ends {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
  font-size: 10px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: #8faac3;
}
.dock-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}
.start-dock {
  padding-bottom: max(20px, calc(env(safe-area-inset-bottom) + 12px));
}
/* Closing smile */
.feedback-page {
  --hue: 205;
  position: relative;
  min-height: calc(100dvh - 180px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px 5% 40px;
  max-width: 1080px;
  margin: auto;
}
.feedback-page:before {
  content: "";
  position: absolute;
  inset: -12% -25%;
  background: radial-gradient(
    closest-side at 50% 45%,
    hsl(var(--hue) 70% 50% / 0.22),
    transparent 75%
  );
  transition: background 0.6s;
  pointer-events: none;
}
.feedback-page > * {
  position: relative;
}
.feedback-page h1 {
  font-size: clamp(34px, 4.8vw, 58px);
  letter-spacing: -1.2px;
  max-width: 860px;
  margin: 0 auto 6px;
}
.feedback-page h1 em {
  color: #b5dcf0;
}
.feel-hero {
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  min-height: 170px;
  margin: 12px 0 22px;
}
.feel-hero .face {
  font-size: 104px;
}
.feel-hero strong {
  font-size: 32px;
}
.feel-hero.unset strong {
  font-size: 16px;
}
.feedback-page .mood-scale,
.feedback-page .scale-ends {
  width: 100%;
  max-width: 980px;
}
.feedback-page .mood-scale button {
  border-radius: 22px;
}
.feedback-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin-top: 30px;
  width: 100%;
  max-width: 420px;
}
.feedback-actions .primary,
.dock-actions .primary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 35px;
}
.feedback-actions .primary {
  width: 100%;
  min-height: 66px;
  border-radius: 19px;
  background: linear-gradient(105deg, #8b7ed9, #438cc7 75%, #4fb5d0);
}
.sparkles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.sparkles i {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: hsl(var(--hue) 90% 80%);
  box-shadow: 0 0 12px hsl(var(--hue) 90% 70%);
  opacity: 0;
  animation: twinkle 4.5s ease-in-out infinite;
}
.sparkles i:nth-child(1) {
  left: 8%;
  top: 18%;
}
.sparkles i:nth-child(2) {
  left: 22%;
  top: 72%;
  animation-delay: 0.6s;
}
.sparkles i:nth-child(3) {
  left: 35%;
  top: 8%;
  animation-delay: 1.4s;
}
.sparkles i:nth-child(4) {
  left: 52%;
  top: 88%;
  animation-delay: 2.1s;
}
.sparkles i:nth-child(5) {
  left: 68%;
  top: 12%;
  animation-delay: 0.3s;
}
.sparkles i:nth-child(6) {
  left: 84%;
  top: 30%;
  animation-delay: 1.8s;
}
.sparkles i:nth-child(7) {
  left: 92%;
  top: 66%;
  animation-delay: 2.7s;
}
.sparkles i:nth-child(8) {
  left: 4%;
  top: 52%;
  animation-delay: 3.2s;
}
.sparkles i:nth-child(9) {
  left: 76%;
  top: 84%;
  animation-delay: 1.1s;
}
.sparkles i:nth-child(10) {
  left: 44%;
  top: 30%;
  animation-delay: 3.6s;
}
.sparkles i:nth-child(11) {
  left: 15%;
  top: 38%;
  animation-delay: 2.4s;
}
.sparkles i:nth-child(12) {
  left: 60%;
  top: 50%;
  animation-delay: 4s;
}
@keyframes twinkle {
  0%,
  100% {
    opacity: 0;
    transform: translateY(6px) scale(0.6);
  }
  50% {
    opacity: 0.85;
    transform: translateY(-6px) scale(1);
  }
}
.sync-status {
  font-size: 13px;
  line-height: 1.7;
  color: #c4d6e6;
  background: #071a2f;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 16px;
}
.sync-status strong {
  color: #e8f4fb;
  font-weight: 600;
}
@media (orientation: portrait) and (min-width: 701px) {
  .intake-head {
    margin-bottom: 24px;
  }
  .question {
    padding: 22px 24px 24px;
  }
}
@media (max-width: 900px) {
  .history-nav .home span {
    display: none;
  }
  .history-nav .home {
    width: 44px;
    padding: 0;
  }
}
@media (max-width: 700px) {
  .header-actions {
    gap: 6px;
  }
  .history-nav {
    padding: 2px;
  }
  .history-nav button {
    width: 40px;
    min-height: 40px;
  }
  .history-nav .home {
    width: 40px;
  }
  .pill {
    display: none;
  }
  .intake-grid {
    grid-template-columns: 1fr;
  }
  .world-chip {
    display: none;
  }
  .mood-scale {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
  .mood-hero .face {
    font-size: 40px;
  }
  .mood-hero strong {
    font-size: 21px;
  }
  .feel-hero .face {
    font-size: 80px;
  }
  .start-dock > .dock-actions {
    display: flex;
    width: 100%;
  }
  .dock-actions .primary {
    flex: 1;
    min-width: 0;
  }
  .choice-row button {
    font-size: 14px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .sparkles {
    display: none;
  }
  .mood-scale button.selected {
    transform: none;
  }
}
.intake-head {
  margin: 0 0 16px;
}
.intake-head h1 {
  font-size: clamp(32px, 3.8vw, 46px);
}
.intake .choice-row {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.intake .choice-row button {
  min-height: 62px;
  padding: 6px 8px;
  line-height: 1.25;
}
.q-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 0 0 14px;
  min-height: 52px;
}
.q-head .q-label {
  margin: 0;
}
.q-head .mood-hero {
  margin: 0;
  min-height: 0;
  flex: none;
}
.q-head .mood-hero .face {
  font-size: 40px;
}
.q-head .mood-hero strong {
  font-size: 22px;
}
.q-head .mood-hero.unset strong {
  font-size: 13px;
}
@media (max-width: 1000px) and (orientation: portrait) {
  .intake .choice-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 700px) {
  .q-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}
.info-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.info-button svg {
  width: 17px;
  height: 17px;
  flex: none;
}
/* SVG faces */
.face {
  display: block;
  flex: none;
}
.face svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}
.mood-scale .face {
  width: clamp(28px, 3.4vw, 46px);
  height: clamp(28px, 3.4vw, 46px);
  font-size: 0;
}
.mood-hero .face {
  width: 54px;
  height: 54px;
  font-size: 0;
}
.q-head .mood-hero .face {
  width: 46px;
  height: 46px;
}
.feel-hero .face {
  width: 128px;
  height: 128px;
}
.mood-hero.unset .face {
  opacity: 0.4;
  filter: grayscale(1);
}
.mini-face {
  display: inline-block;
  width: 30px;
  height: 30px;
  vertical-align: -8px;
  margin-right: 10px;
}
.mini-face svg {
  width: 100%;
  height: 100%;
}
@media (max-width: 700px) {
  .mood-hero .face {
    width: 42px;
    height: 42px;
  }
  .feel-hero .face {
    width: 96px;
    height: 96px;
  }
}
.icon {
  width: 17px;
  height: 17px;
  vertical-align: -3px;
  flex: none;
}
/* Footer sits at the bottom of short pages; pages with the fixed start dock leave room for it. */
.shell {
  display: flex;
  flex-direction: column;
}
#app {
  flex: 1;
}
.shell:has(.start-dock) {
  padding-bottom: 112px;
}
.preview-page,
.intake {
  padding-bottom: 16px;
}
/* Staff: detected headsets */
html.native .web-only {
  display: none;
}
#connection.live {
  color: #bff3d9;
  border-color: #5fd39a66;
  background: #0d2a26;
}
.headset-list {
  display: grid;
  gap: 8px;
  margin: 14px 0 4px;
}
.headset-option {
  display: flex;
  align-items: center;
  gap: 14px;
  text-align: left;
  border-radius: 16px;
  padding: 12px 16px;
  min-height: 60px;
  background: #0a1b30;
}
.headset-option strong {
  display: block;
  font-weight: 500;
  font-size: 15px;
  color: #e8f4fb;
}
.headset-option small {
  display: block;
  font-size: 12px;
  color: #93abc3;
  margin-top: 2px;
}
.headset-option.selected {
  border-color: #9fd1e7;
  background: #13304a;
  box-shadow: inset 0 0 0 1px #9fd1e7;
}
.headset-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex: none;
  background: #3a5068;
}
.headset-dot.on {
  background: #5fe0a0;
  box-shadow: 0 0 10px #5fe0a0aa;
}
#experienceStatus .text-button {
  min-height: 0;
  margin-left: 8px;
  font-size: 12px;
}
/* Age: type it, step it, or tap a quick pick */
.age-entry {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
#ageInput {
  flex: 1;
  min-width: 0;
  height: 62px;
  margin: 0;
  padding: 0 12px;
  text-align: center;
  font-size: 30px;
  font-variant-numeric: tabular-nums;
  border-radius: 18px;
  background: #061329;
  border: 1px solid #54718d;
  color: #f0f7ff;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}
#ageInput::placeholder {
  font-size: 17px;
  color: #6f89a3;
}
#ageInput:focus {
  outline: 0;
  border-color: #9fd1e7;
  box-shadow: 0 0 0 3px #9fd1e733;
}
.question.done #ageInput {
  border-color: #9fd1e7;
}
/* Brand: Immersive Smile Plus logo (headset + smile mark) */
.brand-logo {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  flex: none;
  box-shadow:
    0 0 0 1px #7fe8dc3d,
    0 6px 18px #00c0b12e;
}
@media (max-width: 500px) {
  .brand-logo {
    width: 34px;
    height: 34px;
    border-radius: 9px;
  }
}

/* Bigger, friendlier faces on the stress and closing-smile scales */
.mood-scale {
  gap: 10px;
}
.mood-scale button {
  aspect-ratio: 1 / 1.16;
  padding: 8px 0 6px;
  border-radius: 20px;
  gap: 4px;
}
.mood-scale .face {
  width: clamp(38px, 4.4vw, 58px);
  height: clamp(38px, 4.4vw, 58px);
  transition: transform 0.18s;
}
.mood-scale .num {
  font-size: 13px;
}
.mood-scale button:active {
  transform: scale(0.95);
}
.mood-scale button.selected .face {
  transform: scale(1.06);
}
.feedback-page .mood-scale .face {
  width: clamp(42px, 5vw, 64px);
  height: clamp(42px, 5vw, 64px);
}
.feel-hero .face {
  width: 140px;
  height: 140px;
}

/* Closing smile: optional comment */
.feedback-note {
  display: block;
  width: 100%;
  max-width: 640px;
  margin: 26px auto 0;
  text-align: left;
  font-size: 14px;
  color: #c4d6e6;
}
.feedback-note em {
  font-style: normal;
  font-size: 12px;
  color: #7f9bb5;
  margin-left: 6px;
}
.feedback-note textarea {
  display: block;
  width: 100%;
  min-height: 84px;
  margin-top: 8px;
  padding: 14px 16px;
  resize: none;
  border-radius: 16px;
  background: #061329cc;
  border: 1px solid #54718d;
  color: #f0f7ff;
  font: inherit;
  font-size: 15px;
  line-height: 1.45;
}
.feedback-note textarea:focus {
  outline: 0;
  border-color: #9fd1e7;
  box-shadow: 0 0 0 3px #9fd1e733;
}
.feedback-actions .small-note {
  margin: 6px 0 0;
}
html.native textarea {
  -webkit-user-select: text;
  user-select: text;
}

/* Headset step */
.headset-page {
  max-width: 1100px;
  margin: auto;
  padding-bottom: 16px;
}
.headset-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
}
.headset-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  min-height: 160px;
  padding: 22px;
  text-align: left;
  border-radius: 24px;
  background: linear-gradient(160deg, #10263fd9, #0a192cd9);
  border: 1px solid var(--line);
  transition:
    border-color 0.2s,
    background 0.2s,
    box-shadow 0.2s,
    transform 0.15s;
}
.headset-card:active {
  transform: scale(0.98);
}
.headset-card .vr-icon {
  width: 54px;
  height: 36px;
  margin-bottom: 10px;
  color: #8fe6dc;
}
.headset-card strong {
  font-size: 19px;
  font-weight: 500;
  color: #eef7fc;
}
.headset-card small {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  color: #93abc3;
}
.headset-card .check {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #8fe6dc;
  color: #08302f;
  font-size: 15px;
  font-weight: 700;
  opacity: 0;
  transform: scale(0.6);
  transition:
    opacity 0.2s,
    transform 0.2s;
}
.headset-card.selected {
  border-color: #8fe6dc;
  background: linear-gradient(160deg, #124650, #0c2638);
  box-shadow:
    inset 0 0 0 1px #8fe6dc,
    0 12px 30px #00c0b126;
}
.headset-card.selected .check {
  opacity: 1;
  transform: none;
}
.headset-empty {
  grid-column: span 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 160px;
  padding: 22px;
  text-align: center;
  border: 1px dashed #7cabce55;
  border-radius: 24px;
  color: #93abc3;
}
.headset-empty strong {
  font-weight: 500;
  color: #dbe9f3;
}
.headset-empty small {
  font-size: 13px;
  max-width: 320px;
}
.scan {
  width: 18px;
  height: 18px;
  margin-bottom: 8px;
  border-radius: 50%;
  background: #8fe6dc;
  animation: scan 1.8s ease-out infinite;
}
@keyframes scan {
  0% {
    box-shadow: 0 0 0 0 #8fe6dc99;
  }
  100% {
    box-shadow: 0 0 0 22px #8fe6dc00;
  }
}
@media (max-width: 700px) {
  .headset-empty {
    grid-column: auto;
  }
  .mood-scale .face {
    width: 40px;
    height: 40px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .scan {
    animation: none;
  }
}

/* Landscape iPads: keep the closing question, faces, note and Send on one screen */
@media (max-height: 900px) and (orientation: landscape) {
  .feedback-page {
    min-height: 0;
    padding-top: 4px;
    padding-bottom: 24px;
  }
  .feedback-page h1 {
    font-size: clamp(30px, 3.6vw, 44px);
    max-width: 1000px;
  }
  .feel-hero {
    min-height: 0;
    gap: 4px;
    margin: 6px 0 14px;
  }
  .feel-hero .face {
    width: 96px;
    height: 96px;
  }
  .feel-hero strong {
    font-size: 26px;
  }
  .feedback-note {
    margin-top: 14px;
  }
  .feedback-note textarea {
    min-height: 58px;
  }
  .feedback-actions {
    margin-top: 14px;
  }
  .feedback-page .mood-scale button {
    aspect-ratio: 1 / 1.08;
  }
}

/* Landscape iPads: all three intake questions above the Continue bar */
@media (max-height: 900px) and (orientation: landscape) {
  .intake .preview-nav,
  .headset-page .preview-nav {
    margin-bottom: 10px;
  }
  .intake-head {
    margin-bottom: 12px;
  }
  .intake-head h1 {
    font-size: clamp(30px, 3.2vw, 40px);
    margin-bottom: 4px;
  }
  .intake-grid {
    gap: 12px;
  }
  .question {
    padding: 16px 20px 18px;
  }
  .q-label {
    margin-bottom: 12px;
  }
  .q-head {
    margin-bottom: 10px;
    min-height: 46px;
  }
  .age-entry {
    margin-bottom: 8px;
  }
  .age-step {
    width: 50px;
    height: 50px;
  }
  #ageInput {
    height: 54px;
  }
  .age-strip button {
    width: 52px;
    height: 52px;
  }
  .intake .choice-row button {
    min-height: 56px;
  }
  .intake .mood-scale button {
    aspect-ratio: 1 / 0.94;
  }
}

/* Landscape iPads: full-bleed artwork and the countdown on screen for the thank-you page */
@media (orientation: landscape) and (min-width: 900px) {
  .attract {
    min-height: calc(100dvh - 140px);
  }
  .attract:before {
    background:
      linear-gradient(#06132940, #06132900 35%, #061329d9 92%),
      url("assets/welcome.png") center 58% / cover no-repeat;
  }
  .attract .welcome-bottom {
    padding-top: 24px;
  }
}

/* Scene-specific guidance and the existing Nightfall headset transport. */
.scene-guide { padding: 22px 0; text-align: left; }
.scene-guide h3 { margin: 8px 0 14px; font-size: 1.3rem; }
.scene-guide ul { padding-left: 22px; margin: 0; }
.scene-guide li { line-height: 1.65; margin: 9px 0; }
.guide-duration { font-weight: 600; color: #b8e4d5; }
.interaction .scene-guide { padding: 0; }
.nightfall-controls { margin: 24px 0; padding: 24px; border: 1px solid #426077; background: #112536; border-radius: 20px; }
.nightfall-controls fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.nightfall-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin: 22px 0; }
.nightfall-options label { line-height: 1.6; }
.nightfall-options input[type=checkbox] { display: inline-block; width: 22px; height: 22px; vertical-align: middle; margin-right: 8px; }
.nightfall-options select { display: block; width: 100%; margin-top: 8px; padding: 12px; background: #091a29; color: white; border: 1px solid #658094; border-radius: 8px; font: inherit; }
.nightfall-controls .nightfall-stop, .nightfall-controls .nightfall-stop:hover { width: 100%; min-height: 54px; border-radius: 12px; background: #903e46; color: white; font-size: 19px; font-weight: 600; }
#nfError { color: #ffd0bc; }
@media (max-width: 650px) { .nightfall-options { grid-template-columns: 1fr; } }

.card.preview-pending { background: linear-gradient(155deg, #567887, #344a66 45%, #182536); }

.ball-settings fieldset { border:0; padding:0; margin:0; min-width:0; }
.ball-settings [data-ball="error"] { color:#ffd0bc; }
.ball-session { border:1px solid #426077; border-radius:16px; padding:18px 24px; margin:20px 0; }
.ball-session summary { cursor:pointer; min-height:28px; font-weight:600; }

/* Phones (Android app, small tablets): compact versions of every screen */
@media (max-width: 500px) {
  header {
    height: 64px;
  }
  .brand-logo {
    width: 34px;
    height: 34px;
  }

  /* Gallery: short intro, one scrolling row of filters, tighter cards */
  .discovery {
    padding-top: 6px;
  }
  .discovery-intro {
    margin-bottom: 14px;
  }
  .discovery-intro .eyebrow {
    display: none;
  }
  .discovery-intro h1 {
    font-size: 31px;
    letter-spacing: -1px;
    margin-bottom: 6px;
  }
  .discovery-intro p:last-child {
    font-size: 14px;
  }
  .browse-tools {
    margin-bottom: 12px;
  }
  .browse-tools .filters {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
    margin: 0 -20px 6px;
    padding: 0 20px;
  }
  .browse-tools .filters::-webkit-scrollbar {
    display: none;
  }
  .browse-tools .filters button {
    flex: none;
    min-height: 42px;
    padding: 8px 16px;
    font-size: 13px;
  }
  .browse-tools > .text-button {
    float: none;
    min-height: 34px;
  }
  .section-label {
    margin-bottom: 10px;
  }
  .section-label span:last-child {
    display: none;
  }
  .card {
    min-height: 214px;
  }
  .card h3 {
    font-size: 21px;
    line-height: 1.12;
  }
  .card .description {
    min-height: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .card-bottom {
    margin-top: 10px;
    padding-top: 10px;
  }
  .gallery-nav {
    margin-top: 16px;
  }
  .gallery-nav > button {
    min-height: 48px;
  }

  /* About you + headset steps */
  .intake .preview-nav .back,
  .headset-page .preview-nav .back {
    min-height: 42px;
    padding: 6px 14px;
    font-size: 13px;
  }
  .intake-head {
    margin-bottom: 12px;
  }
  .intake-head h1 {
    font-size: 28px;
    margin-bottom: 4px;
  }
  .intake .intake-head p {
    display: none;
  }
  .headset-page .intake-head p {
    font-size: 13px;
  }
  .intake-grid {
    gap: 10px;
  }
  .question {
    padding: 14px 14px 16px;
    border-radius: 20px;
  }
  .q-label {
    font-size: 15px;
    gap: 10px;
    margin-bottom: 10px;
  }
  .q-head {
    margin-bottom: 8px;
  }
  .age-entry {
    gap: 8px;
    margin-bottom: 8px;
  }
  .age-step {
    width: 46px;
    height: 46px;
  }
  #ageInput {
    height: 50px;
    font-size: 26px;
  }
  /* Phones: type the age or use − / +; the tap-an-age row is for tablets */
  .age-strip {
    display: none;
  }
  .age-entry {
    margin-bottom: 0;
  }
  .intake .choice-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  .intake .choice-row button {
    min-height: 46px;
    font-size: 14px;
    border-radius: 14px;
  }
  .headset-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .headset-card {
    min-height: 118px;
    padding: 14px;
    border-radius: 18px;
  }
  .headset-card .vr-icon {
    width: 40px;
    height: 28px;
    margin-bottom: 4px;
  }
  .headset-card strong {
    font-size: 16px;
  }
  .headset-card small {
    font-size: 12px;
  }
  .headset-card .check {
    top: 10px;
    right: 10px;
    width: 24px;
    height: 24px;
    font-size: 12px;
  }
  .headset-empty {
    grid-column: 1 / -1;
    min-height: 110px;
  }

  /* 0–10 faces: two centred rows (6 + 5) that stay big enough to tap */
  .mood-scale {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
  }
  .mood-scale button {
    flex: 0 0 calc((100% - 40px) / 6);
    aspect-ratio: 1 / 1.12;
    border-radius: 16px;
  }
  .mood-scale .face {
    width: 34px;
    height: 34px;
  }
  .scale-ends {
    display: none;
  }

  /* Bottom bar */
  .start-dock {
    width: calc(100vw - 32px);
    padding: 10px 0 max(10px, env(safe-area-inset-bottom));
  }
  .start-dock .primary {
    min-height: 54px;
  }
  .shell:has(.start-dock) {
    padding-bottom: 84px;
  }

  /* Session */
  .session-title {
    margin: 4px 0 14px;
  }
  .session-title h1 {
    font-size: 30px;
  }
  .media-controls button {
    min-height: 42px;
    padding: 6px 12px;
  }
  .status-list {
    padding: 12px 16px;
    margin: 14px 0;
  }

  /* Closing smile */
  .feedback-page {
    min-height: 0;
    padding: 8px 16px 24px;
  }
  .feedback-page h1 {
    font-size: 27px;
  }
  .feel-hero {
    min-height: 0;
    gap: 4px;
    margin: 8px 0 12px;
  }
  .feel-hero .face {
    width: 76px;
    height: 76px;
  }
  .feel-hero strong {
    font-size: 22px;
  }
  .feedback-page .mood-scale .face {
    width: 38px;
    height: 38px;
  }
  .feedback-note {
    margin-top: 14px;
  }
  .feedback-note textarea {
    min-height: 64px;
  }
  .feedback-actions {
    margin-top: 14px;
  }
  .feedback-actions .primary {
    min-height: 56px;
  }

  /* Thank-you + staff dialog */
  .attract h1 {
    font-size: 26px;
    letter-spacing: 4px;
  }
  dialog {
    padding: 22px 18px;
  }
}

/* Android app on phones only (html.android is never set in the iPad app or a browser) */
@media (max-width: 600px) {
  html.android header {
    height: 58px;
    padding-top: 10px;
    padding-bottom: 6px;
  }
  html.android .brand {
    gap: 10px;
    font-size: 10px;
    letter-spacing: 2px;
  }
  html.android .brand-logo {
    width: 32px;
    height: 32px;
    border-radius: 9px;
  }
  html.android .history-nav {
    padding: 2px;
  }
  html.android .history-nav button {
    width: 38px;
    min-height: 38px;
  }
  html.android .history-nav button svg {
    width: 18px;
    height: 18px;
  }

  /* Preview: slim pill buttons, one swipeable row of tags + preview controls */
  html.android .preview-nav {
    margin-bottom: 12px;
  }
  html.android .preview-nav .back {
    min-height: 38px;
    padding: 6px 14px;
    font-size: 13px;
    border-radius: 20px;
  }
  html.android .preview-stage {
    border-radius: 22px;
  }
  html.android .preview-caption {
    padding: 16px 18px 18px;
  }
  html.android .preview-caption h1 {
    font-size: 28px;
    margin: 4px 0 6px;
  }
  html.android .preview-under {
    flex-direction: row;
    align-items: center;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
    margin: 12px -20px;
    padding: 0 20px;
  }
  html.android .preview-under::-webkit-scrollbar {
    display: none;
  }
  html.android .preview-under .tags,
  html.android .preview-under .media-controls {
    flex-wrap: nowrap;
    flex: none;
  }
  html.android .preview-under .tag,
  html.android .preview-under .media-controls button {
    white-space: nowrap;
    min-height: 36px;
    padding: 6px 12px;
    font-size: 12px;
  }

  /* Bottom bars float over a soft fade instead of a hard line */
  html.android .start-dock {
    border-top: 0;
    background: linear-gradient(180deg, #07132200, #071322 34%);
    box-shadow: none;
    padding-top: 22px;
  }
  html.android .start-dock .primary {
    border-radius: 18px;
    box-shadow: 0 10px 28px #517ade3d;
  }

  /* Session: End experience stays within reach while scrolling */
  html.android .session-title {
    margin: 0 0 12px;
  }
  html.android .session-title h1 {
    font-size: 28px;
    margin-bottom: 6px;
  }
  html.android .status-list {
    border-radius: 18px;
  }
  html.android .status-row {
    padding: 7px 0;
  }
  html.android .actions:has(#end) {
    position: sticky;
    bottom: 0;
    z-index: 3;
    margin: 0 -20px;
    padding: 20px 20px max(14px, env(safe-area-inset-bottom));
    background: linear-gradient(180deg, #07132200, #071322 38%);
  }
  html.android #end {
    min-height: 56px;
    border-radius: 18px;
  }

  /* Thank-you: comfortable on a narrow screen */
  html.android .attract {
    padding: 4vh 20px 28px;
  }
  html.android .attract .welcome-bottom {
    padding-top: 30vh;
  }
}

/* Fixed-headset sites: holding screen until the headset comes online */
.waiting-page {
  max-width: 1100px;
  margin: auto;
}
.waiting-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
  margin: 6vh auto 0;
  max-width: 760px;
  padding: 14px 14px 26px;
  border-radius: 28px;
  border: 1px solid var(--line);
  background: linear-gradient(160deg, #10263fd9, #0a192cd9);
}
.waiting-card h1 {
  font-size: clamp(30px, 4vw, 44px);
  margin: 10px 0 0;
}
.waiting-card h1 em {
  color: #b5dcf0;
}
.waiting-card p {
  margin: 0;
  font-size: 15px;
}
.waiting-pulse {
  width: 96px;
  height: 96px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #8fe6dc;
  background: #0f3a40;
  animation: scan 1.8s ease-out infinite;
}
.waiting-pulse .vr-icon {
  width: 52px;
  height: 36px;
}
.wear-video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 20px;
  background: #0b1622;
  margin-bottom: 6px;
}
.waiting-status {
  display: flex;
  align-items: center;
  gap: 8px;
}
.waiting-status .headset-dot {
  background: #f0b45a;
  box-shadow: 0 0 10px #f0b45a99;
}
@media (prefers-reduced-motion: reduce) {
  .waiting-pulse {
    animation: none;
  }
}

/* Staff sign-in: the app works for one hospital (and branch) at a time */
.signin {
  min-height: calc(100dvh - 170px);
  display: grid;
  place-items: center;
  padding: 4vh 20px;
}
.signin-card {
  width: min(520px, 100%);
  padding: 34px 34px 30px;
  border-radius: 28px;
  border: 1px solid var(--line);
  background: linear-gradient(160deg, #10263fe6, #0a192ce6);
  box-shadow: 0 30px 80px #0008;
}
.signin-logo {
  display: block;
  width: 72px;
  height: 72px;
  border-radius: 20px;
  margin-bottom: 18px;
}
.signin-card h1 {
  font-size: clamp(32px, 4.4vw, 44px);
  margin-bottom: 12px;
}
.signin-card h1 em {
  color: #b5dcf0;
}
.signin-card > p {
  font-size: 15px;
}
.signin-card form .primary {
  width: 100%;
  margin-top: 8px;
}
.signin-card input {
  min-height: 52px;
  font-size: 17px;
}
.password-field {
  position: relative;
  display: block;
}
.password-field input {
  padding-right: 78px;
}
.password-field .text-button {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(calc(-50% + 3px));
  min-height: 40px;
  text-decoration: none;
  font-size: 13px;
}
.signin-error {
  margin: 4px 0 14px;
  padding: 10px 14px;
  border-radius: 12px;
  background: #4a1622;
  border: 1px solid #ff8a9a55;
  color: #ffd2d8;
  font-size: 14px;
}
body.signed-out .history-nav,
body.signed-out #setup {
  visibility: hidden;
}

/* Staff panel: which hospital this app is signed in to */
.account-box {
  margin: 4px 0 22px;
}
.account-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 16px;
  background: #0a1b30;
  border: 1px solid var(--line);
}
.account-row img {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  object-fit: contain;
  background: #fff;
  flex: none;
}
.account-row strong {
  display: block;
  font-weight: 600;
  color: #e8f4fb;
}
.account-row small {
  color: #93abc3;
  font-size: 13px;
}
.secondary.danger {
  color: #ffc2cb;
  border-color: #ff8a9a66;
}

/* Headset battery, as the headset reports it */
.battery {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-left: 8px;
  font-size: 12px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: #8ff0bd;
  white-space: nowrap;
}
.battery-level {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}
.battery:has(.battery-reminder) {
  flex-wrap: wrap;
  white-space: normal;
}
.battery-reminder {
  white-space: normal;
}
.battery.unknown {
  color: #b7c6d7;
  white-space: normal;
}
.battery.mid {
  color: #ffd27a;
}
.battery.low {
  color: #ff9aa8;
}
.battery-shell {
  position: relative;
  width: 22px;
  height: 11px;
  padding: 1.5px;
  border: 1.5px solid currentColor;
  border-radius: 3px;
}
.battery-shell::after {
  content: "";
  position: absolute;
  right: -4px;
  top: 2.5px;
  width: 2px;
  height: 4px;
  border-radius: 0 1px 1px 0;
  background: currentColor;
}
.battery-shell span {
  display: block;
  height: 100%;
  border-radius: 1px;
  background: currentColor;
}
.headset-option .battery {
  margin-left: auto;
}
.pill .battery.in-pill {
  font-size: 11px;
  letter-spacing: 0;
}
.headset-card.offline {
  opacity: 0.55;
}
.headset-card.offline .vr-icon {
  color: #6b8197;
}

/* Let the worlds do the inviting: unobstructed motion, captions underneath. */
.discovery-intro { margin-bottom: 18px; align-items: center; }
.discovery-intro h1 { font-size: clamp(28px, 3.2vw, 42px); margin-bottom: 6px; }
.discovery-intro .eyebrow, .discovery-intro .journey-step { display: none; }
.discovery .card { min-height: 0; justify-content: flex-start; }
.discovery .card::after { display: none; }
.card-media { display: block; position: relative; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; background: #10263d; }
.discovery .card-media img, .discovery .card-media video { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; z-index: 0; filter: none; }
.discovery .card-media video[hidden] { display: none; }
.discovery .card-top { inset: 10px 10px auto; z-index: 1; }
.discovery .card-copy { padding: 14px 18px; display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; }
.discovery .card h3 { margin: 0; font-family: inherit; font-size: clamp(17px, 2vw, 24px); line-height: 1.2; letter-spacing: -0.3px; }
.card-invite { flex-shrink: 0; font-size: 12px; color: #afe9ff; }
.card-invite span { margin-left: 6px; font-size: 22px; }
.card-pending { display: grid; place-items: center; height: 100%; padding: 24px; color: #c3dced; }
@media (max-width: 500px) {
  .discovery .grid { gap: 10px; }
  .discovery .card-copy { padding: 12px; align-items: flex-start; flex-direction: column; gap: 5px; }
  .discovery .card-top > span { padding: 3px 7px; font-size: 8px; }
  .discovery .card-media { aspect-ratio: 4 / 3; }
}

/* Fill the Mac window/fullscreen display instead of a centred tablet-width shell. */
.shell {
  width: 100%;
  max-width: none;
  margin: 0;
  box-shadow: none;
}

/* Mac: four generous previews in two rows, sized to the available display height. */
@media (min-width: 1000px) {
  html.mac .discovery { padding-top: 8px; padding-bottom: 12px; }
  html.mac .discovery-intro { margin-bottom: 12px; }
  html.mac .discovery .gallery-page { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  html.mac .discovery .card-media { aspect-ratio: auto; height: clamp(190px, calc((100dvh - 400px) / 2), 560px); }
  html.mac .discovery .card-media img,
  html.mac .discovery .card-media video { object-fit: cover; object-position: center; background: #030a17; }
  html.mac .discovery .card-copy { padding: 10px 18px; }
  html.mac .discovery .gallery-nav { margin-top: 14px; }
  html.mac .discovery .gallery-note { margin: 10px 0 0; }
}

/* A playful, touch-first world picker. Companions are decorative, not controls. */
.discovery { background: radial-gradient(ellipse at 95% 0%, #24385580, transparent 52%); }
.discovery-intro { position: relative; min-height: 116px; padding-right: 160px; }
.discovery-intro h1 { font-family: ui-rounded, "Arial Rounded MT Bold", system-ui, sans-serif; font-weight: 750; font-size: clamp(30px, 4vw, 48px); letter-spacing: -1.5px; }
.discovery-intro h1 em { font-style: normal; color: #b6f3db; }
.discovery-intro .eyebrow { display: block; color: #ffe3a0; font-size: 11px; margin-bottom: 8px; }
.discovery-intro > div > p:last-child { font-size: clamp(16px, 2vw, 21px); color: #c8daeb; }
.discovery-friend { position: absolute; right: 12px; top: -4px; display: flex; align-items: center; flex-direction: column; }
.discovery-friend > span:last-child { background: #fff0c9; color: #3c3447; border-radius: 18px; padding: 7px 12px; font-size: 12px; font-weight: 700; transform: rotate(3deg); }
.discovery .filters button { min-height: 52px; font-weight: 650; border-radius: 18px; }
.discovery .filters .selected { background: #b6f3db; color: #133c38; border-color: #b6f3db; box-shadow: 0 4px 0 #71b5a4; }
.discovery .card { overflow: hidden; border: 2px solid #425b76; border-radius: 26px; background: #132d42; box-shadow: 0 6px 0 #030c1b70; }
.discovery .card:active { transform: scale(.98); }
.discovery .card:focus-visible, .discovery button:focus-visible { outline: 4px solid #ffe3a0; outline-offset: 4px; }
.discovery .card-copy { position: relative; min-height: 112px; padding: 18px 16px 18px 92px; flex-wrap: wrap; gap: 10px; }
.discovery .card-title { flex: 1 1 120px; text-align: left; }
.discovery .card h3 { color: #fff; font-size: clamp(17px, 2vw, 23px); font-weight: 700; }
.card-subtitle { display: block; color: #c5d8e6; font-size: 12px; margin-top: 6px; line-height: 1.4; }
.discovery .card-invite { display: inline-flex; align-items: center; justify-content: center; background: #c1f5e0; color: #153d37; border-radius: 14px; padding: 9px 12px; min-height: 44px; font-weight: 750; }
.discovery .card-top > span { background: #071b30dd; }
.discovery .gallery-nav > button { min-height: 56px; border-radius: 18px; }
.discovery .gallery-nav > button:last-child { background: #c1f5e0; color: #153d37; box-shadow: 0 4px 0 #6ba994; }
.world-buddy { --buddy-light: #fff2b0; --buddy-color: #f5bb50; --buddy-dark: #ba711e; position: relative; display: inline-block; width: 96px; height: 100px; flex: none; perspective: 400px; pointer-events: none; }
.card-copy > .world-buddy { position: absolute; left: 0; top: 7px; transform: scale(.82); }
.buddy-body { position: absolute; left: 14px; top: 12px; width: 68px; height: 66px; border-radius: 45% 48% 44% 46%; background: radial-gradient(circle at 30% 20%, var(--buddy-light), var(--buddy-color) 55%, var(--buddy-dark)); box-shadow: inset -5px -6px 9px #0002, inset 3px 3px 5px #fff8, 0 7px 12px #0002; animation: buddy-float 4.5s ease-in-out infinite; transform-style: preserve-3d; }
.buddy-shadow { position: absolute; bottom: 8px; left: 22px; width: 54px; height: 10px; border-radius: 50%; background: #020b2040; filter: blur(3px); }
.buddy-face { position: absolute; inset: 0; transform: translateZ(8px); }
.buddy-eye { position: absolute; top: 24px; width: 9px; height: 12px; background: #233344; border-radius: 50%; box-shadow: 0 1px 0 #fff9; }
.buddy-eye::after { content: ""; position: absolute; width: 3px; height: 4px; left: 2px; top: 2px; background: white; border-radius: 50%; }
.buddy-eye.left { left: 18px; } .buddy-eye.right { right: 18px; }
.buddy-cheek { position: absolute; top: 38px; width: 12px; height: 6px; background: #f58e8880; border-radius: 50%; }
.buddy-cheek.left { left: 9px; } .buddy-cheek.right { right: 9px; }
.buddy-smile { position: absolute; left: 29px; top: 38px; width: 11px; height: 8px; border-bottom: 2px solid #5f443e; border-radius: 0 0 50% 50%; }
.buddy-foot { position: absolute; bottom: -5px; width: 19px; height: 13px; border-radius: 50%; background: var(--buddy-color); box-shadow: inset 0 -3px 4px #0002; }
.buddy-foot.left { left: 6px; transform: rotate(-15deg); } .buddy-foot.right { right: 6px; transform: rotate(15deg); }
.buddy-ear { position: absolute; width: 21px; height: 27px; top: 14px; background: var(--buddy-color); border-radius: 60%; box-shadow: inset 2px 2px 5px #fff5; }
.buddy-ear.left { left: -11px; transform: rotate(-25deg); } .buddy-ear.right { right: -11px; transform: rotate(25deg); }
.buddy-sprout { --buddy-light: #e3ffcd; --buddy-color: #8bd5a3; --buddy-dark: #368b81; }
.buddy-sprout .buddy-ear { top: -10px; width: 23px; height: 16px; border-radius: 2px 90% 2px 90%; }
.buddy-sprout .buddy-ear.left { left: 12px; } .buddy-sprout .buddy-ear.right { right: 8px; transform: rotate(-80deg); }
.buddy-elephant { --buddy-light: #d3e7ff; --buddy-color: #9cadde; --buddy-dark: #6577ad; }
.buddy-elephant .buddy-ear { width: 32px; height: 44px; top: 8px; }
.buddy-elephant .buddy-ear.left { left: -19px; } .buddy-elephant .buddy-ear.right { right: -19px; }
.buddy-elephant .buddy-trunk { position: absolute; left: 28px; top: 38px; width: 15px; height: 33px; border-radius: 6px 6px 12px 12px; background: linear-gradient(90deg, #b5c7ea, #8195c8); transform: rotate(-12deg); box-shadow: 2px 3px 3px #0001; }
.buddy-cloud { --buddy-light: #fff; --buddy-color: #c3e6f6; --buddy-dark: #7caacb; }
.buddy-cloud .buddy-body { border-radius: 50% 50% 35% 35%; }
.buddy-cloud .buddy-ear { width: 28px; height: 35px; top: 25px; }
.buddy-star .buddy-ear { width: 22px; height: 22px; border-radius: 6px; top: 18px; }
.card:nth-child(2) .buddy-body { animation-delay: -.8s; }
.card:nth-child(3) .buddy-body { animation-delay: -1.6s; }
.card:nth-child(4) .buddy-body { animation-delay: -2.4s; }
@keyframes buddy-float { 0%, 100% { transform: translateY(0) rotate(-4deg); } 50% { transform: translateY(-7px) rotate(4deg); } }
@media (max-width: 600px) {
  .discovery-intro { padding-right: 100px; }
  .discovery-friend { right: -8px; transform: scale(.78); transform-origin: right top; }
  .discovery .card-copy { padding: 70px 12px 12px; gap: 8px; align-items: stretch; }
  .card-copy > .world-buddy { top: -9px; left: calc(50% - 48px); transform: scale(.65); }
  .discovery .card-title { flex-basis: 100%; }
  .discovery .card-invite { width: 100%; }
  .card-subtitle { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .discovery .buddy-body, .discovery .card { animation: none; }
  .discovery .card { transition: none; }
}

/* Touch controls must not enter iPad text selection on a long press. */
.mood-scale button {
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  touch-action: manipulation;
}
.mood-scale button > * {
  pointer-events: none;
}
