/* ---- The offer dialog ---------------------------------------------------
   Their banners, as they set them. A lane dropped from the offer keeps its
   priority badge and border: "their 1st, and I am not asking for it" is a
   different thing to know than "they never ranked it", and the dropdown this
   replaced could say neither. */
.offerLanes { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; margin: 0.1rem 0 1rem; }
.offerLane { padding: 7px 2px 5px; gap: 2px; border-width: 1.5px; background: var(--overlay-soft); }
/* :where, so this default never outranks the "in the offer" gold below. */
.offerLane:where(:not(.priority-1):not(.priority-2):not(.priority-3):not(.priority-x)) { border-color: var(--border); }
.offerLane:hover { transform: none; border-color: var(--gold-dim); }
/* Out of the offer, not struck off their profile -- greyed, and one click
   back in, because asking somebody to fill a lane they did not ask for is
   allowed, it just is not the default. */
/* A lane they will not play: the card fades, not the red x on it. */
.offerLane.priority-x { opacity: 1; }
.offerLane.priority-x .laneIcon, .offerLane.priority-x .laneName { opacity: 0.4; }
/* Out of the offer: icon and name fade, their priority stays readable. */
/* A lane in the offer is lit whole -- the tile, not only its icon. */
.offerLanes .offerLane:not(.isOut) { border-color: var(--gold); background: color-mix(in srgb, var(--gold) 9%, var(--overlay-soft)); }
.offerLanes .offerLane:not(.isOut) .laneName { color: var(--gold); }
.offerLane.isOut { border-color: var(--border); background: var(--overlay-soft); }
.offerLane.isOut .laneIcon, .offerLane.isOut .laneName { opacity: 0.32; }
.offerLane.isOut .laneIcon img { filter: grayscale(1) brightness(0.6); }
.offerLane.isOut:hover .laneIcon, .offerLane.isOut:hover .laneName { opacity: 0.6; }
.offerDialog .laneName { font-size: 0.62rem; }
.offerLanes[hidden], .offerLanesHead[hidden] { display: none; }
.offerLanesHead { display: block; font-size: 0.72rem; color: var(--text-muted); margin-bottom: 5px; }
/* "Offer <name>" with the seat picker at the end of the same line. */
.offerTitle { display: flex; align-items: baseline; gap: 0.4em; min-width: 0; }
.offerTitle a { color: var(--gold); text-decoration: none; }
.offerTitle a:hover { color: var(--gold-light); }
/* The name scrolls sideways when it runs long, a white … at its edge;
   hovering the title opens it out in full. */
.offerWhoWrap { position: relative; display: flex; flex: 1 1 auto; min-width: 0; }
.offerWho { display: block; min-width: 0; white-space: nowrap; overflow-x: auto; scrollbar-width: none; padding-right: var(--script-overhang); }
.offerWho::-webkit-scrollbar { display: none; }
.offerWhoWrap.isLong::after {
    content: '…'; position: absolute; right: 0; top: 0; padding-left: 14px;
    color: var(--text); font-family: var(--font-mono); font-size: 0.6em; line-height: 2; pointer-events: none;
    background: linear-gradient(90deg, transparent, var(--bg-card) 50%);
}
/* Hovered, the whole name lifts into the bubble (draft/pool.js); nothing reflows. */
.offerPicks { flex: none; margin-left: auto; align-self: center; display: flex; gap: 0.4em; }
/* A row opens the player's profile. */
.agentCard[data-profile] { cursor: pointer; }
.agentCard[data-profile]:focus-visible { outline: 1px solid var(--gold-dim); outline-offset: -1px; }
.draftProfile .mainAcct { margin-bottom: 0.5rem; }
.draftProfileLine { margin: 0 0 0.9rem; font-family: var(--font-mono); font-size: 0.72rem; color: var(--text-muted); }
.offerLanes.isStatic .laneItem { cursor: default; }
.draftProfile .altAccts { display: grid; gap: 6px; }
/* Their note, as they wrote it. */
.offerTheirNote { margin: 0 0 0.9rem; }
.offerTheirNote p {
    margin: 0; padding: 0.5rem 0.7rem;
    border-left: 2px solid var(--gold-dim); background: var(--overlay-soft);
    font-family: var(--font-mono); font-size: 0.74rem; color: var(--text); line-height: 1.5;
    white-space: pre-wrap; overflow-wrap: anywhere;
}
.offerRegion,
.offerSeat {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 4px;
    color: var(--text);
    font-family: var(--font-mono); font-size: 0.76rem;
    padding: 0.3rem 0.5rem;
    cursor: pointer;
}
.offerSeat:focus { outline: none; border-color: var(--gold-dim); }
.reqSeat { align-self: flex-start; margin-bottom: 0.7rem; }
.reqSeat:disabled { cursor: default; opacity: 1; }

/* Free agent, level with the heading it answers. */
.draftMeHead { display: flex; align-items: center; justify-content: space-between; gap: 0.8rem; margin-bottom: 0.6rem; }
.drawerBody .draftMeHead h2 { margin: 0; }
.drawerBody .draftMeHead:not(:first-child) { margin-top: 1.4rem; }
.draftMeHead.isBare { justify-content: flex-end; }
.drawerBody .draftMe.isBare:not(:first-child) { margin-top: 1.2rem; }
.draftMeHead .faToggle { flex: none; }
/* The row's own margins would pull its text up off the pill's centre line. */
.draftMeHead > .draftH2Row { margin: 0; }
/* Requests and Offers under the Draft heading. */
/* Abandon: last in the drawer, bottom right. */
/* The drawer's body is a column, so Abandon can sit at its foot: at the
   bottom of the drawer when the rest is short, at the end of it when it
   scrolls. It never rides up behind the last section. */
.drawerBody:is(.draftRailMine, .draftRailTeam) { display: flex; flex-direction: column; }
.drawerBody:is(.draftRailMine, .draftRailTeam) > * { flex: none; }
.draftAbandon { display: flex; align-items: center; justify-content: space-between; gap: 0.8rem; margin-top: auto; padding-top: 0.9rem; border-top: 1px solid var(--border); }
/* The same room under it as over it: the pane's own foot is the rest. */
.drawerBody.draftRailMine:has(> .draftAbandon) { padding-bottom: 0.9rem; }
.drawerBody.draftRailMine > .draftAbandon { margin-top: auto; }
.drawerBody.draftRailMine > :not(.draftAbandon):nth-last-child(2) { margin-bottom: 0.9rem; }
.draftAbandonAsk { font-family: var(--font-mono); font-size: 0.7rem; color: var(--text-muted); }
.draftAbandonBtn { background: none; border: 1px solid color-mix(in srgb, var(--red-x) 45%, transparent); border-radius: 4px; padding: 0.25rem 0.8rem; color: var(--red-x); font-family: var(--font-mono); font-size: 0.7rem; cursor: pointer; opacity: 0.8; }
.draftAbandonBtn:hover { opacity: 1; background: color-mix(in srgb, var(--red-x) 12%, transparent); border-color: var(--red-x); }
.draftSub { margin: 0.7rem 0 0.2rem; font-family: var(--font-mono); font-size: 0.62rem; font-weight: 400; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); }
.draftSub[hidden], .draftSent .draftEmpty[hidden] { display: none; }

.draftMe input, .draftMe textarea{
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 3px;
    color: var(--text);
    font-family: var(--font-mono); font-size: 0.76rem;
    padding: 0.35rem 0.5rem;
}
.draftMe input:focus, .draftMe textarea:focus{ outline: none; border-color: var(--gold-dim); }

.draftMe { display: flex; flex-direction: column; gap: 0.4rem; }
.draftLabel { font-family: var(--font-mono); font-size: 0.74rem; color: var(--text-muted); margin-top: 0.5rem; }
.draftMe textarea { resize: vertical; line-height: 1.6; }
/* Save is the one thing this form is for, and a 1px --border on the page's
   own background is a button you have to hunt for. Same weight as Publish:
   the committing action on a panel reads as a button, not as an outline. */
.draftSave {
    align-self: flex-start; margin-top: 0.8rem;
    border-color: var(--gold-dim);
    color: var(--gold);
}
.draftSave:hover { background: rgba(201, 168, 76, 0.12); }

.draftSetup {
    border: 1px solid var(--gold-dim); border-radius: 3px;
    padding: 1.6rem; max-width: 620px;
}
.draftSetup h2 { font-family: var(--font-head); font-size: 1.4rem; color: var(--text); margin: 0 0 0.6rem; }
.draftSetup p { font-family: var(--font-mono); font-size: 0.8rem; color: var(--text-muted); line-height: 1.7; margin: 0; }
.draftSetup code { color: var(--gold-dim); }

/* ---- The way in --------------------------------------------------------
   Not dismissible: this is the question the page is waiting on, not an
   interruption to it. The scrim covers the content because reading it before
   answering would be reading the wrong half. */
.draftGateWrap {
    position: fixed; inset: 0; z-index: 2000;
    display: grid; place-items: center;
    background: rgba(0, 0, 0, 0.72);
    backdrop-filter: blur(2px);
}
.draftGate {
    background: var(--bg-card);
    border: 1px solid var(--gold-dim);
    border-radius: 4px;
    padding: 2rem;
    width: min(520px, calc(100vw - 2.5rem));
    text-align: center;
}
.draftGate h2 { font-family: var(--font-head); font-size: 1.7rem; color: var(--text); margin: 0 0 0.3rem; }
.draftGatePicks { display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem; }
@media (max-width: 520px) { .draftGatePicks { grid-template-columns: 1fr; } }
.draftGatePick {
    display: flex; flex-direction: column; gap: 0.4rem;
    padding: 1.1rem 1rem;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 3px;
    cursor: pointer;
    text-align: left;
    transition: border-color 0.2s;
}
.draftGatePick:hover { border-color: var(--gold); }
.draftGatePick[disabled] { opacity: 0.5; cursor: default; }
.pickName  { font-family: var(--font-head); font-size: 1.2rem; color: var(--gold); }
.pickBlurb { font-family: var(--font-mono); font-size: 0.72rem; color: var(--text-muted); line-height: 1.6; }

/* It sat beside the count in the heading and needed pushing off it. Under
   the five it is the first thing on its own line. */
.teamSubsPick { margin-left: 0; }

/* A team name somebody already has, while it is typed. */
.nameCheck { font-family: var(--font-mono); font-size: 0.68rem; color: var(--red-x); white-space: nowrap; }
.nameCheck:empty { display: none; }
.nameCheck.isCount { color: var(--text-muted); }
.teamNameIn.isTaken, .teamNameEdit.isTaken { border-color: var(--red-x); color: var(--red-x); }

