@import url('https://fonts.googleapis.com/css2?family=Roboto+Condensed:wght@400;500;600;700;800;900&family=Staatliches&display=swap');

:root {
  color-scheme: dark;
  --ink: #0a0806;
  --panel: #17130f;
  --panel-deep: #0d0b09;
  --steel: #4e392a;
  --steel-bright: #79553a;
  --sand: #d8bf99;
  --muted: #9d896e;
  --ember: #d96124;
  --ember-hot: #f07a32;
  --green: #7da465;
  --rust-edge: #6f4328;
  --rust-flare: #a86b3d;
  --burnt-edge: #24160f;
  --display: "Staatliches", Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  --condensed: "Roboto Condensed", "Arial Narrow", Arial, sans-serif;
  --body: "Roboto Condensed", "Arial Narrow", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  background: radial-gradient(circle at 50% 0, #3a2114 0, #0a0806 36rem), #090806;
  color: #dfc9a7;
  font-family: var(--body);
  font-size: 16px;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}
button, input, select, textarea { font-family: var(--condensed); }
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--ember-hot); outline-offset: 3px; }
.skip-link { position: fixed; left: 12px; top: -80px; z-index: 100; padding: 12px 16px; background: var(--ember); color: white; font-weight: 900; }
.skip-link:focus { top: 12px; }

.site-frame {
  width: min(1536px, 100%);
  min-height: 100vh;
  margin: 0 auto;
  overflow: hidden;
  border: 5px solid var(--burnt-edge);
  border-image: repeating-linear-gradient(97deg, #160e0a 0 5px, #6d4329 6px 8px, #2d1c13 9px 13px, #945b34 14px, #1a110c 16px 21px) 8;
  background: #0d0b09;
  box-shadow: inset 0 0 0 2px #090604, inset 0 0 0 6px #382318, 0 0 90px #000;
}

/* The supplied concept artwork is used directly for the cinematic masthead. */
.art-masthead {
  position: relative;
  aspect-ratio: 1536 / 185;
  min-height: 128px;
  max-height: 185px;
  background-color: #714526;
  background-position: center top;
  background-repeat: no-repeat;
  background-size: 100% auto;
}
.masthead-home { background-image: url('/assets/images/concept-home.jpg'); }
.masthead-team { background-image: url('/assets/images/concept-team-scavengers.jpg'); }
.brand-hit { position: absolute; inset: 0 auto 0 3%; width: 39%; }

.console-nav {
  position: relative;
  z-index: 10;
  display: flex;
  min-height: 46px;
  align-items: stretch;
  justify-content: center;
  border-block: 3px solid #543420;
  border-image: repeating-linear-gradient(92deg, #1a100b 0 8px, #765034 9px 11px, #352116 12px 17px, #9a6239 18px, #21150f 21px) 5;
  background:
    repeating-linear-gradient(96deg, transparent 0 59px, #b5743d0d 60px 61px, transparent 63px),
    linear-gradient(#29231e, #11100e 55%, #090806);
  box-shadow: inset 0 0 0 3px #080706, inset 0 0 0 5px #3a271b99, 0 5px 12px #000b;
}
.console-nav::before, .console-nav::after { content: ""; width: clamp(12px, 3.6vw, 54px); }
.console-nav a {
  display: inline-flex;
  flex: 0 0 auto;
  min-height: 44px;
  align-items: center;
  gap: 8px;
  padding: 0 clamp(13px, 2vw, 30px);
  border-right: 1px solid #3c2c22;
  color: #c7b08d;
  font-family: var(--condensed);
  font-size: .87rem;
  font-weight: 900;
  letter-spacing: .025em;
  text-transform: uppercase;
}
.console-nav a:first-of-type { border-left: 1px solid #3c2c22; }
.console-nav a:hover, .console-nav [aria-current="page"] { background: linear-gradient(#3a2b21, #17120e); color: var(--ember-hot); }
.console-nav a span { color: #bf7547; font-size: 1.05rem; }

main {
  padding: 11px;
  background:
    radial-gradient(circle at 20% 0, #70401b16, transparent 32rem),
    repeating-linear-gradient(0deg, #ffffff04 0 1px, transparent 1px 4px),
    #0c0a08;
}
.rivet-panel, .featured-card {
  position: relative;
  border: 3px solid var(--rust-edge);
  border-image: repeating-linear-gradient(101deg, #1b110c 0 4px, #704329 5px 7px, #3a2418 8px 11px, #9b6037 12px, #26170f 14px 19px) 7;
  background: linear-gradient(145deg, #1b1713, #0d0c0a 75%);
  box-shadow:
    inset 0 0 0 2px #070504,
    inset 0 0 0 5px #3b281c,
    inset 0 0 0 7px #0a0705,
    inset 0 0 32px #0009,
    0 0 0 2px #070504,
    0 4px 0 #020201,
    0 7px 14px #000b;
}
.rivet-panel::before, .featured-card::before {
  content: "";
  position: absolute;
  inset: 2px;
  z-index: 4;
  pointer-events: none;
  border: 1px solid #9a633c66;
  box-shadow: inset 0 0 0 2px #090604, inset 0 0 0 3px #422a1d99;
  background:
    linear-gradient(104deg, transparent 0 19%, #b9784528 19.2%, transparent 19.7%),
    linear-gradient(82deg, transparent 0 73%, #c07a4222 73.2%, transparent 73.6%),
    repeating-linear-gradient(90deg, transparent 0 23px, #d18a4d22 24px, transparent 26px) top / 100% 2px no-repeat,
    repeating-linear-gradient(90deg, transparent 0 31px, #050302aa 33px, transparent 37px) bottom / 100% 3px no-repeat;
}
.rivet-panel::after, .featured-card::after {
  content: "";
  position: absolute;
  inset: 1px;
  z-index: 5;
  pointer-events: none;
  background:
    radial-gradient(circle at 7px 7px, #c39568 0 1px, #745039 2px, #1a100b 3px 5px, transparent 6px),
    radial-gradient(circle at calc(100% - 7px) 7px, #c39568 0 1px, #745039 2px, #1a100b 3px 5px, transparent 6px),
    radial-gradient(circle at 7px calc(100% - 7px), #c39568 0 1px, #745039 2px, #1a100b 3px 5px, transparent 6px),
    radial-gradient(circle at calc(100% - 7px) calc(100% - 7px), #c39568 0 1px, #745039 2px, #1a100b 3px 5px, transparent 6px),
    radial-gradient(ellipse at 50% 5px, #8e603f 0 1px, #1b110c 2px 4px, transparent 5px),
    radial-gradient(ellipse at 50% calc(100% - 5px), #8e603f 0 1px, #1b110c 2px 4px, transparent 5px);
}
.eyebrow {
  margin: 0 0 9px;
  color: #bc8157;
  font-family: var(--condensed);
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

/* Home layout mirrors the supplied concept: briefing + three cards, then four modules. */
.home-upper {
  display: grid;
  min-height: 275px;
  grid-template-columns: minmax(330px, 34%) minmax(0, 66%);
  gap: 10px;
  margin-bottom: 10px;
}
.briefing { display: flex; flex-direction: column; justify-content: center; padding: 24px 28px; }
.briefing h1 {
  margin: 0;
  color: #dec6a1;
  font-family: var(--display);
  font-size: clamp(2.55rem, 3.45vw, 3.95rem);
  font-weight: 900;
  letter-spacing: .01em;
  line-height: .91;
  text-transform: uppercase;
  text-shadow: 3px 3px 0 #28130a;
}
.briefing h1 em { color: var(--ember); font-style: normal; }
.briefing-copy { max-width: 500px; margin: 16px 0 0; color: #c4af8e; font-size: .96rem; line-height: 1.48; }
.button-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }
.rust-button, .steel-button, .refresh-button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border: 2px solid #9b5933;
  border-image: repeating-linear-gradient(96deg, #31190f 0 5px, #b66336 6px 8px, #6e351d 9px 13px, #d17a43 14px, #3a1c11 16px 20px) 5;
  background: linear-gradient(#c25a25, #702a10);
  box-shadow: inset 0 0 0 2px #f7bd8022, 0 3px 0 #321208;
  color: #fff0d8;
  font-family: var(--condensed);
  font-size: .82rem;
  font-weight: 900;
  letter-spacing: .045em;
  text-transform: uppercase;
}
.steel-button { border-color: #65584c; background: linear-gradient(#3b3530, #181512); box-shadow: inset 0 0 0 2px #ffffff0b, 0 3px 0 #050403; }
.rust-button:hover, .steel-button:hover, .refresh-button:hover { filter: brightness(1.14); }
.sync-line { display: flex; align-items: center; gap: 9px; margin: 15px 0 0; color: #98ad7c; font-size: .78rem; }
.live-dot { display: inline-block; flex: 0 0 auto; width: 9px; height: 9px; border-radius: 50%; background: #78a65e; box-shadow: 0 0 0 4px #78a65e16; }

.featured-panel { position: relative; padding-top: 19px; }
.metal-label {
  position: absolute;
  left: 50%;
  top: 0;
  z-index: 6;
  min-width: 170px;
  margin: 0;
  padding: 6px 16px;
  border: 3px solid #79563c;
  border-image: repeating-linear-gradient(98deg, #21150f 0 5px, #815538 6px 8px, #3d281b 9px 13px, #a46b40 14px, #261811 17px) 6;
  background: linear-gradient(#373029, #17130f);
  box-shadow: inset 0 0 0 2px #090806, 0 3px 0 #050403;
  color: #dec7a3;
  font-family: var(--display);
  font-size: 1.08rem;
  letter-spacing: .045em;
  line-height: 1;
  text-align: center;
  text-transform: uppercase;
  transform: translateX(-50%);
}
.featured-grid { display: grid; height: 100%; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.featured-card { display: grid; min-height: 255px; grid-template-rows: 1fr auto; overflow: hidden; }
.featured-card:hover { border-color: #a3643d; filter: brightness(1.08); }
.featured-image { min-height: 162px; border-bottom: 1px solid #6a4630; background: #100c09 var(--team-logo) center / cover no-repeat; }
.featured-copy { display: flex; min-height: 83px; flex-direction: column; justify-content: center; padding: 12px 43px 12px 15px; background: linear-gradient(90deg, #1e1813, #0f0d0b); }
.featured-copy strong { color: #e4ccaa; font-family: var(--display); font-size: clamp(1.26rem, 1.6vw, 1.75rem); line-height: .92; text-transform: uppercase; }
.featured-copy small { margin-top: 6px; color: #c77b46; font-size: .73rem; }
.featured-card > b { position: absolute; right: 12px; bottom: 22px; display: grid; width: 31px; height: 31px; place-items: center; border: 2px solid #775039; border-radius: 50%; color: #d7bf99; font-size: 1.65rem; line-height: 1; }

.home-dashboard { display: grid; grid-template-columns: 1.22fr .92fr 1.06fr 1fr; gap: 10px; }
.module { overflow: hidden; }
.home-dashboard .module { min-height: 274px; }
.module-title { display: flex; min-height: 42px; align-items: center; gap: 8px; padding: 8px 13px; border-bottom: 3px double #68452f; background: repeating-linear-gradient(98deg, transparent 0 52px, #aa68331a 53px 54px, transparent 56px), linear-gradient(#2a241f, #16120f); box-shadow: inset 0 0 0 2px #0a0806, inset 0 -2px 0 #21140e; }
.module-title > span { color: #bc7548; }
.module-title h2 { margin: 0; color: #d8bf99; font-family: var(--display); font-size: 1.05rem; letter-spacing: .045em; text-transform: uppercase; }
.module-title > b { margin-left: auto; color: #7ca564; font-size: .68rem; letter-spacing: .07em; text-transform: uppercase; }
.team-rank-list { margin: 0; padding: 5px 13px 0; list-style: none; }
.team-rank-list li { display: grid; min-height: 31px; grid-template-columns: 26px 1fr auto; align-items: center; gap: 8px; border-bottom: 1px solid #36291f; }
.team-rank-list li > span { color: #cb7943; font-family: var(--display); font-size: .96rem; }
.team-rank-list a { min-width: 0; padding: 3px 0; }
.team-rank-list strong, .team-rank-list small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.team-rank-list strong { color: #d7c09b; font-size: .73rem; }
.team-rank-list small { margin-top: 1px; color: #7f705d; font-size: .63rem; }
.team-rank-list em { color: #8da472; font-size: .7rem; font-style: normal; }
.module-footer { display: block; min-height: 30px; margin: 7px 13px 10px; padding: 7px 9px; border: 2px solid #4a3729; border-image: repeating-linear-gradient(93deg, #1e130e 0 8px, #6f472f 9px 11px, #2d1d14 12px 17px, #815032 18px, #1b120d 21px) 5; background: linear-gradient(#201812, #110e0b); box-shadow: inset 0 0 0 2px #080604; color: #c8ae87; font-family: var(--condensed); font-size: .72rem; font-weight: 900; letter-spacing: .06em; text-align: center; text-transform: uppercase; }
.module-footer:hover { border-color: #9b5933; color: #f1d2a5; }
.event-card { display: grid; place-items: center; padding: 15px 12px 5px; text-align: center; }
.event-card p { margin: 0; color: #c97843; font-size: .7rem; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; }
.event-card h3 { margin: 7px 0 8px; color: #e2c9a4; font-family: var(--display); font-size: 2.3rem; line-height: .82; text-transform: uppercase; }
.event-card > strong { color: #d8bf99; font-family: var(--display); font-size: 1.25rem; letter-spacing: .06em; }
.event-stats { display: grid; grid-template-columns: 1fr auto 1fr; gap: 13px; align-items: center; width: 100%; margin-bottom: 8px; }
.event-stats span { display: flex; flex-direction: column; color: #84725d; font-size: .64rem; text-transform: uppercase; }
.event-stats b { color: #d16f36; font-family: var(--display); font-size: 1.5rem; }
.event-stats i { color: #5b4435; font-style: normal; }
.wire-list { padding: 5px 13px 0; }
.wire-list > div { display: grid; min-height: 58px; grid-template-columns: 36px 1fr; align-items: center; gap: 9px; border-bottom: 1px solid #36291f; }
.wire-list > div > span { display: grid; width: 31px; height: 31px; place-items: center; border: 1px solid #65442f; background: #21150e; color: #cf7540; }
.wire-list p, .wire-list strong { display: block; margin: 0; }
.wire-list p { color: #897760; font-size: .68rem; line-height: 1.3; }
.wire-list strong { margin-bottom: 2px; color: #d9c19c; font-size: .74rem; }
.console-data { margin: 0; padding: 6px 13px 0; }
.console-data > div { display: grid; min-height: 29px; grid-template-columns: 90px 1fr; align-items: center; gap: 8px; border-bottom: 1px solid #36291f; font-size: .7rem; }
.console-data dt { color: #82715c; }
.console-data dd { margin: 0; color: #d1ba96; }
.console-data .prize-row dd { color: var(--ember-hot); font-weight: 900; text-transform: uppercase; }

/* Team page: art-backed identity header, dense four-column roster board, then activity row. */
.team-command-hero {
  position: relative;
  min-height: 226px;
  overflow: hidden;
  background-color: #1b120d;
  background-image:
    linear-gradient(90deg, #0e0b09fa 0, #17100cea 34%, #17100c28 58%, #120c0890 100%),
    var(--team-art);
  background-position: center, center 32%;
  background-repeat: no-repeat;
  background-size: cover, 100% auto;
}
.team-command-copy { position: relative; z-index: 2; width: 43%; min-width: 430px; padding: 14px 28px 58px; }
.console-back { display: inline-block; margin-bottom: 10px; color: #c4a27c; font-family: var(--condensed); font-size: .76rem; font-weight: 900; letter-spacing: .05em; text-transform: uppercase; }
.team-command-copy .eyebrow { margin-bottom: 5px; }
.team-command-copy h1 { margin: 0; color: #dfc7a1; font-family: var(--display); font-size: clamp(2.4rem, 4vw, 4.3rem); letter-spacing: .01em; line-height: .83; text-transform: uppercase; text-shadow: 3px 3px 0 #28130a; }
.team-manager { margin: 8px 0 0; color: #c17845; font-family: var(--condensed); font-size: .9rem; font-weight: 900; text-transform: uppercase; }
.team-manager strong { color: #e3cfaf; }
.team-tagline { margin: 4px 0 0; color: #a89373; font-size: .78rem; }
.team-badges { display: flex; gap: 7px; margin-top: 10px; }
.team-badges > span { display: grid; min-width: 150px; grid-template-columns: auto 1fr; column-gap: 7px; align-items: center; padding: 6px 9px; border: 1px solid #654630; background: #100d0bdd; color: #cfb691; font-family: var(--condensed); font-size: .68rem; font-weight: 900; text-transform: uppercase; }
.team-badges small { grid-column: 2; color: #806e59; font-size: .56rem; }
.team-badges i { grid-row: span 2; }
.team-metric-strip { position: absolute; inset: auto 0 0; z-index: 4; display: grid; min-height: 45px; grid-template-columns: 1.3fr repeat(4, .78fr) auto; border-top: 1px solid #765138; background: #0d0b09ed; }
.team-metric-strip > div { display: flex; min-width: 0; flex-direction: column; justify-content: center; padding: 6px 13px; border-right: 1px solid #3c2b20; }
.team-metric-strip span { color: #85735d; font-size: .58rem; letter-spacing: .06em; text-transform: uppercase; }
.team-metric-strip strong { overflow: hidden; color: #d7bf9a; font-family: var(--condensed); font-size: .72rem; text-overflow: ellipsis; white-space: nowrap; }
.refresh-button { min-height: 45px; border: 0; border-left: 1px solid #94512d; box-shadow: inset 0 0 0 2px #f7bd8018; cursor: pointer; }
.refresh-button:disabled { cursor: wait; filter: grayscale(.7); opacity: .65; }

.team-console-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 8px; margin-top: 8px; }
.team-console-grid .module { min-height: 0; }
.team-overview-module { grid-column: span 3; }
.starters-module { grid-column: span 4; }
.bench-module { grid-column: span 3; }
.team-stats-module { grid-column: span 2; }
.matchup-module { grid-column: span 5; }
.moves-module { grid-column: span 4; }
.news-module { grid-column: span 3; }
.owner-lockup { display: flex; align-items: center; gap: 10px; min-height: 51px; padding: 8px 13px; border-bottom: 1px solid #36291f; }
.owner-lockup img { width: 39px; height: 39px; border: 1px solid #77533a; object-fit: cover; }
.owner-lockup small, .owner-lockup strong { display: block; }
.owner-lockup small { color: #7f6d59; font-size: .6rem; text-transform: uppercase; }
.owner-lockup strong { color: #dec6a0; font-size: .8rem; }
.team-profile-copy, .panel-note { margin: 0; padding: 10px 13px; border-bottom: 1px solid #36291f; color: #927f67; font-size: .7rem; line-height: 1.42; }
.roster-table-head { display: grid; min-height: 23px; grid-template-columns: 38px 1fr 36px; align-items: center; padding: 0 11px; border-bottom: 1px solid #3d2e23; color: #8b725b; font-size: .56rem; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; }
.compact-roster > div { display: grid; min-height: 31px; grid-template-columns: 38px 1fr 36px; align-items: center; gap: 0; padding: 3px 11px; border-bottom: 1px solid #30241c; }
.compact-roster b { color: #c87540; font-family: var(--condensed); font-size: .67rem; }
.compact-roster span, .compact-roster strong, .compact-roster small { display: block; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.compact-roster strong { color: #d4bb95; font-size: .68rem; }
.compact-roster small { color: #756654; font-size: .57rem; }
.compact-roster em { color: #8a7963; font-size: .64rem; font-style: normal; text-align: right; }
.team-stats.console-data > div { grid-template-columns: 1fr auto; }
.matchup-placeholder { display: grid; min-height: 106px; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; padding: 14px; text-align: center; }
.matchup-placeholder > span { color: #d4bb96; font-family: var(--display); font-size: 1.25rem; line-height: .9; text-transform: uppercase; }
.matchup-placeholder > strong { color: #d06b34; font-family: var(--display); font-size: 2.25rem; }
.matchup-placeholder > small { grid-column: 1 / -1; margin-top: -8px; color: #81705b; font-size: .66rem; text-transform: uppercase; }
.activity-list { padding: 4px 12px; }
.activity-list p { display: grid; min-height: 34px; grid-template-columns: 48px 1fr; align-items: center; gap: 8px; margin: 0; border-bottom: 1px solid #30241c; }
.activity-list time { color: #bd7143; font-size: .6rem; font-weight: 900; text-transform: uppercase; }
.activity-list span { color: #a38e71; font-size: .68rem; }

/* Shared inner pages. */
.console-page-title { display: flex; min-height: 148px; align-items: center; justify-content: space-between; padding: 23px 34px; background: linear-gradient(90deg, #17120f, #0c0a08); }
.console-page-title h1 { margin: 2px 0 5px; color: #dfc7a1; font-family: var(--display); font-size: clamp(2.8rem, 5vw, 5rem); line-height: .88; text-transform: uppercase; }
.console-page-title p:last-child { margin: 0; color: #9f8a70; font-size: .86rem; }
.console-page-title > strong { color: #5d3520; font-size: 6.5rem; }
.rules-console-grid { display: grid; grid-template-columns: 1.15fr .75fr .8fr; gap: 8px; margin-top: 8px; }
.rules-lineup-module { grid-row: span 2; }
.rules-scoring-module { grid-column: 2 / -1; }
.position-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.position-grid > div { display: grid; min-height: 76px; place-content: center; border-right: 1px solid #36291f; border-bottom: 1px solid #36291f; text-align: center; }
.position-grid strong { color: var(--ember-hot); font-family: var(--display); font-size: 2.2rem; line-height: .9; }
.position-grid span { margin-top: 4px; color: #8c795f; font-size: .68rem; font-weight: 900; text-transform: uppercase; }
.rules-data.console-data > div { grid-template-columns: 1fr auto; min-height: 34px; }
.scoring-grid { display: grid; grid-template-columns: repeat(2, 1fr); padding: 4px 13px; }
.scoring-grid > div { display: flex; min-height: 33px; align-items: center; justify-content: space-between; gap: 14px; border-bottom: 1px solid #36291f; color: #8f7d66; font-size: .72rem; }
.scoring-grid > div:nth-child(odd) { padding-right: 13px; }
.scoring-grid > div:nth-child(even) { padding-left: 13px; border-left: 1px solid #36291f; }
.scoring-grid strong { color: #dac29c; }
.history-console-grid { display: grid; grid-template-columns: 1.35fr .65fr; gap: 8px; margin-top: 8px; }
.timeline { margin: 0; padding: 8px 16px; list-style: none; }
.timeline li { display: grid; grid-template-columns: 46px 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid #36291f; opacity: .72; }
.timeline li > span { display: grid; width: 42px; height: 42px; place-items: center; border: 1px solid #5a4231; color: #aa9273; font-family: var(--display); }
.timeline li.complete, .timeline li.active { opacity: 1; }
.timeline small { color: #c87844; font-size: .62rem; font-weight: 900; text-transform: uppercase; }
.timeline h3 { margin: 2px 0; color: #d8bf99; font-family: var(--display); font-size: 1.25rem; text-transform: uppercase; }
.timeline p { margin: 0; color: #8b7861; font-size: .7rem; }
.draft-order { margin: 0; padding: 6px 14px; list-style: none; }
.draft-order li { display: grid; grid-template-columns: 28px 1fr; padding: 6px 0; border-bottom: 1px solid #36291f; }
.draft-order li > span { grid-row: span 2; color: #c87844; font-family: var(--display); }
.draft-order strong { color: #d2ba96; font-size: .7rem; }
.draft-order small { color: #776854; font-size: .6rem; }
.record-console-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 8px; }
.record-console-grid article { min-height: 103px; padding: 15px; }
.record-console-grid span { color: #9b866c; font-size: .67rem; font-weight: 900; text-transform: uppercase; }
.record-console-grid strong { display: block; margin: 6px 0 3px; color: var(--ember-hot); font-family: var(--display); font-size: 2.5rem; line-height: .9; }
.record-console-grid p { margin: 0; color: #766754; font-size: .66rem; }

.console-footer { display: flex; min-height: 56px; align-items: center; justify-content: space-between; gap: 22px; padding: 10px 22px; border-top: 1px solid #684630; background: linear-gradient(#1e1915, #0b0907); color: #88765f; font-size: .7rem; letter-spacing: .04em; text-transform: uppercase; }
.console-footer > strong { color: #cbb28d; font-family: var(--display); font-size: 1.2rem; }
.console-footer > strong em { color: #d75b20; font-style: italic; }
.mobile-nav { display: none; }

@media (max-width: 1100px) {
  .home-upper { grid-template-columns: 1fr; }
  .briefing { min-height: 230px; }
  .home-dashboard { grid-template-columns: 1fr 1fr; }
  .team-command-copy { width: 54%; }
  .team-overview-module { grid-column: span 4; }
  .starters-module { grid-column: span 5; }
  .bench-module { grid-column: span 3; }
  .team-stats-module { grid-column: span 4; }
  .matchup-module { grid-column: span 8; }
  .moves-module { grid-column: span 6; }
  .news-module { grid-column: span 6; }
}

@media (max-width: 760px) {
  body { padding-bottom: 62px; }
  .site-frame { border: 0; }
  .art-masthead { width: 100%; height: 104px; min-height: 104px; max-height: 104px; aspect-ratio: auto; background-position: 18% top; background-size: auto 465px; }
  .masthead-team { background-image: url('/assets/images/concept-team-scavengers.jpg'); }
  .brand-hit { left: 0; width: 78%; }
  .console-nav { justify-content: flex-start; overflow-x: auto; scrollbar-width: thin; }
  .console-nav::before, .console-nav::after { display: none; }
  .console-nav a { flex: 0 0 auto; min-height: 48px; padding: 0 15px; font-size: .76rem; }
  main { padding: 7px; }
  .home-upper, .home-dashboard { grid-template-columns: 1fr; gap: 7px; margin-bottom: 7px; }
  .briefing { min-height: 0; padding: 25px 19px; }
  .briefing h1 { font-size: clamp(2.75rem, 13.5vw, 4rem); }
  .briefing-copy { font-size: .94rem; }
  .button-row > * { flex: 1 1 145px; }
  .featured-panel { padding-top: 20px; }
  .featured-grid { grid-template-columns: 1fr; gap: 7px; }
  .featured-card { min-height: 168px; grid-template-columns: 43% 1fr; grid-template-rows: 1fr; }
  .featured-image { min-height: 168px; border-right: 1px solid #6a4630; border-bottom: 0; }
  .featured-copy { min-height: 168px; padding-right: 42px; }
  .featured-copy strong { font-size: 1.55rem; }
  .featured-card > b { bottom: 67px; }
  .home-dashboard .module { min-height: 0; }

  .team-command-hero { min-height: 460px; background-image: linear-gradient(0deg, #0e0b09fa 0 57%, #17100c42 80%), var(--team-art); background-position: center, 69% 94%; background-size: cover, auto 630px; }
  .team-command-copy { position: absolute; inset: auto 0 45px; width: auto; min-width: 0; padding: 17px 19px 15px; }
  .team-command-copy h1 { font-size: clamp(2.65rem, 14vw, 4.2rem); }
  .team-badges { overflow-x: auto; }
  .team-badges > span { flex: 0 0 150px; }
  .team-metric-strip { grid-template-columns: repeat(5, minmax(110px, 1fr)) auto; overflow-x: auto; }
  .team-metric-strip > div { min-height: 45px; }
  .refresh-button { min-width: 120px; }
  .team-console-grid { grid-template-columns: 1fr; gap: 7px; margin-top: 7px; }
  .team-overview-module, .starters-module, .bench-module, .team-stats-module, .matchup-module, .moves-module, .news-module { grid-column: auto; }
  .starters-module { order: -2; }
  .bench-module { order: -1; }
  .compact-roster > div { min-height: 39px; }
  .console-page-title { min-height: 134px; padding: 20px; }
  .console-page-title > strong { display: none; }
  .rules-console-grid, .history-console-grid, .record-console-grid { grid-template-columns: 1fr; gap: 7px; margin-top: 7px; }
  .rules-lineup-module, .rules-scoring-module { grid-column: auto; grid-row: auto; }
  .position-grid { grid-template-columns: repeat(2, 1fr); }
  .scoring-grid { grid-template-columns: 1fr; }
  .scoring-grid > div:nth-child(odd), .scoring-grid > div:nth-child(even) { padding-inline: 0; border-left: 0; }
  .console-footer { align-items: flex-start; flex-direction: column; }
  .console-footer > span { display: none; }
  .mobile-nav { position: fixed; inset: auto 0 0; z-index: 50; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid #6a4934; background: #0d0b09f7; box-shadow: 0 -8px 24px #000b; }
  .mobile-nav a { display: grid; min-height: 62px; place-items: center; color: #9d896e; font-size: .72rem; font-weight: 900; text-transform: uppercase; }
  .mobile-nav [aria-current="page"] { color: var(--ember-hot); }
}

@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }

/* Component and route refinements from the supplied implementation notes. */
.nav-shell { position: relative; }
.menu-toggle { display: none; }
.standings-module { min-width: 0; }
.table-scroll { width: 100%; overflow-x: auto; }
.standings-table, .roster-table, .stats-table { width: 100%; border-collapse: collapse; font-family: var(--condensed); font-size: .69rem; }
.standings-table th, .standings-table td, .roster-table th, .roster-table td, .stats-table th, .stats-table td { height: 28px; padding: 4px 7px; border-bottom: 1px solid #36291f; text-align: right; white-space: nowrap; }
.standings-table th, .roster-table th, .stats-table th { height: 24px; color: #8b765f; font-size: .6rem; letter-spacing: .035em; text-transform: uppercase; }
.standings-table th:nth-child(2), .standings-table td:nth-child(2), .roster-table th:nth-child(2), .roster-table td:nth-child(2), .stats-table th:first-child, .stats-table td:first-child { text-align: left; }
.standings-table td:first-child, .roster-table td:first-child { color: #c97843; }
.standings-table td:nth-child(2) a, .roster-table td:nth-child(2) { color: #d9c19c; }
.standings-table td:last-child { color: var(--green); }
.standings-table .muted-streak { color: #776957; }
.standings-table a:hover { color: var(--ember-hot); }
.prize-panel { margin-top: 10px; }
.prize-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.prize-grid > div { display: flex; min-height: 63px; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 18px; border-right: 1px solid #3b2b20; }
.prize-grid > div:last-child { border-right: 0; }
.prize-grid span { color: #8e7a61; font-family: var(--condensed); font-size: .7rem; font-weight: 900; text-transform: uppercase; }
.prize-grid strong { color: var(--ember-hot); font-family: var(--display); font-size: 1.8rem; }

.team-identity-lockup { display: grid; grid-template-columns: 78px 1fr; align-items: center; gap: 15px; }
.team-emblem { display: grid; width: 76px; height: 76px; place-items: center; overflow: hidden; border: 2px solid #795239; border-radius: 50%; background-color: #100c09; background-image: linear-gradient(#17100c14, #07060555), var(--team-art); background-position: center, center 20%; background-repeat: no-repeat; background-size: cover, cover; box-shadow: inset 0 0 0 5px #0b090777, 0 0 0 2px #24160f; color: transparent; font-size: 0; }
.team-command-copy { width: 42%; min-width: 525px; padding: 12px 26px 55px; }
.team-command-copy h1 span, .team-command-copy h1 em { display: block; }
.team-command-copy h1 span { color: #dfc7a1; }
.team-command-copy h1 em { color: var(--ember); font-style: normal; }
.team-metric-strip { grid-template-columns: 1.15fr .55fr .5fr .55fr .58fr .58fr 1fr; }
.team-metric-strip .positive { color: var(--green); }
[data-team-theme="crest"] .team-command-hero {
  background-position: center, 79% center;
  background-repeat: no-repeat;
  background-size: cover, auto 125%;
}
[data-team-theme="banner"] .team-command-hero {
  background-position: center, 76% center;
  background-repeat: no-repeat;
  background-size: cover, auto 100%;
}
[data-team-theme="poster"] .team-command-hero {
  background-position: center, 78% 35%;
  background-repeat: no-repeat;
  background-size: cover, auto 185%;
}
.team-sync-rail { display: flex; min-height: 31px; align-items: center; gap: 15px; padding: 4px 13px; border: 1px solid #5f422f; border-top: 0; background: #0d0b09; color: #87745d; font-family: var(--condensed); font-size: .67rem; }
.team-sync-rail > strong { color: #93a978; }
.team-sync-rail > span:not(.live-dot) { margin-left: auto; }
.team-sync-rail b { color: #cfb690; }
.refresh-link { min-height: 27px; padding: 0 10px; border: 1px solid #70462e; background: #25160f; color: #d47a42; font: inherit; font-weight: 900; text-transform: uppercase; cursor: pointer; }
.refresh-link:disabled { opacity: .55; cursor: wait; }
.team-console-grid { grid-template-columns: repeat(100, minmax(0, 1fr)); }
.team-overview-module { grid-column: span 19; }
.starters-module { grid-column: span 28; }
.bench-module { grid-column: span 25; }
.team-stats-module { grid-column: span 28; }
.matchup-module { grid-column: span 43; }
.moves-module { grid-column: span 29; }
.news-module { grid-column: span 28; }
.team-badge { display: grid; grid-template-columns: 44px 1fr auto; align-items: center; gap: 8px; margin: 8px 12px; padding: 7px 9px; border: 1px solid #68472f; background: #120f0c; }
.team-badge > span { width: 42px; height: 42px; overflow: hidden; border: 1px solid #704b32; background: #100c09 var(--team-art) center 20% / cover no-repeat; color: transparent; font-size: 0; }
.team-badge strong { color: #cbb28e; font-family: var(--display); font-size: .8rem; line-height: .9; text-transform: uppercase; }
.team-badge strong em { display: block; color: var(--ember); font-style: normal; }
.team-badge small { color: #7c6955; font-size: .56rem; text-transform: uppercase; }
.subhead { margin: 0; padding: 4px 13px; border-block: 1px solid #392a20; color: #a98565; font-family: var(--condensed); font-size: .62rem; letter-spacing: .08em; text-transform: uppercase; }
.identity-list { margin: 0; padding: 5px 13px; font-size: .64rem; }
.identity-list div { display: grid; grid-template-columns: 72px 1fr; gap: 6px; padding: 2px 0; }
.identity-list dt { color: #806e59; text-transform: uppercase; }
.identity-list dd { margin: 0; color: #c9b18d; }
.roster-table td { height: 26px; padding-block: 3px; }
.roster-table th:first-child, .roster-table td:first-child { text-align: left; }
.roster-table tfoot th { color: #a88d6c; text-align: right; }
.roster-table tfoot td { color: #e1c49b; font-family: var(--display); font-size: .88rem; }
.stats-table th:nth-child(2), .stats-table td:nth-child(2), .stats-table th:nth-child(3), .stats-table td:nth-child(3) { text-align: right; }
.stats-table td:nth-child(2) { color: #ddc39d; }
.team-stats-module .panel-note { padding-block: 7px; }
.matchup-placeholder > span { display: grid; grid-template-columns: 32px 1fr; align-items: center; gap: 6px; }
.matchup-placeholder > span i { display: grid; width: 30px; height: 30px; place-items: center; border: 1px solid #704b32; border-radius: 50%; color: #c77a46; font-size: .85rem; font-style: normal; }
.matchup-placeholder > span i.team-mini-logo { background: #100c09 var(--team-art) center / cover no-repeat; color: transparent; font-size: 0; }
.activity-list p { grid-template-columns: 45px 1fr auto; }
.activity-list em { color: #796957; font-size: .58rem; font-style: normal; }
.news-list { padding: 4px 10px; }
.news-list article { display: grid; grid-template-columns: 32px 1fr; align-items: center; gap: 8px; min-height: 39px; border-bottom: 1px solid #30241c; }
.news-list article > span { display: grid; width: 28px; height: 28px; place-items: center; border: 1px solid #62432f; background: #21150e; color: #c67541; }
.news-list p, .news-list strong, .news-list small { display: block; margin: 0; }
.news-list p { color: #806f5a; font-size: .56rem; }
.news-list strong { color: #cdb38e; font-size: .65rem; }
.news-list small { margin-top: 2px; color: #a66a43; font-size: .53rem; }

.directory-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 8px; }
.directory-card { display: grid; min-height: 225px; grid-template-columns: 43% 1fr; overflow: hidden; }
.directory-art { border-right: 1px solid #67452f; background: #100c09 var(--team-logo) center / cover no-repeat; }
.directory-card > span:nth-child(2) { display: flex; flex-direction: column; justify-content: center; padding: 17px 42px 17px 15px; }
.directory-card small { color: #a56d46; font-size: .65rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.directory-card strong { margin: 7px 0; color: #e0c7a0; font-family: var(--display); font-size: 1.75rem; line-height: .9; text-transform: uppercase; }
.directory-card em { color: #8e7b63; font-size: .72rem; font-style: normal; }
.directory-card > b { position: absolute; right: 13px; top: 50%; display: grid; width: 30px; height: 30px; place-items: center; border: 2px solid #765039; border-radius: 50%; color: #d7bf99; font-size: 1.5rem; transform: translateY(-50%); }
.directory-card:hover { border-color: #a5643d; filter: brightness(1.08); }
.full-table-panel { margin-top: 8px; }
.full-standings { min-width: 720px; font-size: .82rem; }
.full-standings th, .full-standings td { height: 42px; padding-inline: 13px; }
.full-standings td:first-child { width: 46px; font-family: var(--display); font-size: 1rem; }
.full-standings td[colspan] { color: #a38d70; text-align: center; }
.sync-console { margin-top: 8px; }
.sync-core { display: grid; grid-template-columns: 74px 1fr auto; align-items: center; gap: 16px; padding: 25px; border-bottom: 1px solid #58402e; }
.sync-bot { display: grid; width: 64px; height: 64px; place-items: center; border: 2px solid #7a5137; border-radius: 50%; background: #17110d; color: #d17138; font-size: 2rem; }
.sync-core p, .sync-core small, .sync-core strong, .sync-core em { display: block; margin: 0; }
.sync-core small { color: #826f5a; font-size: .66rem; text-transform: uppercase; }
.sync-core strong { margin: 3px 0; color: #dac19b; font-family: var(--display); font-size: 1.5rem; text-transform: uppercase; }
.sync-core em { color: #83a46c; font-size: .7rem; font-style: normal; }
.sync-grid { display: grid; grid-template-columns: repeat(3, 1fr); margin: 0; }
.sync-grid > div { display: flex; min-height: 72px; flex-direction: column; justify-content: center; padding: 13px 18px; border-right: 1px solid #38291f; border-bottom: 1px solid #38291f; }
.sync-grid dt { color: #83715d; font-size: .64rem; text-transform: uppercase; }
.sync-grid dd { margin: 4px 0 0; color: #d6bd98; font-family: var(--display); font-size: 1.15rem; text-transform: uppercase; }
.sync-actions { display: flex; gap: 10px; padding: 16px; }
.news-archive { display: grid; gap: 8px; margin-top: 8px; }
.news-archive article { display: grid; min-height: 125px; grid-template-columns: 100px 1fr; align-items: center; gap: 18px; padding: 16px; }
.news-archive article > span { display: grid; width: 90px; height: 90px; place-items: center; border: 1px solid #6d4932; background: radial-gradient(circle, #392217, #120e0b); color: #c87440; font-size: 2.4rem; }
.news-archive small { color: #b96f42; font-size: .66rem; text-transform: uppercase; }
.news-archive h2 { margin: 4px 0; color: #ddc39c; font-family: var(--display); font-size: 1.55rem; text-transform: uppercase; }
.news-archive p { margin: 0; color: #948169; font-size: .8rem; }
.matchup-feature { display: grid; min-height: 380px; place-items: center; margin-top: 8px; padding: 30px; text-align: center; }
.matchup-feature > p { color: #bd7143; font-size: .72rem; font-weight: 900; text-transform: uppercase; }
.matchup-feature > div { display: grid; width: min(780px, 100%); grid-template-columns: 1fr auto 1fr; align-items: center; gap: 30px; }
.matchup-feature > div > a { display: flex; flex-direction: column; align-items: center; }
.matchup-feature > div span { display: grid; width: 80px; height: 80px; place-items: center; border: 2px solid #745038; border-radius: 50%; background: #17110d var(--team-logo) center / cover no-repeat; color: transparent; font-size: 0; }
.matchup-feature > div strong { margin-top: 10px; color: #ddc39b; font-family: var(--display); font-size: 1.6rem; line-height: .9; text-transform: uppercase; }
.matchup-feature > div small { margin-top: 6px; color: #8c785f; }
.matchup-feature > div > b { color: var(--ember); font-family: var(--display); font-size: 3.5rem; }
.matchup-feature h2 { margin: 0; color: #927b60; font-family: var(--display); font-size: 1.3rem; text-transform: uppercase; }
.construction-panel { display: grid; min-height: 420px; place-items: center; padding: 50px 20px; text-align: center; }
.construction-icon { color: #c66c37; font-size: 3.5rem; }
.construction-panel h1 { margin: 7px 0 0; color: #dfc59d; font-family: var(--display); font-size: clamp(2.7rem, 6vw, 5.8rem); line-height: .85; text-transform: uppercase; }
.construction-panel > strong { color: var(--ember); font-family: var(--condensed); font-size: 1rem; letter-spacing: .1em; text-transform: uppercase; }
.construction-panel > p:not(.eyebrow) { max-width: 570px; color: #8e7b64; font-size: .86rem; }
.footer-brand { color: #cbb28d; font-family: var(--display); font-size: 1.2rem; text-transform: uppercase; }
.footer-brand em { color: #d75b20; font-style: italic; }
.footer-motto b { color: #c3703e; font-size: 1rem; }
.footer-sleeper { display: flex; align-items: center; gap: 8px; }
.footer-sleeper small { color: #756653; font-size: .55rem; }
.footer-sleeper strong { color: #cbb28d; font-family: var(--condensed); font-size: .8rem; }

/* Reference-led typography: poster-scale impact, industrial labels, compact data copy. */
.briefing h1,
.console-page-title h1,
.team-command-copy h1,
.construction-panel h1 {
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: .012em;
  text-shadow: 2px 2px 0 #160b06, 4px 4px 0 #050302;
}
.metal-label,
.module-title h2,
.featured-copy strong,
.directory-card strong,
.team-mark strong,
.matchup-feature h2 {
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: .025em;
  text-shadow: 1px 1px 0 #090604, 2px 2px 0 #211109;
}
.console-nav a,
.eyebrow,
.team-manager,
.console-back,
.rust-button,
.steel-button,
.refresh-button,
.module-footer,
table th,
dt {
  font-family: var(--condensed);
  font-weight: 700;
  letter-spacing: .055em;
}
table td,
dd,
.featured-copy small,
.directory-card em,
.panel-note,
.team-profile-copy {
  font-family: var(--condensed);
  font-weight: 400;
  letter-spacing: .012em;
}

@media (max-width: 1100px) {
  .team-console-grid { grid-template-columns: 1fr 1fr; }
  .team-overview-module, .starters-module, .bench-module, .team-stats-module, .matchup-module, .moves-module, .news-module { grid-column: auto; }
  .matchup-module { grid-column: span 2; }
  .directory-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  body { padding-bottom: 0; }
  .menu-toggle { display: flex; width: 100%; min-height: 48px; align-items: center; justify-content: center; gap: 9px; border: 1px solid #725038; background: linear-gradient(#29231e, #11100e); color: #d4ba93; font: 900 .8rem var(--condensed); letter-spacing: .08em; text-transform: uppercase; }
  .console-nav { display: none; max-height: 70vh; flex-direction: column; overflow-y: auto; }
  .console-nav[data-open] { display: flex; }
  .console-nav a { width: 100%; justify-content: center; border: 0; border-bottom: 1px solid #3c2c22; }
  .prize-grid, .sync-grid { grid-template-columns: 1fr 1fr; }
  .prize-grid > div:nth-child(2n), .sync-grid > div:nth-child(2n) { border-right: 0; }
  .team-command-hero { min-height: 475px; }
  [data-team-theme="crest"] .team-command-hero { background-position: center, center 20px; background-size: cover, auto 285px; }
  [data-team-theme="banner"] .team-command-hero { background-position: center, center 34px; background-size: cover, auto 220px; }
  [data-team-theme="poster"] .team-command-hero { background-position: center, center top; background-size: cover, auto 610px; }
  .team-command-copy { width: auto; min-width: 0; padding: 17px 17px 56px; }
  .team-identity-lockup { grid-template-columns: 62px 1fr; }
  .team-emblem { width: 60px; height: 60px; font-size: 2rem; }
  .team-metric-strip { grid-template-columns: repeat(7, minmax(94px, 1fr)); overflow-x: auto; }
  .team-sync-rail { flex-wrap: wrap; padding: 8px 10px; }
  .team-sync-rail > span:not(.live-dot) { margin-left: 0; }
  .team-console-grid { grid-template-columns: 1fr; }
  .matchup-module { grid-column: auto; }
  .starters-module { order: -2; }
  .bench-module { order: -1; }
  .roster-table { min-width: 470px; }
  .directory-grid { grid-template-columns: 1fr; }
  .directory-card { min-height: 180px; }
  .sync-core { grid-template-columns: 54px 1fr; padding: 18px; }
  .sync-bot { width: 50px; height: 50px; }
  .sync-core .rust-button { grid-column: 1 / -1; width: 100%; }
  .sync-actions { flex-direction: column; }
  .news-archive article { grid-template-columns: 60px 1fr; gap: 12px; }
  .news-archive article > span { width: 56px; height: 56px; font-size: 1.5rem; }
  .matchup-feature > div { grid-template-columns: 1fr; gap: 16px; }
  .matchup-feature > div > b { font-size: 2.3rem; }
  .footer-sleeper { align-items: flex-start; }
}
