/* Shared BDSL portal theme; loaded after page-specific layout rules. */
:root{--navy:#143c59;--deep:#102c43;--blue:#65b7df;--ice:#e4f2fb;--paper:#fff;--ink:#142f44;--muted:#587386;--line:#c8deeb}
body.portal-theme{font:15px/1.5 system-ui,Segoe UI,sans-serif;background:linear-gradient(125deg,#d2e7f6,#edf6fc 55%,#dbeef9);color:var(--ink);min-height:100vh}
.portal-theme .topbar,.portal-theme .top{background:linear-gradient(105deg,var(--deep),#286487);color:white;min-height:76px;height:auto;padding:12px 26px;border-bottom:4px solid var(--blue);box-shadow:0 4px 15px #143c5920}
.portal-theme .topbar strong,.portal-theme .topbar span,.portal-theme .topbar a,.portal-theme .top strong,.portal-theme .top a{color:white}
.portal-theme .topbar strong,.portal-theme .top strong{display:flex;align-items:center;gap:12px;letter-spacing:.04em}
.portal-theme .topbar nav{background:transparent}.portal-theme .topbar nav a,.portal-theme .top>a{padding:8px 14px;border:1px solid #ffffff55;border-radius:8px;font-weight:650}
.portal-theme .crest{display:inline-block;object-fit:contain;background:white;border-radius:9px;padding:3px}
.portal-theme .layout{min-height:calc(100vh - 76px)}
.portal-theme aside{background:linear-gradient(180deg,#163e5c,#205779);color:white;border:0;padding:22px 14px;flex-shrink:0}
.portal-theme aside>a{color:#eff8ff;font-weight:650;padding:12px 15px;margin:5px 0;border:1px solid transparent}
.portal-theme aside>a:hover,.portal-theme aside>a.active{background:#397c9f;color:white;border-color:#80b6d1}
.portal-theme .userbox{border-color:#ffffff33;background:#ffffff12;border-radius:10px}.portal-theme .userbox small{color:#c6e5f5}
.portal-theme .content{padding:30px;max-width:none}.portal-theme .page-head,.portal-theme .hero{background:linear-gradient(110deg,#f8fcff,#c5e4f5);border:1px solid #a9cfe5;border-radius:14px;padding:22px 25px;box-shadow:0 5px 15px #143c5910;color:var(--ink);min-height:0}
.portal-theme .hero p{color:var(--muted)}.portal-theme .hero>div:first-child{max-width:100%}
.portal-theme .stat,.portal-theme .panel,.portal-theme .panel2,.portal-theme .card,.portal-theme .board{background:white;border:1px solid var(--line);border-radius:14px;box-shadow:0 5px 16px #143c5912}
.portal-theme .stat{border-top:4px solid #4298c6;padding:22px}.portal-theme .stat b{color:var(--navy);font-size:38px}.portal-theme .stat span{font-weight:700;text-transform:uppercase;letter-spacing:.05em;font-size:12px}
.portal-theme .panel h2,.portal-theme .panel2 h2,.portal-theme .card h2{background:linear-gradient(100deg,var(--navy),#367a9e);color:white;border-radius:8px;padding:12px 15px;font-size:16px;letter-spacing:.02em;margin:0 0 18px}
.portal-theme input:not([type=checkbox]):not([type=radio]),.portal-theme select,.portal-theme textarea{background:#f7fbff;color:var(--ink);border:1px solid #aecbde;border-radius:8px}
.portal-theme button,.portal-theme .button,.portal-theme .btn.gold{background:linear-gradient(110deg,#185174,#337eaa);color:white;border:1px solid #276b91;border-radius:8px;font-weight:750;cursor:pointer}
.portal-theme .btn.red{background:#fbe4e8;color:#8b2535;border-color:#d38e99}.portal-theme .cancel{background:var(--ice);color:var(--ink)}
.portal-theme .badge,.portal-theme .season{background:#e4f2fb;border-color:#a9cfe5;color:var(--navy)}
.portal-theme table{border-collapse:collapse;width:100%}.portal-theme th{background:#dceefa;color:var(--navy);text-align:left}.portal-theme th,.portal-theme td{padding:10px;border-bottom:1px solid var(--line)}.portal-theme tbody tr:nth-child(even){background:#f5faff}
.portal-theme .next,.portal-theme .match{background:linear-gradient(110deg,#f8fcff,#d6eaf7);border-color:#a9cfe5}.portal-theme .board-head{background:var(--navy);color:white}.portal-theme .player{background:#f2f8fc}
.portal-theme.auth-body,.portal-theme:has(.login-wrap){background:radial-gradient(ellipse at 50% 0,#b9dff4,#eaf5fc 65%);display:grid;place-items:center;padding:24px}
.portal-theme .auth-card,.portal-theme .login-wrap .card{background:white;border:1px solid #a9cfe5;box-shadow:0 16px 45px #143c5925;border-top:5px solid #4298c6;padding:32px;border-radius:18px}
.portal-theme .auth-card .crest,.portal-theme .login-wrap .crest{width:100px!important;height:76px!important;display:block;margin:0 auto 14px}.portal-theme .login-wrap .brand{padding:0;margin:0 0 20px}.portal-theme .auth-card h1{text-align:center;color:var(--navy)}.portal-theme .auth-card>p.muted{text-align:center}.portal-theme .auth-card .button{width:100%}
@media(max-width:850px){.portal-theme .content{padding:16px}.portal-theme aside{padding:12px}.portal-theme .topbar,.portal-theme .top{padding:10px 14px;flex-wrap:wrap;gap:8px}.portal-theme .page-head,.portal-theme .hero{padding:16px}.portal-theme .board{overflow-x:auto}}
