/* The Store preview: an offer drawn the way the game draws it, for the offer editor (StoreOfferPreview.razor).

   The sprites in store-art/ are the game's own UI kit (Assets/_DiceBack/Art/UiKit and Art/Store in the Unity
   repo); the nine-sliced ones are byte-for-byte copies, cut here with border-image at the same borders the
   kit's manifest gives, so a panel stretches exactly as it does in the game. The two fonts are the game's
   (fonts/, each with its licence beside it).

   Everything is measured in the game's design units (its canvas is 1080 units wide). One unit is --u, a
   length worked out from the width of the frame the piece sits in, so a piece keeps its proportions at any
   width. A piece's children are placed with --x --y --w --h (units from its top left corner).

   The numbers are the game's own, from StoreScreenBuilder in the Unity repo (BuildHero, BuildPack,
   BuildOffer, BuildSection, BuildSkin): a banner is 952 x 360, a card 952 x 236, a coin pack tile
   306 x 420 (three to a row of 952), a sale strip 952 x 68, a skin card 468 x 484. Every piece is drawn at
   the same scale: the frame is one Store column (952 units) wide. */

@font-face {
    font-family: "Lilita One";
    src: url("fonts/LilitaOne-Regular.ttf") format("truetype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Nunito";
    src: url("fonts/Nunito-Bold.ttf") format("truetype");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* ------------------------------------------------------------------ the stage */

/* The pale well the game's Store scrolls in, the same in the panel's light and dark themes: it is a picture of the game. */
.store-stage {
    background: #E9F0FB;
    border: 1px solid #C9D8F0;
    border-radius: var(--mud-default-borderradius);
    padding: 16px 18px 18px;
    color: #14294F;
}

.store-stage-heading {
    font-family: "Lilita One", "Segoe UI", system-ui, sans-serif;
    font-size: 1.125rem;
    line-height: 1.2;
    color: #14294F;
    margin: 0;
}

.store-stage-sub {
    font-family: "Nunito", "Segoe UI", system-ui, sans-serif;
    font-weight: 700;
    font-size: 0.75rem;
    color: #47608C;
    margin: 0;
}
.store-stage-heading ~ .store-frame { margin-top: 8px; }

/* The frame is what a unit is measured against: one column of the Store, 952 units wide. */
.store-frame { container-type: inline-size; margin: 0 auto; }
.store-piece, .store-row { --u: calc(100cqw / 952); }

/* Coin packs stand three to a row, 17 units apart. */
.store-row { display: flex; gap: calc(17 * var(--u)); padding-top: calc(12 * var(--u)); }
/* The packs beside the one being edited: there for comparison. */
.store-neighbour { opacity: 0.5; filter: saturate(0.7); }

.store-piece {
    position: relative;
    font-family: "Nunito", "Segoe UI", system-ui, sans-serif;
    font-weight: 700;
    line-height: 1.1;
    color: #fff;
    user-select: none;
    cursor: default;
}

.store-banner { --k: var(--u); height: calc(360 * var(--u)); }
.store-card { --k: calc(0.8 * var(--u)); height: calc(236 * var(--u)); }
.store-tile { --k: var(--u); width: calc(306 * var(--u)); height: calc(420 * var(--u)); flex: none; }
.store-strip { --k: calc(0.5 * var(--u)); height: calc(68 * var(--u)); }
.store-skin-card-piece { --k: var(--u); width: calc(468 * var(--u)); height: calc(484 * var(--u)); margin: calc(20 * var(--u)) auto; }

/* A child placed in units. */
.store-piece .store-box {
    position: absolute;
    left: calc(var(--x, 0) * var(--u));
    top: calc(var(--y, 0) * var(--u));
    width: calc(var(--w) * var(--u));
    height: calc(var(--h) * var(--u));
}

/* ------------------------------------------------------------------ nine-sliced skins */

/* The sprite behind a piece, a button or a capsule. --k is a unit times the kit's scale for that sprite. */
.store-skin {
    position: absolute;
    inset: 0;
    box-sizing: border-box;
    border-style: solid;
    border-color: transparent;
    border-image-repeat: stretch;
    pointer-events: none;
}

/* hero_<theme>: 208 x 236 px, borders 96 / 96 / 124 / 96 px (top right bottom left); two px to a unit. */
.store-skin-hero {
    border-width: calc(48 * var(--k)) calc(48 * var(--k)) calc(62 * var(--k)) calc(48 * var(--k));
    border-image-slice: 96 96 124 96 fill;
    border-image-source: url("store-art/hero_blue.png");
}
.store-theme-purple .store-skin-hero { border-image-source: url("store-art/hero_purple.png"); }
.store-theme-gold .store-skin-hero { border-image-source: url("store-art/hero_gold.png"); }
.store-theme-green .store-skin-hero { border-image-source: url("store-art/hero_green.png"); }
.store-theme-red .store-skin-hero { border-image-source: url("store-art/hero_red.png"); }
.store-theme-teal .store-skin-hero { border-image-source: url("store-art/hero_teal.png"); }

/* card, card_featured: 144 x 156 px, borders 64 / 64 / 76 / 64 px. */
.store-skin-card {
    border-width: calc(32 * var(--k)) calc(32 * var(--k)) calc(38 * var(--k)) calc(32 * var(--k));
    border-image-slice: 64 64 76 64 fill;
    border-image-source: url("store-art/card.png");
}
.store-tile-best .store-skin-card { border-image-source: url("store-art/card_featured.png"); }

/* btn_<tone>: 152 x 176 px, borders 68 / 68 / 92 / 68 px. The kit scales a button's corners by its height / 132. */
.store-skin-button {
    --b: calc(var(--h) / 132 * var(--u));
    border-width: calc(34 * var(--b)) calc(34 * var(--b)) calc(46 * var(--b)) calc(34 * var(--b));
    border-image-slice: 68 68 92 68 fill;
    border-image-source: url("store-art/btn_green.png");
}
.store-button-claim .store-skin-button { border-image-source: url("store-art/btn_gold.png"); }
/* A coin price the player cannot pay yet: the same green, quiet. */
.store-button-muted .store-skin-button { border-image-source: url("store-art/btn_green_off.png"); }
.store-button-equip .store-skin-button { border-image-source: url("store-art/btn_blue.png"); }

/* pill_<tone>: 168 x 168 px, borders 76 px all round; the kit scales a capsule's ends by its height / 84. */
.store-skin-pill {
    --b: calc(var(--h) / 84 * var(--u));
    border-width: calc(38 * var(--b));
    border-image-slice: 76 fill;
    border-image-source: url("store-art/pill_white.png");
}
.store-timer .store-skin-pill { border-image-source: url("store-art/pill_dark.png"); }

/* picture_frame: 136 x 136 px, borders 60 px: a hollow white frame laid over an uploaded picture's edge. */
.store-skin-frame {
    border-width: calc(30 * var(--u));
    border-image-slice: 60 fill;
    border-image-source: url("store-art/picture_frame.png");
}

/* ------------------------------------------------------------------ text, as the kit styles it */

/* "Label": the display font, white with a dark soft edge. Titles on banners, words on buttons and ribbons. */
.store-label {
    font-family: "Lilita One", "Segoe UI", system-ui, sans-serif;
    font-weight: 400;
    color: #fff;
    -webkit-text-stroke: 0.11em rgba(8, 18, 51, 0.62);
    paint-order: stroke fill;
    text-shadow: 0 0.05em 0.02em rgba(5, 13, 41, 0.45);
    white-space: nowrap;
}

/* "Heading": the display font in navy, on light cards. */
.store-heading {
    font-family: "Lilita One", "Segoe UI", system-ui, sans-serif;
    font-weight: 400;
    color: #14294F;
    white-space: nowrap;
}

.store-line {
    display: flex;
    align-items: center;
    overflow: hidden;
    white-space: nowrap;
    font-size: calc(var(--size) * var(--u));
}
.store-line > span { overflow: hidden; text-overflow: ellipsis; }
.store-line-centre { justify-content: center; text-align: center; }

/* Reading text on a themed panel: white with a soft shadow, navy on the gold one (white does not read there). */
.store-copy { color: #fff; text-shadow: 0 0.06em 0.1em rgba(5, 20, 64, 0.6); }
.store-copy-dark .store-copy { color: #0B2A6B; text-shadow: none; }

/* ------------------------------------------------------------------ picture */

.store-art-box > * { position: absolute; }
.store-rays {
    inset: 0;
    background-color: rgba(255, 255, 255, 0.2);
    -webkit-mask: url("store-art/rays.png") center / contain no-repeat;
    mask: url("store-art/rays.png") center / contain no-repeat;
}
.store-glow { inset: 0; background: url("store-art/glow.png") center / contain no-repeat; opacity: 0.42; }
.store-art { inset: 0; width: 100%; height: 100%; object-fit: contain; }

/* The sparkle the game pins on the corner of a banner's framed picture. */
.store-sparkle { display: none; }
.store-banner .store-sparkle {
    display: block;
    right: calc(-14 * var(--u));
    top: calc(-12 * var(--u));
    width: calc(44 * var(--u));
    height: calc(44 * var(--u));
    background: url("store-art/sparkle.png") center / contain no-repeat;
}

/* An uploaded picture fills a rounded window, cropped and never squeezed. On a banner the window has a
   white frame and stands 6 units inside its box; on a card and a tile it is the whole box, unframed. */
.store-picture { inset: 0; overflow: hidden; border-radius: calc(28 * var(--u)); }
.store-picture img { width: 100%; height: 100%; object-fit: cover; display: block; }
.store-banner .store-picture { inset: calc(6 * var(--u)) 0; background: rgba(255, 255, 255, 0.2); }
.store-card .store-skin-frame, .store-tile .store-skin-frame { display: none; }

/* A banner: the picture's box is 368 x 292 with the art 290 across in its middle, in rays 330 and a glow 322 wide. */
.store-banner .store-art-box { --x: 24; --y: 26; --w: 368; --h: 292; }
.store-banner .store-art { inset: calc(1 * var(--u)) calc(39 * var(--u)); width: calc(290 * var(--u)); height: calc(290 * var(--u)); }
.store-banner .store-rays { inset: calc(-19 * var(--u)) calc(19 * var(--u)); }
.store-banner .store-glow { inset: calc(-15 * var(--u)) calc(23 * var(--u)); }
/* A card: the art fills a box of 188, in a glow of 214 and no rays. */
.store-card .store-art-box { --x: 30; --y: 19; --w: 188; --h: 188; }
.store-card .store-rays { display: none; }
.store-card .store-glow { inset: calc(-13 * var(--u)); opacity: 0.4; }
/* A tile: the art fills a box of 204; only the best pack stands in rays (240 wide, gold). */
.store-tile .store-art-box { --x: 51; --y: 16; --w: 204; --h: 204; }
.store-tile .store-rays { background-color: transparent; }
.store-tile .store-glow { display: none; }
.store-tile-best .store-rays { inset: calc(-14 * var(--u)) calc(-18 * var(--u)) calc(-22 * var(--u)); background-color: rgba(255, 199, 38, 0.32); }

/* ------------------------------------------------------------------ button */

.store-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: calc(8 * var(--u));
    box-sizing: border-box;
    /* The face sits above the button's lip: the words are centred on the face, not on the whole sprite. */
    padding: calc(var(--h) / 132 * 6 * var(--u)) calc(var(--h) / 132 * 20 * var(--u)) calc((var(--h) / 132 * 14 + 4) * var(--u));
}
.store-button > * { position: relative; }
.store-button .store-skin { position: absolute; }
.store-button-text { font-size: calc(var(--size) * var(--u)); overflow: hidden; text-overflow: ellipsis; }
/* The glint that sweeps a banner's button and the best pack's, caught at the right end of the face. */
.store-button-shine::after {
    content: "";
    position: absolute;
    top: calc(var(--h) / 132 * 6 * var(--u));
    bottom: calc(var(--h) / 132 * 26 * var(--u));
    right: calc(var(--h) / 132 * 26 * var(--u));
    width: calc(var(--h) * 0.62 * var(--u));
    background: linear-gradient(105deg, rgba(255, 255, 255, 0) 30%, rgba(255, 255, 255, 0.38) 50%, rgba(255, 255, 255, 0) 70%);
    pointer-events: none;
}
.store-coin { width: calc(var(--coin, 46) * var(--u)); height: calc(var(--coin, 46) * var(--u)); object-fit: contain; flex: none; }

.store-banner .store-button { --x: 424; --y: 220; --w: 488; --h: 100; --coin: 58; }
.store-card .store-button { --x: 672; --y: 68; --w: 252; --h: 92; --coin: 54; }
/* With the value above it the button sits 38 units lower. */
.store-card .store-button-low { --y: 106; }
.store-tile .store-button { --x: 20; --y: 310; --w: 266; --h: 84; --coin: 50; }

/* ------------------------------------------------------------------ words on a banner and a card */

/* A banner's words stand above its button, centred as a group: the countdown, the title, one or two lines under it. */
.store-banner .store-words {
    --x: 424; --y: 22; --w: 488; --h: 186;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: calc(6 * var(--u));
}
.store-banner .store-title { height: calc(58 * var(--u)); flex: none; }
.store-banner .store-subtitle {
    font-size: calc(30 * var(--u));
    line-height: 1.18;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
}
.store-card .store-title { --x: 236; --y: 24; --w: 416; --h: 50; }
.store-card .store-facts { --x: 236; --y: 150; --w: 426; --h: 48; --size: 26; gap: calc(12 * var(--u)); }

/* What the offer holds, as small capsules. */
.store-chips { display: flex; align-items: center; gap: calc(8 * var(--u)); overflow: hidden; }
.store-card .store-chips { --x: 236; --y: 82; --w: 426; --h: 56; }
.store-chip {
    --h: 56;
    position: relative;
    display: flex;
    align-items: center;
    gap: calc(10 * var(--u));
    height: calc(56 * var(--u));
    padding: 0 calc(20 * var(--u)) 0 calc(14 * var(--u));
    font-size: calc(28 * var(--u));
    /* When the row is too narrow the game squeezes its capsules: each one's words give way by their share,
       its ends and picture (82 units) never do. --shrink is the words' part of the capsule's width, which
       makes a flex item give way the same way (StorePreviewChip.Shrink). */
    flex: 0 var(--shrink, 1) auto;
    min-width: calc(82 * var(--u));
}
.store-chip > * { position: relative; }
.store-chip .store-skin { position: absolute; }
/* A skin's name gives way and ends in "…"; an amount or a count is short and is drawn whole, as in the game. */
.store-chip-text { min-width: 0; }
.store-chip-skin .store-chip-text { overflow: hidden; text-overflow: ellipsis; }
.store-chip-icon { width: calc(38 * var(--u)); height: calc(38 * var(--u)); flex: none; object-fit: contain; }
/* The painted coin and a skin's own picture have air around them: the game draws them 7 units over the box on every side. */
img.store-chip-icon { transform: scale(1.37); }
.store-chip-dot { border-radius: 50%; box-shadow: inset 0 0 0 calc(2 * var(--u)) rgba(20, 41, 79, 0.25); }
/* A booster's white mark on a round purple plate, 4 units over its box. */
.store-chip-plate { border-radius: 50%; background: #8855EE; display: flex; transform: scale(1.21); }
.store-chip-plate > span {
    flex: 1;
    margin: 18%;
    background-color: #fff;
    -webkit-mask: var(--mark) center / contain no-repeat;
    mask: var(--mark) center / contain no-repeat;
}
.store-mark-clover { --mark: url("store-art/icon_clover.png"); }
.store-mark-dice { --mark: url("store-art/icon_dice.png"); }
.store-mark-undo { --mark: url("store-art/icon_undo.png"); }
.store-chip-more { font-size: calc(28 * var(--u)); flex: 0 1 calc(52 * var(--u)); min-width: 0; text-align: center; }

/* ------------------------------------------------------------------ countdown */

/* A dark capsule of a fixed width (186 x 48 on a banner, 176 x 46 on a card): the clock on its left, the time in the middle of the rest. */
.store-timer {
    --h: 48;
    position: relative;
    display: flex;
    align-items: center;
    gap: calc(4 * var(--u));
    box-sizing: border-box;
    width: calc(186 * var(--u));
    height: calc(var(--h) * var(--u));
    padding: 0 calc(14 * var(--u));
    color: #fff;
    flex: none;
}
.store-timer > * { position: relative; }
.store-timer .store-skin { position: absolute; }
.store-timer-icon {
    width: calc(28 * var(--u));
    height: calc(28 * var(--u));
    flex: none;
    background-color: currentColor;
    -webkit-mask: url("store-art/icon_timer.png") center / contain no-repeat;
    mask: url("store-art/icon_timer.png") center / contain no-repeat;
}
.store-timer-text {
    font-family: "Lilita One", "Segoe UI", system-ui, sans-serif;
    font-weight: 400;
    font-size: calc(28 * var(--u));
    white-space: nowrap;
    flex: 1;
    text-align: center;
}
/* Under an hour the chip turns warm, as in the game. */
.store-timer-urgent { color: #FFC64D; }
.store-facts .store-timer { --h: 46; width: calc(176 * var(--u)); }

/* ------------------------------------------------------------------ ribbon and seal */

/* corner_<tone>: drawn for the top left corner, pinned 10 units outside it; mirrored for the right corner. */
.store-ribbon {
    position: absolute;
    left: calc(-10 * var(--u));
    top: calc(-10 * var(--u));
    width: calc(148 * var(--u));
    height: calc(148 * var(--u));
    pointer-events: none;
}
.store-ribbon-band { position: absolute; inset: 0; background: url("store-art/corner_red.png") center / 100% 100% no-repeat; }
.store-ribbon-gold .store-ribbon-band { background-image: url("store-art/corner_gold.png"); }
.store-ribbon-green .store-ribbon-band { background-image: url("store-art/corner_green.png"); }
.store-ribbon-blue .store-ribbon-band { background-image: url("store-art/corner_blue.png"); }
.store-ribbon-purple .store-ribbon-band { background-image: url("store-art/corner_purple.png"); }
/* The middle of the band: 54 units in from the corner along each edge it crosses. */
.store-ribbon-words {
    position: absolute;
    left: calc(-12 * var(--u));
    top: calc(34 * var(--u));
    width: calc(132 * var(--u));
    height: calc(40 * var(--u));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: calc(var(--size, 26) * var(--u));
    transform: rotate(-45deg);
}
.store-ribbon-right { left: auto; right: calc(-10 * var(--u)); }
.store-ribbon-right .store-ribbon-band { transform: scaleX(-1); }
.store-ribbon-right .store-ribbon-words { left: auto; right: calc(-12 * var(--u)); transform: rotate(45deg); }

/* seal_<tone>: a starburst with a short number on it. */
.store-seal {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    width: calc(var(--s) * var(--u));
    height: calc(var(--s) * var(--u));
    font-size: calc(var(--s) * 0.25 * var(--u));
    background: url("store-art/seal_red.png") center / 100% 100% no-repeat;
    pointer-events: none;
}
.store-seal-gold { background-image: url("store-art/seal_gold.png"); }
/* Pinned 10 units outside the top right corner. */
.store-tile .store-seal { --s: 96; right: calc(-10 * var(--u)); top: calc(-10 * var(--u)); }
.store-card .store-seal { --s: 100; right: calc(-10 * var(--u)); top: calc(-10 * var(--u)); }

/* ------------------------------------------------------------------ a deal's value */

.store-value { justify-content: center; gap: calc(6 * var(--u)); }
.store-card .store-value { --x: 672; --y: 42; --w: 182; --h: 44; --size: 34; --coin: 46; gap: calc(4 * var(--u)); }
/* The value is struck through with a thin line in the colour of its own digits, tipped a little, so the
   number stays readable (the game: 4 units thick, 4 units past each end). Coins only: a money price never is. */
.store-was { position: relative; overflow: visible !important; }
.store-was::after {
    content: "";
    position: absolute;
    left: calc(-4 * var(--u));
    right: calc(-4 * var(--u));
    top: 48%;
    height: calc(4 * var(--u));
    border-radius: calc(2 * var(--u));
    background: currentColor;
    transform: rotate(-4deg);
}

/* ------------------------------------------------------------------ coin pack tile */

.store-tile .store-amount { --x: 12; --y: 214; --w: 282; --h: 58; --size: 54; }
.store-tile .store-bonus { --x: 12; --y: 270; --w: 282; --h: 34; --size: 28; color: #7D8FB0; }
.store-tile .store-bonus-on { color: #1E9A3C; }

/* ------------------------------------------------------------------ the dots under a banner */

.store-dots { display: flex; justify-content: center; gap: 5px; margin-top: 9px; }
.store-dots span { width: 10px; height: 10px; border-radius: 5px; background: rgba(11, 42, 107, 0.32); }
.store-dots span.store-dot-on { width: 24px; background: linear-gradient(180deg, #FFD54A, #F2A81D); box-shadow: inset 0 0 0 1px #B36B00; }

/* ------------------------------------------------------------------ sale strip */

/* The slim strip above the section a sale applies to: a tag, "Title  ·  Subtitle" on one line, and (with a
   countdown) a dark capsule "ends in 2d 4h" at its right end. */
.store-strip-icon {
    --x: 22; --y: 14; --w: 34; --h: 34;
    background-color: #fff;
    -webkit-mask: url("store-art/icon_tag.png") center / contain no-repeat;
    mask: url("store-art/icon_tag.png") center / contain no-repeat;
}
.store-copy-dark .store-strip-icon { background-color: #0B2A6B; }
.store-strip .store-strip-text { --x: 68; --y: 4; --w: 870; --h: 54; --size: 30; }
.store-strip-timed .store-strip-text { --w: 622; }
.store-copy-dark .store-strip-text { color: #0B2A6B; -webkit-text-stroke: 0; text-shadow: none; }
.store-strip .store-timer { --h: 46; position: absolute; right: calc(14 * var(--u)); top: calc(8 * var(--u)); width: calc(236 * var(--u)); }

/* ------------------------------------------------------------------ skin card */

/* A skin's card: its picture (or, without one, a shape in its own two colours), its name, one quiet line
   (the rarity and, on sale, the usual price struck through), and the price button. */
.store-skin-glow {
    position: absolute;
    inset: calc(-20 * var(--u));
    box-sizing: border-box;
    border-style: solid;
    border-color: transparent;
    border-width: calc(58 * var(--u));
    border-image-slice: 116 fill;
    border-image-repeat: stretch;
    pointer-events: none;
}
.store-skin-glow-rare { border-image-source: url("store-art/glow_rare.png"); }
.store-skin-glow-epic { border-image-source: url("store-art/glow_epic.png"); }
.store-skin-glow-legendary { border-image-source: url("store-art/glow_legendary.png"); }
.store-skin-card-piece .store-skin-art { --x: 22; --y: 18; --w: 424; --h: 248; }
.store-skin-art > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.store-skin-plate {
    position: absolute;
    left: calc(60 * var(--u));
    top: calc(16 * var(--u));
    width: calc(304 * var(--u));
    height: calc(216 * var(--u));
    border-radius: calc(26 * var(--u));
    display: flex;
    align-items: center;
    justify-content: center;
}
.store-skin-shape { width: calc(148 * var(--u)); height: calc(148 * var(--u)); }
.store-skin-shape-dice { -webkit-mask: url("store-art/icon_dice.png") center / contain no-repeat; mask: url("store-art/icon_dice.png") center / contain no-repeat; }
.store-skin-shape-token { border-radius: 50%; }
.store-skin-shape-cross { clip-path: polygon(15% 0,50% 35%,85% 0,100% 15%,65% 50%,100% 85%,85% 100%,50% 65%,15% 100%,0 85%,35% 50%,0 15%); }
.store-skin-eye {
    position: absolute;
    right: 0;
    bottom: 0;
    width: calc(54 * var(--u));
    height: calc(54 * var(--u));
    border-radius: 50%;
    background: #DCEBFF;
    display: flex;
}
.store-skin-eye > span {
    flex: 1;
    margin: calc(11 * var(--u));
    background-color: #2A6FD6;
    -webkit-mask: url("store-art/icon_eye.png") center / contain no-repeat;
    mask: url("store-art/icon_eye.png") center / contain no-repeat;
}
.store-skin-card-piece .store-skin-name { --x: 16; --y: 274; --w: 436; --h: 46; --size: 36; }
.store-skin-card-piece .store-skin-facts {
    --x: 16; --y: 320; --w: 436; --h: 38; --size: 26; --coin: 40;
    justify-content: center;
    gap: calc(12 * var(--u));
    color: #7D8FB0;
    overflow: visible;
}
.store-skin-facts .store-skin-was { display: flex; align-items: center; gap: calc(2 * var(--u)); font-size: calc(28 * var(--u)); overflow: visible; }
/* A skin's usual price is struck through in the kit's red, 6 units thick. */
.store-skin-facts .store-was::after { background: #D5362E; height: calc(6 * var(--u)); border-radius: calc(3 * var(--u)); }
.store-rarity-rare { color: #1F7FE0; }
.store-rarity-epic { color: #8A4DE8; }
.store-rarity-legendary { color: #C77E00; }
.store-skin-card-piece .store-button { --x: 22; --y: 374; --w: 424; --h: 86; --coin: 54; }
.store-skin-card-piece .store-seal { --s: 96; right: calc(-10 * var(--u)); top: calc(-10 * var(--u)); }
/* Not in the Store at all: the card is there to show what the skin looks like, greyed. */
.store-skin-card-off { opacity: 0.55; filter: saturate(0.5); }
