/* Hodion v12.1 "Bright style": game-card shop, arcade buttons, bold numbers. Cosmetic only. */

/* ---------- shop cards ---------- */
#shop-list.v120-shop-grid { grid-auto-flow: dense; }
.shop-card.v121-card { overflow: hidden; isolation: isolate; }
.shop-card.v121-card .shop-preview {
  background: radial-gradient(circle at 50% 42%, #fff 0, color-mix(in srgb, var(--kc) 45%, #fff) 30%, var(--kc) 62%, var(--kd) 100%);
  box-shadow: inset 0 -6px 0 rgba(0, 0, 0, 0.12), inset 0 2px 0 rgba(255, 255, 255, 0.5);
}
.shop-card.v121-wide { grid-column: 1 / -1; display: grid !important; grid-template-columns: repeat(auto-fit, minmax(min(100%, 9.5rem), 1fr)); grid-auto-rows: auto; column-gap: 0.8rem; text-align: left; align-items: center; }
.shop-card.v121-wide .shop-preview { grid-row: span 3; height: 150px; }
.shop-card.v121-wide h3 { font-size: 1.15rem; }
.shop-card.v121-wide > p, .shop-card.v121-wide > .button { justify-self: start; }
.shop-card.v121-wide .button { width: auto; min-width: 8rem; }
.shop-card.v121-tall .shop-preview { height: 150px; }
.v121-rib { position: absolute; inset: 0; overflow: hidden; pointer-events: none; border-radius: inherit; z-index: 2; }
.v121-ribbon {
  position: absolute; top: 14px; right: -34px; z-index: 2; width: 120px; padding: 0.15rem 0; transform: rotate(35deg);
  background: linear-gradient(#ffe36e, #ffc92e); color: #3a2a00; font-size: 0.68rem; font-weight: 900; letter-spacing: 0.06em; text-align: center;
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.2); text-transform: uppercase;
}
.v120-price { font-size: 1rem; text-shadow: 0 1px 0 #fff; }
/* 3D buy button */
.shop-card.v121-card .button:not(.secondary) {
  border-radius: 14px; background: linear-gradient(#3fcf8e, #12925f); color: #fff; font-weight: 900; text-shadow: 0 1px 0 rgba(0, 0, 0, 0.35);
  box-shadow: 0 5px 0 #0a5a3f, 0 7px 10px rgba(0, 0, 0, 0.18); transform: translateY(0);
}
.shop-card.v121-card .button:not(.secondary):active { transform: translateY(4px); box-shadow: 0 1px 0 #0a5a3f; }
/* unbox burst after a purchase */
.shop-card.v121-burst::after {
  content: ""; position: absolute; inset: -40%; z-index: 3; pointer-events: none;
  background: repeating-conic-gradient(from 0deg, rgba(255, 230, 110, 0.75) 0 10deg, transparent 10deg 30deg), radial-gradient(circle, #fff 0, rgba(255, 255, 255, 0) 45%);
  animation: v121-burst 1s ease-out forwards;
}
.shop-card.v121-burst .shop-preview > * { animation: v121-pop 600ms cubic-bezier(.2, 1.6, .4, 1); }
@keyframes v121-burst { 0% { opacity: 0; transform: scale(0.3) rotate(0deg); } 25% { opacity: 1; } 100% { opacity: 0; transform: scale(1.2) rotate(40deg); } }
@keyframes v121-pop { 0% { transform: scale(0.6); } 100% { transform: scale(1); } }

/* ---------- arcade polish ---------- */
.button:not(.secondary):not(.danger-quiet) { box-shadow: 0 4px 0 color-mix(in srgb, var(--pine) 60%, #000), 0 6px 10px rgba(0, 0, 0, 0.12); }
.button:not(.secondary):not(.danger-quiet):active { transform: translateY(3px); box-shadow: 0 1px 0 color-mix(in srgb, var(--pine) 60%, #000); }
.button.secondary { box-shadow: 0 3px 0 var(--line); }
.button.secondary:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--line); }
.coin-pill { font-weight: 900; font-size: 1.02rem; letter-spacing: 0.01em; text-shadow: 0 1px 0 rgba(255, 255, 255, 0.7); box-shadow: 0 3px 0 rgba(0, 0, 0, 0.18); }
.v112-badge, .v120-state { text-shadow: none; }

@media (prefers-reduced-motion: reduce) {
  .shop-card.v121-burst::after, .shop-card.v121-burst .shop-preview > * { animation: none; display: none; }
  .button:active, .shop-card.v121-card .button:active { transform: none !important; }
}
html.less-motion .shop-card.v121-burst::after { display: none; }
.shop-card.v121-wide > * { min-width: 0; overflow-wrap: anywhere; }
.shop-card.v121-card .button { max-width: 100%; white-space: normal; }
