/* ==========================================================================
   메이플 레코드 - 메이린의 운명 타로 (/Util/4/tarot.css)
   - 와이드 2단 스플릿 아케인 스튜디오 & 벤토 카드 대시보드
   - 미드나잇 네이비 + 앤틱 골드 + 소프트 오렌지 팔레트
   ========================================================================== */

:root {
  --tr-bg: #0d1017;
  --tr-surface: #141925;
  --tr-surface-2: #10141f;
  --tr-surface-3: #192030;
  --tr-border: #232c40;
  --tr-border-gold: rgba(226, 184, 87, 0.34);
  --tr-text: #f1f5f9;
  --tr-sub: #94a3b8;
  --tr-muted: #64748b;
  --tr-gold: #e2b857;
  --tr-orange: #ff7b54;
  --tr-green: #34d399;
  --tr-sky: #38bdf8;
  --tr-violet: #a78bfa;
  --tr-red: #f87171;
}

body {
  background-color: var(--tr-bg);
  background-image:
    radial-gradient(680px 320px at 18% 0%, rgba(167, 139, 250, 0.08), transparent 70%),
    radial-gradient(600px 320px at 85% 5%, rgba(226, 184, 87, 0.06), transparent 70%);
  color: var(--tr-text);
}

/* 와이드 컨테이너 */
.tarot-studio {
  max-width: 1120px;
  width: 100%;
  margin: 0 auto;
  padding: 26px 18px 56px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* ==========================================================================
   1. 상단 미니멀 스튜디오 헤더 바
   ========================================================================== */
.studio-topbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--tr-border);
}

.studio-eyebrow {
  display: block;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 2.2px;
  color: var(--tr-gold);
  margin-bottom: 4px;
}

.studio-title-line {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.studio-title-line h1 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: -0.4px;
}

.studio-date-chip {
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--tr-sub);
  background: var(--tr-surface);
  border: 1px solid var(--tr-border);
  padding: 3px 10px;
  border-radius: 999px;
  font-family: Consolas, monospace;
}

/* ==========================================================================
   2. [STATE A] 2단 스플릿 추첨 스테이지 (좌: 메이린 콘솔 / 우: 3x3 알터 보드)
   ========================================================================== */
.draw-stage {
  display: grid;
  grid-template-columns: 330px 1fr;
  gap: 20px;
  align-items: stretch;
}

.maerin-console {
  background: var(--tr-surface);
  border: 1px solid var(--tr-border);
  border-radius: 16px;
  padding: 22px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.maerin-portrait-frame {
  position: relative;
  width: 142px;
  height: 152px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.maerin-ring-glow {
  position: absolute;
  width: 126px;
  height: 126px;
  border-radius: 50%;
  border: 1px solid var(--tr-border-gold);
  background: radial-gradient(circle, rgba(167, 139, 250, 0.18) 0%, transparent 72%);
}

.maerin-standing-img {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.5));
  animation: maerinFloat 4.2s ease-in-out infinite;
}

@keyframes maerinFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

.maerin-shake-anim {
  animation: maerinShake 0.55s ease-in-out;
}

@keyframes maerinShake {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(-7deg); }
  50% { transform: rotate(7deg); }
  75% { transform: rotate(-4deg); }
}

.maerin-meta-line {
  display: flex;
  align-items: center;
  gap: 8px;
}

.maerin-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: #ffffff;
}

.maerin-sub-tag {
  font-size: 0.7rem;
  font-weight: 800;
  color: var(--tr-gold);
  background: rgba(226, 184, 87, 0.12);
  border: 1px solid rgba(226, 184, 87, 0.3);
  padding: 2px 8px;
  border-radius: 999px;
}

/* 기존 .maerin-sub-tag 바로 아래에 추가 */
.maerin-sub-tag.is-normal {
  color: #7dd3fc;
  background: rgba(56, 189, 248, 0.12);
  border-color: rgba(56, 189, 248, 0.32);
}

.maerin-sub-tag.is-guide {
  color: #ddd6fe;
  background: rgba(167, 139, 250, 0.14);
  border-color: rgba(167, 139, 250, 0.36);
}

.maerin-sub-tag.is-clumsy {
  color: #fda4af;
  background: rgba(244, 63, 94, 0.14);
  border-color: rgba(244, 63, 94, 0.36);
}

.maerin-bubble {
  width: 100%;
  margin: 0;
  background: var(--tr-surface-2);
  border: 1px solid var(--tr-border);
  border-radius: 12px;
  padding: 13px 15px;
  font-size: 0.87rem;
  color: #e2e8f0;
  line-height: 1.6;
  text-align: center;
  word-break: keep-all;
  transition: opacity 0.2s ease;
}

.console-controls {
  width: 100%;
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mode-stack {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.mode-card-btn {
  background: var(--tr-surface-2);
  border: 1px solid var(--tr-border);
  border-radius: 10px;
  padding: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  text-align: left;
  transition: all 0.16s ease;
}

.mode-card-btn:hover:not(:disabled):not(.active) {
  border-color: #3a4663;
  background: #171d2c;
}

.mode-card-btn.active {
  background: rgba(226, 184, 87, 0.1);
  border-color: rgba(226, 184, 87, 0.55);
}

.mode-card-ico {
  width: 20px;
  height: 20px;
  object-fit: contain;
  image-rendering: pixelated;
  flex-shrink: 0;
}

.mode-card-txt {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
  min-width: 0;
}

.mode-card-txt strong {
  font-size: 0.8rem;
  font-weight: 800;
  color: #ffffff;
}

.mode-card-txt small {
  font-size: 0.68rem;
  color: var(--tr-sub);
  margin-top: 2px;
}

.btn-reshuffle {
  width: 100%;
  height: 40px;
  background: #1d2536;
  border: 1px solid #303d59;
  border-radius: 10px;
  color: #e2e8f0;
  font-size: 0.83rem;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.16s ease;
}

.btn-reshuffle:hover:not(:disabled) {
  background: #273249;
  border-color: var(--tr-gold);
  color: #ffffff;
}

.btn-reshuffle:disabled,
.mode-card-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

/* 우측 알터 타로 보드 */
.altar-board-wrap {
  background: var(--tr-surface);
  border: 1px solid var(--tr-border);
  border-radius: 16px;
  padding: 20px 24px 26px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
}

.altar-header {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--tr-surface-2);
  border: 1px solid var(--tr-border);
  padding: 7px 16px;
  border-radius: 999px;
}

.altar-step-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--tr-gold);
  box-shadow: 0 0 8px rgba(226, 184, 87, 0.7);
}

.altar-hint {
  margin: 0;
  font-size: 0.83rem;
  color: #cbd5e1;
}

.altar-hint strong {
  color: var(--tr-gold);
}

.tarot-board {
  display: grid;
  grid-template-columns: repeat(3, 126px);
  gap: 16px;
  perspective: 1200px;
}

.tarot-card {
  width: 126px;
  height: 186px;
  position: relative;
  cursor: pointer;
  user-select: none;
  transform-style: preserve-3d;
  transition: transform 0.55s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.25s ease;
}

.tarot-card:hover:not(.flipped):not(.disabled):not(.shuffling) {
  transform: translateY(-8px) scale(1.03);
}

.tarot-card.flipped {
  transform: rotateY(180deg);
  cursor: default;
}

.tarot-card.disabled {
  opacity: 0.24;
  cursor: not-allowed;
}

.tarot-card.shuffling {
  animation: tarotShuffleAnim 0.58s cubic-bezier(0.45, 0.05, 0.55, 0.95);
  pointer-events: none;
}

@keyframes tarotShuffleAnim {
  0% { transform: translate(0, 0) scale(1) rotate(0deg); }
  35% { transform: translate(24px, -14px) scale(0.9) rotate(11deg); opacity: 0.82; }
  70% { transform: translate(-22px, 12px) scale(0.92) rotate(-9deg); opacity: 0.9; }
  100% { transform: translate(0, 0) scale(1) rotate(0deg); opacity: 1; }
}

.card-face {
  position: absolute;
  inset: 0;
  border-radius: 12px;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.card-back {
  background: linear-gradient(155deg, #1b1f33 0%, #101420 100%);
  border: 1px solid rgba(226, 184, 87, 0.32);
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
}

.card-back-pattern {
  width: 84%;
  height: 88%;
  border: 1px solid rgba(226, 184, 87, 0.22);
  border-radius: 7px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  position: relative;
}

.card-back-pattern::before {
  content: "✦";
  position: absolute;
  top: 7px;
  font-size: 0.65rem;
  color: rgba(226, 184, 87, 0.5);
}

.card-back-pattern::after {
  content: "✦";
  position: absolute;
  bottom: 7px;
  font-size: 0.65rem;
  color: rgba(226, 184, 87, 0.5);
}

.back-symbol {
  font-size: 26px;
  line-height: 1;
}

.back-text {
  font-size: 0.62rem;
  letter-spacing: 2.5px;
  color: var(--tr-gold);
  font-weight: 800;
}

.card-front {
  background: linear-gradient(180deg, #192033 0%, #111623 100%);
  transform: rotateY(180deg);
  border: 1px solid rgba(226, 184, 87, 0.65);
  padding: 12px 9px;
  text-align: center;
  justify-content: space-between;
}

.card-front-keyword {
  font-size: 0.64rem;
  color: var(--tr-sub);
  background: rgba(13, 16, 23, 0.8);
  border-radius: 5px;
  padding: 2px 5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-front-icon {
  font-size: 38px;
  line-height: 1;
}

.card-front-name {
  font-size: 0.8rem;
  font-weight: 800;
  color: #fde68a;
  word-break: keep-all;
}

/* ==========================================================================
   3. [STATE B] 2단 스플릿 리딩 대시보드 (좌: 실물 타로 카드 / 우: 벤토 보드)
   ========================================================================== */
.spread-switcher {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 18px;
}

.spread-chip-btn {
  background: var(--tr-surface);
  border: 1px solid var(--tr-border);
  border-radius: 12px;
  padding: 11px 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  transition: all 0.16s ease;
  color: var(--tr-sub);
}

.spread-chip-btn:hover {
  border-color: #3a4663;
  color: #ffffff;
}

.spread-chip-btn.active {
  background: #1a2133;
  border-color: rgba(226, 184, 87, 0.58);
  color: #ffffff;
}

.spread-chip-left {
  display: flex;
  flex-direction: column;
  text-align: left;
  gap: 2px;
}

.spread-chip-pos {
  font-size: 0.7rem;
  font-weight: 800;
  color: var(--tr-gold);
}

.spread-chip-name {
  font-size: 0.88rem;
  font-weight: 800;
}

.spread-chip-icon {
  font-size: 22px;
  line-height: 1;
}

/* 2단 본문 그리드 */
.reading-split {
  display: grid;
  grid-template-columns: 330px 1fr;
  gap: 20px;
  align-items: start;
}

/* 좌측 Sticky 아르카나 쇼케이스 카드 */
.arcana-rail {
  position: sticky;
  top: 76px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.arcana-plaque {
  background: linear-gradient(170deg, #181f31 0%, #111622 100%);
  border: 1px solid var(--tr-border-gold);
  border-radius: 18px;
  padding: 20px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}

.plaque-top-row {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.plaque-arcana-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--tr-sub);
  letter-spacing: 0.3px;
}

.grade-pill {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 800;
  white-space: nowrap;
}

.grade-great { background: rgba(250, 204, 21, 0.16); color: #fde047; border: 1px solid rgba(250, 204, 21, 0.45); }
.grade-good { background: rgba(52, 211, 153, 0.15); color: #6ee7b7; border: 1px solid rgba(52, 211, 153, 0.4); }
.grade-small-good { background: rgba(56, 189, 248, 0.15); color: #7dd3fc; border: 1px solid rgba(56, 189, 248, 0.4); }
.grade-variable { background: rgba(167, 139, 250, 0.16); color: #ddd6fe; border: 1px solid rgba(167, 139, 250, 0.45); }
.grade-bad { background: rgba(251, 146, 60, 0.15); color: #fdba74; border: 1px solid rgba(251, 146, 60, 0.4); }
.grade-worst { background: rgba(248, 113, 113, 0.16); color: #fca5a5; border: 1px solid rgba(248, 113, 113, 0.45); }

/* SVG 원형 점수 링 + 중앙 타로 심볼 */
.score-ring-wrap {
  position: relative;
  width: 118px;
  height: 118px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 4px 0 2px;
}

.score-ring-svg {
  width: 118px;
  height: 118px;
  transform: rotate(-90deg);
}

.score-ring-track {
  fill: none;
  stroke: #1f283b;
  stroke-width: 6;
}

.score-ring-fill {
  fill: none;
  stroke-width: 6;
  stroke-linecap: round;
  transition: stroke-dashoffset 0.7s ease;
}

.score-ring-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
}

.ring-symbol {
  font-size: 32px;
  line-height: 1;
}

.ring-score {
  font-size: 0.86rem;
  font-weight: 900;
  font-family: Consolas, sans-serif;
}

.plaque-card-name {
  margin: 0;
  font-size: 1.24rem;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: -0.3px;
}

.plaque-keyword {
  font-size: 0.78rem;
  color: var(--tr-gold);
  font-weight: 700;
}

/* 행운 속성 2x2 미니 그리드 */
.lucky-mini-grid {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
  margin-top: 4px;
}

.lucky-mini-cell {
  background: rgba(13, 16, 23, 0.72);
  border: 1px solid var(--tr-border);
  border-radius: 9px;
  padding: 8px 9px;
  text-align: left;
}

.lucky-mini-cell span {
  display: block;
  font-size: 0.67rem;
  color: var(--tr-muted);
  margin-bottom: 2px;
}

.lucky-mini-cell strong {
  display: block;
  font-size: 0.77rem;
  font-weight: 700;
  color: #e2e8f0;
  word-break: keep-all;
}

/* 좌측 하단 메이린 계시 미니 카드 */
.maerin-mini-card {
  background: var(--tr-surface);
  border: 1px solid var(--tr-border);
  border-radius: 14px;
  padding: 15px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.maerin-mini-head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.maerin-mini-avatar {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--tr-surface-2);
  border: 1px solid var(--tr-border);
  object-fit: contain;
  padding: 2px;
  flex-shrink: 0;
}

.maerin-mini-who {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.maerin-mini-who strong {
  font-size: 0.86rem;
  color: #ffffff;
}

.maerin-mini-who small {
  font-size: 0.71rem;
  color: var(--tr-sub);
}

.maerin-mini-quote {
  margin: 0;
  font-size: 0.83rem;
  color: #e2e8f0;
  line-height: 1.58;
  word-break: keep-all;
}

.action-callout {
  background: rgba(255, 123, 84, 0.08);
  border: 1px solid rgba(255, 123, 84, 0.28);
  border-radius: 10px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.action-callout span {
  font-size: 0.69rem;
  font-weight: 800;
  color: var(--tr-orange);
}

.action-callout strong {
  font-size: 0.8rem;
  font-weight: 700;
  color: #f8fafc;
  line-height: 1.45;
  word-break: keep-all;
}

/* ==========================================================================
   4. 우측 메인 벤토 리딩 보드
   ========================================================================== */
.reading-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* 상단 요약 + 4대 분야 가로 프로그레스 미터 */
.summary-bento {
  background: var(--tr-surface);
  border: 1px solid var(--tr-border);
  border-radius: 16px;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.summary-desc {
  margin: 0;
  font-size: 0.89rem;
  color: #cbd5e1;
  line-height: 1.65;
  word-break: keep-all;
}

.meter-4grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px 14px;
  padding-top: 12px;
  border-top: 1px solid var(--tr-border);
}

.meter-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  padding: 6px 8px;
  border-radius: 8px;
  transition: background-color 0.14s ease;
}

.meter-row:hover {
  background: rgba(255, 255, 255, 0.03);
}

.meter-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.meter-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 700;
  color: #e2e8f0;
}

.meter-val {
  font-size: 0.8rem;
  font-weight: 800;
  font-family: Consolas, monospace;
}

.meter-track {
  width: 100%;
  height: 6px;
  border-radius: 999px;
  background: #1d2436;
  overflow: hidden;
}

.meter-fill {
  height: 100%;
  border-radius: 999px;
}

/* 이퀄라이저형 세로 막대 스파크라인 차트 (2열) */
.spark-2grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.spark-card {
  background: var(--tr-surface);
  border: 1px solid var(--tr-border);
  border-radius: 16px;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.spark-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.spark-head h3 {
  margin: 0;
  font-size: 0.84rem;
  font-weight: 800;
  color: #ffffff;
}

.spark-head span {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--tr-gold);
}

.vbar-chart {
  height: 64px;
  display: grid;
  gap: 5px;
  align-items: end;
  padding: 4px 2px 0;
}

.vbar-chart.cols-12 { grid-template-columns: repeat(12, 1fr); }
.vbar-chart.cols-8 { grid-template-columns: repeat(8, 1fr); }

.vbar-col {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
}

.vbar-stick-wrap {
  width: 100%;
  flex: 1;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.vbar-stick {
  width: 72%;
  max-width: 14px;
  min-height: 5px;
  border-radius: 4px 4px 2px 2px;
}

.vbar-lbl {
  font-size: 0.62rem;
  color: var(--tr-muted);
  font-family: Consolas, monospace;
}

.spark-note {
  margin: 0;
  font-size: 0.76rem;
  color: var(--tr-sub);
  line-height: 1.48;
  word-break: keep-all;
}

/* 카테고리 필터 탭 바 */
.cat-filter-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.cat-tab-btn {
  background: var(--tr-surface);
  border: 1px solid var(--tr-border);
  border-radius: 999px;
  padding: 7px 14px;
  color: var(--tr-sub);
  font-size: 0.79rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s ease;
}

.cat-tab-btn:hover {
  color: #ffffff;
  border-color: #3a4663;
}

.cat-tab-btn.active {
  background: rgba(255, 123, 84, 0.14);
  border-color: rgba(255, 123, 84, 0.5);
  color: #ffad92;
}

/* 세부 분야 벤토 섹션 */
.bento-sections-wrap {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.bento-group {
  background: var(--tr-surface);
  border: 1px solid var(--tr-border);
  border-radius: 16px;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.bento-group-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.bento-group-title {
  display: flex;
  align-items: center;
  gap: 8px;
}

.bento-group-title h3 {
  margin: 0;
  font-size: 0.96rem;
  font-weight: 800;
  color: #ffffff;
}

.bento-group-badge {
  font-size: 0.74rem;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: 999px;
  font-family: Consolas, monospace;
}

.bento-group-lead {
  margin: 0;
  font-size: 0.83rem;
  color: var(--tr-sub);
  line-height: 1.5;
  word-break: keep-all;
}

/* 2열 벤토 타일 그리드 */
.bento-tiles {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.bento-tile {
  background: var(--tr-surface-2);
  border: 1px solid #20283a;
  border-radius: 12px;
  padding: 13px 14px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  transition: border-color 0.15s ease;
}

.bento-tile:hover {
  border-color: #34415e;
}

.bento-tile.is-wide {
  grid-column: 1 / -1;
}

.bento-tile-head {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.79rem;
  font-weight: 800;
  color: #f8fafc;
}

.bento-tile-body {
  font-size: 0.82rem;
  color: #cbd5e1;
  line-height: 1.55;
  word-break: keep-all;
}

/* 도트 아이콘 규격 */
.ui-slot-icon {
  width: 20px;
  height: 20px;
  object-fit: contain;
  image-rendering: pixelated;
  flex-shrink: 0;
}

.xs-slot-icon {
  width: 18px;
  height: 18px;
}

/* 캐시 뱃지 */
.cash-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 4px;
  margin: 0 2px;
  white-space: nowrap;
}

.cash-good { background: rgba(52, 211, 153, 0.14); color: #34d399; border: 1px solid rgba(52, 211, 153, 0.35); }
.cash-mid { background: rgba(251, 191, 36, 0.14); color: #fbbf24; border: 1px solid rgba(251, 191, 36, 0.35); }
.cash-bad { background: rgba(248, 113, 113, 0.14); color: #f87171; border: 1px solid rgba(248, 113, 113, 0.35); }

/* ==========================================================================
   5. 하단 접이식 안내
   ========================================================================== */
.tarot-footnote {
  background: var(--tr-surface-2);
  border: 1px solid var(--tr-border);
  border-radius: 12px;
  padding: 13px 16px;
}

.tarot-footnote summary {
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--tr-sub);
  user-select: none;
}

.tarot-footnote ul {
  margin: 10px 0 0;
  padding-left: 16px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 0.78rem;
  color: var(--tr-muted);
  line-height: 1.55;
  word-break: keep-all;
}

.tarot-footnote strong {
  color: #cbd5e1;
}

/* ==========================================================================
   6. 반응형 (태블릿 / 모바일)
   ========================================================================== */
@media (max-width: 960px) {
  .draw-stage,
  .reading-split {
    grid-template-columns: 1fr;
  }

  .arcana-rail {
    position: static;
  }
}

@media (max-width: 680px) {
  .tarot-studio {
    padding: 18px 12px 42px;
    gap: 14px;
  }

  .studio-topbar {
    align-items: flex-start;
  }

  .studio-title-line h1 {
    font-size: 1.3rem;
  }

  .tarot-board {
    grid-template-columns: repeat(3, minmax(84px, 102px));
    gap: 9px;
  }

  .tarot-card {
    width: 100%;
    max-width: 102px;
    height: 152px;
  }

  .card-front-icon { font-size: 28px; }
  .card-front-name { font-size: 0.72rem; }

  .meter-4grid,
  .spark-2grid,
  .bento-tiles {
    grid-template-columns: 1fr;
  }

  .spread-switcher {
    grid-template-columns: 1fr;
  }

  .bento-group,
  .summary-bento,
  .spark-card {
    padding: 15px 14px;
  }
}