@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Montserrat:wght@500;600;700;800&display=swap');

:root {
  color-scheme: dark;
  --bg: #07070d;
  --bar: #12122a;
  --panel: #0e1018;
  --panel-2: #141722;
  --line: #2b3040;
  --ink: #fff7e8;
  --muted: #c3c9d2;
  --red: #e31b23;
  --red-dark: #8e0a10;
  --gold: #ffd000;
  --green: #1e8a2e;
  --cut: 22px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; min-width: 320px; color: var(--ink); background: var(--bg);
  font-family: 'Montserrat', 'Segoe UI', Roboto, Arial, sans-serif; line-height: 1.5;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
.hidden { display: none !important; }
.wrap { width: min(1120px, calc(100% - 32px)); margin: auto; }

/* ───────────── Barra superior ───────────── */
header.top {
  position: sticky; top: 0; z-index: 20; background: var(--bar);
  border-bottom: 1px solid #23234a; box-shadow: 0 6px 24px #0008;
}
header.top nav { min-height: 78px; display: flex; align-items: center; gap: 22px; }
.brand { display: flex; flex-direction: column; align-items: center; line-height: 1; }
.brand img { height: 46px; width: auto; display: block; }
.brand small { margin-top: 2px; font-weight: 800; font-size: 11px; letter-spacing: 3px; color: #fff; }
.links { margin-left: auto; display: flex; align-items: center; gap: 26px; font-size: 12px; font-weight: 800; letter-spacing: .4px; text-transform: uppercase; }
.links a:hover { color: var(--gold); }
.nav-actions { display: flex; align-items: center; gap: 14px; }
.text-button {
  cursor: pointer; border: 0; background: transparent; color: var(--gold); font: inherit;
  font-weight: 800; font-size: 17px; letter-spacing: .5px; text-transform: uppercase; padding: 8px 10px;
}
.text-button.small { font-size: 13px; text-transform: none; letter-spacing: 0; }
.text-button:hover { text-decoration: underline; }

/* Botones: aquí vive el neón, y solo aquí. */
.btn {
  cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 20px; border: 1px solid #ff5a5f; color: #fff; font: inherit;
  font-weight: 800; font-size: 12.5px; letter-spacing: .5px; text-transform: uppercase;
  border-radius: 10px; background: linear-gradient(180deg, #ff3b3b, var(--red-dark));
  box-shadow: 0 0 14px #e31b2388, inset 0 1px 0 #ffffff55;
  transition: transform .12s, box-shadow .12s;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 0 22px #e31b23cc, inset 0 1px 0 #ffffff66; }
.btn.ghost { background: transparent; border-color: #6e7785; box-shadow: none; }
.btn.ghost:hover { border-color: var(--gold); color: var(--gold); box-shadow: none; }
.btn.green { background: linear-gradient(180deg, #34b248, var(--green)); border-color: #62d676; box-shadow: 0 0 12px #34b24866, inset 0 1px 0 #ffffff55; }
.btn[disabled] { cursor: not-allowed; opacity: .62; transform: none; box-shadow: inset 0 1px 0 #ffffff33; filter: saturate(.7); }
.btn.wide { width: 100%; }
.btn.sm { min-height: 36px; padding: 0 14px; font-size: 11.5px; }

/* ───────────── Portada ───────────── */
.hero-bg { background: linear-gradient(180deg, #5a0508 0%, #2c0206 22%, #0a0a12 58%, #050508 100%); }
.hero { padding: 26px 0 64px; text-align: center; }
.eyebrow { color: #fff; font-weight: 800; font-size: clamp(14px, 2.2vw, 19px); letter-spacing: .5px; }
.eyebrow.gold { color: var(--gold); font-size: 12.5px; letter-spacing: 1.6px; }
.downloads { margin: 26px auto 8px; display: flex; justify-content: center; gap: 56px; flex-wrap: wrap; }
.dl { display: flex; flex-direction: column; align-items: center; gap: 8px; min-width: 220px; }
.dl img { height: 82px; width: auto; object-fit: contain; }
.dl h3 { margin: 4px 0 0; font-family: 'Bebas Neue', Impact, sans-serif; font-weight: 400; letter-spacing: 1.5px; font-size: 20px; color: #ddd; }
.dl-buttons { display: flex; gap: 10px; flex-wrap: nowrap; justify-content: center; }
@media (max-width: 560px) { .dl-buttons { flex-wrap: wrap; } }
.hero h1 {
  margin: 40px auto 14px; max-width: 760px; font-family: 'Bebas Neue', Impact, 'Arial Narrow', sans-serif;
  font-weight: 400; font-size: clamp(38px, 6vw, 64px); line-height: 1.02; letter-spacing: 1px;
}
.lead { max-width: 620px; margin: 0 auto; font-size: 17px; font-weight: 700; color: #fff; }
.actions { margin-top: 26px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ───────────── Secciones ───────────── */
.section { padding: 64px 0; }
.section h2 { margin: 6px 0 8px; font-family: 'Bebas Neue', Impact, sans-serif; font-weight: 400; letter-spacing: 1px; font-size: clamp(32px, 5vw, 46px); }
.section p { color: var(--muted); }
.events-title, .dashboard-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 22px; }
.icon-button { cursor: pointer; width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--line); background: var(--panel); color: var(--gold); font-size: 20px; }
.icon-button:hover { border-color: var(--gold); }

.event-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.event-card { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: var(--panel); }
.event-card > img, .event-poster { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: #151824; }
.event-poster { display: grid; place-items: center; text-align: center; font-family: 'Bebas Neue', Impact, sans-serif; font-size: 30px; letter-spacing: 3px; color: var(--gold); background: linear-gradient(135deg, #5a0508, #0a0a12); }
.event-body { display: flex; flex-direction: column; gap: 6px; padding: 16px; flex: 1; }
.event-body h3 { margin: 2px 0 0; font-size: 18px; }
.event-body p { margin: 0; font-size: 13.5px; }
.event-body time { color: var(--gold); font-weight: 800; font-size: 13px; }
.event-place { color: #fff !important; font-weight: 600; }
.tag { align-self: flex-start; padding: 3px 9px; border-radius: 99px; font-size: 10.5px; font-weight: 800; letter-spacing: .6px; background: #3a0a0e; color: #ffb3b6; }
.tag.open { background: #0f3a1a; color: #8ff0a0; }
.event-link { color: var(--gold); font-weight: 800; font-size: 13px; }
.event-link:hover { text-decoration: underline; }
.event-card .btn { margin-top: auto; }
.loading { color: var(--muted); }
.error { color: #ff8a8f !important; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card { padding: 24px; border: 1px solid var(--line); border-radius: 16px; background: linear-gradient(160deg, #151a26, #0d1018); }
.card h3 { margin: 0 0 10px; font-size: 18px; }
.card p { margin: 0; font-size: 14px; }

.notice { padding: 22px 26px; border-left: 4px solid var(--gold); border-radius: 10px; background: #111620; }
.notice strong { color: var(--gold); }
.notice p { margin: 6px 0 14px; }

/* ───────────── Panel de academia ───────────── */
.dashboard-grid { display: grid; grid-template-columns: 1.3fr .9fr; gap: 18px; align-items: start; }
.athlete-list { display: grid; gap: 8px; max-height: 520px; overflow: auto; }
.athlete-row { padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); }
.athlete-row small { display: block; color: var(--muted); }

/* ───────────── Formularios ───────────── */
label { display: grid; gap: 5px; font-size: 12.5px; font-weight: 700; color: #e9e2d2; }
input, select, textarea {
  width: 100%; min-height: 42px; padding: 9px 12px; color: var(--ink); font: inherit; font-weight: 500;
  border: 1px solid #38405a; border-radius: 10px; background: #0a0c14;
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--gold); outline-offset: 0; border-color: var(--gold); }
input[type=checkbox], input[type=radio] { width: 18px; min-height: 18px; accent-color: var(--red); }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.form-grid .wide { grid-column: 1 / -1; }
.stack-form { display: grid; gap: 12px; }
.terms, .choice { display: flex; align-items: flex-start; gap: 10px; font-weight: 500; font-size: 13px; color: var(--muted); }
.terms a { color: var(--gold); text-decoration: underline; }
.choice { padding: 10px 12px; border: 1px solid #38405a; border-radius: 10px; background: #0a0c14; }
.choice b { display: block; color: var(--ink); font-size: 13.5px; }
.form-message { min-height: 20px; margin: 10px 0 0; font-size: 13.5px; color: #8ff0a0; }
.form-message.error { color: #ff8a8f; }
fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 12px; }

/* ───────────── Ventanas con esquinas cortadas ───────────── */
dialog { padding: 0; border: 0; background: transparent; color: var(--ink); width: min(620px, calc(100% - 24px)); max-height: calc(100dvh - 24px); overflow: visible; }
dialog::backdrop { background: #000c; backdrop-filter: blur(3px); }
.cut {
  --c: var(--cut);
  clip-path: polygon(var(--c) 0, 100% 0, 100% calc(100% - var(--c)), calc(100% - var(--c)) 100%, 0 100%, 0 var(--c));
  background: linear-gradient(135deg, var(--red), #5a0508 55%, var(--gold));
  padding: 2px;
}
.cut-in {
  clip-path: polygon(var(--c) 0, 100% 0, 100% calc(100% - var(--c)), calc(100% - var(--c)) 100%, 0 100%, 0 var(--c));
  background: linear-gradient(180deg, #131621, #0a0b12);
  padding: 26px 28px 24px; max-height: calc(100dvh - 28px); overflow: auto; position: relative;
}
.cut-in h2 { margin: 4px 0 4px; font-family: 'Bebas Neue', Impact, sans-serif; font-weight: 400; font-size: 38px; letter-spacing: 1px; }
.cut-in h2 span { color: var(--gold); }
.cut-in .sub { margin: 0 0 14px; color: var(--muted); font-size: 13.5px; }
.dialog-close { position: absolute; top: 12px; right: 14px; z-index: 2; cursor: pointer; width: 34px; height: 34px; font-size: 22px; color: #fff; border: 1px solid #ffffff33; border-radius: 8px; background: #0006; }
.dialog-close:hover { border-color: var(--gold); color: var(--gold); }
.tabs { display: flex; gap: 6px; margin: 10px 0 16px; padding: 4px; border-radius: 10px; background: #0a0c14; border: 1px solid #262c3e; }
.tabs button { flex: 1; cursor: pointer; padding: 9px 6px; border: 0; border-radius: 7px; background: transparent; color: var(--muted); font: inherit; font-weight: 800; font-size: 12.5px; letter-spacing: .4px; text-transform: uppercase; }
.tabs button[aria-selected=true] { background: #2a0d12; color: var(--gold); box-shadow: inset 0 0 0 1px var(--gold); }
.row-links { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 6px; margin-top: 10px; }

/* ───────────── Páginas internas ───────────── */
.page { max-width: 820px; padding: 56px 0 90px; }
.page .stamp { color: var(--gold); font-weight: 800; font-size: 11.5px; letter-spacing: 1.4px; text-transform: uppercase; }
.page h1 { margin: 6px 0 14px; font-family: 'Bebas Neue', Impact, sans-serif; font-weight: 400; font-size: clamp(54px, 9vw, 92px); line-height: .95; letter-spacing: 1px; color: #fff3df; }
.page h2 { margin: 30px 0 6px; font-size: 20px; }
.page p, .page li { color: #d6dae1; font-size: 14.5px; }
.page ul { padding-left: 20px; }
.page .notice { margin-top: 26px; }
.page a.in { color: var(--gold); text-decoration: underline; }
.center-card { max-width: 480px; margin: 56px auto 90px; }

footer { padding: 26px 0; border-top: 1px solid #23262f; color: #aeb6c2; font-size: 12.5px; background: #05060a; }
.foot { display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; align-items: center; }
.foot a { color: var(--gold); }

@media (max-width: 860px) {
  .links { display: none; }
  .cards, .dashboard-grid { grid-template-columns: 1fr; }
  .nav-actions .text-button { font-size: 14px; padding: 6px; }
  header.top nav { gap: 10px; }
}
@media (max-width: 560px) {
  .form-grid { grid-template-columns: 1fr; }
  .downloads { gap: 30px; }
  .cut-in { padding: 24px 18px 20px; }
  .btn { padding: 0 14px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 50; max-width: min(520px, calc(100% - 32px)); padding: 12px 18px; border: 1px solid var(--gold); border-radius: 12px; background: #141722; color: var(--ink); font-size: 14px; font-weight: 600; box-shadow: 0 10px 40px #000a; }
.btn small { font-size: 9.5px; font-weight: 700; letter-spacing: .8px; opacity: .9; }

/* ───────────── Página de cuenta ───────────── */
.who { color: var(--muted); font-size: 12.5px; font-weight: 600; max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account { padding: 36px 0 70px; }
.account-head h1 { margin: 4px 0 2px; font-family: 'Bebas Neue', Impact, sans-serif; font-weight: 400; letter-spacing: 1px; font-size: clamp(34px, 5vw, 54px); line-height: 1; }
.account-head p { margin: 0 0 20px; color: var(--muted); }
.tabs.big { max-width: 640px; margin: 8px 0 22px; }
.tabs.big button { padding: 12px 10px; font-size: 13px; }
.count { display: inline-block; min-width: 22px; margin-left: 6px; padding: 1px 7px; border-radius: 99px; background: #2a0d12; color: var(--gold); font-size: 11.5px; }
.panel-title { display: flex; justify-content: space-between; align-items: flex-end; gap: 14px; flex-wrap: wrap; margin-bottom: 16px; }
.panel h2 { margin: 0 0 4px; font-family: 'Bebas Neue', Impact, sans-serif; font-weight: 400; letter-spacing: 1px; font-size: 32px; }
.panel p { margin: 0; color: var(--muted); font-size: 14px; }
.sub-title { margin-top: 38px !important; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); }
table.data { width: 100%; border-collapse: collapse; font-size: 13.5px; }
table.data th { text-align: left; padding: 12px 14px; font-size: 11.5px; letter-spacing: .6px; text-transform: uppercase; color: var(--gold); background: #141722; border-bottom: 1px solid var(--line); white-space: nowrap; }
table.data td { padding: 11px 14px; border-bottom: 1px solid #1c2030; vertical-align: middle; }
table.data tr:last-child td { border-bottom: 0; }
table.data tbody tr:hover { background: #121623; }
.athlete-form fieldset { padding: 18px; margin-bottom: 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); }
.athlete-form legend { padding: 0 8px; color: var(--gold); font-weight: 800; font-size: 12.5px; letter-spacing: 1px; text-transform: uppercase; }
.form-grid.three { grid-template-columns: repeat(3, 1fr); }
.form-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.form-actions .form-message { margin: 0; }
@media (max-width: 860px) { .form-grid.three { grid-template-columns: repeat(2, 1fr); } .who { display: none; } }
@media (max-width: 560px) { .form-grid.three { grid-template-columns: 1fr; } }

/* ───────────── Cuenta: barra, íconos y cabecera ───────────── */
body.acct { background: linear-gradient(180deg, #07070d 0%, #07070d 55%, #2a0a12 85%, #14143a 100%) fixed; }
.wide { width: min(1240px, calc(100% - 24px)); margin: auto; }
.acct-bar { background: var(--bar); border-bottom: 1px solid #23234a; position: sticky; top: 0; z-index: 20; }
.acct-bar-in { min-height: 76px; display: flex; align-items: center; gap: 18px; }
.acct-title { flex: 1; margin: 0; text-align: center; font-weight: 800; font-size: clamp(11px, 1.7vw, 19px); letter-spacing: .6px; color: #fff; }
.gear { cursor: pointer; width: 48px; height: 48px; display: grid; place-items: center; border: 1px solid #3a3a6a; border-radius: 50%; background: #0c0c1e; color: var(--gold); transition: transform .3s; }
.gear:hover { transform: rotate(60deg); border-color: var(--gold); }
.avatar-out { cursor: pointer; display: grid; justify-items: center; gap: 3px; border: 0; background: transparent; color: #fff; padding: 2px 4px; font: inherit; }
.avatar { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; background: linear-gradient(135deg, var(--red), var(--gold)); color: #111; font-weight: 800; font-size: 15px; border: 2px solid #fff3; }
.avatar-out small { font-size: 9px; font-weight: 800; letter-spacing: .5px; }
.avatar-out:hover small { color: var(--gold); }
.icon-strip { border: 0; background: linear-gradient(180deg, #5a0a10 0%, #2a070b 55%, rgba(7,7,13,0) 100%); }
.strip-in { display: flex; justify-content: space-around; align-items: center; gap: 6px; padding: 18px 0 14px; overflow-x: auto; }
.strip-btn { cursor: pointer; flex: 1 0 130px; display: grid; place-items: center; padding: 4px; border: 0; border-radius: 12px; background: transparent; transition: transform .15s, filter .15s, background .15s; }
.strip-btn img { height: 128px; width: auto; max-width: 100%; object-fit: contain; filter: drop-shadow(0 3px 4px #0009); }
.strip-btn:hover { transform: translateY(-3px) scale(1.06); }
.strip-btn.on { background: transparent; box-shadow: none; }
.strip-btn.on img { filter: drop-shadow(0 0 14px #ffd000e6); transform: scale(1.08); }
.strip-btn:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.acct-main { padding: 0 0 70px; }
.hero-card { border: 0; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; padding: 22px 28px; background: transparent; border-bottom: 0; }
.hero-side { display: grid; gap: 4px; align-content: center; }
.hero-side.right { text-align: right; justify-items: end; }
.hero-label { color: var(--gold); font-size: 11px; font-weight: 800; letter-spacing: 1.4px; text-transform: uppercase; }
.quote { margin: 0; color: #fff; font-weight: 800; font-size: clamp(15px, 2vw, 20px); line-height: 1.2; }
.quote::before { content: '“'; } .quote::after { content: '”'; }
.linkish { cursor: pointer; border: 0; background: transparent; font-family: inherit; text-align: inherit; padding: 0; }
.linkish:hover { color: var(--gold); }
.hero-center { text-align: center; }
.hero-center .trophy { height: 150px; width: auto; display: block; margin: 0 auto 6px; filter: drop-shadow(0 6px 14px #000a); }
.hero-center h2 { margin: 0; font-size: clamp(18px, 2.4vw, 26px); font-weight: 800; letter-spacing: .5px; }
.hero-sub { display: grid; gap: 2px; margin-top: 8px; color: #fff; }
.hero-sub span { font-size: 12px; font-weight: 800; letter-spacing: .6px; }
.hero-sub strong { font-size: 19px; }
.hero-card.compact .trophy { height: 74px; }
.hero-card.compact .hero-sub { display: none; }
.hero-card.compact { padding: 12px 28px; }
.view { padding: 26px 0 0; }
.view-note { margin: 0 0 18px; text-align: center; color: var(--muted); font-size: 14px; }
.two-col { display: grid; grid-template-columns: 340px 1fr; gap: 18px; align-items: start; }
.spaced { margin-top: 16px; }
.img-btn { cursor: pointer; border: 0; background: transparent; padding: 0; transition: transform .12s, filter .12s; }
.img-btn img { display: block; width: min(280px, 70vw); height: auto; filter: drop-shadow(0 4px 8px #0008); }
.img-btn:hover { transform: translateY(-2px) scale(1.03); filter: brightness(1.08); }
.soon { max-width: 520px; margin: 30px auto; text-align: center; padding: 30px 24px; border: 1px dashed #4a3a1a; border-radius: 18px; background: #0b0b12cc; }
.soon img { height: 170px; width: auto; margin-bottom: 10px; filter: drop-shadow(0 4px 10px #000a); }
.soon h2 { margin: 6px 0; font-size: 26px; }
.soon p { color: var(--muted); margin: 0; }
td input[type=checkbox] { width: 18px; height: 18px; min-height: 18px; }
td input[type=text] { min-height: 36px; padding: 6px 10px; min-width: 150px; }
@media (max-width: 860px) {
  .hero-card { grid-template-columns: 1fr; text-align: center; padding: 18px; }
  .hero-side, .hero-side.right { text-align: center; justify-items: center; order: 2; }
  .hero-center { order: 1; }
  .two-col { grid-template-columns: 1fr; }
  .acct-title { display: none; }
  .acct-bar-in { justify-content: space-between; }
}

/* ───────────── Inscripción por modalidades ───────────── */
dialog.wide-dialog { width: min(760px, calc(100% - 24px)); }
dialog.wide-dialog .cut-in { max-height: calc(100dvh - 40px); overflow-y: auto; }
.modes { display: grid; gap: 10px; margin: 14px 0; }
.mode { border: 1px solid var(--line); border-radius: 12px; background: #0b0b14; padding: 12px 14px; }
.mode.on { border-color: var(--gold); background: #14101a; }
.mode > label.mode-head { display: flex; align-items: center; gap: 10px; font-weight: 800; cursor: pointer; }
.mode.done { opacity: .75; }
.mode-body { display: none; margin-top: 10px; }
.mode.on .mode-body { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.mode-note { grid-column: 1 / -1; margin: 0; color: var(--muted); font-size: 12.5px; }
.chips { display: flex; flex-wrap: wrap; gap: 5px; }
.chip { padding: 3px 9px; border-radius: 99px; font-size: 11px; font-weight: 800; background: #1b1b34; color: #cfd6ff; white-space: nowrap; }
.chip.ok { background: #0f3a1a; color: #8ff0a0; }
.tk3-members { display: grid; gap: 10px; margin: 12px 0; }
.tk3-row { display: grid; grid-template-columns: 1fr 120px; gap: 10px; }
.tk3-total { font-size: 16px; margin: 6px 0 12px; } .tk3-total strong { color: var(--gold); font-size: 22px; }
.row-actions { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
@media (max-width: 560px) { .mode.on .mode-body { grid-template-columns: 1fr; } .tk3-row { grid-template-columns: 1fr; } }

.ins-open img { width: 190px; max-width: 46vw; height: auto; }
.img-btn[disabled] { opacity: .4; filter: grayscale(.7); cursor: not-allowed; transform: none; }
.build { opacity: .45; font-size: 10px; }

/* ───────────── Mis inscripciones / Llaves de competencia ───────────── */
.title-btns { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.title-btns .img-btn img { height: 64px; width: auto; max-width: 44vw; }
tr.grp td { background: #181322; border-top: 1px solid var(--line); padding: 10px 14px; }
.grp-in { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.grp-in small { color: var(--muted); margin-left: 8px; }
.key-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin: 18px 0 10px; }
.key-stats { display: flex; gap: 18px; flex-wrap: wrap; color: var(--muted); font-size: 13.5px; }
.key-stats strong { color: var(--gold); font-size: 20px; margin-right: 4px; }
.key-filters { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; }
.key-filters input[type=search] { flex: 1 1 240px; min-width: 200px; }
.key-filters .check { display: flex; gap: 6px; align-items: center; font-size: 13px; color: var(--muted); }
.chip-row { display: flex; gap: 6px; flex-wrap: wrap; }
.chip-btn { cursor: pointer; padding: 6px 12px; border-radius: 99px; border: 1px solid var(--line); background: #141722; color: var(--ink); font: 700 12px/1 Montserrat, sans-serif; }
.chip-btn.on { background: var(--gold); color: #1a1200; border-color: var(--gold); }
.key-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.key-card { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); }
.key-card.has-mine { border-color: #7a5a14; box-shadow: inset 0 0 0 1px #f5c51833; }
.key-mode { font-size: 10.5px; font-weight: 800; letter-spacing: .8px; text-transform: uppercase; color: var(--gold); }
.key-card h3 { margin: 0; font-size: 15px; line-height: 1.3; flex: 1; }
.key-count { color: var(--muted); font-size: 13px; } .key-count strong { color: #fff; font-size: 22px; margin-right: 3px; }
.mine-tag { color: #8ff0a0; font-weight: 700; }
dialog.key-dialog { width: min(1180px, calc(100% - 20px)); }
.key-banner { display: block; width: min(640px, 92%); height: auto; margin: 0 auto 8px; }
.key-dialog h2 { text-align: center; }
.key-dcount { text-align: center; margin: 0 0 14px; color: var(--muted); } .key-dcount strong { color: var(--gold); font-size: 22px; }
.key-note { color: var(--muted); font-size: 13px; margin: 0 0 10px; }
.key-allbar { display: flex; gap: 10px; align-items: center; margin: 10px 0; } .key-allbar input { flex: 1; }
table.data tr.mine td { background: #0f2415; }
.plist { list-style: none; margin: 0 0 10px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 8px; }
.plist li { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border: 2px solid #f5c518; border-radius: 10px; background: #f3f4f8; color: #14161f; }
.plist li.mine { background: #e6f7e9; }
.plist .num { flex: none; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: #e31b23; color: #fff; font-weight: 800; font-size: 13px; }
.plist b { display: block; font-size: 13.5px; } .plist small { display: block; color: #4b5060; font-size: 11.5px; }
/* Llave */
.bracket-scroll { overflow-x: auto; padding: 4px 4px 14px; }
.bracket { display: flex; min-width: max-content; }
.rcol { display: flex; flex-direction: column; width: 250px; margin-right: 34px; }
.rcol:last-child { margin-right: 0; }
.rhead { height: 44px; display: flex; align-items: center; justify-content: center; }
.rhead h4 { margin: 0; font-family: 'Bebas Neue', Impact, sans-serif; font-weight: 400; font-size: 20px; letter-spacing: 1px; color: var(--gold); }
.final-tag { height: 34px; width: auto; }
.rbody { flex: 1; display: flex; flex-direction: column; }
.slot { flex: 1; position: relative; display: flex; align-items: center; min-height: 112px; padding: 6px 0; }
.slot.a::before, .slot.b::before { content: ''; position: absolute; right: -17px; width: 0; border-left: 3px solid #e31b23; }
.slot.a::before { top: 50%; height: 50%; } .slot.b::before { top: 0; height: 50%; }
.slot::after { content: ''; position: absolute; right: -17px; top: 50%; width: 17px; border-top: 3px solid #e31b23; transform: translateY(-1.5px); }
.slot .cin { position: absolute; left: -17px; top: 50%; width: 17px; border-top: 3px solid #e31b23; transform: translateY(-1.5px); }
.champ .slot::after { display: none; }
.mbox { position: relative; width: 100%; border: 3px solid #f5c518; border-radius: 10px; background: #f3f4f8; box-shadow: 0 0 0 2px #000, 0 0 14px #f5c51855; overflow: hidden; clip-path: polygon(8px 0, calc(100% - 8px) 0, 100% 8px, 100% calc(100% - 8px), calc(100% - 8px) 100%, 8px 100%, 0 calc(100% - 8px), 0 8px); }
.prow { display: flex; align-items: center; gap: 6px; min-height: 46px; padding: 4px 8px 4px 4px; color: #14161f; }
.prow.blue { border-bottom: 2px solid #c9ccd6; }
.prow img { flex: none; width: 30px; height: auto; }
.pn { min-width: 0; } .pn b { display: block; font-size: 12.5px; line-height: 1.2; overflow-wrap: anywhere; } .pn small { display: block; font-size: 10.5px; color: #4b5060; line-height: 1.2; }
.prow.mine { background: #dff5e3; }
.prow.empty b, .prow.bye b { color: #8a8fa0; font-weight: 600; font-style: italic; }
.prow.bye { background: #e6e8ee; }
.vsbadge { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); z-index: 2; line-height: 0; }
.vsbadge img { width: 34px; height: auto; filter: drop-shadow(0 1px 2px #0008); }
.champ-slot { flex-direction: column; justify-content: center; gap: 6px; text-align: center; }
.champ-slot img { width: 170px; height: auto; } .champ-slot span { color: var(--muted); font-style: italic; font-size: 13px; }
.champ .rcol, .rcol.champ { width: 200px; }
.bracket-solo { max-width: 420px; margin: 0 auto 12px; text-align: center; }
.bracket-solo .prow { border: 3px solid #f5c518; border-radius: 10px; background: #f3f4f8; }
.bracket-solo p { color: var(--muted); font-size: 13px; }
@media (max-width: 560px) { .rcol { width: 220px; } .title-btns .img-btn img { height: 54px; } }

.icon-btn { cursor: pointer; padding: 2px; border: 0; background: none; line-height: 0; transition: transform .15s, filter .15s; }
.icon-btn:hover { transform: scale(1.12); filter: drop-shadow(0 0 8px #f5c518aa); }
.icon-btn img { width: 40px; height: 40px; image-rendering: auto; }
.gear { width: 60px; height: 60px; border: 0; background: none; padding: 0; }
.gear img { width: 56px; height: 56px; transition: transform .35s; filter: drop-shadow(0 2px 6px #000a); }
.gear:hover { transform: none; border-color: transparent; }
.gear:hover img { transform: rotate(60deg); }
