.rank-lookup {
    margin-top: 22px;
    padding: 26px;
    background: #fff;
    border: 1px solid #eef0f4;
    border-radius: 24px;
    box-shadow: var(--shadow);
}
.rank-lookup p { margin: 8px 0 18px; color: var(--muted); font-size: 13px; }
.rank-lookup form { display: flex; gap: 10px; }
.rank-lookup input {
    flex: 1;
    min-width: 0;
    height: 48px;
    border: 1px solid var(--line);
    border-radius: 13px;
    padding: 0 15px;
    font: inherit;
    direction: ltr;
    text-align: left;
    outline: none;
}
.rank-lookup input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-soft); }
.rank-lookup button {
    height: 48px;
    border: 0;
    border-radius: 13px;
    padding: 0 22px;
    background: var(--blue);
    color: #fff;
    font-weight: 700;
    cursor: pointer;
}
.lookup-result {
    margin-top: 18px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 13px;
    border-radius: 15px;
    background: #f1f8ff;
    color: #68717d;
}
.lookup-result strong { font-size: 25px; color: var(--blue); }
.lookup-result b { margin-right: auto; color: #218ae8; }
.lookup-error {
    margin-top: 15px;
    padding: 12px 14px;
    border-radius: 12px;
    background: #fff3f4;
    color: #a24e5b;
    font-size: 13px;
}
.no-prize { color: #9298a3; font-size: 12px; }
.mobile-prize {
    grid-column: 2 / 4;
    border-top: 1px solid var(--line);
    padding-top: 9px;
    color: #7d8490;
    font-size: 11px;
}
@media (max-width: 760px) {
    .topbar { gap: 10px; }
    .topbar-actions { gap: 6px; }
    .topbar-actions a { min-height: 36px; padding: 0 10px; font-size: 10px; }
    .topbar .brand { font-size: 18px; }
    .sticky-winners {
        top: 84px;
        gap: 5px;
        padding: 6px;
        border-radius: 15px;
    }
    .sticky-title { display: none; }
    .sticky-winner { padding: 6px; grid-template-columns: 25px 1fr; gap: 0 5px; }
    .sticky-winner b { width: 25px; height: 25px; font-size: 11px; }
    .sticky-winner span { font-size: 9px; }
    .sticky-winner strong { font-size: 8px; }
    .rank-lookup { padding: 20px 16px; }
    .rank-lookup form { flex-direction: column; }
    .rank-lookup button { width: 100%; }
    .lookup-result { align-items: flex-start; flex-wrap: wrap; }
    .lookup-result b { width: 100%; margin-right: 0; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
}
.topbar-actions { display: flex; align-items: center; gap: 9px; }
.topbar-actions a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 40px;
    padding: 0 15px;
    border-radius: 12px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.rules-link { color: #69717d; background: #f3f5f8; }
.position-link {
    color: #fff;
    background: linear-gradient(135deg, #258ff0, #55b0ff);
    box-shadow: 0 7px 17px rgba(48, 150, 243, .23);
}
.topbar-actions a:hover { transform: translateY(-2px); }
.position-link:hover { box-shadow: 0 10px 22px rgba(48, 150, 243, .32); }
.sticky-winners {
    position: fixed;
    top: 96px;
    right: 50%;
    z-index: 18;
    width: min(760px, calc(100% - 28px));
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px;
    border: 1px solid rgba(230, 234, 240, .92);
    border-radius: 17px;
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 14px 36px rgba(24, 39, 75, .14);
    backdrop-filter: blur(15px);
    opacity: 0;
    visibility: hidden;
    transform: translate(50%, -18px) scale(.97);
    transition: opacity .28s ease, transform .28s ease, visibility .28s;
}
.sticky-winners.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translate(50%, 0) scale(1);
}
.sticky-title { padding: 0 10px; color: #7c8490; font-size: 11px; white-space: nowrap; }
.sticky-winner {
    flex: 1;
    min-width: 0;
    display: grid;
    grid-template-columns: 28px 1fr;
    align-items: center;
    gap: 0 7px;
    padding: 7px 9px;
    border-radius: 12px;
    background: #f7f9fb;
}
.sticky-winner b {
    grid-row: 1 / 3;
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    border-radius: 9px;
    background: #e9edf2;
}
.sticky-winner.rank-1 { background: #fff8e7; }
.sticky-winner.rank-1 b { color: #e6a400; background: #ffedb6; }
.sticky-winner.rank-2 b { color: #727986; }
.sticky-winner.rank-3 b { color: #ad6d50; background: #ffebe1; }
.sticky-winner span {
    overflow: hidden;
    color: #303540;
    font-size: 11px;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.sticky-winner strong { color: #258ce9; font-size: 10px; }
.hero { animation: heroEnter .65s cubic-bezier(.2,.8,.2,1) both; }
.hero-copy, .countdown-wrap { animation: riseIn .7s .12s ease both; }
.reward-pill { animation: softPulse 2.8s 1s ease-in-out infinite; }
.podium-card { transition: transform .25s ease, box-shadow .25s ease; }
.podium-card:hover { transform: translateY(-5px); box-shadow: 0 18px 38px rgba(24,39,75,.12); }
.position-link span { animation: targetPulse 1.8s ease-in-out infinite; }
#rules, #rank-lookup { scroll-margin-top: 105px; }
@keyframes heroEnter {
    from { opacity: 0; transform: translateY(14px) scale(.985); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes riseIn {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes softPulse {
    50% { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(24,87,145,.12); }
}
@keyframes targetPulse {
    50% { transform: scale(1.18); }
}
