/* Ranked guide: a large rectangle over a blurred page, never fullscreen. */
dialog.ranked-guide {
    width: min(960px, calc(100vw - 48px));
    height: min(620px, calc(100dvh - 64px));
    max-width: none; max-height: none;
    padding: 0; border: 1px solid rgba(255, 196, 92, .35); border-radius: 16px;
    background: linear-gradient(180deg, #17161c 0%, #111015 100%); color: #ececec;
    box-shadow: 0 24px 80px rgba(0, 0, 0, .6);
    overflow: hidden;
}
dialog.ranked-guide[open] { display: flex; flex-direction: column; }
dialog.ranked-guide::backdrop { background: rgba(6, 6, 10, .55); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.ranked-guide header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, .08); }
.ranked-guide h2 { margin: 0; font-size: 20px; font-weight: 800; letter-spacing: .02em; color: #ffd28a; }
.ranked-guide-close { width: 36px; height: 36px; border: 1px solid rgba(255, 255, 255, .18); border-radius: 10px; background: transparent;
    color: inherit; font-size: 22px; line-height: 1; cursor: pointer; }
.ranked-guide-close:hover, .ranked-guide-close:focus-visible { background: rgba(255, 255, 255, .08); }
.ranked-guide-layout { display: grid; grid-template-columns: 220px 1fr; flex: 1; min-height: 0; }
.ranked-guide-tabs { display: flex; flex-direction: column; gap: 4px; padding: 14px 10px; overflow-y: auto;
    border-right: 1px solid rgba(255, 255, 255, .08); background: rgba(255, 255, 255, .02); }
.ranked-guide-tabs button { padding: 10px 12px; border: 1px solid transparent; border-radius: 10px; background: transparent; color: #c8c8c8;
    font: 700 14px/1.3 inherit; text-align: left; cursor: pointer; }
.ranked-guide-tabs button:hover { background: rgba(255, 255, 255, .05); color: #fff; }
.ranked-guide-tabs button[aria-selected="true"] { border-color: rgba(255, 196, 92, .45); background: rgba(255, 196, 92, .12); color: #ffd28a; }
.ranked-guide-tabs button:focus-visible, .ranked-guide-body section:focus-visible { outline: 2px solid #ffd28a; outline-offset: 2px; }
.ranked-guide-body { min-width: 0; overflow-y: auto; padding: 20px 28px 28px; }
.ranked-guide-body h3 { margin: 0 0 14px; font-size: 18px; font-weight: 800; }
.ranked-guide-body ul { margin: 0; padding-left: 20px; display: grid; gap: 10px; }
.ranked-guide-body li { line-height: 1.55; color: #dedede; }
.ranked-guide-body li::marker { color: #ffd28a; }
@media (max-width: 680px) {
    dialog.ranked-guide { width: calc(100vw - 20px); height: min(640px, calc(100dvh - 32px)); }
    .ranked-guide-layout { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
    .ranked-guide-tabs { flex-direction: row; overflow-x: auto; overflow-y: hidden; border-right: 0; border-bottom: 1px solid rgba(255, 255, 255, .08); }
    .ranked-guide-tabs button { flex: none; white-space: nowrap; }
    .ranked-guide-body { padding: 16px 18px 22px; }
}
