@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@400;500;600;700;800;900&display=swap");
:root {
  font-family: "Noto Sans SC", system-ui, sans-serif;
  color: #e8e6d7;
  background: #202b29;
  font-synthesis: none;
}
.map-button {
  background: none;
  border: 0;
  padding: 0;
  color: #d4bf8e;
  font: inherit;
  letter-spacing: 1px;
}
.level-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  max-height: 49vh;
  overflow: auto;
}
.level-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  background: #eee3c5;
  border: 1px solid #c6b48e;
  border-radius: 7px;
  color: #5d6649;
  padding: 9px 2px;
}
.level-tile b {
  font-size: 17px;
}
.level-tile small {
  font-size: 9px;
}
.level-tile span {
  font-size: 8px;
}
.level-tile:disabled {
  opacity: 0.45;
  cursor: default;
}
.level-tile.current {
  border: 2px solid #597b50;
  background: #e0e5c5;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: radial-gradient(ellipse at 50% 40%, #35413a 0%, #202b29 65%);
  min-height: 100vh;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
button {
  font: inherit;
  cursor: pointer;
}
button:focus-visible,
a:focus-visible {
  outline: 3px solid #f4ca6e;
  outline-offset: 4px;
}
.app-shell {
  max-width: 1450px;
  margin: auto;
  padding: 0 56px;
}
.topbar {
  height: 98px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #ffffff12;
}
.brand {
  display: flex;
  gap: 12px;
  align-items: center;
  color: #f3f0da;
  text-decoration: none;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 2px;
}
.brand small {
  font-size: 8px;
  display: block;
  font-weight: 500;
  letter-spacing: 2px;
  margin-top: 3px;
  color: #9ba9a0;
}
.brand-mark {
  font-size: 37px;
  color: #eac46e;
}
.top-label {
  font-size: 11px;
  color: #a7b5aa;
  letter-spacing: 2px;
}
.top-label > span,
.arena-top i {
  display: inline-block;
  width: 5px;
  height: 5px;
  background: #b9d19e;
  border-radius: 50%;
  margin-right: 8px;
}
.icon-button {
  position: relative;
  background: transparent;
  border: 1px solid #ffffff24;
  color: #e3e5cf;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  font-size: 21px;
}
.sound-off {
  font-size: 13px;
  position: absolute;
  right: 4px;
  bottom: 3px;
}
.layout {
  display: grid;
  grid-template-columns: 1fr minmax(320px, 420px) 1fr;
  gap: 54px;
  align-items: center;
  padding: 32px 0 30px;
  max-width: 1230px;
  margin: auto;
}
.intro {
  padding-bottom: 12px;
}
.eyebrow {
  font-size: 10px;
  color: #d3ba7e;
  letter-spacing: 3px;
  margin-bottom: 18px;
}
h1 {
  font-size: 66px;
  line-height: 1.13;
  letter-spacing: -4px;
  margin: 0;
  font-weight: 900;
  position: relative;
  color: #f1edcf;
  max-width: 230px;
}
h1 span {
  display: block;
  color: #eac46e;
}
h1 i {
  position: absolute;
  bottom: 0;
  right: -1px;
  color: #eac46e;
  font-style: normal;
  font-size: 80px;
  transform: rotate(12deg);
}
.subtitle {
  font-size: 12px;
  color: #c7cdbb;
  margin: 22px 0;
}
.intro-line {
  width: 36px;
  height: 2px;
  background: #d9b86a;
  margin: 28px 0;
}
.description {
  font-size: 12px;
  line-height: 2.1;
  color: #9fada2;
}
.chapter {
  margin: 36px 0 22px;
  padding: 16px 0;
  border-top: 1px solid #ffffff16;
  border-bottom: 1px solid #ffffff16;
  display: flex;
  align-items: center;
  gap: 13px;
}
.chapter-icon {
  font-size: 28px;
  color: #e0bd79;
  background: #ffffff07;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 10px;
}
.chapter small {
  font-size: 10px;
  color: #9fac9e;
  display: block;
  margin-bottom: 6px;
}
.chapter strong {
  font-size: 13px;
  font-weight: 500;
}
.chapter > span {
  margin-left: auto;
  color: #a5ae9e;
}
.best {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 10px;
  color: #97a79b;
}
.best strong {
  font:
    24px ui-monospace,
    monospace;
  letter-spacing: 2px;
  color: #e1dfc8;
  margin-left: auto;
}
.desktop-hint {
  margin-top: 35px;
  display: flex;
  gap: 5px;
  align-items: center;
  white-space: nowrap;
}
.desktop-hint span {
  font-size: 9px;
  color: #94a498;
  margin-left: 4px;
}
kbd {
  background: #ffffff07;
  border: 1px solid #6e7b6c;
  border-bottom-width: 2px;
  padding: 3px 6px;
  border-radius: 4px;
  font-size: 10px;
}
.tiny-note {
  display: block;
  margin-top: 18px;
  font-size: 9px;
  letter-spacing: 1px;
  color: #728678;
}
.arena-wrap {
  width: 100%;
  max-width: 420px;
  justify-self: center;
}
.arena-top {
  display: flex;
  justify-content: space-between;
  font-size: 9px;
  letter-spacing: 1.5px;
  margin: 0 6px 10px;
  color: #b0bba5;
}
.arena-top > span:last-child {
  font-family: monospace;
  color: #d4bf8e;
}
.arena {
  position: relative;
  aspect-ratio: 480/820;
  border-radius: 20px;
  overflow: hidden;
  background: #e9c582;
  box-shadow:
    0 24px 65px #07130c80,
    0 0 0 6px #151e1b,
    0 0 0 7px #59624e;
  touch-action: none;
  isolation: isolate;
}
canvas {
  display: block;
  width: 100%;
  height: 100%;
}
.hud {
  position: absolute;
  top: 18px;
  left: 15px;
  right: 15px;
  display: flex;
  gap: 12px;
  align-items: center;
}
.pause {
  width: 33px;
  height: 34px;
  border: 2px solid #403b37;
  background: #fff1cd;
  color: #463c34;
  border-radius: 10px;
  font-size: 18px;
  font-weight: 900;
  box-shadow: 0 2px 0 #403b37;
}
.boss-info {
  flex: 1;
  min-width: 0;
}
.boss-info > div:first-child {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
  font-size: 8px;
  color: #493c36;
}
.boss-info strong {
  font-size: 11px;
}
.boss-track {
  height: 10px;
  background: #5c4b47;
  border: 2px solid #493b36;
  border-radius: 5px;
  overflow: hidden;
}
.boss-track > div {
  width: 0%;
  height: 100%;
  background: #abc780;
  transition: width 0.2s;
}
.coin {
  background: #fff2cbb8;
  border: 1px solid #ba965d;
  border-radius: 20px;
  font-size: 11px;
  padding: 6px 9px;
  color: #665033;
}
.coin span {
  color: #c78b2e;
  margin-right: 4px;
}
.battle-meta {
  position: absolute;
  top: 68px;
  left: 18px;
  right: 18px;
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: #6a5237;
  font-weight: 700;
}
.bottom-status {
  position: absolute;
  bottom: 12px;
  left: 18px;
  right: 18px;
  display: flex;
  justify-content: space-between;
  font-size: 9px;
  color: #735d3c;
  align-items: center;
}
.bottom-status b {
  font-size: 12px;
}
.bottom-status #hint {
  font-size: 9px;
}
.arena-footer {
  display: flex;
  gap: 6px;
  margin: 14px 3px 0;
  font-size: 9px;
  color: #99a890;
  align-items: center;
}
.arena-footer > span:last-child {
  margin-left: auto;
  color: #6f8474;
}
.key-dot {
  height: 5px;
  width: 5px;
  background: #d4b86f;
  border-radius: 50%;
}
.panel-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
}
.panel-title small {
  font-size: 8px;
  color: #7f9584;
  letter-spacing: 1px;
}
.weapon-card {
  margin-top: 20px;
  background: #ffffff05;
  border: 1px solid #ffffff10;
  border-radius: 12px;
  padding: 18px 12px;
  display: flex;
  align-items: center;
  gap: 15px;
}
.carrot-art {
  font-size: 39px;
  filter: drop-shadow(0 4px 0 #0003);
  transform: rotate(-12deg);
}
.pill {
  font-size: 8px;
  padding: 3px 6px;
  color: #cfb479;
  background: #cdb36d16;
  border-radius: 3px;
}
.weapon-card h2 {
  font-size: 14px;
  margin: 8px 0;
}
.weapon-card p {
  font-size: 9px;
  color: #94a58f;
  margin: 0;
  white-space: nowrap;
}
.skills-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 23px;
}
.skills-title h3 {
  font-size: 12px;
  font-weight: 500;
}
.skills-title > span {
  font-size: 9px;
  color: #7e947f;
}
.skills {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
}
.skill-slot {
  position: relative;
  height: 67px;
  border: 1px dashed #6d806243;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: #6d8062;
  font-size: 17px;
  background: #ffffff02;
}
.skill-slot small {
  font-size: 8px;
}
.skill-slot.active {
  border: 1px solid #b7c68c50;
  background: #a8bb7210;
  color: #d9dcac;
}
.skill-slot b {
  position: absolute;
  right: 5px;
  top: 3px;
  font-size: 8px;
  color: #d7bf7f;
}
.field-guide {
  position: relative;
  border-top: 1px solid #ffffff16;
  margin-top: 29px;
  padding-top: 22px;
}
.guide-label {
  font-size: 8px;
  letter-spacing: 2px;
  color: #b7a571;
}
.guide-chest {
  width: 64px;
  height: 48px;
  margin: 24px auto 17px;
  border: 3px solid #302d29;
  border-radius: 13px 13px 7px 7px;
  background: linear-gradient(#d9944e 0 37%, #866043 38% 48%, #bc7743 49%);
  box-shadow:
    inset 8px 0 #debb74,
    inset -8px 0 #debb74,
    0 6px 0 #0002;
  transform: rotate(-9deg);
  color: transparent;
}
.guide-chest span {
  display: block;
  color: #ffdb7b;
  width: 18px;
  height: 23px;
  background: #9e6a34;
  margin: -8px auto;
  border: 2px solid #e7bf65;
  font-size: 14px;
  text-align: center;
  border-radius: 3px;
}
.field-guide h3 {
  font-size: 11px;
  font-weight: 500;
}
.field-guide p {
  font-size: 10px;
  line-height: 1.9;
  color: #94a58e;
}
.guide-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 16px;
}
.guide-tags span {
  font-size: 8px;
  padding: 4px 7px;
  border-radius: 4px;
  background: #ffffff06;
  color: #a7b49c;
}
.how-to {
  margin-top: 24px;
  padding: 12px 0;
  border: 0;
  border-bottom: 1px solid #ffffff20;
  background: none;
  color: #b1bba2;
  width: 100%;
  text-align: left;
  font-size: 11px;
}
.how-to span {
  float: right;
}
.page-footer {
  border-top: 1px solid #ffffff12;
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  color: #6b806f;
  font-size: 8px;
  letter-spacing: 1.5px;
}
.overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #35291728;
  padding: 25px;
  z-index: 3;
}
.overlay:empty {
  display: none;
}
.modal {
  width: 100%;
  text-align: center;
  background: #fff4d9;
  border: 2px solid #4f4437;
  border-radius: 20px;
  box-shadow:
    0 6px 0 #4f4437,
    0 15px 35px #503c3425;
  padding: 25px 22px;
  color: #493f33;
  animation: pop 0.2s ease-out;
}
.modal.welcome {
  align-self: flex-end;
  margin-bottom: 82px;
  background: #fff4d9f5;
}
.modal .overline {
  font-size: 9px;
  letter-spacing: 3px;
  color: #a48a58;
}
.modal h2 {
  font-size: 26px;
  margin: 9px 0 10px;
  letter-spacing: 1px;
  font-weight: 900;
}
.modal p {
  font-size: 11px;
  line-height: 1.9;
  color: #8a7558;
}
.primary {
  background: #52764c;
  border: 2px solid #354b32;
  border-radius: 10px;
  box-shadow: 0 3px 0 #354b32;
  color: #fff4d1;
  width: 100%;
  padding: 13px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  margin: 12px 0 7px;
  transition: transform 0.15s;
}
.primary:hover {
  background: #648d5d;
  transform: translateY(-1px);
}
.secondary {
  background: none;
  border: 0;
  color: #807258;
  font-size: 11px;
  padding: 10px;
}
.choice {
  display: flex;
  gap: 13px;
  align-items: center;
  text-align: left;
  width: 100%;
  margin-top: 11px;
  padding: 12px;
  background: #f5e8c8;
  border: 1px solid #d6bd8b;
  border-radius: 10px;
  color: #524531;
}
.choice:hover {
  background: #e8eacb;
  border-color: #76936a;
  transform: translateY(-1px);
}
.choice-icon {
  width: 36px;
  height: 36px;
  background: #fff6df;
  display: grid;
  place-items: center;
  border-radius: 9px;
  font-size: 23px;
}
.choice strong {
  font-size: 13px;
}
.choice small {
  display: block;
  font-size: 10px;
  color: #8c7a60;
  margin-top: 4px;
}
.choice em {
  font-size: 9px;
  color: #789160;
  font-style: normal;
  margin-left: auto;
  white-space: nowrap;
}
.toast {
  position: absolute;
  top: 45%;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 9px 18px;
  border-radius: 30px;
  background: #344a39eb;
  color: #ffe7a0;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.25s;
  pointer-events: none;
  z-index: 4;
}
.toast.show {
  opacity: 1;
}
@keyframes pop {
  from {
    transform: scale(0.95);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}
@media (min-width: 1500px) {
  .layout {
    gap: 75px;
    grid-template-columns: 1fr 440px 1fr;
  }
  .arena-wrap {
    max-width: 440px;
  }
}
@media (max-width: 1100px) {
  .app-shell {
    padding: 0 28px;
  }
  .layout {
    gap: 28px;
    grid-template-columns: 1fr minmax(300px, 390px) 1fr;
  }
  h1 {
    font-size: 54px;
    max-width: 195px;
  }
  h1 i {
    font-size: 65px;
  }
  .weapon-card {
    gap: 8px;
    padding: 14px 8px;
  }
  .carrot-art {
    font-size: 27px;
  }
  .weapon-card p {
    white-space: normal;
  }
  .desktop-hint {
    flex-wrap: wrap;
  }
}
@media (max-width: 850px) {
  .layout {
    grid-template-columns: 1fr 390px;
    gap: 38px;
    max-width: 700px;
  }
  .sidebar {
    display: none;
  }
  .page-footer > span:last-child {
    display: none;
  }
}
@media (max-width: 620px) {
  .app-shell {
    padding: 0 14px;
  }
  .topbar {
    height: 58px;
    border: 0;
  }
  .brand {
    font-size: 12px;
  }
  .brand-mark {
    font-size: 28px;
  }
  .brand small {
    font-size: 6px;
  }
  .top-label {
    display: none;
  }
  .layout {
    display: block;
    padding: 4px 0 15px;
  }
  .intro {
    display: none;
  }
  .arena-wrap {
    max-width: min(440px, calc((100dvh - 130px) * 480 / 820));
    min-width: 275px;
  }
  .arena {
    border-radius: 16px;
  }
  .arena-top {
    font-size: 8px;
    margin-bottom: 8px;
  }
  .arena-footer {
    font-size: 8px;
  }
  .page-footer {
    display: none;
  }
  .modal {
    padding: 19px 17px;
  }
  .modal h2 {
    font-size: 23px;
  }
  .hud {
    top: 13px;
    left: 12px;
    right: 12px;
    gap: 9px;
  }
  .boss-info strong {
    font-size: 9px;
  }
  .bottom-status {
    left: 12px;
    right: 12px;
    font-size: 8px;
  }
  .coin {
    font-size: 9px;
  }
  .modal.welcome {
    margin-bottom: 63px;
  }
  .battle-meta {
    top: 59px;
  }
  .choice {
    padding: 9px;
  }
  .modal p {
    font-size: 10px;
  }
}
