#full-area.pirate-ball {
  width: 100%;
  height: 100vh;
  position: absolute;
  overflow: hidden;
  background: #1f86c4;
  user-select: none;
  font-family: "Fredoka", "Segoe UI", system-ui, sans-serif;
  color: #1d1420;
}
#full-area.pirate-ball :where(#gameContainer, #gameContainer *) {
  font-family: "Fredoka", "Segoe UI", system-ui, sans-serif;
  letter-spacing: 0;
  line-height: 1.15;
  margin: 0;
  box-sizing: border-box;
}
#full-area.pirate-ball #game-area {
  position: absolute;
  width: 1280px;
  height: 720px;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) scale(1) !important;
}
#full-area.pirate-ball #gameContainer {
  position: absolute;
  width: 1280px;
  height: 720px;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  overflow: hidden;
  background: #3cc4f5;
  outline: none;
}
#full-area.pirate-ball #pb-canvas {
  position: absolute;
  left: 0;
  top: 0;
  width: 1280px;
  height: 720px;
  display: block;
  outline: none;
}
#full-area.pirate-ball .pb-tip {
  position: absolute;
  left: 44px;
  top: 250px;
  width: 290px;
  transform: translateX(-16px);
  padding: 14px 20px;
  font-family: "Lilita One", "Arial Black", Impact, sans-serif;
  font-weight: 400;
  font-size: 26px;
  line-height: 1.2;
  color: #1d1420;
  text-align: center;
  background: #fff3dc;
  border: 4px solid #1d1420;
  border-radius: 14px;
  box-shadow: 0 5px 0 #1d1420;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
}
#full-area.pirate-ball .pb-tip.is-on {
  opacity: 1;
  transform: translateX(0);
}
#full-area.pirate-ball .pb-meter {
  position: absolute;
  left: 30px;
  bottom: 84px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
#full-area.pirate-ball[data-state=enter] .pb-meter, #full-area.pirate-ball[data-state=spin] .pb-meter, #full-area.pirate-ball[data-state=flight] .pb-meter, #full-area.pirate-ball[data-state=caught] .pb-meter, #full-area.pirate-ball[data-state=reseat] .pb-meter, #full-area.pirate-ball[data-state=fail] .pb-meter {
  opacity: 1;
  pointer-events: auto;
}
#full-area.pirate-ball .pb-meter-bar {
  position: relative;
  width: 318px;
  height: 28px;
  border: 4px solid #1d1420;
  border-radius: 14px;
  background: #fff3dc;
  box-shadow: 0 4px 0 #1d1420, inset 0 4px 0 #e9d3ad;
  overflow: hidden;
}
#full-area.pirate-ball .pb-meter-fill {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 100%;
  transform-origin: left;
  transform: scaleX(0);
  background: #ffd23f;
  box-shadow: inset 0 -6px 0 #d98f12, inset 0 4px 0 #ffe98a;
  transition: opacity 0.15s ease;
}
#full-area.pirate-ball .pb-meter[data-mode=loud] .pb-meter-fill {
  background: #ff8a3a;
  box-shadow: inset 0 -6px 0 #d4561f, inset 0 4px 0 #ffb27a;
}
#full-area.pirate-ball .pb-meter[data-mode=wait] .pb-meter-fill {
  opacity: 0.45;
}
#full-area.pirate-ball .pb-meter-line {
  position: absolute;
  top: -2px;
  bottom: -2px;
  left: 50%;
  width: 4px;
  margin-left: -2px;
  background: #1d1420;
}
#full-area.pirate-ball .pb-boost {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}
#full-area.pirate-ball .pb-boost .pb-mic {
  width: 26px;
  height: 26px;
  flex: none;
}
#full-area.pirate-ball .pb-sens {
  --pct: 25%;
  -webkit-appearance: none;
  appearance: none;
  width: 222px;
  height: 18px;
  margin: 0;
  padding: 0;
  border-radius: 10px;
  border: 3px solid #1d1420;
  background: linear-gradient(90deg, #ffd23f var(--pct), #fff3dc var(--pct));
  box-shadow: 0 3px 0 #1d1420, inset 0 3px 0 rgba(29, 20, 32, 0.18);
  outline: none;
  cursor: pointer;
}
#full-area.pirate-ball .pb-sens::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #ffd23f;
  border: 4px solid #1d1420;
  box-shadow: inset 0 -5px 0 #d98f12, 0 3px 0 #1d1420;
  cursor: grab;
}
#full-area.pirate-ball .pb-sens::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #ffd23f;
  border: 4px solid #1d1420;
  box-shadow: inset 0 -5px 0 #d98f12, 0 3px 0 #1d1420;
  cursor: grab;
}
#full-area.pirate-ball #pb-sens-value {
  min-width: 44px;
  font-family: "Lilita One", "Arial Black", Impact, sans-serif;
  font-weight: 400;
  font-size: 22px;
  line-height: 1;
  color: #ffd23f;
  text-shadow: 2.5px 0 0 #1d1420, 2.31px 0.96px 0 #1d1420, 1.77px 1.77px 0 #1d1420, 0.96px 2.31px 0 #1d1420, 0 2.5px 0 #1d1420, -0.96px 2.31px 0 #1d1420, -1.77px 1.77px 0 #1d1420, -2.31px 0.96px 0 #1d1420, -2.5px 0 0 #1d1420, -2.31px -0.96px 0 #1d1420, -1.77px -1.77px 0 #1d1420, -0.96px -2.31px 0 #1d1420, 0 -2.5px 0 #1d1420, 0.96px -2.31px 0 #1d1420, 1.77px -1.77px 0 #1d1420, 2.31px -0.96px 0 #1d1420, 0 4px 0 #1d1420;
}
#full-area.pirate-ball .pb-message {
  position: absolute;
  left: 50%;
  top: 548px;
  transform: translateX(-50%);
  max-width: 560px;
  padding: 14px 22px;
  font-family: "Fredoka", "Segoe UI", system-ui, sans-serif;
  font-weight: 700;
  font-size: 20px;
  color: #1d1420;
  text-align: center;
  background: #fff3dc;
  border: 4px solid #1d1420;
  border-radius: 14px;
  box-shadow: 0 5px 0 #1d1420;
}
#full-area.pirate-ball .pb-message[hidden] {
  display: none;
}
#full-area.pirate-ball .pb-menu, #full-area.pirate-ball .pb-over {
  position: absolute;
  inset: 0;
  display: none;
}
#full-area.pirate-ball[data-state=menu] .pb-menu, #full-area.pirate-ball[data-state=over] .pb-over {
  display: block;
}
#full-area.pirate-ball .pb-btn {
  position: absolute;
  width: 300px;
  height: 80px;
  padding: 0 0 9px;
  font-family: "Lilita One", "Arial Black", Impact, sans-serif;
  font-weight: 400;
  font-size: 33px;
  line-height: 1;
  border: 0;
  background: transparent center/100% 100% no-repeat;
  white-space: nowrap;
  will-change: transform;
  transition: transform 0.12s ease;
}
#full-area.pirate-ball .pb-btn:hover, #full-area.pirate-ball .pb-btn:focus-visible {
  transform: translateY(-2px);
}
#full-area.pirate-ball .pb-btn:active {
  transform: translateY(2px);
}
#full-area.pirate-ball .pb-btn-yellow {
  background-image: url("/media/games/pirate-ball/ui/btn-wood-yellow.webp");
  color: #4a2a14;
}
#full-area.pirate-ball .pb-btn-blue {
  background-image: url("/media/games/pirate-ball/ui/btn-wood-blue.webp");
  color: #ffffff;
  text-shadow: 2.5px 0 0 #1d4f7a, 2.31px 0.96px 0 #1d4f7a, 1.77px 1.77px 0 #1d4f7a, 0.96px 2.31px 0 #1d4f7a, 0 2.5px 0 #1d4f7a, -0.96px 2.31px 0 #1d4f7a, -1.77px 1.77px 0 #1d4f7a, -2.31px 0.96px 0 #1d4f7a, -2.5px 0 0 #1d4f7a, -2.31px -0.96px 0 #1d4f7a, -1.77px -1.77px 0 #1d4f7a, -0.96px -2.31px 0 #1d4f7a, 0 -2.5px 0 #1d4f7a, 0.96px -2.31px 0 #1d4f7a, 1.77px -1.77px 0 #1d4f7a, 2.31px -0.96px 0 #1d4f7a, 0 4px 0 #1d4f7a;
}
#full-area.pirate-ball .pb-menu .pb-btn {
  top: 532px;
  animation: pb-rise 0.35s ease-out both;
}
#full-area.pirate-ball .pb-over .pb-btn {
  top: 538px;
  animation: pb-rise 0.35s 1s ease-out both;
}
#full-area.pirate-ball .pb-btn-yellow {
  left: 318px;
}
#full-area.pirate-ball .pb-btn-blue {
  left: 662px;
}

@keyframes pb-rise {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
