@import url("/public/assets/fonts/fonts.css");
:root {
  font-family: "Manrope", sans-serif;
  color: #e8ebdf;
  background: #142526;
  font-synthesis: none;
  --muted: #96aaa5;
  --gold: #eccc83;
  --line: #ffffff12;
  --panel: #203333;
  --card-color: #8aac95;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input {
  font: inherit;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
  color: inherit;
}
button {
  border: 0;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.4;
}
button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 3px solid #f3d38c;
  outline-offset: 4px;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  transition:
    transform 0.15s,
    background 0.2s,
    filter 0.2s;
}
button:not(:disabled):active {
  transform: translateY(2px);
}
.shell {
  display: flex;
  min-height: 100vh;
  background: radial-gradient(ellipse at 80% 0, #2b42403d, transparent 55%);
}
.sidebar {
  width: 238px;
  flex-shrink: 0;
  background: #112324;
  border-right: 1px solid var(--line);
  padding: 40px 24px 24px;
  display: flex;
  flex-direction: column;
  position: fixed;
  inset: 0 auto 0 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: "Russo One", sans-serif;
  font-size: 22px;
  letter-spacing: -0.8px;
}
.brand-crown {
  font-family: Georgia;
  font-size: 42px;
  color: var(--gold);
  filter: drop-shadow(0 3px 0 #80653a);
}
.brand-light {
  color: var(--gold);
}
.brand small {
  display: block;
  font-family: "Manrope";
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 2.9px;
  margin-top: 6px;
  color: #899e98;
}
.season-label {
  font-size: 9px;
  letter-spacing: 1.5px;
  color: var(--gold);
  margin: 48px 0 23px;
}
.season-label span {
  display: block;
  color: #6d8782;
  font-size: 8px;
  margin-top: 6px;
  letter-spacing: 1.4px;
}
.sidebar nav {
  display: grid;
  gap: 8px;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 14px;
  background: transparent;
  border-radius: 8px;
  text-align: left;
  padding: 14px 16px;
  font-size: 13px;
  font-weight: 700;
  color: #91a8a1;
  position: relative;
}
.nav-item > span {
  font-family: Georgia;
  font-size: 23px;
  width: 25px;
  text-align: center;
}
.nav-item.active {
  background: #d6bd7918;
  color: #efdaab;
}
.nav-item.active:before {
  position: absolute;
  content: "";
  left: -24px;
  height: 23px;
  width: 3px;
  background: #dfc17b;
  border-radius: 0 2px 2px 0;
}
.nav-item:hover {
  background: #ffffff08;
}
.nav-item b {
  margin-left: auto;
  border-radius: 4px;
  background: #e6c47d;
  color: #253632;
  padding: 2px 6px;
  font-size: 10px;
}
.sidebar-bottom {
  margin-top: auto;
}
.local-badge {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 10px;
  color: #6b8d80;
  margin: 30px 12px 10px;
}
.local-badge i,
.hero-tag i,
footer i {
  width: 5px;
  height: 5px;
  background: #87b897;
  border-radius: 50%;
  display: inline-block;
}
.version {
  font-size: 8px;
  color: #57736f;
  letter-spacing: 2px;
  margin: 22px 15px 0;
}
.shell main {
  margin-left: 238px;
  width: calc(100% - 238px);
}
.topbar {
  height: 98px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
}
.profile {
  display: flex;
  align-items: center;
  gap: 12px;
}
.avatar {
  width: 43px;
  height: 47px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #436d70, #304c57);
  border: 1px solid #6d9793;
  border-radius: 12px 12px 17px 17px;
  color: #d9dcb9;
  font: 27px Georgia;
}
.profile strong {
  font-size: 13px;
}
.profile small {
  display: block;
  font-size: 10px;
  color: #819c92;
  margin-top: 5px;
}
.profile small span {
  margin: 0 7px;
  color: #d9c382;
}
.currencies {
  display: flex;
  gap: 12px;
}
.currencies > span {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #10232380;
  border: 1px solid #ffffff0a;
  border-radius: 7px;
  padding: 9px 13px;
  font-size: 12px;
  min-width: 76px;
}
.currencies i {
  font: 19px Georgia;
  font-style: normal;
}
.trophy {
  color: #e0ba78;
}
.coin {
  color: #f4cc69;
  text-shadow: 0 0 0 #78603b;
}
.gem {
  color: #85c9c3;
}
.content {
  max-width: 1370px;
  padding: 34px 48px 26px;
  margin: auto;
}
.page-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 26px;
}
.eyebrow {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 2px;
  color: #aeb99b;
  margin: 0 0 10px;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1,
h2 {
  font-family: "Russo One", sans-serif;
  font-weight: 400;
}
h1 {
  font-size: 34px;
  letter-spacing: -0.6px;
  line-height: 1.2;
  margin-bottom: 0;
}
h3 {
  font-size: 16px;
  letter-spacing: -0.3px;
  margin: 0;
}
.pill {
  border: 1px solid #b5c4a82b;
  padding: 8px 12px;
  border-radius: 30px;
  font-size: 10px;
  color: #c1caaa;
}
.hero {
  height: 320px;
  border-radius: 13px;
  position: relative;
  overflow: hidden;
  border: 1px solid #adc0a038;
  box-shadow: 0 15px 50px #0002;
  background: #6b9c85;
}
.hero-image {
  position: absolute;
  inset: 0;
  background: url("/public/assets/arena.webp") center 49% / cover;
  transform: scale(1.015);
}
.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, #0e292cf2 0%, #183b3fbf 28%, #223c4420 65%),
    linear-gradient(0deg, #153c4040, transparent 50%);
}
.hero-copy {
  position: relative;
  z-index: 1;
  padding: 30px 35px;
}
.arena-label {
  font-size: 9px;
  letter-spacing: 1.6px;
  font-weight: 800;
  color: #d8d8a8;
  margin-bottom: 16px;
}
.arena-label span {
  margin: 0 8px;
}
.hero h2 {
  font-size: 37px;
  line-height: 1.15;
  letter-spacing: -0.6px;
  text-shadow: 0 3px 20px #10362f80;
  margin-bottom: 12px;
}
.hero p {
  font-size: 11px;
  line-height: 1.75;
  color: #c5d6c6;
  margin-bottom: 18px;
}
.hero-medal {
  display: flex;
  gap: 10px;
  align-items: center;
  color: #e9cf87;
  font: 30px Georgia;
}
.hero-medal > span {
  font: 7px "Manrope";
  letter-spacing: 1.7px;
  color: #b0c0a7;
}
.hero-medal strong {
  display: block;
  font-size: 11px;
  letter-spacing: 0;
  color: #e4e5cb;
  margin-top: 4px;
}
.hero-tag {
  position: absolute;
  right: 20px;
  bottom: 20px;
  background: #112f2ba8;
  backdrop-filter: blur(8px);
  padding: 8px 12px;
  border-radius: 5px;
  letter-spacing: 1.8px;
  font-size: 8px;
  color: #e7e5cd;
}
.hero-tag i {
  margin-right: 7px;
}
.home-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 22px;
  margin-top: 24px;
}
.panel {
  border: 1px solid var(--line);
  border-radius: 11px;
  background: linear-gradient(140deg, #243737, #1b3030);
  padding: 23px;
}
.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 19px;
}
.section-title > span {
  font-size: 7px;
  letter-spacing: 1.3px;
  color: #7c968c;
}
.text-button {
  background: none;
  font-size: 10px;
  font-weight: 600;
  padding: 3px 0;
  color: #d9c597;
}
.difficulty-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.difficulty {
  border: 1px solid #ffffff0c;
  border-radius: 7px;
  background: #172b2c;
  padding: 11px 4px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.difficulty.chosen {
  border-color: #cbb073;
  background: linear-gradient(150deg, #b8a06222, #bba76b08);
  box-shadow: inset 0 0 0 1px #b8a26820;
}
.difficulty-icon {
  font-family: Georgia;
  font-size: 29px;
  color: #8ba19b;
  line-height: 1.2;
}
.chosen .difficulty-icon {
  color: #e5c787;
}
.difficulty strong {
  font-size: 11px;
  margin-top: 5px;
}
.difficulty small {
  font-size: 7px;
  color: #8eaaa0;
  margin: 5px 0 8px;
  white-space: nowrap;
}
.difficulty-reward {
  font-size: 8px;
  color: #c6b788;
}
.battle-button {
  width: 100%;
  height: 51px;
  border-radius: 7px;
  background: linear-gradient(#f0d58f, #d4b169);
  color: #3b3625;
  font-family: "Russo One";
  font-size: 20px;
  box-shadow:
    0 4px 0 #8e723f,
    0 8px 20px #1115;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  margin: 18px 0 13px;
  text-shadow: 0 1px #fff5;
}
.battle-button:hover {
  filter: brightness(1.08);
}
.battle-button span:last-child {
  margin-left: auto;
  font-family: "Manrope";
  font-size: 20px;
}
.battle-button span:first-child {
  margin-right: auto;
}
.battle-button span {
  padding: 0 17px;
}
.match-note {
  display: flex;
  justify-content: space-between;
  font-size: 8px;
  color: #809990;
}
.mini-deck {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.game-card {
  background: #152b2d;
  border: 1px solid #768f8470;
  border-radius: 7px;
  position: relative;
  min-width: 0;
  padding: 0 0 8px;
  overflow: visible;
  box-shadow: 0 3px 0 #102021;
  transition:
    transform 0.2s,
    border-color 0.2s;
}
.game-card:hover {
  transform: translateY(-4px);
  border-color: #efd48d;
}
.card-art {
  height: 120px;
  display: grid;
  place-items: center;
  background:
    radial-gradient(
      ellipse at 50% 38%,
      color-mix(in srgb, var(--card-color), transparent 20%),
      #263f4770 75%
    ),
    linear-gradient(140deg, #5e7a71, #203c3d);
  border-radius: 6px 6px 0 0;
  overflow: hidden;
  position: relative;
}
.card-art:before,
.hand-art:before {
  content: "";
  position: absolute;
  width: 120%;
  height: 35%;
  background: #ffffff0b;
  transform: rotate(-40deg);
}
.card-art i {
  font: 68px Georgia;
  color: var(--card-color);
  text-shadow:
    0 3px 0 #263a40,
    0 6px 9px #0008;
  filter: drop-shadow(0 0 2px #f4e9b4);
  transform: rotate(-8deg);
  z-index: 1;
}
.cost {
  position: absolute;
  top: -5px;
  left: -5px;
  width: 23px;
  height: 27px;
  border-radius: 55% 55% 50% 50%;
  background: linear-gradient(#c791e4, #8558ac);
  border: 2px solid #e3baf0;
  box-shadow: 0 2px 4px #0006;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  z-index: 2;
}
.card-name {
  display: block;
  font-size: 11px;
  font-weight: 800;
  padding: 8px 2px 0;
}
.card-level {
  display: block;
  font-size: 8px;
  color: #b8c3a4;
  padding: 3px 1px 0;
}
.compact .card-art {
  height: 59px;
}
.compact .card-art i {
  font-size: 41px;
}
.compact .card-name {
  font-size: 8px;
  padding-top: 5px;
}
.compact .card-level {
  font-size: 7px;
  padding-top: 1px;
}
.compact {
  padding-bottom: 5px;
}
.compact .cost {
  width: 18px;
  height: 21px;
  font-size: 11px;
  top: -4px;
  left: -3px;
  border-width: 1.5px;
}
.deck-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 9px;
  color: #8da297;
  margin-top: 16px;
}
.deck-meta > span:first-child {
  color: #dbbee9;
  font-size: 12px;
  font-weight: 700;
}
.deck-meta small {
  font-size: 8px;
  color: #91a698;
  font-weight: 400;
  margin-left: 5px;
}
.elixir-dot {
  display: inline-block;
  background: #b17ace;
  border-radius: 60% 60% 50% 50%;
  width: 8px;
  height: 10px;
  margin-right: 5px;
}
.bottom-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 22px;
  margin-top: 20px;
}
.reward-banner,
.tip-card {
  border: 1px solid var(--line);
  background: #283a332e;
  border-radius: 9px;
  padding: 18px;
  display: flex;
  align-items: center;
  gap: 16px;
  text-align: left;
}
.reward-banner strong,
.tip-card strong {
  font-size: 11px;
  display: block;
}
.reward-banner small,
.tip-card small {
  font-size: 9px;
  color: #7f9c90;
  display: block;
  margin-top: 5px;
}
.reward-banner b {
  margin-left: auto;
  color: #b4b894;
}
.chest-icon {
  font: 33px Georgia;
  color: #dfba72;
  text-shadow: 0 3px #806345;
}
.tip-card > span {
  border: 1px solid #8b9e894d;
  color: #aec0a3;
  border-radius: 50%;
  height: 29px;
  width: 29px;
  display: grid;
  place-items: center;
}
footer {
  max-width: 1370px;
  margin: auto;
  display: flex;
  justify-content: space-between;
  padding: 0 48px 25px;
  font-size: 8px;
  color: #54786e;
}
footer span {
  letter-spacing: 1.4px;
  font-size: 7px;
}
footer i {
  margin-left: 7px;
  background: #678a71;
}
.deck-slots {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 14px;
}
.deck-slots .card-art {
  height: 90px;
}
.deck-slots .card-art i {
  font-size: 48px;
}
.deck-slots .card-name {
  font-size: 9px;
}
.collection {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 19px 14px;
}
.collection-title {
  margin-top: 32px;
}
.collection .card-art {
  height: 105px;
}
.collection .card-name {
  font-size: 9px;
}
.in-deck {
  border-color: #cfb577;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 25px;
}
.stats-grid .panel {
  display: flex;
  align-items: center;
  gap: 20px;
}
.stats-grid strong {
  font: 36px "Russo One";
  color: var(--gold);
}
.stats-grid span {
  color: var(--muted);
  font-size: 12px;
}
.arena-road {
  display: grid;
  gap: 12px;
  margin-bottom: 28px;
}
.road-stop {
  display: flex;
  align-items: center;
  padding: 25px;
  background: linear-gradient(90deg, #203537, #24393c);
  border: 1px solid var(--line);
  border-radius: 10px;
  gap: 25px;
  opacity: 0.55;
}
.road-stop.unlocked {
  opacity: 1;
  border-color: #d6ba7455;
  background: linear-gradient(100deg, #bca3681a, #25433b);
}
.road-emblem {
  font: 50px Georgia;
  color: var(--gold);
  width: 70px;
  text-align: center;
}
.road-stop h3 {
  font: 22px "Russo One";
  margin-bottom: 8px;
}
.road-stop p:not(.eyebrow) {
  margin: 0;
  font-size: 11px;
  color: var(--muted);
}
.road-stop > span:last-child {
  margin-left: auto;
  font-size: 10px;
  color: var(--gold);
}
.history-row {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  padding: 15px 0;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--muted);
}
.history-row strong {
  color: #d8a99c;
}
.win-text {
  color: #b2d29a !important;
}
.shop-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.treasure {
  text-align: center;
  padding: 35px;
}
.big-chest {
  font: 110px Georgia;
  color: #e1bc74;
  text-shadow: 0 5px #836943;
  line-height: 1.2;
  margin-bottom: 20px;
}
.treasure h2 {
  font-size: 24px;
}
.treasure p {
  font-size: 12px;
  line-height: 1.8;
  color: var(--muted);
}
.info-panel {
  margin-top: 25px;
}
.info-panel p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.9;
  margin: 15px 0;
}
.primary,
.secondary {
  padding: 13px 20px;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 800;
  width: 100%;
}
.primary {
  background: linear-gradient(#eed18d, #d4b372);
  color: #303a2c;
  box-shadow: 0 3px #927641;
}
.secondary {
  background: #ffffff08;
  border: 1px solid #ffffff15;
  color: #b7c9bd;
  margin-top: 12px;
}
.primary:hover {
  filter: brightness(1.07);
}
.muted {
  font-size: 12px;
  line-height: 1.7;
  color: var(--muted);
}
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: #061718c9;
  backdrop-filter: blur(8px);
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal {
  position: relative;
  background: linear-gradient(145deg, #2a4240, #192f30);
  border: 1px solid #b1be9455;
  border-radius: 16px;
  box-shadow: 0 30px 120px #0008;
  width: 480px;
  max-width: 100%;
  padding: 35px;
  text-align: center;
  max-height: 90dvh;
  overflow: auto;
}
.modal h2 {
  font-size: 27px;
  margin: 12px 0 20px;
}
.modal p {
  font-size: 12px;
  line-height: 1.8;
  color: #acbfb1;
}
.close {
  position: absolute;
  right: 12px;
  top: 9px;
  font-size: 25px;
  background: none;
  color: #a7b8a6;
}
.detail-art {
  height: 120px;
  width: 120px;
  border-radius: 22px;
  background: radial-gradient(circle, var(--card-color), #34514b);
  margin: 0 auto 20px;
  font: 82px Georgia;
  display: grid;
  place-items: center;
  color: var(--card-color);
  text-shadow: 0 3px 6px #13272d;
}
.card-stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
  font-size: 12px;
  color: #dac790;
  margin: 20px 0;
}
.replace-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.replace-grid button {
  background: #ffffff09;
  padding: 14px;
  border-radius: 7px;
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.replace-grid button span {
  font: 27px Georgia;
  color: var(--card-color);
}
.replace-grid small {
  margin-left: auto;
  color: #c9a0dc;
}
.field {
  display: block;
  text-align: left;
  font-size: 12px;
  color: var(--muted);
}
input[type="text"],
input:not([type]) {
  display: block;
  width: 100%;
  padding: 12px;
  background: #122727;
  color: #e6e7d2;
  border: 1px solid #63867a;
  border-radius: 6px;
  margin: 8px 0 18px;
}
.check {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  margin: 20px 0;
}
.check input {
  accent-color: #dabb78;
}
.button-row {
  display: flex;
  gap: 10px;
}
.rules {
  text-align: left;
  padding-left: 18px;
  font-size: 12px;
  line-height: 1.8;
  color: #c1d0c1;
}
.rules li {
  padding-left: 7px;
  margin-bottom: 12px;
}
.result-crown {
  font: 78px Georgia;
  color: #efcc78;
  filter: drop-shadow(0 4px #6f613c);
}
.result-score {
  font: 48px "Russo One";
  color: #9bdbec;
}
.result-score span {
  color: #8eaa9c;
}
.reward-line {
  display: flex;
  justify-content: center;
  gap: 25px;
  font-size: 16px;
  color: #eace86;
  margin: 30px 0;
}
.battle-screen {
  min-height: 100dvh;
  display: flex;
  justify-content: center;
  gap: 50px;
  padding: 22px;
  background: radial-gradient(ellipse at 50% 20%, #54745944, #112529 70%);
}
.battle-side,
.battle-right {
  width: 220px;
  align-self: center;
}
.battle-side .brand {
  margin-bottom: 65px;
  font-size: 20px;
}
.battle-side h1 {
  font-size: 34px;
  margin-bottom: 20px;
}
.battle-side > p:not(.eyebrow) {
  font-size: 14px;
  line-height: 1.8;
  color: #8ca697;
}
.battle-instructions {
  font-size: 11px;
  line-height: 3.3;
  color: #b3c6b5;
  margin: 35px 0;
}
.battle-instructions span {
  color: #cfb479;
  margin-right: 12px;
}
.battle-side > small {
  display: block;
  font-size: 9px;
  color: #688c7d;
  margin-top: 15px;
  text-align: center;
}
.battle-board {
  width: min(560px, calc((100dvh - 215px) * 0.7273));
  min-width: 320px;
  align-self: center;
  box-shadow: 0 15px 100px #0008;
  border: 3px solid #788b74;
  border-radius: 12px;
  overflow: hidden;
  background: #1a2e30;
}
.opponent-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: #293a39;
}
.opponent-icon {
  font: 28px Georgia;
  color: #edb08d;
}
.opponent-bar strong {
  font-size: 11px;
}
.opponent-bar small {
  font-size: 8px;
  color: #b49f8d;
  display: block;
  margin-top: 2px;
}
.timer {
  font: 24px "Russo One";
  margin-left: auto;
  color: #f3e5b8;
}
.arena-wrap {
  position: relative;
  line-height: 0;
}
canvas {
  display: block;
  width: 100%;
  height: auto;
  touch-action: none;
}
.battle-score {
  position: absolute;
  left: 50%;
  top: 49%;
  transform: translate(-50%, -50%);
  font: bold 14px "Manrope";
  background: #203b3edb;
  border: 1px solid #a6c2a377;
  border-radius: 7px;
  color: #ffdaa2;
  padding: 5px 10px;
  pointer-events: none;
  white-space: nowrap;
}
.phase {
  position: absolute;
  top: 42%;
  left: 0;
  right: 0;
  text-align: center;
  color: #ffe398;
  font: 12px "Russo One";
  text-shadow: 0 2px 5px #000;
  pointer-events: none;
}
.battle-hud {
  padding: 10px 13px 12px;
  background: linear-gradient(#294043, #182b30);
}
.hand-label {
  display: flex;
  justify-content: space-between;
  font-size: 7px;
  color: #aac0b4;
  margin-bottom: 9px;
  gap: 7px;
}
.hand {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 9px;
}
.hand-card {
  border: 2px solid #819c9a;
  border-radius: 6px;
  position: relative;
  padding: 0;
  background: #283d40;
  min-width: 0;
}
.hand-card.selected {
  border-color: #ffe397;
  box-shadow: 0 0 14px #f4d37f44;
  transform: translateY(-7px);
}
.hand-card.unaffordable {
  filter: saturate(0.3);
  opacity: 0.6;
}
.hand-art {
  height: 53px;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 50% 30%, var(--card-color), #29474d);
  color: var(--card-color);
  text-shadow: 0 2px 4px #182a32;
  font: 40px Georgia;
  position: relative;
  overflow: hidden;
}
.hand-card strong {
  font-size: 8px;
  display: block;
  padding: 4px 1px;
}
.hand-card small {
  position: absolute;
  right: 3px;
  top: 3px;
  font-size: 7px;
  color: #f5f2d4;
}
.hand-card .cost {
  width: 19px;
  height: 23px;
  font-size: 12px;
}
.elixir-row {
  display: flex;
  gap: 9px;
  align-items: center;
  margin-top: 10px;
  color: #dac0ef;
  font-weight: 800;
  font-size: 12px;
}
.elixir-number {
  font-size: 19px;
  width: 17px;
  text-align: center;
}
.elixir-track {
  position: relative;
  height: 14px;
  background: #14232d;
  border: 1px solid #74538b;
  border-radius: 4px;
  overflow: hidden;
  flex: 1;
}
.elixir-track > div {
  height: 100%;
  background: linear-gradient(#d3a1e8, #985ec5);
  transition: width 0.1s;
  box-shadow: inset 0 2px #e2c0f399;
}
.elixir-track i {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1px;
  background: #28203d80;
}
.battle-right h3 {
  font: 24px "Russo One";
  margin: 15px 0;
}
.battle-right > p {
  font-size: 13px;
  line-height: 1.8;
  color: #8da591;
}
.strategy-card {
  background: #d9c78709;
  border: 1px solid #b2b99a20;
  border-radius: 10px;
  margin: 30px 0;
  padding: 24px;
  font: 38px Georgia;
  color: #dcc28b;
}
.strategy-card strong {
  font: 12px "Manrope";
  display: block;
  margin: 15px 0 10px;
}
.strategy-card p {
  font: 11px/1.8 "Manrope";
  color: #8ca792;
  margin: 0;
}
.player-badge {
  font: 29px Georgia;
  color: #9fd6e4;
  display: grid;
  grid-template-columns: 35px 1fr;
  align-items: center;
}
.player-badge strong {
  font: 12px "Manrope";
  color: #d5e0cb;
}
.player-badge span {
  grid-column: 2;
  font: 9px "Manrope";
  color: #78998d;
  margin-top: 5px;
}
.mobile-pause {
  display: none;
  background: transparent;
  color: #e3d29f;
}
#toast {
  position: fixed;
  left: 50%;
  bottom: 30px;
  transform: translate(-50%, 15px);
  max-width: 90%;
  background: #ead294;
  color: #27392c;
  font-size: 12px;
  font-weight: 700;
  padding: 14px 22px;
  border-radius: 8px;
  box-shadow: 0 5px 25px #0006;
  opacity: 0;
  pointer-events: none;
  transition: 0.2s;
  z-index: 40;
}
#toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}
@media (min-width: 1600px) {
  .hero {
    height: 390px;
  }
  .hero-copy {
    padding: 42px;
  }
  .hero h2 {
    font-size: 45px;
  }
  .hero p {
    font-size: 14px;
  }
  .compact .card-art {
    height: 78px;
  }
  .difficulty {
    padding: 19px 8px;
  }
  .difficulty small {
    font-size: 9px;
  }
  .battle-button {
    margin-top: 23px;
  }
}
@media (max-width: 1200px) {
  .sidebar {
    width: 200px;
    padding-left: 18px;
    padding-right: 18px;
  }
  .brand {
    font-size: 19px;
  }
  .shell main {
    margin-left: 200px;
    width: calc(100% - 200px);
  }
  .content {
    padding: 28px;
  }
  .topbar {
    padding: 0 28px;
  }
  .home-grid {
    gap: 16px;
  }
  .panel {
    padding: 18px;
  }
  .section-title > span {
    display: none;
  }
  .difficulty small {
    font-size: 6px;
  }
  .deck-slots,
  .collection {
    grid-template-columns: repeat(4, 1fr);
  }
  .battle-screen {
    gap: 25px;
  }
  .battle-side,
  .battle-right {
    width: 180px;
  }
  .battle-side .brand {
    font-size: 16px;
  }
  .battle-side h1 {
    font-size: 27px;
  }
}
@media (max-width: 950px) {
  .sidebar {
    width: 76px;
    padding: 25px 10px;
  }
  .sidebar .brand > span:not(.brand-crown),
  .season-label,
  .sidebar-bottom .local-badge,
  .version {
    display: none;
  }
  .sidebar .brand {
    justify-content: center;
    margin-bottom: 40px;
  }
  .nav-item {
    font-size: 0;
    justify-content: center;
    padding: 13px 5px;
  }
  .nav-item > span {
    font-size: 26px;
  }
  .nav-item.active:before {
    left: -10px;
  }
  .nav-item b {
    position: absolute;
    right: 2px;
    top: 2px;
    font-size: 8px;
  }
  .shell main {
    margin-left: 76px;
    width: calc(100% - 76px);
  }
  .home-grid {
    grid-template-columns: 1fr 1fr;
  }
  .hero {
    height: 310px;
  }
  .hero-copy {
    padding: 28px;
  }
  .hero h2 {
    font-size: 33px;
  }
  .battle-right {
    display: none;
  }
  .bottom-grid {
    grid-template-columns: 1fr;
  }
  .tip-card {
    display: none;
  }
  .currencies {
    gap: 6px;
  }
  .currencies > span {
    padding: 7px 9px;
    min-width: 58px;
  }
  .battle-screen {
    gap: 35px;
  }
  .collection .card-art {
    height: 125px;
  }
}
@media (max-width: 700px) {
  .home-grid {
    grid-template-columns: 1fr;
  }
  .sidebar {
    inset: auto 0 0;
    width: 100%;
    height: 67px;
    flex-direction: row;
    padding: 0 12px;
    z-index: 10;
    background: #112324f5;
    backdrop-filter: blur(10px);
    border-top: 1px solid #ffffff15;
  }
  .sidebar .brand,
  .sidebar-bottom {
    display: none;
  }
  .sidebar nav {
    display: flex;
    justify-content: space-around;
    width: 100%;
    gap: 5px;
  }
  .nav-item {
    font-size: 9px;
    flex-direction: column;
    gap: 2px;
    width: 25%;
    padding: 5px;
  }
  .nav-item > span {
    font-size: 24px;
  }
  .nav-item.active:before {
    height: 2px;
    top: 0;
    width: 30px;
    left: calc(50% - 15px);
  }
  .shell main {
    width: 100%;
    margin: 0;
    padding-bottom: 70px;
  }
  .topbar {
    height: 77px;
    padding: 0 18px;
  }
  .profile {
    gap: 8px;
  }
  .avatar {
    width: 34px;
    height: 39px;
  }
  .profile strong {
    font-size: 11px;
  }
  .profile small {
    font-size: 8px;
  }
  .profile small span,
  .profile small {
    max-width: 130px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .currencies {
    gap: 4px;
  }
  .currencies > span {
    min-width: 0;
    padding: 5px 6px;
    gap: 4px;
    font-size: 10px;
  }
  .currencies i {
    font-size: 15px;
  }
  .content {
    padding: 23px 18px;
  }
  .page-title {
    margin-bottom: 20px;
  }
  .page-title .pill {
    font-size: 8px;
    padding: 7px 9px;
  }
  h1 {
    font-size: 28px;
  }
  .eyebrow {
    font-size: 8px;
    letter-spacing: 1.4px;
  }
  .hero {
    height: 300px;
  }
  .hero-image {
    background-position: 59% center;
  }
  .hero-shade {
    background: linear-gradient(90deg, #0c282eee, #13353d95 45%, #223c4420);
  }
  .hero-copy {
    padding: 25px;
  }
  .hero h2 {
    font-size: 31px;
  }
  .hero-tag {
    font-size: 6px;
    padding: 7px;
    bottom: 15px;
    right: 12px;
  }
  .home-grid {
    margin-top: 18px;
  }
  .difficulty small {
    font-size: 8px;
  }
  .difficulty {
    padding: 12px 5px;
  }
  .section-title > span {
    display: block;
    font-size: 6px;
  }
  .mini-deck {
    gap: 12px;
  }
  .compact .card-art {
    height: 78px;
  }
  .compact .card-name {
    font-size: 9px;
  }
  .compact .card-art i {
    font-size: 46px;
  }
  .panel {
    padding: 19px;
  }
  .bottom-grid {
    margin-top: 16px;
  }
  .reward-banner {
    padding: 15px;
  }
  .reward-banner small {
    font-size: 8px;
  }
  footer {
    padding: 0 18px 18px;
    font-size: 7px;
  }
  footer > span {
    display: none;
  }
  .collection,
  .deck-slots {
    gap: 15px 10px;
  }
  .collection .card-art,
  .deck-slots .card-art {
    height: 75px;
  }
  .collection .card-art i,
  .deck-slots .card-art i {
    font-size: 41px;
  }
  .collection .card-name,
  .deck-slots .card-name {
    font-size: 8px;
  }
  .card-level {
    font-size: 6px;
  }
  .shop-grid {
    grid-template-columns: 1fr;
  }
  .stats-grid {
    gap: 8px;
  }
  .stats-grid .panel {
    padding: 17px 6px;
    flex-direction: column;
    gap: 5px;
  }
  .stats-grid strong {
    font-size: 29px;
  }
  .stats-grid span {
    font-size: 10px;
  }
  .road-stop {
    padding: 18px 12px;
    gap: 12px;
  }
  .road-stop h3 {
    font-size: 17px;
  }
  .road-emblem {
    font-size: 33px;
    width: 35px;
  }
  .road-stop > span:last-child {
    font-size: 7px;
  }
  .road-stop .eyebrow {
    font-size: 6px;
  }
  .history-row {
    font-size: 9px;
    gap: 7px;
  }
  .modal {
    padding: 30px 22px;
  }
  .battle-side,
  .battle-right {
    display: none;
  }
  .battle-screen {
    padding: 0;
    min-height: 100dvh;
    align-items: center;
  }
  .battle-board {
    width: min(100vw, calc((100dvh - 200px) * 0.7273));
    min-width: 280px;
    border-radius: 0;
    border-width: 1px;
  }
  .mobile-pause {
    display: block;
  }
  .opponent-bar {
    padding: 7px 10px;
  }
  .opponent-bar strong {
    font-size: 10px;
  }
  .timer {
    font-size: 20px;
  }
  .battle-hud {
    padding: 7px 10px;
  }
  .hand-art {
    height: 47px;
  }
  .hand-card strong {
    font-size: 7px;
  }
  .elixir-row {
    margin-top: 7px;
  }
  .battle-screen .modal {
    margin-bottom: 20px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    transition: none !important;
    animation: none !important;
  }
}

.card-art,
.hand-art,
.detail-art {
  background-image: url("/public/assets/cards.webp");
  background-size: 400% 400%;
  background-position: var(--art-x) var(--art-y);
}
.card-art i {
  visibility: hidden;
}
.card-art:before,
.hand-art:before {
  display: none;
}
.hand-art,
.detail-art {
  color: transparent;
  text-shadow: none;
}
.profile[role="button"] {
  cursor: pointer;
}
.home-grid > *, .bottom-grid > *, .difficulty-options > * { min-width: 0; }
.difficulty small { white-space: normal; text-align: center; }
.card-art,.hand-art,.detail-art { background-image: none; position: relative; overflow: hidden; }
.portrait-atlas { position: absolute; width: 400%; max-width: none; height: auto; left: calc(var(--art-col) * -100%); top: 50%; transform: translateY(calc((var(--art-row) + .5) * -25%)); pointer-events: none; }

/* Keep the GPU surface and HUD aligned independently of backing resolution. */
#arena { aspect-ratio: 480 / 660; }
#arena-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
#arena-overlay[hidden] { display: none; }
