.sheet-screen { justify-content: flex-end; background: rgba(4, 7, 14, .68); }

.sheet {
    width: 100%;
    max-width: 520px;
    margin: 0 auto;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    padding: 8px 18px calc(var(--safe-b) + 10px);
    border: 1px solid var(--line);
    border-bottom: none;
    border-radius: var(--r-lg) var(--r-lg) 0 0;
    background: var(--panel);
    animation: sheet-in .26s cubic-bezier(.22, 1, .36, 1);
}

.grab { width: 36px; height: 4px; margin: 2px auto 12px; border-radius: 2px; background: rgba(255, 255, 255, .16); flex: none; }
.sheet h2 { margin: 4px 0 0; font-size: 23px; font-weight: 850; letter-spacing: -.02em; }
.sheet h2.is-win { color: var(--good); }
.sheet-note { margin: 0; color: var(--muted); font-size: 12.5px; font-weight: 650; }
.sheet-body { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; display: flex; flex-direction: column; gap: 10px; padding: 12px 0; }
.sheet-foot { flex: none; display: flex; gap: 8px; padding-top: 10px; }
.sheet-foot .btn { flex: 1; }

.seat-list, .result-list, .rank-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.seat-list li, .result-list li, .rank-list li {
    display: grid;
    align-items: center;
    gap: 9px;
    padding: 10px 12px;
    border-radius: var(--r-sm);
    background: rgba(255, 255, 255, .03);
    font-size: 13.5px;
}

.seat-list li { grid-template-columns: 7px 1fr auto; }
.result-list li { grid-template-columns: 18px 7px 1fr auto auto; }
.rank-list li { grid-template-columns: 24px 1fr auto auto; }
.seat-list li.is-me, .result-list li.is-me, .rank-list li.is-me { background: rgba(255, 255, 255, .09); }
.result-list .place, .rank-list .place { color: var(--dim); font-size: 12px; font-weight: 800; font-variant-numeric: tabular-nums; }
.result-list .dot, .seat-list .dot { width: 7px; height: 7px; border-radius: 50%; }
.result-list .who, .rank-list .who, .seat-list .who { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 700; }
.result-list .who i, .rank-list .who i, .seat-list .who i { font-style: normal; color: var(--dim); font-weight: 600; font-size: 11px; }
.result-list .terr, .rank-list .games, .seat-list .terr { color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; font-weight: 650; }
.result-list .pts, .rank-list .rating { font-weight: 800; font-variant-numeric: tabular-nums; }

.reward { display: flex; flex-direction: column; gap: 8px; padding: 13px 14px; border: 1px solid var(--line); border-radius: var(--r-md); background: rgba(255, 255, 255, .03); }
.reward-row { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.reward-row span { color: var(--muted); font-size: 12px; font-weight: 650; }
.reward-row strong { font-size: 19px; font-weight: 850; font-variant-numeric: tabular-nums; }
.reward-row em { font-style: normal; font-weight: 800; font-variant-numeric: tabular-nums; font-size: 14px; }
.reward-row em.is-up { color: var(--good); }
.reward-row em.is-down { color: var(--bad); }
.reward-extra { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 5px; }
.reward-extra li { display: flex; align-items: baseline; gap: 8px; font-size: 12.5px; font-weight: 700; }
.reward-extra li b { flex: none; color: var(--dim); font-size: 10px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.reward-extra li.is-quest span { color: var(--good); }
.reward-extra li.is-badge span { color: var(--violet); }
.reward-extra li.is-look span { color: var(--cyan); }
.reward-extra li.is-level span { color: var(--warn); }
.reward-extra li.is-streak span { color: var(--amber); }

.room-code { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px dashed var(--line-strong); border-radius: var(--r-md); }
.room-code span { color: var(--dim); font-size: 10px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.room-code b { flex: 1; font-size: 24px; font-weight: 850; letter-spacing: .26em; font-variant-numeric: tabular-nums; }

.options { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; }
.options li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 14px; font-weight: 700; }
.options li:last-child { border-bottom: none; }
.options small { display: block; color: var(--dim); font-size: 11.5px; font-weight: 600; margin-top: 2px; }

.rules { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 14px; }
.rule { display: grid; grid-template-columns: 62px 1fr; align-items: center; gap: 13px; }
.rule svg { width: 62px; height: 62px; }
.rule b { display: block; font-size: 14px; font-weight: 800; }
.rule span { display: block; margin-top: 2px; color: var(--muted); font-size: 12.5px; line-height: 1.45; }

.keys { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 7px; }
.keys li { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 11px; font-size: 12.5px; color: var(--muted); font-weight: 650; }
.keys kbd {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 26px;
    height: 26px;
    padding: 0 8px;
    border: 1px solid var(--line-strong);
    border-radius: 7px;
    background: rgba(255, 255, 255, .05);
    color: var(--text);
    font-family: inherit;
    font-size: 11.5px;
    font-weight: 800;
}

.keys .combo { display: flex; gap: 4px; align-items: center; }
