/* Nipipo Engine - comentarios */
.tce-comments{max-width:760px;margin:40px auto 0;padding:0 18px;font-family:inherit}
.tce-c-title{font-size:22px;margin:0 0 14px}
.tce-c-title span{color:#6b7480;font-weight:600}
.tce-sort{display:flex;gap:8px;margin-bottom:16px}
.tce-sortbtn{background:none;border:0;font-weight:700;font-size:14px;color:#6b7480;cursor:pointer;padding:6px 10px;border-radius:8px}
.tce-sortbtn.on,.tce-sortbtn:hover{background:#eef1f5;color:#11151c}

/* formulario */
.tce-form{margin-bottom:22px}
.tce-form-row{display:flex;gap:12px;align-items:flex-start}
.tce-form-row img,.tce-c-av img{border-radius:50%;width:44px;height:44px;object-fit:cover}
.tce-av{border-radius:50%;width:44px;height:44px;object-fit:cover;display:inline-block;flex:0 0 auto}
.tce-av-ini{color:#fff;text-align:center;font-weight:800;font-size:18px}
.tce-c-pin.tce-top{color:#e8123d}
.tce-logout{color:#8a93a0;font-size:13px;font-weight:700;text-decoration:none;margin-right:6px}
.tce-logout:hover{color:#e8123d}

/* modal de registro */
.tce-modal{position:fixed;inset:0;z-index:9999;background:rgba(10,14,22,.55);display:none;align-items:center;justify-content:center;padding:20px}
.tce-modal-card{background:#fff;border-radius:16px;max-width:380px;width:100%;padding:30px 24px;text-align:center;position:relative;box-shadow:0 20px 60px rgba(0,0,0,.3)}
.tce-modal-card h3{margin:0 0 .4rem;font-size:21px}
.tce-modal-card p{color:#6b7480;font-size:14px;margin:0 0 18px}
.tce-modal-card .tce-gbtn{display:flex;justify-content:center}
.tce-modal-close{position:absolute;top:8px;right:12px;border:0;background:none;font-size:28px;line-height:1;color:#9aa3b0;cursor:pointer}

/* perfil */
.tce-profile{max-width:640px;margin:0 auto}
.tce-profile-head{display:flex;gap:18px;align-items:center;margin-bottom:20px}
.tce-profile-head h2{margin:0;font-size:24px}
.tce-profile-mail{color:#6b7480;margin:.2rem 0 0;font-size:14px}
.tce-since{color:#8a93a0;font-size:13px;margin:.2rem 0 0}
.tce-profile-stats{display:flex;gap:14px;margin-bottom:18px;flex-wrap:wrap}
.tce-profile-stats div{flex:1;min-width:90px;background:#fff;border:2px solid #e7ebf2;border-bottom-width:4px;border-radius:14px;padding:16px 12px;text-align:center}
.tce-profile-stats strong{display:block;font-family:'Anton',Impact,sans-serif;font-size:30px;line-height:1;color:#11151c}
.tce-profile-stats span{font-size:13px;color:#6b7480}
.tce-profile-soon{background:#fff8e6;border:1px solid #ffe39a;border-radius:10px;padding:12px;color:#8a6d1a;font-size:14px}
.tce-btn-logout{display:inline-block;color:#e8123d;font-weight:700;text-decoration:none}

/* perfil: puntos + racha + tops + bandeja */
.tce-points{background:linear-gradient(120deg,#11151c,#2b1736);color:#fff;border:3px solid #ffc60a;border-radius:18px;padding:22px;margin-bottom:16px;box-shadow:0 6px 0 rgba(0,0,0,.16),0 14px 30px rgba(43,23,54,.35)}
.tce-points-main{display:flex;align-items:baseline;gap:10px;margin-bottom:8px}
.tce-points-num{font-family:'Anton',Impact,sans-serif;font-size:46px;line-height:1;color:#ffc60a}
.tce-points-lbl{font-weight:800;font-size:18px;text-transform:uppercase;letter-spacing:.03em}
.tce-points-soon{font-size:14px;color:#ffd866;margin:0 0 8px;font-weight:700}
.tce-points-how{background:#fff;border:1px solid #e3e7ee;border-radius:12px;padding:12px 16px;margin:0 0 16px}
.tce-points-how p{font-size:13px;color:#384150;line-height:1.7;margin:0 0 8px}
.tce-points-how p:last-child{margin:0}
.tce-points-how b{color:#e8123d;font-weight:800}
.tce-points-how b.t{color:#11151c;display:block;margin-bottom:2px}
.tce-share{display:inline-flex;align-items:center;gap:6px;border:1px solid #d3d9e2;background:#fff;border-radius:999px;padding:8px 16px;font-weight:800;cursor:pointer;color:#384150;font-size:15px}
.tce-share:hover{border-color:#15a0ff;color:#15a0ff;background:#eaf6ff}

/* Botón Síguenos en Google (fuente preferida) — estilo chunky */
.tce-gnews{text-align:center;margin:24px 0 6px}
.tce-gnews-btn{display:inline-flex;align-items:center;gap:11px;background:#fff;border:2px solid #e3e7ee;border-bottom-width:5px;border-radius:16px;padding:13px 24px;font-weight:800;font-size:16.5px;color:#1b2330;text-decoration:none!important;box-shadow:0 5px 14px rgba(16,20,27,.07);transition:transform .1s,box-shadow .1s,border-color .12s}
.tce-gnews-btn:hover{border-color:#15a0ff;transform:translateY(-2px);box-shadow:0 9px 22px rgba(21,160,255,.18)}
.tce-gnews-btn:active{transform:translateY(2px);border-bottom-width:2px}
.tce-gnews-ico{display:inline-flex;width:24px;height:24px}
.tce-gnews-ico svg{width:24px;height:24px;display:block}
.tce-gnews-txt b{font-weight:900}
.tce-gnews-star{font-size:17px;line-height:1}
.tce-gnews-sub{font-size:13px;color:#6b7480;margin:9px auto 0;max-width:460px;line-height:1.5}

/* cómo ganar puntos — desplegable */
.tce-how{background:#fff;border:1px solid #e3e7ee;border-radius:14px;margin-bottom:16px;overflow:hidden}
.tce-how>summary{list-style:none;cursor:pointer;display:flex;justify-content:space-between;align-items:center;gap:10px;padding:14px 18px;font-weight:800;color:#11151c;font-size:15px}
.tce-how>summary::-webkit-details-marker{display:none}
.tce-how-arrow{color:#9aa3b0;font-size:14px;transition:transform .2s}
.tce-how[open] .tce-how-arrow{transform:rotate(180deg)}
.tce-how-body{padding:2px 18px 16px}
.tce-how-h{font-weight:800;margin:10px 0 4px;color:#11151c;font-size:14px}
.tce-how-body ul{margin:0;padding-left:20px}
.tce-how-body li{font-size:13.5px;color:#384150;line-height:1.75;margin:0}
.tce-how-body b{color:#12a45a;font-weight:800}

/* invitar amigos — estilo Brawl Stars (centrado) */
.tce-invite{position:relative;overflow:hidden;text-align:center;background:linear-gradient(135deg,#2b6cff 0%,#7b2ff7 55%,#b14eff 100%);border:3px solid #ffd23f;border-radius:20px;padding:24px 20px 22px;margin-bottom:18px;box-shadow:0 6px 0 rgba(0,0,0,.18),0 14px 30px rgba(80,40,200,.35)}
.tce-invite-deco{position:absolute;top:-14px;right:-4px;font-size:82px;opacity:.18;transform:rotate(12deg);pointer-events:none;line-height:1}
.tce-invite h3{margin:0 0 6px;font-size:23px;color:#fff;text-shadow:0 2px 0 rgba(0,0,0,.28);position:relative}
.tce-invite>p{font-size:14.5px;color:#eef2ff;margin:0 auto 16px;max-width:420px;position:relative}
.tce-invite>p b{color:#ffd23f;font-weight:900}
.tce-invite-row{display:flex;gap:10px;position:relative;max-width:460px;margin:0 auto}
.tce-invite-link{flex:1;min-width:0;border:0;border-radius:12px;padding:13px 14px;font-size:13px;font-weight:600;color:#1b2330;background:#fff;text-align:center;box-shadow:inset 0 2px 0 rgba(0,0,0,.06)}
.tce-invite-copy{background:linear-gradient(#ffd23f,#ffb100);color:#5a3a00;border:0;border-radius:12px;padding:13px 24px;font-weight:900;font-size:14px;letter-spacing:.05em;cursor:pointer;white-space:nowrap;box-shadow:0 4px 0 #c8860a;transition:transform .08s,box-shadow .08s}
.tce-invite-copy:hover{filter:brightness(1.05)}
.tce-invite-copy:active{transform:translateY(3px);box-shadow:0 1px 0 #c8860a}
.tce-invite-rewards{display:flex;gap:12px;margin:16px auto 0;max-width:460px;position:relative;justify-content:center}
.tce-invite-badge{flex:1;max-width:200px;display:flex;flex-direction:column;align-items:center;gap:3px;background:rgba(255,255,255,.16);border:1.5px solid rgba(255,255,255,.35);border-radius:14px;padding:12px 8px}
.tce-invite-badge .n{font-family:'Anton',Impact,sans-serif;font-size:30px;line-height:1;color:#fff}
.tce-invite-badge .l{font-size:12.5px;font-weight:700;color:#eef2ff;text-transform:uppercase;letter-spacing:.03em}
.tce-invite-badge.gold{background:rgba(255,210,63,.22);border-color:rgba(255,210,63,.6)}
.tce-invite-badge.gold .n{color:#ffd23f}

/* encuesta brawltuber */
.tce-poll{border:1px solid #e3e7ee;border-radius:14px;padding:16px 18px;background:#fff;margin:18px 0}
.tce-poll-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px;font-size:17px}
.tce-poll-row{display:flex;align-items:center;gap:12px;padding:8px 0;border-top:1px solid #eef1f5}
.tce-poll-row:first-of-type{border-top:0}
.tce-poll-row.mine{background:#fff8e6;border-radius:10px;padding:8px 10px}
.tce-poll-vote{flex:0 0 auto;border:1px solid #d3d9e2;background:#fff;border-radius:999px;padding:7px 14px;font-weight:800;font-size:13px;cursor:pointer;color:#384150}
.tce-poll-row.mine .tce-poll-vote{background:#12a45a;color:#fff;border-color:#12a45a}
.tce-poll-vote:hover{border-color:#e8123d;color:#e8123d}
.tce-poll-row.mine .tce-poll-vote:hover{color:#fff;border-color:#12a45a}
.tce-poll-info{flex:1;min-width:0}
.tce-poll-name{font-weight:700;font-size:15px;color:#11151c}
.tce-poll-bar{height:8px;background:#eef1f5;border-radius:999px;overflow:hidden;margin-top:4px}
.tce-poll-bar span{display:block;height:100%;background:linear-gradient(90deg,#ffc60a,#ff8a00);border-radius:999px}
.tce-poll-count{font-weight:800;color:#11151c;min-width:32px;text-align:right}
.tce-poll-note{font-size:12.5px;color:#8a93a0;margin:12px 0 0}
.tce-poll-empty{color:#6b7480}
.tce-streak{background:#fff;border:1px solid #e3e7ee;border-radius:14px;padding:16px 18px;margin-bottom:16px}
.tce-streak-top{display:flex;justify-content:space-between;align-items:center;font-size:15px;margin-bottom:8px}
.tce-streak-bar{height:14px;background:#eef1f5;border-radius:999px;overflow:hidden}
.tce-streak-bar span{display:block;height:100%;background:linear-gradient(90deg,#ff8a00,#e8123d);border-radius:999px;transition:width .4s}
.tce-streak-note{font-size:12.5px;color:#6b7480;margin-top:6px}
.tce-streak-cta{font-size:13px;color:#384150;font-weight:600;margin:8px 0 0}
.tce-tops{display:grid;grid-template-columns:repeat(2,1fr);gap:14px;margin-bottom:18px}
.tce-top-col{background:#fff;border:1px solid #e3e7ee;border-radius:12px;padding:14px 16px}
.tce-top-col h4{margin:0 0 8px;font-size:14px}
.tce-toplist{list-style:none;margin:0;padding:0}
.tce-toplist li{margin:6px 0;font-size:14px;line-height:1.35}
.tce-toplist a{color:#384150;text-decoration:none;font-weight:600}
.tce-toplist a:hover{color:#e8123d}
.tce-fav{background:#fff;border:1px solid #e3e7ee;border-radius:14px;padding:16px 18px;margin-bottom:18px}
.tce-fav h4{margin:0 0 12px;font-size:15px}
.tce-tagrow{display:flex;flex-wrap:wrap;gap:8px}
.tce-tagrow a{background:#eef1f5;border-radius:999px;padding:6px 14px;font-size:13px;font-weight:700;color:#384150;text-decoration:none}
.tce-tagrow a:hover{background:#ffc60a;color:#1b2330}
.tce-tagrow a.is-bs{background:linear-gradient(#ffd23f,#ffb100);color:#5a3a00;font-weight:900;box-shadow:0 2px 0 #c8860a}
.tce-tagrow a.is-bs:hover{filter:brightness(1.04);color:#5a3a00}
.tce-empty-sm{color:#8a93a0;font-size:13px;margin:4px 0}
.tce-inbox{background:#fff;border:1px solid #e3e7ee;border-radius:14px;padding:16px 18px}
.tce-inbox h3{margin:0 0 12px;font-size:18px}
.tce-inbox-item{display:flex;gap:12px;padding:10px 0;border-top:1px solid #eef1f5}
.tce-inbox-item:first-of-type{border-top:0}
.tce-inbox-body{flex:1;min-width:0}
.tce-inbox-body p{margin:0 0 3px;font-size:14px}
.tce-inbox-text{color:#384150}
.tce-inbox-reply{font-weight:800;color:#e8123d;text-decoration:none;font-size:13.5px}
@media(max-width:600px){.tce-tops{grid-template-columns:1fr}.tce-points-num{font-size:38px}}
.tce-input{flex:1;border:0;border-bottom:2px solid #e3e7ee;background:transparent;padding:8px 2px;font:inherit;font-size:15px;resize:vertical;outline:none}
.tce-input:focus{border-color:#e8123d}
.tce-form-actions{display:flex;align-items:center;gap:8px;margin-top:10px;padding-left:56px}
.tce-spacer{flex:1}
.tce-send,.tce-rec,.tce-cancel{border:0;border-radius:999px;padding:9px 18px;font-weight:700;font-size:14px;cursor:pointer}
.tce-send{background:#e8123d;color:#fff}
.tce-send:hover{background:#b50d2f}
.tce-rec{background:#eef1f5;color:#11151c}
.tce-cancel{background:transparent;color:#6b7480}
.tce-rec-box{margin:10px 0 0 56px;background:#f6f8fb;border:1px solid #e3e7ee;border-radius:10px;padding:10px}
.tce-rec-search{width:100%;border:1px solid #d3d9e2;border-radius:8px;padding:8px;font:inherit}
.tce-rec-results a{display:block;padding:8px;border-radius:6px;color:#11151c;text-decoration:none;font-size:14px;font-weight:600}
.tce-rec-results a:hover{background:#e8eef7;color:#e8123d}

/* login */
.tce-login{background:#f6f8fb;border:1px solid #e3e7ee;border-radius:12px;padding:22px;text-align:center;margin-bottom:22px}
.tce-login p{margin:0 0 12px;color:#384150;font-weight:600}
.tce-login #tce-gbtn{display:flex;justify-content:center}
.tce-login-note{font-size:12px;color:#8a93a0;font-weight:400!important;margin:12px 0 0!important}
.tce-login-cta{text-align:center;padding:18px 0 24px}
.tce-login-cta p{color:#6b7480;font-weight:600;margin:0 0 12px}
.tce-btn-login{background:#e8123d;color:#fff;border:0;border-radius:999px;padding:13px 26px;font-weight:800;font-size:15px;cursor:pointer}
.tce-btn-login:hover{background:#b50d2f}

/* voto del artículo */
.tce-postvote{display:flex;align-items:center;gap:12px;flex-wrap:wrap;max-width:760px;margin:28px auto 0;padding:16px 18px;background:#fff;border:1px solid #e3e7ee;border-radius:14px}
.tce-pv-label{font-weight:800;color:#11151c;margin-right:auto;font-size:16px}
.tce-pv{display:inline-flex;align-items:center;gap:7px;border:1px solid #d3d9e2;background:#fff;border-radius:999px;padding:8px 16px;font-weight:800;cursor:pointer;color:#384150;font-size:15px}
.tce-pv svg{width:20px;height:20px;fill:currentColor}
.tce-pv.up:hover,.tce-pv.up.on{border-color:#12a45a;color:#12a45a;background:#e7f7ee}
.tce-pv.down:hover,.tce-pv.down.on{border-color:#e8123d;color:#e8123d;background:#fdeaee}

/* caja de comentario principal (abajo del todo) */
.tce-form-main{margin-top:26px;padding-top:22px;border-top:2px solid #e3e7ee}

/* lista */
.tce-c{display:flex;gap:12px;padding:14px 0;border-top:1px solid #eef1f5}
.tce-c.tce-pinned{background:#fff8e6;border-radius:10px;padding:14px;border:1px solid #ffe39a}
.tce-c-main{flex:1;min-width:0}
.tce-c-head{display:flex;align-items:center;gap:8px;font-size:13px}
.tce-c-name{font-weight:800;color:#11151c}
.tce-c-date{color:#8a93a0}
.tce-c-pin{color:#b8860b;font-weight:700;font-size:12px}
.tce-c-body{margin:4px 0 6px;color:#222a35;font-size:15px;line-height:1.55;word-wrap:break-word}
.tce-c-body a{color:#e8123d;font-weight:600}
.tce-c-actions{display:flex;align-items:center;gap:6px}
.tce-c-actions button{background:none;border:0;cursor:pointer;color:#6b7480;font-weight:700;font-size:13px;padding:4px 8px;border-radius:6px}
.tce-c-actions button:hover{background:#eef1f5;color:#11151c}
.tce-vote{display:inline-flex;align-items:center;justify-content:center;padding:5px 8px}
.tce-vote svg{width:18px;height:18px;fill:currentColor;display:block}
.tce-vote.up{color:#12a45a}
.tce-vote.down{color:#e8123d}
.tce-vote.up:hover{background:#e7f7ee}
.tce-vote.down:hover{background:#fdeaee}
.tce-vote.up.on{background:#12a45a;color:#fff}
.tce-vote.down.on{background:#e8123d;color:#fff}
.tce-score{font-weight:800;color:#11151c;min-width:18px;text-align:center}
.tce-replies{margin-top:8px;padding-left:18px;border-left:2px solid #eef1f5}
.tce-reply-box{margin:8px 0}
.tce-empty{color:#8a93a0;padding:18px 0}
.tce-msg{font-size:13px;margin:6px 0 0 56px}
.tce-msg.err{color:#e8123d}
@media(max-width:560px){.tce-form-actions{padding-left:0;flex-wrap:wrap}.tce-rec-box{margin-left:0}}
