
/* ===== v48: woodcut cards. Parchment, ink rules, flat print colours by type, a wax seal for the cost ===== */
.card { --tc: #6a5a46; --tc2: #4a3e30; background-color: #e6d8b6 !important;
  background-image: repeating-linear-gradient(-35deg, rgba(23,17,12,.045) 0 1px, transparent 1px 5px), radial-gradient(ellipse at 50% 40%, rgba(255,250,235,.35), transparent 70%) !important;
  border: 2px solid #17110c !important; border-radius: 6px !important; color: #1d150e;
  box-shadow: inset 0 0 0 3px #e6d8b6, inset 0 0 0 5px var(--tc), 0 6px 14px rgba(0,0,0,.5) !important; padding: 20px 8px 8px !important; --rot: 0deg; --lift: 0px; }
.card.attack { --tc: #8a2a1f; --tc2: #5e1a14; }
.card.skill  { --tc: #34505c; --tc2: #22363e; }
.card.power  { --tc: #9a7428; --tc2: #6a4f18; }
.card .card-name { width: calc(100% + 2px); margin: 0 -1px 4px; padding: 2px 6px !important; background: var(--tc); color: #f3e6c4 !important;
  border: 1.5px solid #17110c; border-radius: 3px; box-shadow: inset 0 0 0 1px rgba(243,230,196,.25); text-shadow: 0 1px 0 rgba(0,0,0,.35); }
.card.upgraded .card-name { color: #d4f7c8 !important; }
.card.upgraded .card-name::after { margin-left: 2px; }
.card .card-art.has-img { border: 1.5px solid #17110c !important; border-radius: 2px !important; box-shadow: none !important; }
.card .card-art:not(.has-img) { background: rgba(23,17,12,.08) !important; border: 1px solid rgba(23,17,12,.3) !important; border-radius: 3px !important; }
.card .card-type { position: absolute; top: 6.5px; margin: 0 !important; font-size: 7.5px !important; letter-spacing: .1em !important; color: #5a4a36 !important; line-height: 12px; }
.card.r-common .rar { color: #6a5d4a; } .card.r-uncommon .rar { color: #2f5f7a; } .card.r-rare .rar { color: #8a6312; } .card.r-legendary .rar { color: #6a3a8a; }
.card .card-text { color: #1d150e !important; margin-top: 2px; }
.card .card-text .kw { color: #8a2a1f !important; }
.card .kw.hex { color: #5a2a7a !important; }
.card .card-text .boosted { color: #1f6b34 !important; }
.card .card-text .reduced { color: #b0221a !important; }
.card u.kwu { text-decoration-color: rgba(23,17,12,.55) !important; text-underline-offset: 2px; }
.card .key { color: #5a4a36 !important; }
.card .card-badge { position: absolute; left: 50%; bottom: 5px; transform: translateX(-50%); padding: 0 7px; border-radius: 3px; background: #17110c; color: #f3e6c4;
  font: 800 10px/15px var(--font-body); white-space: nowrap; box-shadow: 0 0 0 1px var(--tc); }
.card.has-badge .card-text { padding-bottom: 14px; }
.card .cost { top: -11px !important; left: -11px !important; width: 30px !important; height: 30px !important; color: #f3e6c4 !important; text-shadow: 0 1px 0 rgba(0,0,0,.5);
  background: #a0781f !important; border: 2px solid #17110c !important;
  box-shadow: inset 0 0 0 2px rgba(243,230,196,.5), inset 0 -3px 0 rgba(0,0,0,.18), 1px 2px 0 #17110c !important; border-radius: 50% 46% 52% 48% !important; }
.card.e-focus .cost { background: #4f6a2a !important; }
.card.e-mana .cost  { background: #2f4f74 !important; }
.card.unplayable .cost { background: #6b6358 !important; }
.card:has(.build-tag) .card-type { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card .build-tag.school-tag { right: -8px !important; top: 18px !important; }
.card:has(.build-tag) .card-type { letter-spacing: .03em !important; }
.card .build-tag { background: #e6d8b6 !important; border: 1.5px solid #17110c !important; }
.card.r-uncommon { box-shadow: inset 0 0 0 3px #e6d8b6, inset 0 0 0 5px var(--tc), 0 0 0 2px #2f5f7a, 0 6px 14px rgba(0,0,0,.5) !important; }
.card.r-rare { box-shadow: inset 0 0 0 3px #e6d8b6, inset 0 0 0 5px var(--tc), 0 0 0 2px #b48a3c, 0 0 12px rgba(180,138,60,.35), 0 6px 14px rgba(0,0,0,.5) !important; }
.card.r-legendary { box-shadow: inset 0 0 0 3px #e6d8b6, inset 0 0 0 5px var(--tc), 0 0 0 2px #6a3a8a, 0 0 14px rgba(106,58,138,.45), 0 6px 14px rgba(0,0,0,.5) !important; }
.hand .card:hover:not(.unplayable), .card.selectable:hover { box-shadow: inset 0 0 0 3px #e6d8b6, inset 0 0 0 5px var(--tc), 0 0 0 2px #f3d58c, 0 18px 30px rgba(0,0,0,.6) !important; }
.card.long-name .card-name { font-size: .84em !important; white-space: normal !important; letter-spacing: -.01em; }
.card.xlong-name .card-name { font-size: .74em !important; white-space: normal !important; letter-spacing: -.015em; }

/* the energy seal on the table matches the cards */
.energy-orb { background: #a0781f !important; border: 3px solid #17110c !important; color: #f3e6c4 !important; text-shadow: 0 1px 0 rgba(0,0,0,.5);
  box-shadow: inset 0 0 0 4px rgba(243,230,196,.45), inset 0 -6px 0 rgba(0,0,0,.15), 2px 3px 0 #17110c !important; border-radius: 50% 47% 52% 49% !important; }
.energy-orb.focus { background: #4f6a2a !important; } .energy-orb.mana { background: #2f4f74 !important; }
/* panels: dark ink boards with a printed double rule, no glossy gradients */
.modal:not(.title-modal) { background-color: #1d1611 !important; background-image: repeating-linear-gradient(-35deg, rgba(234,223,196,.035) 0 1px, transparent 1px 7px) !important;
  border: 3px solid #0f0b08 !important; border-radius: 10px !important; box-shadow: inset 0 0 0 2px #6d5a44, 0 20px 60px rgba(0,0,0,.6) !important; }
.btn.primary { background: #b48a3c !important; color: #17110c !important; border: 2px solid #17110c !important; box-shadow: inset 0 0 0 1.5px rgba(243,230,196,.55), 2px 3px 0 #0f0b08 !important; border-radius: 6px !important; }
.btn.primary:hover:not(:disabled) { background: #c99d4c !important; }
.btn:not(.primary) { border-radius: 6px; }
.option-card, .relic-tile, .gear-row, .set-row { border-radius: 8px !important; }
/* gear hover */
.gear-tip { position: fixed; z-index: 9200; width: 280px; padding: 10px 12px; border-radius: 8px; background: #1d1611; border: 2px solid #0f0b08; box-shadow: inset 0 0 0 1.5px #6d5a44, 0 12px 30px rgba(0,0,0,.6);
  color: #e9dcc0; pointer-events: none; opacity: 0; transition: opacity .1s; text-align: left; }
.gear-tip.show { opacity: 1; }
.gear-tip .gt-head { display: flex; gap: 10px; align-items: center; }
.gear-tip .gt-head img { width: 44px; height: 44px; }
.gear-tip .gt-head b { display: block; font-family: var(--font-display); color: #f3d58c; font-size: 15px; }
.gear-tip .gt-head small { color: #a8987c; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.gear-tip .gt-text { margin: 8px 0 0; font-size: 13px; line-height: 1.4; }
.gear-tip .gt-set { margin-top: 8px; padding-top: 8px; border-top: 1px solid #4a3c2e; }
.gear-tip .gt-set em { display: block; font-style: normal; font-size: 12px; color: #c9b58a; margin-bottom: 4px; }
.gear-tip .gt-set em .ico { width: 15px; height: 15px; vertical-align: -3px; }
.gear-tip .gt-set p { margin: 3px 0 0; font-size: 12.5px; line-height: 1.35; display: flex; gap: 6px; }
.gear-tip .gt-set p span { flex: 0 0 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; font-size: 10px; font-weight: 800; border: 1px solid currentColor; }
.gear-tip .gt-set p.off { color: #7d7364; }
.gear-tip .gt-set p.on { color: #ffffff; font-weight: 700; }
.gear-tip .gt-set p.on span { background: #b48a3c; color: #17110c; border-color: #17110c; }
/* the rival's remains */
.rival-scene.remains { grid-template-columns: 1fr !important; }
.rival-scene.remains .rv-remains { width: 100%; max-width: 440px; justify-self: center; aspect-ratio: 3 / 1; object-fit: cover; border: 2px solid #17110c; border-radius: 4px; box-shadow: inset 0 0 0 1px rgba(234,223,196,.2); }

/* ===== v49: card frame cosmetics ===== */
body.frame-oxblood .card, .shop-item .shop-cards.frame-oxblood .card, body.frame-gilded .card, .shop-item .shop-cards.frame-gilded .card, body.frame-slate .card, .shop-item .shop-cards.frame-slate .card { }
/* Scorched: burnt edges and an ember glow, the inner rule burned away */
body.frame-oxblood .card, .shop-item .shop-cards.frame-oxblood .card { border: 2px solid #1a0d06 !important;
  background-image: radial-gradient(ellipse 75% 70% at 50% 48%, transparent 58%, rgba(92,40,12,.35) 78%, rgba(40,14,4,.85) 96%, #140602 100%),
    repeating-linear-gradient(-35deg, rgba(23,17,12,.05) 0 1px, transparent 1px 5px) !important;
  box-shadow: inset 0 0 0 1px rgba(255,140,60,.35), 0 0 10px rgba(214,96,34,.55), 0 0 2px #ff9a4a, 0 6px 14px rgba(0,0,0,.55) !important; }
body.frame-oxblood .card .card-name, .shop-item .shop-cards.frame-oxblood .card .card-name { border-color: #1a0d06 !important; box-shadow: 0 0 6px rgba(214,96,34,.45), inset 0 0 0 1px rgba(255,170,90,.3) !important; }
body.frame-oxblood .card .card-art.has-img, .shop-item .shop-cards.frame-oxblood .card .card-art.has-img { border-color: #2a1206 !important; box-shadow: 0 0 0 1px rgba(214,96,34,.4) !important; }
body.frame-oxblood .card .cost, .shop-item .shop-cards.frame-oxblood .card .cost { box-shadow: inset 0 0 0 2px rgba(255,170,90,.45), 0 0 8px rgba(214,96,34,.7), 1px 2px 0 #17110c !important; }
/* Gilt Filigree: vellum, a double gold rule and curled corners */
body.frame-gilded .card, .shop-item .shop-cards.frame-gilded .card { background-color: #f2dfa6 !important; border: 2px solid #6a4f18 !important;
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A//www.w3.org/2000/svg%27%20viewBox%3D%270%200%2020%2020%27%3E%3Cg%20transform%3D%27rotate%280%2010%2010%29%27%20fill%3D%27none%27%20stroke%3D%27%239a7428%27%20stroke-width%3D%271.6%27%20stroke-linecap%3D%27round%27%3E%3Cpath%20d%3D%27M2%2018%20L2%206%20Q2%202%206%202%20L18%202%27/%3E%3Cpath%20d%3D%27M5%2014%20Q5%205%2014%205%27/%3E%3Ccircle%20cx%3D%278.5%27%20cy%3D%278.5%27%20r%3D%271.6%27%20fill%3D%27%23b48a3c%27%20stroke%3D%27none%27/%3E%3C/g%3E%3C/svg%3E"), url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A//www.w3.org/2000/svg%27%20viewBox%3D%270%200%2020%2020%27%3E%3Cg%20transform%3D%27rotate%2890%2010%2010%29%27%20fill%3D%27none%27%20stroke%3D%27%239a7428%27%20stroke-width%3D%271.6%27%20stroke-linecap%3D%27round%27%3E%3Cpath%20d%3D%27M2%2018%20L2%206%20Q2%202%206%202%20L18%202%27/%3E%3Cpath%20d%3D%27M5%2014%20Q5%205%2014%205%27/%3E%3Ccircle%20cx%3D%278.5%27%20cy%3D%278.5%27%20r%3D%271.6%27%20fill%3D%27%23b48a3c%27%20stroke%3D%27none%27/%3E%3C/g%3E%3C/svg%3E"), url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A//www.w3.org/2000/svg%27%20viewBox%3D%270%200%2020%2020%27%3E%3Cg%20transform%3D%27rotate%28270%2010%2010%29%27%20fill%3D%27none%27%20stroke%3D%27%239a7428%27%20stroke-width%3D%271.6%27%20stroke-linecap%3D%27round%27%3E%3Cpath%20d%3D%27M2%2018%20L2%206%20Q2%202%206%202%20L18%202%27/%3E%3Cpath%20d%3D%27M5%2014%20Q5%205%2014%205%27/%3E%3Ccircle%20cx%3D%278.5%27%20cy%3D%278.5%27%20r%3D%271.6%27%20fill%3D%27%23b48a3c%27%20stroke%3D%27none%27/%3E%3C/g%3E%3C/svg%3E"), url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A//www.w3.org/2000/svg%27%20viewBox%3D%270%200%2020%2020%27%3E%3Cg%20transform%3D%27rotate%28180%2010%2010%29%27%20fill%3D%27none%27%20stroke%3D%27%239a7428%27%20stroke-width%3D%271.6%27%20stroke-linecap%3D%27round%27%3E%3Cpath%20d%3D%27M2%2018%20L2%206%20Q2%202%206%202%20L18%202%27/%3E%3Cpath%20d%3D%27M5%2014%20Q5%205%2014%205%27/%3E%3Ccircle%20cx%3D%278.5%27%20cy%3D%278.5%27%20r%3D%271.6%27%20fill%3D%27%23b48a3c%27%20stroke%3D%27none%27/%3E%3C/g%3E%3C/svg%3E"), radial-gradient(ellipse at 50% 35%, rgba(255,250,228,.5), transparent 70%), linear-gradient(160deg, rgba(255,226,140,.35), rgba(214,168,72,.18) 55%, rgba(176,128,40,.3)) !important;
  background-size: 18px 18px, 18px 18px, 18px 18px, 18px 18px, auto, auto !important; background-repeat: no-repeat !important;
  background-position: 5px 5px, calc(100% - 5px) 5px, 5px calc(100% - 5px), calc(100% - 5px) calc(100% - 5px), center, center !important;
  box-shadow: inset 0 0 0 2px #f2dfa6, inset 0 0 0 3.5px #b48a3c, inset 0 0 0 5px #f2dfa6, inset 0 0 0 6px #9a7428, 0 0 0 1px #d4a94c, 0 0 12px rgba(212,169,76,.35), 0 6px 14px rgba(0,0,0,.5) !important; }
body.frame-gilded .card .card-name, .shop-item .shop-cards.frame-gilded .card .card-name { border: 1.5px solid #9a7428 !important; box-shadow: inset 0 0 0 1px #e2c27a, 0 1px 0 #6a4f18 !important; }
body.frame-gilded .card .card-art.has-img, .shop-item .shop-cards.frame-gilded .card .card-art.has-img { border: 1.5px solid #9a7428 !important; box-shadow: 0 0 0 1px #e2c27a !important; }
body.frame-gilded .card .cost, .shop-item .shop-cards.frame-gilded .card .cost { border-color: #6a4f18 !important; box-shadow: inset 0 0 0 2px #e2c27a, 1px 2px 0 #6a4f18 !important; }
body.frame-gilded .card .card-type, .shop-item .shop-cards.frame-gilded .card .card-type { color: #7a5a1c !important; top: 7.5px !important; right: 26px !important; }
body.frame-gilded .card.mini .card-type, .shop-item .shop-cards.frame-gilded .card.mini .card-type { top: 6px !important; right: 12px !important; }
/* Nightprint: the block itself, pale ink on black */
body.frame-slate .card, .shop-item .shop-cards.frame-slate .card { background-color: #17120e !important; color: #eadfc4 !important; border: 2px solid #050302 !important;
  background-image: repeating-linear-gradient(-35deg, rgba(234,223,196,.05) 0 1px, transparent 1px 5px) !important;
  box-shadow: inset 0 0 0 3px #17120e, inset 0 0 0 4.5px #d8c79f, 0 6px 14px rgba(0,0,0,.6) !important; }
body.frame-slate .card .card-text, .shop-item .shop-cards.frame-slate .card .card-text { color: #eadfc4 !important; }
body.frame-slate .card .card-text .kw, .shop-item .shop-cards.frame-slate .card .card-text .kw { color: #f08a6a !important; }
body.frame-slate .card .kw.hex, .shop-item .shop-cards.frame-slate .card .kw.hex { color: #c9a2ea !important; }
body.frame-slate .card .card-text .boosted, .shop-item .shop-cards.frame-slate .card .card-text .boosted { color: #9fe0aa !important; }
body.frame-slate .card .card-text .reduced, .shop-item .shop-cards.frame-slate .card .card-text .reduced { color: #ff9a8a !important; }
body.frame-slate .card .card-type, .shop-item .shop-cards.frame-slate .card .card-type, body.frame-slate .card .key, .shop-item .shop-cards.frame-slate .card .key { color: #b8a888 !important; }
body.frame-slate .card u.kwu, .shop-item .shop-cards.frame-slate .card u.kwu { text-decoration-color: rgba(234,223,196,.5) !important; }
body.frame-slate .card .card-art.has-img, .shop-item .shop-cards.frame-slate .card .card-art.has-img { border-color: #d8c79f !important; }
body.frame-slate .card .card-name, .shop-item .shop-cards.frame-slate .card .card-name { border-color: #d8c79f !important; }
body.frame-slate .card .card-badge, .shop-item .shop-cards.frame-slate .card .card-badge { background: #eadfc4; color: #17120e; }
body.frame-slate .card .build-tag, .shop-item .shop-cards.frame-slate .card .build-tag { background: #17120e !important; border-color: #d8c79f !important; }
body.frame-slate .card.r-rare .rar, .shop-item .shop-cards.frame-slate .card.r-rare .rar { color: #e2b552; } body.frame-slate .card.r-uncommon .rar, .shop-item .shop-cards.frame-slate .card.r-uncommon .rar { color: #8fc1df; } body.frame-slate .card.r-legendary .rar, .shop-item .shop-cards.frame-slate .card.r-legendary .rar { color: #c9a2ea; } body.frame-slate .card.r-common .rar, .shop-item .shop-cards.frame-slate .card.r-common .rar { color: #b8a888; }
.card .card-type { white-space: nowrap; overflow: hidden; }
.card.mini { padding-top: 16px !important; }
.card.mini .card-type { top: 4.5px !important; font-size: 5.6px !important; letter-spacing: .04em !important; }

.card .card-type { text-overflow: clip !important; }

/* ===== v51 ===== */
.card .card-type, .card:has(.build-tag) .card-type { left: 24px !important; right: 9px !important; text-align: right !important; padding: 0 !important; }
.card:has(.build-tag) .card-type { right: 19px !important; }
body.frame-gilded .card .card-type, .shop-item .shop-cards.frame-gilded .card .card-type { right: 24px !important; }
.card.mini .card-type, .card.mini:has(.build-tag) .card-type { left: 17px !important; right: 6px !important; }
.card.mini:has(.build-tag) .card-type { right: 12px !important; }
.card .card-name {
  height: auto !important; min-height: 26px !important; line-height: 1.1 !important; }

/* ===== v52: one size for everything on a card ===== */
:root { --card-w: 146px !important; --card-h: 210px !important; }
@media (max-width: 860px) { :root { --card-w: 128px !important; --card-h: 198px !important; } }
.card-row .card { --card-w: 168px; --card-h: 242px; }
.up-compare .card, .card-info .card.big { --card-w: 180px; --card-h: 260px; }
.card .card-art.has-img, .card-row .card .card-art.has-img, .card-info .card.big .card-art.has-img, .card.denser .card-art.has-img { height: auto !important; aspect-ratio: 2 / 1; flex: 0 0 auto; }
.card .card-text, .hand .card.power .card-text, .card.dense .card-text, .card.denser .card-text { font-size: 11.5px !important; line-height: 1.22 !important; }
.card-row .card .card-text, .up-compare .card .card-text, .card-info .card.big .card-text { font-size: 12px !important; }
.card .card-name { font-size: 13px !important; letter-spacing: 0 !important; white-space: normal !important; overflow: visible !important; overflow-wrap: normal; word-break: normal; text-wrap: balance; }
.card-row .card .card-name, .up-compare .card .card-name, .card-info .card.big .card-name { font-size: 15px !important; }
.shop-cards .card.mini .card-text, .card-dex .card.mini .card-text { font-size: 8px !important; line-height: 1.2 !important; }
.card.mini .card-name { font-size: 9.5px !important; min-height: 18px !important; }
.card.upgraded .card-name::after { content: none !important; }
@media (max-width: 860px) { .card .card-text, .hand .card.power .card-text, .card.dense .card-text, .card.denser .card-text { font-size: 10.5px !important; } }

.rc-hint { margin: -4px 0 8px !important; font-size: 12px !important; opacity: .75; }
.up-compare.rc-up { z-index: 9300; }

/* ---- card expansion frames ---- */
/* Earned: achievement spec cards, a bronze-and-gold frame between Rare and Legendary */
.card.r-earned { box-shadow: inset 0 0 0 3px #e6d8b6, inset 0 0 0 5px var(--tc), 0 0 0 2px #a8742a, 0 0 0 4px #3a2a14, 0 0 16px rgba(214,160,60,.5), 0 6px 14px rgba(0,0,0,.5) !important; }
.card.r-earned .rar { color: #8a5a12 !important; font-weight: 700; letter-spacing: .04em; }
.card.r-earned::before { content: "★"; position: absolute; top: 4px; left: 50%; transform: translateX(-50%); font-size: 11px; color: #a8742a; pointer-events: none; }
/* Endless: a deep blue-black frame with a faint pulse */
.card.r-endless { box-shadow: inset 0 0 0 3px #e6d8b6, inset 0 0 0 5px var(--tc), 0 0 0 2px #1f3a5a, 0 0 16px rgba(60,120,200,.45), 0 6px 14px rgba(0,0,0,.5) !important; }
.card.r-endless .rar { color: #1f4a7a !important; font-weight: 700; }
/* armor tooltips: the game terms an armor description uses, explained underneath */
.gear-tip .gt-terms { margin: 8px 0 0; padding: 7px 9px; border-radius: 6px; background: rgba(0,0,0,.25); border-left: 2px solid rgba(243,213,140,.45); }
.gear-tip .gt-terms p { margin: 0; font-size: 11.5px; line-height: 1.35; opacity: .9; } .gear-tip .gt-terms p + p { margin-top: 5px; }
.gear-tip .gt-terms b { color: #f3d58c; }

/* Rimefrost: a deep icy blue card like a frozen Nightprint: frosted pale edges, ice cracks in the bottom corners, a glossy top and a cold shimmer */
@property --rime { syntax: "<percentage>"; inherits: false; initial-value: 130%; }
body.frame-rimefrost .card, .shop-item .shop-cards.frame-rimefrost .card { background-color: #5197c2 !important; color: #e4f3fb !important; border: 2px solid #2c6488 !important;
  background-image: linear-gradient(105deg, transparent 30%, rgba(230,248,255,.16) 42%, rgba(240,251,255,.26) 50%, rgba(230,248,255,.16) 58%, transparent 70%),
    linear-gradient(180deg, rgba(200,236,255,.28) 0%, rgba(200,236,255,.08) 22%, transparent 40%), url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2040%2040%27%3E%3Cg%20fill%3D%27none%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%3Cpath%20d%3D%27M1%2039%20L10%2032%20L14%2022%20L13%2013%20M10%2032%20L20%2030%20L29%2032%20M14%2022%20L21%2018%20M20%2030%20L24%2025%20M4%2037%20L3%2027%20L6%2021%27%20stroke%3D%27%23bfe6f7%27%20stroke-width%3D%271.1%27%20opacity%3D%27.85%27%2F%3E%3Cpath%20d%3D%27M2%2038%20L11%2031%20L15%2021%20M11%2031%20L21%2029%27%20stroke%3D%27%23ffffff%27%20stroke-width%3D%27.6%27%20opacity%3D%27.9%27%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E"), url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2040%2040%27%3E%3Cg%20transform%3D%27translate%2840%200%29%20scale%28-1%201%29%27%3E%3Cg%20fill%3D%27none%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%3Cpath%20d%3D%27M1%2039%20L10%2032%20L14%2022%20L13%2013%20M10%2032%20L20%2030%20L29%2032%20M14%2022%20L21%2018%20M20%2030%20L24%2025%20M4%2037%20L3%2027%20L6%2021%27%20stroke%3D%27%23bfe6f7%27%20stroke-width%3D%271.1%27%20opacity%3D%27.85%27%2F%3E%3Cpath%20d%3D%27M2%2038%20L11%2031%20L15%2021%20M11%2031%20L21%2029%27%20stroke%3D%27%23ffffff%27%20stroke-width%3D%27.6%27%20opacity%3D%27.9%27%2F%3E%3C%2Fg%3E%3C%2Fg%3E%3C%2Fsvg%3E"),
    radial-gradient(ellipse 80% 76% at 50% 46%, transparent 55%, rgba(150,210,238,.3) 78%, rgba(196,234,250,.65) 95%, #def5ff 100%),
    linear-gradient(160deg, #6aaed6 0%, #5197c2 55%, #4486b2 100%) !important;
  background-size: 300% 100%, auto, 34px 34px, 34px 34px, auto, auto !important; background-repeat: no-repeat !important;
  background-position: var(--rime) 0, center, 2px calc(100% - 2px), calc(100% - 2px) calc(100% - 2px), center, center !important;
  box-shadow: inset 0 0 14px rgba(150,215,245,.45), 0 0 0 1px #8fd0ee, 0 0 12px rgba(143,208,238,.55), 0 6px 14px rgba(0,0,0,.6) !important; }
@keyframes rimeShimmer { 0%, 55% { --rime: 130%; } 100% { --rime: -30%; } }
/* the shimmer is a light rule (:where), so the game's own card animations (drawing, a denied play, legendary glow) still win */
:where(body.frame-rimefrost) .card, :where(.shop-item .shop-cards.frame-rimefrost) .card { animation: rimeShimmer 6s linear infinite; }
:where(body.gfx-low.frame-rimefrost) .card { animation: none; }
@media (prefers-reduced-motion: reduce) { :where(body.frame-rimefrost) .card, :where(.shop-item .shop-cards.frame-rimefrost) .card { animation: none; } }
body.frame-rimefrost .card .card-text, .shop-item .shop-cards.frame-rimefrost .card .card-text, body.frame-rimefrost .card.curse .card-text, .shop-item .shop-cards.frame-rimefrost .card.curse .card-text { color: #f4fbff !important; text-shadow: 0 1px 1px rgba(16,52,78,.55); }
body.frame-rimefrost .card .card-text .kw, .shop-item .shop-cards.frame-rimefrost .card .card-text .kw { color: #ffd29a !important; }
body.frame-rimefrost .card .kw.hex, .shop-item .shop-cards.frame-rimefrost .card .kw.hex { color: #f1dcff !important; }
body.frame-rimefrost .card .card-text .boosted, .shop-item .shop-cards.frame-rimefrost .card .card-text .boosted { color: #a6f0b4 !important; }
body.frame-rimefrost .card .card-text .reduced, .shop-item .shop-cards.frame-rimefrost .card .card-text .reduced { color: #ffa092 !important; }
body.frame-rimefrost .card .card-type, .shop-item .shop-cards.frame-rimefrost .card .card-type, body.frame-rimefrost .card .key, .shop-item .shop-cards.frame-rimefrost .card .key { color: #e2f4fc !important; }
body.frame-rimefrost .card u.kwu, .shop-item .shop-cards.frame-rimefrost .card u.kwu { text-decoration-color: rgba(228,243,251,.5) !important; }
body.frame-rimefrost .card .card-name, .shop-item .shop-cards.frame-rimefrost .card .card-name { border-color: #bfe6f7 !important; box-shadow: 0 0 7px rgba(143,208,238,.7), inset 0 0 0 1px rgba(225,245,255,.45) !important; }
body.frame-rimefrost .card .card-art.has-img, .shop-item .shop-cards.frame-rimefrost .card .card-art.has-img { border-color: #bfe6f7 !important; box-shadow: 0 0 0 1px rgba(143,208,238,.6), 0 0 8px rgba(143,208,238,.5) !important; }
body.frame-rimefrost .card .cost, .shop-item .shop-cards.frame-rimefrost .card .cost { box-shadow: inset 0 0 0 2px rgba(214,240,252,.75), 0 0 9px rgba(143,208,238,.85), 1px 2px 0 #06121d !important; }
body.frame-rimefrost .card .card-badge, .shop-item .shop-cards.frame-rimefrost .card .card-badge { background: #dff2fb; color: #5197c2; }
body.frame-rimefrost .card .build-tag, .shop-item .shop-cards.frame-rimefrost .card .build-tag { background: #5197c2 !important; border-color: #bfe6f7 !important; }
body.frame-rimefrost .card.r-rare .rar, .shop-item .shop-cards.frame-rimefrost .card.r-rare .rar { color: #f0c868; } body.frame-rimefrost .card.r-uncommon .rar, .shop-item .shop-cards.frame-rimefrost .card.r-uncommon .rar { color: #cfeeff; } body.frame-rimefrost .card.r-legendary .rar, .shop-item .shop-cards.frame-rimefrost .card.r-legendary .rar { color: #d3b0f2; } body.frame-rimefrost .card.r-common .rar, .shop-item .shop-cards.frame-rimefrost .card.r-common .rar { color: #e2f4fc; }
