:root {
  color-scheme: dark;
  --bg: #101413;
  --surface: #19201e;
  --ink: #eee7d9;
  --muted: #93998e;
  --gold: #c8ad7b;
  --gold-bright: #f0dba9;
  --line: #c7aa742a;
  --serif: "Noto Serif SC", "Songti SC", "STSong", "SimSun", serif;
  --sans: "Microsoft YaHei", "PingFang SC", system-ui, sans-serif;
  --safe: env(safe-area-inset-bottom, 0px);
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 14px/1.7 var(--sans);
  -webkit-tap-highlight-color: transparent;
}
button,
input,
textarea,
select {
  font: inherit;
}
button,
a,
input,
textarea,
select {
  touch-action: manipulation;
}
button,
a {
  color: inherit;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.4;
  cursor: default;
}
button {
  border: 0;
  background: none;
}
a {
  text-decoration: none;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 5px;
}
button svg {
  width: 20px;
  height: 20px;
  display: block;
}
svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 400;
}
::selection {
  background: #997d4c;
  color: white;
}
.ambient {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: -1;
  background:
    radial-gradient(ellipse at 64% 38%, #24403a38, transparent 55%),
    radial-gradient(ellipse at 12% 80%, #48422b1c, transparent 45%);
}
.nebula {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(#9dba9b25 0.6px, transparent 0.6px);
  background-size: 5px 5px;
  opacity: 0.22;
}
.dust {
  position: absolute;
  inset: -30%;
  background-image:
    radial-gradient(circle at 15% 24%, #dcc898aa 0 1px, transparent 2px),
    radial-gradient(circle at 39% 65%, #dcc89866 0 1px, transparent 2px),
    radial-gradient(circle at 64% 35%, #dcc89888 0 0.8px, transparent 2px),
    radial-gradient(circle at 86% 76%, #dcc89855 0 1px, transparent 2px);
  background-size: 490px 510px;
  animation: drift 38s linear infinite;
  opacity: 0.3;
}
.dust-two {
  background-size: 700px 630px;
  transform: rotate(33deg);
  animation-duration: 62s;
  opacity: 0.17;
}
@keyframes drift {
  50% {
    translate: 24px -40px;
  }
  100% {
    translate: 0 0;
  }
}
.topbar {
  height: 100px;
  max-width: 1600px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5.5%;
  border-bottom: 1px solid var(--line);
  position: relative;
  z-index: 5;
}
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--gold-bright);
}
.brand > svg {
  width: 38px;
  height: 44px;
  stroke-width: 1;
}
.brand > span {
  font: 22px var(--serif);
  letter-spacing: 3px;
}
.brand small {
  display: block;
  font: 8px/2.4 var(--sans);
  letter-spacing: 3.3px;
  color: var(--gold);
}
.desktop-nav {
  display: flex;
  gap: 34px;
  height: 100%;
  align-items: center;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 12px 0;
  position: relative;
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 1.5px;
}
.nav-item.active {
  color: var(--gold-bright);
}
.desktop-nav .nav-item.active:after {
  content: "";
  position: absolute;
  bottom: -21px;
  left: 25%;
  right: 25%;
  height: 2px;
  background: var(--gold);
}
.desktop-nav .nav-item svg {
  width: 17px;
  height: 17px;
}
.header-actions {
  display: flex;
  gap: 14px;
}
.icon-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: var(--gold);
  transition:
    background 0.2s,
    color 0.2s;
}
.icon-button:hover {
  background: #c9ac7820;
  color: var(--gold-bright);
}
.bottom-nav {
  display: none;
}
.eyebrow {
  font-size: 9px;
  letter-spacing: 3.6px;
  color: var(--gold);
  font-weight: 500;
  display: block;
}
.rule-star {
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--gold);
  font: 15px var(--serif);
}
.rule-star:before,
.rule-star:after {
  content: "";
  width: 60px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line));
}
.rule-star:after {
  transform: rotate(180deg);
}
.serif {
  font-family: var(--serif);
}
.primary-button,
.secondary-button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  min-height: 49px;
  padding: 12px 28px;
  border-radius: 3px;
  letter-spacing: 2px;
  font-size: 13px;
  transition:
    filter 0.2s,
    transform 0.2s;
}
.primary-button {
  background: linear-gradient(115deg, #e0c697, #bea16d);
  color: #20251e;
  box-shadow: 0 6px 26px #c7aa7014;
}
.primary-button:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}
.secondary-button {
  border: 1px solid var(--line);
  color: var(--gold);
}
.secondary-button:hover {
  background: #c8ad7b0a;
}
.text-button {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--gold);
  padding: 8px 0;
  font-size: 12px;
  letter-spacing: 1px;
}
.text-button svg {
  width: 15px;
  height: 15px;
}
.muted {
  color: var(--muted);
}
.room {
  max-width: 1500px;
  margin: 0 auto;
  padding: 54px 5.9% 30px;
  min-height: calc(100dvh - 100px);
  position: relative;
}
.room-intro {
  position: absolute;
  left: 6%;
  top: 88px;
  width: 255px;
  z-index: 2;
}
.room-intro h1 {
  font-size: 43px;
  line-height: 1.6;
  letter-spacing: 5px;
  margin: 18px 0 22px;
}
.room-intro p {
  font-size: 12px;
  color: var(--muted);
  line-height: 2.2;
  letter-spacing: 1px;
}
.room-intro .primary-button {
  margin-top: 38px;
}
.room-intro .little-note {
  font-size: 10px;
  color: #858c7e;
  margin-top: 17px;
  letter-spacing: 1px;
}
.room-side {
  position: absolute;
  right: 6%;
  top: 125px;
  width: 184px;
  z-index: 2;
}
.section-mark {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--muted);
}
.section-mark:before {
  content: "";
  height: 1px;
  width: 24px;
  background: var(--gold);
}
.patron-mini {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 22px 0 12px;
}
.patron-mini img {
  width: 44px;
  height: 66px;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 3px;
}
.patron-mini strong {
  display: block;
  font: 19px var(--serif);
  letter-spacing: 3px;
}
.patron-mini span {
  font-size: 9px;
  color: var(--gold);
  letter-spacing: 1px;
}
.room-side > p {
  font-size: 11px;
  color: var(--muted);
  line-height: 2;
}
.side-orbit {
  height: 125px;
  width: 125px;
  margin: 40px auto 0;
  opacity: 0.35;
  position: relative;
  border: 1px solid var(--gold);
  border-radius: 50%;
  transform: rotate(-20deg);
}
.side-orbit:before {
  content: "";
  position: absolute;
  inset: 15px -12px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  transform: rotate(60deg);
}
.side-orbit:after {
  content: "✧";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font: 50px var(--serif);
  color: var(--gold);
}
.card-theater {
  position: relative;
  max-width: 750px;
  margin: 0 auto;
  text-align: center;
  isolation: isolate;
}
.theater-caption {
  font-size: 9px;
  letter-spacing: 4px;
  color: #999f90;
  margin-bottom: 20px;
}
.coverflow {
  height: 440px;
  position: relative;
  perspective: 1200px;
  touch-action: pan-y;
  user-select: none;
  outline: none;
}
.stage-aura {
  position: absolute;
  inset: 6% 15% 0;
  background: radial-gradient(
    ellipse,
    var(--aura, #9a885c) 0%,
    transparent 66%
  );
  filter: blur(42px);
  opacity: 0.14;
  pointer-events: none;
  transition: background 1s;
}
.stage-ring {
  position: absolute;
  left: 50%;
  top: 47%;
  width: 410px;
  height: 410px;
  border: 1px solid #c5aa6d1c;
  border-radius: 50%;
  translate: -50% -50%;
  z-index: -1;
  pointer-events: none;
}
.stage-ring:before {
  content: "";
  position: absolute;
  inset: -24px;
  border: 1px dashed #c5aa6d12;
  border-radius: 50%;
  animation: orbit 160s linear infinite;
}
.stage-ring:after {
  content: "✦";
  position: absolute;
  top: 5%;
  left: 22%;
  color: #d2b88455;
  font-size: 12px;
}
@keyframes orbit {
  to {
    rotate: 360deg;
  }
}
.flow-card {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 238px;
  height: 368px;
  margin: -184px 0 0 -119px;
  transform-style: preserve-3d;
  will-change: transform;
  transition:
    transform 0.55s cubic-bezier(0.21, 0.75, 0.24, 1),
    opacity 0.45s,
    filter 0.5s;
  cursor: pointer;
  outline: none;
}
.flow-card.is-center {
  width: 258px;
  height: 396px;
  margin: -198px 0 0 -129px;
}
.card-shell {
  width: 100%;
  height: 100%;
  position: relative;
  border-radius: 10px;
  transform-style: preserve-3d;
  box-shadow: 0 20px 48px #0009;
  transition: transform 0.22s ease-out;
}
.card-front,
.card-back {
  position: absolute;
  inset: 0;
  overflow: hidden;
  backface-visibility: hidden;
  border-radius: 10px;
  border: 1px solid #d5bc8077;
  background: #182322;
  transform: translateZ(0.2px);
}
.card-front {
  padding: 7px;
}
.card-front:before {
  content: "";
  position: absolute;
  inset: 3px;
  border: 1px solid #d1b47755;
  border-radius: 7px;
  pointer-events: none;
  z-index: 5;
}
.card-art {
  position: absolute;
  inset: 7px;
  border-radius: 5px;
  overflow: hidden;
  background: #1a2524;
}
.card-art > img {
  position: absolute;
  width: 100%;
  height: 100%;
  inset: 0;
  object-fit: cover;
  pointer-events: none;
}
.card-art:after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    125deg,
    transparent 20%,
    #eac2fa08 33%,
    #fbe0a61d 40%,
    transparent 50%,
    #9bf3fe0b 70%,
    transparent
  );
  background-size: 300% 300%;
  mix-blend-mode: screen;
  animation: foil-pass 9s ease-in-out infinite;
  pointer-events: none;
}
.card-front:after {
  content: "";
  position: absolute;
  inset: 7px;
  background: linear-gradient(
    180deg,
    #080e0e33,
    transparent 20%,
    transparent 66%,
    #080e0ee6 100%
  );
  pointer-events: none;
  z-index: 2;
}
.card-top {
  position: absolute;
  top: 18px;
  left: 0;
  right: 0;
  text-align: center;
  z-index: 4;
  color: #f5dfac;
  font: 11px var(--serif);
  letter-spacing: 3px;
  text-shadow: 0 1px 4px #000;
}
.card-title {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 17px;
  text-align: center;
  z-index: 4;
  text-shadow: 0 2px 5px #000;
}
.card-title strong {
  display: block;
  font: 21px/1.7 var(--serif);
  letter-spacing: 5px;
  color: #f3e4c6;
}
.card-title small {
  font: 7px/1.5 var(--sans);
  letter-spacing: 2.4px;
  color: #dcc394;
}
.foil-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: none;
}
.foil-canvas.ready {
  opacity: 1;
  transition: opacity 0.35s;
}
.card-back {
  transform: rotateY(180deg);
  background:
    radial-gradient(ellipse, #304c4733, #101b19 70%),
    repeating-linear-gradient(45deg, transparent 0 10px, #baa06e07 10px 11px);
  display: grid;
  place-items: center;
}
.back-frame {
  position: absolute;
  inset: 12px;
  border: 1px solid #c6a87577;
  border-radius: 5px;
}
.back-frame:after {
  content: "";
  position: absolute;
  inset: 5px;
  border: 1px solid #c6a87533;
}
.back-sigil {
  position: relative;
  width: 70%;
  height: 65%;
  display: grid;
  place-items: center;
}
.back-sigil svg {
  width: 100%;
  height: 100%;
  color: #c8ad7b;
  stroke-width: 0.6;
}
.back-caption {
  position: absolute;
  bottom: 27px;
  color: var(--gold);
  font: 8px var(--sans);
  letter-spacing: 4px;
}
.card-shell.flipped {
  transform: rotateY(180deg) !important;
}
.card-glimmer {
  position: absolute;
  inset: -1px;
  border-radius: 10px;
  pointer-events: none;
  z-index: 6;
  background: linear-gradient(
    120deg,
    transparent 40%,
    #fff1c173 50%,
    transparent 60%
  );
  background-size: 400% 400%;
  animation: foil-pass 9s ease-in-out infinite;
  mix-blend-mode: screen;
  opacity: 0.25;
}
.card-glimmer:after {
  content: "✧";
  position: absolute;
  right: -6px;
  top: 15%;
  color: #fae6aa;
  font-size: 23px;
  animation: twinkle 4s infinite;
  filter: drop-shadow(0 0 5px #e8cf86);
}
@keyframes foil-pass {
  0%,
  100% {
    background-position: 0% 0%;
  }
  50% {
    background-position: 100% 100%;
  }
}
@keyframes twinkle {
  0%,
  100% {
    opacity: 0.25;
    scale: 0.5;
  }
  50% {
    opacity: 1;
    scale: 1.1;
  }
}
.flow-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin: 7px 0 0;
}
.flow-controls > button {
  width: 30px;
  height: 30px;
  color: var(--gold);
  font-size: 17px;
}
.flow-counter {
  font-size: 9px;
  letter-spacing: 2px;
  color: var(--muted);
  min-width: 58px;
}
.flow-counter strong {
  color: var(--gold-bright);
  font-weight: 400;
}
.card-meta {
  text-align: center;
  margin-top: 13px;
  min-height: 90px;
}
.card-meta .effect-name {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  color: var(--gold);
  font-size: 10px;
  letter-spacing: 2px;
}
.card-meta h2 {
  font-size: 24px;
  letter-spacing: 4px;
  margin: 8px 0;
}
.card-meta p {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 2px;
}
.room-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--line);
  margin-top: 30px;
  padding-top: 20px;
  font-size: 9px;
  color: #838d80;
  letter-spacing: 1.5px;
}
.room-footer .text-button {
  font-size: 10px;
}
.mobile-room-cta {
  display: none;
}
.subtle-hint {
  font-size: 9px;
  color: #838b7e;
  letter-spacing: 1px;
  margin-top: 16px;
}
.page {
  max-width: 1240px;
  padding: 55px 6% 60px;
  margin: auto;
  animation: page-in 0.35s ease both;
}
@keyframes page-in {
  from {
    opacity: 0;
    translate: 0 8px;
  }
  to {
    opacity: 1;
    translate: 0 0;
  }
}
.page-heading {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-end;
  margin-bottom: 30px;
}
.page-heading h1 {
  font-size: 32px;
  letter-spacing: 5px;
  margin-top: 10px;
}
.page-heading p {
  font-size: 11px;
  color: var(--muted);
  margin-top: 12px;
  letter-spacing: 1px;
}
.page-heading .text-button {
  flex-shrink: 0;
}
.filters {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin: 25px 0;
}
.chip {
  padding: 7px 15px;
  font-size: 11px;
  border: 1px solid transparent;
  border-radius: 2px;
  color: var(--muted);
  white-space: nowrap;
}
.chip.active {
  border-color: #c7aa7455;
  background: #c7aa7410;
  color: var(--gold-bright);
}
.chip small {
  font-size: 9px;
  margin-left: 5px;
  opacity: 0.5;
}
.search-box {
  position: relative;
  max-width: 250px;
}
.search-box input {
  width: 100%;
  padding: 10px 14px 10px 38px;
  background: #ffffff03;
  border: 1px solid var(--line);
  border-radius: 3px;
  color: var(--ink);
  font-size: 11px;
}
.search-box svg {
  position: absolute;
  left: 13px;
  top: 12px;
  width: 15px;
  height: 15px;
  color: var(--muted);
}
.card-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 30px 22px;
}
.gallery-item {
  padding: 0;
  text-align: left;
  min-width: 0;
}
.gallery-art {
  aspect-ratio: 2/3;
  position: relative;
  border: 1px solid #c6a86f50;
  border-radius: 7px;
  overflow: hidden;
  background: #1b2522;
  transition:
    transform 0.3s,
    box-shadow 0.3s;
}
.gallery-art:after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    125deg,
    transparent 20%,
    #ead3a729 35%,
    transparent 48%,
    #d7c6ee0a 60%,
    transparent
  );
  background-size: 250% 250%;
  animation: foil-pass 12s ease-in-out infinite;
  animation-delay: var(--delay, 0s);
  mix-blend-mode: screen;
}
.gallery-item:hover .gallery-art {
  transform: translateY(-6px) rotate(1deg);
  box-shadow:
    0 10px 30px #0007,
    0 0 24px var(--glow, #d7b87822);
}
.gallery-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.gallery-name {
  font: 15px var(--serif);
  letter-spacing: 2px;
  margin-top: 11px;
  display: flex;
  justify-content: space-between;
}
.gallery-name span {
  color: var(--gold);
  font-family: var(--sans);
  font-size: 13px;
}
.gallery-item > small {
  font-size: 8px;
  color: var(--muted);
  letter-spacing: 1px;
}
.empty-state {
  text-align: center;
  padding: 85px 20px;
  color: var(--muted);
  grid-column: 1/-1;
}
.empty-state > svg {
  width: 36px;
  height: 36px;
  margin: auto auto 18px;
  color: var(--gold);
  opacity: 0.5;
}
.empty-state h2 {
  color: var(--ink);
  font-size: 23px;
  letter-spacing: 3px;
  margin-bottom: 12px;
}
.empty-state p {
  font-size: 12px;
  margin-bottom: 22px;
}
.reading-page {
  max-width: 920px;
  text-align: center;
}
.reading-page .eyebrow {
  margin-top: 2px;
}
.reading-page > h1 {
  font-size: 35px;
  letter-spacing: 6px;
  margin: 13px 0;
}
.reading-lead {
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 1px;
}
.question-form {
  max-width: 570px;
  margin: 28px auto 0;
  text-align: left;
}
.topic-row {
  display: flex;
  justify-content: center;
  gap: 7px;
  margin: 23px 0;
}
.question-field {
  position: relative;
}
.question-field textarea {
  display: block;
  width: 100%;
  height: 98px;
  resize: vertical;
  min-height: 85px;
  max-height: 220px;
  background: #c3b68a06;
  border: 1px solid #c3b68a38;
  border-radius: 5px;
  color: var(--ink);
  padding: 18px 20px;
  font: 14px/1.9 var(--serif);
  letter-spacing: 1px;
}
.question-field textarea::placeholder {
  color: #848c7b;
}
.char-count {
  position: absolute;
  right: 12px;
  bottom: 8px;
  font-size: 9px;
  color: #737d70;
}
.spread-choices {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 22px 0;
}
.spread-choice {
  display: flex;
  align-items: center;
  gap: 19px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 5px;
  text-align: left;
  transition: background 0.2s;
}
.spread-choice.active {
  border-color: #c9b17b88;
  background: #c9b17b0b;
}
.spread-symbol {
  display: flex;
  gap: 3px;
  min-width: 42px;
  justify-content: center;
}
.spread-symbol i {
  display: block;
  width: 17px;
  height: 27px;
  border: 1px solid var(--gold);
  border-radius: 2px;
  background: linear-gradient(150deg, #c9ae7722, transparent);
  transform: rotate(-6deg);
}
.spread-symbol i:nth-child(2) {
  transform: rotate(0deg);
}
.spread-symbol i:nth-child(3) {
  transform: rotate(6deg);
}
.spread-choice strong {
  font: 17px var(--serif);
  letter-spacing: 2px;
  display: block;
}
.spread-choice small {
  font-size: 10px;
  color: var(--muted);
}
.question-form > .primary-button {
  width: 100%;
  margin-top: 4px;
}
.reading-disclaimer {
  font-size: 10px;
  color: #788373;
  letter-spacing: 0.5px;
  margin-top: 20px;
  text-align: center;
}
.reading-decoration {
  display: flex;
  justify-content: center;
  margin-top: 28px;
  color: var(--gold);
  opacity: 0.5;
}
.reading-decoration svg {
  width: 70px;
  height: 70px;
  stroke-width: 0.65;
}
.ritual-page {
  min-height: calc(100dvh - 100px);
  text-align: center;
  padding: 40px 20px;
}
.ritual-page h1 {
  font-size: 30px;
  letter-spacing: 5px;
  margin: 12px 0;
}
.ritual-page .reading-lead {
  min-height: 22px;
}
.ritual-progress {
  display: flex;
  gap: 14px;
  justify-content: center;
  margin-top: 23px;
}
.ritual-progress i {
  height: 5px;
  width: 5px;
  border: 1px solid var(--gold);
  rotate: 45deg;
}
.ritual-progress i.done {
  background: var(--gold);
  box-shadow: 0 0 10px #e9c484;
}
.draw-deck {
  height: 340px;
  max-width: 600px;
  margin: 30px auto 16px;
  position: relative;
  perspective: 1300px;
  touch-action: pan-y;
}
.draw-card {
  position: absolute;
  width: 156px;
  height: 240px;
  left: 50%;
  top: 36px;
  margin-left: -78px;
  transform-origin: 50% 120%;
  transition:
    transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1),
    opacity 0.4s;
  transform: translateX(calc(var(--d) * 35px)) rotate(calc(var(--d) * 7deg));
  padding: 0;
  transform-style: preserve-3d;
}
.draw-card .card-shell {
  box-shadow:
    0 10px 30px #0007,
    1px 0 0 #b69865;
}
.draw-card .card-back {
  transform: none;
}
.draw-card:hover {
  transform: translateX(calc(var(--d) * 35px)) translateY(-25px)
    rotate(calc(var(--d) * 7deg));
}
.draw-card.picked {
  transform: translateY(-60px) scale(1.12) !important;
  z-index: 20;
  opacity: 0;
  pointer-events: none;
}
.draw-card .back-caption {
  font-size: 6px;
  letter-spacing: 2px;
  bottom: 20px;
}
.draw-card .back-frame {
  inset: 9px;
}
.ritual-page .text-button {
  margin-top: 12px;
}
.ritual-shuffling .draw-card {
  animation: shuffle 0.7s ease-in-out 2;
  animation-delay: calc(var(--i) * 25ms);
}
@keyframes shuffle {
  50% {
    translate: calc(var(--d) * 11px) -16px;
    rotate: calc(var(--d) * -3deg);
  }
}
.results-page {
  max-width: 1080px;
  text-align: center;
}
.results-page > h1 {
  font-size: 30px;
  letter-spacing: 4px;
  margin: 12px 0;
}
.result-question {
  font: 16px/1.9 var(--serif);
  color: #c9cdbf;
  margin: 17px auto 25px;
  max-width: 620px;
  overflow-wrap: anywhere;
}
.result-cards {
  display: flex;
  justify-content: center;
  gap: 25px;
  margin: 30px auto;
}
.result-card {
  width: 190px;
  text-align: center;
  cursor: pointer;
}
.result-card .card-shell {
  height: 290px;
  transition: transform 0.8s cubic-bezier(0.22, 0.7, 0.22, 1);
  transform: rotateY(180deg);
  animation: reveal 0.95s cubic-bezier(0.22, 0.7, 0.22, 1) forwards;
  animation-delay: var(--reveal-delay);
}
@keyframes reveal {
  to {
    transform: rotateY(0);
  }
}
.result-position {
  font-size: 10px;
  letter-spacing: 3px;
  color: var(--gold);
  margin-bottom: 13px;
}
.result-orientation {
  font-size: 9px;
  color: var(--muted);
  margin-top: 12px;
}
.result-texts {
  display: grid;
  grid-template-columns: repeat(var(--count), 1fr);
  gap: 28px;
  text-align: left;
  margin: 30px auto;
  max-width: 900px;
}
.interpretation {
  border-top: 1px solid var(--line);
  padding-top: 20px;
}
.interpretation h2 {
  font-size: 20px;
  letter-spacing: 3px;
}
.interpretation .keywords {
  font-size: 10px;
  color: var(--gold);
  letter-spacing: 2px;
  margin: 8px 0 12px;
}
.interpretation .message {
  font: 19px/1.8 var(--serif);
  letter-spacing: 1px;
  margin: 14px 0;
}
.action-note {
  font-size: 12px;
  line-height: 2;
  color: #a6ad9f;
  padding: 14px 0 0;
}
.action-note > span {
  display: block;
  font-size: 9px;
  letter-spacing: 2px;
  color: var(--gold);
  margin-bottom: 7px;
}
.reversed-note {
  font-size: 10px;
  color: var(--muted);
  margin-top: 10px;
}
.journal-note {
  max-width: 580px;
  margin: 30px auto;
  text-align: left;
}
.journal-note label {
  display: block;
  color: var(--gold);
  font-size: 11px;
  letter-spacing: 2px;
  margin-bottom: 12px;
}
.journal-note textarea {
  width: 100%;
  height: 80px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #bca57805;
  color: var(--ink);
  resize: vertical;
  padding: 13px;
  font-size: 12px;
  line-height: 1.8;
}
.result-actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}
.result-saved {
  font-size: 10px;
  color: var(--muted);
  margin-top: 19px;
}
.history-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.history-item {
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #b0c3ab03;
  padding: 23px;
  cursor: pointer;
  text-align: left;
  display: flex;
  gap: 20px;
}
.history-item:hover {
  background: #b0c3ab07;
}
.history-thumbs {
  display: flex;
  gap: 4px;
  align-items: center;
  flex-shrink: 0;
  max-width: 100px;
}
.history-thumbs img {
  width: 48px;
  height: 75px;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 3px;
}
.history-thumbs img + img {
  margin-left: -34px;
  transform: rotate(5deg);
}
.history-summary {
  min-width: 0;
}
.history-summary time {
  font-size: 9px;
  color: var(--gold);
  letter-spacing: 1px;
}
.history-summary h3 {
  font: 16px/1.7 var(--serif);
  margin: 8px 0;
  overflow-wrap: anywhere;
}
.history-summary p {
  font-size: 10px;
  color: var(--muted);
}
.history-note-mark {
  font-size: 9px;
  color: var(--gold);
  margin-top: 8px;
}
.page-tools {
  display: flex;
  gap: 18px;
  align-items: center;
}
dialog {
  color: var(--ink);
  border: 1px solid #c3a87544;
  background: #141c19;
  box-shadow: 0 25px 100px #0009;
}
dialog::backdrop {
  background: #050909bd;
  backdrop-filter: blur(12px);
}
.sheet-dialog {
  width: min(500px, calc(100% - 32px));
  max-height: 85dvh;
  padding: 30px;
  border-radius: 10px;
}
.sheet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 25px;
}
.sheet-head h2 {
  font-size: 25px;
  letter-spacing: 3px;
  margin-top: 7px;
}
.setting-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
}
.setting-row strong {
  font-size: 13px;
  font-weight: 400;
  display: block;
}
.setting-row small {
  display: block;
  font-size: 10px;
  color: var(--muted);
  margin-top: 4px;
}
.setting-row select {
  background: #202b25;
  border: 1px solid var(--line);
  padding: 8px 9px;
  border-radius: 3px;
  color: var(--gold);
  font-size: 11px;
  max-width: 150px;
}
.deck-setting {
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
}
.deck-setting select {
  width: 100%;
  max-width: none;
}
.toggle {
  width: 36px;
  height: 21px;
  appearance: none;
  background: #3c473b;
  border-radius: 20px;
  position: relative;
  cursor: pointer;
  flex-shrink: 0;
}
.toggle:after {
  content: "";
  position: absolute;
  left: 3px;
  top: 3px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: #a4ac9b;
  transition: translate 0.2s;
}
.toggle:checked {
  background: #b59a62;
}
.toggle:checked:after {
  translate: 15px 0;
  background: #f5e6bd;
}
.settings-foot {
  font-size: 10px;
  color: var(--muted);
  line-height: 2;
  border-top: 1px solid var(--line);
  padding-top: 17px;
}
.settings-foot a {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.viewer-dialog {
  width: 100vw;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: radial-gradient(ellipse at 35% 40%, #27372d, #101714 70%);
  overflow-y: auto;
}
.viewer-close {
  position: fixed;
  right: 30px;
  top: 25px;
  z-index: 10;
  background: #11191388;
  border: 1px solid var(--line);
}
.viewer-layout {
  min-height: 100dvh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 70px;
  max-width: 1020px;
  padding: 70px 45px;
  margin: auto;
}
.viewer-stage {
  position: relative;
  perspective: 1400px;
  display: flex;
  flex-direction: column;
  align-items: center;
  touch-action: pan-y;
}
.viewer-stage .card-shell {
  width: 310px;
  height: 476px;
  will-change: transform;
}
.viewer-stage .card-title strong {
  font-size: 25px;
}
.viewer-stage .card-title {
  bottom: 24px;
}
.viewer-stage .card-title small {
  font-size: 8px;
}
.viewer-stage .card-top {
  top: 24px;
}
.viewer-actions {
  display: flex;
  gap: 30px;
  justify-content: center;
  margin-top: 30px;
}
.viewer-actions .text-button.active {
  color: #ead3a8;
}
.viewer-details .eyebrow {
  color: var(--card-color, var(--gold));
}
.viewer-details h1 {
  font-size: 38px;
  letter-spacing: 7px;
  margin: 18px 0 6px;
}
.viewer-english {
  font-size: 10px;
  letter-spacing: 3px;
  color: var(--muted);
}
.viewer-details .keywords {
  color: var(--gold);
  font-size: 11px;
  letter-spacing: 3px;
  margin: 25px 0;
}
.viewer-details .message {
  font: 24px/1.9 var(--serif);
  letter-spacing: 2px;
  margin: 20px 0;
}
.viewer-details .action-note {
  border-top: 1px solid var(--line);
  padding-top: 20px;
}
.viewer-details .effect-label {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--gold);
  margin-top: 30px;
}
.viewer-details .secondary-button {
  margin-top: 30px;
}
.viewer-details .art-credit {
  font-size: 9px;
  color: #788576;
  margin-top: 20px;
}
.viewer-navigation {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-top: 20px;
}
.viewer-navigation button {
  font-size: 11px;
  color: var(--gold);
  padding: 8px;
}
.toast {
  position: fixed;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  max-width: calc(100vw - 32px);
  background: #dae0cc;
  color: #243026;
  border: 1px solid #e9eccf;
  border-radius: 4px;
  padding: 11px 22px;
  font-size: 12px;
  letter-spacing: 0.5px;
  box-shadow: 0 8px 40px #0007;
  opacity: 0;
  pointer-events: none;
  z-index: 100;
  transition:
    opacity 0.2s,
    transform 0.2s;
}
.toast.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
@media (min-width: 1500px) {
  .room {
    padding-top: 75px;
  }
  .room-intro {
    top: 120px;
  }
  .room-side {
    top: 160px;
  }
  .coverflow {
    height: 480px;
  }
  .flow-card.is-center {
    width: 280px;
    height: 430px;
    margin: -215px 0 0 -140px;
  }
  .room-footer {
    margin-top: 45px;
  }
}
@media (max-width: 1150px) {
  .room-intro {
    width: 200px;
    left: 4%;
  }
  .room-intro h1 {
    font-size: 35px;
  }
  .room-side {
    right: 4%;
    width: 150px;
  }
  .card-theater {
    max-width: 600px;
  }
  .flow-card {
    width: 208px;
    height: 323px;
    margin: -161px 0 0 -104px;
  }
  .flow-card.is-center {
    width: 238px;
    height: 368px;
    margin: -184px 0 0 -119px;
  }
  .room {
    padding: 50px 4% 25px;
  }
  .card-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 24px 18px;
  }
  .room-intro p {
    font-size: 11px;
  }
  .room-side > p {
    font-size: 10px;
  }
}
@media (max-width: 900px) {
  .room-intro {
    position: static;
    width: auto;
    text-align: center;
    margin-bottom: 20px;
  }
  .room-intro h1 {
    font-size: 28px;
    line-height: 1.7;
    letter-spacing: 5px;
    margin: 10px 0;
  }
  .room-intro h1 br {
    display: none;
  }
  .room-intro p,
  .room-intro .primary-button,
  .room-intro .little-note {
    display: none;
  }
  .room-intro .eyebrow {
    font-size: 8px;
  }
  .room-side {
    display: none;
  }
  .room {
    padding-top: 30px;
  }
  .theater-caption {
    display: none;
  }
  .coverflow {
    height: 410px;
  }
  .mobile-room-cta {
    display: block;
    text-align: center;
    margin-top: 20px;
  }
  .room-footer {
    margin-top: 30px;
  }
  .card-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .viewer-layout {
    gap: 40px;
    padding: 75px 35px;
  }
  .viewer-stage .card-shell {
    width: 280px;
    height: 430px;
  }
  .viewer-details h1 {
    font-size: 30px;
  }
  .viewer-details .message {
    font-size: 21px;
  }
  .history-list {
    grid-template-columns: 1fr;
  }
  .topbar {
    padding: 0 5%;
    height: 85px;
  }
  .desktop-nav {
    gap: 22px;
  }
  .desktop-nav .nav-item.active:after {
    bottom: -14px;
  }
}
@media (max-width: 600px) {
  :root {
    font-size: 14px;
  }
  .topbar {
    height: 77px;
    padding: 0 23px;
    border-bottom-color: #c7aa7419;
  }
  .brand {
    gap: 10px;
  }
  .brand > svg {
    width: 31px;
    height: 36px;
  }
  .brand > span {
    font-size: 19px;
    letter-spacing: 2px;
  }
  .brand small {
    font-size: 6px;
    letter-spacing: 2.4px;
  }
  .header-actions {
    gap: 7px;
  }
  .header-actions .icon-button {
    width: 34px;
    height: 34px;
  }
  .header-actions svg {
    width: 18px;
    height: 18px;
  }
  .desktop-nav {
    display: none;
  }
  .bottom-nav {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    justify-content: space-around;
    height: calc(66px + var(--safe));
    padding: 7px 15px calc(7px + var(--safe));
    background: #101815ee;
    backdrop-filter: blur(16px);
    border-top: 1px solid var(--line);
    z-index: 15;
  }
  .bottom-nav .nav-item {
    font-size: 9px;
    letter-spacing: 1px;
    flex-direction: column;
    gap: 3px;
    padding: 2px 15px;
    min-width: 64px;
    justify-content: center;
  }
  .bottom-nav .nav-item svg {
    width: 20px;
    height: 20px;
    stroke-width: 1.2;
  }
  .bottom-nav .nav-item.active:before {
    content: "";
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--gold);
    border-radius: 50%;
    top: -9px;
  }
  .room {
    min-height: calc(100dvh - 77px);
    padding: 22px 0 98px;
    overflow: hidden;
  }
  .room-intro {
    margin-bottom: 5px;
  }
  .room-intro .eyebrow {
    font-size: 7px;
    letter-spacing: 3px;
  }
  .room-intro h1 {
    font-size: 23px;
    letter-spacing: 3px;
    margin: 11px 0 9px;
  }
  .coverflow {
    height: 366px;
  }
  .flow-card {
    width: 204px;
    height: 314px;
    margin: -157px 0 0 -102px;
  }
  .flow-card.is-center {
    width: 224px;
    height: 345px;
    margin: -172px 0 0 -112px;
  }
  .stage-ring {
    width: 325px;
    height: 325px;
  }
  .stage-aura {
    inset: 5% 3%;
  }
  .flow-controls {
    margin: 0;
    gap: 24px;
  }
  .flow-controls > button {
    height: 24px;
  }
  .card-meta {
    margin-top: 8px;
    min-height: 70px;
  }
  .card-meta h2 {
    font-size: 22px;
    margin: 5px 0;
    letter-spacing: 4px;
  }
  .card-meta .effect-name {
    font-size: 8px;
    letter-spacing: 2px;
  }
  .card-meta p {
    font-size: 10px;
    letter-spacing: 2px;
  }
  .subtle-hint {
    font-size: 8px;
    margin-top: 9px;
  }
  .mobile-room-cta {
    margin-top: 19px;
  }
  .mobile-room-cta .primary-button {
    width: 225px;
    min-height: 46px;
    font-size: 12px;
  }
  .room-footer {
    margin: 25px 25px 0;
    padding-top: 17px;
    font-size: 8px;
    letter-spacing: 0.5px;
  }
  .room-footer .text-button {
    font-size: 9px;
  }
  .page {
    padding: 30px 23px 105px;
  }
  .page-heading {
    margin-bottom: 24px;
  }
  .page-heading h1 {
    font-size: 28px;
    letter-spacing: 4px;
  }
  .page-heading p {
    font-size: 10px;
    margin-top: 9px;
  }
  .eyebrow {
    font-size: 8px;
    letter-spacing: 3px;
  }
  .page-heading .text-button {
    font-size: 10px;
  }
  .page-tools {
    gap: 12px;
  }
  .filters {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    margin: 20px -23px;
    padding: 0 23px;
    gap: 2px;
  }
  .chip {
    font-size: 10px;
    padding: 7px 12px;
  }
  .chip small {
    font-size: 8px;
  }
  .card-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px 12px;
  }
  .gallery-name {
    font-size: 12px;
    letter-spacing: 1px;
    margin-top: 8px;
  }
  .gallery-item > small {
    font-size: 7px;
    letter-spacing: 0;
  }
  .gallery-art {
    border-radius: 5px;
  }
  .search-box {
    max-width: none;
  }
  .reading-page > h1 {
    font-size: 29px;
    letter-spacing: 4px;
    margin: 15px 0;
  }
  .reading-lead {
    font-size: 11px;
  }
  .question-form {
    margin-top: 22px;
  }
  .topic-row {
    gap: 1px;
  }
  .topic-row .chip {
    padding: 7px 11px;
  }
  .question-field textarea {
    font-size: 13px;
    height: 110px;
  }
  .spread-choices {
    gap: 10px;
    margin: 18px 0;
  }
  .spread-choice {
    padding: 14px 10px;
    gap: 10px;
  }
  .spread-choice strong {
    font-size: 15px;
    letter-spacing: 1px;
  }
  .spread-choice small {
    font-size: 9px;
  }
  .spread-symbol {
    min-width: 36px;
    gap: 2px;
  }
  .spread-symbol i {
    width: 13px;
    height: 22px;
  }
  .reading-disclaimer {
    font-size: 9px;
    line-height: 1.9;
  }
  .reading-decoration {
    margin-top: 26px;
  }
  .reading-decoration svg {
    width: 55px;
    height: 55px;
  }
  .ritual-page {
    padding: 35px 20px 100px;
    min-height: calc(100dvh - 77px);
    overflow: hidden;
  }
  .ritual-page h1 {
    font-size: 26px;
  }
  .draw-deck {
    height: 330px;
    margin-top: 28px;
  }
  .draw-card {
    width: 137px;
    height: 210px;
    margin-left: -68px;
    top: 45px;
    transform: translateX(calc(var(--d) * 25px)) rotate(calc(var(--d) * 8deg));
  }
  .draw-card:hover {
    transform: translateX(calc(var(--d) * 25px)) translateY(-18px)
      rotate(calc(var(--d) * 8deg));
  }
  .draw-card .back-caption {
    font-size: 5px;
  }
  .results-page > h1 {
    font-size: 26px;
    letter-spacing: 3px;
  }
  .result-question {
    font-size: 14px;
    margin: 15px 0 20px;
  }
  .result-cards {
    gap: 10px;
    margin: 26px -7px 20px;
  }
  .result-card {
    width: calc((100vw - 46px) / 3);
    max-width: 150px;
  }
  .result-card .card-shell {
    height: auto;
    aspect-ratio: 2/3;
  }
  .result-card:only-child {
    width: 220px;
    max-width: none;
  }
  .result-card:only-child .card-shell {
    height: 335px;
  }
  .result-card:not(:only-child) .card-title strong {
    font-size: 12px;
    letter-spacing: 1px;
  }
  .result-card:not(:only-child) .card-title small {
    font-size: 4px;
    letter-spacing: 0.7px;
  }
  .result-card:not(:only-child) .card-title {
    bottom: 10px;
    left: 5px;
    right: 5px;
  }
  .result-card:not(:only-child) .card-top {
    top: 12px;
    font-size: 8px;
    letter-spacing: 1px;
  }
  .result-card:not(:only-child) .card-front {
    padding: 4px;
  }
  .result-card:not(:only-child) .card-art {
    inset: 4px;
  }
  .result-card:not(:only-child) .card-front:after {
    inset: 4px;
  }
  .result-position {
    font-size: 9px;
    letter-spacing: 2px;
    margin-bottom: 10px;
  }
  .result-orientation {
    font-size: 8px;
    margin-top: 9px;
  }
  .result-texts {
    display: block;
    margin: 24px 0;
  }
  .interpretation {
    margin-top: 24px;
    padding-top: 18px;
  }
  .interpretation h2 {
    font-size: 20px;
  }
  .interpretation .message {
    font-size: 20px;
  }
  .action-note {
    font-size: 12px;
  }
  .journal-note {
    margin: 27px 0;
  }
  .result-actions {
    gap: 10px;
  }
  .result-actions .secondary-button,
  .result-actions .primary-button {
    font-size: 11px;
    padding: 10px 19px;
    min-height: 45px;
  }
  .result-saved {
    font-size: 9px;
    line-height: 1.9;
  }
  .history-item {
    padding: 18px;
    gap: 18px;
  }
  .history-summary h3 {
    font-size: 15px;
  }
  .history-thumbs img {
    width: 43px;
    height: 66px;
  }
  .history-thumbs img + img {
    margin-left: -31px;
  }
  .history-summary p {
    font-size: 9px;
  }
  .sheet-dialog {
    padding: 23px;
    max-height: 85dvh;
  }
  .setting-row {
    gap: 15px;
  }
  .setting-row strong {
    font-size: 12px;
  }
  .setting-row small {
    font-size: 9px;
  }
  .viewer-close {
    right: 18px;
    top: 15px;
    width: 36px;
    height: 36px;
  }
  .viewer-layout {
    display: flex;
    flex-direction: column;
    gap: 32px;
    padding: 65px 27px 40px;
    min-height: 100dvh;
  }
  .viewer-stage {
    width: 100%;
  }
  .viewer-stage .card-shell {
    width: 263px;
    height: 402px;
  }
  .viewer-stage .card-title strong {
    font-size: 24px;
  }
  .viewer-actions {
    gap: 29px;
    margin-top: 25px;
  }
  .viewer-actions .text-button {
    font-size: 11px;
  }
  .viewer-navigation {
    margin-top: 5px;
    gap: 30px;
  }
  .viewer-details {
    width: 100%;
    max-width: 390px;
  }
  .viewer-details h1 {
    font-size: 31px;
    letter-spacing: 5px;
    margin: 13px 0 5px;
  }
  .viewer-english {
    font-size: 9px;
  }
  .viewer-details .keywords {
    margin: 19px 0;
    font-size: 10px;
  }
  .viewer-details .message {
    font-size: 23px;
    margin: 17px 0;
  }
  .viewer-details .effect-label {
    margin-top: 23px;
    font-size: 9px;
  }
  .viewer-details .secondary-button {
    margin-top: 22px;
    min-height: 44px;
    font-size: 11px;
  }
  .toast {
    bottom: calc(85px + var(--safe));
    font-size: 11px;
    padding: 11px 17px;
    text-align: center;
    min-width: 180px;
  }
  .viewer-dialog ~ .toast {
    bottom: 30px;
  }
}
@media (max-width: 380px) {
  .room-intro h1 {
    font-size: 21px;
  }
  .coverflow {
    height: 340px;
  }
  .flow-card.is-center {
    width: 207px;
    height: 319px;
    margin: -159px 0 0 -103px;
  }
  .flow-card {
    width: 185px;
    height: 285px;
    margin: -142px 0 0 -92px;
  }
  .card-grid {
    gap: 20px 10px;
  }
  .gallery-name {
    font-size: 11px;
  }
  .spread-choice {
    gap: 5px;
    padding: 12px 8px;
  }
  .spread-choice small {
    font-size: 8px;
  }
  .viewer-stage .card-shell {
    width: 242px;
    height: 371px;
  }
}
#flow-cards {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
}
.room {
  overflow: hidden;
}
.flow-card .card-back {
  display: none;
}
.flow-card .card-glimmer,
.flow-card .card-art:after {
  animation: none;
}
.viewer-open #app {
  visibility: hidden;
}
.viewer-open .ambient .dust {
  animation-play-state: paused;
}
@media (max-width: 600px) and (max-height: 830px) {
  .coverflow {
    height: 331px;
  }
  .flow-card {
    width: 187px;
    height: 289px;
    margin: -144px 0 0 -93px;
  }
  .flow-card.is-center {
    width: 204px;
    height: 315px;
    margin: -157px 0 0 -102px;
  }
  .mobile-room-cta {
    margin-top: 14px;
  }
  .room {
    padding-top: 18px;
  }
  .room-footer {
    margin-top: 22px;
  }
}
@media (max-width: 600px) and (max-height: 730px) {
  .coverflow {
    height: 285px;
  }
  .flow-card {
    width: 166px;
    height: 255px;
    margin: -127px 0 0 -83px;
  }
  .flow-card.is-center {
    width: 176px;
    height: 271px;
    margin: -135px 0 0 -88px;
  }
  .room-intro h1 {
    font-size: 21px;
    margin-top: 7px;
  }
  .card-meta {
    min-height: 62px;
  }
  .mobile-room-cta {
    margin-top: 10px;
  }
  .subtle-hint {
    margin-top: 6px;
  }
}
:root {
  --safe: var(--safe-area-inset-bottom, env(safe-area-inset-bottom, 0px));
  --safe-top: var(--safe-area-inset-top, env(safe-area-inset-top, 0px));
  --header-height: 100px;
}
.topbar {
  height: calc(var(--header-height) + var(--safe-top));
  padding-top: var(--safe-top);
}
@media (max-width: 900px) {
  :root {
    --header-height: 85px;
  }
}
@media (max-width: 600px) {
  :root {
    --header-height: 77px;
  }
  .viewer-close {
    top: calc(15px + var(--safe-top));
  }
  .viewer-layout {
    padding-top: calc(65px + var(--safe-top));
  }
}
.card-particles {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 12;
}
.card-top:empty { display: none; }
.result-card .reading-reversed > .card-front { transform: rotate(180deg); }
.shuffle-stack { position: relative; width: 180px; height: 280px; margin: 68px auto; perspective: 900px; }
.shuffle-stack > div { position: absolute; inset: 0; border-radius: 12px; overflow: hidden; box-shadow: 0 8px 24px #0006; animation: shuffle-pack 1.1s ease-in-out infinite; animation-delay: calc(var(--i) * -0.13s); }
.shuffle-stack .card-back { position: absolute; inset: 0; transform: none; }
@keyframes shuffle-pack { 0%,100% { transform: translateX(calc((var(--i) - 3) * 3px)) rotate(calc((var(--i) - 3) * 2deg)); } 50% { transform: translateX(calc((var(--i) - 3) * 20px)) rotate(calc((var(--i) - 3) * 8deg)) translateY(-12px); } }
@media (prefers-reduced-motion: reduce) { .shuffle-stack > div { animation: none; transform: translateX(calc((var(--i) - 3) * 5px)) rotate(calc((var(--i) - 3) * 3deg)); } }
.result-card {
  position: relative;
}
.viewer-stage > .card-shell {
  touch-action: none;
}
.viewer-dialog.pure-view .viewer-layout {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 60px 18px 30px;
  gap: 0;
  min-height: 100dvh;
}
.pure-view .viewer-stage {
  width: 100%;
  max-width: 500px;
}
.pure-view .viewer-stage > .card-shell {
  width: min(420px, calc(100vw - 64px), calc((100dvh - 235px) * 0.65));
  height: auto;
  aspect-ratio: 2 / 3;
}
.pure-view .viewer-details,
.pure-view .subtle-hint {
  display: none;
}
.pure-view .viewer-actions {
  margin-top: 22px;
  gap: 18px;
}
.pure-view .viewer-navigation {
  margin-top: 15px;
}
/* Keep moving cards in fixed layout boxes. Size and depth animate in the compositor. */
.coverflow {
  --flow-card-width: 258px;
  --flow-card-height: 396px;
}
.flow-card,
.flow-card.is-center {
  width: var(--flow-card-width);
  height: var(--flow-card-height);
  margin: calc(var(--flow-card-height) * -0.5) 0 0
    calc(var(--flow-card-width) * -0.5);
  filter: none;
  transition:
    transform 0.58s cubic-bezier(0.18, 0.75, 0.2, 1),
    opacity 0.5s,
    scale 0.58s;
}
.flow-card {
  scale: 0.925;
}
.flow-card.is-center {
  scale: 1;
}
.flow-card .card-shell {
  box-shadow: none;
}
.flow-card .card-glimmer,
.flow-card .card-art:after {
  display: none;
}
.stage-aura {
  filter: none;
}
.bottom-nav {
  backdrop-filter: none;
  background: #101815;
}
@media (min-width: 1500px) {
  .coverflow {
    --flow-card-width: 280px;
    --flow-card-height: 430px;
  }
}
@media (max-width: 1150px) {
  .coverflow {
    --flow-card-width: 238px;
    --flow-card-height: 368px;
  }
}
@media (max-width: 600px) {
  .coverflow {
    --flow-card-width: 224px;
    --flow-card-height: 345px;
  }
}
@media (max-width: 380px) {
  .coverflow {
    --flow-card-width: 207px;
    --flow-card-height: 319px;
  }
}
@media (max-width: 600px) and (max-height: 830px) {
  .coverflow {
    --flow-card-width: 204px;
    --flow-card-height: 315px;
  }
}
@media (max-width: 600px) and (max-height: 730px) {
  .coverflow {
    --flow-card-width: 176px;
    --flow-card-height: 271px;
  }
}
.is-paused *,
.is-paused *:before,
.is-paused *:after {
  animation-play-state: paused !important;
}
@media (min-width: 1151px) {
  .room-intro {
    width: 265px;
  }
  .room-intro h1 {
    font-size: 38px;
    letter-spacing: 3px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
  .result-card .card-shell {
    transform: rotateY(0);
  }
}

/* Brand replacement uses the same header footprint. */
.brand-mark{width:48px;height:48px;object-fit:contain;flex-shrink:0;border-radius:9px}
@media(max-width:600px){.brand-mark{width:36px;height:36px}}
