@font-face {
  font-family: peUi;
  src: url("/media/games/pancake-empire/fonts/Gorditas-Bold.ttf");
  font-display: swap;
}
#full-area {
  position: absolute;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  background: #2c1806;
  user-select: none;
}
#full-area #game-area {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 1280px;
  height: 720px;
  overflow: hidden;
  transform: translate(-50%, -50%);
  background: #f5e7cd;
  font-family: peUi, sans-serif;
}
#full-area #pe-canvas, #full-area #pe-3d, #full-area #pe-fx {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}
#full-area #pe-3d, #full-area #pe-fx {
  pointer-events: none;
}
#full-area [hidden] {
  display: none !important;
}
#full-area #pe-hud {
  position: absolute;
  left: 22px;
  top: 16px;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  pointer-events: none;
}
#full-area #pe-hud .pe-counter {
  position: relative;
  width: 222px;
  height: 145px;
  background: url("/media/games/pancake-empire/images/total-pancakes.png") no-repeat center/100% 100%;
  filter: drop-shadow(0 6px 8px rgba(30, 12, 2, 0.35));
}
#full-area #pe-hud .pe-counter-num {
  position: absolute;
  left: 14%;
  right: 14%;
  top: 8%;
  height: 42%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #5ef05e;
  font-size: 50px;
  line-height: 1;
  text-shadow: 0 3px 0 rgba(0, 0, 0, 0.45);
}
#full-area #pe-hud .pe-counter-label {
  position: absolute;
  left: 8%;
  right: 6%;
  top: 52%;
  height: 38%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 26px;
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.45);
}
#full-area #pe-hud .pe-best {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 190px;
  height: 50px;
  padding-left: 12px;
  background: url("/media/games/pancake-empire/images/timer.png") no-repeat center/100% 100%;
  color: #ffc23d;
  font-size: 22px;
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.45);
}
#full-area #pe-hud .pe-best span {
  color: #fff;
}
#full-area #pe-meter {
  position: absolute;
  left: 40px;
  top: 248px;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  pointer-events: none;
}
#full-area #pe-meter .pe-meter-track {
  position: relative;
  width: 44px;
  height: 220px;
  overflow: visible;
  border: 5px solid #8a4d22;
  border-radius: 24px;
  background: #3c2415;
  box-shadow: 0 0 0 3px #e8901a, 0 6px 10px rgba(30, 12, 2, 0.4), inset 0 4px 8px rgba(0, 0, 0, 0.35);
}
#full-area #pe-meter .pe-meter-fill {
  position: absolute;
  left: 4px;
  right: 4px;
  bottom: 4px;
  height: 0;
  max-height: calc(100% - 8px);
  border-radius: 16px;
  background: linear-gradient(0deg, #b8611a 0%, #e8901a 45%, #ffc23d 100%);
  box-shadow: inset 0 2px 0 rgba(255, 236, 170, 0.8);
}
#full-area #pe-meter .pe-meter-line {
  position: absolute;
  left: -12px;
  right: -12px;
  bottom: 62%;
  height: 6px;
  border-radius: 3px;
  background: #ffc23d;
  box-shadow: 0 0 0 2px #3a1d06;
}
#full-area #pe-meter .pe-meter-line span {
  position: absolute;
  left: 100%;
  top: 50%;
  margin-left: 10px;
  padding: 6px 14px 4px;
  border: 3px solid #e8901a;
  border-radius: 10px;
  background: #3c2415;
  color: #c9b49a;
  font-size: 20px;
  white-space: nowrap;
  transform: translateY(-50%);
  transition: color 0.15s, background 0.15s;
}
#full-area #pe-meter .pe-meter-mic {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border: 4px solid #e8901a;
  border-radius: 50%;
  background: #3c2415;
  box-shadow: 0 4px 8px rgba(30, 12, 2, 0.4);
}
#full-area #pe-meter .pe-meter-mic svg {
  width: 28px;
  height: 28px;
  fill: #ffc23d;
}
#full-area #pe-meter.is-ready .pe-meter-line span {
  color: #5ef05e;
}
#full-area #pe-meter.is-hit .pe-meter-track {
  animation: pe-meter-hit 0.35s ease-out;
}
#full-area #pe-sens {
  position: absolute;
  left: 16px;
  top: 562px;
  z-index: 6;
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 210px;
  padding: 8px 12px 9px;
  box-sizing: border-box;
  border: 3px solid #e8901a;
  border-radius: 10px;
  background: #3c2415;
  box-shadow: 0 6px 10px rgba(30, 12, 2, 0.4);
}
#full-area #pe-sens label {
  display: flex;
  justify-content: space-between;
  color: #fff;
  font-size: 18px;
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.45);
}
#full-area #pe-sens label span {
  color: #5ef05e;
}
#full-area #pe-sens .pe-sens-row {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #ffc23d;
  font-size: 26px;
  line-height: 1;
}
#full-area #pe-sens input[type=range] {
  flex: 1;
  min-width: 0;
  height: 22px;
  margin: 0;
  background: transparent;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}
#full-area #pe-sens input[type=range]::-webkit-slider-runnable-track {
  height: 8px;
  border-radius: 4px;
  background: #1f0f06;
  box-shadow: inset 0 0 0 1px #8a4d22;
}
#full-area #pe-sens input[type=range]::-webkit-slider-thumb {
  width: 22px;
  height: 22px;
  margin-top: -7px;
  border: 3px solid #3a1d06;
  border-radius: 50%;
  background: #ffc23d;
  -webkit-appearance: none;
  appearance: none;
}
#full-area #pe-sens input[type=range]::-moz-range-track {
  height: 8px;
  border-radius: 4px;
  background: #1f0f06;
  box-shadow: inset 0 0 0 1px #8a4d22;
}
#full-area #pe-sens input[type=range]::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border: 3px solid #3a1d06;
  border-radius: 50%;
  background: #ffc23d;
}
#full-area #pe-sens input[type=range]:focus-visible {
  outline: 2px solid #ffc23d;
  outline-offset: 2px;
}
#full-area #pe-callout {
  position: absolute;
  left: 50%;
  top: 120px;
  z-index: 7;
  color: #fff;
  font-size: 60px;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, 0) scale(0.6);
  -webkit-text-stroke: 4px #3a1d06;
  paint-order: stroke fill;
  text-shadow: 0 6px 0 #3a1d06;
}
#full-area #pe-callout.is-perfect {
  color: #ffc23d;
}
#full-area #pe-callout.is-on {
  animation: pe-callout 1.1s ease-out forwards;
}
#full-area .pe-panel {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  transform: translate(-50%, -50%);
}
#full-area #pe-start {
  width: 660px;
}
#full-area #pe-start .pe-logo {
  width: 400px;
  height: auto;
  animation: pe-float 2.6s ease-in-out infinite;
  filter: drop-shadow(0 10px 14px rgba(58, 29, 6, 0.35));
}
#full-area #pe-start .pe-sign {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  width: 500px;
  height: 192px;
  margin: -8px 0 12px;
  padding: 0 40px 34px;
  box-sizing: border-box;
  background: url("/media/games/pancake-empire/stack/ui-sign.png") no-repeat center/100% 100%;
}
#full-area #pe-start .pe-sign p {
  margin: 0;
  color: #3a1d06;
  font-size: 25px;
  line-height: 1.25;
  text-align: center;
}
#full-area .pe-btn {
  position: relative;
  width: 300px;
  height: 112px;
  padding: 0;
  border: 0;
  background: url("/media/games/pancake-empire/stack/ui-button.png") no-repeat center/100% 100%;
  color: #ffc23d;
  font-family: peUi, sans-serif;
  font-size: 46px;
  cursor: pointer;
  text-shadow: 0 3px 0 rgba(0, 0, 0, 0.5);
  filter: drop-shadow(0 8px 10px rgba(30, 12, 2, 0.35));
  transition: transform 0.15s;
}
#full-area .pe-btn span {
  position: relative;
  top: -4px;
}
#full-area .pe-btn:hover, #full-area .pe-btn:focus-visible {
  transform: translateY(-3px) scale(1.04);
}
#full-area .pe-btn:active {
  transform: translateY(2px) scale(0.98);
}
#full-area .pe-img-btn {
  position: relative;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  filter: drop-shadow(0 8px 10px rgba(30, 12, 2, 0.4));
  transition: transform 0.15s;
}
#full-area .pe-img-btn img {
  display: block;
  width: 270px;
  height: auto;
}
#full-area .pe-img-btn:hover, #full-area .pe-img-btn:focus-visible {
  transform: translateY(-3px) scale(1.04);
}
#full-area .pe-img-btn:active {
  transform: translateY(2px) scale(0.98);
}
#full-area .pe-btn.is-loading,
#full-area .pe-img-btn.is-loading {
  pointer-events: none;
}
#full-area .pe-btn.is-loading > *,
#full-area .pe-img-btn.is-loading > * {
  visibility: hidden;
}
#full-area .pe-btn.is-loading::after,
#full-area .pe-img-btn.is-loading::after {
  content: "Loading...";
  position: absolute;
  inset: 12% 10% 22%;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: #3c2415;
  color: #ffc23d;
  font-family: peUi, sans-serif;
  font-size: 30px;
}
#full-area #pe-over {
  width: 780px;
}
#full-area #pe-over .pe-board {
  position: relative;
  width: 780px;
  height: 380px;
  background: url("/media/games/pancake-empire/images/game-over.png") no-repeat center/100% 100%;
  filter: drop-shadow(0 14px 20px rgba(30, 12, 2, 0.45));
}
#full-area #pe-over .pe-board-row {
  position: absolute;
  left: 9%;
  right: 9%;
  top: 33%;
  display: flex;
  justify-content: space-between;
  color: #fff;
  font-size: 34px;
}
#full-area #pe-over .pe-board-row b {
  color: #5ef05e;
  font-weight: normal;
}
#full-area #pe-over #pe-final-best.is-new {
  color: #ffc23d;
}
#full-area #pe-over .pe-board-icon {
  position: absolute;
  left: 50%;
  top: 47%;
  width: 96px;
  height: auto;
  transform: translateX(-50%);
}
#full-area #pe-over .pe-board-msg {
  position: absolute;
  left: 6%;
  right: 6%;
  top: 74%;
  color: #fff;
  font-size: 38px;
  text-align: center;
  text-shadow: 0 3px 0 rgba(0, 0, 0, 0.4);
}
#full-area #pe-over .pe-over-btns {
  display: flex;
  gap: 40px;
  margin-top: 18px;
}

@keyframes pe-meter-hit {
  0% {
    transform: scale(1);
  }
  30% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
  }
}
@keyframes pe-callout {
  0% {
    opacity: 0;
    transform: translate(-50%, 0) scale(0.6);
  }
  18% {
    opacity: 1;
    transform: translate(-50%, 0) scale(1.12);
  }
  30% {
    transform: translate(-50%, 0) scale(1);
  }
  75% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -40px) scale(1);
  }
}
@keyframes pe-float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}
@media (prefers-reduced-motion: reduce) {
  #full-area .pe-logo {
    animation: none;
  }
}
