/* Copyright 2026 massivehadron.com ltd. */

@font-face {
  font-family: "Abadi Condensed Light";
  src: url("./fonts/AbadiMT-CondensedLight.ttf") format("truetype");
  font-display: swap;
}
@font-face {
  font-family: "Abadi Condensed Extra Bold";
  src: url("./fonts/AbadiMT-CondensedExtraBold.ttf") format("truetype");
  font-display: swap;
}
@font-face {
  font-family: "Brush Script Std";
  src: url("./fonts/BrushScriptStd.ttf") format("truetype");
  font-display: swap;
}

.app-view.scratch-bling-app {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: #12110f;
}
.sb-launch {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  gap: 16px;
  text-align: center;
  color: #fff;
  font: 28px Arial, sans-serif;
}
.sb-stage {
  --sb-scale: 0;
  position: absolute;
  left: 50%;
  top: 50%;
  width: 2048px;
  height: 1536px;
  overflow: hidden;
  transform: translate(-50%, -50%) scale(var(--sb-scale));
  background: #13110e;
  color: #fff;
  font: bold 44px Arial, sans-serif;
  user-select: none;
  -webkit-user-select: none;
}
.sb-stage ::selection { background: transparent; }
.sb-stage button {
  border: 0;
  border-radius: 0;
  padding: 0;
  min-height: 0;
  color: #fff;
  background: transparent;
  font: inherit;
  cursor: pointer;
  touch-action: manipulation;
}
.sb-stage button:hover:not(:disabled) { background: transparent; }
.sb-stage button:disabled { opacity: 1; cursor: default; }
.sb-stage button:focus-visible { outline: 4px solid #fc0; outline-offset: -4px; }
.sb-stage button.sp-ticket {
  appearance: none;
  -webkit-tap-highlight-color: transparent;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  isolation: isolate;
  background: transparent;
}
.sb-stage button.sp-ticket:hover:not(:disabled) { background: transparent; }
.sb-wallpaper { background-position: center; background-size: 133% 100%; }
.sb-decor, .sb-header, .sb-results { pointer-events: none; }
.sb-header { z-index: 2; }
.sb-results { z-index: 3; }
.sb-celebration,
.sb-stage > .scratch-record,
.sb-stage > .sb-shade { z-index: 6; }
.sb-header button, .sb-results button, .sb-status button { pointer-events: auto; }
.sb-label { display: grid; place-items: center; margin: 0; text-align: center; pointer-events: none; }
.sb-cash, .sb-buy { color: #ffcc00; }
.sb-cash, .sb-buy, .sb-collect, .sb-winbar button {
  font-family: "Abadi Condensed Extra Bold", "Arial Narrow", sans-serif;
  font-weight: 400;
}
.sb-cash { justify-content: end; padding-right: 8px; font-size: 64px; }
.sb-buy { font-size: 62px; }
.sb-nav {
  font-family: "Abadi Condensed Light", "Arial Narrow", sans-serif;
  font-size: 49px;
  font-weight: 400;
}
.sb-timer {
  display: flex;
  flex-flow: row nowrap;
  align-items: center;
  justify-content: center;
  gap: .45em;
  white-space: nowrap;
  font-family: "Abadi Condensed Light", "Arial Narrow", sans-serif;
  font-size: 48px;
  font-weight: 400;
  letter-spacing: 0;
}
.sb-timer b {
  color: #ffcc00;
  font-family: "Abadi Condensed Extra Bold", "Arial Narrow", sans-serif;
  font-weight: 400;
}
.sb-collect { z-index: 1; color: #fff; font-family: "Abadi Condensed Extra Bold", "Arial Narrow", sans-serif; }
.sb-collect-clip { overflow: hidden; pointer-events: none; }
.sb-collect-sash {
  background-size: 100% 100%;
  pointer-events: none;
  animation: sb-sash 2s linear infinite;
}
@keyframes sb-sash {
  0% { left: -96px; }
  33.333% { left: 464px; }
  100% { left: 464px; }
}
.sb-meter { background: #000; }
.sb-progress { background: #ffcc00; }
.sb-price {
  position: absolute;
  display: grid;
  place-items: center;
  background: #fff;
  color: #000;
  font-weight: bold;
  pointer-events: none;
}
.sb-lock { background: rgb(0 0 0 / .68); }
.sb-label.sb-status { pointer-events: none; }
.sb-status { text-align: center; font-size: 62px; }
.sb-stage button.sb-status { width: 600px; height: 100px; margin: 18px auto 0; background: #21333d; }
.sb-shade { background: rgb(0 0 0 / .78); }
.sb-options-overlay { z-index: 4; }
.sb-options-panel {
  border-radius: 24px;
  background: #19181a center / 100% 100% no-repeat;
}
.sb-shop-shade { background: rgb(0 0 0 / .64); }
.sb-message { font-size: 60px; white-space: pre-line; }
.sb-stage button.sb-option {
  padding: 16px 0 0 13px;
  text-align: left;
  font: 98px "Abadi Condensed Extra Bold", "Arial Narrow", sans-serif;
}
.sb-option-divider { background: rgb(255 255 255 / .36); border-radius: 7px; }
.sb-promo-label { font-size: 108px; }
.sb-unlucky {
  margin: 0;
  display: grid;
  place-items: center;
  font-size: 86px;
  font-weight: 900;
  text-align: center;
  text-shadow: 0 4px 0 #161616;
}
.sb-winbar { background: rgb(0 0 0 / .78); }
.sb-winbar button { font-size: 84px; }
.sb-plaque { background-size: 100% 100%; background-repeat: no-repeat; }
.sb-plaque-flashing {
  background-image: url('./art/scratch/winner-lights.png');
  background-size: 200% 100%;
  animation: sb-winner-lights 1s step-end infinite;
}
@keyframes sb-winner-lights {
  from { background-position: left top; }
  50%, to { background-position: right top; }
}
.sb-plaque-amount {
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
  color: #f6bd32;
  font-family: "Brush Script Std", cursive;
  font-size: 140px;
  font-style: normal;
  font-weight: 400;
  line-height: .8;
  white-space: nowrap;
  -webkit-text-stroke: 2px #fff;
  paint-order: stroke fill;
  text-shadow: 6px 6px 0 rgb(0 0 0 / .42);
}
.sb-plaque-caption { background-repeat: no-repeat; }
.sb-reel-window { overflow: hidden; background: #fff; }
.sb-strip {
  background-size: 100% 800%;
  background-repeat: repeat-y;
  animation: sb-spin .333s linear infinite;
}
@keyframes sb-spin { from { background-position: 0 0; } to { background-position: 0 -114.2857%; } }
.sb-arrow:disabled { opacity: .35; }
.sb-celebration-art { background-size: 100% 100%; background-repeat: no-repeat; pointer-events: none; }
.sb-celebration-line, .sb-celebration-control { transform: rotate(-1.8072deg); }
.sb-celebration-line { pointer-events: none; }
.sb-celebration-control:active { filter: brightness(.87); }
