/* 金箔版畫風卡面（使用者 2026-12-05 選定「甲 金箔墨線」）：金箔底＋深紫墨線稿，卡背深紫金線 */
:root {
  --base: url(#fc-gold);           /* 卡面底 */
  --ink: #2A1B4D;                  /* 線稿顏色：深紫墨 */
  --hole: url(#fc-gold);           /* 線稿裡要「挖空」露出底色的地方 */
  --veil: rgba(255, 246, 214, .18);
  --edge-1: #C9A04A; --edge-2: #9C7633; --edge-3: #6E5021;
  --grain-blend: multiply; --grain-op: .32;
  --sheen-op: .75;
}
.fc { display: block; width: 100%; height: 100%; }
.fc .fc-base { fill: var(--base); }
.fc .ink { fill: none; stroke: var(--ink); stroke-linecap: round; stroke-linejoin: round; }
.fc .solid { fill: var(--ink); stroke: none; }
.fc .hole { fill: var(--hole); stroke: none; }
.fc .fc-veil { fill: var(--veil); }
.fc .fc-window { clip-path: url(#fc-clip); opacity: .55; }
.fc .fc-name { font: 900 13px "Noto Serif TC", serif; letter-spacing: 5px; }
.fc .fc-roman { font: 700 12px "Noto Serif TC", serif; letter-spacing: 2px; }
.fc .fc-han { font-family: "Noto Serif TC", serif; font-weight: 900; }
.fc .fc-num { font-family: "Noto Serif TC", serif; font-weight: 900; }
/* 卡背：深紫底＋金箔線 */
.fc-back .bk-base { fill: url(#fc-night); }
.fc-back .bk-line, .fc-back .ink { fill: none; stroke: url(#fc-line); }
.fc-back .bk-rays { opacity: .5; }
.fc-back .bk-fill { fill: url(#fc-line); }
/* 卡背上的眼睛：深紫底、金線（與金卡上的配色反過來） */
.fc-back .hole { fill: #1D1545; }
.fc-back .solid { fill: url(#fc-line); }

/* 卡片外殼：厚度、紙紋、光澤 */
.foil { position: absolute; inset: 0; border-radius: 9px; overflow: hidden; backface-visibility: hidden;
  box-shadow: 0 1px 0 var(--edge-1), 0 2px 0 var(--edge-2), 0 3px 0 var(--edge-3), 0 4px 0 var(--edge-3),
              0 20px 34px -6px rgba(8, 3, 24, .7); }
.foil.back-face { transform: rotateY(180deg); --edge-2: #4A2F7E; }
.foil .grain { position: absolute; inset: 0; pointer-events: none; mix-blend-mode: var(--grain-blend); opacity: var(--grain-op);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.1' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .45 0 0 0 0 .35 0 0 0 0 .2 0 0 0 1 0'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)'/%3E%3C/svg%3E"); }
/* 光澤：一道斜光，位置由 --sx 控制（滑鼠傾斜時跟著跑），沒操作時偶爾自己掃過 */
.foil .sheen { position: absolute; top: -10%; bottom: -10%; left: -100%; width: 300%; pointer-events: none;
  mix-blend-mode: soft-light; opacity: var(--sheen-op);
  background: linear-gradient(105deg, transparent 38%, rgba(255,255,255,.15) 44%, rgba(255,255,255,.95) 50%, rgba(255,255,255,.15) 56%, transparent 62%);
  transform: translateX(var(--sx, -30%)); transition: transform .2s ease-out; }
.foil .sheen.idle { animation: sweep 7s ease-in-out infinite; }
@keyframes sweep { 0%, 62% { transform: translateX(-38%); } 85%, 100% { transform: translateX(38%); } }
@media (prefers-reduced-motion: reduce) { .foil .sheen.idle { animation: none; } }
