:root {
  --navy-950: #11173a;
  --navy-900: #1b2966;
  --navy-700: #3153a5;
  --sky-300: #8cdcff;
  --sky-200: #b7ecff;
  --gold-500: #f4b530;
  --gold-400: #ffd15f;
  --orange-500: #ef8b2d;
  --orange-600: #d96b1d;
  --orange-700: #bf5716;
  --cream: #fff9f0;
  --panel: rgba(255, 250, 242, 0.92);
  --panel-strong: rgba(255, 250, 242, 0.98);
  --panel-line: rgba(250, 188, 51, 0.72);
  --text-dark: #3f2c2c;
  --text-light: #fffdf7;
  --muted-light: rgba(255, 253, 247, 0.82);
  --shadow-deep: 0 20px 50px rgba(11, 24, 74, 0.36);
  --shadow-card: 0 18px 32px rgba(42, 24, 75, 0.24);
  --shadow-button: 0 10px 0 rgba(191, 87, 22, 0.9), 0 18px 30px rgba(33, 23, 74, 0.28);
  --ring: 0 0 0 4px rgba(255, 214, 94, 0.65);
  --radius-xl: 34px;
  --radius-lg: 28px;
  --radius-md: 22px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

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

body {
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top, rgba(137, 220, 255, 0.35), transparent 30%),
    linear-gradient(180deg, #0f1432 0%, #1e2f77 45%, #564a84 100%);
  color: var(--text-light);
  display: flex;
  justify-content: center;
  width: 100%;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 15% 25%, rgba(255, 209, 95, 0.14), transparent 16%),
    radial-gradient(circle at 80% 12%, rgba(140, 220, 255, 0.18), transparent 20%),
    radial-gradient(circle at 60% 80%, rgba(248, 136, 61, 0.14), transparent 18%);
  pointer-events: none;
}

a,
button,
input,
select {
  font: inherit;
}

a,
button,
[role="button"] {
  -webkit-touch-callout: none;
  touch-action: manipulation;
}

a:focus:not(:focus-visible),
button:focus:not(:focus-visible) {
  outline: none;
}

button {
  cursor: pointer;
}

img {
  display: block;
  max-width: 100%;
  -webkit-user-drag: none;
  user-select: none;
}

.page {
  width: min(100%, 500px);
  min-height: 100svh;
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(22, 37, 93, 0.98) 0%, rgba(45, 61, 132, 0.96) 44%, rgba(93, 79, 129, 0.96) 100%);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 25px 80px rgba(6, 11, 35, 0.5);
}

.page__backdrop,
.page__overlay,
.page__clouds {
  position: absolute;
  inset: 0;
}

.page__backdrop {
  z-index: 0;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  opacity: 0.98;
}

.page__overlay {
  z-index: 1;
  background: linear-gradient(180deg, rgba(8, 16, 51, 0.05) 0%, rgba(20, 35, 85, 0.28) 48%, rgba(31, 33, 83, 0.5) 100%);
}

.page__clouds {
  z-index: 2;
  top: auto;
  height: 32%;
  background:
    radial-gradient(circle at 10% 60%, rgba(255, 255, 255, 0.4), transparent 18%),
    radial-gradient(circle at 32% 70%, rgba(255, 255, 255, 0.32), transparent 22%),
    radial-gradient(circle at 62% 75%, rgba(255, 255, 255, 0.28), transparent 20%),
    radial-gradient(circle at 86% 62%, rgba(255, 255, 255, 0.3), transparent 18%);
  filter: blur(12px);
  opacity: 0.7;
}

.page__content {
  position: relative;
  z-index: 3;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  padding: 22px 20px 22px;
}

.page__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  min-height: 56px;
}

.page__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.page__footer {
  display: grid;
  gap: 12px;
  justify-items: center;
  padding-top: 14px;
  padding-bottom: calc(52px + env(safe-area-inset-bottom));
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: var(--text-light);
  font-size: 0.86rem;
  letter-spacing: 0.04em;
  backdrop-filter: blur(8px);
}

.pill--warm {
  background: linear-gradient(180deg, rgba(255, 209, 95, 0.22), rgba(255, 147, 42, 0.28));
  border-color: rgba(255, 209, 95, 0.34);
}

.home-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  transition: transform 180ms ease, filter 180ms ease;
}

.home-link:hover,
.home-link:focus-visible {
  transform: translateY(-2px);
  filter: brightness(1.04);
}

.home-link img {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 14px 18px rgba(33, 23, 74, 0.28));
}

.page__title {
  margin: 0;
  font-size: clamp(2rem, 5vw, 2.6rem);
  line-height: 1.06;
  letter-spacing: 0.02em;
  text-wrap: balance;
}

.page__lead {
  margin: 14px 0 0;
  color: var(--muted-light);
  font-size: 1rem;
  line-height: 1.55;
}

.hero-logo {
  width: min(100%, 360px);
  margin: 0 auto;
  filter: drop-shadow(0 20px 30px rgba(22, 13, 64, 0.24));
}

.title-art {
  width: min(100%, 320px);
  margin: 0 auto;
  filter: drop-shadow(0 12px 20px rgba(17, 26, 70, 0.26));
}

.orb-group {
  display: grid;
  place-items: center;
  position: relative;
  padding-top: 10px;
}

.orb-group::before,
.orb-group::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  filter: blur(8px);
}

.orb-group::before {
  width: 138px;
  height: 138px;
  background: radial-gradient(circle, rgba(255, 210, 84, 0.72), rgba(255, 152, 61, 0.2) 65%, transparent 70%);
  top: -10px;
}

.orb-group::after {
  width: 88px;
  height: 88px;
  background: radial-gradient(circle, rgba(121, 228, 255, 0.4), transparent 70%);
  left: 18%;
  top: 20%;
}

.welcome-intro {
  text-align: center;
  margin-top: auto;
  margin-bottom: auto;
  padding-top: 32px;
  padding-bottom: 18px;
  transform: translateY(-44px);
}

.page__header--solo {
  justify-content: flex-start;
}

.permission-art {
  width: min(100%, 350px);
  margin: 0 auto;
  filter: drop-shadow(0 14px 22px rgba(17, 26, 70, 0.2));
}

.page--welcome .page__backdrop {
  background-image: url("../generic%20pages%20UI/1.%20Welcome%20bnackground.png");
}

.page--welcome .page__overlay {
  background:
    linear-gradient(180deg, rgba(19, 22, 66, 0.04) 0%, rgba(42, 31, 82, 0.18) 55%, rgba(72, 55, 107, 0.45) 100%),
    radial-gradient(circle at center, rgba(255, 211, 105, 0.16), transparent 30%);
}

.page--space .page__backdrop,
.page--tutorial .page__backdrop,
.page--avatar .page__backdrop,
.page--worlds .page__backdrop,
.page--story .page__backdrop {
  background-image: url("../generic%20pages%20UI/2.%20background.png");
}

.page--tutorial .page__backdrop,
.page--avatar .page__backdrop {
  background-image: url("../generic%20pages%20UI/3.%20background.png");
}

body.body--tutorial {
  overflow: hidden;
}

body:has(.page--story) {
  padding: 0 !important;
  align-items: stretch;
}

.page--story {
  width: 100vw;
  max-width: none;
  min-height: 100svh;
  background: #000;
  box-shadow: none;
  border-radius: 0;
}

.page--story .page__backdrop,
.page--story .page__overlay,
.page--story .page__clouds {
  display: none;
}

.page--story .page__content {
  min-height: 100svh;
  padding: 0;
}

.page--story .page__header {
  position: absolute;
  top: 20px;
  left: 20px;
  right: 20px;
  z-index: 6;
  min-height: 0;
  pointer-events: none;
}

.page--story .page__header .home-link {
  pointer-events: auto;
}

.page--story .page__body {
  min-height: 100svh;
}

.page--tutorial .page__content {
  min-height: 100svh;
}

.tutorial-body {
  display: flex;
  align-items: center;
  justify-content: center;
}

.tutorial-stage {
  width: 100%;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: clamp(10px, 2vh, 18px);
}

.tutorial-heading {
  width: min(82%, 266px);
  filter: drop-shadow(0 10px 18px rgba(17, 26, 70, 0.2));
}

.tutorial-card {
  width: min(100%, 274px);
  transition: transform 220ms ease, filter 220ms ease;
}

.tutorial-card__button {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
}

.tutorial-card__poster {
  width: 100%;
  max-height: min(46svh, 392px);
  object-fit: contain;
  filter: drop-shadow(0 18px 30px rgba(41, 24, 76, 0.24));
}

.tutorial-card.is-playing {
  transform: scale(1.015);
}

.tutorial-footer {
  padding-top: 2px;
  padding-bottom: calc(18px + env(safe-area-inset-bottom));
}

.tutorial-next img {
  width: min(58vw, 240px);
}

@media (max-width: 430px) {
  .tutorial-stage {
    gap: 12px;
  }

  .tutorial-heading {
    width: min(84%, 254px);
  }

  .tutorial-card {
    width: min(100%, 258px);
  }

  .tutorial-next img {
    width: min(54vw, 196px);
  }
}

.page--worlds .page__overlay {
  background:
    linear-gradient(180deg, rgba(14, 21, 57, 0.22), rgba(17, 29, 74, 0.3) 32%, rgba(39, 38, 91, 0.62) 100%),
    radial-gradient(circle at 50% 20%, rgba(132, 219, 255, 0.16), transparent 24%);
}

.page--dino .page__backdrop {
  background-image: url("../mockup/Dino%20World%20-%20AR%20Environment.png");
}

.page--dino .page__overlay {
  background:
    linear-gradient(180deg, rgba(5, 12, 35, 0.18), rgba(5, 12, 35, 0.04) 35%, rgba(5, 12, 35, 0.12) 55%, rgba(5, 12, 35, 0.48) 100%);
}

.info-stack {
  display: grid;
  gap: 16px;
}

.floating-card {
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.06));
  border: 1px solid rgba(255, 255, 255, 0.14);
  padding: 24px;
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow-card);
}

.floating-card--panel {
  background: linear-gradient(180deg, rgba(255, 250, 242, 0.95), rgba(255, 248, 235, 0.9));
  border: 1px solid rgba(244, 181, 48, 0.42);
  color: var(--text-dark);
}

.icon-hero {
  width: min(58vw, 210px);
  margin: 18px auto 10px;
  animation: bob 4.4s ease-in-out infinite;
}

.panel-title {
  margin: 0;
  text-align: center;
  font-size: 2rem;
  line-height: 1.08;
  color: var(--text-light);
}

.panel-copy {
  margin: 14px 0 0;
  text-align: center;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--muted-light);
}

.image-button,
.image-button--button {
  border: 0;
  background: none;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.image-button img,
.image-button--button img {
  width: min(58vw, 240px);
  filter: drop-shadow(0 14px 18px rgba(44, 22, 68, 0.28));
  transition: transform 180ms ease, filter 180ms ease;
}

.image-button:hover img,
.image-button:focus-visible img,
.image-button--button:hover img,
.image-button--button:focus-visible img {
  transform: translateY(-3px) scale(1.01);
  filter: drop-shadow(0 20px 26px rgba(44, 22, 68, 0.34));
}

.text-link {
  color: var(--sky-200);
  font-weight: 700;
  text-decoration: none;
}

.status-message {
  min-height: 24px;
  margin: 0;
  text-align: center;
  color: var(--sky-200);
  font-size: 0.92rem;
}

.video-card {
  width: 100%;
  max-width: 360px;
  margin: 0 auto;
}

.video-card__trigger {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
}

.video-card__poster {
  width: 100%;
  max-width: 340px;
  margin: 0 auto;
  animation: rise 850ms ease both;
  filter: drop-shadow(0 18px 28px rgba(41, 24, 76, 0.22));
}

.steps-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.steps-list li {
  display: flex;
  gap: 12px;
  align-items: start;
  padding: 12px 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.08);
}

.steps-list strong {
  color: #ffd98c;
  font-size: 0.82rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.steps-list span {
  display: block;
  font-size: 0.94rem;
  line-height: 1.45;
  color: var(--muted-light);
}

.avatar-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.avatar-card {
  padding: 18px 14px;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.14);
  text-align: center;
  color: var(--text-light);
  box-shadow: var(--shadow-card);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
}

.avatar-card img {
  width: min(34vw, 132px);
  margin: 0 auto;
}

.avatar-card__name {
  font-weight: 700;
  letter-spacing: 0.04em;
}

.avatar-card.is-active {
  background: linear-gradient(180deg, rgba(255, 210, 85, 0.24), rgba(255, 151, 59, 0.16));
  border-color: rgba(255, 210, 85, 0.7);
  box-shadow: var(--shadow-card), var(--ring);
  transform: translateY(-3px);
}

.profile-form {
  display: grid;
  gap: 14px;
}

.field {
  display: grid;
  gap: 0;
}

.field label {
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--sky-200);
}

.field input,
.field select {
  appearance: none;
  width: 100%;
  min-height: 58px;
  border: 2px solid rgba(244, 181, 48, 0.68);
  border-radius: 999px;
  padding: 0 20px;
  background: linear-gradient(90deg, rgba(241, 129, 80, 0.98), rgba(241, 188, 55, 0.98));
  color: var(--cream);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.field input::placeholder {
  color: rgba(255, 245, 238, 0.84);
}

.field select {
  padding-right: 52px;
}

.field select option {
  color: #153460;
  background: #d7f3ff;
}

.field--select {
  position: relative;
}

.field--select::after {
  content: "";
  position: absolute;
  right: 22px;
  bottom: 22px;
  width: 0;
  height: 0;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-top: 14px solid #fff3d3;
  pointer-events: none;
}

.profile-preview {
  display: flex;
  align-items: center;
  gap: 14px;
}

.profile-preview__avatar {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid rgba(255, 210, 85, 0.78);
  background: linear-gradient(180deg, #ffb43b, #ff7e38);
  flex: 0 0 auto;
}

.profile-preview__meta {
  min-width: 0;
}

.profile-preview__name {
  margin: 0;
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--text-light);
}

.profile-preview__school {
  margin: 4px 0 0;
  color: var(--muted-light);
  font-size: 0.92rem;
}

.world-shell {
  display: grid;
  gap: 22px;
  margin: auto 0;
}

.world-profile {
  display: flex;
  justify-content: center;
}

.world-profile__meta {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 8px 18px;
  border-radius: 999px;
  background: rgba(12, 22, 78, 0.38);
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-weight: 700;
  letter-spacing: 0.03em;
}

.world-profile__divider {
  width: 1px;
  height: 22px;
  background: rgba(255, 255, 255, 0.65);
}

.world-panel {
  position: relative;
  margin-top: 22px;
  padding: 74px 16px 16px;
  border-radius: 34px;
  background: linear-gradient(180deg, rgba(255, 250, 242, 0.96), rgba(255, 247, 232, 0.94));
  border: 2px solid rgba(244, 181, 48, 0.58);
  box-shadow: var(--shadow-card);
}

.world-avatar {
  position: absolute;
  left: 50%;
  top: 0;
  width: 108px;
  height: 108px;
  border-radius: 50%;
  overflow: hidden;
  border: 8px solid rgba(255, 250, 242, 0.98);
  background: linear-gradient(180deg, #ffb43b, #ff7e38);
  transform: translate(-50%, -42%);
  box-shadow: 0 14px 26px rgba(30, 23, 70, 0.22);
}

.world-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.world-header {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: center;
}

.phoenix-figure {
  width: min(100%, 320px);
  margin: 8px auto 2px;
  animation: bob 4s ease-in-out infinite;
}

.world-grid {
  display: grid;
  gap: 14px;
}

.world-grid--simple {
  gap: 14px;
}

.world-card {
  display: grid;
  grid-template-columns: 88px 1fr auto;
  gap: 14px;
  align-items: center;
  border-radius: 28px;
  padding: 14px;
  background: linear-gradient(180deg, rgba(255, 250, 242, 0.96), rgba(255, 247, 232, 0.92));
  border: 1px solid rgba(244, 181, 48, 0.48);
  text-decoration: none;
  color: var(--text-dark);
  box-shadow: var(--shadow-card);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.world-grid--simple .world-card {
  grid-template-columns: 78px 1fr auto;
  border-radius: 24px;
  padding: 12px 14px;
  background: linear-gradient(90deg, rgba(243, 130, 79, 0.98), rgba(243, 185, 53, 0.98));
  color: #fffaf3;
}

.world-card:hover,
.world-card:focus-visible {
  transform: translateY(-2px);
}

.world-card[aria-disabled="true"] {
  cursor: not-allowed;
  opacity: 0.82;
}

.world-card__thumb {
  display: grid;
  place-items: center;
  width: 88px;
  height: 88px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255, 210, 95, 0.22), rgba(255, 152, 59, 0.18));
}

.world-grid--simple .world-card__thumb {
  width: 72px;
  height: 72px;
  background: transparent;
}

.world-card__thumb img {
  max-width: 78px;
  max-height: 78px;
}

.world-grid--simple .world-card__thumb img {
  max-width: 66px;
  max-height: 66px;
}

.world-card__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  font-size: 0.76rem;
  font-weight: 700;
  color: rgba(70, 49, 49, 0.7);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.world-card__title {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 800;
}

.world-grid--simple .world-card__title {
  color: #fffaf3;
  font-size: 1.02rem;
  line-height: 1.02;
  letter-spacing: 0.05em;
}

.world-card__copy {
  margin: 6px 0 0;
  font-size: 0.9rem;
  line-height: 1.45;
  color: rgba(63, 44, 44, 0.8);
}

.world-card__status {
  justify-self: end;
  display: grid;
  gap: 8px;
  justify-items: center;
}

.world-card__points {
  min-width: 72px;
  padding: 9px 10px;
  border-radius: 999px;
  background: linear-gradient(180deg, #f7c84e, #ef8b2d);
  color: #fff9f0;
  font-weight: 800;
  text-align: center;
}

.world-grid--simple .world-card__points {
  min-width: auto;
  padding: 0;
  background: transparent;
  font-size: 0.96rem;
  box-shadow: none;
}

.world-card__toggle {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: rgba(190, 190, 190, 0.55);
  position: relative;
}

.world-card__toggle::after {
  content: "";
  position: absolute;
  inset: 7px 6px 7px 8px;
  border-right: 3px solid #ffffff;
  border-bottom: 3px solid #ffffff;
  transform: rotate(40deg);
}

.world-card--active .world-card__toggle {
  background: #43c463;
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.badge {
  padding: 9px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 0.84rem;
  color: var(--muted-light);
}

.story-stage {
  position: relative;
  min-height: 340px;
  border-radius: 36px;
  overflow: hidden;
  background:
    radial-gradient(circle at center, rgba(166, 85, 255, 0.36), transparent 30%),
    linear-gradient(180deg, rgba(19, 31, 82, 0.92), rgba(28, 24, 70, 0.96));
  box-shadow: var(--shadow-card);
  isolation: isolate;
}

.page--story .story-stage {
  min-height: 100svh;
  border-radius: 0;
  background: #000;
  box-shadow: none;
}

.story-stage--full {
  min-height: min(68vh, 660px);
  margin: auto 0;
}

.page--story .story-stage--full {
  min-height: 100svh;
  margin: 0;
}

.story-ar-shell {
  display: grid;
  gap: 18px;
  margin: auto 0;
}

.page--story .story-ar-shell {
  height: 100%;
  gap: 0;
  margin: 0;
}

.story-ar-scene {
  position: absolute !important;
  inset: 0;
  z-index: 1;
  width: 100% !important;
  height: 100% !important;
  background: transparent !important;
}

.story-ar-scene video,
.story-ar-scene canvas,
.story-ar-scene .a-canvas {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
}

.story-ar-hud {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  padding: 28px;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(9, 16, 45, 0.2), rgba(9, 16, 45, 0.04) 34%, rgba(14, 21, 53, 0.18) 100%),
    radial-gradient(circle at center, rgba(118, 230, 255, 0.08), transparent 32%);
}

.page--story .story-ar-hud {
  padding: 20px;
  background: none;
}

.story-ar-hud__target {
  position: relative;
  width: min(54vw, 236px);
  aspect-ratio: 840 / 1131;
  border-radius: 24px;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.18) inset,
    0 0 0 999px rgba(4, 11, 34, 0.12);
}

.story-ar-hud__target::before,
.story-ar-hud__target::after {
  content: "";
  position: absolute;
}

.story-ar-hud__target::before {
  inset: 0;
  border-radius: 24px;
  border: 2px solid rgba(255, 214, 94, 0.88);
  box-shadow:
    0 0 0 2px rgba(255, 255, 255, 0.16) inset,
    0 0 24px rgba(255, 196, 81, 0.28);
}

.story-ar-hud__target::after {
  left: 10px;
  right: 10px;
  height: 18%;
  top: -22%;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 245, 183, 0), rgba(95, 248, 233, 0.62), rgba(255, 245, 183, 0));
  filter: blur(4px);
  animation: scan-pass 2.1s linear infinite;
}

.story-stage.is-target-active .story-ar-hud__target::before,
.story-stage.is-scanned .story-ar-hud__target::before {
  border-color: rgba(103, 255, 181, 0.94);
  box-shadow:
    0 0 0 2px rgba(255, 255, 255, 0.22) inset,
    0 0 34px rgba(103, 255, 181, 0.38);
}

.story-stage.is-target-active .story-ar-hud__target::after,
.story-stage.is-scanned .story-ar-hud__target::after {
  opacity: 0;
  animation: none;
}

.story-ar-reference {
  position: absolute;
  right: 16px;
  bottom: 16px;
  z-index: 3;
  width: min(24vw, 96px);
  padding: 6px;
  border-radius: 18px;
  background: rgba(14, 25, 74, 0.48);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 12px 24px rgba(11, 18, 49, 0.34);
  backdrop-filter: blur(10px);
  transition: opacity 220ms ease, transform 220ms ease;
}

.story-ar-reference img {
  width: 100%;
  border-radius: 12px;
}

.story-quick-open {
  position: absolute;
  left: 16px;
  bottom: 18px;
  z-index: 3;
  width: min(18vw, 58px);
  min-width: 46px;
  border: 0;
  padding: 0;
  background: none;
  box-shadow: none;
  transition: transform 180ms ease, filter 180ms ease, opacity 180ms ease;
}

.story-quick-open img {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 12px 22px rgba(23, 20, 60, 0.28));
}

.story-quick-open:hover,
.story-quick-open:focus-visible {
  transform: translateY(-2px);
  filter: brightness(1.05);
}

.story-stage.is-scanned .story-ar-reference,
.story-stage.is-scanned .story-quick-open {
  opacity: 0;
  transform: translateY(10px) scale(0.94);
  pointer-events: none;
}

.story-ui-slot {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: grid;
  align-content: end;
  justify-items: center;
  padding: 28px 20px 42px;
  pointer-events: none;
  animation: rise 480ms ease both;
}

.story-ui-slot[hidden] {
  display: none !important;
}

.story-stage.is-scanned .story-ar-hud {
  opacity: 0;
  transform: scale(0.96);
  transition: opacity 220ms ease, transform 220ms ease;
}

.story-stage.is-scanned .story-ar-scene video,
.story-stage.is-scanned .story-ar-scene canvas,
.story-stage.is-scanned .story-ar-scene .a-canvas {
  filter: none;
  transform: none;
}

.story-ui-slot__portal-wrap {
  position: absolute;
  left: 50%;
  top: 42%;
  width: min(84vw, 356px);
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  pointer-events: auto;
}

.story-ui-slot__portal {
  width: 100%;
  height: auto;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 0 22px rgba(210, 92, 255, 0.46));
  pointer-events: none;
}

.story-ui-slot__portal-glow {
  position: absolute;
  inset: 18% 17% 26%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(219, 101, 255, 0.74), rgba(171, 62, 255, 0.18) 58%, transparent 76%);
  filter: blur(32px);
  opacity: 0.9;
  pointer-events: none;
}

.story-ui-slot__phoenix-model {
  position: absolute;
  inset: 2% 3% 18%;
  z-index: 2;
  width: 94%;
  height: 86%;
  background: transparent;
  --poster-color: transparent;
  pointer-events: auto;
  cursor: grab;
}

.story-ui-slot__phoenix-model:active {
  cursor: grabbing;
}

.story-ui-slot__portal-shadow {
  position: absolute;
  bottom: 7%;
  width: 42%;
  height: 10%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(241, 149, 58, 0.35), rgba(120, 45, 10, 0.14) 64%, transparent 76%);
  filter: blur(18px);
  z-index: 0;
  pointer-events: none;
}

.story-ui-slot__balls {
  position: relative;
  z-index: 3;
  width: min(100%, 286px);
  min-height: 154px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: center;
  gap: 4px;
  padding: 0;
  margin-top: auto;
  pointer-events: auto;
}

.world-orb {
  --orb-offset: 0px;
  position: relative;
  width: min(23vw, 94px);
  min-width: 74px;
  border: 0;
  padding: 0;
  display: grid;
  place-items: center;
  text-decoration: none;
  background: none;
  pointer-events: auto;
  transition: transform 180ms ease, filter 180ms ease;
}

.world-orb[aria-disabled="true"] {
  cursor: not-allowed;
}

.world-orb.is-audio-locked {
  cursor: wait;
}

.world-orb:hover,
.world-orb:focus-visible {
  transform: translateY(-4px) scale(1.03);
  filter: drop-shadow(0 18px 28px rgba(17, 20, 54, 0.34));
}

.world-orb.is-locked {
  opacity: 0.92;
}

.world-orb.is-locked:hover,
.world-orb.is-locked:focus-visible,
.world-orb.is-audio-locked:hover,
.world-orb.is-audio-locked:focus-visible {
  transform: none;
  filter: none;
}

.world-orb__image {
  width: 100%;
  height: auto;
  pointer-events: none;
  filter: drop-shadow(0 12px 20px rgba(17, 20, 54, 0.3));
}

.world-orb.is-locked .world-orb__image {
  filter: grayscale(0.18) brightness(0.92) drop-shadow(0 10px 16px rgba(17, 20, 54, 0.24));
}

.world-orb.is-audio-locked .world-orb__image {
  opacity: 0.76;
  filter: saturate(0.92) brightness(0.9) drop-shadow(0 10px 16px rgba(17, 20, 54, 0.2));
}

.world-orb__lock,
.world-orb__tick {
  position: absolute;
  display: grid;
  place-items: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity 180ms ease, transform 180ms ease;
}

.world-orb__lock {
  inset: 50% auto auto 50%;
  width: min(10vw, 42px);
  transform: translate(-50%, -50%) scale(0.9);
  z-index: 2;
}

.world-orb__lock img {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 8px 16px rgba(16, 18, 42, 0.28));
}

.world-orb__tick {
  right: 2px;
  bottom: 8px;
  width: min(8vw, 34px);
  height: min(8vw, 34px);
  border-radius: 50%;
  background: linear-gradient(180deg, #4bdc67, #18a63b);
  color: #ffffff;
  font-size: clamp(0.9rem, 2.8vw, 1.15rem);
  font-weight: 900;
  box-shadow: 0 10px 18px rgba(15, 99, 34, 0.32);
  transform: scale(0.88);
  z-index: 2;
}

.world-orb.is-locked .world-orb__lock,
.world-orb.is-complete .world-orb__tick {
  opacity: 1;
}

.world-orb.is-locked .world-orb__lock {
  transform: translate(-50%, -50%) scale(1);
}

.world-orb.is-complete .world-orb__tick {
  transform: scale(1);
}

.world-orb--miniature {
  --orb-offset: 12px;
  justify-self: start;
  align-self: end;
  animation: orb-card-float 3.6s ease-in-out infinite -0.8s;
}

.world-orb--dino {
  --orb-offset: -20px;
  justify-self: center;
  align-self: start;
  width: min(27vw, 108px);
  min-width: 88px;
  animation: orb-card-float 3.9s ease-in-out infinite -0.2s;
}

.world-orb--snow {
  --orb-offset: 12px;
  justify-self: end;
  align-self: end;
  animation: orb-card-float 3.4s ease-in-out infinite -1.3s;
}

.mission-panel {
  display: grid;
  gap: 14px;
}

.mission-panel h3,
.dino-panel h3 {
  margin: 0;
  font-size: 1.2rem;
  color: var(--text-dark);
}

.mission-panel p,
.dino-panel p {
  margin: 0;
  color: rgba(63, 44, 44, 0.78);
  line-height: 1.55;
}

.mission-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.mission-list li {
  display: flex;
  gap: 10px;
  align-items: center;
  color: rgba(63, 44, 44, 0.82);
}

.mission-list li::before {
  content: "";
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: linear-gradient(180deg, #ffcb57, #ef8b2d);
  box-shadow: 0 0 0 4px rgba(255, 210, 95, 0.18);
}

.dino-hero {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 10px;
}

.dino-tag-image {
  width: min(42vw, 170px);
  filter: drop-shadow(0 14px 18px rgba(33, 23, 74, 0.26));
}

.dino-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(244, 181, 48, 0.98), rgba(239, 139, 45, 0.98));
  color: #fffdf7;
  box-shadow: var(--shadow-button);
  max-width: 220px;
}

.dino-tag img {
  width: 28px;
  height: 28px;
}

.dino-tag strong {
  display: block;
  font-size: 0.95rem;
  line-height: 1.2;
}

.dino-rotation {
  align-self: end;
  padding: 0;
  background: none;
  border: 0;
  font-weight: 800;
  letter-spacing: 0.04em;
  font-size: 1.4rem;
  color: #fff7d6;
  text-shadow: 0 10px 18px rgba(24, 19, 52, 0.34);
}

.dino-footer {
  margin-top: auto;
  padding-bottom: 12px;
  display: flex;
  justify-content: center;
}

.dino-panel {
  margin-top: auto;
  border-radius: 32px 32px 0 0;
  padding: 24px;
  background: linear-gradient(180deg, rgba(255, 250, 242, 0.9), rgba(255, 246, 233, 0.96));
  color: var(--text-dark);
  backdrop-filter: blur(12px);
  box-shadow: 0 -12px 30px rgba(19, 24, 55, 0.18);
}

.dino-panel__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
}

.page--dino-welcome .page__backdrop {
  background-image: url("../generic%20pages%20UI/6.%20Dino%20welcome%20page%20bg.png");
}

.page--snow-welcome .page__backdrop {
  background-image: url("../generic%20pages%20UI/Snow%20UI/Snow%20World%20-%20Landing%20page.png");
}

.page--miniature-welcome .page__backdrop {
  background-image: url("../generic%20pages%20UI/miniature%20UI/miniature-%20welcome%20page%20background.png");
}

.page--dino-game .page__backdrop {
  background-image: url("../generic%20pages%20UI/Dino%20UI/word%20game%20background.png");
}

.page--dino-welcome .page__overlay,
.page--snow-welcome .page__overlay,
.page--miniature-welcome .page__overlay {
  background:
    linear-gradient(180deg, rgba(255, 250, 227, 0.08), rgba(255, 214, 141, 0.12) 28%, rgba(31, 42, 76, 0.12) 72%, rgba(21, 28, 56, 0.32) 100%);
}

.page--dino-video .page__overlay,
.page--snow-video .page__overlay,
.page--miniature-video .page__overlay,
.page--dino-game .page__overlay {
  background:
    linear-gradient(180deg, rgba(8, 16, 45, 0.28), rgba(10, 18, 48, 0.08) 24%, rgba(17, 24, 53, 0.26) 68%, rgba(17, 24, 53, 0.52) 100%);
}

.page--dino-video .page__backdrop,
.page--snow-video .page__backdrop,
.page--miniature-video .page__backdrop {
  background: #030914;
  background-image: none;
}

.page--dino-video .page__overlay,
.page--snow-video .page__overlay,
.page--miniature-video .page__overlay {
  background: none;
}

.page--dino-video .page__clouds,
.page--snow-video .page__clouds,
.page--miniature-video .page__clouds,
.page--dino-game .page__clouds {
  opacity: 0.48;
}

.dino-welcome-body {
  justify-content: flex-start;
  padding-top: 18px;
}

.dino-welcome-badge-wrap {
  display: grid;
  place-items: start center;
  margin-top: 8px;
}

.dino-welcome-badge {
  width: min(100%, 430px);
  filter: drop-shadow(0 18px 24px rgba(47, 31, 23, 0.26));
}

.snow-welcome-badge {
  width: min(100%, 440px);
}

.miniature-welcome-badge {
  width: min(100%, 430px);
}

.dino-welcome-footer {
  padding-bottom: calc(40px + env(safe-area-inset-bottom));
}

.dino-scene-header {
  align-items: start;
}

.page__content--video {
  display: block;
  min-height: 100vh;
  min-height: 100dvh;
  height: 100dvh;
  padding: 0;
}

.dino-scene-header--video {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 4;
  padding: 22px 20px 0;
}

.dino-scene-badge {
  width: min(44vw, 176px);
  filter: drop-shadow(0 12px 18px rgba(33, 23, 74, 0.24));
}

.miniature-scene-badge {
  width: min(48vw, 210px);
}

.dino-video-body {
  position: absolute;
  inset: 0;
  display: block;
}

.dino-video-shell {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  border-radius: 0;
  background: #030914;
  border: 0;
  box-shadow: none;
  overflow: hidden;
}

.dino-video-shell::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(4, 9, 20, 0.52) 0%, rgba(4, 9, 20, 0.18) 18%, rgba(4, 9, 20, 0) 36%, rgba(4, 9, 20, 0) 64%, rgba(4, 9, 20, 0.22) 80%, rgba(4, 9, 20, 0.62) 100%);
  pointer-events: none;
}

.dino-video-shell--web::after {
  background:
    linear-gradient(180deg, rgba(4, 9, 20, 0.16) 0%, rgba(4, 9, 20, 0.04) 20%, rgba(4, 9, 20, 0) 38%, rgba(4, 9, 20, 0) 72%, rgba(4, 9, 20, 0.16) 86%, rgba(4, 9, 20, 0.32) 100%);
}

.dino-web-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: #ffffff;
}

.dino-video-quick-open {
  position: absolute;
  left: 16px;
  bottom: 18px;
  z-index: 3;
  width: min(18vw, 58px);
  min-width: 44px;
  border: 0;
  padding: 0;
  background: none;
  box-shadow: none;
  transition: transform 180ms ease, filter 180ms ease;
}

.dino-video-quick-open img {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 12px 22px rgba(23, 20, 60, 0.28));
}

.dino-video-quick-open:hover,
.dino-video-quick-open:focus-visible {
  transform: translateY(-2px);
  filter: brightness(1.05);
}

.dino-video-next {
  position: absolute;
  left: 50%;
  bottom: calc(28px + env(safe-area-inset-bottom));
  z-index: 3;
  transform: translateX(-50%);
}

.dino-video-next img {
  width: min(40vw, 198px);
}

.dino-video-next.is-audio-locked img {
  opacity: 0.82;
  filter: drop-shadow(0 10px 18px rgba(23, 20, 60, 0.2));
}

.dino-view-controls {
  position: absolute;
  left: 50%;
  bottom: calc(122px + env(safe-area-inset-bottom));
  z-index: 4;
  display: flex;
  align-items: flex-end;
  gap: 10px;
  transform: translateX(-50%);
}

.dino-joystick {
  position: relative;
  width: min(28vw, 126px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.2), rgba(39, 68, 123, 0.18) 42%, rgba(10, 17, 35, 0.5) 100%);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 18px 30px rgba(11, 18, 49, 0.34);
  touch-action: none;
  user-select: none;
}

.dino-joystick__guide {
  position: absolute;
  inset: 14px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background:
    linear-gradient(rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.08)) center / 1px calc(100% - 18px) no-repeat,
    linear-gradient(90deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.08)) center / calc(100% - 18px) 1px no-repeat;
}

.dino-joystick__thumb {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(12vw, 48px);
  aspect-ratio: 1;
  border-radius: 50%;
  transform: translate(0, 0);
  margin-left: calc(min(12vw, 48px) / -2);
  margin-top: calc(min(12vw, 48px) / -2);
  background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.92), rgba(126, 204, 255, 0.9) 35%, rgba(26, 108, 201, 0.98) 100%);
  box-shadow:
    0 12px 22px rgba(14, 21, 52, 0.32),
    inset 0 1px 1px rgba(255, 255, 255, 0.46);
  pointer-events: none;
}

@media (max-width: 480px) {
  .dino-video-next {
    bottom: calc(36px + env(safe-area-inset-bottom));
  }

  .dino-video-next img {
    width: min(42vw, 174px);
  }

  .dino-view-controls {
    bottom: calc(128px + env(safe-area-inset-bottom));
  }

  .dino-joystick {
    width: min(26vw, 112px);
  }

  .dino-joystick__thumb {
    width: min(12vw, 42px);
    margin-left: calc(min(12vw, 42px) / -2);
    margin-top: calc(min(12vw, 42px) / -2);
  }
}

.dino-view-controls__actions {
  display: grid;
  align-content: end;
  gap: 6px;
}

.dino-view-controls__action {
  min-height: 40px;
  min-width: 104px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 205, 108, 0.96), rgba(241, 146, 51, 0.98));
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  box-shadow: 0 10px 18px rgba(23, 15, 44, 0.22);
  transition: transform 160ms ease, filter 160ms ease;
}

.dino-view-controls__action:hover,
.dino-view-controls__action:focus-visible {
  transform: translateY(-1px);
  filter: brightness(1.04);
}

.dino-view-controls__status {
  min-height: 18px;
  max-width: 118px;
  color: rgba(255, 248, 229, 0.92);
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
  text-shadow: 0 1px 4px rgba(8, 15, 31, 0.46);
}

.dino-vr-scene {
  position: absolute !important;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  background: transparent !important;
  touch-action: none;
  cursor: grab;
}

.dino-vr-scene:active {
  cursor: grabbing;
}

.dino-vr-scene canvas,
.dino-vr-scene .a-canvas {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
}

.dino-vr-scene .a-enter-vr,
.dino-vr-scene .a-orientation-modal,
.dino-vr-scene .a-loader-title {
  display: none !important;
}

.dino-video-player {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
  background: #04101f;
  box-shadow: none;
}

.dino-video-ring {
  position: absolute;
  left: 50%;
  bottom: calc(116px + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  min-width: 112px;
  padding: 8px 18px;
  border-radius: 999px;
  background: rgba(9, 16, 45, 0.58);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #fff5c8;
  font-size: 1.25rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-align: center;
  backdrop-filter: blur(10px);
  text-shadow: 0 8px 18px rgba(17, 20, 54, 0.36);
  pointer-events: none;
}

.page--miniature-leaderboard .page__backdrop {
  background:
    radial-gradient(circle at top, rgba(128, 219, 255, 0.2), transparent 32%),
    linear-gradient(180deg, #0d2d7e 0%, #143f98 36%, #1c3c8a 64%, #6a62ab 100%);
  background-image: none;
}

.page--miniature-leaderboard .page__overlay {
  background:
    radial-gradient(circle at 50% 6%, rgba(255, 247, 173, 0.18), transparent 18%),
    linear-gradient(180deg, rgba(9, 20, 72, 0.08), rgba(7, 18, 74, 0.18));
}

.page--miniature-leaderboard .page__clouds {
  opacity: 0.2;
}

.miniature-board-body {
  justify-content: flex-start;
  padding-top: 8px;
}

.miniature-board-shell,
.miniature-central-board {
  width: min(100%, 360px);
  margin: 0 auto;
  display: grid;
  justify-items: center;
  gap: 16px;
}

.miniature-board-shell--individual {
  gap: 14px;
}

.miniature-board-title-row {
  width: min(100%, 320px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #fff7dd;
  text-shadow: 0 10px 22px rgba(9, 13, 43, 0.34);
}

.miniature-board-name {
  font-size: clamp(1.4rem, 6vw, 2rem);
  font-weight: 900;
}

.miniature-board-name--individual {
  width: min(100%, 320px);
  color: #fff7dd;
  text-align: center;
  text-shadow: 0 10px 22px rgba(9, 13, 43, 0.34);
}

.miniature-board-rank {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 1.2rem;
  font-weight: 800;
}

.miniature-board-medal {
  font-size: 1.35rem;
}

.miniature-board-avatar-ring {
  width: min(44vw, 166px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  padding: 12px;
  border-radius: 50%;
  background:
    radial-gradient(circle, #fffef2 48%, #fff4ba 49%, #efb632 72%, rgba(239, 182, 50, 0.06) 73%);
  box-shadow:
    0 22px 38px rgba(8, 17, 61, 0.3),
    inset 0 6px 12px rgba(255, 255, 255, 0.42);
}

.miniature-board-avatar-ring img,
.miniature-podium__avatar img,
.miniature-central-row__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.miniature-board-card,
.miniature-central-list {
  width: min(100%, 360px);
  padding: 28px 18px 24px;
  border-radius: 28px;
  background: rgba(255, 251, 246, 0.96);
  box-shadow:
    0 24px 40px rgba(10, 14, 58, 0.24),
    inset 0 0 0 6px rgba(255, 166, 58, 0.92),
    inset 0 0 0 12px rgba(255, 248, 238, 0.72);
}

.miniature-score-row {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 20px;
  background: linear-gradient(90deg, #ff8d50 0%, #f6bf33 100%);
  color: #ffffff;
  box-shadow: 0 14px 26px rgba(184, 95, 20, 0.2);
}

.miniature-score-row + .miniature-score-row {
  margin-top: 14px;
}

.miniature-score-row__icon {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.miniature-score-row__label {
  font-size: 0.98rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.miniature-score-row__value {
  font-size: 1rem;
  font-weight: 900;
  white-space: nowrap;
}

.miniature-score-row__status {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #1fb449;
  font-size: 1rem;
  font-weight: 900;
}

.miniature-leaderboard-footer {
  padding-bottom: calc(40px + env(safe-area-inset-bottom));
}

.miniature-podium {
  width: min(100%, 360px);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: end;
  gap: 10px;
  padding-top: 24px;
}

.miniature-podium__item {
  display: grid;
  justify-items: center;
  gap: 6px;
  color: #fffaf0;
  text-shadow: 0 10px 22px rgba(8, 16, 56, 0.34);
}

.miniature-podium__item--first {
  transform: translateY(-16px);
}

.miniature-podium__avatar {
  width: 78px;
  aspect-ratio: 1;
  padding: 6px;
  border-radius: 50%;
  background:
    radial-gradient(circle, #fffef2 50%, #ffe7a6 51%, #ffb432 76%, rgba(255, 180, 50, 0.1) 77%);
  box-shadow: 0 18px 28px rgba(10, 16, 54, 0.3);
}

.miniature-podium__item--first .miniature-podium__avatar {
  width: 96px;
}

.miniature-podium__badge {
  min-width: 52px;
  padding: 4px 12px;
  border-radius: 999px;
  background: linear-gradient(180deg, #ffa147, #eb7d22);
  color: #fff;
  font-size: 0.88rem;
  font-weight: 900;
  text-align: center;
}

.miniature-podium__name {
  font-size: 1.08rem;
  font-weight: 900;
}

.miniature-podium__score {
  font-size: 1.32rem;
  font-weight: 900;
}

.miniature-central-list {
  display: grid;
  gap: 12px;
  padding-top: 20px;
}

.miniature-central-empty {
  width: min(100%, 360px);
  padding: 24px 20px;
  border-radius: 24px;
  background: rgba(255, 251, 246, 0.92);
  box-shadow:
    0 24px 40px rgba(10, 14, 58, 0.24),
    inset 0 0 0 6px rgba(255, 166, 58, 0.92),
    inset 0 0 0 12px rgba(255, 248, 238, 0.72);
  color: #ff7b2c;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.5;
  text-align: center;
}

.miniature-central-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  min-height: 56px;
  padding: 12px 16px;
  border-radius: 18px;
  background: #f4f2f1;
  color: #ff7b2c;
  font-weight: 900;
}

.miniature-central-row--active {
  grid-template-columns: auto auto 1fr auto;
  background: linear-gradient(90deg, #ff9055 0%, #f5bf39 100%);
  color: #fffef7;
  box-shadow: 0 14px 24px rgba(168, 96, 26, 0.22);
}

.miniature-central-row__avatar {
  width: 38px;
  height: 38px;
  padding: 3px;
  border-radius: 50%;
  background: radial-gradient(circle, #fffef2 55%, #ffbe4c 56%, #ff9b39 100%);
}

.miniature-central-row__name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.miniature-central-row__score {
  white-space: nowrap;
}

.dino-video-footer {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 4;
  justify-items: center;
  padding: 0 20px calc(36px + env(safe-area-inset-bottom));
}

.dino-game-body {
  justify-content: flex-start;
  padding-top: 8px;
}

.dino-quiz-header {
  display: grid;
  grid-template-columns: auto auto 1fr;
  align-items: center;
  gap: 10px;
}

.dino-life-row {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  padding-top: 0;
  justify-self: start;
}

.dino-life-icon {
  width: clamp(30px, 9vw, 44px);
  filter: drop-shadow(0 8px 14px rgba(33, 26, 61, 0.18));
}

.dino-quiz-header .dino-scene-badge {
  justify-self: end;
}

.dino-game-shell {
  width: min(100%, 390px);
  margin: 0 auto;
  display: grid;
  justify-items: center;
  gap: 18px;
}

.dino-quiz-heading {
  width: min(100%, 312px);
  filter: drop-shadow(0 18px 22px rgba(28, 32, 62, 0.2));
}

.dino-question-panel {
  position: relative;
  width: min(100%, 344px);
  filter: drop-shadow(0 20px 30px rgba(32, 33, 69, 0.22));
}

.dino-question-image {
  display: block;
  width: 100%;
  height: auto;
}

.dino-question-dropzone {
  position: absolute;
  inset: 0;
  min-height: 100%;
  border-radius: 34px;
  border: 0;
  background: transparent;
  display: block;
  padding: 0;
  transition:
    transform 180ms ease,
    background 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.dino-question-dropzone.is-hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 14px 26px rgba(42, 31, 66, 0.14);
}

.dino-question-dropzone.is-filled {
  background: transparent;
  box-shadow: none;
}

.dino-question-dropzone.is-correct {
  box-shadow: none;
}

.dino-question-dropzone.is-wrong {
  box-shadow: none;
}

.dino-question-droptext {
  position: absolute;
  left: 10%;
  width: 42%;
  top: 57%;
  min-height: 0;
  display: grid;
  place-items: center;
  padding: 0 6px;
  font-size: clamp(0.92rem, 3.2vw, 1.2rem);
  font-weight: 900;
  line-height: 1.1;
  text-align: center;
  color: #ffffff;
  -webkit-text-stroke: 1.8px #117444;
  paint-order: stroke fill;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.35);
  opacity: 0;
  transform: translateY(calc(-50% + 4px));
  transition: opacity 160ms ease, transform 160ms ease;
}

.dino-question-dropzone.is-filled .dino-question-droptext {
  opacity: 1;
  transform: translateY(-50%);
}

.dino-question-dropzone[data-question-index="5"] .dino-question-droptext {
  left: 24%;
  top: 50%;
  width: 36%;
  font-size: clamp(0.82rem, 2.8vw, 1.02rem);
}

.dino-feedback-mark {
  position: absolute;
  right: -8px;
  top: 46%;
  width: clamp(34px, 11vw, 52px);
  transform: translateY(-50%);
  filter: drop-shadow(0 10px 18px rgba(30, 28, 70, 0.18));
}

.dino-rock-stage {
  position: relative;
  width: min(100%, 374px);
  min-height: 344px;
  margin-top: clamp(28px, 7svh, 68px);
}

.dino-rock-stage::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 8px;
  width: min(72%, 266px);
  height: 112px;
  transform: translateX(-50%);
  border-radius: 46% 54% 50% 50% / 58% 58% 42% 42%;
  background:
    radial-gradient(circle at 30% 22%, rgba(255, 255, 255, 0.28), transparent 18%),
    radial-gradient(circle at 68% 18%, rgba(255, 255, 255, 0.18), transparent 16%),
    linear-gradient(180deg, #9ea4ad 0%, #7f8590 56%, #656a74 100%);
  box-shadow:
    -74px 22px 0 -24px rgba(121, 127, 137, 0.96),
    74px 22px 0 -24px rgba(121, 127, 137, 0.96),
    -26px -12px 0 -22px rgba(144, 150, 160, 0.94),
    26px -12px 0 -22px rgba(144, 150, 160, 0.94),
    0 22px 28px rgba(18, 23, 45, 0.2),
    inset 0 4px 8px rgba(255, 255, 255, 0.12),
    inset 0 -10px 14px rgba(31, 35, 47, 0.18);
  z-index: 1;
}

.dino-answer-bank {
  position: absolute;
  inset: 0;
  z-index: auto;
}

.dino-answer-rock {
  position: absolute;
  display: grid;
  place-items: center;
  width: clamp(96px, 26vw, 132px);
  min-height: clamp(78px, 22vw, 106px);
  padding: 14px 12px;
  border: 0;
  border-radius: 46% 54% 52% 48% / 40% 44% 56% 60%;
  background:
    radial-gradient(circle at 30% 24%, rgba(255, 255, 255, 0.34), transparent 24%),
    linear-gradient(180deg, #abb0b7 0%, #8b919a 52%, #6b707b 100%);
  box-shadow:
    0 18px 22px rgba(19, 23, 47, 0.24),
    inset 0 3px 7px rgba(255, 255, 255, 0.22),
    inset 0 -9px 12px rgba(36, 39, 49, 0.18);
  color: #ffcf77;
  font-size: clamp(0.9rem, 3.9vw, 1.16rem);
  font-weight: 900;
  line-height: 1.15;
  text-align: center;
  text-shadow:
    0 2px 0 rgba(88, 48, 0, 0.44),
    0 8px 12px rgba(58, 34, 6, 0.2);
  transition: transform 180ms ease, filter 180ms ease, opacity 180ms ease;
  box-sizing: border-box;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  cursor: grab;
}

.dino-answer-rock::before {
  content: "";
  position: absolute;
  inset: 13% 10% 18%;
  border-radius: inherit;
  background:
    radial-gradient(circle at 34% 18%, rgba(255, 255, 255, 0.28), transparent 30%),
    radial-gradient(circle at 68% 78%, rgba(25, 31, 42, 0.22), transparent 30%);
  opacity: 0.94;
  pointer-events: none;
}

.dino-answer-rock:hover,
.dino-answer-rock:focus-visible {
  filter: brightness(1.04);
}

.dino-answer-rock:nth-child(1) {
  left: 10px;
  top: 168px;
  width: clamp(88px, 24vw, 122px);
  min-height: clamp(72px, 20vw, 96px);
  transform: rotate(-10deg);
  z-index: 3;
}

.dino-answer-rock:nth-child(1):hover,
.dino-answer-rock:nth-child(1):focus-visible {
  transform: translateY(-3px) rotate(-10deg);
}

.dino-answer-rock:nth-child(2) {
  right: 10px;
  top: 168px;
  width: clamp(88px, 24vw, 122px);
  min-height: clamp(72px, 20vw, 96px);
  transform: rotate(10deg);
  z-index: 3;
}

.dino-answer-rock:nth-child(2):hover,
.dino-answer-rock:nth-child(2):focus-visible {
  transform: translateY(-3px) rotate(10deg);
}

.dino-answer-rock:nth-child(3) {
  left: 56px;
  bottom: 50px;
  transform: rotate(-9deg);
  z-index: 4;
}

.dino-answer-rock:nth-child(3):hover,
.dino-answer-rock:nth-child(3):focus-visible {
  transform: translateY(-3px) rotate(-9deg);
}

.dino-answer-rock:nth-child(4) {
  right: 56px;
  bottom: 50px;
  transform: rotate(9deg);
  z-index: 4;
}

.dino-answer-rock:nth-child(4):hover,
.dino-answer-rock:nth-child(4):focus-visible {
  transform: translateY(-3px) rotate(9deg);
}

.dino-answer-rock:nth-child(5) {
  left: 50%;
  bottom: 0;
  width: clamp(110px, 30vw, 146px);
  min-height: clamp(84px, 23vw, 110px);
  transform: translateX(-50%) rotate(-1deg);
  z-index: 5;
}

.dino-answer-rock:nth-child(5):hover,
.dino-answer-rock:nth-child(5):focus-visible {
  transform: translateX(-50%) translateY(-3px) rotate(-1deg);
}

.dino-answer-rock.is-dragging {
  position: fixed !important;
  left: 0 !important;
  top: 0 !important;
  right: auto !important;
  bottom: auto !important;
  margin: 0;
  z-index: 9999 !important;
  transform: translate3d(var(--drag-x, 0), var(--drag-y, 0), 0) !important;
  opacity: 0.96;
  cursor: grabbing;
  transition: none !important;
  pointer-events: none;
  filter: brightness(1.05) drop-shadow(0 12px 18px rgba(18, 23, 45, 0.24));
}

.dino-answer-rock.is-resolved {
  opacity: 0 !important;
  transform: scale(0.76) !important;
  pointer-events: none;
}

.dino-character-wrap {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: min(55vw, 214px);
  transform: translateX(-50%);
  display: grid;
  justify-items: center;
  z-index: 3;
}

.dino-character-wrap::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 6px;
  width: 112%;
  height: 98px;
  transform: translateX(-50%);
  border-radius: 48% 52% 48% 52% / 58% 58% 42% 42%;
  background:
    radial-gradient(circle at 34% 22%, rgba(255, 255, 255, 0.24), transparent 20%),
    radial-gradient(circle at 68% 24%, rgba(255, 255, 255, 0.14), transparent 18%),
    linear-gradient(180deg, #959ba5 0%, #767c87 56%, #5d626c 100%);
  box-shadow:
    -66px 12px 0 -22px rgba(124, 130, 140, 0.98),
    66px 12px 0 -22px rgba(124, 130, 140, 0.98),
    -22px -12px 0 -20px rgba(147, 152, 163, 0.92),
    22px -12px 0 -20px rgba(147, 152, 163, 0.92),
    0 18px 22px rgba(21, 24, 47, 0.22),
    inset 0 3px 7px rgba(255, 255, 255, 0.14),
    inset 0 -10px 14px rgba(30, 34, 47, 0.18);
  z-index: 0;
}

.dino-character-wrap::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 104%;
  height: 42px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(15, 16, 35, 0.24), rgba(15, 16, 35, 0) 72%);
  z-index: 0;
}

.dino-character {
  position: relative;
  z-index: 1;
  width: 100%;
  filter: drop-shadow(0 20px 28px rgba(29, 31, 63, 0.2));
  transform-origin: 50% 78%;
  transition: filter 180ms ease;
  pointer-events: none;
}

.dino-game-shell.is-suffering .dino-character {
  animation: dino-suffer 720ms ease;
}

.dino-game-shell.is-right .dino-character {
  animation: dino-relief 620ms ease;
}

.dino-game-shell.is-right .dino-answer-rock:nth-child(1) {
  transform: translate(-54px, -68px) rotate(-28deg);
  opacity: 0.52;
}

.dino-game-shell.is-right .dino-answer-rock:nth-child(2) {
  transform: translate(54px, -68px) rotate(28deg);
  opacity: 0.52;
}

.dino-game-shell.is-right .dino-answer-rock:nth-child(3) {
  transform: translate(-50px, 34px) rotate(-18deg);
  opacity: 0.46;
}

.dino-game-shell.is-right .dino-answer-rock:nth-child(4) {
  transform: translate(50px, 34px) rotate(18deg);
  opacity: 0.46;
}

.dino-game-shell.is-right .dino-answer-rock:nth-child(5) {
  transform: translateX(-50%) translateY(48px) scale(0.88);
  opacity: 0.38;
}

.dino-game-shell.is-complete .dino-character {
  filter: drop-shadow(0 24px 32px rgba(29, 31, 63, 0.24));
}

.dino-popup-overlay {
  position: absolute;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(10, 14, 40, 0.58);
  backdrop-filter: blur(10px);
}

.dino-popup-overlay[hidden] {
  display: none !important;
}

.dino-popup-shell {
  width: min(100%, 320px);
  display: grid;
  justify-items: center;
  gap: 10px;
}

.dino-popup-image {
  width: min(100%, 320px);
  filter: drop-shadow(0 22px 36px rgba(18, 20, 48, 0.26));
}

.dino-popup-score {
  margin: -6px 0 4px;
  padding: 10px 22px;
  border-radius: 999px;
  background: rgba(255, 249, 235, 0.9);
  color: #9a4d00;
  font-size: clamp(1rem, 4vw, 1.2rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0.02em;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.4);
  box-shadow:
    0 14px 24px rgba(27, 31, 54, 0.18),
    inset 0 2px 0 rgba(255, 255, 255, 0.54);
}

.dino-popup-score[hidden] {
  display: none !important;
}

.dino-popup-button {
  border: 0;
  background: transparent;
  padding: 0;
  margin-top: -12px;
}

.dino-popup-button img,
.dino-popup-finish img {
  width: min(54vw, 178px);
}

.dino-popup-finish {
  margin-top: -10px;
}

.dino-popup-button[hidden],
.dino-popup-finish[hidden] {
  display: none !important;
}

.dino-popup-button.is-audio-locked,
.dino-popup-finish.is-audio-locked {
  cursor: wait;
  opacity: 0.72;
}

.dino-popup-button.is-audio-locked img,
.dino-popup-finish.is-audio-locked img {
  filter: saturate(0.88);
}

@keyframes dino-suffer {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }

  12% {
    transform: translateY(-2px) rotate(-4deg);
  }

  24% {
    transform: translateY(2px) rotate(5deg);
  }

  38% {
    transform: translateY(-3px) rotate(-5deg);
  }

  52% {
    transform: translateY(1px) rotate(4deg);
  }

  66% {
    transform: translateY(-2px) rotate(-3deg);
  }

  82% {
    transform: translateY(1px) rotate(2deg);
  }
}

@keyframes dino-relief {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }

  36% {
    transform: translateY(-10px) scale(1.04);
  }

  64% {
    transform: translateY(0) scale(1);
  }
}

.button-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  border: 0;
  background: linear-gradient(180deg, var(--gold-500), var(--orange-500));
  color: #fff9f0;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 10px 20px rgba(43, 27, 73, 0.18);
}

.button-chip--ghost {
  background: rgba(19, 32, 85, 0.08);
  color: #214;
  border: 1px solid rgba(33, 34, 89, 0.14);
  box-shadow: none;
}

.fine-print {
  margin: 0;
  color: rgba(255, 253, 247, 0.74);
  font-size: 0.82rem;
  text-align: center;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

[data-reveal] {
  animation: rise 700ms ease both;
}

[data-delay="1"] {
  animation-delay: 90ms;
}

[data-delay="2"] {
  animation-delay: 180ms;
}

[data-delay="3"] {
  animation-delay: 270ms;
}

[data-delay="4"] {
  animation-delay: 360ms;
}

@keyframes bob {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

@keyframes hover-center {
  0%,
  100% {
    transform: translate(-50%, -50%) translateY(0);
  }

  50% {
    transform: translate(-50%, -50%) translateY(-10px);
  }
}

@keyframes orb-card-float {
  0%,
  100% {
    transform: translateY(var(--orb-offset));
  }

  50% {
    transform: translateY(calc(var(--orb-offset) - 8px));
  }
}

@keyframes scan-pass {
  0% {
    top: -22%;
    opacity: 0;
  }

  15% {
    opacity: 1;
  }

  85% {
    opacity: 1;
  }

  100% {
    top: 104%;
    opacity: 0;
  }
}

@keyframes pulse {
  0%,
  100% {
    transform: translate(-50%, -50%) scale(1);
  }

  50% {
    transform: translate(-50%, -50%) scale(1.06);
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes shake {
  0%,
  100% {
    transform: translateX(0);
  }

  20% {
    transform: translateX(-7px);
  }

  40% {
    transform: translateX(7px);
  }

  60% {
    transform: translateX(-5px);
  }

  80% {
    transform: translateX(5px);
  }
}

@media (min-width: 768px) and (max-width: 1200px) {
  body {
    align-items: stretch;
    padding: 0;
  }

  .page {
    width: 100vw;
    max-width: none;
    min-height: 100svh;
    border-radius: 0;
    box-shadow: none;
  }

  .page__content {
    min-height: 100svh;
    padding: clamp(28px, 4vw, 40px) clamp(28px, 5vw, 52px);
  }

  .page--tutorial .page__content {
    min-height: 100svh;
    padding: 0;
  }

  .tutorial-layout {
    min-height: 100svh;
    padding: clamp(28px, 4vw, 40px) clamp(28px, 5vw, 52px) clamp(34px, 5vh, 52px);
  }

  .tutorial-stage {
    gap: 18px;
  }

  .tutorial-heading {
    width: min(88%, 430px);
  }

  .tutorial-card {
    width: min(100%, 430px);
  }

  .tutorial-footer {
    padding-top: 10px;
    padding-bottom: calc(16px + env(safe-area-inset-bottom));
  }

  .tutorial-next img {
    width: min(30vw, 252px);
  }

  .page__header {
    min-height: 72px;
  }

  .page__footer {
    padding-bottom: calc(68px + env(safe-area-inset-bottom));
  }

  .home-link {
    width: 76px;
    height: 76px;
  }

  .welcome-intro {
    padding-top: 0;
    padding-bottom: 0;
    transform: translateY(-92px);
  }

  .hero-logo {
    width: min(72vw, 520px);
  }

  .title-art,
  .permission-art {
    width: min(72vw, 520px);
  }

  .icon-hero {
    width: min(34vw, 250px);
  }

  .image-button img,
  .image-button--button img {
    width: min(30vw, 240px);
  }

  .video-card {
    max-width: min(78vw, 560px);
  }

  .video-card__poster {
    max-width: 420px;
  }

  .avatar-grid {
    max-width: min(74vw, 620px);
    gap: 28px;
    margin: 0 auto;
  }

  .avatar-card {
    border-radius: 32px;
  }

  .avatar-card img {
    width: min(22vw, 180px);
  }

  .profile-form {
    max-width: min(78vw, 620px);
    margin: 0 auto;
    gap: 18px;
  }

  .field input,
  .field select {
    min-height: 72px;
    padding: 0 26px;
    font-size: 1.14rem;
  }

  .field--select::after {
    right: 28px;
    bottom: 28px;
    border-left-width: 12px;
    border-right-width: 12px;
    border-top-width: 16px;
  }

  .world-shell {
    gap: 32px;
  }

  .world-profile__meta {
    font-size: 1.18rem;
    padding: 12px 24px;
  }

  .world-panel {
    max-width: min(82vw, 760px);
    margin: 24px auto 0;
    padding: 96px 26px 28px;
    border-radius: 44px;
  }

  .world-avatar {
    width: 136px;
    height: 136px;
  }

  .world-grid--simple .world-card {
    grid-template-columns: 110px 1fr auto;
    padding: 18px 24px;
    border-radius: 30px;
  }

  .world-grid--simple .world-card__thumb {
    width: 96px;
    height: 96px;
  }

  .world-grid--simple .world-card__thumb img {
    max-width: 88px;
    max-height: 88px;
  }

  .world-grid--simple .world-card__title {
    font-size: 1.36rem;
  }

  .world-grid--simple .world-card__points {
    font-size: 1.08rem;
  }

  .story-stage--full {
    min-height: calc(100svh - 220px);
  }

  .story-ar-hud__target {
    width: min(32vw, 280px);
  }

  .story-ar-reference {
    right: 24px;
    bottom: 24px;
    width: min(16vw, 124px);
  }

  .story-quick-open {
    left: 24px;
    bottom: 26px;
    width: min(8vw, 68px);
    min-width: 52px;
  }

  .story-ui-slot {
    padding: 34px 28px 52px;
  }

  .story-ui-slot__portal-wrap {
    width: min(42vw, 410px);
    top: 40%;
  }

  .story-ui-slot__balls {
    width: min(34vw, 344px);
    min-height: 176px;
  }

  .world-orb {
    width: min(11vw, 104px);
    min-width: 84px;
  }

  .world-orb--dino {
    width: min(13vw, 118px);
    min-width: 96px;
  }

  .dino-tag-image {
    width: min(28vw, 220px);
  }

  .dino-footer {
    padding-bottom: 28px;
  }

  .dino-rotation {
    font-size: 2rem;
  }

  .dino-welcome-badge {
    width: min(72vw, 540px);
  }

  .dino-scene-badge {
    width: min(24vw, 210px);
  }

  .dino-video-shell {
    border-radius: 0;
  }

  .dino-video-player {
    border-radius: 0;
  }

  .dino-scene-header--video {
    padding: clamp(28px, 4vw, 40px) clamp(28px, 5vw, 52px) 0;
  }

  .dino-video-footer {
    padding: 0 clamp(28px, 5vw, 52px) calc(42px + env(safe-area-inset-bottom));
  }

  .dino-video-ring {
    bottom: calc(128px + env(safe-area-inset-bottom));
    min-width: 132px;
    font-size: 1.4rem;
  }

  .dino-video-quick-open {
    left: 24px;
    bottom: 24px;
    width: min(8vw, 68px);
    min-width: 52px;
  }

  .dino-game-shell {
    width: min(74vw, 640px);
    gap: 22px;
  }

  .dino-life-icon {
    width: min(6vw, 46px);
  }

  .dino-quiz-heading {
    width: min(44vw, 360px);
  }

  .dino-question-panel {
    width: min(54vw, 470px);
  }

  .dino-question-dropzone {
    border-radius: 42px;
  }

  .dino-question-droptext {
    padding: 0 10px;
    font-size: clamp(1rem, 1.8vw, 1.35rem);
  }

  .dino-rock-stage {
    width: min(58vw, 520px);
    min-height: 444px;
    margin-top: 22px;
  }

  .dino-rock-stage::before {
    width: min(66%, 320px);
    height: 132px;
    bottom: 12px;
  }

  .dino-answer-rock {
    width: min(18vw, 160px);
    min-height: min(13vw, 122px);
    font-size: clamp(1rem, 1.9vw, 1.28rem);
  }

  .dino-answer-rock:nth-child(1) {
    left: 18px;
    top: 210px;
  }

  .dino-answer-rock:nth-child(2) {
    right: 18px;
    top: 210px;
  }

  .dino-answer-rock:nth-child(3) {
    left: 76px;
    bottom: 64px;
  }

  .dino-answer-rock:nth-child(4) {
    right: 76px;
    bottom: 64px;
  }

  .dino-answer-rock:nth-child(5) {
    width: min(21vw, 176px);
    bottom: 6px;
  }

  .dino-character-wrap {
    width: min(34vw, 260px);
    bottom: 10px;
  }

  .dino-popup-shell {
    width: min(100%, 390px);
  }

  .dino-popup-image {
    width: min(100%, 390px);
  }
}

@media (min-width: 768px) and (max-width: 1200px) and (orientation: landscape) {
  .page__content {
    padding: 26px 34px 22px;
  }

  .tutorial-layout {
    min-height: 100svh;
    padding: 26px 34px 22px;
  }

  .tutorial-heading {
    width: min(86%, 320px);
  }

  .tutorial-card {
    width: min(100%, 320px);
  }

  .tutorial-footer {
    padding-bottom: calc(16px + env(safe-area-inset-bottom));
  }

  .tutorial-next img {
    width: min(24vw, 214px);
  }

  .hero-logo {
    width: min(56vw, 460px);
  }

  .image-button img,
  .image-button--button img {
    width: min(22vw, 220px);
  }

  .video-card {
    max-width: min(56vw, 480px);
  }

  .avatar-grid {
    max-width: min(56vw, 560px);
  }

  .profile-form {
    max-width: min(58vw, 560px);
  }

  .world-panel {
    max-width: min(68vw, 720px);
  }

  .story-stage--full {
    min-height: calc(100svh - 170px);
  }

  .dino-video-shell {
    border-radius: 0;
  }

  .dino-video-quick-open {
    left: 24px;
    bottom: 24px;
    width: min(7vw, 64px);
    min-width: 48px;
  }

  .dino-game-shell {
    width: min(56vw, 600px);
  }

  .dino-question-panel {
    width: min(48vw, 430px);
  }

  .dino-rock-stage {
    width: min(46vw, 470px);
    min-height: 366px;
    margin-top: 16px;
  }

  .dino-rock-stage::before {
    height: 118px;
    bottom: 10px;
  }

  .dino-answer-rock {
    width: min(13vw, 142px);
    min-height: min(11vw, 112px);
  }

  .dino-answer-rock:nth-child(1) {
    left: 12px;
    top: 170px;
  }

  .dino-answer-rock:nth-child(2) {
    right: 12px;
    top: 170px;
  }

  .dino-answer-rock:nth-child(3) {
    left: 58px;
    bottom: 48px;
  }

  .dino-answer-rock:nth-child(4) {
    right: 58px;
    bottom: 48px;
  }

  .dino-answer-rock:nth-child(5) {
    bottom: 4px;
  }

  .dino-character-wrap {
    width: min(24vw, 240px);
    bottom: 4px;
  }
}

@media (min-width: 1201px) {
  body {
    align-items: center;
    padding: 24px;
  }

  .page {
    width: min(62vw, 720px);
    border-radius: 40px;
    min-height: min(100svh - 48px, 1180px);
  }

  .page__content {
    min-height: min(100svh - 48px, 1180px);
    padding: 34px 32px 28px;
  }

  .page--tutorial .page__content {
    min-height: min(100svh - 48px, 1180px);
  }

  .tutorial-layout {
    min-height: min(100svh - 48px, 1180px);
    padding: 34px 32px 28px;
  }

  .tutorial-heading {
    width: min(86%, 340px);
  }

  .tutorial-card {
    width: min(100%, 340px);
  }

  .tutorial-footer {
    padding-bottom: calc(18px + env(safe-area-inset-bottom));
  }

  .tutorial-next img {
    width: min(20vw, 228px);
  }

  .welcome-intro {
    transform: translateY(-72px);
  }

  .story-stage--full {
    min-height: min(78vh, 920px);
  }

  .story-ui-slot {
    padding: 36px 30px 58px;
  }

  .story-ui-slot__portal-wrap {
    width: min(30vw, 396px);
    top: 41%;
  }

  .story-quick-open {
    left: 28px;
    bottom: 28px;
    width: min(6vw, 72px);
    min-width: 56px;
  }

  .story-ui-slot__balls {
    width: min(24vw, 330px);
    min-height: 188px;
  }

  .world-orb {
    width: min(8vw, 106px);
    min-width: 86px;
  }

  .world-orb--dino {
    width: min(9vw, 118px);
    min-width: 96px;
  }

  .page__footer {
    padding-bottom: calc(60px + env(safe-area-inset-bottom));
  }

  .dino-welcome-badge {
    width: min(36vw, 470px);
  }

  .dino-scene-badge {
    width: min(18vw, 214px);
  }

  .dino-video-shell {
    border-radius: 0;
  }

  .dino-video-quick-open {
    left: 28px;
    bottom: 28px;
    width: min(5vw, 72px);
    min-width: 54px;
  }

  .dino-game-shell {
    width: min(34vw, 560px);
    gap: 22px;
  }

  .dino-life-icon {
    width: min(3vw, 48px);
  }

  .dino-quiz-heading {
    width: min(22vw, 350px);
  }

  .dino-question-panel {
    width: min(28vw, 440px);
  }

  .dino-question-dropzone {
    border-radius: 40px;
  }

  .dino-rock-stage {
    width: min(30vw, 500px);
    min-height: 406px;
    margin-top: 18px;
  }

  .dino-rock-stage::before {
    width: min(64%, 310px);
    height: 124px;
    bottom: 12px;
  }

  .dino-answer-rock {
    width: min(8vw, 156px);
    min-height: min(7vw, 116px);
    font-size: clamp(1rem, 1vw, 1.16rem);
  }

  .dino-answer-rock:nth-child(5) {
    width: min(9vw, 170px);
    bottom: 6px;
  }

  .dino-answer-rock:nth-child(1) {
    left: 18px;
    top: 192px;
  }

  .dino-answer-rock:nth-child(2) {
    right: 18px;
    top: 192px;
  }

  .dino-answer-rock:nth-child(3) {
    left: 72px;
    bottom: 60px;
  }

  .dino-answer-rock:nth-child(4) {
    right: 72px;
    bottom: 60px;
  }

  .dino-character-wrap {
    width: min(15vw, 228px);
    bottom: 10px;
  }

  .dino-popup-shell {
    width: min(100%, 400px);
  }

  .dino-popup-image {
    width: min(100%, 400px);
  }

  .dino-video-footer {
    padding: 0 32px calc(40px + env(safe-area-inset-bottom));
  }
}
