:root {
  /* Paleta de la app original Virazon (rork-futbol-virazonFC-app) */
  --green: #2B8C3E;
  --green-2: #2B8C3E;
  --green-dark: #1f6b2e;
  --field: #2E7D32;
  --accent: #FFD700;
  --orange: #FF6B35;
  --red: #DC3545;
  --ok: #2B8C3E;
  --bg: #f5f5f5;
  --card: #ffffff;
  --text: #1a1a1a;
  --muted: #666666;
  --line: #e0e0e0;
  --radius: 12px;
  --shadow: 0 2px 4px rgba(0,0,0,.1);
  --safe-b: env(safe-area-inset-bottom, 0px);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; background: var(--bg); color: var(--text);
  font: 15px/1.4 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; }
button, input, select { font: inherit; color: inherit; }
img { max-width: 100%; }
h1, h2, h3 { margin: 0; line-height: 1.2; }
h2 { font-size: 19px; }
h3 { font-size: 16px; }
.muted { color: var(--muted); font-size: 13px; }
.hidden { display: none !important; }

/* ---------- layout ---------- */
.topbar { position: sticky; top: 0; z-index: 5; background: var(--green); color: #fff;
  padding: calc(10px + env(safe-area-inset-top, 0px)) 16px 10px; display: flex; align-items: center; gap: 10px; }
.topbar img { width: 30px; height: 30px; }
.topbar .title { font-weight: 800; letter-spacing: .3px; flex: 1; }
.topbar .who { font-size: 12px; opacity: .85; text-align: right; }
main { padding: 14px 16px calc(90px + var(--safe-b)); max-width: 720px; margin: 0 auto; }
.tabbar { position: fixed; bottom: 0; left: 0; right: 0; z-index: 6; background: #fff; border-top: 1px solid var(--line);
  display: flex; padding-bottom: var(--safe-b); }
.tabbar button { flex: 1; border: 0; background: none; padding: 8px 2px 9px; display: flex; flex-direction: column;
  align-items: center; gap: 2px; font-size: 11px; color: var(--muted); cursor: pointer; }
.tabbar button .ic { font-size: 21px; line-height: 1; }
.tabbar button.on { color: var(--green-2); font-weight: 700; }

.subtabs { display: flex; gap: 6px; overflow-x: auto; margin: 0 -16px 14px; padding: 0 16px; scrollbar-width: none; }
.subtabs button { flex: 0 0 auto; border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 7px 14px;
  font-size: 13px; font-weight: 600; color: var(--muted); cursor: pointer; }
.subtabs button.on { background: var(--green); border-color: var(--green); color: #fff; }

.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px; margin-bottom: 12px; }
.card.tight { padding: 10px 12px; }
.row { display: flex; align-items: center; gap: 10px; }
.row.between { justify-content: space-between; }
.wrap { flex-wrap: wrap; }
.grow { flex: 1; min-width: 0; }
.stack > * + * { margin-top: 10px; }
.section-title { display: flex; align-items: center; justify-content: space-between; margin: 18px 2px 8px; }
.section-title h3 { font-size: 14px; text-transform: uppercase; letter-spacing: .6px; color: var(--muted); }

/* ---------- buttons & forms ---------- */
.btn { border: 0; border-radius: 10px; padding: 11px 16px; font-weight: 700; cursor: pointer; background: var(--green-2); color: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; text-decoration: none; }
.btn:disabled { opacity: .5; }
.btn.block { width: 100%; }
.btn.sm { padding: 7px 11px; font-size: 13px; border-radius: 8px; }
.btn.ghost { background: #eef2f0; color: var(--text); }
.btn.danger { background: #fde8ea; color: var(--red); }
.btn.wa { background: #25d366; color: #073b1c; }
.btn.yellow { background: var(--accent); color: #2a2100; }
label.f { display: block; font-size: 13px; font-weight: 600; color: var(--muted); margin: 12px 0 5px; }
input.i, select.i { width: 100%; padding: 11px 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; font-size: 16px; }
input.i:focus, select.i:focus { outline: 2px solid var(--green-2); border-color: transparent; }
.seg { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.seg button { border: 1px solid var(--line); background: #fff; border-radius: 10px; padding: 10px 6px; font-weight: 600; cursor: pointer; }
.seg button.on { border-color: var(--green-2); background: #e6f4ee; color: var(--green); }
.err { color: var(--red); font-size: 13px; margin-top: 8px; min-height: 1em; }
.toggle { display: flex; align-items: center; justify-content: space-between; padding: 10px 0; border-top: 1px solid var(--line); }
.toggle:first-child { border-top: 0; }
.switch { position: relative; width: 48px; height: 28px; flex: 0 0 auto; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch span { position: absolute; inset: 0; background: #cfd8d4; border-radius: 999px; transition: .2s; cursor: pointer; }
.switch span::before { content: ""; position: absolute; width: 22px; height: 22px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: .2s; box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.switch input:checked + span { background: var(--ok); }
.switch input:checked + span::before { transform: translateX(20px); }
.range-wrap { display: flex; align-items: center; gap: 12px; }
.range-wrap input { flex: 1; accent-color: var(--green-2); }
.range-wrap b { font-size: 22px; width: 34px; text-align: center; }

/* ---------- chips & avatars ---------- */
.chip { display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: 999px; font-size: 12px; font-weight: 700; background: #eef2f0; color: var(--muted); white-space: nowrap; }
.chip.ok { background: #e3f6ea; color: var(--ok); }
.chip.red { background: #fde8ea; color: var(--red); }
.chip.gold { background: #fff4cc; color: #7a5a00; }
.chip.pos-Arquero { background: #fff1d6; color: #8a5300; }
.chip.pos-Defensor { background: #e2ecff; color: #1d4ed8; }
.chip.pos-Mediocampista { background: #e3f6ea; color: #157347; }
.chip.pos-Delantero { background: #fde8ea; color: #b4232f; }
.avatar { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; background: #dfe7e3; flex: 0 0 auto;
  display: inline-flex; align-items: center; justify-content: center; font-weight: 800; color: var(--green); font-size: 15px; }
.avatar.lg { width: 96px; height: 96px; font-size: 32px; }
.avatar.sm { width: 32px; height: 32px; font-size: 12px; }
.rating { font-weight: 800; color: var(--green); }

/* ---------- welcome / login ---------- */
.splash { min-height: 100vh; min-height: 100dvh; background: radial-gradient(circle at 50% 0%, #1f6b4f, var(--green) 60%); color: #fff;
  display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 24px 20px; text-align: center; }
.splash .logo { width: 76px; height: 76px; margin-bottom: 10px; }
.splash h1 { font-size: 26px; font-weight: 900; letter-spacing: .5px; }
.splash .box { background: #fff; color: var(--text); border-radius: 18px; padding: 18px; width: 100%; max-width: 380px; margin-top: 18px; text-align: left; }
.frame { width: 100%; max-width: 380px; border-radius: 18px; padding: 10px; background: linear-gradient(135deg, #f5b700, #fff3c4 50%, #f5b700);
  box-shadow: 0 12px 30px rgba(0,0,0,.35); }
.frame img { display: block; width: 100%; border-radius: 10px; border: 3px solid #1b1f23; }
.welcome-title { font-size: 25px; font-weight: 900; line-height: 1.15; margin: 26px 0 22px; text-shadow: 0 2px 8px rgba(0,0,0,.35); }
.welcome-title span { color: var(--accent); display: block; font-size: 31px; }

/* ---------- events ---------- */
.event { border-left: 5px solid var(--red); }
.event .date-badge { width: 54px; text-align: center; border-radius: 10px; background: #fde8ea; color: var(--red); padding: 5px 0; flex: 0 0 auto; }
.event .date-badge b { display: block; font-size: 22px; line-height: 1; }
.event .date-badge small { font-size: 11px; font-weight: 700; text-transform: uppercase; }
.event.flash { animation: flash 1.6s ease; }
@keyframes flash { 0%, 50% { box-shadow: 0 0 0 4px var(--accent); } 100% { box-shadow: var(--shadow); } }
.progress { height: 7px; border-radius: 99px; background: #eef2f0; overflow: hidden; margin-top: 8px; }
.progress div { height: 100%; background: var(--green-2); }
.people { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.people .p { display: inline-flex; align-items: center; gap: 5px; background: #f4f6f5; border-radius: 999px; padding: 2px 9px 2px 2px; font-size: 12px; }
.people .p .avatar { width: 22px; height: 22px; font-size: 9px; }

/* ---------- player list ---------- */
.plist { display: grid; gap: 10px; }
.pcard { display: flex; gap: 12px; align-items: center; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 10px 12px; cursor: pointer; }
.pcard .avatar { width: 54px; height: 54px; }
.pcard .name { font-weight: 800; }
.pcard .score { text-align: center; min-width: 46px; }
.pcard .score b { font-size: 22px; color: var(--green); display: block; line-height: 1; }
.pcard .score small { font-size: 10px; color: var(--muted); text-transform: uppercase; }
.filters { display: flex; gap: 8px; margin-bottom: 12px; }
.filters input { flex: 1; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 12px; }
.stats div { background: #fff; border-radius: 12px; padding: 10px; text-align: center; box-shadow: var(--shadow); }
.stats b { display: block; font-size: 20px; color: var(--green); }
.stats small { font-size: 11px; color: var(--muted); }

/* ---------- teams on pitch ---------- */
.pitch { position: relative; border-radius: 16px; overflow: hidden; padding: 14px; margin-bottom: 14px; color: #fff;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 150' preserveAspectRatio='none'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='.55' stroke-width='.6'%3E%3Crect x='4' y='4' width='92' height='142'/%3E%3Cline x1='4' y1='75' x2='96' y2='75'/%3E%3Ccircle cx='50' cy='75' r='12'/%3E%3Crect x='25' y='4' width='50' height='20'/%3E%3Crect x='38' y='4' width='24' height='8'/%3E%3Crect x='25' y='126' width='50' height='20'/%3E%3Crect x='38' y='138' width='24' height='8'/%3E%3C/g%3E%3C/svg%3E") center/100% 100% no-repeat,
    repeating-linear-gradient(180deg, #2f9152 0 34px, #288248 34px 68px); }
.pitch .team-head { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.shirt { width: 26px; height: 26px; border-radius: 6px; border: 2px solid rgba(255,255,255,.9); flex: 0 0 auto; }
.shirt.negro { background: #111; } .shirt.blanco { background: #fff; } .shirt.rojo { background: var(--red); }
.pitch h3 { font-size: 18px; font-weight: 900; text-shadow: 0 1px 4px rgba(0,0,0,.5); flex: 1; }
.pitch .tp { display: flex; align-items: center; gap: 10px; background: rgba(0,0,0,.38); backdrop-filter: blur(2px);
  border-radius: 10px; padding: 6px 10px; margin-top: 6px; }
.pitch .tp .avatar { width: 34px; height: 34px; font-size: 12px; border: 2px solid #fff; }
.pitch .tp .nm { font-weight: 700; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pitch .tp .ps { font-size: 12px; opacity: .9; }
.pitch .tp .sc { font-weight: 900; color: var(--accent); min-width: 24px; text-align: right; }
.pitch .sum { font-size: 12px; background: rgba(0,0,0,.35); padding: 3px 8px; border-radius: 999px; }
.pitch.me { outline: 3px solid var(--accent); }

/* team builder */
.tb-team { border-radius: 12px; padding: 10px; margin-bottom: 10px; border: 2px solid var(--line); background: #fff; }
.tb-team.negro { border-color: #111; } .tb-team.blanco { border-color: #c9d1cd; } .tb-team.rojo { border-color: var(--red); }
.tb-row { display: flex; align-items: center; gap: 8px; padding: 6px 0; border-top: 1px solid var(--line); }
.tb-row:first-of-type { border-top: 0; }
.tb-row .nm { flex: 1; min-width: 0; font-weight: 600; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tb-btns { display: flex; gap: 4px; }
.tb-btns button { width: 30px; height: 30px; border-radius: 8px; border: 1px solid var(--line); background: #fff; font-weight: 800; font-size: 12px; cursor: pointer; }
.tb-btns button.n { background: #111; color: #fff; } .tb-btns button.b { background: #fff; color: #111; } .tb-btns button.r { background: var(--red); color: #fff; }
.tb-btns button.x { color: var(--muted); }

/* ---------- calendar ---------- */
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.cal-head b { font-size: 17px; text-transform: capitalize; }
.cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal .dow { text-align: center; font-size: 11px; font-weight: 700; color: var(--muted); padding-bottom: 4px; }
.cal .d { aspect-ratio: 1; border-radius: 10px; display: flex; flex-direction: column; align-items: center; justify-content: center;
  font-size: 14px; color: #9aa5a0; position: relative; }
.cal .d.mon { background: var(--red); color: #fff; font-weight: 800; cursor: pointer; box-shadow: 0 2px 6px rgba(214,40,57,.35); }
.cal .d.mon.has { background: var(--red); }
.cal .d.mon .mk { font-size: 13px; line-height: 1; margin-top: 2px; }
.cal .d.mon.past { opacity: .5; }
.cal .d.today { outline: 2px solid var(--green-2); outline-offset: 1px; }
.cal .d.sel { outline: 3px solid var(--accent); outline-offset: 1px; }
.legend { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 12px; font-size: 12px; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 18px; height: 18px; border-radius: 5px; background: var(--red); display: inline-flex; align-items: center; justify-content: center; font-style: normal; font-size: 10px; color: #fff; }

/* ---------- ranking ---------- */
.rank { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-top: 1px solid var(--line); }
.rank:first-child { border-top: 0; }
.rank .pos { width: 26px; text-align: center; font-weight: 900; color: var(--muted); }
.rank.top1 .pos { color: #c99700; } .rank.top2 .pos { color: #8a96a0; } .rank.top3 .pos { color: #b26b2a; }
.rank .pts { font-weight: 900; font-size: 17px; color: var(--green); }

/* ---------- cooks banner ---------- */
.cooks-banner { background: linear-gradient(135deg, #fff4cc, #ffe48a); border-radius: var(--radius); padding: 14px; margin-bottom: 12px; display: flex; gap: 12px; align-items: center; }
.cooks-banner .big { font-size: 34px; }
.cooks-banner.none { background: #fde8ea; }

/* ---------- modal & toast ---------- */
.modal-bg { position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 20; display: flex; align-items: flex-end; justify-content: center; }
.modal { background: #fff; width: 100%; max-width: 560px; max-height: 92vh; overflow-y: auto; border-radius: 18px 18px 0 0; padding: 18px 16px calc(18px + var(--safe-b)); animation: up .2s ease; }
@media (min-width: 640px) { .modal-bg { align-items: center; } .modal { border-radius: 18px; } }
@keyframes up { from { transform: translateY(30px); opacity: 0; } }
.modal .mh { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.modal .close { border: 0; background: #eef2f0; width: 32px; height: 32px; border-radius: 50%; font-size: 18px; cursor: pointer; }
.toast { position: fixed; left: 50%; bottom: calc(84px + var(--safe-b)); transform: translateX(-50%); background: #17211d; color: #fff;
  padding: 10px 16px; border-radius: 10px; z-index: 30; font-size: 14px; max-width: calc(100% - 32px); box-shadow: 0 6px 20px rgba(0,0,0,.25); }

/* camera */
.cam { position: relative; background: #000; border-radius: 14px; overflow: hidden; aspect-ratio: 1; max-width: 300px; margin: 0 auto; }
.cam video, .cam img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cam video { transform: scaleX(-1); }
.steps { display: flex; gap: 6px; margin-bottom: 14px; }
.steps i { flex: 1; height: 5px; border-radius: 99px; background: #e1e7e4; }
.steps i.on { background: var(--green-2); }
.empty { text-align: center; color: var(--muted); padding: 22px 10px; }
.empty .big { font-size: 40px; display: block; margin-bottom: 6px; }

/* =================== Estilo Virazon (basado en la app original) =================== */
.topbar { background: var(--green); padding-top: calc(12px + env(safe-area-inset-top, 0px)); padding-bottom: 12px; box-shadow: 0 2px 6px rgba(0,0,0,.15); }
.topbar img { width: 28px; height: 28px; }
.topbar .title { font-size: 19px; font-weight: 600; letter-spacing: 0; }
.topbar .who { display: flex; align-items: center; gap: 8px; font-size: 12px; opacity: 1; line-height: 1.15; }
.topbar .who span { display: flex; flex-direction: column; align-items: flex-end; }
.topbar .who b { color: var(--accent); font-size: 10px; letter-spacing: .5px; }
.topbar .who .avatar { width: 30px; height: 30px; border: 2px solid rgba(255,255,255,.8); }
.tabbar button { color: #999; font-size: 11px; padding-top: 7px; }
.tabbar button svg { display: block; }
.tabbar button.on { color: var(--green); font-weight: 600; }

/* sub-solapas con subrayado, como Cena en la app original */
.subtabs { background: #fff; margin: -14px -16px 14px; padding: 0 8px; gap: 0; border-bottom: 1px solid var(--line); }
.subtabs button { border: 0; border-radius: 0; background: none; color: #999; padding: 13px 12px; font-size: 14px; border-bottom: 3px solid transparent; flex: 1 0 auto; }
.subtabs button.on { background: none; color: var(--green); border-bottom-color: var(--green); }

.card { border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px; }
.btn { border-radius: 8px; font-weight: 600; background: var(--green); }
.btn.ghost { background: #fff; color: var(--green); border: 1.5px solid var(--green); }
.btn.danger { background: #fff; color: var(--red); border: 1.5px solid #f3c2c7; }
.btn.yellow { background: var(--orange); color: #fff; }
.btn.pill { border-radius: 30px; padding: 16px 48px; font-size: 18px; }
input.i, select.i { background: #f9f9f9; border-color: #ddd; border-radius: 12px; padding: 13px 16px; }
label.f { color: #333; font-size: 14px; }
.seg button.on { border-color: var(--green); background: #eaf5ec; color: var(--green); }
.avatar { background: var(--green); color: #fff; }
.chip { background: #f0f0f0; color: var(--muted); font-weight: 600; }
.chip.ok { background: #eaf5ec; color: var(--green); }
.chip.gold { background: #FFF9E6; color: #b38600; }
.chip.rate { background: #FFF9E6; color: #FFB800; }
.chip.pos-Arquero, .chip.pos-Defensor, .chip.pos-Mediocampista, .chip.pos-Delantero { background: #f0f0f0; color: #444; }
.section-title h3 { color: #333; text-transform: none; letter-spacing: 0; font-size: 17px; }
.rating, .pcard .score b, .stats b, .rank .pts { color: #0E7A3E; }
.progress div { background: var(--green); }

/* login (blanco con logo circular verde) */
.login { min-height: 100vh; min-height: 100dvh; background: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 40px 24px; text-align: center; }
.login .logo-circle { width: 100px; height: 100px; border-radius: 50%; background: var(--green); display: flex; align-items: center; justify-content: center; margin-bottom: 18px; box-shadow: 0 6px 16px rgba(43,140,62,.35); }
.login .logo-circle img { width: 64px; height: 64px; }
.login h1 { font-size: 28px; font-weight: 700; color: var(--text); }
.login .box { width: 100%; max-width: 380px; margin-top: 28px; text-align: left; }
.login .box .btn { padding: 16px; font-size: 18px; border-radius: 12px; }

/* bienvenida (fondo oscuro, pelota y nombre del club en verde) */
.welcome { min-height: 100vh; min-height: 100dvh; background: #1a1a1a; color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 24px; text-align: center; }
.welcome .frame { width: 220px; height: 220px; max-width: none; padding: 10px; border-radius: 50%; background: radial-gradient(circle, #2a2a2a, #1a1a1a); box-shadow: 0 0 0 3px var(--green), 0 0 40px rgba(43,140,62,.45); margin-bottom: 40px; }
.welcome .frame img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; border: 0; }
.welcome .w1 { font-size: 24px; letter-spacing: 2px; margin-bottom: 8px; }
.welcome .w2 { font-size: 32px; font-weight: 800; color: var(--green); margin-bottom: 48px; line-height: 1.15; }
.splash { background: #1a1a1a; }
.splash .box .btn { border-radius: 12px; }
.welcome-title span { color: var(--green); }
.steps i.on { background: var(--green); }

/* eventos: el proximo evento resaltado en verde con borde dorado */
.event { border-left: 0; position: relative; }
.event .date-badge { background: #eaf5ec; color: var(--green); }
.event.next { background: var(--green); color: #fff; border: 2px solid var(--accent); padding-top: 34px; }
.event.next .muted, .event.next .muted b { color: rgba(255,255,255,.9) !important; }
.event.next .muted span[style] { color: #ffd2d2 !important; }
.event.next .date-badge { background: rgba(255,255,255,.2); color: #fff; }
.event.next .progress { background: rgba(255,255,255,.25); }
.event.next .progress div { background: var(--accent); }
.event.next .btn { background: #fff; color: var(--green); border: 0; }
.event.next .btn.danger { color: var(--red); }
.event.next .btn.wa { background: #25d366; color: #073b1c; }
.event.next .chip { background: rgba(255,255,255,.2); color: #fff; }
.event.next .people .p { background: rgba(255,255,255,.18); color: #fff; }
.next-badge { position: absolute; top: 10px; left: 16px; background: var(--accent); color: var(--green); font-size: 11px; font-weight: 800; padding: 3px 12px; border-radius: 12px; letter-spacing: .4px; }

/* cena: tonos naranja como la app original */
.cooks-banner { background: #FFF5F0; color: var(--text); border: 1px solid #ffd9c7; }
.cooks-banner h2 { color: var(--orange); }
.cooks-banner.none { background: #fff; border-style: dashed; }
.rank .pos { width: 32px; height: 32px; border-radius: 16px; background: #f0f0f0; color: #333; display: inline-flex; align-items: center; justify-content: center; font-size: 14px; flex: 0 0 auto; }
.rank.top1 .pos, .rank.top2 .pos, .rank.top3 .pos { background: var(--accent); }
.pend { color: var(--orange); font-weight: 600; }
.cal .d.mon { background: #FF4444; box-shadow: 0 2px 6px rgba(255,68,68,.35); }
.cal .d.today { outline-color: var(--green); }
.legend i { background: #FF4444; }

/* equipos: cancha verde con jugadores en tarjetas blancas */
.pitch { background-color: var(--field); color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 150' preserveAspectRatio='none'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='.45' stroke-width='.6'%3E%3Crect x='4' y='4' width='92' height='142'/%3E%3Cline x1='4' y1='75' x2='96' y2='75'/%3E%3Ccircle cx='50' cy='75' r='12'/%3E%3Crect x='25' y='4' width='50' height='20'/%3E%3Crect x='38' y='4' width='24' height='8'/%3E%3Crect x='25' y='126' width='50' height='20'/%3E%3Crect x='38' y='138' width='24' height='8'/%3E%3C/g%3E%3C/svg%3E"),
    repeating-linear-gradient(180deg, #2E7D32 0 34px, #2a7430 34px 68px);
  background-size: 100% 100%, auto; background-repeat: no-repeat, repeat; }
.pitch .tp { background: rgba(255,255,255,.92); color: var(--text); backdrop-filter: none; border-radius: 8px; }
.pitch .tp .ps { color: var(--muted); }
.pitch .tp .avatar { border-color: var(--green); }
.pitch .tp .sc { background: #FFF9E6; color: #FFB800; border-radius: 12px; padding: 2px 8px; font-size: 13px; min-width: 0; }
.pitch.me { outline-color: var(--accent); }
.tb-btns button.x { color: var(--muted); }
.stats div, .pcard { border-radius: var(--radius); box-shadow: var(--shadow); }

/* ranking: los de abajo quedan en falta */
.falta-head { margin: 14px -16px 4px; padding: 8px 16px; background: #fde8ea; color: var(--red); font-weight: 800; font-size: 14px; }
.rank.falta { background: #fff5f6; margin: 0 -16px; padding: 9px 16px; border-top-color: #f8d5d9; }
.rank.falta b, .rank.falta .pts { color: var(--red); }
.rank.falta .pos { background: #fde8ea; color: var(--red); }
.chip.falta-chip { background: var(--red); color: #fff; font-size: 10px; letter-spacing: .4px; }
.welcome .frame { padding: 18px; }
.welcome .frame img { object-fit: contain; border-radius: 0; }

/* WhatsApp (admin) */
textarea.i { width: 100%; padding: 12px 14px; border: 1px solid #ddd; border-radius: 12px; background: #f9f9f9; font: 15px/1.45 inherit; font-family: inherit; resize: vertical; }
textarea.i:focus { outline: 2px solid var(--green); border-color: transparent; }
.wa-group .wa-ic { width: 44px; height: 44px; border-radius: 50%; background: #25d366; color: #fff; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.btn.wa { background: #25d366; color: #fff; }
.btn.wa.big { padding: 15px; font-size: 17px; border-radius: 12px; }
.btn.wa svg { width: 22px; height: 22px; }
.seg[data-type] { grid-template-columns: repeat(2, 1fr); }

.passkey-btn { padding: 14px; font-size: 16px; border-radius: 12px; }

/* equipos: borrador / publicados */
.pub-state { display: flex; align-items: center; gap: 10px; margin-top: 10px; padding: 10px 12px; border-radius: 10px; background: #FFF5F0; border: 1px solid #ffd9c7; }
.pub-state.on { background: #eaf5ec; border-color: #cfe8d5; }
.draft-note { background: #FFF5F0; border: 1px dashed var(--orange); color: #7a3a1d; border-radius: 10px; padding: 10px 12px; margin-bottom: 12px; font-size: 14px; }

/* ranking: correccion del admin */
.rank.editable { cursor: pointer; }
.rank .edit-ic { font-size: 13px; opacity: .55; margin-left: 2px; }
.admin-hint { background: #FFF9E6; color: #7a5a00; border-radius: 8px; padding: 8px 10px; font-size: 13px; margin: 0 0 6px; }
.fix-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 4px 0 6px; }
.fix-grid div { background: #f6f8f7; border-radius: 10px; padding: 8px; text-align: center; }
.fix-grid small { display: block; font-size: 11px; color: var(--muted); }
.fix-grid b { font-size: 19px; color: #0E7A3E; }

.last-cook { font-size: 12px; font-weight: 600; color: var(--orange); margin-top: 1px; }
.last-cook.none { color: #9aa3a0; font-weight: 500; }

/* inscripcion cerrada hasta el viernes 10 hs */
.reg-closed { margin-top: 10px; background: #FFF5F0; border: 1px solid #ffd9c7; color: #7a3a1d; border-radius: 10px; padding: 9px 12px; font-size: 14px; }
.event.next .reg-closed { background: rgba(255,255,255,.92); }
