/* Copyright 2026 massivehadron.com ltd. */

.sp-membership-label {
  display: grid;
  place-content: center;
  padding: 0 20px;
  background: #861c29;
  color: white;
  font-size: 24px;
  text-align: center;
  pointer-events: none;
}

.sp-membership-label[hidden] { display: none; }

@font-face {
  font-family: "DIN Condensed Bold";
  src: url("./fonts/DINCondensedBold.ttf") format("truetype");
  font-display: swap;
}
@font-face {
  font-family: "Futura Condensed Medium";
  src: url("./fonts/FuturaCondensedMedium.ttf") format("truetype");
  font-display: swap;
}

.app-view.scratch-pro-app {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: #121217;
}
.sp-launch {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  text-align: center;
}

.sp-stage {
  --sp-scale: 0;
  position: absolute;
  left: 50%;
  top: 50%;
  width: 1300px;
  height: 975px;
  overflow: hidden;
  transform: translate(-50%, -50%) scale(var(--sp-scale));
  background: #17171b;
  color: #fff;
  font: 28px Arial, sans-serif;
  user-select: none;
  -webkit-user-select: none;
}
.sp-stage ::selection { background: transparent; }
.sp-collect-ready { animation: sp-collect-blink 2s steps(1, end) infinite; }
@keyframes sp-collect-blink {
  0%, 89.9% { opacity: 1; }
  90%, 100% { opacity: 0; }
}

.sp-stage button {
  border: 0;
  border-radius: 0;
  padding: 0;
  color: inherit;
  font-family: inherit;
  cursor: pointer;
  touch-action: manipulation;
}
.sp-stage button:disabled { cursor: default; }
.sp-stage button:focus-visible, .sp-gallery:focus-visible { outline: 4px solid #fc0; outline-offset: -4px; }
.sp-stage button:not(:disabled):not(.sp-ticket):not(.sp-card-preview):active { filter: brightness(.83); }
.sp-art-button { background-color: transparent; }
.sp-wallpaper { transform: rotate(-20deg); background-size: 40.625px 40.625px; }
.sp-header { background: rgb(0 0 0 / .41); pointer-events: none; }
.sp-sidebar { background: rgb(0 0 0 / .67); }
.sp-decor, .sp-price, .sp-lock { pointer-events: none; }
.sp-label { display: grid; place-items: center; text-align: center; }
.sp-free-time { font-size: 28px; font-weight: bold; white-space: pre; }
.sp-level, .sp-stage .sp-balance { font-size: 61px; color: #fc0; }
.sp-stage .sp-balance { background: transparent; text-align: left; }
.sp-progress { border-radius: 50%; background: conic-gradient(#fc0 var(--sp-progress, 0deg), transparent 0); }
.sp-art-button:disabled { opacity: .3; }
.sp-wait, .sp-status { font-size: 40px; text-align: center; }
.sp-status { pointer-events: none; }
.sp-status button { width: 280px; height: 60px; pointer-events: auto; }
.sp-status p { margin: 0 0 18px; }
.sp-gallery {
  overflow: auto hidden;
  scrollbar-width: none;
  scroll-snap-type: x proximity;
  touch-action: pan-x;
}
.sp-gallery::-webkit-scrollbar { display: none; }
.sp-card-strip {
  display: flex;
  gap: 182px;
  width: max-content;
  padding: 237px 229px 0 197px;
}
.sp-stage .sp-card-preview {
  position: relative;
  flex: 0 0 600px;
  height: 348px;
  background-color: #29292e;
  scroll-snap-align: center;
  touch-action: pan-x;
}
.sp-card-face, .sp-ticket canvas, .sp-loss img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.sp-price {
  position: absolute;
  top: 0;
  right: 0;
  display: grid;
  place-items: center;
  height: 29px;
  border-radius: 0 0 0 8px;
  background: #fff;
  color: #000;
  font: bold 24px Arial, sans-serif;
}
.sp-price-large { height: 63px; font-size: 50px; }
.sp-lock { position: absolute; inset: 0; background: rgb(0 0 0 / .66); }
.sp-padlock { transform: rotate(-13deg); }
.sp-lock-level { font-weight: bold; font-size: 30px; }
.sp-stage button.sp-ticket {
  appearance: none; -webkit-tap-highlight-color: transparent;
  touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none;
  isolation: isolate; background: transparent;
}
.sp-stage button.sp-ticket:hover:not(:disabled) { background: transparent; }
.sp-scratch-hint {
  position: absolute;
  object-fit: contain;
  pointer-events: none;
  opacity: 0;
  animation: sp-hint 10s 10s infinite;
}
.sp-scratched .sp-scratch-hint { display: none; }
.sp-loss { text-align: center; font-size: 65px; font-weight: bold; pointer-events: none; animation: sp-fade .25s ease-out; }
.sp-shade { z-index: 1; background: rgb(0 0 0 / .804); }
.sp-winner-panel { animation: sp-fade .25s linear; }
.sp-winner-fallback { background: #ffd61d; border: 28px solid #ff3000; border-radius: 24%; }
.sp-winner-text { color: #f10; font-size: 122px; font-weight: bold; text-shadow: 0 5px #23190a; }
.sp-winner-amount { font-size: 142px; font-weight: bold; text-shadow: 0 5px #23190a; }
.sp-winner-panel .sp-win-gamble { font-size: 62px; font-weight: bold; }
.sp-win-collect { animation: sp-fade .2s .45s both; }
.sp-winner-fallback .sp-win-gamble { background-color: #d60800; }
.sp-level-fallback { color: #fc0; font-size: 104px; font-weight: bold; text-shadow: 0 6px #150c00; }
.sp-stage button.sp-level-share { background: #3c61b5; font-size: 31px; }
.sp-level-share img { display: block; width: 100%; height: 100%; pointer-events: none; }
.sp-stage button.sp-level-continue { background: transparent; font-size: 27px; font-weight: bold; }
.sp-stage button.sp-level-continue:hover { text-decoration: underline; }
.sp-shop-overlay { z-index: 1; }
.sp-stage button.sp-shop-choice, .sp-stage button.sp-shop-choice:hover:not(:disabled) { background: transparent; }
.sp-stage button.sp-shop-choice:active { background: rgb(0 0 0 / .12); }
.sp-popup { background: #26262e; }
.sp-popup-title { font-size: 46px; font-weight: bold; color: #fc0; }
.sp-popup-body { font-size: 29px; font-weight: bold; padding: 0 12px; }
.sp-options-overlay { z-index: 1; }
.sp-options-stem { background: linear-gradient(#242324 0 92px, #333 92px); }
.sp-options-panel { background: #333; }
.sp-stage button.sp-options-choice { background-color: #009aca; }
.sp-stage button.sp-options-choice-2 { background-color: #359f00; }
.sp-stage button.sp-options-choice-3 { background-color: #fd3400; }
.sp-options-label, .sp-promo-label, .sb-promo-label {
  display: flex;
  align-items: center;
  color: white;
  font-family: "Abadi Condensed Light", "Arial Narrow", sans-serif;
  pointer-events: none;
}
.sp-options-label { font-size: 49px; }
.sp-promo-label { font-size: 67px; }

.scratch-promo {
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  padding: 0 12px;
  border: 0;
  border-radius: 3px;
  background: white;
  color: #333;
  font: 83px Arial, sans-serif;
}
.scratch-promo::placeholder { color: #333; opacity: 1; }
.scratch-promo-classic { background: #394348; color: white; font-size: 96px; }
.scratch-promo-classic::placeholder { color: #a4abaf; }
.scratch-promo-feedback { font-size: 40px; }
.scratch-promo-classic.scratch-promo-feedback { font-size: 60px; }
.scratch-promo-status { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }

.scratch-record { z-index: 5; background: rgb(0 0 0 / .60); }
.scratch-record-panel {
  background: url("./art/scratch/popup-background.png") center / 100% 100% no-repeat;
  color: white;
}
.scratch-record-title, .scratch-record-body {
  display: grid;
  place-items: center;
  text-align: center;
}
.scratch-record-title, .scratch-record button.scratch-record-claim {
  font: 57px "Abadi Condensed Extra Bold", "Arial Narrow", sans-serif;
}
.scratch-record-body { font: 43px "Abadi Condensed Light", "Arial Narrow", sans-serif; }
.scratch-record button.scratch-record-claim { background: transparent; color: #fc0; font-size: 47px; }
.scratch-record-classic .scratch-record-title { font-size: 91px; }
.scratch-record-classic .scratch-record-body { font-size: 69px; }
.scratch-record-classic button.scratch-record-claim { font-size: 74px; }
.sp-stage .sp-command, .sp-stage .sp-option, .sp-stage .sp-spin, .sp-stage .sp-collect { font-size: 31px; font-weight: bold; }
.sp-stage .sp-command { background: #207a38; }
.sp-stage .sp-option { background: #121217; }
.sp-earn-panel { background: url("./art/scratch-pro/earn-coins-panel.png") center / 100% 100% no-repeat; }
.sp-stage .sp-earn-tile { background: #017ccc; }
.sp-earn-title, .sp-earn-badge,
.sp-tap-reward-title, .sp-tap-reward-line, .sp-stage button.sp-tap-claim {
  font-family: "Abadi Condensed Extra Bold", "Arial Narrow", sans-serif;
}
.sp-earn-title, .sp-earn-badge {
  display: grid;
  place-items: center;
  line-height: 1;
  white-space: nowrap;
  pointer-events: none;
}
.sp-earn-title { font-size: 138px; transform: scaleX(.51); }
.sp-earn-badge { background: #0061a5; font-size: 40px; }
.sp-earn-badge > span { transform: scaleX(.73); }
.sp-tap-fill, .sp-tap-peak { position: absolute; left: 0; right: 0; bottom: 0; background: #3b7acf; pointer-events: none; }
.sp-tap-peak { height: 2%; background: #80bfff; }
.sp-tap-reward { background: rgb(0 0 0 / .78); }
.sp-tap-reward-title { font-size: 75px; }
.sp-tap-reward-line { font-size: 91px; }
.sp-stage button.sp-tap-claim { background: transparent; color: #fc0; font-size: 73px; }
.sp-bonus-panel, .sp-bonus-amount, .sp-tab { background: transparent; }
.sp-tab { color: #dfff00; font-size: 33px; font-weight: bold; }
.sp-bonus-title, .sp-bonus-amount { display: flex; align-items: center; font-size: 48px; text-shadow: 2px 3px #161616; }
.sp-bonus-title.sp-gamble-loss {
  font-family: "Futura Condensed Medium", "Arial Narrow", sans-serif;
  font-size: 57px;
}
.sp-bonus-amount { justify-content: flex-end; padding-right: 14px; font-size: 61px; }
.sp-stage button.sp-collect,
.sp-stage button.sp-spin,
.sp-stage button.sp-collect:hover,
.sp-stage button.sp-spin:hover,
.sp-stage button.sp-tab,
.sp-stage button.sp-tab:hover {
  background: transparent;
  border: 0;
  border-radius: 0;
}
.sp-stage button.sp-collect,
.sp-stage button.sp-spin,
.sp-stage button.sp-collect:hover,
.sp-stage button.sp-spin:hover {
  color: #fff;
  font-weight: 400;
}
.sp-collect-label, .sp-spin-label {
  position: absolute;
  left: 6%;
  top: 0;
  width: 88%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
  line-height: 1;
  pointer-events: none;
}
.sp-collect-label {
  font-family: "Futura Condensed Medium", "Arial Narrow", sans-serif;
  font-size: 42px;
  transform: translateY(0.095em);
}
.sp-gamble-close-icon {
  display: grid;
  place-items: center;
  z-index: 1;
  font-size: 82px;
  line-height: 1;
  pointer-events: none;
}
.sp-slot-board { background: #090909; }
.sp-reel-window { overflow: hidden; background: transparent; }
.sp-reel-symbol, .sp-playing-card, .sp-bonus-tag { display: grid; place-items: center; font-size: 35px; font-weight: bold; }
.sp-reel-symbol { color: #121212; }
.sp-reel-strip { background-size: 100% 800%; background-repeat: repeat-y; animation: sp-spin .42s linear infinite; }
.sp-spin-label {
  font-family: "DIN Condensed Bold", "Arial Narrow", sans-serif;
  font-size: 76px;
}
.sp-stage .sp-spin:disabled, .sp-stage .sp-command:disabled { opacity: .55; }
.sp-link-cell { display: grid; place-items: center; background: #15151a; border-radius: 7px; }
.sp-link-cell.sp-lit { background: #fc0; }
@keyframes sp-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes sp-hint {
  0%, 30%, 100% { opacity: 0; transform: translateX(0); }
  3.75%, 18.75% { opacity: 1; transform: translateX(var(--sp-scratch-travel)); }
  11.25%, 26.25% { opacity: 1; transform: translateX(calc(-1 * var(--sp-scratch-travel))); }
}
@keyframes sp-spin { from { background-position: 0 0; } to { background-position: 0 -114.2857%; } }
