/* ── Group matchups: sheet, entry button, live session panel ─────────────────
   Same styling on the site and in the app. Built from the platform's own tokens
   so group play reads as part of the product rather than a bolted-on feature. */

/* ── The entry point, beside Make Your Picks ─────────────────────────────── */
.gs-open-btn {
    background: none;
    border: 1px solid var(--border-hi);
    color: var(--dim);
    font-family: var(--sans);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: calc(0.16em * var(--track));
    text-transform: uppercase;
    padding: 13px 22px;
    cursor: pointer;
    transition: border-color 0.15s, color 0.15s;

    border-radius: var(--r-sm);
}
.gs-open-btn:hover { border-color: var(--yellow); color: var(--yellow); }

/* ── The sheet ───────────────────────────────────────────────────────────── */
.gs-sheet { position: fixed; inset: 0; z-index: 310; }
.gs-sheet[hidden] { display: none !important; }
.gs-scrim {
    position: absolute; inset: 0;
    background: rgba(0, 0, 0, 0.78);
    opacity: 0; transition: opacity 0.22s ease;
}
.gs-sheet.is-in .gs-scrim { opacity: 1; }

.gs-panel {
    position: absolute; left: 50%; top: 50%;
    transform: translate(-50%, -46%);
    width: min(460px, calc(100vw - 32px));
    max-height: calc(100dvh - 40px);
    overflow: auto;
    padding: 30px 28px 24px;
    background: rgba(10, 10, 10, 0.985);
    border: 1px solid var(--border-hi);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6);
    opacity: 0;
    transition: opacity 0.22s ease, transform 0.22s ease;

    border-radius: var(--r-lg);
}
.gs-sheet.is-in .gs-panel { opacity: 1; transform: translate(-50%, -50%); }

.gs-close {
    position: absolute; top: 10px; right: 12px;
    background: none; border: 0; cursor: pointer;
    color: var(--dim); font-size: 16px; line-height: 1; padding: 6px;
}
.gs-close:hover { color: var(--white); }

.gs-title { font-size: 21px; font-weight: 700; color: var(--white); letter-spacing: calc(-0.01em * var(--track)); margin-bottom: 8px; }
.gs-sub   { font-size: 14px; line-height: 1.5; color: var(--dim); margin-bottom: 20px; }
.gs-sub b { color: var(--white); font-weight: 600; }

/* What every participant is committed to, stated plainly before they commit. */
.gs-locked {
    display: flex; flex-direction: column; gap: 4px;
    padding: 11px 14px; margin-bottom: 18px;
    border-left: 2px solid var(--yellow);
    background: rgba(255, 204, 0, 0.05);
}
.gs-locked-label { font-size: 10px; letter-spacing: calc(0.18em * var(--track)); text-transform: uppercase; color: var(--yellow); }
.gs-locked-val   { font-size: 13px; color: var(--white); line-height: 1.35; }

.gs-field { margin-bottom: 18px; }
.gs-field-label {
    font-size: 11px; font-weight: 700; letter-spacing: calc(0.18em * var(--track));
    text-transform: uppercase; color: var(--label); margin-bottom: 9px;
}

.gs-tiers, .gs-picks { display: flex; gap: 8px; }
.gs-tier, .gs-pick {
    flex: 1; padding: 13px 8px; cursor: pointer;
    background: #121212; border: 1px solid var(--border-hi); color: var(--dim);
    font-family: var(--sans); font-size: 13px; font-weight: 700; letter-spacing: calc(0.04em * var(--track));
    transition: border-color 0.15s, color 0.15s, background 0.15s;

    border-radius: var(--r);
}
.gs-pick { font-size: 12px; letter-spacing: calc(0.02em * var(--track)); line-height: 1.25; }
.gs-tier:hover, .gs-pick:hover { border-color: rgba(255, 204, 0, 0.5); }
.gs-tier.is-on, .gs-pick.is-on { background: var(--yellow-fill); border-color: var(--yellow); color: #0c0c0c; }

.gs-go {
    width: 100%; padding: 16px 0; cursor: pointer;
    background: var(--yellow-fill); border: 1px solid var(--yellow); color: #0c0c0c;
    font-family: var(--sans); font-size: 14px; font-weight: 700;
    letter-spacing: calc(0.18em * var(--track)); text-transform: uppercase;

    border-radius: var(--r);
}
.gs-go:disabled { opacity: 0.6; cursor: default; }
.gs-msg  { font-size: 13px; color: #e2553f; min-height: 18px; margin-top: 10px; line-height: 1.4; }
.gs-foot {
    margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--border);
    font-size: 11px; line-height: 1.5; color: #7a7a7a;
}

/* ── The live session panel, on the matchup page ─────────────────────────── */
.gs-live {
    margin-bottom: 18px; padding: 14px 16px;
    border: 1px solid rgba(255, 204, 0, 0.35);
    background: rgba(12, 12, 12, 0.66);

    border-radius: var(--r);
}
.gs-live-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 12px; }
.gs-live-tag  { font-size: 11px; font-weight: 700; letter-spacing: calc(0.2em * var(--track)); text-transform: uppercase; color: var(--yellow); }
.gs-live-pot  { font-family: var(--mono); font-size: 15px; font-weight: 700; color: var(--white); }
.gs-live-pot i { font-style: normal; font-size: 9px; letter-spacing: calc(0.12em * var(--track)); color: var(--dim); }

.gs-live-rows { display: flex; flex-direction: column; gap: 1px; margin-bottom: 12px; }
.gs-row {
    display: grid; grid-template-columns: 1fr auto auto; gap: 12px; align-items: baseline;
    padding: 7px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.gs-row.is-win .gs-who, .gs-row.is-win .gs-amt { color: var(--yellow); }
.gs-who  { font-size: 13px; color: var(--white); }
.gs-call { font-family: var(--mono); font-size: 11px; letter-spacing: calc(0.1em * var(--track)); color: var(--dim); text-transform: uppercase; }
.gs-amt  { font-family: var(--mono); font-size: 13px; color: var(--white); min-width: 46px; text-align: right; }

.gs-live-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.gs-live-btn {
    flex: 1 1 auto; padding: 12px 16px; cursor: pointer;
    background: none; border: 1px solid var(--border-hi); color: var(--dim);
    font-family: var(--sans); font-size: 11px; font-weight: 700;
    letter-spacing: calc(0.14em * var(--track)); text-transform: uppercase;

    border-radius: var(--r-sm);
}
.gs-live-btn:hover { border-color: var(--yellow); color: var(--yellow); }
.gs-live-btn.is-primary { background: var(--yellow-fill); border-color: var(--yellow); color: #0c0c0c; }
.gs-live-btn.is-primary:hover { background: #ffd633; color: #0c0c0c; }
.gs-live-btn:disabled { opacity: 0.6; cursor: default; }
.gs-live-note { flex: 1; font-size: 12px; color: var(--dim); padding: 12px 0; }

/* Says, on the create sheet, that this contest will continue an existing group
   rather than start a new one — and offers the way out. */
.gs-carry {
    display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
    margin: 0 0 14px; padding: 10px 12px;
    border: 1px solid rgba(255, 204, 0, 0.4);
    background: rgba(255, 204, 0, 0.07);
    font-size: 12px; line-height: 1.5; color: var(--white);

    border-radius: var(--r-lg);
}
.gs-carry span { flex: 1 1 190px; }
.gs-carry-off {
    flex: 0 0 auto; cursor: pointer;
    background: none; border: 1px solid var(--border-hi); color: var(--dim);
    padding: 7px 10px; font-family: var(--sans); font-size: 10px; font-weight: 700;
    letter-spacing: calc(0.1em * var(--track)); text-transform: uppercase;

    border-radius: var(--r);
}
.gs-carry-off:hover { border-color: var(--yellow); color: var(--yellow); }

/* ── Carrying the group on ────────────────────────────────────────────────── */
/* The question takes its own line above the answers, because it is a question
   about the group rather than another action in the row of actions. */
.gs-again { flex: 1 1 100%; display: flex; flex-wrap: wrap; gap: 8px; }
.gs-again-q {
    flex: 1 1 100%;
    font-family: var(--sans); font-size: 11px; font-weight: 700;
    letter-spacing: calc(0.18em * var(--track)); text-transform: uppercase;
    color: var(--yellow); padding: 4px 0 2px;
}
.gs-again .gs-live-btn { flex: 1 1 0; min-width: 92px; text-align: center; text-decoration: none; }
@media (max-width: 750px) {
    .gs-again { flex-direction: row; }
    .gs-again .gs-live-btn { padding: 12px 8px; letter-spacing: calc(0.06em * var(--track)); min-width: 0; }
}

/* The invite group. One button where the OS has a share sheet, three where it
   does not, so this has to sit right either way: it takes the full row and its
   children share it. The anchors are styled as buttons because they do a button's
   job — the element is an anchor only so the OS opens Messages or Mail the way it
   opens any other link. */
.gs-invite { flex: 1 1 100%; display: flex; gap: 8px; flex-wrap: wrap; }
.gs-invite .gs-live-btn { flex: 1 1 0; min-width: 96px; text-align: center; text-decoration: none; }
@media (max-width: 750px) {
    /* The row wraps rather than stacking: three short labels side by side stay
       one line on a phone, where three full-width buttons would push the panel
       past the fold. */
    .gs-invite { flex-direction: row; }
    .gs-invite .gs-live-btn { padding: 12px 8px; letter-spacing: calc(0.08em * var(--track)); min-width: 0; }
}

/* Phone: the entry button joins the pinned action bar rather than crowding it. */
@media (max-width: 750px) {
    /* Font-size and tracking came out: the action row is sized as ONE GROUP in
       style.css now, and a rule here at lower specificity would have sat in the
       file looking authoritative while losing silently. Padding is still ours. */
    .gs-open-btn { padding: 12px 14px; }
    .gs-live-actions { flex-direction: column; }
}
body.vlayout .gs-open-btn { flex: 1 1 100%; order: 5; }

/* ── Locked terms, and the invitation ─────────────────────────────────────── */
/* Each frozen condition on its own labelled line. Run together on one line they
   read as decoration; named, they read as the terms of the contest. */
.gs-locked      { border: 1px solid var(--border-hi); background: rgba(0,0,0,0.35);
                  padding: 12px 14px; margin: 0 0 16px; 
    border-radius: var(--r);
}
.gs-locked-label{ font-size: 10px; font-weight: 700; letter-spacing: calc(0.18em * var(--track));
                  text-transform: uppercase; color: var(--yellow); margin-bottom: 8px; }
.gs-lock-row    { display: flex; justify-content: space-between; align-items: baseline;
                  gap: 14px; padding: 5px 0; }
.gs-lock-row span { font-size: 10.5px; letter-spacing: calc(0.14em * var(--track)); text-transform: uppercase; color: var(--dim); }
.gs-lock-row b    { font-size: 13px; color: var(--white); font-weight: 600; text-align: right; }

/* What somebody arriving from a link is being asked, said before anything is
   asked of them. */
.gs-invite       { text-align: center; padding: 4px 0 18px; }
.gs-invite-mark  { font-size: 10px; font-weight: 700; letter-spacing: calc(0.2em * var(--track));
                   text-transform: uppercase; color: var(--yellow); margin-bottom: 10px; }
.gs-invite-line  { font-size: 13px; color: var(--dim); margin-bottom: 8px; }
.gs-invite-names { font-size: clamp(17px, 4.5vw, 21px); font-weight: 800; line-height: 1.2;
                   color: var(--white); letter-spacing: calc(-0.01em * var(--track)); }
/* Lowercase on purpose. Set in capitals it competed with the two names either
   side of it, which are the thing worth reading. */
.gs-invite-names i { display: block; font-style: normal; font-size: 11px; font-weight: 600;
                     letter-spacing: calc(0.2em * var(--track)); text-transform: lowercase; color: var(--dim);
                     margin: 4px 0; }

/* The stake buttons carry their unit, so "50" is never mistaken for money. */
.gs-tier i { font-style: normal; font-size: 9px; letter-spacing: calc(0.12em * var(--track)); opacity: 0.75; display: block; }

/* The invitee's name, typed by whoever is inviting. */
.gs-invitee {
    width: 100%; box-sizing: border-box; padding: 11px 12px;
    background: #101010; border: 1px solid var(--border-hi); color: var(--white);
    font-family: var(--sans); font-size: 15px;   /* 15px+ stops iOS zooming on focus */
;
    border-radius: var(--r);
}
.gs-invitee:focus { outline: none; border-color: var(--yellow); }
