/* Original TPower characters form the backdrop of each game. Opaque banner crops
   use only the illustrated edge. The physical pieces stay in their own foreground. */
.game-art {
  --soft-edge: to right;
  --prop-shift: -22%;
  --prop-scale: .84;
  --logo-side: 4%;
  --logo-end: auto;
  --glow: #a43431;
  position: relative;
  display: block;
  container-type: inline-size;
  isolation: isolate;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 2 / 1;
  background:
    linear-gradient(155deg, #0a050d7d, transparent 53%, #19061088),
    radial-gradient(ellipse at 33% 78%, var(--glow), transparent 65%),
    url("../tpower/official/backdrop-red.webp") 45% center / cover,
    #320811;
}
.game-art::before,
.game-art::after,
.art-props, .art-props::before,
.game-art i, .game-art i::before, .game-art i::after {
  position: absolute;
  box-sizing: border-box;
  pointer-events: none;
}
.game-art::before {
  content: "";
  inset: 0 0 0 auto;
  width: 54%;
  background: var(--scene) right center / auto 101% no-repeat;
  mask-image: linear-gradient(var(--soft-edge), transparent, black 13%);
}
.game-art::after {
  content: "";
  top: 6%;
  left: var(--logo-side);
  right: var(--logo-end);
  width: 17%;
  height: 14%;
  background: url("../tpower/official/brand-logo.webp") left center / contain no-repeat;
  filter: drop-shadow(0 1px 1px #160407) drop-shadow(0 0 3px #17070bc4);
}
.art-props {
  display: block;
  inset: 0;
  transform: translate(var(--prop-shift), 6%) scale(var(--prop-scale));
}
.game-art i {
  display: block;
  margin: 0;
  padding: 0;
  font-style: normal;
  line-height: 1;
}
.art-fruit-reels { --scene: url("../tpower/official/about-banner.webp"); --glow: #993f31; --prop-scale: .78; }
.art-blackjack { --scene: url("../tpower/official/login-banner.webp"); --glow: #543136; }
.art-roulette { --scene: url("../tpower/official/support-banner.webp"); --glow: #65422c; }
.art-baccarat { --scene: url("../tpower/official/mascot-dragon.webp"); --glow: #871e31; }
.art-high-low { --scene: url("../tpower/official/games-banner.webp"); --glow: #95462a; }
.art-dice-seven { --scene: url("../tpower/official/news-banner.webp"); --glow: #552d4e; }
.art-lucky-wheel { --scene: url("../tpower/official/promotions-banner.webp"); --glow: #704b2c; }
.art-coin-flip { --scene: url("../tpower/official/mascot-cat.webp"); --glow: #986132; }
.art-scratch-three { --scene: url("../tpower/official/download-banner.webp"); --glow: #8b2d26; --prop-scale: .79; }
.art-red-dog { --scene: url("../tpower/official/mascot-lion.webp"); --glow: #813038; }
:is(.art-blackjack, .art-baccarat, .art-dice-seven, .art-coin-flip, .art-red-dog) {
  --soft-edge: to left;
  --prop-shift: 22%;
  --logo-side: auto;
  --logo-end: 4%;
}
:is(.art-blackjack, .art-baccarat, .art-dice-seven, .art-coin-flip, .art-red-dog)::before {
  left: 0;
  right: auto;
}
:is(.art-baccarat, .art-coin-flip, .art-red-dog)::before {
  background-size: auto 98%;
  background-position: center bottom;
  mask-image: none;
}

/* Each card has an ivory edge, one large pip and a separate corner rank. */
.art-blackjack, .art-baccarat, .art-high-low, .art-red-dog {
  --face: #f5e9cc;
  --face-shade: #cdbb97;
}
.art-blackjack i:nth-child(-n+2),
.art-baccarat i:nth-child(-n+2),
.art-high-low i:first-child,
.art-red-dog i {
  width: 22%;
  height: 64%;
  border: 1px solid #fff1cc;
  border-radius: 2.1cqw;
  background:
    linear-gradient(135deg, #fff8df88, transparent 46%),
    linear-gradient(148deg, #fff7df, var(--face) 58%, var(--face-shade));
  box-shadow: inset 0 0 0 .7cqw #fdf3d764, .35cqw .75cqw 0 #a89370, 1cqw 2.2cqw 2.8cqw #07091066;
  color: var(--pip, #292831);
  transform: rotate(var(--tilt, 0deg));
}
.art-blackjack i:nth-child(-n+2)::before,
.art-baccarat i:nth-child(-n+2)::before,
.art-high-low i:first-child::before,
.art-red-dog i::before {
  content: var(--rank);
  top: 5%;
  left: 9%;
  font: 700 5.6cqw/1 Georgia, "Times New Roman", serif;
}
.art-blackjack i:nth-child(-n+2)::after,
.art-baccarat i:nth-child(-n+2)::after,
.art-high-low i:first-child::after,
.art-red-dog i::after {
  content: var(--suit);
  inset: 21% 0 7%;
  display: grid;
  place-items: center;
  font: 13cqw/1 Georgia, "Times New Roman", serif;
}
.art-blackjack i:first-child {
  --rank: "A"; --suit: "♠"; --tilt: -18deg;
  left: 31%; top: 19%;
}
.art-blackjack i:nth-child(2) {
  --rank: "K"; --suit: "♥"; --pip: #9b1b2f; --tilt: 11deg;
  left: 47%; top: 16%;
}
.art-blackjack i:nth-child(3), .art-baccarat i:nth-child(3),
.art-roulette i:nth-child(3) {
  --chip: #942a32;
  width: 13%;
  aspect-ratio: 1;
  border: .5cqw solid #f2cb8e;
  border-radius: 50%;
  background:
    radial-gradient(circle, var(--chip) 0 47%, #e9c68d 48% 51%, transparent 52%),
    repeating-conic-gradient(var(--chip) 0deg 23deg, #ffe6bb 23deg 45deg);
  box-shadow: 0 .85cqw 0 #6e332a, 0 1.4cqw 0 #e9c08e, 0 2cqw 0 #472521, .7cqw 2.4cqw 2cqw #100b0c70;
  transform: rotate(-12deg) scaleY(.71);
}
.art-blackjack i:nth-child(3) { left: 65%; top: 59%; }
.art-baccarat i:first-child {
  --rank: "8"; --suit: "♦"; --pip: #ad2335; --tilt: -13deg;
  left: 25%; top: 16%;
}
.art-baccarat i:nth-child(2) {
  --rank: "9"; --suit: "♣"; --tilt: 14deg;
  left: 55%; top: 16%;
}
.art-baccarat i:nth-child(3) { --chip: #193c4a; left: 43.5%; top: 58%; }
.art-high-low i:first-child {
  --rank: "7"; --suit: "♠"; --tilt: -8deg;
  left: 32%; top: 16%;
}
.art-high-low i:nth-child(2), .art-high-low i:nth-child(3) {
  width: 15%; height: 18%; left: 57%;
  filter: drop-shadow(.8cqw 1.2cqw .5cqw #091120aa);
}
.art-high-low i:nth-child(2) { top: 24%; }
.art-high-low i:nth-child(3) { top: 57%; transform: rotate(180deg); }
.art-high-low i:nth-child(2)::after, .art-high-low i:nth-child(3)::after {
  content: "";
  inset: 0;
  clip-path: polygon(50% 0, 100% 75%, 79% 100%, 50% 53%, 21% 100%, 0 75%);
  background: linear-gradient(155deg, #fff2cb, #f1c870 49%, #986131 50%, #d9a951);
}
.art-high-low i:nth-child(3)::after { background: linear-gradient(26deg, #9cbddd, #abcfe1 49%, #6285a8 51%, #d3eafa); }
.art-red-dog i { width: 19%; height: 57%; }
.art-red-dog i:first-child {
  --rank: "3"; --suit: "♥"; --pip: #a22c38; --tilt: -13deg;
  left: 22%; top: 25%;
}
.art-red-dog i:nth-child(2) {
  --rank: "7"; --suit: "♦"; --pip: #8a1228;
  --face: #ffddb0; --face-shade: #dca45f;
  left: 41%; top: 17%; z-index: 1;
  outline: .54cqw solid #eccc8b;
}
.art-red-dog i:nth-child(3) {
  --rank: "J"; --suit: "♠"; --tilt: 13deg;
  left: 60%; top: 25%;
}

/* A miniature five-reel cabinet sits alongside the original TPower character. */
.art-fruit-reels .cover-reels {
  position: absolute;
  inset: 4% 18% 6%;
  display: grid;
  grid-template: repeat(5, minmax(0, 1fr)) / repeat(5, minmax(0, 1fr));
  gap: .25cqw .45cqw;
  padding: 1.35cqw;
  border: .8cqw solid #e7c07c;
  border-radius: 2.1cqw;
  transform: rotate(-3deg);
  background: linear-gradient(135deg, #831b26, #35141b 42%, #762a2b);
  box-shadow: inset 0 0 0 .38cqw #b76c43, 0 .8cqw 0 #783927, 0 1.6cqw 2.4cqw #1d041baa;
}
.art-fruit-reels .cover-reels b {
  display: grid;
  place-items: center;
  overflow: hidden;
  color: #bc1b2f;
  border-radius: .45cqw;
  background: linear-gradient(90deg, #dac196, #fff4d5 22%, #fcf2d5 78%, #dbbe91);
  font: italic 900 6.5cqw/1 Georgia, "Apple Color Emoji", "Segoe UI Emoji", serif;
}
.art-fruit-reels .cover-reels b:nth-child(n+11):nth-child(-n+13) {
  color: #921328;
  background: linear-gradient(135deg,#ffdb78,#fff3b9 53%,#eabb57);
}

/* Bevelled wheels with separate ball or pointer. */
.art-roulette i:first-child, .art-lucky-wheel i:first-child {
  border-radius: 50%;
  aspect-ratio: 1;
  box-shadow: inset 0 0 .8cqw #4e281a, .7cqw 2.3cqw 0 #694029, 1.4cqw 3.5cqw 2.8cqw #100f1570;
}
.art-roulette i:first-child {
  left: 29%; top: 7%; width: 42%;
  border: 1.15cqw solid #ba8c53;
  background:
    radial-gradient(circle, #f7d598 0 5%, #89532e 6% 9%, transparent 10%),
    radial-gradient(circle, #745037 0 42%, #e3c89a 43% 45%, #5f2c27 46% 49%, transparent 50% 71%, #e4c797 72% 74%, #5d3929 75%),
    conic-gradient(#216c4a 0deg 10deg, transparent 10deg),
    repeating-conic-gradient(#1e2427 0deg 9deg, #d4b98f 9deg 10deg, #ab3940 10deg 19deg, #d4b98f 19deg 20deg);
  transform: rotate(-12deg) scaleY(.84);
}
.art-roulette i:first-child::after {
  content: ""; inset: 29%; border-radius: 50%;
  background:
    radial-gradient(circle, #ffdda0 0 13%, #80502b 15% 20%, transparent 22%),
    linear-gradient(transparent 43%, #a07148 44%, #f6d698 49%, #8d623d 55%, transparent 57%),
    linear-gradient(90deg, transparent 43%, #9d6a42 44%, #f8df9f 49%, #91643c 55%, transparent 57%);
  transform: rotate(-26deg);
}
.art-roulette i:nth-child(2) {
  left: 59.5%; top: 27%; width: 3.6%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 30% 20%, white 12%, #e6ddc8 55%, #928d83);
  box-shadow: .4cqw .65cqw .6cqw #161713aa;
}
.art-roulette i:nth-child(3) { left: 69%; top: 64%; width: 11%; }
.art-lucky-wheel i:first-child {
  left: 31%; top: 11%; width: 38%;
  border: 1.2cqw solid #e6bd7d;
  background:
    radial-gradient(circle, #f4d095 0 8%, #a16238 9% 12%, transparent 13%),
    repeating-conic-gradient(from -22.5deg, #eacb8d 0deg 1.5deg, transparent 1.5deg 45deg),
    conic-gradient(from -22.5deg, #bc5263 0deg 45deg, #e6b45d 45deg 90deg, #61567a 90deg 135deg, #438581 135deg 180deg, #bc5263 180deg 225deg, #e6b45d 225deg 270deg, #61567a 270deg 315deg, #438581 315deg);
}
.art-lucky-wheel i:first-child::after {
  content: ""; inset: 5%; border: .55cqw dotted #fff2b4; border-radius: 50%;
}
.art-lucky-wheel i:nth-child(2) {
  left: 47%; top: 7%; width: 6%; height: 15%;
  background: linear-gradient(110deg, #fce9b6, #e9ae59 47%, #b9793a 50%);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
}
.art-lucky-wheel i:nth-child(3) {
  left: 47%; top: 43%; width: 6%; aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 25%, #fff2c0, #dfa24f 67%, #9e643b);
  box-shadow: .2cqw .55cqw .5cqw #572b3866;
}

.art-dice-seven i:nth-child(-n+2) {
  aspect-ratio: 1;
  width: 24%;
  border-radius: 4.2cqw;
  border: .35cqw solid #fff1d1;
  box-shadow: inset -.9cqw -1cqw .6cqw #ab9477, .6cqw 1.4cqw 0 #b79e7c, 1cqw 2.6cqw 2.3cqw #120e145b;
}
.art-dice-seven i:first-child {
  top: 27%; left: 27%; transform: rotate(-17deg);
  background:
    radial-gradient(circle at 25% 25%, #43352e 8%, transparent 9%),
    radial-gradient(circle at 75% 25%, #43352e 8%, transparent 9%),
    radial-gradient(circle at 25% 75%, #43352e 8%, transparent 9%),
    radial-gradient(circle at 75% 75%, #43352e 8%, transparent 9%),
    linear-gradient(135deg, #fff8e5, #dfd3b7);
}
.art-dice-seven i:nth-child(2) {
  top: 15%; left: 51%; transform: rotate(14deg);
  background:
    radial-gradient(circle at 25% 75%, #9d2433 8%, transparent 9%),
    radial-gradient(circle at 50% 50%, #9d2433 8%, transparent 9%),
    radial-gradient(circle at 75% 25%, #9d2433 8%, transparent 9%),
    linear-gradient(135deg, #fff8e5, #e9d6b7);
}
.art-coin-flip i:nth-child(-n+2) {
  display: grid; place-items: center;
  width: 32%; aspect-ratio: 1; border-radius: 50%;
  background:
    radial-gradient(circle at center, transparent 57%, #765129 58%, #f8dda0 61%, transparent 63%),
    repeating-conic-gradient(#f8d991 0deg 2deg, #9c6932 3deg 5deg);
  border: .6cqw solid #e7be75;
  box-shadow: .4cqw .7cqw 0 #9c6b36, .8cqw 1.4cqw 0 #79552d, 1.4cqw 2.5cqw 2cqw #15141064;
}
.art-coin-flip i:nth-child(-n+2)::after {
  inset: 11%; display: grid; place-items: center; border-radius: 50%;
  color: #94632c;
  background: linear-gradient(145deg, #fff0bd, #e3bc71 55%, #c69856);
  text-shadow: .3cqw .45cqw #ffe9a8;
  font: bold 13cqw/1 Georgia, serif;
}
.art-coin-flip i:first-child { left: 46%; top: 42%; transform: rotate(12deg) scaleY(.65); }
.art-coin-flip i:first-child::after { content: "◆"; }
.art-coin-flip i:nth-child(2) { left: 28%; top: 10%; transform: rotate(-23deg) scaleX(.88); }
.art-coin-flip i:nth-child(2)::after { content: "★"; }
.art-scratch-three .art-props::before {
  content: "";
  inset: 21% 16% 21%;
  border: .7cqw solid #e9c990;
  border-radius: 2.5cqw;
  background:
    radial-gradient(circle, #e6bc794d .5px, transparent 1px) 0 0 / 4px 4px,
    linear-gradient(155deg, #ba5644, #853d41 68%, #512e39);
  transform: rotate(-5deg);
  box-shadow: inset 0 0 0 1.3cqw #7f3c3c, inset 0 0 0 1.6cqw #e3af6c, 1cqw 2.2cqw 2.4cqw #0b172966;
}
.art-scratch-three i {
  width: 14%; aspect-ratio: 1;
  display: grid; place-items: center;
  border: .35cqw solid #ead6a5;
  border-radius: 1.5cqw;
  background: linear-gradient(145deg,#f7e9bc,#c9b48d);
  color: #b33637;
  transform: rotate(-5deg);
}
.art-scratch-three i:first-child { top: 41%; left: 25%; }
.art-scratch-three i:nth-child(2) { top: 38%; left: 43%; }
.art-scratch-three i:nth-child(3) { top: 35%; left: 61%; }
.art-scratch-three i::before {
  content: "★"; font: bold 8cqw/1 Georgia, serif; text-shadow: .25cqw .35cqw #fff4c3;
}
.art-scratch-three i:nth-child(3)::after {
  content: ""; inset: 0; border-radius: inherit;
  background: repeating-linear-gradient(141deg,#b7b7b1 0px,#d9d9cf 2px,#a8aba8 3px);
  clip-path: polygon(0 0,100% 0,100% 100%,12% 100%,55% 72%,31% 77%,80% 45%,50% 53%,81% 28%,54% 37%,59% 25%,15% 41%,31% 22%,0 34%);
}
