@font-face { font-family: 'DotGothic16'; src: url('assets/fonts/DotGothic16-sub.woff2') format('woff2'); font-display: block; }
:root {
  --ink: #2a1c14;      
  --ink2: #4a3528;     
  --parch: #e9dcc0;    
  --parch-d: #d6c6a2;  
  --wood: #7a5230;
  --wood-d: #3a2416;
  --stone: #4a4248;
  --amber: #f0b03c;
  --amber-d: #9a5a12;
  --amber-l: #ffe3a0;
  --red: #c8402c;
  --red-l: #f5c9b8;
  --green: #4c8a3a;
  --blue: #4a7fa6;
  --purple: #7a5ab8;
  --white: #fff8ea;
  --cream: #e8d8b0;    
  --fs: 16px;
  --mid: 24px;
  --big: 32px;
  --H: 740px;
  font-family: 'DotGothic16', sans-serif;
  font-size: var(--fs);
  line-height: 1.25;
  color: var(--ink);
  -webkit-font-smoothing: none;
  -webkit-tap-highlight-color: transparent;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; overflow: hidden; }
body { background: #2a1c14 url('assets/ui/px-dither.png') repeat, url('assets/ui/px-wood.png') repeat; background-size: 2px 2px, 32px 32px; image-rendering: pixelated; }
#defs { position: absolute; width: 0; height: 0; overflow: hidden; }
b, strong, h1, h2, h3, summary { font-weight: normal; }
small { font-size: var(--fs); color: var(--ink2); }
img.px, svg.px-frame, .px-frame image { image-rendering: pixelated; }
button { font: inherit; color: var(--ink); cursor: pointer; background: var(--parch); border: 2px solid var(--ink); border-radius: 0; box-shadow: 2px 2px 0 var(--ink); padding: 6px 10px; touch-action: manipulation; }
button:active:not(:disabled) { transform: translate(2px, 2px); box-shadow: none; }
button.primary { background: var(--amber); border-color: var(--amber-d); box-shadow: 2px 2px 0 var(--amber-d); }
button.primary small { color: var(--ink2); }
button:disabled { cursor: default; background: var(--parch-d); color: var(--ink2); border-color: var(--ink2); box-shadow: 2px 2px 0 var(--ink2); }
button.primary:disabled { background: var(--parch-d); }
.busy button { pointer-events: none; }
svg text { font-family: inherit; }
.fxt { fill: #3a2f22; paint-order: stroke; stroke: #fff; stroke-width: 1.4px; }
.dmg { fill: var(--red); paint-order: stroke; stroke: #fff; stroke-width: 1.6px; }
.minus { fill: var(--ink2); paint-order: stroke; stroke: #fff; stroke-width: 1.2px; }
.plus { fill: var(--green); paint-order: stroke; stroke: #fff; stroke-width: 1.6px; }
.cnt { fill: var(--green); paint-order: stroke; stroke: #fff; stroke-width: 1.8px; }
.num { fill: #2b2622; paint-order: stroke; stroke: #fff; stroke-width: 1.4px; }
.ex { fill: var(--red); paint-order: stroke; stroke: #fff; stroke-width: 1.8px; }
.sfx { fill: #3a2f22; paint-order: stroke; stroke: #fff; stroke-width: 1.6px; font-style: italic; }
.sub { fill: #fff; }
svg .tag { fill: var(--amber-d); }
svg .card { fill: #3a2f22; }
svg .mult { fill: var(--amber-d); }
.stage-svg { display: block; width: 100%; height: 100%; }
.stage-svg.shake { animation: shake .22s steps(4) 1; }
@keyframes shake { 0%,100% { transform: translate(0,0); } 25% { transform: translate(-2px, 1px); } 50% { transform: translate(2px, -1px); } 75% { transform: translate(-1px, 1px); } }
