#board {
  --k:1;
  position: absolute;
  z-index: 5;
  left: 18px;
  right: 18px;
  top: 16px;
  bottom: 16px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: calc(16px*var(--k)) calc(24px*var(--k));
  background: rgba(255, 255, 255, .62);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
  border: 4px solid var(--ink);
  border-radius: 28px;
  box-shadow: 0 6px 0 rgba(27, 42, 92, .35);
}
#board.pop {
  animation: boardin .5s cubic-bezier(.3, 1.5, .5, 1);
}
@keyframes boardin {
  from {
    opacity: .2;
    transform: scale(.93);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
#board.pop .bs:not([hidden]) > * {
  animation: rise .5s cubic-bezier(.25, .9, .3, 1.25) both;
}
#board.pop .bs:not([hidden]) > *:nth-child(1) {
  animation-delay: .04s;
}
#board.pop .bs:not([hidden]) > *:nth-child(2) {
  animation-delay: .1s;
}
#board.pop .bs:not([hidden]) > *:nth-child(3) {
  animation-delay: .16s;
}
#board.pop .bs:not([hidden]) > *:nth-child(4) {
  animation-delay: .22s;
}
#board.pop .bs:not([hidden]) > *:nth-child(5) {
  animation-delay: .28s;
}
#board.pop .bs:not([hidden]) > *:nth-child(6) {
  animation-delay: .34s;
}
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(-16px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
#board.compact {
  top: auto;
  left: 0;
  right: 0;
  margin-inline: auto;
  width: min(880px, calc(100% - 36px));
  max-height: calc(100% - 100px);
}
.bs {
  margin-block: auto;
  display: flex;
  flex-direction: column;
  gap: calc(12px*var(--k));
  min-width: 0;
}
.bs > * {
  flex: none;
  min-width: 0;
}
.center {
  align-items: center;
  text-align: center;
}
.big {
  font-size: calc(var(--t-text)*var(--k));
  line-height: 1.28;
  font-weight: 800;
  overflow-wrap: anywhere;
}
.board h1 {
  font-size: calc(var(--t-h1)*var(--k));
}
.board h2 {
  font-size: calc(var(--t-h2)*var(--k));
}
.rowtop {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: center;
  justify-content: space-between;
}
.kicker {
  display: inline-flex;
  align-items: center;
  background: var(--city);
  border: 3px solid var(--ink);
  border-radius: 999px;
  padding: calc(4px*var(--k)) calc(16px*var(--k));
  font-family: var(--font-display);
  font-weight: 700;
  font-size: calc(var(--t-kick)*var(--k));
  line-height: 1.1;
}
.pager {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: calc(var(--t-kick)*var(--k));
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: calc(12px*var(--k));
  align-items: center;
  justify-content: space-between;
}
.actions.mid {
  justify-content: center;
}
.speech {
  align-self: flex-start;
  background: var(--soft);
  border: 4px solid var(--ink);
  border-radius: 22px;
  padding: calc(8px*var(--k)) calc(18px*var(--k));
  font-family: var(--font-display);
  font-weight: 600;
  font-size: calc(26px*var(--k));
}
.wig {
  display: inline-block;
  animation: wig 1.2s ease-in-out infinite;
}
@keyframes wig {
  0%, 100% {
    rotate: -8deg;
  }
  50% {
    rotate: 8deg;
  }
}
.lbl {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: calc(32px*var(--k));
}
#nameInput {
  width: 100%;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: calc(40px*var(--k));
  padding: calc(10px*var(--k)) calc(18px*var(--k));
  border: 4px solid var(--ink);
  border-radius: 20px;
  background: var(--soft);
  color: var(--ink);
  transition: box-shadow .2s;
}
#nameInput:focus {
  box-shadow: 0 0 0 8px rgba(255, 211, 77, .6);
}
#nameInput::placeholder {
  color: #6d79a5;
}
.msg {
  min-height: 1.3em;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: calc(24px*var(--k));
  color: var(--bad);
}
.land #s-name {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: center;
}
.nleft,
.nright {
  display: flex;
  flex-direction: column;
  gap: calc(12px*var(--k));
  min-width: 0;
}
.port #s-name {
  gap: calc(18px*var(--k));
}
.shake {
  animation: shake .4s;
}
@keyframes shake {
  0%, 100% {
    transform: translateX(0);
  }
  20% {
    transform: translateX(-9px);
  }
  40% {
    transform: translateX(9px);
  }
  60% {
    transform: translateX(-6px);
  }
  80% {
    transform: translateX(6px);
  }
}
.bs.full {
  margin: 0;
  height: 100%;
  min-height: 0;
}
.mvwrap {
  flex: 1 1 auto;
  min-height: 0;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity .9s ease;
}
.mvwrap.on {
  opacity: 1;
}
.mvwrap.out {
  opacity: 0;
  transition: opacity .45s ease;
}
#mvVid {
  height: 100%;
  width: auto;
  max-width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  flex: 0 0 auto;
  background: #000;
  display: block;
  border: 4px solid var(--ink);
  border-radius: 22px;
  box-shadow: 0 6px 0 var(--ink);
  box-sizing: border-box;
  transition: opacity 1s ease;
}
.mvbig {
  position: absolute;
  left: 50%;
  top: 50%;
  width: calc(110px*var(--k));
  height: calc(110px*var(--k));
  margin: calc(-55px*var(--k)) 0 0 calc(-55px*var(--k));
  border-radius: 50%;
  border: 5px solid var(--ink);
  background: #ffd34d;
  color: var(--ink);
  font-size: calc(50px*var(--k));
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 6px 0 var(--ink);
  animation: mvpulse 1.2s ease-in-out infinite alternate;
  z-index: 2;
}
.mvbig[hidden] {
  display: none;
}
@keyframes mvpulse {
  to {
    transform: scale(1.1);
  }
}
.instbtn {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 13;
  min-height: 0;
  font-size: 20px;
  padding: 8px 16px;
}
.mvload {
  position: absolute;
  left: 50%;
  top: calc(10px*var(--k));
  transform: translateX(-50%);
  z-index: 3;
  background: rgba(16, 24, 47, .82);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: calc(22px*var(--k));
  padding: calc(6px*var(--k)) calc(18px*var(--k));
  border-radius: 99px;
  text-align: center;
  max-width: 80%;
}
.mvskip {
  position: absolute;
  right: 0;
  top: 0;
  z-index: 3;
  min-height: 0;
  font-size: calc(22px*var(--k));
  padding: calc(8px*var(--k)) calc(16px*var(--k));
}
#s-lvintro {
  cursor: pointer;
  gap: calc(10px*var(--k));
}
.lvikick {
  font-family: "Fredoka", sans-serif;
  font-weight: 700;
  font-size: calc(22px*var(--k));
  color: var(--ink);
  background: rgba(255, 255, 255, .75);
  border-radius: 999px;
  padding: calc(4px*var(--k)) calc(18px*var(--k));
  border: 3px solid var(--ink);
}
.lvinum {
  font-family: "Fredoka", sans-serif;
  font-weight: 700;
  font-size: calc(84px*var(--k));
  line-height: 1;
  color: #fff;
  -webkit-text-stroke: calc(7px*var(--k)) var(--ink);
  paint-order: stroke fill;
  text-shadow: 0 calc(6px*var(--k)) 0 var(--ink);
  animation: lvipop .7s cubic-bezier(.2, 1.6, .4, 1) both;
}
.lviname {
  margin: 0;
  font-size: calc(52px*var(--k));
  color: var(--ink);
  animation: lvipop .7s .15s cubic-bezier(.2, 1.6, .4, 1) both;
}
.lvimsg {
  margin: 0;
  animation: lvipop .7s .3s cubic-bezier(.2, 1.6, .4, 1) both;
}
.lvidots {
  display: flex;
  gap: calc(10px*var(--k));
  margin-top: calc(8px*var(--k));
}
.lvidots i {
  width: calc(16px*var(--k));
  height: calc(16px*var(--k));
  border-radius: 50%;
  background: var(--ink);
  animation: lvidot 1s infinite ease-in-out;
}
.lvidots i:nth-child(2) {
  animation-delay: .2s;
}
.lvidots i:nth-child(3) {
  animation-delay: .4s;
}
@keyframes lvipop {
  from {
    transform: scale(.3);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}
@keyframes lvidot {
  0%, 100% {
    transform: translateY(0);
    opacity: .4;
  }
  50% {
    transform: translateY(calc(-10px*var(--k)));
    opacity: 1;
  }
}
.mapbox {
  flex: 1 1 0;
  min-height: 0;
  position: relative;
  border: 3px solid var(--ink);
  border-radius: 22px;
  overflow: hidden;
  background: linear-gradient(#d3f5cc, #b4e8b5);
}
.mapbox svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}
.mdash {
  stroke-dasharray: 14 18;
  animation: dashmove .8s linear infinite;
}
@keyframes dashmove {
  to {
    stroke-dashoffset: -32;
  }
}
.ring {
  transform-box: fill-box;
  transform-origin: center;
  animation: ringp 1.5s ease-out infinite;
}
@keyframes ringp {
  from {
    scale: .7;
    opacity: .9;
  }
  to {
    scale: 1.7;
    opacity: 0;
  }
}
.marker {
  animation: hopm .7s ease-in-out infinite alternate;
}
@keyframes hopm {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(-8px);
  }
}
.nodeg {
  transform-box: fill-box;
  transform-origin: center bottom;
  animation: nodein .6s cubic-bezier(.3, 1.7, .5, 1) both;
  animation-delay: calc(var(--i)*.07s);
}
@keyframes nodein {
  from {
    scale: .2;
    opacity: 0;
  }
  to {
    scale: 1;
    opacity: 1;
  }
}
.puff {
  transform-box: fill-box;
  transform-origin: center;
  animation: puff .8s ease-out forwards;
}
@keyframes puff {
  from {
    scale: .6;
    opacity: .8;
  }
  to {
    scale: 2.4;
    opacity: 0;
  }
}
#mapsvg.go .wheel {
  animation-play-state: running;
}
.wv {
  animation: wvy 1.4s ease-in-out infinite alternate;
}
@keyframes wvy {
  to {
    transform: translateY(-2px);
  }
}
.lmhop {
  animation: lmh 1s ease-in-out infinite alternate;
}
@keyframes lmh {
  to {
    transform: translateY(-5px);
  }
}
.mstar {
  animation: twk 1.6s ease-in-out infinite alternate;
}
@keyframes twk {
  from {
    opacity: .4;
  }
  to {
    opacity: 1;
  }
}
.vis {
  background: var(--soft);
  border: 3px dashed var(--ink);
  border-radius: 22px;
  padding: calc(10px*var(--k));
  text-align: center;
  font-size: calc(52px*var(--k));
  line-height: 1.15;
  overflow-wrap: anywhere;
}
.vis:empty {
  display: none;
}
.vis svg {
  width: 100%;
  max-width: 560px;
  height: auto;
  max-height: calc(150px*var(--k));
}
.eq {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: calc(10px*var(--k));
  font-family: var(--font-display);
  font-weight: 700;
  font-size: calc(48px*var(--k));
}
.gone {
  opacity: .25;
  filter: grayscale(1);
}
.num {
  min-width: calc(60px*var(--k));
  padding: calc(2px*var(--k)) calc(12px*var(--k));
  border: 4px solid var(--ink);
  border-radius: 16px;
  background: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: calc(44px*var(--k));
}
.num.q {
  background: var(--bus);
  animation: glow 1.3s ease-in-out infinite;
}
.rule {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: calc(30px*var(--k));
}
.coin {
  display: inline-grid;
  place-items: center;
  width: calc(78px*var(--k));
  aspect-ratio: 1;
  border-radius: 50%;
  border: 4px solid var(--ink);
  background: #ffd34d;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: calc(28px*var(--k));
  box-shadow: inset 0 0 0 5px #ffe58c;
}
.qtext {
  font-size: calc(var(--t-q)*var(--k)) !important;
  line-height: 1.15;
}
.qvis {
  text-align: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: calc(46px*var(--k));
  line-height: 1.25;
  overflow-wrap: anywhere;
  background: var(--soft);
  border: 3px dashed var(--ink);
  border-radius: 22px;
  padding: calc(8px*var(--k));
}
.qvis:empty {
  display: none;
}
.choices {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: calc(12px*var(--k));
}
.choice {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: calc(var(--t-choice)*var(--k));
  line-height: 1.1;
  min-height: calc(80px*var(--k));
  padding: calc(8px*var(--k)) calc(12px*var(--k));
  border: 4px solid var(--ink);
  border-radius: 22px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  box-shadow: 0 6px 0 var(--ink);
  transition: transform .08s, box-shadow .08s;
  min-width: 0;
  overflow-wrap: anywhere;
  animation: chin .45s cubic-bezier(.3, 1.7, .5, 1) both;
  animation-delay: calc(var(--n)*70ms + .15s);
}
@keyframes chin {
  0% {
    opacity: 0;
    scale: .6;
  }
  100% {
    opacity: 1;
    scale: 1;
  }
}
.choice:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 0 var(--ink);
}
.choice:active {
  transform: translateY(5px) scale(.97);
  box-shadow: 0 1px 0 var(--ink);
}
.choice.correct {
  background: var(--good-bg);
  border-color: var(--good);
  box-shadow: 0 6px 0 var(--good);
  transform: none;
  animation: okpop .5s cubic-bezier(.3, 1.9, .5, 1);
}
@keyframes okpop {
  0% {
    scale: 1;
  }
  40% {
    scale: 1.07;
  }
  100% {
    scale: 1;
  }
}
.choice.correct::after {
  content: " ✓";
}
.choice.wrong {
  background: var(--bad-bg);
  border-color: var(--bad);
  box-shadow: 0 6px 0 var(--bad);
  animation: shake .4s;
  transform: none;
}
.choice.wrong::after {
  content: " ✗";
}
.choice[aria-disabled=true]:not(.correct):not(.wrong) {
  opacity: .45;
  cursor: default;
  transform: none;
  box-shadow: 0 6px 0 var(--ink);
}
.qfoot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: calc(10px*var(--k));
  background: rgba(255, 255, 255, .8);
  border-radius: calc(20px*var(--k));
  padding: calc(3px*var(--k)) calc(10px*var(--k));
}
.feedback {
  flex: 1 1 0;
  min-width: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: calc(var(--t-fb)*var(--k));
  line-height: 1.15;
}
.port .feedback {
  flex-basis: 100%;
}
.feedback.good {
  color: var(--good);
}
.feedback.bad {
  color: var(--bad);
}
.pips {
  display: flex;
  align-items: center;
  gap: calc(8px*var(--k));
}
.pip {
  width: calc(34px*var(--k));
  aspect-ratio: 1;
  border-radius: 50%;
  border: 3px solid var(--ink);
  background: #fff;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: calc(17px*var(--k));
  line-height: 1;
}
.pip.ok {
  background: #ffd34d;
  animation: pippop .5s cubic-bezier(.3, 1.9, .5, 1);
}
.pip.no {
  background: #ffb3c0;
}
.pip.now {
  background: #fff6d6;
  animation: dotp 1.2s ease-in-out infinite;
}
@keyframes pippop {
  0% {
    scale: .4;
  }
  60% {
    scale: 1.3;
  }
  100% {
    scale: 1;
  }
}
.qscore {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: calc(var(--t-kick)*var(--k));
  margin-left: calc(6px*var(--k));
}
.qscore.bump {
  animation: okpop .5s cubic-bezier(.3, 1.9, .5, 1);
}
.medal {
  font-size: calc(96px*var(--k));
  line-height: 1;
  animation: medal 1.6s ease-in-out infinite alternate;
}
@keyframes medal {
  from {
    rotate: -8deg;
  }
  to {
    rotate: 8deg;
  }
}
.lvstars {
  display: flex;
  gap: calc(10px*var(--k));
  justify-content: center;
  font-size: calc(70px*var(--k));
  line-height: 1;
}
.lvstars span {
  color: var(--bus);
  -webkit-text-stroke: 3px var(--ink);
  paint-order: stroke fill;
  animation: starpop .6s cubic-bezier(.3, 1.9, .5, 1) both;
  animation-delay: calc(.3s + var(--i)*.28s);
}
.lvstars span.off {
  color: #e3e7f5;
}
.lvrow {
  display: flex;
  flex-wrap: wrap;
  gap: calc(8px*var(--k)) calc(22px*var(--k));
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: calc(30px*var(--k));
}
@keyframes starpop {
  0% {
    scale: 0;
    rotate: -60deg;
    opacity: 0;
  }
  70% {
    scale: 1.35;
    rotate: 12deg;
    opacity: 1;
  }
  100% {
    scale: 1;
    rotate: 0;
    opacity: 1;
  }
}
.bs.res {
  margin: 0;
  height: 100%;
  min-height: 0;
}
.land .res {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  grid-template-rows: minmax(0, 1fr);
  gap: 24px;
}
.port .res {
  display: flex;
  flex-direction: column;
  gap: calc(10px*var(--k));
}
.resL {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: calc(6px*var(--k));
  min-height: 0;
}
.resR {
  display: flex;
  flex-direction: column;
  gap: calc(10px*var(--k));
  min-height: 0;
}
.port .resR {
  flex: 1 1 0;
}
.stars {
  display: flex;
  gap: calc(2px*var(--k));
  font-size: calc(58px*var(--k));
  line-height: 1;
}
.stars .st {
  color: #e3e7f5;
  -webkit-text-stroke: 3px var(--ink);
  paint-order: stroke fill;
  animation: starpop .6s cubic-bezier(.3, 1.9, .5, 1) both;
  animation-delay: calc(.3s + var(--i)*.28s);
}
.stars .st.on {
  color: var(--bus);
}
.pct {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: calc(84px*var(--k));
  line-height: 1;
  color: var(--ink);
  text-shadow: 0 5px 0 #ffd34d;
}
.pctlbl {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: calc(22px*var(--k));
  letter-spacing: .12em;
}
.bigscore {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: calc(34px*var(--k));
  line-height: 1.1;
}
.rmsg {
  font-weight: 800;
  font-size: calc(24px*var(--k));
  line-height: 1.2;
}
.tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: calc(10px*var(--k));
}
.tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: calc(21px*var(--k));
  line-height: 1.05;
  text-align: center;
  padding: calc(6px*var(--k));
  min-height: calc(72px*var(--k));
  border: 4px solid var(--ink);
  border-radius: 18px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  box-shadow: 0 5px 0 var(--ink);
}
.tab .cnt {
  font-size: calc(30px*var(--k));
  line-height: 1;
}
.tab[aria-selected=true] {
  background: var(--tc);
  transform: translateY(4px);
  box-shadow: 0 1px 0 var(--ink);
}
.rlist {
  flex: 1 1 0;
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: calc(8px*var(--k));
}
.ritem {
  flex: none;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: calc(12px*var(--k));
  align-items: center;
  border: 3px solid var(--ink);
  border-radius: 18px;
  padding: calc(8px*var(--k)) calc(12px*var(--k));
  animation: rise .4s ease-out both;
}
.ritem:nth-child(2) {
  animation-delay: .08s;
}
.ritem:nth-child(3) {
  animation-delay: .16s;
}
.ritem:nth-child(4) {
  animation-delay: .24s;
}
.ritem.ok {
  background: #effcf4;
}
.ritem.no {
  background: #fff0f2;
}
.rnum {
  width: calc(42px*var(--k));
  aspect-ratio: 1;
  border-radius: 50%;
  border: 3px solid var(--ink);
  background: #fff;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: calc(20px*var(--k));
}
.rbody {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.rq {
  font-weight: 800;
  font-size: calc(22px*var(--k));
  line-height: 1.15;
  overflow-wrap: anywhere;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.rline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: calc(4px*var(--k)) calc(10px*var(--k));
  font-weight: 800;
  font-size: calc(18px*var(--k));
  line-height: 1.15;
}
.badge {
  display: inline-block;
  padding: 0 calc(10px*var(--k));
  border-radius: 999px;
  border: 3px solid var(--ink);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: calc(18px*var(--k));
}
.ok .badge {
  background: #5be08f;
}
.no .badge {
  background: #ff8a9b;
}
.empty {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: calc(28px*var(--k));
  text-align: center;
  padding: calc(16px*var(--k));
}
.pg {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: calc(10px*var(--k));
}
.pg .btn {
  font-size: calc(24px*var(--k));
  min-height: calc(54px*var(--k));
  padding: 0 calc(18px*var(--k));
}
.pinfo {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: calc(20px*var(--k));
  text-align: center;
}
#fx {
  position: absolute;
  inset: 0;
  z-index: 45;
  pointer-events: none;
  overflow: hidden;
}
.lvl {
  position: absolute;
  inset: 0;
  z-index: 35;
  display: grid;
  place-items: center;
  pointer-events: none;
  background: rgba(27, 42, 92, .35);
}
.lvlcard {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  animation: lvlin 1.5s cubic-bezier(.3, 1.5, .5, 1) forwards;
}
.lvlcard b {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 130px;
  line-height: 1;
  color: #fff;
  -webkit-text-stroke: 6px var(--ink);
  paint-order: stroke fill;
  text-shadow: 0 8px 0 var(--ink);
  letter-spacing: 3px;
}
.lvlcard small {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 40px;
  color: #ffd34d;
  -webkit-text-stroke: 4px var(--ink);
  paint-order: stroke fill;
  text-shadow: 0 5px 0 var(--ink);
}
#stage.port .lvlcard b {
  font-size: 96px;
}
@keyframes lvlin {
  0% {
    scale: .2;
    rotate: -12deg;
    opacity: 0;
  }
  30% {
    scale: 1.15;
    rotate: 3deg;
    opacity: 1;
  }
  45% {
    scale: 1;
    rotate: 0;
  }
  80% {
    scale: 1;
    opacity: 1;
  }
  100% {
    scale: 1.4;
    opacity: 0;
  }
}
.praise {
  position: absolute;
  left: 0;
  right: 0;
  top: 34%;
  text-align: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 92px;
  line-height: 1;
  color: var(--c,#ffd34d);
  -webkit-text-stroke: 6px var(--ink);
  paint-order: stroke fill;
  text-shadow: 0 7px 0 var(--ink);
  animation: praise 1.1s cubic-bezier(.3, 1.6, .5, 1) forwards;
}
#stage.port .praise {
  font-size: 64px;
  padding: 0 20px;
}
@keyframes praise {
  0% {
    scale: .3;
    opacity: 0;
    rotate: -6deg;
  }
  25% {
    scale: 1.15;
    opacity: 1;
    rotate: 2deg;
  }
  45% {
    scale: 1;
    rotate: 0;
  }
  80% {
    opacity: 1;
    translate: 0 -20px;
  }
  100% {
    opacity: 0;
    translate: 0 -70px;
    scale: 1.1;
  }
}
.fxp {
  position: absolute;
  pointer-events: none;
  line-height: 1;
  animation: fxfly .9s ease-out forwards;
}
@keyframes fxfly {
  0% {
    transform: translate(0, 0) scale(1) rotate(0);
    opacity: 1;
  }
  100% {
    transform: translate(var(--dx), var(--dy)) scale(.4) rotate(var(--r));
    opacity: 0;
  }
}
.plus {
  position: absolute;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 44px;
  color: #ffd34d;
  -webkit-text-stroke: 4px var(--ink);
  paint-order: stroke fill;
  animation: plusup 1s ease-out forwards;
}
@keyframes plusup {
  0% {
    opacity: 0;
    transform: translateY(0) scale(.5);
  }
  20% {
    opacity: 1;
    transform: translateY(-20px) scale(1.2);
  }
  100% {
    opacity: 0;
    transform: translateY(-120px) scale(1);
  }
}
.leave {
  position: absolute;
  inset: 0;
  z-index: 40;
  background: rgba(27, 42, 92, .55);
  display: grid;
  place-items: center;
  padding: 18px;
}
.lcard {
  background: #fff;
  border: 4px solid var(--ink);
  border-radius: 28px;
  box-shadow: 0 8px 0 var(--ink);
  padding: 28px;
  max-width: 100%;
  width: min(560px, 100%);
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-align: center;
  animation: boardin .4s cubic-bezier(.3, 1.6, .5, 1);
}
.lcard h2 {
  font-size: 46px;
}
.lcard p {
  font-size: 30px;
  font-weight: 800;
  line-height: 1.25;
}
.lcard .actions {
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}
.leave {
  grid-template-columns: minmax(0, 1fr);
}
.lcard {
  min-width: 0;
}
.lcard .btn {
  white-space: nowrap;
}
.lcard .btn {
  font-size: 30px;
  min-height: 70px;
}
.confetti {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 50;
}
.confetti i {
  position: absolute;
  top: -20px;
  width: 12px;
  height: 18px;
  border-radius: 3px;
  animation: fall 1.8s ease-in forwards;
}
@keyframes fall {
  to {
    transform: translateY(110vh) rotate(720deg);
  }
}
.c0 {
  --cc:#ffe3a3;
}
.c1 {
  --cc:#cfe7f7;
}
.c2 {
  --cc:#b9d8f3;
}
.c3 {
  --cc:#e9d3f2;
}
.c4 {
  --cc:#f8c9d6;
}
.numcard,
.bigcard,
.ncard {
  background: var(--cc,#fff);
}
.choices.cardbox,
.cardbox.dst {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: calc(10px*var(--k));
  background: #dff3c9;
  border: 4px solid var(--ink);
  border-radius: 22px;
  padding: calc(10px*var(--k));
  box-shadow: inset 0 0 0 5px rgba(255, 255, 255, .55);
}
.cardbox.dst {
  background: #fff2c7;
}
.cardbox.dst[hidden] {
  display: none;
}
.cardbox.dst.right {
  background: var(--good-bg);
  border-color: var(--good);
}
.cardbox[data-cap]::before {
  content: attr(data-cap);
  flex: 0 0 100%;
  text-align: left;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: calc(20px*var(--k));
  line-height: 1;
  color: var(--ink);
  opacity: .75;
}
.cardbox.shakeit {
  animation: shake .45s;
}
.choice.numcard,
.acard,
.slot {
  flex: 0 0 auto;
  box-sizing: border-box;
  width: calc(150px*var(--k));
  height: calc(124px*var(--k));
  min-height: 0;
  padding: 0;
  display: grid;
  place-items: center;
  border-radius: 14px;
  border-width: 3px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: calc(66px*var(--k));
  line-height: 1;
  color: var(--ink);
}
.acard {
  border: 3px solid var(--ink);
  box-shadow: 0 5px 0 var(--ink);
  cursor: grab;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  transition: transform .08s, box-shadow .08s;
}
.acard:active {
  cursor: grabbing;
}
.acard.lift {
  opacity: .3;
}
.acard[aria-disabled=true] {
  cursor: default;
}
.numcard.correct::after,
.numcard.wrong::after {
  content: none;
}
.slot {
  position: relative;
  width: calc(150px*var(--k));
  height: calc(124px*var(--k));
  border: 3px dashed var(--ink);
  border-radius: 14px;
  background: rgba(255, 255, 255, .7);
  display: grid;
  place-items: center;
}
.slot.over {
  background: #fff;
  border-style: solid;
  box-shadow: 0 0 0 4px #ff4f87;
}
.slot.full {
  border-style: solid;
  background: transparent;
}
.slot .sn {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: calc(34px*var(--k));
  opacity: .35;
}
.slot .acard {
  width: 100%;
  height: 100%;
  box-shadow: none;
}
.cardbox.dst.right .slot {
  border-color: var(--good);
}
.acard.ghost {
  position: absolute;
  z-index: 60;
  pointer-events: none;
  margin: 0;
  box-shadow: 0 14px 0 rgba(27, 42, 92, .35);
  rotate: -4deg;
  scale: 1.1;
  transition: none;
}
.cardbox.wide .acard,
.cardbox.wide .slot {
  width: calc(264px*var(--k));
  font-size: calc(45px*var(--k));
}
#stage.port .cardbox.wide .acard,
#stage.port .cardbox.wide .slot {
  width: calc(196px*var(--k));
  font-size: calc(34px*var(--k));
}
.fig.pat svg {
  height: calc(180px*var(--k));
}
#lVis .fig.pat svg {
  height: calc(200px*var(--k));
}
.choice.numcard svg,
.acard.pic svg {
  width: 88%;
  height: 88%;
  display: block;
}
.fig.clock svg {
  height: calc(230px*var(--k));
}
#stage.port .fig.clock svg {
  height: calc(380px*var(--k));
}
#lVis .fig.clock svg {
  height: calc(210px*var(--k));
}
.fig.big svg {
  height: calc(230px*var(--k));
}
.fig.seq {
  flex-wrap: nowrap;
  gap: calc(8px*var(--k));
  width: 100%;
}
.sq {
  flex: 1 1 0;
  min-width: 0;
  max-width: calc(120px*var(--k));
  aspect-ratio: 1/1;
  box-sizing: border-box;
  display: grid;
  place-items: center;
  border: 4px solid var(--ink);
  border-radius: 16px;
  box-shadow: 0 5px 0 var(--ink);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: calc(58px*var(--k));
  line-height: 1;
  color: var(--ink);
}
.sq.gap {
  background: #fff;
  border-style: dashed;
  box-shadow: none;
  color: #ff8a3d;
  animation: sqpulse 1s ease-in-out infinite alternate;
}
@keyframes sqpulse {
  to {
    transform: scale(1.08);
  }
}
#stage.port .sq {
  font-size: calc(44px*var(--k));
}
.seqq #choices {
  order: 2;
}
.seqq .qfoot {
  order: 3;
}
.cardbox.dst.seqbox {
  flex-wrap: nowrap;
  gap: calc(8px*var(--k));
  padding: calc(14px*var(--k)) calc(10px*var(--k));
}
.seqbox .sq,
.seqbox .slot {
  flex: 1 1 0;
  min-width: 0;
  max-width: calc(120px*var(--k));
  width: auto;
  height: auto;
  aspect-ratio: 1/1;
}
.seqbox .slot {
  border-color: #ff8a3d;
  border-width: 4px;
  background: #fff;
}
.seqbox .slot .sn {
  opacity: 1;
  color: #ff8a3d;
  font-size: calc(58px*var(--k));
  animation: sqpulse 1s ease-in-out infinite alternate;
}
.seqbox .slot.full .sn {
  display: none;
}
.seqbox .slot .acard {
  width: 100%;
  height: 100%;
  font-size: calc(58px*var(--k));
  box-shadow: none;
  border-radius: 12px;
}
.seqbox .slot.over {
  background: #fff3c9;
  transform: scale(1.06);
}
#stage.port .seqbox .slot .acard,
#stage.port .seqbox .slot .sn {
  font-size: calc(44px*var(--k));
}
#stage.land #s-quiz.vq .seqbox .slot,
#stage.land #s-quiz.vq .seqbox .sq {
  width: auto;
  height: auto;
}
#stage.port .fig.big svg {
  height: calc(340px*var(--k));
}
.fig.shp svg {
  height: calc(250px*var(--k));
}
.fig.cut svg {
  height: auto;
  width: min(100%, calc(560px*var(--k)));
}
#lVis .fig.shp svg {
  height: calc(190px*var(--k));
}
#lVis .fig.cut svg {
  width: min(100%, calc(720px*var(--k)));
}
#stage.port .choice.numcard,
#stage.port .acard,
#stage.port .slot {
  width: calc(92px*var(--k));
  height: calc(86px*var(--k));
  font-size: calc(50px*var(--k));
}
#stage.port .choices.cardbox,
#stage.port .cardbox.dst {
  gap: calc(6px*var(--k));
}
.bigcard {
  display: inline-grid;
  place-items: center;
  min-width: calc(130px*var(--k));
  height: calc(92px*var(--k));
  padding: 0 calc(18px*var(--k));
  border: 4px solid var(--ink);
  border-radius: 14px;
  box-shadow: 0 5px 0 var(--ink);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: calc(64px*var(--k));
  line-height: 1;
  color: var(--ink);
}
.ncard {
  display: inline-grid;
  place-items: center;
  min-width: calc(88px*var(--k));
  height: calc(80px*var(--k));
  padding: 0 calc(10px*var(--k));
  border: 3px solid var(--ink);
  border-radius: 12px;
  box-shadow: 0 4px 0 var(--ink);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: calc(46px*var(--k));
  line-height: 1;
  color: var(--ink);
}
.lvlcard small {
  max-width: 88%;
  text-align: center;
  line-height: 1.1;
}
.fr {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  line-height: 1;
  vertical-align: middle;
}
.fr b {
  font-size: .64em;
  font-weight: 700;
  padding: 0 .12em;
}
.fr i {
  display: block;
  align-self: stretch;
  border-top: .09em solid currentColor;
  margin: .07em 0;
  border-radius: 2px;
}
.fig {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: calc(14px*var(--k));
  flex-wrap: wrap;
}
.fig svg {
  display: block;
  max-width: 100%;
  width: auto;
  height: calc(190px*var(--k));
}
.vadd {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--ink);
  font-size: calc(92px*var(--k));
  line-height: 1.02;
  min-width: calc(250px*var(--k));
  text-align: right;
}
.vadd .vr {
  display: flex;
  justify-content: space-between;
  gap: calc(40px*var(--k));
}
.vadd .vr b {
  font-weight: 700;
}
.vadd .vl {
  height: calc(8px*var(--k));
  background: var(--ink);
  border-radius: 3px;
  margin: calc(4px*var(--k)) 0;
}
#lVis .vadd {
  font-size: calc(100px*var(--k));
}
.fig.share {
  font-size: calc(76px*var(--k));
  line-height: 1.1;
  gap: calc(6px*var(--k)) calc(24px*var(--k));
}
.fig.share span {
  display: inline-block;
  overflow-wrap: anywhere;
  max-width: 100%;
}
#lVis .fig svg {
  height: calc(140px*var(--k));
}
#lVis .fig.share {
  font-size: calc(46px*var(--k));
}
.acard .fr b {
  font-size: .62em;
}
#amb {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
  border-radius: 24px;
}
#amb i {
  position: absolute;
  font-style: normal;
  line-height: 1;
  opacity: .5;
  font-size: calc(40px*var(--k));
}
#board[data-lv]::after {
  content: "";
  position: absolute;
  inset: 5px;
  border-radius: 22px;
  border: 4px solid var(--lg,#4aa8ff);
  pointer-events: none;
  opacity: .5;
}
#board[data-lv="1"] {
  --lg:#4aa8ff;
}
#board[data-lv="2"] {
  --lg:#ffc928;
}
#board[data-lv="3"] {
  --lg:#a77bff;
}
#board[data-lv="1"]::after {
  animation: glow1 2.2s ease-in-out infinite alternate;
}
#board[data-lv="2"]::after {
  border-style: dotted;
  border-width: 6px;
  animation: glow2 1.2s ease-in-out infinite alternate;
}
#board[data-lv="3"]::after {
  border-style: dashed;
  animation: glow3 3s linear infinite;
}
#board[data-lv="4"]::after {
  border-width: 6px;
  animation: glow4 3.4s linear infinite;
}
@keyframes glow1 {
  from {
    opacity: .15;
  }
  to {
    opacity: .75;
  }
}
@keyframes glow2 {
  from {
    opacity: .3;
    scale: .992;
  }
  to {
    opacity: .95;
    scale: 1;
  }
}
@keyframes glow3 {
  0% {
    opacity: .35;
    border-color: #a77bff;
  }
  50% {
    opacity: .9;
    border-color: #ff7ac6;
  }
  100% {
    opacity: .35;
    border-color: #a77bff;
  }
}
@keyframes glow4 {
  0% {
    border-color: #ff5a5f;
  }
  20% {
    border-color: #ffa43a;
  }
  40% {
    border-color: #ffd34d;
  }
  60% {
    border-color: #5be08f;
  }
  80% {
    border-color: #4aa8ff;
  }
  100% {
    border-color: #ff5a5f;
  }
}
#board[data-lv="1"] #amb i {
  bottom: -60px;
  animation: ambUp 8s linear infinite;
}
#board[data-lv="2"] #amb i {
  animation: ambTw 2.4s ease-in-out infinite;
}
#board[data-lv="3"] #amb i {
  left: -60px;
  bottom: -60px;
  animation: ambZip 5.5s linear infinite;
}
#board[data-lv="4"] #amb i {
  animation: ambPop 2s ease-out infinite;
}
@keyframes ambUp {
  0% {
    transform: translate(0, 0) rotate(-8deg);
  }
  50% {
    transform: translate(16px, -380px) rotate(8deg);
  }
  100% {
    transform: translate(-10px, -820px) rotate(-8deg);
  }
}
@keyframes ambTw {
  0%, 100% {
    transform: scale(.4) rotate(0);
    opacity: .1;
  }
  50% {
    transform: scale(1.25) rotate(25deg);
    opacity: .7;
  }
}
@keyframes ambZip {
  0% {
    transform: translate(0, 0);
  }
  100% {
    transform: translate(1400px, -820px);
  }
}
@keyframes ambPop {
  0% {
    transform: scale(0);
    opacity: 0;
  }
  25% {
    opacity: .8;
  }
  60% {
    transform: scale(1.5) rotate(20deg);
    opacity: .6;
  }
  100% {
    transform: scale(1.9) rotate(40deg);
    opacity: 0;
  }
}
.lvl {
  background: var(--lb,rgba(27,42,92,.35));
}
.lvl.b2 {
  --lb:rgba(90,40,120,.38);
}
.lvl.b3 {
  --lb:rgba(20,50,110,.5);
}
.lvl.b4 {
  --lb:rgba(255,200,40,.28);
  animation: lvflash 1.5s ease-out;
}
@keyframes lvflash {
  0% {
    filter: brightness(2);
  }
  30% {
    filter: brightness(1);
  }
}
.lvlico {
  font-size: 96px;
  line-height: 1;
  display: block;
}
#stage.port .lvlico {
  font-size: 72px;
}
.lvl.b1 .lvlico {
  animation: ico1 1.5s ease-in-out both;
}
.lvl.b2 .lvlico {
  animation: ico2 1.5s ease-in-out both;
}
.lvl.b3 .lvlico {
  animation: ico3 1.5s ease-in both;
}
.lvl.b4 .lvlico {
  animation: ico4 1.5s cubic-bezier(.3, 1.6, .5, 1) both;
}
@keyframes ico1 {
  0% {
    translate: 0 120px;
    opacity: 0;
  }
  40% {
    translate: 0 -20px;
    opacity: 1;
  }
  60% {
    translate: 0 6px;
  }
  100% {
    translate: 0 -14px;
  }
}
@keyframes ico2 {
  0% {
    rotate: 0;
    scale: 0;
  }
  50% {
    rotate: 540deg;
    scale: 1.4;
  }
  100% {
    rotate: 720deg;
    scale: 1;
  }
}
@keyframes ico3 {
  0% {
    translate: -520px 160px;
    rotate: 0;
  }
  70% {
    translate: 0 0;
  }
  100% {
    translate: 620px -220px;
  }
}
@keyframes ico4 {
  0% {
    translate: 0 -300px;
    scale: 2;
    opacity: 0;
  }
  45% {
    translate: 0 0;
    scale: 1;
    opacity: 1;
  }
  60% {
    translate: 0 -26px;
  }
  75% {
    translate: 0 0;
  }
  100% {
    translate: 0 0;
  }
}
.lvl.b1 .lvlcard {
  animation: lvlin 1.5s cubic-bezier(.3, 1.5, .5, 1) forwards;
}
.lvl.b2 .lvlcard {
  animation: lvlin2 1.5s cubic-bezier(.3, 1.4, .5, 1) forwards;
}
.lvl.b3 .lvlcard {
  animation: lvlin3 1.5s cubic-bezier(.2, 1.3, .4, 1) forwards;
}
.lvl.b4 .lvlcard {
  animation: lvlin4 1.5s cubic-bezier(.3, 1.5, .5, 1) forwards;
}
@keyframes lvlin2 {
  0% {
    transform: perspective(600px) rotateY(-90deg) scale(.4);
    opacity: 0;
  }
  35% {
    transform: perspective(600px) rotateY(20deg) scale(1.1);
    opacity: 1;
  }
  50% {
    transform: none;
  }
  80% {
    transform: none;
    opacity: 1;
  }
  100% {
    transform: scale(1.4);
    opacity: 0;
  }
}
@keyframes lvlin3 {
  0% {
    translate: -120% 0;
    skew: -18deg;
    opacity: 0;
  }
  35% {
    translate: 6% 0;
    skew: 6deg;
    opacity: 1;
  }
  50% {
    translate: 0 0;
    skew: 0deg;
  }
  80% {
    translate: 0 0;
    opacity: 1;
  }
  100% {
    translate: 120% 0;
    skew: 18deg;
    opacity: 0;
  }
}
@keyframes lvlin4 {
  0% {
    translate: 0 -120%;
    scale: 1.6;
    opacity: 0;
  }
  30% {
    translate: 0 0;
    scale: 1;
    opacity: 1;
  }
  38% {
    translate: -10px 0;
  }
  46% {
    translate: 10px 0;
  }
  54% {
    translate: -6px 0;
  }
  62% {
    translate: 0 0;
  }
  85% {
    opacity: 1;
  }
  100% {
    scale: 1.4;
    opacity: 0;
  }
}
.medal.m2 {
  animation: medalspin 2.4s ease-in-out infinite;
}
.medal.m3 {
  animation: medalhop 1s ease-in-out infinite;
}
.medal.m4 {
  animation: medalglow 1s ease-in-out infinite alternate;
}
@keyframes medalspin {
  0% {
    rotate: 0;
  }
  60% {
    rotate: 360deg;
  }
  100% {
    rotate: 360deg;
  }
}
@keyframes medalhop {
  0%, 100% {
    translate: 0 0;
  }
  50% {
    translate: 0 -18px;
  }
}
@keyframes medalglow {
  from {
    translate: 0 0;
    filter: drop-shadow(0 0 4px #ffd34d);
  }
  to {
    translate: 0 -10px;
    filter: drop-shadow(0 0 30px #ffb300);
  }
}
#s-level.t2 .lvstars span {
  animation-name: starspin;
}
#s-level.t3 .lvstars span {
  animation-name: stardrop;
}
#s-level.t4 .lvstars span {
  animation-name: starflash;
}
@keyframes starspin {
  0% {
    scale: 0;
    rotate: -720deg;
    opacity: 0;
  }
  100% {
    scale: 1;
    rotate: 0;
    opacity: 1;
  }
}
@keyframes stardrop {
  0% {
    translate: 0 -60px;
    opacity: 0;
  }
  60% {
    translate: 0 8px;
    opacity: 1;
  }
  80% {
    translate: 0 -6px;
  }
  100% {
    translate: 0 0;
    opacity: 1;
  }
}
@keyframes starflash {
  0% {
    scale: 0;
    filter: brightness(3);
    opacity: 0;
  }
  60% {
    scale: 1.5;
    filter: brightness(2);
    opacity: 1;
  }
  100% {
    scale: 1;
    filter: none;
    opacity: 1;
  }
}
.confetti.shower i {
  width: auto;
  height: auto;
  background: none !important;
  border-radius: 0;
  font-style: normal;
  font-size: 30px;
  line-height: 1;
}
.confetti.shower.up i {
  top: auto;
  bottom: -50px;
  animation-name: rise2;
}
@keyframes rise2 {
  to {
    transform: translateY(-115vh) rotate(25deg);
  }
}
#themebg {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: calc(15% - 4px);
  display: none;
}
#themebg svg {
  width: 100%;
  height: 100%;
  display: block;
}
#scene[data-th] #themebg {
  display: block;
}
#scene[data-th] .sun,
#scene[data-th] .cloud {
  display: none;
}
#scene[data-th="0"] {
  background:
    linear-gradient(
      #5fd4ff,
      #c9f3ff 60%,
      #fff3c4);
}
#scene[data-th="1"] {
  background:
    linear-gradient(
      #ffc6e3,
      #ffe9f4 65%,
      #fff);
}
#scene[data-th="2"] {
  background:
    linear-gradient(
      #a9e8b6,
      #e6fbcf 70%,
      #fff6c8);
}
#scene[data-th="3"] {
  background:
    linear-gradient(
      #ffdc8a,
      #fff1c9 70%,
      #fff);
}
#scene[data-th="4"] {
  background:
    linear-gradient(
      #352a8a,
      #b04aa8 60%,
      #ff9ab8);
}
#scene[data-th="5"] {
  background:
    linear-gradient(
      #9fdcff,
      #e4f6ff 70%,
      #fff3c4);
}
#scene[data-th="6"] {
  background:
    linear-gradient(
      #7cc8ff,
      #d8f1ff 70%,
      #fff);
}
#scene[data-th="7"] {
  background:
    linear-gradient(
      #ffc98a,
      #ffe9c4 70%,
      #fff6dc);
}
#themebg svg [class^=t-],
#skyline svg [class^=t-] {
  transform-box: fill-box;
  transform-origin: center;
}
.t-fly {
  animation: tfly 40s linear infinite;
}
@keyframes tfly {
  from {
    transform: translateX(-170px);
  }
  to {
    transform: translateX(780px);
  }
}
.t-bob {
  animation: tbob 3s ease-in-out infinite alternate;
}
@keyframes tbob {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(-7px);
  }
}
.t-sway {
  animation: tsway 4s ease-in-out infinite alternate;
}
@keyframes tsway {
  from {
    transform: rotate(-4deg);
  }
  to {
    transform: rotate(4deg);
  }
}
.t-swing {
  animation: tswing 2s ease-in-out infinite alternate;
}
@keyframes tswing {
  from {
    transform: rotate(-14deg);
  }
  to {
    transform: rotate(14deg);
  }
}
.t-rock {
  animation: trock 2s ease-in-out infinite alternate;
}
@keyframes trock {
  from {
    transform: rotate(-8deg);
  }
  to {
    transform: rotate(8deg);
  }
}
.t-spin {
  animation: tspin 10s linear infinite;
}
.t-spinr {
  animation: tspin 10s linear infinite reverse;
}
@keyframes tspin {
  to {
    transform: rotate(360deg);
  }
}
.t-tw {
  animation: ttw 2s ease-in-out infinite;
}
@keyframes ttw {
  0%, 100% {
    opacity: .25;
    transform: scale(.6);
  }
  50% {
    opacity: 1;
    transform: scale(1.2);
  }
}
.t-fall {
  animation: tfall 7s linear infinite;
}
@keyframes tfall {
  from {
    transform: translateY(0) rotate(0);
  }
  to {
    transform: translateY(270px) rotate(300deg);
  }
}
.t-rise {
  animation: trise 2.4s ease-out infinite;
}
@keyframes trise {
  from {
    transform: translateY(0);
    opacity: .9;
  }
  to {
    transform: translateY(-28px);
    opacity: 0;
  }
}
.t-float {
  animation: tfloat 12s linear infinite;
}
@keyframes tfloat {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(-300px);
  }
}
.t-wave {
  animation: twave 6s linear infinite;
}
@keyframes twave {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(60px);
  }
}
.t-flap {
  animation: tflap .7s ease-in-out infinite alternate;
}
@keyframes tflap {
  from {
    transform: scaleY(1);
  }
  to {
    transform: scaleY(-.5);
  }
}
.t-pop {
  animation: tpop 1.6s ease-in-out infinite;
}
.t-pulse {
  animation: tpop 1.4s ease-in-out infinite;
}
@keyframes tpop {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.15);
  }
}
.t-wag {
  animation: twag .5s ease-in-out infinite alternate;
}
@keyframes twag {
  from {
    transform: rotate(-14deg);
  }
  to {
    transform: rotate(14deg);
  }
}
.t-jump {
  animation: tjump 5s ease-in-out infinite;
}
@keyframes tjump {
  0%, 60%, 100% {
    transform: translateY(0);
  }
  72% {
    transform: translateY(-34px) rotate(-12deg);
  }
  86% {
    transform: translateY(0) rotate(0);
  }
}
.t-crab {
  animation: tcrab 5s ease-in-out infinite alternate;
}
@keyframes tcrab {
  from {
    transform: translateX(-34px);
  }
  to {
    transform: translateX(34px);
  }
}
.t-bounce {
  animation: tbounce 1s ease-in infinite alternate;
}
@keyframes tbounce {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(-16px);
  }
}
.t-sweep {
  animation: tsweep 4s ease-in-out infinite alternate;
}
@keyframes tsweep {
  from {
    transform: rotate(-20deg);
  }
  to {
    transform: rotate(20deg);
  }
}
.t-flutter {
  animation: tflut 3s ease-in-out infinite alternate;
}
@keyframes tflut {
  from {
    transform: translate(-10px, 0);
  }
  to {
    transform: translate(12px, -9px);
  }
}
.t-armw {
  animation: tarm .6s ease-in-out infinite alternate;
}
@keyframes tarm {
  from {
    transform: rotate(-18deg);
  }
  to {
    transform: rotate(18deg);
  }
}
.t-shim {
  animation: tshim 3s ease-in-out infinite;
}
@keyframes tshim {
  0%, 100% {
    opacity: .8;
  }
  50% {
    opacity: 1;
  }
}
.t-shoot {
  animation: tshoot 6s linear infinite;
}
@keyframes tshoot {
  0%, 70% {
    transform: translate(520px, 10px);
    opacity: 0;
  }
  75% {
    opacity: 1;
  }
  100% {
    transform: translate(160px, 120px);
    opacity: 0;
  }
}
#scene[data-th] #skyline svg {
  overflow: visible;
}
#qNext {
  display: none !important;
}
#scene[data-th="4"] #board {
  background: rgba(255, 255, 255, .82);
}
#stage.land #s-quiz.vq {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-auto-rows: auto;
  column-gap: calc(16px*var(--k));
  row-gap: calc(10px*var(--k));
  align-content: center;
}
#stage.land #s-quiz.vq > .rowtop,
#stage.land #s-quiz.vq > .qtext,
#stage.land #s-quiz.vq > .qfoot {
  grid-column: 1/-1;
}
#stage.land #s-quiz.vq > .qvis {
  grid-column: 1;
  grid-row: 3/5;
  display: flex;
  align-items: center;
  justify-content: center;
}
#stage.land #s-quiz.vq > .choices {
  grid-column: 2;
  grid-row: 3;
}
#stage.land #s-quiz.vq > #arrDst {
  grid-column: 2;
  grid-row: 4;
}
#stage.land #s-quiz.vq .vadd {
  font-size: calc(104px*var(--k));
}
#stage.land #s-quiz.vq .fig.clock svg {
  height: calc(330px*var(--k));
}
#stage.land #s-quiz.vq .fig.big svg {
  height: calc(300px*var(--k));
}
#stage.land #s-quiz.vq .choice.numcard,
#stage.land #s-quiz.vq .acard,
#stage.land #s-quiz.vq .slot {
  width: calc(104px*var(--k));
  height: calc(96px*var(--k));
  font-size: calc(54px*var(--k));
}
#stage.land #s-quiz.vq .cardbox.wide .choice.numcard,
#stage.land #s-quiz.vq .cardbox.wide .acard,
#stage.land #s-quiz.vq .cardbox.wide .slot {
  width: calc(170px*var(--k));
  font-size: calc(46px*var(--k));
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .01s !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01s !important;
    animation-delay: 0s !important;
  }
  .confetti,
  .fsym,
  #amb {
    display: none;
  }
}
@media (max-width: 900px), (max-height: 520px) {
  body {
    padding-block: max(4px, env(safe-area-inset-top, 0px)) max(4px, env(safe-area-inset-bottom, 0px));
    padding-left: max(6px, env(safe-area-inset-left, 0px));
    padding-right: max(6px, env(safe-area-inset-right, 0px));
  }
}
@media (orientation: landscape) and (max-height: 520px) {
  body {
    padding-block: 0;
    padding-left: env(safe-area-inset-left, 0px);
    padding-right: env(safe-area-inset-right, 0px);
  }
}
#stage.short .floor {
  display: none;
}
#stage.short .ceiling {
  padding: 6px 14px;
  gap: 6px 10px;
}
#stage.short .cbtn {
  height: 46px;
  font-size: 22px;
  padding: 0 14px;
  border-width: 3px;
  border-radius: 14px;
  box-shadow: 0 4px 0 var(--ink);
}
#stage.short .cbtn.ico {
  width: 50px;
  padding: 0;
  font-size: 22px;
}
#stage.short .route {
  padding: 2px 12px;
  border-width: 3px;
  border-radius: 12px;
}
#stage.short .rl {
  display: none;
}
#stage.short .rn {
  font-size: 24px;
}
#stage.short .dot {
  width: 24px;
  font-size: 12px;
  border-width: 2px;
}
#stage.short .rail {
  height: 10px;
}
#stage.short .frame {
  inset: 8px 12px 0;
}
#stage.short #scene {
  inset: 8px 8px 0;
}
#stage.short #board {
  left: 12px;
  right: 12px;
  top: 10px;
  bottom: 6px;
  padding: calc(10px*var(--k)) calc(18px*var(--k));
  border-width: 3px;
  border-radius: 22px;
}
#stage.short .sign {
  top: 8px;
  font-size: 28px;
}
