.treasure-quest-tile {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(229, 244, 255, 0.96)),
    radial-gradient(circle at 18% 20%, rgba(255, 209, 92, 0.34), transparent 28%);
  border-color: rgba(40, 119, 255, 0.24);
}

.treasure-quest-tile .button {
  width: 100%;
}

.street-smart-tile {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(237, 246, 255, 0.96)),
    radial-gradient(circle at 78% 18%, rgba(255, 95, 138, 0.24), transparent 28%);
  border-color: rgba(40, 119, 255, 0.24);
}

.street-smart-tile .button {
  width: 100%;
}

.treasure-quest-preview {
  position: relative;
  min-height: 190px;
  overflow: hidden;
  border-radius: 24px;
  background:
    radial-gradient(circle at 68% 26%, rgba(255, 209, 92, 0.78), transparent 10%),
    radial-gradient(circle at 50% 72%, rgba(53, 215, 255, 0.72), transparent 24%),
    linear-gradient(180deg, #10243a, #071523 62%, #04101f);
  box-shadow: inset 0 -42px 80px rgba(20, 22, 111, 0.16);
}

.street-smart-preview {
  position: relative;
  min-height: 190px;
  overflow: hidden;
  border-radius: 24px;
  background:
    radial-gradient(circle at 78% 22%, #ffd15c 0 8%, transparent 9%),
    linear-gradient(180deg, #82d9ff 0 52%, #6fce82 53% 61%, #32445f 62% 100%);
  box-shadow: inset 0 -42px 80px rgba(20, 22, 111, 0.16);
}

.street-smart-preview::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 46px;
  height: 10px;
  background: repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.96) 0 42px, transparent 42px 86px);
}

.treasure-quest-preview::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, transparent 0 34%, rgba(53, 215, 255, 0.32) 35% 40%, transparent 41%),
    linear-gradient(180deg, transparent 42%, rgba(9, 116, 155, 0.28));
}

.treasure-mini-avatar,
.treasure-mini-chest,
.treasure-mini-island,
.street-mini-sun,
.street-mini-road,
.street-mini-car,
.street-mini-police,
.street-mini-flash {
  position: absolute;
  display: block;
}

.street-mini-sun {
  right: 30px;
  top: 24px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #ffd15c;
  box-shadow: 0 0 28px rgba(255, 209, 92, 0.72);
}

.street-mini-road {
  left: -10%;
  right: -10%;
  bottom: 0;
  height: 72px;
  background: #26364f;
}

.street-mini-car,
.street-mini-police {
  bottom: 48px;
  width: 104px;
  height: 48px;
  border-radius: 24px 34px 16px 16px;
  box-shadow: 0 14px 20px rgba(20, 22, 111, 0.18);
}

.street-mini-car {
  left: 34px;
  background: linear-gradient(135deg, #12b8d9, #ffd15c);
  transform: rotate(-2deg);
}

.street-mini-police {
  right: 34px;
  background: linear-gradient(90deg, #ffffff 0 55%, #2877ff 56%);
}

.street-mini-car::before,
.street-mini-police::before {
  content: "";
  position: absolute;
  left: 22px;
  top: -18px;
  width: 42px;
  height: 28px;
  border-radius: 16px 16px 8px 8px;
  background: rgba(184, 243, 255, 0.92);
}

.street-mini-car::after,
.street-mini-police::after {
  content: "";
  position: absolute;
  left: 16px;
  bottom: -10px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #13213b;
  box-shadow: 58px 0 0 #13213b;
}

.street-mini-police .noop {
  display: none;
}

.street-mini-flash {
  width: 88px;
  height: 18px;
  border-radius: 999px;
  transform: rotate(-12deg);
  opacity: 0.82;
  filter: blur(0.2px);
}

.street-mini-flash.one {
  right: 82px;
  top: 58px;
  background: linear-gradient(90deg, transparent, rgba(40, 119, 255, 0.9), transparent);
}

.street-mini-flash.two {
  right: 46px;
  top: 88px;
  background: linear-gradient(90deg, transparent, rgba(255, 45, 95, 0.9), transparent);
}

.treasure-mini-avatar {
  left: 18px;
  bottom: 18px;
  width: 64px;
  height: 64px;
  border: 5px solid #ffffff;
  border-radius: 22px;
  background:
    radial-gradient(circle at 50% 28%, #d79b65 0 18%, transparent 19%),
    linear-gradient(90deg, #2877ff 0 48%, #e94d5f 52%),
    #ffc77d;
  box-shadow: 0 16px 26px rgba(20, 22, 111, 0.22);
}

.treasure-mini-avatar::before {
  content: "";
  position: absolute;
  left: 24px;
  top: 9px;
  width: 18px;
  height: 11px;
  border-radius: 999px 999px 5px 5px;
  background: #2a1a12;
}

.treasure-mini-chest {
  width: 46px;
  height: 38px;
  border: 4px solid #ffffff;
  border-radius: 12px;
  background: linear-gradient(135deg, #ffb31a, #ff6a3d);
  box-shadow: 0 14px 22px rgba(20, 22, 111, 0.2);
}

.treasure-mini-chest::after {
  content: "";
  position: absolute;
  left: 14px;
  top: -18px;
  width: 18px;
  height: 18px;
  transform: rotate(45deg);
  background: linear-gradient(135deg, #7df9ff, #2877ff);
  box-shadow: 0 0 18px rgba(53, 215, 255, 0.82);
}

.treasure-mini-chest.one {
  right: 28px;
  top: 24px;
  transform: rotate(8deg);
}

.treasure-mini-chest.two {
  right: 76px;
  bottom: 26px;
  transform: rotate(-10deg);
}

.treasure-parent-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 18px;
  padding: 18px;
  border: 2px solid #d7ebff;
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(231, 247, 255, 0.95)),
    radial-gradient(circle at 90% 10%, rgba(255, 194, 51, 0.28), transparent 26%);
  box-shadow: 0 16px 34px rgba(24, 137, 255, 0.12);
}

.treasure-parent-card h4 {
  margin: 3px 0 6px;
  color: #14166f;
  font-size: clamp(1.25rem, 2.2vw, 1.8rem);
}

.treasure-parent-card p {
  margin: 0;
  color: #5a6688;
  max-width: 54ch;
}

.treasure-parent-card .button {
  flex: 0 0 auto;
}

.street-smart-parent-card {
  border-color: #dbe9ff;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(238, 247, 255, 0.95)),
    radial-gradient(circle at 88% 12%, rgba(255, 95, 138, 0.2), transparent 26%);
}

@media (max-width: 720px) {
  .treasure-parent-card {
    align-items: stretch;
    flex-direction: column;
  }

  .treasure-parent-card .button {
    width: 100%;
  }
}

/* Replace older CSS-drawn game-card previews with fast image-backed graphics. */
.treasure-quest-preview {
  background:
    linear-gradient(180deg, rgba(5, 18, 55, 0.05), rgba(5, 18, 55, 0.22)),
    url("treasure-quest/assets/treasure-islands.png") center / cover no-repeat !important;
}

.street-smart-preview {
  background:
    linear-gradient(180deg, rgba(5, 18, 55, 0.04), rgba(5, 18, 55, 0.18)),
    url("street-smart-rescue/assets/generated/suburban-road-plate.png") center / cover no-repeat !important;
}

.street-smart-preview::before,
.treasure-quest-preview::before,
.street-mini-sun,
.street-mini-road,
.street-mini-flash,
.treasure-mini-island {
  display: none !important;
}

.street-mini-car,
.street-mini-police {
  bottom: 28px;
  width: 118px;
  height: 74px;
  border-radius: 0;
  box-shadow: 0 16px 24px rgba(12, 30, 80, 0.18);
}

.street-mini-car {
  background:
    url("street-smart-rescue/assets/generated/kid-car-alpha.png") center / contain no-repeat !important;
}

.street-mini-police {
  background:
    url("street-smart-rescue/assets/generated/police-car-alpha.png") center / contain no-repeat !important;
}

.street-mini-car::before,
.street-mini-police::before,
.street-mini-car::after,
.street-mini-police::after,
.treasure-mini-avatar::before,
.treasure-mini-chest::after {
  display: none !important;
}

.treasure-mini-avatar {
  border: 4px solid rgba(255,255,255,0.82);
  background:
    url("treasure-quest/assets/pirate-avatar.png") center / cover no-repeat !important;
}

.treasure-mini-chest {
  width: 62px;
  height: 54px;
  border: 0;
  background:
    url("cave-river-quest/assets/generated/treasure-chest-alpha.png") center / contain no-repeat !important;
}
