/* Duelio web shop — mirrors the app's graphite, gold-rimmed shelf UI. */

.shop-page .nav-links .active { color: var(--gold); }
.shop-page .nav-links .active::after {
  content: "";
  display: block;
  height: 2px;
  margin-top: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--blue-bright), var(--gold), var(--red-bright));
}

.game-shop {
  max-width: 1320px;
  min-height: 100svh;
  margin: 0 auto;
  padding: 82px 16px 60px;
}

.shop-shell {
  padding: 12px;
  border: 1px solid rgba(163, 181, 199, 0.15);
  border-radius: 16px;
  background:
    linear-gradient(145deg, rgba(27, 29, 33, 0.88), rgba(3, 4, 5, 0.92)),
    rgba(3, 4, 6, 0.92);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.055);
}

.shop-app-bar {
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin-bottom: 7px;
}

.shop-app-bar img {
  width: 41px;
  height: 28px;
  object-fit: contain;
  filter: drop-shadow(0 0 10px rgba(255, 212, 107, 0.22));
}

.shop-app-bar span,
.selector-copy strong,
.shelf-title span,
.product-title {
  font-family: var(--display);
  font-weight: 400;
}

.shop-app-bar span {
  font-size: 1rem;
  letter-spacing: 0.12em;
  background: linear-gradient(180deg, #fff5bd, var(--gold) 50%, var(--gold-deep));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.shop-selector {
  min-height: 60px;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 8px;
  border: 1px solid rgba(255, 212, 107, 0.34);
  border-radius: 12px;
  background: linear-gradient(155deg, rgba(47, 51, 57, 0.93), rgba(15, 17, 20, 0.96));
  box-shadow: 0 4px 0 rgba(1, 2, 3, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 0 22px rgba(255, 190, 40, 0.055);
}

.selector-thumb {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 212, 107, 0.38);
  border-radius: 8px;
  overflow: hidden;
  background: linear-gradient(180deg, var(--tile-top), var(--tile-bot));
}

.selector-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.selector-thumb.pro img {
  width: 38px;
  height: 27px;
  object-fit: contain;
}

.selector-thumb.perks::before {
  content: "💡";
  font-size: 1.65rem;
  filter: drop-shadow(0 0 8px rgba(255, 212, 107, 0.38));
}

.selector-copy { min-width: 0; }
.selector-copy strong,
.selector-copy span { display: block; }
.selector-copy strong {
  overflow: hidden;
  color: var(--gold);
  font-size: 0.82rem;
  letter-spacing: 0.07em;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.selector-copy span {
  overflow: hidden;
  margin-top: 3px;
  color: rgba(255, 255, 255, 0.52);
  font-family: var(--display);
  font-size: 0.52rem;
  letter-spacing: 0.055em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.selector-open {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 8px;
  color: #241a05;
  background: linear-gradient(180deg, #fff5bd, var(--gold) 50%, var(--gold-deep));
  box-shadow: 0 4px 0 rgba(84, 55, 6, 0.95), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  font-family: var(--display);
  font-size: 0.62rem;
  letter-spacing: 0.04em;
}
.selector-open:hover { color: #241a05; filter: brightness(1.05); }

.shop-tabs {
  position: sticky;
  top: 58px;
  z-index: 30;
  display: flex;
  gap: 6px;
  margin-top: 9px;
  padding: 6px;
  overflow-x: auto;
  border: 1px solid rgba(163, 181, 199, 0.13);
  border-radius: 11px;
  background: rgba(7, 8, 11, 0.86);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  scrollbar-width: none;
}
.shop-tabs::-webkit-scrollbar { display: none; }

.filter-button {
  flex: 0 0 auto;
  min-height: 38px;
  padding: 0 10px;
  border: 1px solid rgba(163, 181, 199, 0.2);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.66);
  background: linear-gradient(180deg, rgba(69, 74, 82, 0.96), rgba(27, 30, 34, 0.98));
  box-shadow: 0 3px 0 rgba(1, 2, 3, 0.88), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  font-family: var(--display);
  font-size: 0.6875rem;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: color 0.18s, filter 0.18s, transform 0.1s;
}
.filter-button:hover { color: #fff; filter: brightness(1.12); }
.filter-button:active { transform: translateY(2px); }
.filter-button.active {
  color: #241a05;
  border-color: rgba(255, 255, 255, 0.5);
  background: linear-gradient(180deg, #fff5bd, var(--gold) 50%, var(--gold-deep));
  box-shadow: 0 3px 0 rgba(84, 55, 6, 0.95), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.shop-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 25px;
  padding: 5px 3px 0;
  color: rgba(255, 255, 255, 0.42);
  font-size: 0.72rem;
  font-weight: 700;
}
.shop-status p:last-child { text-align: right; }
.shop-status p:last-child span { color: #8ef0b1; }

.shelves {
  min-height: 280px;
  padding-top: 2px;
}

.product-shelf {
  margin-top: 7px;
  padding: 8px;
  border: 1px solid rgba(163, 181, 199, 0.13);
  border-radius: 12px;
  background: linear-gradient(160deg, rgba(30, 33, 38, 0.82), rgba(7, 9, 12, 0.9));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.045);
}

.shelf-title {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 17px;
  margin-bottom: 6px;
}
.shelf-title span {
  flex: 0 0 auto;
  color: var(--gold);
  font-size: 0.58rem;
  letter-spacing: 0.12em;
}
.shelf-title::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(255, 212, 107, 0.55), transparent);
}

.shelf-track {
  display: flex;
  gap: 8px;
  padding: 2px 1px 6px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scrollbar-color: rgba(255, 212, 107, 0.28) transparent;
  scrollbar-width: thin;
}

.shelf-track.is-marquee {
  scroll-snap-type: none;
  overscroll-behavior-inline: contain;
  cursor: grab;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent);
}
.shelf-track.is-marquee:active { cursor: grabbing; }
.shelf-track.is-marquee .product-card { flex-basis: 168px; }
.shelf-track.is-marquee[data-marquee-shelf="cues"] .product-card { flex-basis: 138px; }
.shelf-track.is-marquee .product-art { min-height: 96px; }
.shelf-track.is-marquee .product-description { display: none; min-height: 0; }
.shelf-track.is-marquee .product-open { min-height: 36px; padding-block: 7px; }
.shelf-motion {
  flex: 0 0 auto;
  min-width: 54px;
  min-height: 36px;
  padding: 0 7px;
  border: 1px solid rgba(255, 212, 107, 0.25);
  border-radius: 6px;
  color: rgba(255, 255, 255, 0.68);
  background: rgba(255, 255, 255, 0.055);
  font-family: var(--display);
  font-size: 0.6875rem;
  letter-spacing: 0.04em;
  cursor: pointer;
}
.shelf-motion:hover,
.shelf-motion:focus-visible { color: var(--gold); border-color: rgba(255, 212, 107, 0.48); }
.shelf-motion[hidden] { display: none; }

.product-card {
  position: relative;
  flex: 0 0 clamp(172px, 16vw, 204px);
  min-width: 0;
  display: flex;
  flex-direction: column;
  scroll-snap-align: start;
  border: 1px solid rgba(163, 181, 199, 0.14);
  border-radius: 10px;
  background: linear-gradient(160deg, rgba(44, 48, 54, 0.98), rgba(8, 10, 13, 0.99));
  box-shadow: 0 4px 0 rgba(1, 2, 3, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.075);
  overflow: hidden;
  transition: transform 0.18s ease, border-color 0.18s ease, filter 0.18s ease;
}
.product-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 212, 107, 0.3);
  filter: brightness(1.05);
}
.product-card.spotlight {
  animation: product-spotlight 1.8s ease-out;
}
@keyframes product-spotlight {
  0%, 28% { border-color: var(--gold); box-shadow: 0 0 0 4px rgba(255, 212, 107, 0.18), 0 0 42px rgba(255, 190, 40, 0.24); }
  100% { border-color: rgba(163, 181, 199, 0.14); }
}

.product-art {
  position: relative;
  min-height: 112px;
  aspect-ratio: 1.42;
  display: grid;
  place-items: center;
  padding: 8px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 45%, var(--product-glow, rgba(29, 137, 233, 0.22)), transparent 62%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.055), rgba(0, 0, 0, 0.24));
}
.product-art::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 38%;
  background: linear-gradient(transparent, rgba(4, 5, 7, 0.56));
  pointer-events: none;
}
.product-art img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 12px 16px rgba(0, 0, 0, 0.44));
  transition: transform 0.25s ease;
}
.product-card:hover .product-art img { transform: scale(1.035); }

.product-art.icon img {
  width: 112px;
  height: 76px;
  object-fit: contain;
}
.product-art.cue img {
  width: 108%;
  height: 76%;
  transform: rotate(10deg);
}
.product-card:hover .product-art.cue img { transform: rotate(13deg) scale(1.03); }
.product-art.ball img,
.product-art.ring img {
  width: 118px;
  height: 118px;
  border-radius: 0;
  object-fit: contain;
}
.product-art.ball img {
  filter: drop-shadow(0 13px 12px rgba(0, 0, 0, 0.5));
}
.product-art.ring img {
  width: 142px;
  height: 142px;
  filter: drop-shadow(0 14px 12px rgba(0, 0, 0, 0.48));
}
.product-art.hint::before {
  content: "💡";
  position: relative;
  z-index: 1;
  width: 104px;
  height: 104px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 212, 107, 0.44);
  border-radius: 50%;
  background: radial-gradient(circle at 35% 25%, #fff6bf, #d99b14 64%, #5d3906);
  box-shadow: 0 0 34px rgba(255, 190, 40, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.55);
  font-size: 2.9rem;
}

.product-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 9px;
}
.product-title-row {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  justify-content: space-between;
}
.product-title {
  color: rgba(255, 255, 255, 0.91);
  font-size: 0.65rem;
  letter-spacing: 0.035em;
  line-height: 1.35;
  text-transform: uppercase;
}
.product-price {
  flex: 0 0 auto;
  padding: 3px 6px;
  border: 1px solid rgba(255, 212, 107, 0.42);
  border-radius: 5px;
  color: #251a05;
  background: linear-gradient(180deg, #fff0a5, var(--gold));
  font-size: 0.65rem;
  font-weight: 900;
  line-height: 1;
}
.product-description {
  display: -webkit-box;
  min-height: 2.65em;
  margin: 5px 0 8px;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.68rem;
  line-height: 1.32;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.product-meta {
  align-self: flex-start;
  margin-top: 5px;
  padding: 3px 6px;
  border: 1px solid rgba(163, 181, 199, 0.22);
  border-radius: 5px;
  color: rgba(255, 255, 255, 0.58);
  background: rgba(255, 255, 255, 0.035);
  font-family: var(--display);
  font-size: 0.5rem;
  letter-spacing: 0.055em;
}
.product-features {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin: -1px 0 8px;
}
.product-features span {
  padding: 4px 6px;
  border: 1px solid rgba(255, 212, 107, 0.2);
  border-radius: 6px;
  color: rgba(255, 255, 255, 0.64);
  background: rgba(255, 212, 107, 0.045);
  font-size: 0.61rem;
  font-weight: 800;
}
.product-open {
  width: 100%;
  min-height: 38px;
  margin-top: auto;
  padding: 8px 9px;
  font-size: 0.6875rem;
}
.product-open svg { width: 14px; height: 14px; flex: 0 0 auto; }

.hero-shelf .shelf-track {
  display: flex;
  overflow-x: auto;
}
.hero-shelf .product-card {
  width: auto;
  flex: 0 0 clamp(238px, 25vw, 312px);
  display: flex;
  flex-direction: column;
}
.hero-shelf .product-art { min-height: 142px; aspect-ratio: 1.5; }
.hero-shelf .product-body { justify-content: center; padding: 11px; }
.hero-shelf .product-title { font-size: 0.67rem; }
.hero-shelf .product-description { font-size: 0.72rem; }

.store-note {
  display: flex;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
  margin: 18px 6px 0;
  color: rgba(255, 255, 255, 0.46);
  font-size: 0.8rem;
}
.store-note p { max-width: 900px; }
.store-note a { flex: 0 0 auto; font-weight: 900; }

.shop-noscript {
  margin-top: 12px;
  padding: 18px;
  border: 1px solid rgba(254, 81, 0, 0.3);
  border-radius: 10px;
  color: #ffd1bd;
  text-align: center;
}

.open-notice {
  position: fixed;
  z-index: 100;
  right: 20px;
  bottom: 20px;
  max-width: 430px;
  padding: 16px 16px 16px 18px;
  display: flex;
  gap: 18px;
  align-items: flex-start;
  border: 1px solid rgba(255, 212, 107, 0.35);
  border-radius: 12px;
  background: rgba(13, 14, 18, 0.96);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.open-notice[hidden] { display: none; }
.open-notice b, .open-notice span { display: block; }
.open-notice b {
  color: var(--gold);
  font-family: var(--display);
  font-size: 0.76rem;
  font-weight: 400;
}
.open-notice span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.4;
}
.open-notice button {
  border: 0;
  color: var(--muted);
  background: transparent;
  font-size: 1.45rem;
  line-height: 1;
  cursor: pointer;
}

@media (max-width: 800px) {
  .store-note { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 760px) {
  .game-shop { padding-top: 116px; }
  .shop-tabs { top: 96px; }
}

@media (max-width: 560px) {
  .game-shop { padding: 112px 8px 52px; }
  .shop-shell { padding: 8px; border-radius: 13px; }
  .shop-app-bar { height: 24px; margin-bottom: 5px; }
  .shop-app-bar img { width: 35px; height: 24px; }
  .shop-app-bar span { font-size: 0.88rem; }
  .shop-selector { min-height: 60px; grid-template-columns: 45px minmax(0, 1fr); gap: 9px; padding: 8px; }
  .selector-thumb { width: 45px; height: 45px; }
  .selector-open { display: none; }
  .selector-copy strong { font-size: 0.75rem; }
  .selector-copy span { font-size: 0.45rem; }
  .shop-tabs { top: 94px; margin-top: 7px; padding: 5px; }
  .filter-button { min-height: 36px; padding: 0 9px; font-size: 0.6875rem; }
  .shop-status { align-items: flex-start; flex-direction: column; gap: 1px; font-size: 0.62rem; }
  .shop-status p:last-child { text-align: left; }
  .product-shelf { padding: 7px; }
  .product-card { flex-basis: min(68vw, 220px); }
  .product-art { min-height: 108px; }
  .hero-shelf .product-card { flex-basis: min(72vw, 248px); }
  .hero-shelf .product-art { min-height: 128px; }
  .hero-shelf .product-body { padding: 10px; }
  .store-note { margin-left: 3px; margin-right: 3px; }
  .open-notice { left: 12px; right: 12px; bottom: 12px; }
}

@media (pointer: coarse) {
  .selector-open,
  .filter-button,
  .shelf-motion,
  .product-open,
  .shelf-track.is-marquee .product-open { min-height: 40px; }
}

@media (prefers-reduced-motion: reduce) {
  .product-card, .product-art img { transition: none; }
  .product-card.spotlight { animation: none; border-color: var(--gold); }
  .shelf-motion { display: none; }
}
