/* Arcalink play.html - Card pick (7-1: silver / gold / forbidden): the overlay, the three cards and their frames. Owner: B5 (frames), C3 (layout).
   Art plan 4-4. Silver = forged steel (blue-steel frame, rivets, polish lines). Gold = gold leaf (double line, ripple corner ornaments, rays,
   brass base). Forbidden = chipped obsidian frame, cracks leaking red, the picture breaks out of the frame; the other two cards sink.
   Motion: transform and opacity only. The forbidden picture is swapped in arca-icons-cards.js (FORB_ART). */
/* ---------- card pick (7-1: 銀 / 金 / 禁呪) */
#cards { top: 0; bottom: 0; z-index: 8; background: rgba(6,8,18,.82); display: flex; flex-direction: column; padding: calc(env(safe-area-inset-top) + 12px) 12px calc(env(safe-area-inset-bottom) + 12px); gap: 10px; pointer-events: auto; overflow: hidden; }
#cards.forb { background: radial-gradient(circle at 50% 45%, rgba(40,4,16,.94), rgba(2,1,4,.98) 72%); }
#cards.forb::after { content: ""; position: absolute; inset: 0; background: #fff; opacity: 0; pointer-events: none; animation: flashout .7s ease-out; }
@keyframes flashout { 0% { opacity: .5; } 100% { opacity: 0; } }
#cards .cth { text-align: center; } #cards .cth h2 { margin: 0; font-size: 20px; letter-spacing: .1em; } #cards .cth p { margin: 2px 0 0; font-size: 12px; opacity: .8; }

.cd { --bw: 3px; --b: 12px; --bi: 10px; will-change: transform, opacity; position: relative; flex: 1; min-height: 0; max-height: 210px; border: 0; padding: 0; display: flex; align-items: stretch; opacity: 0; transform: perspective(700px) rotateY(88deg); animation: flipin .6s cubic-bezier(.2,.8,.25,1) forwards; animation-delay: var(--d, 0s); text-align: left;
  clip-path: polygon(var(--b) 0, calc(100% - var(--b)) 0, 100% var(--b), 100% calc(100% - var(--b)), calc(100% - var(--b)) 100%, var(--b) 100%, 0 calc(100% - var(--b)), 0 var(--b)); }
@keyframes flipin { 0% { opacity: 0; transform: perspective(700px) rotateY(88deg) scale(.9); } 60% { opacity: 1; } 100% { opacity: 1; transform: perspective(700px) rotateY(0) scale(1); } }
.cd .face { position: absolute; inset: var(--bw); display: flex; overflow: hidden;
  clip-path: polygon(var(--bi) 0, calc(100% - var(--bi)) 0, 100% var(--bi), 100% calc(100% - var(--bi)), calc(100% - var(--bi)) 100%, var(--bi) 100%, 0 calc(100% - var(--bi)), 0 var(--bi)); }
.cd .art { width: 96px; flex: none; display: flex; align-items: center; justify-content: center; position: relative; }
.cd .gl { width: 64px; height: 64px; z-index: 1; display: flex; }
.cd .tx { flex: 1; min-width: 0; padding: 10px 10px 8px 4px; display: flex; flex-direction: column; justify-content: center; gap: 3px; }
.cd .tr { font-size: 11px; font-weight: 800; letter-spacing: .2em; opacity: .95; display: flex; align-items: center; }
.cd .tr::before { content: ""; display: block; flex: none; width: 0; height: 11px; margin-right: 6px; }
.cd .nm { font-size: 18px; font-weight: 900; } .cd .ds { font-size: 12px; line-height: 1.4; opacity: .92; }
.cd .fit { font-size: 11px; opacity: .7; } .cd .fit.yes { color: #9dffbe; opacity: .85; }
.cd .pick { position: absolute; inset: 0; background: transparent; border: 0; z-index: 6; cursor: pointer; }
.cd .rr { position: absolute; right: 8px; bottom: 6px; z-index: 7; min-height: 44px; min-width: 96px; font-size: 12px; padding: 4px 8px; }
#cards .cd .rr.rr { min-width: 56px; padding: 2px 4px; flex-direction: column; gap: 0; }   /* (round 7) mark above, price below: a 3-digit price still fits 56 px, so no text meets the button (the fit row ends 56 px from the right) */
.cd .rrs1, .cd .rrs2 { display: none; }
/* narrow screens (320 px): the text column flows around the 引き直す button in the bottom-right corner instead of running under it. Two floats on the right:
   a 1 px spacer as tall as the column minus the button, then a box the size of the button (the "bottom float"); the rows wrap or narrow beside it */
@media (max-width: 359px), (max-height: 620px) {   /* (round 7) short screens too: the rank moves beside the name, which gives the text the row it needs */
  .cd { container-type: size; }                    /* (the card's height comes from the column, never from its text: cqh below is the card height) */
  .cd .tx { display: block; padding-top: 13px; }
  .cd .tx > * + * { margin-top: 3px; }
  .cd .tx > .rrs2 + *, .cd .tx > .rrs1 + * { margin-top: 0; }
  .cd .rrs1 { display: block; float: right; width: 1px; height: calc(100cqh - 69px); margin: 0; }   /* card 3 px frame + 8 px padding on top; the button's top is 50 px above the card bottom */
  .cd .rrs2 { display: block; float: right; clear: right; width: 62px; height: 52px; margin: 0; }   /* the button is 56 px wide, 8 px from the card edge */
  #cards .cd .fit { max-width: none; }
  .cd .tx > .tr { font-size: 10px; line-height: 12px; margin: 0; }   /* (11-30) the rank (銀 / 金 / 禁呪) stays on its own row above the name, as on wider screens: beside the name it took the name's width (「鐘の連な/り」) */
  .cd .tx > .tr + .nm { margin-top: 1px; }
  .cd .art, .cd.t1 .art { width: 72px; } .cd.t1 .gl, .cd .gl { width: 54px; height: 54px; margin-top: 0; } .cd.t0 .gl { width: 54px; height: 54px; }
  .cd.t0 .art::before { width: 60px; height: 60px; } .cd.t1 .art::before { width: 96px; height: 96px; margin: -48px 0 0 -48px; } .cd.t1 .art::after { top: calc(50% + 24px); width: 52px; margin-left: -26px; }
  .cd .nm { font-size: 15px; line-height: 1.25; } .cd .ds { font-size: 11px; line-height: 1.34; }
  .cd .ds.long { font-size: 10.5px; line-height: 1.3; }   /* a long text is a step smaller, so it ends above the card's bottom (the card's height is the screen's, not the text's) */
  #cards .cd .tx > .fit { display: block; height: 18px; line-height: 18px; white-space: nowrap; margin-top: 2px; }   /* a block, not a flex box: its line flows beside the button's float instead of dropping below it */
  #cards .cd .fit .fl, #cards .cd .fit .rw1 { vertical-align: middle; } #cards .cd .fit .fl { margin-right: 4px; } #cards .cd .fit .rw1 .gem, #cards .cd .fit .rw1 > svg, #cards .cd .fit .rw1 .wi.s { width: 18px; height: 18px; }
  .cd .ds.xlong { font-size: 10px; line-height: 1.2; }
  @container (max-height: 135px) { .cd .ds.xlong { font-size: 9.5px; line-height: 1.18; } }   /* the shortest cards (screens ~560 px high with the first-time line): only the longest text goes down one more step */
  .cd .tx > .ds { margin-top: 2px; } #cards:has(.opnote) .cd .tx { padding-top: 3px; }
}
}
.cd .orn { display: none; }                       /* the old text ornaments: the gold corners are drawn by .face::before now */

/* ---- silver: forged steel in moonlight */
.cd.t0 { background: linear-gradient(135deg, #eef3ff, #7e8aae 30%, #aab8d8 50%, #56617f 75%, #8d9bc4); }
.cd.t0 .face { background: repeating-linear-gradient(115deg, rgba(190,205,240,.06) 0 1px, transparent 1px 7px), linear-gradient(180deg, #17203f, #0e1530); }
.cd.t0 .face::before { content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background:
    radial-gradient(circle at 50% 50%, #fff 0 1px, #aab8d8 1.6px, #3a4670 3px, transparent 3.6px) 7px 7px / 10px 10px no-repeat,
    radial-gradient(circle at 50% 50%, #fff 0 1px, #aab8d8 1.6px, #3a4670 3px, transparent 3.6px) calc(100% - 7px) 7px / 10px 10px no-repeat,
    radial-gradient(circle at 50% 50%, #fff 0 1px, #aab8d8 1.6px, #3a4670 3px, transparent 3.6px) 7px calc(100% - 7px) / 10px 10px no-repeat,
    radial-gradient(circle at 50% 50%, #fff 0 1px, #aab8d8 1.6px, #3a4670 3px, transparent 3.6px) calc(100% - 7px) calc(100% - 7px) / 10px 10px no-repeat,
    linear-gradient(90deg, transparent, #eef3ff 18%, #eef3ff 82%, transparent) 0 0 / 100% 1px no-repeat; }
.cd.t0 .art { background: radial-gradient(circle at 42% 40%, rgba(63,208,255,.2), transparent 62%), linear-gradient(90deg, rgba(120,140,190,.14), transparent); border-right: 1px solid rgba(170,184,216,.35); }
.cd.t0 .art::before { content: ""; position: absolute; width: 74px; height: 74px; border-radius: 50%; border: 1.5px solid rgba(200,246,255,.5); border-color: rgba(200,246,255,.6) rgba(200,246,255,.12) rgba(200,246,255,.05) rgba(200,246,255,.3); }  /* the thin arc behind the picture */
.cd.t0 .gl { width: 64px; height: 64px; }
.cd.t0 .tr { color: #aab8d8; --dia: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 11 11'%3E%3Cpath d='M5.5 0L11 5.5L5.5 11L0 5.5Z' fill='%23c9d4f0' stroke='%2356617f'/%3E%3C/svg%3E"); }
.cd.t0 .tr::before { width: 11px; background: var(--dia) no-repeat 0 0 / 11px 11px; }
.cd.t0 .nm { color: #f2f5ff; }
.cd.t0 .face::after { content: ""; position: absolute; inset: 0; z-index: 2; background: linear-gradient(105deg, rgba(220,235,255,0) 38%, rgba(220,235,255,.4) 50%, rgba(220,235,255,0) 62%); transform: translateX(-120%); animation: shine 1.1s ease-out forwards; animation-delay: calc(var(--d, 0s) + .5s); pointer-events: none; }
@keyframes shine { to { transform: translateX(120%); } }

/* ---- gold: gold leaf and jewellery */
.cd.t1 { --bw: 6px; background: linear-gradient(135deg, #fff2b0, #d9a82a 30%, #fff0a0 52%, #a8761a 78%, #f0cf85); }
.cd.t1 .face { background: linear-gradient(90deg, #3a280e, #2f200d 45%, #46331a); box-shadow: inset 0 0 0 1px #a8761a, inset 0 0 0 3px #1f1408, inset 0 0 0 4px rgba(233,184,74,.8); }
.cd.t1 .face::before { content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;   /* ripple ornament: 3 concentric arcs in each corner */
  background: radial-gradient(circle at 0 0, transparent 5px, #e9b84a 5px 6px, transparent 6px 9px, #e9b84a 9px 10px, transparent 10px 13px, #e9b84a 13px 14px, transparent 14px) 5px 5px / 16px 16px no-repeat, radial-gradient(circle at 100% 0, transparent 5px, #e9b84a 5px 6px, transparent 6px 9px, #e9b84a 9px 10px, transparent 10px 13px, #e9b84a 13px 14px, transparent 14px) calc(100% - 5px) 5px / 16px 16px no-repeat, radial-gradient(circle at 0 100%, transparent 5px, #e9b84a 5px 6px, transparent 6px 9px, #e9b84a 9px 10px, transparent 10px 13px, #e9b84a 13px 14px, transparent 14px) 5px calc(100% - 5px) / 16px 16px no-repeat, radial-gradient(circle at 100% 100%, transparent 5px, #e9b84a 5px 6px, transparent 6px 9px, #e9b84a 9px 10px, transparent 10px 13px, #e9b84a 13px 14px, transparent 14px) calc(100% - 5px) calc(100% - 5px) / 16px 16px no-repeat; }
.cd.t1 .art { width: 104px; }
.cd.t1 .art::before { content: ""; position: absolute; width: 112px; height: 112px; left: 50%; top: 50%; margin: -56px 0 0 -56px;   /* 12 rays behind the picture */
  background: repeating-conic-gradient(rgba(255,222,130,.34) 0 7.5deg, transparent 7.5deg 15deg); -webkit-mask-image: radial-gradient(circle, #000 18%, transparent 68%); mask-image: radial-gradient(circle, #000 18%, transparent 68%); animation: spin 40s linear infinite; will-change: transform; }
@keyframes spin { to { transform: rotate(360deg); } }
.cd.t1 .art::after { content: ""; position: absolute; left: 50%; top: calc(50% + 28px); width: 62px; height: 8px; margin-left: -31px; background: linear-gradient(180deg, #f0cf85, #b88a44 55%, #6e4f24); clip-path: polygon(8px 0, calc(100% - 8px) 0, 100% 100%, 0 100%); }  /* brass base */
.cd.t1 .gl { width: 72px; height: 72px; margin-top: -8px; }
.cd.t1 .tr { color: #e9b84a; --dia: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 11 11'%3E%3Cpath d='M5.5 0L11 5.5L5.5 11L0 5.5Z' fill='%23ffd866' stroke='%237a5416'/%3E%3C/svg%3E"); }
.cd.t1 .tr::before { width: 22px; background: var(--dia) no-repeat 0 0 / 11px 11px, var(--dia) no-repeat 11px 0 / 11px 11px; }
.cd.t1 .nm { color: #fffbe3; text-shadow: 0 1px 0 #7a5416, 0 0 8px rgba(255,220,120,.35); } .cd.t1 .ds { opacity: 1; color: #f1e3bd; }
.cd.t1 .face::after { content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 60%; z-index: 2; background: linear-gradient(90deg, rgba(255,235,160,0), rgba(255,235,160,.3) 50%, rgba(255,235,160,0)); animation: band 4.5s linear infinite; pointer-events: none; will-change: transform; }
@keyframes band { 0% { transform: translateX(0); } 100% { transform: translateX(400%); } }
.cd .mote { position: absolute; width: 4px; height: 4px; border-radius: 50%; background: var(--gold); bottom: 10px; opacity: 0; animation: mote 3.2s ease-in infinite; z-index: 5; pointer-events: none; }
@keyframes mote { 0% { opacity: 0; transform: translateY(0); } 20% { opacity: 1; } 100% { opacity: 0; transform: translateY(-150px) translateX(var(--mx, 8px)); } }

/* ---- forbidden: chipped obsidian, light leaking from the cracks, the picture breaks out; the others sink */
.cd.t2 { --bw: 0px; clip-path: none; overflow: visible; z-index: 2; scale: 1.06; background: none; }
.cd.t2::before { content: ""; position: absolute; inset: 0; z-index: 0; border: 5px solid #16060c; box-shadow: inset 0 0 0 4px #e0264f, inset 0 0 0 5px rgba(255,196,212,.55);   /* the red line is 4 px: as thick as the gold frame's leaf (6 px frame) */
  background: radial-gradient(ellipse at 22% 125%, rgba(190,10,60,.6), transparent 62%), linear-gradient(180deg, #0c0308, #0a0206);
  clip-path: polygon(12px 0, 36% 0, 38% 6px, 43% 0, calc(100% - 16px) 0, 100% 14px, 100% 40%, calc(100% - 7px) 44%, 100% 49%, 100% calc(100% - 12px), calc(100% - 12px) 100%, 62% 100%, 59% calc(100% - 7px), 54% 100%, 14px 100%, 0 calc(100% - 18px), 5px calc(100% - 30px), 0 calc(100% - 36px), 0 12px); }
.cd.t2::after { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: .4; animation: crackpulse 1.6s ease-in-out infinite; will-change: opacity;   /* cracks leak the forbidden colour */
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cg fill='none' stroke='%23ff2a55' stroke-width='1.3' vector-effect='non-scaling-stroke'%3E%3Cpath d='M0 20L6 24L5 31L11 36' /%3E%3Cpath d='M100 52L95 56L96 63L91 68L93 76' /%3E%3Cpath d='M44 100L46 94L42 90L45 84' /%3E%3Cpath d='M38 0L37 5L41 8' /%3E%3Cpath d='M100 14L96 12L94 7' /%3E%3C/g%3E%3C/svg%3E") 0 0 / 100% 100% no-repeat;
  clip-path: polygon(12px 0, 36% 0, 38% 6px, 43% 0, calc(100% - 16px) 0, 100% 14px, 100% 40%, calc(100% - 7px) 44%, 100% 49%, 100% calc(100% - 12px), calc(100% - 12px) 100%, 62% 100%, 59% calc(100% - 7px), 54% 100%, 14px 100%, 0 calc(100% - 18px), 5px calc(100% - 30px), 0 calc(100% - 36px), 0 12px); }
@keyframes crackpulse { 0%, 100% { opacity: .3; } 50% { opacity: 1; } }
.cd.t2 .face { inset: 0; overflow: visible; clip-path: none; background: none; z-index: 1; }
.cd.t2 .art { width: 124px; overflow: visible; }
.cd.t2 .art::before { content: ""; position: absolute; width: 150px; height: 150px; left: 50%; top: 50%; margin: -88px 0 0 -75px; background: radial-gradient(circle, rgba(255,240,243,.85) 0%, rgba(255,42,85,.5) 30%, transparent 66%); animation: breathe 2.6s ease-in-out infinite; will-change: transform; z-index: 0; pointer-events: none; }
.cd.t2 .gl { width: 124px; height: 124px; margin-left: 0; opacity: 1; transform: translate(0, -24px); }
.cd.t2 .gl .ai { animation: breathe 2.6s ease-in-out infinite; will-change: transform; }
@keyframes breathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.04); } }
.cd.t2 .art::after { content: ""; position: absolute; left: 8px; top: -28px; width: 34px; height: 76px; z-index: 2; transform-origin: 50% 36%; animation: chainsway 3s ease-in-out infinite alternate; will-change: transform; pointer-events: none;   /* three thick links wound over the frame's top edge (the card top is at y 28), the last one broken */
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 34 76' fill='none'%3E%3Cg stroke='%230a0206' stroke-width='9'%3E%3Crect x='8' y='3' width='18' height='26' rx='8'/%3E%3Cpath d='M17 27V47'/%3E%3Crect x='11' y='42' width='12' height='26' rx='6'/%3E%3C/g%3E%3Cg stroke='%23ff2a55' stroke-width='5'%3E%3Crect x='8' y='3' width='18' height='26' rx='8'/%3E%3Cpath d='M17 27V47'/%3E%3Crect x='11' y='42' width='12' height='26' rx='6'/%3E%3C/g%3E%3Cpath d='M12 9V22M15 47V62' stroke='%23fff0f3' stroke-width='1.6'/%3E%3Cpath d='M6 24H28' stroke='%230a0206' stroke-width='5'/%3E%3Cpath d='M6 24H28' stroke='%23ff6a8a' stroke-width='2.4'/%3E%3C/svg%3E") no-repeat 0 0 / 100% 100%; }
@keyframes chainsway { 0% { transform: rotate(-9deg); } 100% { transform: rotate(9deg); } }
.cd.t2 .tx { position: relative; z-index: 2; overflow: hidden; margin: 8px 10px 8px 0; padding-left: 12px; border-radius: 0; background: linear-gradient(90deg, rgba(10,2,6,0), rgba(10,2,6,.9) 12%); }
.cd.t2 .tx > * { position: relative; z-index: 1; }
.cd.t2 .tx::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 200%; -webkit-mask-image: linear-gradient(90deg, #000 0, #000 6px, transparent 22px); mask-image: linear-gradient(90deg, #000 0, #000 6px, transparent 22px); z-index: 0; pointer-events: none; will-change: transform; animation: embers 5s linear infinite;   /* 8 black embers rise (the tile repeats every card height) */
  background:
    radial-gradient(circle at 10% 82%, #0a0206 0 1.6px, #ff2a55 2.2px, transparent 3px) 0 0 / 100% 50% repeat-y,
    radial-gradient(circle at 24% 40%, #0a0206 0 1.2px, #ff2a55 1.8px, transparent 2.6px) 0 0 / 100% 50% repeat-y,
    radial-gradient(circle at 38% 66%, #0a0206 0 1.8px, #ff5a7a 2.4px, transparent 3.2px) 0 0 / 100% 50% repeat-y,
    radial-gradient(circle at 51% 22%, #0a0206 0 1.4px, #ff2a55 2px, transparent 2.8px) 0 0 / 100% 50% repeat-y,
    radial-gradient(circle at 63% 90%, #0a0206 0 1.4px, #ff2a55 2px, transparent 2.8px) 0 0 / 100% 50% repeat-y,
    radial-gradient(circle at 74% 52%, #0a0206 0 1.8px, #ff5a7a 2.4px, transparent 3.2px) 0 0 / 100% 50% repeat-y,
    radial-gradient(circle at 86% 30%, #0a0206 0 1.2px, #ff2a55 1.8px, transparent 2.6px) 0 0 / 100% 50% repeat-y,
    radial-gradient(circle at 93% 74%, #0a0206 0 1.6px, #ff2a55 2.2px, transparent 3px) 0 0 / 100% 50% repeat-y; }
@keyframes embers { from { transform: translateY(0); } to { transform: translateY(-50%); } }
.cd.t2 .pillar { position: absolute; left: -4px; width: 124px; top: -90px; bottom: -90px; background: radial-gradient(ellipse at center, rgba(255,240,243,.8) 0%, rgba(255,42,85,.45) 35%, transparent 70%); opacity: 0; animation: pillar 1.2s ease-out forwards; animation-delay: var(--d, 0s); z-index: 0; pointer-events: none; will-change: transform, opacity; }
@keyframes pillar { 0% { opacity: 0; transform: scaleX(.2); } 30% { opacity: 1; transform: scaleX(1.2); } 100% { opacity: .5; transform: scaleX(1); } }
.cd.t2 .tr { color: #ff6a8a; --dia: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 11 11'%3E%3Cpath d='M5.5 0L11 5.5L5.5 11L0 5.5Z' fill='%23ff2a55' stroke='%23fff0f3'/%3E%3C/svg%3E"); --ring: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 11' fill='none' stroke='%23fff0f3' stroke-width='1.6'%3E%3Cpath d='M9 2.5A4 4 0 1 0 9 8.5'/%3E%3Cpath d='M10.5 4L13 5.5L10.5 7' stroke='%23ff2a55'/%3E%3C/svg%3E"); }
.cd.t2 .tr::before { width: 52px; background: var(--ring) no-repeat 0 0 / 14px 11px, var(--dia) no-repeat 16px 0 / 11px 11px, var(--dia) no-repeat 28px 0 / 11px 11px, var(--dia) no-repeat 40px 0 / 11px 11px; }
.cd.t2 .nm { color: #fff0f3; text-shadow: 0 2px 0 #ff2a55; }
/* the other two cards sink under ink when a forbidden card is in the offer */
#cards.forb .cd.t0::after { content: ""; position: absolute; inset: 0; z-index: 5; background: rgba(10,12,24,.4); pointer-events: none; }      /* only the silver cards sink: the gold card and the 秘奥 keep their full brightness (the 秘奥's violet frame is the strongest thing on the screen) */

.cd.sel { transform: scale(1.03); }
/* (11-30) a card that has turned over (play-screens.js: animationend of flipin / pillar) is drawn as a card already seen: no 3D transform, no
   will-change - the same picture, one composited layer fewer per card (owner's phone: a 禁呪 card corner left black under load) */
#cards .cd.flat { animation: none; opacity: 1; transform: none; will-change: auto; }
#cards .cd.t2 .pillar.done { animation: none; opacity: .5; transform: none; will-change: auto; }
.cd.t0.sel { background: linear-gradient(135deg, #fff, #aab8d8 30%, #f4f8ff 50%, #8d9bc4 75%, #dbe5ff); }   /* selected silver stays silver (it turned gold before), only brighter */ .cd.t1.sel { background: linear-gradient(135deg, #fff, #f0cf85 50%, #fff2b0); }
.cd .el3 { display: flex; gap: 6px; margin-top: 4px; position: relative; z-index: 5; } .cd .el3 .btn { min-height: 44px; flex: 1; padding: 2px; font-size: 13px; }
@media (max-height: 700px) {      /* (round 7) the 禁呪 card on short screens: a narrower picture and a plain rank mark leave the text column its width, and the rows their height */
  .cd.t2 .art { width: 98px; } .cd.t2 .gl { width: 98px; height: 98px; transform: translate(0, -10px); } .cd.t2 .art::before { width: 120px; height: 120px; margin: -66px 0 0 -60px; }
  .cd.t2 .tx { margin: 4px 8px 4px 0; padding-left: 10px; padding-top: 4px; }
  .cd.t2 .tr::before { width: 16px; background: var(--ring) no-repeat 0 0 / 14px 11px; margin-right: 4px; }
  .cd .tx { padding-right: 8px; }
  #cards .cd .rw1 .gem, #cards .cd .rw1 > svg, #cards .cd .rw1 .wi.s { width: 20px; height: 20px; } }
/* 621-700 px high (375x667, 390x664), 360 px and wider: the card keeps its centred column, but the rank sits on the name's row (right edge) and the 禁呪 text is as wide as in the short layout */
@media (min-height: 621px) and (max-height: 700px) and (min-width: 360px) { .cd .tx { position: relative; } .cd .tx > .tr { position: absolute; top: 10px; right: 20px; } .cd .tx > .nm { margin-top: 0; } .cd.t2 .tx > .tr { top: 10px; right: 14px; } }
