#menuFooter .pf-patch-notes,
.patch-back {
  display: inline-flex;
  align-items: center;
  gap: .45em;
  padding: .48rem .75rem;
  border: 1px solid #856753;
  border-radius: .5rem;
  color: #ffe2bd;
  background: #2b211e;
  text-decoration: none;
  font-weight: 650;
}
#menuFooter .pf-patch-notes:hover,
.patch-back:hover { background: #493328; }
#menuFooter .pf-patch-notes:focus-visible,
.patch-page a:focus-visible { outline: 2px solid #f3c996; outline-offset: 4px; }

.patch-page {
  margin: 0;
  color-scheme: dark;
  color: #f5e8dd;
  background: radial-gradient(ellipse at top, #30221d, transparent 37rem), #151315;
  font-family: system-ui, sans-serif;
  line-height: 1.65;
}
.patch-page *, .patch-page *::before { box-sizing: border-box; }
.patch-page a { color: #ffe2bd; }
.patch-shell { width: min(100% - 2rem, 68rem); margin: 0 auto; }
.patch-header {
  min-height: 5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .85rem;
  border-bottom: 1px solid #664a3e;
}
.patch-brand { display: flex; align-items: center; gap: .52rem; }
.patch-brand img { display: block; object-fit: contain; }
.patch-intro { max-width: 46rem; padding: 2.8rem 0 1.15rem; }
.patch-kicker { color: #edb984; font-size: .76rem; font-weight: 800; letter-spacing: .13em; }
.patch-intro h1 { margin: .2rem 0; font-size: clamp(2.5rem, 8vw, 4.5rem); line-height: 1.1; }
.patch-intro p, .patch-summary, .patch-footer { color: #dac6b8; }
.patch-index { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.4rem; }
.patch-index a, .patch-version {
  padding: .22rem .6rem;
  background: #3a2a23;
  border: 1px solid #856753;
  border-radius: .4rem;
  text-decoration: none;
}
.patch-index a:hover { background: #574031; }
.patch-entry {
  border: 1px solid #664a3e;
  border-radius: 1rem;
  padding: clamp(1.05rem, 4vw, 2rem);
  margin-bottom: 1.3rem;
  background: #211b1b;
  scroll-margin-top: 1rem;
}
.patch-entry:target { border-color: #d3a87e; }
.patch-meta { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; color: #ddc4af; font-size: .86rem; }
.patch-version { color: #ffe2bd; font-weight: 750; }
.patch-entry h2 { margin: .55rem 0 .1rem; font-size: clamp(1.6rem, 5vw, 2.1rem); }
.patch-summary { max-width: 65ch; margin-top: .25rem; }
.patch-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem 1.8rem; }
.patch-grid section { border-top: 1px solid #5b4339; }
.patch-grid h3 { margin: .9rem 0 .35rem; color: #ffe2bd; font-size: 1.1rem; }
.patch-grid ul { padding-inline-start: 1.1rem; margin: 0; }
.patch-grid li + li { margin-top: .55rem; }
.patch-footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem; padding: .55rem 0 1.65rem; }
@media (max-width: 43rem) {
  .patch-grid { grid-template-columns: minmax(0, 1fr); gap: 1.1rem; }
}
@media (max-width: 24rem) {
  .patch-brand img:nth-child(2) { width: 108px; height: auto; }
  .patch-header .patch-back { font-size: .82rem; padding-inline: .5rem; }
}

#menu > .patch-in-game { margin-block: 0 1.5rem; min-width: 0; }
#menu > .patch-in-game[hidden] { display: none; }
.patch-in-game { color: #f5e8dd; line-height: 1.65; }
.patch-in-game a { color: #ffe2bd; }
.patch-in-game .patch-entry { scroll-margin-top: 10rem; }
.patch-in-game .patch-entry ul { padding-inline-start: 1.15rem; }
.patch-in-game a:focus-visible { outline: 2px solid #f3c996; outline-offset: 4px; }
.patch-in-game .patch-entry > ul { margin-block-end: 0; }
.patch-overview { margin: .9rem 0 1.15rem; }
.patch-overview h3 { margin: 0 0 .45rem; color: #ffe2bd; font-size: 1.05rem; }
.patch-entry .patch-changes { margin: 0; padding: 0; list-style: none; }
.patch-changes li {
  display: grid;
  grid-template-columns: minmax(6.4rem, max-content) minmax(0, 1fr);
  gap: .55rem;
  align-items: baseline;
}
.patch-changes li + li { margin-top: .5rem; }
.patch-tag {
  width: fit-content;
  padding: .03rem .45rem;
  border: 1px solid currentColor;
  border-radius: .35rem;
  font-size: .73rem;
  font-weight: 750;
}
.patch-tag-added { color: #a7dbb2; }
.patch-tag-changed { color: #f0c389; }
.patch-tag-fixed { color: #afd3f6; }
.patch-tag-recap { color: #d3bce9; }
.patch-details { border-top: 1px solid #664a3e; padding-top: .6rem; }
.patch-details > summary {
  cursor: pointer;
  min-height: 2.75rem;
  color: #ffe2bd;
  font-weight: 700;
  padding-block: .42rem;
}
.patch-details > summary:focus-visible { outline: 2px solid #f3c996; outline-offset: 3px; }
.patch-detail-body { margin-top: .3rem; }
.patch-detail-body:not(.patch-grid) h3 { margin: .8rem 0 .2rem; color: #ffe2bd; }
.patch-detail-body:not(.patch-grid) p { margin: 0 0 .65rem; }
@media (max-width: 24rem) {
  .patch-changes li { grid-template-columns: minmax(0,1fr); gap: .2rem; }
}
