@keyframes fmk-slam {
  0% {
    opacity: 0;
    transform: translateY(-70px) scale(1.5) rotate(-6deg);
  }
  45% {
    opacity: 1;
    transform: translateY(6px) scale(0.9, 1.08) rotate(1deg);
  }
  65% {
    transform: translateY(-4px) scale(1.05, 0.95) rotate(-1deg);
  }
  82% {
    transform: translateY(1px) scale(0.99, 1.01);
  }
  100% {
    opacity: 1;
    transform: none;
  }
}
@keyframes fmk-rise {
  0% {
    opacity: 0;
    transform: translateY(28px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes fmk-drop {
  0% {
    opacity: 0;
    transform: translateY(-560px) rotate(-14deg);
  }
  55% {
    opacity: 1;
    transform: translateY(12px) rotate(5deg);
  }
  75% {
    transform: translateY(-5px) rotate(2.5deg);
  }
  100% {
    opacity: 1;
    transform: translateY(0) rotate(3deg);
  }
}
@keyframes fmk-stamp {
  0% {
    transform: scale(2.2) rotate(-20deg);
    opacity: 0;
  }
  60% {
    transform: scale(0.88) rotate(4deg);
    opacity: 1;
  }
  100% {
    transform: scale(1) rotate(0);
    opacity: 1;
  }
}
#full-area.face-maker {
  width: 100%;
  height: 100vh;
  position: absolute;
  overflow: hidden;
  background: #5a0f1c;
  user-select: none;
  font-family: "Fredoka", "Segoe UI", system-ui, sans-serif;
  color: #3a2412;
}
#full-area.face-maker section, #full-area.face-maker section *, #full-area.face-maker .fmk-meter, #full-area.face-maker .fmk-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.face-maker .fmk-meter * {
  cursor: inherit;
}
#full-area.face-maker #game-area {
  position: absolute;
  width: 1280px;
  height: 720px;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) scale(1) !important;
}
#full-area.face-maker #gameContainer {
  position: absolute;
  width: 1280px;
  height: 720px;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  overflow: hidden;
  background: #5a0f1c;
}
#full-area.face-maker #fmk-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  outline: none;
}
#full-area.face-maker button {
  border: 0;
  background: none;
  outline: none;
  padding: 0;
  margin: 0;
}
#full-area.face-maker section {
  position: absolute;
  left: 0;
  top: 0;
  width: 1280px;
  height: 720px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease-in-out, visibility 0.3s;
}
#full-area.face-maker[data-state=home] .fmk-home {
  opacity: 1;
  visibility: visible;
}
#full-area.face-maker[data-card="1"] .fmk-card {
  opacity: 1;
  visibility: visible;
  transition: none;
}
#full-area.face-maker .fmk-btn {
  position: relative;
  width: 300px;
  height: 74px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 5px solid #3a2412;
  border-radius: 22px;
  box-shadow: inset 0 -9px 0 rgba(58, 36, 18, 0.18), 0 6px 0 #3a2412;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
  pointer-events: auto;
}
#full-area.face-maker .fmk-btn span {
  font-family: "Lilita One", "Arial Black", Impact, sans-serif;
  font-weight: 400;
  font-size: 32px;
  line-height: 1;
  color: #ffffff;
  margin-top: -6px;
  white-space: nowrap;
}
#full-area.face-maker .fmk-btn:hover {
  transform: translateY(-2px);
}
#full-area.face-maker .fmk-btn:active {
  transform: translateY(4px);
  box-shadow: inset 0 -6px 0 rgba(58, 36, 18, 0.18), 0 2px 0 #3a2412;
}
#full-area.face-maker .fmk-btn-green {
  background: #7cc943;
}
#full-area.face-maker .fmk-btn-green span {
  text-shadow: 0 3px 0 #3f7d0e;
}
#full-area.face-maker .fmk-btn-yellow {
  background: #ffc53a;
}
#full-area.face-maker .fmk-btn-yellow span {
  text-shadow: 0 3px 0 #a86a10;
}
#full-area.face-maker .fmk-logo {
  position: absolute;
  left: 152px;
  top: 86px;
  width: 408px;
  height: auto;
  opacity: 0;
  transform-origin: 50% 70%;
  pointer-events: none;
  will-change: transform;
}
#full-area.face-maker[data-room-intro] .fmk-logo {
  left: 116px;
  top: 152px;
  width: 480px;
}
#full-area.face-maker .fmk-home-btns {
  position: absolute;
  left: 206px;
  top: 392px;
  width: 300px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  opacity: 0;
}
#full-area.face-maker:not([data-state=home]) .fmk-home .fmk-btn {
  pointer-events: none;
}
#full-area.face-maker .fmk-home[data-intro~=logo] .fmk-logo {
  animation: fmk-slam 0.6s cubic-bezier(0.25, 0.9, 0.35, 1) both;
}
#full-area.face-maker .fmk-home[data-intro~=btns] .fmk-home-btns {
  animation: fmk-rise 0.36s cubic-bezier(0.34, 1.45, 0.64, 1) both;
}
#full-area.face-maker .fmk-home.fmk-instant .fmk-logo, #full-area.face-maker .fmk-home.fmk-instant .fmk-home-btns {
  animation: none !important;
  opacity: 1;
  transform: none;
}
#full-area.face-maker .fmk-polaroid {
  position: absolute;
  left: 734px;
  top: 118px;
  width: 360px;
  height: 430px;
  padding: 16px 16px 0;
  background: #fffdf6;
  border: 4px solid #3a2412;
  border-radius: 8px;
  box-shadow: 0 8px 0 rgba(58, 36, 18, 0.35);
  transform: rotate(3deg);
  opacity: 0;
}
#full-area.face-maker[data-card="1"] .fmk-polaroid {
  animation: fmk-drop 0.7s cubic-bezier(0.3, 0.9, 0.4, 1) both;
}
#full-area.face-maker .fmk-tape {
  position: absolute;
  left: 50%;
  top: -18px;
  width: 120px;
  height: 34px;
  margin-left: -60px;
  background: rgba(255, 232, 150, 0.85);
  border: 2px solid rgba(58, 36, 18, 0.35);
  transform: rotate(-4deg);
}
#full-area.face-maker .fmk-photo {
  display: block;
  width: 320px;
  height: 250px;
  object-fit: cover;
  border: 3px solid #3a2412;
  border-radius: 4px;
  background: #5a0f1c;
}
#full-area.face-maker .fmk-caption {
  position: relative;
  height: 144px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
#full-area.face-maker .fmk-label {
  font-family: "Lilita One", "Arial Black", Impact, sans-serif;
  font-size: 20px;
  line-height: 1;
  color: #8a6a50;
}
#full-area.face-maker .fmk-total {
  font-family: "Lilita One", "Arial Black", Impact, sans-serif;
  font-size: 66px;
  line-height: 1;
  color: #3a2412;
}
#full-area.face-maker .fmk-stars {
  position: absolute;
  left: 12px;
  bottom: 12px;
  display: flex;
  gap: 2px;
}
#full-area.face-maker .fmk-stars svg {
  width: 26px;
  height: 26px;
}
#full-area.face-maker .fmk-stars svg path {
  fill: #e8dcc8;
  stroke: #3a2412;
  stroke-width: 3px;
  stroke-linejoin: round;
}
#full-area.face-maker .fmk-stars[data-stars="1"] svg:nth-child(-n+1) path,
#full-area.face-maker .fmk-stars[data-stars="2"] svg:nth-child(-n+2) path,
#full-area.face-maker .fmk-stars[data-stars="3"] svg:nth-child(-n+3) path {
  fill: #ffd23f;
}
#full-area.face-maker .fmk-stars[data-stars="1"] svg:nth-child(-n+1),
#full-area.face-maker .fmk-stars[data-stars="2"] svg:nth-child(-n+2),
#full-area.face-maker .fmk-stars[data-stars="3"] svg:nth-child(-n+3) {
  animation: fmk-stamp 0.35s cubic-bezier(0.34, 1.45, 0.64, 1) both;
}
#full-area.face-maker .fmk-stars svg:nth-child(2) {
  animation-delay: 0.12s !important;
}
#full-area.face-maker .fmk-stars svg:nth-child(3) {
  animation-delay: 0.24s !important;
}
#full-area.face-maker .fmk-best-row {
  position: absolute;
  right: 14px;
  bottom: 12px;
  display: flex;
  align-items: baseline;
  gap: 6px;
}
#full-area.face-maker .fmk-best-label {
  font-family: "Lilita One", "Arial Black", Impact, sans-serif;
  font-size: 16px;
  color: #8a6a50;
}
#full-area.face-maker .fmk-best {
  font-family: "Lilita One", "Arial Black", Impact, sans-serif;
  font-size: 24px;
  color: #3a2412;
}
#full-area.face-maker .fmk-best.is-new {
  color: #e8572a;
  font-size: 20px;
  animation: fmk-stamp 0.4s cubic-bezier(0.34, 1.45, 0.64, 1) 0.3s both;
}
#full-area.face-maker .fmk-over-btns {
  position: absolute;
  left: 674px;
  top: 572px;
  width: 480px;
  display: flex;
  justify-content: space-between;
  opacity: 0;
  visibility: hidden;
}
#full-area.face-maker .fmk-over-btns .fmk-btn {
  width: 230px;
  height: 64px;
}
#full-area.face-maker .fmk-over-btns .fmk-btn span {
  font-size: 27px;
}
#full-area.face-maker[data-state=over] .fmk-over-btns {
  visibility: visible;
  animation: fmk-rise 0.36s cubic-bezier(0.34, 1.45, 0.64, 1) both;
}
#full-area.face-maker .fmk-meter {
  position: absolute;
  z-index: 2;
  left: 22px;
  bottom: 88px;
  width: 304px;
  padding: 10px 14px 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: #c98a4b;
  border: 4px solid #3a2412;
  border-radius: 18px;
  box-shadow: inset 0 -6px 0 #a76c34, 0 5px 0 #3a2412;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s;
}
#full-area.face-maker[data-state=play] .fmk-meter {
  opacity: 1;
  visibility: visible;
}
#full-area.face-maker .fmk-meter-track {
  position: relative;
  height: 22px;
  border: 3px solid #3a2412;
  border-radius: 11px;
  background: #6b4423;
  overflow: hidden;
}
#full-area.face-maker .fmk-meter-fill {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0;
  background: #f2d4a3;
}
#full-area.face-maker .fmk-meter[data-hot="1"] .fmk-meter-fill {
  background: #ff8e1c;
}
#full-area.face-maker .fmk-meter-gate {
  position: absolute;
  top: -2px;
  bottom: -2px;
  width: 4px;
  margin-left: -2px;
  background: #ffffff;
  box-shadow: 0 0 0 2px #3a2412;
}
#full-area.face-maker .fmk-sens-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
#full-area.face-maker .fmk-sens-row svg {
  width: 22px;
  height: 22px;
  flex: none;
}
#full-area.face-maker .fmk-sens {
  flex: 1;
  height: 22px;
  margin: 0;
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
}
#full-area.face-maker .fmk-sens::-webkit-slider-runnable-track {
  height: 8px;
  border-radius: 4px;
  background: #6b4423;
  border: 2px solid #3a2412;
}
#full-area.face-maker .fmk-sens::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  margin-top: -8px;
  border-radius: 50%;
  background: #fff4dc;
  border: 3px solid #3a2412;
  cursor: inherit;
}
#full-area.face-maker .fmk-sens::-moz-range-track {
  height: 8px;
  border-radius: 4px;
  background: #6b4423;
  border: 2px solid #3a2412;
}
#full-area.face-maker .fmk-sens::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff4dc;
  border: 3px solid #3a2412;
  cursor: inherit;
}
#full-area.face-maker .fmk-sens-value {
  min-width: 42px;
  text-align: right;
  font-weight: 700;
  font-size: 17px;
  color: #fff4dc;
}
