:root {
  --bg: #151513;
  --bg-2: #1b1b18;
  --panel: rgba(25, 25, 22, 0.76);
  --panel-strong: rgba(25, 25, 22, 0.92);
  --surface: rgba(255, 255, 255, 0.055);
  --surface-hover: rgba(255, 255, 255, 0.085);
  --line: rgba(222, 218, 207, 0.14);
  --line-strong: rgba(222, 218, 207, 0.28);
  --text: #ece9e1;
  --muted: rgba(222, 218, 207, 0.66);
  --subtle: #aaa69c;
  --accent: #aaa698;
  --accent-strong: #e4e0d5;
  --accent-soft: rgba(222, 218, 207, 0.18);
  --teal: #aaa698;
  --success: #aab5a0;
  --warning: #c1b398;
  --danger: #c5958e;
  --shadow: 0 22px 70px rgba(0, 0, 0, 0.42);
  --shadow-soft: 0 14px 38px rgba(0, 0, 0, 0.28);
  --radius: 8px;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --transition: 180ms ease;
  --font-serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, "Songti SC", STSong, SimSun, serif;
  --font-display: "Iowan Old Style", "Palatino Linotype", Georgia, "Songti SC", STSong, SimSun, serif;
  --font-mono: var(--font-serif);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  overflow: hidden;
  background:
    linear-gradient(145deg, rgba(25, 25, 22, 0.98), rgba(25, 25, 22, 0.96) 54%, rgba(25, 25, 22, 0.98)),
    var(--bg);
  color: var(--text);
  font-family: var(--font-serif);
  font-size: 16px;
  line-height: 1.68;
  position: relative;
  text-rendering: optimizeLegibility;
}

button,
textarea {
  font: inherit;
}

button {
  border: 0;
}

button:focus-visible,
[role="button"]:focus-visible,
textarea:focus-visible {
  outline: 2px solid rgba(222, 218, 207, 0.72);
  outline-offset: 3px;
}

::selection {
  background: rgba(222, 218, 207, 0.32);
  color: var(--text);
}

.top-line {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(222, 218, 207, 0.6), transparent);
  z-index: 40;
  pointer-events: none;
}

.ambient-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -2;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.024) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.88), rgba(0, 0, 0, 0.3));
}

.app-header {
  position: fixed;
  top: 18px;
  left: 24px;
  right: 24px;
  z-index: 30;
  display: grid;
  grid-template-columns: minmax(190px, auto) minmax(280px, 1fr) auto;
  align-items: center;
  gap: var(--space-5);
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(25, 25, 22, 0.72);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.22);
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  min-width: 0;
}

.brand-sigil {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  border-radius: var(--radius);
  border: 1px solid rgba(222, 218, 207, 0.34);
  background: rgba(222, 218, 207, 0.08);
  color: var(--accent-strong);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.brand-copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.brand-copy strong {
  color: var(--text);
  font-family: var(--font-display);
  font-size: 1.04rem;
  font-weight: 650;
  line-height: 1.2;
}

.brand-copy span,
.eyebrow,
.panel-kicker {
  color: var(--subtle);
  font-size: 0.72rem;
  line-height: 1.25;
  text-transform: uppercase;
}

.progress-steps {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: var(--space-2);
  margin: 0;
  padding: 0;
  list-style: none;
}

.progress-step {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 0;
  height: 36px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  color: var(--subtle);
  background: transparent;
  transition: color var(--transition), background var(--transition), border-color var(--transition);
}

.progress-step span {
  color: inherit;
  font-size: 0.68rem;
}

.progress-step strong {
  overflow: hidden;
  color: inherit;
  font-size: 0.78rem;
  font-weight: 520;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.progress-step.active {
  border-color: rgba(222, 218, 207, 0.36);
  background: rgba(222, 218, 207, 0.1);
  color: var(--accent-strong);
}

.progress-step.complete {
  color: rgba(222, 218, 207, 0.88);
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: var(--space-2);
}

.lang-toggle,
.history-btn,
.btn-primary,
.btn-secondary,
.btn-copy,
.btn-llm,
.btn-clear,
.drawer-close,
.tab-btn,
.example-chip {
  min-height: 38px;
  border-radius: var(--radius);
  cursor: pointer;
  transition:
    transform var(--transition),
    color var(--transition),
    border-color var(--transition),
    background var(--transition),
    box-shadow var(--transition);
}

.lang-toggle,
.history-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 0 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.045);
  color: var(--muted);
  white-space: nowrap;
}

.lang-toggle:hover,
.history-btn:hover {
  border-color: rgba(222, 218, 207, 0.34);
  background: rgba(222, 218, 207, 0.08);
  color: var(--text);
}

.app-main {
  position: relative;
  min-height: 100vh;
  z-index: 1;
}

.view {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  overflow-y: auto;
  padding: 132px 24px 92px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  filter: blur(4px);
  transition: opacity 280ms ease, transform 280ms ease, filter 280ms ease;
}

.view.active {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
  filter: none;
}

.view-content {
  width: min(1080px, 100%);
  min-height: calc(100vh - 224px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-6);
}

.narrow-content {
  width: min(720px, 100%);
}

.home-content {
  width: min(960px, 100%);
  text-align: center;
  gap: var(--space-5);
}

.section-heading {
  display: grid;
  justify-items: center;
  gap: var(--space-2);
  width: min(760px, 100%);
  text-align: center;
}

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

.site-title {
  color: var(--text);
  font-family: var(--font-display);
  font-size: 4rem;
  font-weight: 520;
  line-height: 1.05;
  text-shadow: 0 0 38px rgba(222, 218, 207, 0.15);
}

h2 {
  color: var(--text);
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 650;
  line-height: 1.18;
}

h3 {
  color: var(--text);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 650;
  line-height: 1.3;
}

.tagline {
  color: var(--accent-strong);
  font-family: var(--font-display);
  font-size: 1.14rem;
  font-weight: 560;
}

.product-intro,
.section-heading p:not(.eyebrow) {
  width: min(680px, 100%);
  color: var(--muted);
  font-size: 0.98rem;
}

.hero-actions,
.btn-group,
.result-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--space-3);
}

.btn-primary,
.btn-secondary,
.btn-copy,
.btn-clear {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  font-weight: 650;
  white-space: nowrap;
}

.btn-primary {
  min-width: 148px;
  padding: 0 24px;
  background: linear-gradient(180deg, rgba(222, 218, 207, 0.98), rgba(205, 177, 105, 0.94));
  color: #17120a;
  box-shadow: 0 12px 34px rgba(222, 218, 207, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.btn-primary:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 16px 42px rgba(222, 218, 207, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

.btn-primary:active:not(:disabled),
.btn-secondary:active,
.btn-copy:active,
.example-chip:active {
  transform: translateY(0);
}

.btn-primary:disabled {
  cursor: not-allowed;
  opacity: 0.46;
  box-shadow: none;
}

.btn-secondary {
  min-width: 112px;
  padding: 0 20px;
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.045);
  color: var(--muted);
}

.btn-secondary:hover {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.07);
  color: var(--text);
}

.ghost-link {
  background: transparent;
}

.hidden {
  display: none !important;
}

.flow-preview {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-3);
  width: min(840px, 100%);
  margin-top: var(--space-3);
}

.flow-node {
  position: relative;
  min-height: 92px;
  padding: var(--space-4);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.045);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  text-align: left;
}

.flow-node::after {
  content: "";
  position: absolute;
  right: 14px;
  bottom: 14px;
  width: 18px;
  height: 1px;
  background: var(--accent);
  opacity: 0.48;
}

.flow-node span,
.panel-chip,
.spread-badge,
.orientation-badge,
.card-position-label,
.card-keywords,
.history-time,
.history-cards-list {
  color: var(--subtle);
  font-size: 0.72rem;
}

.flow-node strong {
  display: block;
  margin-top: var(--space-3);
  color: var(--text);
  font-size: 0.98rem;
  font-weight: 640;
}

.spread-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-4);
  width: min(930px, 100%);
}

.spread-card {
  position: relative;
  min-height: 244px;
  padding: var(--space-5);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  cursor: pointer;
  transition:
    transform var(--transition),
    border-color var(--transition),
    background var(--transition),
    box-shadow var(--transition);
}

.spread-card:hover,
.spread-card:focus {
  transform: translateY(-3px);
  border-color: rgba(222, 218, 207, 0.45);
  background: rgba(25, 25, 22, 0.84);
  box-shadow: var(--shadow-soft), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.spread-topline,
.panel-title-row,
.question-meta,
.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}

.spread-count {
  color: var(--accent-strong);
  font-family: var(--font-display);
  font-size: 3.1rem;
  line-height: 1;
}

.spread-badge,
.panel-chip {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 9px;
  border: 1px solid rgba(222, 218, 207, 0.22);
  border-radius: var(--radius);
  background: rgba(222, 218, 207, 0.08);
  color: rgba(222, 218, 207, 0.82);
}

.spread-name {
  margin-top: var(--space-4);
  color: var(--text);
  font-size: 1.16rem;
  font-weight: 680;
}

.spread-desc {
  margin-top: var(--space-2);
  color: var(--muted);
  font-size: 0.9rem;
}

.spread-map {
  position: absolute;
  left: var(--space-5);
  right: var(--space-5);
  bottom: var(--space-5);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: 42px;
}

.spread-map span {
  display: block;
  width: 24px;
  height: 36px;
  border: 1px solid rgba(222, 218, 207, 0.18);
  border-radius: 5px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02));
}

.spread-map.pentagram {
  display: grid;
  grid-template-columns: repeat(3, 24px);
  grid-template-areas:
    ". a ."
    "b c d"
    ". e .";
}

.spread-map.pentagram span:nth-child(1) { grid-area: c; }
.spread-map.pentagram span:nth-child(2) { grid-area: a; }
.spread-map.pentagram span:nth-child(3) { grid-area: e; }
.spread-map.pentagram span:nth-child(4) { grid-area: b; }
.spread-map.pentagram span:nth-child(5) { grid-area: d; }

.question-panel,
.result-panel,
.prompt-area {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow-soft), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.question-panel {
  display: grid;
  gap: var(--space-3);
  padding: var(--space-5);
}

.field-label {
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 650;
}

.question-panel textarea {
  width: 100%;
  min-height: 148px;
  max-height: 260px;
  padding: 16px;
  resize: vertical;
  border: 1px solid rgba(222, 218, 207, 0.16);
  border-radius: var(--radius);
  background: rgba(25, 25, 22, 0.52);
  color: var(--text);
  line-height: 1.7;
  transition: border-color var(--transition), background var(--transition), box-shadow var(--transition);
}

.question-panel textarea::placeholder {
  color: rgba(222, 218, 207, 0.34);
}

.question-panel textarea:focus {
  border-color: rgba(222, 218, 207, 0.52);
  background: rgba(25, 25, 22, 0.72);
  box-shadow: 0 0 0 3px rgba(222, 218, 207, 0.09);
  outline: none;
}

.question-meta {
  color: var(--subtle);
  font-size: 0.8rem;
}

.char-count.warning {
  color: var(--warning);
}

.char-count.danger {
  color: var(--danger);
}

.example-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.example-chip {
  min-height: 34px;
  padding: 0 11px;
  border: 1px solid rgba(222, 218, 207, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  font-size: 0.82rem;
}

.example-chip:hover {
  transform: translateY(-1px);
  border-color: rgba(222, 218, 207, 0.34);
  background: rgba(222, 218, 207, 0.08);
  color: var(--text);
}

.draw-content {
  width: min(980px, 100%);
}

.draw-status {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  color: var(--muted);
  font-size: 0.86rem;
}

.reveal-meter {
  width: 180px;
  height: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.reveal-meter span {
  display: block;
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--teal), var(--accent-strong));
  transition: width 300ms ease;
}

.cards-area,
.result-cards {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--space-4);
}

.cards-area {
  width: 100%;
  min-height: 250px;
  padding: var(--space-4) 0;
}

.cards-area.spread-5 {
  display: grid;
  grid-template-columns: repeat(3, 150px);
  grid-template-areas:
    ". top ."
    "left center right"
    ". bottom .";
  gap: var(--space-3);
}

.cards-area.spread-5 .card-wrapper:nth-child(1) { grid-area: center; }
.cards-area.spread-5 .card-wrapper:nth-child(2) { grid-area: top; }
.cards-area.spread-5 .card-wrapper:nth-child(3) { grid-area: bottom; }
.cards-area.spread-5 .card-wrapper:nth-child(4) { grid-area: left; }
.cards-area.spread-5 .card-wrapper:nth-child(5) { grid-area: right; }

.card-wrapper {
  display: grid;
  justify-items: center;
  gap: var(--space-2);
  opacity: 0;
  transform: translateY(10px);
  animation: cardEnter 360ms ease forwards;
  animation-delay: calc(var(--card-order, 0) * 80ms);
}

.card-position-label {
  min-height: 1.1em;
}

.card-container {
  width: 138px;
  height: 258px;
  perspective: 1000px;
  cursor: pointer;
}

.card-container.no-flip {
  cursor: default;
}

.card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 620ms cubic-bezier(0.2, 0.74, 0.22, 1);
  transform-style: preserve-3d;
}

.card-container.flipped .card-inner {
  transform: rotateY(180deg);
}

.card-back,
.card-front {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: var(--radius);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.card-back {
  display: grid;
  place-items: center;
  border: 1px solid rgba(222, 218, 207, 0.22);
  background:
    linear-gradient(135deg, rgba(222, 218, 207, 0.08), transparent 32%),
    linear-gradient(160deg, #0d121f, #111827 52%, #070a12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 14px 34px rgba(0, 0, 0, 0.26);
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.card-back::before {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(222, 218, 207, 0.1);
  border-radius: 6px;
}

.card-back::after {
  content: "☽";
  position: relative;
  color: rgba(222, 218, 207, 0.55);
  font-family: var(--font-display);
  font-size: 2.3rem;
  text-shadow: 0 0 24px rgba(222, 218, 207, 0.18);
}

.card-container:not(.flipped):hover .card-back {
  transform: translateY(-4px) rotateZ(-1deg);
  border-color: rgba(222, 218, 207, 0.48);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.34), 0 0 24px rgba(222, 218, 207, 0.13);
}

.card-front {
  transform: rotateY(180deg);
  border: 1px solid rgba(222, 218, 207, 0.18);
  background: linear-gradient(180deg, rgba(222, 218, 207, 0.08), rgba(255, 255, 255, 0.025));
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.card-face-content {
  display: grid;
  grid-template-rows: 1fr auto auto;
  gap: 6px;
  width: 100%;
  height: 100%;
  padding: 8px 7px 7px;
}

.card-media {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  overflow: hidden;
  border-radius: 6px;
  background:
    linear-gradient(180deg, rgba(222, 218, 207, 0.06), rgba(25, 25, 22, 0.18)),
    rgba(25, 25, 22, 0.35);
}

.card-media.reversed .card-image,
.card-media.reversed .symbol-grid {
  transform: rotate(180deg);
}

.card-image {
  display: none;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.card-image[src]:not([src=""]) {
  display: block;
}

.card-image[src]:not([src=""]) ~ .symbol-grid {
  display: none;
}

.symbol-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  width: 100%;
  height: 100%;
  place-items: center;
  padding: 8px;
}

.symbol-grid span {
  color: rgba(222, 218, 207, 0.42);
  font-size: 0.72rem;
}

.symbol-grid .sym-center {
  color: var(--accent-strong);
  font-size: 1.7rem;
}

.card-name {
  min-height: 28px;
  max-height: 28px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  color: var(--text);
  font-size: 0.68rem;
  font-weight: 650;
  line-height: 1.35;
  text-align: center;
}

.orientation-badge {
  justify-self: center;
  color: var(--accent-strong);
}

.card-keywords {
  width: 130px;
  min-height: 18px;
  overflow: hidden;
  color: rgba(222, 218, 207, 0.5);
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.btn-generate {
  min-width: 190px;
}

.result-content {
  width: min(1120px, 100%);
}

.result-layout {
  display: grid;
  grid-template-columns: minmax(310px, 0.85fr) minmax(420px, 1.15fr);
  gap: var(--space-4);
  width: 100%;
  align-items: stretch;
}

.result-panel,
.prompt-area {
  padding: var(--space-5);
}

.result-panel {
  display: grid;
  align-content: start;
  gap: var(--space-5);
}

.result-cards {
  justify-content: flex-start;
}

.result-cards .card-container {
  width: 112px;
  height: 212px;
}

.result-cards .card-keywords {
  width: 112px;
}

.prompt-area {
  display: grid;
  grid-template-rows: auto auto minmax(260px, 1fr) auto;
  gap: var(--space-4);
}

.prompt-tabs {
  display: inline-flex;
  width: fit-content;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(25, 25, 22, 0.34);
}

.tab-btn {
  min-height: 34px;
  padding: 0 14px;
  background: transparent;
  color: var(--subtle);
  font-size: 0.84rem;
}

.tab-btn.active {
  background: rgba(222, 218, 207, 0.13);
  color: var(--accent-strong);
}

.prompt-box {
  min-height: 260px;
  max-height: 360px;
  overflow: auto;
  padding: var(--space-4);
  border: 1px solid rgba(222, 218, 207, 0.12);
  border-radius: var(--radius);
  background: rgba(25, 25, 22, 0.42);
}

.prompt-text,
.history-prompt {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
  color: rgba(222, 218, 207, 0.88);
  font-family: var(--font-mono);
  font-size: 0.86rem;
  line-height: 1.72;
}

.btn-copy {
  min-width: 116px;
  padding: 0 14px;
  border-color: rgba(222, 218, 207, 0.3);
  background: rgba(222, 218, 207, 0.08);
  color: var(--teal);
}

.btn-copy:hover {
  transform: translateY(-1px);
  border-color: rgba(222, 218, 207, 0.58);
  background: rgba(222, 218, 207, 0.13);
  color: #a4f0e1;
}

.btn-copy.copied {
  border-color: rgba(132, 228, 170, 0.68);
  background: rgba(132, 228, 170, 0.12);
  color: var(--success);
}

.handoff-panel {
  display: grid;
  gap: var(--space-3);
  padding-top: var(--space-1);
}

.handoff-panel p {
  margin: 0;
  color: var(--subtle);
  font-size: 0.84rem;
}

.llm-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-2);
}

.btn-llm {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 11px;
  border: 1px solid rgba(222, 218, 207, 0.12);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 650;
  white-space: nowrap;
}

.btn-llm:hover {
  transform: translateY(-1px);
  border-color: rgba(222, 218, 207, 0.32);
  background: rgba(222, 218, 207, 0.08);
  color: var(--text);
}

.app-footer {
  position: fixed;
  left: 24px;
  bottom: 18px;
  z-index: 20;
  color: rgba(222, 218, 207, 0.34);
  font-size: 0.74rem;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 34px;
  z-index: 60;
  min-width: 180px;
  padding: 10px 14px;
  border: 1px solid rgba(132, 228, 170, 0.34);
  border-radius: var(--radius);
  background: rgba(25, 25, 22, 0.9);
  color: var(--text);
  box-shadow: var(--shadow-soft);
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 10px);
  transition: opacity var(--transition), transform var(--transition);
}

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

.toast.error {
  border-color: rgba(239, 127, 127, 0.42);
}

.history-overlay {
  position: fixed;
  inset: 0;
  z-index: 45;
  background: rgba(0, 0, 0, 0.54);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

.history-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  display: flex;
  width: min(440px, 94vw);
  flex-direction: column;
  border-left: 1px solid var(--line);
  background: rgba(25, 25, 22, 0.94);
  box-shadow: -24px 0 70px rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  transform: translateX(100%);
  transition: transform 260ms ease;
}

.history-drawer.open {
  transform: translateX(0);
}

.drawer-header {
  padding: var(--space-5);
  border-bottom: 1px solid var(--line);
}

.drawer-header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.btn-clear {
  min-height: 34px;
  padding: 0 11px;
  border-color: rgba(239, 127, 127, 0.28);
  background: rgba(239, 127, 127, 0.08);
  color: rgba(239, 127, 127, 0.9);
  font-size: 0.8rem;
}

.btn-clear:hover {
  border-color: rgba(239, 127, 127, 0.54);
  background: rgba(239, 127, 127, 0.12);
}

.drawer-close {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  font-size: 1.1rem;
}

.drawer-close:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
}

.history-list {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: var(--space-3);
  overflow-y: auto;
  padding: var(--space-4);
}

.history-empty {
  display: grid;
  justify-items: center;
  gap: var(--space-2);
  padding: var(--space-10) var(--space-4);
  border: 1px dashed rgba(222, 218, 207, 0.16);
  border-radius: var(--radius);
  color: var(--muted);
  text-align: center;
}

.history-empty strong {
  color: var(--text);
  font-size: 0.98rem;
}

.history-empty span {
  color: var(--subtle);
  font-size: 0.84rem;
}

.history-item {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.045);
}

.history-summary {
  display: grid;
  gap: 6px;
  padding: var(--space-4);
  cursor: pointer;
  transition: background var(--transition);
}

.history-summary:hover {
  background: rgba(255, 255, 255, 0.04);
}

.history-question {
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 620;
  word-break: break-word;
}

.history-cards-list {
  color: rgba(222, 218, 207, 0.8);
  line-height: 1.5;
}

.history-actions {
  display: flex;
  justify-content: space-between;
  gap: var(--space-2);
  padding: 0 var(--space-4) var(--space-4);
}

.history-expand-btn,
.history-copy-btn {
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid rgba(222, 218, 207, 0.1);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.035);
  color: var(--muted);
  cursor: pointer;
  font-size: 0.78rem;
  transition: color var(--transition), background var(--transition), border-color var(--transition);
}

.history-expand-btn:hover,
.history-copy-btn:hover {
  border-color: rgba(222, 218, 207, 0.28);
  background: rgba(222, 218, 207, 0.08);
  color: var(--text);
}

.history-detail {
  padding: var(--space-4);
  border-top: 1px solid var(--line);
  background: rgba(25, 25, 22, 0.36);
}

.history-detail.hidden {
  display: none;
}

#pulse-layer {
  position: fixed;
  inset: 0;
  z-index: 5;
  overflow: hidden;
  pointer-events: none;
}

.pulse-ring {
  position: absolute;
  border: 1px solid rgba(222, 218, 207, 0.42);
  border-radius: 50%;
  pointer-events: none;
  transform: scale(0.3);
  animation: pulseRing 900ms ease-out forwards;
}

.pulse-ring.dim {
  border-color: rgba(222, 218, 207, 0.25);
}

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(222, 218, 207, 0.16);
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(222, 218, 207, 0.34);
}

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

@keyframes pulseRing {
  0% {
    opacity: 0.7;
    transform: scale(0.3);
  }
  100% {
    opacity: 0;
    transform: scale(2.8);
  }
}

@keyframes twinkle {
  0%,
  100% {
    opacity: var(--base-op, 0.5);
  }
  50% {
    opacity: var(--dim-op, 0.2);
  }
}

@keyframes runeFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@media (max-width: 980px) {
  .app-header {
    grid-template-columns: 1fr auto;
  }

  .progress-steps {
    grid-column: 1 / -1;
    order: 3;
  }

  .result-layout {
    grid-template-columns: 1fr;
  }

  .result-cards {
    justify-content: center;
  }

  .site-title {
    font-size: 3rem;
  }
}

@media (max-width: 720px) {
  body {
    overflow: hidden;
  }

  .app-header {
    top: 10px;
    left: 10px;
    right: 10px;
    gap: var(--space-3);
    padding: 10px;
  }

  .brand-sigil {
    width: 34px;
    height: 34px;
    flex-basis: 34px;
  }

  .brand-copy span {
    display: none;
  }

  .progress-steps {
    grid-template-columns: repeat(5, 1fr);
    gap: 5px;
  }

  .progress-step {
    height: 30px;
    gap: 0;
  }

  .progress-step strong {
    display: none;
  }

  .view {
    padding: 126px 14px 78px;
  }

  .view-content {
    min-height: calc(100vh - 204px);
    gap: var(--space-5);
  }

  .site-title {
    font-size: 2.35rem;
  }

  h2 {
    font-size: 1.55rem;
  }

  .flow-preview,
  .spread-cards {
    grid-template-columns: 1fr;
  }

  .flow-node {
    min-height: 72px;
  }

  .spread-card {
    min-height: 214px;
  }

  .cards-area.spread-5 {
    grid-template-columns: repeat(3, 112px);
    gap: var(--space-2);
  }

  .card-container {
    width: 108px;
    height: 204px;
  }

  .card-name {
    font-size: 0.62rem;
  }

  .card-keywords {
    width: 108px;
  }

  .prompt-area {
    grid-template-rows: auto auto minmax(220px, 1fr) auto;
  }

  .prompt-box {
    max-height: 300px;
  }

  .panel-title-row,
  .question-meta {
    align-items: flex-start;
    flex-direction: column;
    gap: var(--space-2);
  }

  .btn-copy {
    width: 100%;
  }

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

  .app-footer {
    display: none;
  }
}

@media (max-width: 390px) {
  .cards-area.spread-5 {
    grid-template-columns: repeat(3, 100px);
  }

  .card-container,
  .result-cards .card-container {
    width: 96px;
    height: 184px;
  }

  .card-keywords,
  .result-cards .card-keywords {
    width: 96px;
  }

  .header-actions {
    gap: 5px;
  }

  .lang-toggle,
  .history-btn {
    padding: 0 8px;
  }
}

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

/* Editorial refinement: artwork carries the colour; surfaces stay quiet. */
body { background: radial-gradient(ellipse at 50% 20%, #20201c, #151513 70%); }
.top-line, .ambient-layer, #pulse-layer { display: none; }
.app-header { top: 0; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: #151513; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; padding: 22px 0; }
.brand-sigil { border: 0; background: none; box-shadow: none; color: var(--text); font-size: 1.5rem; }
.brand-copy span { margin-top: 5px; }
.progress-step { border-radius: 0; }
.progress-step.active { background: none; border-color: transparent; border-bottom-color: var(--accent); color: var(--text); }
.progress-step.complete { color: var(--muted); }
.lang-toggle, .history-btn { border-color: transparent; background: none; }
.site-title { text-shadow: none; font-size: clamp(3.2rem, 6vw, 5.5rem); font-weight: 400; }
.home-content { gap: 26px; }
.eyebrow, .panel-kicker { letter-spacing: .13em; }
.tagline { font-size: 1.35rem; font-weight: 400; max-width: 620px; }
.product-intro { max-width: 570px; line-height: 1.9; }
.btn-primary { background: #e4e0d5; color: #20201c; box-shadow: none; min-height: 44px; }
.btn-primary:hover:not(:disabled) { background: #f0ede6; box-shadow: none; }
.flow-preview { margin-top: 24px; border-top: 1px solid var(--line); }
.flow-node { background: none; border: 0; border-radius: 0; box-shadow: none; min-height: 76px; }
.spread-card { border: 0; border-top: 1px solid var(--line-strong); border-radius: 0; background: none; box-shadow: none; min-height: 300px; }
.spread-card:hover, .spread-card:focus { background: #20201c; border-color: var(--accent); box-shadow: none; transform: translateY(-2px); }
.spread-badge, .panel-chip { padding: 0; border: 0; background: none; color: var(--muted); }
.spread-name { font-size: 1.35rem; font-weight: 400; }
.spread-map span { background: none; border-color: var(--accent); border-radius: 2px; }
.question-panel, .result-panel, .prompt-area { background: none; border: 0; border-radius: 0; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
.question-panel { padding: 0; }
.question-panel textarea { background: #1c1c19; font-size: 1.1rem; }
.question-panel textarea::placeholder { color: #aaa69c; }
.question-panel textarea:focus { outline: 2px solid var(--accent); outline-offset: 3px; box-shadow: none; }
.example-chip { border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: none; }
.reveal-meter { height: 2px; width: 110px; }
.reveal-meter span { background: var(--accent); }
.card-container { width: 170px; height: 320px; }
.card-container, .card-inner { perspective: none; }
.card-back { background: #23241f; border-color: #77786e; box-shadow: none; }
.card-back::before { inset: 12px; border-color: #626359; border-radius: 1px; }
.card-back::after { font-size: 1.7rem; color: #c0bdae; text-shadow: none; }
.card-container:not(.flipped):hover .card-back { transform: translateY(-2px); border-color: var(--accent); box-shadow: none; }
.card-front { border: 0; background: none; box-shadow: none; border-radius: 2px; }
.card-face-content { padding: 0; gap: 8px; }
.card-media { background: none; border-radius: 2px; }
.card-name { font-size: .85rem; max-height: none; min-height: 32px; font-weight: 400; }
.card-keywords { width: 170px; white-space: normal; color: var(--muted); font-size: .78rem; }
.orientation-badge, .card-position-label { color: var(--muted); font-size: .8rem; }
.cards-area.spread-5 { display: flex; flex-wrap: wrap; gap: 24px; }
.result-layout { grid-template-columns: 1fr; gap: 44px; }
.result-panel, .prompt-area { padding: 0; }
.result-panel { border-top: 1px solid var(--line); padding-top: 24px; }
.result-cards { justify-content: center; gap: 30px; }
.result-cards .card-container { width: 160px; height: 310px; }
.result-cards .card-keywords { width: 160px; }
.result-content { width: min(1000px, 100%); justify-content: flex-start; }
#readingQuestion { font-weight: 400; line-height: 1.5; overflow-wrap: anywhere; }
.prompt-area { display: block; max-width: 760px; margin: 0 auto; }
.prompt-tabs { margin-top: 24px; padding: 0; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: none; }
.tab-btn { border-radius: 0; padding: 8px 18px; }
.tab-btn.active { background: none; border-bottom: 1px solid var(--text); color: var(--text); }
.notes-intro { color: var(--muted); font-size: .88rem; line-height: 1.8; margin: 24px 0; }
.reading-note { border-top: 1px solid var(--line); padding: 24px 0; }
.note-position { color: var(--muted); font-size: .8rem; }
.reading-note h4 { margin: 6px 0; font-weight: 400; font-size: 1.45rem; }
.reading-note h4 span { font-size: .86rem; color: var(--muted); }
.note-keywords { color: var(--muted); }
.reflection-label { margin-top: 18px; font-size: .8rem; color: var(--muted); }
.deep-question { margin-top: 12px; }
.explore-context { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 18px 0; }
.explore-context summary { cursor: pointer; color: var(--muted); }
summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.context-heading { display: flex; justify-content: space-between; gap: 16px; align-items: center; margin: 24px 0 16px; }
.prompt-box { background: #1c1c19; }
.prompt-text, .history-prompt { color: var(--text); font-family: var(--font-serif); font-size: .95rem; line-height: 1.9; }
.btn-copy, .btn-copy:hover, .btn-copy.copied { background: none; border: 1px solid var(--line); color: var(--text); font-weight: 400; }
.handoff-panel { margin-top: 18px; }
.llm-actions { display: flex; flex-wrap: wrap; }
.btn-llm { background: none; border: 0; padding: 4px 0; margin-right: 20px; font-weight: 400; text-decoration: underline; text-underline-offset: 5px; }
.history-drawer { background: #1c1c19; backdrop-filter: none; -webkit-backdrop-filter: none; }
.history-item { border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: none; }
.history-cards-list { color: var(--muted); }
.app-footer { color: var(--muted); }
.view:not(.active) { visibility: hidden; }
@media (max-width: 980px) { .view { padding-top: 164px; } }
@media (max-width: 720px) {
 .app-header { top: 0; padding: 14px 0; }
 .view { padding-top: 136px; }
 .flow-preview { grid-template-columns: repeat(4, 1fr); width: 100%; }
 .flow-node { padding: 10px 2px; }
 .spread-card { min-height: 270px; }
 .cards-area, .cards-area.spread-5, .result-cards { display: flex; gap: 24px 14px; }
 .card-container, .result-cards .card-container { width: 140px; height: 280px; }
 .card-keywords, .result-cards .card-keywords { width: 140px; }
 .context-heading { flex-direction: column; align-items: flex-start; }
 .panel-title-row .btn-copy { width: auto; }
}
.flow-node::after { display: none; }
/* The preparation deck uses lightweight backs, never face images. */
.progress-steps { grid-template-columns: repeat(6, minmax(0,1fr)); }
.shuffle-deck { position: relative; width: min(420px, 100%); height: 350px; touch-action: none; }
.shuffle-card { width: 154px; height: 260px; inset: auto; left: calc(50% - 77px); top: 48px; will-change: transform; }
.shuffle-cta { opacity: 0; visibility: hidden; transition: opacity 300ms ease; }
.shuffle-cta.ready { opacity: 1; visibility: visible; }
.shuffle-status { min-height: 28px; color: var(--muted); font-size: .85rem; }
.select-deck { width: 140px; height: 238px; background: none; position: relative; cursor: pointer; margin: 12px 0 38px; color: var(--text); }
.select-deck .card-back { box-shadow: 4px -4px 0 var(--bg-2), 5px -5px 0 var(--line-strong); }
.select-caption { position: absolute; top: 100%; left: -30px; right: -30px; margin-top: 14px; }
.draw-slot { width: 170px; height: 320px; border: 1px dashed var(--line-strong); display: grid; place-items: center; color: var(--muted); font-size: .85rem; }
@media(max-width:720px) { .draw-slot { width: 140px; height: 280px; } }
/* Warm paper and ink. Artwork supplies the strongest colour. */
:root {
 --bg: #f0ece3; --bg-2: #e7e0d3; --panel: #f7f3ea; --panel-strong: #f7f3ea;
 --text: #2c2925; --muted: #686158; --subtle: #71695f;
 --accent: #76666d; --accent-strong: #51454c; --accent-soft: #e6dfe0;
 --line: rgba(62,51,39,.18); --line-strong: rgba(62,51,39,.33);
 --surface: #f5f1e8; --surface-hover: #e9e2d7; --teal: #686158;
 --success: #51634e; --warning: #806235; --danger: #994f45;
 --shadow: 0 10px 28px rgba(54,43,28,.09); --shadow-soft: 0 4px 14px rgba(54,43,28,.08);
 --transition: 260ms ease;
}
body { background: radial-gradient(ellipse at 50% 25%, #f6f2e9, var(--bg) 72%); }
.app-header { background: var(--bg); }
button, .progress-steps, .eyebrow, .panel-kicker, .question-meta, .shuffle-status { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', sans-serif; }
.brand-copy strong, .site-title, h2, h3, h4, .spread-name { font-weight: 400; }
.brand-copy span { font-size: .64rem; letter-spacing: .09em; }
.site-title { letter-spacing: .035em; }
.tagline { color: var(--text); font-size: 1.25rem; }
.btn-primary { background: #3f353b; color: #f7f3ea; font-weight: 400; border-radius: 3px; min-height: 46px; }
.btn-primary:hover:not(:disabled) { background: #54474e; }
.btn-secondary, .lang-toggle, .history-btn { background: transparent; }
.btn-secondary:hover, .lang-toggle:hover, .history-btn:hover, .example-chip:hover, .btn-llm:hover { background: var(--surface-hover); border-color: var(--line-strong); }
button:focus-visible, [role="button"]:focus-visible, summary:focus-visible { outline-color: #76666d; }
::selection { background: #d9ced3; color: #2c2925; }
.home-content { display: grid; grid-template-columns: minmax(0,1.25fr) minmax(240px,.8fr); column-gap: 75px; row-gap: 24px; text-align: left; align-content: center; width: min(1100px,100%); }
.home-content > :not(.hero-art):not(.flow-preview) { grid-column: 1; }
.home-content .eyebrow { align-self: end; }
.home-content .hero-actions { justify-content: flex-start; }
.hero-art { grid-column: 2; grid-row: 1 / 7; position: relative; height: 420px; width: 100%; }
.hero-art img { position: absolute; width: 185px; border: 6px solid #f7f3ea; box-shadow: 0 12px 28px rgba(52,40,24,.15); }
.hero-art img:first-child { top: 20px; left: 0; transform: rotate(-9deg); }
.hero-art img:last-child { top: 80px; right: 0; transform: rotate(8deg); }
.home-content .flow-preview { grid-column: 1 / -1; width: 100%; margin-top: 35px; }
.spread-card { border: 1px solid var(--line); padding: 28px; min-height: 320px; }
.spread-card:hover, .spread-card:focus { background: #f7f3ea; border-color: var(--line-strong); }
.spread-count { color: var(--text); font-weight: 400; }
.spread-badge { color: var(--muted); font-size: .75rem; }
.spread-map span { border-color: #9a896d; transition: transform 300ms ease; }
.spread-card:hover .spread-map span:nth-child(odd) { transform: translateY(-2px); }
.question-panel textarea, .question-panel textarea:focus { background: #f7f3ea; border: 0; border-bottom: 1px solid var(--line-strong); border-radius: 0; min-height: 220px; padding: 28px; line-height: 2; font-size: 1.2rem; }
.question-panel textarea::placeholder { color: #797166; }
.question-panel textarea:focus { outline: 1px solid var(--accent); }
.card-back { background: #eee7d8; border: 1px solid #948a77; border-radius: 3px; box-shadow: 0 3px 9px rgba(59,43,25,.08); }
.card-back::before { inset: 10px; border-color: #9a896d; border-radius: 0; }
.card-back::after { content: '☽'; color: #514b42; width: 65px; height: 100px; display: grid; place-items: center; border: 1px solid #afa38e; border-radius: 50%; font-size: 1.7rem; }
.card-container:not(.flipped):hover .card-back { border-color: #76666d; box-shadow: 0 5px 12px rgba(59,43,25,.1); }
.card-image { filter: none; }
.card-inner { transition: transform 650ms cubic-bezier(.22,.65,.3,1); }
.card-container[aria-disabled="true"] { cursor: default; }
.card-container[aria-disabled="true"]:hover .card-back { transform: none; }
.shuffle-content { gap: 16px; }
.shuffle-card { box-shadow: 0 1px 3px rgba(54,43,28,.1); }
.shuffle-card::before { inset: 8px; }
.shuffle-deck { margin-top: 12px; }
.draw-slot { border-color: var(--line); }
.result-panel { border-bottom: 1px solid var(--line); padding-bottom: 32px; }
.prompt-area { background: #f7f3ea; padding: 30px 36px; max-width: 830px; }
.prompt-box { background: #eee8dd; border-color: var(--line); }
.history-drawer { background: #f7f3ea; box-shadow: -10px 0 30px rgba(54,43,28,.1); }
.history-detail { background: #eee8dd; }
.history-empty { border-color: var(--line); }
.history-expand-btn, .history-copy-btn, .btn-copy { border-color: var(--line); }
.btn-clear { color: #994f45; background: transparent; }
.toast { background: #f7f3ea; color: var(--text); border-color: var(--line-strong); box-shadow: var(--shadow-soft); }
.toast.error { border-color: #994f45; }
.reveal-meter { background: #d9d1c4; }
::-webkit-scrollbar-thumb { background: #c6beaf; }
::-webkit-scrollbar-thumb:hover { background: #aba18f; }
@media(max-width:980px) {
 .home-content { column-gap: 35px; }
 .hero-art img { width: 150px; }
 .hero-art { height: 360px; }
}
@media(max-width:720px) {
 .home-content { display: flex; text-align: center; gap: 22px; }
 .home-content .hero-actions { justify-content: center; }
 .hero-art { width: 250px; height: 280px; order: 0; }
 .hero-art img { width: 125px; }
 .hero-art img:first-child { top: 5px; left: 12px; }
 .hero-art img:last-child { top: 45px; right: 12px; }
 .home-content .flow-preview { margin-top: 8px; }
 .home-content .site-title { font-size: 3.1rem; }
 .prompt-area { padding: 24px 18px; }
 .shuffle-deck { height: 310px; }
 .shuffle-card { top: 26px; }
 .progress-step { gap: 0; }
 .question-panel textarea { padding: 20px; }
}
@media(prefers-reduced-motion:reduce) { .shuffle-card { will-change: auto; } }
.cards-area .just-selected { animation: placeCard 550ms cubic-bezier(.22,.65,.3,1) both; }
@keyframes placeCard { from { opacity: 0; transform: translateY(-28px) rotate(-2deg); } to { opacity: 1; transform: none; } }
