/* ═══════════════════════════════════════════════════
   OrangeSMP — Check Stats (lädt nach style.css)
   ═══════════════════════════════════════════════════ */

.stats-page {
    --gold: #facc15;
    --silver: #d4dae3;
    --bronze: #e08a4b;
    --green: #22c55e;
}

/* Alle Icons auf dieser Seite haben feste, kleine Größen */
.stats-page img.ic { width: 22px; height: 22px; max-width: 22px; max-height: 22px; }
.stats-page .btn-icon { display: inline-flex; width: 22px; height: 22px; flex-shrink: 0; }
.stats-page .st-badge-ic img.ic { width: 20px; height: 20px; max-width: 20px; max-height: 20px; }

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

/* ── Kopf ── */
.st-hero { padding-top: 140px; padding-bottom: 80px; }
.st-header { margin-bottom: 40px; }
.st-header .section-title { font-size: clamp(2.4rem, 6vw, 3.6rem); line-height: 1.1; }

/* ── Suche ── */
.st-search {
    display: flex;
    gap: 12px;
    max-width: 720px;
    margin: 0 auto;
}
.st-search-field {
    position: relative;
    flex: 1;
    min-width: 0;
}
.st-input {
    width: 100%;
    height: 60px;
    padding: 0 20px;
    font-family: var(--font-body);
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--white);
    background: rgba(21, 16, 12, 0.75);
    border: 1px solid rgba(249, 115, 22, 0.25);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.04);
    transition: border-color var(--transition), box-shadow var(--transition);
}
.st-input::placeholder { color: var(--gray-500); }
.st-input:focus {
    outline: none;
    border-color: var(--orange-500);
    box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.15), 0 0 30px rgba(249, 115, 22, 0.15);
}
.st-submit {
    height: 60px;
    padding: 0 28px;
    border-radius: var(--radius-lg);
    font-size: 1rem;
    flex-shrink: 0;
}
.st-submit:focus-visible { outline: 2px solid var(--orange-400); outline-offset: 3px; }

.st-hint {
    max-width: 720px;
    margin: 12px auto 0;
    font-size: 0.85rem;
    color: var(--gray-500);
    text-align: center;
}
.st-hint code {
    font-family: ui-monospace, 'SFMono-Regular', Menlo, monospace;
    font-size: 0.85em;
    color: var(--orange-300);
    background: rgba(249, 115, 22, 0.08);
    padding: 1px 6px;
    border-radius: 6px;
}

/* Autocomplete */
.st-suggest {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    z-index: 50;
    max-height: 340px;
    overflow-y: auto;
    list-style: none;
    padding: 6px;
    background: rgba(21, 16, 12, 0.97);
    border: 1px solid rgba(249, 115, 22, 0.25);
    border-radius: var(--radius-md);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}
.st-suggest[hidden] { display: none; }
.st-suggest-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 14px;
    border-radius: 10px;
    color: var(--gray-200);
    font-weight: 500;
    cursor: pointer;
}
.st-suggest-item:hover,
.st-suggest-item.is-active {
    background: rgba(249, 115, 22, 0.12);
    color: var(--white);
}
.st-suggest-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.st-suggest-name mark {
    background: none;
    color: var(--orange-400);
    font-weight: 700;
}
.st-suggest-tag {
    flex-shrink: 0;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: #4ade80;
    padding: 2px 8px;
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: 100px;
}

/* ── Ergebnis ── */
.st-result-wrap {
    max-width: 1040px;
    margin: 40px auto 0;
}
.st-result-wrap:empty { display: none; }

.st-result {
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 36px;
    padding: 36px;
    overflow: visible;
    animation: stIn 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}
.st-result.glass-card:hover {
    transform: none;
    border-color: rgba(249, 115, 22, 0.22);
}
.st-result.glass-card::after { display: none; }
.st-result { border-color: rgba(249, 115, 22, 0.16); }

@keyframes stIn {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: none; }
}

/* Skin mit Glow (wie .team-skin) */
.st-skin {
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    min-height: 300px;
    padding-bottom: 12px;
    align-self: center;
}
.st-skin::before {
    content: '';
    position: absolute;
    bottom: 10px;
    left: 50%;
    width: 220px;
    height: 220px;
    transform: translateX(-50%);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(249, 115, 22, 0.32), transparent 70%);
    filter: blur(8px);
    pointer-events: none;
}
.st-skin::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    width: 130px;
    height: 16px;
    transform: translateX(-50%);
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.6);
    filter: blur(4px);
    pointer-events: none;
}
.st-skin-img {
    position: relative;
    z-index: 1;
    height: 280px;
    width: auto;
    filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.55));
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.st-result:hover .st-skin-img { transform: translateY(-6px) rotate(-2deg); }

.st-info { min-width: 0; }
.st-name-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.st-name {
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    font-weight: 700;
    line-height: 1.15;
    color: var(--white);
    overflow-wrap: anywhere;
}

.st-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 14px 0 26px;
}
.st-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 12px;
    font-size: 0.82rem;
    font-weight: 600;
    line-height: 1.4;
    color: var(--gray-300);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--glass-border);
    border-radius: 100px;
}
.st-badge-ic { display: inline-flex; width: 20px; height: 20px; margin-left: -4px; }
.st-badge-java { color: #7dd3fc; border-color: rgba(56, 189, 248, 0.3); background: rgba(56, 189, 248, 0.07); }
.st-badge-bedrock { color: #86efac; border-color: rgba(34, 197, 94, 0.3); background: rgba(34, 197, 94, 0.07); }
.st-badge-muted { color: var(--gray-400); }

/* Stat-Kacheln */
.st-tiles {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}
.st-tile {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-md);
    transition: border-color var(--transition), background var(--transition);
}
.st-tile:hover { border-color: rgba(249, 115, 22, 0.3); background: rgba(249, 115, 22, 0.04); }
.st-tile-big {
    background: linear-gradient(160deg, rgba(249, 115, 22, 0.09), rgba(249, 115, 22, 0.02) 70%);
    border-color: rgba(249, 115, 22, 0.16);
}
.st-tile-label {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    color: var(--gray-500);
    line-height: 1.35;
    hyphens: auto;
    -webkit-hyphens: auto;
    overflow-wrap: anywhere;
}
.st-tile[class*="st-medal-"] .st-tile-label { padding-right: 16px; }
.st-tile-value {
    font-family: var(--font-heading);
    font-size: 1.45rem;
    font-weight: 700;
    line-height: 1.25;
    color: var(--white);
    font-variant-numeric: tabular-nums;
    overflow-wrap: anywhere;
}
.st-tile-big .st-tile-value { font-size: 1.85rem; }
.st-tile-unit {
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--gray-400);
}
.st-tile-rank {
    margin-top: 2px;
    font-size: 0.78rem;
    color: var(--gray-500);
}
.st-tile-rank b { color: var(--orange-300); font-weight: 700; }

/* Medaillen */
.st-tile.st-medal-1 { border-color: rgba(250, 204, 21, 0.45); background: linear-gradient(160deg, rgba(250, 204, 21, 0.12), rgba(250, 204, 21, 0.02) 70%); }
.st-tile.st-medal-2 { border-color: rgba(212, 218, 227, 0.4); background: linear-gradient(160deg, rgba(212, 218, 227, 0.1), rgba(212, 218, 227, 0.02) 70%); }
.st-tile.st-medal-3 { border-color: rgba(224, 138, 75, 0.45); background: linear-gradient(160deg, rgba(224, 138, 75, 0.12), rgba(224, 138, 75, 0.02) 70%); }
.st-tile.st-medal-1 .st-tile-rank b { color: var(--gold); }
.st-tile.st-medal-2 .st-tile-rank b { color: var(--silver); }
.st-tile.st-medal-3 .st-tile-rank b { color: var(--bronze); }
.st-tile.st-medal-1::after,
.st-tile.st-medal-2::after,
.st-tile.st-medal-3::after {
    content: '';
    position: absolute;
    top: 12px;
    right: 12px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
}
.st-tile.st-medal-1::after { background: var(--gold); box-shadow: 0 0 12px rgba(250, 204, 21, 0.7); }
.st-tile.st-medal-2::after { background: var(--silver); box-shadow: 0 0 12px rgba(212, 218, 227, 0.6); }
.st-tile.st-medal-3::after { background: var(--bronze); box-shadow: 0 0 12px rgba(224, 138, 75, 0.6); }

/* Zusatz-Kacheln: Level, Coins, Kontostand, Team */
.st-xtiles {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 12px;
}
.st-xtile {
    position: relative;
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    max-width: 100%;
    padding: 10px 16px 10px 10px;
    text-align: left;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-md);
    transition: border-color var(--transition), background var(--transition);
}
.st-xtile-ic {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 11px;
    background: rgba(249, 115, 22, 0.1);
    border: 1px solid rgba(249, 115, 22, 0.2);
}
.stats-page .st-xtile-ic img.ic { width: 24px; height: 24px; max-width: 24px; max-height: 24px; }
.st-xtile-body { display: flex; flex-direction: column; min-width: 0; }
.st-xtile-label {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    color: var(--gray-500);
    line-height: 1.35;
}
.st-xtile-value {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--white);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}
.st-xtile-pill {
    flex-shrink: 0;
    padding: 1px 8px;
    font-family: var(--font-body);
    font-size: 0.64rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: var(--orange-300);
    background: rgba(249, 115, 22, 0.12);
    border: 1px solid rgba(249, 115, 22, 0.35);
    border-radius: 100px;
}
.st-xtile-team { padding-right: 34px; cursor: pointer; }
.st-xtile-arrow {
    position: absolute;
    top: 50%;
    right: 16px;
    width: 8px;
    height: 8px;
    margin-top: -4px;
    border-top: 2px solid var(--gray-500);
    border-right: 2px solid var(--gray-500);
    transform: rotate(45deg);
    transition: border-color var(--transition), transform var(--transition);
}
.st-xtile-team:hover,
.st-xtile-team:focus-visible {
    border-color: rgba(249, 115, 22, 0.45);
    background: rgba(249, 115, 22, 0.07);
    outline: none;
}
.st-xtile-team:hover .st-xtile-value,
.st-xtile-team:focus-visible .st-xtile-value { color: var(--orange-300); }
.st-xtile-team:hover .st-xtile-arrow,
.st-xtile-team:focus-visible .st-xtile-arrow { border-color: var(--orange-400); transform: translateX(3px) rotate(45deg); }

.st-result-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}
.st-link {
    display: inline-flex;
    align-items: center;
    padding: 7px 14px;
    font-family: var(--font-body);
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--gray-300);
    text-decoration: none;
    background: none;
    border: 1px solid var(--glass-border);
    border-radius: 100px;
    cursor: pointer;
    transition: var(--transition);
}
.st-link:hover,
.st-link:focus-visible {
    color: var(--orange-400);
    border-color: rgba(249, 115, 22, 0.4);
    background: rgba(249, 115, 22, 0.08);
    outline: none;
}

/* Skeleton */
.st-skel {
    display: block;
    border-radius: 10px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.04) 25%, rgba(255, 255, 255, 0.09) 50%, rgba(255, 255, 255, 0.04) 75%);
    background-size: 200% 100%;
    animation: stShimmer 1.3s linear infinite;
}
@keyframes stShimmer {
    from { background-position: 200% 0; }
    to   { background-position: -200% 0; }
}
.st-skel-body { width: 120px; height: 260px; border-radius: 16px; position: relative; z-index: 1; }
.st-skel-title { width: min(320px, 70%); height: 40px; margin-bottom: 16px; }
.st-skel-line { width: min(260px, 55%); height: 26px; margin-bottom: 26px; border-radius: 100px; }
.st-skel-tile { height: 84px; border-radius: var(--radius-md); }

/* Meldungen */
.st-msg {
    max-width: 680px;
    margin: 0 auto;
    padding: 32px;
    text-align: center;
    animation: stIn 0.35s ease;
}
.st-msg.glass-card:hover { transform: none; }
.st-msg-title {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    color: var(--white);
    margin-bottom: 8px;
}
.st-msg-text { color: var(--gray-400); }
.st-msg-text strong { color: var(--orange-300); font-weight: 600; overflow-wrap: anywhere; }
.st-msg-error { border-color: rgba(239, 68, 68, 0.3); }
.st-msg-error .st-msg-title { color: #fca5a5; }
.st-msg-warn .st-msg-title { color: var(--orange-300); }
.st-retry { margin-top: 18px; padding: 10px 22px; }
.st-chips-label {
    margin: 22px 0 10px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--gray-300);
}
.st-chips {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}
.st-chip {
    padding: 8px 16px;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--white);
    background: rgba(249, 115, 22, 0.1);
    border: 1px solid rgba(249, 115, 22, 0.35);
    border-radius: 100px;
    cursor: pointer;
    transition: var(--transition);
    max-width: 100%;
    overflow-wrap: anywhere;
}
.st-chip:hover,
.st-chip:focus-visible {
    background: var(--orange-500);
    color: #000;
    box-shadow: 0 0 22px rgba(249, 115, 22, 0.45);
    outline: none;
}

/* ── Bestenliste ── */
.st-hero + .st-board-section { padding-top: 64px; }
.st-board-section .section-header { margin-bottom: 40px; }
.st-board {
    max-width: 820px;
    margin: 0 auto;
    padding: 10px;
}
.st-board.glass-card:hover { transform: none; border-color: var(--glass-border); box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4); }
.st-board.glass-card::after { display: none; }

.st-tabs {
    display: flex;
    gap: 4px;
    padding: 4px;
    margin-bottom: 8px;
    background: rgba(0, 0, 0, 0.25);
    border-radius: var(--radius-md);
    overflow-x: auto;
    scrollbar-width: none;
}
.st-tabs::-webkit-scrollbar { display: none; }
.st-tab {
    flex: 1 0 auto;
    padding: 10px 16px;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--gray-400);
    background: none;
    border: 1px solid transparent;
    border-radius: 10px;
    cursor: pointer;
    white-space: nowrap;
    transition: var(--transition);
}
.st-tab:hover { color: var(--orange-300); }
.st-tab[aria-selected="true"] {
    color: var(--white);
    background: rgba(249, 115, 22, 0.15);
    border-color: rgba(249, 115, 22, 0.45);
    box-shadow: 0 0 18px rgba(249, 115, 22, 0.15);
}
.st-tab:focus-visible { outline: 2px solid var(--orange-400); outline-offset: 1px; }

.st-board-list { list-style: none; }
.st-row {
    display: grid;
    grid-template-columns: 40px 40px minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    padding: 10px 14px;
    border-radius: 12px;
    border: 1px solid transparent;
    transition: background var(--transition);
}
.st-row + .st-row { margin-top: 2px; }
.st-row:hover { background: rgba(255, 255, 255, 0.03); }
.st-row-rank {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--gray-500);
    text-align: center;
    font-variant-numeric: tabular-nums;
}
.st-row-head {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.05);
}
.st-row-avatar {
    display: block;
    width: 36px;
    height: 36px;
    image-rendering: pixelated;
}
.st-row-name {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    justify-self: start;
    max-width: 100%;
    padding: 4px 0;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    color: var(--gray-100);
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
}
.st-row-name-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.st-row-name:hover .st-row-name-text,
.st-row-name:focus-visible .st-row-name-text {
    color: var(--orange-400);
    text-decoration: underline;
    text-underline-offset: 4px;
}
.st-row-name:focus-visible { outline: none; }
.st-row-val {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--white);
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}
.st-row-val small {
    font-family: var(--font-body);
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--gray-500);
}

.st-row-top .st-row-rank {
    width: 32px;
    height: 32px;
    line-height: 32px;
    margin: 0 auto;
    border-radius: 50%;
    font-size: 0.95rem;
    color: #1a1208;
}
.st-row.st-medal-1 { background: linear-gradient(90deg, rgba(250, 204, 21, 0.1), transparent 70%); border-color: rgba(250, 204, 21, 0.2); }
.st-row.st-medal-2 { background: linear-gradient(90deg, rgba(212, 218, 227, 0.08), transparent 70%); border-color: rgba(212, 218, 227, 0.15); }
.st-row.st-medal-3 { background: linear-gradient(90deg, rgba(224, 138, 75, 0.1), transparent 70%); border-color: rgba(224, 138, 75, 0.2); }
.st-row.st-medal-1 .st-row-rank { background: var(--gold); box-shadow: 0 0 14px rgba(250, 204, 21, 0.45); }
.st-row.st-medal-2 .st-row-rank { background: var(--silver); box-shadow: 0 0 14px rgba(212, 218, 227, 0.35); }
.st-row.st-medal-3 .st-row-rank { background: var(--bronze); box-shadow: 0 0 14px rgba(224, 138, 75, 0.4); }
.st-row-top .st-row-head { box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.08); }

.st-row-skel .st-skel-rank { width: 24px; height: 18px; margin: 0 auto; }
.st-row-skel .st-skel-head { width: 36px; height: 36px; border-radius: 8px; }
.st-row-skel .st-skel-name { width: 60%; height: 18px; }
.st-row-skel .st-skel-val { width: 70px; height: 18px; }

.st-board-empty {
    padding: 32px 16px;
    text-align: center;
    color: var(--gray-400);
}

.st-updated {
    margin-top: 20px;
    text-align: center;
    font-size: 0.82rem;
    color: var(--gray-500);
}
.st-updated strong { color: var(--gray-300); font-weight: 600; }

/* ── Responsive ── */
@media (max-width: 900px) {
    .st-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 768px) {
    .st-hero { padding-top: 110px; padding-bottom: 56px; }
    .st-hero + .st-board-section { padding-top: 48px; padding-bottom: 72px; }
    .st-result {
        grid-template-columns: 1fr;
        gap: 8px;
        padding: 24px 18px;
    }
    .st-skin { min-height: 0; height: 230px; }
    .st-skin::before { width: 180px; height: 180px; }
    .st-skin-img { height: 210px; }
    .st-skel-body { height: 200px; width: 100px; }
    .st-info { text-align: center; }
    .st-name-row, .st-badges, .st-result-links { justify-content: center; }
    .st-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .st-tile { text-align: left; padding: 12px 14px; }
    .st-tile:last-child:nth-child(odd) { grid-column: 1 / -1; }
    .st-xtiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 10px; }
    .st-xtile-value { flex-wrap: wrap; gap: 2px 8px; white-space: normal; }
    .st-xtile-text { min-width: 0; overflow-wrap: anywhere; }
    .st-xtile-money, .st-xtile-wide { grid-column: 1 / -1; }
}

@media (max-width: 480px) {
    .st-xtile { gap: 10px; padding: 9px 10px 9px 8px; }
    .st-xtile-team { padding-right: 30px; }
    .st-xtile-ic { width: 34px; height: 34px; border-radius: 9px; }
    .stats-page .st-xtile-ic img.ic { width: 20px; height: 20px; max-width: 20px; max-height: 20px; }
    .st-xtile-label { font-size: 0.66rem; letter-spacing: 0.4px; }
    .st-xtile-value { font-size: 1rem; }
}

@media (max-width: 480px) {
    .container { padding: 0 16px; }
    .st-search { flex-direction: column; }
    .st-input, .st-submit { height: 54px; }
    .st-submit { justify-content: center; width: 100%; }
    .st-tile-value { font-size: 1.25rem; }
    .st-tile-big .st-tile-value { font-size: 1.5rem; }
    .st-tile-label { font-size: 0.68rem; letter-spacing: 0.4px; }
    .st-msg { padding: 24px 18px; }
    .st-board { padding: 6px; }
    .st-tabs { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); }
    .st-tab { grid-column: span 2; padding: 9px 6px; font-size: 0.85rem; }
    .st-tab:nth-child(n+4) { grid-column: span 3; }
    .st-row { grid-template-columns: 30px 32px minmax(0, 1fr) auto; gap: 10px; padding: 9px 8px; }
    .st-row-head, .st-row-avatar { width: 32px; height: 32px; }
    .st-row-top .st-row-rank { width: 28px; height: 28px; line-height: 28px; font-size: 0.85rem; }
    .st-row-name { font-size: 0.92rem; }
    .st-row-val { font-size: 0.95rem; }
}

@media (prefers-reduced-motion: reduce) {
    .st-result, .st-msg { animation: none; }
    .st-skel { animation: none; background: rgba(255, 255, 255, 0.06); }
    .st-skin-img, .st-tile, .st-tab, .st-chip, .st-link, .st-xtile, .st-xtile-arrow { transition: none; }
    .st-result:hover .st-skin-img { transform: none; }
}

/* ── Ingame-Rang (LuckPerms-Prefix) ── */
.mc-prefix {
    display: inline-flex;
    align-items: center;
    font-family: var(--font-heading);
    letter-spacing: 0.5px;
    white-space: nowrap;
    text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.6);
}
.st-rank-row { display: flex; align-items: center; gap: 10px; margin: 2px 0 12px; }
.st-rank-label {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--gray-500);
}
.st-rank {
    font-size: 1rem;
    padding: 5px 12px;
    background: rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
}
.st-row-rank-prefix { margin-left: 10px; font-size: 0.72rem; opacity: 0.9; }
@media (max-width: 600px) {
    .st-rank-row { justify-content: center; }
    .st-row-rank-prefix { display: none; }
}
