/* Entrepixel web with the app's look (mobile/src/theme.tsx): Space Grotesk, the app's palette and soft corners.
   The site's colours are variables with their old colour as fallback (scripts/theme-remap.mjs);
   here the dark theme gives them the app's values. Dark is the default; light keeps the original colours. */
:root{--serif:'Space Grotesk',system-ui,sans-serif;--sans:'Space Grotesk',system-ui,sans-serif;--display:'Space Grotesk',system-ui,sans-serif;--mono:'Space Grotesk',system-ui,sans-serif;--ep-radius:10px}
html[data-theme=dark]{
  color-scheme:dark;
  --ep-blue:#234AE6;--ep-link:#8FA6FF;--ep-ink:#F2F5FA;--ep-muted:#A9B8CC;--ep-paper:#16233A;--ep-bg:#0D1626;--ep-pale:#1F3358;--ep-deep:#16233A;--ep-line:#26385A;--ep-star:#7D97FF;
  /* The site's own variables */
  --paper:#0D1626;--card:#16233A;--ink:#F2F5FA;--muted:#A9B8CC;--line:#26385A;--deep:#234AE6;--paper-shadow:0 18px 40px rgba(2,6,14,.55);
}
html[data-theme=dark],html[data-theme=dark] body{background:#0D1626;color:#F2F5FA}
html[data-theme=dark] body{font-family:var(--sans)}
html[data-theme=dark] input,html[data-theme=dark] textarea,html[data-theme=dark] select{background-color:#16233A;color:#F2F5FA;border-color:#26385A}
html[data-theme=dark] input::placeholder,html[data-theme=dark] textarea::placeholder{color:#8C9DB4}
html[data-theme=dark] a{color:inherit}
html[data-theme=dark] ::selection{background:#234AE6;color:#fff}
/* Logo: the white wordmark on dark */
html[data-theme=dark] .brand-art img{content:url(/entrepixel-wordmark-white.svg)}
html[data-theme=dark] .brand-art{filter:none}
/* Header, as in the app: thin line, pill links, rounded search */
html[data-theme=dark] .topline{background:#0A1220;color:#A9B8CC;border-bottom:1px solid #26385A}
html[data-theme=dark] .nav{border-bottom-color:#26385A}
html[data-theme=dark] .navlinks a{border-radius:var(--ep-radius);padding:7px 11px;color:#A9B8CC;transition:background .15s,color .15s}
html[data-theme=dark] .navlinks a:hover,html[data-theme=dark] .navlinks a[aria-current=page]{background:#1F3358;color:#F2F5FA}
html[data-theme=dark] .nav-search-form{border-radius:var(--ep-radius);background:#16233A;border-color:#26385A}
html[data-theme=dark] .nav-search-form input{background:transparent}
/* Overlays and dialogs */
html[data-theme=dark] .overlay{background:rgba(4,9,18,.72)}
html[data-theme=dark] .modal,html[data-theme=dark] dialog{background:#16233A;color:#F2F5FA;border-color:#26385A}
/* Footer */
html[data-theme=dark] .legal-footer{border-top-color:#26385A;color:#A9B8CC}
html[data-theme=dark] .legal-footer a{color:#8FA6FF}
html[data-theme=dark] .footer-identity strong{color:#F2F5FA}
/* Theme switch in the footer */
.theme-switch{display:inline-flex;gap:2px;padding:3px;border:1px solid var(--ep-line,#c8d4e6);border-radius:99px;background:var(--ep-paper,#fff)}
.theme-switch button{border:0;border-radius:99px;padding:5px 11px;background:transparent;color:var(--ep-muted,#536985);font:600 11px var(--sans);cursor:pointer}
.theme-switch button[aria-pressed=true]{background:#234AE6;color:#fff}
/* Header as in the sketch: one row — logo, sections as pills, wide search, account buttons, avatar */
html[data-theme=dark] .topline{display:none}
.nav .nav-actions{display:flex;align-items:center;gap:8px}
.nav .nav-actions a{display:inline-flex;align-items:center;height:36px;padding:0 14px;border-radius:10px;font:600 13px var(--sans);text-decoration:none;white-space:nowrap;border:1px solid var(--ep-line,#c7d4e7);color:var(--ep-ink,#112541)}
.nav .nav-actions a[hidden]{display:none}
.nav .nav-actions #signupLink,.nav .nav-actions #headerCreateListLink{background:#234AE6;border-color:#234AE6;color:#fff}
.nav .nav-actions #headerCreateListLink{font-size:0}.nav .nav-actions #headerCreateListLink::after{content:'+ Crear lista';font-size:13px}
html[data-theme=dark] .nav .navright{gap:10px}
html[data-theme=dark] .nav-search-form{min-width:240px}
@media(max-width:900px){.nav .nav-actions a{height:32px;padding:0 10px;font-size:12px}}
/* Home as in the app */
.home-app-title{margin:26px 0 16px}.home-app-title h2{margin:0;font:700 30px/1.1 var(--display);letter-spacing:-.03em;color:var(--ep-ink,#112541)}.home-app-title p{margin:4px 0 0;color:var(--ep-muted,#48607d);font-size:14px}
html.inner-page .home-app-title,html.route-inner .home-app-title,html.inner-page .home-popular,html.route-inner .home-popular,html.inner-page .home-lists,html.route-inner .home-lists,html.inner-page .home-reviews,html.route-inner .home-reviews{display:none!important}
header.hero.has-featured{position:relative;padding:0!important;overflow:hidden;min-height:300px;display:block}
header.hero.has-featured>div:first-child{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.home-featured{position:absolute;inset:0;display:flex;align-items:flex-end;padding:24px;color:#fff;text-decoration:none;border-radius:inherit}
.home-featured img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;transition:transform .4s}
.home-featured:hover img{transform:scale(1.03)}
.home-featured::after{content:'';position:absolute;inset:0;background:linear-gradient(180deg,transparent 35%,rgba(8,14,26,.92))}
.home-featured-copy{position:relative;z-index:1;display:grid;gap:4px}
.home-kicker{font-size:11px;letter-spacing:.05em;color:#c9d4ea;font-weight:600}
.home-featured strong{font:700 clamp(24px,3vw,32px)/1.1 var(--display);letter-spacing:-.03em}
.home-featured small{color:#c9d4ea;font-size:13px}
.home-stars{color:#7D97FF;letter-spacing:1px}
.home-popular{margin:28px 0 8px}
.home-row-head{display:flex;justify-content:space-between;align-items:baseline;margin-bottom:12px}.home-row-head h3{margin:0;font:600 18px var(--sans);color:var(--ep-ink,#112541)}.home-row-head a{color:var(--ep-link,#214bd1);font-size:13px;font-weight:600;text-decoration:none}
.home-popular-row{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:14px}
.home-cover{display:grid;gap:4px;text-decoration:none;color:var(--ep-ink,#112541);font-size:13px;font-weight:600;min-width:0}
.home-cover img{width:100%;aspect-ratio:3/4;object-fit:cover;border-radius:10px;border:1px solid var(--ep-line,#c7d4e7)}
.home-cover span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.home-cover small{font-size:12px;color:var(--ep-muted,#48607d);font-weight:500}
@media(max-width:760px){header.hero.has-featured{min-height:200px}.home-popular-row{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.home-app-title{margin:18px 0 12px}.home-app-title h2{font-size:24px}}
/* Cards with the app's corners */
html[data-theme=dark] .home-opening>*,html[data-theme=dark] .top-search-frame,html[data-theme=dark] .community-lists{border-radius:10px}
/* Home sections as in the sketch */
html.app-home:not(.inner-page):not(.route-inner) #builderDiscoverSection,html.app-home:not(.inner-page):not(.route-inner) #listas{display:none}
.home-lists,.home-reviews{margin:30px 0 8px}
.home-grid3{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.home-list-card,.home-review-card{display:grid;gap:8px;padding:14px;border:1px solid var(--ep-line,#c7d4e7);border-radius:10px;background:var(--ep-paper,#fff);color:var(--ep-ink,#112541);text-decoration:none;box-shadow:0 8px 24px rgba(2,6,14,.25);min-width:0}
.home-list-card:hover,.home-review-card:hover{border-color:#234AE6}
.home-mini{display:flex;min-height:61px}.home-mini img{width:46px;aspect-ratio:3/4;object-fit:cover;border-radius:5px;border:2px solid var(--ep-paper,#fff);margin-right:-12px}
.home-list-card b{font-size:14px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.home-list-card small,.home-review-card small{color:var(--ep-muted,#48607d);font-size:12px}
.home-who{display:flex;align-items:center;gap:8px;font-size:13px}.home-who img,.home-who i{width:28px;height:28px;border-radius:50%;object-fit:cover;background:var(--ep-pale,#eaf0ff)}.home-who .home-stars{margin-left:auto}
.home-review-card p{margin:0;color:var(--ep-muted,#48607d);font-size:13px;line-height:1.5;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
/* Team pick: a plain card with «Ver tráiler» and «Ver ficha» */
#homeOpeningSection .featured.game-feature{background:var(--ep-paper,#fff)!important;border:1px solid var(--ep-line,#c7d4e7);border-radius:10px;box-shadow:0 8px 24px rgba(2,6,14,.25)}
#homeOpeningSection .featured.game-feature .team-feature-art{display:none}
#homeOpeningSection .featured.game-feature::before,#homeOpeningSection .featured.game-feature::after{display:none}
#homeOpeningSection .featured.game-feature .feature-body{position:relative;display:flex;flex-direction:column;gap:12px;height:100%;padding:22px;color:var(--ep-ink,#112541);background:none}
#homeOpeningSection .featured.game-feature .tag{color:var(--ep-link,#214bd1);font-size:11px;letter-spacing:.05em;background:none;padding:0}
#homeOpeningSection .featured.game-feature h2{margin:0;font:700 20px/1.2 var(--display)}#homeOpeningSection .featured.game-feature h2 a{color:inherit;text-decoration:none}
#homeOpeningSection .featured.game-feature p{margin:0;color:var(--ep-muted,#48607d);font-size:13px;line-height:1.55;text-shadow:none}
#homeOpeningSection .featured.game-feature .team-trailer,.team-open{display:inline-flex;align-items:center;justify-content:center;height:36px;padding:0 14px;border-radius:10px;font:600 13px var(--sans);text-decoration:none}
#homeOpeningSection .featured.game-feature .team-trailer{background:#234AE6;color:#fff;margin-top:auto;align-self:flex-start}
.team-open{border:1px solid var(--ep-line,#c7d4e7);color:var(--ep-ink,#112541);background:transparent}
#homeOpeningSection .featured.game-feature .feature-body{flex-wrap:wrap}
#homeOpeningSection .featured.game-feature .team-trailer+.team-open{margin-top:auto}
/* Header: «Concurso» like the other sections */
html[data-theme=dark] .navlinks .contest-nav-link{color:#A9B8CC}
@media(max-width:900px){.home-grid3{grid-template-columns:1fr}}
.team-actions{display:flex;gap:8px;margin-top:auto;flex-wrap:wrap}
#homeOpeningSection .featured.game-feature .team-actions .team-trailer{margin-top:0}
html[data-theme=dark] .navlinks a.contest-nav-link{color:#A9B8CC!important}
html[data-theme=dark] .navlinks a.contest-nav-link:hover{color:#F2F5FA!important}
html[data-theme=dark] .navlinks{gap:2px}html[data-theme=dark] .navlinks a{padding:7px 9px}
/* Light theme: the app's light palette (mobile/src/theme.tsx) */
html[data-theme=light]{--ep-blue:#234AE6;--ep-link:#234AE6;--ep-ink:#182F4D;--ep-muted:#586B83;--ep-paper:#FFFFFF;--ep-bg:#F4F6FA;--ep-pale:#EAF0FF;--ep-line:#D5DDE8;--ep-star:#234AE6;--paper:#F4F6FA;--card:#FFFFFF;--ink:#182F4D;--muted:#586B83;--line:#D5DDE8;--deep:#234AE6}
html[data-theme=light] body{background:#F4F6FA;font-family:var(--sans)}
html[data-theme=light] .topline{display:none}
html[data-theme=light] .navlinks a{border-radius:10px;padding:7px 9px;color:#586B83}
html[data-theme=light] .navlinks a[aria-current=page],html[data-theme=light] .navlinks a:hover{background:#EAF0FF!important;color:#182F4D!important}
html[data-theme=light] .navlinks a.contest-nav-link{color:#586B83!important}
html[data-theme=light] .eyebrow{display:none!important}
html[data-theme=light] .nav-search-form{border-radius:10px;width:170px;min-width:0}
@media(max-width:1250px){html[data-theme] .nav-search-form{width:130px!important}}
/* No flash of the old home: from the first paint the welcome block is hidden and the large card's place
   shows a placeholder; home-app.js fills it, or brings the welcome back (.show-original) if nothing is popular. */
#homeOpeningSection header.hero{position:relative;overflow:hidden;min-height:300px}
#homeOpeningSection header.hero:not(.show-original){padding:0!important}
#homeOpeningSection header.hero:not(.show-original)>div:first-child{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
#homeOpeningSection header.hero:not(.show-original):not(.has-featured){background:linear-gradient(100deg,var(--ep-paper,#fff) 30%,var(--ep-pale,#eaf0ff) 50%,var(--ep-paper,#fff) 70%) 0 0/300% 100%!important;animation:home-wait 1.4s linear infinite}
@keyframes home-wait{to{background-position:-150% 0}}
@media(prefers-reduced-motion:reduce){#homeOpeningSection header.hero{animation:none!important}}
/* Old home sections and the team pick: the new look without waiting for a script */
html:not(.inner-page):not(.route-inner) #builderDiscoverSection,html:not(.inner-page):not(.route-inner) #listas{display:none}
#homeOpeningSection .featured.game-feature .team-feature-art{display:none}
