/* The card, drawn from the approved prototype cards (prototype-cards/cards.css, the slab concept). Classes are prefixed wc- so they cannot touch the story styles. */
.wc-stage {
  --night: #0B1030; --surface: #151C45; --surface-2: #1C2558; --primary: #4B45E6; --blue: #3F7BF2;
  --sky: #6DBBFA; --cyan: #5DF2E2; --mint: #52D6A6; --coral: #FF8F94; --text: #F2F3FB;
  --muted: #B4BAE0; --faint: #8A92C4; --gold: #FFD84A;
}
.wc-stage { font-family: var(--font-body, Inter, system-ui, sans-serif); color: var(--text); }
/* ---------- tier palettes ---------- */
.wc-t-common { --frame: linear-gradient(160deg, #8C92A8, #5E647B 50%, #7C8299); --rule: #8A90A6; --face: #161B36; --glow: transparent; --accent: #B4BAE0; --label: #C9CDDC; --tierc: #C9CDDC; --bezel: #6E7489; }
.wc-t-rare { --frame: linear-gradient(150deg, #F4F6FF 0%, #A9B1CE 22%, #E9ECF8 42%, #8D96B8 62%, #F7F8FF 80%, #A3ABC8 100%); --rule: #5F688E; --face: #151C45; --glow: #6DBBFA; --accent: #6DBBFA; --label: #E6E9F5; --tierc: #DDE3F7; --bezel: #C9D0E8; }
.wc-t-epic { --frame: linear-gradient(150deg, #A6F5D8 0%, #2FB386 25%, #8EF2CD 45%, #17765A 68%, #6EE6BC 86%, #1E8F6E 100%); --rule: #0C4D3B; --face: #0F2236; --glow: #52D6A6; --accent: #52D6A6; --label: #D8FBEE; --tierc: #8EF2CD; --bezel: #6EE6BC; }
.wc-t-legendary { --frame: linear-gradient(150deg, #FFF6C8 0%, #E3A93A 22%, #FFE580 42%, #A8701F 64%, #FFF0A8 82%, #C98A2B 100%); --rule: #6B4210; --face: #1D1732; --glow: #FFC94A; --accent: #FFD84A; --label: #FFF3C4; --tierc: #FFE27A; --bezel: #FFD84A; }

/* ---------- the card (5:7), sized by --cw, inner units in cqw ---------- */
.wc-card { position: relative; width: var(--cw); aspect-ratio: 5 / 7; container-type: inline-size; border-radius: 5.2cqw; background: var(--frame); box-shadow: 0 0 0 .35cqw rgba(0,0,0,.35), 0 3cqw 8cqw rgba(0,0,0,.55); }
.wc-card .wc-rule1, .wc-card .wc-rule2, .wc-card .wc-rule3 { position: absolute; pointer-events: none; border-radius: 4.4cqw; }
.wc-card .wc-rule1 { inset: 1.8cqw; border: .45cqw solid var(--rule); }
.wc-card .wc-rule2 { inset: 3cqw; border: .3cqw solid var(--rule); border-radius: 3.8cqw; opacity: .8; }
.wc-card .wc-rule3 { inset: .7cqw; border: .3cqw solid #FFF6C8; border-radius: 4.8cqw; opacity: .9; }
.wc-t-common .wc-rule2, .wc-t-common .wc-rule3, .wc-t-rare .wc-rule3, .wc-t-epic .wc-rule3 { display: none; }
.wc-face { position: absolute; inset: 4.4cqw; border-radius: 3.4cqw; background-color: var(--face); overflow: hidden; display: flex; flex-direction: column; padding: 2.4cqw 3.2cqw 2.4cqw; }

.wc-face > * { position: relative; z-index: 2; }
.wc-topbar { height: 10cqw; display: flex; align-items: center; justify-content: space-between; }
.wc-addr { font: 600 4.1cqw/1 var(--font-body); color: var(--text); letter-spacing: .01em; }
.wc-gem { width: 8.4cqw; height: 8.4cqw; transform: rotate(45deg); border-radius: 1.6cqw; overflow: hidden; box-shadow: 0 0 0 .7cqw var(--bezel), 0 0 2.4cqw var(--glow); margin-right: 1.4cqw; }
.wc-gem svg { width: 100%; height: 100%; display: block; }
.wc-window { position: relative; height: 66cqw; margin-top: 1.4cqw; border-radius: 2.2cqw; overflow: hidden; box-shadow: 0 0 0 .6cqw var(--bezel), inset 0 0 3cqw rgba(0,0,0,.5); background: var(--night); }
.wc-window .wc-holo { position: absolute; inset: 0; pointer-events: none; }
.wc-t-rare .wc-window .wc-holo { background: repeating-linear-gradient(118deg, rgba(255,120,200,.0) 0 3%, rgba(255,120,200,.22) 6%, rgba(120,220,255,.24) 10%, rgba(140,255,190,.2) 14%, rgba(255,240,140,.18) 18%, rgba(255,120,200,.0) 22%), linear-gradient(118deg, transparent 30%, rgba(255,255,255,.28) 46%, transparent 60%); mix-blend-mode: color-dodge; opacity: .9; }
.wc-role { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 1.3cqw; padding: 1.6cqw 0 .8cqw; }
.wc-pname { white-space: nowrap; font: 800 9cqw/1.02 var(--font-display); letter-spacing: -.015em; color: var(--text); }
.wc-desc { font: 500 3.75cqw/1.32 var(--font-body); color: var(--muted); text-wrap: balance; }
.wc-t-legendary .wc-desc, .wc-t-epic .wc-desc { color: #D3D7EE; }
.wc-foot { display: flex; align-items: center; justify-content: space-between; padding-top: 1.8cqw; border-top: .3cqw solid rgba(180,186,224,.25); }
.wc-tierword { display: inline-flex; align-items: center; gap: 1.2cqw; font: 700 3.6cqw/1 var(--font-display); color: var(--tierc); }
.wc-tierword .wc-mark { height: 3.4cqw; width: auto; fill: currentColor; }
.wc-serial { font: 600 3.3cqw/1 var(--font-body); color: var(--muted); font-variant-numeric: tabular-nums; }
.wc-t-common .wc-window .wc-art { filter: saturate(.9); }

/* reverse holo (epic): foil on the face, never inside the art window */
.wc-t-epic .wc-face::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: repeating-linear-gradient(62deg, rgba(82,214,166,0) 0 2.2cqw, rgba(142,242,205,.13) 3cqw, rgba(109,187,250,.12) 4.2cqw, rgba(82,214,166,0) 5.4cqw),
              radial-gradient(circle at 80% 20%, rgba(142,242,205,.22), transparent 55%); }
/* legendary: one gold foil sweep across the whole card */
.wc-t-legendary .wc-sweep { position: absolute; inset: 0; border-radius: 5.2cqw; pointer-events: none; z-index: 6;
  background: linear-gradient(122deg, transparent 34%, rgba(255,236,160,.0) 38%, rgba(255,236,160,.32) 45%, rgba(255,255,255,.4) 47%, rgba(255,236,160,.28) 50%, transparent 58%); mix-blend-mode: soft-light; }
.wc-t-legendary .wc-face::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(circle at 50% 0%, rgba(255,216,74,.18), transparent 60%); }
/* breakout: the character layer sits over the window rim and the frame */
.wc-breakout { position: absolute; z-index: 5; pointer-events: none; overflow: visible; }
.wc-breakout svg { width: 100%; height: 100%; overflow: visible; display: block; }

/* ---------- slab (graded case, Monad method) ---------- */
.wc-slab { position: relative; padding: calc(var(--cw) * .045); padding-top: 0; border-radius: calc(var(--cw) * .07); width: calc(var(--cw) * 1.09);
  background: linear-gradient(160deg, rgba(255,255,255,.16), rgba(255,255,255,.04) 40%, rgba(255,255,255,.1));
  box-shadow: inset 0 0 0 2px rgba(255,255,255,.28), inset 0 0 0 calc(var(--cw) * .012) rgba(255,255,255,.05), 0 0 calc(var(--cw) * .09) var(--glow), 0 0 0 calc(var(--cw) * .004) var(--glow); }
.wc-t-common .wc-slab { box-shadow: inset 0 0 0 2px rgba(255,255,255,.22), 0 2px 30px rgba(0,0,0,.6); }
.wc-label { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin: calc(var(--cw) * .04) 0 calc(var(--cw) * .04); padding: calc(var(--cw) * .024) calc(var(--cw) * .036); border-radius: calc(var(--cw) * .02); background-color: #F2F3FB; color: #0B1030; }
.wc-label .wc-l1 { font: 800 calc(var(--cw) * .044)/1.1 var(--font-display); color: #0B1030; }
.wc-label .wc-l2 { white-space: nowrap; font: 500 calc(var(--cw) * .032)/1.2 var(--font-body); color: #3A4170; margin-top: calc(var(--cw) * .006); }
.wc-label .wc-r1 { font: 800 calc(var(--cw) * .05)/1 var(--font-display); color: #0B1030; text-align: right; }
.wc-label .wc-r2 { font: 600 calc(var(--cw) * .03)/1.2 var(--font-body); color: #3A4170; text-align: right; margin-top: calc(var(--cw) * .006); }
.wc-label .wc-lbl-l, .wc-label .wc-lbl-r { display: flex; flex-direction: column; }
