/* isekaiTCG · web pública. Estilo "gaming": noche + verde lima, títulos en cursiva y mayúsculas. */

/* Barlow (OFL), servida desde el propio servidor: la web funciona sin Internet. */
@font-face { font-family: 'Barlow'; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/barlow-latin-400-normal.woff2) format('woff2'); }
@font-face { font-family: 'Barlow'; font-style: normal; font-weight: 600; font-display: swap; src: url(fonts/barlow-latin-600-normal.woff2) format('woff2'); }
@font-face { font-family: 'Barlow'; font-style: normal; font-weight: 800; font-display: swap; src: url(fonts/barlow-latin-800-normal.woff2) format('woff2'); }
@font-face { font-family: 'Barlow'; font-style: italic; font-weight: 700; font-display: swap; src: url(fonts/barlow-latin-700-italic.woff2) format('woff2'); }
@font-face { font-family: 'Barlow'; font-style: italic; font-weight: 800; font-display: swap; src: url(fonts/barlow-latin-800-italic.woff2) format('woff2'); }

:root {
  --bg: #0d1020; --bg2: #121629; --panel: #171c31; --panel2: #1f2541; --line: #2a3150; --line2: #3a4268;
  --text: #ffffff; --muted: #9aa1b9; --lime: #b9f227; --lime2: #d4ff4d; --lime-ink: #0c1200;
  --red: #e5322d; --ok: #7ee787; --err: #ff6b6b; --parch: #f2e8c4;
  --r-common: #9aa1b9; --r-rare: #4e8df2; --r-epic: #b05cf2; --r-legendary: #f2a33a;
  --font: 'Barlow', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; overflow-x: hidden; background: var(--bg); color: var(--text); font: 15px/1.55 var(--font); }
a { color: var(--lime); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { font-family: var(--font); font-style: italic; font-weight: 800; text-transform: uppercase; letter-spacing: .3px; margin: 0 0 10px; line-height: 1.1; }
h1 { font-size: 40px; } h2 { font-size: 30px; } h3 { font-size: 17px; }
p { margin: 0 0 10px; }
.muted { color: var(--muted); } .ok { color: var(--ok); } .err { color: var(--err); } .lime { color: var(--lime); }
.small { font-size: 12px; }
b { font-weight: 600; }

/* ---------------------------------------------------------------- controles */
button, .btn {
  display: inline-block; background: var(--lime); color: var(--lime-ink); border: 2px solid var(--lime);
  border-radius: 4px; padding: 9px 20px; font: 700 12px/1.2 var(--font); letter-spacing: 1.2px; text-transform: uppercase;
  cursor: pointer; transition: .15s;
}
button:hover, .btn:hover { background: var(--lime2); border-color: var(--lime2); text-decoration: none; }
button.outline, .btn.outline { background: transparent; color: var(--text); border-color: var(--text); }
button.outline:hover, .btn.outline:hover { background: var(--text); color: var(--bg); }
button.ghost { background: transparent; color: var(--muted); border-color: transparent; }
button.ghost:hover { color: var(--text); background: var(--panel2); border-color: transparent; }
button.dark, .btn.dark { background: var(--panel2); color: var(--text); border-color: var(--line2); }
button.dark:hover { border-color: var(--lime); color: var(--lime); background: var(--panel2); }
button.danger { background: transparent; color: var(--err); border-color: #5a2a2a; }
button.danger:hover { background: #3a1a1a; border-color: var(--err); }
button:disabled { opacity: .45; cursor: not-allowed; }
button.big, .btn.big { padding: 13px 28px; font-size: 13px; }
input, select { background: var(--bg); color: var(--text); border: 1px solid var(--line2); border-radius: 4px; padding: 10px 12px; font: 15px var(--font); width: 100%; }
input:focus, select:focus { outline: none; border-color: var(--lime); }
label { display: block; font-size: 12px; color: var(--muted); margin-bottom: 5px; text-transform: uppercase; letter-spacing: 1px; font-weight: 600; }
.field { margin-bottom: 14px; }
.row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.row.between { justify-content: space-between; }
.right { margin-left: auto; }
.grid { display: grid; gap: 16px; }
.cols2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.cols3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.cols4 { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 6px; padding: 20px; }
.panel.soft { background: var(--bg2); }
.panel.lime { border-color: var(--lime); }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
th { color: var(--muted); font-weight: 600; font-size: 11px; text-transform: uppercase; letter-spacing: 1px; }
.boot { padding: 60px; text-align: center; color: var(--muted); }
code { background: var(--bg); border: 1px solid var(--line); padding: 2px 6px; border-radius: 3px; font-size: 13px; }

/* ---------------------------------------------------------------- cabecera */
.nav { position: sticky; top: 0; z-index: 10; background: var(--bg); border-bottom: 1px solid var(--line); }
.nav .inner { max-width: 1280px; margin: 0 auto; padding: 14px 24px; display: flex; align-items: center; gap: 22px; }
.brand { font-style: italic; font-weight: 800; font-size: 22px; text-transform: uppercase; letter-spacing: .5px; color: var(--text); display: flex; align-items: center; gap: 9px; }
.brand:hover { text-decoration: none; }
.brand .logo { width: 30px; height: 30px; border-radius: 4px; background: var(--lime); position: relative; transform: skewX(-8deg); }
.brand .logo::after { content: ""; position: absolute; inset: 6px 10px; background: var(--bg); border-radius: 2px; }
.brand em { color: var(--lime); font-style: inherit; }
.nav .links { display: flex; gap: 2px; }
.nav a.link { color: var(--text); padding: 7px 12px; border-radius: 3px; font-weight: 600; font-size: 12px; letter-spacing: 1.3px; text-transform: uppercase; }
.nav a.link.active, .nav a.link:hover { color: var(--lime); text-decoration: none; }
.nav .wallet { display: flex; gap: 8px; }
.coin { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 3px; background: var(--panel); border: 1px solid var(--line); font-size: 13px; font-weight: 600; }
.coin.gold::before { content: ""; width: 11px; height: 11px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #ffe28a, #c9a227); }
.coin.dust::before { content: ""; width: 11px; height: 11px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #d9c3ff, #6a3fb0); }
.nav .user { font-size: 13px; font-weight: 600; }
.burger { display: none; }
.main { max-width: 1280px; margin: 0 auto; padding: 28px 24px 60px; }
.main.landing { padding-top: 0; max-width: none; padding-left: 0; padding-right: 0; }
.wrap { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.toast { position: fixed; right: 20px; bottom: 20px; padding: 12px 18px; border-radius: 4px; background: var(--panel); border-left: 4px solid var(--lime); z-index: 50; box-shadow: 0 8px 30px rgba(0,0,0,.6); max-width: 440px; }
.toast.err { border-left-color: var(--err); }

/* ---------------------------------------------------------------- secciones */
.section { padding: 56px 0; }
.wrap.section { padding: 56px 24px; }
.sec-head { text-align: center; margin-bottom: 28px; }
.sec-head.left { text-align: left; }
.eyebrow { display: block; color: var(--lime); font-size: 11px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 8px; }
.sec-head h2 { font-size: 34px; }
.page-head { margin-bottom: 22px; }
.page-head h1 { font-size: 36px; }

/* ---------------------------------------------------------------- portada */
.hero { position: relative; overflow: hidden; min-height: 520px; display: flex; align-items: center; justify-content: center; text-align: center; padding: 70px 24px;
  background: radial-gradient(900px 500px at 20% 0%, #273a8a 0%, transparent 60%), radial-gradient(700px 420px at 85% 100%, #3b5a05 0%, transparent 60%), var(--bg); }
.hero::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(185,242,39,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(185,242,39,.06) 1px, transparent 1px); background-size: 48px 48px; mask-image: radial-gradient(circle at 50% 50%, #000 20%, transparent 75%); }
.hero .inner { position: relative; max-width: 860px; }
/* Ilustración de un tablero detrás del titular, oscurecida para leer el texto */
.hero-art { position: absolute; inset: 0; background: center / cover no-repeat; opacity: .38; filter: saturate(1.1);
  mask-image: linear-gradient(180deg, #000 55%, transparent); }
.hero h1 { font-size: 64px; margin-bottom: 18px; text-shadow: 0 6px 30px rgba(0,0,0,.6); }
.hero p.lead { font-size: 17px; color: #d6dae8; max-width: 620px; margin: 0 auto 26px; }
.hero .fan { position: absolute; display: flex; pointer-events: none; opacity: .9; }
.hero .fan.l { left: -40px; bottom: -60px; transform: rotate(-12deg); }
.hero .fan.r { right: -30px; top: 30px; transform: rotate(14deg); }
.hero .fan .card { box-shadow: 0 16px 40px rgba(0,0,0,.6); margin-left: -70px; }
.hero .fan .card:nth-child(2) { transform: translateY(26px) rotate(8deg); }
.hero .fan .card:nth-child(3) { transform: translateY(60px) rotate(16deg); }
.hero .beta { display: inline-block; color: var(--lime); font-size: 12px; letter-spacing: 2px; text-transform: uppercase; font-weight: 700; margin-bottom: 14px; }

.welcome { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; }
.welcome .pics { position: relative; height: 380px; }
.welcome .pics .card { position: absolute; box-shadow: 0 16px 40px rgba(0,0,0,.6); }
.welcome .pics .card:nth-child(1) { left: 0; top: 0; transform: rotate(-6deg); }
.welcome .pics .card:nth-child(2) { left: 150px; top: 40px; transform: rotate(4deg); z-index: 2; }
.welcome .pics .card:nth-child(3) { left: 300px; top: 10px; transform: rotate(10deg); }
.welcome .badge { position: absolute; right: 30px; bottom: 0; background: var(--lime); color: var(--lime-ink); padding: 14px 20px; border-radius: 4px; display: flex; gap: 12px; align-items: center; z-index: 3; }
.welcome .badge .n { font-size: 40px; font-weight: 800; font-style: italic; line-height: 1; }
.welcome .badge .l { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; line-height: 1.2; }
.welcome h2 { font-size: 34px; }

.features { display: grid; grid-template-columns: repeat(4, 1fr); border: 2px solid var(--lime); border-radius: 6px; background: var(--panel); }
.feature { padding: 26px 20px; text-align: center; border-right: 1px solid var(--line); }
.feature:last-child { border-right: 0; }
.feature .ico { width: 44px; height: 44px; margin: 0 auto 10px; color: var(--lime); }
.feature .ico svg { width: 44px; height: 44px; }
.feature h3 { font-size: 14px; }
.feature p { color: var(--muted); font-size: 13px; margin: 0; }

.tabs { display: flex; justify-content: center; gap: 8px; margin-bottom: 24px; flex-wrap: wrap; }
.tab { padding: 8px 16px; border: 1px solid var(--line2); border-radius: 3px; cursor: pointer; font-size: 12px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; color: var(--muted); background: transparent; }
.tab.on, .tab:hover { border-color: var(--lime); color: var(--lime); background: transparent; }

.band { position: relative; overflow: hidden; padding: 90px 24px; text-align: center;
  background: radial-gradient(800px 400px at 50% 50%, #1b2452 0%, transparent 70%), linear-gradient(135deg, #0d1020, #141a33); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.band h2 { font-size: 46px; margin-bottom: 8px; }
.band p { color: #d6dae8; font-size: 17px; margin-bottom: 22px; }
.band .pack { position: absolute; left: 8%; top: 50%; transform: translateY(-50%) rotate(-10deg); opacity: .9; }
.band .pack.r { left: auto; right: 8%; transform: translateY(-50%) rotate(10deg); }

.marquee { background: var(--lime); color: var(--lime-ink); overflow: hidden; white-space: nowrap; transform: rotate(-2deg) scale(1.03); margin: 40px 0; padding: 12px 0; }
.marquee span { display: inline-block; font-style: italic; font-weight: 800; font-size: 28px; text-transform: uppercase; padding-right: 50px; animation: slide 25s linear infinite; }
@keyframes slide { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.testi { padding: 22px; border: 1px solid var(--line2); border-radius: 6px; background: var(--panel); }
.testi h3 { font-size: 15px; }
.testi .who { color: var(--lime); font-size: 12px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; margin-top: 12px; }

.footer { border-top: 1px solid var(--line); background: var(--bg2); }
.footer .cols { max-width: 1280px; margin: 0 auto; padding: 48px 24px 30px; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 28px; }
.footer h3 { font-size: 14px; margin-bottom: 14px; }
.footer a { color: var(--muted); display: block; padding: 3px 0; font-size: 14px; }
.footer a:hover { color: var(--lime); text-decoration: none; }
.footer p { color: var(--muted); font-size: 14px; }
.footer .bottom { border-top: 1px solid var(--line); padding: 16px 24px; color: var(--muted); font-size: 12px; text-align: center; }

/* ---------------------------------------------------------------- productos (packs de oro) */
.product { position: relative; padding: 26px 18px 22px; border-radius: 6px; background: var(--panel); border: 1px solid var(--line); text-align: center; transition: .2s; }
.product:hover { border-color: var(--lime); transform: translateY(-4px); }
.product .tag { position: absolute; top: 12px; left: 12px; background: var(--red); color: #fff; font-weight: 700; font-size: 11px; padding: 3px 8px; border-radius: 3px; letter-spacing: .5px; }
.product .pile { width: 110px; height: 110px; margin: 0 auto 14px; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle at 40% 35%, #ffe79a, #c9a227 55%, #7a5d10); box-shadow: inset 0 -8px 20px rgba(0,0,0,.35), 0 10px 30px rgba(201,162,39,.25); color: #3a2a00; font-style: italic; font-weight: 800; font-size: 26px; }
.product .name { font-weight: 600; font-size: 15px; }
.product .gold { font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 8px; }
.product .price { color: var(--lime); font-size: 22px; font-weight: 800; font-style: italic; margin: 6px 0 14px; }

/* ---------------------------------------------------------------- cartas */
.card { --frame: #6e7585; --band: #6e7585; --parch: #ecebe6; width: 150px; height: 210px; border-radius: 11px; background: #1a1f33; border: 4px solid var(--frame);
  position: relative; font-size: 11px; user-select: none; flex: none; font-family: system-ui, sans-serif; color: #2a2418; }
.card.sm { width: 120px; height: 168px; font-size: 9.5px; border-width: 3px; }
.card .art { position: absolute; left: 0; right: 0; top: 0; height: 61%; border-radius: 7px 7px 0 0; overflow: hidden;
  background: linear-gradient(160deg, color-mix(in srgb, var(--band) 75%, #000), color-mix(in srgb, var(--band) 40%, #000)); }
.card .art img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card .body { position: absolute; left: 0; right: 0; bottom: 0; top: 66%; background: var(--parch); border-radius: 0 0 7px 7px;
  display: flex; flex-direction: column; align-items: center; padding: 6px 6px 15px; }
.card .banner { position: absolute; left: -5px; right: -5px; top: 55%; height: 12%; background: var(--band); border: 1px solid rgba(0,0,0,.5);
  border-radius: 4px; display: grid; place-items: center; padding: 0 18px; z-index: 2; box-shadow: 0 2px 4px rgba(0,0,0,.35); }
.card .banner span { color: #fff; font-weight: 700; font-size: 12px; line-height: 1.05; text-align: center; text-shadow: 0 1px 2px #000, 0 0 3px #000;
  overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.card.sm .banner span { font-size: 10px; }
.card .gem { position: absolute; left: 50%; top: 67%; width: 9px; height: 9px; transform: translate(-50%, -50%) rotate(45deg); border: 1px solid rgba(0,0,0,.7); z-index: 3; }
.card .type { font-size: 7.5px; letter-spacing: 1px; color: #7a6a4a; font-weight: 700; margin-bottom: 1px; }
.card .text { font-size: 10px; }
.card.sm .text { font-size: 8.5px; }
.card .text { flex: 1; text-align: center; display: flex; align-items: center; justify-content: center; line-height: 1.22; overflow: hidden; }
.card .cost, .card .atk, .card .hp { position: absolute; width: 30px; height: 30px; border-radius: 50%; color: #fff; font-weight: 800; font-size: 16px;
  display: grid; place-items: center; border: 2px solid rgba(0,0,0,.75); text-shadow: 0 0 3px #000, 0 1px 2px #000; z-index: 4; box-shadow: 0 2px 4px rgba(0,0,0,.4); }
.card.sm .cost, .card.sm .atk, .card.sm .hp { width: 25px; height: 25px; font-size: 13px; }
.card .cost { left: -9px; top: -9px; background: #2a5bd7; }
.card .atk { left: -9px; bottom: -9px; background: #d9a21b; }
.card .hp { right: -9px; bottom: -9px; background: #c8322c; }
.card .hp.dur { background: #7d8796; }
.card .dots { position: absolute; right: 5px; top: 5px; z-index: 3; }
.card.legend { --frame: #e9b520; box-shadow: 0 0 0 1px #7a5a00, 0 0 14px rgba(233,181,32,.45); }
.card .count { position: absolute; top: 46%; right: 4px; z-index: 5; background: var(--bg); color: var(--lime); border: 1px solid var(--lime); border-radius: 3px; font-size: 11px; font-weight: 700; padding: 1px 7px; font-family: var(--font); }
.card.missing { filter: grayscale(.9) brightness(.55); }
.card.clickable { cursor: pointer; transition: transform .12s, box-shadow .12s; }
.card.clickable:hover { transform: translateY(-5px); box-shadow: 0 12px 30px rgba(0,0,0,.5); }
.card.reveal { animation: flip .55s ease both; }
@keyframes flip { 0% { transform: rotateY(90deg) scale(.9); opacity: 0; } 100% { transform: none; opacity: 1; } }
.cards { display: flex; flex-wrap: wrap; gap: 16px; }
.cards.center { justify-content: center; }
.r-common { background: var(--r-common); } .r-rare { background: var(--r-rare); } .r-epic { background: var(--r-epic); } .r-legendary { background: var(--r-legendary); }
.rar-common { color: var(--r-common); } .rar-rare { color: var(--r-rare); } .rar-epic { color: var(--r-epic); } .rar-legendary { color: var(--r-legendary); }
.filters { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 18px; align-items: center; }
.filters input, .filters select { width: auto; min-width: 160px; }
.chip { padding: 8px 14px; border-radius: 3px; border: 1px solid var(--line2); background: transparent; cursor: pointer; font-size: 12px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); }
.chip.on { border-color: var(--lime); color: var(--lime); }

/* ---------------------------------------------------------------- auth */
.auth { max-width: 440px; margin: 30px auto; }
.auth .panel { padding: 30px; border-top: 3px solid var(--lime); }
.auth h2 { font-size: 28px; }

/* ---------------------------------------------------------------- cuenta / mazos / sobres */
.stat { background: var(--panel); border: 1px solid var(--line); border-left: 3px solid var(--lime); border-radius: 4px; padding: 16px; }
.stat .n { font-size: 28px; font-weight: 800; font-style: italic; line-height: 1.1; }
.stat .l { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: 1px; margin-top: 4px; }
.deck-list .deck { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 4px; background: var(--panel); margin-bottom: 10px; }
.deck-list .deck:hover { border-color: var(--line2); }
.deck .sel { color: var(--lime); font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; margin-left: 8px; }
.builder { display: grid; grid-template-columns: 1fr 320px; gap: 18px; }
.builder .panel { position: sticky; top: 76px; align-self: start; }
.decklist { max-height: 62vh; overflow: auto; }
.decklist .line { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-bottom: 1px solid var(--line); cursor: pointer; font-size: 13px; }
.decklist .line:hover { background: var(--panel2); }
.decklist .line .c { width: 22px; height: 22px; border-radius: 50%; background: #1c3f8f; color: #fff; display: grid; place-items: center; font-size: 11px; font-weight: 700; }
.decklist .line .n { flex: 1; }
.decklist .line .x { color: var(--muted); }
.progress { height: 6px; border-radius: 3px; background: var(--bg); overflow: hidden; margin: 10px 0; }
.progress div { height: 100%; background: var(--lime); }
.pack { width: 150px; height: 210px; border-radius: 10px; margin: 0 auto 14px; position: relative; display: grid; place-items: center; text-align: center;
  background: linear-gradient(160deg, #3b2f7a, #1c2541 60%, #5a3d10); border: 2px solid #c9a227; box-shadow: 0 14px 36px rgba(0,0,0,.6);
  font-style: italic; font-weight: 800; text-transform: uppercase; color: var(--parch); font-size: 20px; line-height: 1.1; }
.pack::before { content: ""; position: absolute; inset: 8px; border: 1px dashed rgba(242, 232, 196, .4); border-radius: 6px; }
.pack .sub { font-size: 11px; color: var(--lime); letter-spacing: 1.5px; font-style: normal; margin-top: 6px; }
.steps li { margin-bottom: 8px; }

@media (max-width: 900px) {
  .hero { min-height: 420px; padding: 50px 20px; } .hero h1 { font-size: 40px; } .hero .fan { display: none; }
  .welcome { grid-template-columns: 1fr; } .welcome .pics { height: 320px; } .welcome .pics .card:nth-child(3) { display: none; } .welcome .badge { right: auto; left: 0; }
  .features { grid-template-columns: 1fr 1fr; } .feature:nth-child(2) { border-right: 0; } .feature:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .builder { grid-template-columns: 1fr; } .builder .panel { position: static; }
  .band h2 { font-size: 30px; } .band .pack { display: none; }
  .marquee span { font-size: 20px; }
  .nav .inner { flex-wrap: wrap; gap: 10px; }
  .nav .links { order: 3; width: 100%; display: none; flex-wrap: wrap; }
  .nav .links.open { display: flex; }
  .burger { display: inline-block; }
  .sec-head h2 { font-size: 26px; }
}

/* ---------------------------------------------------------------- colores */
.dots { display: inline-flex; gap: 2px; flex: none; }
.dot { display: inline-block; width: 11px; height: 11px; border-radius: 50%; border: 1px solid rgba(0,0,0,.5); box-shadow: 0 0 0 1px rgba(255,255,255,.35); }
.c-life { background: #f3ecc8; } .c-death { background: #3b2a4d; } .c-nature { background: #3f9a4a; } .c-water { background: #2f7fd6; } .c-desert { background: #d9542b; } .c-steel { background: #9aa4b5; }
.color-pick { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.color-pick .opt { padding: 12px; border: 1px solid var(--line2); border-radius: 4px; cursor: pointer; background: var(--panel); }
.color-pick .opt:hover { border-color: var(--lime); }
.color-pick .opt.on { border-color: var(--lime); box-shadow: inset 0 0 0 1px var(--lime); }
.color-pick .opt b { display: flex; align-items: center; gap: 8px; text-transform: uppercase; font-style: italic; letter-spacing: .5px; }
.color-pick .opt .dot { width: 14px; height: 14px; }
.color-pick .opt small { color: var(--muted); display: block; margin-top: 4px; }
.deck .dot { width: 14px; height: 14px; }

/* marcos de carta por color */
.card.col-life { --frame: #c9a227; --band: #b8921e; --parch: #f6efd9; }
.card.col-death { --frame: #4b3464; --band: #5a3f78; --parch: #e6deec; }
.card.col-nature { --frame: #2f7a3a; --band: #357f40; --parch: #e6eedb; }
.card.col-water { --frame: #2b67b3; --band: #2d6bb8; --parch: #e1ebf5; }
.card.col-desert { --frame: #b8451f; --band: #c04d25; --parch: #f6e6d6; }
.card.col-steel { --frame: #6e7585; --band: #6b7282; --parch: #ecebe6; }
.card.col2-life .banner { background: linear-gradient(90deg, var(--band) 50%, #b8921e 50%); }
.card.col2-death .banner { background: linear-gradient(90deg, var(--band) 50%, #5a3f78 50%); }
.card.col2-nature .banner { background: linear-gradient(90deg, var(--band) 50%, #357f40 50%); }
.card.col2-water .banner { background: linear-gradient(90deg, var(--band) 50%, #2d6bb8 50%); }
.card.col2-desert .banner { background: linear-gradient(90deg, var(--band) 50%, #c04d25 50%); }
/* emblemas */
.emblem { display: inline-grid; place-items: center; border-radius: 50%; flex: none; box-shadow: inset 0 0 0 2px rgba(0,0,0,.35); }
.emblem svg { width: 62%; height: 62%; }
.emblem.c-life { color: #3a2e05; } .emblem.c-death { color: #efe6f5; } .emblem.c-nature { color: #0f2e14; } .emblem.c-water { color: #eaf3ff; } .emblem.c-desert { color: #fff1e6; } .emblem.c-steel { color: #1a1f2e; }

/* ranking */
.tier { display:inline-block; padding:2px 9px; border-radius:999px; font-size:11px; font-weight:700; letter-spacing:.06em; text-transform:uppercase; border:1px solid transparent; }
.tier.t-bronce { background:#4a2f1a; color:#e0a070; border-color:#8a5a30; }
.tier.t-plata { background:#2e3340; color:#d8dce6; border-color:#8a90a0; }
.tier.t-oro { background:#4a3a0a; color:#ffd24d; border-color:#b08a20; }
.tier.t-platino { background:#123a3a; color:#8ff0e0; border-color:#2aa090; }
.tier.t-diamante { background:#1a2a5a; color:#9cc6ff; border-color:#4a7ae0; }
table.ranking tr.mine td { background: rgba(185,242,39,.08); }

/* amigos */
.dot-online { display:inline-block; width:9px; height:9px; border-radius:50%; background:#555c70; margin-right:8px; vertical-align:middle; }
.dot-online.on { background:var(--lime); box-shadow:0 0 6px var(--lime); }
.btn.small, button.small { padding:4px 10px; font-size:12px; }

/* chat */
.chat { margin-bottom: 16px; }
.chat-log { max-height: 320px; overflow-y: auto; display:flex; flex-direction:column; gap:8px; padding:4px 2px; }
.msg { max-width: 85%; align-self:flex-start; background: var(--panel2); border:1px solid var(--line); border-radius: 10px; padding: 8px 10px; }
.msg.mine { align-self:flex-end; background: #233a12; border-color:#3f5a1e; }
.msg .body { white-space: pre-wrap; word-break: break-word; }
.msg .when { font-size: 11px; color: var(--muted); margin-top: 3px; }

/* portada ilustrada del sobre */
.pack.art { overflow: hidden; padding: 0; }
.pack.art::before { display: none; }
.pack.art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pack.art .band-name { position: absolute; left: 0; right: 0; bottom: 0; padding: 8px; background: rgba(0,0,0,.6); font-size: 14px; }


/* ---------------------------------------------------------------- Grusito: elegir juego y Tactics */
.brand .logo.tac { border-radius: 50%; transform: none; }
.brand .logo.tac::after { inset: 9px; border-radius: 50%; background: var(--bg); }
.nav .link.switch { color: var(--muted); margin-left: 8px; border-left: 1px solid var(--line); padding-left: 14px; }
.nav .link.switch:hover { color: var(--lime); }
.chooser { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; padding: 40px 24px; max-width: 1180px; margin: 0 auto; }
.chooser .top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 40px; }
.chooser h1 { text-align: center; font-size: 56px; margin-bottom: 30px; }
.chooser .games { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.chooser .game { position: relative; display: block; min-height: 440px; border-radius: 12px; overflow: hidden; border: 1px solid var(--line2); background: var(--panel) center / cover no-repeat; transition: transform .2s, border-color .2s; }
.chooser .game:hover { transform: translateY(-4px); border-color: var(--lime); text-decoration: none; }
.chooser .game::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11,14,28,.15) 0%, rgba(11,14,28,.6) 45%, rgba(11,14,28,.97) 100%); }
.chooser .game .txt { position: absolute; left: 0; right: 0; bottom: 0; padding: 28px; color: var(--text); }
.chooser .game h2 { font-size: 44px; margin: 0 0 8px; }
.chooser .game h2 em { color: var(--lime); font-style: inherit; }
.chooser .game p { color: #d6dae8; max-width: 440px; margin-bottom: 16px; }
.hero.tac h1 { font-size: 60px; }
.champs { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin-top: 18px; }
.champ { position: relative; height: 210px; border-radius: 10px; overflow: hidden; border: 2px solid var(--cost); background: color-mix(in srgb, var(--col) 22%, var(--panel)); cursor: default; }
.champ.sm { height: 150px; }
.champ img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.champ .ph { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 96px; font-weight: 800; font-style: italic; color: color-mix(in srgb, var(--col) 45%, transparent); }
.champ .info { position: absolute; left: 0; right: 0; bottom: 0; padding: 28px 10px 8px; background: linear-gradient(transparent, rgba(11,14,28,.95) 55%); }
.champ .info .traits { display: block; font-size: 11px; color: #d6dae8; }
.champ .info b { font-style: italic; font-weight: 800; text-transform: uppercase; font-size: 16px; }
.champ .info .cost { color: var(--gold, #f2c21b); font-weight: 800; font-style: italic; }
.chip { display: inline-block; padding: 1px 8px; border-radius: 6px; border: 1px solid var(--line2); font-size: 14px; }
.chip.top { border-color: #5fd17a; color: #5fd17a; }
.chip.win { border-color: var(--lime); color: var(--lime); }
@media (max-width: 820px) { .chooser .games { grid-template-columns: 1fr; } .chooser .game { min-height: 320px; } .chooser h1 { font-size: 36px; } .hero.tac h1 { font-size: 38px; } }

/* ---- guía de Isekai Tactics ---- */
table.meta { width: 100%; border-collapse: collapse; font-size: 14px; }
table.meta th, table.meta td { padding: 6px 8px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
table.meta th { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: 1px; }
.gbar { position: relative; height: 16px; min-width: 90px; background: var(--bg2); border-radius: 3px; overflow: hidden; }
.gbar div { height: 100%; opacity: .55; }
.gbar span { position: absolute; left: 6px; top: 0; font-size: 12px; line-height: 16px; font-weight: 700; }
.tpill { display: inline-block; padding: 1px 8px; border-radius: 999px; border: 1px solid var(--c); color: var(--c); font-size: 12px; font-weight: 700; margin: 1px 0; white-space: nowrap; }
.mini { display: inline-flex; align-items: center; gap: 6px; padding: 2px 8px 2px 2px; border-radius: 999px; border: 1px solid var(--cost, var(--line2)); background: var(--bg2); font-size: 13px; margin: 2px 0; white-space: nowrap; }
.mini img, .mini i { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; object-position: top; display: inline-block; font-style: normal; text-align: center; line-height: 24px; background: var(--panel); }
.iico { display: inline-flex; width: 44px; height: 44px; border-radius: 8px; overflow: hidden; border: 1px solid var(--line2); background: var(--bg2); align-items: center; justify-content: center; flex: none; }
.iico.sm { width: 24px; height: 24px; border-radius: 5px; vertical-align: middle; }
.iico img { width: 100%; height: 100%; object-fit: cover; }
.iico i { font-style: normal; font-weight: 700; }
.stars { color: #ffb627; letter-spacing: 1px; }
.guide-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 12px; }
.gcard { display: grid; grid-template-columns: 110px 1fr; gap: 12px; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 10px; }
.gcard.item { grid-template-columns: 44px 1fr; }
.gcard .champ.sm { height: 150px; }
.gcard .body p { margin: 6px 0; font-size: 14px; }
.tiers, .tips { margin: 8px 0; padding-left: 18px; font-size: 14px; }
.tiers li, .tips li { margin: 4px 0; }
.comp { display: flex; align-items: center; gap: 8px; min-width: 150px; }
.chip[style*="--c"] { border-color: var(--c); color: var(--c); }
@media (max-width: 600px) { .gcard { grid-template-columns: 1fr; } .gcard .champ.sm { height: 180px; } }
.meta-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(440px, 1fr)); gap: 14px; }
table.meta td.cell { white-space: nowrap; }
table.meta td.cell .tpill { margin-right: 3px; }
table.meta.odds td, table.meta.odds th { text-align: center; }
table.meta.odds td:first-child, table.meta.odds th:first-child { text-align: left; }
@media (max-width: 700px) { .meta-grid { grid-template-columns: 1fr; } table.meta td.cell { white-space: normal; } }
.league { display: inline-block; padding: 2px 10px; border-radius: 999px; border: 1px solid var(--c); color: var(--c); font-size: 12px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; vertical-align: middle; font-style: normal; }
.tab[style*="--c"].on { border-color: var(--c); color: var(--c); }
.envtag { margin-left: 8px; padding: 1px 7px; border-radius: 4px; background: #ff7a2f; color: #1a0b00; font-size: 10px; font-weight: 800; letter-spacing: 1px; font-style: normal; vertical-align: middle; }
