/* Promotions / Demand / Events board overrides.
   Load after styles.css. */

:root {
  --lineup-board-card-width: 122px;
}

.board-stage .board-promotions-piece {
  left: 50%;
  top: 49%;
  width: min(24%, 230px);
  aspect-ratio: 1;
  display: block;
  padding: 0;
  border: 1px solid rgba(255, 248, 232, 0.22);
  border-radius: 4px;
  background:
    linear-gradient(135deg, rgba(247, 241, 220, 0.2), rgba(15, 23, 19, 0.54)),
    rgba(18, 28, 23, 0.78);
  box-shadow:
    0 16px 30px rgba(0, 0, 0, 0.34),
    inset 0 0 0 1px rgba(255, 248, 232, 0.12);
  overflow: hidden;
  isolation: isolate;
  text-align: center;
  transform: translate(-50%, -50%) rotate(45deg) !important;
}

.board-stage .board-promotions-piece::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(rgba(245, 239, 223, 0.02), rgba(10, 14, 12, 0.2)),
    url("public/assets/ui/promotions-polaroid-ring.png?v=lineup-boards-2026-05-04");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  filter: saturate(0.9) contrast(1.02);
  opacity: 0.82;
  transform: rotate(-45deg) scale(1.43);
}

.board-stage .board-promotions-piece::after {
  content: "";
  position: absolute;
  inset: 0.34rem;
  z-index: 0;
  border: 1px solid rgba(255, 248, 232, 0.22);
  box-shadow:
    inset 0 0 0 1px rgba(0, 0, 0, 0.26),
    inset 0 0 22px rgba(224, 176, 63, 0.08);
}

.board-stage .board-promotions-piece > * {
  transform: rotate(-45deg);
}

.board-stage .board-promotions-piece .piece-title {
  position: absolute;
  top: 42%;
  left: 42%;
  z-index: 1;
  width: max-content;
  max-width: 78%;
  margin: 0;
  padding: 0.12rem 0.34rem 0.14rem;
  border: 1px solid rgba(255, 248, 232, 0.24);
  border-radius: 3px;
  background: rgba(9, 14, 12, 0.58);
  box-shadow: none;
  color: rgba(255, 248, 232, 0.92);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1;
  text-align: center;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.72);
  transform: translate(-50%, -50%) rotate(-45deg) !important;
}

.board-stage .promo-reminder {
  position: absolute;
  left: 72%;
  top: 72%;
  z-index: 2;
  width: clamp(4.25rem, 5.35vw, 5.85rem);
  aspect-ratio: 485 / 270;
  margin: 0;
  border: 0;
  border-radius: 0;
  background: url("public/assets/ui/promotions-ticket-mark-original.png?v=promotions-icon-original-2026-05-04") center / contain no-repeat !important;
  box-shadow: none;
  overflow: visible !important;
  clip-path: none !important;
  filter:
    drop-shadow(0 1px 0 rgba(255, 248, 232, 0.18))
    drop-shadow(0 0 0.04rem rgba(240, 217, 146, 0.55))
    drop-shadow(0 0.28rem 0 rgba(83, 59, 24, 0.5))
    drop-shadow(0 0.46rem 0.32rem rgba(0, 0, 0, 0.55));
  transform: translate(-50%, -50%) rotate(-45deg) !important;
}

.board-stage .promo-reminder::before {
  content: "";
  position: absolute;
  inset: -0.24rem -0.16rem;
  border-radius: 999px;
  background: radial-gradient(ellipse at center, rgba(224, 176, 63, 0.22), transparent 66%);
  filter: blur(2px);
  opacity: 0.72;
  pointer-events: none;
}

.board-stage .promo-reminder::after {
  content: none !important;
}

.promo-ticket,
.promo-mark {
  display: none !important;
  pointer-events: none;
}

.board-stage .promo-ticket {
  display: none !important;
}

.board-stage .promo-ticket::before,
.board-stage .promo-ticket::after {
  content: none !important;
}

.board-stage .promo-ticket::before {
  content: none !important;
}

.board-stage .promo-ticket::after {
  content: none !important;
}

.board-stage .promo-mark {
  display: none !important;
}

.board-stage .promo-mark::before,
.board-stage .promo-mark::after {
  content: none !important;
}

.board-stage .promo-mark::before {
  content: none !important;
}

.board-stage .promo-mark::after {
  content: none !important;
}

.board-stage .board-promotions-piece .marks {
  position: absolute;
  top: 52%;
  left: 50%;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.15rem;
  width: max-content;
  max-width: 76%;
  margin: 0;
  text-align: center;
  transform: translate(-50%, -50%) rotate(-45deg) !important;
}

.board-stage .board-promotions-piece .mark {
  width: 1.1rem;
  min-width: 1.1rem;
  height: 1.1rem;
  min-height: 1.1rem;
  font-size: 0.72rem;
  line-height: 1;
  padding: 0;
}

.board-stage .board-promotions-piece .marks .small {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  min-width: 0;
  height: auto;
  min-height: 0;
  padding: 0.06rem 0.2rem;
  border-radius: 3px;
  color: rgba(12, 14, 12, 0.96);
  background:
    linear-gradient(180deg, rgba(245, 239, 223, 0.9), rgba(212, 199, 169, 0.96));
  border: 1px solid rgba(32, 26, 23, 0.16);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.55),
    0 1px 2px rgba(0, 0, 0, 0.18);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.35);
  font-size: 0.52rem;
  font-weight: 700;
  line-height: 1;
}

.board-demand-dock {
  display: grid;
  gap: 0.45rem;
  min-width: 0;
  border: 1px solid rgba(255, 248, 232, 0.2);
  border-radius: 8px;
  background: rgba(11, 19, 16, 0.8);
  color: #fff8e8;
  padding: 0.55rem;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.24);
}

.board-demand-dock > h2 {
  margin: 0 0 0.45rem;
  text-align: left;
  font-size: 0.96rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.board-demand-dock .board-lineup-grid,
.board-demand-dock .lineup-grid {
  grid-template-columns: 1fr;
  gap: 0.45rem;
}

.board-demand-dock .match-track {
  border: 1px solid rgba(255, 248, 232, 0.16);
  border-radius: 6px;
  background:
    linear-gradient(180deg, rgba(19, 31, 26, 0.9), rgba(9, 15, 13, 0.9));
  box-shadow:
    inset 0 1px 0 rgba(255, 248, 232, 0.08),
    0 8px 18px rgba(0, 0, 0, 0.18);
  padding: 0.44rem;
}

.board-demand-dock .match-title {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.board-demand-dock .small {
  font-size: 0.68rem;
}

.board-side-stack {
  order: 0;
}

.board-side-stack > .table-control-dock {
  order: 0;
}

.board-side-stack > .events-dock {
  order: 1;
}

.events-dock > h2 {
  text-transform: uppercase;
  letter-spacing: 0.09em;
}

.board-side-stack > .for-hire-board,
.board-side-stack > .for-hire-dock,
.board-side-stack > section:has(.card-row) {
  order: 2;
}

.board-side-stack > .board-demand-dock,
.board-side-stack > .lineup-dock {
  order: 3;
}

.for-hire-board {
  display: grid;
  gap: 0.45rem;
  min-width: 0;
  margin-top: 0.5rem;
  border: 1px solid rgba(255, 248, 232, 0.2);
  border-radius: 8px;
  background: rgba(11, 19, 16, 0.8);
  color: #fff8e8;
  padding: 0.55rem;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.24);
}

.for-hire-board > h3,
.for-hire-board > h2 {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.for-hire-board .card-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(122px, 1fr));
  gap: 0.32rem;
}

.for-hire-board .followup-card-choice,
.for-hire-board .card-row > * {
  min-width: 0;
}

.for-hire-board .card-thumb {
  justify-self: center;
  width: min(100%, var(--lineup-board-card-width, 122px));
  max-width: var(--lineup-board-card-width, 122px);
  gap: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.for-hire-board .card-thumb .asset-img.card {
  width: 100%;
  max-height: none;
  border-radius: 6px;
  background: transparent;
  box-shadow:
    0 1px 0 rgba(255, 248, 232, 0.14) inset,
    0 10px 18px rgba(0, 0, 0, 0.24);
}

.for-hire-board .card-thumb .mini-title,
.for-hire-board .card-thumb .marks {
  display: none;
}

.board-event-grid .event-slot,
.match-active-events .event-slot,
.event-slot.special-event {
  position: relative;
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 0.18rem;
  padding: 0.44rem 0.38rem 0.42rem;
  border: 1px solid rgba(255, 248, 232, 0.16);
  border-radius: 6px;
  background:
    linear-gradient(180deg, rgba(22, 34, 29, 0.92), rgba(9, 15, 13, 0.9));
  box-shadow:
    inset 0 1px 0 rgba(255, 248, 232, 0.08),
    0 8px 18px rgba(0, 0, 0, 0.18);
  text-align: center;
}

.event-art {
  position: relative;
  width: min(100%, var(--lineup-board-card-width, 122px));
  aspect-ratio: 700 / 1015;
  margin-inline: auto;
}

.event-art .asset-img.card {
  border-radius: 6px;
}

.event-mark-center {
  position: absolute;
  left: 50%;
  top: calc(56.5% + 3px);
  z-index: 2;
  width: 1.24rem;
  height: 1.24rem;
  display: grid;
  place-items: center;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.event-mark-center .marks {
  margin: 0;
  justify-content: center;
  align-items: center;
  gap: 0;
  min-height: 0;
}

.event-mark-center .mark {
  width: 1.02rem;
  min-width: 1.02rem;
  height: 1.02rem;
  min-height: 1.02rem;
  font-size: 0.62rem;
  box-shadow:
    0 0 0 0.08rem rgba(255, 248, 232, 0.34),
    0 0 0.52rem rgba(255, 248, 232, 0.3),
    0 0.08rem 0.18rem rgba(0, 0, 0, 0.28);
}

.event-kind {
  font-size: 0.6rem;
  line-height: 1.05;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 248, 232, 0.66);
  text-align: center;
}

.event-active-suit {
  font-size: 0.68rem;
  font-style: normal;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: rgba(255, 248, 232, 0.88);
  text-align: center;
}

.event-active-suit:empty {
  display: none;
}

.board-event-grid {
  grid-template-columns: repeat(auto-fit, minmax(122px, 1fr));
  gap: 0.38rem;
}

.board-event-grid .event-slot {
  justify-self: center;
  width: min(100%, var(--lineup-board-card-width, 122px));
  min-width: 0;
  padding: 0.32rem;
}

.board-event-grid .asset-img.card {
  max-height: none;
}

/* Browser note pass: tune only the four-location table props. */
.board-stage:not(.six-location) .location-piece.slot-1.location-prop-map {
  left: 25%;
  top: 30%;
  --prop-width: 132%;
  --prop-x: 10%;
  --prop-y: 4%;
  --prop-opacity: 0.92;
}

.board-stage:not(.six-location) .location-command.slot-1 {
  left: 25%;
  top: 42%;
}

.board-stage:not(.six-location) .location-piece.slot-3.location-prop-coaster {
  left: 25%;
  top: 69.5%;
  --prop-width: 122%;
  --prop-x: 8%;
  --prop-y: -8%;
  --prop-opacity: 0.92;
}

.board-stage:not(.six-location) .location-command.slot-3 {
  left: 25%;
  top: 81.5%;
}

.board-stage:not(.six-location) .location-piece.slot-4.location-prop-poster {
  left: 76.5%;
  top: 70.5%;
  --prop-width: 108%;
  --prop-aspect: 760 / 713;
  --prop-x: -2%;
  --prop-y: -4%;
  --prop-opacity: 0.95;
}

.board-stage:not(.six-location) .location-command.slot-4 {
  left: 76.5%;
  top: 82.5%;
}

@media (max-width: 760px) {
  .board-stage .board-promotions-piece {
    width: min(26%, 180px);
  }

  .board-stage .promo-reminder {
    width: clamp(3.2rem, 8vw, 4.1rem);
  }

  .board-demand-dock .board-lineup-grid,
  .board-demand-dock .lineup-grid {
    grid-template-columns: 1fr;
  }

  .for-hire-board .card-row {
    grid-template-columns: repeat(auto-fit, minmax(72px, 1fr));
  }
}
