/* The machine fascia, poster cuts and stock rails are shared by both public screens. */
.mast {
  background: #082c2d url("header-fascia.webp") center / cover;
  box-shadow: 0 2px 0 #17342f;
}
.mast-inner > span {
  padding: 0.24em 0.7em;
  border: 1px solid #6ca493;
  background: #052f32;
  border-radius: 3px;
  color: #e1fff1;
}
.section-head {
  align-items: baseline;
}
.shelf {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr));
  gap: clamp(16px, 3vw, 28px);
  padding: clamp(12px, 2.6vw, 24px);
  border: 1px solid #547a71;
  border-radius: 8px;
  background: #052d33 url("catalog-field.webp") center / cover;
  box-shadow: inset 0 0 0 3px #092c32, 0 2px 4px #00282b34;
}
.shelf .product {
  border: 1px solid #91cbbd;
  border-radius: 9px 3px 9px 3px;
  color: #f3fffc;
  background: #042b33;
  box-shadow: inset 0 0 0 1px #163d47, 0 3px 4px #001a20;
  overflow: hidden;
}
.shelf a.product:hover,
.shelf a.product:focus-visible {
  border-color: #d7ffa4;
  box-shadow: 0 0 0 2px #b8efa5;
}
.poster-face {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: flex-end;
  min-height: clamp(168px, 20vw, 218px);
}
.poster-face .art {
  position: absolute;
  z-index: -2;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 35%;
  background: #19353a;
}
.poster-face::after {
  position: absolute;
  z-index: -1;
  inset: 0;
  content: "";
  background: linear-gradient(
    0deg,
    #031d27 0%,
    #051e2bd9 25%,
    #061e2960 53%,
    transparent 79%
  );
}
.poster-format {
  position: absolute;
  left: 14px;
  top: 12px;
  padding: 1px 8px;
  border: 1px solid #96e8c8;
  background: #033238e8;
  color: #d6ffe7;
  font-size: 0.83rem;
  font-weight: 800;
}
.poster-face .card-body {
  width: 100%;
  padding: 40px 16px 11px;
  text-shadow: 0 1px 3px #041a22;
}
.poster-face h2 {
  margin-bottom: 3px;
  color: #fff;
}
.poster-face .price {
  color: #d7e9e6;
}
.poster-face .stock-line {
  margin-top: 4px;
  color: #dbf1e9;
}
.stock-line b {
  color: #fff;
  font-size: 1.12em;
  text-shadow: 0 0 5px #83dcb8, 0 1px 2px #00252b;
}
.stock-line > span {
  color: #93adab;
}
.product > .actions {
  margin: 0;
  padding: 8px 14px 12px;
  align-items: center;
}
.product > [data-status],
.product > small {
  display: block;
  margin: 0 15px;
  color: #ddebca;
}
.product > [data-status]:empty {
  display: none;
}
.viewer-shelf {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 332px), 1fr));
}
.viewer-board {
  container-type: inline-size;
}
.viewer-board-layout {
  position: relative;
  height: 100%;
  display: grid;
  grid-template-rows: auto 1fr auto;
  background: #123239 var(--viewer-scene, url("catalog-field.webp")) center / cover;
}
.viewer-poster {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-width: 0;
  min-height: clamp(200px, 22vw, 265px);
  background: #08272f url("catalog-field.webp") center / cover;
}
.viewer-banner-frame {
  flex: 1;
  display: grid;
  place-items: center;
  min-width: 0;
  padding: 4px;
}
.viewer-banner-frame .art {
  width: 100%;
  height: auto;
  max-height: clamp(190px, 48cqi, 310px);
  aspect-ratio: auto;
  object-fit: contain;
  background: transparent;
}
.viewer-poster .card-body {
  padding: 10px 15px 12px;
  border-top: 1px solid #93c3bb47;
  background: #092c33;
}
.viewer-poster h2 {
  font-size: clamp(1rem, 3cqi, 1.2rem);
  line-height: 1.35;
}
.viewer-price-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 10px;
}
.viewer-price-row .price {
  color: #d7e9e6;
}
.viewer-poster .poster-format {
  position: static;
  border-radius: 2px 7px 2px 2px;
  box-shadow: -3px 0 #94eac0;
}
.prize-preview {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-content: center;
  gap: 9px 6px;
  margin: 0;
  padding: 12px 14px 15px;
  border-top: 1px solid #416368;
  background-color: rgb(6 29 40 / 75%);
  list-style: none;
}
.preview-item {
  min-width: 0;
}
.preview-window,
.viewer-prize-art {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}
.preview-window {
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 1.12;
  border: 1px solid #b4d7cf;
  border-radius: 4px 2px;
  background: linear-gradient(145deg, rgb(247 255 251 / 78%), rgb(193 226 218 / 60%));
  box-shadow: 0 2px 3px #011c26;
}
.preview-art {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: contain;
  padding: 3px;
}
.preview-grade {
  position: absolute;
  left: 0;
  top: 0;
  padding: 1px 4px 2px 3px;
  border-radius: 0 0 5px 0;
  background: rgb(8 39 49 / 84%);
  color: #fff;
  font: 800 clamp(10px, 2.4cqi, 13px)/1.1 system-ui, sans-serif;
}
.preview-grade small {
  margin-left: 1px;
  font-size: 0.68em;
}
.preview-name {
  display: block;
  min-height: 2.6em;
  margin-top: 4px;
  overflow-x: auto;
  scrollbar-width: thin;
  text-align: center;
  font-size: clamp(.6rem, 2.2cqi, .69rem);
  line-height: 1.3;
  color: #e1eee9;
}
[data-sold-out="true"] .preview-art,
[data-sold-out="true"] .viewer-prize-art > img {
  opacity: 0.52;
  filter: grayscale(1);
}
[data-sold-out="true"] > .preview-window::after,
[data-sold-out="true"] > .viewer-prize-art::after {
  content: "";
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 50%;
  width: 98%;
  aspect-ratio: 3;
  transform: translate(-50%, -50%) rotate(-45deg);
  background: url("sold-out-stamp.webp") center / contain no-repeat;
  pointer-events: none;
}
[data-sold-out="true"] > .viewer-prize-art::after {
  left: 56%;
  width: min(78%, 95px);
}
.viewer-card-foot {
  padding: 11px 15px 14px;
  border-top: 1px solid #527579;
  background: #082b33;
  display: flex;
  flex-wrap: wrap-reverse;
  justify-content: space-between;
  align-items: center;
  gap: 8px 14px;
}
.viewer-counts {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 16px;
  color: #dce9e7;
  font-size: 0.88rem;
  font-weight: 650;
  line-height: 1.35;
}
.viewer-counts > span {
  white-space: nowrap;
}
.viewer-counts b {
  padding-left: 2px;
  font: 850 clamp(1.6rem, 3.4vw, 2.05rem)/1.12 system-ui, sans-serif;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.055em;
}
.viewer-counts [data-remaining] { color: #79eac9; }
.viewer-counts [data-grades] { color: #ffd27d; }
.viewer-card-foot .viewer-counts { order: 2; }
.view-action {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 44px;
  width: fit-content;
  padding: 7px 14px;
  border: 1px solid #9fe7c5;
  border-radius: 9px 2px;
  box-shadow: inset 0 0 0 2px #175044, inset 0 0 0 3px #6da58a, 0 2px #031820;
  font-weight: 800;
  color: #e6ffed;
  background: linear-gradient(165deg, #28624d, #0c413e);
}
.view-action span {
  width: 9px;
  height: 9px;
  border-right: 2px solid currentColor;
  border-top: 2px solid currentColor;
  transform: rotate(45deg);
}
.viewer-board:hover .view-action, .viewer-board-layout:focus-visible .view-action { background: #26664f; }
.viewer-board:focus-within { outline: 3px solid #db8509; outline-offset: 3px; }
@container (min-width: 620px) {
  .viewer-board-layout {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    grid-template-rows: 1fr auto;
  }
  .viewer-poster {
    min-height: 254px;
  }
  .prize-preview {
    border-top: 0;
    border-left: 1px solid #416368;
    gap: 14px 8px;
    padding: 16px;
  }
  .viewer-card-foot { grid-column: 1 / -1; }
}
.viewer-hero .viewer-counts {
  margin-top: 9px;
}
.hero.viewer-hero h1 {
  font-size: clamp(1.3rem, 2.8vw, 1.9rem);
}
.viewer-hero > img {
  height: auto;
  max-height: 320px;
  aspect-ratio: auto;
  object-fit: contain;
}
.voucher-kind {
  display: block;
  width: fit-content;
  margin-bottom: 3px;
  padding: 2px 5px;
  border-radius: 2px;
  background: #dbeae0;
  color: #20533e;
  font: 750 0.68rem/1.2 system-ui, sans-serif;
}
div.prizes .viewer-prize-art {
  margin: 0;
  border-right: 1px solid #bbc9c5;
  background: rgb(237 245 241 / 44%);
}
div.prizes .viewer-prize-art > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 5px 4px 16px;
  object-fit: contain;
  background: transparent;
}
.shelf > .empty {
  border-color: #62847f;
  color: #effbee;
}
.hero {
  border: 2px solid #8bafac;
  border-radius: 9px 3px;
  background: #0a2a30 url("catalog-field.webp") center / cover;
  color: #fff;
}
.hero img {
  border: 1px solid #739b98;
  background: #12363a;
}
.hero strong {
  color: #c0efda;
}
.hero .price {
  color: #edf3e9;
}
div.prizes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 225px), 1fr));
  padding: clamp(12px, 2.6vw, 24px);
  gap: 19px 16px;
  border: 1px solid #77989b;
  border-radius: 5px;
  background: #688486 url("prize-steel.webp") center / cover;
}
div.prizes article.prize {
  --rim: #efcb91;
  position: relative;
  display: grid;
  grid-template-columns: 35% minmax(0, 1fr);
  align-items: stretch;
  min-height: 96px;
  margin: 0 0 4px 5px;
  border: 2px solid #a4b8b7;
  border-radius: 4px;
  background: linear-gradient(
    to bottom,
    #fafbf5 0 57%,
    #badadb 58%,
    #e8f3ef 61%,
    #b7d4d2
  );
  color: #143940;
  box-shadow: 1px 3px 2px #172a2a98, inset 0 0 0 1px #eff8ef;
  overflow: visible;
}
div.viewer-prizes {
  background-image: linear-gradient(145deg, #0d293e99, #093835b8),
    var(--viewer-scene, url("prize-steel.webp"));
}
div.viewer-prizes .viewer-prize {
  background: linear-gradient(155deg, rgb(250 253 247 / 92%), rgb(205 229 224 / 80%));
}
div.prizes .prize:nth-child(4n + 2) {
  --rim: #b6e9d9;
}
div.prizes .prize:nth-child(4n + 3) {
  --rim: #c4baf0;
}
div.prizes .prize:nth-child(4n + 4) {
  --rim: #bee3e5;
}
div.prizes .prize::after {
  content: "";
  position: absolute;
  inset: 0 0 auto auto;
  width: 9px;
  height: 9px;
  background: linear-gradient(45deg, #9eb2af, #f1f7f5);
  clip-path: polygon(0 0, 100% 0, 100% 100%);
}
div.prizes .prize > img {
  width: 100%;
  height: 100%;
  max-height: 120px;
  padding: 5px 3px 19px;
  background: #e9efea;
  object-fit: contain;
  border-right: 1px solid #bbc9c5;
}
div.prizes .prize > div {
  grid-column: 2;
  display: grid;
  grid-template-rows: minmax(40px, 1fr) auto;
  gap: 4px;
  align-items: center;
  padding: 5px 7px;
}
div.prizes .prize h3 {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.25;
}
div.prizes .viewer-prize > div {
  min-inline-size: 0;
  grid-template-columns: minmax(0, 1fr);
}
div.prizes .viewer-prize h3 {
  font-size: .875rem;
  line-height: 1.35;
}
div.prizes .prize .stamp {
  display: flex;
  flex-flow: column;
  align-items: center;
  justify-content: center;
  position: absolute;
  left: -7px;
  bottom: -8px;
  margin: 0;
  border: 3px solid var(--rim);
  border-radius: 50%;
  min-width: 43px;
  min-height: 43px;
  padding: 4px;
  background: radial-gradient(ellipse at top left, #324345, #101d20 75%);
  box-shadow: inset 0 0 0 1px #0b1c20, inset 0 0 0 2px #808c85,
    0 2px 1px #173333;
  color: #fffdf1;
  font: 850 19px/0.95 system-ui, sans-serif;
}
div.prizes .prize .stamp small {
  font-size: 0.55em;
  margin-top: 2px;
}
div.viewer-prizes .viewer-prize .stamp {
  background: radial-gradient(ellipse at top left, rgb(36 59 63 / 88%), rgb(7 26 30 / 82%) 75%);
}
.grade-stock {
  display: flex;
  gap: 4px;
  align-items: center;
  justify-content: space-between;
  height: 33px;
}
.grade-stock > span {
  flex: 0 0 auto;
  text-align: center;
  font-size: 10px;
  line-height: 1.02;
  color: #31545a;
}
.grade-stock strong {
  display: block;
  color: #0c3038;
  font-weight: 850;
  font-size: 1rem;
  margin-top: 2px;
}
.stock-tickets {
  display: grid;
  grid-template-columns: repeat(10, minmax(0, 1fr));
  flex: 1 1 0;
  gap: 2px 0;
  overflow: hidden;
}
.mini-ticket {
  width: 135%;
  height: 12px;
  min-width: 5px;
  border: 1px solid #a1c7be;
  background: #12363e url("kuji-paper.webp") center / cover;
}
.mini-ticket.opened {
  border-color: #acbcb5;
  background: repeating-linear-gradient(128deg, #e9efea 0 3px, #b9c5bf 3px 4px);
}
.mini-ticket.bundle {
  grid-column: span 5;
  display: grid;
  place-items: center;
  width: 95%;
  height: 18px;
  color: white;
  font: 750 10px/1 system-ui, sans-serif;
  text-shadow: 0 1px 2px #001b23, 0 0 4px #001b23;
  background-position: center top;
  background-size: 100% 140%;
}
.mini-ticket.bundle.opened {
  color: #244044;
  text-shadow: none;
}
.viewer-region + .viewer-region {
  margin-top: 48px;
}
.region-heading {
  margin: 0 0 18px;
  padding: 0.46em clamp(36px, 8%, 76px);
  border-bottom: 3px solid #3caa86;
  border-radius: 4px 4px 0 0;
  color: #f5fffb;
  background: #153e43 url("header-fascia.webp") center / cover;
}
.viewer-place + .viewer-place {
  margin-top: 32px;
}
.place-heading {
  margin: 0 0 12px;
}
.viewer-station + .viewer-station {
  margin-top: 27px;
}
.station-heading {
  margin: 0 0 9px;
  font-size: 1.21rem;
  font-weight: 700;
}
.station-heading span {
  color: #25755e;
}
.viewer-location {
  margin: 12px 0 5px;
  color: var(--muted);
  font-size: 0.85rem;
}
@media (min-width: 460px) and (max-width: 650px) {
  div.prizes {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (prefers-reduced-motion: no-preference) {
  .shelf .product {
    transition: border-color 0.18s, box-shadow 0.18s, transform 0.18s;
  }
  .shelf .product:is(a):active {
    transform: translateY(2px);
  }
}
