/*! tailwindcss v4.2.1 | MIT License | https://tailwindcss.com */
@layer properties;
@layer theme, base, components, utilities;
@layer theme {
  :root, :host {
    --font-sans: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji",
      "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono",
      "Courier New", monospace;
    --spacing: 0.25rem;
    --default-transition-duration: 150ms;
    --default-transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    --default-font-family: var(--font-sans);
    --default-mono-font-family: var(--font-mono);
  }
}
@layer base {
  *,
  ::after,
  ::before,
  ::backdrop,
  ::file-selector-button {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    border: 0 solid;
  }
  html,
  :host {
    line-height: 1.5;
    -webkit-text-size-adjust: 100%;
    tab-size: 4;
    font-family: var(--default-font-family, ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji");
    font-feature-settings: var(--default-font-feature-settings, normal);
    font-variation-settings: var(--default-font-variation-settings, normal);
    -webkit-tap-highlight-color: transparent;
  }
  hr {
    height: 0;
    color: inherit;
    border-top-width: 1px;
  }
  abbr:where([title]) {
    -webkit-text-decoration: underline dotted;
    text-decoration: underline dotted;
  }
  h1,
  h2,
  h3,
  h4,
  h5,
  h6 {
    font-size: inherit;
    font-weight: inherit;
  }
  a {
    color: inherit;
    -webkit-text-decoration: inherit;
    text-decoration: inherit;
  }
  b,
  strong {
    font-weight: bolder;
  }
  code,
  kbd,
  samp,
  pre {
    font-family: var(--default-mono-font-family, ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace);
    font-feature-settings: var(--default-mono-font-feature-settings, normal);
    font-variation-settings: var(--default-mono-font-variation-settings, normal);
    font-size: 1em;
  }
  small {
    font-size: 80%;
  }
  sub,
  sup {
    font-size: 75%;
    line-height: 0;
    position: relative;
    vertical-align: baseline;
  }
  sub {
    bottom: -0.25em;
  }
  sup {
    top: -0.5em;
  }
  table {
    text-indent: 0;
    border-color: inherit;
    border-collapse: collapse;
  }
  :-moz-focusring {
    outline: auto;
  }
  progress {
    vertical-align: baseline;
  }
  summary {
    display: list-item;
  }
  ol,
  ul,
  menu {
    list-style: none;
  }
  img,
  svg,
  video,
  canvas,
  audio,
  iframe,
  embed,
  object {
    display: block;
    vertical-align: middle;
  }
  img,
  video {
    max-width: 100%;
    height: auto;
  }
  button,
  input,
  select,
  optgroup,
  textarea,
  ::file-selector-button {
    font: inherit;
    font-feature-settings: inherit;
    font-variation-settings: inherit;
    letter-spacing: inherit;
    color: inherit;
    border-radius: 0;
    background-color: transparent;
    opacity: 1;
  }
  :where(select:is([multiple], [size])) optgroup {
    font-weight: bolder;
  }
  :where(select:is([multiple], [size])) optgroup option {
    padding-inline-start: 20px;
  }
  ::file-selector-button {
    margin-inline-end: 4px;
  }
  ::placeholder {
    opacity: 1;
  }
  @supports (not (-webkit-appearance: -apple-pay-button))  or
    (contain-intrinsic-size: 1px) {
    ::placeholder {
      color: currentcolor;
      @supports (color: color-mix(in lab, red, red)) {
        color: color-mix(in oklab, currentcolor 50%, transparent);
      }
    }
  }
  textarea {
    resize: vertical;
  }
  ::-webkit-search-decoration {
    -webkit-appearance: none;
  }
  ::-webkit-date-and-time-value {
    min-height: 1lh;
    text-align: inherit;
  }
  ::-webkit-datetime-edit {
    display: inline-flex;
  }
  ::-webkit-datetime-edit-fields-wrapper {
    padding: 0;
  }
  ::-webkit-datetime-edit,
  ::-webkit-datetime-edit-year-field,
  ::-webkit-datetime-edit-month-field,
  ::-webkit-datetime-edit-day-field,
  ::-webkit-datetime-edit-hour-field,
  ::-webkit-datetime-edit-minute-field,
  ::-webkit-datetime-edit-second-field,
  ::-webkit-datetime-edit-millisecond-field,
  ::-webkit-datetime-edit-meridiem-field {
    padding-block: 0;
  }
  ::-webkit-calendar-picker-indicator {
    line-height: 1;
  }
  :-moz-ui-invalid {
    box-shadow: none;
  }
  button,
  input:where([type="button"], [type="reset"], [type="submit"]),
  ::file-selector-button {
    appearance: button;
  }
  ::-webkit-inner-spin-button,
  ::-webkit-outer-spin-button {
    height: auto;
  }
  [hidden]:where(:not([hidden="until-found"])) {
    display: none !important;
  }
}
@layer utilities {
  .visible {
    visibility: visible;
  }
  .absolute {
    position: absolute;
  }
  .fixed {
    position: fixed;
  }
  .static {
    position: static;
  }
  .sticky {
    position: sticky;
  }
  .start {
    inset-inline-start: var(--spacing);
  }
  .end {
    inset-inline-end: var(--spacing);
  }
  .block {
    display: block;
  }
  .flex {
    display: flex;
  }
  .hidden {
    display: none;
  }
  .inline {
    display: inline;
  }
  .inline-block {
    display: inline-block;
  }
  .inline-flex {
    display: inline-flex;
  }
  .table {
    display: table;
  }
  .resize {
    resize: both;
  }
  .italic {
    font-style: italic;
  }
  .blur {
    --tw-blur: blur(8px);
    filter: var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,);
  }
  .transition {
    transition-property: color, background-color, border-color, outline-color, text-decoration-color, fill, stroke, --tw-gradient-from, --tw-gradient-via, --tw-gradient-to, opacity, box-shadow, transform, translate, scale, rotate, filter, -webkit-backdrop-filter, backdrop-filter, display, content-visibility, overlay, pointer-events;
    transition-timing-function: var(--tw-ease, var(--default-transition-timing-function));
    transition-duration: var(--tw-duration, var(--default-transition-duration));
  }
}
:root {
  --ink: #f8f7ff;
  --muted: #aaa9bc;
  --soft: #d2d0dc;
  --panel: #171625;
  --panel-2: #201f31;
  --line: #39374f;
  --acid: #c8ff52;
  --danger: #ff715b;
  --focus: #8c90ff;
}
* {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
html,body {
  margin: 0;
  min-height: 100%;
  background: #090910;
  color: var(--ink);
  font: 16px/1.45 Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
}
button,input {
  font: inherit;
}
button {
  -webkit-tap-highlight-color: transparent;
}
.ui-icon {
  width: 1.15em;
  height: 1.15em;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.game-shell {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 16px;
  background: #090910;
}
.game-card {
  width: min(100%,440px);
  height: min(900px,calc(100svh - 32px));
  min-height: 680px;
  display: flex;
  flex-direction: column;
  background: #0e0e18;
  border: 1px solid #2b293e;
  box-shadow: 0 28px 90px rgba(0,0,0,.58);
  overflow-y: auto;
  overflow-x: hidden;
}
.topbar {
  position: relative;
  z-index: 4;
  display: grid;
  grid-template-columns: 74px minmax(0,1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 17px 18px 15px;
  border-bottom: 1px solid var(--line);
  background: #11101c;
}
.top-left-controls {
  display: flex;
  gap: 8px;
  align-items: center;
}
.menu-button,.help-button {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid #4b4963;
  background: #1d1c2b;
  color: var(--ink);
  cursor: pointer;
  font-size: 15px;
  font-weight: 900;
}
.help-button {
  border-radius: 50%;
  font-size: 16px;
}
.menu-button:hover,.help-button:hover,.menu-button:focus-visible,.help-button:focus-visible {
  border-color: var(--acid);
  color: var(--acid);
  outline: none;
}
.help-wrap {
  position: relative;
}
.help-tooltip {
  position: absolute;
  left: 0;
  top: 42px;
  width: 246px;
  display: none;
  padding: 12px 14px;
  border: 1px solid #55526f;
  background: #1b1a29;
  box-shadow: 0 14px 34px rgba(0,0,0,.45);
  text-align: left;
}
.help-tooltip strong,.help-tooltip span {
  display: block;
}
.help-tooltip strong {
  color: var(--acid);
  font-size: 13px;
}
.help-tooltip span {
  margin-top: 4px;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.5;
}
.help-wrap:hover .help-tooltip,.help-wrap:focus-within .help-tooltip {
  display: block;
}
.title-block {
  min-width: 0;
  text-align: left;
}
.eyebrow,.status-label,.score-block span,.turn-block span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: .07em;
}
h1 {
  margin: 2px 0 0;
  font-size: 23px;
  line-height: 1.1;
  font-weight: 950;
  letter-spacing: -.035em;
  white-space: nowrap;
}
.score-block {
  min-width: 56px;
  text-align: right;
}
.score-block strong {
  color: var(--acid);
  font: 850 28px/1 ui-monospace,SFMono-Regular,Consolas,monospace;
}
.battle-right-controls {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}
.shop-button {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid #4b4963;
  background: #1d1c2b;
  color: var(--ink);
  cursor: pointer;
  font-size: 16px;
}
.shop-button:hover,.shop-button:focus-visible {
  border-color: var(--acid);
  outline: none;
}
.enemy-panel {
  position: relative;
  padding: 20px 22px 16px;
  text-align: center;
}
.poison-menu {
  position: absolute;
  z-index: 3;
  left: 18px;
  top: 18px;
  text-align: left;
}
.poison-button {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid #514e68;
  border-radius: 50%;
  background: #1c1b29;
  color: var(--acid);
  cursor: pointer;
  font-size: 18px;
}
.poison-button,.ultimate-icon {
  font-family: "Segoe UI Symbol","Noto Sans Symbols 2",sans-serif;
}
.poison-button:hover,.poison-button:focus-visible {
  border-color: var(--acid);
  outline: none;
}
.poison-popover {
  position: absolute;
  left: 0;
  top: 46px;
  width: 174px;
  padding: 11px 12px;
  border: 1px solid #55526f;
  background: #1b1a29;
  box-shadow: 0 12px 30px rgba(0,0,0,.44);
}
.poison-popover span,.poison-popover strong,.poison-popover small {
  display: block;
}
.poison-popover span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}
.poison-popover strong {
  margin: 1px 0;
  color: var(--acid);
  font: 900 27px ui-monospace,SFMono-Regular,Consolas,monospace;
}
.poison-popover small {
  color: var(--soft);
  font-size: 12px;
}
.damage-breakdown {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}
.damage-breakdown small {
  display: flex;
  justify-content: space-between;
  gap: 5px;
}
.damage-breakdown b {
  color: var(--ink);
  font-family: ui-monospace,SFMono-Regular,Consolas,monospace;
}
.enemy-mark {
  width: 64px;
  height: 64px;
  margin: 0 auto 10px;
  display: grid;
  place-items: center;
  border: 2px solid #58557b;
  border-radius: 50%;
  color: var(--acid);
  font-size: 34px;
  font-weight: 900;
  box-shadow: inset 0 0 26px rgba(200,255,82,.06),0 0 22px rgba(200,255,82,.07);
}
.enemy-mark.burst {
  border-color: var(--danger);
  color: var(--danger);
}
.enemy-hp {
  margin: 3px 0 12px;
}
.enemy-hp strong {
  font: 900 56px/.95 ui-monospace,SFMono-Regular,Consolas,monospace;
  letter-spacing: -.07em;
}
.enemy-hp span {
  margin-left: 7px;
  color: var(--muted);
  font: 650 18px ui-monospace,SFMono-Regular,Consolas,monospace;
}
.hp-track {
  height: 7px;
  background: #302e40;
  overflow: hidden;
}
.hp-track span {
  display: block;
  height: 100%;
  transition: width .18s ease;
}
.enemy-track span {
  background: var(--danger);
}
.player-track span {
  background: var(--acid);
}
.forecast-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 7px 14px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 14px;
}
.forecast-row strong {
  color: var(--ink);
}
.ultimate-icon {
  color: var(--acid);
  font-weight: 900;
}
.intel-strip {
  margin: 0 18px;
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  border: 1px solid var(--line);
  background: #151421;
}
.intel-strip>div {
  min-width: 0;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
}
.intel-strip>div:nth-child(odd) {
  border-right: 1px solid var(--line);
}
.intel-strip>div:last-child {
  grid-column: 1/-1;
  border-bottom: 0;
  border-right: 0;
}
.intel-strip span,.intel-strip strong {
  display: block;
  overflow-wrap: anywhere;
}
.intel-strip span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: .06em;
}
.intel-strip span b {
  margin-left: 4px;
  color: var(--acid);
  font-size: 13px;
}
.intel-strip strong {
  margin-top: 2px;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.35;
}
.player-panel {
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  align-items: center;
  column-gap: 18px;
  row-gap: 7px;
  margin: 14px 18px 0;
  padding: 13px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.player-vitals {
  min-width: 0;
}
.player-hp {
  display: block;
  margin-top: 3px;
  font: 850 20px ui-monospace,SFMono-Regular,Consolas,monospace;
}
.player-panel>.hp-track {
  grid-column: 1/-1;
  width: 100%;
}
.turn-block {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 9px;
}
.turn-block span {
  line-height: 1.25;
  text-align: right;
  white-space: nowrap;
}
.turn-block strong {
  color: var(--acid);
  font: 900 34px ui-monospace,SFMono-Regular,Consolas,monospace;
}
.action-panel {
  padding: 16px 18px 18px;
  flex: 1;
}
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 10px;
  margin-bottom: 11px;
}
.section-heading span {
  font-size: 17px;
  font-weight: 850;
}
.section-heading small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}
.section-heading .min-hit {
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
  white-space: nowrap;
}
.attack-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
}
.attack-button {
  min-width: 0;
  min-height: 88px;
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: 1fr auto;
  align-items: center;
  column-gap: 10px;
  padding: 12px 14px;
  border: 1px solid #46435e;
  background: var(--panel-2);
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}
.attack-button>span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}
.attack-button kbd {
  margin-left: 3px;
  padding: 1px 4px;
  border: 1px solid #514e68;
  color: var(--soft);
  font-size: 10px;
}
.attack-button>strong {
  justify-self: end;
  font: 900 31px/1 ui-monospace,SFMono-Regular,Consolas,monospace;
}
.attack-button>small {
  grid-column: 1/-1;
  min-width: 0;
  color: var(--soft);
  font-size: 13px;
  white-space: normal;
}
.attack-button>small b {
  color: var(--acid);
}
.attack-button:hover,.attack-button:focus-visible {
  border-color: var(--acid);
  outline: none;
  background: #292a37;
}
.attack-button:active {
  transform: translateY(1px);
}
.attack-button:disabled {
  cursor: default;
  opacity: .56;
}
.attack-button.skip>strong {
  color: var(--muted);
}
.attack-button.hint-safe {
  border-color: var(--acid);
  box-shadow: inset 4px 0 0 var(--acid);
}
.inventory-bar {
  position: sticky;
  bottom: 0;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  border-top: 1px solid var(--line);
  background: var(--panel);
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
}
.inventory-bar button {
  min-width: 0;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 6px;
  padding: 7px 8px;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: 13px;
  text-align: left;
  cursor: pointer;
}
.inventory-bar button+button {
  border-left: 1px solid var(--line);
}
.inventory-bar button>span:first-child {
  color: var(--acid);
  font-size: 16px;
}
.inventory-bar button:disabled {
  opacity: .4;
  cursor: default;
}
.inventory-bar b {
  display: inline-grid;
  place-items: center;
  min-width: 23px;
  height: 23px;
  background: #2d2b3e;
  color: var(--ink);
  font-size: 12px;
}
.best-score {
  grid-column: 1/-1;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 5px 8px 0;
  border-top: 1px solid #242235;
  color: var(--muted);
  font-size: 11px;
}
.best-score small {
  font-size: 11px;
}
.modal-backdrop {
  position: fixed;
  z-index: 20;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(4,4,9,.82);
}
.pause-backdrop {
  z-index: 30;
}
.confirm-backdrop {
  z-index: 70;
}
.modal {
  position: relative;
  width: min(100%,410px);
  max-height: calc(100svh - 36px);
  overflow: auto;
  padding: 24px;
  border: 1px solid #504d69;
  background: #151421;
  box-shadow: 0 26px 80px rgba(0,0,0,.62);
}
.modal-kicker {
  color: var(--acid);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.modal h2 {
  margin: 5px 0 10px;
  font-size: 30px;
  line-height: 1.1;
  letter-spacing: -.045em;
}
.modal h2.brand-title {
  margin-top: 8px;
  color: var(--acid);
  font-size: 42px;
  letter-spacing: -.055em;
}
.intro-tagline {
  margin: 4px 0 6px;
  color: var(--ink) !important;
  font-size: 22px !important;
  font-weight: 850;
  letter-spacing: -.03em;
}
.home-backdrop {
  background: #090910;
}
.modal h2.home-title {
  margin: 8px 0 2px;
  color: var(--acid);
  font-size: 50px;
  font-weight: 950;
  letter-spacing: -.06em;
}
.home-menu-list {
  display: grid;
  gap: 9px;
  margin-top: 22px;
}
.home-menu-list .primary-button,.home-menu-list .secondary-button {
  margin: 0;
  transition: border-color .12s ease,outline-color .12s ease,box-shadow .12s ease;
}
.home-menu-list .primary-button:hover,.home-menu-list .primary-button:focus-visible,.home-menu-list .secondary-button:hover,.home-menu-list .secondary-button:focus-visible {
  border-color: var(--acid);
  outline: 2px solid var(--acid);
  outline-offset: 2px;
  box-shadow: 0 0 0 1px var(--acid);
}
.danger-home-button {
  border-color: #71423f;
  color: #ff9a8c;
}
.home-corner-controls {
  position: fixed;
  z-index: 24;
  top: max(18px,env(safe-area-inset-top));
  display: flex;
  gap: 8px;
}
.home-corner-left {
  left: max(18px,env(safe-area-inset-left));
}
.home-corner-right {
  right: max(18px,env(safe-area-inset-right));
}
.home-corner-button {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid #56536c;
  background: #1a1927;
  color: var(--ink);
  cursor: pointer;
  font-size: 19px;
}
.home-corner-button:hover,.home-corner-button:focus-visible {
  border-color: var(--acid);
  outline: none;
}
.home-corner-button.is-off {
  color: var(--muted);
  border-color: #49475d;
}
.modal p,.modal li {
  color: var(--soft);
  font-size: 15px;
  line-height: 1.6;
}
.modal ul {
  margin: 14px 0 20px;
  padding-left: 21px;
}
.rule-equation {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin: 20px 0;
  padding: 16px 10px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.rule-equation strong {
  color: var(--acid);
}
.primary-button,.secondary-button {
  width: 100%;
  min-height: 50px;
  margin-top: 10px;
  border: 1px solid var(--acid);
  background: var(--acid);
  color: var(--accent-ink,#11120c);
  font-weight: 900;
  cursor: pointer;
}
.secondary-button {
  border-color: #56536c;
  background: transparent;
  color: var(--ink);
}
.result-score {
  display: flex;
  justify-content: space-between;
  align-items: end;
  margin: 20px 0;
  padding: 16px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.result-score span {
  color: var(--muted);
  font-size: 14px;
}
.result-score strong {
  color: var(--acid);
  font: 900 42px/1 ui-monospace,SFMono-Regular,Consolas,monospace;
}
.pause-modal {
  padding: 22px;
}
.pause-list {
  display: grid;
  gap: 8px;
  margin-top: 18px;
}
.pause-action,.volume-row {
  width: 100%;
  min-height: 52px;
  display: grid;
  grid-template-columns: 28px 1fr auto;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid #45425b;
  background: #201f2e;
  color: var(--ink);
  text-align: left;
}
.pause-action {
  cursor: pointer;
  transition: border-color .12s ease,outline-color .12s ease,box-shadow .12s ease;
}
.pause-action span,.volume-row>span {
  color: var(--acid);
  font-size: 18px;
  text-align: center;
}
.pause-action strong,.volume-row strong {
  font-size: 16px;
}
.pause-action i {
  color: var(--muted);
  font-size: 25px;
  font-style: normal;
}
.pause-action:hover,.pause-action:focus-visible {
  border-color: var(--acid);
  outline: 2px solid var(--acid);
  outline-offset: 2px;
  box-shadow: 0 0 0 1px var(--acid);
}
.primary-pause {
  background: var(--acid);
  color: var(--accent-ink,#12130d);
  border-color: var(--acid);
}
.primary-pause span {
  color: var(--accent-ink,#12130d);
}
.danger-action {
  border-color: #71423f;
  color: #ff9a8c;
}
.volume-row {
  grid-template-columns: 28px 55px 1fr 42px;
}
.volume-row input {
  width: 100%;
  accent-color: var(--acid);
}
.volume-row b {
  color: var(--muted);
  font-size: 12px;
  text-align: right;
}
.back-button {
  position: absolute;
  top: 18px;
  left: 22px;
  margin: 0;
  padding: 4px 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}
.back-button + .modal-kicker {
  display: block;
  min-height: 28px;
  padding-left: 96px;
  text-align: right;
}
.confirm-modal {
  width: min(100%,380px);
}
.confirm-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 20px;
}
.confirm-actions .primary-button,.confirm-actions .secondary-button {
  margin: 0;
}
.setting-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
}
.setting-row span,.setting-row strong,.setting-row small {
  display: block;
}
.setting-row strong {
  font-size: 16px;
}
.setting-row small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}
.setting-row input {
  width: 22px;
  height: 22px;
  accent-color: var(--acid);
}
.settings-groups {
  display: grid;
  gap: 9px;
  margin-top: 16px;
}
.settings-group {
  border: 1px solid var(--line);
  background: #1d1c2b;
}
.settings-group>summary {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 4px 12px;
  padding: 13px 14px;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
}
.settings-group>summary::-webkit-details-marker {
  display: none;
}
.settings-group>summary::after {
  grid-column: 2;
  grid-row: 1/3;
  content: '⌄';
  color: var(--acid);
  font-size: 19px;
  transition: transform .15s ease;
}
.settings-group[open]>summary::after {
  transform: rotate(180deg);
}
.settings-group>summary span {
  font-size: 15px;
  font-weight: 850;
}
.settings-group>summary small {
  color: var(--muted);
  font-size: 11px;
}
.settings-group-body {
  display: grid;
  gap: 13px;
  padding: 13px 14px 15px;
  border-top: 1px solid var(--line);
}
.slider-setting {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px 12px;
  align-items: center;
}
.slider-setting span,.select-setting span,.hue-setting span {
  min-width: 0;
}
.slider-setting strong,.slider-setting small,.select-setting strong,.select-setting small,.hue-setting strong,.hue-setting small {
  display: block;
}
.slider-setting small,.select-setting small,.hue-setting small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
}
.slider-setting input {
  grid-column: 1/-1;
  width: 100%;
  accent-color: var(--acid);
}
.slider-setting b {
  color: var(--acid);
  font-size: 12px;
}
.select-setting,.hue-setting {
  display: grid;
  gap: 8px;
}
.select-setting select,.color-setting input[type='text'] {
  width: 100%;
  min-height: 40px;
  padding: 0 10px;
  border: 1px solid #56536c;
  background: #13121e;
  color: var(--ink);
}
.hue-slider {
  width: 100%;
  accent-color: var(--acid);
}
.hue-slider::-webkit-slider-runnable-track {
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg,#ff4c4c,#ffd84c,#70ff4c,#4cfff0,#4c70ff,#d84cff,#ff4c70);
}
.hue-slider::-moz-range-track {
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg,#ff4c4c,#ffd84c,#70ff4c,#4cfff0,#4c70ff,#d84cff,#ff4c70);
}
.color-setting {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 10px;
}
.color-setting label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 11px;
}
.color-setting input[type='color'] {
  width: 100%;
  height: 40px;
  padding: 3px;
  border: 1px solid #56536c;
  background: #13121e;
}
.settings-note {
  margin: 0 !important;
  color: var(--muted) !important;
  font-size: 11px !important;
  line-height: 1.5 !important;
}
.settings-mini-button {
  min-height: 40px;
  border: 1px solid var(--acid);
  background: transparent;
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}
.settings-mini-button:hover,.settings-mini-button:focus-visible {
  background: var(--acid);
  color: var(--accent-ink,#11120c);
  outline: none;
}
.compact-settings {
  gap: 0;
}
.compact-settings .setting-row:first-child {
  border-top: 0;
}
.theme-day {
  --ink: #1a1a1a;
  --muted: #5d5d5d;
  --soft: #464646;
  --panel: #f3f3f3;
  --panel-2: #f9f9f9;
  --line: #d8d8d8;
  --danger: #d94f3d;
  background: #f3f3f3;
  color: var(--ink);
}
.theme-day .game-card,.theme-day .modal,.theme-day .help-tooltip,.theme-day .poison-popover,.theme-day .reward-popup,.theme-day .loading-card {
  background: #fff;
  border-color: #d8d8d8;
  box-shadow: 0 22px 70px rgba(0,0,0,.14);
}
.theme-day .topbar,.theme-day .inventory-bar {
  background: #fff;
}
.theme-day .home-backdrop {
  background: #f3f3f3;
}
.theme-day .modal-backdrop:not(.home-backdrop) {
  background: rgba(243,243,243,.9);
}
.theme-day .menu-button,.theme-day .help-button,.theme-day .shop-button,.theme-day .poison-button,.theme-day .home-corner-button,.theme-day .pause-action,.theme-day .volume-row,.theme-day .settings-group {
  background: #f9f9f9;
  border-color: #d8d8d8;
}
.theme-day .intel-strip,.theme-day .shop-item {
  background: #f9f9f9;
}
.theme-day .attack-button {
  background: #f9f9f9;
  border-color: #d8d8d8;
}
.theme-day .attack-button:hover,.theme-day .attack-button:focus-visible {
  background: #ededed;
}
.theme-day .hp-track {
  background: #dedede;
}
.theme-day .select-setting select,.theme-day .color-setting input[type='text'],.theme-day .color-setting input[type='color'] {
  background: #fff;
  border-color: #d8d8d8;
}
.theme-day .inventory-bar b {
  background: #ececec;
}
.theme-day .toast {
  background: #fff;
  border-color: #d8d8d8;
  box-shadow: 0 12px 35px rgba(0,0,0,.14);
}
.theme-day .home-menu-list .primary-button:hover,.theme-day .home-menu-list .primary-button:focus-visible,.theme-day .home-menu-list .secondary-button:hover,.theme-day .home-menu-list .secondary-button:focus-visible,.theme-day .pause-action:hover,.theme-day .pause-action:focus-visible {
  border-color: var(--acid);
  outline-color: var(--acid);
  box-shadow: 0 0 0 1px var(--acid);
}
.leaderboard-list {
  margin: 15px 0 0;
  padding: 0;
  list-style: none;
}
.leaderboard-list li {
  display: grid;
  grid-template-columns: 32px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 11px 0;
  border-top: 1px solid var(--line);
}
.leaderboard-list li>b {
  color: var(--muted);
}
.leaderboard-list li>strong {
  color: var(--acid);
  font: 850 21px ui-monospace,SFMono-Regular,Consolas,monospace;
}
.leaderboard-list li>span {
  color: var(--muted);
  font-size: 13px;
}
.empty-board {
  padding: 22px 0;
  text-align: center;
}
.shop-backdrop {
  z-index: 50;
}
.shop-modal {
  position: relative;
  width: min(100%,440px);
}
.shop-modal h2 {
  max-width: 360px;
  margin-top: 8px;
  font-size: 23px;
  line-height: 1.38;
  letter-spacing: -.035em;
}
.shop-close {
  position: absolute;
  right: 16px;
  top: 14px;
  width: 34px;
  height: 34px;
  border: 1px solid #56536c;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font-size: 23px;
}
.shop-close:hover,.shop-close:focus-visible {
  border-color: var(--acid);
  outline: none;
}
.shop-list {
  display: grid;
  gap: 10px;
  margin-top: 22px;
}
.shop-item {
  min-width: 0;
  display: grid;
  grid-template-columns: 38px minmax(0,1fr) auto;
  align-items: center;
  gap: 11px;
  padding: 14px 12px;
  border: 1px solid var(--line);
  background: #201f2e;
}
.shop-item-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid #55526d;
  color: var(--acid);
  font-size: 18px;
}
.shop-item strong,.shop-item small {
  display: block;
}
.shop-item strong {
  font-size: 16px;
}
.shop-item small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}
.shop-item button {
  min-height: 38px;
  padding: 0 10px;
  border: 1px solid var(--acid);
  background: transparent;
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
  cursor: pointer;
}
.shop-item button:hover,.shop-item button:focus-visible {
  background: var(--acid);
  color: var(--accent-ink,#11120c);
  outline: none;
}
.shop-note {
  margin: 14px 0 0;
  color: var(--muted) !important;
  font-size: 12px !important;
  text-align: center;
}
.toast {
  position: fixed;
  z-index: 40;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  width: min(calc(100% - 32px),390px);
  padding: 12px 16px;
  border: 1px solid #696580;
  background: #252337;
  color: var(--ink);
  font-size: 14px;
  text-align: center;
  box-shadow: 0 12px 35px rgba(0,0,0,.45);
}
.reward-popup {
  position: fixed;
  z-index: 60;
  left: 50%;
  top: 50%;
  transform: translate(-50%,-50%);
  width: min(calc(100% - 40px),330px);
  padding: 20px 22px;
  border: 2px solid var(--acid);
  background: #1b1a29;
  text-align: center;
  box-shadow: 0 20px 70px rgba(0,0,0,.72),0 0 30px rgba(200,255,82,.18);
  animation: reward-pop .22s ease-out;
}
.reward-popup span,.reward-popup strong,.reward-popup small {
  display: block;
}
.reward-popup span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: .12em;
}
.reward-popup strong {
  margin-top: 6px;
  color: var(--acid);
  font-size: 25px;
  line-height: 1.25;
}
.reward-popup small {
  margin-top: 10px;
  color: var(--soft);
  font-size: 12px;
  line-height: 1.55;
}
.loading-card {
  width: min(90%,420px);
  padding: 42px;
  border: 1px solid var(--line);
  background: #11101c;
  text-align: center;
}
.loading-card span {
  color: var(--acid);
  font: 900 68px ui-monospace,monospace;
}
.loading-card p {
  color: var(--muted);
}
@keyframes enemy-hit {
  0% {
    transform: translateX(0);
  }
  20% {
    transform: translateX(-8px);
  }
  40% {
    transform: translateX(7px);
  }
  60% {
    transform: translateX(-5px);
  }
  80% {
    transform: translateX(3px);
  }
  100% {
    transform: translateX(0);
  }
}
@keyframes reward-pop {
  from {
    opacity: 0;
    transform: translate(-50%,-46%) scale(.92);
  }
  to {
    opacity: 1;
    transform: translate(-50%,-50%) scale(1);
  }
}
.hit-pulse .enemy-mark,.hit-pulse .enemy-hp {
  animation: enemy-hit .24s linear;
}
@media (max-width:470px) {
  .game-shell {
    padding: 0;
  }
  .game-card {
    width: 100%;
    height: 100svh;
    min-height: 0;
    border: 0;
    overflow: hidden;
  }
  .topbar {
    grid-template-columns: 74px minmax(0,1fr) 88px;
    padding-inline: 14px;
  }
  .enemy-panel {
    padding-inline: 18px;
  }
  .help-tooltip {
    left: -40px;
    width: 230px;
  }
}
@media (max-height:950px) {
  .topbar {
    padding-top: 11px;
    padding-bottom: 10px;
  }
  .enemy-panel {
    padding-top: 8px;
    padding-bottom: 8px;
  }
  .enemy-mark {
    width: 42px;
    height: 42px;
    margin-bottom: 3px;
    font-size: 23px;
  }
  .enemy-hp {
    margin-bottom: 7px;
  }
  .enemy-hp strong {
    font-size: 39px;
  }
  .forecast-row {
    margin-top: 7px;
  }
  .poison-menu {
    top: 9px;
  }
  .intel-strip {
    grid-template-columns: repeat(3,minmax(0,1fr));
  }
  .intel-strip>div,.intel-strip>div:nth-child(odd),.intel-strip>div:last-child {
    grid-column: auto;
    padding: 5px 7px;
    border-right: 1px solid var(--line);
    border-bottom: 0;
  }
  .intel-strip>div:last-child {
    border-right: 0;
  }
  .intel-strip span {
    font-size: 10px;
  }
  .intel-strip strong {
    font-size: 12px;
    line-height: 1.25;
  }
  .player-panel {
    margin-top: 7px;
    padding-block: 6px;
  }
  .player-hp {
    font-size: 18px;
  }
  .action-panel {
    padding-top: 7px;
    padding-bottom: 8px;
  }
  .section-heading {
    margin-bottom: 7px;
  }
  .section-heading span {
    font-size: 15px;
  }
  .attack-button {
    min-height: 66px;
    padding-top: 8px;
    padding-bottom: 8px;
  }
  .attack-button>strong {
    font-size: 27px;
  }
  .inventory-bar {
    padding-top: 5px;
    padding-bottom: calc(5px + env(safe-area-inset-bottom));
  }
}
@media (max-width:365px) {
  .topbar {
    grid-template-columns: 70px minmax(0,1fr) 82px;
    gap: 6px;
  }
  h1 {
    font-size: 20px;
  }
  .eyebrow {
    font-size: 10px;
  }
  .score-block strong {
    font-size: 24px;
  }
  .intel-strip {
    grid-template-columns: 1fr;
  }
  .intel-strip>div,.intel-strip>div:nth-child(odd),.intel-strip>div:last-child {
    grid-column: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .intel-strip>div:last-child {
    border-bottom: 0;
  }
  .forecast-row {
    font-size: 13px;
  }
  .attack-button {
    padding-inline: 10px;
  }
  .shop-item {
    grid-template-columns: 34px minmax(0,1fr);
  }
  .shop-item button {
    grid-column: 1/-1;
    width: 100%;
  }
}
@media (prefers-reduced-motion:reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}
@property --tw-blur {
  syntax: "*";
  inherits: false;
}
@property --tw-brightness {
  syntax: "*";
  inherits: false;
}
@property --tw-contrast {
  syntax: "*";
  inherits: false;
}
@property --tw-grayscale {
  syntax: "*";
  inherits: false;
}
@property --tw-hue-rotate {
  syntax: "*";
  inherits: false;
}
@property --tw-invert {
  syntax: "*";
  inherits: false;
}
@property --tw-opacity {
  syntax: "*";
  inherits: false;
}
@property --tw-saturate {
  syntax: "*";
  inherits: false;
}
@property --tw-sepia {
  syntax: "*";
  inherits: false;
}
@property --tw-drop-shadow {
  syntax: "*";
  inherits: false;
}
@property --tw-drop-shadow-color {
  syntax: "*";
  inherits: false;
}
@property --tw-drop-shadow-alpha {
  syntax: "<percentage>";
  inherits: false;
  initial-value: 100%;
}
@property --tw-drop-shadow-size {
  syntax: "*";
  inherits: false;
}
@layer properties {
  @supports ((-webkit-hyphens: none) and (not (margin-trim: inline))) or ((-moz-orient: inline) and (not (color:rgb(from red r g b)))) {
    *, ::before, ::after, ::backdrop {
      --tw-blur: initial;
      --tw-brightness: initial;
      --tw-contrast: initial;
      --tw-grayscale: initial;
      --tw-hue-rotate: initial;
      --tw-invert: initial;
      --tw-opacity: initial;
      --tw-saturate: initial;
      --tw-sepia: initial;
      --tw-drop-shadow: initial;
      --tw-drop-shadow-color: initial;
      --tw-drop-shadow-alpha: 100%;
      --tw-drop-shadow-size: initial;
    }
  }
}
