/* v12.45: overdraw burn (a card drawn into a full hand flies out of the deck, is revealed and burns away beside that hand) */
.burnc{position:absolute;z-index:9500;pointer-events:none;will-change:transform}
.burnc .burnin{position:relative;border-radius:9px;overflow:hidden;box-shadow:0 10px 28px rgba(0,0,0,.65),0 0 0 1px rgba(255,200,120,.35)}
.burnc .burnin>.card{position:absolute;left:0;top:0;margin:0!important;pointer-events:none;animation:none!important;box-shadow:none}
.burnc .burnbk{position:absolute;inset:0;z-index:3}
.burnc .burnbk img{width:100%;height:100%;object-fit:cover;display:block;border-radius:9px}
.burnc .burnedge{position:absolute;z-index:5;left:-12%;right:-12%;height:15%;bottom:-12%;transform:translateY(50%);opacity:0;
  background:radial-gradient(ellipse 60% 50% at 50% 55%,rgba(255,250,214,1) 0%,rgba(255,196,80,.95) 22%,rgba(246,92,22,.75) 52%,rgba(190,30,0,0) 78%);
  mix-blend-mode:screen;filter:blur(1.5px)}
.burnc .burnchar{position:absolute;z-index:4;left:0;right:0;height:26%;bottom:-30%;opacity:0;
  background:linear-gradient(to top,rgba(28,10,2,.92) 0%,rgba(70,28,6,.55) 38%,rgba(120,60,20,.18) 70%,transparent 100%);mix-blend-mode:multiply}
.burnc .burnash{position:absolute;z-index:6;width:5px;height:4px;border-radius:50%;opacity:0;
  background:radial-gradient(circle,#fff1b8 0%,#ffb347 45%,rgba(255,90,20,.0) 75%);box-shadow:0 0 6px rgba(255,150,40,.9)}
.burnc .burnlbl{position:absolute;left:50%;transform:translateX(-50%);display:flex;flex-direction:column;align-items:center;gap:1px;
  min-width:150px;max-width:220px;padding:5px 12px 6px;border-radius:10px;white-space:nowrap;opacity:0;
  background:linear-gradient(180deg,rgba(46,20,10,.94),rgba(22,10,6,.94));border:1px solid rgba(255,170,80,.6);
  box-shadow:0 6px 18px rgba(0,0,0,.6),0 0 14px rgba(255,120,30,.35) inset;color:#ffe9c2;text-align:center;line-height:1.15}
.burnc.you .burnlbl{bottom:calc(100% + 10px)}
.burnc.rival .burnlbl{top:calc(100% + 10px)}
.burnc .burnlbl .bl-k{display:flex;align-items:center;gap:5px;font-size:11px;letter-spacing:.14em;text-transform:uppercase;color:#ffb35c}
.burnc .burnlbl .bl-k svg{width:13px;height:13px;stroke:#ff9a3c}
.burnc .burnlbl .bl-n{font-size:15px;font-weight:700;color:#fff3d6;max-width:200px;overflow:hidden;text-overflow:ellipsis}
.burnc .burnlbl .bl-w{font-size:10.5px;color:#d9b48a;opacity:.9}
html.adapt .burnc .burnlbl{min-width:120px;padding:3px 9px 4px}
html.adapt .burnc .burnlbl .bl-n{font-size:13px}
/* history tile of a burned card */
#hist .hx.k-burn .hxp{filter:sepia(.7) brightness(.8) saturate(1.3)}
#hist .hx.k-burn .hxk{background:radial-gradient(circle,#ff8a2a,#a32a06)}

/* ---------- v12.45: Table & Card Backs, redesigned ----------
   A fixed-size panel that never scrolls as a whole: header (title + language), a two-column body (arenas | card backs with the big
   preview), each grid in its own framed pane that scrolls inside clean fade masks, and a footer whose options and Done are always shown. */
#setmodal .modal.setm{box-sizing:border-box;width:min(1180px,calc(100vw - 32px));max-width:none;height:min(860px,calc(100vh - 28px));max-height:none;overflow:hidden;
  display:flex;flex-direction:column;padding:22px 30px 18px;text-align:left}
#setmodal .modal.setm::before{inset:8px;border-radius:2px}
#setmodal .setm .close{top:14px;right:18px}
#setmodal .setm .sm-head{flex:none;display:flex;align-items:center;justify-content:space-between;gap:18px;padding:0 40px 12px 6px;border-bottom:1px solid rgba(207,162,74,.3)}
#setmodal .setm .sm-head h2{margin:0;padding:3px 0 2px;font-size:clamp(20px,calc(1.6vh + 12px),30px);line-height:1.35;text-align:left}
#setmodal .setm .sm-lang{display:flex;align-items:center;gap:12px;flex:none}
#setmodal .setm .sm-lang h3{margin:0;padding:0;border:0;font-size:12px;letter-spacing:.16em;text-transform:uppercase;opacity:.85}
#setmodal .setm .langrow{margin:0}
#setmodal .setm .sm-body{flex:1 1 auto;min-height:0;display:grid;grid-template-columns:minmax(0,.9fr) minmax(0,1.3fr);gap:26px;padding:14px 2px 12px}
#setmodal .setm .sm-sec{min-height:0;min-width:0;display:flex;flex-direction:column}
#setmodal .setm .sm-sec>h3{flex:none;margin:0 0 9px;padding:2px 0 5px;justify-content:flex-start;flex-wrap:wrap;row-gap:2px;line-height:1.45}
#setmodal .setm .sm-sec>h3 .cbn{font-family:var(--f-body);font-style:italic;font-size:12.5px;letter-spacing:.02em;text-transform:none;opacity:.8}
#setmodal .setm .sm-pane{flex:1 1 auto;min-height:0;min-width:0;position:relative;display:flex;border-radius:10px;overflow:hidden;
  background:linear-gradient(180deg,rgba(0,0,0,.28),rgba(0,0,0,.16));box-shadow:inset 0 0 0 1px rgba(207,162,74,.24),inset 0 10px 22px rgba(0,0,0,.32)}
#setmodal .setm .sm-pane>.setrow,#setmodal .setm .sm-pane>.cbgrid{flex:1 1 auto;min-width:0;margin:0!important;max-height:none!important;box-sizing:border-box;overflow-y:auto;overflow-x:hidden;
  -webkit-mask-image:linear-gradient(to bottom,transparent 0,#000 12px,#000 calc(100% - 12px),transparent 100%);mask-image:linear-gradient(to bottom,transparent 0,#000 12px,#000 calc(100% - 12px),transparent 100%);
  scrollbar-width:thin;scrollbar-color:#a67a26 transparent;align-content:start}
#setmodal .setm #set-arenas{--tw:118px;display:flex;flex-wrap:wrap;justify-content:center;align-items:flex-start;align-content:flex-start;gap:14px 10px;padding:18px 16px!important;justify-content:stretch}
#setmodal .setm #set-arenas .setopt.ar{width:calc(var(--tw) + 10px)!important;box-sizing:border-box;min-height:min-content!important;flex:none;margin:0;padding:5px 5px 7px!important;display:flex;flex-direction:column;align-items:stretch;gap:7px;
  font-size:10.5px;line-height:1.3;white-space:normal;overflow-wrap:anywhere;background:rgba(0,0,0,.18)}
#setmodal .setm #set-arenas .setopt.ar .th{width:var(--tw)!important;height:calc(var(--tw) * .5625)!important;aspect-ratio:auto;display:block;flex:none;margin:0 auto;background-size:cover;background-position:center}
#setmodal .setm #set-arenas .setopt.ar .nm{display:block;text-align:center;line-height:1.25;min-height:3.75em}   /* three lines reserved: EN and ES tiles keep one size */
#setmodal .setm .cbpick{flex:1 1 auto;min-height:0;display:flex;gap:18px;align-items:stretch}
#setmodal .setm .cbprev{flex:0 0 clamp(140px,14vw,200px);min-width:0;display:flex;flex-direction:column;align-items:center;text-align:center;padding-top:4px}
#setmodal .setm .cbprev .pv{width:100%;height:auto;aspect-ratio:3/4;max-width:206px;margin:0 auto 10px;flex:none}
#setmodal .setm .cbprev b{max-width:100%;line-height:1.2;overflow-wrap:anywhere}
#setmodal .setm .cbprev small{max-width:100%;overflow-wrap:anywhere}
#setmodal .setm #set-backs.cbgrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:10px;padding:18px 16px!important}
#setmodal .setm .cbgrid .setopt.cb{align-items:flex-start;min-height:106px;height:auto;padding:7px;background:rgba(0,0,0,.24)}
#setmodal .setm .cbgrid .setopt.cb .tx{flex:1 1 auto;min-width:0;padding-right:16px}
#setmodal .setm .cbgrid .setopt.cb .tx b{overflow-wrap:anywhere}
#setmodal .setm .cbgrid .setopt.cb .tx small{display:block;-webkit-line-clamp:unset;overflow:visible;overflow-wrap:anywhere;line-height:1.28}
#setmodal .setm .sm-foot{flex:none;display:flex;align-items:center;gap:20px;padding:12px 4px 0;border-top:1px solid rgba(207,162,74,.3)}
#setmodal .setm .sm-opts{flex:1 1 auto;min-width:0;display:flex;flex-direction:column;align-items:flex-start;gap:5px}
#setmodal .setm .sm-opts .rvopt{margin:0;justify-content:flex-start;text-align:left;flex-wrap:wrap;row-gap:2px}
#setmodal .setm .sm-opts .rvopt .small{margin-left:4px}
#setmodal .setm .sm-note{margin:0;flex:0 1 auto;max-width:34%;font-size:12.5px;line-height:1.3;opacity:.75;text-align:right}
#setmodal .setm .sm-foot .primary{margin:0;flex:none;min-width:150px}
/* phone landscape (Android layout) */
html.adapt #setmodal .modal.setm{width:calc(100vw - 20px);height:calc(100vh - var(--safe-top,0px) - var(--safe-bottom,0px) - 12px);max-height:none;overflow:hidden;padding:10px 16px 10px}
html.adapt #setmodal .setm .close{top:6px;right:10px}
html.adapt #setmodal .setm .sm-head{padding:0 36px 6px 2px;gap:10px}
html.adapt #setmodal .setm .sm-head h2{font-size:17px}
html.adapt #setmodal .setm .sm-lang h3{display:none}
html.adapt #setmodal .setm .langopt{padding:4px 10px;min-width:64px;font-size:12px}
html.adapt #setmodal .setm .sm-body{gap:14px;padding:7px 0 6px}
html.adapt #setmodal .setm .sm-sec>h3{font-size:12.5px;margin-bottom:5px;padding-bottom:3px}
html.adapt #setmodal .setm .sm-sec>h3 .cbn{font-size:11px}
html.adapt #setmodal .setm #set-arenas{--tw:84px;gap:12px 8px;padding:16px 12px!important}
html.adapt #setmodal .setm #set-arenas .setopt.ar{font-size:9.5px;gap:5px}
html.adapt #setmodal .setm .cbpick{gap:10px}
html.adapt #setmodal .setm .cbprev{flex-basis:92px}
html.adapt #setmodal .setm .cbprev .pv{margin-bottom:6px}
html.adapt #setmodal .setm .cbprev b{font-size:12px}
html.adapt #setmodal .setm .cbprev small{display:none}
html.adapt #setmodal .setm #set-backs.cbgrid{grid-template-columns:repeat(auto-fill,minmax(168px,1fr));gap:8px;padding:16px 12px!important}
html.adapt #setmodal .setm .cbgrid .setopt.cb{min-height:98px}
html.adapt #setmodal .setm .cbgrid .setopt.cb .th{flex-basis:46px;width:46px;height:62px}
html.adapt #setmodal .setm .cbgrid .setopt.cb .tx b{font-size:10.5px}
html.adapt #setmodal .setm .cbgrid .setopt.cb .tx small{font-size:10.5px}
html.adapt #setmodal .setm .sm-foot{padding-top:6px;gap:12px}
html.adapt #setmodal .setm .sm-opts{gap:2px}
html.adapt #setmodal .setm .sm-opts .rvopt{font-size:12.5px}
html.adapt #setmodal .setm .sm-opts .rvopt .small{font-size:11px}
html.adapt #setmodal .setm .sm-note{display:none}
html.adapt #setmodal .setm .sm-foot .primary{min-width:96px;padding:6px 16px}
.burnc.side .burnlbl{left:calc(100% + 12px);top:50%;bottom:auto;transform:translateY(-50%);align-items:flex-start;text-align:left}
