:root {
  --ac:#ffb547;
  --ac2:#3de6c8;
  --wood1:#4a2f1a;
  --wood2:#2a180d;
  --brass:#d6a239;
  --ink:#fff3d6;
}
body {
  background: #0b1030;
}
.scr {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 5;
  pointer-events: none;
}
.scr.on {
  display: block;
}
.scr > * {
  pointer-events: auto;
}
#ui {
  z-index: 8;
  background:
    radial-gradient(
      ellipse at center,
      rgba(12, 16, 44, .5),
      rgba(5, 6, 20, .86));
}
.card {
  background:
    linear-gradient(
      165deg,
      rgba(66, 42, 24, .97),
      rgba(31, 19, 11, .98));
  border: 2px solid var(--brass);
  box-shadow:
    0 0 0 2px #1a0f07 inset,
    0 0 0 4px rgba(214, 162, 57, .35) inset,
    0 0 34px -6px #ffb547,
    0 24px 60px rgba(0, 0, 0, .65);
  border-radius: 22px;
  color: var(--ink);
  position: relative;
  overflow: hidden;
}
.card:before,
.card:after {
  content: "";
  position: absolute;
  top: 8px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background:
    radial-gradient(
      circle at 35% 30%,
      #fff3b0,
      #b27a12);
  box-shadow: 0 0 6px #ffb54788;
}
.card:before {
  left: 8px;
}
.card:after {
  right: 8px;
}
.card h1 {
  font-size: 36px;
  background:
    linear-gradient(
      90deg,
      #ffe29a,
      #ffb547 55%,
      #ff8a3d);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 10px rgba(255, 181, 71, .55));
}
.card .sub {
  color: #e9c98a;
}
.card p {
  color: #e9d9b8;
}
.btn {
  background:
    linear-gradient(
      180deg,
      #ffd476,
      #e79a22 60%,
      #c97a10);
  color: #3a1d05;
  border: 1px solid #fff0b8;
  box-shadow: 0 5px 0 #7a4308, 0 10px 24px -8px #ffb547;
  font-weight: 800;
  text-shadow: 0 1px 0 rgba(255, 255, 255, .4);
}
.btn:active {
  transform: translateY(3px) scale(.98);
  box-shadow: 0 2px 0 #7a4308;
}
.btn.alt {
  background:
    linear-gradient(
      180deg,
      #7fe9d3,
      #2fbfa3);
  color: #06312a;
  border-color: #d4fff4;
  box-shadow: 0 5px 0 #14675a, 0 10px 24px -8px #3de6c8;
  text-shadow: 0 1px 0 rgba(255, 255, 255, .35);
}
.btn.ghost {
  background: rgba(255, 255, 255, .08);
  color: #ffe9b8;
  border: 1px solid rgba(255, 214, 130, .4);
  box-shadow: none;
  text-shadow: none;
}
.btn small {
  display: block;
  font-size: 11px;
  font-weight: 700;
  opacity: .75;
  letter-spacing: .04em;
}
.btn[disabled] {
  opacity: .45;
  filter: grayscale(.6);
  pointer-events: none;
}
.row3 {
  display: flex;
  gap: 8px;
}
.row3 .btn {
  flex: 1;
  font-size: 15px;
  padding: 12px 4px;
}
#menu {
  background:
    radial-gradient(
      ellipse at 50% 38%,
      rgba(255, 181, 71, .12),
      rgba(8, 10, 34, .55) 62%),
    linear-gradient(rgba(6, 8, 28, .15), rgba(6, 8, 28, .55));
  display: none;
}
#menu.on {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: calc(env(safe-area-inset-top) + 18px) 18px calc(env(safe-area-inset-bottom) + 18px);
}
.logo {
  text-align: center;
  margin-top: 4px;
  pointer-events: none;
}
.logo b {
  display: block;
  font-size: 54px;
  line-height: 1;
  letter-spacing: -1.5px;
  font-weight: 800;
  background:
    linear-gradient(
      180deg,
      #fff6cf,
      #ffc95e 48%,
      #ff9a3a);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 3px 0 #6a3a0a) drop-shadow(0 0 18px rgba(255, 181, 71, .6));
  animation: logo 3.5s ease-in-out infinite;
}
.logo span {
  display: block;
  color: #ffe2a6;
  font-size: 13px;
  letter-spacing: .22em;
  text-transform: uppercase;
  margin-top: 6px;
  text-shadow: 0 2px 8px #000;
}
@keyframes logo {
  50% {
    transform: translateY(-3px) scale(1.015);
  }
}
.mbox {
  width: min(340px, 92vw);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.chips {
  display: flex;
  justify-content: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: #ffe9b8;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 11px;
  border-radius: 99px;
  background: rgba(20, 12, 6, .7);
  border: 1px solid rgba(214, 162, 57, .55);
}
.chip img {
  width: 20px;
  height: 20px;
}
.buddies {
  display: flex;
  justify-content: center;
  gap: 6px;
}
.bud {
  position: relative;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  border: 2px solid rgba(214, 162, 57, .5);
  background: rgba(20, 12, 6, .6);
  padding: 2px;
  cursor: pointer;
}
.bud img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.bud.on {
  border-color: #ffe29a;
  box-shadow: 0 0 14px #ffb547;
  background: rgba(255, 181, 71, .2);
}
.bud.lock img {
  filter: brightness(0) opacity(.45);
}
.bud.lock {
  cursor: default;
  opacity: .7;
}
.hint {
  color: #e2c995;
  font-size: 12px;
  text-align: center;
  min-height: 30px;
}
.top {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: calc(env(safe-area-inset-top) + 10px) 12px 8px;
  background: linear-gradient(rgba(8, 10, 34, .85), rgba(8, 10, 34, 0));
  z-index: 2;
}
.top h2 {
  margin: 0;
  flex: 1;
  text-align: center;
  font-size: 20px;
  color: #ffe29a;
  text-shadow: 0 2px 0 #4a2a08, 0 0 14px rgba(255, 181, 71, .6);
}
.back {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 2px solid var(--brass);
  background:
    linear-gradient(
      180deg,
      #5a3a20,
      #2c190d);
  color: #ffe29a;
  font: 800 18px SG, system-ui;
  cursor: pointer;
}
.glowchip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-width: 64px;
  justify-content: center;
  padding: 6px 10px;
  border-radius: 99px;
  background: rgba(20, 12, 6, .75);
  border: 1px solid rgba(214, 162, 57, .6);
  color: #bff7ea;
  font-weight: 800;
  font-size: 14px;
}
.glowchip img {
  width: 22px;
  height: 22px;
}
.gpanel {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 12px 12px calc(env(safe-area-inset-bottom) + 12px);
  background:
    linear-gradient(
      rgba(14, 9, 5, 0),
      rgba(14, 9, 5, .9) 18%,
      rgba(22, 13, 7, .97));
  z-index: 2;
  transition: transform .3s;
}
.gpanel.min {
  transform: translateY(calc(100% - 52px));
}
.ztabs {
  display: flex;
  gap: 6px;
  margin-bottom: 8px;
}
.ztabs button {
  flex: 1;
  padding: 9px 4px;
  border-radius: 12px;
  border: 1px solid rgba(214, 162, 57, .5);
  background: rgba(36, 22, 12, .85);
  color: #e9c98a;
  font: 700 12px SG, system-ui;
  cursor: pointer;
}
.ztabs button.on {
  background:
    linear-gradient(
      180deg,
      #ffd476,
      #e79a22);
  color: #3a1d05;
  border-color: #fff0b8;
}
.steps {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 34vh;
  overflow: auto;
}
.step {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 14px;
  background: rgba(40, 25, 14, .92);
  border: 1px solid rgba(214, 162, 57, .35);
  color: #ffe9b8;
  font-weight: 700;
  font-size: 14px;
}
.step.done {
  border-color: rgba(61, 230, 200, .6);
}
.step .nm {
  flex: 1;
}
.step .nm small {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: #c8b48a;
}
.step .buy {
  padding: 9px 12px;
  border-radius: 12px;
  border: 1px solid #fff0b8;
  background:
    linear-gradient(
      180deg,
      #ffd476,
      #e79a22);
  color: #3a1d05;
  font: 800 14px SG, system-ui;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  box-shadow: 0 3px 0 #7a4308;
}
.step .buy img {
  width: 18px;
  height: 18px;
}
.step .buy[disabled] {
  opacity: .4;
  filter: grayscale(.7);
  box-shadow: none;
}
.sty {
  display: flex;
  gap: 5px;
}
.sty button {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, .25);
  cursor: pointer;
  padding: 0;
}
.sty button.on {
  border-color: #fff;
  box-shadow: 0 0 12px currentColor;
  transform: scale(1.12);
}
.hide {
  position: absolute;
  right: 12px;
  top: -14px;
  width: 44px;
  height: 26px;
  border-radius: 12px 12px 0 0;
  border: 1px solid var(--brass);
  border-bottom: 0;
  background: rgba(36, 22, 12, .95);
  color: #ffe29a;
  cursor: pointer;
  font: 800 13px SG, system-ui;
}
.bubble {
  position: absolute;
  left: 14px;
  right: 14px;
  top: calc(env(safe-area-inset-top) + 62px);
  padding: 10px 14px;
  border-radius: 16px;
  background: rgba(255, 246, 214, .96);
  color: #4a2a08;
  font-weight: 700;
  font-size: 14px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .4);
  opacity: 0;
  transform: translateY(-8px);
  transition: .35s;
  z-index: 3;
  pointer-events: none;
}
.bubble.on {
  opacity: 1;
  transform: none;
}
.bubble b {
  color: #a8620a;
}
.albg {
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(10, 12, 40, .55), rgba(10, 12, 40, .9)), url(img/bg.webp) center/cover;
}
.agrid {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(env(safe-area-inset-top) + 62px);
  bottom: 0;
  padding: 6px 12px calc(env(safe-area-inset-bottom) + 14px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-auto-rows: min-content;
  gap: 10px;
  overflow: auto;
  align-content: start;
}
.acard {
  position: relative;
  border-radius: 18px;
  padding: 8px 8px 10px;
  text-align: center;
  background:
    linear-gradient(
      165deg,
      rgba(66, 42, 24, .95),
      rgba(31, 19, 11, .97));
  border: 2px solid rgba(214, 162, 57, .7);
  box-shadow: 0 0 0 2px #1a0f07 inset, 0 8px 22px rgba(0, 0, 0, .5);
  color: #ffe9b8;
  overflow: hidden;
}
.acard.rad {
  border-color: #ffe29a;
  box-shadow:
    0 0 0 2px #1a0f07 inset,
    0 0 26px -2px #ffd23d,
    0 8px 22px rgba(0, 0, 0, .5);
}
.acard .stage {
  position: relative;
  height: 118px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  cursor: pointer;
}
.acard .stage:before {
  content: "";
  position: absolute;
  left: 12%;
  right: 12%;
  bottom: -2px;
  height: 18px;
  border-radius: 50%;
  background: radial-gradient(rgba(0, 0, 0, .5), transparent 70%);
}
.acard .pip {
  height: 112px;
  width: 112px;
  object-fit: contain;
  transform-origin: 50% 100%;
  animation: idle 3.2s ease-in-out infinite;
  animation-delay: var(--ph,0s);
  position: relative;
}
.acard.rad .pip {
  filter: drop-shadow(0 0 10px #ffd23d) saturate(1.2);
}
.acard .pip.hop {
  animation: hop .9s cubic-bezier(.3, 1.6, .5, 1);
}
.acard.lock .pip {
  filter: brightness(0) opacity(.5);
  animation: none;
}
@keyframes idle {
  0%, 100% {
    transform: scale(1, 1);
  }
  45% {
    transform: scale(1.025, .975);
  }
  50% {
    transform: scale(1.03, .97) translateY(1px);
  }
  72% {
    transform: scale(.99, 1.02) translateY(-2px);
  }
}
@keyframes hop {
  0% {
    transform: scale(1, 1);
  }
  20% {
    transform: scale(1.18, .8);
  }
  45% {
    transform: translateY(-38px) scale(.92, 1.12) rotate(-8deg);
  }
  70% {
    transform: translateY(-10px) rotate(8deg);
  }
  85% {
    transform: scale(1.1, .9);
  }
  100% {
    transform: none;
  }
}
.acard .nm {
  font-weight: 800;
  font-size: 16px;
  margin-top: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.acard .nm img {
  width: 20px;
  height: 20px;
}
.acard .ab {
  font-size: 12px;
  color: #d9c496;
  min-height: 32px;
  margin-top: 2px;
}
.acard .ab b {
  color: #ffe29a;
  display: block;
}
.acard .cp {
  display: flex;
  justify-content: center;
  gap: 4px;
  margin: 4px 0;
}
.acard .cp i {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: #1a0f07;
  border: 1px solid #8a6a2a;
}
.acard .cp i.on {
  background:
    radial-gradient(
      circle at 35% 30%,
      #fff3b0,
      #e79a22);
  box-shadow: 0 0 8px #ffb547;
}
.acard .ev {
  width: 100%;
  margin-top: 4px;
  padding: 8px;
  border-radius: 12px;
  border: 1px solid #fff0b8;
  background:
    linear-gradient(
      180deg,
      #8ff0dc,
      #2fbfa3);
  color: #06312a;
  font: 800 13px SG, system-ui;
  cursor: pointer;
  animation: pulse 1.3s infinite;
}
@keyframes pulse {
  50% {
    transform: scale(1.04);
    box-shadow: 0 0 18px #3de6c8;
  }
}
.acard .badge {
  position: absolute;
  top: 8px;
  right: 8px;
  padding: 2px 8px;
  border-radius: 99px;
  background:
    linear-gradient(
      180deg,
      #fff3b0,
      #e79a22);
  color: #3a1d05;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
}
.acard .num {
  position: absolute;
  top: 8px;
  left: 10px;
  font-size: 11px;
  color: #a8884a;
  font-weight: 800;
}
.lbwrap {
  position: absolute;
  left: 12px;
  right: 12px;
  top: calc(env(safe-area-inset-top) + 62px);
  bottom: calc(env(safe-area-inset-bottom) + 12px);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.lbtabs {
  display: flex;
  gap: 6px;
}
.lbtabs button {
  flex: 1;
}
.lblist {
  flex: 1;
  overflow: auto;
  border-radius: 16px;
  background: rgba(18, 11, 6, .9);
  border: 1px solid rgba(214, 162, 57, .5);
  padding: 6px;
}
.lbrow {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 10px;
  color: #ffe9b8;
  font-weight: 700;
  font-size: 14px;
}
.lbrow:nth-child(odd) {
  background: rgba(255, 255, 255, .04);
}
.lbrow.me {
  background: rgba(255, 181, 71, .25);
  outline: 1px solid #ffb547;
}
.lbrow .rk {
  width: 30px;
  color: #c8a860;
}
.lbrow .nm {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 6px;
}
.lbrow img {
  width: 26px;
  height: 26px;
  object-fit: contain;
}
.lbrow .sc {
  color: #fff3b0;
}
.lbmsg {
  color: #d9c496;
  text-align: center;
  padding: 26px 10px;
  font-size: 14px;
}
.me-nick {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #e9c98a;
  font-size: 13px;
}
.me-nick b {
  color: #ffe29a;
  flex: 1;
}
.me-nick button {
  padding: 7px 12px;
  border-radius: 10px;
  border: 1px solid rgba(214, 162, 57, .6);
  background: rgba(36, 22, 12, .9);
  color: #ffe29a;
  font: 700 12px SG, system-ui;
  cursor: pointer;
}
.rep {
  width: min(344px, 92vw);
  padding: 20px 18px 16px;
}
.rep .big {
  font-size: 56px;
  font-weight: 800;
  color: #fff3b0;
  text-shadow: 0 0 22px #ffb547, 0 3px 0 #6a3a0a;
  margin: 0;
}
.rgrid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 6px;
  margin: 10px 0;
}
.rgrid div {
  background: rgba(20, 12, 6, .65);
  border: 1px solid rgba(214, 162, 57, .35);
  border-radius: 12px;
  padding: 7px 2px;
}
.rgrid b {
  display: block;
  font-size: 20px;
  color: #fff3b0;
}
.rgrid span {
  font-size: 10px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #c8a860;
}
.rpips {
  display: flex;
  justify-content: center;
  gap: 4px;
  min-height: 44px;
  flex-wrap: wrap;
  margin: 2px 0 8px;
}
.rpips img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  animation: rpop .5s cubic-bezier(.2, 1.6, .4, 1) both;
}
@keyframes rpop {
  from {
    transform: scale(0) rotate(-30deg);
  }
  to {
    transform: none;
  }
}
.rglow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 26px;
  font-weight: 800;
  color: #bff7ea;
  text-shadow: 0 0 14px #3de6c8;
}
.rglow img {
  width: 34px;
  height: 34px;
}
.rrank {
  font-size: 13px;
  color: #e9c98a;
  min-height: 36px;
  margin: 6px 0 4px;
}
.rrank b {
  color: #fff3b0;
}
@media (max-height:900px) {
  .acard .stage {
    height: 92px;
  }
  .acard .pip {
    height: 90px;
    width: 90px;
  }
  .acard .ab {
    font-size: 11.5px;
    min-height: 28px;
  }
  .acard .nm {
    font-size: 15px;
    margin-top: 2px;
  }
  .agrid {
    gap: 8px;
  }
  .acard {
    padding: 6px 8px 8px;
  }
}
body {
  background: #0a0b3a;
}
#ui {
  background:
    radial-gradient(
      ellipse at center,
      rgba(20, 20, 72, .38),
      rgba(8, 8, 34, .72));
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}
#menu {
  background:
    radial-gradient(
      ellipse at 50% 38%,
      rgba(255, 196, 90, .2),
      rgba(14, 12, 60, .32) 62%),
    linear-gradient(rgba(10, 10, 44, .05), rgba(10, 10, 44, .4));
}
.card {
  background:
    linear-gradient(
      165deg,
      rgba(104, 64, 34, .98),
      rgba(46, 27, 14, .98));
  box-shadow:
    0 0 0 2px #1a0f07 inset,
    0 0 0 4px rgba(255, 205, 100, .45) inset,
    0 1px 0 4px rgba(255, 244, 200, .18) inset,
    0 0 38px -6px #ffb547,
    0 24px 60px rgba(0, 0, 0, .6);
}
.card:before,
.card:after {
  background:
    radial-gradient(
      circle at 35% 30%,
      #fffbe0,
      #ffd25a 45%,
      #b27a12);
  box-shadow: 0 0 9px #ffc861;
}
.card h1,
.logo b {
  filter: drop-shadow(0 0 12px rgba(255, 200, 90, .75)) saturate(1.2);
}
.btn {
  position: relative;
  overflow: hidden;
  background-image:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, .5),
      rgba(255, 255, 255, 0) 46%,
      rgba(120, 50, 0, .16)),
    linear-gradient(
      180deg,
      #ffdf88,
      #f5a623 58%,
      #d9820f);
  box-shadow:
    0 5px 0 #7a4308,
    0 0 0 1px rgba(255, 255, 255, .35) inset,
    0 10px 26px -8px #ffb547;
}
.btn.alt {
  background-image:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, .5),
      rgba(255, 255, 255, 0) 46%,
      rgba(0, 60, 50, .16)),
    linear-gradient(
      180deg,
      #8ff5de,
      #25d2b0);
  box-shadow:
    0 5px 0 #14675a,
    0 0 0 1px rgba(255, 255, 255, .35) inset,
    0 10px 26px -8px #3de6c8;
}
.btn.ghost {
  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, .16),
      rgba(255, 255, 255, .06));
  border-color: rgba(255, 222, 140, .6);
}
.btn:not(.ghost):not([disabled]):after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -40%;
  width: 28%;
  background:
    linear-gradient(
      100deg,
      transparent,
      rgba(255, 255, 255, .55),
      transparent);
  transform: skewX(-18deg) translateX(-120%);
  animation: sheen 5.5s ease-in-out infinite;
  pointer-events: none;
}
@keyframes sheen {
  0%, 62% {
    transform: skewX(-18deg) translateX(-160%);
  }
  100% {
    transform: skewX(-18deg) translateX(620%);
  }
}
.chip,
.glowchip {
  background:
    linear-gradient(
      180deg,
      rgba(60, 38, 70, .82),
      rgba(24, 14, 40, .86));
  border-color: rgba(255, 214, 120, .8);
  box-shadow: 0 0 12px -3px rgba(255, 200, 90, .5), 0 1px 0 rgba(255, 255, 255, .18) inset;
}
.glowchip {
  color: #c9fff3;
  text-shadow: 0 0 8px rgba(61, 230, 200, .8);
}
.bud {
  border-color: rgba(255, 214, 120, .65);
  background: rgba(40, 22, 58, .6);
}
.bud.on {
  box-shadow: 0 0 18px #ffc34d;
  background: rgba(255, 196, 80, .28);
}
.top {
  background: linear-gradient(rgba(10, 10, 48, .7), rgba(10, 10, 48, 0));
}
.top h2 {
  color: #fff0b8;
  text-shadow: 0 2px 0 #4a2a08, 0 0 18px rgba(255, 200, 90, .85);
}
.back {
  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, .28),
      rgba(255, 255, 255, 0) 50%),
    linear-gradient(
      180deg,
      #7a4c28,
      #3a2010);
  border-color: #ffd25a;
  box-shadow: 0 0 12px -2px rgba(255, 200, 90, .6);
}
.gpanel {
  background:
    linear-gradient(
      rgba(18, 10, 40, 0),
      rgba(26, 14, 44, .9) 18%,
      rgba(34, 18, 40, .97));
}
.ztabs button {
  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, .1),
      rgba(255, 255, 255, 0)),
    rgba(52, 30, 34, .88);
  border-color: rgba(255, 214, 120, .65);
}
.ztabs button.on {
  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, .45),
      rgba(255, 255, 255, 0) 50%),
    linear-gradient(
      180deg,
      #ffdf88,
      #f5a623);
  box-shadow: 0 0 16px -2px #ffb547;
}
.step {
  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, .08),
      rgba(255, 255, 255, 0) 40%),
    rgba(56, 32, 34, .92);
  border-color: rgba(255, 214, 120, .5);
}
.step.done {
  border-color: rgba(61, 240, 205, .85);
  box-shadow: 0 0 14px -4px #3de6c8;
}
.step .buy {
  background-image:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, .45),
      rgba(255, 255, 255, 0) 50%),
    linear-gradient(
      180deg,
      #ffdf88,
      #f5a623);
}
.sty button {
  box-shadow:
    inset 0 3px 3px rgba(255, 255, 255, .5),
    inset 0 -3px 4px rgba(0, 0, 0, .25),
    0 0 8px -1px currentColor;
}
.albg {
  background: linear-gradient(rgba(18, 16, 76, .3), rgba(12, 10, 52, .74)), url(img/bg.webp) center/cover;
}
.acard {
  background:
    linear-gradient(
      165deg,
      rgba(255, 255, 255, .1),
      rgba(255, 255, 255, 0) 35%),
    linear-gradient(
      165deg,
      rgba(104, 64, 34, .97),
      rgba(40, 24, 13, .98));
  border-color: rgba(255, 214, 120, .85);
}
.acard .pip {
  filter: drop-shadow(0 0 8px rgba(255, 214, 120, .35));
}
.acard.rad .pip {
  filter: drop-shadow(0 0 12px #ffd23d) saturate(1.3);
}
.acard .cp i.on {
  box-shadow: 0 0 10px #ffc34d;
}
.rep .big {
  text-shadow: 0 0 26px #ffc34d, 0 3px 0 #6a3a0a;
}
.lbrow:nth-child(odd) {
  background: rgba(255, 255, 255, .07);
}
@media (prefers-reduced-motion:reduce) {
  .btn:after {
    display: none !important;
  }
}
.row3.two .btn {
  font-size: 16px;
  padding: 11px 4px;
}
.row3.two .btn small {
  font-size: 10px;
}
.mstat {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(env(safe-area-inset-top) + 58px);
  display: flex;
  justify-content: center;
  gap: 8px;
  z-index: 2;
  pointer-events: none;
  font: 800 12px SG, system-ui;
  color: #ffe9b8;
}
.mstat span {
  padding: 4px 12px;
  border-radius: 99px;
  background: rgba(20, 12, 6, .72);
  border: 1px solid rgba(214, 162, 57, .55);
  text-shadow: 0 1px 0 #000;
}
.mstat .ms {
  color: #ffd86a;
}
#lvtoast {
  position: fixed;
  left: 50%;
  bottom: calc(env(safe-area-inset-bottom) + 28px);
  transform: translate(-50%, 16px);
  padding: 10px 18px;
  border-radius: 99px;
  background: rgba(255, 246, 214, .97);
  color: #4a2a08;
  font: 800 14px SG, system-ui;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .45);
  opacity: 0;
  transition: .3s;
  pointer-events: none;
  z-index: 20;
  white-space: nowrap;
}
#lvtoast.on {
  opacity: 1;
  transform: translate(-50%, 0);
}
.card.wide {
  width: min(348px, 93vw);
  padding: 20px 16px 16px;
}
.lbrief,
.lres {
  width: 100%;
  text-align: center;
}
.lbrief h2,
.lres h2 {
  margin: 2px 0 0;
  font-size: 26px;
  color: #fff0b8;
  text-shadow: 0 2px 0 #4a2a08, 0 0 18px rgba(255, 200, 90, .7);
}
.lbrief .lname {
  font-size: 15px;
  font-weight: 800;
  color: #ffe29a;
  margin: 2px 0 8px;
}
.wickrow {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  margin: 8px 0;
  text-align: left;
}
.wickrow img {
  width: 62px;
  height: 62px;
  object-fit: contain;
  filter: drop-shadow(0 0 10px rgba(255, 181, 71, .5));
}
.wickrow .bub {
  flex: 1;
  position: relative;
  padding: 9px 11px;
  border-radius: 14px 14px 14px 4px;
  background: rgba(255, 246, 214, .97);
  color: #4a2a08;
  font-weight: 700;
  font-size: 12.5px;
  line-height: 1.3;
  box-shadow: 0 6px 16px rgba(0, 0, 0, .35);
}
.wickrow .bub b {
  color: #a8620a;
  margin-right: 3px;
}
.lgoals {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin: 8px 0;
}
.lg {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 10px;
  border-radius: 12px;
  background: rgba(20, 12, 6, .68);
  border: 1px solid rgba(214, 162, 57, .4);
  color: #fff0c8;
  font-weight: 700;
  font-size: 13.5px;
  text-align: left;
}
.lg span {
  flex: 1;
}
.lg b {
  color: #ffd86a;
  font-size: 13px;
}
.lg.ok {
  border-color: rgba(61, 230, 200, .7);
}
.lg.ok b {
  color: #7ff0d4;
}
.gi {
  width: 26px;
  height: 26px;
  flex: none;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}
.gi-lines {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 26 26'%3E%3Cg fill='%23ffe9a8'%3E%3Crect x='2' y='4' width='22' height='5' rx='2'/%3E%3Crect x='2' y='11' width='22' height='5' rx='2' fill='%23ffb547'/%3E%3Crect x='2' y='18' width='22' height='5' rx='2'/%3E%3C/g%3E%3C/svg%3E");
}
.gi-score {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 1.8l3 6.6 7.1.8-5.3 4.9 1.5 7.1L12 17.6 5.7 21.2l1.5-7.1L1.9 9.2l7.1-.8z' fill='%23ffc21a' stroke='%23fff0b8' stroke-width='1.4' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.gi-frost {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 26 26'%3E%3Crect x='2' y='2' width='22' height='22' rx='6' fill='%239fd6f5' stroke='%23eaffff' stroke-width='2'/%3E%3Cpath d='M5 13L13 5' stroke='%23fff' stroke-width='2' stroke-linecap='round' opacity='.8'/%3E%3C/svg%3E");
}
.gi-stones {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 26 26'%3E%3Crect x='2' y='2' width='22' height='22' rx='6' fill='%237d86ad' stroke='%23dfe4ff' stroke-width='2'/%3E%3Cellipse cx='9' cy='6' rx='5' ry='2' fill='%234fbf6a'/%3E%3Cpath d='M15 3l-3 8 4 5-4 7' stroke='%23202448' stroke-width='1.8' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
}
.gi-vines {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 26 26'%3E%3Crect x='2' y='2' width='22' height='22' rx='6' fill='%231d5a3c' stroke='%23a0ffbe' stroke-width='2'/%3E%3Cpath d='M13 20c0-6 2-9 7-11-1 6-3 9-7 11z' fill='%2353d17c'/%3E%3Cpath d='M13 20c0-5-2-8-7-9 1 5 3 8 7 9z' fill='%23a8f5b4'/%3E%3Ccircle cx='13' cy='13' r='2.4' fill='%23ff8cc4'/%3E%3C/svg%3E");
}
.gi-lanterns {
  background-image: url(img/lantern.webp);
}
.lsum {
  display: flex;
  justify-content: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  color: #e9c98a;
  margin: 6px 0 2px;
}
.lsum span {
  padding: 4px 9px;
  border-radius: 99px;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 214, 130, .3);
}
.lsum b {
  color: #fff3b0;
}
.lbest {
  font-size: 12px;
  color: #c8a860;
  margin: 6px 0 10px;
  min-height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
}
.lbest svg {
  vertical-align: middle;
}
.lstars {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 2px;
  margin: 6px 0 4px;
  min-height: 62px;
}
.lstars span {
  display: inline-block;
  opacity: .9;
  transform: scale(.8);
  transition: transform .2s;
}
.lstars span:nth-child(2) {
  margin-bottom: 10px;
}
.lstars span.on {
  opacity: 0;
  animation: lstar .62s cubic-bezier(.2, 1.7, .4, 1) var(--d) both;
}
.lstars span.on svg {
  filter: drop-shadow(0 0 12px rgba(255, 200, 60, .95));
}
@keyframes lstar {
  0% {
    opacity: 0;
    transform: scale(2.6) rotate(-35deg);
  }
  60% {
    opacity: 1;
    transform: scale(.88) rotate(6deg);
  }
  100% {
    opacity: 1;
    transform: scale(1) rotate(0);
  }
}
.lres.win:before {
  content: "";
  position: absolute;
  left: 50%;
  top: 70px;
  width: 380px;
  height: 380px;
  margin: -190px 0 0 -190px;
  background:
    conic-gradient(
      from 0deg,
      rgba(255, 214, 120, .0),
      rgba(255, 214, 120, .25),
      rgba(255, 214, 120, 0) 12%,
      rgba(255, 214, 120, .0) 20%,
      rgba(255, 214, 120, .22),
      rgba(255, 214, 120, 0) 32%,
      rgba(255, 214, 120, 0) 45%,
      rgba(255, 214, 120, .2),
      rgba(255, 214, 120, 0) 58%,
      rgba(255, 214, 120, 0) 70%,
      rgba(255, 214, 120, .22),
      rgba(255, 214, 120, 0) 82%);
  animation: lspin 14s linear infinite;
  pointer-events: none;
  border-radius: 50%;
  -webkit-mask:
    radial-gradient(
      circle,
      #000 25%,
      transparent 70%);
  mask:
    radial-gradient(
      circle,
      #000 25%,
      transparent 70%);
}
@keyframes lspin {
  to {
    transform: rotate(360deg);
  }
}
.lres > * {
  position: relative;
}
.lres .why {
  margin: 4px 0 6px;
  font-size: 13px;
}
.lrw {
  min-height: 30px;
}
.lnote {
  font-size: 12.5px;
  font-weight: 700;
  color: #e9d9b8;
  margin: 4px 0;
}
.lnote.egg {
  color: #ffd0ef;
}
.lnote.zone {
  color: #8ff0dc;
  padding: 6px 8px;
  border-radius: 10px;
  background: rgba(61, 230, 200, .12);
  border: 1px solid rgba(61, 230, 200, .4);
}
.lnote.zone b {
  color: #d6fff6;
}
.lres .rglow {
  font-size: 24px;
  margin: 2px 0;
}
.lres .btn {
  margin-top: 4px;
}
.ztabs button.lk {
  opacity: .7;
}
.ztabs button small {
  font-size: 10px;
}
.zlock {
  padding: 14px 12px;
  border-radius: 14px;
  background: rgba(40, 25, 14, .92);
  border: 1px solid rgba(214, 162, 57, .45);
  color: #ffe9b8;
  font-weight: 700;
  font-size: 13.5px;
  text-align: center;
  line-height: 1.4;
}
.zlock .btn {
  margin-top: 10px;
  width: 100%;
}
@media (prefers-reduced-motion:reduce) {
  .lres.win:before {
    animation: none;
  }
}
.lstars span.on {
  will-change: transform;
}
@media (orientation:landscape) and (max-height:560px) {
  #menu.on {
    justify-content: center;
    gap: 8px;
    overflow-y: auto;
    touch-action: pan-y;
    -webkit-overflow-scrolling: touch;
    padding-top: calc(env(safe-area-inset-top) + 8px);
    padding-bottom: calc(env(safe-area-inset-bottom) + 8px);
  }
  #menu .logo {
    margin-top: 0;
    flex-shrink: 0;
  }
  #menu .logo b {
    font-size: 36px;
  }
  #menu .logo span {
    font-size: 11px;
    margin-top: 2px;
  }
  #menu .mbox {
    flex-shrink: 0;
    overflow: visible;
    width: min(700px, 94vw);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 14px;
    align-content: start;
    padding: 12px;
  }
  #menu .mbox > * {
    grid-column: 1;
  }
  #menu .mbox > :nth-child(4) {
    grid-column: 2;
    grid-row: 1/span 2;
  }
  #menu .mbox > :nth-child(5) {
    grid-column: 2;
    grid-row: 3/span 2;
  }
  #menu .mbox > :nth-child(6) {
    grid-column: 2;
    grid-row: 5;
  }
  #menu .mbox > :nth-child(7) {
    grid-column: 1;
    grid-row: 4/span 2;
    align-self: end;
  }
}
