html { background: #12141c; color: #e8ecf4; }
.ti-account .ti-discord, .ti-account .ti-google { display: none !important; }
.ti-account:has(.ti-discord)::after { content: "离线模式 · 进度保存在当前浏览器"; opacity: .68; font-size: .8em; }
.local-panel { padding: 1rem; }
.local-panel h2 { margin: 0 0 .65rem; }
.local-panel p { margin: .4rem 0; }
.local-offers { display: grid; grid-template-columns: repeat(auto-fit,minmax(155px,1fr)); gap: .65rem; margin-top: .75rem; }
.local-offer { display: grid; justify-items: center; align-content: start; gap: .45rem; border: 1px solid var(--line, #3d465b); border-radius: 10px; padding: .65rem; background: var(--card, #202638); text-align: center; }
.local-offer .art, .local-offer .spr { image-rendering: pixelated; }
.local-offer > div { min-height: 66px; display: flex; align-items: center; justify-content: center; gap: .3rem; }
.local-offer .btn { width: 100%; }
.local-offer-sold > div { opacity: .55; }
.local-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .65rem; }
.local-status { min-height: 1.5em; }
.ot-login.local-trade-tools { flex-direction: row; justify-content: space-between; gap: .7rem 1rem; flex-wrap: wrap; text-align: left; }
.local-trade-tools p { margin: .25rem 0 0; }
.pc-cell.ug-out > .pc-busy-team {
  display: grid;
  place-items: center;
  border-radius: .3rem;
  background: var(--card, #202638);
  color: var(--yellow, #ffd35a);
  font-size: .75rem;
  font-weight: bold;
}
.dc-facts > .dc-ability { grid-column: 1 / -1; }
.dc-ability-entry + .dc-ability-entry { margin-top: var(--s1); }
.statbars b small.taste-delta { margin-inline-start: .25em; font-size: .86em; }
.statbars .taste-delta.up { color: var(--green); }
.statbars .taste-delta.down { color: var(--red); }
.dc-facts > .taste-entry { grid-column: 1 / -1; cursor: pointer; }
.taste-modal { width: min(31rem, calc(100vw - 1.5rem)); }
.taste-title { margin: 0; }
.taste-panel { display: grid; gap: .8rem; }
.taste-stats, .taste-choices { display: grid; gap: .35rem; margin: 0; }
.taste-stats { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.taste-stats div { text-align: center; padding: .35rem .15rem; background: var(--card); border-radius: .35rem; }
.taste-stats dt { color: var(--muted); font-size: .9em; }
.taste-stats dt small { display: block; }
.taste-stats dd { margin: .15rem 0 0; font-size: .95em; }
.taste-stats .up { color: var(--green); }
.taste-stats .down { color: var(--red); }
.taste-choices { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.taste-choice.btn { display: grid; justify-items: center; gap: .2rem; padding: .4rem .25rem; line-height: 1.1; text-align: center; }
.taste-choice img { width: 1.75rem; height: 1.75rem; object-fit: contain; image-rendering: pixelated; }
.taste-choice small { color: var(--muted); }
.taste-modal .taste-choice[aria-pressed="true"] {
  background: color-mix(in srgb, var(--yellow) 18%, var(--card));
  outline: 1px solid var(--yellow);
}
.taste-modal .taste-choice:focus-visible, .taste-entry:focus-visible { outline: 2px solid var(--yellow); outline-offset: 2px; }
.taste-message { min-height: 2.4em; margin: 0; }
.taste-feed { justify-self: end; }
.status-medicine { margin-block: .65rem; }
.status-medicine > b { display: block; margin-bottom: .35rem; font-size: .85em; }
.status-medicine-reserve input {
  flex: 0 0 4.5rem;
  width: 4.5rem;
  padding: .35rem;
  border: 1px solid var(--line, #3d465b);
  border-radius: .35rem;
  background: transparent;
  color: inherit;
  font: inherit;
}
#boot-fail { color: #fff; margin: 4rem auto; max-width: 32rem; text-align: center; }

:root { --bloc: #f3b676; }
.rh-hb.bloc .bloc-card-item {
  position: absolute; right: 9%; bottom: 12%; width: clamp(2.75rem, 9vw, 5rem);
  transform: rotate(-12deg); image-rendering: pixelated; filter: drop-shadow(0 .4rem .6rem #0009);
}
.bloc-item { width: 1.25rem; height: 1.25rem; object-fit: contain; image-rendering: pixelated; vertical-align: middle; }
#bloc-root .bloc-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1rem; }
.bloc-arena {
  display: grid; align-content: space-between; min-height: 13rem; gap: .75rem; padding: .9rem;
  border-radius: .55rem; color: #fff;
  background: linear-gradient(#171322de, #17132244 55%, #171322db), var(--bloc-scene) center / cover;
}
.bloc-boss-head, .bloc-team-head { display: flex; align-items: center; justify-content: space-between; gap: .4rem .7rem; flex-wrap: wrap; }
.bloc-boss-head h3, .bloc-team-head h3, .bloc-details p { margin: 0; }
.bloc-boss-sprite { display: grid; justify-items: center; }
.bloc-time { justify-self: end; font-variant-numeric: tabular-nums; font-size: .85em; }
.bloc-details, .bloc-replay { display: grid; align-content: start; gap: .7rem; min-width: 0; }
.bloc-team { display: flex; align-items: center; flex-wrap: wrap; gap: .25rem; }
.bloc-team > * { display: grid; justify-items: center; }
.bloc-attack { justify-self: end; }
.bloc-report { display: grid; gap: .35rem; padding: .7rem; background: var(--card); border-radius: .4rem; }
.rh-draw-banner { display: grid; gap: .4rem; }
.rh-draw-banner [data-raid-reroll] { justify-self: end; }
.bloc-items { display: flex; flex-wrap: wrap; gap: .8rem; }
.bloc-rewards summary { cursor: pointer; }
.bloc-rewards ul { display: flex; flex-wrap: wrap; gap: .35rem; padding: 0; list-style: none; }
.bloc-rewards li { padding: .2rem .35rem; background: var(--card); border-radius: .25rem; }
.bloc-replay progress { width: 100%; accent-color: var(--bloc); }
.bloc-replay .bloc-fighter progress { width: 2rem; height: .55rem; accent-color: var(--green); }
.bloc-fighter.ko { opacity: .45; }
.bloc-replay [data-bloc-skip] { justify-self: end; }
@media (max-width: 640px) {
  #bloc-root .bloc-body { grid-template-columns: minmax(0, 1fr); }
  .bloc-arena { min-height: 10rem; }
}

.arena[data-season]::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(165deg, var(--season-tint), transparent 72%);
}
.arena[data-season="spring"] { --season-tint: #ed9daf35; }
.arena[data-season="summer"] { --season-tint: #ffda7540; }
.arena[data-season="autumn"] { --season-tint: #df8d463e; }
.arena[data-season="winter"] { --season-tint: #c5e7ff50; }
.unova-season-pill { margin-inline-start: .4em; white-space: nowrap; }
.tl-node img.tl-phenom { width: 1.45rem; height: 1.45rem; object-fit: contain; }
.unova-dex-seasons { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .35rem; text-align: center; }
.unova-dex-season { display: grid; justify-items: center; gap: .2rem; }
.unova-dex-season img { width: 2.5rem; height: 2.5rem; object-fit: contain; image-rendering: pixelated; }
.unova-dex-season.unseen img { filter: brightness(.35) grayscale(1); }

.unova-inscription { display: inline-flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: .3em .55em; }
.unova-inscription > span { display: inline-flex; align-items: center; gap: .12em; }
.unova-glyph { width: 1em; height: 1em; fill: currentColor; shape-rendering: crispEdges; }

.pen-ditto-boost { display: block; color: var(--purple-soft, var(--text)); }
.pen-egg .meta b .pen-egg-myrte { width: 1rem; height: 1rem; margin-inline-end: .25rem; vertical-align: middle; image-rendering: pixelated; }
@media (max-width: 640px) {
  .tc-seg .tc-new {
    font-size: 0;
    width: 10px;
    height: 10px;
    padding: 0;
    top: -4px;
    right: -4px;
  }
}
