.mock-draft-game {
    --mdg-accent: #ed111b;
    --mdg-dark: #17212b;
    box-sizing: border-box;
    color: var(--mdg-dark);
    margin: 24px auto 40px;
    max-width: 920px;
}

.mock-draft-game *,
.mock-draft-game *::before,
.mock-draft-game *::after { box-sizing: border-box; }
.mock-draft-game [hidden] { display: none !important; }
body.mock-draft-game-modal-open { overflow: hidden; }

.mock-draft-game__error {
    background: #f3f5f7;
    border-left: 4px solid #ed111b;
    margin: 24px auto;
    max-width: 920px;
    padding: 24px;
    text-align: center;
}

.mock-draft-game__status {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    font-size: 14px;
    font-weight: 700;
    gap: 8px 18px;
    justify-content: center;
    margin: 18px 0 10px;
    min-height: 22px;
}
.mock-draft-game__updated {
    color: #777;
    font-size: 12px;
    font-weight: 600;
}
.mock-draft-game__actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-bottom: 22px;
}
.mock-draft-game__share-output {
    font-size: 12px;
    font-weight: 700;
}
.mock-draft-game__title {
    margin: -4px auto 18px;
    max-width: 900px;
    padding: 0 12px;
    text-align: center;
}
.mock-draft-game .mock-draft-game__title input[type="text"],
.mock-draft-game__title h2 {
    background: transparent;
    border: 1px solid transparent;
    border-radius: 7px;
    color: var(--mdg-dark);
    font: inherit;
    font-size: 34px;
    font-weight: 800;
    line-height: 1.2;
    margin: 0;
    min-height: 62px;
    height: auto;
    padding: 10px 16px;
    text-align: center;
    width: 100%;
}
.mock-draft-game .mock-draft-game__title input[type="text"] { cursor: text; }
.mock-draft-game .mock-draft-game__title input[type="text"]:hover { border-color: #d5d8da; }
.mock-draft-game .mock-draft-game__title input[type="text"]:focus {
    background: #fff;
    border-color: var(--mdg-accent);
    outline: 2px solid rgba(237, 17, 27, .15);
    outline-offset: 1px;
}

.mock-draft-game__round-group + .mock-draft-game__round-group { margin-top: 26px; }
.mock-draft-game__round-title {
    color: var(--mdg-dark);
    font-size: 22px;
    font-weight: 800;
    line-height: 1.2;
    margin: 0;
    padding: 8px 10px;
    text-transform: uppercase;
}
.mock-draft-game__round-actions {
    display: flex;
    justify-content: center;
    margin: 22px 0 4px;
}

.mock-draft-game__table-header,
.mock-draft-game__pick {
    display: grid;
    grid-template-columns: 68px 130px 130px minmax(180px, 1fr) 54px;
}
.mock-draft-game__table-header {
    align-items: center;
    border-bottom: 2px solid var(--mdg-accent);
    font-size: 13px;
    font-weight: 800;
    min-height: 40px;
    text-transform: uppercase;
}
.mock-draft-game__table-header span { padding: 0 10px; }
.mock-draft-game__pick {
    align-items: stretch;
    border-bottom: 1px solid #d9dde0;
    min-height: 52px;
    position: relative;
}
.mock-draft-game__pick:nth-child(even) { background: #f7f8f9; }
.mock-draft-game__pick > div,
.mock-draft-game__pick > button {
    min-width: 0;
}
.mock-draft-game__pick-number,
.mock-draft-game__team {
    align-items: center;
    display: flex;
    gap: 7px;
    padding: 7px 10px;
}
.mock-draft-game__pick-number { justify-content: center; }
.mock-draft-game__pick-number > span,
.mock-draft-game__team > span { display: none; }
.mock-draft-game__pick-number strong { font-size: 17px; }
.mock-draft-game__team img {
    height: 28px;
    margin: 0 !important;
    object-fit: contain;
    width: 38px;
}
.mock-draft-game__team strong {
    color: var(--mdg-accent);
    font-size: 13px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.mock-draft-game__empty { color: #aaa; }
.mock-draft-game__pick--skeleton {
    overflow: hidden;
}
.mock-draft-game__skeleton-block {
    align-self: center;
    background: #e7eaec;
    border-radius: 5px;
    height: 28px;
    margin: 0 10px;
    overflow: hidden;
    position: relative;
}
.mock-draft-game__skeleton-block::after {
    animation: mock-draft-game-skeleton 1.4s infinite;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .8), transparent);
    content: "";
    inset: 0;
    position: absolute;
    transform: translateX(-100%);
}
.mock-draft-game__skeleton-block--player { height: 38px; }
.mock-draft-game__skeleton-block--menu {
    height: 38px;
    margin: 0 0 0 7px;
}
@keyframes mock-draft-game-skeleton {
    100% { transform: translateX(100%); }
}
.mock-draft-game__player {
    align-items: center;
    align-self: center;
    background: #fff;
    border: 1px solid #8e959b;
    border-radius: 8px;
    color: #111;
    display: flex;
    font-size: 14px;
    font-weight: 800;
    justify-content: space-between;
    min-height: 38px;
    overflow: hidden;
    padding: 0 0 0 12px;
    text-align: left;
    text-transform: uppercase;
    width: 100%;
}
button.mock-draft-game__player { cursor: pointer; }
.mock-draft-game__player.has-player { padding-right: 12px; }
.mock-draft-game__player > span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.mock-draft-game__player.is-blank > b {
    align-items: center;
    align-self: stretch;
    background: var(--mdg-accent);
    color: #fff;
    display: flex;
    flex: 0 0 44px;
    font-size: 26px;
    justify-content: center;
}
.mock-draft-game.is-share-mode .mock-draft-game__player {
    border-color: transparent;
    padding-right: 12px;
}

.mock-draft-game__row-menu {
    align-items: center;
    display: flex;
    justify-content: flex-end;
    padding-left: 7px;
    position: relative;
}
.mock-draft-game__menu-toggle {
    background: #dce1e4;
    border: 0;
    border-radius: 6px;
    cursor: pointer;
    font-size: 25px;
    font-weight: 900;
    height: 38px;
    line-height: 1;
    width: 46px;
}
.mock-draft-game__menu {
    background: #fff;
    border: 1px solid #d5d8da;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .2);
    min-width: 190px;
    padding: 7px;
    position: absolute;
    right: 0;
    top: calc(100% - 3px);
    z-index: 20;
}
.mock-draft-game__menu.is-opening-up {
    bottom: calc(100% - 3px);
    top: auto;
}
.mock-draft-game__menu button {
    background: transparent;
    border: 0;
    border-radius: 4px;
    cursor: pointer;
    display: block;
    font-size: 14px;
    font-weight: 700;
    padding: 9px 10px;
    text-align: left;
    width: 100%;
}
.mock-draft-game__menu button:hover { background: #f0f2f3; }
.mock-draft-game__menu button[disabled] { cursor: not-allowed; opacity: .4; }

.mock-draft-game__backdrop {
    background: rgba(0, 0, 0, .75);
    display: none;
    inset: 0;
    position: fixed;
    z-index: 2147482999;
}
.mock-draft-game__backdrop.is-active { display: block; }
.mock-draft-game__selector {
    background: #f3f3f3;
    border-radius: 8px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, .28);
    box-sizing: border-box;
    display: none;
    flex-direction: column;
    height: min(720px, 90vh);
    height: min(720px, 90dvh);
    left: 50%;
    max-height: 90vh;
    max-height: 90dvh;
    overflow: hidden;
    padding: 16px;
    position: fixed;
    top: 50%;
    transform: translate(-50%, -50%);
    width: min(520px, calc(100vw - 32px));
    z-index: 2147483000;
}
.mock-draft-game__selector *,
.mock-draft-game__selector *::before,
.mock-draft-game__selector *::after { box-sizing: border-box; }
.mock-draft-game__selector.is-active { display: flex; }
.mock-draft-game__selector-close {
    background: transparent;
    border: 0;
    cursor: pointer;
    display: block;
    font-size: 24px;
    font-weight: 700;
    position: absolute;
    right: 10px;
    top: 8px;
}
.mock-draft-game__selector h3 {
    font-size: 20px;
    margin: 0 0 14px;
    text-align: center;
    text-transform: uppercase;
}
.mock-draft-game__selector-controls {
    display: grid;
    flex: 0 0 auto;
    gap: 8px;
    margin: 0 auto 12px;
    min-width: 0;
    width: calc(100% - 40px);
}
.mock-draft-game__selector select,
.mock-draft-game__selector input {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    display: block;
    max-width: 100%;
    min-height: 32px;
    padding: 7px 9px;
    width: 100%;
}
.mock-draft-game__selector select {
    background-color: var(--mdg-accent);
    border: 0;
    color: #fff;
    cursor: pointer;
    font-size: 18px;
    font-weight: 700;
    min-height: 48px;
    padding: 8px 14px;
    text-transform: uppercase;
}
.mock-draft-game__selector select option { background: #fff; color: #111; text-transform: none; }
.mock-draft-game__selector input {
    font-size: 16px;
    font-weight: 700;
    min-width: 0;
    width: 100% !important;
}
.mock-draft-game__selector-context {
    align-items: center;
    display: flex;
    flex: 0 0 auto;
    font-size: 16px;
    font-weight: 700;
    gap: 8px;
    justify-content: center;
    margin-bottom: 12px;
    min-height: 28px;
    text-align: center;
    text-transform: uppercase;
}
.mock-draft-game__selector-context img {
    height: 24px;
    margin: 0 !important;
    object-fit: contain;
    width: 34px;
}
.mock-draft-game__player-list,
.mock-draft-game__club-list {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    gap: 5px;
    max-width: 100%;
    min-height: 0;
    min-width: 0;
    padding-bottom: 18px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}
.mock-draft-game__player-list { padding-right: 16px; }
.mock-draft-game__player-list > button,
.mock-draft-game__club-list > button {
    align-items: center;
    background: transparent;
    border: 0;
    color: #000;
    cursor: pointer;
    display: flex;
    font-size: 15px;
    font-weight: 600;
    gap: 8px;
    padding: 0;
    text-align: left;
    text-transform: uppercase;
    width: 100%;
}
.mock-draft-game__player-list > button b {
    align-items: center;
    background: var(--mdg-accent);
    border-radius: 15px;
    color: #fff;
    display: inline-flex;
    flex: 0 0 auto;
    font-family: "Open Sans", sans-serif;
    font-size: 20px;
    font-weight: 700;
    justify-content: center;
    line-height: 15px;
    padding: 5px 15px;
}
.mock-draft-game__player-list > button span { font-size: 15px; font-weight: 600; }
.mock-draft-game__player-list > button:hover { opacity: .75; }
.mock-draft-game__player-list > button small { color: #777; margin-left: auto; }
.mock-draft-game__selector-empty { color: #777; font-size: 13px; font-weight: 700; }
.mock-draft-game__club-selector { height: min(650px, 90dvh); }
.mock-draft-game__club-selector > p { margin: 0 0 14px; text-align: center; }
.mock-draft-game__club-list > button {
    background: #fff;
    border-radius: 6px;
    font-weight: 800;
    min-height: 48px;
    padding: 7px 12px;
}
.mock-draft-game__club-list img {
    height: 32px;
    margin: 0 !important;
    object-fit: contain;
    width: 42px;
}

.mock-draft-game__recent { margin-top: 30px; }
.mock-draft-game__recent > h3 { text-align: center; }
.mock-draft-game__recent-item {
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 8px;
    display: flex;
    gap: 14px;
    justify-content: space-between;
    margin-bottom: 8px;
    padding: 12px;
}
.mock-draft-game__recent-item > div { align-items: flex-start; display: flex; flex-direction: column; text-align: left; }
.mock-draft-game__recent-item span { color: #666; font-size: 12px; text-align: left; }
.mock-draft-game__recent-item button {
    background: var(--mdg-accent);
    border: 0;
    border-radius: 5px;
    color: #fff;
    cursor: pointer;
    font-weight: 800;
    padding: 8px 14px;
    text-transform: uppercase;
}

@media (max-width: 700px) {
    .mock-draft-game { margin-top: 18px; }
    .mock-draft-game .mock-draft-game__title input[type="text"],
    .mock-draft-game__title h2 { font-size: 24px; min-height: 50px; padding: 8px 10px; }
    .mock-draft-game__round-title { font-size: 18px; padding-left: 6px; }
    .mock-draft-game__status { padding: 0 12px; }
    .mock-draft-game__table-header,
    .mock-draft-game__pick {
        grid-template-columns: 52px 62px minmax(120px, 1fr) 50px;
    }
    .mock-draft-game__table-header span:nth-child(3),
    .mock-draft-game__from,
    .mock-draft-game__skeleton-block--from { display: none; }
    .mock-draft-game__table-header span { padding: 0 6px; }
    .mock-draft-game__pick-number,
    .mock-draft-game__team { padding: 6px 5px; }
    .mock-draft-game__team img { height: 25px; width: 32px; }
    .mock-draft-game__team { gap: 4px; }
    .mock-draft-game__team strong { display: none; }
    .mock-draft-game__player { border-radius: 6px; font-size: 12px; min-height: 42px; padding-left: 8px; }
    .mock-draft-game__player.is-blank > b { flex-basis: 38px; }
    .mock-draft-game__row-menu { padding-left: 4px; }
    .mock-draft-game__menu-toggle { height: 42px; width: 46px; }
    .mock-draft-game__menu { right: 0; }
    .mock-draft-game__selector {
        height: 90vh;
        height: 90dvh;
        left: 12px;
        right: 12px;
        top: max(5vh, env(safe-area-inset-top));
        transform: none;
        width: auto;
    }
}

@media (prefers-reduced-motion: reduce) {
    .mock-draft-game * { scroll-behavior: auto !important; }
    .mock-draft-game__skeleton-block::after { animation: none; }
}
