.vintage-store-button {
  min-width: 122px;
  padding: 10px 14px;
  color: #805b2c;
  border-color: #b88b4c;
  background: linear-gradient(135deg, #fbf1dc, #f1dfb9);
  box-shadow: 0 4px 12px rgba(128, 91, 44, .14);
  font-weight: 600;
  letter-spacing: .015em;
  transition:
    color .55s cubic-bezier(.22, 1, .36, 1),
    background-color .55s cubic-bezier(.22, 1, .36, 1),
    border-color .55s cubic-bezier(.22, 1, .36, 1),
    box-shadow .55s cubic-bezier(.22, 1, .36, 1),
    transform .55s cubic-bezier(.22, 1, .36, 1);
}

.vintage-store-button:hover {
  color: #fffaf0;
  border-color: #805b2c;
  background: linear-gradient(135deg, #9a713c, #755127);
  box-shadow: 0 9px 20px rgba(128, 91, 44, .25);
  transform: translateY(-3px);
}

.vintage-store-button:focus-visible {
  outline: 2px solid #b88b4c;
  outline-offset: 3px;
}

.vintage-store-icon {
  margin-right: 6px;
  color: #a2773c;
  font-size: .82rem;
  transition: color .55s cubic-bezier(.22, 1, .36, 1);
}

.vintage-store-button:hover .vintage-store-icon {
  color: #fffaf0;
}

.board-frame.wof-wooden-board {
  background-image: url("./walnut-wood-texture.png");
  background-size: 220px auto;
  background-repeat: repeat;
  background-position: center;
  box-shadow:
    0 21px 36px rgba(62, 31, 16, .29),
    inset 0 0 0 2px rgba(218, 158, 76, .65);
}

.board-frame.wof-wooden-board::before {
  border-color: rgba(238, 192, 113, .52);
}

.wof-wooden-board .board {
  border-color: #0c1f15;
  background:
    linear-gradient(90deg, rgba(20, 40, 30, .16) 1px, transparent 1px) 0 0 / 12.5% 12.5%,
    linear-gradient(rgba(20, 40, 30, .16) 1px, transparent 1px) 0 0 / 12.5% 12.5%,
    linear-gradient(135deg, #1f5a39, #2c6b48 51%, #184b32);
}

.wof-wooden-board .cell {
  background:
    repeating-linear-gradient(4deg, rgba(10, 26, 18, .12) 0 2px, transparent 2px 11px),
    rgba(31, 90, 57, .52);
  border-color: rgba(10, 26, 18, .45);
}

.wof-wooden-board .cell:nth-child(even) {
  background:
    repeating-linear-gradient(-5deg, rgba(10, 26, 18, .11) 0 2px, transparent 2px 13px),
    rgba(44, 107, 72, .46);
}

.wof-wooden-board .cell:hover {
  background: rgba(60, 130, 90, .36);
}

.wof-wooden-board .legal-marker {
  background: rgba(251, 224, 162, .27);
  border-color: rgba(255, 234, 190, .82);
}

.wof-wooden-board .cell:hover .legal-marker {
  background: rgba(255, 229, 155, .58);
}

.wof-wooden-board .board-coordinates {
  color: rgba(251, 227, 177, .76);
}

.wof-marble-pieces .piece::after {
  display: none;
}

.wof-marble-pieces .piece-dark {
  background: none;
  background-image: url("./marble-disc-dark.png");
  background-size: cover;
  background-position: center;
}

.wof-marble-pieces .piece-light {
  background: none;
  background-image: url("./marble-disc-light.png");
  background-size: cover;
  background-position: center;
}

.vintage-store-backdrop {
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(34, 45, 38, .58);
  animation: vintage-store-fade .2s ease both;
  position: fixed;
  inset: 0;
}

.vintage-store-modal {
  width: min(680px, 100%);
  max-height: min(680px, 90vh);
  overflow: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: clamp(24px, 5vw, 42px);
  border: 1px solid #cdb184;
  color: #364b3d;
  background:
    radial-gradient(circle at 85% 12%, rgba(211, 174, 111, .2), transparent 30%),
    #f8f1e4;
  box-shadow: 0 26px 70px rgba(25, 37, 29, .3);
  animation: vintage-store-rise .28s ease both;
}

.vintage-store-modal::-webkit-scrollbar {
  display: none;
}

.vintage-store-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 22px;
  border-bottom: 1px solid rgba(128, 91, 44, .24);
}

.vintage-store-header h2 {
  margin: 0;
  color: #315e4e;
  font-family: var(--app-font-serif);
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: .95;
}

.vintage-store-header p:last-child {
  margin: 12px 0 0;
  color: #6e786d;
  font-size: .82rem;
}

.vintage-store-close {
  display: grid;
  place-items: center;
  width: 35px;
  height: 35px;
  border: 1px solid rgba(128, 91, 44, .3);
  color: #805b2c;
  background: transparent;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.5rem;
  line-height: 1;
}

.vintage-store-close:hover {
  color: #fffaf0;
  background: #805b2c;
}

.vintage-store-shelf {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding: 24px 0;
}

.vintage-store-section-label {
  margin: 24px 0 0;
  color: #805b2c;
  font-family: var(--app-font-mono);
  font-size: .63rem;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.vintage-board-shelf {
  grid-template-columns: 1fr;
  padding-top: 11px;
}

.vintage-store-product {
  display: flex;
  min-height: 190px;
  flex-direction: column;
  padding: 17px;
  border: 1px solid rgba(128, 91, 44, .24);
  background: rgba(255, 250, 240, .56);
}

.vintage-board-product {
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(170px, 220px) minmax(0, 1fr);
  gap: 20px;
  padding: 14px;
}

.vintage-board-preview {
  min-height: 150px;
  border: 8px solid #6f3e20;
  border-radius: 12px;
  background-image: url("./walnut-court-board.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  box-shadow:
    inset 0 0 0 3px #b9823d,
    inset 0 0 0 6px #3b2115,
    0 8px 13px rgba(69, 39, 20, .2);
  position: relative;
}

.vintage-board-preview::before,
.vintage-board-preview::after {
  content: '';
  position: absolute;
  width: 17px;
  height: 17px;
  border: 2px solid rgba(239, 226, 193, .85);
  border-radius: 50%;
  background: #f0e4cb;
  box-shadow:
    44px 0 0 #242d2a,
    22px 22px 0 #242d2a,
    66px 22px 0 #f0e4cb;
}

.vintage-board-preview::before {
  left: 29%;
  top: 36%;
}

.vintage-board-preview::after {
  display: none;
}

.vintage-discs-preview {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 150px;
  border: 8px solid #6f3e20;
  border-radius: 12px;
  background: linear-gradient(135deg, #2c6b48, #1f5a39);
  box-shadow:
    inset 0 0 0 3px #b9823d,
    inset 0 0 0 6px #3b2115,
    0 8px 13px rgba(69, 39, 20, .2);
}

.vintage-discs-disc {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background-size: cover;
  background-position: center;
  box-shadow: 0 5px 10px rgba(20, 30, 20, .4);
}

.vintage-discs-disc--dark {
  background-image: url("./marble-disc-dark.png");
}

.vintage-discs-disc--light {
  background-image: url("./marble-disc-light.png");
}

.vintage-product-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.vintage-product-copy p {
  margin-bottom: 0;
}

.vintage-product-purchase {
  display: flex;
  align-items: center;
  justify-content: space-between;
  grid-column: 1 / -1;
  gap: 14px;
  padding-top: 13px;
  border-top: 1px solid rgba(128, 91, 44, .2);
}

.vintage-product-price {
  color: #805b2c;
  font-family: var(--app-font-mono);
  font-size: .82rem;
  letter-spacing: .05em;
}

.vintage-buy-button {
  padding: 8px 12px;
  border: 1px solid #a2773c;
  color: #fffaf0;
  background: #805b2c;
  border-radius: 7px;
  cursor: pointer;
  font-size: .72rem;
  font-weight: 600;
  transition: background-color .35s ease, border-color .35s ease, transform .35s ease;
}

.vintage-buy-button:hover:not(:disabled) {
  border-color: #5c3b1c;
  background: #5c3b1c;
  transform: translateY(-2px);
}

.vintage-buy-button:disabled {
  cursor: default;
  opacity: .62;
}

.vintage-buy-button--equipped {
  color: #805b2c;
  background: transparent;
  border-color: #a2773c;
}

.vintage-buy-button--equipped:hover {
  color: #fffaf0;
  background: #a2773c;
  border-color: #a2773c;
}

.vintage-coming-soon-label {
  margin-top: 2px;
  opacity: .78;
}

.vintage-future-shelf {
  padding-top: 11px;
}

.vintage-future-product {
  min-height: 150px;
}

.vintage-product-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 22px;
  border: 1px solid #c9aa79;
  color: #a2773c;
  font-size: 1.3rem;
}

.vintage-store-product h3 {
  margin: 0;
  color: #315e4e;
  font-family: var(--app-font-serif);
  font-size: 1.2rem;
}

.vintage-store-product p {
  flex: 1;
  margin: 7px 0 16px;
  color: #6e786d;
  font-size: .75rem;
  line-height: 1.5;
}

.vintage-product-status {
  align-self: flex-start;
  padding: 5px 7px;
  color: #805b2c;
  border: 1px solid rgba(128, 91, 44, .25);
  font-family: var(--app-font-mono);
  font-size: .58rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.vintage-store-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-top: 19px;
  border-top: 1px solid rgba(128, 91, 44, .24);
  color: #6e786d;
  font-size: .72rem;
}

.vintage-store-footer-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.vintage-topup-button {
  padding: 0 18px;
  min-height: 42px;
  border: 1px solid #f0c975;
  border-radius: 999px;
  color: #4a2f0d;
  background: linear-gradient(135deg, #ffdb8a, #e8ab45 55%, #d3922e);
  box-shadow: 0 6px 16px rgba(184, 128, 34, .35);
  font-weight: 700;
  font-size: .8rem;
  letter-spacing: .01em;
  cursor: pointer;
  transition: transform .25s ease, box-shadow .25s ease, background-color .25s ease;
}

.vintage-topup-button:hover {
  background: linear-gradient(135deg, #ffe4a3, #f0b854 55%, #dd9c37);
  box-shadow: 0 9px 20px rgba(184, 128, 34, .46);
  transform: translateY(-2px);
}

.vintage-topup-button:active {
  transform: translateY(0);
}

@keyframes vintage-store-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes vintage-store-rise {
  from { opacity: 0; transform: translateY(10px) scale(.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 560px) {
  .vintage-store-shelf {
    grid-template-columns: 1fr;
  }

  .vintage-board-product {
    grid-template-columns: 1fr;
  }

  .vintage-board-preview {
    min-height: 135px;
  }

  .vintage-store-product {
    min-height: 0;
  }

  .vintage-store-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}