:root {
  color-scheme: dark;
  --ink: #f0ebd7;
  --muted: #a0ae91;
  --green: #162e27;
  --panel: #173128;
  --gold: #dbba79;
  --line: #b7c69a2c;
}
* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #142b25;
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
}
button,
input {
  font: inherit;
}
button {
  cursor: pointer;
  touch-action: manipulation;
}
button:disabled {
  opacity: 0.45;
  cursor: default;
}
button:focus-visible,
input:focus-visible {
  outline: 2px solid #efd396;
  outline-offset: 3px;
}
button {
  transition:
    filter 0.15s,
    transform 0.15s;
}
button:active {
  transform: translateY(1px);
}
h1,
h2,
h3,
p {
  margin: 0;
}
.hidden {
  display: none !important;
}
.game-shell {
  position: relative;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  isolation: isolate;
  overflow: hidden;
}
#battlefield {
  position: absolute;
  inset: 0;
  background: #76977f;
}
canvas {
  width: 100%;
  height: 100%;
  display: block;
  touch-action: none;
}
.game-shell:after {
  content: "";
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 140px #112e2a55;
  pointer-events: none;
  z-index: 1;
}
.game-hud {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 25px;
  padding: max(18px, env(safe-area-inset-top))
    max(25px, env(safe-area-inset-right)) 28px
    max(25px, env(safe-area-inset-left));
  background: linear-gradient(#102c29ed, #102c2980, transparent);
  pointer-events: none;
}
.game-hud > * {
  pointer-events: auto;
}
.level-badge {
  margin-right: auto;
  min-width: 170px;
}
.eyebrow {
  display: block;
  font-size: 9px;
  letter-spacing: 2px;
  color: #bec9a4;
  font-weight: 700;
}
.level-badge strong {
  display: block;
  font:
    22px Georgia,
    serif;
  margin-top: 7px;
}
.resources {
  display: flex;
  align-items: center;
  gap: 27px;
  padding: 10px 18px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #122e29b8;
}
.castle-health {
  width: 118px;
}
.castle-health span {
  display: flex;
  gap: 10px;
  font-size: 19px;
  align-items: center;
}
.castle-health b {
  font-size: 12px;
  font-weight: 500;
}
.health-track {
  height: 4px;
  background: #90a08033;
  margin-top: 6px;
  border-radius: 2px;
  overflow: hidden;
}
.health-track i {
  display: block;
  height: 100%;
  width: 100%;
  background: #b8cd8b;
  transition: width 0.2s;
}
.gold {
  font-size: 22px;
  color: var(--gold);
  white-space: nowrap;
}
.gold b {
  font-size: 19px;
}
.game-tools {
  display: flex;
  gap: 7px;
}
.icon-button {
  border: 1px solid #bfcea23d;
  background: #163830a6;
  color: #ede9d0;
  border-radius: 7px;
  width: 41px;
  height: 41px;
  font-size: 21px;
  display: grid;
  place-items: center;
}
.icon-button:hover {
  background: #345542;
}
.scene-tag {
  position: absolute;
  top: 103px;
  left: 26px;
  z-index: 2;
  color: #f3f3d6b5;
  font-size: 8px;
  letter-spacing: 1.6px;
  pointer-events: none;
}
.dot {
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #cee4ab;
  margin-right: 8px;
}
.overlay {
  position: absolute;
  inset: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 95px 20px 32px;
  background: linear-gradient(90deg, #13332b70, #12352a1c, #13332b70);
  overflow: auto;
}
.menu-card {
  width: 360px;
  max-width: 100%;
  text-align: center;
  border: 1px solid #bfd2a942;
  border-radius: 12px;
  padding: 28px 32px;
  background: linear-gradient(145deg, #183b30f5, #102a25f5);
  box-shadow: 0 20px 70px #122b2750;
}
.crest {
  font:
    42px Georgia,
    serif;
  color: var(--gold);
  margin-bottom: 8px;
}
.menu-card .eyebrow {
  font-size: 8px;
  color: #a8bd91;
}
h1 {
  font:
    58px/0.94 Georgia,
    serif;
  letter-spacing: -2px;
  margin: 17px 0;
}
h1 em {
  font-weight: 400;
  color: var(--gold);
}
.menu-tagline {
  font:
    italic 14px Georgia,
    serif !important;
}
.menu-card h2 {
  font:
    32px/1.08 Georgia,
    serif;
  margin: 15px 0;
}
.menu-card p {
  font-size: 12px;
  line-height: 1.6;
  color: #b8c2a6;
}
.name-label {
  text-align: left;
  display: block;
  font-size: 8px;
  letter-spacing: 1.5px;
  color: #b7c4a1;
  margin-top: 25px;
}
input {
  width: 100%;
  border: 1px solid #9faf8052;
  border-radius: 5px;
  background: #102821;
  color: #e4e8d0;
  padding: 13px 14px;
  margin: 8px 0 12px;
  font-size: 13px;
}
.primary,
.secondary {
  border-radius: 5px;
  padding: 14px 17px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: bold;
  min-height: 44px;
}
.primary {
  border: 1px solid #ead097;
  background: var(--gold);
  color: #223d2c;
}
.primary:hover {
  background: #eed09a;
}
.secondary {
  border: 1px solid #aabd8950;
  background: #2547376e;
  color: #e3e8cf;
}
.secondary:hover {
  background: #385b43;
}
.menu-card > .primary,
.menu-card > .secondary {
  width: 100%;
  margin-top: 10px;
}
.split {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}
.split button {
  flex: 1;
  justify-content: center;
  font-size: 10px;
  padding: 12px 8px;
}
.menu-foot {
  font-size: 7px;
  letter-spacing: 1.4px;
  color: #9caf8b;
  margin-top: 22px;
}
.menu-foot span {
  margin: 0 6px;
}
#menuError {
  color: #f0b7a0;
  margin-top: 10px;
}
#players {
  margin: 17px 0;
}
.party-player {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}
.party-player span {
  font-size: 10px;
  color: #bdcf93;
}
#inviteLink {
  font-size: 11px;
}
.battle-controls {
  position: absolute;
  bottom: max(27px, env(safe-area-inset-bottom));
  left: max(25px, env(safe-area-inset-left));
  right: max(25px, env(safe-area-inset-right));
  z-index: 4;
  pointer-events: none;
}
.control-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.mobile-move {
  display: flex;
  gap: 9px;
  pointer-events: auto;
}
.mobile-move button {
  width: 58px;
  height: 51px;
  border: 1px solid #c4d2a366;
  background: #17372cd9;
  color: #f3eccf;
  border-radius: 8px;
  font-size: 25px;
  touch-action: none;
  user-select: none;
}
.aim-hint {
  text-align: center;
  color: #f0edd0c4;
  font-size: 8px;
  letter-spacing: 2px;
  line-height: 1.8;
}
.aim-hint b {
  font-weight: 400;
  color: #abbf93;
  font-size: 7px;
}
.player-health {
  background: #18382ce6;
  border: 1px solid var(--line);
  padding: 11px 15px;
  border-radius: 6px;
  color: #d1dfb1;
  font-size: 12px;
  max-width: 180px;
}
.arsenal-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 17px;
}
.quiver-label {
  font-size: 8px;
  letter-spacing: 1.5px;
  color: #b4c49a;
}
.quiver {
  display: flex;
  gap: 8px;
  pointer-events: auto;
}
.arrow-slot {
  width: 83px;
  height: 72px;
  position: relative;
  text-align: left;
  background: #15352de8;
  border: 1px solid #9faf804a;
  color: #dbe2c6;
  border-radius: 8px;
  padding: 6px 10px;
  overflow: hidden;
}
.arrow-slot.selected {
  border-color: var(--gold);
  background: #4a5636eb;
  box-shadow: 0 0 18px #c1b67a24;
}
.arrow-slot.locked {
  filter: saturate(0.3);
  opacity: 0.58;
}
.arrow-slot img {
  display: block;
  width: 40px;
  height: 40px;
  object-fit: cover;
  border-radius: 3px;
  margin-top: -3px;
  mix-blend-mode: screen;
}
.arrow-slot small {
  position: absolute;
  top: 7px;
  right: 7px;
  font-size: 9px;
  color: #c2cba9;
}
.connection {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  font-size: 7px;
  letter-spacing: 1.2px;
  color: #b4c7a27a;
  white-space: nowrap;
  pointer-events: none;
}
.offscreen {
  position: absolute;
  right: 24px;
  top: 125px;
  z-index: 3;
  background: #1d3d30cc;
  border: 1px solid var(--line);
  color: #f1e7ba;
  padding: 10px 13px;
  font-size: 11px;
  border-radius: 5px;
  pointer-events: none;
}
#toast {
  position: absolute;
  top: 120px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 30;
  background: #1b3b2eed;
  color: #f4e8c5;
  border: 1px solid #c3cb8059;
  padding: 12px 20px;
  border-radius: 5px;
  font-size: 13px;
  text-align: center;
  max-width: 85%;
  opacity: 0;
  transition: opacity 0.2s;
  pointer-events: none;
}
#toast.visible {
  opacity: 1;
}
dialog {
  color: var(--ink);
  border: 1px solid #a3b58266;
  background: #152e26;
  border-radius: 12px;
  box-shadow: 0 25px 100px #061b1777;
  width: min(480px, calc(100vw - 30px));
  max-height: calc(100dvh - 32px);
  padding: 30px;
}
dialog::backdrop {
  background: #091f1abc;
  backdrop-filter: blur(7px);
}
#helpDialog h2 {
  font:
    32px Georgia,
    serif;
  margin: 17px 0;
}
#helpDialog p {
  font-size: 13px;
  line-height: 1.8;
  color: #c3cdb3;
  margin: 14px 0;
}
#closeHelp {
  float: right;
}
.shop-dialog {
  padding: 0;
  width: min(1020px, calc(100vw - 40px));
  max-height: calc(100dvh - 44px);
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-color: #687b52 #172f25;
}
.shop-heading {
  padding: 27px 30px 21px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: linear-gradient(120deg, #294936, #172f27);
  border-bottom: 1px solid var(--line);
}
.shop-heading h2 {
  font:
    34px Georgia,
    serif;
  margin: 9px 0;
}
.shop-heading p {
  font-size: 12px;
  color: #b5c39e;
  line-height: 1.5;
}
.shop-purse {
  flex-shrink: 0;
  text-align: right;
}
.shop-purse > span {
  font-size: 8px;
  letter-spacing: 1.6px;
  color: #b1c39a;
}
.shop-purse strong {
  display: block;
  font:
    30px Georgia,
    serif;
  color: var(--gold);
  margin-top: 8px;
}
.shop-purse b {
  font-weight: 400;
}
.shop-tabs {
  display: flex;
  gap: 8px;
  padding: 17px 30px 6px;
}
.shop-tabs button {
  min-height: 39px;
  border: 1px solid var(--line);
  background: transparent;
  border-radius: 20px;
  color: #aabc93;
  padding: 7px 18px;
  font-size: 11px;
}
.shop-tabs button.active {
  background: #b0bf8a;
  color: #183124;
  border-color: #b0bf8a;
}
.shop-grid {
  padding: 16px 30px 25px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 13px;
}
.shop-card {
  background: #1c362a;
  border: 1px solid var(--line);
  border-radius: 9px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
}
.item-art {
  display: block;
  width: 100%;
  height: 155px;
  object-fit: contain;
  background: #142b25;
}
.shop-card-content {
  padding: 14px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.shop-card .eyebrow {
  font-size: 7px;
  letter-spacing: 1.3px;
  color: #9fb483;
}
.shop-card h3 {
  font:
    20px Georgia,
    serif;
  margin: 9px 0 7px;
}
.shop-card p {
  font-size: 11px;
  color: #b3c09e;
  line-height: 1.55;
  margin-bottom: 14px;
  flex: 1;
}
.shop-card button {
  font-size: 11px;
  width: 100%;
  min-height: 40px;
  padding: 10px 12px;
}
.shop-card.owned {
  border-color: #9aad6952;
}
.shop-card.owned:before {
  content: "✓";
  position: absolute;
  top: 10px;
  right: 10px;
  border-radius: 50%;
  background: #a9be82;
  color: #163226;
  padding: 4px 7px;
  font-size: 11px;
}
.shop-footer {
  position: sticky;
  bottom: 0;
  background: #132b23f5;
  border-top: 1px solid #a8b78140;
  padding: 16px 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  backdrop-filter: blur(15px);
}
.shop-footer p {
  font-size: 11px;
  line-height: 1.5;
  color: #b4c29f;
}
.shop-footer .primary {
  min-width: 205px;
}
@media (max-width: 650px) {
  .game-hud {
    gap: 10px;
    padding: calc(env(safe-area-inset-top) + 12px) 13px 27px;
    flex-wrap: wrap;
  }
  .level-badge {
    min-width: 0;
    flex: 1;
  }
  .level-badge strong {
    font-size: 17px;
    margin-top: 5px;
  }
  .level-badge .eyebrow {
    font-size: 7px;
    letter-spacing: 1.5px;
  }
  .resources {
    order: 3;
    width: 100%;
    justify-content: space-between;
    padding: 8px 12px;
    background: #142f27b3;
  }
  .castle-health {
    width: 140px;
  }
  .castle-health span {
    font-size: 15px;
  }
  .castle-health b {
    font-size: 11px;
  }
  .gold,
  .gold b {
    font-size: 18px;
  }
  .game-tools {
    gap: 5px;
  }
  .icon-button {
    width: 35px;
    height: 35px;
    font-size: 19px;
  }
  .scene-tag {
    top: 140px;
    left: 17px;
    font-size: 7px;
  }
  .overlay {
    padding: 150px 20px 35px;
  }
  .menu-card {
    padding: 22px 27px;
    width: 340px;
  }
  .menu-card h1 {
    font-size: 52px;
    margin: 13px 0;
  }
  .crest {
    font-size: 33px;
    margin-bottom: 5px;
  }
  .name-label {
    margin-top: 21px;
  }
  .menu-foot {
    margin-top: 18px;
  }
  .battle-controls {
    bottom: max(26px, env(safe-area-inset-bottom));
    left: 13px;
    right: 13px;
  }
  .control-row {
    margin-bottom: 15px;
  }
  .mobile-move button {
    width: 53px;
    height: 49px;
  }
  .player-health {
    font-size: 10px;
    padding: 12px;
    max-width: 135px;
  }
  .aim-hint {
    font-size: 6px;
    letter-spacing: 1px;
    margin: 0 9px;
  }
  .aim-hint b {
    font-size: 6px;
  }
  .quiver-label {
    display: none;
  }
  .quiver {
    width: 100%;
    gap: 6px;
  }
  .arrow-slot {
    flex: 1;
    min-width: 0;
    width: auto;
    height: 67px;
    padding: 5px 8px;
  }
  .arrow-slot img {
    width: 36px;
    height: 36px;
  }
  .offscreen {
    top: 164px;
    right: 15px;
    font-size: 10px;
  }
  #toast {
    top: 166px;
    width: max-content;
    font-size: 12px;
    max-width: 90%;
    padding: 10px 15px;
  }
  .shop-dialog {
    width: calc(100vw - 16px);
    max-height: calc(100dvh - 20px);
    border-radius: 10px;
  }
  .shop-heading {
    padding: 19px 17px;
    gap: 12px;
    align-items: flex-start;
  }
  .shop-heading h2 {
    font-size: 26px;
    margin: 9px 0;
  }
  .shop-heading p {
    font-size: 10px;
  }
  .shop-heading .eyebrow {
    font-size: 7px;
  }
  .shop-purse {
    padding-top: 3px;
  }
  .shop-purse > span {
    font-size: 7px;
    letter-spacing: 1px;
  }
  .shop-purse strong {
    font-size: 24px;
  }
  .shop-tabs {
    padding: 13px 13px 3px;
    gap: 5px;
  }
  .shop-tabs button {
    font-size: 10px;
    padding: 7px 13px;
    flex: 1;
  }
  .shop-grid {
    padding: 12px;
    grid-template-columns: repeat(2, 1fr);
    gap: 9px;
  }
  .item-art {
    height: 113px;
  }
  .shop-card-content {
    padding: 11px;
  }
  .shop-card .eyebrow {
    font-size: 6px;
    letter-spacing: 0.8px;
  }
  .shop-card h3 {
    font-size: 17px;
    line-height: 1.15;
    margin: 8px 0;
  }
  .shop-card p {
    font-size: 10px;
    margin-bottom: 10px;
  }
  .shop-card button {
    font-size: 10px;
    padding: 9px 8px;
  }
  .shop-footer {
    padding: 13px;
    gap: 12px;
  }
  .shop-footer p {
    font-size: 9px;
    max-width: 135px;
  }
  .shop-footer .primary {
    min-width: 160px;
    font-size: 11px;
    padding: 12px;
  }
  .connection {
    font-size: 6px;
  }
}
@media (max-height: 550px) and (min-width: 651px) {
  .game-hud {
    padding: 10px 18px 20px;
  }
  .resources {
    padding: 5px 12px;
  }
  .level-badge strong {
    font-size: 17px;
  }
  .scene-tag {
    top: 80px;
  }
  .overlay {
    padding: 70px 18px 20px;
  }
  .menu-card {
    width: 430px;
    padding: 15px 27px;
  }
  .menu-card .crest,
  .menu-tagline,
  .menu-foot {
    display: none;
  }
  .menu-card h1 {
    font-size: 35px;
    line-height: 1;
    margin: 10px 0;
  }
  .menu-card h1 br {
    display: none;
  }
  .menu-card h1 em {
    margin-left: 7px;
  }
  .name-label {
    margin-top: 13px;
  }
  .menu-card > .primary {
    margin-top: 3px;
  }
  .battle-controls {
    bottom: 18px;
    left: 18px;
    right: 18px;
  }
  .control-row {
    margin-bottom: 7px;
  }
  .arsenal-bar {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
  }
  .quiver-label,
  .aim-hint {
    display: none;
  }
  .arrow-slot {
    width: 62px;
    height: 58px;
  }
  .arrow-slot img {
    width: 29px;
    height: 29px;
  }
  .mobile-move button {
    height: 44px;
    width: 48px;
  }
  .shop-heading {
    padding: 15px 22px;
  }
  .shop-heading h2 {
    font-size: 25px;
  }
  .shop-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .item-art {
    height: 110px;
  }
  .shop-footer {
    padding: 10px 22px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}

/* Keep the level reward and continue button visible while browsing items. */
.shop-dialog {
  height: min(830px, calc(100dvh - 44px));
  max-width: none;
  overflow: hidden;
}
.shop-dialog[open] {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
}
.shop-grid {
  overflow-y: auto;
  min-height: 0;
  align-content: start;
  overscroll-behavior: contain;
  scrollbar-color: #687b52 #172f25;
}
.shop-footer {
  position: relative;
}
#shopNotice {
  color: #ecc995;
}
#shopNotice:empty {
  display: none;
}
@media (max-width: 650px) {
  .shop-dialog {
    height: calc(100dvh - 20px);
  }
}
.shop-grid {
  grid-auto-rows: minmax(295px, max-content);
}
.item-art {
  flex-shrink: 0;
}
@media (max-width: 650px) {
  .shop-grid {
    grid-auto-rows: minmax(260px, max-content);
  }
}

/* Generated artwork supplies every button surface. Labels stay live for
   accessible actions, changing prices, and party/level state. */
.primary,
.primary:hover,
.secondary,
.secondary:hover,
.shop-tabs button,
.shop-tabs button.active {
  border: 0;
  border-radius: 0;
  background: transparent url("assets/buttons/secondary.webp") center / 100%
    165% no-repeat;
  justify-content: center;
  min-height: 44px;
  padding: 12px 19px;
  color: #fff5d9;
  text-shadow: 0 1px 2px #000;
}
.primary,
.primary:hover,
.shop-tabs button.active {
  background-image: url("assets/buttons/primary.webp");
  color: #243022;
  text-shadow: 0 1px 0 #ffe8a455;
}
.icon-button,
.icon-button:hover,
.mobile-move button {
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
}
.icon-button img,
.mobile-move button img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
}
.mobile-move button {
  width: 58px;
  height: 58px;
}
#right img {
  transform: scaleX(-1);
}
.arrow-slot,
.arrow-slot.selected {
  background: transparent url("assets/buttons/frame.webp") center / 100% 100%
    no-repeat;
  border: 0;
  border-radius: 6px;
  padding: 0;
}
.arrow-slot.selected {
  outline: 2px solid #f5da86;
  outline-offset: 1px;
  box-shadow: 0 0 16px #e6c67b55;
}
.arrow-slot img {
  width: 100%;
  height: 100%;
  padding: 6px;
  margin: 0;
  object-fit: contain;
  mix-blend-mode: normal;
  border-radius: 3px;
  pointer-events: none;
}
.arrow-slot:first-child img {
  padding: 0;
}
.arrow-slot small {
  top: auto;
  bottom: 5px;
  right: 5px;
  padding: 2px 4px;
  border-radius: 3px;
  background: #102a23db;
  color: #fff2c8;
}
button:disabled {
  filter: saturate(0.35);
}
@media (hover: hover) {
  button:hover:not(:disabled) {
    filter: brightness(1.2);
  }
}
@media (max-width: 600px) {
  .shop-tabs button {
    flex: 1;
    padding: 10px 8px;
  }
  .game-tools {
    gap: 2px;
  }
}
@media (prefers-reduced-motion: reduce) {
  button {
    transition: none;
  }
}

.level-intro {
  position: absolute;
  top: clamp(145px, 22vh, 210px);
  left: 50%;
  width: min(580px, calc(100% - 24px));
  aspect-ratio: 3 / 1;
  z-index: 22;
  display: grid;
  place-items: center;
  pointer-events: none;
  transform: translateX(-50%);
  animation: level-arrival 4.2s ease both;
}
.level-intro img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 10px 18px #071d2470);
}
.level-intro strong {
  position: relative;
  color: #fff0c5;
  font:
    bold clamp(25px, 6vw, 45px) Georgia,
    serif;
  letter-spacing: 0.045em;
  text-shadow:
    0 2px 3px #071911,
    0 0 12px #071911;
}
@keyframes level-arrival {
  0% {
    opacity: 0;
    transform: translate(-50%, -10px) scale(0.94);
  }
  12%,
  78% {
    opacity: 1;
    transform: translate(-50%, 0) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -5px) scale(1);
  }
}
@media (max-height: 500px) and (orientation: landscape) {
  .level-intro {
    top: 76px;
    width: min(440px, 55vw);
  }
  .level-intro strong {
    font-size: 30px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .level-intro {
    animation: none;
  }
}
