/* 像素字體:Silkscreen 大標題 / zpix 正文(檔案與 HTML 同資料夾) */
@font-face {
  font-family: 'Silkscreen';
  src: url('../resources/fonts/Silkscreen-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Silkscreen';
  src: url('../resources/fonts/Silkscreen-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Zpix';
  src: url('../resources/fonts/zpix.woff2') format('woff2');
  font-display: swap;
}
:root {
  --locale-ui-font: 'Silkscreen', 'Zpix', monospace;
}
html[lang='zh-Hant'] {
  --locale-ui-font: 'Microsoft JhengHei UI', 'Microsoft JhengHei', 'Noto Sans TC', system-ui, sans-serif;
}
html[lang='ja'] {
  --locale-ui-font: 'Yu Gothic UI', 'Yu Gothic', 'Meiryo', 'Noto Sans JP', system-ui, sans-serif;
}
html[lang='ru'] {
  --locale-ui-font: system-ui, 'Noto Sans', sans-serif;
}
html[lang='ko'] {
  --locale-ui-font: 'Malgun Gothic', 'Noto Sans KR', system-ui, sans-serif;
}
html:not([lang='en'])
  :is(#landing, #pause, #choice, #death, #clear, .modal, #shareModal, #volumePanel)
  :where(button, h1, h2, h3, p, span, label, input, output, div) {
  font-family: var(--locale-ui-font) !important;
  font-synthesis: none;
}
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
html,
body {
  margin: 0;
  padding: 0;
  background: #0a0a12;
  height: 100%;
  overflow: hidden;
  font-family: 'Zpix', 'Courier New', monospace;
  -webkit-user-select: none;
  user-select: none;
}
#wrap {
  position: relative;
  margin: 0 auto;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
#stage {
  position: relative;
  width: 360px;
  height: 640px;
  flex: 0 0 360px;
  transform-origin: center center;
  -webkit-touch-callout: none;
}
#stage img,
#stage video {
  -webkit-user-drag: none;
  user-select: none;
}
canvas {
  width: 360px;
  height: 640px;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  display: block;
  touch-action: none;
}
/* ---------- HUD ---------- */
#hud {
  position: absolute;
  inset: 0;
  pointer-events: none;
  display: none;
  color: #fff;
  font-size: 14px;
}
#hpLabel {
  position: absolute;
  top: 17px;
  left: 11px;
  display: none;
  color: #eee8d2;
  font: 700 10px/10px 'Silkscreen', 'Zpix', monospace;
}
.skinned.standard-hud #hpLabel {
  display: block;
}
#hpEl {
  position: absolute;
  top: 14px;
  left: 30px;
  font-size: 16px;
  display: flex;
  align-items: center;
  gap: 3px;
}
#hpEl img {
  width: 16px;
  height: 15px;
  image-rendering: pixelated;
}
#hpEl img.lost {
  filter: grayscale(1) brightness(0.4);
  opacity: 0.5;
}
#hudShade {
  display: none !important;
}
#scoreHud {
  position: absolute;
  top: 2px;
  left: 80px;
  right: 80px;
  height: 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 1px;
  text-align: center;
  white-space: nowrap;
}
#timerEl {
  position: static;
  width: 100%;
  height: 22px;
  color: #fff;
  font: 700 22px/22px 'Silkscreen', 'Zpix', monospace;
  text-shadow: 2px 2px 0 #102810;
}
#scoreEl {
  position: static;
  width: 100%;
  height: 9px;
  color: #9aff73;
  font: 400 9px/9px 'Silkscreen', 'Zpix', monospace;
  text-shadow: 1px 1px 0 #102810;
}
#subEl {
  position: absolute;
  top: 50px;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 10px;
  color: #aaa;
}
.endless-hud #timerEl {
  color: #fff36a;
  font-size: 24px;
  text-shadow: 2px 2px 0 #241f00, 0 0 8px rgba(255, 243, 106, 0.65);
}
.endless-hud #scoreEl {
  color: #66ffd1;
  font-size: 10px;
  text-shadow: 1px 1px 0 #062b25, 0 0 6px rgba(102, 255, 209, 0.7);
}
.endless-hud #subEl {
  color: #8ffcff;
  font-weight: 700;
  text-shadow: 1px 1px 0 #06252c, 0 0 6px rgba(143, 252, 255, 0.65);
}
.standard-hud #scoreHud {
  top: 14px;
  left: 105px;
  right: 105px;
  height: 22px;
  gap: 0;
}
.standard-hud #timerEl {
  height: 15px;
  color: #eee8d2;
  font-size: 16px;
  line-height: 15px;
  text-shadow: 1px 1px 0 #102810;
}
.standard-hud #scoreEl {
  height: 7px;
  font-size: 7px;
  line-height: 7px;
}
.standard-hud #subEl {
  top: 63px;
  font-size: 9px;
}
#progOut {
  position: absolute;
  top: 36px;
  left: 73px;
  width: 214px;
  height: 11px;
  background: #12200f;
  border: 1px solid #2f5e3f;
  display: none;
}
.skinned #progOut {
  background: none;
  border: none;
}
#barL,
#barR {
  position: absolute;
  top: 0;
  width: 9px;
  height: 11px;
  image-rendering: pixelated;
  display: none;
}
#barL {
  left: 0;
}
#barR {
  right: 0;
}
#barM {
  position: absolute;
  top: 0;
  left: 9px;
  right: 9px;
  height: 11px;
  background-size: auto 100%;
  background-repeat: repeat-x;
  image-rendering: pixelated;
  display: none;
}
.skinned #barL,
.skinned #barR,
.skinned #barM {
  display: block;
}
#progIn {
  position: absolute;
  top: 2px;
  left: 2px;
  height: 7px;
  width: 0%;
  max-width: calc(100% - 4px);
  background: #7dff5e;
  overflow: hidden;
}
.skinned #progIn {
  background: none;
}
#fillL,
#fillR {
  position: absolute;
  top: 0;
  width: 8px;
  height: 7px;
  image-rendering: pixelated;
  display: none;
}
#fillL {
  left: 0;
}
#fillR {
  right: 0;
}
#fillM {
  position: absolute;
  top: 0;
  left: 7px;
  right: 7px;
  height: 7px;
  background-size: auto 100%;
  background-repeat: repeat-x;
  image-rendering: pixelated;
  display: none;
}
.skinned #fillL,
.skinned #fillR,
.skinned #fillM {
  display: block;
}
#progDude {
  position: absolute;
  top: -14px;
  left: 0;
  font-size: 14px;
  line-height: 1;
  transform: translateX(-50%) scaleX(-1);
  filter: drop-shadow(1px 1px 0 #000);
}
.standard-hud #progDude {
  top: 10px;
  font-size: 13px;
}
#tutEl {
  position: absolute;
  bottom: 170px;
  left: 0;
  right: 0;
  text-align: center;
  font-family: 'Zpix', monospace;
  font-size: 16px;
  color: #fff;
  text-shadow: 0 0 8px #000, 0 0 8px #000;
  display: none;
  animation: tpulse 1.1s infinite;
}
@keyframes tpulse {
  50% {
    opacity: 0.45;
  }
}
#buffEl {
  position: absolute;
  top: 52px;
  left: 10px;
  font-size: 11px;
  line-height: 1.5;
}
#pauseBtn {
  position: absolute;
  top: 48px;
  right: 10px;
  z-index: 12;
  pointer-events: auto;
  font-size: 15px;
  background: #20202e;
  color: #fff;
  border: 2px solid #666;
  padding: 2px 9px;
  cursor: pointer;
  font-family: inherit;
}
.skinned #pauseBtn {
  top: 11px;
  right: 11px;
  width: 21px;
  height: 20px;
  padding: 0;
  font-size: 0;
  border: none;
  background-color: transparent;
  background-size: 100% 100%;
  image-rendering: pixelated;
}
.skinned #pauseBtn.character-switch {
  top: 10px;
  left: 10px;
  right: auto;
  width: 40px;
  height: 40px;
}
#pauseBtn:disabled {
  cursor: default;
}
#pauseBtn:active:not(:disabled) {
  transform: translateY(1px);
  filter: brightness(0.72);
}
#resumeCountdown {
  position: absolute;
  inset: 0;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.58);
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.58);
  z-index: 14;
  color: #fff;
  pointer-events: auto;
}
#resumeCountLabel {
  font: 400 15px/1 'Silkscreen', 'Zpix', monospace;
  color: #9aff73;
  text-shadow: 2px 2px 0 #102810;
}
#resumeCountValue {
  font: 700 82px/0.95 'Silkscreen', 'Zpix', monospace;
  color: #fff;
  text-shadow: 4px 4px 0 #173817, 0 0 18px rgba(125, 255, 94, 0.55);
}
#transformSequence {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #10141a;
  pointer-events: auto;
}
#transformSequence::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.018) 0,
    rgba(255, 255, 255, 0.018) 1px,
    transparent 1px,
    transparent 4px
  );
  pointer-events: none;
}
#transformCanvas,
#transformPackedCanvas,
#transformVideo {
  position: relative;
  width: min(464px, 100vw);
  max-height: 100vh;
  height: auto;
  aspect-ratio: 29/43;
  filter: drop-shadow(0 0 10px rgba(59, 255, 139, 0.16));
}
#transformCanvas,
#transformPackedCanvas {
  image-rendering: pixelated;
}
#transformPackedCanvas {
  display: none;
  border: 0;
  background: transparent;
}
#transformVideo {
  display: none;
  object-fit: contain;
  image-rendering: auto;
}
#clearSequence {
  position: absolute;
  inset: 0;
  z-index: 19;
  display: none;
  overflow: hidden;
  background: transparent;
  color: #fff;
  pointer-events: none;
}
#clearSequence[data-phase='animation'] {
  background: rgba(0, 0, 0, 0.65);
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.65);
}
#clearSequence[data-phase='loading'] {
  background: rgba(0, 0, 0, 0.72);
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.72);
}
.clear-sequence-slot {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
}
.clear-sequence-slot.active {
  display: flex;
}
#clearAnimationSlot {
  width: 100%;
  height: 100%;
}
#clearAnimationFallback {
  font: 700 34px/1 'Silkscreen', 'Zpix', monospace;
  color: #9aff73;
  text-align: center;
  text-shadow: 3px 3px 0 #143510, 0 0 18px rgba(125, 255, 94, 0.45);
}
#stage4ClearAnimation {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  isolation: isolate;
  overflow: hidden;
}
#clearSequence.stage4-mode[data-phase='animation'] {
  background: radial-gradient(
    circle at 50% 43%,
    rgba(116, 255, 66, 0.24),
    rgba(26, 8, 39, 0.82) 46%,
    rgba(0, 0, 0, 0.88) 100%
  );
}
#clearSequence.stage4-mode[data-phase='animation'] #clearAnimationFallback {
  display: none;
}
#clearSequence.stage4-mode[data-phase='animation'] #stage4ClearAnimation {
  display: flex;
}
.stage4-clear-rays {
  position: absolute;
  left: 50%;
  top: 43%;
  z-index: -2;
  width: 640px;
  height: 640px;
  margin: -320px 0 0 -320px;
  border-radius: 50%;
  opacity: 0;
  background: repeating-conic-gradient(from 0deg, rgba(123, 255, 72, 0.3) 0deg 7deg, transparent 7deg 20deg);
  animation: stage4ClearRays 2.8s steps(28, end) both;
}
.stage4-clear-rays::after {
  content: '';
  position: absolute;
  inset: 22%;
  border: 3px solid rgba(166, 255, 91, 0.62);
  border-radius: 50%;
  box-shadow: 0 0 0 8px rgba(62, 219, 42, 0.1), 0 0 32px rgba(100, 255, 65, 0.5);
  animation: stage4ClearRing 2.8s steps(12, end) both;
}
#stage4ClearAnimationTitle {
  display: block;
  position: relative;
  z-index: 2;
  width: min(336px, 93%);
  height: auto;
  max-height: 235px;
  object-fit: contain;
  filter: drop-shadow(0 7px 0 rgba(0, 0, 0, 0.58)) drop-shadow(0 0 16px rgba(105, 255, 65, 0.42));
  opacity: 0;
  transform: translateY(24px) scale(0.54);
  animation: stage4ClearTitle 2.8s cubic-bezier(0.18, 0.82, 0.22, 1) both;
  image-rendering: auto;
}
#stage4ClearAnimationBadge {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 42px;
  margin-top: 12px;
  padding: 0 16px;
  color: #dfffce;
  font: 700 15px/1 'Silkscreen', 'Zpix', monospace;
  letter-spacing: 1px;
  text-align: center;
  text-shadow: 2px 2px 0 #10230c, 0 0 10px rgba(132, 255, 82, 0.65);
  opacity: 0;
  transform: translateY(20px);
  animation: stage4ClearBadge 2.8s steps(14, end) both;
}
#stage4ClearAnimationBadge::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  border: 1px solid rgba(142, 255, 93, 0.62);
  background: rgba(8, 31, 8, 0.82);
  box-shadow: inset 0 0 0 3px rgba(69, 134, 45, 0.25), 0 0 13px rgba(76, 255, 51, 0.22);
  clip-path: polygon(
    7px 0,
    calc(100% - 7px) 0,
    100% 7px,
    100% calc(100% - 7px),
    calc(100% - 7px) 100%,
    7px 100%,
    0 calc(100% - 7px),
    0 7px
  );
}
#stage4ClearAnimationBadge img {
  display: block;
  width: 27px;
  height: 27px;
  object-fit: contain;
  filter: drop-shadow(0 0 5px rgba(94, 255, 67, 0.6));
}
.stage4-clear-confetti {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
}
.stage4-clear-confetti i {
  --x: 12%;
  --dx: 18px;
  --delay: 0.05s;
  --color: #77ff4e;
  position: absolute;
  left: var(--x);
  top: -8%;
  display: block;
  width: 7px;
  height: 14px;
  background: var(--color);
  box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.35);
  opacity: 0;
  animation: stage4ClearConfetti 2.5s var(--delay) steps(20, end) both;
}
.stage4-clear-confetti i:nth-child(2) {
  --x: 23%;
  --dx: -22px;
  --delay: 0.18s;
  --color: #f7d848;
  width: 11px;
  height: 6px;
}
.stage4-clear-confetti i:nth-child(3) {
  --x: 35%;
  --dx: 12px;
  --delay: 0.01s;
  --color: #64d8ff;
}
.stage4-clear-confetti i:nth-child(4) {
  --x: 47%;
  --dx: -13px;
  --delay: 0.28s;
  --color: #ff6d9d;
  width: 10px;
  height: 6px;
}
.stage4-clear-confetti i:nth-child(5) {
  --x: 59%;
  --dx: 21px;
  --delay: 0.12s;
  --color: #fff1a0;
}
.stage4-clear-confetti i:nth-child(6) {
  --x: 71%;
  --dx: -19px;
  --delay: 0.33s;
  --color: #9aff73;
  width: 11px;
  height: 6px;
}
.stage4-clear-confetti i:nth-child(7) {
  --x: 84%;
  --dx: 14px;
  --delay: 0.08s;
  --color: #45ddff;
}
.stage4-clear-confetti i:nth-child(8) {
  --x: 92%;
  --dx: -28px;
  --delay: 0.24s;
  --color: #ff7db1;
  width: 10px;
  height: 6px;
}
.stage4-clear-confetti i:nth-child(9) {
  --x: 6%;
  --dx: 25px;
  --delay: 0.38s;
  --color: #f2d94e;
  width: 11px;
  height: 6px;
}
.stage4-clear-confetti i:nth-child(10) {
  --x: 29%;
  --dx: -17px;
  --delay: 0.46s;
  --color: #7cff55;
}
.stage4-clear-confetti i:nth-child(11) {
  --x: 65%;
  --dx: 16px;
  --delay: 0.4s;
  --color: #f6f0cf;
  width: 11px;
  height: 6px;
}
.stage4-clear-confetti i:nth-child(12) {
  --x: 78%;
  --dx: -12px;
  --delay: 0.52s;
  --color: #65d4ff;
}
@keyframes stage4ClearRays {
  0% {
    opacity: 0;
    transform: rotate(0deg) scale(0.35);
  }
  18% {
    opacity: 1;
  }
  82% {
    opacity: 0.72;
  }
  100% {
    opacity: 0;
    transform: rotate(70deg) scale(1.08);
  }
}
@keyframes stage4ClearRing {
  0% {
    opacity: 0;
    transform: scale(0.22);
  }
  20% {
    opacity: 1;
    transform: scale(0.82);
  }
  55% {
    opacity: 0.78;
    transform: scale(1.06);
  }
  100% {
    opacity: 0;
    transform: scale(1.34);
  }
}
@keyframes stage4ClearTitle {
  0% {
    opacity: 0;
    transform: translateY(24px) scale(0.54);
  }
  18% {
    opacity: 1;
    transform: translateY(-5px) scale(1.08);
  }
  27% {
    transform: translateY(0) scale(0.97);
  }
  38%,
  82% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  92% {
    opacity: 1;
    transform: translateY(-3px) scale(1.02);
  }
  100% {
    opacity: 0;
    transform: translateY(-14px) scale(1.04);
  }
}
@keyframes stage4ClearBadge {
  0%,
  23% {
    opacity: 0;
    transform: translateY(20px);
  }
  34%,
  82% {
    opacity: 1;
    transform: translateY(0);
  }
  100% {
    opacity: 0;
    transform: translateY(-8px);
  }
}
@keyframes stage4ClearConfetti {
  0% {
    opacity: 0;
    transform: translate3d(0, 0, 0) rotate(0deg);
  }
  10% {
    opacity: 1;
  }
  88% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate3d(var(--dx), 710px, 0) rotate(540deg);
  }
}
/* R93: Stage 4-only fat-to-looksmax portrait sequence. */
#clearSequence.stage4-mode[data-phase='animation'] {
  background: radial-gradient(circle at 50% 43%, rgba(106, 255, 63, 0.22), rgba(18, 7, 27, 0.9) 48%, #000 100%);
}
#stage4ClearAnimation.is-playing {
  display: flex;
}
.stage4-looksmax-scanlines {
  position: absolute;
  inset: 0;
  z-index: 6;
  pointer-events: none;
  opacity: 0.18;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.12) 0,
    rgba(255, 255, 255, 0.12) 1px,
    transparent 1px,
    transparent 4px
  );
  mix-blend-mode: overlay;
}
.stage4-looksmax-flash {
  position: absolute;
  inset: 0;
  z-index: 7;
  pointer-events: none;
  background: #fff;
  opacity: 0;
}
.stage4-looksmax-portrait {
  position: absolute;
  left: 50%;
  top: 48%;
  z-index: 3;
  width: min(284px, 78vw);
  height: min(284px, 78vw);
  overflow: hidden;
  transform: translate(-50%, -50%);
  filter: drop-shadow(0 10px 0 rgba(0, 0, 0, 0.62)) drop-shadow(0 0 22px rgba(111, 255, 66, 0.34));
}
.stage4-looksmax-layer {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.stage4-looksmax-sheet {
  display: block;
  width: 400%;
  height: 200%;
  max-width: none;
  object-fit: fill;
  image-rendering: pixelated;
  transform: translate3d(0, 0, 0);
}
#stage4ClearAnimation.is-playing .stage4-looksmax-sheet {
  animation: stage4LooksmaxFrames 7.5s steps(1, end) both;
}
#stage4ClearAnimation.is-playing .stage4-looksmax-portrait {
  animation: stage4LooksmaxPunch 7.5s cubic-bezier(0.2, 0.72, 0.2, 1) both;
}
.stage4-looksmax-glitch {
  z-index: 2;
  opacity: 0;
  pointer-events: none;
  filter: saturate(1.65) contrast(1.2);
}
.stage4-looksmax-glitch-a {
  clip-path: polygon(0 20%, 100% 20%, 100% 43%, 0 43%);
}
.stage4-looksmax-glitch-b {
  clip-path: polygon(0 58%, 100% 58%, 100% 79%, 0 79%);
}
#stage4ClearAnimation.is-playing .stage4-looksmax-glitch-a {
  animation: stage4LooksmaxGlitchA 7.5s steps(1, end) both;
}
#stage4ClearAnimation.is-playing .stage4-looksmax-glitch-b {
  animation: stage4LooksmaxGlitchB 7.5s steps(1, end) both;
}
#stage4ClearAnimation.is-playing .stage4-looksmax-flash {
  animation: stage4LooksmaxFlash 7.5s steps(1, end) both;
}
#stage4ClearAnimation.is-playing .stage4-clear-rays {
  z-index: 1;
  animation: stage4LooksmaxRays 7.5s steps(30, end) both;
}
#stage4ClearAnimation.is-playing .stage4-clear-rays::after {
  animation: stage4LooksmaxRing 7.5s steps(12, end) both;
}
#stage4ClearAnimationTitle {
  position: absolute;
  left: 50%;
  top: 7%;
  z-index: 5;
  width: min(320px, 88%);
  max-height: 174px;
  transform: translateX(-50%);
  opacity: 0;
}
#stage4ClearAnimation.is-playing #stage4ClearAnimationTitle {
  animation: stage4LooksmaxTitle 7.5s cubic-bezier(0.18, 0.82, 0.22, 1) both;
}
#stage4ClearAscendCopy {
  position: absolute;
  left: 50%;
  bottom: 14.5%;
  z-index: 5;
  width: min(330px, 90%);
  transform: translate(-50%, 12px);
  opacity: 0;
  pointer-events: none;
  text-align: center;
  font-family: 'Silkscreen', 'Zpix', monospace;
  font-weight: 400;
  text-shadow: 2px 2px 0 #071006, 0 0 10px rgba(106, 255, 71, 0.4);
}
#stage4ClearAscendCopy span {
  display: block;
  white-space: nowrap;
}
.stage4-clear-copy-primary {
  color: #9aff73;
  font-size: 17px;
  line-height: 1.15;
  letter-spacing: 0.15px;
}
.stage4-clear-copy-secondary {
  margin-top: 5px;
  color: #f4f0d8;
  font-size: 13px;
  line-height: 1.15;
  letter-spacing: 0.1px;
}
#stage4ClearAnimation.is-playing #stage4ClearAscendCopy {
  animation: stage4LooksmaxCopy 7.5s steps(16, end) both;
}
#stage4ClearAnimationBadge {
  position: absolute;
  left: 50%;
  bottom: 7%;
  z-index: 5;
  min-width: 210px;
  margin: 0;
  transform: translateX(-50%);
  opacity: 0;
}
#stage4ClearAnimation.is-playing #stage4ClearAnimationBadge {
  animation: stage4LooksmaxBadge 7.5s steps(12, end) both;
}
#stage4ClearAnimation.is-playing .stage4-clear-confetti i {
  animation-duration: 1.15s;
  animation-delay: 3.28s;
}
#stage4ClearAnimation:not(.is-playing) .stage4-looksmax-sheet,
#stage4ClearAnimation:not(.is-playing) .stage4-looksmax-portrait,
#stage4ClearAnimation:not(.is-playing) .stage4-looksmax-glitch,
#stage4ClearAnimation:not(.is-playing) .stage4-looksmax-flash,
#stage4ClearAnimation:not(.is-playing) .stage4-clear-rays,
#stage4ClearAnimation:not(.is-playing) #stage4ClearAnimationTitle,
#stage4ClearAnimation:not(.is-playing) #stage4ClearAscendCopy,
#stage4ClearAnimation:not(.is-playing) #stage4ClearAnimationBadge {
  animation: none !important;
}
@keyframes stage4LooksmaxFrames {
  0%,
  5.34% {
    transform: translate3d(0, 0, 0);
  }
  5.4%,
  10.74% {
    transform: translate3d(-25%, 0, 0);
  }
  10.8%,
  16.74% {
    transform: translate3d(-50%, 0, 0);
  }
  16.8%,
  23.34% {
    transform: translate3d(-75%, 0, 0);
  }
  23.4%,
  29.94% {
    transform: translate3d(0, -50%, 0);
  }
  30%,
  37.14% {
    transform: translate3d(-25%, -50%, 0);
  }
  37.2%,
  45.54% {
    transform: translate3d(-50%, -50%, 0);
  }
  45.6%,
  100% {
    transform: translate3d(-75%, -50%, 0);
  }
}
@keyframes stage4LooksmaxPunch {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.62);
  }
  4.2% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(0.92);
  }
  10.8% {
    transform: translate(-50%, -50%) scale(1);
  }
  29.4% {
    transform: translate(-50%, -50%) scale(1.04);
  }
  45% {
    transform: translate(-50%, -50%) scale(1.1);
  }
  51.6%,
  96% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.16);
  }
  100% {
    opacity: 0.2;
    transform: translate(-50%, -53%) scale(1.2);
  }
}
@keyframes stage4LooksmaxGlitchA {
  0%,
  9.6%,
  11.4%,
  20.4%,
  22.8%,
  35.4%,
  37.8%,
  44.4%,
  46.8%,
  100% {
    opacity: 0;
    transform: translateX(0);
  }
  9.72%,
  11.28%,
  20.52%,
  22.68%,
  35.52%,
  37.68%,
  44.52%,
  46.68% {
    opacity: 0.92;
    transform: translateX(-13px);
  }
}
@keyframes stage4LooksmaxGlitchB {
  0%,
  9.6%,
  11.4%,
  20.4%,
  22.8%,
  35.4%,
  37.8%,
  44.4%,
  46.8%,
  100% {
    opacity: 0;
    transform: translateX(0);
  }
  9.72%,
  11.28%,
  20.52%,
  22.68%,
  35.52%,
  37.68%,
  44.52%,
  46.68% {
    opacity: 0.76;
    transform: translateX(15px);
  }
}
@keyframes stage4LooksmaxFlash {
  0%,
  10.2%,
  11.4%,
  21.6%,
  22.8%,
  36%,
  37.2%,
  45%,
  46.2%,
  100% {
    opacity: 0;
  }
  10.32%,
  10.92%,
  21.72%,
  22.32%,
  36.12%,
  36.72%,
  45.12%,
  45.72% {
    opacity: 0.72;
  }
}
@keyframes stage4LooksmaxRays {
  0%,
  39% {
    opacity: 0;
    transform: rotate(0deg) scale(0.3);
  }
  43.2% {
    opacity: 0.9;
  }
  55.2%,
  96% {
    opacity: 0.7;
    transform: rotate(40deg) scale(1.02);
  }
  100% {
    opacity: 0;
    transform: rotate(48deg) scale(1.05);
  }
}
@keyframes stage4LooksmaxRing {
  0%,
  40.8% {
    opacity: 0;
    transform: scale(0.34);
  }
  45.6% {
    opacity: 1;
    transform: scale(0.78);
  }
  56.4%,
  96% {
    opacity: 0.78;
    transform: scale(1.05);
  }
  100% {
    opacity: 0;
    transform: scale(1.25);
  }
}
@keyframes stage4LooksmaxTitle {
  0%,
  43.8% {
    opacity: 0;
    transform: translate(-50%, 18px) scale(0.72);
  }
  47.4% {
    opacity: 1;
    transform: translate(-50%, -3px) scale(1.05);
  }
  50.4%,
  96% {
    opacity: 1;
    transform: translate(-50%, 0) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -10px) scale(1.03);
  }
}
@keyframes stage4LooksmaxCopy {
  0%,
  46.2% {
    opacity: 0;
    transform: translate(-50%, 12px);
  }
  49.2%,
  96% {
    opacity: 1;
    transform: translate(-50%, 0);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -4px);
  }
}
@keyframes stage4LooksmaxBadge {
  0%,
  48% {
    opacity: 0;
    transform: translate(-50%, 14px);
  }
  50.4%,
  96% {
    opacity: 1;
    transform: translate(-50%, 0);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -5px);
  }
}
@media (prefers-reduced-motion: reduce) {
  #stage4ClearAnimation.is-playing .stage4-looksmax-sheet {
    animation: stage4LooksmaxFramesReduced 4.8s steps(1, end) both !important;
  }
  #stage4ClearAnimation.is-playing .stage4-looksmax-portrait {
    animation: stage4LooksmaxPunchReduced 4.8s ease-out both !important;
  }
  .stage4-looksmax-glitch,
  .stage4-looksmax-flash,
  .stage4-looksmax-scanlines {
    display: none !important;
  }
  #stage4ClearAnimation.is-playing #stage4ClearAnimationTitle {
    animation: stage4LooksmaxTitleReduced 4.8s ease-out both !important;
  }
  #stage4ClearAnimation.is-playing #stage4ClearAscendCopy {
    animation: stage4LooksmaxCopyReduced 4.8s ease-out both !important;
  }
  #stage4ClearAnimation.is-playing #stage4ClearAnimationBadge {
    animation: stage4LooksmaxBadgeReduced 4.8s ease-out both !important;
  }
  @keyframes stage4LooksmaxFramesReduced {
    0%,
    6.75% {
      transform: translate3d(0, 0, 0);
    }
    6.8%,
    100% {
      transform: translate3d(-75%, -50%, 0);
    }
  }
  @keyframes stage4LooksmaxPunchReduced {
    0% {
      opacity: 0;
      transform: translate(-50%, -50%) scale(0.94);
    }
    6.75%,
    94% {
      opacity: 1;
      transform: translate(-50%, -50%) scale(1.06);
    }
    100% {
      opacity: 0;
    }
  }
  @keyframes stage4LooksmaxTitleReduced {
    0%,
    14.25% {
      opacity: 0;
      transform: translate(-50%, 0);
    }
    18%,
    94% {
      opacity: 1;
      transform: translate(-50%, 0);
    }
    100% {
      opacity: 0;
      transform: translate(-50%, 0);
    }
  }
  @keyframes stage4LooksmaxCopyReduced {
    0%,
    16.5% {
      opacity: 0;
      transform: translate(-50%, 0);
    }
    20.25%,
    94% {
      opacity: 1;
      transform: translate(-50%, 0);
    }
    100% {
      opacity: 0;
      transform: translate(-50%, 0);
    }
  }
  @keyframes stage4LooksmaxBadgeReduced {
    0%,
    19.5% {
      opacity: 0;
      transform: translate(-50%, 0);
    }
    23.25%,
    94% {
      opacity: 1;
      transform: translate(-50%, 0);
    }
    100% {
      opacity: 0;
      transform: translate(-50%, 0);
    }
  }
}
#clearLoadingMount {
  position: relative;
  width: 280px;
  height: 180px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
}
#clearLoadingSpinner {
  width: 38px;
  height: 38px;
  border: 5px solid #293126;
  border-top-color: #9aff73;
  box-sizing: border-box;
  animation: clearLoadSpin 0.7s steps(8, end) infinite;
}
#clearLoadingLabel {
  font: 400 12px/1 'Silkscreen', 'Zpix', monospace;
  color: #d9e7d2;
  text-shadow: 2px 2px 0 #000;
}
@keyframes clearLoadSpin {
  to {
    transform: rotate(360deg);
  }
}
@media (prefers-reduced-motion: reduce) {
  .stage4-clear-rays,
  .stage4-clear-rays::after,
  .stage4-clear-confetti i {
    animation: none !important;
    display: none !important;
  }
  #stage4ClearAnimationTitle {
    animation: stage4ClearTitleReduced 1.2s ease-out both;
  }
  #stage4ClearAnimationBadge {
    animation: stage4ClearBadgeReduced 1.2s ease-out both;
  }
  @keyframes stage4ClearTitleReduced {
    0% {
      opacity: 0;
      transform: scale(0.96);
    }
    18%,
    82% {
      opacity: 1;
      transform: scale(1);
    }
    100% {
      opacity: 0;
      transform: scale(1);
    }
  }
  @keyframes stage4ClearBadgeReduced {
    0%,
    20% {
      opacity: 0;
      transform: none;
    }
    35%,
    82% {
      opacity: 1;
      transform: none;
    }
    100% {
      opacity: 0;
      transform: none;
    }
  }
}
#pause {
  --overlay-mask: rgba(0, 0, 0, 0.72);
  position: absolute;
  padding: 0;
  overflow: hidden;
  background: var(--overlay-mask);
  align-items: initial;
  justify-content: initial;
}
#pausePanelFrame {
  position: absolute;
  left: 22.67px;
  top: 210.33px;
  width: 313px;
  height: 219.33px;
  background: var(--pause-panel-image) center/100% 100% no-repeat;
  box-sizing: border-box;
  color: #fff;
}
#pausePanelFrame h2 {
  position: absolute;
  left: 0;
  right: 0;
  top: 39.2px;
  height: 28px;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font: 400 20px/1 'Silkscreen', 'Zpix', monospace;
  color: #fff;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0;
  text-shadow: 2px 2px 0 #000;
}
#pauseResumeBtn {
  position: absolute;
  left: 30.83px;
  top: 90.9px;
  width: 251.33px;
  height: 53.33px;
  margin: 0;
  padding: 0;
  border: 0;
  background: var(--pause-continue-image) center/100% 100% no-repeat;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font: 400 20px/1 'Silkscreen', 'Zpix', monospace;
  text-transform: uppercase;
  letter-spacing: 0;
  text-shadow: 2px 2px 0 #000;
}
#pauseResumeBtn:active {
  transform: translateY(1px);
  filter: brightness(0.78);
}
#pauseActions {
  position: absolute;
  left: 31.5px;
  top: 156.77px;
  display: flex;
  gap: 12px;
}
.pause-action-btn {
  width: 118.67px;
  height: 32px;
  margin: 0;
  padding: 0 9px;
  border: 1.33px solid #645c52;
  background: rgba(4, 5, 4, 0.92);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  font: 400 10px/1 'Silkscreen', 'Zpix', monospace;
  text-transform: uppercase;
  letter-spacing: 0;
  text-shadow: 1px 1px 0 #000;
  box-sizing: border-box;
}
.pause-action-btn span {
  display: flex;
  height: 1em;
  align-items: center;
  line-height: 1;
}
.pause-action-btn img {
  display: block;
  flex: 0 0 auto;
  object-fit: contain;
  image-rendering: auto;
}
#pauseRetryBtn img {
  width: 28px;
  height: 28px;
}
#pauseHomeBtn img {
  width: 24px;
  height: 24px;
}
.pause-action-btn:active {
  transform: translateY(1px);
  filter: brightness(0.72);
}
/* ---------- shared pixel volume controls ---------- */
.volume-toggle {
  position: absolute;
  z-index: 16;
  width: 34px;
  height: 34px;
  margin: 0;
  padding: 0;
  border: 1px solid #6e6759;
  outline: 0;
  background: linear-gradient(#20241d, #080a08);
  box-shadow: inset 0 0 0 2px #11150f, 0 2px 0 #000;
  clip-path: polygon(4px 0, 30px 0, 34px 4px, 34px 30px, 30px 34px, 4px 34px, 0 30px, 0 4px);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.volume-toggle::before {
  content: '';
  position: absolute;
  inset: 3px;
  border: 1px solid #353c31;
  pointer-events: none;
}
.volume-toggle:hover,
.volume-toggle:focus-visible {
  border-color: #72ef47;
  box-shadow: inset 0 0 0 2px #11150f, 0 0 7px rgba(114, 239, 71, 0.45);
  outline: none;
}
.volume-toggle:active {
  transform: translateY(1px);
  filter: brightness(0.76);
}
.volume-toggle svg {
  position: relative;
  width: 23px;
  height: 23px;
  image-rendering: pixelated;
  shape-rendering: crispEdges;
}
.volume-speaker {
  fill: #e7e0ca;
}
.volume-wave {
  fill: #72ef47;
}
.volume-muted-mark {
  display: none;
  fill: #ff6c62;
}
.volume-toggle.muted .volume-wave {
  display: none;
}
.volume-toggle.muted .volume-muted-mark {
  display: block;
}
#landing > #homeVolumeBtn {
  z-index: 8;
  top: 0;
  right: 0;
}
#pauseVolumeBtn {
  top: 10px;
  right: 10px;
}
#volumeBackdrop {
  position: absolute;
  inset: 0;
  z-index: 44;
  display: none;
  background: rgba(0, 0, 0, 0.12);
}
#volumeBackdrop.open {
  display: block;
}
#volumePanel {
  position: absolute;
  z-index: 45;
  top: 50px;
  right: 9px;
  width: 218px;
  height: 196px;
  display: none;
  box-sizing: border-box;
  padding: 39px 17px 15px;
  background: linear-gradient(180deg, rgba(27, 31, 25, 0.985), rgba(5, 7, 5, 0.99));
  border: 1px solid #746b5c;
  box-shadow: inset 0 0 0 2px #0a0d09, inset 0 0 0 3px #31372e, 0 4px 12px rgba(0, 0, 0, 0.72);
  clip-path: polygon(6px 0, 212px 0, 218px 6px, 218px 190px, 212px 196px, 6px 196px, 0 190px, 0 6px);
  color: #eee8d2;
}
#volumePanel::before {
  content: '';
  position: absolute;
  inset: 4px;
  pointer-events: none;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.025) 0,
    rgba(255, 255, 255, 0.025) 1px,
    transparent 1px,
    transparent 4px
  );
}
#volumePanel.open {
  display: block;
}
#volumeTitle {
  position: absolute;
  left: 12px;
  right: 36px;
  top: 12px;
  margin: 0;
  color: #72ef47;
  font: 400 14px/1 'Silkscreen', 'Zpix', monospace;
  text-shadow: 2px 2px 0 #102810;
}
#volumeClose {
  position: absolute;
  z-index: 2;
  top: 7px;
  right: 8px;
  width: 26px;
  height: 26px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #e5d9b1;
  cursor: pointer;
  font: 400 19px/26px 'Silkscreen', 'Zpix', monospace;
}
#volumeClose:hover,
#volumeClose:focus-visible {
  color: #72ef47;
  outline: none;
}
.volume-row {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) 35px;
  align-items: center;
  gap: 7px;
  height: 43px;
  color: #e9e4d5;
  font: 400 9px/1 'Silkscreen', 'Zpix', monospace;
}
.volume-row > span {
  white-space: nowrap;
}
.volume-row output {
  text-align: right;
  color: #72ef47;
  font: 400 8px/1 'Silkscreen', 'Zpix', monospace;
}
.volume-range {
  --volume-fill: 50%;
  width: 100%;
  height: 18px;
  margin: 0;
  padding: 0;
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  cursor: pointer;
}
.volume-range::-webkit-slider-runnable-track {
  height: 7px;
  box-sizing: border-box;
  border: 1px solid #596052;
  background: linear-gradient(90deg, #72ef47 0 var(--volume-fill), #171c16 var(--volume-fill) 100%);
  box-shadow: inset 0 0 0 1px #080a08;
}
.volume-range::-webkit-slider-thumb {
  width: 12px;
  height: 15px;
  margin-top: -5px;
  border: 1px solid #d9d2bc;
  border-radius: 0;
  background: #5e6757;
  box-shadow: inset 0 0 0 2px #1a1e18;
  appearance: none;
  -webkit-appearance: none;
}
.volume-range::-moz-range-track {
  height: 5px;
  border: 1px solid #596052;
  background: #171c16;
}
.volume-range::-moz-range-progress {
  height: 5px;
  background: #72ef47;
}
.volume-range::-moz-range-thumb {
  width: 10px;
  height: 13px;
  border: 1px solid #d9d2bc;
  border-radius: 0;
  background: #5e6757;
  box-shadow: inset 0 0 0 2px #1a1e18;
}

/* ---------- overlays ---------- */
.ov {
  position: absolute;
  inset: 0;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.82);
  color: #fff;
  text-align: center;
  z-index: 10;
  padding: 16px;
  box-sizing: border-box;
  overflow-y: auto;
}
.ov:not(#landing) {
  box-shadow: 0 0 0 2px var(--overlay-mask, rgba(0, 0, 0, 0.82));
}
.ov h1 {
  font-family: 'Silkscreen', 'Zpix', monospace;
  font-size: 24px;
  margin: 6px 0;
  color: #7dff5e;
  text-shadow: 2px 2px #123a12;
}
.ov h2 {
  font-family: 'Silkscreen', 'Zpix', monospace;
  font-size: 18px;
  margin: 6px 0;
}
.ov p {
  font-size: 13px;
  margin: 4px 0;
  line-height: 1.55;
  color: #ccc;
}
.btn {
  font-family: inherit;
  font-size: 16px;
  font-weight: bold;
  padding: 12px 28px;
  margin: 5px;
  border: 3px solid #d8ffe0;
  background: #1f7a33;
  color: #fff;
  cursor: pointer;
  box-shadow: 3px 3px 0 #000;
}
.btn:active {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0 #000;
}
.btn:disabled {
  opacity: 0.55;
  cursor: wait;
  filter: saturate(0.5);
}
#death.revive-locked .btn:disabled {
  opacity: 0.28;
  cursor: not-allowed;
  filter: grayscale(1);
}
.btn.sec {
  background: #155e2b;
}
.btn.small {
  font-size: 12px;
  padding: 8px 14px;
}
.btn.ghost {
  background: #2a2a3a;
  font-size: 12px;
  padding: 8px 14px;
}
/* ---------- Mystery choice: approved 1080x1920 design ---------- */
#choice {
  --overlay-mask: rgba(0, 0, 0, 0.8);
  padding: 0;
  overflow: hidden;
  background: var(--overlay-mask);
  align-items: initial;
  justify-content: initial;
}
#choicePanel {
  position: absolute;
  left: 22.67px;
  top: 131.66px;
  width: 313px;
  height: 376.67px;
  background: var(--choice-panel) center/100% 100% no-repeat;
  pointer-events: none;
}
#choiceTitleArt {
  position: absolute;
  left: 39.17px;
  top: 188.16px;
  width: 280px;
  height: 49px;
  object-fit: fill;
  image-rendering: auto;
  pointer-events: none;
}
#choiceTitleVisible {
  display: none;
  position: absolute;
  left: 39.17px;
  top: 188.16px;
  width: 280px;
  height: 49px;
  align-items: center;
  justify-content: center;
  margin: 0;
  color: #82ef4a;
  text-align: center;
  font: 700 21px/1.05 'Silkscreen', 'Zpix', monospace;
  text-shadow: 2px 2px 0 #173617;
}
html:not([lang='en']) #choiceTitleArt {
  display: block;
  left: 39.17px;
  top: 154.16px;
  width: 280px;
  height: 96px;
  object-fit: contain;
}
html:not([lang='en']) #choiceTitleVisible {
  display: none;
}
#choiceSubtitle {
  position: absolute;
  left: 0;
  right: 0;
  top: 259.9px;
  margin: 0;
  color: #f1eee5;
  font: 400 9px/1 'Silkscreen', 'Zpix', monospace;
  letter-spacing: 0;
  text-align: center;
  text-shadow: 1px 1px 0 #000;
  white-space: nowrap;
  pointer-events: none;
}
#choice .choice-card {
  position: absolute;
  top: 292.5px;
  width: 118.67px;
  height: 158.67px;
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  border: 1.33px solid #645c52;
  background: transparent;
  color: #f1eee5;
  cursor: pointer;
  font: 400 8px/1.55 'Silkscreen', 'Zpix', monospace;
  letter-spacing: 0;
  text-align: center;
  text-shadow: 1px 1px 0 #000;
  touch-action: manipulation;
}
#choice .choice-card.rice {
  left: 54.17px;
}
#choice .choice-card.combo {
  left: 184.83px;
}
#choice .choice-card:hover,
#choice .choice-card:focus-visible {
  border-color: #7dff5e;
  box-shadow: inset 0 0 0 1px rgba(125, 255, 94, 0.45);
  outline: none;
}
#choice .choice-card:active {
  background: rgba(125, 255, 94, 0.08);
  filter: brightness(0.9);
}
.choice-art {
  position: absolute;
  object-fit: fill;
  image-rendering: auto;
  pointer-events: none;
}
.choice-card.rice .choice-art {
  left: 16.06px;
  top: 31.55px;
  width: 86.54px;
  height: 50px;
}
.choice-card.combo .choice-art.chicken {
  left: 16.64px;
  top: 20.96px;
  width: 60.94px;
  height: 65.8px;
}
.choice-card.combo .choice-art.watermelon {
  left: 58.99px;
  top: 39.16px;
  width: 42.86px;
  height: 53.2px;
}
.choice-card-label {
  position: absolute;
  left: 5px;
  right: 5px;
  top: 104.5px;
  display: block;
}
.taunt {
  color: #ff8a8a;
  font-style: italic;
  font-size: 15px;
  margin: 8px 0;
}
/* ---------- death: approved 1080x1920 design ---------- */
#death {
  --overlay-mask: rgba(0, 0, 0, 0.9);
  padding: 0;
  overflow: hidden;
  background: var(--overlay-mask);
  align-items: initial;
  justify-content: initial;
}
#death::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.018) 0,
    rgba(255, 255, 255, 0.018) 1px,
    transparent 1px,
    transparent 4px
  );
  pointer-events: none;
}
#deathTitleArt {
  position: absolute;
  left: 29.17px;
  top: 89.9px;
  width: 300px;
  height: 89.53px;
  object-fit: fill;
  image-rendering: auto;
  pointer-events: none;
}
#deathTitleText {
  display: none;
  position: absolute;
  left: 28px;
  right: 28px;
  top: 89.9px;
  height: 89.53px;
  align-items: center;
  justify-content: center;
  margin: 0;
  color: #ff7581;
  text-align: center;
  white-space: pre-line;
  font: 700 23px/1.12 'Silkscreen', 'Zpix', monospace;
  text-shadow: 2px 2px 0 #5b111b;
}
html:not([lang='en']) #deathTitleArt {
  display: block;
  left: 29.17px;
  top: 58px;
  width: 300px;
  height: 134px;
  object-fit: contain;
}
html:not([lang='en']) #deathTitleText {
  display: none;
}
#deathNoHearts {
  position: absolute;
  left: 0;
  right: 0;
  top: 198.5px;
  height: 25px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  color: #eee8df;
  font: 400 14px/1 'Silkscreen', 'Zpix', monospace;
  letter-spacing: 0;
  text-shadow: 1px 1px 0 #000;
}
#deathNoHearts img {
  width: 22.67px;
  height: 25.33px;
  object-fit: fill;
  image-rendering: auto;
}
#deathResultPanel {
  position: absolute;
  left: 22.67px;
  top: 243.43px;
  width: 313px;
  height: 124px;
  box-sizing: border-box;
  background: var(--death-panel) center/100% 100% no-repeat;
  color: #f1eee5;
  text-align: left;
  font: 400 13px/1 'Silkscreen', 'Zpix', monospace;
  letter-spacing: 0;
  text-shadow: 1px 1px 0 #000;
}
.death-result-row {
  position: absolute;
  left: 23px;
  right: 25px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-sizing: border-box;
}
.death-result-row.score {
  top: 31px;
  border-bottom: 1px solid #645c52;
}
.death-result-row.stage {
  top: 67px;
}
.death-result-label {
  font-size: 12px;
  color: #f1eee5;
}
.death-result-value {
  font-size: 14px;
  color: #74e145;
  text-align: right;
}
#deathQuote {
  position: absolute;
  left: 22px;
  right: 22px;
  top: 384.8px;
  height: 22px;
  display: grid;
  grid-template-columns: 14px minmax(0, 1fr) 14px;
  align-items: center;
  gap: 8px;
  color: #eee8df;
}
#deathQuote img {
  width: 14px;
  height: 12px;
  object-fit: fill;
  image-rendering: auto;
}
#deathQuote img:last-child {
  transform: scaleX(-1);
}
#deathTaunt {
  min-width: 0;
  margin: 0;
  color: #eee8df;
  font: 400 9px/1 'Silkscreen', 'Zpix', monospace;
  font-style: normal;
  letter-spacing: 0;
  text-align: center;
  text-shadow: 1px 1px 0 #000;
  display: block;
  overflow: hidden;
  white-space: nowrap;
}
#deathRetryBtn {
  position: absolute;
  left: 54.17px;
  top: 418.1px;
  width: 250px;
  height: 38.67px;
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  border: 1.33px solid #645c52;
  background: rgba(4, 5, 4, 0.94);
  color: #eee8df;
  cursor: pointer;
  font: 400 15px/1 'Silkscreen', 'Zpix', monospace;
  text-transform: uppercase;
  letter-spacing: 0;
  text-shadow: 1px 1px 0 #000;
}
#deathRetryBtn:active {
  transform: translateY(1px);
  filter: brightness(0.72);
}
#reviveBtn {
  position: absolute;
  left: 53.5px;
  top: 468.77px;
  width: 251.33px;
  height: 53.33px;
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  border: 0;
  background: var(--death-share-button) center/100% 100% no-repeat;
  color: #fff;
  cursor: pointer;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 48px;
  align-items: center;
  font: 400 16px/1 'Silkscreen', 'Zpix', monospace;
  text-transform: uppercase;
  letter-spacing: 0;
  text-shadow: 2px 2px 0 #173617;
}
#reviveBtn img {
  position: absolute;
  left: 14px;
  top: 12.67px;
  width: 28px;
  height: 28px;
  object-fit: fill;
  image-rendering: auto;
  pointer-events: none;
}
#reviveBtnLabel {
  position: static;
  grid-column: 2;
  display: block;
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: 0;
  overflow: visible;
  overflow-wrap: normal;
  white-space: nowrap;
  text-align: center;
  font-size: 12px;
  line-height: 1.05;
  pointer-events: none;
}
#reviveBtn:active {
  transform: translateY(2px);
  filter: brightness(0.8);
}
#reviveBtn:disabled {
  opacity: 0.62;
  cursor: wait;
  filter: saturate(0.5);
}
#deathShareFooter {
  position: absolute;
  left: 34px;
  right: 34px;
  top: 535.5px;
  min-height: 20px;
  margin: 0;
  color: #a8a59e;
  font: 400 8px/1.35 'Silkscreen', 'Zpix', monospace;
  letter-spacing: 0;
  text-align: center;
  text-shadow: 1px 1px 0 #000;
}
#death.revive-locked #deathRetryBtn:disabled {
  opacity: 0.28;
  cursor: not-allowed;
  filter: grayscale(1);
}
#endlessRecorded {
  display: none;
}
/* ---------- Endless settlement: approved 1080x1920 design ---------- */
/* 無盡結算(2026-07-23 定稿):基準 = 破紀錄版;.endless-close(未破)整塊下移 13.85px、標題較大 */
/* 標題圖字用完整多行原圖(record 2 行 / close 3 行),box 比例對齊圖片避免拉伸或裁切 */
#death.endless-result #deathTitleArt {
  left: 20px;
  top: 138px;
  width: 320px;
  height: 80.3px;
}
#death.endless-result.endless-close #deathTitleArt {
  left: 20px;
  top: 120px;
  width: 320px;
  height: 108px;
}
html:not([lang='en']) #death.endless-result #deathTitleArt {
  left: 20px;
  top: 126px;
  width: 320px;
  height: 100px;
  object-fit: contain;
}
html:not([lang='en']) #death.endless-result.endless-close #deathTitleArt {
  left: 20px;
  top: 112px;
  width: 320px;
  height: 120px;
}
#death.endless-result #deathTitleText {
  left: 18px;
  right: 18px;
  top: 128px;
  height: 98px;
  font-size: 20px;
}
#death.endless-result.endless-close #deathTitleText {
  top: 112px;
  height: 118px;
  font-size: 18px;
}
#death.endless-result #deathNoHearts {
  display: none;
}
#death.endless-result #endlessRecorded {
  position: absolute;
  left: 0;
  right: 0;
  top: 231.7px;
  height: 17px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #eee8df;
  font: 400 10px/1 'Silkscreen', 'Zpix', monospace;
  letter-spacing: 0;
  text-shadow: 1px 1px 0 #000;
}
#death.endless-result #deathResultPanel {
  left: 22.67px;
  top: 265.1px;
  width: 313px;
  height: 80.67px;
  background-image: var(--endless-panel);
}
#death.endless-result .death-result-row {
  left: 23px;
  right: 25px;
  height: 26px;
}
#death.endless-result .death-result-row.score {
  top: 15px;
}
#death.endless-result .death-result-row.stage {
  top: 49px;
}
#death.endless-result #deathQuote {
  top: 363.75px;
}
#death.endless-result #deathRetryBtn {
  top: 396.43px;
}
#death.endless-result #reviveBtn {
  top: 446.57px;
}
#death.endless-result.endless-close #endlessRecorded {
  top: 245.55px;
}
#death.endless-result.endless-close #deathResultPanel {
  top: 278.95px;
}
#death.endless-result.endless-close #deathQuote {
  top: 377.6px;
}
#death.endless-result.endless-close #deathRetryBtn {
  top: 410.28px;
}
#death.endless-result.endless-close #reviveBtn {
  top: 460.42px;
}
#death.endless-result #deathShareFooter {
  display: none !important;
}
/* 無盡結算專屬的回首頁鍵:置於 SHARE 下方、與其右緣切齊的次要按鈕(一般關卡死亡頁不顯示) */
#deathHomeBtn {
  display: none;
}
#death.endless-result #deathHomeBtn {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  right: 55.17px;
  top: 512px;
  width: 96px;
  height: 30px;
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  border: 1.33px solid #645c52;
  background: rgba(4, 5, 4, 0.94);
  color: #cfc9bd;
  cursor: pointer;
  font: 400 11px/1 'Silkscreen', 'Zpix', system-ui, sans-serif;
  letter-spacing: 0;
  text-transform: uppercase;
  text-shadow: 1px 1px 0 #000;
}
#death.endless-result.endless-close #deathHomeBtn {
  top: 526px;
}
#death.endless-result #deathHomeBtn:active {
  transform: translateY(1px);
  filter: brightness(0.72);
}
#endlessVideoCampaignBtn {
  display: none;
}
#death.endless-result #endlessVideoCampaignBtn {
  display: flex;
  left: 53.5px;
  top: 552px;
  width: 251.3px;
  height: 42px;
}
#death.endless-result.endless-close #endlessVideoCampaignBtn {
  top: 566px;
}
/* ---------- 分享彈窗(弹窗-分享 1080x1920 定稿) ---------- */
#shareModal {
  position: absolute;
  inset: 0;
  display: none;
  background: #000;
  z-index: 30;
}
#sharePanel {
  position: absolute;
  inset: 0;
  width: 360px;
  height: 640px;
  object-fit: fill;
  pointer-events: none;
  -webkit-user-drag: none;
  user-select: none;
}
#shareTitle {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
#shareCloseBtn {
  position: absolute;
  left: 306px;
  top: 98px;
  width: 24px;
  height: 24px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: transparent;
  cursor: pointer;
  font-size: 0;
}
#shareCloseBtn:active {
  transform: translateY(1px);
  filter: brightness(0.7);
}
#shareCardPreview {
  position: absolute;
  left: 46.5px;
  top: 150px;
  width: 265.33px;
  height: 318.67px;
  box-sizing: border-box;
  object-fit: contain;
  image-rendering: auto;
  background: #0b0f0b;
  border: 1.33px solid #645c52;
  pointer-events: none;
  -webkit-user-drag: none;
  user-select: none;
}
#shareCardPreview.long-press-save {
  pointer-events: auto;
  -webkit-touch-callout: default;
  -webkit-user-select: auto;
  user-select: auto;
}
.share-act {
  position: absolute;
  top: 477px;
  width: 52.8px;
  height: 49px;
  box-sizing: border-box;
  margin: 0;
  padding: 5px 0 2px;
  border: 0;
  background: transparent;
  color: #e8e2d8;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 3px;
  overflow: hidden;
  font: 400 6px/1 'Silkscreen', 'Zpix', monospace;
  letter-spacing: 0;
  text-shadow: 1px 1px 0 #000;
  white-space: nowrap;
}
.share-act img,
.share-act span {
  visibility: hidden;
}
.share-act:active {
  transform: translateY(1px);
  filter: brightness(0.72);
}
#shareActDownload {
  left: 47.5px;
}
#shareActCopy {
  left: 100.3px;
}
#shareActTwitter {
  left: 153.1px;
}
#shareActTg {
  left: 205.9px;
}
#shareActMore {
  left: 258.7px;
}
#shareToast {
  position: absolute;
  left: 0;
  right: 0;
  top: 551px;
  text-align: center;
  color: #9adca8;
  font: 400 9px/1 'Silkscreen', 'Zpix', monospace;
  text-shadow: 1px 1px 0 #000;
  opacity: 0;
  transition: opacity 0.25s;
}
#shareToast.show {
  opacity: 1;
}
/* ---------- Stage 1-3 settlement: approved 1080x1920 design ---------- */
#clearStandard,
#clearStage4 {
  display: none;
}
#clearLegacy {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
#clear.standard-clear,
#clear.all-clear {
  --overlay-mask: rgba(0, 0, 0, 0.82);
  padding: 0;
  overflow: hidden;
  justify-content: flex-start;
  background: var(--overlay-mask);
  box-shadow: 0 0 0 100vmax var(--overlay-mask);
}
#clear.standard-clear::before,
#clear.all-clear::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(33, 42, 36, 0.18), transparent 30%),
    repeating-linear-gradient(
      to bottom,
      rgba(255, 255, 255, 0.018) 0,
      rgba(255, 255, 255, 0.018) 1px,
      transparent 1px,
      transparent 4px
    );
  pointer-events: none;
}
#clear.standard-clear #clearStandard {
  display: block;
  position: absolute;
  inset: 0;
}
#clear.standard-clear #clearLegacy {
  display: none;
}
#clearTitleArt {
  position: absolute;
  left: -8.8px;
  top: 130.2px;
  width: 375.5px;
  height: 198px;
  object-fit: fill;
  image-rendering: auto;
  pointer-events: none;
}
#clearTitleText {
  display: none;
  position: absolute;
  left: 20px;
  right: 20px;
  top: 154px;
  height: 96px;
  align-items: center;
  justify-content: center;
  margin: 0;
  color: #82ef4a;
  text-align: center;
  font: 700 31px/1.05 'Silkscreen', 'Zpix', monospace;
  text-shadow: 3px 3px 0 #173617;
}
html[lang='en'] #clearTitleArt {
  left: 28px;
  top: 117px;
  width: 304px;
  height: 156px;
  object-fit: contain;
}
html:not([lang='en']) #clearTitleArt {
  display: block;
  left: 28px;
  top: 83px;
  width: 304px;
  height: 154px;
  object-fit: contain;
}
html:not([lang='en']) #clearTitleText {
  display: none;
}
#clearReward {
  position: absolute;
  left: 0;
  right: 0;
  top: 257.7px;
  height: 43.3px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #f4f4ef;
  font: 400 13px/1 'Silkscreen', 'Zpix', monospace;
  letter-spacing: 0;
  text-shadow: 2px 2px 0 #000;
  white-space: nowrap;
}
#clearRewardGem {
  width: 43.3px;
  height: 43.3px;
  object-fit: fill;
  image-rendering: auto;
  flex: 0 0 auto;
}
#clearRewardValue {
  margin-left: 5px;
}
#clearResultPanel {
  position: absolute;
  left: 22.7px;
  top: 309px;
  width: 313px;
  height: 80.7px;
  box-sizing: border-box;
  background: var(--settlement-panel) center/100% 100% no-repeat;
  color: #f1eee5;
  text-align: left;
  font: 400 13px/1 'Silkscreen', 'Zpix', monospace;
  letter-spacing: 0;
  text-shadow: 1px 1px 0 #000;
}
.clear-result-row {
  position: absolute;
  left: 42px;
  right: 40px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.clear-result-row.score {
  top: 16px;
}
.clear-result-row.stage {
  top: 50px;
}
.clear-result-label {
  font-size: 12px;
  color: #f1eee5;
}
.clear-result-value {
  font-size: 14px;
  color: #5be238;
  text-align: right;
}
#clearCongrats {
  position: absolute;
  left: 24px;
  right: 24px;
  top: 394px;
  height: 28px;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #7dff5e;
  text-align: center;
  font: 400 9px/1.25 'Silkscreen', 'Zpix', monospace;
  letter-spacing: 0;
  text-shadow: 1px 1px 0 #001700;
  white-space: pre-line;
}
#clearShareBtn {
  position: absolute;
  left: 54.2px;
  top: 427px;
  width: 250px;
  height: 40px;
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  border: 2px solid #aaa592;
  background: rgba(7, 8, 7, 0.9);
  box-shadow: inset 0 0 0 2px #211f18;
  color: #eee;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  font: 400 15px/1 'Silkscreen', 'Zpix', monospace;
  letter-spacing: 0;
  text-shadow: 1px 1px 0 #000;
}
#clearShareBtn img {
  width: 40px;
  height: 40px;
  object-fit: fill;
  image-rendering: auto;
}
#clearShareBtn:active {
  transform: translateY(1px);
  filter: brightness(0.78);
}
#clearNextBtn {
  position: absolute;
  left: 53.5px;
  top: 477px;
  width: 251.3px;
  height: 53.3px;
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent var(--settlement-next) center/100% 100% no-repeat;
  color: #fff;
  cursor: pointer;
  font: 400 21px/1 'Silkscreen', 'Zpix', monospace;
  letter-spacing: 0;
  text-shadow: 2px 2px 0 #173617;
}
#clearNextBtn:active {
  transform: translateY(2px);
  filter: brightness(0.8);
}
.x-video-campaign-cta {
  position: absolute;
  box-sizing: border-box;
  margin: 0;
  padding: 3px 4px 3px 34px;
  border: 1px solid #55c64d;
  background: linear-gradient(180deg, rgba(13, 34, 14, 0.96), rgba(4, 12, 5, 0.96));
  box-shadow: inset 0 0 0 2px rgba(99, 255, 75, 0.11), 0 0 8px rgba(75, 255, 62, 0.2);
  color: #f2f0e8;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  font-family: var(--locale-ui-font);
  letter-spacing: 0;
  text-align: center;
  text-shadow: 1px 1px 0 #000;
}
.x-video-campaign-cta::before {
  content: 'X';
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border: 1px solid #8eff76;
  color: #fff;
  background: #050705;
  font: 700 9px/1 'Silkscreen', 'Zpix', monospace;
}
.x-video-campaign-cta:active {
  transform: translateY(1px);
  filter: brightness(0.8);
}
.x-video-campaign-line {
  display: block;
  padding-left: 0;
  font: 400 7.5px/1.1 var(--locale-ui-font);
  color: #f2f0e8;
  white-space: nowrap;
}
.x-video-campaign-reward {
  display: block;
  padding-left: 0;
  font: 700 8px/1 var(--locale-ui-font);
  color: #7dff5e;
  white-space: nowrap;
}
#clearVideoCampaignBtn {
  left: 53.5px;
  top: 542px;
  width: 251.3px;
  height: 42px;
}
#clear.all-clear #clearStage4 {
  display: block;
  position: absolute;
  inset: 0;
}
#clear.all-clear #clearLegacy,
#clear.all-clear #clearStandard {
  display: none;
}
#clearStage4Title {
  position: absolute;
  left: 0;
  top: 0;
  width: 360px;
  height: 262px;
  object-fit: fill;
  image-rendering: auto;
  pointer-events: none;
}
#clearStage4TitleText {
  display: none;
  position: absolute;
  left: 19px;
  right: 19px;
  top: 76px;
  height: 103px;
  align-items: center;
  justify-content: center;
  margin: 0;
  color: #82ef4a;
  text-align: center;
  white-space: pre-line;
  font: 700 26px/1.05 'Silkscreen', 'Zpix', monospace;
  text-shadow: 3px 3px 0 #173617;
}
html:not([lang='en']) #clearStage4Title {
  display: block;
  left: 25px;
  top: 22px;
  width: 310px;
  height: 174px;
  object-fit: contain;
}
html:not([lang='en']) #clearStage4TitleText {
  display: none;
}
#clearStage4Reward {
  position: absolute;
  left: 0;
  right: 0;
  top: 201px;
  height: 43.3px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #f4f4ef;
  font: 400 13px/1 'Silkscreen', 'Zpix', monospace;
  letter-spacing: 0;
  text-shadow: 2px 2px 0 #000;
  white-space: nowrap;
}
#clearStage4Reward img {
  width: 43.3px;
  height: 43.3px;
  object-fit: fill;
  image-rendering: auto;
  flex: 0 0 auto;
}
#clearStage4RewardValue {
  margin-left: 5px;
}
#clearStage4Panel {
  position: absolute;
  left: 22.7px;
  top: 252.4px;
  width: 313px;
  height: 124px;
  box-sizing: border-box;
  background: var(--settlement-stage4-panel) center/100% 100% no-repeat;
  color: #f1eee5;
  text-align: left;
  font: 400 13px/1 'Silkscreen', 'Zpix', monospace;
  letter-spacing: 0;
  text-shadow: 1px 1px 0 #000;
}
.clear-stage4-row {
  position: absolute;
  left: 23px;
  right: 25px;
  height: 25px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-sizing: border-box;
}
.clear-stage4-row.score {
  top: 31px;
  border-bottom: 1px solid #645c52;
}
.clear-stage4-row.stage {
  top: 67px;
}
.clear-stage4-label {
  font-size: 12px;
  color: #f1eee5;
}
.clear-stage4-value {
  font-size: 14px;
  color: #74e145;
  text-align: right;
}
#clearStage4Congrats {
  position: absolute;
  left: 21.7px;
  right: 21.7px;
  top: 397.3px;
  height: 60px;
  margin: 0;
  color: #00ff15;
  text-align: center;
  font: 400 10px/1.48 'Silkscreen', 'Zpix', monospace;
  letter-spacing: 0;
  text-shadow: 1px 1px 0 #001700;
}
#clearStage4Share {
  position: absolute;
  left: 54.2px;
  top: 463px;
  width: 250px;
  height: 38.7px;
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  border: 2px solid #aaa592;
  background: rgba(7, 8, 7, 0.9);
  box-shadow: inset 0 0 0 2px #211f18;
  color: #eee;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  font: 400 15px/1 'Silkscreen', 'Zpix', monospace;
  letter-spacing: 0;
  text-shadow: 1px 1px 0 #000;
}
#clearStage4Share img {
  width: 40px;
  height: 40px;
  object-fit: fill;
  image-rendering: auto;
}
#clearStage4Share:active {
  transform: translateY(1px);
  filter: brightness(0.78);
}
#clearClaimBtn {
  position: absolute;
  left: 53.5px;
  top: 513.2px;
  width: 251.3px;
  height: 53.3px;
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent var(--settlement-next) center/100% 100% no-repeat;
  color: #fff;
  cursor: pointer;
  font: 400 18px/1 'Silkscreen', 'Zpix', monospace;
  letter-spacing: 0;
  text-shadow: 2px 2px 0 #173617;
}
#clearClaimBtn:active {
  transform: translateY(2px);
  filter: brightness(0.8);
}
#clearClaimBtn:disabled {
  cursor: default;
  filter: saturate(0.45) brightness(0.72);
}
#clearClaimBtn.login-required {
  padding: 0 13px;
  font: 400 13px/1.1 var(--locale-ui-font);
}
html[lang='ru'] #clearClaimBtn.login-required {
  font-size: 10px;
}
#clearStage4VideoCampaignBtn {
  left: 53.5px;
  top: 578px;
  width: 251.3px;
  height: 38px;
}
#clearStage4Nav {
  position: absolute;
  left: 53.5px;
  top: 572px;
  width: 251.3px;
  height: 42px;
  display: none;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 7px;
  box-sizing: border-box;
}
#clearStage4HomeBtn {
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  margin: 0;
  padding: 0 4px;
  border: 2px solid #aaa592;
  background: rgba(7, 8, 7, 0.94);
  box-shadow: inset 0 0 0 2px #211f18;
  color: #eee;
  cursor: pointer;
  font: 400 9px/1.15 var(--locale-ui-font);
  letter-spacing: 0;
  text-shadow: 1px 1px 0 #000;
  white-space: normal;
}
#clearStage4HomeBtn:active {
  transform: translateY(1px);
  filter: brightness(0.78);
}
#clearEndlessBtn {
  display: block;
  position: static;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  margin: 0;
  padding: 0 4px;
  border: 0;
  background: transparent var(--settlement-next) center/100% 100% no-repeat;
  color: #fff;
  cursor: pointer;
  font: 400 9px/1.15 var(--locale-ui-font);
  letter-spacing: 0;
  text-shadow: 2px 2px 0 #173617;
  filter: brightness(1.18) drop-shadow(0 0 7px rgba(92, 255, 70, 0.7));
  white-space: normal;
}
#clearEndlessBtn:active {
  transform: translateY(2px);
  filter: brightness(0.85);
}
#clearStage4Report {
  display: none;
  position: absolute;
  left: 27px;
  right: 27px;
  top: 575px;
  min-height: 36px;
  margin: 0;
  color: #77ee58;
  text-align: center;
  font: 400 7px/1.4 'Silkscreen', 'Zpix', monospace;
  letter-spacing: 0;
  text-shadow: 1px 1px 0 #001700;
}
#clearStage4.endless-ready #clearStage4Share {
  top: 463px;
  height: 38.7px;
}
#clearStage4.endless-ready #clearClaimBtn {
  display: none;
}
#clearStage4.endless-ready #clearStage4VideoCampaignBtn {
  display: none;
}
#clearStage4.endless-ready #clearStage4Nav {
  display: grid;
  top: 513.2px;
  height: 53.3px;
}
#clearStage4.endless-ready #clearStage4Report {
  display: block;
}
/* ---------- landing:approved 1080x1920 design rebuilt as live controls ---------- */
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
#landing {
  display: flex;
  padding: 0;
  overflow: hidden;
  background: transparent;
  justify-content: flex-start;
}
#landing {
  --lang-left: 8.667px;
  --lang-button-top: 433.333px;
  --lang-button-width: 87.667px;
  --lang-button-height: 33px;
  --lang-panel-height: 152.667px;
  --lang-seam-overlap: 1px;
}
#landing::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  pointer-events: none;
  z-index: 0;
}
#landing::after {
  bottom: 0;
  height: 359px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.45) 32.5%, rgba(0, 0, 0, 0) 100%);
}
#landing > * {
  z-index: 1;
}
#homeTitle {
  position: absolute;
  top: 0;
  left: 9px;
  width: 342px;
  height: 143px;
  object-fit: contain;
  image-rendering: auto;
}
#homeTitleFallback {
  position: absolute;
  top: 12px;
  left: 9px;
  width: 342px;
  height: 119px;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #ece9d7;
  text-align: center;
  font: 700 39px/0.92 'Silkscreen', 'Zpix', monospace;
  letter-spacing: -2px;
  text-shadow: 3px 3px 0 #202019, 0 0 2px #000;
}
#homeTitleFallback span:last-child {
  margin-top: 9px;
  color: #71d643;
  font-size: 24px;
  letter-spacing: -1px;
  text-shadow: 2px 2px 0 #14300f, 0 0 2px #000;
}
#homeTitleFallback.is-visible {
  display: flex;
}
#homeRewardArt {
  display: none;
}
#homeRewardBanner {
  position: absolute;
  z-index: 3;
  top: 143px;
  left: 37.667px;
  width: 284.667px;
  height: 24px;
  pointer-events: none;
}
.home-reward-gem {
  position: absolute;
  top: 0;
  width: 24px;
  height: 24px;
  overflow: hidden;
}
.home-reward-gem.left {
  left: 0;
}
.home-reward-gem.right {
  right: 0;
}
.home-reward-gem img {
  position: absolute;
  top: 0;
  width: 284.667px;
  height: 24px;
  max-width: none;
  object-fit: fill;
  image-rendering: auto;
}
.home-reward-gem.left img {
  left: 0;
}
.home-reward-gem.right img {
  right: 0;
}
#homeTaglineText {
  position: absolute;
  left: 27px;
  right: 27px;
  top: 0;
  height: 24px;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  color: #f2eee4;
  text-align: center;
  font: 400 8px/1 var(--locale-ui-font);
  letter-spacing: 0;
  text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000;
}
html[lang='ja'] #homeTaglineText {
  font-size: 7.2px;
}
html[lang='ru'] #homeTaglineText {
  font-size: 6.1px;
}
html[lang='ko'] #homeTaglineText {
  font-size: 7.1px;
}
#homeCharacterIdle {
  position: absolute;
  z-index: 0;
  top: 162px;
  left: 50%;
  width: 349px;
  height: 480px;
  overflow: hidden;
  pointer-events: none;
  transform: translateX(-50%);
}
#homeCharacterIdle::before {
  content: '';
  position: absolute;
  inset: 0;
  display: block;
  background: transparent var(--home-idle-poster) center/100% 100% no-repeat;
  opacity: 0;
  pointer-events: none;
}
#homeCharacterIdle.is-resetting::before {
  opacity: 1;
}
#homeCharacterIdle.is-static-poster::before {
  opacity: 1;
}
#homeCharacterIdle.is-static-poster #homeCharacterIdleVideo {
  display: none;
}
#homeCharacterIdleVideo {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: fill;
  image-rendering: auto;
  pointer-events: none;
}
#homeCharacterIdleVideo {
  opacity: 1;
  background: transparent;
  transition: opacity 0.45s ease;
  will-change: opacity;
}
#homeCharacterIdleVideo.is-resetting {
  opacity: 0;
}
#homeCharacterIdleCanvas {
  position: absolute;
  inset: 0;
  display: none;
  width: 100%;
  height: 100%;
  opacity: 1;
  transition: opacity 0.45s ease;
  pointer-events: none;
}
#homeCharacterIdle.is-resetting #homeCharacterIdleCanvas {
  opacity: 0;
}
#homeCharacterIdle.is-packed-alpha #homeCharacterIdleCanvas {
  display: block;
}
#homeCharacterIdle.is-packed-alpha #homeCharacterIdleVideo {
  display: block;
  width: 1px;
  height: 1px;
  opacity: 0;
  left: -2px;
  top: -2px;
}
#runBtn {
  position: absolute;
  top: 352.914px;
  left: 87.152px;
  width: 186px;
  height: 86px;
  margin: 0;
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent var(--home-run) center/153px 53.333px no-repeat;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font: 400 20px/1 'Silkscreen', 'Zpix', monospace;
  letter-spacing: 0;
  text-shadow: 2px 2px 0 #14220f;
  filter: drop-shadow(0 0 4px rgba(81, 255, 47, 0.62)) drop-shadow(0 0 8px rgba(92, 255, 57, 0.38));
}
#runBtn #runLabel {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 142px;
  padding: 0 7px;
  box-sizing: border-box;
  font-size: 20px;
  white-space: nowrap;
}
#runBtn:active {
  transform: translateY(2px);
  filter: brightness(0.82);
}
#runBtn.endless #runLabel {
  font-size: 18px;
}
html[lang='ja'] #runBtn.endless #runLabel {
  font-size: 16px;
}
html[lang='ru'] #runBtn.endless #runLabel {
  font-size: 12px;
}
#bestScore {
  position: absolute;
  top: 437.136px;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6.333px;
  text-align: center;
  color: #eee8d2;
  font: 400 11px/1 'Silkscreen', monospace;
  letter-spacing: 0;
  text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000;
}
#bestScoreValue {
  color: #74e145;
  font-size: 11px;
}
#homeStagePanel {
  position: absolute;
  top: 461px;
  left: 8.667px;
  width: 342.667px;
  height: 104.667px;
  background: transparent var(--home-stage-panel) center/100% 100% no-repeat;
}
#endlessShortcut {
  position: absolute;
  z-index: 2;
  top: 1px;
  right: 10px;
  height: 15px;
  margin: 0;
  padding: 0 4px;
  border: 1px solid #4c7841;
  background: #10170e;
  color: #7dff5e;
  cursor: pointer;
  font: 400 7px/1 'Silkscreen', 'Zpix', monospace;
  text-shadow: 1px 1px 0 #000;
  display: none;
}
#endlessShortcut:active {
  transform: translateY(1px);
  filter: brightness(0.8);
}
#stageSel {
  position: absolute;
  top: 17px;
  left: 10px;
  right: 10px;
  height: 78px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 5px;
}
.stg {
  position: relative;
  width: 100%;
  height: 78px;
  margin: 0;
  padding: 0;
  border: 0;
  color: #fff;
  cursor: pointer;
  font-family: 'Silkscreen', monospace;
  font-weight: 400;
  letter-spacing: 0;
  image-rendering: auto;
  text-shadow: 1px 1px 0 #000;
}
.stg.open {
  background: var(--home-stage-card) center/100% 100% no-repeat;
}
.stg-title {
  position: absolute;
  top: 5px;
  left: 0;
  right: 0;
  font-size: 8px;
  line-height: 1;
}
.stg-icon {
  position: absolute;
  top: 22px;
  left: 0;
  right: 0;
  height: 29px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.stg-icon img {
  object-fit: contain;
  image-rendering: auto;
}
.stg-status {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 4px;
  font-size: 7px;
  line-height: 1;
  color: #55e331;
}
.stg.completed .stg-icon img {
  width: 29px;
  height: 29px;
}
.stg.lock {
  background: #3f3b35;
  cursor: not-allowed;
}
.stg.lock .stg-icon img {
  width: 15px;
  height: 20px;
}
.stg.lock .stg-status {
  display: none;
}
.stg.selected {
  box-shadow: inset 0 0 0 1px rgba(125, 255, 94, 0.9), 0 0 4px rgba(85, 255, 63, 0.75);
}
.stg:active:not(.lock) {
  transform: translateY(1px);
  filter: brightness(0.82);
}
#homeFooterArt {
  display: none;
}
#landLinks {
  position: absolute;
  top: 571px;
  left: 9px;
  width: 342px;
  height: 33px;
  display: grid;
  grid-template-columns: 113px 113px 106px;
  gap: 5px;
  z-index: 2;
}
.home-link-btn {
  position: relative;
  height: 33px;
  margin: 0;
  padding: 0 6px;
  border: 0;
  background: transparent var(--home-footer-button) center/100% 100% no-repeat;
  color: #74e145;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  box-sizing: border-box;
}
.home-link-icon {
  display: block;
  flex: 0 0 auto;
  object-fit: contain;
  image-rendering: auto;
}
.home-link-btn:nth-child(1) .home-link-icon {
  width: 11px;
  height: 17px;
}
.home-link-btn:nth-child(2) .home-link-icon {
  width: 18px;
  height: 17px;
}
.home-link-btn:nth-child(3) .home-link-icon {
  width: 18px;
  height: 13px;
}
.home-link-copy {
  display: block;
  min-width: 0;
  color: #74e145;
  text-align: center;
  font: 400 8px/1 'Silkscreen', 'Zpix', monospace;
  letter-spacing: 0;
  text-shadow: 1px 1px 0 #000;
  white-space: nowrap;
}
html[lang='ru'] .home-link-btn {
  gap: 3px;
  padding-left: 4px;
  padding-right: 4px;
}
html[lang='ru'] .home-link-copy {
  font-size: 6px;
}
html[lang='ru'] #reviveBtnLabel {
  font-size: 10px;
}
html[lang='ru'] #clearCongrats {
  left: 12px;
  right: 12px;
}
html[lang='ru'] .pause-action-btn {
  font-size: 8px;
  padding-left: 5px;
  padding-right: 5px;
}
html[lang='ja'] #reviveBtnLabel,
html[lang='ko'] #reviveBtnLabel {
  font-size: 12px;
}
.home-link-btn:active {
  transform: translateY(1px);
  filter: brightness(0.75);
}
.home-link-btn.linked {
  filter: brightness(1.08);
}
.home-link-btn.linked .home-link-copy {
  color: #d9ffd0;
  text-shadow: 1px 1px 0 #173617;
}
.home-link-btn.linked::after {
  content: '';
  position: absolute;
  right: 5px;
  top: 5px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #72ef47;
  box-shadow: 0 0 5px rgba(114, 239, 71, 0.8);
}

/* ---------- 多語言選單(Group 2085661789 + 弹窗) ---------- */
/* 重建的乾淨金屬框按鈕(左右對稱框角);整張圖即按鈕 */
#langBtn {
  position: absolute;
  z-index: 7;
  left: var(--lang-left);
  top: var(--lang-button-top);
  width: var(--lang-button-width);
  height: var(--lang-button-height);
  margin: 0;
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent var(--lang-button) center/100% 100% no-repeat;
  cursor: pointer;
  font-size: 0;
  color: transparent;
}
#langBtn:active {
  transform: translateY(1px);
  filter: brightness(0.8);
}
#langPopup {
  position: absolute;
  z-index: 6;
  left: var(--lang-left);
  top: calc(var(--lang-button-top) - var(--lang-panel-height) + var(--lang-seam-overlap));
  width: var(--lang-button-width);
  height: var(--lang-panel-height);
  background: var(--lang-panel) center/100% 100% no-repeat;
  display: none;
  padding: 10.833px 11.167px;
  box-sizing: border-box;
  flex-direction: column;
  justify-content: space-between;
  isolation: isolate;
}
/* Runtime inner-well cover removes vertical joins baked into panel.png. */
#langPopup::before {
  content: '';
  position: absolute;
  z-index: 0;
  pointer-events: none;
  left: 3.333px;
  right: 3.333px;
  top: 9.333px;
  bottom: 13.333px;
  background: repeating-linear-gradient(to bottom, #0d0f0c 0, #0d0f0c 1px, #0a0c09 1px, #0a0c09 2px);
}
#langPopup.open {
  display: flex;
}
/* 每個語言名稱固定使用同一個字族，避免單一標籤內逐字回退造成基線跳動。 */
.lang-item {
  position: relative;
  z-index: 1;
  flex: 0 0 25.333px;
  height: 25.333px;
  margin: 0;
  padding: 0;
  border: 1.333px solid transparent;
  outline: 0;
  background: transparent;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11.333px;
  font-weight: 400;
  line-height: 16px;
  letter-spacing: 0;
  text-shadow: 1px 1px 0 #000;
  box-sizing: border-box;
}
.lang-item-label {
  display: block;
  height: 16px;
  line-height: 16px;
  white-space: nowrap;
}
.lang-item[data-locale='en'] {
  font-family: 'Silkscreen', monospace;
}
.lang-item[data-locale='zh-Hant'] {
  font-family: 'Microsoft JhengHei', 'Noto Sans TC', system-ui, sans-serif;
}
.lang-item[data-locale='ja'] {
  font-family: 'Yu Gothic', 'Noto Sans JP', system-ui, sans-serif;
}
.lang-item[data-locale='ru'] {
  font-family: system-ui, 'Noto Sans', sans-serif;
}
.lang-item[data-locale='ko'] {
  font-family: 'Malgun Gothic', 'Noto Sans KR', system-ui, sans-serif;
}
.lang-item:active {
  filter: brightness(0.8);
}
.lang-item.active {
  border-color: #74e145;
  color: #74e145;
  text-shadow: 1px 1px 0 #000;
}
#langBackdrop {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: none;
}
#langBackdrop.open {
  display: block;
}
#period {
  position: absolute;
  top: 617px;
  left: 0;
  right: 0;
  text-align: center;
  color: #d8d4ce;
  font: 400 10px/1 'Silkscreen', monospace;
  letter-spacing: 0;
  text-shadow: 1px 1px 0 #000;
}
#homeToast {
  position: absolute;
  z-index: 6;
  top: 319px;
  left: 30px;
  right: 30px;
  box-sizing: border-box;
  min-height: 20px;
  padding: 5px 8px;
  border: 1px solid rgba(125, 255, 94, 0.45);
  background: rgba(5, 8, 5, 0.9);
  color: #d9ffd0;
  text-align: center;
  font: 400 8px/1.25 'Silkscreen', 'Zpix', monospace;
  letter-spacing: 0;
  text-shadow: 1px 1px 0 #000;
  pointer-events: none;
  opacity: 0;
  transform: translateY(3px);
  transition: opacity 0.12s linear, transform 0.12s ease-out;
}
#homeToast.show {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- modal ---------- */
.modal {
  position: absolute;
  inset: 0;
  display: none;
  align-items: flex-start;
  justify-content: center;
  background: rgba(0, 0, 0, 0.8);
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.8);
  z-index: 20;
  color: #fff;
  text-align: left;
}
.pixel-panel {
  position: relative;
  box-sizing: border-box;
  margin-top: 132px;
  height: 377px;
  background-position: center;
  background-size: 100% 100%;
  background-repeat: no-repeat;
  font-family: 'Silkscreen', 'Zpix', monospace;
  letter-spacing: 0;
  overflow: hidden;
}
.info-panel {
  width: 313px;
  background-image: var(--modal-panel-wide);
}
.rank-panel {
  width: 275px;
  background-image: var(--modal-panel-rank);
}
.modal-close {
  position: absolute;
  z-index: 3;
  top: 8px;
  right: 8px;
  width: 24px;
  height: 24px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #e5d9b1;
  cursor: pointer;
  font: 400 22px/22px 'Silkscreen', 'Zpix', monospace;
  text-align: center;
  text-shadow: 1px 1px 0 #000;
}
.modal-close:active {
  transform: translate(1px, 1px);
  color: #7dff5e;
}
.info-tabs {
  position: absolute;
  top: 16px;
  left: 19px;
  display: flex;
  gap: 10px;
  height: 22px;
  align-items: center;
}
.info-tab {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #6f6f6f;
  cursor: pointer;
  font: 400 14px/1 var(--locale-ui-font);
  letter-spacing: 0;
}
.info-tab[aria-selected='true'] {
  color: #62ed42;
}
.info-divider,
.rank-divider {
  position: absolute;
  left: 20px;
  right: 20px;
  top: 52px;
  height: 1px;
  background: #35332d;
}
.info-page {
  position: absolute;
  left: 21px;
  right: 21px;
  top: 63px;
  bottom: 16px;
  display: none;
}
.info-page.active {
  display: block;
}
#faqPage {
  overflow-x: hidden;
  overflow-y: auto;
  padding-right: 4px;
  scrollbar-width: thin;
  scrollbar-color: #62ed42 #151912;
}
#faqPage::-webkit-scrollbar {
  width: 5px;
}
#faqPage::-webkit-scrollbar-track {
  background: #151912;
}
#faqPage::-webkit-scrollbar-thumb {
  background: #62ed42;
  border: 1px solid #10220c;
}
.faq-item {
  height: 74px;
  display: grid;
  grid-template-columns: 48px 1fr;
  align-items: center;
  border-bottom: 1px solid #39372f;
  box-sizing: border-box;
}
.faq-item:last-child {
  border-bottom: 0;
}
.faq-icon {
  width: 40px;
  height: 40px;
  object-fit: contain;
  image-rendering: auto;
  justify-self: center;
}
.faq-copy {
  padding-left: 7px;
  min-width: 0;
}
.faq-copy h3 {
  margin: 0 0 4px;
  color: #62ed42;
  font: 400 12px/1 var(--locale-ui-font);
}
.faq-copy p {
  margin: 0;
  color: #efefef;
  font: 400 8px/1.35 var(--locale-ui-font);
}
.faq-terms {
  height: auto;
  min-height: 126px;
  grid-template-columns: 1fr;
  align-items: start;
  padding: 11px 6px;
  background: rgba(42, 54, 36, 0.35);
  border: 1px solid #526149;
}
.faq-terms .faq-copy {
  padding: 0;
}
.faq-terms .faq-copy h3 {
  margin-bottom: 7px;
  color: #ffe66c;
  font-size: 12px;
}
.faq-terms .faq-copy p {
  font-size: 10px;
  line-height: 1.45;
  text-transform: none;
}
.rules-copy {
  padding: 3px 2px 0;
  color: #f0f0f0;
  font: 400 11px/1.2 var(--locale-ui-font);
  text-transform: none;
}
.rules-copy p {
  margin: 0 0 14px;
}
.rank-title {
  position: absolute;
  top: 13px;
  left: 38px;
  right: 38px;
  margin: 0;
  text-align: center;
  color: #62ed42;
  font: 400 20px/1 'Silkscreen', 'Zpix', monospace;
}
.rank-week {
  position: absolute;
  top: 39px;
  left: 38px;
  right: 38px;
  color: #d9d2bc;
  text-align: center;
  font: 400 8px/1 'Silkscreen', 'Zpix', monospace;
  letter-spacing: 0.8px;
  text-shadow: 1px 1px 0 #000;
  white-space: nowrap;
}
.rank-divider {
  top: 59px;
  left: 17px;
  right: 17px;
}
#lbList {
  position: absolute;
  top: 65px;
  left: 17px;
  right: 17px;
  bottom: 17px;
  display: flex;
  flex-direction: column;
}
.lb-message {
  width: 100%;
  min-height: 31px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  padding: 10px 2px;
  border-bottom: 1px solid #39372f;
  color: #eee;
  text-align: center;
  white-space: nowrap;
  font: 400 8px/1.05 'Silkscreen', 'Zpix', monospace;
}
.lbrow {
  height: 30px;
  min-height: 30px;
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) auto;
  align-items: center;
  border-bottom: 1px solid #39372f;
  box-sizing: border-box;
  color: #eee;
  font: 400 9px/1.05 'Silkscreen', 'Zpix', monospace;
  font-synthesis: none;
  font-kerning: none;
  font-variant-ligatures: none;
}
.lbrow:last-child,
.lb-message:last-child {
  border-bottom: 0;
}
.lb-rank {
  color: #777;
  text-align: center;
}
.lbrow:nth-child(1) .lb-rank {
  color: #ffe66c;
}
.lbrow:nth-child(2) .lb-rank {
  color: #e9e9e9;
}
.lbrow:nth-child(3) .lb-rank {
  color: #c9762e;
}
.lb-name {
  min-width: 0;
  overflow: hidden;
  padding-right: 4px;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.lb-score {
  color: #62ed42;
  text-align: right;
  font-size: 8px;
  white-space: nowrap;
}
@media (max-width: 400px) {
  .rank-title {
    font-size: 21px;
  }
  .rank-week {
    font-size: 9px;
  }
  .lbrow {
    font-size: 10px;
  }
  .lb-score {
    font-size: 9px;
  }
}
.lbrow.me {
  background: rgba(98, 237, 66, 0.11);
}
.lbrow.me .lb-name {
  color: #ffe66c;
}
#err {
  position: absolute;
  inset: 0;
  display: none;
  z-index: 60;
  align-items: center;
  justify-content: center;
  background: #08080d;
  color: #f88;
  text-align: center;
  font-size: 14px;
  padding: 24px;
  box-sizing: border-box;
}
#bootScreen {
  position: absolute;
  inset: 0;
  z-index: 50;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: #08080d;
  color: #9aff73;
  font: 400 14px/1 'Silkscreen', 'Zpix', monospace;
  text-shadow: 2px 2px 0 #102810;
}
#bootBar {
  width: 190px;
  height: 8px;
  border: 1px solid #46743d;
  background: #10170e;
}
#bootBarIn {
  height: 100%;
  width: 0;
  background: #7dff5e;
  transition: width 0.1s linear;
}
#bootDetail {
  min-height: 12px;
  color: #b8c5b4;
  font: 400 8px/1.3 'Silkscreen', 'Zpix', monospace;
  text-align: center;
}
#bootStartBtn,
#bootRetryBtn {
  min-width: 190px;
  padding: 13px 20px;
  border: 2px solid #7dff5e;
  background: #173f18;
  color: #fff;
  font: 400 12px/1 'Silkscreen', 'Zpix', monospace;
  box-shadow: 0 0 0 2px #132810, 0 0 14px #65ff4f66;
  cursor: pointer;
}
#bootStartBtn {
  animation: boot-start-pulse 1.25s steps(2, end) infinite;
}
#bootStartBtn:active,
#bootRetryBtn:active {
  transform: translateY(2px);
  filter: brightness(0.82);
}
#bootStartBtn[hidden],
#bootRetryBtn[hidden] {
  display: none;
}
@keyframes boot-start-pulse {
  50% {
    filter: brightness(1.3);
    box-shadow: 0 0 0 2px #132810, 0 0 22px #65ff4faa;
  }
}
#appDialog {
  z-index: 40;
  align-items: center;
}
.app-dialog-panel {
  position: relative;
  width: 292px;
  box-sizing: border-box;
  padding: 22px 18px 18px;
  border: 2px solid #746e5b;
  background: #11130f;
  box-shadow: 0 0 0 3px #050605, 0 0 0 5px #343225;
  color: #eee;
  text-align: left;
}
#appDialogTitle {
  margin: 0 0 10px;
  color: #7dff5e;
  font: 400 15px/1.2 'Silkscreen', 'Zpix', monospace;
}
#appDialogMessage {
  margin: 0 0 12px;
  color: #ddd;
  font-size: 12px;
  line-height: 1.45;
  white-space: pre-line;
}
#appDialogInput {
  display: none;
  width: 100%;
  box-sizing: border-box;
  margin: 0 0 12px;
  padding: 9px;
  border: 2px solid #5d6858;
  background: #080b08;
  color: #fff;
  font: 12px/1.2 'Zpix', monospace;
  outline: none;
}
#appDialogInput:focus {
  border-color: #7dff5e;
}
.app-dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 7px;
}
.app-dialog-actions .btn {
  margin: 0;
  padding: 8px 13px;
  font-size: 11px;
}
#accountNotice {
  z-index: 42;
}
.account-notice-panel {
  width: 313px;
  height: 250px;
  margin-top: 195px;
  background-image: var(--modal-panel-wide);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 35px 28px 24px;
  text-align: center;
}
#accountNoticeIcon {
  width: 42px;
  height: 42px;
  object-fit: contain;
  image-rendering: auto;
}
#accountNoticeTitle {
  margin: 13px 0 9px;
  color: #72ef47;
  font: 400 17px/1.15 var(--locale-ui-font);
  text-shadow: 1px 1px 0 #000;
}
#accountNoticeMessage {
  min-height: 48px;
  margin: 0;
  color: #eee;
  font: 400 11px/1.55 var(--locale-ui-font);
  white-space: pre-line;
}
#accountNoticeActions {
  width: 221px;
  height: 47px;
  margin: 15px 0 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 7px;
}
#accountNoticeActions.with-home {
  grid-template-columns: 72px minmax(0, 1fr);
}
#accountNoticeConfirm {
  width: 100%;
  height: 47px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent var(--settlement-next) center/100% 100% no-repeat;
  color: #fff;
  cursor: pointer;
  font: 400 14px/1 var(--locale-ui-font);
  text-shadow: 2px 2px 0 #173617;
}
#accountNoticeConfirm:active {
  transform: translateY(2px);
  filter: brightness(0.8);
}
#accountNoticeHome {
  display: none;
  width: 100%;
  height: 47px;
  margin: 0;
  padding: 0 3px;
  border: 2px solid #aaa592;
  background: rgba(7, 8, 7, 0.94);
  box-shadow: inset 0 0 0 2px #211f18;
  color: #eee;
  cursor: pointer;
  font: 400 9px/1.15 var(--locale-ui-font);
  text-shadow: 1px 1px 0 #000;
}
#accountNoticeHome:active {
  transform: translateY(1px);
  filter: brightness(0.78);
}
html[lang='ru'] #accountNoticeTitle {
  font-size: 14px;
}
html[lang='ru'] #accountNoticeMessage {
  font-size: 9px;
}
