@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700;800;900&display=swap');

:root {
  --ftb-blue-dark: #085A8D;
  --ftb-blue-mid: #0A7DC2;
  --ftb-blue: #0A7DC2;
  --ftb-blue-light: #0A7DC2;
  --ftb-blue-pale: #B8F5FF;
  --ftb-blue-wash: #E8FCFF;
  --ftb-white: #FFFFFF;
  --ftb-gray-50: #F8FAFC;
  --ftb-gray-100: #F0F4F8;
  --ftb-gray-200: #E2E8F0;
  --ftb-gray-300: #CBD5E1;
  --ftb-gray-400: #94A3B8;
  --ftb-gray-500: #64748B;
  --ftb-gray-700: #334155;
  --ftb-gray-900: #0F172A;
  --ftb-panel-bg: #F0F4F8;
  --ftb-panel-header: #0A7DC2;
  --ftb-card-bg: #FFFFFF;
  --ftb-border: rgba(10, 125, 194, 0.15);
  --ftb-red: #EF4444;
  --ftb-green: #10B981;
  --ftb-canvas-bg: #0A1628;
  --ftb-radius: 12px;
  --ftb-radius-sm: 8px;
  --ftb-radius-lg: 18px;
  --ftb-radius-xl: 24px;
  --ftb-panel-w: 320px;
  --ftb-transition: 0.18s ease;
  --ftb-gradient-main: linear-gradient(320deg, #085A8D 22%, #0A7DC2 85%);
  --ftb-gradient-h: linear-gradient(90deg, #085A8D, #0A7DC2);
}

.ftb-section * {
  box-sizing: border-box;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
}

.ftb-section {
  padding: 0;
  background: transparent;
}

#ftb-rulerSection,
.ftb-ruler-section,
#ftb-rulerSection *,
.ftb-ruler-section *,
#ftb-rulerSec,
#ftb-ruler-panel,
#ftb-rulerPanel,
.ftb-ruler-panel,
.ftb-rulerSec {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  min-height: 0 !important;
  max-height: 0 !important;
  overflow: hidden !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
}

@media (min-width: 769px) {
  #ftb-rulerHint {
    bottom: 18px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    max-width: 420px;
    width: auto;
    white-space: nowrap;
    pointer-events: none;
  }

  #ftb-mob-ruler-bar,
  #ftb-mob-coords,
  .ftb-mobile-howto {
    display: none !important;
  }

  .ftb-desktop-topbar .ftb-htpbtn,
  .ftb-mobile-howto .ftb-htpbtn {
    color: #ffffff !important;
    background: linear-gradient(135deg, #0f172a, #1e293b) !important;
    border: 1px solid rgba(255, 255, 255, 0.18) !important;
  }
}

@media (min-width: 769px) {
  .ftb-howto-top {
    display: none !important;
  }

  .ftb-desktop-topbar {
    display: flex !important;
  }
}

@media (max-width: 768px) {
  .ftb-desktop-topbar,
  .ftb-howto-top {
    display: none !important;
  }
}

#ftb-mob-magnifier,
#ftb-overlay canvas {
  backface-visibility: hidden;
  transform: translateZ(0);
}

.ftb-mobile-howto {
  display: none;
}

@media (max-width: 768px) {
  .ftb-mobile-howto {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 28px;
    margin-bottom: 8px;
  }

  .ftb-mobile-howto .ftb-htpbtn {
    color: #ffffff !important;
    background: linear-gradient(
      108deg,
      #01172b 0%,
      #075d8e 45%,
      #0b91c4 70%,
      #25c7df 100%
    ) !important;
    background-size: 220% 100% !important;
    border: none !important;
  }
}

.ftb-howto-top {
  max-width: 1584px;
  margin: 0 auto 12px;
  display: flex;
  justify-content: center;
  align-items: center;
}

@media (max-width: 768px) {
  .ftb-howto-top {
    margin: 0;
    padding: 10px 12px;
    background: var(--ftb-panel-header);
  }
}

@media (min-width: 769px) {
  .ftb-section {
    padding: 0;
  }
}

.ftb-container {
  max-width: 1584px;
  margin: 0 auto;
  border-radius: var(--ftb-radius-xl);
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08), 0 12px 28px rgba(10, 125, 194, 0.16), 0 32px 72px rgba(10, 90, 141, 0.16), 0 0 0 1px rgba(10, 125, 194, 0.14);
  position: relative;
  animation: ftbContainerIn 0.5s cubic-bezier(.22, 1, .36, 1) both;
}

.ppstb-standalone-play-shell .ftb-container {
  margin-top: 80px;
}

@keyframes ftbContainerIn {
  0% {
    opacity: 0;
    transform: translateY(14px) scale(0.99);
  }

  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.ftb-wrap {
  display: flex;
  flex-direction: row;
  width: 100%;
  background: var(--ftb-canvas-bg);
  position: relative;
  height: 88vh;
  max-height: 960px;
  min-height: 520px;
}

.ftb-canvas {
  flex: 1 1 auto;
  position: relative;
  background: var(--ftb-canvas-bg);
  overflow: visible;
  height: 100%;
  border-radius: var(--ftb-radius-xl) 0 0 var(--ftb-radius-xl);
  min-width: 0;
}

#ftb-imgWrap {
  position: absolute;
  overflow: hidden;
  background: var(--ftb-canvas-bg);
}

#ftb-canvasBg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background-size: 140%;
  background-position: center;
  filter: blur(44px) brightness(0.5) saturate(1.25);
  pointer-events: none;
}

#ftb-worldImg {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
}

#ftb-svgLayer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: visible;
}

#ftb-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: visible;
  z-index: 10;
}

#ftb-dotsContainer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 50;
  overflow: hidden;
}

#ftb-rulerCanvas {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 41;
}

#ftb-mergeCanvas {
  display: none;
}

#ftb-interact {
  position: absolute;
  inset: 0;
  z-index: 100;
  pointer-events: all;
  -webkit-tap-highlight-color: transparent;
  touch-action: none;
  cursor: none;
}

#ftb-interact.ruler-ready,
#ftb-interact.ruler-aiming {
  cursor: crosshair;
}

#ftb-target {
  position: absolute;
  width: 76px;
  height: 76px;
  pointer-events: none;
  z-index: 400;
  display: none;
  transform: translate(-50%, -50%);
  will-change: left, top;
}

#ftb-target-zoom {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  overflow: hidden;
  background: var(--ftb-canvas-bg);
  isolation: isolate;
  transform: translateZ(0);
}

#ftb-target-zoom-canvas {
  position: absolute;
  top: 0;
  left: 0;
  display: block;
}

#ftb-target-zoom::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle at center, transparent 34%, rgba(10, 22, 40, 0.34) 100%);
  pointer-events: none;
  z-index: 1;
}

#ftb-target-zoom::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 26%, rgba(255, 255, 255, 0.35) 0%, rgba(255, 255, 255, 0.10) 22%, transparent 48%);
  pointer-events: none;
  z-index: 2;
  mix-blend-mode: screen;
}

#ftb-target-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1.5px solid rgba(10, 125, 194, 0.92);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.4), inset 0 0 0 1px rgba(0, 0, 0, 0.12), 0 0 14px rgba(10, 125, 194, 0.32);
  pointer-events: none;
  z-index: 2;
}

.ftb-tick {
  position: absolute;
  background: rgba(10, 125, 194, 0.9);
  border-radius: 1px;
  pointer-events: none;
  z-index: 2;
}

.ftb-tick-t,
.ftb-tick-b {
  width: 1px;
  height: 7px;
  left: 50%;
  transform: translateX(-50%);
}

.ftb-tick-t {
  top: -10px;
}

.ftb-tick-b {
  bottom: -10px;
}

.ftb-tick-l,
.ftb-tick-r {
  height: 1px;
  width: 7px;
  top: 50%;
  transform: translateY(-50%);
}

.ftb-tick-l {
  left: -10px;
}

.ftb-tick-r {
  right: -10px;
}

#ftb-target-ch {
  position: absolute;
  left: 50%;
  top: 14%;
  width: 1px;
  height: 72%;
  transform: translateX(-50%);
  background: rgba(10, 125, 194, 0.85);
  -webkit-mask: linear-gradient(to bottom, white 0%, white 40%, transparent 40%, transparent 60%, white 60%, white 100%);
  mask: linear-gradient(to bottom, white 0%, white 40%, transparent 40%, transparent 60%, white 60%, white 100%);
  pointer-events: none;
  z-index: 3;
}

#ftb-target-cv {
  position: absolute;
  top: 50%;
  left: 14%;
  height: 1px;
  width: 72%;
  transform: translateY(-50%);
  background: rgba(10, 125, 194, 0.85);
  -webkit-mask: linear-gradient(to right, white 0%, white 40%, transparent 40%, transparent 60%, white 60%, white 100%);
  mask: linear-gradient(to right, white 0%, white 40%, transparent 40%, transparent 60%, white 60%, white 100%);
  pointer-events: none;
  z-index: 3;
}

#ftb-target-dot {
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(10, 125, 194, 0.96);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 6px rgba(10, 125, 194, 1);
  pointer-events: none;
  z-index: 4;
}

#ftb-target-label {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: rgba(10, 125, 194, 0.95);
  background: rgba(10, 22, 40, 0.88);
  border: 1px solid rgba(10, 125, 194, 0.22);
  border-radius: 20px;
  padding: 3px 9px;
  text-align: center;
  pointer-events: none;
  z-index: 4;
  backdrop-filter: blur(4px);
}

#ftb-coords {
  position: absolute;
  bottom: 17px;
  left: 17px;
  z-index: 150;
  pointer-events: none;
  background: rgba(10, 22, 40, 0.80);
  color: rgba(255, 255, 255, 0.60);
  font-size: 11px;
  padding: 5px 14px;
  border-radius: 20px;
  font-family: monospace;
  border: 1px solid rgba(10, 125, 194, 0.14);
  backdrop-filter: blur(4px);
}

#ftb-mob-coords {
  display: none;
  font-family: monospace;
  font-size: 11px;
  color: var(--ftb-gray-500);
  text-align: center;
  padding: 5px 14px;
  background: var(--ftb-gray-100);
  border-bottom: 1px solid var(--ftb-gray-200);
  letter-spacing: 0.04em;
}

.ftb-dot {
  position: absolute;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  pointer-events: all;
  cursor: crosshair;
  border: none;
  background: transparent;
  box-shadow: none;
  z-index: 50;
  transition: transform 0.15s;
}

.ftb-dot:hover {
  transform: translate(-50%, -50%) scale(1.25);
}

.ftb-dot.my-dot::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 15px;
  height: 2px;
  background: var(--ftb-blue-mid);
  border-radius: 2px;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 0 1.5px #fff, 0 0 6px rgba(10, 125, 194, 0.9), 0 0 14px rgba(10, 125, 194, 0.35);
}

.ftb-dot.my-dot::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 2px;
  height: 15px;
  background: var(--ftb-blue-mid);
  border-radius: 2px;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 0 1.5px #fff, 0 0 6px rgba(10, 125, 194, 0.9), 0 0 14px rgba(10, 125, 194, 0.35);
}

@keyframes ftbPopIn {
  0% {
    transform: translate(-50%, -50%) scale(0);
    opacity: 0;
  }

  65% {
    transform: translate(-50%, -50%) scale(1.4);
  }

  100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
  }
}

.ftb-dot.pop {
  animation: ftbPopIn 0.28s cubic-bezier(.34, 1.56, .64, 1) forwards;
}

.ftb-ripple {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 60;
  animation: ftbRipple 0.6s ease-out forwards;
}

.ftb-ripple.g {
  background: rgba(10, 125, 194, 0.72);
}

@keyframes ftbRipple {
  0% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
  }

  100% {
    transform: translate(-50%, -50%) scale(10);
    opacity: 0;
  }
}

.ftb-fmsg {
  position: absolute;
  font-size: 13px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 10px;
  pointer-events: none;
  z-index: 300;
  white-space: nowrap;
  animation: ftbFmsg 1.8s ease forwards;
}

@keyframes ftbFmsg {
  0% {
    opacity: 1;
    transform: translateY(0);
  }

  100% {
    opacity: 0;
    transform: translateY(-40px);
  }
}

#ftb-rulerHint {
  position: absolute;
  bottom: 84px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(10, 125, 194, 0.92);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  padding: 7px 22px;
  border-radius: 20px;
  z-index: 150;
  white-space: nowrap;
  border: 1px solid rgba(10, 125, 194, 0.50);
  display: none;
  pointer-events: none;
}

#ftb-quickBtns,
#ftb-mob-ruler-bar {
  display: flex;
  gap: 8px;
  padding: 12px 18px;
  justify-content: center;
  align-items: center;
  background: var(--ftb-panel-bg);
  border-bottom: 1px solid var(--ftb-gray-200);
}

.ftb-qbtn {
  background: rgba(10, 22, 40, 0.82);
  border: 1px solid rgba(10, 125, 194, 0.30);
  border-radius: 20px;
  color: rgba(255, 255, 255, 0.80);
  font-size: 13px;
  font-weight: 700;
  padding: 7px 17px;
  cursor: pointer;
  transition: background-color var(--ftb-transition), border-color var(--ftb-transition), color var(--ftb-transition), opacity var(--ftb-transition);
  white-space: nowrap;
  min-height: 40px;
}

.ftb-qbtn:hover:not(:disabled),
.ftb-qbtn:focus-visible {
  background: var(--ftb-blue-wash);
  border-color: var(--ftb-blue-light);
  color: var(--ftb-blue-mid);
  outline: none;
}

#ftb-quickBtns .ftb-qbtn,
#ftb-mob-ruler-bar .ftb-qbtn {
  background: var(--ftb-card-bg);
  border-color: var(--ftb-gray-200);
  color: var(--ftb-blue-mid);
}

#ftb-quickBtns .ftb-qbtn.active,
#ftb-mob-ruler-bar .ftb-qbtn.active {
  background: var(--ftb-gradient-main);
  color: #fff;
  border-color: transparent;
}

.ftb-panel {
  width: var(--ftb-panel-w);
  flex-shrink: 0;
  background: var(--ftb-panel-bg);
  height: 100%;
  display: flex;
  flex-direction: column;
  border-left: 1px solid var(--ftb-gray-200);
  overflow: hidden;
  border-radius: 0 var(--ftb-radius-xl) var(--ftb-radius-xl) 0;
}

.ftb-panel-top {
  flex-shrink: 0;
}

.ftb-topbar {
  background: var(--ftb-panel-header);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 0 var(--ftb-radius-xl) 0 0;
  flex-shrink: 0;
}

.ftb-htpbtn {
  border: 1.5px solid rgba(255, 255, 255, 0.50);
  border-radius: 20px;
  padding: 8px 22px;
  font-size: 13px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.95);
  background: rgba(255, 255, 255, 0.14);
  cursor: pointer;
  transition: background-color var(--ftb-transition), border-color var(--ftb-transition), color var(--ftb-transition), opacity var(--ftb-transition);
  white-space: nowrap;
}

.ftb-htpbtn:hover,
.ftb-htpbtn:focus-visible {
  background: rgba(255, 255, 255, 0.24);
  border-color: rgba(255, 255, 255, 0.72);
  color: #ffffff;
  outline: none;
}

.ftb-ticket-banner {
  margin: 14px 14px 0;
  border-radius: var(--ftb-radius);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  background: var(--ftb-card-bg);
  border: 1.5px solid var(--ftb-gray-200);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
  flex-shrink: 0;
  transition: border-color 0.25s, background 0.25s;
}

.ftb-ticket-banner.warning {
  border-color: #F59E0B;
  background: #FFFBEB;
}

.ftb-ticket-banner.complete {
  border-color: var(--ftb-green);
  background: #ECFDF5;
}

.ftb-ticket-banner.empty {
  border-color: var(--ftb-gray-300);
  background: var(--ftb-card-bg);
}

.ftb-tb-label {
  font-size: 9px;
  font-weight: 700;
  color: var(--ftb-gray-400);
  text-transform: uppercase;
  letter-spacing: 1.4px;
  margin-bottom: 4px;
}

.ftb-tb-count {
  font-size: 26px;
  font-weight: 900;
  color: var(--ftb-blue-mid);
  line-height: 1;
  font-family: monospace;
}

.ftb-tb-sub {
  font-size: 11px;
  color: var(--ftb-gray-500);
  margin-top: 4px;
  line-height: 1.4;
}

.ftb-panel-divider {
  height: 1px;
  background: var(--ftb-gray-200);
  margin: 12px 0 0;
  flex-shrink: 0;
}

.ftb-panel-scroll {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  min-height: 0;
  background: var(--ftb-gray-50);
  padding-top: 4px;
}

.ftb-product-group {
  margin: 10px 14px;
  background: var(--ftb-card-bg);
  border: 1px solid var(--ftb-gray-200);
  border-radius: var(--ftb-radius);
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06), 0 2px 8px rgba(10, 125, 194, 0.04);
}

.ftb-pg-header {
  display: flex;
  align-items: flex-start;
  gap: 0;
  background: var(--ftb-blue-wash);
  border-bottom: 1px solid var(--ftb-blue-pale);
  padding: 0;
  overflow: hidden;
}

.ftb-pg-thumb-placeholder {
  width: 80px;
  height: 80px;
  flex-shrink: 0;
  background: #ffffff;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ftb-pg-thumb-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.ftb-pg-meta {
  flex: 1;
  min-width: 0;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
}

.ftb-pg-name {
  font-size: 12px;
  font-weight: 800;
  color: var(--ftb-gray-700);
}

.ftb-pg-instruction {
  font-size: 11px;
  color: var(--ftb-gray-500);
}

.ftb-pg-dots {
  padding: 10px 12px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ftb-pg-empty {
  font-size: 11px;
  color: var(--ftb-gray-400);
  text-align: center;
  padding: 10px 0 4px;
  font-style: italic;
}

.ftb-t-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 11px;
  background: var(--ftb-gray-50);
  border-radius: var(--ftb-radius-sm);
  border-left: 3px solid var(--ftb-blue-pale);
  cursor: pointer;
}

.ftb-t-row.ftb-hi {
  background: var(--ftb-blue-wash);
  border-left-color: var(--ftb-blue-mid);
}

.ftb-t-cross {
  width: 18px;
  height: 18px;
  position: relative;
  flex-shrink: 0;
  background: var(--ftb-blue-wash);
  border: 1.5px solid var(--ftb-blue-pale);
  border-radius: 4px;
}

.ftb-t-cross::before,
.ftb-t-cross::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  background: var(--ftb-blue-mid);
  border-radius: 1px;
}

.ftb-t-cross::before {
  width: 10px;
  height: 1.5px;
  transform: translate(-50%, -50%);
}

.ftb-t-cross::after {
  width: 1.5px;
  height: 10px;
  transform: translate(-50%, -50%);
}

.ftb-t-lbl {
  font-size: 12px;
  font-weight: 700;
  color: var(--ftb-gray-700);
}

.ftb-t-sub {
  font-size: 9px;
  color: var(--ftb-gray-400);
  font-family: monospace;
  letter-spacing: 0.04em;
  margin-top: 2px;
  background: var(--ftb-gray-100);
  border-radius: 4px;
  padding: 2px 6px;
  display: inline-block;
  opacity: 0.85;
}

.ftb-t-rm {
  background: none;
  border: none;
  color: rgba(239, 68, 68, 0.35);
  font-size: 20px;
  cursor: pointer;
  line-height: 1;
  padding: 2px 6px;
  min-width: 30px;
  min-height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ftb-panel-bottom {
  flex-shrink: 0;
  position: relative;
  background: var(--ftb-panel-bg);
  border-top: 1px solid var(--ftb-gray-200);
  border-radius: 0 0 var(--ftb-radius-xl) 0;
}

.ftb-bottom {
  padding: 14px 16px 18px;
  border-radius: 0 0 var(--ftb-radius-xl) 0;
}

#ftb-checkoutBtn {
  width: 100%;
  background: var(--ftb-gradient-main);
  color: #fff;
  border: none;
  padding: 15px 16px;
  border-radius: 25px;
  font-size: 14px;
  font-weight: 900;
  cursor: pointer;
  transition: background-color 0.22s ease, border-color 0.22s ease, color 0.22s ease, box-shadow 0.22s ease, opacity 0.22s ease;
  box-shadow: 0 4px 16px rgba(10, 125, 194, 0.35);
  letter-spacing: 0.04em;
  min-height: 42px;
  display: block;
  text-align: center;
}

#ftb-checkoutBtn:hover:not(:disabled),
#ftb-checkoutBtn:focus-visible:not(:disabled) {
  background: var(--ftb-gradient-h);
  box-shadow: 0 6px 20px rgba(10, 125, 194, 0.42);
  outline: none;
}

#ftb-checkoutBtn:disabled {
  background: var(--ftb-gray-200);
  color: var(--ftb-gray-400);
  cursor: not-allowed;
  box-shadow: none;
  border: 1px solid var(--ftb-gray-200);
}

#ftb-checkoutHint {
  font-size: 10px;
  text-align: center;
  color: var(--ftb-gray-400);
  margin-top: 8px;
  min-height: 14px;
  line-height: 1.4;
}

#ftb-gate-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(10, 22, 40, 0.88);
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(6px);
  transition: opacity 0.3s ease;
}

#ftb-gate-overlay.ftb-gate-hidden {
  opacity: 0;
  pointer-events: none;
}

.ftb-gate-box {
  background: var(--ftb-white);
  border: 1.5px solid var(--ftb-gray-200);
  border-radius: 22px;
  padding: 32px 28px;
  max-width: 460px;
  width: 92%;
  color: var(--ftb-gray-700);
  text-align: center;
  box-shadow: 0 20px 60px rgba(10, 22, 40, 0.30), 0 0 0 1px rgba(255, 255, 255, 0.8);
}

.ftb-gate-title {
  font-size: 20px;
  font-weight: 900;
  color: var(--ftb-blue-mid);
  margin-bottom: 10px;
}

.ftb-gate-msg {
  font-size: 14px;
  color: var(--ftb-gray-500);
  line-height: 1.75;
  margin-bottom: 18px;
}

.ftb-gate-progress {
  background: var(--ftb-gray-100);
  border-radius: 10px;
  height: 7px;
  overflow: hidden;
  margin-bottom: 7px;
}

.ftb-gate-progress-fill {
  height: 100%;
  border-radius: 10px;
  background: var(--ftb-gradient-h);
  transition: width 0.4s ease;
}

.ftb-gate-progress-label {
  font-size: 11px;
  color: var(--ftb-gray-400);
  margin-bottom: 20px;
  font-family: monospace;
}

.ftb-gate-play-btn,
.ftb-modal-close {
  display: block;
  width: 100%;
  background: var(--ftb-gradient-main);
  color: #fff;
  border: none;
  padding: 16px;
  border-radius: 25px;
  font-size: 16px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(10, 125, 194, 0.35);
  transition: background-color 0.22s ease, border-color 0.22s ease, color 0.22s ease, box-shadow 0.22s ease, opacity 0.22s ease;
}

.ftb-gate-play-btn:hover,
.ftb-gate-play-btn:focus-visible,
.ftb-modal-close:hover,
.ftb-modal-close:focus-visible {
  background: var(--ftb-gradient-h);
  box-shadow: 0 6px 20px rgba(10, 125, 194, 0.42);
  outline: none;
}

.ftb-gate-skip {
  display: block;
  margin-top: 12px;
  font-size: 11px;
  color: var(--ftb-gray-400);
  cursor: pointer;
  background: none;
  border: none;
  width: 100%;
  padding: 8px;
}

.ftb-gate-skip:hover,
.ftb-gate-skip:focus-visible {
  color: var(--ftb-blue-mid);
  outline: none;
}

#ftb-sticky-warn,
#ftb-sticky-warn.visible {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
  transform: translateY(120%) !important;
}

#ftb-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.62);
  z-index: 9000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

#ftb-modal.open {
  display: flex;
}

.ftb-modal-box {
  background: var(--ftb-white);
  border: 1px solid var(--ftb-gray-200);
  border-radius: 18px;
  padding: 26px 22px;
  max-width: 430px;
  width: 92%;
  margin: 0;
  color: var(--ftb-gray-700);
  box-shadow: 0 16px 48px rgba(10, 22, 40, 0.22);
  max-height: 90vh;
  overflow-y: auto;
}

.ftb-modal-box h3 {
  font-size: 18px;
  font-weight: 900;
  color: var(--ftb-blue-mid);
  margin-bottom: 16px;
}

.ftb-step {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  margin-bottom: 9px;
  background: var(--ftb-blue-wash);
  padding: 10px 12px;
  border-radius: var(--ftb-radius-sm);
  border-left: 2.5px solid var(--ftb-blue-light);
}

.ftb-step-num {
  background: var(--ftb-gradient-main);
  color: #fff;
  font-weight: 900;
  font-size: 11px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.ftb-step p {
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
  color: var(--ftb-gray-500);
}

#ftb-toast {
  position: fixed;
  bottom: 88px;
  left: 50%;
  transform: translateX(-50%) translateY(70px);
  background: var(--ftb-white);
  color: var(--ftb-blue-mid);
  padding: 10px 22px;
  border-radius: 25px;
  font-size: 13px;
  font-weight: 700;
  border: 1px solid var(--ftb-blue-pale);
  white-space: nowrap;
  z-index: 9999;
  transition: transform 0.28s ease, opacity 0.28s ease, visibility 0.28s ease;
  box-shadow: 0 4px 20px rgba(10, 125, 194, 0.18);
  pointer-events: none;
  max-width: 92vw;
  text-align: center;
  opacity: 0;
  visibility: hidden;
}

#ftb-toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  visibility: visible;
}

#ftb-toast.red {
  background: #FEF2F2;
  color: #DC2626;
  border-color: #FECACA;
}

#ftb-mob-magnifier {
  position: absolute;
  width: 76px;
  height: 76px;
  pointer-events: none;
  z-index: 500;
  display: none;
  opacity: 0;
  top: 0;
  left: 0;
  transition: opacity 0.06s ease;
  will-change: transform;
}

#ftb-mob-magnifier.active {
  display: block;
  opacity: 1;
}

#ftb-mob-mag-lens {
  position: absolute;
  top: 0;
  left: 0;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--ftb-canvas-bg);
  isolation: isolate;
  border: 1.5px solid rgba(10, 125, 194, 0.92);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.4), inset 0 0 0 1px rgba(0, 0, 0, 0.12), 0 0 14px rgba(10, 125, 194, 0.32);
}

#ftb-mob-mag-canvas {
  position: absolute;
  top: 0;
  left: 0;
  display: block;
  width: 76px;
  height: 76px;
}

#ftb-mob-mag-cross,
#ftb-mob-mag-label,
#ftb-mob-stem-canvas,
#ftb-mob-target-dot {
  display: none !important;
}

@media (max-width: 768px) {
  .ftb-section {
    padding: 0 !important;
    margin: 0 !important;
  }

  .ftb-container {
    border-radius: 0;
    box-shadow: none;
    margin: 0;
  }

  .ppstb-standalone-play-shell .ftb-container {
    margin: 0;
  }

  .admin-bar .ppstb-standalone-play-shell .ftb-container {
    margin: 46px 0 0;
  }

  .ftb-wrap {
    flex-direction: column;
    height: auto !important;
    max-height: none !important;
    min-height: 0 !important;
  }

  .ftb-canvas {
    width: 100%;
    height: auto;
    min-height: 220px;
    flex-shrink: 0;
    border-radius: 0;
  }

  .ftb-panel {
    width: 100%;
    height: auto;
    max-height: none;
    border-left: none;
    border-top: 1px solid var(--ftb-gray-200);
    border-radius: 0;
    overflow: visible;
  }

  .ftb-topbar,
  .ftb-bottom,
  .ftb-panel-bottom {
    border-radius: 0;
  }

  #ftb-target,
  #ftb-quickBtns,
  #ftb-coords,
  #ftb-rulerInfo,
  #ftb-angleBadge,
  #ftb-anchorPulse {
    display: none !important;
  }
}

@media (max-width: 768px) and (pointer: fine) {
  #ftb-target {
    display: block !important;
  }

  #ftb-mob-coords {
    display: block;
  }

  #ftb-mob-ruler-bar {
    border-top: 0;
    display: flex;
    gap: 8px;
    padding: 10px 12px;
    background: var(--ftb-gray-100);
    border-bottom: 1px solid var(--ftb-gray-200);
    align-items: center;
  }

  #ftb-mob-ruler-bar .ftb-qbtn {
    font-size: 12px;
    padding: 9px 10px;
    min-height: 42px;
    flex: 1;
    text-align: center;
  }

  #ftb-toast {
    bottom: 70px;
  }

  .ftb-dot {
    width: 18px;
    height: 18px;
  }

  .ftb-dot.my-dot {
    transform: translate(-50%, -50%);
  }

  .ftb-dot.my-dot::before {
    width: 11px;
    height: 1.6px;
  }

  .ftb-dot.my-dot::after {
    width: 1.6px;
    height: 11px;
  }
}

@media (max-width: 1024px) and (min-width: 769px) {
  .ftb-section {
    padding: 32px 24px;
  }

  :root {
    --ftb-panel-w: 290px;
  }

  .ftb-wrap {
    height: 80vh;
  }
}

@media (max-width: 380px) {
  .ftb-tb-count {
    font-size: 20px;
  }

  #ftb-checkoutBtn {
    font-size: 13px;
  }

  .ftb-dot {
    width: 16px;
    height: 16px;
  }

  .ftb-dot.my-dot::before {
    width: 10px;
    height: 1.5px;
  }

  .ftb-dot.my-dot::after {
    width: 1.5px;
    height: 10px;
  }
}

.ppstb-state-notice {
  padding: 14px 16px;
  border-radius: 12px;
  margin: 12px 0;
  font-weight: 600;
  line-height: 1.55;
}

.ppstb-state-notice-pending {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1e3a8a;
}

.ppstb-state-notice-finished {
.ppstb-game-root .ppstb-gateway-card {
  visibility: hidden;
}
.ppstb-game-root.ppstb-gateway-ready .ppstb-gateway-card {
  visibility: visible;
}
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  color: #1e293b;
}

.ppstb-state-notice-closed {
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #065f46;
}

.ppstb-state-notice-winner {
  background: #f0fdf4;
  border: 2px solid #4ade80;
  color: #14532d;
  font-weight: 700;
  font-size: 1.1rem;
}

.ppstb-state-notice-error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
}

.ppstb-static-wrap {
  max-width: 1100px;
  margin: 0 auto;
}

.ppstb-static-image-wrap {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid #dbe4ee;
}

.ppstb-static-image {
  display: block;
  width: 100%;
  height: auto;
}

.ppstb-static-marker,
.ppstb-winning-marker,
.ppstb-player-winning-marker {
  position: absolute;
  width: 18px;
  height: 18px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  pointer-events: none;
}

.ppstb-static-marker {
  border: 2px solid #0a7dc2;
  box-shadow: 0 0 0 2px #ffffff, 0 0 0 4px rgba(10, 125, 194, 0.25);
  z-index: 3;
}

.ppstb-static-marker::before,
.ppstb-static-marker::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background: #0a7dc2;
  border-radius: 1px;
}

.ppstb-static-marker::before {
  width: 10px;
  height: 2px;
}

.ppstb-static-marker::after {
  width: 2px;
  height: 10px;
}

.ppstb-winning-marker {
  background: #dc2626;
  border: 2px solid #ffffff;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.25);
  z-index: 1;
}

.ppstb-player-winning-marker {
  background: #16a34a;
  border: 2px solid #ffffff;
  box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.28);
  z-index: 2;
}

.ppstb-marker-key {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 12px;
  align-items: center;
}

.ppstb-marker-key-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #334155;
}

.ppstb-marker-key-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  position: relative;
  flex: 0 0 14px;
}

.ppstb-marker-key-dot-user {
  border: 2px solid #0a7dc2;
  box-shadow: 0 0 0 1px #ffffff, 0 0 0 3px rgba(10, 125, 194, 0.2);
}

.ppstb-marker-key-dot-user::before,
.ppstb-marker-key-dot-user::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background: #0a7dc2;
  border-radius: 1px;
}

.ppstb-marker-key-dot-user::before {
  width: 7px;
  height: 2px;
}

.ppstb-marker-key-dot-user::after {
  width: 2px;
  height: 7px;
}

.ppstb-marker-key-dot-judge {
  background: #dc2626;
  border: 2px solid #ffffff;
  box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.25);
}

.ppstb-marker-key-dot-player-winning {
  background: #16a34a;
  border: 2px solid #ffffff;
  box-shadow: 0 0 0 2px rgba(22, 163, 74, 0.28);
}

.ppstb-results-wrap {
  margin-top: 14px;
}

.ppstb-gateway {
  max-width: 860px;
  margin: 0 auto 24px;
}

.ppstb-gateway-card {
  background: #ffffff;
  border: 1px solid #dbe4ee;
  border-radius: 22px;
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.08);
  padding: 28px;
}

.ppstb-gateway-card-media {
  background: #ffffff;
  border: 1px solid #dbe4ee;
  border-radius: 22px;
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.08);
  overflow: hidden;
  padding: 0;
}

.ppstb-gateway-card-body {
  padding: 12px 20px 20px;
}

.ppstb-gateway-card-media .ppstb-static-image-wrap {
  margin: 0;
  border: 0;
  border-radius: 0;
}

.ppstb-gateway-title {
  margin: 0 0 8px;
  font-size: 28px;
  line-height: 1.1;
  color: #0f172a;
}

.ppstb-gateway-copy {
  margin: 0 0 22px;
  color: #475569;
  font-size: 15px;
}

.ppstb-gateway-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.ppstb-gateway-stat,
.ppstb-gateway-field {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 16px;
}

.ppstb-gateway-controls {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  align-items: stretch;
}

.ppstb-gateway-field {
  grid-column: 1 / -1;
}

.ppstb-gateway-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #64748b;
  margin-bottom: 8px;
}

.ppstb-gateway-value,
.ppstb-gateway-total-value {
  display: block;
  font-size: 28px;
  font-weight: 900;
  color: #0a7dc2;
  line-height: 1;
}

.ppstb-gateway-field input {
  width: 100%;
  min-height: 48px;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 18px;
  font-weight: 700;
  color: #0f172a;
}

@keyframes ppstb-select-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(10, 125, 194, 0.55); border-color: #0a7dc2; }
  60%  { box-shadow: 0 0 0 6px rgba(10, 125, 194, 0); border-color: #0a7dc2; }
  100% { box-shadow: 0 0 0 0 rgba(10, 125, 194, 0); border-color: #cbd5e1; }
}

.ppstb-gateway-select.ppstb-select-flash {
  animation: ppstb-select-pulse 0.65s ease-out forwards;
}

.ppstb-gateway-select {
  width: 100%;
  min-height: 48px;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  padding: 10px 40px 10px 14px;
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
  background: #ffffff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%230a7dc2' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px 16px;
  cursor: pointer;
  outline-offset: 2px;
  appearance: none;
  -webkit-appearance: none;
}

.ppstb-gateway-stepper {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 48px;
  gap: 0;
  align-items: stretch;
}

.ppstb-gateway-stepper-btn {
  appearance: none;
  border: 1px solid #cbd5e1 !important;
  border-style: solid !important;
  border-width: 1px !important;
  background: #0a7dc2 !important;
  color: #ffffff !important;
  min-height: 48px;
  font-size: 24px;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, opacity 0.2s ease;
}

.ppstb-gateway-stepper-btn:hover,
.ppstb-gateway-stepper-btn:focus-visible {
  background: #222222 !important;
  border-color: #222222 !important;
  color: #ffffff !important;
  outline: none;
}

.ppstb-gateway-stepper-btn:disabled {
  background: #e2e8f0 !important;
  border-color: #cbd5e1 !important;
  color: #94a3b8 !important;
  cursor: not-allowed;
  opacity: 1;
}

.ppstb-gateway-stepper-down {
  border-radius: 100px 0 0 100px !important;
  border-right: 0;
}

.ppstb-gateway-stepper-up {
  border-radius: 0 100px 100px 0 !important;
  border-left: 0;
}

.ppstb-gateway-stepper input {
  border-radius: 0;
  border-left: 0;
  border-right: 0;
  text-align: center;
  min-width: 0;
}

.ppstb-gateway-stepper input::-webkit-outer-spin-button,
.ppstb-gateway-stepper input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.ppstb-gateway-stepper input[type="number"] {
  -moz-appearance: textfield;
}

.ppstb-gateway-summary {
  font-size: 15px;
  line-height: 1.6;
  color: #0f172a;
}

.ppstb-gateway-summary-line + .ppstb-gateway-summary-line {
  margin-top: 4px;
}

.ppstb-gateway-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
}

.ppstb-gateway-howto-button {
  min-height: 48px;
  min-width: 140px;
  flex: 1 1 auto;
  border-radius: 999px;
  padding: 0 24px;
  background: #111111 !important;
  border-color: #111111 !important;
  color: #ffffff !important;
  transition: background-color 0.22s ease, border-color 0.22s ease, color 0.22s ease, box-shadow 0.22s ease, opacity 0.22s ease;
}

.ppstb-gateway-howto-button:hover,
.ppstb-gateway-howto-button:focus-visible {
  background: #0a7dc2 !important;
  border-color: #0a7dc2 !important;
  color: #ffffff !important;
  outline: none;
}

.ppstb-gateway-button:disabled {
  background: #e2e8f0 !important;
  border-color: #cbd5e1 !important;
  color: #94a3b8 !important;
  cursor: not-allowed;
  opacity: 1;
}

.ppstb-gateway-helper {
  margin: 16px 0 18px;
  color: #475569;
  font-size: 14px;
}

.ppstb-gateway-button {
  min-height: 48px;
  min-width: 220px;
  flex: 1 1 auto;
  border-radius: 999px;
  padding: 12px 24px !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1.2;
  text-align: center;
  white-space: normal;
}

.ppstb-game-root .ppstb-gateway-button {
  transition: background-color 0.22s ease, border-color 0.22s ease, color 0.22s ease, box-shadow 0.22s ease, opacity 0.22s ease;
}

.ppstb-game-root .ppstb-gateway-button:hover:not(:disabled),
.ppstb-game-root .ppstb-gateway-button:focus-visible:not(:disabled) {
  background: #222222 !important;
  border-color: #222222 !important;
  color: #ffffff !important;
  opacity: 0.92;
  outline: none;
}

/* =====================================================================
   NEW SECTION - Mockup-matched restyle for the logged-in Pre-Game Gateway
   card: icons in stat boxes, icons in the two action buttons, and small
   visual refinements (rounder pills, softer stat boxes, tighter spacing)
   so the card matches the mobile mockup while staying legible on desktop.
   Nothing above this comment was changed or removed.
   ===================================================================== */

/* Inline SVG icons used inside .ppstb-gateway-label and the two action
   buttons. currentColor lets each icon inherit its parent's text color
   automatically (blue in stat labels, white inside the dark/blue buttons). */
.ppstb-icon {
  width: 16px;
  height: 16px;
  display: inline-block;
  vertical-align: -3px;
  margin-right: 6px;
  flex-shrink: 0;
  color: #0a7dc2;
}

.ppstb-gateway-button .ppstb-icon,
.ppstb-gateway-howto-button .ppstb-icon {
  color: #ffffff;
  margin-right: 8px;
  vertical-align: -3px;
}

.ppstb-icon-right {
  margin-right: 0;
  margin-left: 8px;
}

/* Stat boxes: softer rounded corners + a touch more breathing room so the
   icon + label sit comfortably above the big number, matching the mockup's
   "YOUR CREDITS BALANCE" / "CREDITS PER ENTRY" pill look. */
.ppstb-gateway-stats {
  gap: 12px;
}

.ppstb-gateway-stat {
  border-radius: 18px;
  background: #f8fafc;
  border: 1px solid #e6edf5;
}

.ppstb-gateway-stat .ppstb-gateway-label {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
}

/* Prize select field: rounder corners to match the pill language used
   throughout the mockup (stat boxes, stepper, buttons all share this). */
.ppstb-gateway-field {
  border-radius: 18px;
}

.ppstb-gateway-select {
  border-radius: 999px;
  border-color: #dbe4ee;
}

/* Stepper: fully pill-shaped end caps (mockup shows perfect circles on the
   +/- buttons) rather than the squared-off rounded-rect currently used. */
.ppstb-gateway-stepper {
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid #dbe4ee;
}

.ppstb-gateway-stepper-btn {
  border: 0 !important;
}

.ppstb-gateway-stepper input {
  border: 0;
  font-size: 20px;
  font-weight: 800;
  background: #ffffff;
}

/* Action buttons: icons sit inline with the label text via flex, and both
   buttons keep their existing colors (dark "How to Play", blue "Proceed") -
   only the icon + alignment is new here. */
.ppstb-gateway-howto-button,
.ppstb-gateway-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0;
}

/* Desktop: keep the card at a comfortable reading width instead of
   stretching pill-shaped controls uncomfortably wide, matching the mockup's
   visual density without keeping it phone-narrow. */
@media (min-width: 769px) {
  .ppstb-gateway-card {
    max-width: 480px;
    margin: 0 auto;
  }

  .ppstb-gateway-actions {
    flex-wrap: nowrap;
  }
}

/* =====================================================================
   NEW SECTION 2 - further mockup refinements: circular icon badges (title
   icon, stat icons), the custom prize-select overlay with a thumbnail, the
   restyled Total Cost box, the entry/entries caption under the stepper
   number, and forcing the two stat boxes to stay side-by-side on mobile
   (the mockup shows them side-by-side; the previous mobile media query
   stacked them - fixed below without touching that query's other rules).
   ===================================================================== */

/* Circular icon badge (light blue circle behind an icon) used next to the
   title and inside each stat box label, matching the mockup's badge look. */
.ppstb-icon-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #eaf5fc;
  border: 1px solid #d3e9f7;
  margin-right: 10px;
  flex-shrink: 0;
}

.ppstb-icon-badge .ppstb-icon {
  width: 16px;
  height: 16px;
  margin-right: 0;
  color: #0a7dc2;
}

.ppstb-gateway-title-with-icon {
  display: flex;
  align-items: center;
  gap: 0;
}

.ppstb-icon-lg {
  width: 20px;
  height: 20px;
}

/* Custom prize-select display: the real <select> is made fully transparent
   and stacked on top of this visual proxy, so native dropdown behaviour and
   all existing JS (which reads/writes #ppstb-prize-select) is unaffected -
   only the *look* changes. */
.ppstb-prize-select-wrap {
  position: relative;
}

.ppstb-prize-select-display {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 56px;
  border: 1.5px solid #0f172a;
  border-radius: 999px;
  padding: 8px 44px 8px 8px;
  background: #ffffff;
  pointer-events: none;
}

.ppstb-prize-select-thumb-wrap {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  background: #f1f5f9;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ppstb-prize-select-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ppstb-prize-select-text {
  font-size: 14px;
  font-weight: 800;
  color: #0f172a;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
  min-width: 0;
}

.ppstb-prize-select-chevron {
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: #0a7dc2;
  flex-shrink: 0;
}

.ppstb-prize-select-native {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  /* Keep the native control's own background-image chevron off, since the
     visible chevron is now the one in .ppstb-prize-select-display above. */
  background-image: none;
}

/* Total cost box: rounded pill-style row with a tag icon on the left and
   the cost value on the right, replacing the plain text line. */
.ppstb-gateway-total-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #eef6fb;
  border: 1px solid #d3e9f7;
  border-radius: 16px;
  padding: 14px 18px;
  margin-top: 4px;
}

.ppstb-gateway-total-box-label {
  display: flex;
  align-items: center;
  font-size: 13px;
  font-weight: 700;
  color: #475569;
}

.ppstb-gateway-total-box-label .ppstb-icon {
  color: #0a7dc2;
  width: 16px;
  height: 16px;
}

.ppstb-gateway-total-box-value {
  font-size: 20px;
  font-weight: 900;
  color: #0f172a;
}

/* Stepper: small centered "entry / entries" caption under the number,
   matching the mockup. The number input keeps its existing size/behaviour;
   this just adds a caption beneath it inside the same pill. */
.ppstb-gateway-stepper-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 0;
}

.ppstb-gateway-stepper-center input {
  width: 100%;
  padding-bottom: 0;
}

.ppstb-gateway-stepper-caption {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #94a3b8;
  margin-top: -4px;
  margin-bottom: 6px;
}

/* Force the two stat boxes to stay side-by-side even on mobile, matching
   the mockup (the existing mobile media query further down stacks
   .ppstb-gateway-stats to 1 column - this override wins because it appears
   later in the stylesheet, and only targets .ppstb-gateway-stats, leaving
   .ppstb-gateway-controls free to still stack as before). */
@media (max-width: 768px) {
  .ppstb-gateway-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .ppstb-gateway-stat {
    padding: 12px;
  }

  .ppstb-gateway-value {
    font-size: 22px;
  }
}

/* =====================================================================
   NEW SECTION 3 - switching from built-in SVG icons to your own uploaded
   icon images, plus a more premium look: bigger standout numbers, hover/
   lift animations on the stat boxes, stepper, total-cost box and both
   action buttons, and a richer blue used consistently throughout.
   ===================================================================== */

/* Sizing for the new <img>-based custom icons. Drop your own icon files
   into wp-content/plugins/powerplay-spot-the-ball/assets/img/icons/ using
   the filenames noted in trait-ppstb-game.php - they'll appear at these
   sizes automatically. */
.ppstb-custom-icon {
  width: 22px;
  height: 22px;
  object-fit: contain;
  display: block;
}

.ppstb-custom-icon-sm {
  width: 16px;
  height: 16px;
  margin-right: 6px;
}

.ppstb-custom-icon-btn {
  width: 20px;
  height: 20px;
  margin-right: 8px;
  /* Buttons are dark/blue, so icons are forced to render white regardless
     of the uploaded icon's original colour - swap this out if your icon
     is already white/transparent and doesn't need forcing. */
  filter: brightness(0) invert(1);
}

.ppstb-custom-icon-right {
  margin-right: 0;
  margin-left: 8px;
}

/* Bigger, bolder icon badge circles so custom icons have room to look
   sharp rather than cramped - premium/exciting rather than a tiny glyph. */
.ppstb-icon-badge {
  width: 44px;
  height: 44px;
  background: linear-gradient(160deg, #eaf5fc 0%, #d8ecfa 100%);
  border: 1px solid #c7e3f5;
  box-shadow: 0 2px 6px rgba(10, 125, 194, 0.12);
}

.ppstb-icon-badge-lg {
  width: 48px;
  height: 48px;
  margin-right: 12px;
}

/* Numbers now stand out more: bigger, tighter letter-spacing, and a subtle
   gradient fill for a premium feel (falls back to solid blue automatically
   in browsers without background-clip:text support). */
.ppstb-gateway-value {
  font-size: 34px;
  font-weight: 900;
  letter-spacing: -0.02em;
  background: linear-gradient(120deg, #085a8d, #0a7dc2 60%, #1ea0f0);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: #0a7dc2;
}

.ppstb-gateway-total-box-value {
  font-size: 24px;
  letter-spacing: -0.01em;
}

/* Hover/lift interactions - stat boxes lift and glow slightly, giving the
   card a livelier, more premium feel without changing layout. */
.ppstb-gateway-stat {
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.ppstb-gateway-stat:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(10, 125, 194, 0.14);
  border-color: #b8ddf3;
}

.ppstb-gateway-total-box {
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.ppstb-gateway-total-box:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(10, 125, 194, 0.14);
}

.ppstb-prize-select-display {
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.ppstb-prize-select-wrap:hover .ppstb-prize-select-display {
  border-color: #0a7dc2;
  box-shadow: 0 0 0 3px rgba(10, 125, 194, 0.12);
}

.ppstb-gateway-stepper {
  transition: box-shadow 0.18s ease;
}

.ppstb-gateway-stepper:focus-within {
  box-shadow: 0 0 0 3px rgba(10, 125, 194, 0.18);
}

.ppstb-gateway-stepper-btn {
  transition: background-color 0.18s ease, transform 0.12s ease;
}

.ppstb-gateway-stepper-btn:active:not(:disabled) {
  transform: scale(0.92);
}

/* Buttons: slightly stronger lift + shadow on hover for a premium press
   feel (existing colour swap on hover from earlier CSS is preserved). */
.ppstb-game-root .ppstb-gateway-button:hover:not(:disabled),
.ppstb-game-root .ppstb-gateway-button:focus-visible:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
}

.ppstb-gateway-howto-button:hover,
.ppstb-gateway-howto-button:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(10, 125, 194, 0.25);
}

.ppstb-gateway-howto-button,
.ppstb-game-root .ppstb-gateway-button {
  transition: background-color 0.22s ease, border-color 0.22s ease, color 0.22s ease, box-shadow 0.22s ease, transform 0.15s ease;
}

/* ===== END NEW SECTION 3 ===== */

/* =====================================================================
   NEW SECTION 4 - premium metallic gradient treatment for the two main
   gateway buttons ("How to Play" and "Proceed to Game"), matching the
   same metallic blue gradient + shine-sweep hover animation used in the
   site's premium hero headline styling. Both buttons keep their existing
   IDs/classes/JS hooks - only the background/animation changes.
   ===================================================================== */

.ppstb-gateway-howto-button,
.ppstb-game-root .ppstb-gateway-button {
  position: relative;
  overflow: hidden;
  border: none !important;
  background: linear-gradient(
    108deg,
    #01172b 0%,
    #032d50 18%,
    #075d8e 36%,
    #0b91c4 48%,
    #25c7df 55%,
    #0a8fc3 63%,
    #064d78 81%,
    #021a30 100%
  ) !important;
  background-size: 220% 100% !important;
  background-position: 0% 50% !important;
  box-shadow:
    0 4px 10px rgba(0, 20, 40, 0.25),
    0 10px 24px rgba(0, 110, 170, 0.28) !important;
  transition: background-position 0.5s ease, transform 0.18s ease, box-shadow 0.18s ease !important;
}

.ppstb-gateway-howto-button:hover,
.ppstb-gateway-howto-button:focus-visible,
.ppstb-game-root .ppstb-gateway-button:hover:not(:disabled),
.ppstb-game-root .ppstb-gateway-button:focus-visible:not(:disabled) {
  background-position: 100% 50% !important;
  transform: translateY(-2px) !important;
  box-shadow:
    0 6px 16px rgba(0, 20, 40, 0.3),
    0 14px 32px rgba(0, 110, 170, 0.35) !important;
  color: #ffffff !important;
  border-color: transparent !important;
  outline: none;
}

/* Disabled state stays flat grey (no metallic gradient) so it still reads
   clearly as unavailable. */
.ppstb-gateway-button:disabled {
  background: #e2e8f0 !important;
  box-shadow: none !important;
  transform: none !important;
}

/* Diagonal light "shine sweep" that passes across each button on hover. */
.ppstb-gateway-howto-button::before,
.ppstb-game-root .ppstb-gateway-button::before {
  content: "";
  position: absolute;
  top: 0;
  left: -60%;
  width: 40%;
  height: 100%;
  background: linear-gradient(
    120deg,
    transparent 0%,
    rgba(255, 255, 255, 0.35) 50%,
    transparent 100%
  );
  transform: skewX(-20deg);
  transition: left 0.6s ease;
  pointer-events: none;
}

.ppstb-gateway-howto-button:hover::before,
.ppstb-game-root .ppstb-gateway-button:hover:not(:disabled)::before {
  left: 130%;
}

/* Keep the icon/label content above the shine-sweep layer. */
.ppstb-gateway-howto-button > *,
.ppstb-game-root .ppstb-gateway-button > * {
  position: relative;
  z-index: 1;
}

/* ===== END NEW SECTION 4 ===== */

/* =====================================================================
   NEW SECTION 5 - restyled entry stepper. Previously the +/- buttons and
   number field were joined into one pill (half-round end caps), which
   didn't match the mockup's look of two separate circular buttons with a
   gap on either side of the number, and the disabled "+" state (reached
   max entries) was too pale to read clearly. This section overrides the
   stepper's layout entirely via CSS only - the HTML/JS/IDs are unchanged.
   ===================================================================== */

.ppstb-gateway-stepper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  padding: 8px;
  overflow: visible;
}

.ppstb-gateway-stepper-btn {
  width: 44px;
  height: 44px;
  min-height: 44px;
  flex: 0 0 44px;
  border-radius: 50% !important;
  background: #0a7dc2 !important;
  color: #ffffff !important;
  font-size: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  box-shadow: 0 3px 8px rgba(10, 125, 194, 0.28);
}

.ppstb-gateway-stepper-btn:hover:not(:disabled),
.ppstb-gateway-stepper-btn:focus-visible:not(:disabled) {
  background: #085a8d !important;
  box-shadow: 0 4px 12px rgba(10, 125, 194, 0.38);
}

/* Clearer disabled state (reached min/max entries) - darker grey with
   readable icon contrast instead of the previous near-invisible pale grey. */
.ppstb-gateway-stepper-btn:disabled {
  background: #cbd5e1 !important;
  color: #64748b !important;
  box-shadow: none !important;
  cursor: not-allowed;
  opacity: 1;
}

.ppstb-gateway-stepper-center {
  flex: 1 1 auto;
  min-width: 0;
  background: #ffffff;
  border-radius: 14px;
  padding: 6px 4px;
}

.ppstb-gateway-stepper-center input {
  width: 100%;
  border: none;
  background: transparent;
  text-align: center;
  font-size: 22px;
  font-weight: 900;
  color: #0f172a;
  padding: 0;
}

.ppstb-gateway-stepper-caption {
  display: block;
  text-align: center;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #94a3b8;
  margin-top: 0;
}

/* Mobile: slightly smaller circular buttons and tighter padding so the
   whole control stays comfortably within the card width, with consistent
   spacing matching the rest of the redesigned gateway card. */
@media (max-width: 768px) {
  .ppstb-gateway-stepper {
    padding: 6px;
    gap: 8px;
  }

  .ppstb-gateway-stepper-btn {
    width: 40px;
    height: 40px;
    min-height: 40px;
    flex: 0 0 40px;
    font-size: 20px;
  }

  .ppstb-gateway-stepper-center input {
    font-size: 20px;
  }

  .ppstb-gateway-field,
  .ppstb-gateway-stat,
  .ppstb-gateway-total-box {
    width: 100%;
  }
}

/* ===== END NEW SECTION 5 ===== */

/* =====================================================================
   NEW SECTION 6 - fixes "How to Play" / "Proceed to Game" wrapping onto
   two lines on desktop. This happened because the 480px card cap (added
   earlier) combined with fixed min-widths (220px/140px) forced the
   buttons to shrink below their natural single-line width. Fix: widen the
   desktop card slightly, let each button size to its own content instead
   of being stretched/shrunk, and allow the row to wrap to two stacked
   buttons (rather than wrapping the text inside one button) if the
   window is ever too narrow for both on one line.
   ===================================================================== */

@media (min-width: 769px) {
  .ppstb-gateway-card {
    max-width: 560px !important;
  }

  .ppstb-gateway-actions {
    flex-wrap: wrap !important;
    justify-content: center;
    row-gap: 12px;
  }

  .ppstb-gateway-howto-button,
  .ppstb-game-root .ppstb-gateway-button {
    flex: 0 1 auto !important;
    min-width: 0 !important;
    white-space: nowrap;
  }

  .ppstb-gateway-howto-button span,
  #ppstb-proceed-button-label {
    white-space: nowrap;
  }
}

/* ===== END NEW SECTION 6 ===== */

/* =====================================================================
   NEW SECTION 7 - (a) responsive 16:9 video embed wrapper for the new
   How to Play modal video, and (b) forces the "How to Play" / "Proceed to
   Game" buttons to always stay on one line on desktop, overriding the
   previous stacked-fallback behaviour from Section 6 (this rule appears
   later in the file, so it wins). Buttons get slightly smaller padding/
   font-size on desktop to comfortably fit side-by-side without wrapping.
   ===================================================================== */

.ftb-modal-video-wrap {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 aspect ratio */
  border-radius: 12px;
  overflow: hidden;
  background: #0a1628;
  margin-bottom: 16px;
}

.ftb-modal-video-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

@media (min-width: 769px) {
  .ppstb-gateway-card {
    max-width: 600px !important;
  }

  .ppstb-gateway-actions {
    flex-wrap: nowrap !important;
    justify-content: center;
    gap: 10px;
  }

  .ppstb-gateway-howto-button,
  .ppstb-game-root .ppstb-gateway-button {
    flex: 0 1 auto !important;
    min-width: 0 !important;
    padding: 0 18px !important;
    font-size: 14px !important;
    white-space: nowrap;
  }

  .ppstb-gateway-howto-button span,
  #ppstb-proceed-button-label {
    white-space: nowrap;
    font-size: 14px;
  }
}

/* ===== END NEW SECTION 7 ===== */

/* =====================================================================
   NEW SECTION 8 (revised) - keeps the icon next to the label (inline,
   side by side) as in the mockup, rather than stacking icon-on-top like
   the previous version of this section did. Fixes the awkward 3-line
   text wrap by shrinking the icon badge and label font slightly on
   mobile, and vertically centers the icon against the (now 2-line)
   wrapped label text for a tidier look.
   ===================================================================== */

@media (max-width: 768px) {
  .ppstb-gateway-stat {
    padding: 14px 12px;
  }

  .ppstb-gateway-stat .ppstb-gateway-label {
    display: flex;
    flex-direction: row;
    align-items: center;
    margin-bottom: 10px;
  }

  .ppstb-gateway-stat .ppstb-icon-badge {
    width: 32px;
    height: 32px;
    margin-right: 8px;
    margin-bottom: 0;
    flex-shrink: 0;
  }

  .ppstb-gateway-stat .ppstb-icon-badge .ppstb-custom-icon,
  .ppstb-gateway-stat .ppstb-icon-badge img {
    width: 16px;
    height: 16px;
  }

  .ppstb-gateway-stat .ppstb-gateway-label {
    font-size: 10.5px;
    line-height: 1.3;
    text-align: left;
  }

  .ppstb-gateway-stat .ppstb-gateway-value {
    text-align: left;
    width: auto;
  }
}

/* ===== END NEW SECTION 8 ===== */

/* =====================================================================
   NEW SECTION 9 - full restyle for the rebuilt stat box structure
   (.ppstb-gateway-stat-v2), matching the mockup exactly: label on top
   (plain text, no inline icon), a big number + small "Credits" unit text
   sitting on the same line, and a large icon badge floated on the right
   side of the whole box, vertically centered. Uses new, more specific
   classes so it doesn't fight with the older stat-box rules above (which
   still apply to the guest-view stat boxes, unchanged). Works the same
   on desktop and mobile - no separate mobile override needed here.
   ===================================================================== */

.ppstb-gateway-stat-v2 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 16px;
}

.ppstb-gateway-stat-v2 .ppstb-gateway-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #64748b;
  margin-bottom: 6px;
  white-space: nowrap;
}

.ppstb-gateway-stat-content {
  min-width: 0;
  flex: 1 1 auto;
}

.ppstb-gateway-value-row {
  display: flex;
  align-items: baseline;
  gap: 6px;
  flex-wrap: nowrap;
}

.ppstb-gateway-stat-v2 .ppstb-gateway-value {
  font-size: 28px;
  line-height: 1;
  white-space: nowrap;
}

.ppstb-gateway-value-unit {
  font-size: 12px;
  font-weight: 600;
  color: #94a3b8;
  white-space: nowrap;
}

.ppstb-icon-badge-stat {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  margin-right: 0;
}

.ppstb-icon-badge-stat .ppstb-custom-icon,
.ppstb-icon-badge-stat img {
  width: 22px;
  height: 22px;
}

/* Mobile: slightly tighter padding and smaller number so both stat boxes
   comfortably fit side-by-side without crowding, while keeping the same
   label-top / number+unit-inline / icon-on-the-right layout as desktop. */
@media (max-width: 768px) {
  .ppstb-gateway-stat-v2 {
    padding: 12px;
  }

  .ppstb-gateway-stat-v2 .ppstb-gateway-label {
    font-size: 9.5px;
  }

  .ppstb-gateway-stat-v2 .ppstb-gateway-value {
    font-size: 22px;
  }

  .ppstb-icon-badge-stat {
    width: 36px;
    height: 36px;
  }

  .ppstb-icon-badge-stat .ppstb-custom-icon,
  .ppstb-icon-badge-stat img {
    width: 18px;
    height: 18px;
  }
}

/* ===== END NEW SECTION 9 ===== */

/* =====================================================================
   NEW SECTION 10 - fixes the number+unit text ("248 Credits") visually
   overlapping the icon badge on narrower phone widths. The root cause:
   white-space: nowrap on the value/unit text (Section 9) stops it
   wrapping, but nothing was clipping it, so on a narrow screen the text
   overflowed past its shrunk flex box and painted on top of the icon
   sitting next to it. Fix: clip/truncate the row instead of letting it
   overflow, and on very narrow phones drop the "Credits" word entirely
   (keeping just the bold number) so there's never a width tight enough
   to cause overlap, on any device.
   ===================================================================== */

.ppstb-gateway-value-row {
  min-width: 0;
  overflow: hidden;
}

.ppstb-gateway-stat-v2 .ppstb-gateway-value {
  flex-shrink: 0;
}

.ppstb-gateway-value-unit {
  display: inline-block;
  min-width: 0;
  flex-shrink: 1;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Very narrow phones: drop the "Credits" unit word entirely rather than
   risk any overlap - the bold number next to the icon is unambiguous on
   its own at this width. */
@media (max-width: 400px) {
  .ppstb-gateway-value-unit {
    display: none;
  }

  .ppstb-gateway-stat-v2 {
    padding: 10px 8px;
  }

  .ppstb-gateway-stat-v2 .ppstb-gateway-label {
    font-size: 8.5px;
  }

  .ppstb-gateway-stat-v2 .ppstb-gateway-value {
    font-size: 20px;
  }

  .ppstb-icon-badge-stat {
    width: 32px;
    height: 32px;
  }

  .ppstb-icon-badge-stat .ppstb-custom-icon,
  .ppstb-icon-badge-stat img {
    width: 16px;
    height: 16px;
  }
}

/* ===== END NEW SECTION 10 ===== */

/* =====================================================================
   NEW SECTION 11 - final robustness pass. The button labels ("How to
   Play" / "Proceed to Game" text) are editable in Settings > PowerPlay
   Spot The Ball > Styling, so an admin could type a longer custom label
   than the defaults. Since Section 7 forces both buttons to stay on one
   line on desktop, an unusually long custom label could otherwise push
   them wider than the card. This truncates any label text that's too
   long (with "...") instead of letting it break the one-line layout.
   ===================================================================== */

@media (min-width: 769px) {
  .ppstb-gateway-howto-button span,
  #ppstb-proceed-button-label {
    display: inline-block;
    max-width: 170px;
    overflow: hidden;
    text-overflow: ellipsis;
    vertical-align: middle;
  }
}

/* ===== END NEW SECTION 11 ===== */

/* =====================================================================
   NEW SECTION 12 - defensive fix for the prize-select box and the entry
   stepper appearing wider than the rest of the card (overflowing past
   the card's right edge). This explicitly forces box-sizing: border-box
   and caps max-width at 100% on every layer of these two components, so
   padding/border can never add extra width on top of the 100% sizing -
   even if something elsewhere unexpectedly stops the global box-sizing
   reset from applying. Purely a safety net; doesn't change how anything
   looks if it wasn't already the cause.
   ===================================================================== */

.ppstb-gateway-field,
.ppstb-prize-select-wrap,
.ppstb-prize-select-display,
.ppstb-prize-select-native,
.ppstb-gateway-stepper,
.ppstb-gateway-stepper-center {
  box-sizing: border-box !important;
  max-width: 100%;
}

.ppstb-gateway-controls {
  max-width: 100%;
}

/* ===== END NEW SECTION 12 ===== */

/* =====================================================================
   NEW SECTION 13 - the real fix for the prize-select/stepper section
   overflowing wider than the rest of the card. Root cause: the stat
   boxes' grid (.ppstb-gateway-stats) already used the safe pattern
   "minmax(0, 1fr)" for its columns, but .ppstb-gateway-controls (which
   holds the "Select Your Prize" and "How many entries" fields) used a
   bare "1fr" in two places (base rule + mobile media query). A bare 1fr
   column has an implicit minimum size equal to its content's natural
   width - so if the content (e.g. the pill-shaped prize selector) is
   wider than the card, the GRID TRACK ITSELF grows to fit it, dragging
   the whole section past the card's right edge. This is the classic CSS
   Grid "blowout" bug. minmax(0, 1fr) removes that implicit minimum,
   letting the track actually shrink to fit the card like the stat boxes
   already correctly do. Section 12's earlier fix (max-width/box-sizing on
   the boxes themselves) didn't help because the track surrounding them
   was already oversized - this fixes the track directly instead.
   ===================================================================== */

.ppstb-gateway-controls {
  grid-template-columns: minmax(0, 1fr) !important;
}

/* ===== END NEW SECTION 13 ===== */

/* =====================================================================
   NEW SECTION 14 - full premium visual pass across the whole gateway
   card, matching the same metallic blue gradient language used in the
   site's hero headline and the main buttons. Purely visual/CSS-only -
   no HTML/JS structure changed, so nothing about how the card works is
   affected, only how it looks and animates.
   ===================================================================== */

@keyframes ppstb-fade-in-up {
  0% { opacity: 0; transform: translateY(16px); }
  100% { opacity: 1; transform: translateY(0); }
}

@keyframes ppstb-shimmer-sweep {
  0% { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}

@keyframes ppstb-icon-glow-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(10, 125, 194, 0.28); }
  50% { box-shadow: 0 0 0 7px rgba(10, 125, 194, 0.10); }
}

/* Card: soft ambient glow, entrance animation, and a premium gradient
   accent bar across the very top, matching the site's headline colours. */
.ppstb-gateway-card {
  position: relative;
  overflow: hidden;
  animation: ppstb-fade-in-up 0.55s cubic-bezier(.22, 1, .36, 1) both;
  box-shadow:
    0 18px 48px rgba(15, 23, 42, 0.08),
    0 0 0 1px rgba(10, 125, 194, 0.07),
    0 34px 90px rgba(10, 125, 194, 0.10);
}

.ppstb-gateway-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    #064b77 15%,
    #0788bd 35%,
    #24cbe3 50%,
    #0788bd 65%,
    #064b77 85%,
    transparent 100%
  );
}

/* Icon badges: subtle recurring glow pulse, giving them a bit of life
   rather than sitting static. */
.ppstb-icon-badge {
  animation: ppstb-icon-glow-pulse 2.6s ease-in-out infinite;
}

/* Numbers: animated shimmer sweep across the gradient-filled text (built
   on top of the gradient-text effect already applied to
   .ppstb-gateway-value earlier in this file). */
.ppstb-gateway-value {
  background-size: 250% auto;
  animation: ppstb-shimmer-sweep 4.5s linear infinite;
}

/* Stat boxes: shine-sweep on hover (matching the buttons' hover effect)
   plus keeping the icon/number above that sweep layer. */
.ppstb-gateway-stat {
  position: relative;
  overflow: hidden;
}

.ppstb-gateway-stat > * {
  position: relative;
  z-index: 1;
}

.ppstb-gateway-stat::after {
  content: "";
  position: absolute;
  top: 0;
  left: -60%;
  width: 40%;
  height: 100%;
  background: linear-gradient(120deg, transparent 0%, rgba(10, 125, 194, 0.14) 50%, transparent 100%);
  transform: skewX(-20deg);
  transition: left 0.6s ease;
  pointer-events: none;
}

.ppstb-gateway-stat:hover::after {
  left: 130%;
}

/* Stepper +/- buttons: switch to the same premium metallic gradient used
   by the main buttons, instead of flat blue, for full visual consistency.
   Disabled state stays untouched (that rule has higher specificity and
   already appears earlier in the file, so it continues to win). */
.ppstb-gateway-stepper-btn {
  background: linear-gradient(135deg, #01172b 0%, #075d8e 45%, #0b91c4 70%, #25c7df 100%) !important;
  background-size: 220% 220%;
  background-position: 0% 0%;
  transition: background-position 0.4s ease, transform 0.15s ease, box-shadow 0.18s ease;
}

.ppstb-gateway-stepper-btn:hover:not(:disabled),
.ppstb-gateway-stepper-btn:focus-visible:not(:disabled) {
  background-position: 100% 100% !important;
  transform: translateY(-1px) scale(1.05);
}

.ppstb-gateway-stepper-btn:active:not(:disabled) {
  transform: scale(0.92);
}

/* Total cost box: gradient accent underline matching the site's headline
   treatment, plus a soft glow on hover. */
.ppstb-gateway-total-box {
  position: relative;
  overflow: hidden;
}

.ppstb-gateway-total-box::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 70%;
  max-width: 220px;
  height: 3px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    #064b77 15%,
    #0788bd 35%,
    #24cbe3 50%,
    #0788bd 65%,
    #064b77 85%,
    transparent 100%
  );
  border-radius: 100px;
}

/* Prize select: soft glow ring when focused/opened via keyboard or click,
   using :focus-within on the wrapper since the visible display element
   sits before the (invisible) real <select> in the markup. */
.ppstb-prize-select-wrap:focus-within .ppstb-prize-select-display {
  border-color: #0a7dc2;
  box-shadow: 0 0 0 4px rgba(10, 125, 194, 0.16);
}

/* Respect people who've asked their browser/OS to reduce motion - turn
   off all the decorative animations above for them, keeping only the
   static premium styling (gradient fills, borders, shadows). */
@media (prefers-reduced-motion: reduce) {
  .ppstb-gateway-card,
  .ppstb-icon-badge,
  .ppstb-gateway-value {
    animation: none !important;
  }

  .ppstb-gateway-stat::after,
  .ppstb-gateway-stepper-btn,
  .ppstb-gateway-howto-button::before,
  .ppstb-game-root .ppstb-gateway-button::before {
    transition: none !important;
  }
}

/* ===== END NEW SECTION 14 ===== */

/* =====================================================================
   NEW SECTION 15 - "pop" animation on the entry-quantity number,
   triggered briefly by JS (spot-the-ball.js) whenever the +/- stepper
   buttons change the quantity. Gives a small satisfying bounce instead
   of the number just silently changing.
   ===================================================================== */

@keyframes ppstb-stepper-pop {
  0% { transform: scale(1); }
  40% { transform: scale(1.18); }
  100% { transform: scale(1); }
}

.ppstb-gateway-stepper-pop {
  animation: ppstb-stepper-pop 0.28s cubic-bezier(.34, 1.56, .64, 1);
}

@media (prefers-reduced-motion: reduce) {
  .ppstb-gateway-stepper-pop {
    animation: none !important;
  }
}

/* ===== END NEW SECTION 15 ===== */

/* =====================================================================
   NEW SECTION 16 - fixes the stat box LABEL text ("Your Credits" /
   "Credits Per Entry") overlapping the icon badge on smaller/older
   phones. Same root cause as the earlier number+unit overlap fix
   (Section 10): white-space: nowrap on the label stopped it wrapping,
   but nothing was clipping it if it ran out of room, so on a narrow
   screen (or with a larger accessibility text size) the label text kept
   its full width and visually spilled onto the icon next to it. This
   clips/truncates the label with "..." instead, so it can never overlap
   the icon regardless of device width or font-size settings.
   ===================================================================== */

.ppstb-gateway-stat-v2 .ppstb-gateway-label {
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

/* ===== END NEW SECTION 16 ===== */

/* =====================================================================
   NEW SECTION 17 - the previous fix (Section 16) stopped the label
   overlapping the icon by truncating it with "..." on narrow screens,
   but that cut off part of the actual word (e.g. "Credits Per..."),
   which isn't great either. This switches to letting the label wrap
   onto a second line instead of truncating - the full word stays
   readable, and it still can't overlap the icon, since wrapping just
   makes the text taller within its own column rather than wider into
   the icon's space next to it.
   ===================================================================== */

.ppstb-gateway-stat-v2 .ppstb-gateway-label {
  white-space: normal !important;
  overflow: visible;
  text-overflow: clip;
  line-height: 1.25;
}

/* ===== END NEW SECTION 17 ===== */

/* =====================================================================
   NEW SECTION 18 - properly resolves the "Credits Per Entry" fitting
   problem instead of continuing to shrink/wrap/truncate it. Below 480px
   (genuinely small/older phones), there simply isn't enough horizontal
   room for the full label to sit on one line next to the icon at a
   readable size - no amount of font shrinking fixes that gracefully.
   Real fix: below that width, the two stat boxes stack on top of each
   other instead of sitting side-by-side. Each box then gets the FULL
   card width, giving the label plenty of room to stay on one line at a
   normal, readable size - and since the boxes no longer share a row,
   there's nothing left to misalign between them either. Above 480px
   (standard modern phones and up), the existing side-by-side layout
   already has enough room and is unaffected.
   ===================================================================== */

/* =====================================================================
   NEW SECTION 18 (revised) - keeps the two stat boxes side-by-side at
   all times, matching the mockup, rather than stacking them on narrow
   phones. Instead, squeezes out maximum horizontal room for the label
   so "Credits Per Entry" fits on one line at a readable size: smaller
   icon, tighter icon/text gap, letter-spacing removed (uppercase text
   with letter-spacing takes noticeably more width than without it), and
   reduced box padding. A fixed label height is also locked in on both
   boxes, so even if the exact text length ever differs, the number row
   below always sits at the same vertical position in both boxes -
   guaranteeing alignment regardless of content.
   ===================================================================== */

@media (max-width: 480px) {
  .ppstb-gateway-stat-v2 {
    padding: 10px 6px;
    gap: 4px;
  }

  .ppstb-gateway-stat-v2 .ppstb-gateway-label {
    white-space: nowrap !important;
    font-size: 9px !important;
    letter-spacing: 0 !important;
    line-height: 1.2;
    min-height: 11px;
    display: flex;
    align-items: center;
  }

  .ppstb-gateway-stat-v2 .ppstb-gateway-value {
    font-size: 20px !important;
  }

  .ppstb-icon-badge-stat {
    width: 32px !important;
    height: 32px !important;
  }

  .ppstb-icon-badge-stat .ppstb-custom-icon,
  .ppstb-icon-badge-stat img {
    width: 16px !important;
    height: 16px !important;
  }
}

/* ===== END NEW SECTION 18 (revised) ===== */

/* =====================================================================
   NEW SECTION 19 - small, pill-shaped spinning gradient border, scoped
   for BUTTONS only (not cards - the earlier card version was removed
   since it felt like too much). Same proven technique as the working
   prize slider version (a real div, not a pseudo-element, with an
   oversized square behind it to avoid distortion), just scaled way down:
   thinner ring (2px), pill-shaped radius (999px) matching the button's
   own shape, and a smaller footprint overall so it reads as a subtle
   accent rather than a dominant effect.
   ===================================================================== */

@keyframes ppr-slider-border-spin {
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

.ppr-spin-shell-btn {
  position: relative;
  display: inline-block;
  overflow: hidden;
  padding: 2px;
  border-radius: 999px;
  box-sizing: border-box;
}

.ppr-spin-bg-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 300%;
  aspect-ratio: 1;
  background: conic-gradient(
    from 0deg,
    #01172b,
    #075d8e,
    #0b91c4,
    #25c7df,
    #0b91c4,
    #075d8e,
    #01172b
  );
  transform: translate(-50%, -50%);
  animation: ppr-slider-border-spin 6s linear infinite;
  z-index: 0;
}

.ppr-spin-shell-btn .ppstb-gateway-button,
.ppr-spin-shell-btn .elementor-button {
  position: relative;
  z-index: 1;
  margin: 0;
}

@media (prefers-reduced-motion: reduce) {
  .ppr-spin-bg-btn {
    animation: none;
  }
}

/* ===== END NEW SECTION 19 ===== */

/* =====================================================================
   NEW SECTION 20 - premium visual pass for the actual gameplay screen
   (the "place your spot" canvas): the Undo/Ruler buttons, the How to
   Play/Close buttons, the Spots Placed banner, and the Placed Spots
   panel below it. Purely visual/CSS - none of the underlying game
   functionality, JS behaviour, or element IDs are touched.
   ===================================================================== */

/* Undo / Ruler quick buttons: metallic gradient pill matching the rest
   of the site, with a shine-sweep on hover. */
.ftb-qbtn {
  position: relative;
  overflow: hidden;
  background: linear-gradient(
    108deg,
    #01172b 0%,
    #075d8e 45%,
    #0b91c4 70%,
    #25c7df 100%
  ) !important;
  background-size: 220% 100% !important;
  background-position: 0% 50% !important;
  border: none !important;
  color: #ffffff !important;
  box-shadow: 0 4px 10px rgba(1, 23, 43, 0.22);
  transition: background-position 0.5s ease, transform 0.15s ease, box-shadow 0.18s ease !important;
}

.ftb-qbtn:hover:not(:disabled),
.ftb-qbtn:focus-visible {
  background-position: 100% 50% !important;
  color: #ffffff !important;
  border-color: transparent !important;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(1, 23, 43, 0.3);
  outline: none;
}

.ftb-qbtn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -60%;
  width: 40%;
  height: 100%;
  background: linear-gradient(120deg, transparent 0%, rgba(255, 255, 255, 0.35) 50%, transparent 100%);
  transform: skewX(-20deg);
  transition: left 0.6s ease;
  pointer-events: none;
}

.ftb-qbtn:hover:not(:disabled)::before {
  left: 130%;
}

.ftb-qbtn > * {
  position: relative;
  z-index: 1;
}

/* Keep the active ruler-toggle state clearly readable against the new
   gradient background. */
#ftb-quickBtns .ftb-qbtn.active,
#ftb-mob-ruler-bar .ftb-qbtn.active {
  background: linear-gradient(135deg, #01172b 0%, #032d50 100%) !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.32);
}

/* How to Play / Close buttons: same metallic gradient treatment. */
.ftb-htpbtn {
  position: relative;
  overflow: hidden;
  background: linear-gradient(
    108deg,
    #01172b 0%,
    #075d8e 45%,
    #0b91c4 70%,
    #25c7df 100%
  ) !important;
  background-size: 220% 100% !important;
  background-position: 0% 50% !important;
  border: none !important;
  color: #ffffff !important;
  box-shadow: 0 4px 10px rgba(1, 23, 43, 0.22);
  transition: background-position 0.5s ease, transform 0.15s ease, box-shadow 0.18s ease !important;
}

.ftb-htpbtn:hover,
.ftb-htpbtn:focus-visible {
  background-position: 100% 50% !important;
  color: #ffffff !important;
  border-color: transparent !important;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(1, 23, 43, 0.3);
  outline: none;
}

.ftb-htpbtn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -60%;
  width: 40%;
  height: 100%;
  background: linear-gradient(120deg, transparent 0%, rgba(255, 255, 255, 0.35) 50%, transparent 100%);
  transform: skewX(-20deg);
  transition: left 0.6s ease;
  pointer-events: none;
}

.ftb-htpbtn:hover::before {
  left: 130%;
}

.ftb-htpbtn > * {
  position: relative;
  z-index: 1;
}

/* Spots Placed banner: soft gradient accent line across the top, and a
   gradient-filled count number instead of flat blue, matching the
   number treatment used elsewhere on the site. Functional colour states
   (warning/complete/empty) are left completely intact. */
.ftb-ticket-banner {
  position: relative;
  overflow: hidden;
}

.ftb-ticket-banner::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #01172b, #075d8e, #0b91c4, #25c7df, #0b91c4, #075d8e, #01172b);
}

.ftb-tb-count {
  background: linear-gradient(120deg, #085a8d, #0a7dc2 60%, #1ea0f0);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--ftb-blue-mid);
}

/* Placed Spots panel: subtle premium border glow and a gradient accent
   on the header strip, matching the same visual language. */
.ftb-product-group {
  border: 1px solid rgba(11, 145, 196, 0.18);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06), 0 4px 14px rgba(10, 125, 194, 0.10);
}

.ftb-pg-header {
  background: linear-gradient(135deg, #eef6fb 0%, #e3f3fb 100%);
  border-bottom: 1px solid rgba(11, 145, 196, 0.2);
}

@media (prefers-reduced-motion: reduce) {
  .ftb-qbtn,
  .ftb-htpbtn {
    transition: none !important;
  }

  .ftb-qbtn::before,
  .ftb-htpbtn::before {
    transition: none;
  }
}

/* ===== END NEW SECTION 20 ===== */

/* =====================================================================
   NEW SECTION 21 - expanded animation pass on the same gameplay screen
   elements from Section 20. Adds entrance animations, a shimmering
   accent line, a celebratory glow when all spots are placed, an ambient
   pulse on the action buttons, and a hover effect on the prize
   thumbnail. Still purely visual/CSS - no functionality, JS, or element
   IDs touched.
   ===================================================================== */

@keyframes ftb-fade-in-up {
  0% { opacity: 0; transform: translateY(10px); }
  100% { opacity: 1; transform: translateY(0); }
}

@keyframes ftb-shimmer-line {
  0% { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}

@keyframes ftb-ambient-glow {
  0%, 100% { box-shadow: 0 4px 10px rgba(1, 23, 43, 0.22); }
  50% { box-shadow: 0 4px 16px rgba(37, 199, 223, 0.4); }
}

@keyframes ftb-success-pulse {
  0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.45); }
  70% { box-shadow: 0 0 0 10px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* Panels fade/slide in on load, staggered slightly so the ticket banner
   settles a beat before the product panel underneath it. */
.ftb-ticket-banner {
  animation: ftb-fade-in-up 0.4s ease both;
}

.ftb-product-group {
  animation: ftb-fade-in-up 0.4s ease 0.08s both;
}

/* Accent line on the ticket banner now shimmers continuously instead of
   sitting static. */
.ftb-ticket-banner::before {
  background-size: 200% 100%;
  animation: ftb-shimmer-line 3s linear infinite;
}

/* When all required spots are placed, the whole banner gets a soft
   celebratory green pulse - reuses the existing .complete state class
   that's already toggled by the game's own logic, so no JS changes are
   needed to trigger this. */
.ftb-ticket-banner.complete {
  animation: ftb-fade-in-up 0.4s ease both, ftb-success-pulse 1.6s ease-out 1;
}

/* Buttons get a slow ambient glow pulse when idle, in addition to the
   shine-sweep that already plays on hover - gives them a bit of life
   even before someone interacts with them. */
.ftb-qbtn,
.ftb-htpbtn {
  animation: ftb-ambient-glow 3.2s ease-in-out infinite;
}

/* Prize thumbnail: subtle zoom + shadow on hover, and a soft entrance
   pop when it first appears. */
.ftb-pg-thumb-placeholder {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ftb-pg-header:hover .ftb-pg-thumb-placeholder {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(10, 125, 194, 0.18);
}

@media (prefers-reduced-motion: reduce) {
  .ftb-ticket-banner,
  .ftb-product-group,
  .ftb-ticket-banner::before,
  .ftb-ticket-banner.complete,
  .ftb-qbtn,
  .ftb-htpbtn {
    animation: none !important;
  }
}

/* ===== END NEW SECTION 21 ===== */

/* =====================================================================
   NEW SECTION 22 - final richness pass. Upgrades the big "Submit Spots"
   button to the same metallic gradient + shine-sweep used everywhere
   else (it was still using the older flat two-tone gradient), and adds
   a soft gradient frame glow around the main canvas/photo area so the
   whole screen reads as one consistent premium package rather than a
   few isolated upgraded pieces. Purely visual - no functionality, JS,
   or element IDs touched.
   ===================================================================== */

#ftb-checkoutBtn {
  position: relative;
  overflow: hidden;
  background: linear-gradient(
    108deg,
    #01172b 0%,
    #032d50 18%,
    #075d8e 36%,
    #0b91c4 48%,
    #25c7df 55%,
    #0a8fc3 63%,
    #064d78 81%,
    #021a30 100%
  ) !important;
  background-size: 220% 100% !important;
  background-position: 0% 50% !important;
  box-shadow:
    0 4px 10px rgba(0, 20, 40, 0.25),
    0 10px 24px rgba(0, 110, 170, 0.28) !important;
  transition: background-position 0.5s ease, transform 0.15s ease, box-shadow 0.18s ease !important;
}

#ftb-checkoutBtn:hover:not(:disabled),
#ftb-checkoutBtn:focus-visible:not(:disabled) {
  background-position: 100% 50% !important;
  transform: translateY(-1px);
  box-shadow:
    0 6px 16px rgba(0, 20, 40, 0.3),
    0 14px 32px rgba(0, 110, 170, 0.35) !important;
  outline: none;
}

#ftb-checkoutBtn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -60%;
  width: 40%;
  height: 100%;
  background: linear-gradient(120deg, transparent 0%, rgba(255, 255, 255, 0.35) 50%, transparent 100%);
  transform: skewX(-20deg);
  transition: left 0.6s ease;
  pointer-events: none;
}

#ftb-checkoutBtn:hover:not(:disabled)::before {
  left: 130%;
}

#ftb-checkoutBtn:disabled {
  background: var(--ftb-gray-200) !important;
  box-shadow: none !important;
  transform: none !important;
}

#ftb-checkoutBtn:disabled::before {
  display: none;
}

/* Soft gradient frame glow around the main canvas/photo, tying the
   whole screen together visually. */
.ftb-canvas {
  position: relative;
}

.ftb-canvas::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  box-shadow: inset 0 0 0 2px rgba(37, 199, 223, 0.25);
  z-index: 200;
}

/* Spots Placed count uses the same gradient-fill text treatment as the
   numbers elsewhere on the site, for consistency. */
.ftb-tb-count.complete {
  background: linear-gradient(120deg, #059669, #10b981 60%, #34d399);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

@media (prefers-reduced-motion: reduce) {
  #ftb-checkoutBtn {
    transition: none !important;
  }
}

/* ===== END NEW SECTION 22 ===== */

/* =====================================================================
   NEW SECTION 23 - bigger premium push: animated full gradient borders
   around the Spots Placed banner and Placed Spots panel (not just a top
   accent line), a warm gold highlight woven into the blue palette for
   extra richness (a "big win" feel fits the prize/jackpot context better
   than blue alone), a floating animation on the prize thumbnail, and a
   more dramatic button glow. The gradient border technique here uses
   layered backgrounds (background-clip: padding-box/border-box) rather
   than a rotating conic-gradient - this avoids the distortion problems
   from earlier entirely, works on any box shape, and needs no extra
   wrapper elements, so nothing in the markup or JS changes.
   ===================================================================== */

@keyframes ftb-gold-shimmer {
  0% { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}

@keyframes ftb-icon-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

/* Animated full gradient border, gold woven into the blue for a richer
   "big win" feel. Works on any box shape - no distortion, no wrapper
   elements needed. */
.ftb-ticket-banner,
.ftb-product-group {
  border: 2px solid transparent !important;
  background-image:
    linear-gradient(#ffffff, #ffffff),
    linear-gradient(
      90deg,
      #01172b,
      #075d8e,
      #0b91c4,
      #f0b429,
      #25c7df,
      #0b91c4,
      #075d8e,
      #01172b
    );
  background-origin: border-box;
  background-clip: padding-box, border-box;
  background-size: 100% 100%, 260% 100%;
  animation: ftb-fade-in-up 0.4s ease both, ftb-gold-shimmer 4.5s linear infinite;
}

.ftb-product-group {
  animation: ftb-fade-in-up 0.4s ease 0.08s both, ftb-gold-shimmer 4.5s linear infinite;
}

/* Keep the warning/complete/empty state colours reading clearly on top
   of the new border treatment - the padding-box layer takes over the
   inner fill colour per state, border stays the animated gradient. */
.ftb-ticket-banner.warning {
  background-image:
    linear-gradient(#FFFBEB, #FFFBEB),
    linear-gradient(
      90deg,
      #01172b, #075d8e, #0b91c4, #f0b429, #25c7df, #0b91c4, #075d8e, #01172b
    );
}

.ftb-ticket-banner.complete {
  background-image:
    linear-gradient(#ECFDF5, #ECFDF5),
    linear-gradient(
      90deg,
      #059669, #10b981, #34d399, #f0b429, #34d399, #10b981, #059669
    );
}

.ftb-ticket-banner.empty {
  background-image:
    linear-gradient(#ffffff, #ffffff),
    linear-gradient(
      90deg,
      #01172b, #075d8e, #0b91c4, #f0b429, #25c7df, #0b91c4, #075d8e, #01172b
    );
}

/* Remove the old flat top-accent line - the full border above replaces
   it now. */
.ftb-ticket-banner::before {
  display: none;
}

/* Prize thumbnail gently floats, adding a touch of life at rest. */
.ftb-pg-thumb-placeholder {
  animation: ftb-icon-float 3s ease-in-out infinite;
}

.ftb-pg-header:hover .ftb-pg-thumb-placeholder {
  animation-play-state: paused;
}

/* Bigger, richer ambient glow on the action buttons, gold-tinted at the
   peak of the pulse instead of pure blue. */
@keyframes ftb-ambient-glow {
  0%, 100% { box-shadow: 0 4px 10px rgba(1, 23, 43, 0.22); }
  50% { box-shadow: 0 6px 20px rgba(240, 180, 41, 0.35), 0 4px 16px rgba(37, 199, 223, 0.35); }
}

@media (prefers-reduced-motion: reduce) {
  .ftb-ticket-banner,
  .ftb-product-group,
  .ftb-pg-thumb-placeholder {
    animation: none !important;
  }
}

/* ===== END NEW SECTION 23 ===== */

/* =====================================================================
   NEW SECTION 24 - back to pure blue shades (no gold this time), but
   pushed more vivid/noticeable. Placed-spot markers on the canvas now
   have a pulsing radar-style ring so they stand out more. And when all
   spots are placed, instead of a flat green box, the banner gets a
   bold animated blue border plus an actual confetti burst celebration.
   ===================================================================== */

/* Vivid, noticeable blue-only gradient border (gold removed) - brighter
   cyan and a near-white highlight stop pushed in for extra pop. */
.ftb-ticket-banner,
.ftb-product-group {
  background-image:
    linear-gradient(#ffffff, #ffffff),
    linear-gradient(
      90deg,
      #01172b,
      #075d8e,
      #0b91c4,
      #38bdf8,
      #7dd3fc,
      #38bdf8,
      #0b91c4,
      #075d8e,
      #01172b
    ) !important;
  background-origin: border-box;
  background-clip: padding-box, border-box;
  background-size: 100% 100%, 280% 100% !important;
}

.ftb-ticket-banner.warning {
  background-image:
    linear-gradient(#FFFBEB, #FFFBEB),
    linear-gradient(
      90deg,
      #01172b, #075d8e, #0b91c4, #38bdf8, #7dd3fc, #38bdf8, #0b91c4, #075d8e, #01172b
    ) !important;
}

.ftb-ticket-banner.empty {
  background-image:
    linear-gradient(#ffffff, #ffffff),
    linear-gradient(
      90deg,
      #01172b, #075d8e, #0b91c4, #38bdf8, #7dd3fc, #38bdf8, #0b91c4, #075d8e, #01172b
    ) !important;
}

/* Ambient button glow: pure blue, brighter/more noticeable than before. */
@keyframes ftb-ambient-glow {
  0%, 100% { box-shadow: 0 4px 10px rgba(1, 23, 43, 0.25); }
  50% { box-shadow: 0 0 22px 4px rgba(56, 189, 248, 0.55), 0 6px 20px rgba(11, 145, 196, 0.4); }
}

/* Placed-spot markers on the canvas: bigger glow ring that pulses, so
   each placed spot clearly stands out against the photo. */
@keyframes ftb-spot-radar-pulse {
  0% { box-shadow: 0 0 0 0 rgba(56, 189, 248, 0.55); }
  100% { box-shadow: 0 0 0 14px rgba(56, 189, 248, 0); }
}

.ftb-dot.my-dot {
  border-radius: 50%;
}

.ftb-dot.my-dot::before,
.ftb-dot.my-dot::after {
  box-shadow: 0 0 0 1.5px #fff, 0 0 8px rgba(56, 189, 248, 1), 0 0 20px rgba(56, 189, 248, 0.55);
}

.ftb-dot.my-dot {
  animation: ftb-spot-radar-pulse 1.8s ease-out infinite;
}

/* ===== Complete state: bold animated border + real confetti burst,
     instead of a flat green box. Green is dropped entirely here in
     favour of the same vivid blue treatment as everything else, with
     confetti doing the celebratory work instead of a colour change. ===== */
.ftb-ticket-banner.complete {
  background-image:
    linear-gradient(#eef9ff, #eef9ff),
    linear-gradient(
      90deg,
      #01172b, #075d8e, #0b91c4, #38bdf8, #7dd3fc, #38bdf8, #0b91c4, #075d8e, #01172b
    ) !important;
  background-size: 100% 100%, 200% 100% !important;
  animation: ftb-fade-in-up 0.4s ease both, ftb-gold-shimmer 2.2s linear infinite, ftb-success-pulse 1.6s ease-out 1;
}

/* Confetti burst - a scattering of small coloured squares that fly
   outward and fade the moment the banner reaches "complete". Built with
   a single pseudo-element using the multi-box-shadow trick, so no extra
   markup is needed. Plays once via the animation restarting whenever
   the "complete" class is freshly applied by the existing game logic. */
@keyframes ftb-confetti-burst {
  0% {
    opacity: 1;
    transform: scale(0.3) rotate(0deg);
  }
  70% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: scale(1.6) rotate(35deg);
  }
}

.ftb-ticket-banner.complete::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 18%;
  width: 6px;
  height: 6px;
  pointer-events: none;
  z-index: 5;
  box-shadow:
    -40px -18px 0 0 #38bdf8,
    -20px -32px 0 0 #f0b429,
    0px -26px 0 0 #ffffff,
    20px -34px 0 0 #0b91c4,
    40px -16px 0 0 #38bdf8,
    55px 4px 0 0 #f0b429,
    -55px 6px 0 0 #ffffff,
    -35px 22px 0 0 #0b91c4,
    -10px 30px 0 0 #38bdf8,
    15px 28px 0 0 #f0b429,
    38px 20px 0 0 #ffffff,
    60px 0px 0 0 #0b91c4;
  animation: ftb-confetti-burst 0.9s ease-out 1;
}

.ftb-tb-count.complete {
  background: linear-gradient(120deg, #085a8d, #0b91c4 55%, #7dd3fc);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

@media (prefers-reduced-motion: reduce) {
  .ftb-dot.my-dot,
  .ftb-ticket-banner.complete::after {
    animation: none !important;
  }
}

/* ===== END NEW SECTION 24 ===== */

/* =====================================================================
   NEW SECTION 25 - fixes the confetti not disappearing after the burst
   (it was missing animation-fill-mode: forwards, so it snapped back to
   fully visible once the animation finished), and makes the whole
   celebration bigger: more particles, a second staggered burst layer
   flying the opposite direction, size variation between pieces, and a
   quick scale-pop on the banner itself for extra impact at the moment
   of completion.
   ===================================================================== */

@keyframes ftb-confetti-burst {
  0% {
    opacity: 1;
    transform: scale(0.3) rotate(0deg);
  }
  60% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: scale(2) rotate(50deg);
  }
}

@keyframes ftb-confetti-burst-reverse {
  0% {
    opacity: 1;
    transform: scale(0.3) rotate(0deg);
  }
  60% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: scale(2.1) rotate(-60deg);
  }
}

@keyframes ftb-banner-pop {
  0% { transform: scale(1); }
  35% { transform: scale(1.035); }
  100% { transform: scale(1); }
}

/* First confetti layer - bigger spread, more pieces, varied sizes via
   differing box-shadow blur, mixed blue/gold/white palette. Fill-mode
   forwards is the key fix: keeps it faded out (opacity 0) once the
   0.9s burst finishes, instead of reverting to fully visible. */
.ftb-ticket-banner.complete::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 18%;
  width: 6px;
  height: 6px;
  pointer-events: none;
  z-index: 5;
  box-shadow:
    -55px -22px 0 0 #38bdf8,
    -30px -42px 1px 0 #f0b429,
    0px -34px 0 0 #ffffff,
    28px -44px 1px 0 #0b91c4,
    55px -20px 0 0 #38bdf8,
    72px 6px 1px 0 #f0b429,
    -72px 8px 0 0 #ffffff,
    -46px 28px 1px 0 #0b91c4,
    -14px 38px 0 0 #38bdf8,
    18px 36px 1px 0 #f0b429,
    50px 26px 0 0 #ffffff,
    78px 2px 1px 0 #0b91c4,
    -20px -55px 0 0 #f0b429,
    35px 50px 1px 0 #38bdf8;
  animation: ftb-confetti-burst 1.1s ease-out 1 forwards;
}

/* Second confetti layer, spinning the opposite way with a slight delay
   for a fuller "shower" look rather than one flat burst. Re-enables
   ::before specifically for the complete state (Section 23 turned the
   general ::before off for the old top accent line). */
.ftb-ticket-banner.complete::before {
  content: "";
  display: block;
  position: absolute;
  top: 45%;
  left: 78%;
  width: 5px;
  height: 5px;
  pointer-events: none;
  z-index: 5;
  box-shadow:
    -48px 14px 1px 0 #0b91c4,
    -22px 40px 0 0 #f0b429,
    6px 48px 1px 0 #ffffff,
    32px 36px 0 0 #38bdf8,
    54px 10px 1px 0 #f0b429,
    58px -18px 0 0 #0b91c4,
    30px -40px 1px 0 #38bdf8,
    0px -48px 0 0 #ffffff,
    -28px -38px 1px 0 #f0b429,
    -50px -12px 0 0 #38bdf8;
  animation: ftb-confetti-burst-reverse 1.15s ease-out 0.06s 1 forwards;
}

/* Quick scale-pop on the whole banner right at the moment of
   completion, for a bit more physical "impact" alongside the confetti. */
.ftb-ticket-banner.complete {
  animation:
    ftb-fade-in-up 0.4s ease both,
    ftb-gold-shimmer 2.2s linear infinite,
    ftb-banner-pop 0.45s ease-out 1;
}

@media (prefers-reduced-motion: reduce) {
  .ftb-ticket-banner.complete::after,
  .ftb-ticket-banner.complete::before,
  .ftb-ticket-banner.complete {
    animation: none !important;
  }
}

/* ===== END NEW SECTION 25 ===== */

/* ===== END NEW SECTION ===== */

@media (max-width: 768px) {
  .ppstb-gateway-card {
    padding: 20px;
    border-radius: 18px;
  }

  #ftb-imgWrap,
  #ftb-worldImg {
    box-shadow: none;
    filter: none;
  }

  #ftb-canvasBg {
    display: none;
  }

  .ppstb-gateway-stats,
  .ppstb-gateway-controls {
    grid-template-columns: 1fr;
  }

  .ppstb-gateway-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .ppstb-gateway-howto-button,
  .ppstb-gateway-button {
    width: 100%;
  }

  .ppstb-gateway-title {
    font-size: 24px;
  }
}

.ppstb-competition-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 28px;
  align-items: start;
  margin: 24px 0;
}

.ppstb-competition-content {
  min-width: 0;
}

.ppstb-competition-sidebar {
  position: sticky;
  top: 24px;
  margin: 0;
  padding: 0;
}

.ppstb-competition-sidebar .ppstb-enter-card {
  margin: 0;
}

.ppstb-enter-card {
  background: #ffffff;
  border: 1px solid rgba(10, 125, 194, 0.2);
  border-radius: 14px;
  box-shadow: 0 12px 32px rgba(8, 90, 141, 0.12);
  padding: 20px;
}

.ppstb-enter-title {
  margin: 0 0 6px;
  color: #085a8d;
  font-size: 20px;
  line-height: 1.2;
}

.ppstb-enter-copy {
  margin: 0 0 14px;
  color: #334155;
  font-size: 14px;
}

.ppstb-enter-label {
  display: block;
  margin-bottom: 6px;
  color: #475569;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.ppstb-enter-counter {
  display: grid;
  grid-template-columns: 44px minmax(76px, 1fr) 44px;
  gap: 8px;
  align-items: center;
  margin-bottom: 10px;
}

.ppstb-enter-count-btn {
  height: 44px;
  border: 1px solid rgba(10, 125, 194, 0.24);
  background: #f8fafc;
  color: #085a8d;
  border-radius: 10px;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.ppstb-enter-count-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.ppstb-enter-count-input {
  width: 100%;
  height: 44px;
  border: 1px solid rgba(10, 125, 194, 0.24);
  border-radius: 10px;
  text-align: center;
  font-size: 26px;
  font-weight: 800;
  color: #0a7dc2;
  background: #ffffff;
}

.ppstb-enter-meta {
  margin: 0 0 16px;
  color: #64748b;
  font-size: 13px;
}

.ppstb-enter-next {
  width: 100%;
  text-align: center;
  margin-bottom: 8px;
}

.ppstb-enter-notice {
  margin: 0;
  color: #b91c1c;
  font-size: 13px;
  line-height: 1.5;
}

.ppstb-inline-notification-wrap {
  margin: 10px 0 0;
}

.ppstb-inline-notification.notification {
  width: 100%;
  margin: 0;
  border-radius: 12px;
}

.ppstb-inline-notification.notification.show {
  max-height: 140px;
}

.ppstb-inline-notification.mycred-notification-box {
  width: 100%;
  margin: 0;
  position: static;
  top: auto;
  right: auto;
  bottom: auto;
  left: auto;
  transform: none;
  z-index: auto;
}

.ppstb-inline-notification.notice-item {
  width: 100%;
  margin: 0;
  position: static;
  top: auto;
  right: auto;
  bottom: auto;
  left: auto;
  transform: none;
  z-index: auto;
}

.ppstb-inline-game-shell {
  margin-top: 24px;
}

@media (max-width: 1024px) {
  .ppstb-competition-layout {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .ppstb-competition-sidebar {
    position: static;
  }
}