.lockbox-page {
  background: radial-gradient(ellipse at 50% 20%, #382347, #110d19 65%) fixed;
  color: #f7ecff;
  font-family: system-ui, sans-serif;
}
.lockbox-nav, .lockbox {
  width: min(100% - 2rem, 48rem);
  margin-inline: auto;
}
.lockbox-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-block: 1.25rem;
}
.lockbox-nav a { color: #f1d39d; }
.machine {
  padding: clamp(.85rem, 3.5vw, 2.25rem);
  border: clamp(3px, 1vw, 8px) solid #b18750;
  border-radius: 2rem 2rem 1.35rem 1.35rem;
  background: linear-gradient(155deg, #624266 0%, #2e1a3b 32%, #150f20 80%);
  box-shadow: inset 0 0 0 2px #f4d395, inset 0 0 2rem #09070c, 0 1.2rem 3rem #080610;
  text-align: center;
}
.marquee {
  padding: .95rem .4rem 1.2rem;
  border: 4px dotted #edbf76;
  border-radius: 1.25rem 1.25rem .7rem .7rem;
  background: radial-gradient(ellipse, #6d396a, #2b1936 77%);
  box-shadow: inset 0 0 1.2rem #150e1c, 0 0 1.3rem #d6889e40;
}
.machine h1 {
  margin: 0;
  font-family: Georgia, serif;
  font-size: clamp(2.1rem, 9vw, 5rem);
  line-height: 1;
  color: #ffe5a8;
  text-shadow: 0 2px #7f482b, 0 0 .55em #f5a84088;
}
.machine-label { margin: 0 0 .4rem; color: #f9ddaa; font-weight: 700; }
.balance {
  width: fit-content;
  padding: .2rem 1rem;
  margin: 1rem auto;
  border: 1px solid #a78554;
  border-radius: .4rem;
  background: #120d16;
  color: #ffe5a8;
  font-variant-numeric: tabular-nums;
}
.reel-bay {
  max-width: 34rem;
  padding: clamp(.4rem, 2vw, .85rem);
  margin: auto;
  border: 2px solid #ddb981;
  border-radius: .9rem;
  background: linear-gradient(#9a6843, #ffe0a3 37%, #aa7544 58%, #4f2e21);
  box-shadow: 0 .35rem 1rem #100812;
}
.reels {
  --reel-height: clamp(4.5rem, 19vw, 9rem);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(.25rem, 1.5vw, .75rem);
  padding: clamp(.25rem, 1.4vw, .65rem);
  border-radius: .6rem;
  background: #211322;
}
.reel {
  position: relative;
  height: var(--reel-height);
  overflow: hidden;
  border-radius: .35rem;
  background: #f7e3b9;
}
.reel::after {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
  box-shadow: inset 0 .65rem .9rem #4a291467, inset 0 -.7rem .9rem #4a291467;
  background: linear-gradient(#fff8, transparent 31%, transparent 72%, #673c342f);
}
.reel-strip span {
  display: grid;
  place-items: center;
  height: var(--reel-height);
  background: linear-gradient(#d5b27c, #fff8e4 22%, #fff3d8 74%, #c69d68);
  color: #251a18;
  font-size: clamp(2rem, 9vw, 4.6rem);
  line-height: 1;
}
.reels.is-vault { background: #ab743d; box-shadow: 0 0 18px #ffd479; }
#result { margin-block: 1rem; min-height: 1.5em; }
.machine-controls { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; }
.machine-controls button {
  border: 1px solid #b89560;
  border-radius: .65rem;
  padding: .65rem .95rem;
  min-height: 44px;
  background: #f1d39d;
  color: #221626;
  font: inherit;
  font-weight: 750;
  cursor: pointer;
}
.machine-controls button:disabled { opacity: .65; cursor: default; }
.machine-controls button:focus-visible, .lockbox-nav a:focus-visible { outline: 2px solid #fff; outline-offset: 4px; }
#refill-status { margin: .75rem 0 0; color: #e2c9ed; }
.lockbox-details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr));
  gap: 1rem;
  margin-block: 1rem;
}
.lockbox-details > div { padding: 1rem; background: #20182d; border: 1px solid #463652; border-radius: 1rem; }
.lockbox-details h2 { margin: 0 0 .5rem; font-size: 1.25rem; }
#trophies, .payouts { margin: 0; padding: 0; list-style: none; }
#trophies li, .payouts > div { padding-block: .45rem; border-bottom: 1px solid #463652; }
#trophies span { display: block; color: #d3badf; }
#trophies [data-earned] { color: #f1d39d; }
.payouts > div { display: flex; justify-content: space-between; gap: .5rem; }
.payouts dd { margin: 0; }
.lockbox footer { padding: .5rem 0 1.5rem; color: #d3badf; }

.machine-controls #spin { background: linear-gradient(#ffd993, #ca8b42); box-shadow: 0 3px 0 #865433; min-width: 11rem; }
