html, body { width: 100%; height: 100%; margin: 0; overflow: hidden; background: #211e2e; }
#GameCanvas:focus { outline: none; }
#GameCanvas:focus-visible:not(.pointer-focus) { outline: 2px solid #ffc800; outline-offset: -2px; }
#preview-label, #heist-chrome {
  top: max(7px, env(safe-area-inset-top));
  left: max(7px, env(safe-area-inset-left));
  padding: 5px 8px;
  background: #221c31ee;
  color: #f9eccc;
  font: 600 11px/1.25 system-ui, sans-serif;
}
#preview-label { position: fixed; z-index: 9; }
#heist-chrome { position: absolute; z-index: 1; }
.house-social-art { position: absolute; pointer-events: none; }
:is(#house-social, #house-copy-ca) {
  --chain-drop: calc(19px + env(safe-area-inset-top));
  position: fixed;
  inset: 0 max(14px, env(safe-area-inset-right)) auto auto;
  z-index: 9;
  display: block;
  width: 44px;
  padding-top: var(--chain-drop);
  color: #fff;
  text-decoration: none;
}
#house-copy-ca {
  right: calc(max(14px, env(safe-area-inset-right)) + 52px);
  width: 108px;
  border: 0;
  background: none;
  padding-inline: 0;
  cursor: pointer;
}
.house-social-chain {
  position: absolute;
  z-index: 1;
  top: 0;
  left: calc(50% - 6px);
  width: 12px;
  height: calc(var(--chain-drop) + 5px);
  background: url('/slot/heist-chain.png') center bottom / 12px auto no-repeat;
  filter: drop-shadow(1px 1px 1px #060b0b);
  pointer-events: none;
}
.house-social-sign {
  position: relative;
  display: grid;
  place-items: center;
  height: 44px;
  font: 900 18px/1 system-ui, sans-serif;
  text-shadow: 0 1px #102326;
  filter: drop-shadow(0 3px 1px #080a0ac2);
}
.house-social-sign::before {
  content: '';
  position: absolute;
  inset: 0;
  border: 0 solid transparent;
  border-image: url('/slot/house-social.png') 36 28 46 28 fill / 9px 7px 11px 7px;
  filter: url('#house-blue-counter');
}
.house-social-sign > span { position: relative; padding-bottom: 3px; }
#house-copy-ca .house-social-chain { left: calc(19% - 6px); }
#house-copy-ca .house-social-chain + .house-social-chain { left: calc(81% - 6px); }
#house-copy-ca .house-social-sign { font-size: 15px; }
:is(#house-social, #house-copy-ca):hover .house-social-sign { filter: brightness(1.13) drop-shadow(0 3px 1px #080a0ac2); }
:is(#house-social, #house-copy-ca):focus-visible { outline: 2px solid #f5dfb5; outline-offset: 2px; }
#house-copy-notice:not(:empty) {
  position: fixed;
  z-index: 9;
  top: calc(74px + env(safe-area-inset-top));
  right: max(14px, env(safe-area-inset-right));
  max-width: min(360px, calc(100% - 36px));
  padding: 8px 12px;
  background: #152c2f;
  color: #fff;
  font: 600 13px/1.4 system-ui, sans-serif;
  overflow-wrap: anywhere;
  user-select: text;
}
@media (max-width: 510px) {
  :is(#house-social, #house-copy-ca) { --chain-drop: calc(13px + env(safe-area-inset-top)); }
  #house-social { right: max(7px, env(safe-area-inset-right)); }
  #house-copy-ca { right: calc(max(7px, env(safe-area-inset-right)) + 50px); }
}
#heist-loading {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #292630;
  transition: opacity 440ms cubic-bezier(.38, 0, .24, 1);
}
#heist-loading.is-leaving { opacity: 0; }
#heist-loading::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, #261e34 0, #08070ceb 32px, #0a080d99 70px, transparent 24%),
    linear-gradient(90deg, #07060ab5, transparent 15%, transparent 85%, #07060ab5),
    linear-gradient(0deg, #121017c2, transparent 15%);
}
#heist-art {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  box-sizing: border-box;
  padding: clamp(76px, 19svh, 164px) 0 clamp(10px, 2svh, 22px);
}
#heist-art svg { display: block; width: 100%; height: 100%; }
#heist-sign {
  --sign-top: max(clamp(34px, 7.2svh, 76px), calc(env(safe-area-inset-top) + 26px));
  position: absolute;
  z-index: 1;
  top: var(--sign-top);
  left: calc(50% + min(.7vw, 1.24svh));
  width: min(34.9%, 62svh);
  transform: translateX(-50%);
  aspect-ratio: 2116 / 472;
}
.heist-chains {
  position: absolute;
  inset: calc(-1 * var(--sign-top)) 0 auto;
  height: calc(var(--sign-top) + 42%);
  overflow: hidden;
  mask-image: linear-gradient(transparent 12px, #0006 30px, black 57px);
}
.heist-chains img {
  position: absolute;
  bottom: 0;
  width: 7.6%;
  height: auto;
  transform: translateX(-50%);
}
.heist-chains img:first-child { left: 15.4%; bottom: 3px; }
.heist-chains img:last-child { left: 86%; }
#heist-wordmark { position: absolute; inset: 0; }
#heist-wordmark svg { display: block; width: 100%; height: 100%; overflow: visible; }
#heist-wordmark #o-rotten-leaf {
  transform-origin: 411px 275px;
  animation: heist-leaf 4.6s ease-in-out infinite;
}
@keyframes heist-leaf {
  0%, 57%, 86%, 100% { transform: rotate(0); }
  64% { transform: rotate(-3deg); }
  70% { transform: rotate(2deg); }
  77% { transform: rotate(-1deg); }
}
@media (max-aspect-ratio: 1/1) {
  #heist-art { width: 145%; left: -22.5%; padding-top: clamp(52px, calc(75vw - 239px), 220px); }
  #heist-art svg { height: auto; max-height: 100%; mask-image: linear-gradient(transparent, black 6%, black 91%, transparent); }
  #heist-sign { --sign-top: max(17svh, 40px); left: 50%; width: min(78%, 440px); transition: opacity 140ms ease-out; }
  #heist-loading.is-leaving #heist-sign { opacity: 0; }
}
#heist-art.is-lit #ember-core {
  transform-box: fill-box;
  transform-origin: center bottom;
  animation: heist-flicker 430ms steps(1) infinite;
}
#heist-art.is-lit #ember-glow { animation: heist-light 620ms ease-in-out infinite alternate; }
#heist-art.is-lit #ember-sparks { animation: heist-sparks 640ms ease-out infinite; }
#heist-art.is-lit #lamp-glass { animation: heist-light 3.9s ease-in-out infinite alternate; }
@keyframes heist-flicker {
  0%, 100% { transform: scale(1, 1); }
  23% { transform: scale(.92, 1.12); }
  51% { transform: scale(1.08, .87); }
  79% { transform: scale(.95, 1.04); }
}
@keyframes heist-light {
  0%, 60% { opacity: 1; }
  72% { opacity: .77; }
  90%, 100% { opacity: .94; }
}
@keyframes heist-sparks {
  0% { transform: translate(-2px, 4px); opacity: 0; }
  24% { opacity: .95; }
  100% { transform: translate(7px, -13px); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  #heist-art.is-lit svg *, #heist-wordmark #o-rotten-leaf { animation: none; }
  #heist-loading, #heist-sign { transition: none; }
}
#heist-progress {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}
#boot-status {
  position: fixed;
  z-index: 1;
  bottom: max(16px, env(safe-area-inset-bottom));
  left: 50%;
  transform: translateX(-50%);
  box-sizing: border-box;
  max-width: calc(100% - 24px);
  width: max-content;
  padding: 8px 12px;
  background: #211e2e;
  color: #f9eccc;
  font: 600 14px/1.3 system-ui, sans-serif;
  text-align: center;
}
#reset-credits { margin-left: 4px; color: inherit; background: #30233c; border: 1px solid #ffd334; cursor: pointer; }
[hidden] { display: none !important; }
