:root {
    --bg: #070b13;
    --surface: rgba(14, 23, 38, 0.88);
    --border: rgba(255, 255, 255, 0.1);
    --text: #f8fafc;
    --muted: rgba(248, 250, 252, 0.64);
    --blue: #38bdf8;
    --red: #fb7185;
    --green: #22c55e;
    --gold: #facc15;
}

* {
    box-sizing: border-box;
}

body.lol-page {
    min-height: 100vh;
    margin: 0;
    background:
        radial-gradient(circle at 18% 0%, rgba(56, 189, 248, 0.18), transparent 26rem),
        radial-gradient(circle at 88% 16%, rgba(250, 204, 21, 0.1), transparent 24rem),
        linear-gradient(180deg, #0c1321 0%, var(--bg) 68%);
    color: var(--text);
    font-family: Inter, Pretendard, "Noto Sans KR", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.home-page {
    display: grid;
    grid-template-rows: auto 1fr auto;
}

a {
    color: inherit;
}

.layout {
    width: min(72rem, calc(100% - 2rem));
    margin-inline: auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    border-bottom: 1px solid var(--border);
    background: rgba(7, 11, 19, 0.84);
    backdrop-filter: blur(14px);
}

.header-inner,
.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-block: 1rem;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.brand-mark {
    display: inline-block;
    color: var(--blue);
    font-size: 1.35rem;
    font-weight: 950;
    line-height: 1;
    letter-spacing: 0;
}

.brand-text {
    display: grid;
    gap: 0.1rem;
}

.brand-text strong {
    font-size: 1rem;
    font-weight: 950;
}

.brand-text small,
.top-nav {
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 800;
}

.top-nav a {
    min-height: 2rem;
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.65rem;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.045);
    text-decoration: none;
}

.main {
    padding-block: clamp(2rem, 5vw, 4rem);
}

.home-main {
    min-height: 38rem;
    display: grid;
    place-items: center;
    margin-block: 1.5rem;
    padding-block: 1.5rem;
}

.home-search {
    width: min(46rem, calc(100% - 1rem));
}

.home-visual {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 0.4rem;
    background: #07111f;
}

.home-visual img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    object-position: center;
}

.home-search-content {
    width: 100%;
    padding-bottom: 1.25rem;
}

.home-search h1 {
    margin: 0;
    font-size: 1.5rem;
    letter-spacing: 0;
}

.home-search-guide {
    margin: 0.35rem 0 0.85rem;
    color: rgba(248, 250, 252, 0.78);
    font-size: 0.82rem;
}

.home-search .search-panel {
    padding: 0;
    border: 0;
    background: transparent;
}

.home-search .search-input,
.home-search .search-button {
    box-shadow: 0 0.6rem 1.8rem rgba(0, 0, 0, 0.32);
    text-shadow: none;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(22rem, 0.82fr);
    gap: clamp(1rem, 4vw, 2rem);
    align-items: end;
    padding: clamp(1.25rem, 4vw, 2.5rem);
    border: 1px solid var(--border);
    border-radius: 1.25rem;
    background:
        linear-gradient(135deg, rgba(56, 189, 248, 0.12), rgba(250, 204, 21, 0.08)),
        var(--surface);
    box-shadow: 0 1.25rem 3rem rgba(0, 0, 0, 0.28);
}

.result-hero {
    grid-template-columns: minmax(0, 1.15fr) minmax(22rem, 0.82fr);
    align-items: center;
}

.hero-profile-summary {
    min-width: 0;
    display: grid;
    gap: 1rem;
}

.hero-profile-summary .profile-main h1 {
    margin: 0;
    color: #fff;
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    line-height: 1.1;
    letter-spacing: 0;
    overflow-wrap: anywhere;
}

.hero-profile-summary .summary-item {
    min-height: 3.5rem;
    padding: 0.65rem 0.75rem;
}

.profile-placeholder {
    display: grid;
    gap: 0.25rem;
}

.profile-placeholder span,
.profile-placeholder small {
    color: var(--muted);
}

.profile-placeholder strong {
    color: #fff;
    font-size: 1.5rem;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    min-height: 1.9rem;
    padding: 0.3rem 0.7rem;
    border: 1px solid rgba(250, 204, 21, 0.32);
    border-radius: 999px;
    background: rgba(250, 204, 21, 0.1);
    color: #fef3c7;
    font-size: 0.78rem;
    font-weight: 900;
}

.hero h1 {
    margin: 1rem 0 0;
    font-size: clamp(2rem, 5vw, 4rem);
    line-height: 1;
    letter-spacing: 0;
    overflow-wrap: anywhere;
}

.hero p {
    max-width: 38rem;
    margin: 1rem 0 0;
    color: var(--muted);
    line-height: 1.75;
    word-break: keep-all;
}

.search-panel {
    padding: 1rem;
    border: 1px solid var(--border);
    border-radius: 1rem;
    background: rgba(3, 7, 18, 0.42);
}

.search-label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 900;
}

.search-field {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.65rem;
}

.search-input-wrap {
    position: relative;
    min-width: 0;
}

.search-input,
.search-button {
    min-height: 3.2rem;
    border-radius: 0.8rem;
    font: inherit;
    font-weight: 850;
}

.search-input {
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.14);
    padding: 0 1rem;
    background: rgba(255, 255, 255, 0.94);
    color: #07111f;
}

.search-suggestions {
    position: absolute;
    top: calc(100% + 0.4rem);
    right: 0;
    left: 0;
    z-index: 30;
    max-height: 18rem;
    overflow-y: auto;
    border: 1px solid rgba(148, 163, 184, 0.35);
    border-radius: 0.6rem;
    background: #f8fafc;
    box-shadow: 0 1rem 2.5rem rgba(0, 0, 0, 0.34);
    color: #0f172a;
}

.search-suggestions[hidden] {
    display: none;
}

.search-suggestion {
    width: 100%;
    min-height: 2.8rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.65rem 0.85rem;
    border: 0;
    border-bottom: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.search-suggestion:last-child {
    border-bottom: 0;
}

.search-suggestion:hover,
.search-suggestion.is-active {
    background: #e0f2fe;
}

.search-suggestion strong {
    min-width: 0;
    overflow: hidden;
    font-size: 0.88rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.search-suggestion span {
    flex: 0 0 auto;
    color: #64748b;
    font-size: 0.72rem;
    font-weight: 750;
}

.search-button {
    min-width: 8rem;
    border: 0;
    background: linear-gradient(135deg, #22c55e, #38bdf8);
    color: #04111f;
    cursor: pointer;
}

.search-help {
    margin: 0.75rem 0 0;
    color: rgba(248, 250, 252, 0.5);
    font-size: 0.84rem;
}

.result-panel {
    min-height: 8rem;
    margin-top: 1rem;
    border: 1px solid var(--border);
    border-radius: 1.25rem;
    background: rgba(3, 7, 18, 0.55);
    overflow: hidden;
}

.notice {
    display: flex;
    align-items: center;
    min-height: 5rem;
    margin: 1rem;
    padding: 1rem;
    border: 1px dashed rgba(255, 255, 255, 0.18);
    border-radius: 0.85rem;
    background: rgba(255, 255, 255, 0.045);
    color: var(--muted);
    font-weight: 800;
}

.loading {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1.25rem;
    color: var(--muted);
    font-weight: 900;
}

.loading-dot {
    width: 0.75rem;
    height: 0.75rem;
    border-radius: 999px;
    background: var(--green);
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.4);
    animation: pulse 1.2s infinite;
}

@keyframes pulse {
    70% {
        box-shadow: 0 0 0 0.65rem rgba(34, 197, 94, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
    }
}

.profile-summary {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(22rem, 0.9fr);
    gap: 1rem;
    padding: 1.25rem;
    border-bottom: 1px solid var(--border);
    background:
        linear-gradient(135deg, rgba(56, 189, 248, 0.09), rgba(250, 204, 21, 0.06)),
        rgba(255, 255, 255, 0.035);
}

.profile-main {
    display: flex;
    align-items: center;
    gap: 1rem;
    min-width: 0;
}

.profile-avatar {
    position: relative;
    width: 4rem;
    height: 4rem;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 1rem;
    background: linear-gradient(135deg, #facc15, #38bdf8);
    color: #06101d;
    font-size: 1.6rem;
    font-weight: 950;
}

.profile-avatar > img {
    width: 100%;
    height: 100%;
    display: block;
    border-radius: inherit;
    object-fit: cover;
}

.profile-level {
    position: absolute;
    right: -0.35rem;
    bottom: -0.3rem;
    min-width: 1.75rem;
    min-height: 1.3rem;
    display: grid;
    place-items: center;
    padding: 0.1rem 0.35rem;
    border: 1px solid rgba(250, 204, 21, 0.45);
    border-radius: 0.35rem;
    background: #101827;
    color: #fde68a;
    font-size: 0.65rem;
    line-height: 1;
    box-shadow: 0 0.2rem 0.5rem rgba(0, 0, 0, 0.35);
}

.profile-label {
    margin: 0 0 0.2rem;
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.78rem;
    font-weight: 900;
    text-transform: uppercase;
}

.profile-main h2 {
    margin: 0;
    color: #fff;
    font-size: clamp(1.25rem, 3vw, 1.85rem);
    font-weight: 950;
    overflow-wrap: anywhere;
}

.summary-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.65rem;
}

.summary-item {
    min-height: 4rem;
    padding: 0.75rem;
    border: 1px solid var(--border);
    border-radius: 0.85rem;
    background: rgba(3, 9, 20, 0.36);
}

.summary-item span {
    display: block;
    color: rgba(255, 255, 255, 0.52);
    font-size: 0.76rem;
    font-weight: 900;
}

.summary-item strong {
    display: block;
    margin-top: 0.3rem;
    color: #fff;
    font-size: 1.05rem;
    font-weight: 950;
}

.rank-overview {
    display: grid;
    grid-template-columns: 8rem minmax(0, 1fr);
    gap: 1rem;
    align-items: stretch;
    padding: 0.8rem 1.25rem;
    border-bottom: 1px solid var(--border);
    background: rgba(5, 12, 24, 0.88);
}

.rank-title {
    display: grid;
    align-content: center;
    gap: 0.15rem;
    padding-right: 1rem;
    border-right: 1px solid var(--border);
}

.rank-title span {
    color: rgba(250, 204, 21, 0.72);
    font-size: 0.67rem;
    font-weight: 900;
    text-transform: uppercase;
}

.rank-title strong {
    color: #fff;
    font-size: 0.9rem;
}

.rank-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
}

.rank-item {
    min-width: 0;
    display: grid;
    grid-template-columns: 3.4rem minmax(5rem, 0.75fr) minmax(6rem, 0.85fr) minmax(0, 1.5fr);
    gap: 0.7rem;
    align-items: center;
    min-height: 3.2rem;
    padding: 0.55rem 0.75rem;
    border: 1px solid rgba(250, 204, 21, 0.15);
    border-radius: 0.45rem;
    background: rgba(255, 255, 255, 0.035);
}

.rank-emblem,
.rank-emblem-placeholder {
    width: 3.4rem;
    height: 3.4rem;
    display: block;
    object-fit: contain;
}

.rank-emblem {
    filter: drop-shadow(0 0.2rem 0.35rem rgba(0, 0, 0, 0.4));
}

.rank-emblem-placeholder {
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.035);
}

.rank-emblem-placeholder::after {
    position: absolute;
    inset: 50% auto auto 50%;
    width: 1.2rem;
    height: 1px;
    background: rgba(255, 255, 255, 0.24);
    content: "";
    transform: translate(-50%, -50%);
}

.rank-item > span {
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.72rem;
    font-weight: 850;
}

.rank-item > strong {
    font-size: 0.88rem;
    font-weight: 950;
}

.rank-item > small {
    color: rgba(255, 255, 255, 0.52);
    font-size: 0.68rem;
    font-weight: 750;
    white-space: nowrap;
}

.rank-item > small b {
    margin-right: 0.45rem;
    color: rgba(255, 255, 255, 0.86);
    font-weight: 950;
}

.rank-item.is-unranked {
    border-color: var(--border);
}

.queue-filter {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 1.25rem;
    border-bottom: 1px solid var(--border);
    background: rgba(3, 9, 20, 0.72);
}

.queue-filter-label {
    flex: 0 0 auto;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.72rem;
    font-weight: 900;
}

.queue-filter-options {
    min-width: 0;
    display: flex;
    gap: 0.4rem;
    overflow-x: auto;
    scrollbar-width: thin;
}

.queue-filter-button {
    min-height: 2.15rem;
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 0.45rem;
    padding: 0.45rem 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 0.35rem;
    background: rgba(255, 255, 255, 0.04);
    color: rgba(255, 255, 255, 0.72);
    font: inherit;
    font-size: 0.75rem;
    font-weight: 850;
    cursor: pointer;
}

.queue-filter-button:hover,
.queue-filter-button:focus-visible {
    border-color: rgba(56, 189, 248, 0.45);
    color: #fff;
    outline: none;
}

.queue-filter-button.is-active {
    border-color: rgba(56, 189, 248, 0.7);
    background: rgba(56, 189, 248, 0.16);
    color: #e0f2fe;
}

.queue-filter-button strong {
    min-width: 1.25rem;
    padding: 0.1rem 0.3rem;
    border-radius: 0.25rem;
    background: rgba(255, 255, 255, 0.1);
    color: inherit;
    font-size: 0.66rem;
    text-align: center;
}

.match-list {
    display: grid;
    gap: 0;
    margin: 0;
    padding: 0;
    list-style: none;
}

.match-list-empty {
    padding: 2.5rem 1rem;
    border-bottom: 1px solid var(--border);
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.85rem;
    font-weight: 700;
    text-align: center;
}

.load-more-wrap {
    display: grid;
    place-items: center;
    gap: 0.45rem;
    padding: 1.25rem;
    border-top: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.025);
}

.load-more-button {
    min-width: 15rem;
    min-height: 3rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    border: 1px solid rgba(56, 189, 248, 0.35);
    border-radius: 0.5rem;
    background: rgba(56, 189, 248, 0.1);
    color: #e0f2fe;
    font: inherit;
    font-size: 0.85rem;
    font-weight: 950;
    cursor: pointer;
}

.load-more-button:hover,
.load-more-button:focus-visible {
    border-color: rgba(56, 189, 248, 0.7);
    background: rgba(56, 189, 248, 0.18);
    outline: none;
}

.load-more-button:disabled {
    cursor: wait;
    opacity: 0.62;
}

.load-more-chevron {
    width: 0.55rem;
    height: 0.55rem;
    border-right: 0.14rem solid currentColor;
    border-bottom: 0.14rem solid currentColor;
    transform: rotate(45deg) translateY(-0.15rem);
}

.load-more-wrap p {
    margin: 0;
    color: rgba(255, 255, 255, 0.42);
    font-size: 0.72rem;
    font-weight: 800;
}

.match-entry {
    border-bottom: 1px solid var(--border);
}

.match-entry:last-child {
    border-bottom: 0;
}

.match-item {
    display: grid;
    grid-template-columns: minmax(6rem, 0.58fr) minmax(8rem, 0.8fr) minmax(0, 1.35fr) minmax(8rem, 0.7fr) auto;
    gap: 1rem;
    align-items: center;
    min-height: 5.25rem;
    padding: 1rem 1.25rem;
    border-left: 0.35rem solid transparent;
    background: rgba(9, 20, 38, 0.82);
}

.match-item.win {
    border-left-color: var(--blue);
    background:
        linear-gradient(90deg, rgba(56, 189, 248, 0.13), rgba(56, 189, 248, 0.025) 58%, transparent),
        rgba(9, 20, 38, 0.86);
    box-shadow: inset 0 1px rgba(125, 211, 252, 0.07);
}

.match-item.loss {
    border-left-color: var(--red);
    background:
        linear-gradient(90deg, rgba(244, 63, 94, 0.2), rgba(244, 63, 94, 0.055) 62%, rgba(244, 63, 94, 0.025)),
        rgba(18, 15, 29, 0.9);
    box-shadow:
        inset 0 1px rgba(253, 164, 175, 0.1),
        inset 0 -1px rgba(244, 63, 94, 0.08);
}

.match-result {
    display: grid;
    gap: 0.25rem;
}

.match-result strong {
    width: fit-content;
    padding: 0.12rem 0.38rem;
    border-radius: 0.25rem;
    color: #fff;
    font-size: 1rem;
    font-weight: 950;
    line-height: 1.35;
}

.match-result span {
    color: rgba(255, 255, 255, 0.52);
    font-size: 0.8rem;
    font-weight: 800;
}

.match-result .match-age {
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.75rem;
}

.match-item.win .match-result strong {
    color: #7dd3fc;
    background: rgba(14, 165, 233, 0.13);
}

.match-item.loss .match-result strong {
    color: #fecdd3;
    background: rgba(225, 29, 72, 0.22);
}

.label-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.game-mode,
.position-label {
    display: inline-flex;
    align-items: center;
    min-height: 1.6rem;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 900;
    line-height: 1;
}

.game-mode {
    background: rgba(56, 189, 248, 0.13);
    color: #bae6fd;
}

.position-label {
    background: rgba(34, 197, 94, 0.12);
    color: #bbf7d0;
}

.champion-wrap {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #fff;
    font-size: 1.05rem;
    font-weight: 950;
    overflow-wrap: anywhere;
}

.champion-portrait {
    position: relative;
    width: 3rem;
    height: 3rem;
    flex: 0 0 auto;
}

.champion-image {
    width: 100%;
    height: 100%;
    display: block;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 0.75rem;
    object-fit: cover;
    background: rgba(255, 255, 255, 0.08);
}

.champion-name {
    min-width: 0;
}

.champion-level {
    position: absolute;
    right: -0.2rem;
    bottom: -0.2rem;
    flex: 0 0 auto;
    min-width: 1.45rem;
    min-height: 1.35rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.15rem 0.5rem;
    border: 1px solid rgba(250, 204, 21, 0.24);
    border-radius: 999px;
    background: rgba(250, 204, 21, 0.1);
    color: #fef3c7;
    font-size: 0.74rem;
    font-weight: 950;
}

.match-loadout {
    flex: 0 0 auto;
    display: grid;
    grid-template-columns: repeat(2, 1.5rem);
    gap: 0.22rem;
}

.loadout-column {
    display: grid;
    grid-template-rows: repeat(2, 1.5rem);
    gap: 0.18rem;
}

.loadout-column img {
    width: 1.5rem;
    height: 1.5rem;
    display: block;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 0.3rem;
    background: rgba(255, 255, 255, 0.06);
    object-fit: cover;
}

.loadout-column .rune-icon {
    border-radius: 50%;
    background: rgba(3, 9, 20, 0.76);
    object-fit: contain;
}

.kda-wrap {
    display: grid;
    gap: 0.25rem;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.05rem;
    font-weight: 950;
    text-align: right;
    white-space: nowrap;
}

.kda-wrap span {
    color: rgba(255, 255, 255, 0.54);
    font-size: 0.78rem;
    font-weight: 900;
}

.match-toggle {
    min-width: 5.5rem;
    min-height: 2.65rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 0.5rem;
    background: rgba(3, 9, 20, 0.48);
    color: rgba(255, 255, 255, 0.82);
    font: inherit;
    font-size: 0.78rem;
    font-weight: 900;
    cursor: pointer;
}

.match-toggle:hover,
.match-toggle:focus-visible,
.match-toggle[aria-expanded="true"] {
    border-color: rgba(56, 189, 248, 0.5);
    background: rgba(56, 189, 248, 0.13);
    color: #e0f2fe;
    outline: none;
}

.toggle-chevron {
    width: 0.55rem;
    height: 0.55rem;
    border-right: 0.14rem solid currentColor;
    border-bottom: 0.14rem solid currentColor;
    transform: rotate(45deg) translateY(-0.12rem);
    transition: transform 160ms ease;
}

.match-toggle[aria-expanded="true"] .toggle-chevron {
    transform: rotate(225deg) translate(-0.1rem, -0.1rem);
}

.match-detail {
    padding: 0 1.25rem 1.25rem;
    border-left: 0.35rem solid rgba(255, 255, 255, 0.1);
    background: rgba(4, 10, 21, 0.94);
}

.match-detail[hidden] {
    display: none;
}

.detail-heading {
    min-height: 3.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    border-top: 1px solid var(--border);
    color: rgba(255, 255, 255, 0.56);
    font-size: 0.75rem;
}

.detail-heading div {
    min-width: 0;
    display: flex;
    align-items: baseline;
    gap: 0.65rem;
}

.detail-heading span {
    color: #fff;
    font-size: 0.9rem;
    font-weight: 950;
}

.detail-heading strong {
    overflow: hidden;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.detail-heading time {
    flex: 0 0 auto;
}

.team-detail-grid {
    display: grid;
    gap: 0.75rem;
}

.team-detail {
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 0.45rem;
    background: rgba(255, 255, 255, 0.025);
}

.team-detail.victory-team {
    border-top: 0.2rem solid #38bdf8;
    background: rgba(14, 60, 91, 0.15);
}

.team-detail.defeat-team {
    border-top: 0.2rem solid #fb7185;
    background: rgba(91, 27, 43, 0.15);
}

.team-detail.victory-team .team-detail-header {
    background: rgba(56, 189, 248, 0.1);
}

.team-detail.defeat-team .team-detail-header {
    background: rgba(251, 113, 133, 0.1);
}

.team-detail-header {
    min-height: 2.8rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.55rem 0.75rem;
    border-bottom: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.035);
    color: rgba(255, 255, 255, 0.58);
    font-size: 0.75rem;
    font-weight: 800;
}

.team-detail-header div {
    display: flex;
    align-items: center;
    gap: 0.55rem;
}

.team-detail-header strong {
    color: #fff;
    font-size: 0.88rem;
    font-weight: 950;
}

.team-result {
    font-size: 0.72rem;
    font-weight: 950;
}

.team-result.victory {
    color: #7dd3fc;
}

.team-result.defeat {
    color: #fda4af;
}

.participant-table-wrap {
    min-width: 66rem;
}

.participant-table-header,
.participant-row {
    display: grid;
    grid-template-columns: minmax(15rem, 2fr) minmax(4.5rem, 0.55fr) minmax(6rem, 0.75fr) minmax(11rem, 1.1fr) minmax(6rem, 0.75fr) minmax(13rem, 1.3fr);
    gap: 0.75rem;
    align-items: center;
}

.participant-table-header {
    min-height: 2rem;
    padding: 0.35rem 0.75rem;
    border-bottom: 1px solid var(--border);
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.68rem;
    font-weight: 900;
}

.damage-header,
.participant-damage {
    min-width: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.45rem;
}

.damage-header span {
    text-align: center;
}

.damage-metric {
    min-width: 0;
    display: grid;
    gap: 0.28rem;
}

.damage-metric strong {
    overflow: hidden;
    font-size: 0.7rem;
    font-weight: 900;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.damage-metric.dealt strong {
    color: #fda4af;
}

.damage-metric.taken strong {
    color: #cbd5e1;
}

.damage-bar-track {
    height: 0.38rem;
    overflow: hidden;
    border-radius: 0.12rem;
    background: rgba(255, 255, 255, 0.1);
}

.damage-bar-fill {
    height: 100%;
    min-width: 0;
    border-radius: inherit;
}

.damage-metric.dealt .damage-bar-fill {
    background: #fb7185;
}

.damage-metric.taken .damage-bar-fill {
    background: #94a3b8;
}

.participant-row {
    min-height: 3.75rem;
    padding: 0.45rem 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.participant-row:last-child {
    border-bottom: 0;
}

.participant-row.current-player {
    background: rgba(250, 204, 21, 0.08);
    box-shadow: inset 0.2rem 0 #facc15;
}

.participant-player {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.participant-champion {
    position: relative;
    width: 2.55rem;
    height: 2.55rem;
    flex: 0 0 auto;
}

.participant-champion img {
    width: 100%;
    height: 100%;
    display: block;
    border-radius: 0.4rem;
    object-fit: cover;
}

.participant-champion span {
    position: absolute;
    right: -0.25rem;
    bottom: -0.15rem;
    min-width: 1.35rem;
    min-height: 1.1rem;
    display: grid;
    place-items: center;
    padding: 0 0.2rem;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 0.3rem;
    background: #0b1322;
    color: #fff;
    font-size: 0.6rem;
    font-weight: 950;
}

.participant-name,
.participant-stat {
    min-width: 0;
    display: grid;
    gap: 0.15rem;
}

.participant-name a {
    text-decoration: none;
}

.participant-name strong {
    overflow: hidden;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.76rem;
    font-weight: 900;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.participant-name span,
.participant-stat span {
    overflow: hidden;
    color: rgba(255, 255, 255, 0.46);
    font-size: 0.66rem;
    font-weight: 750;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.participant-loadout {
    display: flex;
    align-items: center;
}

.participant-loadout .match-loadout {
    grid-template-columns: repeat(2, 1.35rem);
}

.participant-loadout .loadout-column {
    grid-template-rows: repeat(2, 1.35rem);
}

.participant-loadout .loadout-column img {
    width: 1.35rem;
    height: 1.35rem;
}

.participant-stat strong {
    color: rgba(255, 255, 255, 0.84);
    font-size: 0.74rem;
    font-weight: 900;
}

.participant-items {
    display: flex;
    align-items: center;
    gap: 0.22rem;
}

.participant-items img {
    width: 1.72rem;
    height: 1.72rem;
    flex: 0 0 auto;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.28rem;
    background: rgba(255, 255, 255, 0.06);
}

.empty-items,
.detail-empty {
    color: rgba(255, 255, 255, 0.42);
    font-size: 0.75rem;
}

.detail-empty {
    padding: 1rem 0;
}

.site-footer {
    border-top: 1px solid var(--border);
    background: rgba(3, 7, 18, 0.58);
}

.footer-inner {
    align-items: flex-start;
    padding-block: 1.25rem;
    color: rgba(248, 250, 252, 0.48);
    font-size: 0.78rem;
    line-height: 1.6;
}

.footer-notice {
    max-width: 42rem;
}

.footer-notice p {
    margin: 0;
}

.footer-notice p + p {
    margin-top: 0.25rem;
}

.footer-links {
    display: flex;
    flex: 0 0 auto;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.45rem 1rem;
}

.footer-links a {
    color: rgba(248, 250, 252, 0.72);
    font-weight: 700;
    text-decoration: none;
}

.footer-links a:hover,
.footer-links a:focus-visible {
    color: var(--text);
    text-decoration: underline;
    text-underline-offset: 0.2rem;
}

.legal-main {
    padding-block: clamp(2rem, 5vw, 4rem);
}

.legal-document {
    max-width: 52rem;
    margin-inline: auto;
}

.legal-label {
    margin: 0 0 0.5rem;
    color: var(--blue);
    font-size: 0.78rem;
    font-weight: 900;
    text-transform: uppercase;
}

.legal-document h1 {
    margin: 0;
    font-size: clamp(2rem, 5vw, 3rem);
    letter-spacing: 0;
}

.legal-updated {
    margin: 0.75rem 0 2.5rem;
    color: var(--muted);
    font-size: 0.85rem;
}

.legal-document section {
    padding-block: 1.4rem;
    border-top: 1px solid var(--border);
}

.legal-document h2 {
    margin: 0 0 0.65rem;
    font-size: 1rem;
    letter-spacing: 0;
}

.legal-document section p {
    margin: 0;
    color: var(--muted);
    font-size: 0.92rem;
    line-height: 1.8;
}

.legal-document section a {
    color: var(--blue);
}

@media (max-width: 760px) {
    .header-inner,
    .footer-inner {
        align-items: flex-start;
        flex-direction: column;
    }

    .home-main {
        min-height: 0;
        padding-block: 1rem;
    }

    .home-search-content {
        padding-bottom: 1rem;
    }

    .footer-links {
        justify-content: flex-start;
    }

    .hero,
    .search-field,
    .profile-summary {
        grid-template-columns: 1fr;
    }

    .search-button {
        width: 100%;
    }

    .summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .rank-overview {
        grid-template-columns: 1fr;
        gap: 0.65rem;
    }

    .rank-title {
        padding: 0 0 0.6rem;
        border-right: 0;
        border-bottom: 1px solid var(--border);
    }

    .rank-list {
        grid-template-columns: 1fr;
    }

    .rank-item {
        grid-template-columns: 3rem minmax(0, 1fr) auto;
    }

    .rank-emblem,
    .rank-emblem-placeholder {
        grid-row: 1 / 3;
        width: 3rem;
        height: 3rem;
    }

    .rank-item > small {
        grid-column: 2 / -1;
        white-space: normal;
    }

    .queue-filter {
        align-items: flex-start;
        flex-direction: column;
        gap: 0.5rem;
        padding-inline: 0.75rem;
    }

    .queue-filter-options {
        width: 100%;
    }

    .match-item {
        grid-template-columns: 1fr;
        gap: 0.65rem;
    }

    .kda-wrap {
        text-align: left;
    }

    .match-toggle {
        width: 100%;
    }

    .match-detail {
        padding: 0 0.75rem 0.75rem;
    }

    .detail-heading,
    .team-detail-header {
        align-items: flex-start;
        flex-direction: column;
        gap: 0.25rem;
        padding-block: 0.65rem;
    }

    .participant-table-wrap {
        overflow-x: auto;
    }
}
