@keyframes gl-say-in {
  0% {
    scale: 1 0;
    opacity: 0;
  }
  55% {
    scale: 1.08 1.18;
    opacity: 1;
  }
  78% {
    scale: 1.04 0.92;
    opacity: 1;
  }
  100% {
    scale: 1;
    opacity: 1;
  }
}
@keyframes gl-stamp {
  0% {
    opacity: 0;
    transform: scale(2.4) rotate(-6deg);
  }
  45% {
    opacity: 1;
    transform: scale(0.9) rotate(1deg);
  }
  68% {
    transform: scale(1.06, 0.95) rotate(0deg);
  }
  84% {
    transform: scale(0.98, 1.02);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}
@keyframes gl-shade-in {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}
@keyframes gl-rise {
  0% {
    opacity: 0;
    transform: translateY(40px) scale(0.9);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
#full-area.ghost-loop {
  width: 100%;
  height: 100vh;
  position: absolute;
  overflow: hidden;
  background: #120b1c;
  user-select: none;
  font-family: "Fredoka", "Segoe UI", system-ui, sans-serif;
  color: #fff3cf;
}
#full-area.ghost-loop section, #full-area.ghost-loop section *, #full-area.ghost-loop .gl-meter, #full-area.ghost-loop .gl-meter * {
  font-family: "Fredoka", "Segoe UI", system-ui, sans-serif;
  letter-spacing: 0;
  line-height: 1.2;
  margin: 0;
  box-sizing: border-box;
}
#full-area.ghost-loop .gl-meter * {
  cursor: inherit;
}
#full-area.ghost-loop #game-area {
  position: absolute;
  width: 1280px;
  height: 720px;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) scale(1) !important;
}
#full-area.ghost-loop #gameContainer {
  position: absolute;
  width: 1280px;
  height: 720px;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  overflow: hidden;
  background: #120b1c;
}
#full-area.ghost-loop #gl-canvas {
  position: absolute;
  left: 0;
  top: 0;
  width: 1280px;
  height: 720px;
  outline: none;
}
#full-area.ghost-loop .gl-meter {
  position: absolute;
  z-index: 3;
  left: 26px;
  bottom: 88px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0s linear 0.25s;
}
#full-area.ghost-loop[data-state=play] .gl-meter {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.25s ease, visibility 0s linear 0s;
}
#full-area.ghost-loop .gl-say {
  position: absolute;
  z-index: 3;
  right: 60px;
  bottom: 112px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  rotate: -4deg;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
#full-area.ghost-loop .gl-say .gl-say-label {
  margin: 0 10px -6px 0;
  font-family: "Lilita One", "Arial Black", Impact, sans-serif;
  font-weight: 400;
  font-size: 36px;
  line-height: 1;
  color: #ffc83a;
  -webkit-text-stroke: 10px #0d0b16;
  paint-order: stroke fill;
  text-shadow: 0 4px 0 #0d0b16;
  transform-origin: 50% 100%;
}
#full-area.ghost-loop .gl-say .gl-say-word {
  display: flex;
  align-items: baseline;
  transform-origin: 100% 100%;
}
#full-area.ghost-loop .gl-say .gl-say-word i {
  display: block;
  font-family: "Lilita One", "Arial Black", Impact, sans-serif;
  font-style: normal;
  font-weight: 400;
  line-height: 1;
  color: #fff3cf;
  -webkit-text-stroke: 14px #0d0b16;
  paint-order: stroke fill;
  text-shadow: 0 7px 0 #0d0b16;
  transform-origin: 50% 100%;
  transition: color 0.15s ease;
}
#full-area.ghost-loop .gl-say .gl-say-word i:nth-child(1) {
  font-size: 76px;
  rotate: -4deg;
}
#full-area.ghost-loop .gl-say .gl-say-word i:nth-child(2) {
  font-size: 82px;
  rotate: 2deg;
}
#full-area.ghost-loop .gl-say .gl-say-word i:nth-child(3) {
  font-size: 86px;
  rotate: -3deg;
}
#full-area.ghost-loop .gl-say .gl-say-word i:nth-child(4) {
  font-size: 88px;
  rotate: 6deg;
  margin-left: 3px;
}
#full-area.ghost-loop .gl-say.is-loud .gl-say-word i {
  color: #7dff6a;
}
#full-area.ghost-loop[data-state=play] .gl-say {
  opacity: 1;
}
#full-area.ghost-loop[data-state=play] .gl-say .gl-say-label,
#full-area.ghost-loop[data-state=play] .gl-say .gl-say-word i {
  animation: gl-say-in 0.45s ease-out both;
}
#full-area.ghost-loop[data-state=play] .gl-say .gl-say-label {
  animation-delay: 0.1s;
}
#full-area.ghost-loop[data-state=play] .gl-say .gl-say-word i:nth-child(1) {
  animation-delay: 0.22s;
}
#full-area.ghost-loop[data-state=play] .gl-say .gl-say-word i:nth-child(2) {
  animation-delay: 0.28s;
}
#full-area.ghost-loop[data-state=play] .gl-say .gl-say-word i:nth-child(3) {
  animation-delay: 0.34s;
}
#full-area.ghost-loop[data-state=play] .gl-say .gl-say-word i:nth-child(4) {
  animation-delay: 0.4s;
}
#full-area.ghost-loop .gl-meter-row, #full-area.ghost-loop .gl-sens-row {
  display: flex;
  align-items: center;
  gap: 9px;
}
#full-area.ghost-loop .gl-meter-row svg, #full-area.ghost-loop .gl-sens-row svg {
  width: 28px;
  height: 28px;
  flex: none;
}
#full-area.ghost-loop .gl-meter-track {
  position: relative;
  width: 230px;
  height: 28px;
  border: 5px solid #4a3570;
  border-radius: 14px;
  background: #12301c;
  box-shadow: 0 0 0 3px #0d0b16, 0 5px 0 3px #0d0b16, inset 0 5px 0 #0a1d10;
  overflow: hidden;
}
#full-area.ghost-loop .gl-meter-fill {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0;
  border-radius: 0 9px 9px 0;
  background: #3fcf4f;
  box-shadow: inset 0 -5px 0 #1f7a33, inset 0 4px 0 #d4ffb8;
}
#full-area.ghost-loop .gl-meter[data-hot="1"] .gl-meter-fill {
  background: #ff8a1f;
  box-shadow: inset 0 -5px 0 #c2520a, inset 0 4px 0 #ffd08a;
}
#full-area.ghost-loop .gl-meter-gate {
  position: absolute;
  top: -2px;
  bottom: -2px;
  width: 4px;
  margin-left: -2px;
  background: #0d0b16;
  box-shadow: 0 0 0 1px rgba(212, 255, 184, 0.5);
}
#full-area.ghost-loop .gl-sens-label {
  width: 28px;
  font-family: "Lilita One", "Arial Black", Impact, sans-serif;
  font-size: 16px;
  color: #fff3cf;
  -webkit-text-stroke: 4px #0d0b16;
  paint-order: stroke fill;
}
#full-area.ghost-loop .gl-sens {
  width: 170px;
  height: 22px;
  margin: 0;
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
}
#full-area.ghost-loop .gl-sens::-webkit-slider-runnable-track {
  height: 10px;
  border-radius: 5px;
  background: #2a1d40;
  border: 3px solid #0d0b16;
}
#full-area.ghost-loop .gl-sens::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  margin-top: -9px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 32%, #d4ffb8 0 22%, #3fcf4f 26% 100%);
  border: 3px solid #0d0b16;
  cursor: inherit;
}
#full-area.ghost-loop .gl-sens::-moz-range-track {
  height: 10px;
  border-radius: 5px;
  background: #2a1d40;
  border: 3px solid #0d0b16;
}
#full-area.ghost-loop .gl-sens::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #3fcf4f;
  border: 3px solid #0d0b16;
  cursor: inherit;
}
#full-area.ghost-loop .gl-sens-value {
  min-width: 44px;
  font-family: "Lilita One", "Arial Black", Impact, sans-serif;
  font-weight: 400;
  font-size: 22px;
  line-height: 1;
  color: #7dff6a;
  -webkit-text-stroke: 6px #0d0b16;
  paint-order: stroke fill;
}
#full-area.ghost-loop section {
  position: absolute;
  inset: 0;
  z-index: 4;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0s linear 0.3s;
}
#full-area.ghost-loop[data-state=play] section {
  transition: none;
}
#full-area.ghost-loop[data-state=home] .gl-home, #full-area.ghost-loop[data-state=over] .gl-over {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity 0.3s ease, visibility 0s linear 0s;
}
#full-area.ghost-loop .gl-home {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-bottom: 70px;
}
#full-area.ghost-loop .gl-home::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(ellipse at 50% 45%, rgba(12, 7, 24, 0.35) 0%, rgba(12, 7, 24, 0.72) 70%);
  opacity: 0;
}
#full-area.ghost-loop .gl-home .gl-logo img, #full-area.ghost-loop .gl-home .gl-collection, #full-area.ghost-loop .gl-home .gl-hint, #full-area.ghost-loop .gl-home .gl-actions {
  opacity: 0;
}
#full-area.ghost-loop .gl-home[data-intro~=logo]::before {
  animation: gl-shade-in 0.5s ease-out both;
}
#full-area.ghost-loop .gl-home[data-intro~=logo] .gl-logo img {
  animation: gl-stamp 0.62s cubic-bezier(0.25, 0.8, 0.35, 1) both;
}
#full-area.ghost-loop .gl-home[data-intro~=btns] .gl-collection {
  animation: gl-rise 0.4s cubic-bezier(0.34, 1.45, 0.64, 1) both;
}
#full-area.ghost-loop .gl-home[data-intro~=btns] .gl-hint {
  animation: gl-rise 0.4s ease-out 0.08s both;
}
#full-area.ghost-loop .gl-home[data-intro~=btns] .gl-actions {
  animation: gl-rise 0.36s cubic-bezier(0.34, 1.45, 0.64, 1) 0.16s both;
}
#full-area.ghost-loop .gl-home.gl-instant::before, #full-area.ghost-loop .gl-home.gl-instant .gl-logo img, #full-area.ghost-loop .gl-home.gl-instant .gl-collection, #full-area.ghost-loop .gl-home.gl-instant .gl-hint, #full-area.ghost-loop .gl-home.gl-instant .gl-actions {
  animation: none;
  opacity: 1;
}
#full-area.ghost-loop[data-room-intro] .gl-collection, #full-area.ghost-loop[data-room-intro] .gl-hint, #full-area.ghost-loop[data-room-intro] .gl-actions {
  display: none;
}
#full-area.ghost-loop[data-room-intro] .gl-home {
  padding-bottom: 0;
}
#full-area.ghost-loop[data-room-intro] .gl-logo img {
  height: 420px;
}
#full-area.ghost-loop .gl-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0 0 10px;
}
#full-area.ghost-loop .gl-logo img {
  display: block;
  width: auto;
  height: 280px;
  filter: drop-shadow(0 10px 18px rgba(6, 2, 14, 0.6));
  user-select: none;
}
#full-area.ghost-loop .gl-collection {
  display: flex;
  gap: 6px;
  margin-bottom: 14px;
}
#full-area.ghost-loop .gl-collection i {
  width: 62px;
  height: 62px;
  background: center/contain no-repeat;
  filter: drop-shadow(0 4px 0 rgba(4, 3, 10, 0.6));
  transition: filter 0.2s ease, opacity 0.2s ease;
}
#full-area.ghost-loop .gl-collection i.gl-locked {
  filter: brightness(0) drop-shadow(0 0 2px rgba(157, 107, 255, 0.9));
  opacity: 0.6;
}
#full-area.ghost-loop .gl-hint {
  margin-bottom: 22px;
  font-weight: 700;
  font-size: 22px;
  color: #fff3cf;
  text-shadow: 0 3px 0 #0d0b16;
}
#full-area.ghost-loop .gl-actions {
  display: flex;
  gap: 24px;
}
#full-area.ghost-loop .gl-btn {
  position: relative;
  width: 330px;
  height: 125px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  outline: none;
  background: center/100% 100% no-repeat;
  filter: drop-shadow(0 5px 0 rgba(4, 3, 10, 0.45));
  transition: transform 0.12s ease;
}
#full-area.ghost-loop .gl-btn span {
  font-family: "Lilita One", "Arial Black", Impact, sans-serif;
  font-weight: 400;
  font-size: 34px;
  line-height: 1;
  color: #fff3cf;
  -webkit-text-stroke: 7px #0d0b16;
  paint-order: stroke fill;
  text-shadow: 0 4px 0 #0d0b16;
  margin-top: -2px;
  white-space: nowrap;
}
#full-area.ghost-loop .gl-btn:hover, #full-area.ghost-loop .gl-btn.sog-focused, #full-area.ghost-loop .gl-btn:focus-visible {
  transform: scale(1.04);
  outline: none;
}
#full-area.ghost-loop .gl-btn:active {
  transform: scale(0.96);
}
#full-area.ghost-loop .gl-btn-slime {
  height: 106px;
  background-image: url("/media/games/ghost-loop/images/ui/btn-slime.webp");
}
#full-area.ghost-loop .gl-btn-slime span {
  color: #ffffff;
  font-size: 36px;
}
#full-area.ghost-loop .gl-btn-pumpkin {
  height: 106px;
  background-image: url("/media/games/ghost-loop/images/ui/btn-pumpkin.webp");
}
#full-area.ghost-loop .gl-btn-pumpkin span {
  color: #ffffff;
  font-size: 34px;
}
#full-area.ghost-loop .gl-over-play, #full-area.ghost-loop .gl-over-board {
  position: absolute;
  left: 150px;
  opacity: 0;
}
#full-area.ghost-loop .gl-over-play {
  top: 220px;
}
#full-area.ghost-loop .gl-over-board {
  top: 350px;
}
#full-area.ghost-loop[data-state=over] .gl-over-play, #full-area.ghost-loop[data-state=over] .gl-over-board {
  animation: gl-rise 0.36s cubic-bezier(0.34, 1.45, 0.64, 1) 0.75s both;
}
#full-area.ghost-loop[data-state=over] .gl-over-board {
  animation-delay: 0.85s;
}
