/* Mega Tower TCG — official Megapont interface typefaces.
   The legacy family aliases keep every game surface on the supplied fonts. */
@font-face {
  font-family: VT323;
  src: url("/assets/fonts/megapont-regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: Silkscreen;
  src: url("/assets/fonts/megatower-regular.otf") format("opentype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: Silkscreen;
  src: url("/assets/fonts/megatower-regular.otf") format("opentype");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}
:root {
  --bg: #03060b;
  --panel: #101826;
  --line: #29486a;
  --muted: #99b2c8;
  --text: #f0f6ff;
  --lime: #c8ef2d;
  --orange: #ff912a;
  --cyan: #75f8f2;
  --red: #ff536c;
  --blue: #1462d9;
  --pink: #ff2f7b;
  --yellow: #ffe86b;
}
body {
  font-family: VT323, monospace;
  font-size: 20px;
  background: var(--bg);
}
button,
input,
select {
  font-synthesis: none;
}
h1,
h2,
h3 {
  font-family: Silkscreen, monospace;
  font-weight: 400;
  letter-spacing: -1px;
}
img,
canvas {
  image-rendering: pixelated;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid var(--cyan);
  outline-offset: 4px;
}
::selection {
  background: var(--pink);
  color: white;
}
.wordmark {
  width: 230px;
  height: 72px;
  background: none;
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}
.wordmark img {
  display: block;
  width: 100%;
  height: auto;
}
.topbar {
  border-bottom: 3px solid #173457;
}
.mode {
  font: 15px VT323;
  letter-spacing: 1px;
  color: var(--muted);
}
.mode b {
  color: var(--pink);
}
.icon-button,
.menu-button {
  border: 2px solid #426c91;
  background: #11263b;
  box-shadow:
    inset 2px 2px #284866,
    2px 2px #000;
}
.menu-button {
  font: 16px VT323;
}
.icon-button {
  font: 22px VT323;
}
.eyebrow {
  font: 16px VT323;
  letter-spacing: 1px;
  color: var(--muted);
}
.play-button,
.end-turn {
  background: var(--lime);
  border: 3px solid #151914;
  box-shadow:
    inset 2px 2px #efffa6,
    inset -2px -2px #6c8a09,
    4px 4px #010203;
  color: #102400;
}
.end-turn {
  font: 11px/1.5 Silkscreen;
  letter-spacing: 0;
  min-width: 160px;
}
.play-button:hover,
.end-turn:hover {
  background: #dcff57;
  box-shadow:
    inset 2px 2px #fffac9,
    inset -2px -2px #6c8a09,
    4px 4px #010203;
}
.play-button:active,
.end-turn:active,
.secondary-play:active {
  transform: translate(2px, 2px);
  box-shadow: inset 2px 2px #142322;
}
.end-turn:disabled {
  background: #243328;
  color: #899b84;
  box-shadow:
    inset 2px 2px #354937,
    3px 3px #000;
}
.outline-button {
  font: 16px VT323;
  color: #d7e8fb;
  border: 2px solid #365c81;
  background: #102239;
  box-shadow:
    inset 2px 2px #203d5c,
    2px 2px #000;
}
.outline-button:hover {
  background: #163759;
  border-color: var(--cyan);
}
.text-button,
.back-link {
  font: 16px VT323;
  color: var(--cyan);
  letter-spacing: 1px;
}
/* Title screen */
.home-screen {
  min-height: 780px;
}
.splash-content {
  padding-top: 50px;
  padding-bottom: 230px;
  max-width: 590px;
}
.splash-content h1.game-title {
  margin: 8px 0 5px;
  width: 520px;
  max-width: 100%;
  font-size: 0;
  line-height: 1;
  text-shadow: none;
}
.game-title img {
  width: 100%;
  height: auto;
  display: block;
}
.splash-kicker {
  font: 10px/1.5 Silkscreen;
  letter-spacing: 0;
  color: var(--cyan);
}
.splash-kicker > span {
  height: 4px;
  width: 18px;
  background: var(--pink);
}
.splash-subtitle {
  font: 24px/1.25 VT323;
  color: #e0ecf6;
  margin: 0 0 28px;
}
.splash-chips {
  font: 14px VT323;
  letter-spacing: 1px;
  color: var(--muted);
}
.splash-vignette {
  background:
    linear-gradient(90deg, #03060b 0%, #03060bf0 18%, #03060b45 45%, transparent 70%),
    linear-gradient(0deg, #03060b 0%, #03060b99 13%, transparent 42%);
}
.play-button {
  width: 365px;
  gap: 14px;
}
.play-button > span:nth-child(2) {
  font: 13px/1.5 Silkscreen;
}
.play-button small {
  font: 15px VT323;
  letter-spacing: 1px;
}
.play-button > b {
  font: 26px VT323;
}
.secondary-play {
  width: 365px;
  background: #125dd2;
  border: 3px solid #070b16;
  box-shadow:
    inset 2px 2px #67b9ff,
    inset -2px -2px #073a87,
    4px 4px #000;
  font: 12px Silkscreen;
  color: #fff;
}
.secondary-play:hover {
  background: #1975ee;
  border-color: #75cfff;
}
.secondary-play > b {
  font: 20px VT323;
  color: var(--yellow);
}
.splash-floor > span {
  font: 40px Silkscreen;
  text-shadow: 3px 3px #000;
}
.splash-floor > div {
  font: 18px VT323;
  letter-spacing: 1px;
  text-shadow: 2px 2px #000;
}
.splash-floor small {
  font: 14px VT323;
  color: #c7d7e6;
}
.home-deck-strip {
  border-top: 2px solid #264768;
}
.deck-strip-label .eyebrow {
  font-size: 15px;
}
.deck-strip-label p {
  font: 22px VT323;
  color: var(--text);
}
.loadout {
  background: #0c192bef;
  border: 2px solid #305a7c;
  box-shadow:
    inset 2px 2px #183554,
    3px 3px #000;
  min-width: 245px;
  gap: 9px;
}
.loadout.chosen {
  background: #113b61;
  border-color: var(--cyan);
  box-shadow:
    inset 2px 2px #216994,
    3px 3px #000;
}
.loadout b {
  font: 23px VT323;
  white-space: nowrap;
}
.loadout small {
  font: 14px VT323;
  letter-spacing: 0;
  color: #b7cce3;
  margin-top: 4px;
}
.loadout i {
  color: var(--cyan);
}
.home-bottom,
.bottom-line {
  font: 14px VT323;
  color: #8aa6c4;
  letter-spacing: 1px;
}
.home-bottom i,
.bottom-line i {
  color: var(--pink);
}
/* Workshop, with familiar blue Megapont card frames. */
.workshop-heading h1 {
  font: 30px/1.3 Silkscreen;
  letter-spacing: -1px;
}
.workshop-heading p {
  font: 20px VT323;
  color: #b4c9df;
}
.search-box {
  background: #0a1525;
  border: 2px solid #325274;
  box-shadow: inset 2px 2px #000;
}
.search-box input {
  font: 20px VT323;
  color: var(--text);
}
.search-box input::placeholder {
  color: #829bb5;
}
.collection-toolbar select,
.deck-selector-row select {
  font: 18px VT323;
  background: #101f35;
  border: 2px solid #325274;
  color: #e6f1ff;
  padding: 6px 10px;
}
.type-tabs button {
  font: 16px VT323;
  border: 2px solid #29496b;
  background: #12233a;
  color: #b9d1eb;
}
.type-tabs button.active {
  background: #125dcc;
  color: #fff;
  border-color: #80bbfc;
  box-shadow: inset 2px 2px #3383f1;
}
.cost-filters button {
  font: 18px VT323;
  background: #0c1a2c;
  border: 2px solid #33526f;
  color: #bccfe3;
}
.cost-filters button.active {
  background: var(--orange);
  color: #152340;
  border-color: #ffd691;
}
.collection-count {
  font: 15px VT323;
  color: var(--muted);
  letter-spacing: 1px;
}
.collection-card {
  background: #1461d1;
  border: 3px solid #040c21;
  outline: 1px solid #407dfa;
  box-shadow:
    inset 2px 2px #70baff,
    inset -2px -2px #073c8a,
    4px 4px #000;
  --rarity: #6e9bd6;
}
.collection-card:hover {
  border-color: #050e2b;
  outline: 2px solid var(--rarity);
  box-shadow:
    inset 2px 2px #7ec8ff,
    5px 7px #000;
}
.collection-inspect {
  padding: 3px 4px 4px;
  color: white;
}
.collection-card h3 {
  font: 20px/0.95 VT323;
  letter-spacing: 0;
  text-transform: uppercase;
  text-align: left;
  min-height: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  margin: 0;
  padding: 0 25px 0 3px;
  text-shadow: 2px 2px #052050;
  overflow: hidden;
}
.card-cost,
.collection-card .card-cost {
  left: auto;
  right: -5px;
  top: -6px;
  width: 30px;
  height: 31px;
  background: #ff992b;
  border: 3px solid #132044;
  color: white;
  box-shadow:
    inset 2px 2px #ffd683,
    2px 2px #000;
  font: 26px/0.9 VT323;
  clip-path: polygon(
    20% 0,
    80% 0,
    80% 8%,
    100% 8%,
    100% 80%,
    80% 80%,
    80% 100%,
    20% 100%,
    20% 92%,
    0 92%,
    0 20%,
    20% 20%
  );
  text-shadow: 2px 2px #784218;
}
.collection-art,
.collection-art.faction-signal,
.collection-art.faction-bloom,
.collection-art.faction-chrome,
.card-art,
.intel-art {
  background: var(--yellow);
  border: 3px solid #0a2048;
  box-shadow: none;
  overflow: hidden;
}
.collection-card.rarity-legendary .collection-art {
  box-shadow: none;
}
.collection-art {
  height: 145px;
  margin: 0;
}
.collection-art canvas,
.card-art canvas,
.intel-art canvas {
  object-fit: fill;
  display: block;
  image-rendering: pixelated;
}
.rarity-gem {
  position: absolute;
  right: 9px;
  top: 191px;
  width: 7px;
  height: 7px;
  transform: none;
  background: var(--rarity);
  border: 1px solid #081532;
  box-shadow: 1px 1px #000;
  margin: 0;
}
.rarity-rare {
  --rarity: #70f0ff;
}
.rarity-epic {
  --rarity: #e6a2ff;
}
.rarity-legendary {
  --rarity: #ffc14c;
}
.collection-faction {
  display: block;
  background: #1459c4;
  color: #c8eaff;
  font: 13px/1.4 VT323;
  letter-spacing: 1px;
  text-align: left;
  padding: 4px 12px 3px 5px;
  border-bottom: 2px solid #081b44;
  white-space: nowrap;
}
.collection-card p {
  font: 17px/1.05 VT323;
  text-align: left;
  background: #070d1a;
  color: #edf4fc;
  margin: 0;
  min-height: 98px;
  padding: 9px 8px 5px;
  border-left: 2px solid #0a2e6c;
  border-right: 2px solid #0a2e6c;
}
.collection-stats {
  height: 40px;
  background: #070d1a;
  margin: 0;
  padding: 4px;
  border: 2px solid #0a2e6c;
  border-top: 0;
}
.collection-stats b {
  background: #ec3548;
  color: #fff;
  border: 2px solid #060b20;
  box-shadow:
    inset 2px 2px #ff7d7f,
    2px 2px #000;
  font: 25px/0.9 VT323;
  padding: 3px 5px;
  text-shadow: 1px 2px #640f28;
}
.collection-stats b:last-child:not(.spell-label) {
  background: #268e56;
  color: #fff;
  box-shadow:
    inset 2px 2px #7be495,
    2px 2px #000;
  text-shadow: 1px 2px #06421c;
}
.collection-stats small {
  font: 12px VT323;
  color: white;
  margin-left: 2px;
}
.collection-stats .spell-label {
  background: none;
  border: 0;
  box-shadow: none;
  text-shadow: none;
  font: 16px VT323 !important;
  color: var(--cyan) !important;
}
.copy-control {
  height: 36px;
  background: #06132b;
  border-top: 3px solid #051330;
  margin-top: 3px;
}
.copy-control button {
  font: 25px VT323;
  background: #124aab;
  color: #c7e9ff;
  border: 1px solid #377de9;
  box-shadow: inset 1px 1px #69a8fb;
}
.copy-control button:hover {
  background: #237df0;
  color: #fff;
}
.copy-control span {
  font: 18px VT323;
  color: #c5dafa;
}
.deck-sidebar {
  background: #0e1a2b;
  border: 3px solid #315577;
  box-shadow:
    inset 2px 2px #213e5a,
    5px 5px #000;
}
.deck-selector-row .eyebrow,
.deck-name-label {
  font: 15px VT323;
  color: var(--muted);
}
.deck-name-label input {
  font: 26px VT323;
  color: #ecf6ff;
  border-color: #345777;
}
.deck-total > strong {
  font: 34px Silkscreen;
}
.deck-total small {
  font: 26px VT323;
  color: #8aa8c8;
}
.deck-total > span {
  font: 14px VT323;
  letter-spacing: 0;
}
.deck-progress {
  height: 6px;
  background: #263b54;
  border: 1px solid #040912;
}
.mana-curve i {
  background: #1f7ddd;
  border-top: 2px solid #84dbff;
  box-shadow: inset 2px 0 #60bdf4;
}
.mana-curve span,
.mana-curve small {
  font: 15px VT323;
  color: #b3cfe9;
}
.deck-breakdown {
  font: 14px VT323;
  color: #9db7d2;
  letter-spacing: 0;
  border-color: #34516f;
}
.deck-row {
  background: #142f52;
  border: 1px solid #315c85;
  box-shadow: inset 1px 1px #1f4771;
}
.deck-row .row-cost {
  font: 21px VT323;
  background: #d47724;
  color: #fff0ce;
  border-color: #f9b869;
}
.deck-row > button:first-of-type {
  font: 20px VT323;
  color: #ecf6ff;
}
.deck-row > b {
  font: 16px VT323;
  color: var(--cyan);
}
.deck-row > button:last-child {
  border-color: #365f84;
  color: #b1cae3;
}
.deck-list {
  scrollbar-color: #3d74ac #0c1726;
}
.deck-tools {
  border-color: #2d4e6b;
}
.deck-tools button {
  font: 15px VT323;
}
.deck-play-wrap .end-turn {
  font: 10px Silkscreen;
}
.deck-play-wrap > span {
  font: 12px VT323;
  color: #8fadc9;
  letter-spacing: 0;
}
.empty-deck p,
.no-cards p {
  font: 20px VT323;
  color: #bed1e6;
}
.empty-deck small {
  font: 16px VT323;
}
.no-cards h3 {
  font: 18px Silkscreen;
  color: var(--cyan);
}
.detail-card {
  width: 250px;
}
.detail-card .collection-art {
  height: 175px;
}
.detail-card .collection-card h3 {
  font: 24px VT323;
  height: 42px;
}
.detail-card .collection-card p {
  font: 20px/1.15 VT323;
  min-height: 95px;
}
.detail-card .rarity-gem {
  top: 225px;
}
/* Battle HUD and readable, numbered combat orders. */
.left-panel h1 {
  font: 24px/1.2 Silkscreen;
  letter-spacing: -1px;
}
.location {
  font: 15px/1.25 VT323;
  letter-spacing: 0.5px;
  color: #95adc5;
}
.hero-label {
  font: 20px VT323;
  letter-spacing: 0;
}
.hero-label small {
  font: 14px VT323;
}
.hero-vitals strong,
.player-health strong {
  font: 40px VT323;
}
.health-caption,
.player-health span {
  font: 15px VT323;
}
.hero-symbol,
.avatar {
  background: #12335b;
  border: 2px solid #487db0;
  box-shadow:
    inset 2px 2px #22538a,
    3px 3px #000;
}
.health-track {
  height: 6px;
  background: #253c57;
  border: 1px solid #030910;
}
.mini-mana {
  font: 16px VT323;
}
.battle-status .eyebrow {
  font-size: 15px;
}
#log p {
  font: 16px/1.15 VT323;
  color: #9bb5cc;
  border-color: #325c7e;
  margin-bottom: 10px;
}
#log p:first-child {
  color: #e3effa;
}
.floor-tag {
  font: 16px VT323;
  border: 2px solid #3a6741;
}
.arena-name,
.round-info {
  font: 15px VT323;
  letter-spacing: 0.5px;
  color: #9db8d2;
}
.round-info > b {
  font: 24px VT323;
  color: #eff9ff;
}
.round-info > span {
  font: 15px VT323;
}
.orders-panel,
.action-row {
  border-color: #29486a;
}
.orders-heading {
  font: 15px VT323;
  color: #b1c8de;
  letter-spacing: 0.5px;
}
.orders-heading b {
  font: 18px VT323;
}
.orders-heading > button {
  font: 14px VT323;
  color: #a3c2dd;
}
.order-list > p {
  font: 16px/1.15 VT323;
  color: #8da8c2;
}
.order-list {
  scrollbar-color: #3c638e #101d30;
}
.order-chip {
  border: 2px solid #274463;
  border-left: 4px solid var(--order-color);
  background: #0c1e34;
  min-width: 215px;
  box-shadow: inset 1px 1px #17354d;
}
.order-chip > b {
  font: 25px VT323;
}
.order-label {
  font: 17px/1 VT323;
  color: #dcebf9;
  max-width: 135px;
}
.order-label small {
  font: 15px VT323;
  margin-top: 3px;
}
.order-controls button {
  background: #24486b;
  color: #d5ecff;
  font: 16px VT323;
}
.order-controls button:hover:not(:disabled) {
  background: #3578aa;
  color: #fff;
}
.action-row #hint {
  font: 17px/1.15 VT323;
  color: #a4bed7;
}
.keycap {
  font: 15px VT323;
  border: 1px solid #407195;
  background: #143052;
  color: var(--cyan);
}
.intel-empty p {
  font: 23px VT323;
  color: #ccdfef;
}
.intel-empty small {
  font: 17px/1.2 VT323;
  color: #8fadc5;
}
.intel-art {
  height: 150px;
  border: 4px solid #226fda;
  box-shadow: 2px 2px #000;
}
.intel-name {
  font: 26px/1 VT323;
  letter-spacing: 0;
  color: #f0f8ff;
  margin: 10px 0;
}
.intel-type {
  font: 13px VT323;
  letter-spacing: 0.5px;
  color: var(--cyan);
}
.intel-description {
  font: 19px/1.15 VT323;
  color: #d2e3f3;
  margin: 13px 0;
}
.intel-stats {
  gap: 12px;
}
.intel-stats b {
  font: 28px VT323;
}
.intel-stats small {
  font: 13px VT323;
}
.intel-status {
  font: 16px/1.1 VT323;
}
.deck-indicator div > span {
  font: 13px VT323;
  letter-spacing: 0.5px;
}
.deck-indicator b {
  font: 30px VT323;
}
.deck-icon {
  font-size: 0;
  width: 32px;
  height: 46px;
  background: url("/assets/megapont-card-back.png") center/contain no-repeat;
  image-rendering: pixelated;
}
.player-profile .eyebrow {
  font: 14px VT323;
  letter-spacing: 0;
}
.energy-readout b {
  font: 38px VT323;
}
.energy-readout span {
  font: 16px VT323;
}
.crystals i {
  border: 2px solid #356da4;
  background: #0b2237;
  transform: none;
  box-shadow: inset 1px 1px #183b58;
}
.crystals i.filled {
  background: #43dbe3;
  border-color: #b7ffff;
  box-shadow:
    inset 2px 2px #e2ffff,
    2px 2px #001422;
}
.hero-power {
  background: #102b49;
  border: 2px solid #326291;
  box-shadow:
    inset 2px 2px #234d72,
    3px 3px #000;
}
.hero-power div {
  font: 18px VT323;
}
.hero-power small {
  font: 15px VT323;
  letter-spacing: 0;
}
.hero-power > b {
  font: 22px VT323;
}
/* Hand cards share the same portrait crop, header, and stat squares as the workshop. */
.hand-card {
  background: #1461d1;
  border: 3px solid #07132c;
  outline: 1px solid #4b8be6;
  color: #fff;
  box-shadow:
    inset 2px 2px #6eb4ff,
    4px 5px #000;
  width: 126px;
  height: 183px;
  padding: 3px;
}
.hand-card.rarity-rare,
.hand-card.rarity-epic,
.hand-card.rarity-legendary {
  background: #1461d1;
}
.hand-card.playable {
  outline: 2px solid #74f6ed;
}
.hand-card.playable .card-cost {
  box-shadow:
    inset 2px 2px #ffd683,
    2px 2px #000;
}
.hand-card:hover,
.hand-card:focus-visible {
  transform: translateY(-24px);
  outline: 3px solid var(--lime);
}
.hand-card.selected {
  outline: 3px solid var(--pink);
  transform: translateY(-25px);
}
.card-title {
  font: 17px/0.9 VT323;
  letter-spacing: 0;
  text-align: left;
  display: flex;
  align-items: center;
  height: 29px;
  min-height: 29px;
  padding: 0 18px 1px 2px;
  text-shadow: 1px 2px #051831;
}
.card-art {
  height: 84px;
  margin: 0;
  border-width: 2px;
}
.card-ability {
  font: 13px/1 VT323;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #dcefff;
  letter-spacing: 0;
  padding: 2px 0;
}
.card-stats {
  background: #080e1c;
  bottom: 4px;
  left: 4px;
  right: 4px;
  height: 26px;
  padding: 2px;
  align-items: center;
}
.card-stats .attack,
.card-stats .health {
  background: #ec3548;
  border: 2px solid #030919;
  box-shadow: inset 1px 1px #ff9490;
  color: #fff;
  font: 22px/0.85 VT323;
  min-width: 21px;
  text-align: center;
  text-shadow: 1px 1px #522037;
  padding: 1px;
}
.card-stats .health {
  background: #278e53;
  box-shadow: inset 1px 1px #8cefaf;
  text-shadow: 1px 1px #18472a;
}
.card-stats .type {
  font: 11px VT323;
  letter-spacing: 0;
  color: #e2eafa;
}
.card-stats .spell-type {
  font-size: 14px;
  color: var(--cyan);
}
.opponent-hand i {
  background: url("/assets/megapont-card-back.png") center/100% 100% no-repeat;
  border: 0;
  image-rendering: pixelated;
  box-shadow: 2px 2px #000;
}
/* Pixel panels, opening hand and result dialogs. */
dialog {
  background: #0d1b2f;
  border: 4px solid #447eac;
  box-shadow:
    inset 3px 3px #1d3e5d,
    9px 9px #000;
}
dialog::backdrop {
  background: #000b;
  backdrop-filter: none;
}
dialog h2 {
  font: 23px/1.3 Silkscreen;
  letter-spacing: -1px;
  margin: 13px 0 18px;
  color: var(--cyan);
}
dialog p {
  font: 20px/1.25 VT323;
  color: #c6dcee;
}
dialog .rule {
  border-color: #355671;
}
.modal-close {
  font: 32px VT323;
  color: #b9d5ed;
}
.mulligan-card {
  background: #1461d1;
  border: 3px solid #050e25;
  padding: 4px;
  box-shadow:
    inset 2px 2px #69baff,
    4px 4px #000;
  color: #fff;
}
.mulligan-card > b {
  font: 22px/0.95 VT323;
  letter-spacing: 0;
  display: flex;
  align-items: center;
  text-align: left;
  padding: 0 17px 2px 4px;
  height: 40px;
  min-height: 40px;
  text-shadow: 2px 2px #062455;
}
.mulligan-card canvas {
  background: var(--yellow);
  border: 2px solid #05193a;
  display: block;
  height: 125px;
}
.mulligan-card p {
  font: 17px/1.05 VT323;
  min-height: 105px;
  background: #070e1b;
  color: #edf6ff;
  margin: 0;
  padding: 9px 7px;
  text-align: left;
}
.keep-label {
  font: 16px VT323;
  background: #0c274c;
  padding: 7px 0;
  color: var(--cyan);
  letter-spacing: 0;
}
.mulligan-card.replace {
  background: #9a345a;
  border-color: #ff739a;
  box-shadow:
    inset 2px 2px #f688a6,
    4px 4px #000;
}
.mulligan-card.replace .keep-label {
  background: #49213f;
  color: #ffa1bf;
}
.result-summary span {
  font: 15px VT323;
  color: #a7c1d9;
}
.result-summary b {
  font: 34px VT323;
}
.result-stat {
  font: 18px VT323;
}
.turn-banner {
  font: 23px/1.5 Silkscreen;
  background: #072135ef;
  border: 3px solid var(--cyan);
  box-shadow: 6px 6px #000;
  letter-spacing: 0;
  color: var(--cyan);
  white-space: nowrap;
}
.toast,
.global-toast {
  font: 19px/1.15 VT323;
  background: #0f2b46;
  border: 2px solid #579dd0;
  box-shadow: 4px 4px #000;
  color: #e1f4ff;
}
@media (min-width: 1600px) {
  .home-screen {
    min-height: 850px;
  }
  .splash-content {
    padding-top: 90px;
  }
  .game-title {
    width: 570px;
  }
  .collection-art {
    height: 160px;
  }
  .rarity-gem {
    top: 206px;
  }
}
@media (max-width: 1150px) {
  .left-panel h1 {
    font-size: 20px;
  }
  .game-layout,
  .player-dock {
    gap: 19px;
  }
  .splash-content h1.game-title {
    width: 490px;
  }
}
@media (max-width: 900px) {
  .workshop-heading h1 {
    font-size: 23px;
  }
  .workshop-actions .outline-button {
    font-size: 16px;
  }
  .workshop-actions .end-turn {
    min-width: 90px;
  }
  .splash-content h1.game-title {
    width: 460px;
  }
  .splash-vignette {
    background:
      linear-gradient(90deg, #03060bf5, #03060b99 35%, #03060b15 70%),
      linear-gradient(0deg, #03060b, transparent 45%);
  }
  .collection-art {
    height: 130px;
  }
  .rarity-gem {
    top: 176px;
  }
  .collection-card h3 {
    font-size: 19px;
  }
  .collection-card p {
    font-size: 16px;
    min-height: 107px;
  }
  .collection-faction {
    font-size: 12px;
    letter-spacing: 0;
  }
  .type-tabs button {
    font-size: 15px;
    padding: 7px 9px;
  }
  .cost-filters button {
    font-size: 17px;
  }
  .deck-name-label input {
    font-size: 24px;
  }
  .deck-total > strong {
    font-size: 27px;
  }
  .deck-play-wrap .end-turn {
    font-size: 9px;
  }
  .hand-card {
    width: 118px;
  }
  .hero-power div {
    font-size: 16px;
  }
  .action-row #hint {
    font-size: 16px;
  }
}
@media (max-width: 650px) {
  .topbar {
    gap: 8px;
  }
  .wordmark {
    width: 155px;
    height: 57px;
  }
  .menu-button {
    font: 13px VT323;
  }
  .icon-button {
    font-size: 19px;
  }
  .mode {
    font-size: 13px;
  }
  .home-screen {
    min-height: 770px;
  }
  .splash-content {
    padding-top: 27px;
    padding-bottom: 235px;
  }
  .splash-content h1.game-title {
    width: 360px;
    margin: 8px -8px 9px;
    max-width: calc(100% + 8px);
  }
  .splash-kicker {
    font-size: 8px;
    gap: 7px;
  }
  .splash-subtitle {
    font-size: 22px;
    line-height: 1.2;
    margin-bottom: 22px;
  }
  .splash-art {
    top: 100px;
    opacity: 0.9;
  }
  .splash-vignette {
    background:
      linear-gradient(90deg, #03060bf5, #03060b99 45%, #03060b20),
      linear-gradient(0deg, #03060b 10%, transparent 70%);
  }
  .play-button,
  .secondary-play {
    width: 298px;
    max-width: 100%;
  }
  .play-button > span:nth-child(2) {
    font-size: 10px;
  }
  .play-button small {
    font-size: 13px;
    letter-spacing: 0.3px;
  }
  .secondary-play {
    font-size: 10px;
  }
  .secondary-play > b {
    font-size: 18px;
  }
  .splash-chips {
    font-size: 12px;
    letter-spacing: 0.5px;
  }
  .loadout {
    min-width: 229px;
  }
  .loadout b {
    font-size: 21px;
  }
  .loadout small {
    font-size: 13px;
  }
  .home-bottom {
    font-size: 12px;
    letter-spacing: 0;
  }
  .workshop-heading h1 {
    font-size: 18px;
    letter-spacing: -1px;
  }
  .workshop-heading p {
    font-size: 18px;
  }
  .workshop-actions {
    gap: 9px;
  }
  .workshop-actions .outline-button {
    font-size: 14px;
  }
  .workshop-actions .end-turn {
    font-size: 10px;
    min-width: 78px;
  }
  .back-link {
    font-size: 15px;
  }
  .search-box input {
    font-size: 18px;
  }
  .collection-toolbar select {
    font-size: 16px;
    width: 112px;
  }
  .type-tabs button {
    font-size: 14px;
    padding: 6px 8px;
  }
  .cost-filters button {
    font-size: 18px;
  }
  .collection-count {
    font-size: 14px;
  }
  .collection-card h3 {
    font-size: 19px;
    height: 38px;
    min-height: 38px;
  }
  .collection-art {
    height: 134px;
  }
  .rarity-gem {
    top: 180px;
  }
  .collection-faction {
    font-size: 12px;
  }
  .collection-card p {
    font-size: 16px;
    min-height: 108px;
  }
  .collection-card .card-cost {
    font-size: 26px;
    width: 29px;
    height: 30px;
  }
  .collection-stats small {
    font-size: 11px;
  }
  .collection-stats {
    height: 38px;
    margin: 0;
  }
  .collection-stats b {
    font-size: 24px;
  }
  .collection-stats .spell-label {
    font-size: 14px !important;
  }
  .copy-control span {
    font-size: 17px;
  }
  .copy-control button {
    width: 40px;
  }
  .deck-tools button {
    font-size: 15px;
  }
  .deck-row > button:first-of-type {
    font-size: 20px;
  }
  .deck-sidebar {
    border-width: 2px;
  }
  .deck-play-wrap .end-turn {
    font-size: 10px;
  }
  .deck-play-wrap > span {
    font-size: 12px;
  }
  .left-panel h1 {
    font-size: 13px;
    letter-spacing: -1px;
    line-height: 1.4;
  }
  .hero-label {
    font-size: 16px;
  }
  .hero-label small {
    font-size: 12px;
  }
  .hero-vitals strong {
    font-size: 30px;
  }
  .health-caption {
    font-size: 12px;
  }
  .arena-name {
    font-size: 12px;
    letter-spacing: 0;
  }
  .floor-tag {
    font-size: 13px;
  }
  .round-info {
    font-size: 13px;
    letter-spacing: 0;
  }
  .round-info > b {
    font-size: 20px;
  }
  .round-info > span {
    font-size: 13px;
  }
  .orders-heading {
    font-size: 14px;
  }
  .orders-heading b {
    font-size: 17px;
  }
  .orders-heading > button {
    font-size: 13px;
  }
  .order-list > p {
    font-size: 15px;
  }
  .order-chip {
    min-width: 205px;
  }
  .order-label {
    font-size: 16px;
  }
  .order-label small {
    font-size: 14px;
  }
  .action-row #hint {
    font-size: 14px;
  }
  .end-turn {
    font-size: 10px;
    min-width: 114px;
    padding: 12px 9px;
  }
  .player-profile .eyebrow {
    font-size: 13px;
  }
  .player-health strong {
    font-size: 30px;
  }
  .player-health span {
    font-size: 13px;
  }
  .energy-readout b {
    font-size: 30px;
  }
  .energy-readout span {
    font-size: 14px;
  }
  .hero-power div {
    font-size: 14px;
  }
  .hero-power small {
    font-size: 12px;
  }
  .hero-power > b {
    font-size: 18px;
  }
  .hero-power > span {
    font-size: 23px;
  }
  .hand-card {
    width: 101px;
    height: 157px;
    padding: 2px;
  }
  .card-title {
    font-size: 15px;
    height: 27px;
    min-height: 27px;
    padding-right: 12px;
  }
  .card-art {
    height: 64px;
  }
  .card-ability {
    font-size: 11px;
    height: 22px;
  }
  .card-stats {
    height: 24px;
    left: 3px;
    right: 3px;
    bottom: 3px;
  }
  .card-stats .attack,
  .card-stats .health {
    font-size: 21px;
  }
  .card-stats .type {
    font-size: 10px;
  }
  .card-cost {
    width: 27px;
    height: 28px;
    font-size: 23px;
    right: -5px;
    top: -6px;
  }
  .hand-card:hover,
  .hand-card:focus-visible {
    transform: translateY(-15px);
  }
  .hand-card.selected {
    transform: translateY(-18px);
  }
  dialog {
    padding: 25px 20px;
    border-width: 3px;
  }
  dialog h2,
  .mulligan-modal h2 {
    font-size: 18px;
    line-height: 1.25;
  }
  dialog p,
  .mulligan-modal > div > p {
    font: 18px/1.2 VT323;
  }
  .mulligan-cards {
    gap: 8px;
    margin: 22px -11px;
  }
  .mulligan-card {
    padding: 3px;
    width: 32%;
  }
  .mulligan-card > b {
    font: 17px/0.95 VT323;
    height: 38px;
    min-height: 38px;
    padding-left: 1px;
    padding-right: 9px;
  }
  .mulligan-card canvas {
    height: 81px;
  }
  .mulligan-card p {
    font: 14px/1.05 VT323;
    min-height: 124px;
    padding: 7px 4px;
  }
  .mulligan-card .card-cost {
    font-size: 22px;
    width: 25px;
    height: 26px;
  }
  .keep-label {
    font-size: 13px;
    padding: 7px 0;
  }
  .mulligan-modal .end-turn {
    font-size: 9px;
  }
  .result-actions .outline-button {
    font-size: 15px;
  }
  .turn-banner {
    font-size: 15px;
    max-width: 95%;
    padding: 13px 17px;
  }
  .toast,
  .global-toast {
    font-size: 18px;
  }
  .mobile-detail {
    font: 17px VT323;
    background: #0d2138;
    border-color: #315d85;
  }
  .bottom-line {
    font-size: 11px;
    letter-spacing: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .hand-card:hover,
  .hand-card:focus-visible,
  .hand-card.selected,
  .play-button:active,
  .end-turn:active,
  .secondary-play:active {
    transform: none;
  }
}
/* Keep the compact mobile loadout editor readable after the font change. */
@media (max-width: 650px) {
  .deck-sidebar {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
  .deck-total > strong {
    font: 26px VT323;
  }
  .deck-total small {
    font: 18px VT323;
  }
  .deck-total > span {
    font: 12px/1 VT323;
    max-width: 55px;
  }
  .deck-breakdown {
    font-size: 12px;
    flex-wrap: wrap;
    gap: 3px 8px;
  }
  .deck-list {
    grid-template-columns: minmax(0, 1fr);
  }
  .deck-row {
    height: 33px;
  }
  .deck-row .row-cost {
    font-size: 20px;
    width: 28px;
  }
  .deck-row > button:last-child {
    width: 28px;
  }
  .deck-tools {
    grid-column: 1/3;
  }
  .deck-tools button {
    font-size: 16px;
    padding: 9px;
  }
  .deck-play-wrap {
    grid-column: 1/3;
  }
  .deck-play-wrap .end-turn {
    font-size: 11px;
    padding: 13px;
  }
  .deck-play-wrap > span {
    font-size: 13px;
  }
  .hero-power div {
    letter-spacing: 0;
  }
}
@media (min-width: 651px) {
  .card-title {
    height: 32px;
    min-height: 32px;
  }
  .card-art {
    height: 81px;
  }
}
/* Named legendary cards retain their complete titles in every card size. */
.collection-card.long-name h3 {
  font-size: 15px;
  line-height: 1.1;
}
.hand-card.long-name .card-title {
  font-size: 14px;
  line-height: 1;
}
.mulligan-card.long-name > b {
  font-size: 17px;
  line-height: 1;
}
.detail-card .collection-card.long-name h3 {
  font-size: 19px;
}
@media (max-width: 650px) {
  .hand-card.long-name .card-title {
    font-size: 12px;
    line-height: 1;
  }
  .mulligan-card.long-name > b {
    font-size: 12px;
    line-height: 1.05;
  }
}
