/* ---- CSS-drawn previews ---- */
.art { position: relative; aspect-ratio: 16 / 9; overflow: hidden; display: grid; place-items: center; }

/* Canyon Recon */
.art--canyon-recon {
  display: block;
  background:
    radial-gradient(ellipse 60% 40% at 50% 38%, #ffcf8a55, transparent 70%),
    linear-gradient(#f2a35c 0%, #c8642e 42%, #5a2c14 43%, #3a1d0e 100%);
}
.wall { position: absolute; bottom: 0; width: 46%; height: 100%; }
.wall--l { left: 0; background: linear-gradient(100deg, #6b3416 0%, #8f4a22 55%, #a85a2b 100%); clip-path: polygon(0 0, 62% 0, 92% 100%, 0 100%); }
.wall--r { right: 0; background: linear-gradient(260deg, #5c2c12 0%, #7e4019 55%, #9c5326 100%); clip-path: polygon(38% 0, 100% 0, 100% 100%, 8% 100%); }
.bridge { position: absolute; left: 22%; right: 22%; top: 34%; height: 7%; background: repeating-linear-gradient(90deg, #4a4f57 0 10px, #6b727c 10px 12px); box-shadow: 0 4px 0 #2b2f35; }
.beacon { position: absolute; left: 60%; top: 55%; width: 12px; height: 12px; border-radius: 50%; background: #5dff8a; box-shadow: 0 0 16px 6px #5dff8a88; animation: pulse 1.4s ease-in-out infinite; }
.ship { position: absolute; left: 50%; bottom: 8%; width: 30%; color: #d9e2ea; transform: translateX(-50%) rotate(-6deg); filter: drop-shadow(0 6px 8px #0008); animation: bank 3s ease-in-out infinite; }
@keyframes bank { 50% { transform: translateX(-38%) rotate(7deg); } }
@keyframes pulse { 50% { transform: scale(1.3); opacity: .7; } }

/* Card games */
.art--cards { background: radial-gradient(ellipse at 50% 0%, var(--felt), var(--felt-2)); }
.fan { position: relative; width: 60%; height: 70%; }
.pc {
  position: absolute; left: 50%; bottom: 0;
  width: 34%; aspect-ratio: 5 / 7;
  background: #fffdf8; color: #1b1b1f; border-radius: 8px;
  box-shadow: 0 4px 12px rgb(0 0 0 / .3);
  display: grid; place-items: center; font: 700 26px Georgia, serif;
  transform-origin: 50% 120%;
}
.pc b { position: absolute; left: 8%; top: 4%; font-size: 15px; }
.pc.r { color: #c3122f; }
.pc:nth-child(1) { transform: translateX(-50%) rotate(-24deg); }
.pc:nth-child(2) { transform: translateX(-50%) rotate(-8deg); }
.pc:nth-child(3) { transform: translateX(-50%) rotate(8deg); }
.pc:nth-child(4) { transform: translateX(-50%) rotate(24deg); }
.card:hover .pc:nth-child(1) { transform: translateX(-50%) rotate(-30deg); }
.card:hover .pc:nth-child(4) { transform: translateX(-50%) rotate(30deg); }
.pc { transition: transform .25s ease; }

/* Word Guess */
.art--word-guess { background: linear-gradient(135deg, #1e293b, #0f172a); }
.wg { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; width: 62%; }
.wg i {
  aspect-ratio: 1; display: grid; place-items: center;
  font: 800 clamp(16px, 3vw, 24px) system-ui, sans-serif; font-style: normal; color: #fff;
  border-radius: 6px; background: #3a3f4b;
}
.wg i.g { background: #3f9b52; }
.wg i.y { background: #c9a227; }

/* Mahjong */
.art--mahjong-solitaire { background: radial-gradient(ellipse at 50% 30%, #2f6b5a, #173d33); }
.mj { position: relative; width: 70%; height: 70%; }
.mj i {
  position: absolute; width: 22%; aspect-ratio: 3 / 4;
  left: calc(6% + (var(--i) - 3 * (var(--i) > 2)) * 0%);
  background: linear-gradient(#fffaf0, #efe4cc); border-radius: 6px;
  box-shadow: 4px 5px 0 #c8b48a, 5px 7px 10px rgb(0 0 0 / .35);
  display: grid; place-items: center; font: 700 clamp(18px, 3vw, 28px) serif; font-style: normal; color: #1d5c3a;
}
.mj i:nth-child(1) { left: 4%; top: 6%; }
.mj i:nth-child(2) { left: 28%; top: 6%; color: #b3202a; }
.mj i:nth-child(3) { left: 52%; top: 6%; color: #1b1b1f; }
.mj i:nth-child(4) { left: 16%; top: 46%; color: #1f4fa0; }
.mj i:nth-child(5) { left: 40%; top: 46%; color: #1b1b1f; }
.mj i:nth-child(6) { left: 64%; top: 46%; color: #b3202a; }

/* Checkers */
.art--checkers { background: #3b2516; }
.ck {
  position: relative; width: 52%; aspect-ratio: 1;
  background: repeating-conic-gradient(#e9d3a8 0 25%, #8b5a33 0 50%) 0 0 / 25% 25%;
  border: 6px solid #5c3a20; border-radius: 6px;
}
.ck::before, .ck::after {
  content: ''; position: absolute; width: 18%; aspect-ratio: 1; border-radius: 50%;
}
.ck::before { left: 28.5%; top: 28.5%; background: radial-gradient(circle at 40% 35%, #ff7a6b, #b3202a 70%); box-shadow: 0 3px 0 #6e1018, 25% 50% 0 0 transparent; }
.ck::after { left: 53.5%; top: 53.5%; background: radial-gradient(circle at 40% 35%, #555, #121212 70%); box-shadow: 0 3px 0 #000; }

/* Dino Runner */
.art--dino-runner { display: block; background: linear-gradient(#ffd9a0 0%, #ffb27a 55%, #f4a261 56%, #e9c46a 100%); }
.dn-sun { position: absolute; right: 14%; top: 14%; width: 16%; aspect-ratio: 1; border-radius: 50%; background: #fff3c4; box-shadow: 0 0 30px #fff3c4; }
.dn-ground { position: absolute; left: 0; right: 0; bottom: 0; height: 26%; background: repeating-linear-gradient(90deg, #d4a24c 0 14px, #e0b25a 14px 28px); }
.dn-cactus { position: absolute; left: 66%; bottom: 26%; width: 5%; height: 28%; background: #2f7d4b; border-radius: 6px 6px 0 0; animation: run 2.4s linear infinite; }
.dn-cactus::before, .dn-cactus::after { content: ''; position: absolute; width: 80%; height: 40%; background: #2f7d4b; border-radius: 5px; bottom: 45%; }
.dn-cactus::before { left: -80%; border-bottom-right-radius: 0; }
.dn-cactus::after { right: -80%; bottom: 55%; border-bottom-left-radius: 0; }
.dn-dino { position: absolute; left: 22%; bottom: 26%; width: 14%; aspect-ratio: 1; animation: hop 1.2s ease-in-out infinite; background: #4c6b3c; clip-path: polygon(40% 0, 100% 0, 100% 30%, 70% 30%, 70% 45%, 85% 45%, 85% 55%, 60% 55%, 60% 100%, 45% 100%, 45% 75%, 30% 75%, 30% 100%, 15% 100%, 15% 70%, 0 50%, 0 35%, 15% 50%, 40% 50%); }
@keyframes hop { 0%, 60%, 100% { transform: translateY(0); } 30% { transform: translateY(-55%); } }
@keyframes run { from { transform: translateX(120%); } to { transform: translateX(-900%); } }

@media (prefers-reduced-motion: reduce) { .ship, .beacon, .dn-cactus, .dn-dino { animation: none; } }

/* Batch 2 previews */
.art--word-groups { background: linear-gradient(135deg, #2b2b33, #1c1c22); }
.wgx { display: grid; gap: 6%; width: 70%; }
.wgx i { font-style: normal; border-radius: 6px; padding: 4% 6px; color: #1c1712; text-align: center; }
.wgx b { display: block; font-size: clamp(10px, 1.6vw, 13px); letter-spacing: .05em; }
.wgx .c0 { background: #f3d36b; } .wgx .c1 { background: #9ccf7a; } .wgx .c2 { background: #a5c2ec; } .wgx .c3 { background: #c7a6e0; }
.art--mini-crossword { background: linear-gradient(135deg, #e9f2fb, #c9dcef); }
.xwx { display: grid; grid-template-columns: repeat(5, 1fr); width: 44%; aspect-ratio: 1; border: 2px solid #1c1712; background: #1c1712; }
.xwx i { font: 800 clamp(12px, 2.4vw, 18px) system-ui, sans-serif; font-style: normal; display: grid; place-items: center; background: #fff; color: #1c1712; border: 1px solid #8a8a8a; }
.xwx i.b { background: #1c1712; }
.art--jigsaw-puzzle { background: linear-gradient(135deg, #3b4a5e, #222b38); }
.jgx svg { width: 70%; display: block; margin: auto; filter: drop-shadow(0 4px 6px rgb(0 0 0 / .4)); }
.art--chess { background: repeating-conic-gradient(#f0dcb4 0 25%, #b07d4f 0 50%) 0 0 / 25% 44%; }
.chx { display: flex; gap: 6%; width: 60%; justify-content: center; }
.chx svg { width: 42%; filter: drop-shadow(0 4px 6px rgb(0 0 0 / .4)); }
.art--backgammon { background: #3b2516; }
.bgx svg { width: 86%; display: block; margin: auto; }
.art--yacht-dice { background: radial-gradient(ellipse at 50% 0%, var(--felt), var(--felt-2)); }
.ydx { display: flex; gap: 8%; width: 70%; justify-content: center; }
.ydx i { width: 28%; aspect-ratio: 1; background: #fffdf8; border-radius: 16%; box-shadow: 0 5px 0 #c9bba3, 0 10px 14px rgb(0 0 0 / .35); display: grid; grid-template: repeat(3, 1fr) / repeat(3, 1fr); padding: 10%; font-style: normal; }
.ydx b { width: 70%; aspect-ratio: 1; border-radius: 50%; background: #1b1b1f; place-self: center; }
.ydx .d5 b:nth-child(1) { grid-area: 1 / 1; } .ydx .d5 b:nth-child(2) { grid-area: 1 / 3; } .ydx .d5 b:nth-child(3) { grid-area: 2 / 2; } .ydx .d5 b:nth-child(4) { grid-area: 3 / 1; } .ydx .d5 b:nth-child(5) { grid-area: 3 / 3; }
.ydx .d3 b:nth-child(1) { grid-area: 1 / 1; } .ydx .d3 b:nth-child(2) { grid-area: 2 / 2; } .ydx .d3 b:nth-child(3) { grid-area: 3 / 3; }
.ydx .d6 b:nth-child(odd) { grid-column: 1; } .ydx .d6 b:nth-child(even) { grid-column: 3; }
.ydx i:nth-child(1) { transform: rotate(-10deg); } .ydx i:nth-child(3) { transform: rotate(8deg); }
.art--maze-chase { background: #0c2219; }
.mzx svg { width: 86%; display: block; margin: auto; }
