:root {
    --yellow: #ffdd2d;
    --text: #fffefb;
    --silverA: #f5f5f5;
    --silverB: #cfcfcf;
    --silverC: #9e9e9e;
    --bronzeA: #f1c086;
    --bronzeB: #b47d33;
    --bronzeC: #6a3f15;
}

* {
    box-sizing: border-box
}

body {
    margin: 0;
    font-family: Inter, Manrope, system-ui, sans-serif;
    color: var(--text);
    background: #0f0f10;
    overflow-x: hidden
}

/* BG */
#bg-gradient {
    position: fixed;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(1100px 700px at 60% -10%, #333, #111),
        radial-gradient(900px 600px at 0% 100%, #2b2b2b, #121212)
}

#bg-mascots {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 3;
    overflow: hidden
}

#bg-particles {
    position: fixed;
    pointer-events: none;
    inset: 0;
    z-index: 1;
}

/* Layout */
.container {
    max-width: 1200px;
    margin: auto;
    padding: 24px;
    z-index: 2;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    flex-wrap: wrap
}

.brand-row {
    display: flex;
    align-items: center;
    gap: 12px
}

.logo {
    height: 40px;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .5))
}

.title {
    margin-left: 18px;
    font-weight: 900;
    font-size: 26px
}

.brand-sub {
    font-size: 13px;
    color: #cfcfcf;
    margin: 14px 0 0 70px;
    opacity: .85
}

.meta {
    display: flex;
    align-items: center;
    gap: 10px
}

.countdown {
    background: rgba(0, 0, 0, .25);
    padding: 6px 10px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, .08);
    font-weight: 700
}

.badge-live {
    background: var(--yellow);
    color: #111;
    border-radius: 999px;
    padding: 6px 12px;
    font-weight: 900
}

.hero {
    margin: 24px 0 32px;
    text-align: center;
    border-top: 1px solid var(--yellow);
}

.hero h1 {
    font-size: 28px
}

/* Summary */
.summary-mini {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-left: 20px;
    padding: 6px 14px;

    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;

    backdrop-filter: blur(6px);
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.25);
}

.summary-mini .summary-item {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    font-weight: 600;
    color: #eaeaea;
}

.summary-mini .summary-item span {
    margin-left: 6px;
    color: #fff;
    font-weight: 800;
}

.bounty-sum {
    background: linear-gradient(90deg, #ffd447, #ffdd2d, #ffaa00, #ffd447);
    background-size: 220% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: bounty-shimmer 3s linear infinite;
}

@keyframes bounty-shimmer {
    0% {
        background-position: 200% 0
    }

    100% {
        background-position: -200% 0
    }
}

/* Top3 */
.top3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin: 18px 0
}

.card {
    position: relative;
    border-radius: 26px;
    background: linear-gradient(180deg, rgba(20, 20, 20, .6), rgba(15, 15, 15, .45));
    padding: 36px;
    min-height: 170px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, .35);
    overflow: hidden;
}

.rim {
    position: absolute;
    inset: 0;
    border-radius: 30px;
    padding: 24px;
    pointer-events: none;
    z-index: 1;
}

.rim::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 30px;
    padding: 10px;
    background: var(--rim-grad);
    background-size: 200% 100%;
    animation: rim-shimmer 6s linear infinite;
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    mask-composite: exclude
}

.rim.gold {
    --rim-grad: linear-gradient(90deg, #ffd447, #ffdd2d, #ffaa00, #ffd447)
}

.rim.silver {
    --rim-grad: linear-gradient(90deg, var(--silverA), var(--silverB), var(--silverC), var(--silverA))
}

.rim.bronze {
    --rim-grad: linear-gradient(90deg, var(--bronzeA), var(--bronzeB), var(--bronzeC), var(--bronzeA))
}

@keyframes rim-shimmer {
    0% {
        background-position: 0% 0
    }

    100% {
        background-position: -200% 0
    }
}

.content {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 20px
}

.avatar {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    /* background: #222; */
    overflow: hidden;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center
}

.avatar img {
    width: 100%;
}

.avatar-glow-gold {
    /* box-shadow: 0 0 36px rgba(255, 221, 45, .55) */
}

.avatar-glow-silver {
    /* box-shadow: 0 0 36px rgba(220, 220, 220, .55) */
}

.avatar-glow-bronze {
    /* box-shadow: 0 0 36px rgba(180, 120, 50, .55) */
}

.info {
    display: flex;
    flex-direction: column
}

.nick {
    font-weight: 800;
    font-size: 22px;
    margin-bottom: 6px;
    text-shadow: 0 0 8px rgba(0, 0, 0, .7)
}

.points {
    font-weight: 900;
    font-size: 36px;
    color: var(--yellow)
}

.reports {
    align-self: flex-start;
    margin-top: 4px;
    padding: 3px 8px;

    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 6px;

    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: 0.2px;
    color: #eaeaea;

    backdrop-filter: blur(4px);
    box-shadow: inset 0 0 6px rgba(255, 221, 45, 0.07);
}

/* List */
.list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: 6px
}

.row {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, .03);
    border: 1px solid rgba(255, 255, 255, .07);
    border-radius: 14px;
    padding: 12px 14px
}

.rank {
    width: 32px;
    text-align: center;
    font-weight: 900
}

.row .nick {
    font-weight: 700
}

.row .points {
    margin-left: auto;
    margin-right: 10px
}

.row .reports {
    margin-left: auto;
    margin-right: 4px;
}


/* Mascot container & bubble */
.mascot-wrapper {
  position: absolute;
  transform-origin: center;
  pointer-events: none;

  opacity: 0;             /* start */
  transform: scale(0);    /* start */

  transition:
    opacity 1.2s ease,
    transform 1.2s cubic-bezier(.22,1.2,.32,1);
}

.mascot-wrapper img {
  pointer-events: auto;
  cursor: pointer;

  position: relative;
  z-index: 5;

  opacity: 0.6;
  filter: blur(1px);

  box-shadow: 0 0 22px rgba(0,0,0,.25);
  transition: box-shadow .25s ease, filter .25s ease;
}

.mascot-wrapper.mascot-hide {
  opacity: 0 !important;
  transform: scale(0.85) !important;
  transition-duration: 0.9s;
}

.mascot-wrapper.glitch img{
  animation:glitch 0.25s steps(2,end) 1;
}

@keyframes glitch{
  0%{transform:translate(0,0);}
  20%{transform:translate(-2px,2px);}
  40%{transform:translate(2px,-2px);}
  60%{transform:translate(-1px,1px);}
  100%{transform:translate(0,0);}
}

.mascot-bubble {
    position: absolute;
    left: 80%;
    bottom: 90%;
    opacity: 0.6;
    background: rgba(25, 25, 25, 0.75);
    border: 2px solid rgba(255, 221, 45, 0.3);
    border-radius: 24px 24px 24px 6px;
    padding: 10px 14px;
    color: var(--yellow);
    font-weight: 600;
    font-size: 13px;
    box-shadow: 0 0 12px rgba(255, 221, 45, 0.1);
    backdrop-filter: blur(4px);
    pointer-events: none;
    transform: translateY(0);
    transition: opacity .3s, transform .3s;
    white-space: nowrap;
}

.mascot-bubble::after {
    content: "";
    position: absolute;
    bottom: -6px;
    left: 14px;
    border-width: 6px 8px 0;
    border-style: solid;
    border-color: rgba(25, 25, 25, 0.75) transparent transparent transparent
}

/* Footer */
.footer {
    color: #b9b9b9;
    margin: 18px 0 8px;
    font-size: 14px;
    text-align: center;
}

/* Responsive */
@media (max-width:1000px) {
    .top3 {
        grid-template-columns: 1fr
    }

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