/* ---------- Gremios de Albion ---------- */
:root {
  --r-common: #7d7462;
  --r-uncommon: #3fd16b;
  --r-rare: #3d8bff;
  --r-epic: #b05cff;
  --r-legendary: #ffc531;
  --gc-w: 158px;
}
.hidden { display: none !important; }
.small { font-size: 12px; font-weight: 400; }
.gr-page { max-width: 1280px; margin: 0 auto; padding: 22px 14px 60px; }
.gr-busy .gr-page { cursor: progress; }
.gr-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 14px; flex-wrap: wrap; margin-bottom: 16px; }
.gr-head h1 { margin: 0; color: var(--accent); }
.gr-head p { margin: 4px 0 0; }
.gr-beta, .gr-free { font: 700 11px system-ui, sans-serif; letter-spacing: .08em; padding: 2px 7px; border-radius: 6px; background: #b8322f; color: #fff; vertical-align: middle; }
.gr-free { background: #2f6fc4; text-transform: uppercase; }
.gr-tabs { display: flex; border: 1px solid var(--slot-border); border-radius: 10px; overflow: hidden; flex-wrap: wrap; }
.gr-tab { padding: 9px 16px; border: 0; background: var(--slot); color: var(--text); font: 700 14px var(--display); cursor: pointer; }
.gr-tab.active { background: linear-gradient(#f3cd7a, #c08a2e); color: #2a1a05; }
.gr-tab span { opacity: .8; }
.gr-panel { background: linear-gradient(var(--panel), var(--bg-2)); border: 1px solid var(--slot-border); border-radius: 12px; padding: 16px; margin-bottom: 14px; }
.gr-panel h2, .gr-panel h3 { margin: 0 0 8px; color: var(--accent); }
.gr-panel h3 { font-size: 14px; }
.gr-note { margin: 0 0 12px; }
.gr-good { color: var(--good); }
.gr-bad { color: var(--bad); }
.gr-warn { color: var(--bad); margin: 8px 0 0; }

/* Selectores */
.gr-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.gr-chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border: 1px solid var(--slot-border); border-radius: 999px; background: var(--slot); color: var(--text); font: 600 13px system-ui, sans-serif; cursor: pointer; }
.gr-chip img { width: 22px; height: 22px; }
.gr-chip small { opacity: .7; }
.gr-chip:hover:not(:disabled) { border-color: var(--slot-hover); }
.gr-chip.active { background: linear-gradient(#f3cd7a, #c08a2e); border-color: #f7dc9c; color: #2a1a05; }
.gr-chip:disabled { opacity: .35; cursor: not-allowed; }
.gr-chip.e1:not(.active) { border-color: #3fd16b; } .gr-chip.e2:not(.active) { border-color: #3d8bff; }
.gr-chip.e3:not(.active) { border-color: #b05cff; } .gr-chip.e4:not(.active) { border-color: #ffc531; }
.gr-shop { display: grid; grid-template-columns: 1fr auto; gap: 18px; align-items: center; }
.gr-pickers { display: grid; gap: 12px; }
.gr-row { display: flex; gap: 22px; flex-wrap: wrap; }
.gr-buy { display: flex; gap: 16px; align-items: center; max-width: 440px; }
.gr-buy-info h2 { font-size: 18px; }
.gr-buy-info p { margin: 0 0 10px; }
.gr-pack { position: relative; width: 120px; height: 168px; border-radius: 10px; display: grid; place-items: center; align-content: center; gap: 4px;
  background: linear-gradient(160deg, #5a4630, #2a2117 60%, #15110c); border: 2px solid var(--accent); box-shadow: 0 6px 18px #000a, inset 0 0 22px #e0b35a33; }
.gr-pack.e1 { border-color: #3fd16b; box-shadow: 0 0 18px #3fd16b66, inset 0 0 22px #3fd16b33; }
.gr-pack.e2 { border-color: #3d8bff; box-shadow: 0 0 18px #3d8bff66, inset 0 0 22px #3d8bff33; }
.gr-pack.e3 { border-color: #b05cff; box-shadow: 0 0 18px #b05cff66, inset 0 0 22px #b05cff33; }
.gr-pack.e4 { border-color: #ffc531; box-shadow: 0 0 22px #ffc53188, inset 0 0 22px #ffc53144; }
.gr-pack img { width: 76px; height: 76px; filter: drop-shadow(0 3px 5px #000a); }
.gr-pack-tier { font: 800 20px var(--display); color: var(--accent-2); }
.gr-pack-name { font: 700 12px var(--display); color: var(--text); }

/* Piezas (cartas de equipo) */
.gr-pieces { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 8px; }
.gr-piece { position: relative; display: grid; justify-items: center; gap: 2px; padding: 8px 6px 6px; border-radius: 9px; background: var(--slot); color: var(--text);
  border: 2px solid var(--r-common); font: inherit; cursor: pointer; text-align: center; min-width: 0; }
.gr-piece.static { cursor: default; }
.gr-piece.r-uncommon { border-color: var(--r-uncommon); } .gr-piece.r-rare { border-color: var(--r-rare); }
.gr-piece.r-epic { border-color: var(--r-epic); } .gr-piece.r-legendary { border-color: var(--r-legendary); box-shadow: 0 0 10px #ffc53155; }
.gr-piece img { width: 62px; height: 62px; }
.gr-piece-tier { position: absolute; left: 5px; top: 3px; font: 800 11px var(--display); color: var(--accent-2); }
.gr-piece-name { font-size: 11px; line-height: 1.2; min-height: 26px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.gr-piece-value { display: inline-flex; align-items: center; gap: 4px; font-weight: 700; font-size: 12px; color: var(--accent-2); }
.gr-piece-value .coin { width: 12px; height: 12px; }
.gr-piece.selected { outline: 3px solid var(--accent-2); outline-offset: 1px; background: #4a3a22; }
.gr-piece.worn { opacity: .8; }
.gr-piece.starter { border-style: dashed; }
.gr-starter-icon { font-size: 34px; height: 62px; display: grid; place-items: center; }
.gr-worn { position: absolute; right: 3px; top: 3px; max-width: 80%; padding: 1px 5px; border-radius: 6px; background: #2f6fc4; color: #fff; font-size: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gr-piece.pop { animation: gr-pop .45s both; }
.gr-piece.win { box-shadow: 0 0 14px #8fcf6a88; }
@keyframes gr-pop { from { transform: scale(.3) rotate(-8deg); opacity: 0; } 70% { transform: scale(1.08); } to { transform: none; opacity: 1; } }
.gr-bar { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 12px; }
.gr-total { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--accent-2); }
.gr-actions { display: flex; gap: 8px; justify-content: flex-end; align-items: center; flex-wrap: wrap; margin-top: 12px; }
.gr-actions .muted { margin-right: auto; }

/* Carta de personaje */
.gr-cards, .gr-field, .gr-hand { display: flex; flex-wrap: wrap; gap: 10px; }
.gr-card { position: relative; width: var(--gc-w); flex: none; display: flex; flex-direction: column; gap: 3px; padding: 8px 8px 6px; border-radius: 10px;
  background: linear-gradient(170deg, #3d3020, #241c12); border: 2px solid var(--slot-border); box-shadow: 0 3px 10px #0008; transition: transform .12s, box-shadow .12s, border-color .12s; }
.gr-card.pick, .gr-card.can, .gr-card.target { cursor: pointer; }
.gr-card.pick:hover, .gr-card.can:hover { transform: translateY(-3px); border-color: var(--slot-hover); }
.gr-card.can { border-color: #8fcf6a; box-shadow: 0 0 10px #8fcf6a55; }
.gr-card.target { border-color: #3d8bff; box-shadow: 0 0 12px #3d8bff88; }
.gr-card.chosen { border-color: var(--accent-2); box-shadow: 0 0 14px #ffd98acc; transform: translateY(-6px); }
.gr-card.attacking { border-color: #e0553a; box-shadow: 0 0 14px #e0553aaa; }
.gr-card.dim { opacity: .6; }
.gr-card.tapped { filter: saturate(.55) brightness(.8); transform: rotate(4deg); }
.gr-card.tapped.chosen { transform: rotate(4deg) translateY(-6px); }
.gr-cost { position: absolute; left: -7px; top: -7px; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; z-index: 2;
  background: radial-gradient(circle at 35% 30%, #fff, #c9d3dc 45%, #7c8894); color: #1b2229; font: 800 15px var(--display); border: 2px solid #4a5560; }
.gr-info { position: absolute; right: 4px; top: 4px; width: 20px; height: 20px; border-radius: 50%; border: 1px solid var(--slot-border); background: #0006; color: var(--muted);
  font: italic 700 12px Georgia, serif; cursor: pointer; z-index: 2; padding: 0; }
.gr-info:hover { color: var(--accent-2); border-color: var(--accent); }
.gr-class { position: absolute; right: 28px; top: 4px; font-size: 14px; }
.gr-card-name { font: 700 12px var(--display); color: var(--accent-2); padding: 0 22px 0 18px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gr-card-art { position: relative; height: 62px; display: grid; place-items: center; border-radius: 6px; background: radial-gradient(circle, #5a4630, #1e1811); }
.gr-card-art img { width: 58px; height: 58px; }
.gr-status { position: absolute; left: 3px; bottom: 2px; display: flex; gap: 3px; font-size: 13px; }
.gr-status i { font-style: normal; background: #000a; border-radius: 5px; padding: 0 3px; }
.gr-card-kw { display: flex; flex-wrap: nowrap; gap: 3px; height: 17px; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; }
.gr-card-kw::-webkit-scrollbar { display: none; }
.gr-card-kw span { padding: 0 5px; border-radius: 5px; background: #e0b35a26; border: 1px solid #e0b35a55; color: var(--accent-2); font-size: 10px; font-weight: 700; }
/* Todas las cartas miden lo mismo: el texto tiene un alto fijo (vacío si no hay efecto) y se desplaza si no cabe. */
.gr-card-text { font-size: 10.5px; line-height: 1.28; color: #d8c8a8; height: 96px; overflow-y: auto; overflow-x: hidden; flex: none;
  scrollbar-width: thin; scrollbar-color: #8a6a3c transparent; overscroll-behavior: contain; }
.gr-card-text::-webkit-scrollbar { width: 4px; } .gr-card-text::-webkit-scrollbar-thumb { background: #8a6a3c; border-radius: 2px; }
.gr-card-text p { margin: 0 0 2px; }
.gr-card-gear { display: flex; gap: 1px; justify-content: center; }
.gr-card-gear img { width: 14px; height: 14px; }
.gr-card-gear img.starter { opacity: .45; }
.gr-noslot { width: 14px; text-align: center; color: var(--muted); font-size: 10px; }
.gr-stats { display: flex; justify-content: space-between; align-items: center; font: 800 14px var(--display); margin-top: 2px; }
.gr-stats .atk { color: #ffb37a; } .gr-stats .hp { color: #9fe08a; } .gr-stats .hp.hurt { color: #ff8c7a; } .gr-stats .shd { color: #9cc7ff; font-size: 12px; }
.gr-tag { position: absolute; left: 50%; top: 52px; transform: translateX(-50%); max-width: 96%; padding: 1px 7px; border-radius: 7px; background: #2f6fc4; color: #fff; font-size: 10px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; z-index: 3; }
.gr-tag.atk { background: #b8322f; }
.gr-helmet { position: absolute; right: 4px; top: 28px; width: 24px; height: 24px; border-radius: 50%; border: 1px solid var(--accent); background: #2a2117; cursor: pointer; padding: 0; font-size: 13px; z-index: 3; }
.gr-helmet:hover { background: var(--accent); }
.gr-card.big { --gc-w: 230px; width: 230px; cursor: default; transform: none; }
.gr-card.big .gr-card-name { font-size: 15px; }
.gr-card.big .gr-card-art { height: 96px; } .gr-card.big .gr-card-art img { width: 90px; height: 90px; }
.gr-card.big .gr-card-text { font-size: 12.5px; height: 150px; }
.gr-card.big .gr-card-kw span { font-size: 12px; }
.gr-card.big .gr-card-gear img { width: 20px; height: 20px; }
.gr-card.big .gr-stats { font-size: 19px; }
.gr-card.big .gr-info { display: none; }

/* Ventanas: detalle de carta y editor de personaje */
.modal.gr-modal { max-width: 640px; width: calc(100vw - 24px); text-align: left; max-height: calc(100vh - 24px); overflow: auto; }
.modal.gr-modal.wide { max-width: 980px; }
.gr-detail { display: flex; gap: 18px; flex-wrap: wrap; align-items: flex-start; }
.gr-detail-info { flex: 1; min-width: 220px; }
.gr-detail-info h2 { margin: 0 0 6px; }
.gr-detail-info ul { margin: 0 0 10px; padding-left: 18px; gap: 3px; font-size: 13px; }
.gr-detail-gear { list-style: none; padding-left: 0 !important; }
.gr-editor { display: grid; grid-template-columns: 240px 1fr; gap: 16px; align-items: start; }
.gr-editor-card { display: grid; gap: 10px; justify-items: center; }
.gr-rename { display: grid; gap: 4px; font-size: 12px; color: var(--muted); width: 100%; }
.gr-rename input { padding: 7px 9px; border-radius: 7px; border: 1px solid var(--slot-border); background: var(--bg); color: var(--text); font: inherit; }
.gr-slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px; margin-bottom: 12px; }
.gr-slot { display: flex; align-items: center; gap: 7px; padding: 5px 7px; border-radius: 8px; border: 1px solid var(--slot-border); background: var(--slot); color: var(--text); cursor: pointer; text-align: left; font: inherit; min-width: 0; }
.gr-slot img { width: 34px; height: 34px; flex: none; opacity: .55; }
.gr-slot.own img { opacity: 1; }
.gr-slot .gr-noslot { width: 34px; font-size: 18px; }
.gr-slot span { display: grid; min-width: 0; }
.gr-slot b { font-size: 12px; color: var(--accent-2); }
.gr-slot small { font-size: 10.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gr-slot.active { border-color: var(--accent-2); background: #4a3a22; }
.gr-options h4 { margin: 0 0 8px; color: var(--accent); }
.gr-options .gr-pieces { max-height: 300px; overflow: auto; padding: 4px; }

/* Partida */
.gr-difficulties { display: flex; gap: 10px; flex-wrap: wrap; margin: 12px 0; }
.gr-difficulty { display: grid; gap: 3px; padding: 12px 18px; min-width: 190px; border-radius: 10px; border: 1px solid #f7dc9c; background: linear-gradient(#f3cd7a, #c08a2e); color: #2a1a05; cursor: pointer; text-align: left; font: inherit; }
.gr-difficulty b { font: 800 17px var(--display); }
.gr-difficulty span { font-size: 12px; }
.gr-difficulty:hover { filter: brightness(1.1); }
.gr-rules summary { cursor: pointer; color: var(--accent); font-weight: 700; }
.gr-rules ul { padding-left: 20px; display: grid; gap: 5px; }
.gr-keywords { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 4px 16px; font-size: 13px; }
.gr-keywords p { margin: 0; }
.gr-board { display: grid; gap: 10px; }
.gr-side { border: 1px solid var(--slot-border); border-radius: 12px; padding: 10px; display: grid; gap: 10px; }
.gr-side.enemy { background: linear-gradient(#3a1f1a, #1e1811); }
.gr-side.mine { background: linear-gradient(#1e1811, #1f2e1c); }
.gr-field { min-height: 120px; align-items: flex-start; justify-content: center; padding: 6px 2px; }
.gr-player { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; font-weight: 600; }
.gr-pname { font: 700 15px var(--display); color: var(--accent-2); margin-right: auto; }
.gr-standard { font-size: 17px; }
.gr-standard b { color: #ff9f8a; font-size: 21px; }
.gr-side.mine .gr-standard b { color: #9fe08a; }
.gr-mid { text-align: center; font: 700 15px var(--display); color: var(--accent-2); padding: 2px 8px; }
.gr-result { font-size: 24px; }
.gr-result.you { color: var(--good); } .gr-result.enemy { color: var(--bad); }
.gr-controls { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; position: sticky; bottom: 8px; z-index: 5; padding: 8px; border-radius: 12px; background: #15110cdd; border: 1px solid var(--slot-border); }
.gr-surrender { margin-left: auto; }
.gr-empty { color: var(--muted); margin: auto; text-align: center; }
.gr-hand-title, .gr-loot h4, .gr-log-box h4 { margin: 4px 0; color: var(--accent); font-size: 14px; }
.gr-hand { justify-content: center; padding: 8px 2px; }
.gr-loot { border: 1px dashed var(--accent); border-radius: 10px; padding: 8px 10px; }
.gr-loot-list { display: flex; gap: 6px; flex-wrap: wrap; }
.gr-loot-piece { display: grid; justify-items: center; padding: 4px 6px; border-radius: 8px; border: 2px solid var(--slot-border); background: var(--slot); color: var(--text); cursor: pointer; font: 700 11px system-ui, sans-serif; }
.gr-loot-piece img { width: 40px; height: 40px; }
.gr-loot-piece small { color: var(--muted); }
.gr-loot-piece.chosen { border-color: var(--accent-2); box-shadow: 0 0 10px #ffd98aaa; }
.gr-loot-piece:disabled { opacity: .5; cursor: not-allowed; }
.gr-log { max-height: 240px; overflow: auto; padding: 8px 10px; border-radius: 10px; background: #0f0c08; border: 1px solid var(--slot-border); font-size: 12.5px; }
.gr-log p { margin: 1px 0; color: #cdbd9c; }
.gr-log p.mine { color: #b9e3a8; } .gr-log p.theirs { color: #f0b3a6; }
.gr-log p.new { font-weight: 700; }
.gr-log-turn { margin: 6px 0 2px; color: var(--accent); font: 700 11px var(--display); border-top: 1px solid #5a463055; padding-top: 4px; }

@media (max-width: 820px) {
  :root { --gc-w: 132px; }
  .gr-shop { grid-template-columns: 1fr; }
  .gr-editor { grid-template-columns: 1fr; }
  .gr-card-text { font-size: 10px; height: 86px; }
  .gr-field, .gr-hand, .gr-cards { gap: 7px; }
  .gr-surrender { margin-left: 0; }
}
@media (max-width: 460px) {
  :root { --gc-w: 112px; }
  .gr-card { padding: 6px 5px 4px; }
  .gr-card-art { height: 48px; } .gr-card-art img { width: 44px; height: 44px; }
  .gr-card-text { height: 74px; font-size: 9px; }
  .gr-card-gear img { width: 10px; height: 10px; }
  .gr-stats { font-size: 12px; }
  .gr-tag { top: 40px; }
  .gr-player { gap: 8px; font-size: 12px; }
}

/* ==========================================================================
   Sobres: tienda y apertura. Copia adaptada de public/css/sobres.css (los Sobres del casino),
   con el prefijo gp- en todas las clases para no depender de aquella hoja.
   ========================================================================== */
:root { --card-w: 150px; }
.gp-small { font-size: 12px; }
.gp-bar { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px 26px; margin-bottom: 16px; }
.gp-bar-title { display: block; font: 800 14px var(--display); color: var(--accent-2); letter-spacing: 1px; margin-bottom: 6px; }
.gp-bar-help { flex-basis: 100%; }
.gp-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--tierc, #888); box-shadow: 0 0 6px var(--tierc, transparent); }

/* ---------- Sobre ---------- */
.gp-pack {
  --pc: #9aa0a6;
  position: relative;
  width: 132px;
  height: 196px;
  border-radius: 6px;
  background:
    linear-gradient(115deg, transparent 30%, #ffffff40 45%, transparent 60%) no-repeat,
    linear-gradient(160deg, color-mix(in srgb, var(--pc), #fff 25%), var(--pc) 45%, color-mix(in srgb, var(--pc), #000 45%));
  background-size: 250% 100%, 100% 100%;
  animation: foil 3.5s ease-in-out infinite;
  box-shadow: inset 0 0 0 2px #ffffff30, 0 10px 20px #000a;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: #fff;
  text-shadow: 0 1px 3px #000;
  overflow: visible;
}
@keyframes foil { 0%, 100% { background-position: 150% 0, 0 0; } 50% { background-position: -50% 0, 0 0; } }
/* Bordes dentados (sellado) arriba y abajo */
.gp-pack .gp-crimp {
  position: absolute;
  left: 0;
  right: 0;
  height: 14px;
  background: color-mix(in srgb, var(--pc), #000 25%);
  --zig: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / 10px 100%;
}
.gp-pack .gp-crimp.gp-top { top: -6px; border-radius: 4px 4px 0 0; -webkit-mask: var(--zig); mask: var(--zig); transform: scaleY(-1); }
.gp-pack .gp-crimp.gp-bottom { bottom: -6px; -webkit-mask: var(--zig); mask: var(--zig); }
.gp-pack .gp-pack-tier {
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  font: 800 14px var(--display);
  padding: 1px 10px;
  border-radius: 10px;
  background: #0007;
  border: 1px solid #fff6;
}
.gp-pack img { width: 84px; height: 84px; object-fit: contain; filter: drop-shadow(0 4px 6px #000a); margin-top: 18px; }
.gp-pack .gp-pack-name { font: 800 12px var(--display); text-align: center; padding: 0 8px; line-height: 1.15; }
.gp-pack .gp-pack-cards { font-size: 10px; opacity: .85; }
.gp-pack.gp-light { color: #222; text-shadow: none; }

/* Tienda */
.gp-pack-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.gp-pack-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 16px 8px 12px;
  border-radius: 14px;
  border: 1px solid var(--slot-border);
  background: linear-gradient(var(--panel), var(--bg-2));
  color: var(--text);
  font: inherit;
  cursor: pointer;
  transition: transform .2s, box-shadow .2s;
}
.gp-pack-card:hover { transform: translateY(-6px) rotate(-1deg); box-shadow: 0 0 26px color-mix(in srgb, var(--pc) 50%, transparent), 0 12px 24px #000a; }
.gp-pack-card.gp-selected { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent), 0 0 26px #e0b35a66; }
.gp-pack-card:disabled { opacity: .45; cursor: not-allowed; }
.gp-pack-price { display: flex; align-items: center; gap: 6px; font-weight: 800; font-size: 17px; }
.gp-pack-best { font-size: 11px; color: var(--muted); }

.gp-pack-detail {
  margin-top: 22px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 24px;
  align-items: center;
  padding: 20px;
  border-radius: 16px;
  border: 1px solid var(--slot-border);
  background: linear-gradient(var(--panel), var(--bg-2));
  animation: detail-in .35s ease-out;
}
@keyframes detail-in { from { opacity: 0; transform: translateY(14px); } }
.gp-pack-detail-art .gp-pack { transform: scale(1.15); margin: 14px 18px; }
.gp-pack-detail-info h2 { margin: 0 0 4px; color: var(--accent-2); }
.gp-odds { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; }
.gp-odd { display: flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 20px; background: #00000040; font-size: 12px; }
.gp-odd i { width: 10px; height: 10px; border-radius: 50%; background: var(--rc, #888); box-shadow: 0 0 6px var(--rc, transparent); }
.gp-count-picker { display: inline-flex; margin: 6px 12px 0 0; border: 1px solid var(--slot-border); border-radius: 10px; overflow: hidden; vertical-align: middle; }
.gp-count-btn { padding: 8px 18px; border: 0; border-right: 1px solid var(--slot-border); background: var(--slot); color: var(--text); font: 700 15px var(--display); cursor: pointer; }
.gp-count-btn:last-child { border-right: 0; }
.gp-count-btn.gp-active { background: linear-gradient(#f3cd7a, #c08a2e); color: #2a1a05; }
.gp-buy-btn { margin-top: 6px; font-family: var(--display); letter-spacing: 1px; }

/* ---------- Carta ---------- */
.gp-r-uncommon { --rc: var(--r-uncommon); }
.gp-r-rare { --rc: var(--r-rare); }
.gp-r-epic { --rc: var(--r-epic); }
.gp-r-legendary { --rc: var(--r-legendary); }
.gp-tcard {
  --tc: #9aa0a6;
  position: relative;
  width: var(--card-w);
  aspect-ratio: 5 / 7;
  perspective: 900px;
  flex: none;
}
.gp-tcard-inner {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  transition: transform .45s cubic-bezier(.3, 1.3, .5, 1);
}
.gp-tcard.gp-flipped .gp-tcard-inner { transform: rotateY(180deg); }
.gp-tcard .gp-face { position: absolute; inset: 0; border-radius: 9px; backface-visibility: hidden; overflow: hidden; }
/* Reverso estándar */
.gp-tcard .gp-back {
  background:
    radial-gradient(circle at 50% 50%, #0000 0 28%, #0000 29%),
    repeating-linear-gradient(45deg, #5a1218 0 8px, #6d1820 8px 16px);
  border: 3px solid #d9a441;
  box-shadow: inset 0 0 0 3px #3a0a0e, inset 0 0 20px #000a;
  display: grid;
  place-items: center;
}
.gp-tcard .gp-back::before {
  content: '';
  width: 56%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: url('/img/logo.webp') center / cover;
  border: 3px solid #d9a441;
  box-shadow: 0 0 12px #000;
}
/* Cara */
.gp-tcard .gp-front {
  transform: rotateY(180deg);
  border: 3px solid var(--tc);
  background: radial-gradient(circle at 50% 35%, color-mix(in srgb, var(--tc) 25%, #2a2117), #15100a 75%);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 8% 6% 6%;
}
.gp-tcard .gp-front img { width: 78%; aspect-ratio: 1; object-fit: contain; filter: drop-shadow(0 4px 6px #000a); }
.gp-tcard .gp-c-name { font-size: 11px; line-height: 1.15; text-align: center; color: #f3e6c8; height: 2.3em; overflow: hidden; margin-top: 2%; }
.gp-tcard .gp-c-value { margin-top: auto; display: flex; align-items: center; gap: 4px; font-weight: 800; font-size: 13px; color: #fff; }
.gp-tcard .gp-c-value .coin { width: 12px; height: 12px; }
.gp-tcard .gp-c-tier {
  position: absolute;
  top: 5px;
  left: 5px;
  padding: 0 6px;
  border-radius: 8px;
  font: 800 11px var(--display);
  color: #fff;
  background: color-mix(in srgb, var(--tc), #000 40%);
  border: 1px solid var(--tc);
}
/* Brillo de rareza, como los minerales de Albion */
.gp-tcard[class*="gp-r-"]:not(.gp-r-common).gp-flipped .gp-front { box-shadow: inset 0 0 18px color-mix(in srgb, var(--rc) 60%, transparent); }
.gp-tcard[class*="gp-r-"]:not(.gp-r-common).gp-flipped::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 12px;
  pointer-events: none;
  box-shadow: 0 0 14px 3px var(--rc), 0 0 30px 6px color-mix(in srgb, var(--rc) 55%, transparent);
  animation: rarity-glow 1.8s ease-in-out infinite;
}
@keyframes rarity-glow { 50% { box-shadow: 0 0 8px 2px var(--rc), 0 0 18px 4px color-mix(in srgb, var(--rc) 40%, transparent); } }
.gp-tcard.gp-r-legendary.gp-flipped .gp-front::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 35%, #fff6 50%, transparent 65%);
  background-size: 250% 100%;
  animation: foil 2.2s linear infinite;
}

/* ---------- Mesa de apertura ---------- */
.gp-stage {
  position: relative;
  min-height: 560px;
  padding: 14px;
  border-radius: 18px;
  background:
    radial-gradient(ellipse at 50% 60%, #2d4a2a, #16241a 60%, #0b120d),
    #12190f;
  border: 8px solid #5b3a1c;
  box-shadow: inset 0 0 60px #000c, 0 16px 40px #000c;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
}
.gp-revealed {
  --card-w: 74px;
  width: 100%;
  min-height: 112px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  padding: 6px;
  border-radius: 12px;
  background: #0006;
  border: 1px dashed #ffffff22;
}
.gp-revealed .gp-tcard .gp-c-name { display: none; }
.gp-revealed .gp-tcard .gp-c-value { font-size: 10px; }
.gp-revealed .gp-tcard .gp-c-tier { font-size: 9px; top: 3px; left: 3px; }
.gp-revealed .gp-tcard.gp-pending { visibility: hidden; }
.gp-revealed.gp-final { --card-w: 108px; gap: 10px; padding: 12px; }
.gp-revealed.gp-final .gp-tcard { cursor: pointer; }
.gp-revealed.gp-final .gp-tcard:hover { transform: translateY(-4px); }
.gp-revealed.gp-final .gp-tcard .gp-c-name { display: block; font-size: 10px; }
.gp-revealed .gp-tcard.gp-pop-in { animation: card-pop .35s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes card-pop { from { transform: scale(.3); opacity: 0; } }
/* Carta que el jugador quiere conservar */
/* Atenuada en la cara: un filtro en la carta entera anularía el giro 3D */
.gp-tcard.gp-locked .gp-front { filter: brightness(.45) saturate(.6); }
.gp-tcard.gp-locked::before {
  content: '🔒';
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  font-size: 30px;
  text-shadow: 0 2px 6px #000;
  animation: card-pop .3s cubic-bezier(.3, 1.8, .5, 1);
}
.gp-tcard.gp-sold { opacity: .25; transform: scale(.9); transition: opacity .4s, transform .4s; }

.gp-table { position: relative; flex: 1; width: 100%; min-height: 330px; display: grid; place-items: center; }
.gp-packs-row { display: flex; gap: 20px; flex-wrap: wrap; justify-content: center; }
.gp-packs-row .gp-pack { animation: pack-drop .6s cubic-bezier(.3, 1.5, .5, 1) backwards; }
@keyframes pack-drop { from { transform: translateY(-200px) rotate(-10deg); opacity: 0; } }
.gp-packs-row .gp-pack.gp-shaking { animation: pack-shake .7s ease-in-out; }
@keyframes pack-shake {
  15%, 45%, 75% { transform: rotate(-4deg) translateX(-3px); }
  30%, 60%, 90% { transform: rotate(4deg) translateX(3px); }
}
.gp-packs-row .gp-pack.gp-gone { transition: transform .5s, opacity .5s; transform: translateY(60px) scale(.8); opacity: 0; }

.gp-pile { position: relative; width: var(--card-w); aspect-ratio: 5 / 7; }
.gp-pile .gp-tcard { position: absolute; inset: 0; transition: transform .15s; }
.gp-pile-count {
  position: absolute;
  bottom: -14px;
  right: -14px;
  z-index: 50;
  min-width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 17px;
  background: linear-gradient(#f3cd7a, #c08a2e);
  color: #2a1a05;
  font-weight: 800;
  box-shadow: 0 3px 8px #000a;
}
.gp-pile-hint { position: absolute; bottom: 4px; margin: 0; color: #e8dcc4; font-size: 13px; animation: hint 1.6s ease-in-out infinite; }
@keyframes hint { 50% { opacity: .4; } }

/* Cartas en vuelo (animadas con la Web Animations API) */
.gp-focus-layer { position: fixed; inset: 0; pointer-events: none; z-index: 80; }
.gp-focus-layer .gp-tcard { position: fixed; top: 0; left: 0; margin: 0; }

.gp-summary {
  margin-top: 12px;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 10px 20px;
  border-radius: 14px;
  background: #000a;
  border: 2px solid var(--slot-border);
  animation: detail-in .4s ease-out;
}
.gp-summary .gp-big { display: flex; align-items: center; gap: 8px; font-size: 26px; font-weight: 800; font-variant-numeric: tabular-nums; }
.gp-summary .gp-big .coin { width: 22px; height: 22px; }
.gp-summary .gp-label { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: 2px; }
.gp-stage-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 12px; }


/* Aura y estrellitas del sobre */
.gp-pack .gp-q-aura {
  position: absolute; inset: -18px -22px; z-index: -1; border-radius: 40%; pointer-events: none;
  background: radial-gradient(ellipse, color-mix(in srgb, var(--qc) 70%, transparent) 0%, color-mix(in srgb, var(--qc) 25%, transparent) 45%, transparent 72%);
  filter: blur(6px); animation: q-aura 2.4s ease-in-out infinite;
}
@keyframes q-aura { 50% { transform: scale(1.1); opacity: .6; } }
.gp-pack:not(.gp-q-common) { box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--qc) 70%, #fff), 0 0 16px color-mix(in srgb, var(--qc) 70%, transparent), 0 10px 20px #000a; }
.gp-pack.gp-q-legendary, .gp-pack.gp-q-epic { box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--qc) 80%, #fff), 0 0 26px var(--qc), 0 10px 20px #000a; }
.gp-pack .gp-q-stars { position: absolute; inset: -16px -20px; z-index: 3; pointer-events: none; }
.gp-pack .gp-qstar {
  position: absolute; width: var(--s); height: var(--s); margin: calc(var(--s) / -2) 0 0 calc(var(--s) / -2);
  filter: drop-shadow(0 0 3px var(--qc)) drop-shadow(0 0 8px var(--qc));
  opacity: 0; animation: q-twinkle 1.6s ease-in-out infinite;
}
.gp-pack .gp-qstar::before {
  content: ''; position: absolute; inset: 0; background: color-mix(in srgb, var(--qc) 60%, #fff);
  clip-path: polygon(50% 0%, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0% 50%, 39% 39%);
}
@keyframes q-twinkle {
  0%, 100% { opacity: 0; transform: scale(.2) rotate(0deg); }
  45% { opacity: 1; transform: scale(1.15) rotate(45deg); }
  60% { opacity: .9; transform: scale(.9) rotate(60deg); }
}
.gp-pack-card:not(.gp-q-common) { border-color: color-mix(in srgb, var(--qc) 45%, var(--slot-border)); }
.gp-pack-card:disabled .gp-q-aura, .gp-pack-card:disabled .gp-q-stars { display: none; }

/* Booster de la apertura */
.gp-booster-fx { position: absolute; left: 50%; top: 50%; width: 0; height: 0; z-index: 6; pointer-events: none; }
.gp-b-ring {
  position: absolute; left: -60px; top: -60px; width: 120px; height: 120px; border-radius: 50%;
  border: 6px solid var(--qc); box-shadow: 0 0 30px var(--qc), inset 0 0 30px var(--qc);
  animation: b-ring .9s ease-out forwards;
}
@keyframes b-ring { from { transform: scale(.2); opacity: 1; } to { transform: scale(5.5); opacity: 0; } }
.gp-b-star {
  position: absolute; left: calc(var(--size) / -2); top: calc(var(--size) / -2); width: var(--size); height: var(--size);
  filter: drop-shadow(0 0 4px var(--qc)) drop-shadow(0 0 10px var(--qc)); animation: b-star ease-out forwards;
}
.gp-b-star::before {
  content: ''; position: absolute; inset: 0; background: color-mix(in srgb, var(--qc) 55%, #fff);
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}
@keyframes b-star {
  0% { transform: translate(0, 0) scale(.3) rotate(0deg); opacity: 1; }
  70% { opacity: 1; }
  100% { transform: translate(var(--tx), var(--ty)) scale(1) rotate(var(--rot)); opacity: 0; }
}
.gp-booster-badge {
  position: absolute; left: 50%; top: 12px; z-index: 7; transform: translateX(-50%); white-space: nowrap;
  padding: 6px 18px; border-radius: 999px; font: 800 18px var(--display); letter-spacing: 1px; color: #160d02;
  background: linear-gradient(#fff, var(--qc)); box-shadow: 0 0 22px var(--qc), 0 4px 12px #000a;
}
.gp-booster-badge.gp-pop { animation: badge-pop .5s cubic-bezier(.2, 1.8, .4, 1); }
@keyframes badge-pop { from { transform: translateX(-50%) scale(.2); opacity: 0; } }
.gp-stage.gp-q-lit {
  box-shadow: inset 0 0 90px color-mix(in srgb, var(--qc) 45%, transparent), inset 0 0 60px #000c, 0 16px 40px #000c;
  transition: box-shadow .4s;
}
.gp-q-flash { position: fixed; inset: 0; z-index: 95; pointer-events: none; opacity: 0; }
.gp-pack-card, .gp-packs-row, .gp-pack-detail-art { isolation: isolate; }


/* ---------- Cartas de jackpot ---------- */
.gp-r-jackpot { --rc: #ff4fd8; }
.gp-tcard.gp-r-jackpot .gp-front {
  background: linear-gradient(135deg, #3a1060, #1a0730 55%, #4a1a00);
  box-shadow: inset 0 0 0 3px transparent;
}
.gp-tcard.gp-r-jackpot.gp-flipped::before, .gp-tcard.gp-r-jackpot.gp-flipped::after { content: none; }
.gp-tcard.gp-r-jackpot.gp-flipped .gp-tcard-inner {
  border-radius: 10px;
  box-shadow: 0 0 0 3px #fff8, 0 0 22px 6px #ff4fd8, 0 0 40px 10px #ffd70088;
  animation: jp-rainbow 2.2s linear infinite;
}
@keyframes jp-rainbow {
  0% { box-shadow: 0 0 0 3px #ffd700, 0 0 24px 6px #ffd700; }
  25% { box-shadow: 0 0 0 3px #ff4fd8, 0 0 24px 6px #ff4fd8; }
  50% { box-shadow: 0 0 0 3px #4fd1ff, 0 0 24px 6px #4fd1ff; }
  75% { box-shadow: 0 0 0 3px #7dff6a, 0 0 24px 6px #7dff6a; }
  100% { box-shadow: 0 0 0 3px #ffd700, 0 0 24px 6px #ffd700; }
}
.gp-tcard.gp-r-jackpot .gp-c-name { color: #ffe7a3; }
.gp-tcard.gp-r-jackpot .gp-c-value { color: #ffd700; text-shadow: 0 0 8px #ffd700; }
.gp-odd.gp-r-jackpot i { background: conic-gradient(#ffd700, #ff4fd8, #4fd1ff, #7dff6a, #ffd700); }


/* ----- Ajustes propios de Gremios ----- */
.gp-pack-grid { grid-template-columns: repeat(5, 1fr); }
.gp-pack-card.gp-none { cursor: not-allowed; }
.gp-pack.gp-empty { animation: none; filter: grayscale(.6); justify-content: center; }
.gp-pack-card.gp-over-max { opacity: .7; }
.gp-over-tag { font-size: 11px; color: #ffb4a8; }
.gp-count-btn.gp-over-max { opacity: .45; }
.gp-pack-detail { grid-template-columns: auto 1fr; }
.gp-pool-box { grid-column: 1 / -1; }
.gp-pool-box h3 { margin: 0 0 10px; color: var(--accent); font-size: 14px; }
.gp-pool { --card-w: 104px; display: flex; flex-wrap: wrap; gap: 10px; }
.gp-pool .gp-tcard .gp-c-name { font-size: 10px; }
.gp-big.gp-pos { color: var(--good); }
.gp-big.gp-neg { color: var(--bad); }
.gp-revealed .gp-tcard .gp-c-tier { max-width: 90%; overflow: hidden; white-space: nowrap; }
.gp-tcard img[src=""] { visibility: hidden; }
/* Diez sobres a la vez: más pequeños para que quepan en la mesa. */
.gp-packs-row.gp-many { gap: 26px 16px; }
.gp-packs-row.gp-many .gp-pack { zoom: .68; }
.gp-stage { margin-bottom: 14px; }
@media (max-width: 1000px) {
  .gp-pack-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 700px) {
  .gp-pack-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .gp-pack-detail { grid-template-columns: 1fr; text-align: center; padding: 14px; }
  .gp-pack-detail-art { display: grid; place-items: center; }
  .gp-pool { --card-w: 84px; justify-content: center; }
  .gp-stage { min-height: 480px; padding: 10px; border-width: 5px; }
  .gp-table { min-height: 280px; }
  .gp-packs-row { gap: 14px; }
  .gp-packs-row .gp-pack { zoom: .8; }
  .gp-packs-row.gp-many .gp-pack { zoom: .5; }
  .gp-summary { flex-wrap: wrap; justify-content: center; gap: 10px 16px; text-align: center; }
  .gp-summary .gp-big { font-size: 20px; justify-content: center; }
  .gp-revealed.gp-final { --card-w: 92px; }
}
.gp-q-tag { display: inline-block; padding: 1px 8px; border-radius: 6px; font-size: 14px; color: #160d02; background: var(--qc); box-shadow: 0 0 12px var(--qc); vertical-align: middle; }

/* Sobres por colección: los que aún no se venden y la lista de probabilidades. */
.gp-pack-grid { grid-template-columns: repeat(4, 1fr); }
.gp-pack-card.gp-none .gp-pack { animation: none; filter: grayscale(.85) brightness(.7); }
.gp-pack-price.gp-soon { font: 800 14px var(--display); color: var(--muted); letter-spacing: 1px; }
.gp-pool-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; margin-bottom: 10px; }
.gp-pool-head h3 { margin: 0; }
.gp-odds-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 6px; max-height: 520px; overflow: auto; padding: 2px; text-align: left; }
.gp-odd-row { display: grid; grid-template-columns: 40px 1fr auto; grid-template-areas: 'img name value' 'img name chance'; align-items: center; gap: 0 8px; padding: 5px 8px;
  border-radius: 9px; background: #00000040; border: 1px solid var(--slot-border); border-left: 4px solid var(--rc, var(--slot-border)); }
.gp-odd-row img { grid-area: img; width: 40px; height: 40px; }
.gp-odd-name { grid-area: name; display: grid; min-width: 0; }
.gp-odd-name b { font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gp-odd-name small { color: var(--muted); font-size: 11px; }
.gp-odd-value { grid-area: value; justify-self: end; display: inline-flex; align-items: center; gap: 4px; font-weight: 800; font-size: 13px; color: var(--accent-2); }
.gp-odd-value .coin { width: 12px; height: 12px; }
.gp-odd-chance { grid-area: chance; justify-self: end; font-size: 11px; color: #d8c8a8; white-space: nowrap; }
.gp-odd-row.gp-r-jackpot { border-left-color: #ff4fd8; background: linear-gradient(90deg, #ff4fd822, #00000040); }
#pool-more { margin-top: 10px; }
@media (max-width: 1000px) { .gp-pack-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 700px) { .gp-odds-list { grid-template-columns: 1fr; max-height: 420px; } }

/* ---------- Mesa en movimiento (gremios-mesa.js) ---------- */
.gr-board { position: relative; }
.gr-arrows { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 30; overflow: visible; }
.gr-arrow { fill: none; stroke-linecap: round; }
.gr-arrow.red { stroke: #ff3b2f; stroke-width: 5; opacity: .9; }
.gr-arrow.gold { stroke: #ffd25a; stroke-width: 4; stroke-dasharray: 10 7; opacity: .9; }
.gr-arrow.live { stroke-width: 7; opacity: 1; stroke-dasharray: 16 9; animation: gr-dash .5s linear infinite; }
@keyframes gr-dash { to { stroke-dashoffset: -25; } }
#my-field .gr-card.can { touch-action: none; cursor: grab; }
body.gr-dragging, body.gr-dragging * { cursor: grabbing !important; user-select: none; }
.gr-card.gr-drag-src { transform: translateY(-8px) scale(1.04); box-shadow: 0 0 18px #ff3b2fcc; border-color: #ff3b2f; }
.gr-drop-ok { outline: 2px dashed #ff6a5a99; outline-offset: 3px; }
.gr-drop-hover { outline: 3px solid #ff3b2f; outline-offset: 3px; box-shadow: 0 0 22px #ff3b2fcc; transform: scale(1.05); }
.gr-player.gr-drop-ok, .gr-player.gr-drop-hover { border-radius: 8px; }
.gr-card.gr-hit { animation: gr-hit .45s ease-out; }
@keyframes gr-hit {
  0% { filter: brightness(2) saturate(2); } 20% { transform: translateX(-6px) rotate(-2deg); } 40% { transform: translateX(6px) rotate(2deg); }
  60% { transform: translateX(-3px); } 100% { transform: none; filter: none; }
}
.gr-card.gr-impact { animation: gr-impact .4s ease-out; }
@keyframes gr-impact { 0% { box-shadow: 0 0 0 0 #ff3b2f; } 40% { box-shadow: 0 0 30px 8px #ff3b2fcc; transform: scale(.96); } 100% { box-shadow: none; transform: none; } }
.gr-card.gr-impact.gold { animation-name: gr-impact-gold; }
@keyframes gr-impact-gold { 0% { box-shadow: 0 0 0 0 #ffd25a; } 40% { box-shadow: 0 0 30px 8px #ffd25acc; transform: scale(.96); } 100% { box-shadow: none; transform: none; } }
.gr-player.gr-impact { animation: gr-impact .4s ease-out; border-radius: 8px; }
.gr-card.gr-enter { box-shadow: 0 0 24px #ffd98acc; }
.gr-ghost { position: absolute; z-index: 25; pointer-events: none; animation: gr-ghost .9s ease-in forwards; }
.gr-ghost .gr-card { width: 100%; }
@keyframes gr-ghost {
  0% { opacity: 1; filter: brightness(1.8) saturate(0); }
  30% { transform: rotate(-4deg) scale(1.03); }
  100% { opacity: 0; transform: translateY(40px) rotate(12deg) scale(.7); filter: grayscale(1) brightness(.4); }
}
.gr-float { position: absolute; z-index: 40; transform: translate(-50%, -50%); pointer-events: none; font: 900 26px var(--display); text-shadow: 0 2px 4px #000, 0 0 10px #000; animation: gr-float 1.25s ease-out forwards; }
.gr-float.dmg { color: #ff4b3a; } .gr-float.heal { color: #8be08b; } .gr-float.dead { font-size: 30px; }
.gr-float.big { font-size: 38px; }
@keyframes gr-float { 0% { opacity: 0; margin-top: 10px; transform: translate(-50%, -50%) scale(.6); } 15% { opacity: 1; transform: translate(-50%, -50%) scale(1.25); } 100% { opacity: 0; margin-top: -46px; transform: translate(-50%, -50%) scale(1); } }
.gr-side.gr-shake { animation: gr-shake .5s ease-in-out; }
@keyframes gr-shake { 0%, 100% { transform: none; } 20% { transform: translateX(-8px); } 40% { transform: translateX(7px); } 60% { transform: translateX(-5px); } 80% { transform: translateX(3px); } }
@media (prefers-reduced-motion: reduce) { .gr-arrow.live { animation: none; } .gr-card.gr-hit, .gr-card.gr-impact, .gr-side.gr-shake { animation: none; } }

/* ---------- Equipo al estilo del inventario de Albion (Personajes) ---------- */
.gr-editor-gear { display: grid; grid-template-columns: 280px 1fr; gap: 16px; align-items: start; }
.alb-inv { --alb-slot: 66px; position: relative; padding: 14px 16px 12px; border-radius: 14px; color: #3a2a17;
  background: radial-gradient(ellipse at 50% 30%, #f3e2bf 0%, #e6cd9c 55%, #cfae73 100%);
  border: 3px solid #8a6a3c; box-shadow: inset 0 0 0 2px #f8ebcf, inset 0 0 28px #8a6a3c66, 0 6px 18px #0008; }
.alb-title { display: grid; margin-bottom: 10px; line-height: 1.1; }
.alb-title small { font: 600 12px var(--display); color: #6d5332; }
.alb-title b { font: 800 22px var(--display); color: #2f2010; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.alb-grid { position: relative; display: grid; grid-template-columns: repeat(3, var(--alb-slot)); grid-auto-rows: var(--alb-slot); gap: 12px 14px; justify-content: center; }
.alb-body { position: absolute; left: 50%; top: -4px; height: calc(100% + 8px); transform: translateX(-50%); fill: #b48f5a55; stroke: #8a6a3c66; stroke-width: 1.2; pointer-events: none; }
.alb-slot { position: relative; width: var(--alb-slot); height: var(--alb-slot); padding: 0; border-radius: 10px; cursor: pointer; display: grid; place-items: center;
  background: linear-gradient(#e8d2a6, #d4b47c); border: 2px solid #9c7a47; box-shadow: inset 0 0 0 2px #f6e6c4aa, inset 0 -6px 12px #8a6a3c55; color: #8a6a3c; }
.alb-slot:hover { border-color: #5d4320; }
.alb-slot.active { border-color: #2f2010; box-shadow: inset 0 0 0 2px #fff6, 0 0 0 3px #e0b35a, 0 0 14px #e0b35a; }
.alb-slot .alb-glyph { position: absolute; width: 58%; height: 58%; opacity: .55; }
.alb-slot img { position: relative; width: 100%; height: 100%; object-fit: contain; }
.alb-slot.own .alb-glyph { display: none; }
.alb-slot.starter img { opacity: .45; filter: sepia(.6); }
.alb-slot.blocked { cursor: not-allowed; opacity: .55; background: repeating-linear-gradient(45deg, #d4b47c, #d4b47c 6px, #c9a66b 6px, #c9a66b 12px); }
.alb-tier { position: absolute; left: 3px; bottom: 2px; font: 800 11px var(--display); color: #fff; text-shadow: 0 1px 2px #000, 0 0 3px #000; }
.alb-slot.ench-1 { box-shadow: inset 0 0 0 2px #f6e6c4aa, inset 0 0 14px #3fbf5a88; }
.alb-slot.ench-2 { box-shadow: inset 0 0 0 2px #f6e6c4aa, inset 0 0 14px #3d8bff88; }
.alb-slot.ench-3 { box-shadow: inset 0 0 0 2px #f6e6c4aa, inset 0 0 14px #b05cff88; }
.alb-slot.ench-4 { box-shadow: inset 0 0 0 2px #f6e6c4aa, inset 0 0 16px #ffc23a99; }
.alb-slot.active.ench-1, .alb-slot.active.ench-2, .alb-slot.active.ench-3, .alb-slot.active.ench-4 { box-shadow: inset 0 0 0 2px #fff6, 0 0 0 3px #e0b35a, 0 0 14px #e0b35a; }
.alb-mount { display: flex; justify-content: center; margin-top: 12px; padding-top: 10px; border-top: 1px solid #9c7a4777; }
.alb-current { margin-top: 10px; font-size: 13px; text-align: center; color: #3a2a17; }
.alb-current .muted { color: #6d5332; }
.alb-label { font-weight: 800; color: #6b3f0f; }
@media (max-width: 820px) { .gr-editor-gear { grid-template-columns: 1fr; } .alb-inv { max-width: 300px; margin: 0 auto; } }
@media (max-width: 400px) { .alb-inv { --alb-slot: 56px; padding: 10px; } .alb-grid { gap: 10px; } }
/* Arrastrar flechas nunca selecciona texto de las cartas */
.gr-board .gr-card, .gr-board .gr-player { -webkit-user-select: none; user-select: none; }

/* ---------- Partida a pantalla completa: sin menús, todo en una vista ---------- */
.gr-log-toggle { display: none; }
body.gr-in-match { overflow: hidden; }
body.gr-in-match #topnav, body.gr-in-match .gr-head, body.gr-in-match .gr-tabs, body.gr-in-match .gr-hand-title,
body.gr-in-match .maintenance-strip, body.gr-in-match .luck-strip { display: none !important; }
body.gr-in-match #board { position: fixed; inset: 0; z-index: 60; display: flex; flex-direction: column; gap: 4px; padding: 6px 12px 6px; overflow: hidden;
  background: radial-gradient(ellipse at 50% 50%, #2a2116 0%, #15100a 75%); --mc-w: 120px; }
body.gr-in-match .gr-side { flex: 1 1 0; min-height: 0; padding: 4px 8px; gap: 2px; display: flex; flex-direction: column; }
body.gr-in-match .gr-field { flex: 1 1 auto; min-height: 0; flex-wrap: nowrap; align-items: center; justify-content: center; gap: 8px; padding: 2px; }
body.gr-in-match .gr-enemy-top { display: flex; align-items: center; gap: 10px; }
body.gr-in-match .gr-enemy-top .gr-player { flex: 1; }
body.gr-in-match .gr-player { gap: 10px; font-size: 13px; min-height: 26px; }
body.gr-in-match .gr-pname { font-size: 13px; }
body.gr-in-match .gr-standard b { font-size: 18px; }
body.gr-in-match .gr-mid { font-size: 13px; padding: 0 40px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
body.gr-in-match .gr-result { font-size: 20px; }
body.gr-in-match .gr-controls { position: static; padding: 4px; gap: 6px; background: transparent; border: 0; }
body.gr-in-match .gr-controls .btn { padding: 6px 12px; font-size: 13px; }
body.gr-in-match .gr-loot { padding: 3px 8px; display: flex; align-items: center; gap: 8px; }
body.gr-in-match .gr-loot h4 { margin: 0; font-size: 12px; white-space: nowrap; }
body.gr-in-match .gr-loot h4 .small { display: none; }
body.gr-in-match .gr-loot-piece img { width: 28px; height: 28px; }
body.gr-in-match .gr-hand { flex: 1 1 0; min-height: 0; flex-wrap: nowrap; justify-content: center; align-items: center; padding: 2px; gap: 0; }
body.gr-in-match .gr-hand .gr-card + .gr-card { margin-left: var(--hand-overlap, 8px); }
body.gr-in-match .gr-hand .gr-card:hover, body.gr-in-match .gr-hand .gr-card.target { z-index: 4; transform: translateY(-10px) scale(1.06); }
/* Carta compacta en la mesa (el texto completo, con la «i») */
body.gr-in-match #board .gr-card { --gc-w: var(--mc-w); width: var(--mc-w); padding: 4px 4px 3px; gap: 2px; border-radius: 8px; }
body.gr-in-match #board .gr-card-name { font-size: clamp(8px, calc(var(--mc-w) * .085), 12px); padding: 0 15px 0 13px; }
body.gr-in-match #board .gr-card-art { height: calc(var(--mc-w) * .42); }
body.gr-in-match #board .gr-card-art img { width: calc(var(--mc-w) * .38); height: calc(var(--mc-w) * .38); }
body.gr-in-match #board .gr-card-kw { min-height: 0; height: 14px; overflow: hidden; flex-wrap: nowrap; }
body.gr-in-match #board .gr-card-kw span { font-size: 8.5px; padding: 0 3px; white-space: nowrap; }
body.gr-in-match #board .gr-card-gear { display: none; }
body.gr-in-match #board .gr-card-text { height: calc(var(--mc-w) * .5); font-size: clamp(7.5px, calc(var(--mc-w) * .072), 10.5px); line-height: 1.22; }
body.gr-in-match #board .gr-stats { font-size: clamp(11px, calc(var(--mc-w) * .1), 15px); }
body.gr-in-match #board .gr-cost { width: 22px; height: 22px; font-size: 12px; left: -6px; top: -6px; }
body.gr-in-match #board .gr-info { width: 16px; height: 16px; font-size: 10px; right: 2px; top: 2px; }
body.gr-in-match #board .gr-helmet { width: 20px; height: 20px; font-size: 11px; top: calc(var(--mc-w) * .2); }
body.gr-in-match #board .gr-tag { top: calc(var(--mc-w) * .3); font-size: 9px; }
body.gr-in-match #board .gr-status { font-size: 10px; }
/* Mano del rival: solo el dorso */
.gr-backs { display: flex; align-items: center; gap: 0; }
.gr-back { width: 18px; height: 26px; margin-left: -7px; border-radius: 3px; border: 1px solid #c9a35c; box-shadow: 0 1px 3px #000a;
  background: repeating-linear-gradient(45deg, #5b1f1a 0 4px, #3d1512 4px 8px); }
.gr-back:first-child { margin-left: 0; }
.gr-backs b { margin-left: 6px; font: 800 14px var(--display); color: var(--accent-2); }
/* Registro: botón y panel encima */
body.gr-in-match .gr-log-toggle { display: grid; place-items: center; position: absolute; right: 10px; top: 50%; transform: translateY(-50%); z-index: 35;
  width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--accent); background: #2a2117; cursor: pointer; font-size: 16px; padding: 0; }
body.gr-in-match .gr-log-box { display: none; }
body.gr-in-match.gr-log-open .gr-log-box { display: block; position: absolute; right: 52px; top: 12%; bottom: 12%; width: min(360px, 80vw); z-index: 36;
  padding: 8px; border-radius: 12px; background: #120e09f2; border: 1px solid var(--accent); box-shadow: 0 8px 30px #000c; }
body.gr-in-match.gr-log-open .gr-log { max-height: none; height: calc(100% - 30px); }
@media (max-width: 600px) {
  body.gr-in-match #board { padding: 4px 4px 4px; }
  body.gr-in-match .gr-player { gap: 6px; font-size: 11px; }
  body.gr-in-match .gr-field { gap: 4px; }
  body.gr-in-match .gr-mid { font-size: 11px; padding: 0 36px 0 4px; }
  body.gr-in-match .gr-controls .btn { padding: 5px 8px; font-size: 12px; }
}

/* ---------- Fondos de bioma de la mesa (dibujos propios, inspirados en los biomas de Albion) ---------- */
body.gr-in-match #board::after { content: attr(data-biome-name); position: absolute; left: 12px; bottom: 6px; z-index: 1; font: 700 11px var(--display);
  color: #fff9; text-shadow: 0 1px 3px #000; pointer-events: none; }
body.gr-in-match #board > * { position: relative; z-index: 2; }
body.gr-in-match #board > .gr-arrows { position: absolute; z-index: 30; }
body.gr-in-match #board > .gr-log-toggle { position: absolute; z-index: 35; }
body.gr-in-match.gr-log-open #board > .gr-log-box { position: absolute; z-index: 36; }
body.gr-in-match .gr-side.enemy { background: linear-gradient(#2a0f0b80, #1a0d0940); border-color: #ffffff22; }
body.gr-in-match .gr-side.mine { background: linear-gradient(#0d1a0e40, #0f241280); border-color: #ffffff22; }
body.gr-in-match #board[data-biome="bosque"] { background:
  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 160' preserveAspectRatio='none'%3E%3Cg transform='translate(0,160) scale(1,-1)'%3E%3Cpath d='M30 68 L-0 160 L60 160 Z' fill='%230a2412'/%3E%3Cpath d='M103 72 L73 160 L133 160 Z' fill='%230a2412'/%3E%3Cpath d='M167 56 L137 160 L197 160 Z' fill='%230a2412'/%3E%3Cpath d='M224 49 L194 160 L254 160 Z' fill='%230a2412'/%3E%3Cpath d='M291 53 L261 160 L321 160 Z' fill='%230a2412'/%3E%3Cpath d='M358 71 L328 160 L388 160 Z' fill='%230a2412'/%3E%3Cpath d='M432 31 L402 160 L462 160 Z' fill='%230a2412'/%3E%3Cpath d='M492 64 L462 160 L522 160 Z' fill='%230a2412'/%3E%3Cpath d='M569 25 L539 160 L599 160 Z' fill='%230a2412'/%3E%3Cpath d='M635 55 L605 160 L665 160 Z' fill='%230a2412'/%3E%3Cpath d='M710 73 L680 160 L740 160 Z' fill='%230a2412'/%3E%3Cpath d='M774 60 L744 160 L804 160 Z' fill='%230a2412'/%3E%3Cpath d='M826 70 L796 160 L856 160 Z' fill='%230a2412'/%3E%3Cpath d='M896 32 L866 160 L926 160 Z' fill='%230a2412'/%3E%3Cpath d='M960 45 L930 160 L990 160 Z' fill='%230a2412'/%3E%3Cpath d='M1036 56 L1006 160 L1066 160 Z' fill='%230a2412'/%3E%3Cpath d='M1101 73 L1071 160 L1131 160 Z' fill='%230a2412'/%3E%3Cpath d='M1158 65 L1128 160 L1188 160 Z' fill='%230a2412'/%3E%3C/g%3E%3C/svg%3E") top center / 100% 18% no-repeat,
  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 300' preserveAspectRatio='none'%3E%3Cpath d='M34 154 L0 300 L68 300 Z' fill='%230c2a14'/%3E%3Cpath d='M116 161 L82 300 L149 300 Z' fill='%230c2a14'/%3E%3Cpath d='M188 136 L154 300 L222 300 Z' fill='%230c2a14'/%3E%3Cpath d='M254 124 L220 300 L287 300 Z' fill='%230c2a14'/%3E%3Cpath d='M328 130 L294 300 L362 300 Z' fill='%230c2a14'/%3E%3Cpath d='M404 159 L370 300 L438 300 Z' fill='%230c2a14'/%3E%3Cpath d='M486 96 L452 300 L520 300 Z' fill='%230c2a14'/%3E%3Cpath d='M555 148 L521 300 L589 300 Z' fill='%230c2a14'/%3E%3Cpath d='M640 86 L606 300 L674 300 Z' fill='%230c2a14'/%3E%3Cpath d='M714 133 L680 300 L748 300 Z' fill='%230c2a14'/%3E%3Cpath d='M797 163 L763 300 L831 300 Z' fill='%230c2a14'/%3E%3Cpath d='M870 142 L836 300 L903 300 Z' fill='%230c2a14'/%3E%3Cpath d='M930 157 L897 300 L964 300 Z' fill='%230c2a14'/%3E%3Cpath d='M1009 97 L975 300 L1042 300 Z' fill='%230c2a14'/%3E%3Cpath d='M1081 117 L1047 300 L1115 300 Z' fill='%230c2a14'/%3E%3Cpath d='M1165 135 L1132 300 L1199 300 Z' fill='%230c2a14'/%3E%3Cpath d='M24 200 L-1 300 L48 300 Z' fill='%23071c0d'/%3E%3Cpath d='M85 205 L60 300 L109 300 Z' fill='%23071c0d'/%3E%3Cpath d='M137 188 L113 300 L162 300 Z' fill='%23071c0d'/%3E%3Cpath d='M182 179 L158 300 L207 300 Z' fill='%23071c0d'/%3E%3Cpath d='M236 184 L212 300 L261 300 Z' fill='%23071c0d'/%3E%3Cpath d='M291 204 L267 300 L316 300 Z' fill='%23071c0d'/%3E%3Cpath d='M353 161 L328 300 L378 300 Z' fill='%23071c0d'/%3E%3Cpath d='M402 196 L377 300 L426 300 Z' fill='%23071c0d'/%3E%3Cpath d='M466 154 L442 300 L491 300 Z' fill='%23071c0d'/%3E%3Cpath d='M520 186 L495 300 L544 300 Z' fill='%23071c0d'/%3E%3Cpath d='M582 206 L558 300 L607 300 Z' fill='%23071c0d'/%3E%3Cpath d='M634 192 L610 300 L659 300 Z' fill='%23071c0d'/%3E%3Cpath d='M675 202 L650 300 L699 300 Z' fill='%23071c0d'/%3E%3Cpath d='M733 161 L708 300 L757 300 Z' fill='%23071c0d'/%3E%3Cpath d='M785 175 L760 300 L809 300 Z' fill='%23071c0d'/%3E%3Cpath d='M848 187 L824 300 L873 300 Z' fill='%23071c0d'/%3E%3Cpath d='M901 205 L876 300 L926 300 Z' fill='%23071c0d'/%3E%3Cpath d='M946 197 L921 300 L970 300 Z' fill='%23071c0d'/%3E%3Cpath d='M1013 184 L988 300 L1037 300 Z' fill='%23071c0d'/%3E%3Cpath d='M1060 175 L1035 300 L1084 300 Z' fill='%23071c0d'/%3E%3Cpath d='M1117 191 L1093 300 L1142 300 Z' fill='%23071c0d'/%3E%3Cpath d='M1179 168 L1154 300 L1203 300 Z' fill='%23071c0d'/%3E%3C/svg%3E") bottom center / 100% 32% no-repeat,
  radial-gradient(ellipse at 50% 45%, #2f5a2c 0%, #16301a 60%, #0a170c 100%); }
body.gr-in-match #board[data-biome="pantano"] { background:
  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 300' preserveAspectRatio='none'%3E%3Cellipse cx='260' cy='250' rx='220' ry='26' fill='%231d3a36' opacity='.8'/%3E%3Cellipse cx='880' cy='265' rx='260' ry='22' fill='%231d3a36' opacity='.8'/%3E%3Cpath d='M20 300 Q26 220 23 122' stroke='%2322301b' stroke-width='4' fill='none'/%3E%3Cpath d='M57 300 Q63 196 60 162' stroke='%2322301b' stroke-width='4' fill='none'/%3E%3Cpath d='M94 300 Q100 172 97 146' stroke='%2322301b' stroke-width='4' fill='none'/%3E%3Cpath d='M131 300 Q137 208 134 130' stroke='%2322301b' stroke-width='4' fill='none'/%3E%3Cpath d='M168 300 Q174 184 171 170' stroke='%2322301b' stroke-width='4' fill='none'/%3E%3Cpath d='M205 300 Q211 220 208 154' stroke='%2322301b' stroke-width='4' fill='none'/%3E%3Cpath d='M242 300 Q248 196 245 138' stroke='%2322301b' stroke-width='4' fill='none'/%3E%3Cpath d='M279 300 Q285 172 282 122' stroke='%2322301b' stroke-width='4' fill='none'/%3E%3Cpath d='M316 300 Q322 208 319 162' stroke='%2322301b' stroke-width='4' fill='none'/%3E%3Cpath d='M353 300 Q359 184 356 146' stroke='%2322301b' stroke-width='4' fill='none'/%3E%3Cpath d='M390 300 Q396 220 393 130' stroke='%2322301b' stroke-width='4' fill='none'/%3E%3Cpath d='M427 300 Q433 196 430 170' stroke='%2322301b' stroke-width='4' fill='none'/%3E%3Cpath d='M464 300 Q470 172 467 154' stroke='%2322301b' stroke-width='4' fill='none'/%3E%3Cpath d='M501 300 Q507 208 504 138' stroke='%2322301b' stroke-width='4' fill='none'/%3E%3Cpath d='M538 300 Q544 184 541 122' stroke='%2322301b' stroke-width='4' fill='none'/%3E%3Cpath d='M575 300 Q581 220 578 162' stroke='%2322301b' stroke-width='4' fill='none'/%3E%3Cpath d='M612 300 Q618 196 615 146' stroke='%2322301b' stroke-width='4' fill='none'/%3E%3Cpath d='M649 300 Q655 172 652 130' stroke='%2322301b' stroke-width='4' fill='none'/%3E%3Cpath d='M686 300 Q692 208 689 170' stroke='%2322301b' stroke-width='4' fill='none'/%3E%3Cpath d='M723 300 Q729 184 726 154' stroke='%2322301b' stroke-width='4' fill='none'/%3E%3Cpath d='M760 300 Q766 220 763 138' stroke='%2322301b' stroke-width='4' fill='none'/%3E%3Cpath d='M797 300 Q803 196 800 122' stroke='%2322301b' stroke-width='4' fill='none'/%3E%3Cpath d='M834 300 Q840 172 837 162' stroke='%2322301b' stroke-width='4' fill='none'/%3E%3Cpath d='M871 300 Q877 208 874 146' stroke='%2322301b' stroke-width='4' fill='none'/%3E%3Cpath d='M908 300 Q914 184 911 130' stroke='%2322301b' stroke-width='4' fill='none'/%3E%3Cpath d='M945 300 Q951 220 948 170' stroke='%2322301b' stroke-width='4' fill='none'/%3E%3Cpath d='M982 300 Q988 196 985 154' stroke='%2322301b' stroke-width='4' fill='none'/%3E%3Cpath d='M1019 300 Q1025 172 1022 138' stroke='%2322301b' stroke-width='4' fill='none'/%3E%3Cpath d='M1056 300 Q1062 208 1059 122' stroke='%2322301b' stroke-width='4' fill='none'/%3E%3Cpath d='M1093 300 Q1099 184 1096 162' stroke='%2322301b' stroke-width='4' fill='none'/%3E%3Cpath d='M1130 300 Q1136 220 1133 146' stroke='%2322301b' stroke-width='4' fill='none'/%3E%3Cpath d='M1167 300 Q1173 196 1170 130' stroke='%2322301b' stroke-width='4' fill='none'/%3E%3Cpath d='M0 300 Q300 230 600 270 T1200 250 L1200 300Z' fill='%23141f14'/%3E%3C/svg%3E") bottom center / 100% 34% no-repeat,
  radial-gradient(ellipse at 30% 30%, #a8b39a33 0%, transparent 45%),
  radial-gradient(ellipse at 75% 60%, #a8b39a26 0%, transparent 40%),
  linear-gradient(#2b3a33, #1a2622 55%, #0f1714); }
body.gr-in-match #board[data-biome="montana"] { background:
  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 300' preserveAspectRatio='none'%3E%3Cpath d='M0 300 L120 150 L230 230 L380 70 L520 220 L640 110 L780 240 L900 90 L1050 210 L1200 130 L1200 300Z' fill='%232c3542'/%3E%3Cpath d='M380 70 L420 120 L398 112 L380 130 L362 112 L340 120Z M900 90 L940 140 L918 132 L900 150 L882 132 L860 140Z M640 110 L670 150 L640 140 L612 150Z' fill='%23dfe7ef' opacity='.85'/%3E%3Cpath d='M0 300 L200 210 L330 260 L500 190 L700 270 L880 200 L1050 260 L1200 220 L1200 300Z' fill='%231b222b'/%3E%3C/svg%3E") bottom center / 100% 42% no-repeat,
  linear-gradient(#56677d, #34404f 45%, #1d242d); }
body.gr-in-match #board[data-biome="estepa"] { background:
  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 300' preserveAspectRatio='none'%3E%3Ccircle cx='980' cy='70' r='46' fill='%23ffd27a' opacity='.55'/%3E%3Cpath d='M0 300 Q200 220 420 250 T860 235 T1200 240 L1200 300Z' fill='%236b4a1f'/%3E%3Cpath d='M0 300 Q300 260 600 280 T1200 270 L1200 300Z' fill='%234d3415'/%3E%3Cpath d='M30 290 l4 -14 l4 14' stroke='%238a6a2e' stroke-width='2' fill='none'/%3E%3Cpath d='M83 290 l4 -14 l4 14' stroke='%238a6a2e' stroke-width='2' fill='none'/%3E%3Cpath d='M136 290 l4 -14 l4 14' stroke='%238a6a2e' stroke-width='2' fill='none'/%3E%3Cpath d='M189 290 l4 -14 l4 14' stroke='%238a6a2e' stroke-width='2' fill='none'/%3E%3Cpath d='M242 290 l4 -14 l4 14' stroke='%238a6a2e' stroke-width='2' fill='none'/%3E%3Cpath d='M295 290 l4 -14 l4 14' stroke='%238a6a2e' stroke-width='2' fill='none'/%3E%3Cpath d='M348 290 l4 -14 l4 14' stroke='%238a6a2e' stroke-width='2' fill='none'/%3E%3Cpath d='M401 290 l4 -14 l4 14' stroke='%238a6a2e' stroke-width='2' fill='none'/%3E%3Cpath d='M454 290 l4 -14 l4 14' stroke='%238a6a2e' stroke-width='2' fill='none'/%3E%3Cpath d='M507 290 l4 -14 l4 14' stroke='%238a6a2e' stroke-width='2' fill='none'/%3E%3Cpath d='M560 290 l4 -14 l4 14' stroke='%238a6a2e' stroke-width='2' fill='none'/%3E%3Cpath d='M613 290 l4 -14 l4 14' stroke='%238a6a2e' stroke-width='2' fill='none'/%3E%3Cpath d='M666 290 l4 -14 l4 14' stroke='%238a6a2e' stroke-width='2' fill='none'/%3E%3Cpath d='M719 290 l4 -14 l4 14' stroke='%238a6a2e' stroke-width='2' fill='none'/%3E%3Cpath d='M772 290 l4 -14 l4 14' stroke='%238a6a2e' stroke-width='2' fill='none'/%3E%3Cpath d='M825 290 l4 -14 l4 14' stroke='%238a6a2e' stroke-width='2' fill='none'/%3E%3Cpath d='M878 290 l4 -14 l4 14' stroke='%238a6a2e' stroke-width='2' fill='none'/%3E%3Cpath d='M931 290 l4 -14 l4 14' stroke='%238a6a2e' stroke-width='2' fill='none'/%3E%3Cpath d='M984 290 l4 -14 l4 14' stroke='%238a6a2e' stroke-width='2' fill='none'/%3E%3Cpath d='M1037 290 l4 -14 l4 14' stroke='%238a6a2e' stroke-width='2' fill='none'/%3E%3Cpath d='M1090 290 l4 -14 l4 14' stroke='%238a6a2e' stroke-width='2' fill='none'/%3E%3Cpath d='M1143 290 l4 -14 l4 14' stroke='%238a6a2e' stroke-width='2' fill='none'/%3E%3Cpath d='M1196 290 l4 -14 l4 14' stroke='%238a6a2e' stroke-width='2' fill='none'/%3E%3C/svg%3E") bottom center / 100% 36% no-repeat,
  linear-gradient(#b8874a, #8a6230 45%, #4a3214); }
body.gr-in-match #board[data-biome="tierras"] { background:
  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 300' preserveAspectRatio='none'%3E%3Cpath d='M0 300 Q150 160 330 220 T700 180 T1000 210 T1200 170 L1200 300Z' fill='%232f4a2a'/%3E%3Cpath d='M0 300 Q250 230 520 260 T1200 240 L1200 300Z' fill='%23223620'/%3E%3Cpath d='M180 262 l26 -20 l30 6 l12 18Z M760 250 l20 -16 l26 4 l10 14Z M1040 268 l18 -12 l22 4 l8 10Z' fill='%235c5a50'/%3E%3C/svg%3E") bottom center / 100% 40% no-repeat,
  linear-gradient(#6c7f5a, #45573a 45%, #22301e); }
#hand .gr-card.can { touch-action: none; cursor: grab; }
.gr-drag-ghost { position: fixed; z-index: 100; pointer-events: none; transform: rotate(-4deg) scale(1.08); box-shadow: 0 14px 30px #000c, 0 0 20px #ffd98a88; opacity: .95; }
.gr-card.gr-drag-hidden { opacity: .25; }
#my-field.gr-drop-ok { outline: 2px dashed #8fcf6aaa; outline-offset: -2px; border-radius: 10px; }
#my-field.gr-drop-hover { outline: 3px solid #8fcf6a; box-shadow: inset 0 0 30px #8fcf6a55; transform: none; }
body.gr-in-match #board > .gr-float { position: absolute; z-index: 40; }
body.gr-in-match #board > .gr-ghost { position: absolute; z-index: 25; }

/* Las imágenes de las cartas y piezas no se arrastran ni reciben el clic: se arrastra siempre la carta. */
.gr-card img, .gr-piece img, .gr-loot-piece img, .alb-slot img, .gr-drag-ghost img { -webkit-user-drag: none; user-select: none; pointer-events: none; }

/* Botones grandes de la partida: a la derecha del tablero, uno encima del otro (en pantallas anchas). */
body.gr-in-match .gr-big-btn { font: 800 18px var(--display); }
@media (min-width: 701px) {
  body.gr-in-match #board { padding-right: 196px; }
  body.gr-in-match #board > .gr-controls { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); width: 172px; z-index: 32;
    display: flex; flex-direction: column; align-items: stretch; gap: 10px; padding: 0; }
  body.gr-in-match .gr-controls .btn { padding: 8px 10px; }
  body.gr-in-match .gr-controls .gr-big-btn { min-height: 88px; padding: 14px 10px; font-size: 19px; border-radius: 14px; box-shadow: 0 6px 18px #000a; }
  body.gr-in-match .gr-controls .gr-surrender { margin: 18px 0 0; font-size: 12px; }
  body.gr-in-match #board > .gr-log-toggle { top: 10px; right: 12px; transform: none; }
}
@media (max-width: 700px) {
  body.gr-in-match .gr-controls .gr-big-btn { min-height: 46px; flex: 1 1 40%; font-size: 15px; }
}
/* «Terminar turno» parpadea suave cuando ya no queda nada que hacer. */
.gr-end-btn.gr-pulse { animation: gr-pulse 1.3s ease-in-out infinite; border-color: var(--accent-2); }
@keyframes gr-pulse { 0%, 100% { box-shadow: 0 0 0 0 #ffd25a00; filter: none; } 50% { box-shadow: 0 0 22px 6px #ffd25aaa; filter: brightness(1.35); } }
@media (prefers-reduced-motion: reduce) { .gr-end-btn.gr-pulse { animation: none; box-shadow: 0 0 14px 4px #ffd25aaa; } }
/* Todas las cartas de la mano se pueden arrastrar (para reordenarlas) */
body.gr-in-match #hand .gr-card { touch-action: none; cursor: grab; }
#hand .gr-card.gr-insert-before { box-shadow: -6px 0 0 -1px #ffd25a, -6px 0 14px #ffd25aaa; }
#hand .gr-card.gr-insert-after { box-shadow: 6px 0 0 -1px #ffd25a, 6px 0 14px #ffd25aaa; }
/* Botones que aparecen tras guardar o vender: se encienden tras un momento (evita el doble toque) */
.gp-arming { opacity: .35; transition: opacity .3s; }


/* Autorrellenar y mazos guardados */
.gr-deckbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0 0 12px; }
.gr-deckbar-load { display: inline-flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.gr-deckbar select, .gr-lobby-deck select { min-width: 200px; max-width: 100%; padding: 6px 8px; border-radius: 8px; background: var(--bg-2, #1d1a14); color: inherit; border: 1px solid rgba(212, 175, 55, .35); }
.gr-lobby-deck { display: flex; gap: 8px; align-items: center; margin: 0 0 12px; flex-wrap: wrap; }
.gr-missing { position: absolute; left: 6px; top: 26px; z-index: 3; font-size: 16px; filter: drop-shadow(0 0 3px rgba(0,0,0,.8)); animation: gr-missing-pulse 1.6s ease-in-out infinite; cursor: help; }
.alb-missing { position: absolute; right: 2px; top: 1px; z-index: 2; font-size: 13px; line-height: 1; }
@keyframes gr-missing-pulse { 50% { transform: scale(1.18); } }

/* Vista ampliada de una carta al dejar el ratón encima 1 s */
.gr-card.gr-zoom { position: fixed; z-index: 9000; pointer-events: none; margin: 0; transform: none !important; filter: none !important;
  box-shadow: 0 10px 40px #000c, 0 0 0 1px #e0b35a66; animation: gr-zoom-in .14s ease-out; }
.gr-card.gr-zoom .gr-card-text { height: auto; min-height: 60px; max-height: 300px; overflow: hidden; }
.gr-card.gr-zoom .gr-card-kw { flex-wrap: wrap; height: auto; }
.gr-card.gr-zoom .gr-info, .gr-card.gr-zoom .gr-missing { animation: none; }
@keyframes gr-zoom-in { from { opacity: 0; transform: scale(.92) !important; } }

/* Colección: carta en grande al tocarla y modo selección (mantener pulsado) */
#collection .gr-piece { -webkit-touch-callout: none; user-select: none; }
#collection.selecting .gr-piece:not(.selected):not(.worn) { opacity: .75; }
#collection.selecting .gr-piece.selected { opacity: 1; }
.gr-zoom-piece { display: flex; flex-direction: column; gap: 10px; min-width: min(420px, 82vw); }
.gr-zp-head { display: flex; gap: 14px; align-items: center; position: relative; }
.gr-zp-head img { width: 112px; height: 112px; flex: none; border-radius: 12px; background: radial-gradient(circle, #5a4630, #1e1811); border: 2px solid var(--slot-border, #6b5232); }
.gr-zoom-piece.r-uncommon .gr-zp-head img { border-color: #5fbf4a; } .gr-zoom-piece.r-rare .gr-zp-head img { border-color: #3d8bff; }
.gr-zoom-piece.r-epic .gr-zp-head img { border-color: #a35bff; } .gr-zoom-piece.r-legendary .gr-zp-head img { border-color: #ffb12b; }
.gr-zp-head h3 { margin: 0 0 4px; font: 700 20px var(--display); color: var(--accent-2); }
.gr-zp-head p { margin: 0; }
.gr-zp-tier { position: absolute; left: 6px; top: 6px; padding: 1px 6px; border-radius: 6px; background: #000a; font: 700 12px var(--display); color: #fff; }
.gr-zp-stats { display: flex; gap: 10px; flex-wrap: wrap; }
.gr-zp-stat { display: inline-flex; flex-direction: column; align-items: center; min-width: 74px; padding: 6px 10px; border-radius: 10px; background: #e0b35a1f; border: 1px solid #e0b35a55; font-size: 12px; color: #d8c8a8; }
.gr-zp-stat b { font: 800 22px var(--display); color: var(--accent-2); }
.gr-zoom-piece h4 { margin: 4px 0 0; font: 700 14px var(--display); color: var(--accent); }
.gr-zp-lines, .gr-zp-kws { margin: 0; padding-left: 18px; display: grid; gap: 4px; font-size: 14px; line-height: 1.35; }
.gr-zp-kws b { color: var(--accent-2); }
.gr-zp-foot { font-size: 12px; margin: 0; }
.gr-zp-meta { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; font-weight: 700; }

/* Combate v2: dos líneas por lado (vanguardia y retaguardia) */
.gr-field { flex-direction: column; flex-wrap: nowrap; align-items: stretch; gap: 6px; }
.gr-line { position: relative; display: flex; flex-wrap: nowrap; align-items: center; justify-content: center; gap: 8px;
  min-height: calc(var(--mc-w, 120px) * .92 + 66px); padding: 2px 4px 2px 22px; border-radius: 10px; border: 1px dashed #ffffff14; }
.gr-line::before { content: attr(data-label); position: absolute; left: 2px; top: 50%; transform: translateY(-50%) rotate(180deg); writing-mode: vertical-rl;
  font: 700 10px var(--display); letter-spacing: .08em; text-transform: uppercase; color: #e0b35a88; pointer-events: none; }
.gr-line[data-line="back"] { background: #00000022; }
.gr-line[data-line="back"] .gr-card { transform: scale(.9); filter: brightness(.92); }
.gr-line[data-line="back"] .gr-card.chosen, .gr-line[data-line="back"] .gr-card.can:hover { transform: scale(.94) translateY(-3px); filter: none; }
.gr-line-empty { color: #ffffff2e; font: 700 12px var(--display); letter-spacing: .1em; text-transform: uppercase; }
body.gr-in-match .gr-field { flex-direction: column; flex-wrap: nowrap; align-items: stretch; justify-content: center; gap: 4px; }
body.gr-in-match .gr-line { min-height: calc(var(--mc-w) * .92 + 62px); flex: 1 1 0; }
body.gr-in-match .gr-line[data-line="back"] { min-height: calc((var(--mc-w) * .92 + 62px) * .85); }
.gr-line.gr-drop-ok { outline: 2px dashed #8fcf6aaa; outline-offset: -2px; }
.gr-line.gr-drop-hover { outline: 3px solid #8fcf6a; box-shadow: inset 0 0 30px #8fcf6a55; }
.gr-range { margin-right: 3px; font-size: .9em; }
.gr-move { position: absolute; right: 4px; bottom: calc(100% - 22px); top: 22px; bottom: auto; width: 22px; height: 22px; border-radius: 50%; border: 1px solid #e0b35a;
  background: #2a2014; color: #ffd98a; font: 700 13px/1 var(--display); cursor: pointer; z-index: 3; display: grid; place-items: center; padding: 0; }
.gr-move:hover { background: #4a3920; }
/* Cada lado tiene dos líneas (la de atrás, algo más pequeña): ocupa casi el doble que la mano. */
body.gr-in-match .gr-side { flex: 1.85 1 0; }
body.gr-in-match .gr-line { min-height: 0; overflow: visible; }
body.gr-in-match .gr-side { flex: 1.9 1 0; }
body.gr-in-match .gr-line[data-line="front"] { flex: 1 1 0; }
body.gr-in-match .gr-line[data-line="back"] { flex: .9 1 0; }
/* Móvil: en la mesa (cuatro filas) las cartas solo llevan nombre, dibujo y números; el texto está en «i». */
@media (max-width: 700px) {
  body.gr-in-match #board .gr-line .gr-card-text, body.gr-in-match #board .gr-line .gr-card-kw,
  body.gr-in-match #board .gr-line .gr-card-gear { display: none; }
}
/* Mesa (combate v2): cartas más anchas y bajas para que quepan cuatro filas sin verse estrechas. */
body.gr-in-match #board .gr-card-art { height: calc(var(--mc-w) * .26); }
body.gr-in-match #board .gr-card-art img { width: calc(var(--mc-w) * .24); height: calc(var(--mc-w) * .24); }
body.gr-in-match #board .gr-card-text { height: calc(var(--mc-w) * .22); }

/* Arte a todo el ancho: la imagen del objeto cubre la carta (con unos píxeles de margen) y los textos van
   encima, sobre un sombreado que la oscurece en esa zona para que se lean bien. */
.gr-card { overflow: hidden; isolation: isolate; }
.gr-card .gr-card-art { position: static; background: none; }
.gr-card .gr-card-art img, .gr-card.big .gr-card-art img, body.gr-in-match #board .gr-card .gr-card-art img {
  position: absolute; left: 4px; top: 4px; width: calc(100% - 8px); height: auto; aspect-ratio: 1; object-fit: contain;
  z-index: 0; border-radius: 6px; background: radial-gradient(circle at 50% 45%, #5a4630, #1e1811 75%); pointer-events: none; }
.gr-card::after { content: ''; position: absolute; inset: 4px; border-radius: 6px; z-index: 1; pointer-events: none;
  background: linear-gradient(to bottom, #0d0a07b3 0%, #0d0a0700 22%, #0d0a0700 38%, #0d0a07c7 58%, #0d0a07ee 100%); }
.gr-card-name, .gr-card-kw, .gr-card-text, .gr-card-gear, .gr-stats { position: relative; z-index: 2; }
.gr-card-name, .gr-card-text, .gr-stats { text-shadow: 0 1px 2px #000, 0 0 6px #000c; }
.gr-card-text { color: #f1e6cf; }
.gr-card .gr-status { z-index: 2; left: 6px; top: 22px; bottom: auto; }
.gr-cost, .gr-info, .gr-class, .gr-tag, .gr-helmet, .gr-move, .gr-missing { z-index: 3; }

/* Habilidades de equipo (combate v2, fase 2): botones en la carta, a la derecha, uno debajo de otro. */
.gr-ab { position: absolute; right: 4px; top: calc(48px + var(--i, 0) * 25px); width: 23px; height: 23px; border-radius: 50%; padding: 0;
  border: 1px solid #8fd0ff; background: #14283a; color: #fff; font-size: 12px; line-height: 1; cursor: pointer; z-index: 3;
  display: grid; place-items: center; box-shadow: 0 0 8px #4fb4ffaa; animation: gr-ab-glow 1.6s ease-in-out infinite; }
.gr-ab:hover { background: #24486a; }
@keyframes gr-ab-glow { 50% { box-shadow: 0 0 14px #4fb4ff; } }
body.gr-in-match #board .gr-ab { width: 20px; height: 20px; font-size: 11px; top: calc(40px + var(--i, 0) * 22px); }
@media (prefers-reduced-motion: reduce) { .gr-ab { animation: none; } }

/* Apoyar (sanadores) */
.gr-ab.gr-support { border-color: #8fe08a; background: #163a1c; box-shadow: 0 0 8px #8fe08aaa; color: #c9ffc4; font-weight: 800; }

/* Carta gigante a la izquierda (colección, personajes y editor de equipo) */
.gr-peek { position: fixed; left: 16px; top: 50%; transform: translateY(-50%); z-index: 10050; pointer-events: none;
  max-height: calc(100vh - 32px); overflow: hidden; filter: drop-shadow(0 14px 40px #000d); }
.gr-peek.hidden { display: none; }
.gr-peek .gr-card.big { --gc-w: 280px; width: 280px; }
.gr-peek .gr-card.big .gr-card-text { height: auto; max-height: 260px; overflow: hidden; font-size: 13px; }
.gr-peek .gr-zoom-piece { width: 340px; min-width: 0; padding: 16px; border-radius: 14px; background: linear-gradient(170deg, #3d3020, #1c160e);
  border: 2px solid var(--accent, #e0b35a); }
@media (max-width: 900px) { .gr-peek { display: none; } }
/* Editor: filtros y repetidas */
.gr-opt-filter { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 0 0 8px; }
.gr-opt-filter select { padding: 4px 6px; border-radius: 7px; background: #1d1a14; color: inherit; border: 1px solid #e0b35a55; }
.gr-opt-worn { font-size: 12px; color: var(--muted); display: inline-flex; gap: 4px; align-items: center; }
.gr-count { position: absolute; right: 4px; bottom: 4px; padding: 0 6px; border-radius: 8px; background: #000c; color: #ffd98a; font: 800 12px var(--display); z-index: 2; }
.gr-options .gr-piece.worn { opacity: .4; filter: grayscale(.6); }

/* Combate carta a carta: un 0 cuando el golpe no hace nada */
.gr-float.miss { color: #c9c2b4; font-size: 15px; }

/* ---------- Efectos visuales (armas, estados y habilidades) ---------- */
.gr-fx { position: absolute; z-index: 30; pointer-events: none; will-change: transform, opacity; }
.gr-fx-dot { width: var(--s, 9px); height: var(--s, 9px); border-radius: 50%; background: radial-gradient(circle, #fff 0 20%, var(--c) 45%, transparent 72%);
  box-shadow: 0 0 10px var(--c), 0 0 18px var(--c); }
.gr-fx-dot.glyph { width: auto; height: auto; background: none; box-shadow: none; font-size: var(--s, 16px); filter: drop-shadow(0 0 6px var(--c)); }
.gr-fx-shot { width: 46px; height: 5px; border-radius: 4px; background: linear-gradient(90deg, transparent, var(--c) 40%, #fff);
  box-shadow: 0 0 10px var(--c), 0 0 22px var(--c); transform-origin: center; }
.gr-fx-ring { border-radius: 50%; border: 4px solid var(--c); box-shadow: 0 0 22px var(--c), inset 0 0 22px var(--c); }
.gr-fx-glyph { font-size: 22px; filter: drop-shadow(0 0 6px var(--c)) drop-shadow(0 0 2px #000); }
.gr-fx-stamp { font-size: 54px; filter: drop-shadow(0 0 14px var(--c)) drop-shadow(0 0 3px #000); z-index: 31; }
.gr-card.gr-aura { box-shadow: 0 0 0 3px var(--aura), 0 0 26px var(--aura), 0 0 50px var(--aura); transition: box-shadow .15s; }

/* ---------- Estandartes grandes ---------- */
.gr-side { position: relative; }
.gr-banner { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); z-index: 4; display: grid; justify-items: center; gap: 0;
  min-width: 78px; padding: 8px 10px 6px; border-radius: 14px 14px 26px 26px; pointer-events: auto;
  background: linear-gradient(180deg, #4a1d18, #23100c); border: 2px solid #c9483a; box-shadow: 0 6px 20px #000a, inset 0 0 18px #0008; }
.gr-banner.mine { background: linear-gradient(180deg, #1f3d22, #0f1e11); border-color: #5fbf4a; }
.gr-banner-flag { font-size: 20px; line-height: 1; }
.gr-banner b { font: 900 40px/1 var(--display); color: #fff; text-shadow: 0 2px 0 #000, 0 0 14px #ff6a5a; }
.gr-banner.mine b { text-shadow: 0 2px 0 #000, 0 0 14px #7dff8a; }
.gr-banner small { font: 700 11px var(--display); color: #ffffff99; }
.gr-banner em { font: 700 10px var(--display); font-style: normal; color: #ffffffb0; text-transform: uppercase; letter-spacing: .05em; white-space: nowrap; }
.gr-banner.low { animation: gr-banner-low 1s ease-in-out infinite; }
@keyframes gr-banner-low { 50% { box-shadow: 0 0 0 3px #ff3b2f, 0 0 30px #ff3b2f; } }
.gr-banner.gr-drop-ok { outline: 3px dashed #ff6a5a; outline-offset: 2px; }
.gr-banner.gr-drop-hover { box-shadow: 0 0 0 4px #ff3b2f, 0 0 34px #ff3b2f; }
@media (max-width: 700px) { .gr-banner { right: 4px; min-width: 54px; padding: 4px 6px; } .gr-banner b { font-size: 26px; } .gr-banner em, .gr-banner small { display: none; } }

/* ---------- De quién es el turno: su lado brilla ---------- */
body.gr-in-match #board .gr-side { transition: box-shadow .4s, filter .4s, border-color .4s; }
body.gr-in-match #board[data-turn="me"] .gr-side.mine { border-color: #7dff8a; box-shadow: 0 0 0 2px #7dff8a88, 0 0 34px #7dff8a55, inset 0 0 60px #7dff8a22; }
body.gr-in-match #board[data-turn="me"] .gr-side.enemy { filter: brightness(.82) saturate(.85); }
body.gr-in-match #board[data-turn="enemy"] .gr-side.enemy { border-color: #ff6a5a; box-shadow: 0 0 0 2px #ff6a5a88, 0 0 34px #ff6a5a55, inset 0 0 60px #ff6a5a22; }
body.gr-in-match #board[data-turn="enemy"] .gr-side.mine { filter: brightness(.82) saturate(.85); }

/* ---------- Espada y escudo en el combate ---------- */
.gr-sym { position: absolute; left: 50%; top: 42%; transform: translate(-50%, -50%); z-index: 4; pointer-events: none;
  font-size: 40px; line-height: 1; filter: drop-shadow(0 0 8px #000) drop-shadow(0 0 10px var(--sym, #ff3b2f)); }
.gr-sym.atk { --sym: #ff3b2f; }
.gr-sym.def { --sym: #ffd25a; }
.gr-sym.tgt { --sym: #ff3b2f; font-size: 30px; top: 30%; }
.gr-sym.hint { opacity: .35; font-size: 30px; }
.gr-sym.live { animation: gr-sym-pop .35s ease-out; }
@keyframes gr-sym-pop { from { transform: translate(-50%, -50%) scale(.3); opacity: 0; } }
body.gr-in-match #board .gr-sym { font-size: calc(var(--mc-w) * .32); }
/* Los efectos visuales flotan encima: no ocupan sitio en la mesa (si no, la mesa crece y encoge). */
body.gr-in-match #board > .gr-fx { position: absolute; z-index: 30; }
body.gr-in-match #board > .gr-fx-stamp { z-index: 31; }

/* Pasivas de las capas: su nombre sale sobre la carta */
.gr-float.cape { color: #ffe9a8; font-size: 15px; white-space: nowrap; letter-spacing: .02em; }
