* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body {
  margin: 0; height: 100%; overflow: hidden;
  background: #F4B8CC;
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  user-select: none; -webkit-user-select: none;
}
button { font-family: inherit; border: 0; background: none; padding: 0; color: inherit; cursor: pointer; }
#viewport {
  position: fixed; inset: 0;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 18%, rgba(255,255,255,.35), transparent 42%),
    #F7C6D8;
  padding-top: env(safe-area-inset-top);
  padding-bottom: env(safe-area-inset-bottom);
}
#wrap { position: relative; flex: none; }
#stage {
  position: absolute; left: 0; top: 0;
  width: 390px; height: 844px;
  transform-origin: 0 0;
  overflow: hidden;
  background: #FFE6F0;
}

.wall {
  position: absolute; left: 0; right: 0; top: 0; height: 640px;
  background: repeating-linear-gradient(90deg, #FFE9F2 0 18px, #F8D0E1 18px 36px);
}
.floor {
  position: absolute; left: 0; right: 0; top: 618px; bottom: 0;
  background-color: #F8C9D8;
  background-image:
    linear-gradient(#E7A9BE 1.5px, transparent 1.5px),
    linear-gradient(90deg, #E7A9BE 1.5px, transparent 1.5px);
  background-size: 32px 32px;
}

.title-glow {
  position: absolute; left: 50%; top: 28px; width: 300px; height: 96px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse, rgba(255,255,255,.8), rgba(255,255,255,0) 70%);
  z-index: 6; pointer-events: none;
}
.hero { position: absolute; left: 0; right: 0; top: 12px; z-index: 8; pointer-events: none; text-align: center; }
.t-en { position: relative; height: 50px; }
.t-en span {
  position: absolute; left: 0; right: 0; top: 0;
  font-size: 40px; font-weight: 900; line-height: 50px;
  letter-spacing: 0.4px; white-space: nowrap;
}
.t-en .ts {
  color: #fff;
  -webkit-text-stroke: 7px #fff;
  text-shadow: 0 5px 0 #E86A96, 0 8px 0 rgba(232, 106, 150, .35);
}
.t-en .tf {
  color: #FF5B94;
  background: linear-gradient(180deg, #FFE4F0 0%, #FF8FB8 38%, #FF5B94 72%, #FF3E82 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.t-cn { position: relative; height: 46px; margin-top: -2px; }
.t-cn span {
  position: absolute; left: 0; right: 0; top: 0;
  font-size: 34px; font-weight: 900; letter-spacing: 2px; line-height: 46px;
}
.t-cn .cs {
  color: #FF7EAB;
  -webkit-text-stroke: 7px #FF7EAB;
  text-shadow: 0 4px 0 #E85A8C;
}
.t-cn .cf { color: #fff; }
.beadrow { display: flex; justify-content: center; gap: 7px; margin-top: 2px; }
.beadrow i {
  width: 8px; height: 8px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #fff, #F4C3D4);
  border: 1px solid #E7A0B8;
}

.coin {
  position: absolute; width: 30px; height: 30px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #FFF3C0, #F6C445 46%, #E39B1E);
  border: 2px solid #C4841A;
  box-shadow: inset 0 0 0 2px #FFE9A0;
  z-index: 9; display: flex; align-items: center; justify-content: center;
  color: #B86E12; font-size: 13px; font-weight: 900;
  pointer-events: none;
}
.c1 { left: 8px; top: 8px; animation: floaty 3.2s ease-in-out infinite; }
.c2 { right: 10px; top: 26px; width: 26px; height: 26px; animation: floaty 3.8s ease-in-out infinite; }
.c3 { left: 12px; top: 86px; width: 22px; height: 22px; font-size: 11px; animation: floaty 2.8s ease-in-out infinite; }
.c4 { left: 78px; top: 548px; width: 20px; height: 20px; font-size: 10px; z-index: 7; }
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

.rb { position: absolute; width: 34px; height: 24px; z-index: 9; pointer-events: none; }
.rb i {
  position: absolute; top: 2px; width: 16px; height: 16px;
  background: #F25C8C; border: 2px solid #2a2a2a;
  border-radius: 50% 50% 50% 10%;
}
.rb i:first-child { left: 0; transform: rotate(-35deg); }
.rb i:nth-child(2) { right: 0; transform: rotate(35deg) scaleX(-1); }
.rb b {
  position: absolute; left: 11px; top: 5px; width: 12px; height: 12px;
  background: #E4233C; border: 2px solid #2a2a2a; border-radius: 50%; z-index: 1;
}
.rb1 { right: 6px; top: 4px; }
.rb2 { left: 2px; top: 188px; width: 28px; height: 20px; }

.heart {
  position: absolute; width: 12px; height: 12px; background: #FF6F9A;
  transform: rotate(45deg); z-index: 9; pointer-events: none;
}
.heart:before, .heart:after {
  content: ""; position: absolute; width: 12px; height: 12px;
  background: #FF6F9A; border-radius: 50%;
}
.heart:before { left: -6px; }
.heart:after { top: -6px; }
.h1 { left: 52px; top: 6px; }
.h2 { right: 48px; top: 96px; }
.h3 { right: 16px; top: 196px; width: 10px; height: 10px; }
.h3:before, .h3:after { width: 10px; height: 10px; }
.h3:before { left: -5px; }
.h3:after { top: -5px; }
.h4 { left: 28px; top: 210px; background: #FF8FB0; }
.h4:before, .h4:after { background: #FF8FB0; }
.h5 { right: 86px; top: 800px; }

.note {
  position: absolute; width: 34px; height: 20px; z-index: 9; pointer-events: none;
  background: linear-gradient(#D4F5A4, #7BC96A);
  border: 2px solid #2a2a2a; border-radius: 3px;
}
.note:after {
  content: "¥"; display: block; text-align: center;
  font-size: 12px; font-weight: 900; color: #2E6B32; line-height: 16px;
}
.n1 { left: 4px; top: 52px; transform: rotate(-18deg); }
.n2 { left: 12px; top: 542px; z-index: 7; width: 30px; }
.n3 { left: 44px; top: 550px; z-index: 7; width: 28px; height: 16px; transform: rotate(8deg); }

.slip {
  position: absolute; width: 26px; height: 34px; background: #fff;
  border: 2px solid #2a2a2a; border-radius: 2px; z-index: 9; pointer-events: none;
}
.slip i { display: block; height: 2px; margin: 4px 4px 0; background: #F0C9D4; }
.slip-top { right: 8px; top: 64px; transform: rotate(12deg); }
.slip-reg { left: 96px; top: 530px; z-index: 7; height: 28px; }

.spark { position: absolute; z-index: 9; color: #FFD56A; font-size: 16px; pointer-events: none; text-shadow: 0 1px 0 #E7A84A; }
.s1 { left: 188px; top: 2px; }
.s2 { right: 78px; top: 14px; font-size: 12px; }

.menu {
  position: absolute; left: 58px; top: 120px; width: 274px; height: 64px; z-index: 8;
  background: linear-gradient(#FFF9F1, #FFEFD9);
  border: 3px solid #E2B48A; border-radius: 14px;
  box-shadow: 0 4px 0 #F0B7C8, 0 8px 14px rgba(220, 110, 150, .18);
}
.menu-row {
  height: 100%; display: flex; align-items: center; justify-content: space-around;
  padding: 8px 8px 4px;
}
.menu-row div { text-align: center; min-width: 68px; }
.menu-row b { display: block; font-size: 13px; color: #A56848; font-weight: 900; }
.menu-row em { display: block; margin-top: 2px; font-style: normal; font-size: 13px; font-weight: 900; color: #E25A4C; }
.sep { width: 2px; height: 36px; background: #E7C9B0; border-radius: 1px; }
.bulbs i {
  position: absolute; width: 8px; height: 8px; border-radius: 50%;
  background: #FFE56A; border: 1px solid #E0B000;
  box-shadow: 0 0 4px rgba(255, 214, 90, .9);
  animation: tw 1.6s ease-in-out infinite;
}
.bulbs i.alt { background: #FFD0E4; border-color: #F09AB8; box-shadow: 0 0 4px rgba(255, 160, 190, .8); animation-delay: .45s; }
@keyframes tw { 50% { opacity: .45; } }

.lamp { position: absolute; top: 118px; width: 48px; z-index: 5; pointer-events: none; }
.lamp-l { left: 0; }
.lamp-r { right: 0; }
.lamp .cord { display: block; width: 2px; height: 14px; margin: 0 auto; background: #6A4A42; }
.lamp .shade {
  display: block; width: 48px; height: 26px;
  background: linear-gradient(#F9B4CC, #F48AAB);
  border: 3px solid #2a2a2a;
  clip-path: polygon(18% 0, 82% 0, 100% 100%, 0 100%);
}
.lamp .bulb {
  display: block; width: 14px; height: 14px; margin: -4px auto 0;
  background: #FFE58A; border: 2px solid #2a2a2a; border-radius: 50%;
  box-shadow: 0 0 8px rgba(255, 220, 120, .9);
}

.posters { position: absolute; left: 54px; top: 192px; z-index: 3; display: flex; gap: 8px; pointer-events: none; }
.poster {
  width: 70px; height: 72px; border-radius: 8px; border: 3px solid #2a2a2a;
  display: flex; flex-direction: column; align-items: center; justify-content: flex-end;
  padding: 4px 2px 4px; box-shadow: 2px 3px 0 rgba(90, 40, 60, .08);
}
.poster.a { background: linear-gradient(#FFE4F0, #FFD0E4); }
.poster.b { background: linear-gradient(#FFF4D4, #FFE4A8); }
.poster.c { background: linear-gradient(#E7F3FF, #D5E6FF); }
.poster span {
  font-size: 10px; font-weight: 900; color: #6B4030; text-align: center; line-height: 1.15;
}
.mini {
  width: 22px; height: 28px; border: 2px solid #2a2a2a; border-radius: 3px 3px 8px 8px;
  position: relative; overflow: hidden; background: rgba(255,255,255,.45); margin-bottom: 3px;
}
.mini .str {
  position: absolute; right: 6px; top: -6px; width: 3px; height: 16px;
  background: #F48FB1; border: 1px solid #2a2a2a;
}
.mini .liq { position: absolute; left: 0; right: 0; bottom: 0; height: 62%; background: #8A4E34; }
.poster.b .liq { background: #C47EB8; }
.poster.c .liq { background: #C9844A; }
.mini .bob, .mini .cube, .mini .pud {
  position: absolute; bottom: 3px; width: 5px; height: 5px; border-radius: 50%;
  background: #2A241C; border: 1px solid #1a1a1a;
}
.mini .bob:nth-child(3) { left: 4px; }
.mini .bob:nth-child(4) { left: 12px; bottom: 6px; }
.mini .cube { left: 8px; background: #E7C6F0; border-radius: 2px; }
.mini .pud { left: 6px; width: 12px; height: 6px; bottom: 8px; background: #F6D56A; border-radius: 4px 4px 2px 2px; }

.shelf { position: absolute; left: 286px; top: 286px; width: 96px; height: 54px; z-index: 3; pointer-events: none; }
.wood {
  position: absolute; left: 0; right: 0; bottom: 0; height: 8px;
  background: #E7B08A; border: 2px solid #2a2a2a; border-radius: 2px;
}
.cupcake { position: absolute; left: 4px; bottom: 8px; width: 26px; }
.frost {
  display: block; width: 22px; height: 14px; margin: 0 auto;
  background: #F7A8C8; border: 2px solid #2a2a2a; border-radius: 12px 12px 6px 6px;
}
.cherry {
  position: absolute; left: 8px; top: -4px; width: 8px; height: 8px;
  background: #E84B6A; border: 1.5px solid #2a2a2a; border-radius: 50%;
}
.paper {
  display: block; width: 16px; height: 10px; margin: -2px auto 0;
  background: #FFE08A; border: 2px solid #2a2a2a; border-radius: 0 0 4px 4px;
}
.sd {
  position: absolute; bottom: 8px; width: 16px; height: 26px;
  border: 2px solid #2a2a2a; border-radius: 2px 2px 6px 6px; background: rgba(255,255,255,.4); overflow: hidden;
}
.sd-tea { left: 36px; }
.sd-pink { left: 58px; }
.sd i { position: absolute; left: 0; right: 0; bottom: 0; height: 60%; background: #C47A4A; }
.sd-pink i { background: #F7A8C8; }
.sd b {
  position: absolute; right: 3px; top: -4px; width: 3px; height: 14px;
  background: #F48FB1; border: 1px solid #2a2a2a;
}
.sd-pink b { background: #fff; }

.kitty { position: absolute; left: 86px; top: 248px; width: 150px; height: 280px; z-index: 4; }
.kitty-svg { width: 100%; height: 100%; display: block; overflow: visible; }
.kitty .eye { transform-box: fill-box; transform-origin: center; animation: blink 4.6s infinite; }
@keyframes blink {
  0%, 90%, 100% { transform: scaleY(1); }
  95% { transform: scaleY(.12); }
}
@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}
.kitty { animation: bob 2.6s ease-in-out infinite; }
.kitty.happy { animation: happy .7s ease; }
@keyframes happy {
  0%, 100% { transform: translateY(0); }
  35% { transform: translateY(-12px); }
  60% { transform: translateY(0); }
  78% { transform: translateY(-6px); }
}
.kitty.no { animation: headno .42s linear; }
@keyframes headno {
  20% { transform: translateX(-4px) rotate(-3deg); }
  40% { transform: translateX(4px) rotate(3deg); }
  60% { transform: translateX(-3px); }
  80% { transform: translateX(3px); }
}
.kitty.give .arm-r { transform: translateY(-14px) rotate(-18deg); transform-origin: 154px 178px; transition: transform .18s; }
#hand { position: absolute; left: 74%; top: 72%; width: 8px; height: 8px; }

.register {
  position: absolute; left: 8px; top: 436px; width: 118px; height: 104px; z-index: 7;
  background: linear-gradient(180deg, #F9B7CE, #F08AAD);
  border: 3px solid #2a2a2a; border-radius: 12px 12px 8px 8px;
  box-shadow: 0 4px 0 #E07A9C;
}
.lcd {
  margin: 6px 8px 4px; height: 26px;
  background: #2E3148; border-radius: 4px; border: 2px solid #1c1c1c;
  color: #D7F6C8; font-family: "Courier New", Courier, monospace;
  font-size: 16px; font-weight: 700; letter-spacing: 1px;
  display: flex; align-items: center; justify-content: flex-end; padding: 0 6px;
}
.keygrid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; padding: 0 8px;
}
.keygrid i {
  height: 13px; background: #F6E6CC; border: 2px solid #2a2a2a; border-radius: 3px;
}
.keygrid .g { background: #8AD46A; }
.keygrid .gold { background: #F6C445; border-radius: 50%; }
.drawer {
  display: block; margin: 6px 10px 0; height: 8px;
  background: #F3D0DE; border: 2px solid #2a2a2a; border-radius: 2px;
}
.scanner {
  position: absolute; left: 130px; top: 472px; width: 32px; height: 42px; z-index: 7;
  background: #D9D4E2; border: 3px solid #2a2a2a; border-radius: 6px;
}
.scanner i {
  display: block; margin: 5px auto 0; width: 18px; height: 12px;
  background: #8FD0F2; border: 2px solid #2a2a2a; border-radius: 2px;
}
.scanner b {
  display: block; margin: 5px auto 0; width: 14px; height: 4px;
  background: #2a2a2a; border-radius: 2px;
}

#cup { position: absolute; left: 164px; top: 446px; width: 62px; height: 96px; z-index: 8; }
.straw {
  position: absolute; right: 14px; top: 0; width: 6px; height: 34px; opacity: 0;
  background: #FF8FB8; border: 2px solid #2a2a2a; border-radius: 3px; transform: rotate(10deg);
}
.lid {
  position: absolute; left: 4px; top: 22px; width: 54px; height: 12px; opacity: 0;
  background: #F7F7F7; border: 3px solid #2a2a2a; border-radius: 6px; z-index: 2;
}
.glass {
  position: absolute; left: 8px; top: 30px; width: 46px; height: 62px;
  border: 3px solid #2a2a2a; border-radius: 4px 4px 14px 14px;
  background: rgba(255,255,255,.35); overflow: hidden;
}
.liquid {
  position: absolute; left: 0; right: 0; bottom: 0; height: 0; z-index: 1;
  transition: height .28s ease, background .28s ease;
}
#cup.has-tea .liquid { height: 46%; background: #6A3418; }
#cup.has-milk .liquid { height: 74%; background: linear-gradient(#E8C4A4, #8A4E34 55%, #5C3018); }
#cup.has-syrup .liquid { height: 80%; background: linear-gradient(#FFC3D4, #E86B90 58%, #C4476E); }
.pearls, .tarobits { position: absolute; left: 0; right: 0; bottom: 4px; height: 16px; opacity: 0; z-index: 2; }
#cup.has-pearl .pearls, #cup.has-taro .tarobits { opacity: 1; }
.pearls b, .tarobits b {
  position: absolute; bottom: 0; width: 7px; height: 7px; border-radius: 50%;
  background: #241C16; border: 1px solid #1a1a1a;
}
.pearls b:nth-child(1) { left: 4px; }
.pearls b:nth-child(2) { left: 14px; bottom: 3px; }
.pearls b:nth-child(3) { left: 24px; }
.pearls b:nth-child(4) { left: 18px; bottom: 8px; width: 6px; height: 6px; }
.tarobits b { background: #C084C8; border-radius: 3px; }
.tarobits b:nth-child(1) { left: 6px; }
.tarobits b:nth-child(2) { left: 16px; bottom: 4px; }
.tarobits b:nth-child(3) { left: 26px; }
.foam {
  position: absolute; left: 3px; right: 3px; top: 4px; height: 12px; opacity: 0; z-index: 3;
  background: #fff; border-radius: 8px; border-bottom: 2px solid #F3D0DC;
}
#cup.has-shaker .foam { opacity: 1; }
#cup.has-seal .lid, #cup.has-seal .straw { opacity: 1; }
.shine {
  position: absolute; left: 4px; top: 6px; width: 5px; height: 26px; z-index: 4;
  background: rgba(255,255,255,.75); border-radius: 4px;
}
.cface { position: absolute; left: 20px; top: 52px; width: 22px; height: 16px; z-index: 5; }
.cface b {
  position: absolute; top: 2px; width: 4px; height: 5px; background: #1c1c1c; border-radius: 50%;
}
.cface b:first-child { left: 2px; }
.cface b:nth-child(2) { right: 2px; }
.cface em {
  position: absolute; left: 7px; top: 8px; width: 7px; height: 5px;
  background: #F6C445; border: 1px solid #1c1c1c; border-radius: 50%;
}
#cup.pop { animation: squash .32s ease; }
@keyframes squash {
  40% { transform: scale(1.06, .94); }
  70% { transform: scale(.98, 1.04); }
}

.cups-stack { position: absolute; left: 262px; top: 356px; width: 28px; height: 36px; z-index: 7; pointer-events: none; }
.cups-stack i {
  position: absolute; left: 2px; width: 22px; height: 12px;
  border: 2px solid #2a2a2a; border-radius: 0 0 6px 6px; background: rgba(255,255,255,.55);
}
.cups-stack i:nth-child(1) { top: 0; }
.cups-stack i:nth-child(2) { top: 8px; }
.cups-stack i:nth-child(3) { top: 16px; }

.ings {
  position: absolute; left: 234px; top: 412px; width: 150px; z-index: 8;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 0;
}
.ing {
  width: 48px; min-height: 52px; position: relative;
  display: flex; flex-direction: column; align-items: center; justify-content: flex-end;
}
.ing.sealer {
  position: absolute; left: 304px; top: 348px; width: 76px; height: 58px; z-index: 8;
}
.ing em {
  font-style: normal; font-size: 10px; font-weight: 900; color: #8A4038;
  background: rgba(255,255,255,.88); border-radius: 7px; padding: 0 4px; line-height: 14px;
  margin-top: 1px;
}
.ing:active { transform: scale(.92); }
.ing.next .ico { animation: pulse .8s ease-in-out infinite; }
@keyframes pulse {
  50% { transform: translateY(-2px) scale(1.06); filter: drop-shadow(0 0 0 #fff) drop-shadow(0 0 4px #FF6B9A); }
}
.ing.next:after {
  content: ""; position: absolute; top: -2px; left: 50%; margin-left: -5px;
  border: 5px solid transparent; border-top-color: #FF4D86;
  animation: bob .6s ease-in-out infinite;
}
.ing.bad { animation: wiggle .35s linear; }
@keyframes wiggle {
  20% { transform: translateX(-3px); }
  40% { transform: translateX(3px); }
  60% { transform: translateX(-2px); }
  80% { transform: translateX(2px); }
}
.ico { width: 28px; height: 28px; display: block; position: relative; }
.tin {
  width: 22px; height: 24px; margin: 2px auto 0;
  background: linear-gradient(#A86B3C, #6B3A1E);
  border: 2px solid #2a2a2a; border-radius: 3px;
}
.tin:before {
  content: ""; display: block; height: 6px; background: #E6C48A; border-bottom: 2px solid #2a2a2a;
}
.milk {
  width: 18px; height: 20px; margin: 8px auto 0;
  background: #F4FBFF; border: 2px solid #2a2a2a; border-radius: 2px; position: relative;
}
.milk:before {
  content: ""; position: absolute; left: -2px; right: -2px; top: -8px; height: 8px;
  background: #7EC8F0; border: 2px solid #2a2a2a;
  clip-path: polygon(0 100%, 50% 0, 100% 100%);
}
.milk:after {
  content: ""; position: absolute; left: 3px; right: 3px; top: 6px; height: 4px; background: #F7A8C8;
}
.shake {
  width: 14px; height: 26px; margin: 0 auto;
  background: linear-gradient(#fff, #E7F6FF);
  border: 2px solid #2a2a2a; border-radius: 3px 3px 6px 6px;
}
.shake:before { content: ""; display: block; height: 5px; background: #7EC8F0; border-bottom: 2px solid #2a2a2a; }
.bot {
  width: 14px; height: 18px; margin: 8px auto 0; position: relative;
  background: linear-gradient(#FFB3CC, #FF7AA8);
  border: 2px solid #2a2a2a; border-radius: 2px 2px 5px 5px;
}
.bot:before {
  content: ""; position: absolute; left: 2px; top: -8px; width: 6px; height: 8px;
  background: #F4C96B; border: 2px solid #2a2a2a; border-radius: 2px 2px 0 0;
}
.bowl {
  width: 26px; height: 16px; margin: 8px auto 0;
  background: #fff; border: 2px solid #2a2a2a; border-radius: 0 0 10px 10px; position: relative;
}
.bowl i {
  position: absolute; top: 4px; width: 6px; height: 6px; border-radius: 50%; border: 1px solid #2a2a2a;
}
.bowl i:nth-child(1) { left: 2px; }
.bowl i:nth-child(2) { left: 9px; top: 7px; }
.bowl i:nth-child(3) { left: 15px; }
.pearls i { background: #2A241C; }
.taros i { background: #C084C8; border-radius: 2px; }
.beans i { background: #D64545; }
.pud {
  width: 22px; height: 16px; margin: 8px auto 0;
  background: linear-gradient(#F8DC78, #F0B429);
  border: 2px solid #2a2a2a; border-radius: 6px 6px 8px 8px; position: relative;
}
.pud:before {
  content: ""; position: absolute; left: -2px; right: -2px; top: -5px; height: 6px;
  background: #C9842A; border: 2px solid #2a2a2a; border-radius: 5px 5px 2px 2px;
}
.mango {
  width: 20px; height: 16px; margin: 8px auto 0;
  background: linear-gradient(#FFE08A, #FFB703);
  border: 2px solid #2a2a2a; border-radius: 50%; transform: rotate(-18deg);
}
.mango:before {
  content: ""; position: absolute; right: -2px; top: -6px; width: 8px; height: 6px;
  background: #7DCC6A; border: 1.5px solid #2a2a2a; border-radius: 0 8px 0 8px;
}
.machine {
  width: 44px; height: 26px; margin: 10px auto 0;
  background: linear-gradient(#fff, #F2F2F2);
  border: 2px solid #2a2a2a; border-radius: 4px;
}
.machine:before {
  content: ""; position: absolute; left: 8px; top: -10px; width: 26px; height: 12px;
  background: #F48FB1; border: 2px solid #2a2a2a; border-radius: 4px 4px 0 0;
}
.machine:after {
  content: ""; position: absolute; left: 10px; top: 8px; width: 22px; height: 8px;
  background: #2E3148; border-radius: 2px;
}

.counter { position: absolute; left: 0; right: 0; top: 508px; height: 92px; z-index: 5; pointer-events: none; }
.counter .top {
  display: block; height: 20px;
  background: linear-gradient(#fff, #FFE9F0);
  border-top: 3px solid #2a2a2a; border-bottom: 3px solid #F0A8C0;
}
.counter .front {
  display: block; height: 72px;
  background: linear-gradient(180deg, #F8B6CE, #F499B8);
  box-shadow: inset 0 8px 0 rgba(255,255,255,.28);
}

.donut {
  position: absolute; right: 14px; top: 608px; width: 26px; height: 26px; z-index: 8; }
  background: #E8A06A; border: 2px solid #2a2a2a; border-radius: 50%; pointer-events: none;
}
.donut:before {
  content: ""; position: absolute; left: 8px; top: 8px; width: 8px; height: 8px;
  background: #F499B8; border: 2px solid #2a2a2a; border-radius: 50%;
}
.donut:after {
  content: ""; position: absolute; left: 3px; right: 3px; top: 3px; height: 8px;
  background: #F7A8C4; border-radius: 8px 8px 2px 2px;
}

.customer { position: absolute; left: 2px; top: 568px; width: 108px; height: 196px; z-index: 9; }
.customer svg { width: 100%; height: 100%; display: block; overflow: visible; }
.customer.c0 .dress { fill: #F7B7CC; stroke: #2a2a2a; stroke-width: 3.5; }
.customer.c1 .dress { fill: #F9C2A8; stroke: #2a2a2a; stroke-width: 3.5; }
.customer.c2 .dress { fill: #F4A6C4; stroke: #2a2a2a; stroke-width: 3.5; }
.customer.in { animation: popin .35s ease-out; }
@keyframes popin {
  0% { transform: translateY(18px); opacity: 0; }
  100% { transform: none; opacity: 1; }
}

.plant { position: absolute; left: 2px; bottom: 8px; width: 42px; height: 48px; z-index: 8; pointer-events: none; }
.pot {
  position: absolute; left: 8px; bottom: 0; width: 26px; height: 18px;
  background: #E07A4A; border: 2px solid #2a2a2a; border-radius: 0 0 8px 8px;
}
.leaf {
  position: absolute; width: 16px; height: 12px;
  background: #7DCC6A; border: 2px solid #2a2a2a; border-radius: 0 12px 0 12px;
}
.l1 { left: 4px; top: 10px; transform: rotate(-20deg); }
.l2 { left: 18px; top: 4px; transform: rotate(24deg); background: #5EBE62; }
.l3 { left: 12px; top: 16px; width: 14px; background: #A5E08A; }
.minis { position: absolute; left: 2px; bottom: 0; z-index: 11; display: flex; gap: 2px; pointer-events: none; }
.minis i {
  width: 14px; height: 18px; border: 2px solid #2a2a2a; border-radius: 2px 2px 5px 5px;
  background: linear-gradient(#E8C4A4, #6A3418); position: relative;
}
.minis i:after {
  content: ""; position: absolute; right: 2px; top: -5px; width: 2px; height: 8px;
  background: #F48FB1; border: 1px solid #2a2a2a;
}

.pills {
  position: absolute; left: 118px; top: 656px; right: 12px; height: 50px; z-index: 10;
  display: flex; gap: 8px;
}
.pill {
  flex: 1; height: 50px; border-radius: 25px;
  background: linear-gradient(#fff, #FFF0F6);
  color: #F25C8E; font-size: 16px; font-weight: 900;
  border: 2px solid #fff;
  box-shadow: 0 4px 0 #F3B0C6, 0 6px 10px rgba(230, 100, 140, .18);
}
.pill.on {
  background: linear-gradient(180deg, #FF9BC2, #FF5C94);
  color: #fff;
  box-shadow: 0 4px 0 #E24B7C;
}
.pill:active { transform: translateY(2px); box-shadow: 0 2px 0 #F3B0C6; }
.go {
  position: absolute; left: 118px; top: 718px; right: 14px; height: 58px; z-index: 10; }
  border-radius: 30px;
  background: linear-gradient(180deg, #FFB3D0 0%, #FF7AA8 20%, #FF5A94 58%, #FF3E80 100%);
  color: #fff; font-size: 24px; font-weight: 900; letter-spacing: 2px;
  border: 3px solid #fff;
  box-shadow: 0 0 0 3px #FF8FB3, 0 5px 0 #E84B7C, 0 8px 14px rgba(232, 75, 124, .35);
  text-shadow: 0 2px 0 rgba(190, 40, 90, .35);
}
.go:active { transform: translateY(3px); box-shadow: 0 0 0 3px #FF8FB3, 0 2px 0 #E84B7C; }
.go.ready { animation: ready .8s ease-in-out infinite; }
@keyframes ready { 50% { filter: brightness(1.12); } }

.ice {
  position: absolute; right: 78px; bottom: 12px; width: 24px; height: 24px; z-index: 10; }
  background: linear-gradient(135deg, #fff, #B9E6FF 42%, #7EC8F0);
  border: 2px solid #2a2a2a; border-radius: 6px; transform: rotate(12deg); pointer-events: none;
}
.rainbow {
  position: absolute; right: 8px; bottom: 8px; width: 78px; height: 40px; z-index: 10; pointer-events: none;
}
.rainbow:before {
  content: ""; position: absolute; left: 0; bottom: 0; width: 70px; height: 36px;
  border: 7px solid #FF8AB5; border-bottom: 0; border-radius: 70px 70px 0 0;
  box-shadow: inset 0 0 0 7px #FFE56A, inset 0 0 0 14px #8AD4F5;
}
.rb3 { right: 0; bottom: 8px; width: 22px; height: 16px; }
.rb3 i { width: 11px; height: 11px; }
.rb3 b { width: 8px; height: 8px; left: 6px; top: 3px; }

.bubble {
  position: absolute; left: 50%; top: 196px; transform: translateX(-50%);
  z-index: 20; max-width: 320px;
  display: flex; align-items: center; gap: 8px;
  background: #fff; border: 3px solid #2a2a2a; border-radius: 16px;
  padding: 8px 8px 8px 12px;
  box-shadow: 0 4px 0 rgba(90, 40, 60, .08);
}
.bubble.hidden { display: none; }
#bubble-text { font-size: 14px; font-weight: 800; color: #C43B6E; line-height: 1.35; }
#rest {
  flex: none; height: 28px; padding: 0 8px; border-radius: 14px;
  background: #FFE4EE; color: #E25C8C; font-size: 12px; font-weight: 900;
}
#stage.phase-lobby #rest { display: none; }
.bubble:after {
  content: ""; position: absolute; left: 36px; bottom: -10px;
  border-width: 10px 8px 0; border-style: solid;
  border-color: #2a2a2a transparent transparent;
}

.pad, .money {
  position: absolute; left: 118px; top: 536px; right: 8px; height: 294px; z-index: 14;
  display: none; padding: 8px;
  background: linear-gradient(180deg, #FFD0E2, #F48AAD);
  border: 3px solid #2a2a2a; border-radius: 18px;
  box-shadow: 0 6px 0 #E06A90;
}
#stage.phase-cash .pad { display: block; }
#stage.phase-change .money { display: block; }
#stage.phase-cash .pills, #stage.phase-cash .go,
#stage.phase-change .pills, #stage.phase-change .go { visibility: hidden; }
#stage.phase-cash .ings, #stage.phase-change .ings,
#stage.phase-cash .sealer, #stage.phase-change .sealer { opacity: .28; pointer-events: none; }
.pad-title {
  text-align: center; color: #fff; font-size: 16px; font-weight: 900;
  letter-spacing: 2px; text-shadow: 0 2px 0 #E25C8C; line-height: 22px;
}
.pad-screen {
  margin-top: 4px; height: 40px; border-radius: 8px;
  background: #2E3148; border: 2px solid #1c1c1c;
  color: #D7F6C8; font-family: "Courier New", Courier, monospace;
  font-size: 28px; font-weight: 700; letter-spacing: 2px;
  display: flex; align-items: center; justify-content: flex-end; padding: 0 10px;
}
.pad-keys { margin-top: 6px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.pad-keys button {
  height: 44px; border-radius: 10px; background: #FFF6EA;
  border: 2px solid #2a2a2a; font-size: 20px; font-weight: 900; color: #5A4038;
  box-shadow: 0 3px 0 #E7B8C8;
}
.pad-keys button:active { transform: translateY(2px); box-shadow: 0 1px 0 #E7B8C8; }
.pad-keys .ok { background: #8AD46A; color: #1B4A22; }
.pad-keys .clear { background: #FFD6DE; color: #A12848; }
.pad-keys .ok.ready { animation: ready .7s ease-in-out infinite; }

.mstat {
  margin-top: 4px; background: #fff; border: 2px solid #2a2a2a; border-radius: 10px;
  text-align: center; font-size: 13px; font-weight: 800; color: #A14A68; padding: 6px 2px;
}
.mstat b { color: #E23B6C; font-size: 16px; }
.bills { margin-top: 8px; display: flex; justify-content: space-between; gap: 4px; }
.bill {
  flex: 1; height: 48px; border-radius: 8px; border: 2px solid #2a2a2a;
  font-size: 16px; font-weight: 900; color: #3A2A22;
  box-shadow: 0 3px 0 rgba(80, 40, 50, .18);
}
.bill:active { transform: translateY(2px); }
.v50 { background: linear-gradient(#FFD0A8, #F0A05A); }
.v20 { background: linear-gradient(#E7D3A4, #C4A06A); }
.v10 { background: linear-gradient(#C8F0D4, #7EC8A0); }
.v5 { background: linear-gradient(#F8D0E6, #E7A0C8); }
.v1 {
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #FFF3C0, #F6C445 50%, #E39B1E);
  color: #8A5A10;
}
.picked { min-height: 28px; max-height: 52px; margin-top: 6px; display: flex; flex-wrap: wrap; gap: 4px; overflow: auto; }
.picked:empty:before { content: "点纸币，凑好零钱"; color: #9A4060; font-size: 12px; font-weight: 800; line-height: 28px; }
.chip {
  height: 24px; padding: 0 8px; border-radius: 12px;
  background: #fff; border: 2px solid #2a2a2a; font-size: 12px; font-weight: 900; color: #C43B6E;
}
.m-actions { display: flex; gap: 6px; margin-top: 6px; }
#undo {
  width: 64px; height: 48px; border-radius: 14px;
  background: #fff; border: 2px solid #2a2a2a; color: #C45B86; font-size: 14px; font-weight: 900;
  box-shadow: 0 3px 0 #E7B0C4;
}
#give {
  flex: 1; height: 48px; border-radius: 24px;
  background: linear-gradient(180deg, #FFB3D0, #FF4D86);
  color: #fff; font-size: 18px; font-weight: 900; letter-spacing: 1px;
  border: 3px solid #fff; box-shadow: 0 4px 0 #E84B7C;
  text-shadow: 0 1px 0 rgba(160, 30, 70, .3);
}
#undo:active, #give:active { transform: translateY(2px); }
#give.ready { animation: ready .7s ease-in-out infinite; }
.money.shake { animation: wiggle .35s linear; }

#fx { position: absolute; inset: 0; z-index: 30; pointer-events: none; }
.token {
  position: absolute; width: 22px; height: 22px; margin: -11px 0 0 -11px;
  border: 2px solid #2a2a2a; border-radius: 50%;
}
.t-tea { background: #6B3A22; }
.t-milk { background: #F4FBFF; border-radius: 4px; }
.t-pearl { background: #2A241C; }
.t-taro { background: #C084C8; }
.t-syrup { background: #FF8FB8; }
.t-shaker { background: #E8FBFF; border-radius: 4px; }
.t-seal { background: #F48FB1; border-radius: 4px; }
.t-bean { background: #D64545; }
.t-pudding { background: #F6D56A; }
.t-mango { background: #FFB703; }
.burst {
  position: absolute; width: 12px; height: 12px; margin-left: -6px; margin-top: -6px;
  background: #FF6F9A; border-radius: 50%;
  animation: burst .8s ease-out forwards;
}
.burst.s { background: #FFD56A; border-radius: 2px; }
@keyframes burst {
  to { transform: translate(var(--dx), -90px) scale(.4); opacity: 0; }
}
