:root {
  color-scheme: dark;
  --bg: #070a09;
  --panel: #101411;
  --line: #293128;
  --muted: #879083;
  --text: #edf0dd;
  --lime: #c0ee43;
  --orange: #ff813d;
  --cyan: #71e8e7;
  --red: #f26462;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "VT323", monospace;
  font-size: 14px;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}
button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 4px;
}
button:disabled {
  cursor: not-allowed;
}
#app {
  max-width: 1920px;
  min-height: 100svh;
  margin: auto;
  padding: 0 34px;
  display: flex;
  flex-direction: column;
}
.topbar {
  height: 89px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--line);
  gap: 42px;
}
.wordmark {
  font-family: "Silkscreen", Impact, sans-serif;
  font-weight: 900;
  font-size: 30px;
  letter-spacing: -0.8px;
  color: var(--text);
  text-decoration: none;
  position: relative;
}
.wordmark span {
  color: var(--lime);
}
.wordmark i {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--lime);
  margin-left: 5px;
}
.mode {
  font-size: 11px;
  letter-spacing: 1.6px;
  color: #a6ac9e;
}
.mode b {
  margin: 0 14px;
  color: #47523e;
}
.live-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--lime);
  margin-right: 10px;
}
.topbar nav {
  margin-left: auto;
  display: flex;
  gap: 10px;
}
.icon-button {
  width: 35px;
  height: 35px;
  border: 1px solid var(--line);
  background: transparent;
  font-size: 19px;
}
.icon-button:hover,
.icon-button.active {
  border-color: var(--lime);
  color: var(--lime);
}
.game-layout {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr) 170px;
  gap: 28px;
  flex: 1;
  min-height: 490px;
  padding-top: 26px;
}
.eyebrow {
  font-size: 11px;
  letter-spacing: 1.9px;
  color: var(--muted);
  font-weight: 500;
}
h1 {
  font-family: "Silkscreen", Impact, sans-serif;
  font-size: 58px;
  line-height: 0.98;
  text-transform: uppercase;
  margin: 18px 0 16px;
  font-weight: 800;
  letter-spacing: -0.7px;
}
h1 span {
  color: var(--lime);
}
.location {
  font-size: 10px;
  line-height: 1.8;
  color: #909b85;
  max-width: 175px;
  letter-spacing: 1px;
}
.location span {
  color: var(--lime);
}
.divider {
  height: 1px;
  background: var(--line);
  margin: 23px 0;
}
.hero-label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.7px;
}
.hero-label small {
  font-size: 10px;
  color: var(--red);
  letter-spacing: 1.2px;
}
.hero-vitals {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 14px 0 10px;
}
.hero-symbol {
  display: grid;
  place-items: center;
  font-size: 28px;
  width: 45px;
  height: 45px;
  border: 1px solid #643d32;
  background: #221914;
  color: var(--orange);
}
.hero-vitals strong {
  font-family: "Silkscreen", sans-serif;
  font-size: 39px;
  line-height: 1;
}
.health-caption {
  font-size: 11px;
  color: var(--muted);
  align-self: flex-end;
  padding-bottom: 6px;
}
.health-track {
  height: 4px;
  background: #283120;
  overflow: hidden;
}
.health-track i {
  display: block;
  height: 100%;
  background: var(--lime);
  transition: width 0.4s;
}
.opponent .health-track i {
  background: var(--orange);
}
.mini-mana {
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 1px;
  margin-top: 12px;
}
.battle-status {
  margin-top: 34px;
}
.battle-status .eyebrow {
  font-size: 10px;
}
#log {
  height: 123px;
  overflow: hidden;
  mask-image: linear-gradient(#000 65%, transparent);
  margin-top: 12px;
}
#log p {
  font-size: 11px;
  line-height: 1.7;
  color: #a3ad99;
  margin: 0 0 9px;
  border-left: 2px solid #35432a;
  padding-left: 10px;
}
#log p:first-child {
  color: #d8e2c8;
}
.text-button {
  background: none;
  border: 0;
  padding: 10px 0;
  font-size: 11px;
  color: #9ca68f;
  letter-spacing: 1px;
}
.text-button:hover {
  color: var(--lime);
}
.arena-column {
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.arena-top {
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.floor-tag {
  display: inline-grid;
  place-items: center;
  border: 1px solid #465430;
  width: 27px;
  height: 23px;
  font-size: 11px;
  color: var(--lime);
  margin-right: 10px;
}
.arena-name {
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 1.2px;
}
.round-info {
  font-size: 10px;
  letter-spacing: 1px;
  color: var(--muted);
  white-space: nowrap;
}
.round-info b {
  color: var(--text);
  margin: 0 18px 0 6px;
}
.round-info > span {
  color: var(--lime);
  font-size: 10px;
}
.stage-wrap {
  position: relative;
  flex: 1;
  min-height: 390px;
  display: flex;
  align-items: center;
  justify-content: center;
  isolation: isolate;
}
canvas {
  width: 100%;
  max-height: 660px;
  aspect-ratio: 1280/1080;
  object-fit: contain;
  image-rendering: pixelated;
  display: block;
}
#board-targets {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.unit-target {
  position: absolute;
  pointer-events: auto;
  background: transparent;
  border: 0;
  border-radius: 45%;
  transform: translate(-50%, -100%);
  color: transparent;
}
.unit-target:hover,
.unit-target:focus-visible {
  outline: 1px dashed #d6f288;
}
.unit-target.enemy:hover {
  outline-color: #ff9665;
}
.unit-target.targetable {
  cursor: crosshair;
}
.action-row {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-top: 1px solid var(--line);
}
#hint {
  font-size: 11px;
  color: #abb49c;
  line-height: 1.6;
}
.keycap {
  border: 1px solid #3d4934;
  padding: 3px 6px;
  margin-right: 8px;
}
.end-turn {
  background: var(--lime);
  color: #17200b;
  border: 1px solid var(--lime);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.1px;
  padding: 16px 18px;
  white-space: nowrap;
  min-width: 155px;
  box-shadow: 3px 3px 0 #344b0c;
  transition:
    background 0.2s,
    transform 0.2s;
}
.end-turn span {
  margin-left: 18px;
}
.end-turn:hover {
  background: #d5ff6b;
  transform: translateY(-2px);
}
.end-turn:disabled {
  background: #28351d;
  color: #7e9169;
  border-color: #465238;
  box-shadow: none;
  transform: none;
}
.right-panel {
  display: flex;
  flex-direction: column;
  padding-top: 2px;
}
.inspector {
  border-top: 2px solid #647447;
  padding-top: 15px;
  min-height: 352px;
}
.intel-empty {
  padding-top: 65px;
}
.intel-empty > span {
  color: #4b5a3d;
  font-size: 44px;
}
.intel-empty p {
  font-family: "Silkscreen", sans-serif;
  font-size: 24px;
  font-weight: 600;
}
.intel-empty small {
  font-size: 11px;
  line-height: 1.9;
  color: var(--muted);
}
.deck-indicator {
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 13px;
  padding-top: 20px;
  margin-top: auto;
  margin-bottom: 23px;
}
.deck-icon {
  color: var(--lime);
  font-size: 38px;
}
.deck-indicator b {
  display: block;
  font-size: 23px;
}
.deck-indicator div > span {
  font-size: 9px;
  color: var(--muted);
  letter-spacing: 1px;
}
.player-dock {
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr) 170px;
  gap: 28px;
  min-height: 220px;
  align-items: center;
  padding-top: 17px;
}
.player-profile {
  display: flex;
  align-items: center;
  gap: 13px;
}
.avatar {
  height: 48px;
  width: 44px;
  display: grid;
  place-items: center;
  background: #293b19;
  border: 1px solid #8aab4e;
  color: var(--lime);
  font-family: "Silkscreen";
  font-size: 32px;
  font-weight: 800;
}
.player-profile .eyebrow {
  font-size: 9px;
  letter-spacing: 0.8px;
  white-space: nowrap;
}
.player-health {
  padding: 4px 0;
}
.player-health strong {
  font-family: "Silkscreen";
  font-size: 32px;
}
.player-health span {
  font-size: 11px;
  color: var(--muted);
}
.hand {
  display: flex;
  align-items: end;
  justify-content: center;
  gap: 9px;
  min-height: 200px;
  perspective: 1000px;
}
.hand-card {
  position: relative;
  width: 126px;
  height: 177px;
  flex-shrink: 0;
  text-align: left;
  background: #e7d18c;
  color: #231e13;
  border: 3px solid #0b0e08;
  outline: 1px solid #7b7b45;
  box-shadow: 4px 5px 0 #0008;
  cursor: pointer;
  transition:
    transform 0.2s,
    outline 0.2s;
  transform-origin: bottom center;
  padding: 0;
}
.hand-card:hover,
.hand-card:focus-visible {
  transform: translateY(-22px) rotate(-2deg);
  z-index: 10;
  outline: 2px solid var(--lime);
}
.hand-card.selected {
  transform: translateY(-25px);
  outline: 2px solid var(--cyan);
}
.hand-card.unplayable {
  filter: saturate(0.5) brightness(0.65);
}
.card-cost {
  position: absolute;
  top: -10px;
  left: -8px;
  width: 28px;
  height: 31px;
  display: grid;
  place-items: center;
  background: var(--cyan);
  border: 2px solid #1d372b;
  color: #10242b;
  font-size: 19px;
  font-weight: 700;
  z-index: 2;
  box-shadow: 2px 2px 0 #172c25;
}
.card-art {
  height: 91px;
  margin: 4px;
  background: #baa859;
  border: 1px solid #564925;
  position: relative;
  overflow: hidden;
}
.card-art canvas {
  width: 100%;
  height: 100%;
  object-fit: contain;
  max-height: none;
}
.card-title {
  display: block;
  font-family: "Silkscreen", Impact, sans-serif;
  font-size: 17px;
  line-height: 1.1;
  font-weight: 700;
  text-transform: uppercase;
  text-align: center;
  padding: 2px 2px 4px;
  white-space: nowrap;
}
.card-ability {
  display: block;
  font-size: 8px;
  text-align: center;
  line-height: 1.3;
  color: #665124;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}
.card-stats {
  position: absolute;
  bottom: 4px;
  left: 6px;
  right: 6px;
  display: flex;
  justify-content: space-between;
  font-size: 17px;
  font-weight: 700;
}
.card-stats .attack {
  color: #5e420c;
}
.card-stats .health {
  color: #9d291d;
}
.card-stats .type {
  font-size: 8px;
  align-self: center;
  letter-spacing: 0.7px;
}
.card-back {
  background: #bb622c;
}
.power-panel {
  align-self: center;
}
.energy-readout {
  display: flex;
  align-items: baseline;
  gap: 9px;
}
.energy-readout b {
  font-family: "Silkscreen";
  font-size: 36px;
  color: var(--cyan);
}
.energy-readout span {
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 1px;
}
.crystals {
  display: flex;
  gap: 5px;
  margin: 8px 0 20px;
}
.crystals i {
  width: 12px;
  height: 14px;
  background: #204449;
  border: 1px solid #40767a;
  transform: skew(-12deg);
}
.crystals i.filled {
  background: var(--cyan);
  border-color: #b7ffff;
  box-shadow: 0 0 7px #71e8e71a;
}
.hero-power {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  text-align: left;
  background: #151e14;
  border: 1px solid #42533a;
  padding: 9px;
}
.hero-power > span {
  font-size: 31px;
  color: var(--lime);
}
.hero-power div {
  font-size: 10px;
  letter-spacing: 0.3px;
}
.hero-power small {
  display: block;
  font-size: 9px;
  color: var(--muted);
  margin-top: 4px;
}
.hero-power > b {
  margin-left: auto;
  font-size: 13px;
  color: var(--cyan);
}
.hero-power:hover {
  border-color: var(--lime);
}
.hero-power:disabled {
  opacity: 0.4;
}
.hero-power.selected {
  border-color: var(--cyan);
}
.bottom-line {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  padding: 16px 0;
  font-size: 9px;
  letter-spacing: 1.2px;
  color: #687361;
  margin-top: 10px;
}
.bottom-line i {
  font-style: normal;
  margin: 0 10px;
  color: #859676;
}
.opponent-hand {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  opacity: 0.75;
  gap: 4px;
}
.opponent-hand i {
  width: 26px;
  height: 36px;
  border: 2px solid #bb622a;
  background: repeating-linear-gradient(45deg, #be682c 0 2px, #633716 2px 4px);
  box-shadow: 2px 2px 0 #000;
}
.opponent-hand i:nth-child(1) {
  transform: rotate(-12deg) translateY(3px);
}
.opponent-hand i:last-child {
  transform: rotate(12deg) translateY(3px);
}
.turn-banner {
  position: absolute;
  left: 50%;
  top: 40%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  font-family: "Silkscreen";
  font-size: 48px;
  font-weight: 800;
  letter-spacing: 3px;
  color: var(--lime);
  background: #0c130cea;
  border: 1px solid #b9e854;
  padding: 14px 50px;
  white-space: nowrap;
  opacity: 0;
  z-index: 20;
}
.turn-banner.show {
  animation: banner 1.8s ease forwards;
}
@keyframes banner {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.8);
  }
  15%,
  75% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -60%) scale(1.05);
  }
}
.toast {
  position: absolute;
  bottom: 16%;
  left: 50%;
  transform: translateX(-50%);
  background: #151b12ed;
  border: 1px solid #85985d;
  color: #e6eed7;
  font-size: 12px;
  padding: 12px 18px;
  pointer-events: none;
  z-index: 30;
  opacity: 0;
  transition: opacity 0.2s;
  text-align: center;
  max-width: 90%;
  width: max-content;
}
.toast.show {
  opacity: 1;
}
.intel-art {
  margin-top: 18px;
  height: 136px;
  background: radial-gradient(ellipse, #354b22, transparent 70%);
  position: relative;
}
.intel-art canvas {
  height: 100%;
  width: 100%;
  max-height: none;
}
.intel-name {
  font-family: "Silkscreen";
  font-size: 28px;
  line-height: 1.05;
  margin: 10px 0 8px;
  text-transform: uppercase;
}
.intel-type {
  font-size: 9px;
  color: var(--lime);
  letter-spacing: 1.3px;
}
.intel-description {
  font-size: 12px;
  line-height: 1.8;
  color: #b7c0a9;
  margin: 16px 0;
}
.intel-stats {
  display: flex;
  gap: 15px;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}
.intel-stats b {
  font-size: 22px;
}
.intel-stats small {
  font-size: 9px;
  display: block;
  color: var(--muted);
  margin-top: 4px;
}
.intel-status {
  font-size: 10px;
  color: var(--cyan);
  margin-top: 16px;
  line-height: 1.6;
}
dialog {
  border: 1px solid #819557;
  background: #11170f;
  color: var(--text);
  width: min(520px, 90vw);
  padding: 36px;
  box-shadow: 12px 12px 0 #0008;
}
dialog::backdrop {
  background: #000b;
  backdrop-filter: blur(5px);
}
.modal-close {
  position: absolute;
  right: 12px;
  top: 10px;
  background: none;
  border: 0;
  font-size: 28px;
  color: #a8b39b;
}
dialog h2 {
  font-family: "Silkscreen";
  font-size: 42px;
  text-transform: uppercase;
  margin: 12px 0 18px;
  color: var(--lime);
}
dialog p {
  font-size: 13px;
  line-height: 1.9;
  color: #c4ceb8;
}
dialog .rule {
  border-top: 1px solid #35412c;
  padding-top: 15px;
}
dialog .rule b {
  color: var(--cyan);
}
dialog .end-turn {
  margin-top: 15px;
}
.result-stat {
  font-size: 12px;
  color: var(--muted);
}
@media (min-width: 1600px) {
  #app {
    padding: 0 50px;
  }
  .game-layout,
  .player-dock {
    grid-template-columns: 220px minmax(0, 1fr) 195px;
    gap: 38px;
  }
  .hand-card {
    width: 142px;
    height: 195px;
  }
  .card-art {
    height: 108px;
  }
  .game-layout {
    max-height: 850px;
  }
  h1 {
    font-size: 70px;
  }
}
@media (max-width: 1150px) {
  #app {
    padding: 0 22px;
  }
  .game-layout,
  .player-dock {
    grid-template-columns: 155px minmax(0, 1fr) 145px;
    gap: 18px;
  }
  .hand {
    gap: 4px;
  }
  .hand-card {
    width: 105px;
    height: 160px;
  }
  .card-art {
    height: 77px;
  }
  .card-title {
    font-size: 15px;
  }
  .arena-name {
    display: none;
  }
  h1 {
    font-size: 50px;
  }
  .mode {
    font-size: 9px;
  }
  .action-row #hint {
    max-width: 240px;
  }
  .end-turn {
    min-width: 132px;
    padding: 14px 12px;
  }
  .end-turn span {
    margin-left: 10px;
  }
  .topbar {
    height: 72px;
  }
  .game-layout {
    min-height: 470px;
  }
}
@media (max-width: 900px) {
  .right-panel {
    display: none;
  }
  .game-layout,
  .player-dock {
    grid-template-columns: 145px minmax(0, 1fr);
    gap: 20px;
  }
  .power-panel {
    grid-column: 1;
    grid-row: 1;
    padding-top: 82px;
  }
  .player-profile {
    align-self: start;
    padding-top: 8px;
  }
  .hand {
    grid-column: 2;
    grid-row: 1;
  }
  .player-dock {
    padding-top: 22px;
  }
  .hero-power {
    padding: 6px;
  }
  .crystals {
    margin-bottom: 10px;
  }
  .player-dock {
    min-height: 240px;
  }
  .energy-readout b {
    font-size: 24px;
  }
  .bottom-line span:last-child {
    display: none;
  }
  .hand-card {
    width: 110px;
  }
  .hand {
    gap: 3px;
  }
  .hand-card:nth-child(n + 6) {
    margin-left: -45px;
  }
  .mode {
    display: none;
  }
  canvas {
    max-height: 560px;
  }
  .stage-wrap {
    min-height: 350px;
  }
  #hint {
    font-size: 10px;
  }
  .game-layout {
    min-height: 500px;
  }
}
@media (max-width: 650px) {
  #app {
    padding: 0 12px;
  }
  .topbar {
    height: 63px;
  }
  .wordmark {
    font-size: 26px;
  }
  .topbar nav {
    gap: 6px;
  }
  .icon-button {
    width: 31px;
    height: 31px;
  }
  .game-layout {
    display: flex;
    flex-direction: column;
    padding-top: 15px;
    gap: 8px;
    min-height: 0;
  }
  .left-panel {
    display: flex;
    align-items: center;
    gap: 14px;
  }
  .left-panel > .eyebrow,
  .left-panel > .location,
  .divider,
  .battle-status,
  .left-panel > .text-button {
    display: none;
  }
  h1 {
    font-size: 30px;
    margin: 0;
    line-height: 0.95;
  }
  h1 br {
    display: none;
  }
  h1 span {
    margin-left: 3px;
  }
  .hero-panel {
    margin-left: auto;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0 12px;
    align-items: center;
  }
  .hero-label {
    font-size: 9px;
    gap: 3px;
  }
  .hero-label small {
    font-size: 8px;
  }
  .hero-vitals {
    margin: 0;
    gap: 5px;
  }
  .hero-vitals strong {
    font-size: 30px;
  }
  .hero-symbol {
    display: none;
  }
  .health-caption {
    font-size: 8px;
  }
  .hero-panel .health-track {
    grid-column: 1/3;
  }
  .mini-mana {
    display: none;
  }
  .arena-top {
    margin-top: 10px;
  }
  .arena-name {
    display: inline;
    font-size: 8px;
  }
  .round-info {
    font-size: 8px;
  }
  .round-info b {
    margin-right: 8px;
  }
  .round-info > span {
    font-size: 8px;
  }
  .stage-wrap {
    min-height: 0;
  }
  canvas {
    max-height: none;
  }
  .opponent-hand {
    top: 8px;
  }
  .opponent-hand i {
    width: 18px;
    height: 26px;
  }
  .action-row {
    min-height: 67px;
    gap: 8px;
  }
  #hint {
    font-size: 9px;
    max-width: 210px;
  }
  .keycap {
    display: none;
  }
  .end-turn {
    font-size: 10px;
    padding: 13px 10px;
    min-width: 110px;
  }
  .player-dock {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    min-height: 260px;
    padding-top: 13px;
    align-items: start;
  }
  .player-profile {
    grid-column: 1;
    grid-row: 1;
    padding-top: 0;
  }
  .avatar {
    height: 38px;
    width: 35px;
    font-size: 25px;
  }
  .player-health strong {
    font-size: 25px;
  }
  .power-panel {
    grid-column: 2;
    grid-row: 1;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 7px;
  }
  .energy-readout {
    gap: 4px;
    align-self: start;
  }
  .energy-readout b {
    font-size: 25px;
  }
  .energy-readout span {
    font-size: 8px;
  }
  .crystals {
    grid-column: 1;
    grid-row: 2;
    gap: 3px;
    margin: 2px 0;
  }
  .crystals i {
    width: 8px;
    height: 10px;
  }
  .hero-power {
    grid-column: 2;
    grid-row: 1/3;
    height: 45px;
    gap: 4px;
  }
  .hero-power > span {
    font-size: 21px;
  }
  .hero-power div {
    font-size: 8px;
  }
  .hero-power small {
    font-size: 7px;
  }
  .hero-power > b {
    font-size: 10px;
  }
  .hand {
    grid-column: 1/3;
    grid-row: 2;
    min-height: 177px;
    justify-content: center;
    gap: 3px;
    padding-top: 14px;
  }
  .hand-card {
    width: 90px;
    height: 140px;
  }
  .card-art {
    height: 64px;
  }
  .card-title {
    font-size: 13px;
  }
  .card-ability {
    font-size: 7px;
  }
  .card-cost {
    width: 23px;
    height: 26px;
    font-size: 16px;
  }
  .card-stats {
    font-size: 15px;
    left: 4px;
    right: 4px;
  }
  .hand-card:not(:first-child) {
    margin-left: -13px;
  }
  .hand-card:nth-child(n + 6) {
    margin-left: -54px;
  }
  .bottom-line {
    font-size: 7px;
    letter-spacing: 0.5px;
    padding: 12px 0;
    margin-top: 0;
  }
  .bottom-line i {
    margin: 0 3px;
  }
  .turn-banner {
    font-size: 30px;
    padding: 12px 20px;
  }
  .toast {
    font-size: 10px;
    bottom: 8%;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .hand-card:hover {
    transform: translateY(-6px);
  }
}
.card-stats .spell-type {
  margin: 4px auto 2px;
}
.player-dock {
  position: relative;
}
.mobile-detail {
  display: none;
}
.hand:has(.hand-card:nth-child(7)) .hand-card {
  margin-left: -18px;
}
.hand:has(.hand-card:nth-child(9)) .hand-card {
  margin-left: -35px;
}
.hand:has(.hand-card:nth-child(7)) .hand-card:first-child {
  margin-left: 0;
}
.opponent-hand:has(i:nth-child(7)) i {
  margin-left: -8px;
}
@media (max-width: 900px) {
  .mobile-detail:not([hidden]) {
    display: block;
    position: absolute;
    left: 50%;
    bottom: 100%;
    transform: translateX(-50%);
    width: min(330px, 90vw);
    border: 1px solid #9dbd5c;
    background: #111a0ff5;
    padding: 17px;
    z-index: 40;
    box-shadow: 5px 5px 0 #0009;
  }
  .mobile-detail > b {
    font-family: "Silkscreen";
    font-size: 25px;
    text-transform: uppercase;
    color: var(--lime);
  }
  .mobile-detail p {
    font-size: 12px;
    line-height: 1.7;
    margin: 10px 0;
  }
  .mobile-detail small {
    font-size: 10px;
    color: var(--cyan);
  }
  .detail-close {
    position: absolute;
    right: 8px;
    top: 5px;
    background: none;
    border: 0;
    font-size: 23px;
  }
  .detail-play {
    background: var(--lime);
    border: 0;
    color: #15200c;
    font-size: 11px;
    font-weight: bold;
    padding: 9px 17px;
  }
}
@media (max-width: 650px) {
  .hand:has(.hand-card:nth-child(7)) .hand-card {
    margin-left: -30px;
  }
  .hand:has(.hand-card:nth-child(9)) .hand-card {
    margin-left: -46px;
  }
  .hand:has(.hand-card:nth-child(7)) .hand-card:first-child {
    margin-left: 0;
  }
}
.wordmark {
  flex-shrink: 0;
  width: 204px;
  height: 66px;
  font-size: 0;
  background: url("/assets/reference.jpg") -354px -60px / 1280px 1080px no-repeat;
}
.wordmark span,
.wordmark i {
  display: none;
}
.topbar {
  gap: 28px;
}
@media (max-width: 650px) {
  .topbar {
    gap: 10px;
  }
  .wordmark {
    width: 167px;
    height: 54px;
    background-size: 1049.6px 885.6px;
    background-position: -290.3px -49.2px;
    font-size: 0;
  }
}
/* The Ascent: title screen, collection workshop and planning phase. */
[hidden],
.screen[hidden] {
  display: none !important;
}
.screen {
  animation: screen-enter 0.35s ease both;
}
@keyframes screen-enter {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.menu-button {
  background: transparent;
  border: 1px solid var(--line);
  padding: 0 13px;
  font-size: 10px;
  letter-spacing: 1px;
}
.menu-button:hover {
  color: var(--lime);
  border-color: var(--lime);
}
body[data-screen="home"] #app {
  max-width: 1920px;
}
.home-screen {
  min-height: calc(100svh - 89px);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.splash-art {
  position: absolute;
  width: min(88%, 1200px);
  right: -90px;
  top: -90px;
  z-index: -2;
  animation: splash-drift 7s ease-in-out infinite;
}
.splash-art canvas {
  width: 100%;
  max-height: none;
  image-rendering: pixelated;
}
.splash-vignette {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, #070a09 0%, #070a09f0 19%, #070a0950 44%, transparent 70%),
    linear-gradient(0deg, #070a09 0%, #070a0999 14%, transparent 45%);
  pointer-events: none;
}
.splash-content {
  position: relative;
  z-index: 1;
  padding: 75px 0 210px 36px;
  max-width: 540px;
}
.splash-kicker {
  font-size: 10px;
  letter-spacing: 3px;
  color: #c3cca7;
  display: flex;
  align-items: center;
  gap: 12px;
}
.splash-kicker > span {
  width: 25px;
  height: 2px;
  background: var(--lime);
}
.splash-content h1 {
  font-size: clamp(85px, 9.5vw, 145px);
  line-height: 0.83;
  font-weight: 900;
  letter-spacing: -2px;
  margin: 35px 0 25px;
  text-shadow: 6px 7px 0 #080b07;
}
.splash-subtitle {
  color: #bdc6b0;
  font-size: 14px;
  line-height: 1.8;
  margin: 0 0 30px;
}
.play-button {
  width: 326px;
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--lime);
  border: 1px solid #d9ff82;
  color: #112008;
  padding: 20px;
  text-align: left;
  box-shadow: 5px 5px 0 #3c5818;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}
.play-button:hover {
  transform: translate(-2px, -2px);
  box-shadow: 8px 8px 0 #3c5818;
}
.play-button:disabled {
  opacity: 0.4;
  transform: none;
  box-shadow: none;
}
.play-icon {
  font-size: 20px;
}
.play-button > span:nth-child(2) {
  font-family: "Silkscreen";
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 0.6px;
}
.play-button small {
  font-family: "VT323";
  font-size: 8px;
  letter-spacing: 1.1px;
  display: block;
  margin-top: 6px;
  font-weight: 500;
}
.play-button > b {
  margin-left: auto;
  font-size: 25px;
}
.secondary-play {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 326px;
  padding: 18px 19px;
  margin-top: 17px;
  border: 1px solid #515f3c;
  background: #10180dcf;
  text-align: left;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
}
.secondary-play > span {
  font-size: 19px;
  color: var(--lime);
}
.secondary-play > b {
  margin-left: auto;
  color: #96aa7b;
  font-size: 12px;
}
.secondary-play:hover {
  background: #243319;
  border-color: var(--lime);
}
.splash-chips {
  display: flex;
  gap: 19px;
  color: #7d8a6d;
  font-size: 8px;
  letter-spacing: 1.2px;
  margin-top: 22px;
}
.splash-floor {
  position: absolute;
  right: 24px;
  top: 60%;
  display: flex;
  align-items: center;
  gap: 15px;
  transform: rotate(-90deg);
  transform-origin: right bottom;
}
.splash-floor > span {
  font-family: "Silkscreen";
  font-size: 50px;
  color: var(--lime);
  font-weight: 700;
}
.splash-floor > div {
  font-size: 12px;
  letter-spacing: 2px;
}
.splash-floor small {
  display: block;
  font-size: 8px;
  letter-spacing: 1px;
  color: #b4c1a0;
  margin-top: 7px;
}
.home-deck-strip {
  position: absolute;
  bottom: 56px;
  left: 36px;
  right: 36px;
  padding: 21px 0 0;
  border-top: 1px solid #424d34;
  display: flex;
  align-items: center;
  gap: 34px;
}
.deck-strip-label {
  min-width: 138px;
}
.deck-strip-label .eyebrow {
  font-size: 9px;
}
.deck-strip-label p {
  font-family: "Silkscreen";
  font-size: 22px;
  line-height: 1.2;
  margin: 7px 0;
}
.loadouts {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 5px 4px 9px;
  flex: 1;
}
.loadout {
  background: #121a0de8;
  border: 1px solid #37452d;
  display: flex;
  align-items: center;
  text-align: left;
  gap: 12px;
  min-width: 230px;
  flex: 1;
  padding: 9px 12px;
  position: relative;
  transition:
    border-color 0.2s,
    background 0.2s;
}
.loadout.chosen {
  background: #25351ce8;
  border-color: #9dbd5b;
  box-shadow: 0 0 0 1px #9dbd5b33;
}
.loadout:hover {
  border-color: var(--lime);
}
.loadout canvas {
  width: 41px;
  height: 55px;
  aspect-ratio: auto;
}
.loadout b {
  font-family: "Silkscreen";
  font-size: 20px;
  font-weight: 600;
  display: block;
  white-space: nowrap;
}
.loadout small {
  display: block;
  font-size: 8px;
  letter-spacing: 0.6px;
  color: #93a37f;
  margin-top: 7px;
}
.loadout i {
  margin-left: auto;
  font-style: normal;
  color: var(--lime);
}
.home-bottom {
  position: absolute;
  bottom: 18px;
  left: 36px;
  right: 36px;
  display: flex;
  justify-content: space-between;
  font-size: 9px;
  letter-spacing: 1.5px;
  color: #6b7960;
}
.home-bottom i {
  font-style: normal;
  margin: 0 9px;
  color: #a2b98a;
}
@keyframes splash-drift {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}
.workshop-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 30px 0 25px;
}
.back-link {
  background: none;
  border: 0;
  padding: 0;
  color: #9cad84;
  font-size: 10px;
  letter-spacing: 1px;
}
.back-link:hover {
  color: var(--lime);
}
.workshop-heading h1 {
  font-size: 52px;
  line-height: 1;
  margin: 16px 0 9px;
  letter-spacing: -0.7px;
}
.workshop-heading p {
  font-size: 12px;
  color: #8c9b7d;
  margin: 0;
}
.workshop-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}
.outline-button {
  border: 1px solid #465639;
  background: #141c10;
  padding: 13px 18px;
  font-size: 10px;
  letter-spacing: 1px;
  color: #c5d4af;
}
.outline-button:hover {
  border-color: var(--lime);
  color: var(--lime);
}
.outline-button:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}
.workshop-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 316px;
  gap: 30px;
  align-items: start;
  padding-bottom: 32px;
}
.collection-toolbar {
  display: flex;
  gap: 13px;
  align-items: center;
}
.search-box {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #11180f;
  border: 1px solid #35422e;
  flex: 1;
  padding: 0 13px;
  height: 45px;
}
.search-box > span {
  font-size: 25px;
  color: #9aad81;
}
.search-box input {
  width: 100%;
  border: 0;
  background: none;
  color: var(--text);
  font: 12px "VT323";
  outline: none;
}
.search-box:focus-within {
  border-color: var(--lime);
}
.search-box input::placeholder {
  color: #758367;
}
.collection-toolbar select,
.deck-selector-row select {
  border: 1px solid #3b4c30;
  background: #151f10;
  color: #bbcca5;
  font: 11px "VT323";
  padding: 12px;
  max-width: 100%;
  height: 45px;
}
.collection-filters {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin: 20px 0 18px;
}
.type-tabs {
  display: flex;
  gap: 5px;
}
.type-tabs button {
  border: 0;
  background: none;
  padding: 9px 12px;
  font-size: 9px;
  letter-spacing: 1px;
  color: #8b9a7d;
}
.type-tabs button.active {
  background: #bde748;
  color: #1b290e;
  font-weight: 700;
}
.cost-filters {
  display: flex;
  gap: 5px;
}
.cost-filters button {
  display: grid;
  place-items: center;
  background: #111b12;
  border: 1px solid #324634;
  color: #88b0a7;
  width: 28px;
  height: 28px;
  font-size: 11px;
}
.cost-filters button.active {
  color: #c5ffff;
  border-color: var(--cyan);
  background: #163236;
}
.collection-count {
  font-size: 9px;
  letter-spacing: 1.2px;
  color: #798c69;
  margin-bottom: 18px;
}
.collection-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(157px, 1fr));
  gap: 20px 16px;
  padding: 8px 3px 0;
}
.collection-card {
  position: relative;
  background: #171e12;
  border: 1px solid #59623e;
  box-shadow: 3px 4px 0 #0008;
  --rarity: #a3ad87;
  transition:
    transform 0.2s,
    border-color 0.2s;
}
.rarity-rare {
  --rarity: #70e4ed;
}
.rarity-epic {
  --rarity: #d697fd;
}
.rarity-legendary {
  --rarity: #ffbe60;
}
.collection-card:hover {
  transform: translateY(-4px);
  border-color: var(--rarity);
  box-shadow:
    3px 7px 0 #0008,
    0 0 19px #cce86a0a;
}
.collection-inspect {
  display: block;
  background: none;
  border: 0;
  padding: 0;
  width: 100%;
  text-align: center;
  position: relative;
  color: #dce6ca;
}
.collection-card .card-cost {
  width: 30px;
  height: 33px;
  font-size: 20px;
  top: -8px;
  left: -6px;
}
.collection-art {
  height: 132px;
  background: radial-gradient(ellipse at 50% 70%, #68713b70, transparent 75%), #252b1d;
  border-bottom: 1px solid #6d7144;
  margin: 5px 5px 0;
  overflow: hidden;
}
.collection-art canvas {
  height: 100%;
  width: 100%;
  object-fit: contain;
  aspect-ratio: auto;
}
.collection-art.faction-signal {
  background: radial-gradient(ellipse, #447d844d, transparent 75%), #1e2927;
}
.collection-art.faction-bloom {
  background: radial-gradient(ellipse, #a957813d, transparent 75%), #272020;
}
.collection-art.faction-chrome {
  background: radial-gradient(ellipse, #788a883d, transparent 75%), #252b29;
}
.rarity-gem {
  display: block;
  width: 7px;
  height: 7px;
  background: var(--rarity);
  transform: rotate(45deg);
  margin: -4px auto 0;
  position: relative;
  box-shadow: 0 0 9px color-mix(in srgb, var(--rarity) 30%, transparent);
}
.collection-card h3 {
  font-family: "Silkscreen";
  font-size: 22px;
  line-height: 1.1;
  margin: 10px 8px 5px;
  min-height: 25px;
}
.collection-faction {
  font-size: 8px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #849774;
}
.collection-card p {
  font-size: 11px;
  line-height: 1.6;
  color: #b6c2a8;
  min-height: 70px;
  margin: 12px 10px 5px;
}
.collection-stats {
  height: 33px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0 12px;
  color: #edce8b;
}
.collection-stats b {
  font-size: 18px;
}
.collection-stats b:last-child {
  color: #e6a193;
}
.collection-stats small {
  font-size: 8px;
  color: #7a896a;
  font-weight: 400;
  margin-left: 3px;
}
.collection-stats .spell-label {
  font-size: 10px !important;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin: auto;
  color: #7adbe0 !important;
}
.copy-control {
  border-top: 1px solid #38422b;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 32px;
  background: #10190c;
}
.copy-control button {
  width: 34px;
  align-self: stretch;
  border: 0;
  background: #25321d;
  color: #d5edb6;
  font-size: 17px;
}
.copy-control button:hover {
  background: #40552c;
}
.copy-control button:disabled {
  opacity: 0.25;
}
.copy-control span {
  font-size: 10px;
  color: #9cb58a;
}
.deck-sidebar {
  position: sticky;
  top: 18px;
  max-height: calc(100svh - 36px);
  display: flex;
  flex-direction: column;
  background: #11190e;
  border: 1px solid #3b4b2f;
  padding: 19px 17px;
  min-height: 580px;
}
.deck-selector-row .eyebrow {
  font-size: 9px;
  display: block;
  margin-bottom: 10px;
}
.deck-selector-row select {
  width: 100%;
  height: 37px;
  padding: 8px 10px;
}
.deck-name-label {
  font-size: 8px;
  letter-spacing: 1.3px;
  color: #7f936d;
  margin-top: 20px;
}
.deck-name-label input {
  display: block;
  font-family: "Silkscreen";
  font-size: 27px;
  color: #e2efca;
  background: none;
  border: 0;
  border-bottom: 1px solid #415134;
  width: 100%;
  padding: 4px 0 9px;
  outline: 0;
}
.deck-name-label input:focus {
  border-color: var(--lime);
}
.deck-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 15px;
}
.deck-total > strong {
  font-family: "Silkscreen";
  font-size: 38px;
  line-height: 1;
}
.deck-total small {
  font-size: 21px;
  color: #768e62;
  margin-left: 3px;
}
.deck-total > span {
  font-size: 8px;
  letter-spacing: 0.7px;
}
.deck-valid {
  color: var(--lime);
}
.deck-incomplete {
  color: #d4ae6a;
}
.deck-progress {
  height: 3px;
  background: #344129;
  margin-top: 10px;
}
.deck-progress > i {
  display: block;
  height: 100%;
  background: var(--lime);
  transition: width 0.2s;
}
.mana-curve {
  display: flex;
  gap: 10px;
  align-items: flex-end;
  padding: 10px 6px;
  margin-top: 12px;
  height: 89px;
}
.mana-curve > div {
  flex: 1;
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: flex-end;
}
.mana-curve span {
  height: 14px;
  font-size: 8px;
  color: #bed0a7;
}
.mana-curve i {
  display: block;
  width: 100%;
  max-width: 20px;
  background: #839e46;
  border-top: 1px solid #cdf87d;
}
.mana-curve small {
  font-size: 9px;
  color: #8ca378;
  margin-top: 5px;
}
.deck-breakdown {
  display: flex;
  justify-content: space-between;
  font-size: 8px;
  letter-spacing: 0.4px;
  color: #8fa277;
  border-bottom: 1px solid #344329;
  padding: 5px 0 14px;
}
.deck-list {
  flex: 1;
  overflow-y: auto;
  min-height: 150px;
  margin: 12px -3px 0;
  padding: 0 3px;
  scrollbar-width: thin;
  scrollbar-color: #506337 #11190e;
}
.deck-row {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 34px;
  margin-bottom: 4px;
  border: 1px solid #34472c;
  background: linear-gradient(90deg, #22351b, #182412);
  --rarity: #8b9f74;
}
.deck-row .row-cost {
  height: 100%;
  width: 28px;
  display: grid;
  place-items: center;
  color: #9aedef;
  background: #1c3734;
  font-size: 14px;
  border-right: 1px solid #375651;
  flex-shrink: 0;
}
.deck-row > button:first-of-type {
  background: none;
  border: 0;
  padding: 0;
  color: #d0ddbb;
  font-family: "Silkscreen";
  font-size: 16px;
  line-height: 1;
  flex: 1;
  text-align: left;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.deck-row > b {
  font-size: 10px;
  color: #b9cd9e;
  font-weight: 500;
}
.deck-row > button:last-child {
  background: none;
  border: 0;
  border-left: 1px solid #405033;
  width: 25px;
  height: 100%;
  color: #93a67c;
}
.deck-row > button:last-child:hover {
  color: #ffd299;
  background: #503521;
}
.deck-row.rarity-legendary {
  border-color: #836331;
}
.deck-row.rarity-epic {
  border-color: #5f486f;
}
.deck-tools {
  display: flex;
  gap: 6px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #34432b;
}
.deck-tools button {
  padding: 9px 8px;
  flex: 1;
  font-size: 8px;
}
.deck-play-wrap .end-turn {
  width: 100%;
  margin-top: 13px;
  padding: 13px 12px;
  font-size: 11px;
}
.deck-play-wrap > span {
  display: block;
  text-align: center;
  color: #697f58;
  font-size: 8px;
  letter-spacing: 0.6px;
  margin-top: 13px;
}
.empty-deck {
  text-align: center;
  padding: 45px 12px;
  color: #839e6e;
}
.empty-deck > span {
  font-size: 35px;
}
.empty-deck p {
  font-size: 12px;
  color: #c0d2a8;
}
.empty-deck small {
  font-size: 10px;
  line-height: 1.8;
}
.no-cards {
  grid-column: 1/-1;
  padding: 70px 20px;
  text-align: center;
  color: #839772;
}
.no-cards h3 {
  font-family: "Silkscreen";
  font-size: 30px;
  color: #c7d9af;
}
.no-cards p {
  font-size: 12px;
}
.detail-card {
  width: 210px;
  margin: 25px auto;
}
.detail-card .collection-art {
  height: 155px;
}
.detail-card .collection-card p {
  min-height: 0;
  font-size: 12px;
}
.detail-card .collection-card h3 {
  font-size: 27px;
}
#battle-screen {
  flex: 1;
}
.orders-panel {
  padding: 10px 0 12px;
  border-top: 1px solid #344129;
  min-height: 91px;
}
.orders-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  color: #9dad87;
  font-size: 9px;
  letter-spacing: 1px;
}
.orders-heading b {
  color: var(--lime);
  font-size: 12px;
  margin-right: 5px;
}
.orders-heading > button {
  background: none;
  border: 0;
  color: #819970;
  font-size: 8px;
  letter-spacing: 0.5px;
  padding: 3px 0;
}
.orders-heading > button:disabled {
  opacity: 0.3;
}
.order-list {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: #576a3b #10160d;
  padding: 2px 0 5px;
}
.order-list > p {
  font-size: 10px;
  color: #748763;
  margin: 5px 0;
  line-height: 1.7;
}
.order-chip {
  border: 1px solid #4b5a39;
  border-left: 2px solid var(--order-color);
  background: #18200fff;
  display: flex;
  align-items: center;
  min-width: 195px;
  gap: 7px;
  padding: 6px 7px;
}
.order-chip > b {
  color: var(--order-color);
  width: 18px;
  font-size: 15px;
  text-align: center;
}
.order-label {
  border: 0;
  background: none;
  padding: 0;
  text-align: left;
  color: #d0dbbd;
  flex: 1;
  font-size: 9px;
  line-height: 1.4;
  max-width: 114px;
}
.order-label > span,
.order-label small {
  display: block;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}
.order-label small {
  font-size: 8px;
  color: var(--order-color);
  margin-top: 3px;
}
.order-controls {
  display: flex;
  flex-wrap: wrap;
  width: 32px;
  justify-content: center;
  gap: 1px;
}
.order-controls button {
  width: 15px;
  height: 17px;
  font-size: 14px;
  border: 0;
  background: #2b371e;
  color: #bdd2a5;
  line-height: 1;
  padding: 0;
}
.order-controls button:last-child {
  width: 31px;
  color: #fdb697;
}
.order-controls button:disabled {
  opacity: 0.2;
}
.order-chip.invalid {
  border-color: #b3564c;
  background: #301a15;
}
.order-chip.invalid .order-label small {
  color: #ff9987;
}
.action-row {
  border-top: 1px solid #283322;
}
.global-toast {
  position: fixed;
  bottom: 27px;
  top: auto;
  left: 50%;
  z-index: 1000;
  max-width: min(90vw, 520px);
  font-size: 12px;
  box-shadow: 0 8px 40px #000b;
}
dialog {
  max-height: 90svh;
  overflow-y: auto;
}
dialog.mulligan-modal {
  width: min(770px, 94vw);
}
.mulligan-cards {
  display: flex;
  gap: 18px;
  justify-content: center;
  margin: 30px 0;
}
.mulligan-card {
  background: #1b2513;
  border: 1px solid #718948;
  padding: 9px 10px 12px;
  width: 190px;
  position: relative;
  color: #dce9c7;
  box-shadow: 3px 4px 0 #0007;
  transition:
    transform 0.2s,
    border-color 0.2s;
}
.mulligan-card canvas {
  width: 100%;
  height: 130px;
  max-height: none;
  aspect-ratio: auto;
  background: radial-gradient(ellipse, #76993945, transparent 70%);
}
.mulligan-card > b {
  font-family: "Silkscreen";
  font-size: 24px;
  display: block;
  line-height: 1.05;
}
.mulligan-card p {
  font-size: 10px;
  line-height: 1.6;
  min-height: 70px;
  margin: 10px 0 15px;
}
.keep-label {
  display: block;
  font-size: 10px;
  letter-spacing: 1px;
  color: var(--lime);
}
.mulligan-card.replace {
  border-color: #f98b72;
  transform: translateY(-7px);
  background: #2f2016;
}
.mulligan-card.replace .keep-label {
  color: #ffa98e;
}
.mulligan-card.replace canvas {
  filter: saturate(0.5);
  opacity: 0.6;
}
.result-summary {
  display: flex;
  gap: 25px;
  margin: 22px 0 26px;
}
.result-summary span {
  font-size: 9px;
  color: #859b6d;
}
.result-summary b {
  display: block;
  font-family: "Silkscreen";
  font-size: 37px;
  color: var(--lime);
  margin-top: 5px;
}
.result-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}
.result-actions .end-turn {
  margin-top: 0;
  min-width: 0;
}
.hand-card.rarity-rare {
  outline-color: #74cbd3;
}
.hand-card.rarity-epic {
  outline-color: #b083ce;
}
.hand-card.rarity-legendary {
  outline-color: #d4a14d;
}
.card-title {
  white-space: normal;
  font-size: 16px;
  min-height: 22px;
}
.card-ability {
  font-size: 7px;
  letter-spacing: 0.1px;
  padding: 0 4px;
}
.card-stats .type {
  text-transform: uppercase;
  font-size: 7px;
}
.hand-card.playable .card-cost {
  box-shadow:
    0 0 10px #8dffff36,
    2px 2px 0 #172c25;
}
@media (min-width: 1600px) {
  .home-screen {
    min-height: 850px;
  }
  .splash-content {
    padding-top: 80px;
  }
  .splash-art {
    right: -20px;
    top: -105px;
    width: 80%;
    max-width: 1350px;
  }
  .collection-grid {
    grid-template-columns: repeat(auto-fill, minmax(185px, 1fr));
  }
  .collection-card h3 {
    font-size: 24px;
  }
}
@media (max-width: 1200px) {
  .splash-content {
    padding-left: 12px;
  }
  .splash-art {
    right: -130px;
    top: 20px;
    width: 95%;
  }
  .splash-floor {
    right: 5px;
  }
  .home-deck-strip {
    left: 12px;
    right: 12px;
    gap: 20px;
  }
  .deck-strip-label {
    display: none;
  }
  .home-bottom {
    left: 12px;
    right: 12px;
  }
  .splash-content h1 {
    font-size: 105px;
  }
  .workshop-layout {
    grid-template-columns: minmax(0, 1fr) 290px;
    gap: 22px;
  }
  .collection-grid {
    grid-template-columns: repeat(auto-fill, minmax(147px, 1fr));
    gap: 18px 13px;
  }
  .workshop-heading h1 {
    font-size: 45px;
  }
  .collection-card h3 {
    font-size: 20px;
  }
  .collection-card p {
    font-size: 10px;
  }
  .collection-toolbar select {
    width: 133px;
  }
}
@media (max-width: 900px) {
  .home-screen {
    min-height: 800px;
  }
  .splash-art {
    top: 70px;
    right: -210px;
    width: 110%;
  }
  .splash-content {
    padding-top: 60px;
  }
  .splash-vignette {
    background:
      linear-gradient(90deg, #070a09f0 0%, #070a09bb 36%, #070a0920 75%),
      linear-gradient(0deg, #070a09, transparent 45%);
  }
  .splash-content h1 {
    font-size: 100px;
  }
  .splash-floor {
    display: none;
  }
  .loadout {
    min-width: 220px;
  }
  .workshop-layout {
    grid-template-columns: minmax(0, 1fr) 260px;
    gap: 17px;
  }
  .collection-grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 18px 11px;
  }
  .deck-sidebar {
    padding: 15px 12px;
  }
  .collection-toolbar {
    flex-wrap: wrap;
  }
  .collection-toolbar .search-box {
    flex-basis: 100%;
  }
  .collection-toolbar select {
    width: 100%;
    height: 35px;
    padding: 6px 10px;
  }
  .collection-filters {
    gap: 13px;
  }
  .type-tabs button {
    font-size: 8px;
    padding: 8px 9px;
  }
  .cost-filters {
    gap: 4px;
  }
  .cost-filters button {
    width: 25px;
    height: 25px;
    font-size: 10px;
  }
  .workshop-heading h1 {
    font-size: 38px;
  }
  .workshop-actions {
    gap: 8px;
  }
  .workshop-actions .outline-button {
    padding: 12px 10px;
    font-size: 9px;
  }
  .workshop-actions .end-turn {
    min-width: 85px;
  }
  .collection-card p {
    min-height: 86px;
  }
  .collection-card h3 {
    min-height: 40px;
  }
  .order-chip {
    min-width: 183px;
  }
  .orders-panel {
    min-height: 84px;
  }
  .order-list > p {
    font-size: 9px;
  }
}
@media (max-width: 650px) {
  .menu-button {
    font-size: 8px;
    padding: 0 7px;
  }
  .topbar nav {
    gap: 4px;
  }
  .icon-button {
    width: 26px;
  }
  .wordmark {
    width: 150px;
    background-size: 947.2px 799.2px;
    background-position: -262px -44.4px;
    height: 49px;
  }
  .home-screen {
    min-height: calc(100svh - 63px);
    min-height: 760px;
  }
  .splash-content {
    padding: 35px 0 205px 4px;
    max-width: 100%;
  }
  .splash-kicker {
    font-size: 8px;
    letter-spacing: 1.8px;
  }
  .splash-content h1 {
    font-size: 83px;
    margin-top: 29px;
    line-height: 0.85;
  }
  .splash-subtitle {
    font-size: 12px;
    margin-bottom: 23px;
  }
  .splash-art {
    width: 150%;
    right: -45%;
    top: 95px;
    opacity: 0.85;
  }
  .splash-vignette {
    background:
      linear-gradient(90deg, #070a09dc 0%, #070a0999 35%, #070a0922),
      linear-gradient(0deg, #070a09 7%, transparent 65%);
  }
  .play-button,
  .secondary-play {
    width: 278px;
  }
  .play-button {
    padding: 16px;
    gap: 12px;
  }
  .play-button > span:nth-child(2) {
    font-size: 21px;
  }
  .secondary-play {
    font-size: 10px;
    padding: 14px 16px;
    margin-top: 15px;
  }
  .splash-chips {
    font-size: 7px;
    gap: 13px;
    margin-top: 17px;
  }
  .home-deck-strip {
    left: 4px;
    right: 4px;
    bottom: 52px;
    padding-top: 16px;
  }
  .loadout {
    min-width: 215px;
    padding: 9px 10px;
    gap: 10px;
  }
  .loadout b {
    font-size: 20px;
  }
  .home-bottom {
    font-size: 7px;
    letter-spacing: 0.6px;
    left: 4px;
    right: 4px;
    bottom: 21px;
  }
  .home-bottom i {
    margin: 0 4px;
  }
  .workshop-heading {
    padding: 22px 0 19px;
    align-items: end;
  }
  .workshop-heading h1 {
    font-size: 32px;
    margin-top: 12px;
    max-width: 170px;
    line-height: 0.98;
  }
  .workshop-heading p {
    font-size: 9px;
  }
  .back-link {
    font-size: 8px;
  }
  .workshop-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
  }
  .workshop-actions .end-turn {
    padding: 9px;
    font-size: 9px;
  }
  .workshop-actions .outline-button {
    font-size: 8px;
    padding: 9px;
  }
  .workshop-layout {
    display: flex;
    flex-direction: column-reverse;
    gap: 23px;
  }
  .deck-sidebar {
    position: relative;
    top: 0;
    width: 100%;
    min-height: 0;
    max-height: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .deck-selector-row {
    grid-column: 1/3;
  }
  .deck-selector-row .eyebrow {
    font-size: 8px;
    margin-bottom: 7px;
  }
  .deck-name-label {
    grid-column: 1;
    margin-top: 0;
    align-self: start;
  }
  .deck-name-label input {
    font-size: 23px;
  }
  .deck-total {
    margin-top: 0;
  }
  .deck-total > strong {
    font-size: 29px;
  }
  .deck-total > span {
    font-size: 6px;
    letter-spacing: 0;
    max-width: 63px;
    text-align: right;
  }
  .deck-total small {
    font-size: 15px;
  }
  .mana-curve {
    gap: 6px;
    padding: 5px 0;
    margin-top: 4px;
    height: 78px;
  }
  .deck-breakdown {
    font-size: 6px;
    gap: 3px;
    letter-spacing: 0;
    padding-bottom: 9px;
  }
  .deck-list {
    grid-column: 1/3;
    max-height: 200px;
    min-height: 0;
    margin-top: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
    align-content: start;
  }
  .deck-row {
    gap: 4px;
    margin: 0;
    height: 31px;
  }
  .deck-row .row-cost {
    width: 22px;
    font-size: 11px;
  }
  .deck-row > button:first-of-type {
    font-size: 13px;
  }
  .deck-row > b {
    font-size: 8px;
  }
  .deck-row > button:last-child {
    width: 19px;
  }
  .empty-deck {
    grid-column: 1/3;
    padding: 16px;
  }
  .empty-deck > span {
    display: none;
  }
  .empty-deck p {
    font-size: 11px;
  }
  .empty-deck small {
    font-size: 9px;
  }
  .deck-tools {
    grid-column: 1;
    padding-top: 0;
    margin: 0;
    border: 0;
    gap: 4px;
    align-items: start;
  }
  .deck-tools button {
    font-size: 7px;
    padding: 10px 5px;
    letter-spacing: 0;
  }
  .deck-play-wrap {
    grid-column: 2;
  }
  .deck-play-wrap .end-turn {
    margin: 0;
    padding: 10px 8px;
    font-size: 8px;
    min-width: 0;
  }
  .deck-play-wrap > span {
    font-size: 6px;
    margin-top: 8px;
    letter-spacing: 0;
  }
  .collection {
    width: 100%;
  }
  .collection-toolbar {
    flex-wrap: nowrap;
    gap: 9px;
  }
  .collection-toolbar .search-box {
    flex-basis: auto;
    height: 39px;
    padding: 0 9px;
    min-width: 0;
  }
  .search-box input {
    font-size: 11px;
  }
  .collection-toolbar select {
    width: 120px;
    height: 39px;
    font-size: 10px;
  }
  .collection-filters {
    margin: 14px 0;
    gap: 9px;
  }
  .type-tabs button {
    font-size: 8px;
    padding: 8px;
  }
  .cost-filters button {
    width: 27px;
    height: 27px;
  }
  .collection-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px 13px;
  }
  .collection-card h3 {
    font-size: 22px;
    min-height: 24px;
  }
  .collection-card p {
    font-size: 11px;
    min-height: 82px;
  }
  .collection-art {
    height: 133px;
  }
  .collection-faction {
    font-size: 7px;
  }
  .collection-count {
    font-size: 8px;
    margin-bottom: 14px;
  }
  .collection-card .card-cost {
    width: 27px;
    height: 29px;
    font-size: 18px;
  }
  .collection-stats {
    margin: 0 9px;
  }
  .collection-card {
    margin-left: 2px;
  }
  .orders-panel {
    padding-top: 8px;
    min-height: 82px;
  }
  .orders-heading {
    font-size: 8px;
  }
  .order-chip {
    min-width: 182px;
  }
  .order-label {
    font-size: 9px;
  }
  .action-row #hint {
    font-size: 9px;
  }
  .mulligan-cards {
    gap: 9px;
    margin: 25px -13px;
  }
  .mulligan-card {
    width: 31%;
    padding: 5px 5px 10px;
  }
  .mulligan-card canvas {
    height: 90px;
  }
  .mulligan-card > b {
    font-size: 18px;
    min-height: 37px;
  }
  .mulligan-card p {
    font-size: 8px;
    line-height: 1.55;
    min-height: 91px;
  }
  .mulligan-card .card-cost {
    width: 23px;
    height: 26px;
    font-size: 15px;
  }
  .keep-label {
    font-size: 8px;
  }
  dialog.mulligan-modal {
    padding: 27px 21px;
  }
  .mulligan-modal h2 {
    font-size: 33px;
  }
  .mulligan-modal > div > p {
    font-size: 11px;
  }
  .mulligan-modal .end-turn {
    font-size: 10px;
  }
  .global-toast {
    font-size: 10px;
    bottom: 18px;
  }
  .card-title {
    font-size: 13px;
    min-height: 17px;
  }
  .card-ability {
    font-size: 6px;
  }
  .card-stats .type {
    font-size: 6px;
  }
  .result-summary {
    gap: 21px;
  }
  .result-actions .outline-button {
    font-size: 9px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .splash-art,
  .screen {
    animation: none;
  }
  .play-button:hover,
  .collection-card:hover,
  .mulligan-card.replace {
    transform: none;
  }
}
.collection-card p {
  font-size: 12px;
  min-height: 96px;
}
.collection-card .card-cost {
  background: #9ee5dd;
}
.collection-card.rarity-legendary .collection-art {
  box-shadow: inset 0 0 25px #ffb14e1c;
}
.order-controls button:hover:not(:disabled) {
  background: #4b6130;
  color: #ecffdb;
}
.unit-target.targetable:focus-visible {
  outline: 2px dashed var(--cyan);
  outline-offset: 4px;
}
@media (max-width: 650px) {
  .collection-card p {
    font-size: 11px;
    min-height: 96px;
  }
}
