/* Approved V22 composition for the production lottery hall. */
.merged-hall {
  --border: #dedae3;
  --pool-ink: #232241;
  --pool-accent: #473989;
  container: hall / inline-size;
  width: min(calc(100% - 36px), 1120px);
  margin: clamp(18px, 3vw, 43px) auto 25px;
}
.hall-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 13px;
  margin-bottom: 18px;
}
.hall-header h1 {
  margin: 0;
  color: #201e2c;
  font-size: clamp(28px, 3.5vw, 46px);
  line-height: 1.18;
  letter-spacing: -.04em;
}
.hall-tools, .admin-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.admin-actions { flex-basis: 100%; justify-content: flex-end; }
.hall-outline {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 7px;
  min-height: 42px;
  padding: 6px 12px;
  border: 1px solid #cfcdda;
  border-radius: 9px;
  color: #3a3553;
  background: #fffdfb;
  font-size: .82rem;
  font-weight: 750;
  cursor: pointer;
}
.hall-outline:hover { background: #efedfa; border-color: #a59acb; }
.mail-mark {
  position: relative;
  display: inline-block;
  width: 15px;
  height: 11px;
  border: 1px solid currentColor;
  border-radius: 2px;
  overflow: hidden;
}
.mail-mark::after {
  position: absolute;
  top: -4px;
  left: 3px;
  width: 7px;
  height: 7px;
  border-right: 1px solid;
  border-bottom: 1px solid;
  rotate: 45deg;
  content: "";
}

.hall-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.48fr) minmax(0, 1fr);
  grid-template-areas: "daily pool";
  gap: clamp(14px, 2vw, 24px);
  align-items: start;
}
.hall-lane {
  min-width: 0;
  padding: clamp(12px, 1.5vw, 17px);
  border: 1px solid var(--border);
  border-radius: 19px;
  background: #fcfbf9;
  box-shadow: 0 5px 17px #2624410e;
  scroll-margin-top: 16px;
}
.daily-lane { grid-area: daily; }
.pool-lane {
  grid-area: pool;
  border-color: #c8c2e4;
  background: linear-gradient(150deg, #fcfbff 20%, #f9f7fc);
}
.lane-heading {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 8px;
  margin-bottom: 14px;
}
.lane-heading h2 {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: clamp(19px, 2vw, 25px);
  font-weight: 850;
  line-height: 1.2;
}
.pool-lane h2 { color: var(--pool-ink); }
.lane-rule { color: #645e71; font-size: 12px; font-weight: 650; }
.pool-lane .lottery-ticket {
  width: 23px;
  height: 18px;
  flex: 0 0 23px;
  border-color: #7c6bb8;
  color: #7c6bb8;
  background: #f1edfc;
  transform: rotate(-7deg);
}
.pool-lane .lottery-ticket::after { inset-inline-start: 11px; }

/* Use the approved V7 image as a quiet accent under the public draw information. */
.pool-ticket {
  min-width: 0;
  padding: 17px 17px 15px;
  border: 1px solid #57529a;
  border-radius: 13px;
  background:
    linear-gradient(110deg, #161630fa 5%, #222146e9 50%, #24224cc7),
    var(--pool-art, none) 63% 54% / cover;
  color: #f8f6ff;
  box-shadow: inset 0 1px #c6cefd34, 0 4px 9px #26235322;
}
.pool-ticket-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 12px;
}
.pool-ticket-heading h3 {
  margin: 0;
  overflow-wrap: anywhere;
  font-size: clamp(17px, 2vw, 22px);
  font-weight: 820;
}
.pool-badge {
  padding: 4px 8px;
  border: 1px solid #aaa2e988;
  border-radius: 5px;
  background: #8b74e631;
  color: #f0e9ff;
  font-size: 11px;
  font-weight: 750;
  white-space: nowrap;
}
.pool-time { display: grid; gap: 4px; margin: 15px 0 10px; }
.pool-time span, .pool-entry-count span { color: #dad7f2; font-size: 12px; }
.pool-time strong { font-size: clamp(23px, 2.5vw, 31px); line-height: 1.14; color: #ffe8b1; font-variant-numeric: tabular-nums; }
.pool-entry-count { margin: 8px 0 0; }
.pool-entry-count strong { font-size: 15px; }
.pool-actions { margin: 13px 0 0; }
.pool-status, .daily-status { margin: 0 0 9px; color: #4f4961; font-size: .84rem; line-height: 1.5; }
.pool-main-action {
  width: 100%;
  min-height: 46px;
  border-color: #493a8f;
  border-radius: 9px;
  background: linear-gradient(180deg, #6550b0, #4b3b90);
  box-shadow: 0 2px 0 #35266f;
}
.pool-main-action:disabled {
  border-color: #d2cbe2;
  background: #ebe6f4;
  box-shadow: none;
  color: #514466;
  cursor: default;
  filter: none;
}
.pool-results { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.pool-results .pool-main-action { flex: 1; min-width: 130px; }
.daily-status { margin: 9px 0 0; }
#daily-login { margin-top: 8px; }
#daily-last { margin-top: 10px; }

.prize-list { margin-top: 15px; border-top: 1px solid #dedbe7; }
.prize-list summary {
  padding: 10px 1px 8px;
  color: #3d354d;
  font-size: .9rem;
  font-weight: 780;
  cursor: pointer;
}
.prize-list summary::marker { color: #74629b; }
.prize-list .lottery-prize { grid-template-columns: 43px minmax(0, 1fr) auto; gap: 8px; }
.prize-list .lottery-prize-thumb { width: 43px; height: 43px; }
.prize-list .purple { background: #ece9f8; }
.stock-count { color: #5d566b; font-size: .76rem; white-space: nowrap; }

.hall-dialog {
  position: fixed;
  width: min(calc(100% - 32px), 424px);
  max-width: none;
  max-height: calc(100dvh - 34px);
  padding: 22px;
  overflow: auto;
  border: 1px solid #cec5e0;
  border-radius: 15px;
  background: #fefcfb;
  box-shadow: 0 17px 65px #1e16366b;
  color: #272238;
}
.hall-dialog::backdrop { background: #1a152d92; }
.hall-dialog h2 { margin: 0 30px 10px 0; font-size: 23px; }
.hall-dialog p { margin: 5px 0 10px; font-size: .88rem; line-height: 1.55; }
.hall-dialog form { display: grid; justify-items: start; gap: 9px; }
.hall-dialog form label { display: grid; width: 100%; gap: 4px; font-size: .86rem; font-weight: 700; }
.hall-dialog input, .hall-dialog textarea {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid #d2cbe0;
  border-radius: 7px;
  background: #fff;
  color: #2d233b;
}
.hall-dialog code { padding: 3px 5px; border-radius: 4px; background: #eeebf7; font-weight: 750; }
.hall-dialog .dialog-close { right: 11px; top: 11px; }
.credit { margin-top: 16px; color: #70687e; font-size: .75rem; }
.credit summary { width: fit-content; cursor: pointer; }
.credit pre { white-space: pre-wrap; }

@container hall (max-width: 820px) {
  .hall-grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "pool" "daily"; gap: 12px; }
  .hall-lane { padding: 12px; border-radius: 14px; }
  .lane-heading { margin-bottom: 9px; }
  .hall-header { margin-bottom: 12px; }
  .pool-ticket { padding: 10px 11px; border-radius: 9px; }
  .pool-time { gap: 2px; margin: 9px 0 6px; }
  .pool-time strong { font-size: 22px; }
  .pool-actions { margin-top: 9px; }
  .prize-list { margin-top: 10px; }
  .prize-list .lottery-prize-pool { display: block; }
  .stock-count { font-size: 11px; }
}
@media (max-width: 500px) {
  .merged-hall { width: calc(100% - 20px); }
}

/* The existing V7 stage stays behind the schedule, with an opaque center for text. */
.pool-gallery-lane {
  --gallery-ink: #302747;
  --gallery-muted: #5f586d;
  --gallery-line: #dad3ea;
}
.gallery-ticket {
  padding: 17px 18px 14px;
  border-color: #86574c;
  background:
    linear-gradient(108deg, #210a1740 12%, #230e1a75 53%, #21101b3a 100%),
    var(--pool-art, none) center / 100% 100% no-repeat #35111e;
}
.gallery-ticket .pool-ticket-heading { align-items: start; }
.gallery-ticket .pool-badge { background: #8b74e648; }
.gallery-schedule {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 7px 12px;
  align-items: center;
  padding: 14px 0 12px;
}
.gallery-ticket .pool-time,
.gallery-countdown {
  display: grid;
  gap: 4px;
  min-width: 0;
  margin: 0;
}
#pool-schedule {
  color: #ffe6b0;
  font-size: clamp(22px, 2.05vw, 30px);
  font-weight: 850;
  line-height: 1.15;
  letter-spacing: -.035em;
  font-variant-numeric: tabular-nums;
}
.gallery-countdown {
  justify-items: start;
  min-width: 122px;
  padding: 7px 8px;
  border: 1px solid #a8a0ea4f;
  border-radius: 7px;
  background: #c7c2ff18;
}
.gallery-countdown span { color: #dedaf3; font-size: 11px; }
.gallery-countdown strong {
  color: #fbf7ff;
  white-space: nowrap;
  font-size: 14px;
  line-height: 1.22;
  font-variant-numeric: tabular-nums;
}
.gallery-countdown[data-urgent="true"] {
  border-color: #eed09585;
  background: #eed09520;
}
.gallery-countdown[data-urgent="true"] strong { color: #ffe6b0; }
.gallery-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
  padding: 10px 0 0;
  border-top: 1px solid #bcb5f044;
}
.gallery-metrics > div + div { padding-inline-start: 10px; border-inline-start: 1px solid #bcb5f044; }
.gallery-metrics dt { color: #dee0f2; font-size: 11px; }
.gallery-metrics dd {
  margin: 2px 0 0;
  color: #fcf9ff;
  font-size: 18px;
  font-weight: 790;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
}
.gallery-metrics dd small { margin-left: 4px; color: #d2cce6; font-size: 11px; font-weight: 500; }
.gallery-actions .pool-status { line-height: 1.45; }
.gallery-actions .pool-main-action { background: linear-gradient(180deg, #6856b5, #4b398f); }
.gallery-actions .pool-main-action:disabled {
  border-color: #d2cbe2;
  background: #ebe6f4;
  color: #514466;
}

.prize-gallery { margin-top: 16px; }
.prize-gallery summary { padding: 10px 0; color: var(--gallery-ink); }
.gallery-summary {
  display: inline-flex;
  flex-wrap: wrap;
  width: calc(100% - 19px);
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 9px;
  margin-inline-start: 3px;
}
.gallery-summary > span { color: var(--gallery-muted); font-size: 12px; font-weight: 650; }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  gap: 10px;
}
.gallery-item {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 0;
  overflow: hidden;
  appearance: none;
  color: var(--gallery-ink);
  background: #fffdff;
  border: 1px solid var(--gallery-line);
  border-radius: 12px;
  text-align: left;
  cursor: pointer;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}
.gallery-item:hover {
  transform: translateY(-2px);
  border-color: #9c86d2;
  box-shadow: 0 5px 12px #4b387e19;
}
.prize-gallery .gallery-item:focus-visible { outline-color: #6d54ac; }
.gallery-item--featured {
  grid-column: 1 / -1;
  border-color: #c5b8e1;
  box-shadow: 0 5px 12px #4b387e12;
}

/* A low display plinth supports the existing transparent prize artwork.
   The image box keeps its size when the preview falls back to a text tile. */
.gallery-media {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  width: 100%;
  height: 101px;
  overflow: hidden;
  border-bottom: 1px solid #e6deed;
  background: radial-gradient(ellipse at 50% 30%, #fcf4fc, #ebe3f6 80%);
}
.gallery-item--featured .gallery-media {
  height: clamp(122px, 13vw, 171px);
  background:
    radial-gradient(ellipse at 50% 68%, #fff5d9 0%, #f8ebf1 31%, transparent 74%),
    radial-gradient(ellipse at 50% 74%, #e7d5fb, #ece9f7 80%);
}
.gallery-item--panda .gallery-media { background: radial-gradient(ellipse at 50% 25%, #fffdf5, #f2e8dc 100%); }
.gallery-item--frog .gallery-media { background: radial-gradient(ellipse at 50% 25%, #f9fff6, #e0f1e5 100%); }
.gallery-media::before {
  position: absolute;
  z-index: -1;
  bottom: 10%;
  left: 50%;
  width: 51%;
  height: 15%;
  border: 1px solid #9a7ac42b;
  border-block-end: 3px solid #9075a63b;
  border-radius: 50%;
  background: linear-gradient(180deg, #fff9, #bbabd945);
  box-shadow: 0 6px 12px #8e70ad28;
  translate: -50%;
  content: "";
}
.gallery-item--featured .gallery-media::before {
  width: 38%;
  height: 17%;
  border-color: #b39ace78;
  box-shadow: 0 6px 17px #9178b541, inset 0 1px #fff7;
}
.gallery-media img {
  display: block;
  width: 75%;
  height: 78%;
  min-height: 0;
  object-fit: contain;
  filter: drop-shadow(0 4px 5px #584b673c);
}
.gallery-item--featured .gallery-media img {
  width: 56%;
  height: 85%;
  filter: drop-shadow(0 6px 8px #5b415d40);
}
.gallery-open {
  position: absolute;
  top: 7px;
  right: 8px;
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border: 1px solid #d9cde5;
  border-radius: 50%;
  color: #4d3b73;
  background: #fffc;
  font-size: 14px;
  line-height: 1;
}
.gallery-item--featured .gallery-open { width: 30px; height: 30px; top: 10px; right: 11px; font-size: 16px; }
.gallery-fallback {
  display: none;
  padding: 5px 9px;
  border: 1px dashed #b1a2c8;
  border-radius: 6px;
  background: #fff9;
  color: #5c5077;
  font-size: 12px;
}
.gallery-item.has-no-art .gallery-media img { display: none; }
.gallery-item.has-no-art .gallery-fallback { display: block; }
.gallery-item.has-no-art .gallery-media::before { content: none; }

.gallery-card-copy {
  display: grid;
  width: 100%;
  min-width: 0;
  gap: 5px;
  padding: 8px 9px 9px;
}
.gallery-item--featured .gallery-card-copy { padding: 10px 12px 11px; }
.gallery-card-title {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 4px 8px;
}
.gallery-name { min-width: 0; overflow-wrap: anywhere; font-size: 14px; line-height: 1.3; }
.gallery-item--featured .gallery-name { font-size: 17px; font-weight: 830; }
.gallery-quantity {
  display: inline-block;
  padding: 2px 6px;
  border: 1px solid #e4d9f3;
  border-radius: 5px;
  background: #f1eafa;
  color: #59437e;
  font-size: 11px;
  font-weight: 750;
  line-height: 1.5;
  white-space: nowrap;
}
.gallery-description {
  display: -webkit-box;
  overflow: hidden;
  color: var(--gallery-muted);
  font-size: 12px;
  line-height: 1.48;
  overflow-wrap: anywhere;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

/* A shared dialog is a centered lightbox on desktop and a bottom sheet on phones. */
.prize-detail {
  position: fixed;
  width: min(calc(100% - 28px), 506px);
  max-width: none;
  max-height: calc(100dvh - 28px);
  padding: 0;
  overflow: hidden;
  border: 1px solid #cbbde7;
  border-radius: 19px;
  background: #fffdfd;
  box-shadow: 0 16px 55px #170d3c6b;
  color: #2b2340;
}
.prize-detail::backdrop { background: #1c133075; }
.prize-detail-frame { position: relative; display: grid; grid-template-rows: minmax(0, 1fr) auto; max-height: inherit; }
.prize-detail-frame .dialog-close {
  z-index: 1;
  top: 9px;
  right: 10px;
  color: #352648;
  background: #fffd;
}
.prize-detail-scroll { min-height: 0; overflow: auto; }
.prize-detail-media {
  display: grid;
  align-items: center;
  justify-items: center;
  height: min(38dvh, 278px);
  min-height: 112px;
  border-bottom: 1px solid #e9def2;
  background: radial-gradient(ellipse at 50% 50%, #fffaec, #f2e8fb 78%, #e9dff4);
}
.prize-detail-media img {
  display: block;
  width: 83%;
  height: 83%;
  min-height: 0;
  object-fit: contain;
  filter: drop-shadow(0 5px 7px #53405e30);
}
#prize-detail-fallback {
  padding: 8px 12px;
  border: 1px dashed #b1a2c8;
  border-radius: 8px;
  color: #534170;
  background: #fff9;
  font-size: 14px;
}
.prize-detail-copy { padding: 14px 19px; }
.prize-detail-copy h2 { margin: 5px 0 7px; font-size: 22px; line-height: 1.25; overflow-wrap: anywhere; }
.prize-detail-copy p { margin: 0; white-space: pre-wrap; line-height: 1.62; overflow-wrap: anywhere; color: #4d425f; font-size: .9rem; }
.prize-detail-actions { display: flex; justify-content: flex-end; padding: 10px 19px 13px; border-top: 1px solid #eee6f5; }
.prize-detail-actions .hall-outline { min-height: 44px; }

@container hall (max-width: 820px) {
  .gallery-ticket { padding: 11px 11px 10px; }
  .gallery-schedule { padding: 9px 0; }
  #pool-schedule { font-size: 22px; }
  .gallery-countdown { min-width: 109px; padding: 5px 6px; gap: 3px; }
  .gallery-countdown strong { font-size: 13px; }
  .gallery-metrics { padding-top: 7px; }
  .gallery-metrics dd { font-size: 16px; }
  .prize-gallery { margin-top: 12px; }
  .prize-detail {
    inset: auto 0 0;
    width: min(100%, 430px);
    max-height: 88dvh;
    margin: 0 auto;
    border-radius: 18px 18px 0 0;
  }
  .prize-detail-media { height: min(34dvh, 230px); }
  .prize-detail-actions { padding-bottom: max(env(safe-area-inset-bottom), 11px); }
  .prize-detail-actions .hall-outline { width: 100%; }
}

@container hall (max-width: 330px) {
  .gallery-schedule { column-gap: 6px; }
  #pool-schedule { font-size: 19px; }
  .gallery-countdown { min-width: 101px; }
  .gallery-countdown strong { font-size: 12px; }
  .gallery-grid { grid-template-columns: minmax(0, 1fr); }
  .gallery-item--small {
    display: grid;
    grid-template-columns: 84px minmax(0, 1fr);
    align-items: stretch;
  }
  .gallery-item--small .gallery-media {
    height: auto;
    min-height: 98px;
    border-bottom: 0;
    border-right: 1px solid #e6deed;
  }
  .gallery-item--small .gallery-card-copy { align-content: center; }
  .gallery-item--small .gallery-open { width: 20px; height: 20px; top: 5px; right: 5px; font-size: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .gallery-item { transition: none; }
  .gallery-item:hover { transform: none; }
}


/* Put the existing live cabinet labels in the daily section's own heading. */
#daily-draw {
  border-color: transparent;
  background: transparent;
  box-shadow: none;
}
/* The removed shell used to surround the title, glass and deck together.
   The glass bezel and the actual control deck keep their own hardware styling. */
#daily-draw .lottery-machine .claw-cabinet {
  padding-block-start: 3px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}



/* The translucent rim and soft shading give the information card a gel surface. */
.gallery-ticket {
  --jelly-period: 4800ms;
  --jelly-ink: #311957;
  --jelly-muted: #51406b;
  position: relative;
  isolation: isolate;
  border-color: #bba1e9;
  border-radius: 21px;
  color: var(--jelly-ink);
  background:
    radial-gradient(ellipse at 22% 6%, #fffcff 0%, transparent 45%),
    radial-gradient(ellipse at 95% 108%, #cbb0f5 0%, transparent 52%),
    radial-gradient(ellipse at 22% 117%, #f5bbe9 0%, transparent 51%),
    linear-gradient(146deg, #fbeeff 8%, #f0e1ff 46%, #e1d1ff 100%);
  box-shadow:
    inset 0 2px 1px #fff,
    inset 0 0 0 3px #fff9,
    inset 0 -6px 10px #a575d539,
    0 7px 16px #6742a32b;
}

/* Move the gel and its reflection as separate layers. Text stays on the card. */
.jelly-decoration {
  position: absolute;
  z-index: -1;
  inset: 0;
  overflow: hidden;
  border-radius: inherit;
  pointer-events: none;
}
.jelly-decoration::before {
  position: absolute;
  z-index: 3;
  inset: 4px 5px auto;
  height: 25%;
  border-radius: 16px 16px 50% 50% / 15px 15px 65% 65%;
  background: linear-gradient(180deg, #fff9, #fff0);
  content: "";
}
.jelly-gem {
  position: absolute;
  display: block;
  transform-origin: 50% 90%;
  border: 1px solid #fff9;
  border-radius: 39% 43% 33% 34% / 53% 53% 30% 30%;
  box-shadow:
    inset 0 4px 6px #fff8,
    inset 4px -7px 14px #f2ccffa8,
    inset -5px -3px 10px #725aca2e,
    0 5px 10px #8753cb31;
}
.jelly-gem::before {
  position: absolute;
  left: 12%;
  top: 10%;
  width: 53%;
  height: 21%;
  border-radius: 65% 36% 61% 36%;
  background: radial-gradient(ellipse at 43% 40%, #fffc, #fff2 58%, transparent 74%);
  transform: rotate(-11deg);
  content: "";
}
.jelly-gem::after {
  position: absolute;
  right: 9%;
  bottom: 10%;
  width: 48%;
  height: 28%;
  border-radius: 50%;
  background: radial-gradient(ellipse at 50% 51%, #fff8, transparent 69%);
  content: "";
}
.jelly-gem--grape {
  top: -18px;
  right: -16px;
  width: 151px;
  height: 111px;
  opacity: .71;
  background:
    radial-gradient(ellipse at 60% 96%, #efcbff 1%, transparent 59%),
    radial-gradient(ellipse at 81% 22%, #d0bfff, transparent 45%),
    linear-gradient(158deg, #e7c8ff 16%, #af83f1 59%, #9964e1);
  animation: jelly-grape-bounce var(--jelly-period) cubic-bezier(.34, .64, .32, 1) infinite;
}
.jelly-gem--berry {
  right: 5%;
  bottom: -21px;
  width: 81px;
  height: 62px;
  opacity: .8;
  background:
    radial-gradient(ellipse at 60% 93%, #ffe4fa 0, transparent 66%),
    linear-gradient(153deg, #ffc8ed 12%, #ed94cb 63%, #da84d4);
  animation: jelly-berry-bounce var(--jelly-period) cubic-bezier(.27, .68, .33, 1) infinite;
}
.jelly-bubble {
  position: absolute;
  z-index: 2;
  width: 15px;
  height: 15px;
  border: 1px solid #fff8;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 26%, #fff 0 12%, #fff5 28%, #b781de70 61%, #edccf7 81%);
  box-shadow: inset 0 -2px 2px #aa65d820, 0 1px 4px #a276c627;
  opacity: .78;
  animation: jelly-bubble-drift var(--jelly-period) ease-in-out infinite;
}
.jelly-bubble--upper { right: 24%; top: 15%; }
.jelly-bubble--lower {
  right: 7%;
  bottom: 17%;
  width: 10px;
  height: 10px;
  animation-delay: -1600ms;
}
.jelly-sheen {
  position: absolute;
  z-index: 4;
  inset: -40% auto -40% 0;
  width: 36%;
  background: linear-gradient(105deg, transparent 21%, #fff0 33%, #fff9 54%, #fff1 69%, transparent 83%);
  filter: blur(7px);
  animation: jelly-sheen-slide var(--jelly-period) ease-in-out infinite;
}
@keyframes jelly-grape-bounce {
  0%, 100% { transform: translateY(0) rotate(-12deg) scale(1); }
  13% { transform: translateY(8px) rotate(-7deg) scale(1.13, .79); }
  29% { transform: translateY(-16px) rotate(-14deg) scale(.89, 1.19); }
  45% { transform: translateY(9px) rotate(-6deg) scale(1.17, .78); }
  55% { transform: translateY(-5px) rotate(-10deg) scale(.95, 1.07); }
  68% { transform: translateY(2px) rotate(-12deg) scale(1.02, .98); }
}
@keyframes jelly-berry-bounce {
  0%, 42%, 100% { transform: translateY(0) rotate(14deg) scale(1); }
  52% { transform: translateY(4px) rotate(10deg) scale(1.15, .82); }
  67% { transform: translateY(-15px) rotate(21deg) scale(.9, 1.19); }
  81% { transform: translateY(2px) rotate(12deg) scale(1.08, .9); }
  89% { transform: translateY(-4px) rotate(15deg) scale(.98, 1.04); }
}
@keyframes jelly-bubble-drift {
  0%, 100% { transform: translate(0, 0); }
  54% { transform: translate(-9px, -9px) scale(1.13); }
}
@keyframes jelly-sheen-slide {
  0%, 15% { transform: translateX(-145%) skewX(-21deg); opacity: 0; }
  30% { opacity: .66; }
  56% { opacity: .58; }
  73%, 100% { transform: translateX(318%) skewX(-21deg); opacity: 0; }
}

/* The brighter surface uses saturated plum text and translucent accent chips. */
.gallery-ticket #pool-schedule { color: #392060; }
.gallery-ticket .pool-time span,
.gallery-ticket .gallery-countdown span,
.gallery-ticket .gallery-metrics dt,
.gallery-ticket .gallery-metrics dd small { color: var(--jelly-muted); }
.gallery-ticket .pool-badge {
  border-color: #ffffffce;
  background: #fff9;
  color: #56248b;
  box-shadow: inset 0 1px #fff, 0 1px 4px #9065bd19;
}
.gallery-ticket .gallery-countdown {
  border-color: #ffffffcd;
  border-radius: 9px;
  background: linear-gradient(160deg, #fff9, #f3dfff54);
  box-shadow: inset 0 1px #fffa, 0 2px 5px #9464c518;
}
.gallery-ticket .gallery-countdown strong { color: #42246c; }
.gallery-ticket .gallery-countdown[data-urgent="true"] {
  border-color: #e5a6c7;
  background: #ffdeefb8;
}
.gallery-ticket .gallery-countdown[data-urgent="true"] strong { color: #89285c; }
.gallery-ticket .gallery-metrics,
.gallery-ticket .gallery-metrics > div + div { border-color: #906fba48; }
.gallery-ticket .gallery-metrics dd { color: var(--jelly-ink); }

@container hall (max-width: 820px) {
  .gallery-ticket { border-radius: 17px; }
  .jelly-gem--grape { width: 113px; height: 89px; top: -17px; right: -14px; }
  .jelly-gem--berry { width: 65px; height: 51px; }
}
@media (prefers-reduced-motion: reduce) {
  .jelly-decoration * { animation: none; }
  .jelly-gem--grape { transform: rotate(-12deg); }
  .jelly-gem--berry { transform: rotate(14deg); }
  .jelly-sheen { display: none; }
}


.claw-cabinet[data-skin="arcade"] { --jelly-machine-interior: url("cabinet-art/interior.webp"); }
/* The cabinet shell is scoped to the former arcade finish. The 380×320
   playfield and the geometry used by the motor remain exactly the same. */
.jelly-cabinet-decoration { display: none; }
#daily-draw .lottery-machine .claw-cabinet[data-skin="arcade"] {
  --jelly-machine-period: 9600ms;
  --cab-edge: #a394d1;
  --cab-alloy: #f2f9ff;
  --cab-metal-dark: #504b78;
  --cab-caption: #4c3a6d;
  --cab-guide: #ae54cb;
  --cab-status: #209986;
  gap: 8px;
  padding: 15px 15px 14px;
  border: 1px solid #b19ade;
  border-radius: 29px;
  background:
    radial-gradient(ellipse at 12% 3%, #fff9ff 0, #fff0 32%),
    radial-gradient(ellipse at 94% 91%, #fa9fde92, #fa9fde00 56%),
    linear-gradient(151deg, #e9d9ff 8%, #a398e5 52%, #d8b4fb 88%);
  box-shadow:
    inset 0 2px 2px #fff,
    inset 0 0 0 4px #f7e5ff72,
    inset 0 -6px 13px #70499e66,
    0 7px 0 #9984ce,
    0 14px 23px #6c52a742;
}
#daily-draw .claw-cabinet[data-skin="arcade"] .jelly-cabinet-decoration {
  position: absolute;
  z-index: -1;
  inset: 2px;
  display: block;
  overflow: hidden;
  border-radius: inherit;
  pointer-events: none;
}
.jelly-cabinet-rim {
  position: absolute;
  inset: 3px;
  border: 1px solid #fff9;
  border-bottom-color: #a482db8c;
  border-radius: inherit;
  box-shadow: inset 0 1px 3px #fffa;
}
.jelly-cabinet-wave {
  position: absolute;
  inset: -28% auto -28% 0;
  width: 19%;
  background: linear-gradient(90deg, #fff0 8%, #f3fcff95 51%, #fff0 86%);
  filter: blur(5px);
  animation: jelly-machine-rim var(--jelly-machine-period) ease-in-out infinite;
}
@keyframes jelly-machine-rim {
  0%, 10% { opacity: 0; transform: translateX(-175%) skewX(-17deg); }
  24% { opacity: .8; }
  55% { opacity: .64; }
  79%, 100% { opacity: 0; transform: translateX(650%) skewX(-17deg); }
}

/* Real recessed wall render, layered with the live metal and glass effects. */
#daily-draw .claw-cabinet[data-skin="arcade"] .claw-cabinet-glass {
  border-radius: 18px;
  background: #b6a6f1;
  box-shadow: 0 0 0 1px #514385b5, 0 0 0 4px #eee2ffba, 0 2px 6px 5px #6046a257;
}
#daily-draw .claw-cabinet[data-skin="arcade"] .claw-cabinet-glass::after {
  border: 1px solid #e9e8ffad;
  box-shadow: inset 0 0 0 1px #ffffff51, inset 0 1px 4px #fffc, inset 0 -5px 13px #5541a22d;
}
.claw-cabinet[data-skin="arcade"] .claw-cabinet-interior {
  background: var(--jelly-machine-interior) center / 100% 100% no-repeat;
}
.claw-cabinet[data-skin="arcade"] .claw-cabinet-interior::before,
.claw-cabinet[data-skin="arcade"] .claw-cabinet-panel { display: none; }
.claw-cabinet[data-skin="arcade"] .claw-cabinet-ground {
  border-color: #efdbff4d;
  background: linear-gradient(180deg, #d8b9fc12, #ad9ded70);
}
.claw-cabinet[data-skin="arcade"] .claw-cabinet-lights {
  background: linear-gradient(90deg, #9dfbff50, transparent 12%, transparent 87%, #ffbdf955);
  animation: jelly-machine-light var(--jelly-machine-period) ease-in-out infinite;
}
.claw-cabinet[data-skin="arcade"] .claw-cabinet-lights::before {
  inset-inline: 23px;
  height: 2px;
  background: linear-gradient(90deg, #abfbff, #fff7ff 54%, #ffd5fd);
  box-shadow: 0 0 7px #f1dcff;
}
@keyframes jelly-machine-light {
  0%, 100% { opacity: .49; }
  32% { opacity: .96; }
  66% { opacity: .63; }
  86% { opacity: .85; }
}
.claw-cabinet[data-skin="arcade"] .claw-cabinet-glare {
  background:
    linear-gradient(116deg, transparent 17%, #fff0 19%, #fdfeff20 24%, #fff0 34%),
    linear-gradient(126deg, #fff1, #fff0 27%);
}
.claw-cabinet[data-skin="arcade"] .claw-cabinet-track {
  height: 6px;
  border-top-color: #fbfdff;
  border-bottom-color: #4d446d;
  background:
    repeating-linear-gradient(0deg, #beafda2c 0 1px, #fff1 1px 2px),
    linear-gradient(180deg, #cfd8ea 0%, #f7f5ff 31%, #6f688e 61%, #ad9dd5 88%);
  box-shadow: 0 2px 3px #3a2b6b57;
}
.claw-cabinet[data-skin="arcade"] .claw-cabinet-rig-svg {
  filter: drop-shadow(1px 1px 1px #38295a4a);
}
.claw-cabinet[data-skin="arcade"] .claw-cabinet-cable-coils { stroke: #ece8ff; }
.claw-cabinet[data-skin="arcade"] .claw-cabinet-inlet {
  border-color: #e2d2fc;
  background: linear-gradient(180deg, #191128, #4e3977 80%);
  box-shadow: 0 0 0 1px #8873b7, inset 0 3px 8px #110c1f;
}
.claw-cabinet[data-skin="arcade"] .claw-cabinet-inlet-lip {
  border-color: #f3e7ff;
  background: linear-gradient(180deg, #e3d5ff, #a392cc);
  box-shadow: 0 2px 3px #63498b53;
}
.claw-cabinet[data-skin="arcade"] .claw-cabinet-capsule {
  border-color: hsl(var(--capsule-hue) 51% 54% / 58%);
  background:
    radial-gradient(ellipse at 34% 20%, #fff 1%, #fff8 10%, #fff0 33%),
    radial-gradient(ellipse at 62% 88%, hsl(var(--capsule-hue) 90% 85%), #fff0 53%),
    radial-gradient(ellipse at 45% 51%, hsl(var(--capsule-hue) 80% 81%), hsl(var(--capsule-hue) 72% 66%) 55%, hsl(var(--capsule-hue) 55% 51%) 95%);
  box-shadow: inset 1px 2px 5px #fff8, inset -3px -4px 7px hsl(var(--capsule-hue) 45% 35% / 24%), 0 3px 5px #34205147;
}

/* Pressable translucent plastic above a deep metal outlet. */
.claw-cabinet[data-skin="arcade"] .claw-cabinet-deck {
  border-color: #a996ce;
  border-radius: 15px;
  background:
    radial-gradient(ellipse at 22% 0, #fffafa, #fff0 60%),
    linear-gradient(180deg, #f6ecff 0%, #dfd0ff 58%, #c7b1ee 100%);
  box-shadow: inset 0 1px 2px #fff, inset 0 -4px 5px #9274bc49, 0 2px 4px #5b41934a;
}
.claw-cabinet[data-skin="arcade"] .claw-cabinet-lever-base {
  border-color: #a68ecb;
  background: radial-gradient(ellipse at 50% 48%, #342751 0 21%, #6a588a 25% 38%, #a395ba 40%, #f8efff 67%, #bb9fe2 89%);
}
.claw-cabinet[data-skin="arcade"] .claw-cabinet-lever-stem {
  background: linear-gradient(90deg, #493c63, #f6efff 44%, #c9c1db 64%, #453857);
}
.claw-cabinet[data-skin="arcade"] .claw-cabinet-lever-ball {
  border-color: #bc568e;
  background: radial-gradient(circle at 35% 23%, #fffafa 0 6%, #ffb7de 13%, #f87fc4 41%, #ca4d9c 81%);
  box-shadow: inset 0 -4px 5px #7b2c7a4f, inset 0 2px 2px #ffffffe0, 0 2px 5px #934c9382;
}
.claw-cabinet[data-skin="arcade"] .claw-cabinet-output {
  border-color: #a99bc6;
  background: linear-gradient(180deg, #e5ddf2, #b7a8d2 78%, #e7d9f9);
  box-shadow: inset 0 1px #fff, 0 2px 4px #584a8552;
}
.claw-cabinet[data-skin="arcade"] .claw-cabinet-output i {
  border-color: #776193;
  background: linear-gradient(180deg, #211832, #50406d 70%, #766590);
  box-shadow: inset 0 3px 5px #241735a8;
}
.claw-cabinet[data-skin="arcade"] .claw-cabinet-output span { color: #fff4ff; text-shadow: 0 1px 2px #352344; }
.claw-cabinet[data-skin="arcade"] .claw-cabinet-grab {
  border-color: #fff5fe;
  background:
    radial-gradient(ellipse at 39% 18%, #ffd8f3 0, #ffb6df64 28%, #fff0 55%),
    linear-gradient(168deg, #f782c5, #c74599 65%, #992774);
  box-shadow: inset 0 -4px 5px #771c6b52, inset 0 1px #fff, 0 0 0 1px #b46b9d, 0 3px 4px #8b36786e;
  text-shadow: 0 1px 2px #77195d;
}
.claw-cabinet[data-skin="arcade"] .claw-cabinet-grab:enabled:active { transform: translateY(2px) scale(1.07, .91); }
.claw-cabinet[data-skin="arcade"] .lottery-redeem-control {
  border-color: #7650a6;
  border-radius: 9px;
  background: linear-gradient(180deg, #906dc4, #654796);
  box-shadow: inset 0 1px #e3c9ff8f, 0 2px 2px #62408e64;
}

@container hall (max-width: 700px) {
  #daily-draw .lottery-machine .claw-cabinet[data-skin="arcade"] {
    gap: 7px;
    padding: 10px 9px 10px;
    border-radius: 20px;
  }
  #daily-draw .claw-cabinet[data-skin="arcade"] .claw-cabinet-glass {
    border-radius: 12px;
    box-shadow: 0 0 0 1px #514385b5, 0 0 0 3px #eee2ffba, 0 2px 5px 4px #6046a250;
  }
  .claw-cabinet[data-skin="arcade"] .claw-cabinet-deck { border-radius: 11px; }
}
@media (prefers-reduced-motion: reduce) {
  .jelly-cabinet-wave, .claw-cabinet[data-skin="arcade"] .claw-cabinet-lights { animation: none; }
  .jelly-cabinet-wave { opacity: 0; }
}

/* The virtual glass scene is 380 × 320. Place this behind the rig at z=7 and capsule at z=6. */
.jelly-showcase { display: none; }
.claw-cabinet[data-skin="arcade"] .jelly-showcase {
  position: absolute;
  z-index: 4;
  top: var(--showcase-top);
  left: var(--showcase-left);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: var(--showcase-width);
  height: var(--showcase-height);
  padding: 7px 8px 8px;
  overflow: hidden;
  border: 1px solid #fff;
  border-radius: 13px;
  background: linear-gradient(150deg, #fffef1c9, #ffffff8c 30%, #d6f4ff75 70%, #f9e0f898);
  box-shadow: 0 3px 10px #9574b433, 0 0 0 1px #e4dbf3, inset 0 0 13px #fff9;
  color: #3b2d52;
  isolation: isolate;
  pointer-events: none;
  transition: opacity 130ms ease, visibility 130ms ease;
}

.jelly-showcase::before {
  content: '';
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(112deg, transparent 14%, #fff5 41%, #fcffffcb 48%, #cffafba8 52%, transparent 68%);
  animation: jelly-showcase-shimmer 3200ms ease-in-out infinite;
  pointer-events: none;
}
@keyframes jelly-showcase-shimmer {
  0%, 12% { transform: translateX(-85%); opacity: 0; }
  34% { opacity: .9; }
  66%, 100% { transform: translateX(85%); opacity: 0; }
}
.jelly-showcase-kicker {
  padding-inline-start: 2px;
  color: #654080;
  font-size: 8px;
  line-height: 10px;
  font-weight: 800;
  letter-spacing: .11em;
}
.jelly-showcase-body {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 6px;
  align-items: center;
}
.jelly-showcase-picture {
  position: relative;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid #fff;
  border-radius: 10px;
  background: radial-gradient(ellipse at 48% 74%, #dc9ef77d, #e3f4ffe3 62%, #ffffff8f);
  box-shadow: inset 0 1px 5px #fff, 0 1px 4px #79549725;
}
.jelly-showcase-picture img {
  display: block;
  width: 100%;
  height: 100%;
  padding: 3px;
  object-fit: contain;
  filter: drop-shadow(0 2px 2px #8f5a91a1);
}
.jelly-showcase-no-art { color: #705697; font-size: 15px; font-weight: 800; }
.jelly-showcase-copy { display: grid; min-width: 0; gap: 3px; }
.jelly-showcase-name {
  font-size: 10px;
  font-weight: 800;
  line-height: 1.25;
  overflow-wrap: anywhere;
  text-wrap: balance;
}
.jelly-showcase-stock { color: #5f4b7a; font-size: 8px; line-height: 11px; white-space: nowrap; }

.claw-cabinet[data-skin="arcade"] [data-showcase-busy] .jelly-showcase {
  opacity: 0;
  visibility: hidden;
}
.claw-cabinet[data-skin="arcade"] [data-showcase-busy] .jelly-showcase::before {
  animation-play-state: paused;
}
/* The playfield scales on phones. Give the in-machine label extra room before scaling. */
@container hall (max-width: 700px) {
  .jelly-showcase-kicker { font-size: 11px; line-height: 12px; }
  .jelly-showcase-name { font-size: 14px; line-height: 1.16; }
  .jelly-showcase-stock { font-size: 11px; line-height: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  .claw-cabinet[data-skin="arcade"] .jelly-showcase { transition: none; }
  .claw-cabinet[data-skin="arcade"] .jelly-showcase::before { animation: none; }
}

/* The clear cap reveals a small folded ticket. Only the shell's paint changes;
   every collision and grab point still uses the original capsule geometry. */
.claw-cabinet[data-skin="arcade"] .claw-cabinet-capsule {
  isolation: isolate;
  background:
    radial-gradient(ellipse at 27% 18%, #fff 1%, #fff8 9%, #fff0 29%),
    radial-gradient(ellipse at 60% 28%, #fff7 1%, #fff0 59%),
    linear-gradient(180deg,
      hsl(var(--capsule-hue) 72% 83% / 91%),
      hsl(var(--capsule-hue) 66% 72% / 76%) 46%,
      hsl(var(--capsule-hue) 76% 66%) 55%,
      hsl(var(--capsule-hue) 77% 56%) 83%,
      hsl(var(--capsule-hue) 60% 46%));
}
.claw-cabinet[data-skin="arcade"] .claw-cabinet-capsule::after {
  position: absolute;
  top: 22%;
  left: 29%;
  width: 40%;
  height: 25%;
  border: 1px solid #fff8;
  border-radius: 2px 2px 5px 2px;
  background: linear-gradient(170deg, #fff9, #e7e2ff50);
  box-shadow: 0 1px 2px #54407543;
  transform: rotate(-13deg);
  content: "";
}



#cabinet-root:focus,
#cabinet-root .claw-cabinet-lever:focus { outline: none; }
#cabinet-root:focus-visible .claw-cabinet-aim-caption,
#cabinet-root .claw-cabinet-lever:focus-visible + .claw-cabinet-aim-caption {
  color: var(--lottery-ink);
  font-weight: 750;
  text-decoration: underline;
  text-underline-offset: 2px;
}


/* Recess the daily meter and the metal acceptor in the cabinet's top trim. */
.daily-coin-machine {
  --coin-travel: 660ms;
  --coin-plastic: #ecddfc;
  --coin-depth: #bdb0e6;
  --coin-trim: #9180b9;
  --coin-text: #35234d;
  --coin-muted: #523f69;
  --coin-bezel: #403057;
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 7px;
  width: 100%;
  min-width: 0;
  min-height: 57px;
  padding: 5px 8px 5px 11px;
  border: 1px solid var(--coin-trim);
  border-radius: 12px;
  color: var(--coin-text);
  background:
    linear-gradient(176deg, #fffaf9c4, #fff0 54%),
    linear-gradient(168deg, var(--coin-plastic), var(--coin-depth) 88%);
  box-shadow: inset 0 1px #fffdfc, inset 0 -3px 4px #57418231, 0 2px 4px #523a842b;
}
.claw-cabinet[data-skin="wuxia"] .daily-coin-machine {
  --coin-plastic: #edd8aa;
  --coin-depth: #b6ab80;
  --coin-trim: #917b50;
  --coin-text: #3f3624;
  --coin-muted: #514735;
  --coin-bezel: #403a2e;
}
.daily-coin-meter { min-width: 0; }
.daily-coin-meter .claw-cabinet-counter {
  display: flex;
  gap: 7px;
  align-items: baseline;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--coin-text);
  font-size: 13px;
  font-weight: 720;
}
.daily-coin-meter .claw-cabinet-counter strong {
  color: var(--coin-text);
  font-size: 23px;
  line-height: 1.08;
}
#daily-coin-message {
  display: block;
  margin-top: 2px;
  color: var(--coin-muted);
  font-size: 11px;
  line-height: 1.3;
}
.daily-coin-slot {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  padding: 3px 10px 3px 5px;
  border: 1px solid #706088;
  border-radius: 9px;
  color: #fff7ff;
  background: linear-gradient(180deg, #594971, var(--coin-bezel) 67%, #352646);
  box-shadow: inset 0 1px #fff5, inset 0 -2px #22152e85, 0 1px 3px #402c6e65;
  font: inherit;
  font-size: 13px;
  font-weight: 780;
  white-space: nowrap;
  cursor: pointer;
}
.daily-coin-slot:not([aria-disabled="true"]):hover { filter: brightness(1.1); }
.daily-coin-slot:not([aria-disabled="true"]):active { translate: 0 1px; }
.daily-coin-slot:focus-visible { outline-color: #654c8d; outline-offset: 2px; }
.daily-coin-slot[aria-disabled="true"] { cursor: default; }
.coin-channel {
  position: relative;
  flex: 0 0 69px;
  height: 34px;
  perspective: 100px;
  overflow: hidden;
}
.coin-face {
  position: absolute;
  inset: 1px 0 1px auto;
  display: grid;
  place-items: center;
  width: 45px;
  border: 1px solid #d1c6ed;
  border-radius: 7px;
  background:
    repeating-linear-gradient(0deg, #fff1 0 1px, transparent 1px 3px),
    linear-gradient(163deg, #d7d2e0 1%, #fff 36%, #9f97b3 66%, #cfc6dd);
  box-shadow: inset 0 1px #fff, inset 0 -1px #5d5773, 0 2px 3px #241734b0;
}
.coin-face::before, .coin-face::after {
  position: absolute;
  top: 5px;
  width: 4px;
  height: 4px;
  border: 1px solid #736b8b;
  border-radius: 50%;
  background: linear-gradient(135deg, #fff 39%, #625a78 43% 55%, #b9b1c8 59%);
  content: "";
}
.coin-face::before { left: 4px; }
.coin-face::after { right: 4px; }
.coin-opening {
  width: 29px;
  height: 7px;
  border: 1px solid #73678e;
  border-radius: 2px;
  background: linear-gradient(180deg, #140e1e 10%, #322343 60%, #0c0811);
  box-shadow: inset 0 1px 3px #100b1c, 0 1px 0 #fffb, 0 0 0 2px #b9a5e9;
}
.coin-token {
  position: absolute;
  z-index: 2;
  top: 5px;
  left: 0;
  display: none;
  width: 24px;
  height: 24px;
  border: 1px solid #97632f;
  border-radius: 50%;
  background:
    radial-gradient(circle at 34% 24%, #fff3bf, #e6b967 48%, #f6cf7d 70%, #a36a31 98%);
  box-shadow: inset 0 0 0 2px #fbe1a3, inset 0 0 0 3px #b9813969, 0 2px 3px #3d2731aa;
}
.coin-token::before {
  position: absolute;
  inset: 5px;
  border: 1px solid #c69249;
  border-radius: 50%;
  background: radial-gradient(circle at 36% 20%, #ffecc19e, #c58d3c5c);
  content: "";
}
.daily-coin-machine[data-coin-state="ready"] .coin-token,
.daily-coin-machine[data-coin-state="dropping"] .coin-token { display: block; }
.daily-coin-machine[data-coin-state="dropping"] .coin-token {
  animation: arcade-coin-travel var(--coin-travel) ease-in-out both;
}
.daily-coin-machine[data-coin-state="dropping"] .coin-opening {
  box-shadow: inset 0 1px 3px #100b1c, 0 0 0 2px #bfefff, 0 0 8px #bceeff;
}
.daily-coin-machine[data-coin-state="claimed"] .coin-opening {
  box-shadow: inset 0 1px 3px #100b1c, 0 0 0 2px #a7ead6, 0 0 5px #baffed;
}
.daily-coin-machine:is([data-coin-state="spent"], [data-coin-state="expired"]) .coin-face { filter: saturate(.55); }

@keyframes arcade-coin-travel {
  0% { transform: translate3d(0, 0, 0) rotateX(0) rotateZ(-14deg); opacity: 1; }
  45% { transform: translate3d(35px, -4px, 0) rotateX(35deg) rotateZ(9deg); opacity: 1; }
  74% { transform: translate3d(35px, 2px, 0) rotateX(81deg) rotateZ(0); opacity: 1; }
  100% { transform: translate3d(35px, 8px, 0) rotateX(88deg); opacity: 0; }
}
@container hall (max-width: 700px) {
  .daily-coin-machine { min-height: 51px; padding: 4px 5px 4px 7px; gap: 5px; border-radius: 9px; }
  .daily-coin-meter .claw-cabinet-counter { gap: 5px; font-size: 12px; }
  .daily-coin-meter .claw-cabinet-counter strong { font-size: 18px; }
  #daily-coin-message { font-size: 10px; }
  .daily-coin-slot { padding-inline: 4px 6px; gap: 5px; font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) {
  .daily-coin-machine[data-coin-state="dropping"] .coin-token { animation: none; }
}


/* Match the rounded cabinet shoulders, with a separate inset tray for the
   lamp and two metal screws where the tray is fastened to the housing. */
.cabinet-tube-marquee {
  --marquee-metal-light: #e9dfff;
  --marquee-metal-dark: #63518f;
  --marquee-tray-edge: #160e27;
  --marquee-tray-lit: #4a3562;
  --marquee-tray-dark: #1e152f;
  position: relative;
  display: grid;
  place-items: center;
  isolation: isolate;
  grid-template-columns: minmax(0, 1fr);
  min-height: 58px;
  padding: 4px 7px;
  border: 1px solid #a795cd;
  border-radius: 20px 20px 11px 11px;
  background: linear-gradient(177deg, #fcf6ff 0%, var(--marquee-metal-light) 14%,
    #ad97d7 44%, var(--marquee-metal-dark) 79%, #b4a1d8 100%);
  box-shadow: inset 0 1px 1px #fff, inset 0 -1px 1px #ffffff7d, 0 2px 3px #3c255b42;
}
.claw-cabinet[data-skin="wuxia"] .cabinet-tube-marquee {
  --marquee-metal-light: #eddaad;
  --marquee-metal-dark: #5f513e;
  --marquee-tray-edge: #1c1615;
  --marquee-tray-lit: #463841;
  --marquee-tray-dark: #241c28;
  border-color: #a08c60;
}
.cabinet-tube-tray {
  position: relative;
  isolation: isolate;
  display: grid;
  width: 100%;
  min-height: 48px;
  place-items: center;
  border: 1px solid var(--marquee-tray-edge);
  border-radius: 15px 15px 8px 8px;
  background:
    radial-gradient(ellipse at 50% 110%, #b589d730 3%, transparent 72%),
    linear-gradient(177deg, #ffffff12, transparent 26%, transparent 86%, #ffffff13),
    linear-gradient(180deg, var(--marquee-tray-dark) 7%, var(--marquee-tray-lit) 50%, var(--marquee-tray-dark));
  box-shadow: inset 0 2px 5px #0c0718d9, inset 0 -1px 0 #ddc3ff42, 0 1px 0 #fff8;
}
/* Chrome fasteners stay outside the lettering at every cabinet width. */
.cabinet-tube-tray::before,
.cabinet-tube-tray::after {
  position: absolute;
  z-index: 1;
  top: 50%;
  width: 9px;
  height: 9px;
  border: 1px solid #1e1435;
  border-radius: 50%;
  box-shadow: 0 1px 2px #090418b3;
  background:
    linear-gradient(137deg, transparent 43%, #301e44 46% 54%, #ecdfff9c 55% 61%, transparent 62%),
    radial-gradient(circle at 35% 24%, #f3edff, #ad9ac6 46%, #594974 84%);
  transform: translateY(-50%);
  content: "";
}
.cabinet-tube-tray::before { left: clamp(6px, 3%, 16px); }
.cabinet-tube-tray::after { right: clamp(6px, 3%, 16px); }
.cabinet-tube-art {
  position: relative;
  display: grid;
  width: min(76%, 335px);
  margin: 1px 0;
}
.cabinet-tube-glass {
  display: block;
  width: 100%;
  height: auto;
}

/* Each strip reveals its own lamp circuit. The actual glass and its
   highlights remain visible during warmup and between the brief flickers. */
.cabinet-tube-lit {
  position: absolute;
  inset: 0;
  clip-path: inset(0 calc(100% - var(--circuit-end)) 0 var(--circuit-start));
  opacity: 1;
  animation: cabinet-tube-start 760ms linear calc(100ms + var(--circuit) * 118ms) both;
}
.cabinet-tube-lit::after {
  position: absolute;
  inset: 0;
  background: var(--cabinet-tube-light) center / 100% 100% no-repeat;
  content: "";
}
.cabinet-tube-lit:nth-of-type(3n + 1)::after {
  animation: cabinet-tube-flicker 13s linear calc(1500ms + var(--circuit) * 720ms) infinite;
}
.cabinet-tube-lit:nth-of-type(3n + 2)::after {
  animation: cabinet-tube-flicker 17s linear calc(2600ms + var(--circuit) * 570ms) infinite;
}
@keyframes cabinet-tube-start {
  0%, 11% { opacity: 0; }
  17% { opacity: .66; }
  24% { opacity: .24; }
  37% { opacity: 1; }
  49% { opacity: .55; }
  73%, 100% { opacity: 1; }
}
@keyframes cabinet-tube-flicker {
  0%, 73%, 78%, 80%, 100% { opacity: 1; }
  75% { opacity: .79; }
  76% { opacity: .91; }
  79% { opacity: .83; }
}
@container hall (max-width: 700px) {
  .cabinet-tube-marquee { min-height: 45px; padding: 3px 5px; border-radius: 13px 13px 8px 8px; }
  .cabinet-tube-tray { min-height: 38px; border-radius: 10px 10px 6px 6px; }
  .cabinet-tube-tray::before,
  .cabinet-tube-tray::after { width: 7px; height: 7px; }
}
@media (prefers-reduced-motion: reduce) {
  .cabinet-tube-lit,
  .cabinet-tube-lit::after { animation: none !important; }
}


/* Set the three labels inside the dark recess while keeping the neon mark
   centered. Equal side columns reserve the same space beside both screws. */
.cabinet-tube-marquee {
  container: marquee / inline-size;
  --marquee-copy-title: #fff5ff;
  --marquee-copy-caption: #e1d2ef;
}
.claw-cabinet[data-skin="wuxia"] .cabinet-tube-marquee {
  --marquee-copy-title: #fff1d8;
  --marquee-copy-caption: #e6d7bb;
}
.cabinet-tube-tray {
  grid-template-areas: "heading artwork mode";
  grid-template-columns: minmax(100px, 1fr) minmax(0, 335px) minmax(100px, 1fr);
  align-items: center;
  column-gap: 7px;
  padding: 0 clamp(23px, 5.5%, 35px);
}
.cabinet-tube-heading {
  grid-area: heading;
  justify-self: start;
  display: grid;
  min-width: 0;
  max-width: 100%;
  gap: 3px;
  color: var(--marquee-copy-title);
  text-align: start;
}
.cabinet-tube-heading h2 {
  margin: 0;
  color: inherit;
  font-weight: 820;
  font-size: 20px;
  line-height: 1.15;
  white-space: nowrap;
}
.cabinet-tube-heading .cabinet-tube-rule {
  min-width: 0;
  color: var(--marquee-copy-caption);
  font-size: 11px;
  font-weight: 640;
  line-height: 1.35;
  /* Keep the eligibility phrase together above its daily limit. */
  white-space: normal;
  word-break: keep-all;
}
.cabinet-tube-tray .cabinet-tube-art {
  grid-area: artwork;
  width: 100%;
}
.cabinet-tube-tray .claw-cabinet-mode {
  grid-area: mode;
  justify-self: end;
  gap: 6px;
  color: var(--marquee-copy-caption);
  font-size: 13px;
  font-weight: 720;
}
.claw-cabinet .cabinet-tube-tray .claw-cabinet-mode span {
  font: inherit;
  letter-spacing: normal;
}
.cabinet-tube-tray .claw-cabinet-mode[data-ready="true"] b {
  background: #85ebbc;
  box-shadow: 0 0 5px #83edbda0;
}
.cabinet-tube-tray .claw-cabinet-mode[data-ready="false"] b {
  background: #afa8bc;
  box-shadow: none;
}

/* The cabinet can be narrow even on a wide screen. Drop the copy under
   the art based on the lightbox’s width so neither needs to be clipped. */
@container marquee (max-width: 475px) {
  .cabinet-tube-tray {
    grid-template-areas: "artwork artwork" "heading mode";
    grid-template-columns: minmax(0, 1fr) auto;
    padding: 1px 15px 8px;
  }
  .cabinet-tube-tray .cabinet-tube-art { width: min(88%, 300px); margin: 0; }
  .cabinet-tube-tray::before,
  .cabinet-tube-tray::after { top: 37%; }
  .cabinet-tube-heading { gap: 2px; }
  .cabinet-tube-heading h2 { font-size: 16px; }
  .cabinet-tube-tray .claw-cabinet-mode { font-size: 12px; }
}


/* The shell uses a translucent lilac rim, a white light at the top, and
   a darker lower edge to give the action sheet the cabinet's gel finish. */
.hall-dialog.jelly-dialog {
  --redeem-ink: #30204a;
  --redeem-muted: #635376;
  --redeem-outline: #7751bd;
  box-sizing: border-box;
  width: min(calc(100% - 28px), 474px);
  max-height: calc(100dvh - 28px);
  padding: clamp(17px, 4.5vw, 28px);
  border: 1px solid #f7eeff;
  border-radius: clamp(21px, 5vw, 32px);
  color: var(--redeem-ink);
  background:
    radial-gradient(ellipse at 0% 0%, #fffaff 2%, transparent 48%),
    radial-gradient(ellipse at 100% 100%, #ddd0fc 0%, transparent 58%),
    linear-gradient(153deg, #f3e7fffa 6%, #faf6fff7 47%, #ebe0fffa);
  box-shadow: 0 0 0 1px #8c6cbc80, 0 24px 62px #16082471,
    inset 0 2px 2px #fff, inset 0 -3px 10px #9f7fd34d;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: #b99add transparent;
}
.hall-dialog.jelly-dialog::backdrop {
  background: radial-gradient(ellipse at 52% 36%, #39245558, #1c112b9c);
  backdrop-filter: blur(3px);
}
.hall-dialog.jelly-dialog[open] { animation: jelly-redeem-enter 470ms cubic-bezier(.19, .66, .34, 1) both; }

/* A small molded ticket identifies the dialog using shape and depth,
   with the close button sitting separately along the illuminated rim. */
.hall-dialog.jelly-dialog .jelly-dialog-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 46px 16px 0;
}
.hall-dialog.jelly-dialog .jelly-dialog-header h2 {
  margin: 0;
  color: var(--redeem-ink);
  font-size: clamp(21px, 5vw, 27px);
  font-weight: 850;
  line-height: 1.15;
}
.jelly-dialog-emblem {
  position: relative;
  flex: 0 0 44px;
  height: 44px;
  border: 1px solid #c1a3f0;
  border-radius: 15px;
  background:
    radial-gradient(ellipse at 28% 10%, #fff 0%, transparent 48%),
    linear-gradient(154deg, #faf0ff 8%, #d6bcf8 58%, #b88eed 100%);
  box-shadow: 0 3px 7px #633d9940, inset 0 1px 0 #fffe, inset 0 -2px 3px #6f3da42b;
}
.jelly-dialog-emblem--ticket::before {
  position: absolute;
  inset: 12px 8px;
  border: 1px solid #8961ca;
  border-radius: 4px;
  background:
    radial-gradient(circle at 0 50%, #d7bcf6 0 3px, transparent 3.5px),
    radial-gradient(circle at 100% 50%, #c8a4ef 0 3px, transparent 3.5px),
    linear-gradient(#faf3ff, #dfc9ff);
  box-shadow: 0 1px 2px #7e54b244;
  transform: rotate(-13deg);
  content: "";
}
.jelly-dialog-emblem--ticket::after {
  position: absolute;
  inset: 14px 16px 14px auto;
  border-left: 1px dashed #875bc7;
  transform: rotate(-13deg);
  content: "";
}
.hall-dialog.jelly-dialog .dialog-close {
  inset: 14px 14px auto auto;
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  padding: 0;
  border: 1px solid #cfb8eb;
  border-radius: 50%;
  color: #4e367a;
  background: linear-gradient(180deg, #fffeff, #eee2fc 62%, #e3cef8);
  box-shadow: 0 2px 5px #6f4a9e26, inset 0 1px 0 #fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}
.hall-dialog.jelly-dialog button:focus-visible {
  outline: 2px solid var(--redeem-outline);
  outline-offset: 3px;
}

/* The top message carries the demo code, then becomes a mint confirmation
   strip for the verified prize. Invalid input is announced by its own field. */
.hall-dialog.jelly-dialog .jelly-dialog-notice {
  margin: 0 0 15px;
  padding: 9px 12px;
  border: 1px solid #ded0f1;
  border-radius: 12px;
  background: linear-gradient(160deg, #fffaffcc, #f1e6fc);
  color: #534072;
  box-shadow: inset 0 1px 0 #fff;
  font-size: .85rem;
  line-height: 1.45;
  overflow-wrap: anywhere;
}
.hall-dialog.jelly-dialog .jelly-dialog-notice:empty { display: none; }
#redeem-demo[data-phase="shipping"] .jelly-dialog-notice {
  position: relative;
  padding-inline-start: 34px;
  border-color: #addbc6;
  background: linear-gradient(154deg, #f6fff8, #d9f5e6);
  color: #225b45;
}
#redeem-demo[data-phase="shipping"] .jelly-dialog-notice::before {
  position: absolute;
  inset: 12px auto auto 13px;
  width: 11px;
  height: 6px;
  border: solid #2b7957;
  border-width: 0 0 2px 2px;
  transform: rotate(-45deg);
  content: "";
}
#redeem-demo .jelly-redeem-form {
  grid-template-columns: minmax(0, 1fr);
  justify-items: stretch;
  gap: 11px;
}
#redeem-demo .jelly-redeem-form label {
  box-sizing: border-box;
  min-width: 0;
  gap: 5px;
  font-size: .87rem;
  font-weight: 740;
}
#redeem-demo .jelly-redeem-form :is(input, textarea) {
  box-sizing: border-box;
  min-height: 43px;
  padding: 9px 12px;
  border: 1px solid #c8b5e6;
  border-radius: 12px;
  background: linear-gradient(180deg, #f6f0fe, #fffdff 42%);
  box-shadow: inset 0 2px 4px #694d9921, 0 1px 0 #fff;
  color: var(--redeem-ink);
  font: inherit;
  font-size: 16px;
  font-weight: 500;
}
#redeem-demo .jelly-redeem-form textarea { min-height: 65px; resize: vertical; }
#redeem-demo .jelly-redeem-form :is(input, textarea):focus {
  outline: 2px solid var(--redeem-outline);
  outline-offset: 2px;
  background: #fffaff;
}
#redeem-demo .jelly-redeem-form input[aria-invalid="true"] { border-color: #af4f74; }
#redeem-demo .jelly-redeem-error {
  margin: -3px 0 0;
  padding-inline: 2px;
  color: #84264e;
  font-size: .81rem;
  font-weight: 720;
  line-height: 1.5;
}
#redeem-demo .jelly-redeem-field-note {
  margin: 0 -1px;
  color: var(--redeem-muted);
  font-size: .8rem;
}
.hall-dialog.jelly-dialog .jelly-primary {
  justify-content: center;
  width: 100%;
  min-height: 45px;
  margin-top: 3px;
  padding: 8px 12px;
  border: 1px solid #6941ad;
  border-radius: 14px;
  background:
    radial-gradient(ellipse at 50% -55%, #fff5ff80, transparent 75%),
    linear-gradient(180deg, #956bd1, #713eaf 62%, #5e3298);
  box-shadow: inset 0 1px 1px #e3ceffb5, inset 0 -3px 1px #411d7980, 0 3px 7px #7646b14d;
  color: #fff;
  font-size: .92rem;
  font-weight: 820;
  text-shadow: 0 1px 2px #49236e84;
  cursor: pointer;
  transition: filter 130ms, transform 150ms, box-shadow 150ms;
}
.hall-dialog.jelly-dialog .jelly-primary:hover { filter: brightness(1.07); }
.hall-dialog.jelly-dialog .jelly-primary:active {
  transform: translateY(2px) scale(.99, .975);
  box-shadow: inset 0 1px 1px #e3ceff9c, inset 0 -1px 1px #411d7980, 0 1px 4px #7646b145;
}
@media (min-width: 550px) {
  #redeem-demo .jelly-redeem-shipping { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #redeem-demo .jelly-redeem-shipping :is(.jelly-redeem-field-note, .jelly-redeem-address, button) {
    grid-column: 1 / -1;
  }
}

/* One green bubble and a restrained halo make completion easy to scan.
   The check is decorative and the real heading receives keyboard focus. */
#redeem-demo .jelly-redeem-success { padding: 1px 0 9px; text-align: center; }
.jelly-redeem-orbit {
  display: grid;
  width: 104px;
  height: 85px;
  margin: 0 auto 9px;
  place-items: center;
  background: radial-gradient(ellipse, #c5f1de 2%, #d7f9ed70 49%, transparent 68%);
}
.jelly-redeem-check {
  position: relative;
  width: 64px;
  height: 64px;
  border: 1px solid #83c5ae;
  border-radius: 50%;
  background:
    radial-gradient(ellipse at 35% 17%, #fff 0%, #eafff4 19%, transparent 42%),
    linear-gradient(155deg, #e1fff3, #9fe8cb 55%, #68c5a4 91%);
  box-shadow: inset 0 2px 1px #fff, inset 0 -5px 9px #329a7941, 0 6px 13px #50a78a56;
}
.jelly-redeem-check::after {
  position: absolute;
  top: 20px;
  left: 17px;
  width: 27px;
  height: 15px;
  border: solid #256d54;
  border-width: 0 0 4px 4px;
  border-radius: 2px;
  transform: rotate(-45deg);
  content: "";
}
#redeem-demo .jelly-redeem-success-title {
  margin: 0;
  color: var(--redeem-ink);
  font-size: 23px;
  font-weight: 830;
  line-height: 1.2;
  outline: none;
}
#redeem-demo .jelly-redeem-success p { margin: 8px 0 0; color: var(--redeem-muted); }
#redeem-demo[data-phase="shipping"] .jelly-redeem-shipping { animation: jelly-redeem-arrive 230ms ease-out both; }
#redeem-demo[data-phase="done"] .jelly-redeem-check { animation: jelly-redeem-pop 470ms cubic-bezier(.19, .66, .34, 1) both; }
@keyframes jelly-redeem-enter {
  0% { transform: translateY(12px) scale(.96, .925); opacity: 0; }
  60% { transform: translateY(-2px) scale(1.013, 1.017); opacity: 1; }
  82% { transform: translateY(0) scale(.998, .996); }
  100% { transform: none; }
}
@keyframes jelly-redeem-arrive {
  from { opacity: .45; transform: translateY(3px); }
  to { opacity: 1; transform: none; }
}
@keyframes jelly-redeem-pop {
  0% { transform: scale(.44, .37); opacity: 0; }
  63% { transform: scale(1.12, 1.08); opacity: 1; }
  83% { transform: scale(.97, .96); }
  100% { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .hall-dialog.jelly-dialog[open],
  #redeem-demo[data-phase="shipping"] .jelly-redeem-shipping,
  #redeem-demo[data-phase="done"] .jelly-redeem-check {
    animation: none;
  }
  .hall-dialog.jelly-dialog .jelly-primary { transition: none; }
  .hall-dialog.jelly-dialog .jelly-primary:active { transform: none; }
}


/* The shared shell handles every dialog, while these details give each
   purpose its own molded icon and keep inbox messages readable as a list. */
.hall-dialog.jelly-dialog .jelly-dialog-content {
  display: block;
  justify-items: stretch;
}
.jelly-dialog-emblem--lock::before,
.jelly-dialog-emblem--lock::after,
.jelly-dialog-emblem--mail::before,
.jelly-dialog-emblem--mail::after {
  position: absolute;
  content: "";
}
.jelly-dialog-emblem--lock::before {
  inset: 9px 14px auto;
  height: 15px;
  border: 2px solid #8f65c3;
  border-radius: 8px 8px 3px 3px;
  box-shadow: inset 0 1px 0 #fff9, 0 1px 0 #e3ceff;
}
.jelly-dialog-emblem--lock::after {
  inset: 18px 11px 9px;
  border: 1px solid #8f65c3;
  border-radius: 5px;
  background:
    radial-gradient(circle at 50% 48%, #8860ba 0 2px, transparent 2.5px),
    linear-gradient(#fcf6ff, #dfc5fa);
  box-shadow: inset 0 1px 0 #fff, 0 1px 2px #8358b343;
}
.jelly-dialog-emblem--mail::before {
  inset: 12px 8px 11px;
  border: 1px solid #8f65c3;
  border-radius: 4px;
  background: linear-gradient(#fff9ff, #dec7f8);
  box-shadow: inset 0 1px 0 #fff, 0 1px 2px #8358b351;
}
.jelly-dialog-emblem--mail::after {
  top: 11px;
  left: 14px;
  width: 14px;
  height: 14px;
  border: solid #8f65c3;
  border-width: 0 1px 1px 0;
  border-radius: 0 0 3px 0;
  transform: rotate(45deg);
}
.jelly-dialog .jelly-inbox-messages {
  display: grid;
  gap: 8px;
  margin-bottom: 12px;
}
.jelly-dialog .jelly-inbox-messages p {
  margin: 0;
  padding: 10px 12px;
  border: 1px solid #ded0f1;
  border-radius: 12px;
  background: linear-gradient(160deg, #fffaffcc, #f1e6fc);
  box-shadow: inset 0 1px 0 #fff;
  color: #534072;
  font-size: .85rem;
  line-height: 1.55;
  overflow-wrap: anywhere;
}


/* The cabinet already scales a 380 × 320 scene as a unit. The hangers use
   those same coordinates and sit behind the capsule pile and the claw. */
.jelly-hanging-prizes {
  position: absolute;
  z-index: 2;
  inset: 0;
  pointer-events: none;
  mask-image: linear-gradient(#000, #000), linear-gradient(#000, #000);
  mask-size: 100% 100%, var(--showcase-width) var(--showcase-height);
  mask-position: 0 0, var(--showcase-left) var(--showcase-top);
  mask-repeat: no-repeat;
  mask-composite: exclude;
}
.claw-cabinet-scene[data-showcase-busy] .jelly-hanging-prizes { mask-image: none; }
.claw-cabinet-scene {
  --showcase-top: 57px;
  --showcase-left: 225px;
  --showcase-width: 133px;
  --showcase-height: 84px;
}
@container hall (max-width: 700px) {
  .claw-cabinet-scene {
    --showcase-top: 50px;
    --showcase-left: 208px;
    --showcase-width: 154px;
    --showcase-height: 89px;
  }
}
.jelly-hanging-prize {
  position: absolute;
  top: var(--hanger-top);
  left: var(--hanger-x);
  width: var(--hanger-width);
  transform: translateX(-50%);
}
/* The little roof socket stays fixed. From the pivot down, the cord,
   glass clasp and picture all share one transform and cannot separate. */
.jelly-hanging-prize::before {
  position: absolute;
  z-index: 1;
  top: -4px;
  left: 50%;
  width: 12px;
  height: 8px;
  border: 1px solid #8270a3;
  border-radius: 4px 4px 6px 6px;
  background: radial-gradient(circle at 50% 62%, #55496f 1px, transparent 1.6px),
    linear-gradient(#fff6ea, #d8cbe9 47%, #947fb0 76%, #cdb2eb);
  box-shadow: inset 0 1px #fff9, 0 1px 2px #30225166;
  transform: translateX(-50%);
  content: "";
}
.jelly-hanging-pendulum {
  position: relative;
  height: calc(var(--hanger-length) + var(--hanger-art-height) + 4px);
  transform-origin: 50% 0;
  animation: jelly-showcase-hanging-sway var(--hanger-period) ease-in-out var(--hanger-delay) infinite;
}
.jelly-hanging-cord {
  position: absolute;
  inset: 0 auto auto 50%;
  width: 3.8px;
  height: calc(var(--hanger-length) + 2px);
  border-radius: 4px;
  background:
    linear-gradient(90deg, #59468475 0%, transparent 30%, #fff5 50%, transparent 68%, #4a3b736e 100%),
    repeating-linear-gradient(143deg, #fff1ff 0 1px, #e0b9fa 1px 2.2px, #bb94db 2.2px 3.1px, #e8d5f7 3.1px 4.4px);
  box-shadow: .7px 0 1px #47306c58, -.35px 0 #77629938;
  transform: translateX(-50%);
}
.jelly-hanging-clasp {
  position: absolute;
  z-index: 1;
  top: calc(var(--hanger-length) - 2px);
  left: 50%;
  width: 6px;
  height: 8px;
  border: 1px solid #a58ab9;
  border-radius: 4px 4px 5px 5px;
  background:
    linear-gradient(90deg, #bca4dc75, #fff6ff94 33%, #f1e8ff4f 56%, #967ab365),
    linear-gradient(#fef5fbc5, #ccb8e477);
  box-shadow: inset 0 1px #fff, 0 1px 2px #5c447752;
  transform: translateX(-50%);
}

/* This area provides coordinates only. The visible art hangs directly
   below the clasp; no panel is painted behind it. */
.jelly-hanging-media {
  position: absolute;
  inset: calc(var(--hanger-length) + 4px) 0 auto;
  display: grid;
  height: var(--hanger-art-height);
  place-items: start center;
}
.jelly-hanging-media img {
  position: absolute;
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: contain;
  object-position: center top;
  filter: drop-shadow(0 3px 2px #30205152);
}
.jelly-hanging-fallback {
  display: grid;
  width: 82%;
  height: 75%;
  margin-top: 5px;
  place-items: center;
  border: 1px solid #f0dbff;
  border-radius: 14px;
  background:
    radial-gradient(ellipse at 32% 16%, #fffb, transparent 54%),
    linear-gradient(145deg, #f1d6ff, #b593e5 82%);
  color: #4f357d;
  font-size: 14px;
  font-weight: 750;
  box-shadow: inset 0 1px #fff, 0 3px 5px #42296545;
}
@keyframes jelly-showcase-hanging-sway {
  0%, 100% { transform: rotate(-2deg); }
  50% { transform: rotate(2deg); }
}
.claw-cabinet-scene:is([data-showcase-busy], [data-showcase-scrubbed]) .jelly-hanging-pendulum,
.claw-cabinet-scene[data-showcase-scrubbed] .jelly-showcase::before { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) {
  .jelly-hanging-pendulum { animation: none; }
}

.cabinet-tube-art { --cabinet-tube-light: url("cabinet-art/tube-light.webp"); }
