/* Shared site controls and navigation motion */
.luck-compact.site-luck,
.site-luck {
  position: relative;
  z-index: 16;
  display: inline-flex;
  min-height: 32px;
  flex: 0 0 auto;
  align-items: center;
  gap: 7px;
  overflow: visible;
  padding: 3px 6px 3px 10px;
  border: 1px solid rgba(200,173,120,.3);
  border-radius: 999px;
  background: rgba(25,26,24,.82);
  color: #f0eee6;
  box-shadow: 0 6px 20px rgba(0,0,0,.16);
  backdrop-filter: blur(14px);
}
.site-luck .luck-compact-label { color: #aaa99f; font-size: 10px; white-space: nowrap; }
.site-luck .luck-number { display: inline-block; min-width: 15px; color: #e3c994; font: 400 16px/1 "Iowan Old Style","Baskerville","Palatino Linotype",serif; letter-spacing: -.04em; text-align: center; }
.site-luck .luck-unit { color: #85867d; font-size: 8px; white-space: nowrap; }
.site-luck .luck-status { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.site-luck .luck-button { min-height: 24px; padding: 0 8px; border: 1px solid rgba(200,173,120,.38); border-radius: 999px; background: transparent; color: #e3c994; cursor: pointer; font-size: 9px; white-space: nowrap; transition: background .22s ease,border-color .22s ease,transform .22s ease; }
.site-luck .luck-button:hover:not(:disabled) { transform: translateY(-1px); border-color: #e3c994; background: rgba(200,173,120,.1); }
.site-luck .luck-button:disabled { color: #85867d; cursor: default; }
.site-luck .luck-number.score-pop { animation: site-score-pop .78s cubic-bezier(.18,.82,.22,1) both; }
.site-luck.luck-celebrate { animation: site-luck-wiggle .55s cubic-bezier(.18,.82,.22,1) both; }
.luck-spark { position: absolute; z-index: -1; top: 50%; left: 50%; width: 4px; height: 4px; border-radius: 50%; background: #f1d99e; box-shadow: 0 0 9px rgba(227,201,148,.9); opacity: 0; pointer-events: none; animation: site-luck-spark .82s cubic-bezier(.18,.82,.22,1) var(--spark-delay,0ms) both; }
.site-fireworks { position: fixed; z-index: 40; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.site-transition-layer { position: fixed; z-index: 1000; inset: 0; display: grid; place-items: center; overflow: hidden; background: radial-gradient(ellipse at 50% 55%,rgba(107,91,58,.24),transparent 56%),rgba(12,13,12,.92); opacity: 0; visibility: hidden; pointer-events: none; backdrop-filter: blur(0); transition: opacity .34s ease,visibility 0s linear .38s,backdrop-filter .38s ease; }
.site-transition-layer.is-visible { opacity: 1; visibility: visible; pointer-events: auto; backdrop-filter: blur(10px); transition-delay: 0s; }
.site-transition-orbit { position: relative; display: grid; width: 94px; height: 94px; place-items: center; border: 1px solid rgba(227,201,148,.5); border-radius: 50%; color: #e3c994; font: 18px "Iowan Old Style","Baskerville","Palatino Linotype",serif; letter-spacing: -.07em; transform: scale(.78) rotate(-18deg); opacity: .5; transition: transform .52s cubic-bezier(.18,.82,.22,1),opacity .35s ease; }
.site-transition-orbit::before,.site-transition-orbit::after { position: absolute; inset: 10px -12px; border: 1px solid rgba(227,201,148,.22); border-radius: 50%; content: ""; transform: rotate(54deg) scaleY(.65); }
.site-transition-orbit::after { inset: -10px 7px; transform: rotate(-38deg) scaleY(.55); }
.site-transition-layer.is-visible .site-transition-orbit { transform: scale(1) rotate(0); opacity: 1; }
.site-transition-monogram { display: grid; width: 46px; grid-template-columns: 1fr auto 1fr; align-items: center; font: 18px/1 "Iowan Old Style","Baskerville","Palatino Linotype",serif; letter-spacing: 0; }
.site-transition-monogram .monogram-left { text-align: right; }
.site-transition-monogram .monogram-right { text-align: left; }
.site-transition-monogram .monogram-dot { position: relative; top: -1px; font-size: 12px; line-height: 1; }
.site-transition-caption { position: absolute; top: calc(100% + 19px); width: max-content; color: #c7c2b3; font: 10px/1.4 "Segoe UI","Microsoft YaHei",sans-serif; letter-spacing: .18em; }
html.collection-arrival body.collection-page main { animation: site-collection-arrive .85s cubic-bezier(.18,.82,.22,1) both; }
@keyframes site-score-pop { 0% { transform: translateY(7px) scale(.7) rotate(-12deg); filter: blur(4px); } 58% { transform: translateY(-3px) scale(1.25) rotate(5deg); filter: blur(0); } 78% { transform: translateY(1px) scale(.94); } 100% { transform: translateY(0) scale(1); } }
@keyframes site-luck-wiggle { 0%,100% { transform: translateY(0) rotate(0); } 25% { transform: translateY(-2px) rotate(-2deg); } 55% { transform: translateY(0) rotate(2deg); } 78% { transform: translateY(-1px) rotate(-1deg); } }
@keyframes site-luck-spark { 0% { opacity: 0; transform: translate(-50%,-50%) scale(.25); } 20% { opacity: 1; } 100% { opacity: 0; transform: translate(var(--spark-x),var(--spark-y)) scale(.1); } }
@keyframes site-collection-arrive { from { opacity: .25; transform: translateY(16px) scale(.992); filter: blur(5px); } to { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); } }
@media (max-width:780px) {
  .site-luck .luck-compact-label { font-size: 9px; }
  .site-luck { gap: 5px; padding-left: 7px; }
}
@media (max-width:520px) {
  .site-luck .luck-unit { display: none; }
  .site-luck .luck-number { font-size: 14px; }
  .site-luck .luck-button { min-height: 22px; padding-inline: 6px; }
  .topbar-inner:has(.nav) { height: auto; min-height: 66px; flex-wrap: wrap; row-gap: 7px; padding-block: 8px; }
  .topbar-inner:has(.nav) .brand { order: 1; }
  .topbar-inner:has(.nav) .site-luck { order: 2; margin-left: auto; }
  .topbar-inner:has(.nav) .nav { order: 3; width: 100%; justify-content: space-between; }
  .top .site-luck { margin-left: auto; }
  .top { flex-wrap: wrap; gap: 8px; padding-block: 8px; }
}
@media (max-width:390px) {
  .site-luck .luck-compact-label { font-size: 8px; }
  .site-luck .luck-number { min-width: 13px; }
  .site-luck .luck-button { font-size: 8px; }
}
@media (prefers-reduced-motion:reduce) {
  .site-luck *, .site-luck::before, .site-luck::after, .site-transition-layer, .site-transition-orbit, html.collection-arrival body.collection-page main { animation: none !important; transition-duration: .01ms !important; }
}

/* The collection room uses the full viewport, with the supplied image visible edge to edge. */
body.collection-page .page { width: 100%; margin-inline: 0; }
body.collection-page .topbar-inner { padding-inline: clamp(18px,3.2vw,58px); }
body.collection-page main.page { min-height: calc(100vh - 120px); padding: clamp(38px,4vw,62px) clamp(18px,3.2vw,58px) 80px; border: 0; background: rgba(24,25,25,.32); box-shadow: none; backdrop-filter: blur(2px); }
body.collection-page footer .page { padding-inline: clamp(18px,3.2vw,58px); }
body.home-page::before {
  background:
    linear-gradient(90deg,rgba(17,18,16,.69) 0%,rgba(17,18,16,.48) 48%,rgba(17,18,16,.68) 100%),
    linear-gradient(rgba(17,18,16,.24),rgba(17,18,16,.36)),
    url("../assets/home-background.png") center 54%/cover no-repeat;
  opacity: 1;
}
@media (max-width:620px) {
  body.collection-page main.page { padding: 34px 17px 58px; }
  body.collection-page .topbar-inner { padding-inline: 17px; }
  body.collection-page footer .page { padding-inline: 17px; }
}
