.portal-page { background: linear-gradient(145deg, #111735, #25204b); color: #f8f8ff; }
.portal-wrap, .portal-header-inner { width: min(1200px, calc(100% - 36px)); margin-inline: auto; }
.portal-header { border-bottom: 1px solid rgba(235, 239, 255, .18); background: rgba(14, 20, 49, .85); }
.portal-header-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding-block: 18px; }
.portal-brand { display: inline-flex; align-items: center; gap: 9px; font-size: 24px; font-weight: 900; }
.portal-brand img { width: 40px; height: 40px; border-radius: 8px; }
.portal-brand span { color: #fff; }
.portal-tagline span { color: #ffda69; }
.portal-nav { display: flex; flex-wrap: wrap; gap: 10px 20px; font-size: 13px; font-weight: 700; }
.portal-nav a { color: #e0e5fb; }
.portal-nav a:hover { color: #ffda69; }
.portal-intro { display: grid; gap: 30px; padding-block: 48px; }
.portal-kicker { margin: 0 0 10px; color: #ffda69; font-size: 11px; font-weight: 800; }
.portal-intro h1 { margin: 0; font-family: var(--display-font); font-size: 60px; font-weight: 400; line-height: 1; overflow-wrap: anywhere; }
.portal-tagline { margin: 8px 0; font-size: 26px; font-weight: 800; line-height: 1.15; }
.portal-intro-copy { margin: 12px 0 20px; color: #d3daf2; }
.portal-progress { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 25px; margin-top: 28px; }
.portal-progress div { display: grid; gap: 2px; }
.portal-progress span { color: #d3daf2; font-size: 11px; font-weight: 800; }
.portal-progress strong { color: #ffda69; font-size: 23px; line-height: 1; }
.portal-progress a { color: #8ce8de; font-size: 14px; font-weight: 800; }
.portal-join { align-self: center; padding: 22px 0 0; border-top: 2px solid #ff85a4; }
.portal-join h2 { margin: 0 0 15px; font-size: 21px; }
.portal-join-form { display: flex; flex-wrap: wrap; gap: 8px; }
.portal-join-form input { flex: 1 1 180px; min-width: 0; min-height: 48px; padding: 10px 14px; border: 1px solid #7e8ebd; border-radius: 6px; background: #20294e; color: #fff; }
.portal-join-form input::placeholder { color: #c3cbe4; }
.portal-section { padding-block: 32px 16px; }
.portal-section-heading { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 8px 24px; margin-bottom: 20px; }
.portal-section-heading h2, .portal-more h2 { margin: 0; font-family: var(--display-font); font-size: 32px; font-weight: 400; line-height: 1.1; }
.portal-section-heading > p { margin: 0; color: #d3daf2; font-size: 14px; }
.portal-games { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: 12px; }
.game-card { display: flex; min-width: 0; min-height: 250px; flex-direction: column; padding: 20px; border: 1px solid #626c9f; border-radius: 8px; background: linear-gradient(145deg,#303264,#202c52); animation: portal-arrive 450ms ease both; }
.game-card-quien-soy { background: linear-gradient(145deg,#563361,#262a57); }
.game-card-preguntas { background: linear-gradient(145deg,#26566a,#203354); }
.game-card-sudoku { background: linear-gradient(145deg,#2c4f6b,#273058); }
.game-card-ordenar-15 { background: linear-gradient(145deg,#654956,#2c315a); }
.game-card-colores { background: linear-gradient(145deg,#5b3e70,#273354); }
.game-card-memoria { background: linear-gradient(145deg,#32615f,#263457); }
.game-card-top { display: flex; align-items: start; justify-content: space-between; gap: 12px; }
.game-icon { display: grid; width: 64px; height: 64px; flex: 0 0 64px; place-items: center; border-radius: 8px; background: #ffb6a6; color: #202442; font-size: 38px; font-weight: 900; line-height: 1; }
.game-card:nth-child(3n + 2) .game-icon { background: #8ce8de; }
.game-card:nth-child(3n) .game-icon { background: #ffda80; }
.game-status { padding: 5px 8px; border: 1px solid #aeb8db; border-radius: 4px; color: #f3f5ff; font-size: 11px; font-weight: 700; }
.game-status.is-available { border-color: #8ce8de; color: #b0f8e9; }
.game-card-copy { margin-top: 20px; }
.game-type { margin: 0 0 5px; color: #d4dcf6; font-size: 12px; font-weight: 700; }
.game-card h3 { margin: 0; font-size: 19px; line-height: 1.2; }
.game-card-copy > p:last-child { margin: 8px 0 0; color: #e1e6fa; font-size: 14px; }
.game-play { align-self: start; margin-top: 18px; padding-block: 10px; }
.portal-more { margin-top: 54px; padding-block: 36px; border-block: 1px solid #59648f; background: #1b2548; }
.portal-more-grid { display: grid; gap: 30px; }
.portal-more-grid > div { border-left: 2px solid #ff85a4; padding-left: 16px; }
.portal-more-grid > div:nth-child(2) { border-color: #ffda69; }
.portal-more-grid > div:nth-child(3) { border-color: #82e5d6; }
.portal-more p:last-child { max-width: 340px; margin: 10px 0 0; color: #e1e6fa; font-size: 14px; }
.portal-footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; padding-block: 24px 100px; color: #d3daf2; font-size: 13px; }
.portal-footer a { color: #f4f2e9; text-decoration: underline; }
@media (min-width: 700px) {
    .portal-intro { grid-template-columns: 1.2fr .8fr; gap: 60px; padding-block: 68px; }
    .portal-intro h1 { font-size: 84px; }
    .portal-tagline { font-size: 32px; }
    .portal-join { padding: 0 0 0 28px; border-top: 0; border-left: 2px solid #ff85a4; }
    .portal-more-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@keyframes portal-arrive { from { opacity:0; transform:translateY(12px); } to { opacity:1; transform:translateY(0); } }
@media (prefers-reduced-motion: reduce) { .portal-page * { animation:none !important; transition:none !important; } }