/* Minecraft look: tooltip panels (#100010 + purple gradient frame), vanilla buttons, text fields,
   deepslate background. Everything is square; 2 CSS px = 1 Minecraft GUI pixel. */
[hidden] { display: none !important; }
body.cmd {
  --dim: #5ec46a;
  --dim-soft: rgba(94, 196, 106, .14);
  --tip-bg: rgba(16, 0, 16, .94);
  --tip-top: #5000ff;
  --tip-bot: #28007f;
  --mc-text: #ffffff;
  --mc-gray: #a8a8a8;
  --mc-dark: #3f3f3f;
  color: var(--mc-text);
  background:
    radial-gradient(1100px 420px at 50% -160px, var(--dim-soft), transparent 70%),
    linear-gradient(rgba(0, 0, 0, .80), rgba(0, 0, 0, .86)),
    url(/snap/assets/gui/deepslate.png) repeat;
  background-size: auto, auto, 64px 64px;
  image-rendering: auto;
  min-height: 100vh;
}
.pixel { font-family: "Pixelify Sans", system-ui, sans-serif; letter-spacing: .5px; }
.mono { font-variant-numeric: tabular-nums; font-family: ui-monospace, Consolas, monospace; }
.big { font-size: 22px; line-height: 1; }
.muted { color: var(--mc-gray); }
.cmd .shadow, .cmd h2, .cmd .pname, .cmd .big, .cmd .brief-main { text-shadow: 2px 2px 0 var(--mc-dark); }

/* ---------- tooltip panel (the core MC element) */
.mc-tooltip, .panel, .prow, .drawer, .pmarker-label, .toast {
  position: relative;
  background: var(--tip-bg);
  border: 2px solid var(--tip-bg);            /* outer dark ring */
  border-radius: 0;
  clip-path: polygon(2px 0, calc(100% - 2px) 0, 100% 2px, 100% calc(100% - 2px), calc(100% - 2px) 100%, 2px 100%, 0 calc(100% - 2px), 0 2px);
  box-shadow: none;
}
.mc-tooltip::before, .panel::before, .prow::before, .drawer::before, .pmarker-label::after, .toast::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  border: 2px solid transparent;
  border-image: linear-gradient(to bottom, var(--tip-top), var(--tip-bot)) 1;
  opacity: .85;
}
.item-tip { position: fixed; left: 0; top: 0; z-index: 3000; padding: 6px 10px; pointer-events: none; display: none; max-width: 340px; }
.item-tip .tip-name { color: #fff; text-shadow: 2px 2px 0 #3f3f3f; }
.item-tip .tip-count { color: var(--mc-gray); }
.item-tip .tip-mod { color: #5555ff; font-style: italic; font-size: 12.5px; }
.item-tip .tip-id { color: #555; font-size: 11px; }

/* ---------- vanilla button (widgets.png, 9-slice) */
.cmd button, .cmd .chip, .cmd .dim-tab {
  font: inherit; font-size: 13px; color: #e0e0e0; text-shadow: 2px 2px 0 #383838;
  background: none; border-style: solid; border-width: 4px; border-radius: 0;
  border-image: url(/snap/assets/gui/button.png) 4 fill / 4px stretch;
  image-rendering: pixelated; padding: 2px 10px; min-height: 30px; cursor: pointer;
}
.cmd button:hover, .cmd .chip:hover, .cmd .dim-tab:hover { border-image-source: url(/snap/assets/gui/button_hover.png); color: #ffffa0; }
.cmd .chip.on, .cmd .dim-tab.on { border-image-source: url(/snap/assets/gui/button_hover.png); color: #ffffa0; }
.cmd .chip:not(.on) { color: #a0a0a0; }
.cmd button:disabled { border-image-source: url(/snap/assets/gui/button_disabled.png); color: #a0a0a0; cursor: default; }
.cmd button.primary { color: #fff; }
.cmd button.danger { color: #ff8080; }
.cmd button:active:not(:disabled) { transform: translateY(1px); }

/* ---------- text fields and selects (chat box / sign editing look) */
.cmd input, .cmd select, .cmd textarea {
  font: inherit; color: #e0e0e0; background: #000; border: 2px solid #a0a0a0; border-radius: 0; padding: 4px 8px; min-height: 30px;
}
.cmd input:focus, .cmd select:focus, .cmd textarea:focus { outline: none; border-color: #fff; }
.cmd input::placeholder { color: #707070; }
.cmd select { appearance: none; padding-right: 26px;
  background: #000 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' shape-rendering='crispEdges'%3E%3Cpath fill='%23e0e0e0' d='M0 0h10v2H8v2H6v2H4V4H2V2H0z'/%3E%3C/svg%3E") no-repeat right 8px center; }

/* ---------- scrollbars (gray block with bevel) */
.cmd ::-webkit-scrollbar { width: 12px; height: 12px; }
.cmd ::-webkit-scrollbar-track { background: #000; }
.cmd ::-webkit-scrollbar-thumb { background: #c6c6c6; border: 2px solid; border-color: #fff #555 #555 #fff; }
.cmd ::-webkit-scrollbar-thumb:hover { background: #dadada; }
.cmd * { scrollbar-color: #c6c6c6 #000; }

/* ---------- top bar */
.topbar {
  position: sticky; top: 0; z-index: 1100; display: flex; align-items: center; gap: 22px; padding: 8px 22px;
  background: rgba(0, 0, 0, .72); border-bottom: 2px solid #000; box-shadow: 0 2px 0 rgba(80, 0, 255, .35);
}
.brand { display: flex; align-items: center; gap: 8px; }
.brand img { width: 28px; height: 28px; image-rendering: pixelated; }
.brand .pixel { font-size: 24px; font-weight: 700; color: #fff; text-shadow: 2px 2px 0 #3f3f3f; }
.status { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.status.good { color: #55ff55; } .status.warn { color: #ffff55; } .status.bad { color: #ff5555; }
.orb-slot { display: inline-flex; align-items: center; justify-content: center; }
.gametime { display: flex; align-items: center; gap: 8px; color: #e0e0e0; font-size: 13px; }
.gametime img { width: 20px; height: 20px; image-rendering: pixelated; }
.online-count { display: flex; align-items: baseline; gap: 6px; }
.online-count .big { color: #55ff55; }
.meters { display: flex; gap: 14px; }
.meter { width: 110px; font-size: 11px; color: var(--mc-gray); }
.meter .track { height: 6px; background: #000; border: 1px solid #555; margin-top: 3px; }
.meter .fill { height: 100%; background: #55ff55; transition: width .8s ease; }
.meter .fill.hot { background: #ffaa00; }
.admin-link img { width: 24px; height: 24px; image-rendering: pixelated; opacity: .8; }
.admin-link:hover img { opacity: 1; }
.cmd .lang-toggle { min-height: 28px; padding: 0 10px; font-family: "Pixelify Sans", sans-serif; }

/* ---------- briefing */
.briefing { padding: 14px 22px 4px; display: flex; flex-wrap: wrap; gap: 8px 10px; align-items: center; min-height: 52px; }
.brief-main { font-size: 16.5px; font-weight: 600; color: #fff; flex-basis: 100%; }
.brief-chip { font-size: 13px; padding: 3px 10px; color: #e0e0e0; background: rgba(0, 0, 0, .55); border: 2px solid #373737; }
.brief-chip.alert { color: #ff5555; border-color: #5a1a1a; }

/* ---------- three-column command area */
.command { display: grid; grid-template-columns: 300px minmax(0, 1fr) 340px; gap: 14px; padding: 10px 22px 16px;
  height: calc(100vh - 140px); min-height: 620px; }
.panel { padding: 12px 14px; min-width: 0; }
.panel-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; position: relative; z-index: 1; }
.panel-head h2 { font-size: 14px; margin: 0; font-weight: 650; color: #fff; font-family: "Pixelify Sans", system-ui, sans-serif; letter-spacing: .5px; }
.panel-head h3 { font-size: 12.5px; margin: 0; font-weight: 600; color: var(--mc-gray); }
.panel-head.sub { margin-top: 14px; }
.panel-head > :last-child:not(h2) { margin-left: auto; }
.roster, .feed { display: flex; flex-direction: column; overflow: hidden; }
.roster-list { overflow-y: auto; display: grid; gap: 8px; align-content: start; flex: 1 1 auto; min-height: 0; padding: 2px; }
.recent-list { display: flex; flex-wrap: wrap; gap: 6px; max-height: 120px; overflow-y: auto; }

/* ---------- roster row: a tooltip panel whose frame colour follows the activity */
.prow { padding: 9px 10px; cursor: pointer; overflow: hidden; transition: transform .15s; }
.prow:hover { transform: translateY(-1px); }
.prow:hover::before { opacity: 1; }
.prow .row1 { display: flex; align-items: center; gap: 10px; }
.prow img.avatar { width: 34px; height: 34px; image-rendering: pixelated; background: #222; border: 2px solid #000; }
.prow .pname { font-weight: 700; font-size: 14.5px; color: #fff; }
.prow .act { display: flex; align-items: center; gap: 5px; font-size: 12px; color: var(--tip-top); filter: brightness(1.35); }
.prow .where { font-size: 12px; color: var(--mc-gray); margin: 6px 0 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hud { display: flex; flex-direction: column; gap: 1px; }
.icons-row { display: flex; height: 10px; }
.icons-row img { width: 10px; height: 10px; image-rendering: pixelated; margin-right: -1px; }
.hudline { display: flex; justify-content: space-between; align-items: center; margin-top: 6px; gap: 6px; }
.slots { display: flex; gap: 0; }
.slot { width: 28px; height: 28px; background: #8b8b8b; border: 2px solid; border-color: #373737 #fff #fff #373737;
  display: flex; align-items: center; justify-content: center; }
.slot:hover { background: #a8a8a8; }
.slot img { width: 22px; height: 22px; image-rendering: pixelated; }
.slot.held { background: #9d9d9d; }
.lvl { font-family: "Pixelify Sans", sans-serif; color: #80ff20; text-shadow: 2px 2px 0 #203f00; font-size: 13px; }
.mini-player { display: inline-flex; align-items: center; gap: 5px; padding: 2px 8px 2px 2px; background: rgba(0, 0, 0, .6);
  border: 2px solid #373737; font-size: 12px; cursor: pointer; color: #e0e0e0; }
.mini-player:hover { border-color: #a0a0a0; }
.mini-player img { width: 18px; height: 18px; image-rendering: pixelated; }

/* ---------- map */
.mapwrap { display: flex; flex-direction: column; padding: 10px; }
.map-bar { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; flex-wrap: wrap; position: relative; z-index: 1; }
.dim-tabs { display: flex; gap: 4px; flex-wrap: wrap; }
.cmd .dim-tab { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; padding: 0 8px 0 4px; }
.dim-tab img { width: 18px; height: 18px; image-rendering: pixelated; }
.dim-tab .count { font-size: 11px; color: #55ff55; }
.map-tools { margin-left: auto; display: flex; gap: 6px; }
#map { flex: 1 1 auto; min-height: 0; border: 2px solid #000; outline: 2px solid #373737; position: relative; z-index: 1; }
.leaflet-container { background: #0b0b0b !important; font: inherit; }
.map-foot { display: flex; gap: 14px; margin-top: 6px; position: relative; z-index: 1; }
.map-foot :last-child { margin-left: auto; }
.pmarker { position: relative; width: 26px; height: 26px; }
.pmarker img { width: 26px; height: 26px; border: 2px solid #000; image-rendering: pixelated; background: #222; box-shadow: 0 0 0 2px var(--pc); }
.pmarker .ring { position: absolute; inset: -8px; border: 2px solid var(--pc); opacity: 0; animation: ping 2.4s infinite; }
@keyframes ping { 0% { transform: scale(.7); opacity: .8; } 100% { transform: scale(1.5); opacity: 0; } }
.leaflet-tooltip.pmarker-label { color: #fff !important; font-weight: 650; font-size: 12px; padding: 2px 8px !important;
  text-shadow: 2px 2px 0 #3f3f3f; background: var(--tip-bg) !important; border: 2px solid var(--tip-bg) !important; border-radius: 0 !important; }
.leaflet-tooltip.pmarker-label::before { display: none; }
.place-icon img { width: 20px; height: 20px; image-rendering: pixelated; filter: drop-shadow(2px 2px 0 rgba(0, 0, 0, .7)); }
/* place names like floating sign / name-tag text */
.leaflet-tooltip.place-label { background: rgba(0, 0, 0, .35) !important; border: 0 !important; box-shadow: none !important;
  color: #fff !important; font-size: 12px; padding: 0 4px !important; border-radius: 0 !important; text-shadow: 2px 2px 0 #3f3f3f; }
.leaflet-tooltip.place-label::before { display: none; }
.leaflet-bar a { background: #000 !important; color: #e0e0e0 !important; border-radius: 0 !important; border-bottom: 2px solid #555 !important; }

/* ---------- feed */
.feed-list { overflow-y: auto; flex: 1 1 auto; min-height: 0; padding-right: 2px; position: relative; z-index: 1; }
.fe { display: grid; grid-template-columns: 22px 1fr; gap: 9px; padding: 6px; align-items: start; border-bottom: 2px solid rgba(255, 255, 255, .04); }
.fe:hover { background: rgba(255, 255, 255, .05); }
.fe img.ic { width: 20px; height: 20px; image-rendering: pixelated; margin-top: 1px; }
.fe .txt { font-size: 13px; line-height: 1.45; color: #e0e0e0; word-break: break-word; }
.fe .meta { font-size: 11px; color: #707070; margin-top: 1px; }
.fe .who { font-weight: 650; color: var(--pc); }
.fe.combat .txt { color: #ffb0b0; }
.fe.fresh { background: rgba(255, 255, 160, .10); }
.fe-day { font-size: 11.5px; color: #ffff55; padding: 10px 6px 4px; position: sticky; top: 0; background: #0d000d; z-index: 1; font-family: "Pixelify Sans", sans-serif; }
.live-dot { width: 8px; height: 8px; background: #55ff55; animation: live 1.6s steps(2) infinite; }
@keyframes live { 50% { opacity: .2; } }
.filters { display: flex; gap: 4px; flex-wrap: wrap; margin-bottom: 8px; position: relative; z-index: 1; }
.cmd .filters .chip { min-height: 26px; padding: 0 8px; font-size: 12px; }

/* ---------- lower */
.lower { display: grid; grid-template-columns: 1.1fr 1fr 1.3fr; gap: 14px; padding: 0 22px 28px; }
.lower .panel > * { position: relative; z-index: 1; }
.ai-hero { display: flex; gap: 14px; align-items: center; }
.ai-input { flex: 1; display: flex; gap: 8px; }
.ai-input input { flex: 1; }
.ai-answer { white-space: pre-wrap; background: rgba(0, 0, 0, .55); border: 2px solid #373737; padding: 12px 14px; margin-top: 12px; line-height: 1.65; color: #e0e0e0; }
.ai-list { max-height: 320px; overflow-y: auto; margin-top: 8px; }
.ai-list details { border-bottom: 2px solid rgba(255, 255, 255, .05); padding: 7px 0; }
.ai-list summary { cursor: pointer; color: var(--mc-gray); font-size: 12.5px; }
.dim-ticks { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.dim-ticks span { font-size: 11.5px; padding: 2px 8px; background: rgba(0, 0, 0, .55); color: #e0e0e0; display: inline-flex; gap: 6px; align-items: center; }
.dim-ticks img { width: 14px; height: 14px; image-rendering: pixelated; }
.chart-title { font-size: 12px; color: var(--mc-gray); }
.lb-panel .tabs { margin: 0; display: flex; gap: 4px; }
.cmd .lb-panel .chip { min-height: 26px; padding: 0 8px; font-size: 12px; }
.lb-panel table td img { width: 16px; height: 16px; image-rendering: pixelated; vertical-align: -3px; margin-right: 4px; }
.cmd table th { color: #a0a0a0; border-bottom: 2px solid #373737; }
.cmd table td { border-bottom: 2px solid rgba(255, 255, 255, .04); }
.rank { font-family: "Pixelify Sans", sans-serif; color: var(--mc-gray); }
.rank.r1 { color: #ffaa00; } .rank.r2 { color: #e0e0e0; } .rank.r3 { color: #c87533; }

/* ---------- drawer */
.drawer-backdrop { position: fixed; inset: 0; background: rgba(0, 0, 0, .5); z-index: 1500; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(470px, 100vw); z-index: 1600; overflow-y: auto; padding: 20px;
  clip-path: none; }
.drawer > * { position: relative; z-index: 1; }
.drawer .hero { display: flex; gap: 16px; align-items: flex-end; padding-bottom: 14px; border-bottom: 2px solid rgba(255, 255, 255, .06); }
.drawer .hero img.body { height: 150px; image-rendering: pixelated; filter: drop-shadow(4px 6px 0 rgba(0, 0, 0, .6)); }
.drawer .hero h2 { margin: 0; font-size: 26px; color: #fff; }
.drawer .close { position: absolute; top: 14px; right: 14px; z-index: 2; }
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 14px 0; }
.kpi { background: rgba(0, 0, 0, .55); border: 2px solid #373737; padding: 8px 10px; }
.kpi b { display: block; font-family: "Pixelify Sans", sans-serif; font-size: 20px; color: #fff; text-shadow: 2px 2px 0 #3f3f3f; }
.kpi span { font-size: 11.5px; color: var(--mc-gray); }
.mix { display: flex; height: 10px; border: 2px solid #000; margin: 6px 0 4px; }
.mix-legend { display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: 11.5px; color: var(--mc-gray); }
.drawer h3 { font-size: 13px; color: #ffff55; margin: 16px 0 8px; font-weight: 600; font-family: "Pixelify Sans", sans-serif; }

.toast { position: fixed; bottom: 18px; right: 18px; padding: 10px 14px; z-index: 2000; max-width: 420px; color: #fff; }
.empty { color: #707070; padding: 18px 0; text-align: center; }

@media (max-width: 1250px) {
  .command { grid-template-columns: 260px minmax(0, 1fr); height: auto; }
  .feed { grid-column: span 2; max-height: 420px; }
  #map { height: 560px; flex: none; }
  .lower { grid-template-columns: 1fr; }
  .meters { display: none; }
}
@media (max-width: 760px) {
  .command { grid-template-columns: minmax(0, 1fr); padding: 10px 16px; }
  .feed { grid-column: auto; }
  .topbar { flex-wrap: wrap; gap: 10px; padding: 8px 16px; }
  .briefing, .lower { padding-left: 16px; padding-right: 16px; }
  .gametime { display: none; }
}

/* ---------- admin tabs + player files */
.admin-tabs { display: flex; gap: 6px; padding: 12px 22px 0; }
#files { padding: 12px 22px 30px; display: grid; gap: 14px; }
#files .panel > *, .pf-head > * { position: relative; z-index: 1; }
.files-top { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.pf-alerts { display: grid; gap: 4px; max-height: 360px; overflow-y: auto; }
.pf-alert { display: flex; gap: 8px; align-items: center; font-size: 13px; padding: 4px 6px; background: rgba(0, 0, 0, .45); }
.pf-alert img { width: 18px; height: 18px; image-rendering: pixelated; }
.pf-alert .faint { margin-left: auto; white-space: nowrap; }
.pf-alert.ping { color: #ffaa55; } .pf-alert.shared_ip { color: #ff8080; } .pf-alert.country { color: #55ffff; }
.pf-graph { width: 100%; max-height: 380px; }
.pf-node { cursor: pointer; }
.pf-table { font-size: 12.5px; }
.pf-table th { cursor: pointer; white-space: nowrap; user-select: none; }
.pf-table th.sorted { color: #ffff55; }
.pf-table tr[data-name] { cursor: pointer; }
.pf-table tr[data-name]:hover td { background: rgba(255, 255, 255, .05); }
.pf-table tr.sel td { background: rgba(170, 85, 255, .18); }
.pf-av { width: 18px; height: 18px; image-rendering: pixelated; vertical-align: -4px; }
.pf-isp { display: inline-block; max-width: 180px; overflow: hidden; text-overflow: ellipsis; vertical-align: bottom; }
.pf-dot { display: inline-block; width: 8px; height: 8px; background: #333; }
.pf-dot.on { background: #55ff55; }
.good { color: #55ff55; } .warn { color: #ffff55; } .bad { color: #ff5555; }
.pf-head { display: grid; grid-template-columns: auto 1fr minmax(280px, 40%); gap: 20px; align-items: start; padding: 16px; margin-bottom: 14px; }
.pf-head img.pf-body { height: 150px; image-rendering: pixelated; filter: drop-shadow(4px 6px 0 rgba(0, 0, 0, .6)); }
.pf-kpis { display: grid; grid-template-columns: repeat(4, minmax(80px, 1fr)); gap: 8px; margin: 10px 0 6px; }
.pf-kpis div { background: rgba(0, 0, 0, .5); border: 2px solid #373737; padding: 6px 8px; }
.pf-kpis b { display: block; font-family: "Pixelify Sans", sans-serif; font-size: 18px; color: #fff; text-shadow: 2px 2px 0 #3f3f3f; }
.pf-kpis span { font-size: 11px; color: var(--mc-gray); }
.small-kpis { grid-template-columns: repeat(6, minmax(70px, 1fr)); }
.pf-portrait .ai-answer { max-height: 340px; overflow-y: auto; margin-top: 8px; }
.pf-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.pf-sec.wide { grid-column: span 2; }
.pf-sec h3 { font-size: 12.5px; color: #ffff55; margin: 12px 0 6px; font-family: "Pixelify Sans", sans-serif; font-weight: 500; }
.pf-heat { display: grid; grid-template-columns: 28px repeat(24, 1fr); gap: 2px; }
.pf-heat .cell { height: 16px; background: rgba(255, 255, 255, .04); }
.pf-heat .hl { font-size: 10px; color: var(--mc-gray); text-align: center; }
.pf-bars { display: flex; align-items: flex-end; gap: 2px; }
.bar-col { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; height: 100%; min-width: 0; }
.bar-col .bar { min-height: 1px; }
.bar-col span { font-size: 9.5px; color: var(--mc-gray); text-align: center; white-space: nowrap; overflow: hidden; height: 13px; }
.pf-line { display: flex; gap: 10px; justify-content: space-between; font-size: 12.5px; padding: 3px 0; border-bottom: 1px solid rgba(255, 255, 255, .04); }
.pf-line span:first-child { color: #e0e0e0; }
.pf-scroll { max-height: 260px; overflow-y: auto; }
.pf-scroll.tall { max-height: 460px; }
.pf-mini { font-size: 12px; }
.pf-mini th, .pf-mini td { padding: 4px 6px; white-space: normal; vertical-align: top; }
.pf-ic { width: 16px; height: 16px; image-rendering: pixelated; vertical-align: -3px; margin-right: 5px; }
.pf-stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 16px; }
.pf-custom { columns: 3; column-gap: 20px; }
.pf-custom .pf-line { break-inside: avoid; }
.pf-tl { display: grid; grid-template-columns: 150px minmax(0, 1fr) minmax(0, 1.3fr); gap: 10px; padding: 3px 0; font-size: 12.5px; border-bottom: 1px solid rgba(255, 255, 255, .04); }
.pf-qbar { position: relative; height: 22px; background: #000; border: 2px solid #373737; margin-bottom: 8px; }
.pf-qbar div { height: 100%; background: #80ff20; }
.pf-qbar span { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 12px; text-shadow: 2px 2px 0 #000; }
.mix-row { display: grid; grid-template-columns: 44px 1fr; gap: 6px; align-items: center; margin: 2px 0; }
.mix-row .mix { margin: 0; }
.inv { display: flex; gap: 14px; align-items: flex-start; margin: 8px 0; }
.slot-row { display: flex; }
.slot { position: relative; }
.slot b { position: absolute; right: 1px; bottom: -1px; font-size: 11px; color: #fff; text-shadow: 1px 1px 0 #3f3f3f; font-family: "Pixelify Sans", sans-serif; }
.slot.ench img { filter: drop-shadow(0 0 3px #aa55ff); }
@media (max-width: 1100px) {
  .files-top, .pf-grid { grid-template-columns: 1fr; }
  .pf-sec.wide { grid-column: auto; }
  .pf-head { grid-template-columns: 1fr; }
  .pf-stat-grid { grid-template-columns: repeat(2, 1fr); }
}
