/* FASTPLAY — arena styling. Dark tavern, gilded frames, one loud clock. */

:root {
  --gold: #e0b464;
  --gold-soft: #f3d79a;
  --gold-dim: #7d5f2e;
  --ink: #100b08;
  --ink-2: #1a1210;
  --parchment: #f6e8cf;
  --blood: #cf4a3c;
  --mana: #3f9be0;
  --felt: #171210;
  --ok: #58b978;
  --ease: cubic-bezier(.2, .7, .3, 1);
}

* { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  color: var(--parchment);
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  background:
    radial-gradient(120% 80% at 50% -20%, #4a3524 0%, #251a14 38%, #100b08 70%, #070504 100%),
    #070504;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, .014) 0 1px, transparent 1px 3px),
    radial-gradient(60% 40% at 50% 0%, rgba(224, 180, 100, .10), transparent 70%);
  mix-blend-mode: screen;
}

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

button { font: inherit; color: inherit; }

/* ---------- top bar ---------- */

.topbar {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px clamp(12px, 3vw, 28px);
  border-bottom: 1px solid rgba(224, 180, 100, .14);
  background: linear-gradient(180deg, rgba(12, 8, 6, .86), rgba(12, 8, 6, .35));
  backdrop-filter: blur(6px);
}

.brand { display: flex; align-items: baseline; gap: 10px; min-width: 0; }

.brand-mark {
  width: 22px; height: 22px;
  color: var(--gold);
  align-self: center;
  filter: drop-shadow(0 0 8px rgba(224, 180, 100, .6));
}

.brand-name {
  font-size: clamp(15px, 1.5vw, 19px);
  font-weight: 700;
  letter-spacing: .18em;
  color: var(--gold-soft);
  text-shadow: 0 1px 0 #000, 0 0 18px rgba(224, 180, 100, .35);
}

.brand-sub {
  font-size: 11px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: rgba(246, 232, 207, .5);
  white-space: nowrap;
}

.topbar-actions { display: flex; gap: 8px; }

.ghost {
  padding: 7px 13px;
  border-radius: 999px;
  border: 1px solid rgba(224, 180, 100, .32);
  background: rgba(224, 180, 100, .06);
  color: var(--gold-soft);
  font-size: 12px;
  letter-spacing: .1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .18s var(--ease), border-color .18s var(--ease), transform .18s var(--ease);
}

.ghost:hover { background: rgba(224, 180, 100, .16); border-color: rgba(224, 180, 100, .6); transform: translateY(-1px); }
.ghost:active { transform: translateY(0); }

/* ---------- arena frame ---------- */

.arena {
  position: relative;
  z-index: 2;
  max-width: 1120px;
  margin: 0 auto;
  padding: clamp(8px, 1.4vh, 16px) clamp(10px, 2.4vw, 22px) 0;
  display: flex;
  flex-direction: column;
  gap: clamp(6px, 1vh, 12px);
}

.lane { display: flex; flex-direction: column; gap: clamp(5px, .8vh, 9px); }

.hud {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: clamp(8px, 1.6vw, 18px);
}

.player-lane .hud { grid-template-columns: auto 1fr; }

/* ---------- heroes ---------- */

.hero {
  position: relative;
  display: grid;
  place-items: center;
  width: clamp(72px, 8vw, 104px);
  aspect-ratio: 1;
  padding: 0;
  border-radius: 50%;
  border: 2px solid rgba(224, 180, 100, .55);
  background:
    radial-gradient(circle at 50% 30%, rgba(224, 180, 100, .22), rgba(20, 13, 10, .95) 70%),
    #120c09;
  cursor: pointer;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), border-color .18s var(--ease);
  box-shadow: 0 6px 22px rgba(0, 0, 0, .55), inset 0 0 24px rgba(0, 0, 0, .7);
}

.hero:hover { transform: translateY(-2px); }

.player-hero { border-color: rgba(88, 185, 120, .5); }
.player-hero .hero-glyph { color: #a9e3bd; }

.enemy-hero { border-color: rgba(207, 74, 60, .5); }
.enemy-hero .hero-glyph { color: #f0a79c; }

.hero-glyph {
  width: 54%;
  height: 54%;
  color: var(--gold-soft);
  opacity: .92;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .8));
}

.hero-keeper {
  position: absolute;
  bottom: -9px;
  left: 50%;
  transform: translateX(-50%);
  padding: 1px 8px;
  border-radius: 999px;
  font-size: 9.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  white-space: nowrap;
  color: #16100c;
  background: linear-gradient(180deg, var(--gold-soft), var(--gold-dim));
  box-shadow: 0 2px 8px rgba(0, 0, 0, .6);
}

.hero-hp {
  position: absolute;
  right: -6px;
  bottom: -6px;
  min-width: 30px;
  padding: 2px 7px;
  border-radius: 999px;
  font-size: clamp(13px, 1.4vw, 16px);
  font-weight: 700;
  line-height: 1.25;
  color: #fff;
  background: radial-gradient(circle at 40% 30%, #e8654f, #8e1f16 75%);
  border: 1px solid rgba(255, 220, 200, .45);
  box-shadow: 0 3px 10px rgba(0, 0, 0, .7);
}

.hero-hp.low { animation: hpPulse 1.2s ease-in-out infinite; }

@keyframes hpPulse {
  0%, 100% { box-shadow: 0 3px 10px rgba(0, 0, 0, .7), 0 0 0 rgba(207, 74, 60, 0); }
  50% { box-shadow: 0 3px 10px rgba(0, 0, 0, .7), 0 0 18px rgba(207, 74, 60, .9); }
}

.hero.targetable {
  border-color: var(--gold-soft);
  box-shadow: 0 0 0 3px rgba(224, 180, 100, .45), 0 0 26px rgba(224, 180, 100, .55);
  animation: targetPulse 1.1s ease-in-out infinite;
}

@keyframes targetPulse {
  0%, 100% { box-shadow: 0 0 0 2px rgba(224, 180, 100, .35), 0 0 18px rgba(224, 180, 100, .35); }
  50% { box-shadow: 0 0 0 4px rgba(224, 180, 100, .6), 0 0 30px rgba(224, 180, 100, .65); }
}

/* ---------- mana + deck ---------- */

.hud-meta { display: flex; flex-direction: column; gap: 5px; min-width: 0; }

.mana { display: flex; align-items: center; flex-wrap: wrap; gap: 3px; }

.crystal {
  width: clamp(9px, 1vw, 12px);
  aspect-ratio: 1;
  border-radius: 3px;
  transform: rotate(45deg);
  background: linear-gradient(160deg, rgba(63, 155, 224, .18), rgba(63, 155, 224, .06));
  border: 1px solid rgba(63, 155, 224, .35);
  box-shadow: inset 0 0 4px rgba(0, 0, 0, .6);
}

.crystal.full {
  background: linear-gradient(160deg, #a8e0ff, #2f7fc0 70%);
  border-color: #bfeaff;
  box-shadow: 0 0 10px rgba(63, 155, 224, .8), inset 0 0 4px rgba(255, 255, 255, .7);
}

.mana-label {
  margin-left: 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .06em;
  color: #9fd4ff;
}

.deck-count {
  font-size: 10.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(246, 232, 207, .45);
}

/* ---------- enemy hand ---------- */

.enemy-hand { display: flex; align-items: center; justify-content: flex-end; min-height: 26px; padding-right: 2px; }

.card-back {
  display: block;
  width: clamp(16px, 1.8vw, 22px);
  aspect-ratio: 5 / 7;
  margin-left: -8px;
  border-radius: 4px;
  transform: rotate(var(--tilt, 0deg));
  background:
    repeating-linear-gradient(45deg, rgba(224, 180, 100, .16) 0 2px, transparent 2px 5px),
    linear-gradient(160deg, #3a2a1c, #150e0a);
  border: 1px solid rgba(224, 180, 100, .4);
  box-shadow: 0 2px 8px rgba(0, 0, 0, .6);
}

/* ---------- board ---------- */

.board {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(5px, .8vw, 10px);
  min-height: clamp(84px, 12.5vh, 132px);
  padding: 6px clamp(6px, 1vw, 12px);
  border-radius: 16px;
  border: 1px solid rgba(224, 180, 100, .13);
  background:
    radial-gradient(80% 120% at 50% 0%, rgba(224, 180, 100, .07), transparent 70%),
    linear-gradient(180deg, rgba(24, 17, 13, .85), rgba(10, 7, 5, .9));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05), inset 0 -14px 30px rgba(0, 0, 0, .55);
}

.enemy-board { border-top-left-radius: 10px; border-top-right-radius: 10px; }
.player-board { border-bottom-left-radius: 10px; border-bottom-right-radius: 10px; }

.empty-slot {
  width: clamp(58px, 6.4vw, 84px);
  aspect-ratio: 3 / 4;
  border-radius: 9px;
  border: 1px dashed rgba(224, 180, 100, .12);
}

/* ---------- minions ---------- */

.minion {
  position: relative;
  display: flex;
  flex-direction: column;
  width: clamp(58px, 6.4vw, 84px);
  aspect-ratio: 3 / 4;
  padding: 0;
  border-radius: 10px;
  border: 1px solid rgba(224, 180, 100, .34);
  background: linear-gradient(180deg, #2a1e16, #120c09);
  overflow: hidden;
  cursor: pointer;
  transition: transform .16s var(--ease), box-shadow .16s var(--ease), border-color .16s var(--ease), filter .16s var(--ease);
  box-shadow: 0 6px 16px rgba(0, 0, 0, .5);
}

.minion:hover { transform: translateY(-3px); border-color: rgba(224, 180, 100, .7); }

.minion-art {
  display: grid;
  place-items: center;
  flex: 1 1 auto;
  background:
    radial-gradient(110% 80% at 50% 12%, hsl(var(--hue) 68% 40%), hsl(var(--hue) 55% 18%) 62%, hsl(var(--hue) 40% 9%) 100%);
}

.minion-art svg {
  width: 56%;
  height: 56%;
  color: hsl(var(--hue) 88% 84%);
  filter: drop-shadow(0 0 7px hsl(var(--hue) 90% 62% / .65));
}

.minion-name {
  padding: 2px 2px 3px;
  font-size: clamp(7.5px, .78vw, 9.5px);
  line-height: 1.1;
  letter-spacing: .02em;
  text-align: center;
  color: rgba(246, 232, 207, .82);
  background: linear-gradient(180deg, rgba(10, 7, 5, .2), rgba(10, 7, 5, .85));
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.minion-stats {
  position: absolute;
  left: 2px; right: 2px; top: 2px;
  display: flex;
  justify-content: space-between;
  pointer-events: none;
}

.minion-stats b {
  display: grid;
  place-items: center;
  min-width: 18px;
  height: 18px;
  padding: 0 3px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .9);
  box-shadow: 0 2px 6px rgba(0, 0, 0, .7);
}

.minion-stats .atk { background: radial-gradient(circle at 40% 30%, #ffd98a, #a5701c 80%); color: #201305; }
.minion-stats .hp { background: radial-gradient(circle at 40% 30%, #e8654f, #8e1f16 80%); }

.minion.taunt { border-color: rgba(224, 180, 100, .8); box-shadow: 0 0 0 1px rgba(224, 180, 100, .35), 0 6px 16px rgba(0, 0, 0, .55); }

.taunt-icon {
  position: absolute;
  right: 2px;
  bottom: 22px;
  width: 13px;
  height: 13px;
  color: var(--gold);
  opacity: .9;
}

.taunt-icon svg { width: 100%; height: 100%; }

.minion.tired { filter: saturate(.55) brightness(.82); }

.minion.enter { animation: minionEnter .34s var(--ease) both; }

@keyframes minionEnter {
  from { transform: translateY(-16px) scale(.86); opacity: 0; }
  to { transform: translateY(0) scale(1); opacity: 1; }
}

.minion.hurt { animation: minionHurt .34s ease; }

@keyframes minionHurt {
  0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, .9); filter: brightness(1.9); }
  100% { box-shadow: 0 6px 16px rgba(0, 0, 0, .5); filter: none; }
}

.minion.targetable {
  border-color: var(--gold-soft);
  animation: targetPulse 1.1s ease-in-out infinite;
}

.minion.selected {
  transform: translateY(-8px);
  border-color: var(--gold-soft);
  box-shadow: 0 0 0 2px rgba(224, 180, 100, .55), 0 10px 26px rgba(224, 180, 100, .35);
}

/* ---------- clock rail ---------- */

.vs {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  padding: 2px clamp(4px, 1vw, 10px);
}

.turn-flag {
  justify-self: start;
  padding: 5px 14px;
  border-radius: 999px;
  font-size: clamp(10px, 1.05vw, 12px);
  letter-spacing: .2em;
  text-transform: uppercase;
  color: #1a1108;
  background: linear-gradient(180deg, #f7e0ab, #c99843 70%, #a87c2e);
  box-shadow: 0 3px 14px rgba(224, 180, 100, .35), inset 0 1px 0 rgba(255, 255, 255, .6);
  transition: filter .2s var(--ease);
}

.turn-flag.theirs {
  color: rgba(246, 232, 207, .8);
  background: linear-gradient(180deg, #2a1d15, #150f0b);
  border: 1px solid rgba(207, 74, 60, .5);
  box-shadow: 0 3px 14px rgba(0, 0, 0, .6);
}

.timer {
  --p: 1;
  --tc: var(--gold);
  position: relative;
  display: grid;
  place-items: center;
  width: clamp(58px, 6vw, 76px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: conic-gradient(var(--tc) calc(var(--p) * 360deg), rgba(255, 255, 255, .07) 0);
  box-shadow: 0 6px 20px rgba(0, 0, 0, .6);
  transition: background .1s linear, opacity .3s var(--ease);
}

.timer::after {
  content: "";
  position: absolute;
  inset: 5px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 28%, #241a14, #0b0806 78%);
  box-shadow: inset 0 0 14px #000;
}

.timer-face { position: relative; z-index: 1; text-align: center; line-height: 1; }

.timer-num {
  font-size: clamp(20px, 2.4vw, 28px);
  font-weight: 700;
  color: var(--gold-soft);
  font-variant-numeric: tabular-nums;
  text-shadow: 0 0 16px rgba(224, 180, 100, .5);
}

.timer-label {
  font-size: 8px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: rgba(246, 232, 207, .45);
}

.timer.warn { --tc: #e08a3c; }
.timer.warn .timer-num { color: #ffc98a; }

.timer.crit { --tc: #d8443c; animation: critPulse .7s ease-in-out infinite; }
.timer.crit .timer-num { color: #ff8f80; text-shadow: 0 0 18px rgba(216, 68, 60, .9); }

@keyframes critPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.06); }
}

.timer.idle { opacity: .42; --tc: #6a5a44; }

.end-turn {
  justify-self: end;
  padding: 10px 20px;
  border-radius: 10px;
  border: 1px solid rgba(224, 180, 100, .55);
  background: linear-gradient(180deg, #f4ddaa, #c99843 55%, #93702a);
  color: #1a1108;
  font-size: clamp(11px, 1.1vw, 13px);
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .5), inset 0 1px 0 rgba(255, 255, 255, .7);
  transition: transform .16s var(--ease), box-shadow .16s var(--ease), filter .16s var(--ease);
}

.end-turn:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(224, 180, 100, .3); }
.end-turn:disabled { filter: grayscale(.85) brightness(.6); cursor: default; }

.end-turn.urgent { animation: critPulse .7s ease-in-out infinite; border-color: #ff9b7f; }

/* ---------- hand ---------- */

.hand {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  min-height: clamp(96px, 15vh, 150px);
  padding: 4px 6px 0;
  perspective: 900px;
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  width: clamp(76px, 8.6vw, 116px);
  aspect-ratio: 5 / 7;
  margin-left: clamp(-22px, -1.6vw, -12px);
  padding: 0;
  border-radius: 10px;
  border: 1px solid rgba(224, 180, 100, .42);
  background: linear-gradient(180deg, #2b1f16, #120c09 78%);
  overflow: hidden;
  cursor: pointer;
  transform-origin: 50% 130%;
  transform: rotate(var(--tilt, 0deg)) translateY(calc(var(--lift, 0) * 3px));
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), border-color .18s var(--ease), filter .18s var(--ease);
  box-shadow: 0 8px 20px rgba(0, 0, 0, .6);
}

.card:first-child { margin-left: 0; }

.card:hover {
  transform: rotate(0deg) translateY(-22px) scale(1.08);
  z-index: 20;
  box-shadow: 0 16px 34px rgba(0, 0, 0, .7), 0 0 0 1px rgba(224, 180, 100, .8);
  border-color: var(--gold-soft);
}

.card.selected {
  transform: rotate(0deg) translateY(-26px) scale(1.1);
  z-index: 22;
  border-color: var(--gold-soft);
  box-shadow: 0 0 0 2px rgba(224, 180, 100, .7), 0 18px 38px rgba(224, 180, 100, .3);
}

.card.dim { filter: brightness(.72) saturate(.8); }
.card.unplayable { filter: grayscale(.6) brightness(.66); }

.card-cost {
  position: absolute;
  top: 3px;
  left: 3px;
  z-index: 2;
  display: grid;
  place-items: center;
  min-width: 19px;
  height: 19px;
  padding: 0 4px;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 700;
  color: #06263c;
  background: radial-gradient(circle at 40% 30%, #bfeaff, #3f9be0 75%);
  border: 1px solid rgba(255, 255, 255, .8);
  box-shadow: 0 2px 6px rgba(0, 0, 0, .7);
}

.card-art {
  display: grid;
  place-items: center;
  flex: 0 0 46%;
  background:
    radial-gradient(110% 80% at 50% 15%, hsl(var(--hue) 70% 42%), hsl(var(--hue) 58% 20%) 60%, hsl(var(--hue) 42% 8%) 100%);
  border-bottom: 1px solid rgba(224, 180, 100, .3);
}

.card-art svg {
  width: 58%;
  height: 58%;
  color: hsl(var(--hue) 88% 85%);
  filter: drop-shadow(0 0 8px hsl(var(--hue) 92% 62% / .7));
}

.card-name {
  padding: 3px 4px 1px;
  font-size: clamp(9px, .82vw, 10.5px);
  font-weight: 700;
  line-height: 1.1;
  text-align: center;
  color: var(--gold-soft);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-text {
  padding: 0 5px 4px;
  font-size: clamp(7.5px, .68vw, 9px);
  line-height: 1.2;
  text-align: center;
  color: rgba(246, 232, 207, .68);
  overflow: hidden;
}

.card-stats {
  position: absolute;
  left: 3px; right: 3px; bottom: 3px;
  display: flex;
  justify-content: space-between;
  pointer-events: none;
}

.card-stats b {
  display: grid;
  place-items: center;
  min-width: 18px;
  height: 18px;
  font-size: 11px;
  font-weight: 700;
  border-radius: 999px;
  color: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .8);
}

.card-stats .atk { background: radial-gradient(circle at 40% 30%, #ffd98a, #a5701c 80%); color: #201305; }
.card-stats .hp { background: radial-gradient(circle at 40% 30%, #e8654f, #8e1f16 80%); }

.card-type {
  padding: 0 0 3px;
  font-size: 7.5px;
  letter-spacing: .18em;
  text-transform: uppercase;
  text-align: center;
  color: rgba(159, 212, 255, .7);
}

/* ---------- hint, log, toast ---------- */

.hint {
  position: relative;
  z-index: 2;
  margin: 4px auto 14px;
  max-width: 720px;
  padding: 0 16px;
  text-align: center;
  font-size: clamp(10px, 1vw, 12px);
  letter-spacing: .04em;
  color: rgba(246, 232, 207, .5);
}

.combat-log {
  position: fixed;
  z-index: 2;
  left: 14px;
  bottom: 14px;
  width: 220px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 10.5px;
  line-height: 1.45;
  color: rgba(246, 232, 207, .42);
  pointer-events: none;
}

.combat-log li {
  margin-top: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.combat-log li:first-child { color: rgba(246, 232, 207, .82); }

.toast {
  position: fixed;
  z-index: 60;
  left: 50%;
  bottom: 34px;
  padding: 9px 18px;
  border-radius: 999px;
  font-size: 12.5px;
  letter-spacing: .04em;
  color: #1a1108;
  background: linear-gradient(180deg, #f7e6bd, #d3a95c);
  border: 1px solid rgba(255, 255, 255, .5);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .6);
  transform: translate(-50%, 18px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s var(--ease), transform .2s var(--ease);
}

.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- overlays ---------- */

.overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 20px;
  background: radial-gradient(70% 60% at 50% 40%, rgba(10, 7, 5, .82), rgba(4, 3, 2, .94));
  backdrop-filter: blur(7px);
  animation: fadeIn .25s var(--ease) both;
}

.overlay.hidden { display: none; }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.panel {
  position: relative;
  width: min(560px, 100%);
  max-height: 90vh;
  overflow: auto;
  padding: clamp(22px, 3.4vw, 34px);
  border-radius: 18px;
  border: 1px solid rgba(224, 180, 100, .38);
  background:
    radial-gradient(120% 80% at 50% -10%, rgba(224, 180, 100, .12), transparent 60%),
    linear-gradient(180deg, #221710, #120c09 70%);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .8), inset 0 1px 0 rgba(255, 255, 255, .06);
  text-align: center;
  animation: panelIn .34s var(--ease) both;
}

@keyframes panelIn {
  from { transform: translateY(18px) scale(.97); opacity: 0; }
  to { transform: translateY(0) scale(1); opacity: 1; }
}

.panel-mark {
  width: 46px;
  height: 46px;
  margin: 0 auto 10px;
  color: var(--gold);
  filter: drop-shadow(0 0 16px rgba(224, 180, 100, .65));
}

.panel-mark svg { width: 100%; height: 100%; }
.panel-mark.lost { color: var(--blood); filter: drop-shadow(0 0 16px rgba(207, 74, 60, .6)); }

.panel h1 {
  margin: 0;
  font-size: clamp(26px, 4vw, 40px);
  letter-spacing: .22em;
  color: var(--gold-soft);
  text-shadow: 0 2px 0 #000, 0 0 30px rgba(224, 180, 100, .45);
}

.panel h2 {
  margin: 0 0 6px;
  font-size: clamp(22px, 3.2vw, 32px);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold-soft);
  text-shadow: 0 2px 0 #000, 0 0 24px rgba(224, 180, 100, .4);
}

.tagline { margin: 10px 0 18px; font-size: clamp(13px, 1.4vw, 15px); color: rgba(246, 232, 207, .72); }
.tagline strong { color: var(--gold-soft); }

.rules-list {
  margin: 0 0 22px;
  padding: 0;
  list-style: none;
  text-align: left;
  display: grid;
  gap: 9px;
}

.rules-list li {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 10px;
  align-items: start;
  font-size: clamp(12px, 1.3vw, 13.5px);
  line-height: 1.45;
  color: rgba(246, 232, 207, .78);
}

.rules-list span {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 700;
  color: #1a1108;
  background: linear-gradient(180deg, var(--gold-soft), var(--gold-dim));
}

.primary {
  width: 100%;
  padding: 14px 20px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, .35);
  background: linear-gradient(180deg, #f7e0ab, #c99843 58%, #93702a);
  color: #1a1108;
  font-size: clamp(13px, 1.4vw, 15px);
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 10px 26px rgba(0, 0, 0, .55), inset 0 1px 0 rgba(255, 255, 255, .7);
  transition: transform .16s var(--ease), box-shadow .16s var(--ease), filter .16s var(--ease);
}

.primary:hover { transform: translateY(-2px); box-shadow: 0 16px 34px rgba(224, 180, 100, .28); filter: brightness(1.05); }

.fineprint {
  margin: 14px 0 0;
  font-size: 10.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(246, 232, 207, .32);
}

/* ---------- responsive ---------- */

@media (max-width: 1180px) {
  .combat-log { display: none; }
}

@media (max-width: 760px) {
  .brand-sub { display: none; }
  .topbar { padding: 8px 12px; }
  .hud { gap: 8px; }
  .hero { width: 62px; }
  .hero-keeper { font-size: 7.5px; padding: 0 5px; bottom: -7px; }
  .hero-hp { min-width: 24px; font-size: 12px; padding: 1px 5px; }
  .board { min-height: 78px; gap: 4px; }
  .minion { width: clamp(46px, 13vw, 62px); }
  .minion-name { font-size: 6.5px; }
  .minion-stats b { min-width: 14px; height: 14px; font-size: 9px; }
  .card { width: clamp(66px, 19vw, 88px); margin-left: -14px; }
  .card-name { font-size: 8px; }
  .card-text { display: none; }
  .card-type { font-size: 6px; }
  .hand { min-height: 96px; }
  .end-turn { padding: 9px 12px; letter-spacing: .08em; font-size: 10px; }
  .turn-flag { font-size: 9px; padding: 4px 9px; letter-spacing: .12em; }
  .vs { gap: 6px; }
  .hint { font-size: 9.5px; margin-bottom: 10px; }
}

@media (max-width: 420px) {
  .timer { width: 52px; }
  .timer-num { font-size: 18px; }
  .minion { width: 44px; }
  .card { width: 62px; margin-left: -16px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
