:root {
  color-scheme: light;
  --site-accent:#6d4aff; --on-primary:#fff;
  --bg:#f6f7fb; --surface:#ffffff; --surface-2:#f0f2f8; --text:#191b24; --muted:#6a7080; --line:#e1e4ec;
  --primary:var(--site-accent); --primary-2:color-mix(in srgb,var(--primary) 72%,#fff); --primary-soft:color-mix(in srgb,var(--primary) 12%,#fff); --green:#138a55; --green-soft:#e7f8ef; --red:#ce3448; --red-soft:#fff0f2;
  --orange:#e57a16; --blue:#2674d9; --shadow:0 14px 40px rgba(28,33,50,.08); --radius:22px; --radius-sm:15px;
  --header:72px; font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
}
html[data-theme="dark"] { color-scheme:dark; --bg:#0b0d12; --surface:#141720; --surface-2:#1b1f2a; --text:#f5f6fb; --muted:#a2a8b7; --line:#292e3b; --primary:var(--site-accent); --primary-2:color-mix(in srgb,var(--primary) 72%,#fff); --primary-soft:color-mix(in srgb,var(--primary) 22%,#141720); --green:#5fd39a; --green-soft:#152c22; --red:#ff7183; --red-soft:#351a20; --orange:#ffac5c; --blue:#6aaeff; --shadow:0 18px 50px rgba(0,0,0,.22); }
@media (prefers-color-scheme:dark) { html[data-theme="auto"] { color-scheme:dark; --bg:#0b0d12; --surface:#141720; --surface-2:#1b1f2a; --text:#f5f6fb; --muted:#a2a8b7; --line:#292e3b; --primary:var(--site-accent); --primary-2:color-mix(in srgb,var(--primary) 72%,#fff); --primary-soft:color-mix(in srgb,var(--primary) 22%,#141720); --green:#5fd39a; --green-soft:#152c22; --red:#ff7183; --red-soft:#351a20; --orange:#ffac5c; --blue:#6aaeff; --shadow:0 18px 50px rgba(0,0,0,.22); } }
*{box-sizing:border-box} html{scroll-behavior:smooth;background:var(--bg)} body{margin:0;background:transparent;color:var(--text);min-height:100vh;line-height:1.5;position:relative;isolation:isolate} body::before,body::after{content:"";position:fixed;pointer-events:none;inset:0;z-index:-2} body.has-page-background::before{inset:-40px;background-image:var(--page-bg-image);background-position:center;background-size:cover;background-repeat:no-repeat;opacity:var(--page-bg-opacity,.55);filter:blur(var(--page-bg-blur,10px));transform:scale(1.04)} body.has-page-background::after{z-index:-1;background:color-mix(in srgb,var(--bg) 48%,transparent)} a{color:inherit;text-decoration:none} button,input,textarea{font:inherit} button,a{-webkit-tap-highlight-color:transparent}.shell{width:min(1180px,calc(100% - 28px));margin-inline:auto}.skip-link{position:fixed;left:12px;top:-70px;z-index:1000;background:var(--text);color:var(--bg);padding:10px 14px;border-radius:10px}.skip-link:focus{top:12px}
.site-header{position:sticky;top:0;z-index:40;height:var(--header);border-bottom:1px solid color-mix(in srgb,var(--line) 80%,transparent);background:color-mix(in srgb,var(--surface) 88%,transparent);backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px)}.header-inner{position:relative;z-index:1;height:100%;display:flex;align-items:center;gap:16px}.brand{display:flex;align-items:center;gap:11px;min-width:0}.brand-logo,.brand-fallback{width:44px;height:44px;border-radius:50%;object-fit:cover;background:var(--surface);box-shadow:0 4px 16px rgba(0,0,0,.09)}.brand-fallback{display:grid;place-items:center;color:#fff;font-weight:900;background:linear-gradient(135deg,var(--primary-2),var(--primary))}.brand-copy{display:flex;flex-direction:column;min-width:0}.brand-copy strong{font-size:15px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.brand-copy small{font-size:11px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:180px}.desktop-nav{display:none;margin-left:auto;gap:4px}.desktop-nav a{padding:10px 13px;border-radius:12px;color:var(--muted);font-weight:700;font-size:14px}.desktop-nav a:hover,.desktop-nav a.is-active{background:var(--surface);color:var(--text)}.theme-toggle{margin-left:auto;width:44px;height:44px;border:1px solid var(--line);background:var(--surface);color:var(--text);border-radius:14px;font-size:20px;cursor:pointer}.header-actions{display:flex;align-items:center;gap:8px;margin-left:auto}.header-actions form{margin:0}
.mobile-nav{position:fixed;z-index:50;left:8px;right:8px;bottom:max(8px,env(safe-area-inset-bottom));display:grid;grid-template-columns:repeat(4,1fr);padding:7px;border:1px solid var(--line);border-radius:20px;background:color-mix(in srgb,var(--surface) 92%,transparent);box-shadow:var(--shadow);backdrop-filter:blur(18px)}.mobile-nav a{display:flex;flex-direction:column;align-items:center;gap:1px;padding:7px 2px;border-radius:14px;color:var(--muted);font-size:18px}.mobile-nav a b{font-size:10px}.mobile-nav a.is-active{background:var(--primary-soft);color:var(--primary)}
.site-footer{padding:30px 0 105px;color:var(--muted);font-size:13px}.footer-inner{display:flex;justify-content:space-between;gap:14px;flex-wrap:wrap}.footer-inner a{text-decoration:underline;text-underline-offset:3px}.page-standard{padding-top:22px;min-height:70vh}.narrow-page{max-width:860px}.page-home{padding-top:24px}.hero{display:grid;gap:20px}.hero-copy{padding:20px 3px}.eyebrow{display:block;color:var(--primary);font-weight:900;font-size:11px;letter-spacing:.11em;margin-bottom:6px}.hero h1,.page-title h1,.giveaway-hero-card h1,.tutorial-article h1{font-size:clamp(30px,8vw,58px);line-height:1.05;letter-spacing:-.04em;margin:0 0 14px}.hero-copy p,.page-title p{color:var(--muted);font-size:16px;margin:0;max-width:660px}.hero-actions,.form-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:20px}.button{border:0;border-radius:14px;padding:12px 16px;display:inline-flex;align-items:center;justify-content:center;gap:7px;font-weight:850;cursor:pointer;min-height:46px}.button-primary{background:var(--primary);color:var(--on-primary,#fff)}.button-primary:hover{filter:brightness(1.05)}.button-soft{background:var(--surface-2);color:var(--text);border:1px solid var(--line)}.button-danger{background:var(--red-soft);color:var(--red);border:1px solid color-mix(in srgb,var(--red) 25%,var(--line))}.button-wide{width:100%}.button.small{min-height:38px;padding:8px 12px;font-size:13px}.surface,.live-summary-card,.giveaway-hero-card{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow)}.live-summary-card{padding:20px}.card-head,.section-title-row,.section-heading.inline{display:flex;justify-content:space-between;gap:14px;align-items:flex-start}.card-head h2,.section-title-row h2,.section-heading h2{margin:0;font-size:21px;line-height:1.2}.presence{display:inline-flex;align-items:center;gap:7px;border-radius:999px;padding:7px 10px;font-size:11px;font-weight:900;white-space:nowrap;background:var(--surface-2);color:var(--muted)}.presence i{width:7px;height:7px;border-radius:50%;background:currentColor}.presence.is-online{background:var(--green-soft);color:var(--green)}.presence.is-offline{background:var(--surface-2);color:var(--muted)}.presence.is-archive{background:var(--primary-soft);color:var(--primary)}.quick-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:17px 0}.quick-stats div{background:var(--surface-2);border-radius:14px;padding:12px 8px;text-align:center}.quick-stats strong{display:block;font-size:18px}.quick-stats span{display:block;color:var(--muted);font-size:10px;margin-top:2px}.mini-ranking{display:grid;gap:6px;margin:14px 0}.mini-ranking>div{display:grid;grid-template-columns:30px 1fr auto;align-items:center;gap:7px;font-size:13px}.rank-chip{width:27px;height:27px;border-radius:9px;display:grid;place-items:center;background:var(--primary-soft);color:var(--primary);font-weight:900}.mini-ranking strong{font-size:12px}.muted{color:var(--muted)}
.home-panel{position:relative;border:1px solid var(--line);border-radius:24px;background:color-mix(in srgb,var(--surface) 82%,transparent);box-shadow:0 12px 34px rgba(20,24,38,.055)}.hero-panel{padding:18px}.home-section{margin-top:18px;padding:20px}.home-panel+.home-panel{margin-top:18px}.home-panel::before{content:"";position:absolute;left:18px;right:18px;top:0;height:2px;border-radius:999px;background:linear-gradient(90deg,var(--primary),transparent 65%);opacity:.55}.section-heading{margin-bottom:16px}.section-heading p{margin:5px 0 0;color:var(--muted)}.section-heading.inline a{font-size:13px;color:var(--primary);font-weight:800}.big-menu-grid,.compact-card-grid,.tutorial-grid,.links-grid{display:grid;gap:12px}.big-menu-card{position:relative;overflow:hidden;background:var(--surface);border:1px solid var(--line);border-radius:20px;padding:18px;display:grid;grid-template-columns:48px 1fr auto;align-items:center;gap:13px;box-shadow:var(--shadow)}.big-menu-card>span{width:48px;height:48px;display:grid;place-items:center;border-radius:15px;background:var(--primary-soft);font-size:23px}.big-menu-card strong,.compact-card strong,.tutorial-card strong,.link-card strong{display:block;font-size:16px}.big-menu-card small{display:block;color:var(--muted);font-size:12px;margin-top:2px}.big-menu-card>b{font-size:26px;color:var(--muted)}.big-menu-card.is-blue>span{background:color-mix(in srgb,var(--blue) 14%,var(--surface));}.big-menu-card.is-orange>span{background:color-mix(in srgb,var(--orange) 14%,var(--surface))}.compact-card{display:grid;grid-template-columns:38px 1fr auto;align-items:center;gap:10px;padding:15px;background:var(--surface);border:1px solid var(--line);border-radius:16px}.compact-card>span{font-size:22px}.compact-card>b{color:var(--muted)}.tutorial-card{position:relative;background:var(--surface);border:1px solid var(--line);border-radius:19px;padding:18px;display:grid;grid-template-columns:auto 1fr;gap:12px;box-shadow:0 8px 25px rgba(25,30,45,.05)}.tutorial-icon{font-size:26px}.tutorial-card p{margin:5px 0 12px;color:var(--muted);font-size:13px}.tutorial-card>b{grid-column:2;color:var(--primary);font-size:12px}.tutorial-number{position:absolute;right:12px;top:10px;font-weight:900;color:var(--line);font-size:24px}
.page-title{display:flex;align-items:flex-start;gap:15px;margin:12px 0 24px}.page-title h1{font-size:36px;margin-bottom:8px}.page-emoji{flex:none;width:58px;height:58px;border-radius:18px;background:var(--primary-soft);display:grid;place-items:center;font-size:28px}.links-grid{max-width:820px}.link-card{display:grid;grid-template-columns:52px 1fr auto;align-items:center;gap:13px;background:var(--surface);border:1px solid var(--line);padding:16px;border-radius:18px;box-shadow:0 7px 22px rgba(25,30,45,.05)}.link-icon{width:52px;height:52px;border-radius:16px;background:var(--surface-2);display:grid;place-items:center;font-size:25px}.link-card p{margin:3px 0;color:var(--muted);font-size:13px}.link-card small{color:var(--primary);font-weight:700}.link-card>b{font-size:21px;color:var(--muted)}
.giveaway-live-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}.live-updated{font-size:12px;color:var(--muted)}.giveaway-hero-card{padding:20px;margin-bottom:14px}.giveaway-title-line{display:flex;justify-content:space-between;gap:12px;align-items:flex-start}.giveaway-hero-card h1{font-size:32px;margin:9px 0 6px}.status-pill{display:inline-flex;padding:6px 9px;border-radius:999px;font-size:10px;font-weight:950;letter-spacing:.06em}.status-pill.active{background:var(--green-soft);color:var(--green)}.status-pill.ended{background:var(--surface-2);color:var(--muted)}.prize{margin:0;color:var(--muted)}.participant-bubble{flex:none;width:82px;height:82px;border-radius:22px;background:var(--primary-soft);display:grid;place-content:center;text-align:center;color:var(--primary)}.participant-bubble strong{font-size:22px;line-height:1}.participant-bubble span{font-size:10px;margin-top:4px}.giveaway-note{padding:12px 14px;background:var(--surface-2);border-radius:13px}.winner-box{margin-top:16px;padding:14px;border-radius:16px;background:linear-gradient(135deg,color-mix(in srgb,#f1c40f 25%,var(--surface)),color-mix(in srgb,var(--primary) 12%,var(--surface)));display:flex;align-items:center;gap:12px}.winner-box>span{font-size:30px}.winner-box div{display:flex;flex-direction:column}.winner-box small{font-size:10px;font-weight:900;color:var(--muted)}.winner-box strong{font-size:17px}.rules-strip{margin-top:14px;display:flex;gap:7px;flex-wrap:wrap;align-items:center;font-size:11px}.rules-strip span,.rules-strip b{padding:7px 9px;border-radius:10px;background:var(--surface-2)}.content-grid{display:grid;gap:14px}.content-grid>.surface,.recent-giveaways{padding:17px}.count-pill{background:var(--surface-2);color:var(--muted);padding:6px 9px;border-radius:10px;font-size:11px;font-weight:900}.search-box{margin:14px 0;display:flex;align-items:center;gap:9px;padding:0 13px;border:1px solid var(--line);border-radius:14px;background:var(--surface-2)}.search-box span{font-size:20px;color:var(--muted)}.search-box input{width:100%;min-height:46px;border:0;outline:0;background:transparent;color:var(--text)}.podium{display:grid;grid-template-columns:repeat(3,1fr);gap:7px;margin:11px 0 15px}.podium-item{min-width:0;text-align:center;padding:12px 6px;background:var(--surface-2);border-radius:15px}.podium-item.place-1{background:linear-gradient(180deg,color-mix(in srgb,#ffd43b 22%,var(--surface)),var(--surface-2))}.podium-medal{display:block;font-size:25px}.podium-item strong{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:11px}.podium-item b{display:block;color:var(--primary);font-size:11px;margin-top:3px}.ranking-list,.history-list{display:grid;gap:7px}.ranking-row{display:grid;grid-template-columns:36px minmax(0,1fr) auto;gap:10px;align-items:center;padding:10px;border-radius:13px;background:var(--surface-2)}.ranking-row.is-top{display:none}.ranking-pos{width:32px;height:32px;display:grid;place-items:center;border-radius:10px;background:var(--surface);font-weight:900;color:var(--muted);font-size:12px}.ranking-name{min-width:0}.ranking-name strong{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:13px}.ranking-name small{display:block;color:var(--muted);font-size:10px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ranking-points{font-size:14px;color:var(--primary)}.ranking-points small{font-size:9px}.history-row{display:grid;grid-template-columns:48px minmax(0,1fr);gap:10px;align-items:center;padding:11px;border-radius:13px;background:var(--surface-2);border-left:3px solid transparent}.history-row.positive{border-color:var(--green)}.history-row.negative{border-color:var(--red)}.history-delta{font-weight:950;text-align:center;font-size:15px}.history-row.positive .history-delta{color:var(--green)}.history-row.negative .history-delta{color:var(--red)}.history-row strong{display:block;font-size:12px}.history-row small{display:block;color:var(--muted);font-size:10px}.history-row time{grid-column:2;color:var(--muted);font-size:9px;margin-top:-6px}.tiny-note{font-size:10px;color:var(--muted);text-align:center;margin:10px 0 0}.no-search-results{padding:16px;text-align:center;color:var(--muted);font-size:12px}.simple-list{display:grid;gap:7px}.simple-list>a{display:flex;justify-content:space-between;align-items:center;gap:10px;background:var(--surface-2);padding:12px;border-radius:13px}.simple-list strong{display:block;font-size:13px}.simple-list small{display:block;color:var(--muted);font-size:10px}.simple-list>a>span{font-size:20px;color:var(--muted)}.recent-giveaways{margin-top:14px}.back-link{display:inline-flex;margin:0 0 14px;color:var(--primary);font-weight:800;font-size:13px}.back-link.centered{justify-content:center;width:100%;margin-top:16px}.empty-state{text-align:center;color:var(--muted);padding:30px 15px}.empty-state>span{font-size:30px}.big-empty{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);padding:60px 20px;box-shadow:var(--shadow)}.big-empty .empty-icon{font-size:46px}.big-empty h1,.big-empty h2{color:var(--text);margin:9px 0}.big-empty p{max-width:500px;margin:0 auto 18px}
.tutorial-detail{max-width:860px}.tutorial-article{padding:20px}.tutorial-article header{display:flex;gap:14px;align-items:flex-start}.tutorial-article h1{font-size:34px}.tutorial-article header p{color:var(--muted);margin:0}.video-wrap{position:relative;padding-top:56.25%;overflow:hidden;border-radius:18px;margin:24px 0;background:#000}.video-wrap iframe{position:absolute;inset:0;width:100%;height:100%;border:0}.tutorial-content{white-space:pre-line;font-size:16px;line-height:1.75;margin:24px 0;padding:18px;background:var(--surface-2);border-radius:16px}
.login-page{min-height:100vh;display:grid;place-items:center;padding:20px;background:radial-gradient(circle at 50% 0,color-mix(in srgb,var(--primary) 18%,transparent),transparent 42%),var(--bg)}.login-card{width:min(430px,100%);background:var(--surface);border:1px solid var(--line);border-radius:24px;padding:26px;box-shadow:var(--shadow)}.login-card h1{margin:3px 0}.login-card>p{color:var(--muted)}.brand-center{justify-content:center;margin-bottom:18px}.brand-logo.large,.brand-fallback.large{width:64px;height:64px;border-radius:50%}.stack-form{display:grid;gap:14px;margin-top:20px}.stack-form label,.form-grid label{display:grid;gap:6px;font-size:12px;font-weight:800}.stack-form input,.form-grid input,.form-grid textarea,.asset-card input[type=file]{width:100%;border:1px solid var(--line);border-radius:12px;background:var(--surface-2);color:var(--text);padding:11px 12px;outline:0}.stack-form input:focus,.form-grid input:focus,.form-grid textarea:focus{border-color:var(--primary);box-shadow:0 0 0 3px color-mix(in srgb,var(--primary) 15%,transparent)}.flash{padding:12px 14px;border-radius:13px;margin:12px 0;font-weight:750;font-size:13px}.flash.error{background:var(--red-soft);color:var(--red)}.flash.success{background:var(--green-soft);color:var(--green)}
.admin-page{padding-top:18px;padding-bottom:50px}.admin-status-grid{display:grid;gap:12px;margin-bottom:14px}.admin-status-grid>.surface,.admin-section{padding:17px}.admin-status-grid h2{margin:5px 0}.admin-status-grid p{margin:5px 0 0;color:var(--muted);font-size:12px}.admin-section{margin-bottom:14px}.form-grid{display:grid;grid-template-columns:1fr;gap:12px;margin-top:16px}.form-grid .wide{grid-column:1/-1}.form-grid small{font-weight:500;color:var(--muted)}.form-grid label.checkbox{display:flex;flex-direction:row;align-items:center;gap:8px}.form-grid label.checkbox input{width:auto}.asset-grid{display:grid;gap:12px;margin-top:20px}.asset-card{display:grid;grid-template-columns:92px 1fr;gap:13px;border:1px solid var(--line);border-radius:16px;padding:13px;background:var(--surface-2)}.asset-preview{width:92px;height:92px;border-radius:16px;background:var(--surface);display:grid;place-items:center;overflow:hidden}.asset-preview.landscape{height:70px}.asset-preview img{width:100%;height:100%;object-fit:contain}.asset-card p{font-size:11px;color:var(--muted);margin:4px 0 9px}.asset-card input{font-size:10px;padding:7px;margin-bottom:8px}.admin-create,.admin-items>details{border:1px solid var(--line);border-radius:15px;background:var(--surface-2);margin-top:10px}.admin-create summary,.admin-items>details>summary{padding:13px;cursor:pointer;font-weight:850}.admin-items>details>summary{display:flex;align-items:center;gap:9px}.admin-items>details>summary small{margin-left:auto;color:var(--muted);font-weight:600}.admin-create .form-grid,.admin-items .form-grid{padding:0 13px 13px;margin-top:4px}.admin-header .brand-copy small{max-width:110px}
@media(min-width:700px){.shell{width:min(1180px,calc(100% - 48px))}.desktop-nav{display:flex}.theme-toggle{margin-left:8px}.mobile-nav{display:none}.site-footer{padding-bottom:34px}.page-home{padding-top:34px}.hero{grid-template-columns:minmax(0,1.2fr) minmax(330px,.8fr);align-items:center}.hero-panel{padding:28px 30px}.hero-copy{padding:28px 0}.home-section{margin-top:24px;padding:26px 28px}.home-panel+.home-panel{margin-top:24px}.big-menu-grid{grid-template-columns:repeat(3,1fr)}.big-menu-card{grid-template-columns:48px 1fr;padding:20px}.big-menu-card>b{display:none}.compact-card-grid{grid-template-columns:repeat(2,1fr)}.tutorial-grid{grid-template-columns:repeat(2,1fr)}.links-grid{grid-template-columns:repeat(2,1fr)}.page-standard{padding-top:36px}.content-grid{grid-template-columns:minmax(0,1.05fr) minmax(0,.95fr)}.giveaway-hero-card{padding:27px}.giveaway-hero-card h1{font-size:44px}.participant-bubble{width:100px;height:100px;border-radius:28px}.participant-bubble strong{font-size:28px}.content-grid>.surface,.recent-giveaways{padding:22px}.history-row{grid-template-columns:52px minmax(0,1fr) auto}.history-row time{grid-column:auto;margin:0}.form-grid{grid-template-columns:repeat(2,1fr)}.asset-grid{grid-template-columns:repeat(2,1fr)}.admin-status-grid{grid-template-columns:repeat(2,1fr)}.admin-status-grid>.surface,.admin-section{padding:22px}.tutorial-article{padding:30px}}
@media(min-width:1000px){.tutorial-grid.large{grid-template-columns:repeat(3,1fr)}.compact-card-grid{grid-template-columns:repeat(4,1fr)}}
@media(max-width:420px){.brand-copy small{display:none}.participant-bubble{width:70px;height:70px;border-radius:19px}.participant-bubble strong{font-size:18px}.giveaway-hero-card h1{font-size:27px}.podium-item{padding-inline:3px}.header-actions .button:first-child{display:none}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important;animation:none!important}}

/* v2: apariencia configurable y tutoriales multimedia */
.appearance-control{position:relative;margin-left:auto}.header-actions .appearance-control{margin-left:0}.appearance-popover{position:absolute;right:0;top:calc(100% + 10px);z-index:90;width:min(330px,calc(100vw - 28px));padding:16px;border:1px solid var(--line);border-radius:18px;background:var(--surface);box-shadow:var(--shadow)}.appearance-title{display:flex;justify-content:space-between;gap:8px;align-items:baseline;margin-bottom:13px}.appearance-title small{color:var(--muted);font-size:10px}.appearance-label{font-size:10px;font-weight:900;color:var(--muted);letter-spacing:.08em;margin:12px 0 6px}.theme-choice-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:6px}.theme-choice-grid button{border:1px solid var(--line);background:var(--surface-2);color:var(--text);border-radius:12px;padding:10px 6px;display:grid;place-items:center;gap:3px;cursor:pointer}.theme-choice-grid button span{font-size:10px;font-weight:800}.theme-choice-grid button.is-active{border-color:var(--primary);box-shadow:0 0 0 2px color-mix(in srgb,var(--primary) 18%,transparent);background:var(--primary-soft);color:var(--primary)}.accent-row{display:flex;align-items:center;gap:10px}.accent-row>input{width:48px;height:42px;border:1px solid var(--line);background:var(--surface-2);border-radius:12px;padding:4px;cursor:pointer}.accent-presets{display:flex;gap:6px;flex-wrap:wrap}.accent-presets button{width:28px;height:28px;border-radius:50%;border:3px solid var(--surface);outline:1px solid var(--line);background:var(--swatch);cursor:pointer}.accent-presets button.is-active{outline:3px solid var(--primary)}.appearance-reset{width:100%;margin-top:13px;border:0;background:var(--surface-2);color:var(--muted);border-radius:11px;padding:9px;font-size:11px;font-weight:800;cursor:pointer}
.form-grid select{width:100%;border:1px solid var(--line);border-radius:12px;background:var(--surface-2);color:var(--text);padding:11px 12px;outline:0}.form-grid select:focus{border-color:var(--primary);box-shadow:0 0 0 3px color-mix(in srgb,var(--primary) 15%,transparent)}.color-input-row{display:flex;gap:10px;align-items:center}.color-input-row input[type=color]{width:70px;height:46px;padding:4px}.color-input-row code{font-size:12px;color:var(--muted)}.asset-preview.round{border-radius:50%}.asset-preview.round img{object-fit:cover;border-radius:50%}.small-copy{font-size:12px;margin:4px 0 0}.three-assets{grid-template-columns:1fr}
.rich-editor-field{display:grid;gap:7px}.editor-label-row{display:flex;justify-content:space-between;gap:10px;align-items:center;font-size:12px}.editor-label-row small{color:var(--muted);font-weight:500}.rich-toolbar{display:flex;flex-wrap:wrap;gap:5px;padding:7px;border:1px solid var(--line);border-bottom:0;border-radius:14px 14px 0 0;background:var(--surface)}.rich-toolbar button{min-width:34px;min-height:34px;border:1px solid var(--line);border-radius:9px;background:var(--surface-2);color:var(--text);font-size:11px;font-weight:800;cursor:pointer;padding:5px 8px}.rich-toolbar button:hover{border-color:var(--primary);color:var(--primary)}.rich-editor{min-height:260px;max-height:620px;overflow:auto;border:1px solid var(--line);border-radius:0 0 14px 14px;background:var(--surface);padding:16px;color:var(--text);line-height:1.65;outline:0}.rich-editor:focus{border-color:var(--primary);box-shadow:0 0 0 3px color-mix(in srgb,var(--primary) 12%,transparent)}.rich-editor:empty:before{content:'Escribe aquí el tutorial…';color:var(--muted)}.editor-status{min-height:18px;font-size:11px;color:var(--green)}.editor-status.error{color:var(--red)}
.rich-editor img,.rich-editor video,.tutorial-content img,.tutorial-content video{display:block;max-width:100%;height:auto;border-radius:16px;margin-inline:auto}.tutorial-media{margin:22px 0;padding:0}.tutorial-media figcaption{color:var(--muted);font-size:11px;text-align:center;margin-top:7px}.tutorial-embed{position:relative;padding-top:56.25%;overflow:hidden;border-radius:16px;background:#000;margin:22px 0}.tutorial-embed iframe{position:absolute;inset:0;width:100%;height:100%;border:0}.tutorial-content{white-space:normal;font-size:16px;line-height:1.75;margin:24px 0;padding:18px;background:var(--surface-2);border-radius:16px}.tutorial-content h2,.tutorial-content h3,.tutorial-content h4{line-height:1.2;margin:1.3em 0 .55em}.tutorial-content h2{font-size:1.55em}.tutorial-content h3{font-size:1.28em}.tutorial-content p{margin:.7em 0}.tutorial-content ul,.tutorial-content ol{padding-left:1.35em}.tutorial-content blockquote{margin:1em 0;padding:12px 14px;border-left:4px solid var(--primary);background:var(--surface);border-radius:0 12px 12px 0}.tutorial-content a{color:var(--primary);font-weight:750;text-decoration:underline;text-underline-offset:2px}.tutorial-content hr{border:0;border-top:1px solid var(--line);margin:24px 0}
@media(min-width:900px){.three-assets{grid-template-columns:repeat(3,1fr)}}

.admin-info-note{padding:14px 16px;border:1px solid var(--line);border-radius:16px;background:var(--surface-2)}
.admin-info-note strong{display:block;margin-bottom:4px}.admin-info-note p{margin:0;color:var(--muted);font-size:.92rem;line-height:1.5}


/* v4 · tutoriales Visual / Markdown / HTML */
.editor-format-picker{display:flex;flex-wrap:wrap;gap:6px;padding:7px;border:1px solid var(--line);border-bottom:0;border-radius:14px 14px 0 0;background:var(--surface)}
.editor-format-picker button,.source-toolbar button{min-height:36px;border:1px solid var(--line);border-radius:9px;background:var(--surface-2);color:var(--text);font-weight:800;cursor:pointer;padding:6px 10px}
.editor-format-picker button.is-active{border-color:var(--primary);background:color-mix(in srgb,var(--primary) 14%,var(--surface));color:var(--primary)}
.editor-format-picker [data-editor-preview]{margin-left:auto}
.rich-editor-field .rich-toolbar{border-radius:0;border-top:0}
.source-toolbar{display:flex;flex-wrap:wrap;align-items:center;gap:6px;padding:7px;border:1px solid var(--line);border-bottom:0;background:var(--surface)}
.source-toolbar span{font-size:11px;color:var(--muted);margin-left:4px}.source-toolbar code{font-size:10px;background:var(--surface-2);padding:2px 5px;border-radius:6px}
.source-editor{width:100%;min-height:360px;max-height:720px;resize:vertical;border:1px solid var(--line);border-radius:0 0 14px 14px;background:var(--surface);color:var(--text);padding:16px;font:13px/1.65 ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;tab-size:2;outline:0}
.source-editor:focus{border-color:var(--primary);box-shadow:0 0 0 3px color-mix(in srgb,var(--primary) 12%,transparent)}
.editor-preview{margin-top:10px;border:1px solid var(--line);border-radius:14px;background:var(--surface);overflow:hidden}.editor-preview-title{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:10px 12px;border-bottom:1px solid var(--line)}.editor-preview-title button{border:0;background:transparent;color:var(--muted);cursor:pointer;font-weight:800}.editor-preview .tutorial-content{margin:0;border-radius:0;background:transparent}
.tutorial-content h1{font-size:1.7em;line-height:1.15;margin:1.3em 0 .55em}.tutorial-content del{text-decoration-thickness:2px}.tutorial-content pre{overflow:auto;padding:14px;border:1px solid var(--line);border-radius:12px;background:var(--surface);font:13px/1.55 ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace}.tutorial-content :not(pre)>code{padding:2px 5px;border-radius:6px;background:var(--surface);font:0.9em ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace}.tutorial-content table{display:block;width:100%;overflow-x:auto;border-collapse:collapse;margin:1em 0}.tutorial-content th,.tutorial-content td{border:1px solid var(--line);padding:8px 10px;text-align:left}.tutorial-content th{background:var(--surface);font-weight:800}
@media(max-width:560px){.editor-format-picker [data-editor-preview]{margin-left:0}.editor-format-picker button{flex:1 1 auto}.source-toolbar span{width:100%;margin-left:0}.source-editor{min-height:300px}}

[hidden]{display:none!important}

/* v5 · editor admin robusto + estados visibles */
.editor-status:not(:empty){padding:7px 10px;border-radius:10px;background:color-mix(in srgb,var(--green) 9%,transparent)}
.editor-status.error:not(:empty){background:color-mix(in srgb,var(--red) 10%,transparent)}
.editor-preview-error{margin:0;padding:12px;color:var(--red);font-weight:700}
.editor-format-picker button:focus-visible,.editor-preview-title button:focus-visible{outline:3px solid color-mix(in srgb,var(--primary) 30%,transparent);outline-offset:2px}


/* v6 · imágenes como iconos en enlaces y tutoriales */
.compact-icon,.tutorial-icon,.link-icon,.page-emoji,.admin-list-icon,.icon-upload-preview{overflow:hidden}
.compact-icon img,.tutorial-icon img,.link-icon img,.page-emoji img,.admin-list-icon img,.icon-upload-preview img{width:100%;height:100%;object-fit:cover;display:block}
.compact-icon{width:38px;height:38px;display:grid;place-items:center;border-radius:12px;font-size:22px;background:var(--surface-2)}
.tutorial-icon{width:46px;height:46px;display:grid;place-items:center;border-radius:14px;background:var(--primary-soft);font-size:26px;flex:none}
.link-icon img{border-radius:inherit}.page-emoji img{border-radius:inherit}
.admin-list-icon{width:34px;height:34px;display:grid;place-items:center;flex:none;border-radius:10px;background:var(--surface);font-size:19px}
.icon-upload-field{display:grid;gap:6px}.field-label{font-size:12px;font-weight:800}.icon-upload-row{display:grid;grid-template-columns:64px minmax(0,1fr);gap:10px;align-items:start}.icon-upload-preview{width:64px;height:64px;border:1px solid var(--line);border-radius:16px;background:var(--surface);display:grid;place-items:center;font-size:28px}.icon-upload-controls{display:grid;gap:7px}.icon-upload-controls input[type=file]{font-size:10px;padding:8px}.icon-upload-controls .inline-check{font-size:11px;font-weight:650;color:var(--muted)}
@media(max-width:420px){.icon-upload-row{grid-template-columns:52px minmax(0,1fr)}.icon-upload-preview{width:52px;height:52px;border-radius:13px}}


/* v7-v9 · secciones separadas y fondo configurable de página */
.range-input-row{display:grid;grid-template-columns:minmax(0,1fr) 68px;align-items:center;gap:12px;min-height:44px}.range-input-row input[type=range]{width:100%;accent-color:var(--primary)}.range-input-row output{display:grid;place-items:center;min-height:38px;border:1px solid var(--line);border-radius:11px;background:var(--surface-2);font-size:12px;font-weight:850;color:var(--text)}
.site-assets{grid-template-columns:1fr}.page-bg-preview{overflow:hidden}.page-bg-preview img{width:112%;height:112%;margin:-6%;object-fit:cover}.asset-card .form-actions{margin-top:9px}
@media(min-width:700px){.site-assets{grid-template-columns:repeat(2,1fr)}}
@media(min-width:1100px){.site-assets{grid-template-columns:repeat(4,1fr)}}
@media(max-width:699px){.page-home{padding-top:14px}.home-panel{border-radius:20px}.hero-panel{padding:16px}.home-section{padding:18px 16px}.home-panel::before{left:16px;right:16px}}

/* v8 · apartados visuales consistentes en Sorteo, Enlaces y Tutoriales */
.page-sections{display:grid;gap:14px;align-content:start}.page-sections>.back-link{margin-bottom:0;justify-self:start}.giveaway-sections{display:grid;gap:14px;align-content:start;min-width:0}.giveaway-sections>*{min-width:0}
.page-section{position:relative;overflow:hidden;background:color-mix(in srgb,var(--surface) 88%,transparent);border:1px solid var(--line);border-radius:24px;padding:18px;box-shadow:0 12px 34px rgba(20,24,38,.055)}
.page-section::before{content:"";position:absolute;left:18px;right:18px;top:0;height:2px;border-radius:999px;background:linear-gradient(90deg,var(--primary),transparent 65%);opacity:.55;pointer-events:none}
.page-intro-section{padding:20px}.page-intro-section .page-title{margin:0}.page-content-section{display:grid;gap:16px}.page-section-heading{margin:0 0 2px}.page-section-heading p{margin:5px 0 0;color:var(--muted);font-size:13px}.page-section-heading h2{margin:0;font-size:21px;line-height:1.2}
.section-empty{padding:42px 18px;background:var(--surface-2);border:1px dashed var(--line);border-radius:18px;box-shadow:none}.section-empty h1,.section-empty h2{color:var(--text);margin:9px 0}.section-empty p{max-width:520px;margin:0 auto}
.page-content-section .links-grid{max-width:none;width:100%}.page-content-section .tutorial-grid{width:100%}
.giveaway-status-section{padding:11px 14px}.giveaway-status-section::before{display:none}.giveaway-status-section .giveaway-live-head{margin:0}.giveaway-hero-card.page-section{margin:0;padding:20px}.content-grid{gap:14px}.content-grid>.page-section,.recent-giveaways.page-section{padding:17px}.recent-giveaways.page-section{margin-top:0}.giveaway-empty{padding:60px 20px}.giveaway-empty::before{opacity:.7}
.tutorial-page-head{display:flex;gap:14px;align-items:flex-start}.tutorial-page-head h1{font-size:34px;line-height:1.05;letter-spacing:-.04em;margin:0 0 10px}.tutorial-page-head p{color:var(--muted);margin:0}.tutorial-intro-section,.tutorial-media-section,.tutorial-content-section,.tutorial-resource-section{padding:20px}.tutorial-media-section .video-wrap{margin:16px 0 0}.tutorial-content-section .tutorial-content{margin:14px 0 0}.tutorial-resource-section .button{margin-top:14px}
@media(min-width:700px){.page-sections,.giveaway-sections{gap:20px}.page-section{padding:24px}.page-section::before{left:24px;right:24px}.page-intro-section{padding:26px 28px}.page-content-section{gap:20px}.giveaway-status-section{padding:12px 16px}.giveaway-hero-card.page-section{padding:27px}.content-grid>.page-section,.recent-giveaways.page-section{padding:22px}.tutorial-intro-section,.tutorial-media-section,.tutorial-content-section,.tutorial-resource-section{padding:28px 30px}.tutorial-page-head h1{font-size:42px}}
@media(max-width:699px){.page-section{border-radius:20px;padding:16px}.page-section::before{left:16px;right:16px}.page-intro-section{padding:18px 16px}.page-intro-section .page-title{gap:12px}.page-intro-section .page-title h1{font-size:31px}.page-intro-section .page-emoji{width:50px;height:50px;border-radius:15px}.giveaway-status-section{padding:10px 12px}.giveaway-status-section .giveaway-live-head{align-items:flex-start;flex-direction:column;gap:6px}.giveaway-hero-card.page-section{padding:18px}.content-grid>.page-section,.recent-giveaways.page-section{padding:16px}.tutorial-page-head h1{font-size:30px}.tutorial-intro-section,.tutorial-media-section,.tutorial-content-section,.tutorial-resource-section{padding:18px 16px}}


/* v9 · la imagen configurable pertenece al fondo global, no al header */
body.has-page-background .home-panel,body.has-page-background .page-section,body.has-page-background .surface,body.has-page-background .live-summary-card,body.has-page-background .giveaway-hero-card{backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px)}

/* v11 · diagnóstico de versión y estado de subida de fondo */
.admin-runtime-note{margin:0 0 14px;padding:10px 13px;border:1px solid var(--line);border-radius:14px;background:color-mix(in srgb,var(--surface) 90%,transparent);color:var(--muted);font-size:11px}.admin-runtime-note strong{color:var(--text)}.asset-action-status{display:block;min-height:17px;margin-top:7px;color:var(--green);font-size:11px}.asset-action-status.error{color:var(--red)}

/* v12 · movimiento suave sin reveal por scroll */
@keyframes page-main-in{from{opacity:0;transform:translateY(9px)}to{opacity:1;transform:none}}
@keyframes page-header-in{from{opacity:0;transform:translateY(-7px)}to{opacity:1;transform:none}}
@keyframes page-footer-in{from{opacity:0}to{opacity:1}}
@keyframes popover-in{from{opacity:0;transform:translateY(-6px) scale(.985)}to{opacity:1;transform:none}}
@keyframes soft-pop{0%{transform:scale(.96);opacity:.72}100%{transform:scale(1);opacity:1}}

html.has-js #main{animation:page-main-in .42s cubic-bezier(.2,.75,.25,1) both}
html.has-js .site-header{animation:page-header-in .34s cubic-bezier(.2,.75,.25,1) both}
html.has-js .site-footer,html.has-js .mobile-nav{animation:page-footer-in .4s ease .08s both}
body.is-page-leaving #main{opacity:0;transform:translateY(-6px);transition:opacity .15s ease,transform .15s ease}
body.is-page-leaving .site-header,body.is-page-leaving .site-footer,body.is-page-leaving .mobile-nav{opacity:0;transition:opacity .15s ease}

/* La apariencia cambia de forma progresiva después del primer render, evitando un flash inicial. */
html.appearance-motion-ready body,
html.appearance-motion-ready .site-header,
html.appearance-motion-ready .mobile-nav,
html.appearance-motion-ready .home-panel,
html.appearance-motion-ready .page-section,
html.appearance-motion-ready .surface,
html.appearance-motion-ready .live-summary-card,
html.appearance-motion-ready .giveaway-hero-card,
html.appearance-motion-ready .big-menu-card,
html.appearance-motion-ready .compact-card,
html.appearance-motion-ready .tutorial-card,
html.appearance-motion-ready .link-card,
html.appearance-motion-ready .ranking-row,
html.appearance-motion-ready .history-row,
html.appearance-motion-ready .simple-list>a,
html.appearance-motion-ready input,
html.appearance-motion-ready textarea,
html.appearance-motion-ready select,
html.appearance-motion-ready button{transition-property:background-color,border-color,color,box-shadow,filter,transform,opacity;transition-duration:.24s;transition-timing-function:ease}

.button,.theme-toggle,.desktop-nav a,.mobile-nav a,.brand-logo,.brand-fallback,.big-menu-card,.compact-card,.tutorial-card,.link-card,.simple-list>a,.back-link,.appearance-reset,.theme-choice-grid button,.accent-presets button,.rich-toolbar button,.editor-format-picker button,.source-toolbar button{transition:transform .18s cubic-bezier(.2,.75,.25,1),box-shadow .18s ease,border-color .18s ease,background-color .18s ease,color .18s ease,filter .18s ease,opacity .18s ease}
.appearance-popover:not([hidden]){transform-origin:top right;animation:popover-in .18s cubic-bezier(.2,.75,.25,1) both}

@media(hover:hover) and (pointer:fine){
  .button:hover,.theme-toggle:hover,.appearance-reset:hover{transform:translateY(-2px)}
  .big-menu-card:hover,.compact-card:hover,.tutorial-card:hover,.link-card:hover,.simple-list>a:hover{transform:translateY(-3px);border-color:color-mix(in srgb,var(--primary) 34%,var(--line));box-shadow:0 16px 34px rgba(20,24,38,.12)}
  .desktop-nav a:hover,.mobile-nav a:hover{transform:translateY(-1px)}
  .brand:hover .brand-logo,.brand:hover .brand-fallback{transform:scale(1.055)}
  .big-menu-card:hover>span,.compact-card:hover .compact-icon,.tutorial-card:hover .tutorial-icon,.link-card:hover .link-icon{transform:scale(1.06)}
  .accent-presets button:hover{transform:scale(1.13)}
  .theme-choice-grid button:hover,.rich-toolbar button:hover,.editor-format-picker button:hover,.source-toolbar button:hover{transform:translateY(-1px)}
}
.big-menu-card>span,.compact-icon,.tutorial-icon,.link-icon{transition:transform .2s cubic-bezier(.2,.75,.25,1)}
.button:active,.theme-toggle:active,.big-menu-card:active,.compact-card:active,.tutorial-card:active,.link-card:active,.theme-choice-grid button:active,.accent-presets button:active{transform:scale(.975)}
:focus-visible{transition:outline-color .15s ease,box-shadow .15s ease}

/* Estado activo de navegación con cambio más suave, sin animaciones ligadas al desplazamiento. */
.desktop-nav a,.mobile-nav a{position:relative}
.desktop-nav a::after{content:"";position:absolute;left:13px;right:13px;bottom:5px;height:2px;border-radius:999px;background:var(--primary);transform:scaleX(0);transform-origin:center;transition:transform .2s ease}
.desktop-nav a.is-active::after{transform:scaleX(1)}

/* El live puede cambiar contenido sin hacer aparecer bloques al hacer scroll. */
[data-live-fragment] .presence.is-online i{animation:soft-pop .28s ease both}

@media(prefers-reduced-motion:reduce){
  html.has-js #main,html.has-js .site-header,html.has-js .site-footer,html.has-js .mobile-nav,.appearance-popover:not([hidden]),[data-live-fragment] .presence.is-online i{animation:none!important}
  body.is-page-leaving #main,body.is-page-leaving .site-header,body.is-page-leaving .site-footer,body.is-page-leaving .mobile-nav{opacity:1!important;transform:none!important}
}

/* v13 · pestaña Directos Twitch/TikTok, mobile first */
.mobile-nav{grid-template-columns:repeat(5,minmax(0,1fr))}.mobile-nav a{font-size:16px;min-width:0}.mobile-nav a b{font-size:9px;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.big-menu-grid>[data-live-fragment]{min-width:0}.big-menu-grid>[data-live-fragment]>.big-menu-card{height:100%}.home-live-icon.is-online{background:color-mix(in srgb,var(--red) 15%,var(--surface))!important}.is-live-link{border-color:color-mix(in srgb,var(--red) 18%,var(--line))}
.live-page>[data-live-fragment]{min-width:0}.live-platform-sections{display:grid;gap:14px;min-width:0}.live-overview-section{display:flex;flex-direction:column;gap:10px;justify-content:space-between}.live-overview-copy{display:grid;gap:9px}.live-overview-copy p{margin:0;color:var(--muted);font-size:13px}.live-last-check{color:var(--muted);font-size:11px}.live-platform-grid{display:grid;gap:14px;min-width:0}.live-platform-card{display:grid;gap:16px;align-content:start;min-width:0}.live-platform-card::before{opacity:.8}.live-platform-card.platform-twitch::before{background:linear-gradient(90deg,#9146ff,transparent 72%)}.live-platform-card.platform-tiktok::before{background:linear-gradient(90deg,#25f4ee,#fe2c55 35%,transparent 76%)}.live-platform-card.is-live{box-shadow:0 16px 42px color-mix(in srgb,var(--primary) 10%,rgba(20,24,38,.1))}.live-platform-top{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.live-profile-identity{display:flex;gap:11px;align-items:center;min-width:0}.live-profile-identity>div:last-child{min-width:0}.live-avatar{width:54px;height:54px;flex:none;border:1px solid var(--line);border-radius:50%;background:var(--surface-2);display:grid;place-items:center;overflow:hidden;font-size:24px}.live-avatar img{width:100%;height:100%;object-fit:cover}.live-platform-name{display:block;color:var(--muted);font-size:10px;font-weight:900;text-transform:uppercase;letter-spacing:.09em}.live-profile-identity h2{margin:2px 0 0;font-size:18px;line-height:1.15;overflow-wrap:anywhere}.live-profile-identity small{display:block;color:var(--muted);font-size:11px;margin-top:2px}.live-cover{position:relative;overflow:hidden;display:block;aspect-ratio:16/9;border:1px solid var(--line);border-radius:17px;background:var(--surface-2)}.live-cover img{width:100%;height:100%;object-fit:cover;display:block}.live-cover::after{content:"";position:absolute;inset:45% 0 0;background:linear-gradient(transparent,rgba(0,0,0,.45));pointer-events:none}.live-cover>span{position:absolute;z-index:1;left:10px;top:10px;padding:5px 8px;border-radius:8px;background:#e91916;color:#fff;font-size:10px;font-weight:950;letter-spacing:.05em;box-shadow:0 4px 14px rgba(0,0,0,.2)}.live-current-info{display:grid;gap:8px}.live-current-info .eyebrow{margin:0}.live-current-info h3{margin:0;font-size:20px;line-height:1.25;overflow-wrap:anywhere}.live-stat-row{display:flex;gap:7px;flex-wrap:wrap}.live-stat-row>span{display:inline-flex;align-items:center;gap:5px;padding:7px 9px;border-radius:10px;background:var(--surface-2);color:var(--muted);font-size:11px}.live-stat-row strong{color:var(--text)}.live-tags{display:flex;flex-wrap:wrap;gap:6px}.live-tags span{padding:5px 8px;border-radius:999px;background:var(--primary-soft);color:var(--primary);font-size:10px;font-weight:800}.live-profile-bio{margin:0;color:var(--muted);font-size:13px;white-space:pre-line}.live-offline-message{display:flex;gap:11px;align-items:flex-start;padding:15px;border:1px dashed var(--line);border-radius:16px;background:var(--surface-2)}.live-offline-message>span{font-size:23px}.live-offline-message strong{display:block}.live-offline-message p{margin:3px 0 0;color:var(--muted);font-size:12px}.live-card-actions{margin-top:auto}.live-temporary-note{display:block;color:var(--muted);font-size:10px;text-align:center;margin-top:-6px}.live-empty>span{display:block;font-size:32px}
.live-admin-status-grid{display:grid;gap:10px;margin:16px 0}.live-admin-status{padding:13px;border:1px solid var(--line);border-radius:15px;background:var(--surface-2)}.live-admin-status>div{display:flex;align-items:center;justify-content:space-between;gap:10px}.live-admin-status small{display:block;margin-top:6px;color:var(--muted)}.live-admin-error{margin:7px 0 0;padding:8px 10px;border-radius:10px;background:var(--red-soft);color:var(--red);font-size:11px;overflow-wrap:anywhere}.live-settings-form{margin-top:16px}.live-settings-block{padding:15px;border:1px solid var(--line);border-radius:18px;background:var(--surface-2)}.live-settings-title{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:13px}.live-settings-title>div{display:flex;align-items:center;gap:9px}.live-settings-title strong{display:block}.live-settings-title small{display:block;color:var(--muted);font-size:10px}.live-settings-icon{width:36px;height:36px;border-radius:11px;background:var(--surface);display:grid;place-items:center;font-size:18px}.live-settings-block .admin-info-note{margin:12px 0 0;background:var(--surface)}
@media(min-width:560px){.live-overview-section{flex-direction:row;align-items:center}.live-overview-copy{max-width:720px}.live-admin-status-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(min-width:700px){.big-menu-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.live-platform-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.live-platform-card{padding:22px}.live-overview-section{padding:17px 20px}}
@media(min-width:1050px){.big-menu-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}
/* Con cinco pestañas, mantenemos la navegación inferior en tablet para no comprimir el header. */
@media(min-width:700px) and (max-width:899px){.desktop-nav{display:none}.mobile-nav{display:grid}.site-footer{padding-bottom:105px}.theme-toggle{margin-left:auto}}
@media(min-width:900px){.desktop-nav{display:flex}.mobile-nav{display:none}.site-footer{padding-bottom:34px}}
@media(max-width:420px){.mobile-nav{left:5px;right:5px;padding:5px;border-radius:17px}.mobile-nav a{padding:7px 1px;font-size:15px}.mobile-nav a b{font-size:8px}.live-platform-top{align-items:flex-start}.live-platform-top>.presence{padding:6px 7px;font-size:9px}.live-avatar{width:48px;height:48px}.live-profile-identity h2{font-size:16px}}
.live-profile-meta{display:flex;flex-wrap:wrap;gap:6px}.live-profile-meta span{padding:5px 8px;border-radius:9px;background:var(--surface-2);color:var(--muted);font-size:10px}.live-profile-meta strong{color:var(--text)}

/* v14 · Guía pública de puntos y anti-farming */
.points-guide-section,.antifarm-public-section{display:grid;gap:16px}.points-guide-heading{align-items:flex-start;gap:12px}.points-guide-intro{margin:0;color:var(--muted);font-size:13px;line-height:1.65}.capture-state-pill,.antifarm-state{flex:none;display:inline-flex;align-items:center;justify-content:center;padding:7px 10px;border-radius:999px;font-size:10px;font-weight:950;letter-spacing:.04em;white-space:nowrap}.capture-state-pill.is-on,.antifarm-state.is-on{color:var(--green);background:var(--green-soft)}.capture-state-pill.is-off,.antifarm-state.is-off{color:var(--muted);background:var(--surface-2)}.scoring-summary{display:grid;grid-template-columns:1fr;gap:8px}.scoring-summary>div{display:grid;gap:3px;padding:13px 14px;border-radius:15px;background:var(--surface-2);border:1px solid color-mix(in srgb,var(--line) 72%,transparent)}.scoring-summary span{font-size:10px;font-weight:900;color:var(--muted);text-transform:uppercase;letter-spacing:.055em}.scoring-summary strong{font-size:15px}.scoring-summary small{font-size:10px;line-height:1.45;color:var(--muted)}.point-rules-grid{display:grid;grid-template-columns:1fr;gap:9px}.point-rule-card{min-width:0;display:grid;gap:10px;padding:14px;border-radius:17px;background:var(--surface-2);border:1px solid color-mix(in srgb,var(--line) 82%,transparent)}.point-rule-top{display:grid;grid-template-columns:38px minmax(0,1fr) auto;align-items:center;gap:10px}.point-rule-icon{width:38px;height:38px;display:grid;place-items:center;border-radius:12px;background:var(--surface);font-size:20px}.point-rule-top>div{min-width:0;display:flex;align-items:center;gap:7px;flex-wrap:wrap}.point-rule-top strong{font-size:13px}.point-rule-value{color:var(--green);font-size:14px;white-space:nowrap}.rule-scope{padding:4px 6px;border-radius:8px;font-size:8px;font-weight:950;letter-spacing:.035em;text-transform:uppercase;background:var(--surface);color:var(--muted)}.rule-scope.scope-feed{color:var(--primary);background:var(--primary-soft)}.rule-scope.scope-calculated{color:#c77800;background:color-mix(in srgb,#ffb020 16%,var(--surface))}.rule-scope.scope-local{color:#8e65d8;background:color-mix(in srgb,#8e65d8 14%,var(--surface))}.point-rule-card>p{margin:0;color:var(--muted);font-size:11px;line-height:1.55}.point-rule-meta{display:flex;justify-content:space-between;align-items:flex-end;gap:12px;padding-top:9px;border-top:1px solid var(--line)}.point-rule-meta span{font-size:9px;line-height:1.4;color:var(--muted);max-width:70%}.point-rule-meta strong{font-size:9px;color:var(--text);text-align:right}.manual-points-note{margin:0;display:grid;grid-template-columns:28px minmax(0,1fr);gap:9px;align-items:flex-start;padding:12px 13px;border-radius:14px;background:color-mix(in srgb,var(--primary) 7%,var(--surface-2));font-size:11px;line-height:1.5;color:var(--muted)}.manual-points-note>span:first-child{font-size:18px}.manual-points-note strong{color:var(--text)}.compact-empty{padding:18px 12px}.compact-empty>span{font-size:24px}.compact-empty p{margin:5px 0 0;font-size:12px}.antifarm-flow{display:grid;grid-template-columns:1fr;gap:8px}.farm-step{position:relative;display:grid;gap:3px;padding:13px 14px 13px 17px;border-radius:15px;background:var(--surface-2);overflow:hidden}.farm-step::before{content:"";position:absolute;left:0;top:0;bottom:0;width:4px}.farm-step.normal::before{background:var(--green)}.farm-step.zero::before{background:#f1b514}.farm-step.penalty::before{background:var(--red)}.farm-step span{font-size:10px;font-weight:900;color:var(--muted);text-transform:uppercase}.farm-step strong{font-size:16px}.farm-step.normal strong{color:var(--green)}.farm-step.zero strong{color:#b78300}.farm-step.penalty strong{color:var(--red)}.farm-step small{font-size:10px;line-height:1.4;color:var(--muted)}.antifarm-details{display:grid;grid-template-columns:1fr;gap:8px}.antifarm-details>div{display:grid;gap:4px;padding:12px 13px;border-radius:14px;border:1px solid var(--line);background:color-mix(in srgb,var(--surface) 65%,transparent)}.antifarm-details span{font-size:11px;font-weight:900}.antifarm-details strong{font-size:13px}.antifarm-details small{font-size:10px;line-height:1.45;color:var(--muted)}.streamer-protection-box{display:grid;gap:10px;padding:14px;border-radius:17px;border:1px solid color-mix(in srgb,var(--red) 28%,var(--line));background:color-mix(in srgb,var(--red) 6%,var(--surface-2))}.streamer-protection-box>div{display:flex;align-items:center;gap:10px}.streamer-protection-box>div>span{font-size:25px}.streamer-protection-box>div>div{display:flex;flex-direction:column}.streamer-protection-box small{font-size:9px;font-weight:950;color:var(--red);letter-spacing:.055em}.streamer-protection-box strong{font-size:14px}.streamer-protection-box p{margin:0;font-size:11px;line-height:1.55;color:var(--muted)}.streamer-protection-box p strong{font-size:inherit;color:var(--text)}
@media(min-width:700px){.scoring-summary{grid-template-columns:repeat(3,1fr)}.point-rules-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.antifarm-flow{grid-template-columns:repeat(3,1fr)}.antifarm-details{grid-template-columns:repeat(2,1fr)}}
@media(max-width:520px){.points-guide-heading{display:grid;grid-template-columns:1fr}.capture-state-pill,.antifarm-state{justify-self:start}.point-rule-top{grid-template-columns:36px minmax(0,1fr)}.point-rule-value{grid-column:2;justify-self:start}.point-rule-meta{align-items:flex-start;flex-direction:column;gap:5px}.point-rule-meta span{max-width:none}.point-rule-meta strong{text-align:left}}

/* v16 · búsqueda única para ranking + últimos puntos */
.points-unified-search{display:grid;gap:12px}.points-search-copy h2{margin:0;font-size:21px;line-height:1.2}.points-search-copy p{margin:5px 0 0;color:var(--muted);font-size:12px;line-height:1.55}.points-search-box{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:9px;padding:0 10px 0 13px;border:1px solid var(--line);border-radius:15px;background:var(--surface-2)}.points-search-box:focus-within{border-color:color-mix(in srgb,var(--primary) 55%,var(--line));box-shadow:0 0 0 3px color-mix(in srgb,var(--primary) 10%,transparent)}.points-search-box>span{font-size:21px;color:var(--muted)}.points-search-box input{width:100%;min-width:0;min-height:48px;border:0;outline:0;background:transparent;color:var(--text);font-size:14px}.points-search-box button{width:34px;height:34px;border:0;border-radius:11px;background:var(--surface);color:var(--muted);font-size:22px;line-height:1;cursor:pointer}.points-search-box button:hover{color:var(--text);background:var(--primary-soft)}.points-search-status{min-height:18px;color:var(--muted);font-size:10px;line-height:1.45}.points-unified-search.is-searching .points-search-status{color:var(--primary)}.search-result-row{animation:soft-pop .2s ease both}.points-search-empty{margin:0;border:1px dashed var(--line);border-radius:13px;background:color-mix(in srgb,var(--surface-2) 72%,transparent)}
@media(min-width:700px){.points-unified-search{grid-template-columns:minmax(220px,.78fr) minmax(320px,1.22fr);align-items:end;column-gap:24px}.points-search-status{grid-column:2}.points-search-copy{grid-row:1 / span 2;align-self:center}.points-search-box{grid-column:2}}
@media(max-width:520px){.points-search-box input{font-size:16px}.points-search-copy h2{font-size:20px}}

/* v17 · avisos Web Push de Twitch/TikTok */
.live-notify-section{display:grid;gap:15px;overflow:hidden}.live-notify-heading{display:grid;grid-template-columns:48px minmax(0,1fr);gap:12px;align-items:start}.live-notify-bell{width:48px;height:48px;border-radius:16px;display:grid;place-items:center;background:var(--primary-soft);font-size:25px;box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--primary) 18%,transparent)}.live-notify-heading h2{margin:2px 0 0;font-size:20px}.live-notify-heading p{margin:6px 0 0;color:var(--muted);font-size:12px;line-height:1.55}.live-notify-platforms{display:grid;gap:9px}.live-notify-choice{position:relative;display:grid;grid-template-columns:auto minmax(0,1fr) 28px;align-items:center;gap:11px;padding:13px;border:1px solid var(--line);border-radius:16px;background:var(--surface-2);cursor:pointer;transition:border-color .18s ease,background .18s ease,transform .18s ease}.live-notify-choice:hover{border-color:color-mix(in srgb,var(--primary) 35%,var(--line));transform:translateY(-1px)}.live-notify-choice input{position:absolute;opacity:0;pointer-events:none}.live-notify-choice .choice-icon{width:40px;height:40px;border-radius:13px;display:grid;place-items:center;background:var(--surface);font-size:19px}.live-notify-choice strong,.live-notify-choice small{display:block}.live-notify-choice strong{font-size:13px}.live-notify-choice small{margin-top:3px;color:var(--muted);font-size:10px;line-height:1.35}.live-notify-choice>i{width:24px;height:24px;border-radius:999px;display:grid;place-items:center;background:var(--surface);color:transparent;border:1px solid var(--line);font-size:12px;font-style:normal;font-weight:950}.live-notify-choice:has(input:checked){border-color:color-mix(in srgb,var(--primary) 48%,var(--line));background:color-mix(in srgb,var(--primary) 8%,var(--surface-2))}.live-notify-choice:has(input:checked)>i{background:var(--primary);border-color:var(--primary);color:var(--on-primary)}.live-notify-choice.is-disabled{opacity:.5;cursor:not-allowed}.live-notify-choice.is-disabled:hover{transform:none;border-color:var(--line)}.live-notify-actions{display:flex;flex-wrap:wrap;gap:8px}.live-notify-actions .button{min-height:44px}.live-notify-status{min-height:20px;padding:10px 12px;border-radius:12px;background:var(--surface-2);color:var(--muted);font-size:11px;line-height:1.45}.live-notify-status[data-state="ok"]{background:var(--green-soft);color:var(--green)}.live-notify-status[data-state="error"]{background:var(--red-soft);color:var(--red)}.live-notify-section.is-subscribed{border-color:color-mix(in srgb,var(--green) 28%,var(--line))}.live-notify-help{margin:0;color:var(--muted);font-size:9px;line-height:1.5}.live-push-admin-note{margin:12px 0}.live-push-admin-note p strong{color:var(--text)}
@media(min-width:700px){.live-notify-section{grid-template-columns:minmax(260px,.8fr) minmax(360px,1.2fr);column-gap:22px;align-items:center}.live-notify-heading{grid-row:1 / span 3}.live-notify-platforms{grid-template-columns:repeat(2,minmax(0,1fr))}.live-notify-actions,.live-notify-status,.live-notify-help{grid-column:2}.live-notify-help{margin-top:-3px}}
@media(max-width:430px){.live-notify-heading{grid-template-columns:42px minmax(0,1fr)}.live-notify-bell{width:42px;height:42px;border-radius:14px;font-size:22px}.live-notify-heading h2{font-size:18px}.live-notify-actions{display:grid;grid-template-columns:1fr}.live-notify-actions .button{width:100%}}

/* v18 · datos visibles del sorteo + bloque simple de directos en Inicio */
.giveaway-public-meta{display:grid;grid-template-columns:1fr;gap:8px;margin-top:16px}.giveaway-public-meta>div{display:grid;gap:3px;padding:12px 13px;border:1px solid var(--line);border-radius:14px;background:var(--surface-2)}.giveaway-public-meta span{color:var(--muted);font-size:10px;font-weight:850}.giveaway-public-meta strong{font-size:13px;line-height:1.35;overflow-wrap:anywhere}.home-giveaway-date{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:15px 0 -4px;padding:10px 12px;border:1px solid var(--line);border-radius:13px;background:var(--surface-2)}.home-giveaway-date span{color:var(--muted);font-size:11px;font-weight:800}.home-giveaway-date strong{font-size:12px;text-align:right}.home-directos-heading{align-items:flex-end}.home-directos-simple-grid{display:grid;gap:10px}.home-directos-simple-card{position:relative;display:grid;grid-template-columns:46px minmax(0,1fr) 18px;gap:11px;align-items:center;padding:14px;border:1px solid var(--line);border-radius:18px;background:var(--surface);min-width:0}.home-directos-simple-card.platform-twitch{border-top-color:color-mix(in srgb,#9146ff 48%,var(--line))}.home-directos-simple-card.platform-tiktok{border-top-color:color-mix(in srgb,#25f4ee 42%,var(--line))}.home-directos-simple-card.is-online{box-shadow:0 10px 30px color-mix(in srgb,var(--red) 8%,transparent)}.home-directos-simple-icon{width:46px;height:46px;display:grid;place-items:center;border-radius:15px;background:var(--surface-2);font-size:21px}.home-directos-simple-copy{min-width:0}.home-directos-simple-copy>div{display:flex;align-items:center;gap:8px;min-width:0}.home-directos-simple-copy>div>strong{font-size:15px}.home-directos-simple-copy .presence{padding:4px 7px;font-size:8px}.home-directos-simple-copy small{display:block;color:var(--muted);font-size:10px;margin-top:2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.home-directos-simple-copy p{margin:5px 0 0;font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.home-directos-simple-copy b{display:block;margin-top:5px;color:var(--muted);font-size:10px}.home-directos-simple-arrow{font-size:24px;color:var(--muted)}.home-directos-simple-empty{text-align:center;padding:12px;color:var(--muted)}.home-directos-simple-empty>span{font-size:28px}.home-directos-simple-empty p{margin:6px 0 12px}.home-directos-simple-empty .button{min-height:40px;padding:8px 12px}.home-directos-panel>[data-live-fragment]{min-width:0}
@media(min-width:700px){.giveaway-public-meta{grid-template-columns:repeat(2,minmax(0,1fr))}.giveaway-public-meta>div.wide{grid-column:1/-1}.home-directos-simple-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.home-directos-simple-card{padding:16px}.home-directos-heading p{max-width:560px}}
@media(max-width:420px){.home-giveaway-date{align-items:flex-start;flex-direction:column;gap:3px}.home-giveaway-date strong{text-align:left}.home-directos-heading{align-items:flex-start}.home-directos-simple-card{grid-template-columns:42px minmax(0,1fr) 14px;padding:12px}.home-directos-simple-icon{width:42px;height:42px;border-radius:13px}}
