/* 塔罗占卜：西方神秘风 · 逐张翻牌 · 羊皮纸牌面 */
.view.tarot-view{
  position:relative;
  background:#0B0D16;
  color:#E8E0D0;
  --tarot-gold:#C9A45C;
  --tarot-ink:#E8E0D0;
  --tarot-muted:rgba(232,224,208,.55);
  --tarot-panel:rgba(22,26,42,.78);
  --tarot-line:rgba(201,164,92,.28);
  --tarot-paper:#F3E6C8;
  --tarot-paper-ink:#2A2418;
  overflow:hidden;
}
.view.tarot-view .user-body{ position:relative; z-index:1; }
.tarot-sky{
  position:absolute; inset:0; pointer-events:none; z-index:0; overflow:hidden;
  background:
    radial-gradient(ellipse 90% 55% at 50% -10%, rgba(88,70,140,.35), transparent 60%),
    radial-gradient(ellipse 50% 40% at 85% 70%, rgba(40,70,110,.25), transparent 55%),
    radial-gradient(ellipse 40% 35% at 10% 80%, rgba(120,60,90,.18), transparent 50%),
    linear-gradient(180deg, #0B0D16 0%, #101428 48%, #0B0D16 100%);
}
.tarot-sky .tarot-haze{
  position:absolute; inset:-20%;
  background:radial-gradient(circle at 50% 30%, rgba(201,164,92,.06), transparent 42%);
  animation:tarotHaze 12s ease-in-out infinite alternate;
}
.tarot-star{
  position:absolute; width:3px; height:3px; border-radius:50%;
  background:#F5E6C0; box-shadow:0 0 6px 1px rgba(245,230,192,.7);
  opacity:.55; animation:tarotTwinkle 3.6s ease-in-out infinite;
}
.tarot-star.s1{ top:12%; left:18%; }
.tarot-star.s2{ top:22%; left:72%; width:2px; height:2px; animation-delay:.7s; }
.tarot-star.s3{ top:38%; left:88%; animation-delay:1.4s; }
.tarot-star.s4{ top:58%; left:12%; width:2px; height:2px; animation-delay:.3s; }
.tarot-star.s5{ top:70%; left:46%; animation-delay:2s; }
.tarot-star.s6{ top:16%; left:52%; width:2px; height:2px; animation-delay:1.1s; }
@keyframes tarotTwinkle{
  0%,100%{ opacity:.3; transform:scale(.8); }
  50%{ opacity:.95; transform:scale(1.25); }
}
@keyframes tarotHaze{
  from{ transform:translateY(0) scale(1); opacity:.7; }
  to{ transform:translateY(18px) scale(1.05); opacity:1; }
}

.tarot-head{
  background:transparent !important;
  border-bottom:1px solid var(--tarot-line);
  color:var(--tarot-ink);
  position:relative; z-index:2;
}
.tarot-head .back-btn{ color:var(--tarot-ink); }
.tarot-head .back-btn svg{ stroke:currentColor; }
.tarot-head .head-spacer{ width:44px; flex:0 0 44px; }
.tarot-title-wrap{ flex:1; text-align:center; min-width:0; }
.tarot-eyebrow{
  margin:0; font-family:Cinzel, serif; font-size:9px; letter-spacing:.28em;
  color:var(--tarot-gold); text-transform:uppercase;
}
.tarot-head h1{
  margin:2px 0 0; flex:none;
  font-family:Cinzel, "Noto Sans SC", serif;
  font-size:17px; font-weight:600; letter-spacing:.08em; color:#F3EBD8;
}
.tarot-body{ padding:10px 16px 28px; position:relative; z-index:1; }
.tarot-lead{
  margin:4px 0 16px; text-align:center;
  font-family:"Cormorant Garamond", Cinzel, serif;
  font-size:15px; font-style:italic; color:var(--tarot-muted);
}

.tarot-panel{
  position:relative;
  margin:0 0 14px; padding:14px 14px 12px;
  background:var(--tarot-panel);
  border:1px solid var(--tarot-line);
  border-radius:4px;
  box-shadow:0 0 0 1px rgba(0,0,0,.35), 0 18px 40px -28px rgba(0,0,0,.8);
}
.tarot-panel::before,
.tarot-panel::after{
  content:''; position:absolute; width:10px; height:10px;
  border:1.5px solid var(--tarot-gold); opacity:.7;
}
.tarot-panel::before{ top:6px; left:6px; border-right:none; border-bottom:none; }
.tarot-panel::after{ bottom:6px; right:6px; border-left:none; border-top:none; }
.tarot-panel-label{ display:flex; align-items:baseline; gap:10px; margin-bottom:10px; }
.tarot-panel-label span{
  font-family:Cinzel, serif; font-size:10px; letter-spacing:.22em;
  color:var(--tarot-gold); text-transform:uppercase;
}
.tarot-panel-label b{ font-size:13px; font-weight:600; color:var(--tarot-ink); }

.tarot-q{
  width:100%; min-height:92px; margin:0; padding:12px;
  border:1px solid rgba(201,164,92,.18); border-radius:2px;
  background:rgba(8,10,18,.55);
  font:inherit; font-size:14px; line-height:1.7; color:#F0E8D8;
  resize:vertical; box-sizing:border-box;
}
.tarot-q:focus{ outline:none; border-color:rgba(201,164,92,.55); box-shadow:0 0 0 3px rgba(201,164,92,.12); }
.tarot-q::placeholder{ color:rgba(232,224,208,.35); font-family:"Cormorant Garamond", serif; font-style:italic; }

.tarot-field{
  display:flex; align-items:center; justify-content:space-between; gap:12px;
  padding:11px 0; border-bottom:1px solid rgba(201,164,92,.12);
  font-size:13.5px; color:var(--tarot-ink);
}
.tarot-field:last-of-type{ border-bottom:none; }
.tarot-field > span{ flex:0 0 auto; color:var(--tarot-muted); }
.tarot-field select{
  flex:1; min-width:0; max-width:72%;
  border:1px solid rgba(201,164,92,.22); border-radius:2px;
  background:rgba(8,10,18,.55); color:#F0E8D8;
  padding:9px 10px; font:inherit; font-size:13px;
}
.tarot-count-row{ display:flex; align-items:center; gap:6px; }
.tarot-count-row input{
  width:48px; text-align:center;
  border:1px solid rgba(201,164,92,.22); border-radius:2px;
  background:rgba(8,10,18,.55); color:#F0E8D8;
  padding:9px 4px; font-family:Cinzel, var(--font-num), serif;
  font-size:15px; font-weight:600;
  -moz-appearance:textfield;
}
.tarot-count-row input::-webkit-outer-spin-button,
.tarot-count-row input::-webkit-inner-spin-button{ -webkit-appearance:none; margin:0; }
.tarot-step{
  width:34px; height:34px; border:1px solid rgba(201,164,92,.35);
  border-radius:2px; background:rgba(201,164,92,.08);
  color:var(--tarot-gold); font-size:18px; line-height:1; cursor:pointer;
}
.tarot-step:active{ transform:scale(.94); background:rgba(201,164,92,.18); }
.tarot-hint{ margin:8px 0 0; font-size:11.5px; line-height:1.6; color:var(--tarot-muted); }

.tarot-actions{ display:flex; gap:10px; margin:2px 0 18px; }
.tarot-btn{
  flex:1; height:48px; border:1px solid var(--tarot-gold);
  border-radius:2px; cursor:pointer;
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  font-family:Cinzel, "Noto Sans SC", serif; font-size:14px; letter-spacing:.12em;
  transition:transform .2s, box-shadow .25s, background .25s, opacity .2s;
}
.tarot-btn i{
  width:6px; height:6px; border-radius:50%;
  background:currentColor; box-shadow:0 0 8px currentColor; opacity:.7;
}
.tarot-btn.primary{
  background:linear-gradient(180deg, #D4B36A 0%, #A8823A 100%);
  color:#1A1408; box-shadow:0 10px 28px -12px rgba(201,164,92,.7);
}
.tarot-btn.ghost{ background:transparent; color:var(--tarot-gold); }
.tarot-btn:disabled{ opacity:.38; cursor:not-allowed; box-shadow:none; }
.tarot-btn:not(:disabled):active{ transform:scale(.97); }

/* 牌桌 */
.tarot-table{
  position:relative; margin:6px 0 18px; padding:18px 4px 8px;
  min-height:180px;
}
.tarot-table-line{
  position:absolute; left:8%; right:8%; top:0; height:1px;
  background:linear-gradient(90deg, transparent, var(--tarot-gold), transparent);
  opacity:.45;
}
.tarot-table-line::before,
.tarot-table-line::after{
  content:'◆'; position:absolute; top:50%; transform:translate(-50%,-50%);
  font-size:8px; color:var(--tarot-gold);
}
.tarot-table-line::before{ left:0; }
.tarot-table-line::after{ left:100%; }
.tarot-cards{
  display:flex; flex-wrap:wrap; gap:18px 12px; justify-content:center;
  align-items:flex-start;
}

/* 单槽 */
.tarot-slot{
  width:calc(50% - 10px); max-width:168px;
  display:flex; flex-direction:column; align-items:center; gap:7px;
  opacity:0;
  transform:translateY(40px) scale(.86);
  transition:opacity .45s ease, transform .55s cubic-bezier(.22,1.1,.36,1);
}
@media (min-width:380px){
  .tarot-slot{ width:calc(33.333% - 10px); min-width:120px; }
}
.tarot-slot.is-enter,
.tarot-slot.is-ready{
  opacity:1;
  transform:translateY(0) scale(1);
}
.tarot-slot-pos{
  font-family:Cinzel, serif; font-size:10px; letter-spacing:.16em;
  color:var(--tarot-gold); text-align:center; min-height:14px;
}
.tarot-slot-badge{
  font-family:Cinzel, "Noto Sans SC", serif; font-size:9.5px; letter-spacing:.1em;
  padding:4px 9px; border:1px solid rgba(201,164,92,.35);
  color:var(--tarot-gold); background:rgba(201,164,92,.08);
}
.tarot-slot-badge.rev{
  color:#E8A0A0; border-color:rgba(232,160,160,.45);
  background:rgba(120,40,50,.28);
}
.tarot-mean{
  margin:0; padding:0 2px;
  font-size:12px; line-height:1.55; text-align:center;
  color:rgba(243,235,216,.82);
  min-height:2.8em;
  opacity:0; transform:translateY(6px);
  transition:opacity .4s ease .25s, transform .4s ease .25s, max-height .35s ease, margin .35s ease, min-height .35s ease;
  max-height:6em; overflow:hidden;
}
.tarot-kw{
  margin:6px 0 0; padding:0 2px;
  font-size:10.5px; line-height:1.45; text-align:center;
  color:var(--tarot-gold);
  opacity:0; transform:translateY(6px);
  transition:opacity .4s ease .32s, transform .4s ease .32s, max-height .35s ease, margin .35s ease;
  max-height:5em; overflow:hidden;
}
.tarot-kw span{
  display:block; margin-bottom:2px;
  font-family:Cinzel, serif; font-size:8px; letter-spacing:.16em;
  text-transform:uppercase; opacity:.75;
}
.tarot-quote{
  margin:8px 0 0; padding:0 2px;
  text-align:center;
  opacity:0; transform:translateY(6px);
  transition:opacity .4s ease .4s, transform .4s ease .4s, max-height .35s ease, margin .35s ease;
  max-height:7em; overflow:hidden;
}
.tarot-quote p{
  margin:0;
  font-family:"Cormorant Garamond", "Noto Sans SC", serif;
  font-size:12px; font-style:italic; line-height:1.5;
  color:rgba(243,235,216,.78);
}
.tarot-quote cite{
  display:block; margin-top:3px;
  font-style:normal; font-size:10px;
  color:var(--tarot-muted); letter-spacing:.02em;
}
.tarot-slot.is-flip .tarot-mean,
.tarot-slot.is-flip .tarot-kw,
.tarot-slot.is-flip .tarot-quote{
  opacity:1; transform:none;
}

/* 3D 翻牌：不要在 3D 容器上用 filter，否则会压扁透视 */
.tarot-flip{
  width:100%; aspect-ratio:2 / 3.2;
  perspective:1100px;
}
.tarot-flip-inner{
  position:relative; width:100%; height:100%;
  transform-style:preserve-3d;
  -webkit-transform-style:preserve-3d;
  transition:transform .75s cubic-bezier(.2,.75,.2,1);
  border-radius:12px;
}
.tarot-slot.is-flip .tarot-flip-inner{ transform:rotateY(180deg); }
.tarot-back,
.tarot-front{
  position:absolute; inset:0; border-radius:12px;
  backface-visibility:hidden;
  -webkit-backface-visibility:hidden;
  overflow:hidden;
  box-shadow:0 16px 28px -12px rgba(0,0,0,.55);
}
.tarot-back{
  background:
    radial-gradient(circle at 30% 20%, rgba(201,164,92,.22), transparent 45%),
    repeating-linear-gradient(45deg, #171C33 0 5px, #121628 5px 10px);
  border:1.5px solid rgba(201,164,92,.65);
  display:flex; align-items:center; justify-content:center;
}
.tarot-back-art{ position:relative; width:78%; height:78%; display:flex; align-items:center; justify-content:center; }
.tarot-back-frame{
  position:absolute; inset:0;
  border:1px solid rgba(201,164,92,.4);
  border-radius:8px;
  box-shadow:inset 0 0 0 5px rgba(12,14,24,.35);
}
.tarot-back-sigil{
  width:58%; fill:none; stroke:var(--tarot-gold); stroke-width:1.5;
  filter:drop-shadow(0 0 6px rgba(201,164,92,.35));
}
.tarot-front{
  transform:rotateY(180deg);
  background:var(--tarot-paper);
  border:1.5px solid #A88840;
  color:var(--tarot-paper-ink);
}

/* 逆位：整张牌面倒过来（标签/释义在外侧保持正向） */
.tarot-front-spin{
  width:100%; height:100%;
  transition:transform .7s cubic-bezier(.34,1.15,.64,1);
}
.tarot-slot.is-rev.is-flip .tarot-front-spin{
  transform:rotate(180deg);
  transition-delay:.18s;
}

/* 羊皮纸牌面 */
.tarot-face{
  position:relative;
  width:100%; height:100%;
  padding:8px 7px 9px;
  box-sizing:border-box;
  display:flex; flex-direction:column; align-items:center;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(255,255,255,.35), transparent 42%),
    linear-gradient(180deg, #F7EDD4 0%, #EBD7B0 100%);
}
.tarot-face::before{
  content:''; position:absolute; inset:5px;
  border:1.5px solid rgba(120,90,40,.45);
  border-radius:7px; pointer-events:none;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.25);
}
.tarot-face-top{
  position:relative; z-index:1;
  width:100%; display:flex; justify-content:space-between; align-items:center;
  padding:0 4px; margin-bottom:2px;
}
.tarot-roman{
  font-family:Cinzel, serif; font-size:10px; letter-spacing:.12em;
  color:#7A5A28; font-weight:700;
}
.tarot-corner{ font-size:9px; color:#A88840; }
.tarot-art{
  position:relative; z-index:1;
  flex:1; width:100%; min-height:0;
  display:flex; align-items:center; justify-content:center;
  margin:2px 0;
  border-radius:6px;
  background:
    linear-gradient(180deg, rgba(60,80,120,.12), rgba(40,50,70,.08));
  box-shadow:inset 0 0 0 1px rgba(120,90,40,.2);
}
.tarot-scene{
  width:88%; height:88%;
  display:block;
}
.tarot-face-foot{
  position:relative; z-index:1;
  width:100%; text-align:center;
  padding:4px 2px 0;
  border-top:1px solid rgba(120,90,40,.28);
}
.tarot-cn{
  font-size:12.5px; font-weight:700; line-height:1.2;
  letter-spacing:.04em; color:#2A2418;
}
.tarot-en{
  margin-top:1px;
  font-family:"Cormorant Garamond", Cinzel, serif;
  font-size:9.5px; font-style:italic; line-height:1.15;
  color:rgba(42,36,24,.65);
}

/* 小牌花色点阵 */
.tarot-pips{
  position:relative; z-index:1;
  flex:1; width:100%; min-height:0; margin:4px 0;
  display:grid; place-items:center; gap:4px;
  padding:6px;
  border-radius:6px;
  background:linear-gradient(180deg, rgba(60,80,120,.08), rgba(40,50,70,.05));
  box-shadow:inset 0 0 0 1px rgba(120,90,40,.18);
}
.tarot-pips.n1{ grid-template-columns:1fr; }
.tarot-pips.n2{ grid-template-columns:1fr; grid-template-rows:1fr 1fr; }
.tarot-pips.n3{ grid-template-columns:1fr; grid-template-rows:1fr 1fr 1fr; }
.tarot-pips.n4{ grid-template-columns:1fr 1fr; grid-template-rows:1fr 1fr; }
.tarot-pips.n5{ grid-template-columns:1fr 1fr; grid-template-rows:1fr 1fr 1fr; }
.tarot-pips.n5 .tarot-pip:nth-child(5){ grid-column:1 / -1; }
.tarot-pips.n6{ grid-template-columns:1fr 1fr; grid-template-rows:1fr 1fr 1fr; }
.tarot-pips.n7{ grid-template-columns:1fr 1fr; }
.tarot-pips.n7 .tarot-pip:nth-child(7){ grid-column:1 / -1; }
.tarot-pips.n8{ grid-template-columns:1fr 1fr; }
.tarot-pips.n9{ grid-template-columns:1fr 1fr 1fr; }
.tarot-pips.n10{ grid-template-columns:1fr 1fr; }
.tarot-pip{
  width:14px; height:14px;
  background:currentColor;
  opacity:.9;
}
.tarot-pips.suit-wands{ color:#B86B2A; }
.tarot-pips.suit-wands .tarot-pip{
  clip-path:polygon(50% 0, 62% 38%, 100% 38%, 70% 62%, 82% 100%, 50% 76%, 18% 100%, 30% 62%, 0 38%, 38% 38%);
  width:13px; height:13px; background:#B86B2A;
}
.tarot-pips.suit-cups{ color:#3A7CA5; }
.tarot-pips.suit-cups .tarot-pip{
  width:12px; height:14px; border-radius:0 0 50% 50% / 0 0 70% 70%;
  background:linear-gradient(180deg, #6AA8C8, #3A7CA5);
  position:relative;
}
.tarot-pips.suit-swords{ color:#5C6578; }
.tarot-pips.suit-swords .tarot-pip{
  width:3px; height:16px; border-radius:1px;
  background:linear-gradient(180deg, #D0D6E0, #5C6578);
  box-shadow:0 0 0 1px rgba(90,70,40,.15);
}
.tarot-pips.suit-pentacles{ color:#A89030; }
.tarot-pips.suit-pentacles .tarot-pip{
  width:13px; height:13px; border-radius:50%;
  background:radial-gradient(circle at 35% 30%, #F0E0A0, #A89030 70%);
  box-shadow:inset 0 0 0 1.5px #7A6820;
}

.tarot-face.major .tarot-art{
  background:linear-gradient(180deg, rgba(90,70,40,.08), rgba(40,50,80,.12));
}
.tarot-face.wands .tarot-face-foot{ border-top-color:rgba(184,107,42,.35); }
.tarot-face.cups .tarot-face-foot{ border-top-color:rgba(58,124,165,.35); }
.tarot-face.swords .tarot-face-foot{ border-top-color:rgba(92,101,120,.4); }
.tarot-face.pentacles .tarot-face-foot{ border-top-color:rgba(168,144,48,.4); }

.tarot-result-block{
  animation:tarotFadeIn .5s ease;
  cursor:pointer;
}
.tarot-result-block:active{ opacity:.92; }
.tarot-panel-label .tarot-copy-hint{
  margin-left:auto;
  font-family:"Noto Sans SC", sans-serif;
  font-style:normal; font-weight:500;
  font-size:11px; letter-spacing:.04em;
  color:rgba(201,164,92,.72);
}
/* 已有解答时收起牌面下的释义/关键词/名言，避免解答下方（实为牌注占位）空出一大截 */
.tarot-view.has-reading .tarot-mean,
.tarot-view.has-reading .tarot-kw,
.tarot-view.has-reading .tarot-quote{
  opacity:0 !important;
  max-height:0 !important;
  min-height:0 !important;
  margin:0 !important;
  padding:0 !important;
  overflow:hidden;
  pointer-events:none;
  transition:none !important;
}
.tarot-view.has-reading .tarot-table{ margin-bottom:8px; }
@keyframes tarotFadeIn{
  from{ opacity:0; transform:translateY(10px); }
  to{ opacity:1; transform:none; }
}
.tarot-result{
  font-family:"Cormorant Garamond", "Noto Sans SC", serif;
  font-size:15.5px; line-height:1.85; color:#F0E8D8;
  white-space:pre-wrap; word-break:break-word;
}

.tarot-view.is-drawing .tarot-btn{ pointer-events:none; }

html[data-theme="light"] .view.tarot-view,
html[data-theme="dark"] .view.tarot-view{ background:#0B0D16; }

/* ---------- 个人主页入口 ---------- */
.tarot-head .tarot-home-btn{
  color:var(--tarot-ink); flex:0 0 44px;
}
@media (hover: hover) and (pointer: fine){
.tarot-head .tarot-home-btn:hover{ background:rgba(201,164,92,.12); }
}

.tarot-home-sub{
  display:block; margin-top:2px;
  font-family:Cinzel, serif; font-size:10px;
  color:var(--tarot-muted); letter-spacing:.14em;
}

/* ---------- 塔罗个人主页：仪式室（非论坛社交壳） ---------- */
.view.tarot-home-view .tarot-body{
  padding:12px 14px 44px;
}
.thome-body{ position:relative; z-index:1; }

.thome-panel-label{
  display:flex; align-items:baseline; gap:10px; margin-bottom:14px;
}
.thome-panel-label span{
  font-family:Cinzel, serif; font-size:10px; letter-spacing:.22em;
  color:var(--tarot-gold); text-transform:uppercase;
}
.thome-panel-label b{
  font-size:13px; font-weight:600; color:var(--tarot-ink);
}

/* 身份室：金角框 + 帷幕背景 */
.thome-chamber{
  position:relative;
  margin:0 0 4px;
  border:1px solid var(--tarot-line);
  border-radius:4px;
  background:var(--tarot-panel);
  box-shadow:0 0 0 1px rgba(0,0,0,.35), 0 22px 48px -28px rgba(0,0,0,.85);
  overflow:hidden;
}
.thome-chamber::before,
.thome-chamber::after{
  content:''; position:absolute; width:12px; height:12px; z-index:3;
  border:1.5px solid var(--tarot-gold); opacity:.75; pointer-events:none;
}
.thome-chamber::before{ top:8px; left:8px; border-right:none; border-bottom:none; }
.thome-chamber::after{ bottom:8px; right:8px; border-left:none; border-top:none; }

.thome-veil{
  position:relative; height:88px; overflow:hidden;
  background:linear-gradient(135deg, #16122a 0%, #2a2148 48%, #152238 100%);
}
.thome-veil img{
  width:100%; height:100%; object-fit:cover; display:block;
  opacity:.72; filter:saturate(.85) brightness(.9);
}
.thome-veil-fallback{
  position:absolute; inset:0;
  background:
    radial-gradient(ellipse 70% 80% at 70% 20%, rgba(201,164,92,.28), transparent 55%),
    radial-gradient(ellipse 50% 70% at 15% 90%, rgba(90,60,140,.4), transparent 55%),
    radial-gradient(circle at 50% 50%, rgba(40,60,100,.2), transparent 60%);
}
.thome-veil-shade{
  position:absolute; inset:0;
  background:linear-gradient(180deg, transparent 20%, rgba(11,13,22,.55) 70%, rgba(22,26,42,.95) 100%);
  pointer-events:none;
}

.thome-chamber-inner{ position:relative; z-index:1; padding:0 16px 16px; margin-top:-28px; }

.thome-identity{
  display:flex; gap:14px; align-items:flex-start;
}
.thome-portrait{
  position:relative; flex:0 0 auto;
  width:84px; height:108px;
}
.thome-portrait-frame{
  position:absolute; inset:0; z-index:1; pointer-events:none;
  border:1.5px solid rgba(201,164,92,.55);
  box-shadow:
    inset 0 0 0 3px rgba(11,13,22,.85),
    0 0 0 1px rgba(201,164,92,.2),
    0 12px 28px -10px rgba(0,0,0,.7);
}
.thome-portrait-frame::before,
.thome-portrait-frame::after{
  content:''; position:absolute; width:8px; height:8px;
  border:1.2px solid var(--tarot-gold); opacity:.85;
}
.thome-portrait-frame::before{ top:4px; left:4px; border-right:none; border-bottom:none; }
.thome-portrait-frame::after{ bottom:4px; right:4px; border-left:none; border-top:none; }
.thome-ava{
  width:100%; height:100%; object-fit:cover; display:block;
  background:#1a1e30;
}
.thome-portrait-sigil{
  position:absolute; left:50%; bottom:-7px; z-index:2;
  transform:translateX(-50%);
  width:16px; height:16px;
  display:flex; align-items:center; justify-content:center;
  font-size:9px; color:var(--tarot-gold);
  background:#12141f; border:1px solid rgba(201,164,92,.45);
  box-shadow:0 0 10px rgba(201,164,92,.25);
}

.thome-identity-text{ flex:1; min-width:0; padding-top:4px; }
.thome-role{
  margin:0 0 4px;
  font-family:Cinzel, serif; font-size:9px; letter-spacing:.24em;
  color:var(--tarot-gold); text-transform:uppercase;
}
.thome-name{
  font-family:Cinzel, "Noto Sans SC", serif;
  font-size:21px; font-weight:650; color:#F3EBD8; letter-spacing:.06em;
  line-height:1.25;
}
.thome-bio{
  margin-top:8px;
  font-family:"Cormorant Garamond", "Noto Sans SC", serif;
  font-size:15px; line-height:1.65; color:var(--tarot-ink);
  white-space:pre-wrap; word-break:break-word;
}
.thome-bio.empty{
  color:var(--tarot-muted); font-style:italic;
}
.thome-meta{
  margin-top:8px; font-size:11.5px; color:var(--tarot-muted);
  letter-spacing:.04em;
}

/* 三栏奥义统计 */
.thome-counts{
  display:grid; grid-template-columns:repeat(3, 1fr); gap:8px;
  margin:16px 0 14px;
}
.thome-stat{
  position:relative;
  text-align:center; padding:10px 4px 9px;
  border:1px solid rgba(201,164,92,.22);
  background:rgba(8,10,18,.45);
}
.thome-stat::before{
  content:''; position:absolute; left:12%; right:12%; top:0; height:1px;
  background:linear-gradient(90deg, transparent, rgba(201,164,92,.55), transparent);
}
.thome-stat b{
  display:block;
  font-family:Cinzel, var(--font-num), serif;
  font-size:20px; font-weight:650; color:#F3EBD8; letter-spacing:.04em;
  line-height:1.1;
}
.thome-stat span{
  display:block; margin-top:4px;
  font-family:Cinzel, serif; font-size:8.5px; letter-spacing:.18em;
  color:var(--tarot-gold); text-transform:uppercase;
}
.thome-stat em{
  display:block; margin-top:2px;
  font-style:normal; font-size:11px; color:var(--tarot-muted);
}

/* 金箔方钮（对齐 .tarot-btn） */
.thome-actions{ display:flex; gap:10px; }
.thome-btn{
  flex:1; height:44px; border:1px solid var(--tarot-gold);
  border-radius:2px; cursor:pointer;
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  font-family:Cinzel, "Noto Sans SC", serif; font-size:13px; letter-spacing:.1em;
  transition:transform .2s, box-shadow .25s, background .25s, opacity .2s;
}
.thome-btn i{
  width:5px; height:5px; border-radius:50%;
  background:currentColor; box-shadow:0 0 8px currentColor; opacity:.7;
}
.thome-btn.primary{
  background:linear-gradient(180deg, #D4B36A 0%, #A8823A 100%);
  color:#1A1408; box-shadow:0 10px 28px -12px rgba(201,164,92,.7);
}
.thome-btn.ghost{
  background:transparent; color:var(--tarot-gold);
}
.thome-btn:active{ transform:scale(.97); }

/* ◆ 分隔线 */
.thome-divider{
  position:relative; height:28px; margin:6px 4% 10px;
}
.thome-divider span{
  position:absolute; left:0; right:0; top:50%; height:1px;
  background:linear-gradient(90deg, transparent, var(--tarot-gold), transparent);
  opacity:.45;
}
.thome-divider::before,
.thome-divider::after{
  content:'◆'; position:absolute; top:50%;
  transform:translate(-50%,-50%);
  font-size:8px; color:var(--tarot-gold);
}
.thome-divider::before{ left:0; }
.thome-divider::after{ left:100%; }

/* 秘藏室 */
.thome-vault{
  position:relative;
  padding:14px 14px 12px;
  border:1px solid var(--tarot-line);
  border-radius:4px;
  background:var(--tarot-panel);
  box-shadow:0 0 0 1px rgba(0,0,0,.35), 0 18px 40px -28px rgba(0,0,0,.8);
}
.thome-vault::before,
.thome-vault::after{
  content:''; position:absolute; width:10px; height:10px;
  border:1.5px solid var(--tarot-gold); opacity:.7; pointer-events:none;
}
.thome-vault::before{ top:6px; left:6px; border-right:none; border-bottom:none; }
.thome-vault::after{ bottom:6px; right:6px; border-left:none; border-top:none; }

.thome-tabs{
  display:flex; gap:4px; margin:0 0 12px; padding:0 0 10px;
  border-bottom:1px solid rgba(201,164,92,.18);
  overflow-x:auto; -webkit-overflow-scrolling:touch;
  scrollbar-width:none;
}
.thome-tabs::-webkit-scrollbar{ display:none; }
.thome-tab{
  flex:1 1 0; min-width:0; height:auto; padding:6px 6px 8px;
  border:none; background:transparent; color:var(--tarot-muted);
  cursor:pointer; position:relative;
  display:flex; flex-direction:column; align-items:center; gap:2px;
  transition:color .2s;
}
.thome-tab-en{
  font-family:Cinzel, serif; font-size:9px; letter-spacing:.16em;
  text-transform:uppercase; opacity:.85;
}
.thome-tab-zh{ font-size:12.5px; font-weight:600; letter-spacing:.02em; }
.thome-tab i{
  position:absolute; top:2px; right:4px;
  font-style:normal; font-size:9px; padding:0 5px;
  font-family:Cinzel, var(--font-num), serif;
  color:var(--tarot-gold); background:rgba(201,164,92,.12);
  border:1px solid rgba(201,164,92,.28);
}
.thome-tab.active{ color:#F3EBD8; }
.thome-tab.active::after{
  content:''; position:absolute; left:18%; right:18%; bottom:-11px; height:2px;
  background:linear-gradient(90deg, transparent, var(--tarot-gold), transparent);
  box-shadow:0 0 8px rgba(201,164,92,.45);
}
.thome-tab.active .thome-tab-en{ color:var(--tarot-gold); opacity:1; }

.thome-list{ display:flex; flex-direction:column; gap:8px; padding:2px 0 2px; }
.thome-add{
  width:100%; height:42px; border-radius:2px;
  border:1px dashed rgba(201,164,92,.42);
  background:rgba(201,164,92,.05);
  color:var(--tarot-gold);
  font-family:Cinzel, "Noto Sans SC", serif;
  font-size:12.5px; letter-spacing:.08em; cursor:pointer;
  display:inline-flex; align-items:center; justify-content:center; gap:6px;
}
.thome-add em{ font-style:normal; font-size:15px; opacity:.85; }
.thome-add:active{ background:rgba(201,164,92,.12); }
.thome-empty{
  text-align:center; padding:26px 14px;
  font-family:"Cormorant Garamond", "Noto Sans SC", serif;
  font-size:15.5px; font-style:italic; line-height:1.7; color:var(--tarot-muted);
}
.thome-empty span{
  display:block; margin-top:4px;
  font-family:"Noto Sans SC", sans-serif; font-style:normal;
  font-size:11.5px; letter-spacing:.02em; opacity:.75;
}
.thome-empty.soft{ padding-top:10px; }

.thome-item{
  display:flex; align-items:center; gap:11px; width:100%; text-align:left;
  padding:11px 11px; border-radius:2px;
  border:1px solid rgba(201,164,92,.22);
  background:rgba(8,10,18,.42);
  color:inherit; cursor:pointer;
  transition:background .15s, border-color .15s, box-shadow .2s;
}
.thome-item:active{
  background:rgba(201,164,92,.1);
  border-color:rgba(201,164,92,.4);
  box-shadow:0 0 0 1px rgba(201,164,92,.08);
}
.thome-item.muted{ cursor:default; opacity:.68; }

/* 过往记录：主行 + 编辑/转发/删除 */
.thome-rec{
  display:flex; flex-direction:column; gap:8px;
  padding:0; border-radius:2px;
  border:1px solid rgba(201,164,92,.22);
  background:rgba(8,10,18,.42);
  overflow:hidden;
}
.thome-rec .thome-rec-main{
  border:none; border-radius:0; background:transparent;
  box-shadow:none;
}
.thome-rec .thome-rec-main:active{
  background:rgba(201,164,92,.1);
  box-shadow:none;
}
.thome-rec-acts{
  display:flex; gap:8px; padding:0 11px 11px;
}
.thome-rec-acts button{
  flex:1; height:34px; border-radius:2px; border:1px solid rgba(201,164,92,.28);
  background:rgba(201,164,92,.08); color:#E8DCC0;
  font-size:12.5px; font-weight:600; cursor:pointer;
}
.thome-rec-acts button.pri{
  background:rgba(201,164,92,.22); border-color:rgba(201,164,92,.45); color:#F3EBD8;
}
.thome-rec-acts button.danger{
  color:#E08A7A; background:rgba(192,57,43,.1); border-color:rgba(192,57,43,.28);
}
.thome-rec-acts button:active{ opacity:.85; }
.save-btn.tarot-fwd-btn{
  background:rgba(201,164,92,.18); color:#8a6a28;
  border:1px solid rgba(201,164,92,.35);
}

.thome-item-glyph{
  flex:0 0 38px; width:38px; height:48px; border-radius:2px;
  display:flex; align-items:center; justify-content:center;
  font-family:Cinzel, serif; font-size:13px; color:var(--tarot-gold);
  background:
    linear-gradient(180deg, rgba(243,230,200,.12), rgba(201,164,92,.06)),
    rgba(201,164,92,.08);
  border:1px solid rgba(201,164,92,.32);
  box-shadow:inset 0 0 0 1px rgba(11,13,22,.35);
}
.thome-item-main{ flex:1; min-width:0; display:flex; flex-direction:column; gap:3px; }
.thome-item-main b{
  font-size:14.5px; font-weight:650; color:#F3EBD8;
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
}
.thome-item-main b em{
  font-style:normal; font-size:10.5px; font-weight:500;
  font-family:Cinzel, serif; letter-spacing:.06em;
  color:var(--tarot-gold); margin-left:4px; opacity:.9;
}
.thome-item-main span{
  font-size:12.5px; color:var(--tarot-muted);
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
}
.thome-item-main small{
  font-size:11px; color:rgba(232,224,208,.4);
}
.thome-chev{
  flex:0 0 16px; width:16px; height:16px;
  fill:none; stroke:var(--tarot-gold); stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round;
  opacity:.4;
}

.thome-check{
  display:flex; align-items:center; gap:8px;
  margin:10px 0; font-size:13.5px; color:var(--ink); cursor:pointer;
}
.thome-check input{ width:16px; height:16px; }
.pad-field{ display:block; margin:10px 0 0; }
.pad-field > span{ display:block; font-size:12px; color:var(--gray-2); margin-bottom:6px; }
.ghost-link{
  border:none; background:transparent; color:var(--gray-2);
  font-size:12.5px; cursor:pointer; padding:0; text-decoration:underline;
}
.danger-btn{
  width:100%; height:44px; border-radius:12px; border:none;
  background:rgba(255,59,48,.1); color:var(--danger);
  font-size:15px; font-weight:600; cursor:pointer;
}
.danger-btn:active{ background:rgba(255,59,48,.18); }
.center-card.tarot-record-card{ max-height:86vh; overflow:auto; }
.tr-reading{ min-height:120px; }
.tarot-mini-cards{
  display:flex; flex-wrap:wrap; gap:6px; padding:4px 0 10px;
}
.tr-chip{
  display:inline-flex; align-items:center; height:26px; padding:0 10px;
  border-radius:999px; font-size:12px; font-weight:600;
  background:rgba(201,164,92,.14); color:#8a6a28;
  border:1px solid rgba(201,164,92,.28);
}
.tr-chip.rev{ background:rgba(120,80,140,.12); color:#6a4a88; border-color:rgba(120,80,140,.28); }

/* 聊天内塔罗转发卡片 */
.msg-tarot{
  padding:0 !important; overflow:hidden; min-width:210px; max-width:268px;
  background:linear-gradient(165deg, #1a1628, #0d0f18) !important;
  color:#F0E8D8 !important;
  cursor:pointer;
  border:1px solid rgba(201,164,92,.28) !important;
}
.tt-card-top{ padding:12px 14px 6px; }
.tt-card-top > b{
  display:block; font-family:Cinzel, serif; font-size:11px;
  letter-spacing:.16em; color:#C9A45C; font-weight:600;
}
.tt-card-top .tt-q{
  margin-top:8px; font-size:14px; font-weight:650;
  color:#F3EBD8; line-height:1.4;
  display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden;
}
.tt-card-top .tt-meta{
  display:block; margin-top:6px; font-size:11px; opacity:.65;
}
.tt-chips{
  display:flex; flex-wrap:wrap; gap:4px; margin-top:8px;
}
.tt-chips i{
  font-style:normal; font-size:11px; font-weight:600;
  padding:2px 7px; border-radius:999px;
  background:rgba(201,164,92,.14); color:#E8D5A0;
  border:1px solid rgba(201,164,92,.28);
}
.tt-chips i.rev{
  background:rgba(120,80,140,.18); color:#D0B8E8;
  border-color:rgba(120,80,140,.35);
}
.tt-card-foot{
  padding:4px 14px 12px; font-size:11px; opacity:.55; line-height:1.4;
}
.tt-card-body{
  padding:0 14px 12px; font-size:13px; line-height:1.7;
  white-space:pre-wrap; word-break:break-word;
  max-height:42vh; overflow-y:auto;
  border-top:1px solid rgba(201,164,92,.18);
  padding-top:10px; margin-top:2px;
  color:rgba(240,232,216,.88);
}
.tt-card-body[hidden]{ display:none; }
.msg.mine .msg-tarot{
  background:linear-gradient(165deg, #242018, #14120e) !important;
}
