/* Homepage (index.asp) and rules page (rules.html). Crimson + amber on charcoal, to match the DRG Sports crest. */

:root {
 --dg-bg:#100C0D;
 --dg-line:rgba(255,255,255,.08);
 --dg-text:#F2ECEA;
 --dg-muted:#A1969A;
 --dg-amber:#FFC94A;
 --dg-crimson:#E5383B;
 --dg-ui:"Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
}

html, body { margin:0; }

body {
 background:var(--dg-bg) radial-gradient(1400px 560px at 50% -180px, #3B1519 0%, rgba(16,12,13,0) 70%) no-repeat;
 color:var(--dg-text);
 font:14px/1.5 var(--dg-ui);
}

.page {
 max-width:1120px;
 margin:0 auto;
 padding:0 20px;
 box-sizing:border-box;
}

.sr-only {
 position:absolute;
 width:1px;
 height:1px;
 overflow:hidden;
 clip:rect(0 0 0 0);
 white-space:nowrap;
}

/*** HEADER ***/

.site-header {
 display:flex;
 align-items:center;
 justify-content:space-between;
 flex-wrap:wrap;
 gap:16px 24px;
 padding:18px 0;
 border-bottom:1px solid var(--dg-line);
}

.logo img { display:block; }

/*** LOGIN ***/

.account {
 display:flex;
 flex-direction:column;
 align-items:flex-end;
 gap:8px;
}

.login {
 display:flex;
 align-items:center;
 gap:10px;
 margin:0;
}

.login input {
 width:180px;
 height:40px;
 box-sizing:border-box;
 padding:0 14px;
 border:1px solid rgba(255,255,255,.12);
 border-radius:10px;
 background:rgba(255,255,255,.05);
 color:var(--dg-text);
 font:14px var(--dg-ui);
 outline:none;
 transition:border-color .15s, background-color .15s;
}

.login input:focus {
 border-color:var(--dg-amber);
 background-color:rgba(255,255,255,.08);
}

.login input::placeholder { color:#8E8387; }

.login button {
 height:40px;
 padding:0 26px;
 border:0;
 border-radius:10px;
 background:linear-gradient(135deg, #B3122B, var(--dg-crimson));
 color:#FFF;
 font:600 14px var(--dg-ui);
 cursor:pointer;
 box-shadow:0 8px 20px -10px rgba(229,56,59,.9);
}

.login button:hover { background:linear-gradient(135deg, #C81E36, #F04A4D); }

.quick-links { font-size:12px; }
.quick-links a { color:var(--dg-muted); text-decoration:none; }
.quick-links a + a { margin-left:10px; padding-left:10px; border-left:1px solid rgba(255,255,255,.15); }
.quick-links a:hover { color:var(--dg-amber); }

.login-error {
 margin:14px auto 0;
 max-width:520px;
 padding:8px 14px;
 border:1px solid rgba(255,90,90,.35);
 border-radius:8px;
 background:rgba(255,90,90,.12);
 color:#FFB8B8;
 font-size:13px;
 text-align:center;
}

/*** FEATURED RAIL (full width; styles in frontend/css/featuredrail.css) ***/

.fr-stage { margin:10px 0 0; }

/*** LEAGUE LOGOS ***/

.logo-strip {
 margin-top:18px;
 padding:14px 18px;
 border:1px solid var(--dg-line);
 border-radius:14px;
 background:rgba(255,255,255,.025);
}

#sportsIcons .item {
 display:flex;
 align-items:center;
 justify-content:center;
 height:44px;
}

#sportsIcons .item img {
 width:auto;
 max-width:100%;
 height:28px;
 filter:grayscale(1) brightness(1.8);
 opacity:.5;
 transition:filter .2s, opacity .2s;
}

#sportsIcons .item:hover img { filter:none; opacity:1; }

/*** FOOTER ***/

.site-footer {
 display:flex;
 justify-content:space-between;
 align-items:center;
 flex-wrap:wrap;
 gap:10px 20px;
 margin-top:28px;
 padding:22px 0 36px;
 border-top:1px solid var(--dg-line);
 color:var(--dg-muted);
 font-size:13px;
}

/*** PHONES ***/

.mobile-bar { display:none; }

@media (max-width:760px) {
 .mobile-bar {
  display:block;
  padding:10px 16px;
  border-bottom:1px solid var(--dg-line);
  background:#2A1215;
  color:#FFDCA0;
  font-size:13px;
  text-align:center;
  text-decoration:none;
 }
 .page { padding:0 16px; }
 .site-header { justify-content:center; padding:14px 0 18px; }
 .logo img { width:214px; height:84px; }
 .account { width:100%; align-items:center; }
 .login { width:100%; }
 .login input { flex:1 1 0; min-width:0; width:auto; }
 .login button { padding:0 18px; }
 .site-footer { justify-content:center; text-align:center; }
}
