.egrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 8px; margin-top: 12px; }
.ecard { display: grid; gap: 3px; padding: 9px 12px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); color: var(--text); }
.ecard:hover { border-color: var(--gold); text-decoration: none; }
.ename { font-weight: 600; }
.emeta { font-size: 12px; color: var(--text-muted); }
.emeta b { color: var(--gold); font-weight: 600; }
.crumbs { font-size: 13px; margin: 14px 0 8px; }
.ev-banner { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 1; max-height: 260px; width: 100%; background: var(--surface-2); }
.ev-banner img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ev-banner .elogo { position: absolute; left: 3%; top: 8%; width: 50%; height: 84%; object-fit: contain; object-position: left center; filter: drop-shadow(0 2px 3px rgba(0,0,0,.8)); }
.ev-title { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin: 10px 0 6px; }
.ev-title .page-title { margin: 0; font-size: 22px; }
.tabs { display: flex; flex-wrap: wrap; gap: 4px; border-bottom: 1px solid var(--border); margin: 6px 0 10px; }
.tab { background: none; border: 0; border-bottom: 2px solid transparent; color: var(--text-muted); padding: 7px 12px; font: inherit; font-size: 14px; cursor: pointer; }
.tab small { color: var(--text-faint); font-size: 11px; }
.tab.on { color: var(--gold); border-bottom-color: var(--gold); font-weight: 600; }
details.stage { border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); margin: 6px 0; }
details.stage > summary { cursor: pointer; padding: 10px 14px; display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 12px; align-items: baseline; list-style: none; }
details.stage > summary::-webkit-details-marker { display: none; }
details.stage[open] > summary { border-bottom: 1px solid var(--border); background: var(--surface-2); }
.sname { font-weight: 600; }
.sboss { color: var(--text-muted); font-size: 13px; }
.smeta { color: var(--text-faint); font-size: 12.5px; white-space: nowrap; }
.sbody { padding: 12px 14px 4px; }
.mods { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 4px; }
.mods span { font-size: 12.5px; padding: 3px 9px; border-radius: 999px; background: color-mix(in srgb, var(--gold) 12%, transparent); color: var(--text); }
.wave-title { font-size: 12px; color: var(--gold); text-transform: uppercase; letter-spacing: .06em; margin: 12px 0 6px; }
.foes { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); gap: 10px; }
.foe { border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg, var(--surface)); overflow: hidden; }
.foe.boss { border-color: color-mix(in srgb, var(--gold) 55%, var(--border)); }
.foe-head { padding: 9px 12px; background: var(--surface-2); display: grid; gap: 4px; }
.foe-title { display: flex; align-items: center; gap: 8px; }
.foe-name { font-weight: 700; font-size: 15px; }
.jp-sub { color: var(--text-faint); font-weight: 400; font-size: 12px; margin-left: 4px; }
.boss-tag { font-size: 10px; font-weight: 700; color: var(--gold); border: 1px solid var(--gold); border-radius: 4px; padding: 0 5px; }
.foe-tags { display: flex; flex-wrap: wrap; gap: 2px 12px; font-size: 12.5px; color: var(--text-muted); }
.foe-stats { display: flex; flex-wrap: wrap; gap: 2px 14px; font-size: 13px; font-variant-numeric: tabular-nums; }
.foe-stats small { color: var(--text-faint); font-size: 10px; margin-right: 3px; }
.foe-body { padding: 8px 12px 10px; display: grid; gap: 6px; }
.line { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 8px; align-items: baseline; font-size: 13px; }
.line.top { align-items: start; }
.line > summary { display: contents; cursor: pointer; }
.lbl { font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: var(--text-faint); }
.lbl.ok { color: #7fdc8a; } .lbl.bad { color: #ff8a8a; }
.chips { display: flex; flex-wrap: wrap; gap: 4px 6px; }
.elx { font-size: 12.5px; padding: 1px 7px 1px 3px; border-radius: 4px; background: var(--surface-2); cursor: help; font-variant-numeric: tabular-nums; }
.elx.weak { color: #7fdc8a; background: color-mix(in srgb, #7fdc8a 14%, transparent); font-weight: 700; }
.elx.strong { color: #ff9a9a; }
.elx.immune { color: var(--text-faint); text-decoration: line-through; }
.ail-c { font-size: 12.5px; white-space: nowrap; }
.ail-c.ok { color: #7fdc8a; font-weight: 600; } .ail-c.part { color: var(--gold); }
.buff-c { font-size: 12.5px; padding: 1px 7px; border-radius: 4px; background: var(--surface-2); }
.moves { display: grid; gap: 4px; font-size: 13px; }
.moves ol.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 3px; }
.moves .tn { display: inline-block; min-width: 50px; color: var(--gold); font-size: 12px; font-weight: 600; }
.moves .fx { color: var(--text-muted); font-size: 12px; }
.moves ul { margin: 0; padding-left: 16px; }
.moves .sub { font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: var(--text-faint); margin-top: 4px; }
.moves .when { color: var(--gold); }
.small { font-size: 11.5px; }
details.more { border-top: 1px solid var(--border); padding-top: 6px; font-size: 13px; }
details.more > summary { cursor: pointer; color: var(--text-muted); font-size: 12.5px; }
.eskill { margin: 6px 0 8px; }
.eskill-head { font-size: 13px; margin-bottom: 2px; }
@media (max-width: 560px) { .line { grid-template-columns: 1fr; gap: 2px; } details.stage > summary { grid-template-columns: 1fr auto; } .sboss { grid-column: 1; } }
.egrid.banners { grid-template-columns: repeat(auto-fill, minmax(min(100%, 380px), 1fr)); gap: 12px; }
.ecard.has-banner { padding: 0; overflow: hidden; gap: 0; }
.ebanner { position: relative; display: block; aspect-ratio: 4 / 1; background: var(--surface-2); }
.ebanner img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ebanner .elogo { position: absolute; left: 4%; top: 8%; width: 52%; height: 84%; object-fit: contain; object-position: left center;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,.8)); }
.ecard.has-banner .einfo { display: grid; gap: 2px; padding: 7px 11px 9px; }
.ecard.has-banner .ename { font-size: 13px; }
.ecard.has-banner:hover .ebanner img:first-child { filter: brightness(1.12); }
.sec-title { font-size: 14px; color: var(--gold); margin: 16px 0 4px; }
.rerun { font-size: 10px; font-weight: 700; color: var(--text-muted); border: 1px solid var(--border); border-radius: 4px; padding: 0 5px; margin-left: 4px; vertical-align: 1px; }
.prepared { color: var(--gold); }
.elx.best { color: #7fdc8a; font-weight: 600; }
/* event overview: section cards */
.sections { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 12px; margin: 14px 0 24px; }
.section-card { display: grid; grid-template-columns: 76px 1fr; gap: 14px; align-items: center; padding: 12px 16px; border: 1px solid var(--border);
  border-radius: var(--radius); background: var(--surface); color: var(--text); }
.section-card:hover { border-color: var(--gold); text-decoration: none; }
.section-card:hover .qbtn { filter: brightness(1.12); }
.qbtn { position: relative; display: block; width: 76px; aspect-ratio: 184 / 221; }
.qbtn img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.qbtn .qemblem { top: 24%; left: 15%; width: 70%; height: 58%; }
.sc-body { display: grid; gap: 3px; }
.sc-title { font-family: Cinzel, serif; font-weight: 700; font-size: 17px; color: var(--gold); }
.sc-text { font-size: 13px; color: var(--text-muted); }
.sc-meta { font-size: 12px; color: var(--text-faint); }
.guide-title { align-items: center; }
.guide-icon { width: 34px; height: 34px; object-fit: contain; }
.guide-title .page-title small { font-family: inherit; font-size: 14px; color: var(--text-muted); margin-left: 6px; }
.ann { font-size: 13px; padding: 2px 10px; border: 1px solid var(--border); border-radius: 999px; }
.gacha-title { display: flex; align-items: center; gap: 10px; }
.gbtn { position: relative; display: inline-block; width: 40px; height: 40px; flex: none; }
.gbtn img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.gbtn .gemblem { inset: 22%; width: 56%; height: 56%; }
.card.gacha { padding: 10px 14px; margin-bottom: 10px; display: grid; gap: 8px; }
.gacha-head { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; font-size: 14px; }
.gacha-head a { font-size: 13px; }
.gunits { display: flex; flex-wrap: wrap; gap: 8px; }
.gunit { display: grid; justify-items: center; width: 84px; gap: 2px; color: var(--text); text-align: center; }
.gunit:hover { text-decoration: none; }
.gunit img { width: 64px; height: 64px; border-radius: 8px; background: var(--surface-2); border: 2px solid transparent; }
.gunit.up img { border-color: var(--gold); }
.gunit:hover img { filter: brightness(1.12); }
.gname { font-size: 11.5px; line-height: 1.2; max-width: 84px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.grate { font-size: 11px; color: var(--gold); font-weight: 600; }
.gunits.small .gunit { width: 64px; } .gunits.small .gunit img { width: 48px; height: 48px; }
.card.gacha details summary { cursor: pointer; font-size: 12.5px; color: var(--text-muted); }
/* raids */
.ebanner.raid, .ev-banner.raid { aspect-ratio: 4 / 1; background: radial-gradient(ellipse at center, #2a1f33, var(--surface-2)); }
.ebanner.raid img, .ev-banner.raid img { object-fit: contain; }
.ev-banner.raid { max-height: 180px; }
.rerun.live { color: #7fdc8a; border-color: #7fdc8a; }
.section-card.off { opacity: .6; cursor: default; }
.shop { display: grid; gap: 3px; }
.shop-row { display: grid; grid-template-columns: minmax(0, 1fr) 130px 90px; gap: 10px; align-items: center; padding: 4px 8px; border-radius: 6px; background: var(--surface); font-size: 13px; }
.shop-item { display: flex; align-items: center; gap: 8px; color: var(--text); min-width: 0; }
.shop-item img, .shop-item .noimg { width: 32px; height: 32px; object-fit: contain; border-radius: 6px; flex: none; }
.shop-item .noimg { background: var(--surface-2); }
.shop-cost { font-variant-numeric: tabular-nums; color: var(--gold); }
.shop-limit { color: var(--text-faint); font-size: 12px; }
/* achievements */
.ach-about { padding: 12px 16px; font-size: 14px; margin-bottom: 10px; }
.ach-about p { margin: 0 0 6px; } .ach-about ul { margin: 0; padding-left: 18px; color: var(--text-muted); display: grid; gap: 3px; }
.ach-list { display: grid; gap: 3px; margin-top: 10px; }
.ach { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(140px, .8fr) minmax(0, 1.3fr); gap: 10px; align-items: center; padding: 6px 10px;
  background: var(--surface); border-radius: 6px; font-size: 13px; }
.ach-name { display: grid; } .ach-name .muted { font-size: 12px; }
.ach .buff-c { font-size: 12.5px; padding: 1px 7px; border-radius: 4px; background: var(--surface-2); }
.ach .buff-c.lead { color: var(--gold); }
.ach-src { display: flex; flex-wrap: wrap; gap: 4px; }
.ach-src .src { font-size: 11px; padding: 1px 6px; border-radius: 4px; background: var(--surface-2); color: var(--text-muted); }
@media (max-width: 680px) { .ach { grid-template-columns: 1fr; gap: 3px; } }
