/* ─── Shared Keyframes ──────────────────────────────────────── */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-5px); }
}
@keyframes pulse-scale {
  0%, 100% { transform: scale(1); }
  50%       { transform: scale(1.15); }
}
@keyframes spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
@keyframes spin-slow {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
@keyframes bounce-y {
  0%, 100% { transform: translateY(0); }
  40%       { transform: translateY(-8px); }
  60%       { transform: translateY(-4px); }
}
@keyframes wiggle {
  0%, 100% { transform: rotate(0deg); }
  25%       { transform: rotate(-8deg); }
  75%       { transform: rotate(8deg); }
}
@keyframes flash {
  0%, 80%, 100% { opacity: 1; }
  40%            { opacity: 0.3; }
}
@keyframes pop-up {
  0%, 60%, 100% { transform: translateY(0); }
  30%            { transform: translateY(-6px); }
}
@keyframes slide-x {
  0%, 100% { transform: translateX(0); }
  50%       { transform: translateX(6px); }
}
@keyframes flip {
  0%, 100% { transform: rotateY(0deg); }
  50%       { transform: rotateY(180deg); }
}
@keyframes breathe {
  0%, 100% { opacity: 0.5; transform: scale(0.95); }
  50%       { opacity: 1; transform: scale(1.05); }
}
@keyframes drop {
  0%, 100% { transform: translateY(-4px); }
  50%       { transform: translateY(4px); }
}
@keyframes dino-run {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-5px); }
}
@keyframes dino-blink {
  0%, 42%, 46%, 100% { background: #F0F6FC; }
  44% { background: #535353; }
}
@keyframes note-bounce {
  0%, 100% { transform: translateY(0) rotate(-12deg); }
  50%       { transform: translateY(-6px) rotate(-12deg); }
}
@keyframes dodge-slide {
  0%, 100% { transform: translateX(-4px); }
  50%       { transform: translateX(4px); }
}
@keyframes slice {
  0%, 100% { transform: rotate(-15deg); }
  50%       { transform: rotate(15deg); }
}
@keyframes ripple {
  0%   { box-shadow: 0 0 0 0 rgba(239,68,68,0.5), 0 0 0 6px rgba(239,68,68,0.2); }
  100% { box-shadow: 0 0 0 6px rgba(239,68,68,0), 0 0 0 12px rgba(239,68,68,0); }
}
@keyframes chicken-hop {
  0%, 100% { transform: translateY(0) scaleY(1); }
  40%       { transform: translateY(-7px) scaleY(1.1); }
  70%       { transform: translateY(0) scaleY(0.9); }
}
@keyframes stack-drop {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-4px); }
}

/* ─── 1. Tetris ─────────────────────────────────────────────── */
.icon-tetris {
  display: block;
  position: relative;
  width: 36px;
  height: 36px;
  animation: float 2.4s ease-in-out infinite;
}
.icon-tetris::before,
.icon-tetris::after {
  content: '';
  position: absolute;
  border-radius: 2px;
}
/* L-shape: 3 squares in a column + 1 square to the right at bottom */
.icon-tetris::before {
  /* top 3-cell column */
  width: 14px;
  height: 14px;
  background: radial-gradient(circle at 35% 35%, #818CF8, #4F46E5);
  box-shadow: 0 16px 0 #4F46E5, 0 32px 0 #4F46E5;
  top: 2px;
  left: 6px;
}
.icon-tetris::after {
  /* bottom-right foot */
  width: 14px;
  height: 14px;
  background: radial-gradient(circle at 35% 35%, #A5B4FC, #6366F1);
  box-shadow: inset -2px -2px 4px rgba(0,0,0,0.3);
  top: 20px;
  left: 22px;
}

/* ─── 2. Maze ───────────────────────────────────────────────── */
.icon-maze {
  display: block;
  position: relative;
  width: 36px;
  height: 36px;
}
/* Outer maze border approximated with box-shadow */
.icon-maze::before {
  content: '';
  position: absolute;
  width: 30px;
  height: 30px;
  top: 3px;
  left: 3px;
  border: 3px solid #22D3EE;
  border-radius: 4px;
  /* inner wall cuts */
  box-shadow:
    inset 8px 0 0 -5px #22D3EE,
    inset 0 8px 0 -5px #22D3EE;
}
/* marble / ball */
.icon-maze::after {
  content: '';
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #FCD34D, #F59E0B);
  box-shadow: 0 0 8px rgba(245,158,11,0.7);
  bottom: 6px;
  right: 6px;
  animation: bounce-y 1.8s ease-in-out infinite;
}

/* ─── 3. 2048 ───────────────────────────────────────────────── */
.icon-2048 {
  display: block;
  position: relative;
  width: 36px;
  height: 36px;
  background: radial-gradient(circle at 40% 40%, #FB923C, #EA580C);
  border-radius: 6px;
  box-shadow: 0 0 12px rgba(234,88,12,0.5), inset -3px -3px 6px rgba(0,0,0,0.25);
  animation: pulse-scale 2s ease-in-out infinite;
}
.icon-2048::before {
  content: '2k';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 900;
  color: #fff;
  letter-spacing: -0.5px;
  font-family: -apple-system, sans-serif;
  line-height: 1;
  padding-top: 1px;
}

/* ─── 4. Snake ──────────────────────────────────────────────── */
.icon-snake {
  display: block;
  position: relative;
  width: 36px;
  height: 36px;
  animation: wiggle 2.2s ease-in-out infinite;
}
/* body segments using box-shadow trick */
.icon-snake::before {
  content: '';
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background: radial-gradient(circle at 35% 35%, #4ADE80, #16A34A);
  top: 4px;
  left: 13px;
  box-shadow:
    -12px 8px 0 #22C55E,
    2px 16px 0 #16A34A,
    -10px 24px 0 #22C55E;
}
/* head */
.icon-snake::after {
  content: '';
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 4px;
  background: radial-gradient(circle at 35% 35%, #86EFAC, #22C55E);
  box-shadow: 0 0 8px rgba(34,197,94,0.6);
  top: 1px;
  left: 22px;
}

/* ─── 5. Flappy ─────────────────────────────────────────────── */
.icon-flappy {
  display: block;
  position: relative;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #FCD34D, #F59E0B);
  box-shadow: 0 0 16px rgba(245,158,11,0.5), inset -3px -3px 6px rgba(0,0,0,0.2);
  animation: float 2s ease-in-out infinite;
}
/* beak */
.icon-flappy::before {
  content: '';
  position: absolute;
  width: 10px;
  height: 7px;
  background: #F97316;
  border-radius: 0 4px 4px 0;
  top: 13px;
  right: -5px;
  clip-path: polygon(0 20%, 100% 0, 100% 100%, 0 80%);
}
/* eye */
.icon-flappy::after {
  content: '';
  position: absolute;
  width: 7px;
  height: 7px;
  background: #1E293B;
  border-radius: 50%;
  top: 8px;
  right: 7px;
  box-shadow: 2px 1px 0 2px #fff;
}

/* ─── 6. Mole ───────────────────────────────────────────────── */
.icon-mole {
  display: block;
  position: relative;
  width: 36px;
  height: 36px;
  animation: pop-up 2s ease-in-out infinite;
}
/* face */
.icon-mole::before {
  content: '';
  position: absolute;
  width: 24px;
  height: 22px;
  border-radius: 50% 50% 45% 45%;
  background: radial-gradient(circle at 40% 35%, #B45309, #78350F);
  box-shadow: 0 0 10px rgba(120,53,15,0.6);
  bottom: 2px;
  left: 6px;
}
/* ears */
.icon-mole::after {
  content: '';
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 40%, #D97706, #92400E);
  top: 4px;
  left: 4px;
  box-shadow: 18px 0 0 #92400E;
}

/* ─── 7. Reaction ───────────────────────────────────────────── */
.icon-reaction {
  display: block;
  position: relative;
  width: 36px;
  height: 36px;
  animation: flash 1.6s ease-in-out infinite;
}
/* lightning bolt using clip-path */
.icon-reaction::before {
  content: '';
  position: absolute;
  width: 18px;
  height: 32px;
  background: linear-gradient(175deg, #FDE047, #EAB308);
  box-shadow: 0 0 16px rgba(234,179,8,0.8);
  top: 2px;
  left: 9px;
  clip-path: polygon(60% 0%, 25% 45%, 50% 45%, 40% 100%, 75% 55%, 50% 55%);
}

/* ─── 8. Minesweeper ────────────────────────────────────────── */
.icon-minesweeper {
  display: block;
  position: relative;
  width: 36px;
  height: 36px;
  animation: pulse-scale 2.5s ease-in-out infinite;
}
/* bomb body */
.icon-minesweeper::before {
  content: '';
  position: absolute;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #475569, #0F172A);
  box-shadow: 0 0 12px rgba(15,23,42,0.8), inset -3px -3px 6px rgba(0,0,0,0.5);
  top: 8px;
  left: 6px;
}
/* fuse + spikes */
.icon-minesweeper::after {
  content: '';
  position: absolute;
  width: 4px;
  height: 8px;
  background: #78716C;
  border-radius: 2px;
  top: 2px;
  left: 16px;
  box-shadow:
    -8px 8px 0 2px #1E293B,
     8px 8px 0 2px #1E293B,
    -12px 14px 0 2px #1E293B,
    12px 14px 0 2px #1E293B;
}

/* ─── 9. Breakout ───────────────────────────────────────────── */
.icon-breakout {
  display: block;
  position: relative;
  width: 36px;
  height: 36px;
}
/* bricks row */
.icon-breakout::before {
  content: '';
  position: absolute;
  width: 30px;
  height: 8px;
  background: linear-gradient(90deg, #EF4444 0%, #EF4444 48%, transparent 48%, transparent 52%, #F97316 52%);
  border-radius: 2px;
  top: 4px;
  left: 3px;
  box-shadow: 0 9px 0 #F59E0B, 0 18px 0 #EAB308;
}
/* paddle + ball */
.icon-breakout::after {
  content: '';
  position: absolute;
  width: 18px;
  height: 5px;
  background: linear-gradient(90deg, #60A5FA, #3B82F6);
  border-radius: 3px;
  bottom: 3px;
  left: 9px;
  box-shadow: -2px -10px 0 4px #fff, 0 0 6px rgba(59,130,246,0.6);
  animation: slide-x 1.4s ease-in-out infinite;
}

/* ─── 10. Pong ──────────────────────────────────────────────── */
.icon-pong {
  display: block;
  position: relative;
  width: 36px;
  height: 36px;
  border: 2px solid #334155;
  border-radius: 4px;
}
/* left paddle */
.icon-pong::before {
  content: '';
  position: absolute;
  width: 4px;
  height: 14px;
  background: linear-gradient(180deg, #93C5FD, #3B82F6);
  border-radius: 2px;
  top: 11px;
  left: 3px;
}
/* right paddle + ball */
.icon-pong::after {
  content: '';
  position: absolute;
  width: 4px;
  height: 14px;
  background: linear-gradient(180deg, #FCA5A5, #EF4444);
  border-radius: 2px;
  top: 8px;
  right: 3px;
  box-shadow: -14px 5px 0 3px #F1F5F9;
  animation: float 1.8s ease-in-out infinite;
}

/* ─── 11. Sokoban ───────────────────────────────────────────── */
.icon-sokoban {
  display: block;
  position: relative;
  width: 36px;
  height: 36px;
  background: linear-gradient(145deg, #D97706, #92400E);
  border-radius: 4px;
  box-shadow: 3px 3px 0 #78350F, 0 0 10px rgba(180,83,9,0.4), inset 1px 1px 0 rgba(255,255,255,0.2);
  animation: bounce-y 2.4s ease-in-out infinite;
}
/* cross mark on box */
.icon-sokoban::before {
  content: '';
  position: absolute;
  width: 20px;
  height: 3px;
  background: rgba(255,255,255,0.4);
  border-radius: 2px;
  top: 16px;
  left: 8px;
  box-shadow: 0 0 0 0 transparent;
}
.icon-sokoban::after {
  content: '';
  position: absolute;
  width: 3px;
  height: 20px;
  background: rgba(255,255,255,0.4);
  border-radius: 2px;
  top: 8px;
  left: 16px;
}

/* ─── 12. TicTacToe ─────────────────────────────────────────── */
.icon-tictactoe {
  display: block;
  position: relative;
  width: 36px;
  height: 36px;
  animation: wiggle 3s ease-in-out infinite;
}
/* grid lines */
.icon-tictactoe::before {
  content: '';
  position: absolute;
  width: 30px;
  height: 30px;
  top: 3px;
  left: 3px;
  /* two vertical + two horizontal lines */
  background:
    linear-gradient(#60A5FA, #60A5FA) 10px 0 / 2px 100% no-repeat,
    linear-gradient(#60A5FA, #60A5FA) 20px 0 / 2px 100% no-repeat,
    linear-gradient(#60A5FA, #60A5FA) 0 10px / 100% 2px no-repeat,
    linear-gradient(#60A5FA, #60A5FA) 0 20px / 100% 2px no-repeat;
}
/* X mark top-left and O bottom-right */
.icon-tictactoe::after {
  content: '';
  position: absolute;
  /* X */
  width: 8px;
  height: 8px;
  top: 4px;
  left: 4px;
  background:
    linear-gradient(45deg, transparent 40%, #EF4444 40%, #EF4444 60%, transparent 60%),
    linear-gradient(-45deg, transparent 40%, #EF4444 40%, #EF4444 60%, transparent 60%);
  box-shadow: 19px 19px 0 3px #22C55E;
  border-radius: 50%;
}

/* ─── 13. Omok ──────────────────────────────────────────────── */
.icon-omok {
  display: block;
  position: relative;
  width: 36px;
  height: 36px;
  animation: float 2.6s ease-in-out infinite;
}
/* main black stone */
.icon-omok::before {
  content: '';
  position: absolute;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #555, #111);
  box-shadow:
    0 2px 8px rgba(0,0,0,0.6),
    inset 0 -2px 4px rgba(0,0,0,0.4);
  top: 4px;
  left: 4px;
}
/* highlight gloss */
.icon-omok::after {
  content: '';
  position: absolute;
  width: 12px;
  height: 8px;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(255,255,255,0.35), transparent);
  top: 8px;
  left: 10px;
}

/* ─── 14. Puzzle ────────────────────────────────────────────── */
.icon-puzzle {
  display: block;
  position: relative;
  width: 36px;
  height: 36px;
  animation: bounce-y 2.2s ease-in-out infinite;
}
/* 3x3 grid of tiles with one missing */
.icon-puzzle::before {
  content: '';
  position: absolute;
  width: 10px;
  height: 10px;
  background: linear-gradient(135deg, #60A5FA, #3B82F6);
  border-radius: 2px;
  top: 3px;
  left: 3px;
  box-shadow:
    13px 0 0 #3B82F6,
    26px 0 0 #60A5FA,
    0 13px 0 #2563EB,
    13px 13px 0 #60A5FA,
    /* 26px 13px gap = empty */
    0 26px 0 #3B82F6,
    13px 26px 0 #2563EB;
}
/* sliding tile approaching the gap */
.icon-puzzle::after {
  content: '';
  position: absolute;
  width: 10px;
  height: 10px;
  background: linear-gradient(135deg, #F59E0B, #D97706);
  border-radius: 2px;
  bottom: 3px;
  right: 3px;
  animation: slide-x 1.6s ease-in-out infinite;
}

/* ─── 15. Memory ────────────────────────────────────────────── */
.icon-memory {
  display: block;
  position: relative;
  width: 36px;
  height: 36px;
  animation: float 2.8s ease-in-out infinite;
}
/* card back (left) */
.icon-memory::before {
  content: '';
  position: absolute;
  width: 20px;
  height: 28px;
  background: linear-gradient(135deg, #6366F1, #4F46E5);
  border-radius: 4px;
  top: 4px;
  left: 0;
  box-shadow: inset -2px -2px 4px rgba(0,0,0,0.3), 0 2px 8px rgba(99,102,241,0.4);
}
/* card face (right, slightly overlapping) */
.icon-memory::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 28px;
  background: linear-gradient(135deg, #F1F5F9, #CBD5E1);
  border-radius: 4px;
  top: 4px;
  right: 0;
  box-shadow: inset -2px -2px 4px rgba(0,0,0,0.1), 0 2px 8px rgba(0,0,0,0.2);
  /* heart-like dot pattern */
  background:
    radial-gradient(circle at 50% 50%, #EF4444 3px, transparent 3px),
    linear-gradient(135deg, #F8FAFC, #E2E8F0);
}

/* ─── 16. Sudoku ────────────────────────────────────────────── */
.icon-sudoku {
  display: block;
  position: relative;
  width: 36px;
  height: 36px;
  border: 2px solid #60A5FA;
  border-radius: 3px;
  animation: pulse-scale 2.8s ease-in-out infinite;
}
/* 3x3 inner grid */
.icon-sudoku::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(#60A5FA, #60A5FA) 10px 0 / 1px 100% no-repeat,
    linear-gradient(#60A5FA, #60A5FA) 21px 0 / 1px 100% no-repeat,
    linear-gradient(#60A5FA, #60A5FA) 0 10px / 100% 1px no-repeat,
    linear-gradient(#60A5FA, #60A5FA) 0 21px / 100% 1px no-repeat;
  opacity: 0.5;
}
/* a few filled cells */
.icon-sudoku::after {
  content: '';
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 1px;
  background: #3B82F6;
  top: 1px;
  left: 1px;
  box-shadow:
    22px 0 0 #60A5FA,
    11px 11px 0 #2563EB,
    0 22px 0 #60A5FA,
    22px 22px 0 #3B82F6;
}

/* ─── 17. Chess ─────────────────────────────────────────────── */
.icon-chess {
  display: block;
  position: relative;
  width: 36px;
  height: 36px;
  animation: float 2.4s ease-in-out infinite;
}
/* king silhouette body */
.icon-chess::before {
  content: '';
  position: absolute;
  width: 18px;
  height: 24px;
  background: linear-gradient(180deg, #F1F5F9, #94A3B8);
  border-radius: 3px 3px 5px 5px;
  bottom: 3px;
  left: 9px;
  box-shadow: 0 0 10px rgba(148,163,184,0.5), inset -2px -3px 4px rgba(0,0,0,0.2);
  clip-path: polygon(20% 100%, 0% 70%, 15% 55%, 15% 30%, 40% 30%, 40% 10%, 60% 10%, 60% 30%, 85% 30%, 85% 55%, 100% 70%, 80% 100%);
}
/* crown cross */
.icon-chess::after {
  content: '';
  position: absolute;
  width: 4px;
  height: 10px;
  background: #F1F5F9;
  border-radius: 2px;
  top: 1px;
  left: 16px;
  box-shadow: -4px 3px 0 #CBD5E1, 4px 3px 0 #CBD5E1;
}

/* ─── 18. Othello ───────────────────────────────────────────── */
.icon-othello {
  display: block;
  position: relative;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  overflow: hidden;
  animation: flip 3s ease-in-out infinite;
}
/* left half black */
.icon-othello::before {
  content: '';
  position: absolute;
  width: 50%;
  height: 100%;
  background: radial-gradient(circle at 60% 40%, #374151, #0F172A);
  top: 0;
  left: 0;
  box-shadow: inset -2px 0 4px rgba(0,0,0,0.5);
}
/* right half white */
.icon-othello::after {
  content: '';
  position: absolute;
  width: 50%;
  height: 100%;
  background: radial-gradient(circle at 40% 40%, #F8FAFC, #CBD5E1);
  top: 0;
  right: 0;
  box-shadow: inset 2px 0 4px rgba(0,0,0,0.1);
}

/* ─── 19. Battleship ────────────────────────────────────────── */
.icon-battleship {
  display: block;
  position: relative;
  width: 36px;
  height: 36px;
  animation: float 2.5s ease-in-out infinite;
}
/* hull — boat shape using clip-path */
.icon-battleship::before {
  content: '';
  position: absolute;
  width: 34px;
  height: 16px;
  background: linear-gradient(180deg, #64748B, #334155);
  clip-path: polygon(8% 0%, 92% 0%, 100% 100%, 0% 100%);
  bottom: 4px;
  left: 1px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.4);
}
/* cabin + chimney + flag */
.icon-battleship::after {
  content: '';
  position: absolute;
  width: 12px;
  height: 8px;
  background: #475569;
  border-radius: 2px 2px 0 0;
  bottom: 18px;
  left: 12px;
  box-shadow:
    /* chimney */ 3px -7px 0 1px #374151,
    /* smoke */ 3px -12px 0 2px rgba(148,163,184,0.5),
    /* flag pole */ -6px -10px 0 0.5px #94A3B8,
    /* flag */ -9px -14px 0 2px #EF4444;
}

/* ─── 20. Connect4 ──────────────────────────────────────────── */
.icon-connect4 {
  display: block;
  position: relative;
  width: 36px;
  height: 36px;
  animation: drop 2s ease-in-out infinite;
}
/* 3 rows of dots */
.icon-connect4::before {
  content: '';
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #EF4444;
  top: 4px;
  left: 4px;
  box-shadow:
    12px 0 0 #F97316,
    24px 0 0 #EF4444,
    0 12px 0 #FBBF24,
    12px 12px 0 #EF4444,
    24px 12px 0 #F97316,
    0 24px 0 #EF4444,
    12px 24px 0 #FBBF24,
    24px 24px 0 #EF4444;
}

/* ─── 21. Colorfind ─────────────────────────────────────────── */
.icon-colorfind {
  display: block;
  position: relative;
  width: 36px;
  height: 36px;
  animation: pulse-scale 2.2s ease-in-out infinite;
}
/* colorful 3x3 grid */
.icon-colorfind::before {
  content: '';
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 2px;
  background: #3B82F6;
  top: 2px;
  left: 2px;
  box-shadow:
    13px 0 0 #EF4444,
    26px 0 0 #22C55E,
    0 13px 0 #F59E0B,
    13px 13px 0 #8B5CF6,
    26px 13px 0 #EC4899,
    0 26px 0 #06B6D4,
    26px 26px 0 #3B82F6;
}
/* odd-one-out highlighted */
.icon-colorfind::after {
  content: '';
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 2px;
  background: #F472B6;
  top: 15px;
  left: 15px;
  box-shadow: 0 0 8px rgba(244,114,182,0.8);
}

/* ─── 22. Doodle / Jump ─────────────────────────────────────── */
.icon-doodle {
  display: block;
  position: relative;
  width: 36px;
  height: 36px;
  animation: bounce-y 1.4s ease-in-out infinite;
}
/* platform */
.icon-doodle::before {
  content: '';
  position: absolute;
  width: 22px;
  height: 5px;
  background: linear-gradient(90deg, #34D399, #10B981);
  border-radius: 3px;
  bottom: 4px;
  left: 7px;
  box-shadow: 0 2px 6px rgba(16,185,129,0.5);
}
/* character (small rounded rect) */
.icon-doodle::after {
  content: '';
  position: absolute;
  width: 12px;
  height: 16px;
  background: radial-gradient(circle at 40% 30%, #FCD34D, #F59E0B);
  border-radius: 50% 50% 35% 35%;
  bottom: 10px;
  left: 12px;
  box-shadow: 0 0 8px rgba(245,158,11,0.5);
}

/* ─── 23. Dino ──────────────────────────────────────────────── */
.icon-dino {
  display: block;
  position: relative;
  width: 36px;
  height: 36px;
  animation: dino-run 0.7s ease-in-out infinite;
}
/* head + eye (eye blinks via animation on this element) */
.icon-dino::before {
  content: '';
  position: absolute;
  /* eye dot — animated blink */
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #F0F6FC;
  top: 5px;
  right: 5px;
  z-index: 2;
  animation: dino-blink 3s ease-in-out infinite;
  box-shadow:
    /* head block */ -5px -1px 0 6px #535353,
    /* head top-right */ 1px -2px 0 5px #535353,
    /* neck */ -10px 6px 0 4px #535353,
    /* arm */ -7px 11px 0 1.5px #535353;
}
/* body + tail + legs */
.icon-dino::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 12px;
  background: #535353;
  border-radius: 2px;
  top: 14px;
  left: 2px;
  box-shadow:
    /* tail */ -4px -3px 0 1.5px #535353,
    /* tail tip */ -6px -5px 0 1px #535353,
    /* left leg */ 5px 11px 0 1.5px #535353,
    /* left foot */ 4px 14px 0 1px #535353,
    /* right leg */ 13px 11px 0 1.5px #535353,
    /* right foot */ 12px 14px 0 1px #535353;
}

/* ─── 24. Rhythm ────────────────────────────────────────────── */
.icon-rhythm {
  display: block;
  position: relative;
  width: 36px;
  height: 36px;
  animation: note-bounce 1.2s ease-in-out infinite;
}
/* eighth note stem + flag */
.icon-rhythm::before {
  content: '';
  position: absolute;
  width: 3px;
  height: 20px;
  background: linear-gradient(180deg, #EC4899, #DB2777);
  border-radius: 2px;
  top: 4px;
  left: 11px;
  box-shadow:
    /* note head */ -3px 17px 0 5px #DB2777,
    /* beam */ 10px -2px 0 2px #EC4899,
    /* second stem */ 12px 0 0 3px #EC4899,
    /* second head */ 9px 12px 0 5px #DB2777;
}
.icon-rhythm::after {
  content: '';
  position: absolute;
  width: 3px;
  height: 14px;
  background: #EC4899;
  border-radius: 2px;
  top: 6px;
  left: 24px;
}

/* ─── 25. Dodge ─────────────────────────────────────────────── */
.icon-dodge {
  display: block;
  position: relative;
  width: 36px;
  height: 36px;
  animation: dodge-slide 1s ease-in-out infinite;
}
/* character */
.icon-dodge::before {
  content: '';
  position: absolute;
  width: 10px;
  height: 16px;
  background: radial-gradient(circle at 40% 35%, #60A5FA, #2563EB);
  border-radius: 5px 5px 3px 3px;
  top: 10px;
  left: 13px;
  box-shadow: 0 0 8px rgba(37,99,235,0.5);
}
/* two arrows (left and right) */
.icon-dodge::after {
  content: '';
  position: absolute;
  width: 8px;
  height: 3px;
  background: #EF4444;
  border-radius: 1px;
  top: 17px;
  left: 0;
  /* arrowhead left */
  box-shadow:
    2px -3px 0 0 #EF4444,
    2px 3px 0 0 #EF4444,
    /* right arrow body */ 28px 0 0 #EF4444,
    26px -3px 0 0 #EF4444,
    26px 3px 0 0 #EF4444;
}

/* ─── 26. Fruit ─────────────────────────────────────────────── */
.icon-fruit {
  display: block;
  position: relative;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 40%, #4ADE80, #16A34A);
  box-shadow: 0 0 12px rgba(22,163,74,0.5), inset -3px -3px 6px rgba(0,0,0,0.2);
  animation: slice 2s ease-in-out infinite;
}
/* red inner flesh */
.icon-fruit::before {
  content: '';
  position: absolute;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: radial-gradient(circle at 45% 45%, #FCA5A5, #EF4444);
  top: 5px;
  left: 5px;
}
/* slice line + seeds */
.icon-fruit::after {
  content: '';
  position: absolute;
  width: 2px;
  height: 20px;
  background: rgba(255,255,255,0.7);
  border-radius: 1px;
  top: 8px;
  left: 17px;
  box-shadow:
    -5px 3px 0 2px #0F172A,
    5px 7px 0 2px #0F172A,
    -3px 11px 0 2px #0F172A;
}

/* ─── 27. Target ────────────────────────────────────────────── */
.icon-target {
  display: block;
  position: relative;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #EF4444;
  box-shadow: 0 0 0 5px #F1F5F9, 0 0 0 10px #EF4444, 0 0 0 15px #F1F5F9;
  animation: ripple 1.4s ease-out infinite;
}
/* bullseye center dot */
.icon-target::before {
  content: '';
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #F1F5F9;
  top: 14px;
  left: 14px;
}

/* ─── 28. Crossy ────────────────────────────────────────────── */
.icon-crossy {
  display: block;
  position: relative;
  width: 36px;
  height: 36px;
  animation: chicken-hop 1s ease-in-out infinite;
}
/* body */
.icon-crossy::before {
  content: '';
  position: absolute;
  width: 20px;
  height: 18px;
  background: radial-gradient(circle at 40% 35%, #FCD34D, #F59E0B);
  border-radius: 50% 50% 45% 45%;
  bottom: 4px;
  left: 8px;
  box-shadow: 0 0 8px rgba(245,158,11,0.4);
}
/* head + beak + comb */
.icon-crossy::after {
  content: '';
  position: absolute;
  width: 12px;
  height: 12px;
  background: radial-gradient(circle at 40% 35%, #FDE68A, #FCD34D);
  border-radius: 50%;
  top: 3px;
  left: 18px;
  /* beak */
  box-shadow:
    8px 4px 0 3px #F97316,
    /* comb */ -2px -4px 0 3px #EF4444,
    /* eye */ -1px 2px 0 2px #0F172A;
}

/* ─── 29. Stack ─────────────────────────────────────────────── */
.icon-stack {
  display: block;
  position: relative;
  width: 36px;
  height: 36px;
  animation: stack-drop 1.8s ease-in-out infinite;
}
/* three stacked blocks with shadow/perspective */
.icon-stack::before {
  content: '';
  position: absolute;
  width: 28px;
  height: 9px;
  background: linear-gradient(90deg, #3B82F6, #60A5FA);
  border-radius: 3px;
  bottom: 3px;
  left: 4px;
  box-shadow:
    0 -11px 0 #22C55E,
    2px -22px 0 -1px #F59E0B;
}
/* incoming block at top */
.icon-stack::after {
  content: '';
  position: absolute;
  width: 22px;
  height: 9px;
  background: linear-gradient(90deg, #EF4444, #F87171);
  border-radius: 3px;
  top: 1px;
  left: 7px;
  box-shadow: 0 0 10px rgba(239,68,68,0.6);
  animation: slide-x 1.8s ease-in-out infinite;
}


/* ─── 30. Mario ────────────────────────────────────────────── */
@keyframes mario-run {
  0%, 100% { transform: translateX(0) translateY(0); }
  25% { transform: translateX(2px) translateY(-4px); }
  50% { transform: translateX(4px) translateY(0); }
  75% { transform: translateX(2px) translateY(-3px); }
}
.icon-mario {
  display: block;
  position: relative;
  width: 36px;
  height: 36px;
  animation: mario-run 0.8s ease-in-out infinite;
}
/* body + hat */
.icon-mario::before {
  content: '';
  position: absolute;
  width: 16px;
  height: 12px;
  background: linear-gradient(180deg, #E52521 50%, #3B3BFF 50%);
  border-radius: 4px 4px 2px 2px;
  bottom: 6px;
  left: 10px;
  box-shadow:
    /* hat */ 0px -10px 0 4px #E52521,
    /* hat brim */ 2px -6px 0 6px #E52521,
    0 0 10px rgba(229,37,33,0.4);
}
/* head + face */
.icon-mario::after {
  content: '';
  position: absolute;
  width: 12px;
  height: 10px;
  background: radial-gradient(circle at 50% 40%, #FFB899, #E8956E);
  border-radius: 50% 50% 40% 40%;
  top: 7px;
  left: 12px;
  box-shadow:
    /* eye */ 3px 1px 0 2px #0F172A,
    /* mustache */ 2px 5px 0 2px #6B3300,
    /* shoe L */ -4px 21px 0 3px #6B3300,
    /* shoe R */ 8px 21px 0 3px #6B3300;
}

/* ─── Game Logo (for start screens) ──────────────────────────── */
.game-logo-css {
  width: 64px;
  height: 64px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.game-logo-css > [class^="icon-"] {
  transform: scale(1.78);
  transform-origin: center;
}
