#prize, #game[data-scene="observatory"] #prize {
  border: 0; padding: 0; box-shadow: none;
  background: url(assets/relicario.webp) center/100% 100% no-repeat;
  filter: drop-shadow(0 5px 5px #24122699);
}
#prize::before {
  content: ""; position: absolute; inset: 20% 7.5% 13%; border-radius: 9% / 15%;
  background: radial-gradient(ellipse at 50% 5%,#235052,#10333c 69%,#172638);
  opacity: var(--astral); pointer-events: none;
}
#prize .prize-face {
  inset: 21% 10.5% 13.5%; display: flex; justify-content: center; gap: 4%;
  container-type: size; overflow: hidden;
}
.prize-head { flex: 0 0 auto; display: grid; justify-items: center; align-content: center; gap: .08em }
#prize .prize-head small {
  display: flex; align-items: center; gap: .42em; letter-spacing: .1em; color: #f8d899;
  font: 800 clamp(8px,min(5.3cqw,10cqh),17px)/1.15 var(--display);
}
.prize-head small::before, .prize-head small::after {
  content: ""; width: .8em; height: 1px; background: #d9b56d;
}
#prize #win {
  display: inline-block; font: 900 min(24cqw,36cqh,calc(153cqw / var(--digits,4)))/.96 var(--display);
  color: #ffebad; text-shadow: 0 1px #fff2bf,0 2px #a76e32,0 3px #805033,0 4px 4px #281124;
  font-variant-numeric: tabular-nums;
}
#prize #record { max-height: 48%; padding: 0 2%; scrollbar-width: thin; scrollbar-color: #ac8755 transparent }
.ledger-row {
  display: grid; grid-template-columns: 1.5em minmax(0,1fr) auto; align-items: center; column-gap: .38em;
  text-align: left; border-top: 1px solid #dab6764d; color: #fff2d4;
  font: 700 clamp(10px,min(5.8cqw,11.2cqh),17px)/1.22 var(--ui); padding: .10em 0;
}
.ledger-row span:not(.sr) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap }
.ledger-row b { color: #ffdc91; font-variant-numeric: tabular-nums }
.ledger-row i { display: grid; place-items: center; width: 1.48em; height: 1.48em; font-style: normal }
.ledger-row.relic i { background: url(assets/relics.webp) 0 0/300% 300% no-repeat }
.ledger-row i[data-mark]::before {
  content: attr(data-mark); display: grid; place-items: center; border: 1px solid #bd8f52;
  border-radius: 50%; width: 1.26em; height: 1.26em; color: #ffe5a5; line-height: 1;
  background: radial-gradient(at 35% 25%,#825184,#442747);
}
.ledger-row.factor i::before,.ledger-row.bonus-summary i::before { background: linear-gradient(#387270,#274049) }
#prize-details {
  position: absolute; top: 20.7%; right: 8.8%; width: clamp(20px,1.8vw,32px); aspect-ratio: 1;
  display: grid; place-items: center; border-radius: 50%; padding: 0; color: #f9dc9e;
  border: 1px solid #c49c66; background: #392534; box-shadow: inset 0 0 0 2px #594247;
}
#prize-details i { width: 48%; height: 37%; border-block: 1.6px solid currentColor; position: relative }
#prize-details i::after { content: ""; position: absolute; top: 45%; left: 0; right: 0; height: 1.6px; background: currentColor }
#prize-details:disabled { visibility: hidden }
#prize-details:hover:enabled { color: #fff; background-color: #714959 }
#receipt {
  width: min(405px,92vw); max-height: min(80svh,660px); padding: 20px clamp(18px,3vw,30px);
  background: radial-gradient(ellipse at top,#583148,#2c182d 75%);
}
#receipt h2 { font-family: var(--display); font-weight: 800; text-transform: uppercase; letter-spacing: .035em }
.receipt-total { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; color: #ffe3aa }
.receipt-total b { font: 800 1.9em/1 var(--display); font-variant-numeric: tabular-nums }
#receipt-list { max-height: 45svh; overflow-y: auto; padding-right: 5px; scrollbar-width: thin }
#receipt-list h3 { color: #d7b88c; margin: 1.2em 0 .3em; font: 800 .78em/1 var(--ui); text-transform: uppercase; letter-spacing: .055em }
#receipt-list .ledger-row { font: 650 .93em/1.35 var(--ui); padding: .2em 0 }
#opening { position: fixed; inset: 0; width: 100%; max-width: none; height: 100%; height: 100dvh; max-height: none;
  padding: 0; margin: 0; border: 0; border-radius: 0; overflow: hidden;
  background: linear-gradient(#120d21ce,#160e23e6),url(assets/raccoon_background.jpg) center/cover; }
#opening::backdrop { background: #171023 }
#opening-film { display: block; width: 100%; height: 100%; object-fit: contain }
#enter-game { position: absolute; left: 50%; transform: translateX(-50%); bottom: max(5%,env(safe-area-inset-bottom));
  width: auto; min-height: 42px; padding: .55em 1.5em; border-radius: 2em; border: 1px solid #dbb677;
  background: linear-gradient(#482e41ee,#281a2be8); color: #ffeaca; text-transform: uppercase;
  letter-spacing: .08em; font: 800 clamp(14px,1.3vw,22px)/1 var(--display); box-shadow: 0 3px 9px #1f1327; }
#enter-game span { font-size: 1.2em; vertical-align: -.04em; margin-left: .3em }
#watch-intro { margin-top: .3em }
@media(max-aspect-ratio:1/1) {
  #prize { width: 29%; left: .7%; top: 50%; bottom: auto; transform: translateY(-50%); height: auto; aspect-ratio: 1.36 }
  .logo { left: 29%; width: 43% }
  #prize #record { display: none }
  #prize .prize-head small { font-size: clamp(7px,8cqw,12px); letter-spacing: .02em }
  .prize-head small::before,.prize-head small::after { width: .35em }
  #prize #win { font-size: min(31cqw,49cqh,calc(150cqw / var(--digits,4))) }
  #prize-details { inset: 0; width: 100%; height: 100%; background: none; border: 0; box-shadow: none }
  #prize-details:hover:enabled { background: none }
  #prize-details i { position: absolute; right: 12%; bottom: 17%; width: 8%; height: 6%; opacity: .85 }
  #enter-game { bottom: max(16%,env(safe-area-inset-bottom)) }
}
