/* stats.projectgaming.gg/minecraft — overview and player profiles. */
:root {
    --mc-accent: #9359ff; --mc-grass: #5abe6e; --mc-grass-deep: #3f8f4f; --mc-dirt: #7a5232; --mc-gold: #f1c40f;
    --mc-red: #e05a5a; --mc-text: #fff; --mc-muted: #a7a7b3; --mc-faint: #6e6e78;
    --mc-bg: #0b0b0e; --mc-card: rgba(18, 18, 24, 0.86); --mc-line: rgba(255, 255, 255, 0.07);
}
* { box-sizing: border-box; }
body.mc {
    margin: 0; background: var(--mc-bg); color: var(--mc-text); min-height: 100vh;
    font-family: 'Roboto', 'Inter', system-ui, sans-serif;
    background-image:
        linear-gradient(180deg, rgba(11, 11, 14, 0) 0, var(--mc-bg) 520px),
        repeating-linear-gradient(90deg, rgba(90, 190, 110, 0.07) 0 16px, rgba(63, 143, 79, 0.07) 16px 32px),
        linear-gradient(180deg, #14301c 0, #0b0b0e 520px);
}
/* Background picture (assets/img/minecraft-bg.*): fixed behind everything, darkened so text stays readable. */
.mc-bg { position: fixed; inset: 0; z-index: -1; background-size: cover; background-position: center top; }
.mc-bg::after { content: ""; position: absolute; inset: 0;
                background: linear-gradient(180deg, rgba(11, 11, 14, .55) 0, rgba(11, 11, 14, .82) 45%, rgba(11, 11, 14, .94) 100%); }
body.mc.mc-has-bg { background: #0b0b0e; }
body.mc.mc-has-bg .mc-card, body.mc.mc-has-bg .mc-tile { background: rgba(14, 14, 20, .84); backdrop-filter: blur(6px); }
body.mc .nav-before { pointer-events: none; position: relative; z-index: 1; }
body.mc .nav-before img { max-width: 170px; height: auto; }
.mc a { color: inherit; }
.mc a:hover { text-decoration: none; }
.mc-wrap { max-width: 1240px; margin: 0 auto; padding: 18px 16px 40px; }
.mc-crumbs { color: var(--mc-muted); font-size: .85rem; margin-bottom: 14px; }
.mc-crumbs a { color: var(--mc-muted); }
.mc-crumbs a:hover { color: #fff; }
.mc-card { background: var(--mc-card); border: 1px solid var(--mc-line); border-radius: 14px; padding: 18px 20px; min-width: 0; }
.mc-card h2 { font-size: 1.05rem; font-weight: 600; margin: 0 0 12px; display: flex; align-items: center; gap: 9px; }
.mc-card h2 i { color: var(--mc-grass); }
.mc-empty { text-align: center; color: var(--mc-muted); padding: 40px 16px; }
.mc-empty i { font-size: 2.2rem; color: var(--mc-grass); margin-bottom: 10px; }
.mc-muted { color: var(--mc-muted); }
.mc-grid { display: grid; gap: 16px; margin-bottom: 16px; }
.mc-grid.two { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); }
.mc-grid.halves { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 900px) { .mc-grid.two, .mc-grid.halves { grid-template-columns: minmax(0, 1fr); } }

/* hero */
.mc-hero { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; justify-content: space-between; margin-bottom: 16px;
           padding: 22px 24px; border-radius: 16px; border: 1px solid rgba(90, 190, 110, .25);
           background: linear-gradient(135deg, rgba(90, 190, 110, .14), rgba(147, 89, 255, .10)), var(--mc-card); }
.mc-hero h1 { font-size: clamp(1.5rem, 4vw, 2.2rem); font-weight: 700; margin: 0 0 6px; }
.mc-hero .sub { color: var(--mc-muted); display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: .92rem; }
.mc-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--mc-faint); margin-right: 6px; vertical-align: 1px; }
.mc-dot.on { background: var(--mc-grass); box-shadow: 0 0 0 4px rgba(90, 190, 110, .18); }
.mc-join { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.mc-ip { font-family: 'Roboto Mono', ui-monospace, monospace; background: rgba(0, 0, 0, .45); border: 1px solid var(--mc-line);
         border-radius: 10px; padding: 10px 14px; font-size: .95rem; white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.mc-btn { display: inline-flex; align-items: center; gap: 8px; border: 0; border-radius: 10px; padding: 10px 16px; font-weight: 600; cursor: pointer;
          background: var(--mc-grass); color: #0b1a10 !important; font-size: .95rem; }
.mc-btn:hover { background: #6fd383; }
.mc-btn.ghost { background: rgba(255, 255, 255, .08); color: #fff !important; }
.mc-btn.ghost:hover { background: rgba(255, 255, 255, .14); }

/* stat tiles */
.mc-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 16px; }
.mc-tile { background: var(--mc-card); border: 1px solid var(--mc-line); border-radius: 12px; padding: 14px 16px; min-width: 0; }
.mc-tile b { display: block; font-size: 1.45rem; font-weight: 700; font-family: 'Roboto Mono', ui-monospace, monospace; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mc-tile span { color: var(--mc-muted); font-size: .82rem; }

/* heads */
.mc-heads { display: flex; flex-wrap: wrap; gap: 8px; }
.mc-heads a { display: inline-flex; align-items: center; gap: 8px; background: rgba(255, 255, 255, .05); border: 1px solid var(--mc-line);
              border-radius: 9px; padding: 4px 11px 4px 4px; font-size: .9rem; }
.mc-heads a:hover { border-color: var(--mc-grass); }
.mc-count { font-size: .78rem; font-weight: 600; color: var(--mc-muted); background: rgba(255, 255, 255, .06); border: 1px solid var(--mc-line);
            border-radius: 10px; padding: 1px 8px; }
.mc-wl-filter { margin-left: auto; width: min(200px, 45%); background: rgba(0, 0, 0, .25); border: 1px solid var(--mc-line); border-radius: 8px;
                color: inherit; font: inherit; font-size: .85rem; font-weight: 400; padding: 5px 10px; }
.mc-wl-filter:focus { outline: none; border-color: var(--mc-grass); }
.mc-wl span.new { display: inline-flex; align-items: center; gap: 8px; border: 1px dashed var(--mc-line); border-radius: 9px;
                  padding: 4px 11px 4px 4px; font-size: .9rem; opacity: .55; }
.mc-wl [hidden] { display: none !important; }
.mc-wl.clip > :nth-child(n+61) { display: none; }
.mc-wl[data-empty]:not([data-empty=""])::after { content: attr(data-empty); color: var(--mc-muted); font-size: .9rem; }
.mc-wl-more { margin-top: 12px; }
.mc-wl-more.phone { display: none; }
@media (max-width: 600px) {
    .mc-wl.clip > :nth-child(n+25) { display: none; }
    .mc-wl-more.phone { display: inline-flex; }
}
.mc-wl-note { margin: 12px 0 0; font-size: .85rem; }
.mc-heads img, .mc-row img { image-rendering: pixelated; border-radius: 4px; background: rgba(255, 255, 255, .06); }

/* leaderboards */
.mc-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.mc-tabs button { background: rgba(255, 255, 255, .05); border: 1px solid var(--mc-line); color: var(--mc-muted); border-radius: 18px;
                  padding: 6px 12px; font-size: .82rem; cursor: pointer; }
.mc-tabs button:hover { color: #fff; }
.mc-tabs button.on { background: var(--mc-grass); border-color: var(--mc-grass); color: #0b1a10; font-weight: 600; }
.mc-board { display: none; }
.mc-board.on { display: block; }
.mc-row { display: grid; grid-template-columns: 34px 36px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 8px 6px;
          border-bottom: 1px solid var(--mc-line); }
.mc-row:last-child { border-bottom: 0; }
.mc-row:hover { background: rgba(255, 255, 255, .03); }
.mc-row .n { color: var(--mc-faint); font-family: 'Roboto Mono', ui-monospace, monospace; text-align: center; }
.mc-row:nth-child(1) .n { color: var(--mc-gold); font-weight: 700; }
.mc-row:nth-child(2) .n { color: #c9d1d9; font-weight: 700; }
.mc-row:nth-child(3) .n { color: #d08b52; font-weight: 700; }
.mc-row .who { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mc-row .v { font-family: 'Roboto Mono', ui-monospace, monospace; font-weight: 600; }
.mc-row .v small { color: var(--mc-muted); font-weight: 400; margin-left: 2px; }

/* map */
.mc-map { position: relative; border-radius: 12px; overflow: hidden; border: 1px solid var(--mc-line); background: #000; aspect-ratio: 16 / 9; }
.mc-map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.mc-map .mc-map-cover { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 10px;
                        background: linear-gradient(rgba(0, 0, 0, .35), rgba(0, 0, 0, .55)); cursor: pointer; border: 0; color: #fff; width: 100%; }
.mc-map .mc-map-cover { text-decoration: none; background: radial-gradient(circle at 50% 40%, rgba(90, 190, 110, .22), transparent 60%),
                        repeating-linear-gradient(90deg, rgba(90, 190, 110, .06) 0 24px, rgba(63, 143, 79, .06) 24px 48px), #08090b; }
.mc-map .mc-map-cover .go { font-weight: 700; font-size: 1.1rem; }
.mc-map .mc-map-cover:hover .go { color: var(--mc-grass); }
@media (max-width: 899px) { .mc-map { aspect-ratio: 16 / 9; } }

/* feed */
.mc-feed { list-style: none; margin: 0; padding: 0; }
.mc-feed li { display: flex; gap: 10px; align-items: flex-start; padding: 8px 0; border-bottom: 1px solid var(--mc-line); font-size: .9rem; }
.mc-feed li:last-child { border-bottom: 0; }
.mc-feed .k { width: 20px; text-align: center; flex: none; margin-top: 2px; }
.mc-feed time { display: block; color: var(--mc-faint); font-size: .78rem; }

/* search */
.mc-search { position: relative; }
.mc-search input { width: 100%; background: rgba(0, 0, 0, .4); border: 1px solid var(--mc-line); border-radius: 10px; color: #fff; padding: 10px 14px 10px 38px; }
.mc-search input:focus { outline: none; border-color: var(--mc-grass); }
.mc-search > i { position: absolute; left: 13px; top: 13px; color: var(--mc-muted); }
.mc-search-results { position: absolute; z-index: 10; left: 0; right: 0; top: calc(100% + 4px); background: #16161c; border: 1px solid var(--mc-line);
                     border-radius: 10px; overflow: hidden; display: none; }
.mc-search-results.open { display: block; }
.mc-search-results a { display: flex; align-items: center; gap: 9px; padding: 8px 12px; }
.mc-search-results a:hover, .mc-search-results a.on { background: rgba(255, 255, 255, .06); }

/* profile */
.mc-profile { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 16px; margin-bottom: 16px; }
@media (max-width: 900px) { .mc-profile { grid-template-columns: minmax(0, 1fr); } }
.mc-skin { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 360px;
           background: radial-gradient(circle at 50% 40%, rgba(90, 190, 110, .18), transparent 65%), var(--mc-card); }
.mc-skin canvas { max-width: 100%; cursor: grab; }
.mc-skin canvas:active { cursor: grabbing; }
.mc-skin .flat { image-rendering: pixelated; max-height: 300px; }
.mc-skin .hint { color: var(--mc-faint); font-size: .75rem; margin-top: 6px; }
.mc-ident h1 { font-size: clamp(1.6rem, 5vw, 2.4rem); font-weight: 700; margin: 0 0 4px; word-break: break-word; }
.mc-ident .meta { display: flex; flex-wrap: wrap; gap: 6px 18px; color: var(--mc-muted); font-size: .9rem; margin-bottom: 14px; }
.mc-badge { display: inline-flex; align-items: center; gap: 6px; border-radius: 14px; padding: 3px 10px; font-size: .78rem; font-weight: 600;
            background: rgba(255, 255, 255, .07); color: var(--mc-muted); }
.mc-badge.on { background: rgba(90, 190, 110, .16); color: var(--mc-grass); }
.mc-discord { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 14px 16px; border-radius: 12px;
              background: rgba(88, 101, 242, .12); border: 1px solid rgba(88, 101, 242, .35); }
.mc-discord img { width: 48px; height: 48px; border-radius: 50%; background: #5865f2; }
.mc-discord .lvl { font-size: 1.6rem; font-weight: 700; font-family: 'Roboto Mono', ui-monospace, monospace; line-height: 1; }
.mc-discord .bar { height: 8px; border-radius: 4px; background: rgba(255, 255, 255, .1); overflow: hidden; margin-top: 6px; min-width: 160px; }
.mc-discord .bar i { display: block; height: 100%; background: linear-gradient(90deg, #5865f2, #9359ff); }
.mc-chart { display: flex; align-items: flex-end; gap: 3px; height: 130px; padding-top: 6px; }
.mc-chart div { flex: 1; min-width: 3px; background: linear-gradient(180deg, var(--mc-grass), var(--mc-grass-deep)); border-radius: 3px 3px 0 0; position: relative; }
.mc-chart div.zero { background: rgba(255, 255, 255, .06); height: 3px !important; }
.mc-chart-axis { display: flex; justify-content: space-between; color: var(--mc-faint); font-size: .75rem; margin-top: 6px; }
.mc-list { list-style: none; margin: 0; padding: 0; }
.mc-list li { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--mc-line); font-size: .9rem; }
.mc-list li:last-child { border-bottom: 0; }
.mc-list li span:last-child { font-family: 'Roboto Mono', ui-monospace, monospace; color: var(--mc-muted); }
.mc-adv { display: flex; flex-wrap: wrap; gap: 6px; }
.mc-adv span { background: rgba(241, 196, 15, .1); border: 1px solid rgba(241, 196, 15, .3); color: #f5d76e; border-radius: 8px; padding: 4px 9px; font-size: .8rem; }
.mc-foot { text-align: center; margin-top: 26px; font-size: .8rem; }
.mc-foot a { color: var(--mc-faint); }
.mc-copied { color: var(--mc-grass); font-size: .82rem; }

/* profile extras: bars, nemesis, whereabouts, advancement ring, compare */
.mc-sub-h { font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; color: var(--mc-muted); margin: 14px 0 6px; font-weight: 600; }
.mc-sub-h small { text-transform: none; letter-spacing: 0; }
.mc-bar { display: grid; grid-template-columns: minmax(90px, 34%) minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 4px 0; font-size: .88rem; }
.mc-bar span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mc-bar span i { width: 16px; text-align: center; color: var(--mc-muted); }
.mc-bar > i { height: 8px; border-radius: 4px; background: rgba(255, 255, 255, .07); overflow: hidden; display: block; }
.mc-bar > i b { display: block; height: 100%; border-radius: 4px; background: var(--mc-grass); min-width: 2px; }
.mc-bar em { font-style: normal; font-family: 'Roboto Mono', ui-monospace, monospace; color: var(--mc-muted); font-size: .8rem; min-width: 46px; text-align: right; }
.mc-nemesis { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 10px; padding: 12px 14px; border-radius: 12px;
              background: linear-gradient(135deg, rgba(224, 90, 90, .18), rgba(224, 90, 90, .04)); border: 1px solid rgba(224, 90, 90, .35); }
.mc-nemesis .tag { font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; background: #e05a5a; color: #fff; border-radius: 8px; padding: 2px 8px; }
.mc-nemesis b { font-size: 1.3rem; }
.mc-lastwords { list-style: none; margin: 0; padding: 0; }
.mc-lastwords li { font-size: .85rem; color: #d6d6de; padding: 5px 0 5px 12px; border-left: 2px solid rgba(224, 90, 90, .5); margin-bottom: 4px; font-style: italic; }
.mc-places { list-style: none; margin: 0; padding: 0; }
.mc-places li { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--mc-line); }
.mc-places li:last-child { border-bottom: 0; }
.mc-places li > i { width: 32px; height: 32px; border-radius: 8px; display: flex; align-items: center; justify-content: center; background: rgba(255, 255, 255, .06); flex: none; }
.mc-places li div { flex: 1; min-width: 0; display: flex; flex-direction: column; font-size: .9rem; }
.mc-places li div span { color: var(--mc-muted); font-size: .85rem; }
.mc-places .mc-btn { padding: 7px 12px; font-size: .85rem; flex: none; }
.mc-adv-top { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.mc-ring { --p: 0; width: 110px; height: 110px; border-radius: 50%; flex: none; display: flex; align-items: center; justify-content: center;
           background: radial-gradient(closest-side, #15151b 78%, transparent 79%), conic-gradient(var(--mc-gold) calc(var(--p) * 1%), rgba(255, 255, 255, .08) 0); }
.mc-ring b { font-family: 'Roboto Mono', ui-monospace, monospace; font-size: 1.4rem; }
.mc-vs-form { display: flex; gap: 8px; align-items: center; margin-top: 12px; flex-wrap: wrap; }
.mc-vs-form > i { color: var(--mc-muted); }
.mc-vs-form input { flex: 1 1 140px; min-width: 0; background: rgba(0, 0, 0, .4); border: 1px solid var(--mc-line); border-radius: 10px; color: #fff; padding: 8px 12px; }
.mc-vs-form input:focus { outline: none; border-color: var(--mc-grass); }
.mc-vs-form .mc-btn { padding: 8px 14px; font-size: .88rem; }
.mc-vs-head { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 14px; align-items: center; margin-bottom: 16px; }
.mc-vs-side { display: flex; align-items: center; gap: 14px; min-width: 0; }
.mc-vs-side.right { flex-direction: row-reverse; text-align: right; }
.mc-vs-side img { width: 72px; height: 72px; border-radius: 8px; image-rendering: pixelated; flex: none; }
.mc-vs-side h2 { margin: 0; font-size: clamp(1.1rem, 4vw, 1.6rem); overflow: hidden; text-overflow: ellipsis; }
.mc-vs-side .score { font-family: 'Roboto Mono', ui-monospace, monospace; color: var(--mc-muted); font-size: .85rem; }
.mc-vs-badge { font-weight: 800; font-size: 1.4rem; color: var(--mc-gold); }
.mc-vs-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(90px, auto) minmax(0, 1fr); gap: 10px; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--mc-line); }
.mc-vs-row:last-child { border-bottom: 0; }
.mc-vs-row .lab { text-align: center; color: var(--mc-muted); font-size: .82rem; }
.mc-vs-row .v { display: flex; align-items: center; gap: 8px; font-family: 'Roboto Mono', ui-monospace, monospace; font-size: .95rem; min-width: 0; }
.mc-vs-row .v.l { flex-direction: row-reverse; text-align: right; }
.mc-vs-row .v i { flex: 1; height: 8px; border-radius: 4px; background: rgba(255, 255, 255, .06); overflow: hidden; display: flex; }
.mc-vs-row .v.l i { justify-content: flex-end; }
.mc-vs-row .v i b { height: 100%; background: rgba(255, 255, 255, .25); border-radius: 4px; }
.mc-vs-row .v.win { color: #fff; font-weight: 700; }
.mc-vs-row .v.win i b { background: var(--mc-grass); }
.mc-vs-row .v .val { white-space: nowrap; }
@media (max-width: 600px) {
    .mc-vs-side img { width: 48px; height: 48px; }
    .mc-vs-row .v i { display: none; }
    .mc-bar { grid-template-columns: minmax(80px, 38%) minmax(0, 1fr) auto; }
}

/* group photo: everyone on the whitelist on grass-block bleachers (assets/js/minecraft-group-photo.js) */
.mc-crew { position: relative; margin-bottom: 16px; }
.mc-crew h2 { flex-wrap: wrap; }
.mc-crew-tools { margin-left: auto; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: .85rem; font-weight: 400; }
.mc-crew-tools .mc-crew-find { margin-left: 0; width: 150px; }
.mc-seg { display: inline-flex; background: rgba(0, 0, 0, .3); border: 1px solid var(--mc-line); border-radius: 9px; padding: 2px; }
.mc-seg button { border: 0; background: none; color: var(--mc-muted); padding: 5px 10px; border-radius: 7px; cursor: pointer; font: inherit; }
.mc-seg button.on { background: var(--mc-grass); color: #0b0b0e; font-weight: 600; }
.mc-seg button:focus-visible, .mc-pal:focus-visible { outline: 2px solid var(--mc-grass); outline-offset: 2px; }
.mc-cheese { padding: 6px 12px; font-size: .85rem; }
.mc-crew-note { font-size: .82rem; margin: 10px 0 0; }

.mc-photo { position: relative; overflow: hidden; border-radius: 12px; padding-top: 44px; isolation: isolate;
            border: 1px solid rgba(255, 255, 255, .08); background: #79a9f5; }
.mc-sky { position: absolute; inset: 0; z-index: 0; pointer-events: none;
          background: linear-gradient(180deg, #5b8ef0 0%, #8cb6f7 55%, #c4dcfb 100%); }
.mc-photo[data-sky="dusk"] .mc-sky { background: linear-gradient(180deg, #3c3a7a 0%, #c0607a 45%, #f3a35f 75%, #ffd38a 100%); }
.mc-photo[data-sky="night"] .mc-sky { background: linear-gradient(180deg, #05060f 0%, #0d1433 55%, #1d2a55 100%); }
.mc-orb { position: absolute; top: 16px; right: 9%; width: 46px; height: 46px; background: #fff6a8;
          box-shadow: 0 0 0 6px rgba(255, 246, 168, .35), 0 0 40px 10px rgba(255, 240, 150, .5); image-rendering: pixelated; }
.mc-photo[data-sky="dusk"] .mc-orb { top: auto; bottom: 34%; background: #ffb347; box-shadow: 0 0 0 6px rgba(255, 179, 71, .35), 0 0 50px 16px rgba(255, 140, 60, .45); }
.mc-photo[data-sky="night"] .mc-orb { width: 34px; height: 34px; background: #e9ecf5;
          box-shadow: inset -8px -6px 0 #c9cfdf, 0 0 0 5px rgba(233, 236, 245, .12), 0 0 30px 6px rgba(200, 210, 255, .25); }
.mc-cloud { position: absolute; height: 14px; width: 90px; background: rgba(255, 255, 255, .92); left: -140px;
            box-shadow: 14px -14px 0 rgba(255, 255, 255, .92), 42px -14px 0 rgba(255, 255, 255, .92), 28px 0 0 rgba(255, 255, 255, .92), 70px 0 0 rgba(255, 255, 255, .92);
            animation: mc-drift linear infinite; }
.mc-cloud.c1 { top: 22px; animation-duration: 70s; animation-delay: -22s; }
.mc-cloud.c2 { top: 60px; transform: scale(.7); animation-duration: 95s; animation-delay: -40s; opacity: .8; }
.mc-cloud.c3 { top: 36px; transform: scale(1.2); animation-duration: 120s; animation-delay: -80s; opacity: .7; }
.mc-photo[data-sky="night"] .mc-cloud { opacity: .12; }
.mc-photo[data-sky="dusk"] .mc-cloud { background: rgba(255, 214, 190, .85); }
@keyframes mc-drift { from { left: -160px; } to { left: 110%; } }
.mc-star { position: absolute; width: 3px; height: 3px; background: #fff; animation: mc-twinkle 4s ease-in-out infinite; }
@keyframes mc-twinkle { 0%, 100% { opacity: .9; } 50% { opacity: .25; } }

/* Without the script: a plain wrapped row of skins. */
.mc-stage { position: relative; z-index: 1; display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-end; gap: 4px 2px; padding: 0 8px 18px; }
.mc-stage.laid { display: block; padding: 0; }
.mc-pal { position: relative; display: block; width: 56px; height: 112px; flex: none; cursor: pointer; text-decoration: none !important;
          transform-origin: 50% 100%; transition: transform .18s ease, filter .18s ease, opacity .18s ease; }
.mc-stage.laid .mc-pal { position: absolute; transition: left .6s cubic-bezier(.2, .8, .2, 1), bottom .6s cubic-bezier(.2, .8, .2, 1),
                         width .6s ease, height .6s ease, transform .18s ease, filter .18s ease; }
.mc-pal img { width: 100%; height: 100%; object-fit: contain; object-position: 50% 100%; image-rendering: pixelated;
              filter: drop-shadow(0 3px 2px rgba(0, 0, 0, .35)); pointer-events: none; user-select: none; }
.mc-pal .tag { position: absolute; bottom: 100%; left: 50%; transform: translate(-50%, -2px); white-space: nowrap; pointer-events: none;
               background: rgba(0, 0, 0, .55); color: #fff; font-family: 'Roboto Mono', ui-monospace, monospace; font-size: .72rem;
               padding: 1px 6px; border-radius: 3px; opacity: 0; transition: opacity .15s ease; }
.mc-pal .tag .mc-dot { width: 7px; height: 7px; margin-right: 4px; vertical-align: 0; }
.mc-pal.on .tag, .mc-pal.hot .tag { opacity: 1; }
.mc-stage.focus .mc-pal.on:not(.hot) .tag { opacity: 0; }
.mc-pal.on img { filter: drop-shadow(0 0 6px rgba(90, 190, 110, .9)) drop-shadow(0 3px 2px rgba(0, 0, 0, .35)); }
.mc-pal.on { animation: mc-bob 2.6s ease-in-out infinite; animation-delay: calc(var(--bob, 0s) * -1); }
@keyframes mc-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-3%); } }
.mc-pal.new { opacity: .45; }
.mc-pal.new img { filter: grayscale(.85) brightness(1.15); }
.mc-stage.focus .mc-pal:not(.hot) { filter: brightness(.5) saturate(.6); }
.mc-pal.hot { transform: translateY(-5%) scale(1.07); z-index: 400 !important; animation: none; opacity: 1; }
.mc-pal.hot img { filter: drop-shadow(0 0 0 #fff) drop-shadow(0 0 8px rgba(255, 255, 255, .55)) drop-shadow(0 4px 3px rgba(0, 0, 0, .4)); }

/* The grass-block step under each row. */
.mc-step { position: absolute; pointer-events: none; border-radius: 2px;
           background:
               linear-gradient(180deg, #84d05f 0, #62ad41 var(--px), #4f8f34 calc(var(--px) * 1.5), transparent calc(var(--px) * 1.5)),
               repeating-linear-gradient(90deg, rgba(0, 0, 0, .1) 0 var(--px), transparent var(--px) calc(var(--px) * 2)),
               repeating-linear-gradient(0deg, rgba(0, 0, 0, .08) 0 var(--px), transparent var(--px) calc(var(--px) * 2)),
               linear-gradient(180deg, #8a6342, #6a4930);
           box-shadow: 0 -2px 0 rgba(255, 255, 255, .12) inset, 0 6px 14px rgba(0, 0, 0, .25); }

/* "Say cheese": a camera flash and everyone hops. */
.mc-flash { position: absolute; inset: 0; z-index: 500; background: #fff; opacity: 0; pointer-events: none; }
.mc-photo.snap .mc-flash { animation: mc-flash .7s ease-out; }
.mc-photo.snap .mc-pal { animation: mc-hop .6s cubic-bezier(.3, 1.6, .5, 1) var(--hop, 0s) 2; }
@keyframes mc-flash { 0% { opacity: 0; } 8% { opacity: .95; } 100% { opacity: 0; } }
@keyframes mc-hop { 0%, 100% { transform: translateY(0); } 40% { transform: translateY(-14%); } }

.mc-polaroid { position: absolute; right: 8px; bottom: 6px; z-index: 300; pointer-events: none; color: rgba(255, 255, 255, .85);
               font-family: 'Roboto Mono', ui-monospace, monospace; font-size: .7rem; background: rgba(0, 0, 0, .35); padding: 2px 8px; border-radius: 4px; }

.mc-pal-card { position: absolute; z-index: 600; width: 236px; padding: 12px 14px; border-radius: 12px; pointer-events: none;
               background: rgba(12, 12, 16, .96); border: 1px solid rgba(90, 190, 110, .35); box-shadow: 0 12px 30px rgba(0, 0, 0, .5);
               animation: mc-pop .14s ease-out; }
@keyframes mc-pop { from { opacity: 0; transform: translateY(4px) scale(.97); } to { opacity: 1; transform: none; } }
.mc-pal-card .hd { display: flex; gap: 10px; align-items: center; margin-bottom: 8px; }
.mc-pal-card .hd img { border-radius: 6px; image-rendering: pixelated; background: rgba(255, 255, 255, .06); }
.mc-pal-card .hd b { display: block; font-size: 1rem; line-height: 1.2; word-break: break-all; }
.mc-pal-card .st { display: block; font-size: .78rem; color: var(--mc-muted); }
.mc-pal-card .st.on { color: var(--mc-grass); }
.mc-pal-card .st.new { color: var(--mc-gold); }
.mc-pal-card .st .mc-dot { width: 7px; height: 7px; margin-right: 5px; vertical-align: 0; }
.mc-pal-card .gr { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 10px; font-size: .74rem; color: var(--mc-muted); }
.mc-pal-card .gr em { display: block; font-style: normal; font-family: 'Roboto Mono', ui-monospace, monospace; font-weight: 700; font-size: .95rem; color: #fff; }
.mc-pal-card .ft { margin-top: 8px; font-size: .76rem; color: var(--mc-muted); }
.mc-pal-card .go { margin-top: 8px; font-size: .76rem; color: var(--mc-grass); font-weight: 600; }

@media (max-width: 600px) {
    .mc-crew-tools { margin-left: 0; width: 100%; }
    .mc-crew-tools .mc-crew-find { flex: 1; min-width: 0; width: auto; }
    .mc-photo { padding-top: 34px; }
    .mc-polaroid { display: none; }
    /* The card goes under the photo on phones, where it would cover it. */
    .mc-pal-card { position: static; width: auto; margin-top: 10px; }
}
.mc-photo.still .mc-cloud, .mc-photo.still .mc-star, .mc-photo.still .mc-pal, .mc-photo.still .mc-pal-card { animation: none !important; }
.mc-photo.still .mc-stage.laid .mc-pal { transition: none; }
.mc-stage.instant .mc-pal { transition: none !important; }
/* Only the figure itself (head, arms, legs) takes the mouse, so faces peeking between the
   shoulders of the row in front can still be hovered. Minecraft body renders are 16x32:
   head 8 wide on top, torso + arms 16 wide, legs 8 wide. */
.mc-stage.laid .mc-pal { pointer-events: none; }
.mc-pal .hit { position: absolute; inset: 0 1%; pointer-events: auto;
               clip-path: polygon(25% 0, 75% 0, 75% 25%, 100% 25%, 100% 62.5%, 75% 62.5%, 75% 100%, 25% 100%, 25% 62.5%, 0 62.5%, 0 25%, 25% 25%); }

/* The group photo in 3D (minecraft-group-photo-3d.js). */
.mc-seg[hidden], .mc-3d-help { display: none; }
.mc-crew:has(.mc-photo.is3d) .mc-3d-help { display: inline; }
.mc-3d-help kbd { font-family: 'Roboto Mono', ui-monospace, monospace; font-size: .72rem; padding: 0 4px; margin: 0 1px;
                  border: 1px solid var(--mc-line); border-radius: 4px; background: rgba(0, 0, 0, .3); }
.mc-3d { display: none; position: relative; z-index: 1; height: clamp(340px, 46vw, 620px); cursor: grab; touch-action: none; }
.mc-3d.drag { cursor: grabbing; }
.mc-3d.point { cursor: pointer; }
.mc-3d canvas { display: block; width: 100%; height: 100%; outline: none; }
.mc-3d canvas:focus-visible { box-shadow: inset 0 0 0 2px var(--mc-grass); }
.mc-3d-home { position: absolute; left: 8px; bottom: 6px; z-index: 2; border: 0; border-radius: 6px; cursor: pointer;
              background: rgba(0, 0, 0, .45); color: #fff; font: inherit; font-size: .74rem; padding: 4px 9px; }
.mc-3d-home:hover, .mc-3d-home:focus-visible { background: rgba(0, 0, 0, .7); }
.mc-photo.is3d { padding-top: 0; }
.mc-photo.is3d .mc-3d { display: block; }
.mc-photo.is3d .mc-orb, .mc-photo.is3d .mc-cloud { display: none; }
/* The 2D people stay as links for keyboards and screen readers, out of sight. */
.mc-photo.is3d .mc-stage { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.mc-photo.loading3d::after { content: 'Loading 3D…'; position: absolute; left: 50%; top: 14px; transform: translateX(-50%); z-index: 600;
                             background: rgba(0, 0, 0, .55); color: #fff; font-size: .78rem; padding: 3px 10px; border-radius: 999px; }

/* Leaderboards and recent activity: the first few, then "View more". */
.mc-fold:not(.mc-open) .more { display: none !important; }
.mc-more { display: flex; justify-content: center; width: 100%; margin-top: 10px; padding: 7px 12px; font-size: .85rem; }
