/* Eventos. */
.events { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 760px) { .events { grid-template-columns: minmax(0, 1fr); } }
/* The event's picture on top in its own proportion (the banners are 546x180), then its text. */
.event { display: flex; flex-direction: column; min-width: 0; }
.event .art { aspect-ratio: 546 / 180; max-width: 100%; border-bottom: 2px solid var(--ember); }
.event .art.icon img { height: 74%; width: auto; }
.event .body { padding: 12px 14px; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.event h3 { margin: 0; font: 700 19px/1.2 var(--body); color: var(--title); }
.event .when { color: var(--gold-hi); font-weight: 700; }
.event .count { color: var(--muted); font-size: 15px; }
.event .count b { color: var(--text); }
.event .rule { margin-top: 4px; color: var(--muted); font-size: 14px; }
.agenda { margin-top: 18px; }
.agenda ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 20px; }
@media (max-width: 760px) { .agenda ol { grid-template-columns: minmax(0, 1fr); } }
.agenda li { display: flex; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 15px; min-width: 0; }
.agenda li span:first-child { color: var(--gold); font-weight: 700; flex: none; width: 106px; }

/* Rankings. */
.rank-note { margin: 0 0 10px; color: var(--muted); font-size: 15px; }
.rank-note b { color: var(--gold); }
td.pos { width: 54px; color: var(--muted); font-weight: 700; }
td.pos img { width: 25px; height: 16px; vertical-align: -2px; }
.owner { display: flex; gap: 14px; align-items: center; padding: 10px; margin-bottom: 12px; border: 1px solid var(--rim-dark); background: #ffffff06; }
.owner .pic { width: 110px; aspect-ratio: 546 / 180; flex: none; background: url('../art/poster.webp') center / cover no-repeat; border: 1px solid var(--rim-dark); }
.owner b { color: var(--gold-hi); font-size: 19px; }
.owner span { color: var(--muted); font-size: 14px; }

/* Histórico do PvP. */
.pvp-filter { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-bottom: 12px; }
.pvp-filter label { color: var(--gold); font-weight: 700; font-size: 15px; }
.pvp-filter input { width: 220px; max-width: 100%; }
.killed { color: var(--ember); font-weight: 700; padding: 0 2px; }
.where { color: #d9c9a3; }
.mode { display: inline-block; padding: 1px 7px; font-size: 12px; border: 1px solid var(--rim-dark); color: var(--muted); }
.more { display: flex; justify-content: center; padding-top: 12px; }
.more[hidden] { display: none; }

/* Histórico do item. */
.history { display: grid; grid-template-columns: minmax(0, 360px) minmax(0, 1fr); gap: 18px; align-items: start; }
@media (max-width: 820px) { .history { grid-template-columns: minmax(0, 1fr); } }
.lookup label { display: block; margin-bottom: 6px; color: var(--gold); font-size: 15px; font-weight: 700; }
.lookup .row { display: flex; gap: 12px; align-items: center; }
.lookup input { flex: 1; height: 38px; font-size: 16px; }
.lookup .hint { margin: 12px 0 0; color: var(--muted); font-size: 14px; }
.result-head { display: flex; gap: 14px; align-items: center; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.item-pic { width: 64px; height: 64px; flex: none; display: grid; place-items: center; background: #0f0d0b; border: 1px solid #7a6440; }
.item-pic img { max-width: 56px; max-height: 56px; image-rendering: pixelated; }
.result-head h4 { margin: 0; font: 700 20px/1.2 var(--body); color: #ff9a62; }
.result-head .meta { color: var(--muted); font-size: 14px; }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 12px 0; }
@media (max-width: 520px) { .facts { grid-template-columns: minmax(0, 1fr); } }
.fact { padding: 7px 10px; border: 1px solid var(--line); background: #ffffff05; min-width: 0; }
.fact span { display: block; color: var(--muted); font-size: 13px; }
.fact b { color: var(--text); font-weight: 600; }
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { display: grid; grid-template-columns: 106px minmax(0, 1fr); gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.timeline time { color: var(--gold); font-size: 14px; font-weight: 700; }
.timeline .what b { color: var(--title); }
.timeline .what small { display: block; color: var(--muted); font-size: 14px; }
