:root {
  color-scheme: dark;
  --ink: #111017;
  --ink-2: #191520;
  --panel: rgba(253, 247, 234, 0.94);
  --panel-soft: rgba(253, 247, 234, 0.72);
  --text: #18141f;
  --muted: #74697d;
  --night-text: #fff3dc;
  --gold: #dfad58;
  --gold-2: #f4d792;
  --teal: #37a091;
  --coral: #d66f66;
  --blue: #2e55be;
  --violet: #7b62c9;
  --line: rgba(30, 24, 34, 0.14);
  --shadow: 0 26px 90px rgba(4, 4, 14, 0.38);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--ink);
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  overflow-x: hidden;
  color: var(--night-text);
  font-family:
    Inter, "Segoe UI", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
}

button,
textarea,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.56;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

.sky-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(circle at 50% 18%, rgba(92, 73, 150, 0.32), transparent 30%),
    radial-gradient(circle at 20% 82%, rgba(55, 160, 145, 0.22), transparent 26%),
    linear-gradient(180deg, #14121a 0%, #1f1721 56%, #111017 100%);
  z-index: -2;
}

.splash-intro,
.transition-overlay {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.splash-intro {
  z-index: 20;
  padding: 28px;
  background:
    radial-gradient(circle at 50% 45%, rgba(223, 173, 88, 0.18), transparent 26%),
    linear-gradient(180deg, rgba(17, 16, 23, 0.94), rgba(28, 20, 31, 0.98));
  transition: opacity 520ms ease, visibility 520ms ease, transform 520ms ease;
}

.splash-intro.is-hidden {
  opacity: 0;
  visibility: hidden;
  transform: scale(1.03);
  pointer-events: none;
}

.splash-stars {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle, rgba(255, 243, 220, 0.86) 0 1px, transparent 1.6px),
    radial-gradient(circle, rgba(223, 173, 88, 0.5) 0 1px, transparent 1.8px);
  background-position: 0 0, 34px 48px;
  background-size: 82px 82px, 126px 126px;
  animation: starDrift 16s linear infinite;
}

.star-gate {
  position: absolute;
  width: min(78vw, 340px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
}

.star-gate span {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(244, 215, 146, 0.3);
  border-radius: 50%;
  animation: orbitPulse 2600ms ease-in-out infinite;
}

.star-gate span:nth-child(2) {
  inset: 12%;
  animation-delay: 240ms;
}

.star-gate span:nth-child(3) {
  inset: 24%;
  animation-delay: 480ms;
}

.splash-content {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: 14px;
  width: min(100%, 360px);
  text-align: center;
  animation: introRise 900ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.eyebrow,
.scene-kicker {
  margin: 0;
  color: var(--gold-2);
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.splash-content h1 {
  margin-bottom: 0;
  max-width: 100%;
  font-size: clamp(2.7rem, 14vw, 3.8rem);
  line-height: 0.92;
  letter-spacing: 0;
  text-align: center;
  white-space: nowrap;
}

.splash-content p {
  max-width: 280px;
  margin-bottom: 4px;
  color: rgba(255, 243, 220, 0.72);
  line-height: 1.7;
}

.transition-overlay {
  z-index: 15;
  background: rgba(17, 16, 23, 0.78);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 220ms ease, visibility 220ms ease;
}

.transition-overlay.is-active {
  opacity: 1;
  visibility: visible;
}

.transition-overlay p {
  position: relative;
  z-index: 1;
  margin: 120px 0 0;
  color: var(--night-text);
  font-size: 1rem;
  font-weight: 850;
  text-align: center;
}

.transition-orbit {
  position: absolute;
  width: 128px;
  aspect-ratio: 1;
  border: 1px solid rgba(244, 215, 146, 0.4);
  border-radius: 50%;
  animation: transitionSpin 900ms linear infinite;
}

.transition-orbit::before,
.transition-orbit::after {
  position: absolute;
  content: "";
  border-radius: 50%;
}

.transition-orbit::before {
  inset: 24px;
  border: 1px solid rgba(55, 160, 145, 0.48);
}

.transition-orbit::after {
  width: 18px;
  height: 18px;
  top: -8px;
  left: 50%;
  background: var(--gold);
  box-shadow: 0 0 26px rgba(244, 215, 146, 0.8);
}

.app-shell {
  width: min(100%, 460px);
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0 auto;
  padding:
    max(14px, env(safe-area-inset-top))
    14px
    max(18px, env(safe-area-inset-bottom));
  opacity: 1;
  transition: opacity 420ms ease, transform 420ms ease;
}

.app-shell-hidden {
  opacity: 0;
  transform: translateY(14px);
  pointer-events: none;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 44px;
  margin-bottom: 12px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--night-text);
  font-size: 0.98rem;
  font-weight: 850;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 1px solid rgba(244, 215, 146, 0.38);
  border-radius: 50%;
  color: var(--gold-2);
  background: rgba(255, 255, 255, 0.06);
}

.header-actions {
  display: flex;
  gap: 8px;
}

.icon-button {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid rgba(255, 243, 220, 0.16);
  border-radius: 50%;
  color: var(--night-text);
  background: rgba(255, 255, 255, 0.06);
}

.h5-stage {
  position: relative;
  min-height: calc(100dvh - 88px);
  border: 1px solid rgba(255, 243, 220, 0.12);
  border-radius: 22px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.025)),
    rgba(18, 17, 24, 0.72);
  box-shadow: var(--shadow);
}

.scene {
  display: grid;
  align-content: start;
  gap: 16px;
  min-height: calc(100dvh - 90px);
  padding: clamp(18px, 5vw, 26px);
}

.question-scene {
  align-content: center;
  justify-items: center;
  gap: 18px;
  padding-block: clamp(34px, 10dvh, 74px);
}

.question-scene .scene-kicker,
.question-scene h2,
.question-scene .question-form {
  width: min(100%, 372px);
}

.question-scene h2 {
  font-size: clamp(2.15rem, 8vw, 2.78rem);
}

.scene.active {
  animation: sceneIn 520ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.scene h2 {
  margin-bottom: 0;
  color: var(--night-text);
  font-size: clamp(1.72rem, 8vw, 2.55rem);
  line-height: 1.05;
  letter-spacing: 0;
}

.scene-copy {
  margin-bottom: 0;
  color: rgba(255, 243, 220, 0.68);
  line-height: 1.75;
}

.question-form,
.domain-panel,
.payment-box,
.unlock-card,
.account-card,
.result-output > section,
.history-card {
  border: 1px solid rgba(255, 243, 220, 0.12);
  border-radius: 18px;
  background: var(--panel);
  color: var(--text);
  box-shadow: 0 20px 58px rgba(0, 0, 0, 0.18);
}

.question-form {
  border-color: rgba(255, 243, 220, 0.32);
  border-radius: 20px;
  background:
    linear-gradient(145deg, rgba(255, 252, 245, 0.98), rgba(246, 237, 218, 0.94));
  box-shadow:
    0 26px 70px rgba(0, 0, 0, 0.24),
    0 1px 0 rgba(255, 255, 255, 0.78) inset;
}

.question-form,
.domain-panel,
.payment-box,
.unlock-card,
.account-card {
  display: grid;
  gap: 14px;
  padding: 16px;
}

.question-form {
  gap: 13px;
  padding: clamp(16px, 4vw, 20px);
}

.question-form label,
.panel-caption {
  color: var(--text);
  font-weight: 850;
}

textarea {
  width: 100%;
  min-height: 150px;
  resize: vertical;
  border: 1px solid rgba(30, 24, 34, 0.14);
  border-radius: 14px;
  padding: 13px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.72);
  line-height: 1.7;
  outline: 0;
}

textarea:focus {
  border-color: rgba(223, 173, 88, 0.9);
  box-shadow: 0 0 0 4px rgba(223, 173, 88, 0.16);
}

.text-input {
  width: 100%;
  min-height: 44px;
  border: 1px solid rgba(30, 24, 34, 0.14);
  border-radius: 14px;
  padding: 0 13px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.72);
  outline: 0;
}

.text-input:focus {
  border-color: rgba(223, 173, 88, 0.9);
  box-shadow: 0 0 0 4px rgba(223, 173, 88, 0.16);
}

.form-footer {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: center;
  color: var(--muted);
  font-size: 0.85rem;
}

.domain-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.domain-chip {
  min-height: 36px;
  padding: 0 13px;
  border: 1px solid rgba(30, 24, 34, 0.12);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.52);
  font-weight: 800;
}

.domain-chip.active {
  color: #1b1308;
  border-color: transparent;
  background: var(--gold-2);
}

.primary-action,
.secondary-action,
.ghost-action {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 18px;
  border-radius: 999px;
  font-weight: 900;
  letter-spacing: 0;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.primary-action {
  border: 1px solid rgba(255, 226, 162, 0.28);
  color: #1b1308;
  background: linear-gradient(180deg, #f7d992, var(--gold));
  box-shadow: 0 18px 34px rgba(223, 173, 88, 0.25);
}

.secondary-action {
  border: 1px solid rgba(255, 243, 220, 0.18);
  color: var(--night-text);
  background: rgba(255, 255, 255, 0.075);
}

.ghost-action {
  border: 1px solid rgba(30, 24, 34, 0.16);
  color: var(--muted);
  background: transparent;
}

.primary-action:not(:disabled):active,
.secondary-action:not(:disabled):active,
.ghost-action:not(:disabled):active {
  transform: scale(0.98);
}

.intro-action {
  min-width: 176px;
}

.full-width {
  width: 100%;
}

.compact {
  min-height: 38px;
  padding: 0 12px;
  font-size: 0.86rem;
}

.dice-board {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  opacity: 0;
  transform: translateY(24px) scale(0.82);
  pointer-events: none;
}

.dice-board.summoned {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
  animation: diceSummon 760ms cubic-bezier(0.2, 0.85, 0.2, 1) both;
}

.die {
  position: relative;
  display: grid;
  min-height: 118px;
  place-items: center;
  padding: 14px 8px;
  isolation: isolate;
  color: #ffe3a1;
  background:
    linear-gradient(150deg, rgba(64, 105, 202, 0.95), rgba(35, 57, 147, 0.96) 55%, rgba(13, 79, 91, 0.94)),
    var(--blue);
  border: 1px solid rgba(255, 225, 163, 0.35);
  clip-path: polygon(50% 0, 85% 14%, 100% 48%, 88% 82%, 50% 100%, 12% 82%, 0 48%, 15% 14%);
  filter: drop-shadow(0 20px 20px rgba(0, 0, 0, 0.26));
  transform-style: preserve-3d;
}

.die::before {
  position: absolute;
  inset: 10px;
  z-index: -1;
  content: "";
  border: 1px solid rgba(255, 236, 186, 0.18);
  clip-path: inherit;
}

.die::after {
  position: absolute;
  inset: 0;
  z-index: -2;
  content: "";
  background: linear-gradient(45deg, rgba(255, 255, 255, 0.18), transparent 42%, rgba(0, 0, 0, 0.2));
  clip-path: inherit;
}

.dice-board.summoned .die:nth-child(1) {
  animation: dieDrop 620ms 80ms cubic-bezier(0.18, 0.8, 0.2, 1.15) both;
}

.dice-board.summoned .die:nth-child(2) {
  animation: dieDrop 620ms 180ms cubic-bezier(0.18, 0.8, 0.2, 1.15) both;
}

.dice-board.summoned .die:nth-child(3) {
  animation: dieDrop 620ms 280ms cubic-bezier(0.18, 0.8, 0.2, 1.15) both;
}

.die.rolling {
  animation: tumble 820ms cubic-bezier(0.2, 0.75, 0.25, 1);
}

.die-glyph {
  display: block;
  color: #ffe7ad;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.1rem, 13vw, 3.4rem);
  font-weight: 700;
  line-height: 1;
  text-shadow: 0 2px 0 rgba(31, 18, 0, 0.32);
}

.die-label {
  align-self: end;
  color: rgba(255, 244, 213, 0.92);
  font-size: 0.76rem;
  font-weight: 850;
  text-align: center;
}

.result-output {
  display: grid;
  gap: 14px;
}

.result-output > section {
  padding: 15px;
}

.summary-band {
  display: grid;
  gap: 14px;
}

.result-title {
  display: grid;
  gap: 6px;
}

.result-title strong {
  color: var(--text);
  font-size: 1.12rem;
}

.result-title span,
.result-output p,
.payment-note,
.terms-line,
.history-meta {
  color: var(--muted);
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  color: #332516;
  background: #f0dec0;
  font-size: 0.82rem;
  font-weight: 850;
}

.score-badge {
  display: inline-grid;
  width: 86px;
  height: 86px;
  place-items: center;
  border: 2px solid var(--gold);
  border-radius: 50%;
  color: #261706;
  background: #f8dfa5;
  font-weight: 900;
}

.score-badge span {
  font-size: 1.22rem;
}

.score-badge.dice-only {
  color: var(--night-text);
  background: var(--blue);
  border-color: rgba(255, 231, 173, 0.58);
}

.meter {
  height: 10px;
  margin-top: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(25, 21, 32, 0.12);
}

.meter span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--coral), var(--gold), var(--teal));
}

.reading-grid,
.score-list,
.history-list {
  display: grid;
  gap: 10px;
}

.reading-block,
.advice-block,
.special-block,
.question-block {
  line-height: 1.74;
}

.reading-block h3,
.advice-block h3,
.special-block h3,
.question-block h3,
.unlock-card h3 {
  margin-bottom: 8px;
  color: var(--text);
  font-size: 1rem;
}

.special-block {
  border-color: rgba(214, 111, 102, 0.32) !important;
  background: rgba(255, 241, 238, 0.95) !important;
}

.ai-block {
  border-color: rgba(123, 98, 201, 0.28) !important;
  background: rgba(245, 241, 255, 0.96) !important;
}

.ai-block p + p {
  margin-top: 10px;
}

.score-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.score-list li {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 10px;
  align-items: center;
  color: var(--muted);
  font-size: 0.88rem;
}

.mini-meter {
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(25, 21, 32, 0.12);
}

.mini-meter span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--teal);
}

.unlock-card {
  animation: cardReveal 420ms ease both;
}

.price-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.price-line span {
  color: var(--muted);
}

.price-line strong {
  color: var(--text);
  font-size: 1.45rem;
}

.qr-mock {
  display: grid;
  width: 136px;
  height: 136px;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  justify-self: center;
  padding: 10px;
  border: 1px solid rgba(25, 21, 32, 0.2);
  border-radius: 14px;
  background: #f7f1e7;
}

.qr-mock span {
  border-radius: 3px;
  background: var(--text);
}

.qr-mock span:nth-child(3n) {
  background: var(--gold);
}

.qr-mock span:nth-child(4n) {
  background: var(--teal);
}

.terms-line {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: start;
  font-size: 0.9rem;
  line-height: 1.62;
}

.terms-line input {
  width: 18px;
  height: 18px;
  margin-top: 3px;
  accent-color: var(--gold);
}

.generation-scene {
  min-height: calc(100dvh - 90px);
  align-content: center;
  justify-items: center;
  text-align: center;
}

.generation-scene h2 {
  max-width: 320px;
}

.generation-scene p {
  max-width: 280px;
  color: rgba(255, 243, 220, 0.72);
  line-height: 1.7;
}

.aurora-loader {
  position: relative;
  display: grid;
  width: 154px;
  aspect-ratio: 1;
  place-items: center;
  margin-bottom: 8px;
}

.aurora-loader span {
  position: absolute;
  border-radius: 50%;
  opacity: 0.78;
  filter: blur(2px);
  animation: auroraSpin 1600ms ease-in-out infinite;
}

.aurora-loader span:nth-child(1) {
  width: 128px;
  height: 128px;
  border: 2px solid rgba(244, 215, 146, 0.72);
}

.aurora-loader span:nth-child(2) {
  width: 92px;
  height: 92px;
  border: 2px solid rgba(55, 160, 145, 0.66);
  animation-delay: 180ms;
}

.aurora-loader span:nth-child(3) {
  width: 22px;
  height: 22px;
  background: var(--gold);
  box-shadow: 0 0 34px rgba(244, 215, 146, 0.88);
  animation-delay: 360ms;
}

.history-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.history-card {
  display: grid;
  gap: 8px;
  padding: 13px;
}

.history-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.82rem;
}

.history-title {
  margin: 0;
  color: var(--text);
  font-weight: 850;
}

.account-card h3 {
  margin-bottom: 0;
  color: var(--text);
  font-size: 1rem;
}

.account-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: center;
}

.account-row span {
  color: var(--muted);
  font-size: 0.9rem;
}

.account-row strong {
  min-width: 0;
  color: var(--text);
  overflow-wrap: anywhere;
  text-align: right;
}

.account-note {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.68;
}

.account-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.mini-list {
  display: grid;
  gap: 8px;
}

.mini-item {
  display: grid;
  gap: 5px;
  padding: 10px;
  border: 1px solid rgba(30, 24, 34, 0.1);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.46);
}

.mini-item strong {
  color: var(--text);
}

.mini-item span,
.mini-item p {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.55;
}

.danger-card {
  border-color: rgba(214, 111, 102, 0.3);
  background: rgba(255, 241, 238, 0.94);
}

.danger-action {
  color: #8d3c42;
  border-color: rgba(141, 60, 66, 0.25);
}

.empty-state {
  display: grid;
  gap: 10px;
  justify-items: center;
  padding: 32px 16px;
  border: 1px solid rgba(255, 243, 220, 0.12);
  border-radius: 18px;
  color: rgba(255, 243, 220, 0.72);
  background: rgba(255, 255, 255, 0.06);
  text-align: center;
}

.empty-symbol {
  color: var(--gold-2);
  font-size: 2.8rem;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: max(20px, env(safe-area-inset-bottom));
  z-index: 30;
  width: min(360px, calc(100vw - 32px));
  padding: 12px 14px;
  border: 1px solid rgba(249, 240, 223, 0.18);
  border-radius: 999px;
  color: var(--night-text);
  background: rgba(20, 18, 24, 0.92);
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  text-align: center;
  transform: translate(-50%, 8px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

.hidden {
  display: none !important;
}

:focus-visible {
  outline: 3px solid rgba(244, 215, 146, 0.78);
  outline-offset: 2px;
}

@keyframes starDrift {
  to {
    background-position: 120px 160px, -80px 120px;
  }
}

@keyframes orbitPulse {
  0%,
  100% {
    opacity: 0.34;
    transform: rotate(0deg) scale(0.88);
  }

  50% {
    opacity: 0.9;
    transform: rotate(14deg) scale(1.05);
  }
}

@keyframes introRise {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.96);
  }

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

@keyframes transitionSpin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes sceneIn {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.985);
  }

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

@keyframes diceSummon {
  0% {
    opacity: 0;
    filter: blur(8px);
    transform: translateY(30px) scale(0.74);
  }

  62% {
    opacity: 1;
    filter: blur(0);
    transform: translateY(-8px) scale(1.04);
  }

  100% {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0) scale(1);
  }
}

@keyframes dieDrop {
  from {
    opacity: 0;
    transform: translateY(-46px) rotate(-18deg) scale(0.72);
  }

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

@keyframes tumble {
  0% {
    transform: translateY(0) rotate(0deg) scale(1);
  }

  42% {
    transform: translateY(-34px) rotate(62deg) scale(1.05);
  }

  72% {
    transform: translateY(10px) rotate(146deg) scale(0.96);
  }

  100% {
    transform: translateY(0) rotate(0deg) scale(1);
  }
}

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

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

@keyframes auroraSpin {
  0%,
  100% {
    transform: rotate(0deg) scale(0.92);
  }

  50% {
    transform: rotate(180deg) scale(1.08);
  }
}

@media (min-width: 720px) {
  .app-shell {
    padding-top: 28px;
    padding-bottom: 28px;
  }

  .h5-stage {
    min-height: 760px;
    border-radius: 28px;
  }

  .scene {
    min-height: 760px;
    padding: 30px;
  }
}

@media (max-width: 360px) {
  .app-shell {
    padding-left: 10px;
    padding-right: 10px;
  }

  .scene {
    padding: 16px;
  }

  .die {
    min-height: 104px;
  }

  .domain-chip {
    padding: 0 10px;
    font-size: 0.88rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
