:root {
  color-scheme: dark;
  --ground: #0c1818;
  --panel: #142322;
  --text: #f6f1e6;
  --muted: #ddd2bf;
  --bronze: #e3b474;
  --line: #465551;
  --teal: #a0ece5;
  --body: "Segoe UI", system-ui, sans-serif;
  --display: Georgia, "Times New Roman", serif;
  --bronze-line: #bd925f;
  --control-surface: linear-gradient(145deg, #263b34, #152923 70%);
  --selected-surface: linear-gradient(145deg, #513b25, #2b2e24 76%);
}

html {
  scrollbar-gutter: stable;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--ground);
  color: var(--text);
  font: 1rem / 1.5 var(--body);
}

a {
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
}

.visually-hidden,
.skip-link:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link:focus {
  position: fixed;
  z-index: 4;
  top: .75rem;
  left: .75rem;
  padding: .55rem .85rem;
  background: var(--ground);
  color: var(--teal);
}

.site-frame {
  display: grid;
  grid-template-columns: clamp(8.75rem, 11.75vw, 10.75rem) minmax(0, 1fr);
  min-height: 100vh;
  max-width: 1680px;
  margin-inline: auto;
  background:
    linear-gradient(180deg, rgb(12 26 27 / 42%), rgb(12 24 23 / 86%) 75%, var(--ground)),
    url("pregame/home-backdrop.webp") center top / max(100%, 68rem) auto no-repeat;
}

.site-sidebar {
  position: sticky;
  z-index: 2;
  top: 0;
  display: flex;
  flex-direction: column;
  align-self: start;
  height: 100vh;
  overflow-y: auto;
  padding: 1rem .55rem;
  border-inline-end: 1px solid #42514a;
  background: linear-gradient(180deg, #132625, #10201e);
}

.brand {
  align-self: center;
  display: block;
  width: 5.75rem;
  margin-block: 0 .8rem;
}

.brand img {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 .2rem .35rem #07110d);
}

.site-nav {
  display: grid;
  gap: .4rem;
}

.sidebar-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: .4rem;
  margin-bottom: .9rem;
}

.site-nav a,
.sidebar-actions a {
  display: flex;
  align-items: center;
  gap: .7rem;
  min-height: 45px;
  padding: .5rem .85rem;
  border: 1px solid #51655b;
  border-radius: .5rem;
  background: var(--control-surface);
  font-size: .96rem;
  line-height: 1.25;
  text-decoration: none;
}

.site-nav img,
.sidebar-actions img {
  flex: none;
}

.sidebar-actions a {
  justify-content: center;
  gap: .4rem;
  padding-inline: .45rem;
  font-size: .86rem;
  font-weight: 600;
  text-align: center;
}

.sidebar-actions .sidebar-download {
  border-color: #8f6f48;
  color: #ffe3b7;
}

.site-nav a:hover,
.sidebar-actions a:hover {
  border-color: var(--bronze);
  color: #ffe9c6;
}

.site-nav a[aria-current],
.sidebar-actions a[aria-current] {
  border-color: var(--bronze-line);
  background: var(--selected-surface);
  box-shadow: inset 2px 0 #e9b977;
  color: #ffe3b7;
}

.site-nav a:active {
  background: #112021;
}

.home-main {
  position: relative;
  isolation: isolate;
  padding: 0 clamp(1rem, 3.15vw, 3.25rem) 2.25rem;
}

.valley-art,
.home-main::before {
  position: absolute;
  inset: 0 0 auto;
  width: 100%;
  height: clamp(22rem, 35vw, 34rem);
}

.valley-art {
  z-index: -2;
  object-fit: cover;
  object-position: 74% 19%;
}

.home-main::before {
  z-index: -1;
  content: "";
  background:
    linear-gradient(0deg, #101c1b 0%, transparent 66%),
    linear-gradient(90deg, rgb(7 17 17 / 82%) 0%, rgb(7 17 17 / 38%) 40%, transparent 80%);
}

.hero {
  display: grid;
  align-content: center;
  min-height: clamp(16rem, 24vw, 22rem);
  padding: 2rem .65rem;
}

.hero h1,
.page-heading h1 {
  margin: 0;
  font: 400 clamp(2.45rem, 5vw, 4.6rem) / 1.06 var(--display);
  letter-spacing: -.035em;
  text-wrap: balance;
}

.hero h1 {
  text-shadow: 0 2px 12px #07100f;
}

.hero p {
  margin: .55rem 0 1.22rem;
  font-size: clamp(1rem, 1.5vw, 1.23rem);
  text-shadow: 0 2px 8px #07100f;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: .65rem;
}

.hero-actions .hero-register {
  min-height: 46px;
  text-align: center;
}

.hero-register img {
  flex: none;
}

.download-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  min-height: 46px;
  max-width: 100%;
  padding: .6rem 1.4rem;
  border: 1px solid #d5ac71;
  border-radius: .5rem;
  background: linear-gradient(150deg, #8b6b3f, #715532 55%, #57462d);
  box-shadow: inset 0 1px 1px #dfb4788c, 0 3px 10px #071312;
  color: #fff7e8;
  font: inherit;
  font-size: clamp(1rem, 1.45vw, 1.19rem);
  font-weight: 600;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
}

.download-button img {
  flex: none;
}

.download-button:hover {
  border-color: #f5ce93;
  filter: brightness(1.11);
}

.download-button:active {
  filter: brightness(.87);
}

.outline-link,
.topic-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  min-height: 44px;
  padding: .45rem .85rem;
  border: 1px solid #65756a;
  border-radius: .45rem;
  background: rgb(14 28 25 / 86%);
  color: #f7eddd;
  font-weight: 600;
  text-decoration: none;
}

.outline-link:hover,
.topic-nav a:hover {
  border-color: var(--bronze);
  color: #ffe3b7;
}

.home-panel,
.news-main {
  border: 1px solid var(--line);
  border-radius: .75rem;
  background: linear-gradient(120deg, rgb(24 42 41 / 96%), rgb(16 30 29 / 94%));
  box-shadow: 0 .5rem 1.5rem rgb(4 13 12 / 24%);
}

.home-panel {
  padding: clamp(.8rem, 1.7vw, 1.35rem);
  scroll-margin-block-start: 1rem;
}

.home-panel + .home-panel {
  margin-block-start: clamp(1rem, 2.2vw, 1.65rem);
}

.home-panel > h2 {
  margin: 0 0 .7rem;
  color: var(--bronze);
  font: 400 clamp(1.7rem, 2.5vw, 2.3rem) / 1.15 var(--display);
}

.home-panel > h2 a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  min-height: 44px;
  text-decoration: none;
}

.home-panel > h2 a::after {
  flex: none;
  width: 1.2rem;
  height: 1.2rem;
  margin-inline-end: .35rem;
  background: url("menu/arrow_right.png") center / contain no-repeat;
  content: "";
}

.home-panel > h2 a:hover {
  color: #ffe3b7;
  text-decoration: underline;
  text-underline-offset: .2em;
}

.slideshow {
  position: relative;
}

.slide {
  margin: 0;
}

.slide:not([hidden]) + .slide:not([hidden]) {
  margin-block-start: .75rem;
}

.slideshow-controls:not([hidden]) {
  position: absolute;
  right: .35rem;
  bottom: 0;
  display: flex;
  align-items: center;
  gap: .1rem;
}

.slide-image {
  display: block;
  overflow: hidden;
  border: 1px solid #57645a;
  border-radius: .5rem;
}

.slide-image img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4.25 / 1;
  object-fit: cover;
}

.slide-image:hover,
.slide-image:focus-visible {
  border-color: var(--bronze);
}

.slide figcaption {
  min-height: 44px;
  padding: .63rem .1rem 0;
  font-size: clamp(1rem, 1.55vw, 1.3rem);
}

.slideshow:has(.slideshow-controls:not([hidden])) figcaption {
  padding-inline-end: 17rem;
}

.slideshow-controls button {
  display: grid;
  place-items: center;
  width: 42px;
  min-height: 42px;
  padding: 0;
  border: 1px solid #627368;
  border-radius: .45rem;
  background: var(--control-surface);
  color: var(--text);
  font: 1.55rem / 1 var(--body);
  cursor: pointer;
}

.slideshow-controls button:hover {
  border-color: var(--bronze);
  background: #344440;
}

.slideshow-controls button:active {
  background: #101b1a;
}

.slideshow-controls .slide-picker {
  width: 35px;
  border-color: transparent;
  background: transparent;
}

.slideshow-controls .rotation-button {
  width: auto;
  padding-inline: .6rem;
  font-size: .85rem;
}

.hero-roster {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(.85rem, 2vw, 1.25rem);
}

.hero-card,
.featured-hero {
  display: block;
  min-width: 0;
  border: 1px solid #51655b;
  border-radius: .55rem;
  background: var(--control-surface);
  text-decoration: none;
}

.hero-card:hover,
.featured-hero:hover {
  border-color: var(--bronze-line);
  background: var(--selected-surface);
}

.hero-card img,
.featured-hero img,
.hero-profile-image {
  display: block;
  width: 100%;
  aspect-ratio: 5 / 3;
  height: auto;
  object-fit: cover;
  border-radius: .49rem .49rem 0 0;
}

.hero-card-copy {
  padding: .9rem 1rem 1.1rem;
}

.hero-card h2,
.profile-story h2,
.hero-abilities > h2,
.installer-card h2,
.download-help h2 {
  margin: 0 0 .55rem;
  font: 400 clamp(1.45rem, 2.8vw, 2.2rem) / 1.15 var(--display);
}

.hero-card h2 {
  color: #ffe9cc;
  font-size: clamp(1.32rem, 2vw, 1.7rem);
}

.hero-card p {
  margin: 0;
}

.hero-role {
  color: var(--bronze);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .075em;
  text-transform: uppercase;
}

.hero-origin {
  color: var(--muted);
  font-size: .9rem;
}

.hero-card .hero-origin {
  margin: .18rem 0 .72rem;
}

.hero-card .hero-origin + p {
  font-size: .94rem;
}

.profile-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .25rem .65rem;
}

.profile-overview {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: clamp(1rem, 3vw, 2rem);
  padding: clamp(.8rem, 2vw, 1.3rem);
  border: 1px solid var(--line);
  border-radius: .65rem;
  background: var(--panel);
}

.hero-profile-image {
  border-radius: .4rem;
}

.profile-story h2,
.hero-abilities > h2 {
  color: var(--bronze);
}

.profile-story p {
  max-width: 55ch;
  margin: 0;
}

.hero-abilities {
  margin-top: clamp(1.4rem, 3vw, 2.35rem);
}

.ability-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .85rem;
}

.ability {
  display: grid;
  grid-template-columns: clamp(2.6rem, 7vw, 3.4rem) minmax(0, 1fr);
  align-items: start;
  gap: .85rem;
  padding: .9rem;
  border: 1px solid var(--line);
  border-radius: .55rem;
  background: var(--control-surface);
}

.ability img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid #8c7658;
  border-radius: .35rem;
}

.ability h3 {
  margin: 0 0 .35rem;
  color: #ffe9cc;
  font-size: 1.12rem;
  line-height: 1.2;
}

.ability p {
  margin: .45rem 0 0;
  font-size: .94rem;
}

.ability kbd {
  display: inline-block;
  padding: .12rem .4rem;
  border: 1px solid #786548;
  border-radius: .25rem;
  background: #21241c;
  color: var(--bronze);
}

.topic-nav {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin: 0 0 1.4rem;
}

.topic-nav a {
  padding: .35rem .65rem;
  background: var(--control-surface);
  font-size: .92rem;
}

.topic-nav img {
  flex: none;
  object-fit: contain;
}

.rule-entry {
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: end;
  aspect-ratio: 16 / 9;
  margin-block: 1.2rem;
  scroll-margin-block-start: 1rem;
  padding: clamp(1rem, 3.2vw, 2.5rem);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: .5rem;
  background: var(--panel);
}

.rule-entry::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(to top, #0a1515, rgb(10 21 21 / 91%) 29%, rgb(10 21 21 / 34%) 57%, transparent 82%);
  content: "";
}

.rule-entry h2 {
  display: flex;
  align-items: center;
  gap: .5rem;
  text-shadow: 0 2px 12px #061110;
}

.rule-entry .outline-link {
  margin-top: .45rem;
}

.art-credit {
  color: var(--muted);
  font-size: .85rem;
}

.rule-entry .art-credit {
  margin-top: .8rem;
}

.rule-icon {
  flex: none;
  object-fit: contain;
}

.rule-scene {
  position: absolute;
  z-index: -2;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rule-term {
  white-space: nowrap;
}

.rule-term img {
  width: 1.1em;
  height: 1.1em;
  margin-inline-end: .24em;
  vertical-align: -.15em;
}

.slide-picker::after {
  width: .62rem;
  height: .62rem;
  border: 1px solid #b2bdb4;
  border-radius: 50%;
  content: "";
}

.slide-picker[aria-pressed="true"]::after {
  border-color: var(--bronze);
  background: var(--bronze);
}

.hero-lineup {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(.7rem, 1.75vw, 1.65rem);
}

.featured-caption {
  display: grid;
  gap: .12rem;
  padding: .55rem .7rem .75rem;
  font-size: clamp(1rem, 1.55vw, 1.32rem);
  line-height: 1.32;
}

.featured-caption span + span {
  color: var(--muted);
  font-size: .9rem;
}

.rule-columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .8rem;
}

.rule-columns > div {
  padding: .85rem;
  border: 1px solid var(--line);
  border-radius: .5rem;
  background: rgb(12 24 22 / 65%);
}

.rule-columns h3 {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin: 0 0 .45rem;
  font: 600 clamp(1.05rem, 1.55vw, 1.3rem) / 1.24 var(--body);
}

.rule-columns h3 img {
  flex: none;
}

.rule-columns h3 a {
  color: #ffe9cc;
  text-decoration-color: #8c7658;
  text-underline-offset: .18em;
}

.rule-columns h3 a:hover {
  text-decoration-color: var(--bronze);
}

.rule-columns p {
  max-width: 38ch;
  margin: 0;
  font-size: .94rem;
  line-height: 1.38;
}

.news-main {
  align-self: start;
  width: min(100% - 2rem, 69rem);
  margin: clamp(1rem, 3vw, 3rem) auto;
  padding: clamp(1.15rem, 4vw, 3.5rem);
}

.page-heading {
  margin-bottom: clamp(1.15rem, 3vw, 2rem);
}

.page-heading p {
  max-width: 68ch;
  margin: .7rem 0 0;
  color: var(--muted);
}

.news-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(.55rem, 1.5vw, .9rem);
  max-width: 32rem;
  margin-block: 1.25rem 1.5rem;
}

/* Category fragments select a tab while keeping the site menu in view. */
.news-tabs-enabled :is(.news-stories, .release-notes) {
  scroll-margin-block-start: max(32rem, 100vh);
}

.news-tabs a {
  position: relative;
  display: flex;
  align-items: center;
  gap: .75rem;
  min-height: 4.3rem;
  padding: .65rem .85rem;
  border: 1px solid #51655b;
  border-radius: .55rem;
  background: var(--control-surface);
  box-shadow: inset 0 1px 0 rgb(226 240 215 / 9%), 0 3px 9px rgb(4 12 9 / 28%);
  color: var(--text);
  font-size: clamp(.95rem, 1.5vw, 1.1rem);
  font-weight: 600;
  line-height: 1.25;
  text-decoration: none;
  transition: border-color .16s ease, color .16s ease;
}

.news-tab-icon {
  display: grid;
  flex: none;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid #587267;
  border-radius: .38rem;
  background: linear-gradient(150deg, #354d43, #203530);
}

.news-tab-icon img {
  display: block;
}

.news-tabs a:hover {
  border-color: var(--bronze);
  color: #ffe9c6;
}

.news-tabs a[aria-current="true"] {
  border-color: var(--bronze-line);
  background: var(--selected-surface);
  box-shadow: inset 0 1px 0 rgb(255 219 163 / 22%), 0 3px 9px rgb(4 12 9 / 32%);
  color: #ffe3b7;
}

.news-tabs a[aria-current="true"]::after {
  position: absolute;
  inset: auto .7rem -1px;
  height: 2px;
  background: linear-gradient(90deg, transparent, #f5c98a, transparent);
  content: "";
}

.news-tabs a[aria-current="true"] .news-tab-icon {
  border-color: #ab8052;
  background: linear-gradient(150deg, #6d5030, #453623);
}

.news-tabs a:active {
  box-shadow: inset 0 2px 6px rgb(4 12 9 / 50%);
}

@media (max-width: 420px) {
  .news-tabs a {
    flex-direction: column;
    justify-content: center;
    gap: .35rem;
    padding-inline: .35rem;
    text-align: center;
  }

  .news-tab-icon {
    width: 2.15rem;
    height: 2.15rem;
  }
}

.news-banner {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 2.45 / 1;
  margin-bottom: clamp(1.1rem, 2.5vw, 1.75rem);
  border: 1px solid #57645a;
  border-radius: .55rem;
  object-fit: cover;
  object-position: center 23%;
}

.patch {
  padding-block: clamp(1.2rem, 3vw, 2.1rem);
  border-top: 1px solid #8b7756;
}

.patch-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .3rem 1.2rem;
  margin: 0 0 .4rem;
  font-size: .88rem;
}

.patch-meta span {
  color: var(--bronze);
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.patch-meta time {
  color: var(--muted);
}

.patch h2 {
  margin: 0 0 .46em;
  color: var(--text);
  font: 400 clamp(1.65rem, 3vw, 2.5rem) / 1.13 var(--display);
}

.patch p:not(.patch-meta) {
  max-width: 65ch;
  margin-block: 0 .6rem;
}

.patch ul {
  max-width: 73ch;
  margin: 0;
  padding-inline-start: 1.25rem;
}

.patch li + li {
  margin-block-start: .23rem;
}

.release-notes .patch {
  margin-block: .8rem 1rem;
  padding: clamp(1rem, 2.7vw, 1.6rem);
  scroll-margin-block-start: 1rem;
  border: 1px solid var(--line);
  border-inline-start: 2px solid #8f6f48;
  border-radius: .55rem;
  background: var(--panel);
}

.release-notes .patch ul + p {
  margin-top: .85rem;
}

.installer-card {
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: center;
  min-height: clamp(16.5rem, 31vw, 24rem);
  padding: clamp(1rem, 3.4vw, 2.35rem);
  overflow: hidden;
  border: 1px solid var(--bronze-line);
  border-radius: .65rem;
  background: var(--panel);
}

.installer-art,
.installer-card::before {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.installer-art {
  z-index: -2;
  object-fit: cover;
  object-position: 72% 15%;
}

.installer-card::before {
  z-index: -1;
  background:
    linear-gradient(90deg, #0d1a19, rgb(13 26 25 / 90%) 32%, rgb(13 26 25 / 19%) 84%),
    linear-gradient(0deg, rgb(13 26 25 / 82%), transparent 62%);
  content: "";
}

.installer-copy {
  max-width: 30rem;
}

.installer-copy .patch-meta {
  color: var(--muted);
}

.installer-copy > p:not(.patch-meta) {
  max-width: 34ch;
  margin: 0 0 1rem;
}

.download-help {
  margin-top: clamp(1.4rem, 3.4vw, 2.5rem);
}

.download-help p {
  max-width: 65ch;
  margin: .35rem 0 .95rem;
}

.page-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .4rem 1rem;
  margin-top: clamp(1.6rem, 3.6vw, 2.6rem);
  padding-block-start: .55rem;
  border-top: 1px solid #766850;
}

.page-footer a {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  min-height: 44px;
  color: var(--muted);
  font-size: .92rem;
  text-decoration: underline;
  text-decoration-color: #8c7658;
  text-underline-offset: .25em;
}

.page-footer a:hover {
  color: #ffe3b7;
  text-decoration-color: var(--bronze);
}

@media (max-width: 1120px) {
  .hero-roster {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 761px) and (max-width: 1320px) {
  .sidebar-register img {
    display: none;
  }
}

@media (max-width: 760px) {
  .rule-entry {
    aspect-ratio: auto;
    padding-block-start: clamp(7rem, 33vw, 12rem);
  }

  .rule-entry::before {
    background: linear-gradient(to bottom, transparent 0, #0a1515 clamp(8rem, 38vw, 14rem));
  }

  .rule-scene {
    height: auto;
    aspect-ratio: 16 / 9;
  }
  .profile-overview,
  .ability-grid {
    grid-template-columns: 1fr;
  }

  .site-frame {
    display: block;
    background-size: auto, auto 34rem;
  }

  .site-sidebar {
    position: relative;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: .55rem .75rem;
    height: auto;
    overflow: visible;
    padding: .5rem .6rem .7rem;
    border: 0;
    border-bottom: 1px solid var(--line);
  }

  .brand {
    width: 3.15rem;
    margin: 0;
  }

  .sidebar-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    justify-self: end;
    margin: 0;
  }

  .site-nav {
    grid-column: 1 / -1;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: .3rem;
  }

  .site-nav a {
    flex-direction: column;
    justify-content: center;
    gap: .1rem;
    padding: .28rem .1rem;
    min-height: 50px;
    font-size: .78rem;
  }

  .site-nav img {
    width: 18px;
    height: 18px;
  }

  .home-main {
    padding-inline: .9rem;
  }

  .valley-art,
  .home-main::before {
    height: 22rem;
  }

  .valley-art {
    object-position: 80% 5%;
  }

  .home-main::before {
    background: linear-gradient(0deg, #101c1b 0%, rgb(10 20 20 / 44%) 62%, rgb(5 14 13 / 16%));
  }

  .hero {
    min-height: 235px;
    padding: 2.75rem .35rem 1.55rem;
  }

  .home-panel {
    padding-inline: .75rem;
  }

  .slide-image img {
    aspect-ratio: 16 / 9;
  }

  .slideshow-controls:not([hidden]) {
    position: static;
    flex-wrap: wrap;
    justify-content: center;
  }

  .slideshow-controls button {
    width: 44px;
    min-height: 44px;
  }

  .slideshow-controls .slide-picker {
    width: 34px;
  }

  .slideshow:has(.slideshow-controls:not([hidden])) figcaption {
    min-height: auto;
    padding-inline-end: .44rem;
    padding-block-end: .28rem;
  }

  .rule-columns {
    grid-template-columns: 1fr;
  }

  .hero-lineup {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .news-banner {
    aspect-ratio: 2 / 1;
  }

  .installer-card::before {
    background: linear-gradient(0deg, #0d1a19 10%, rgb(13 26 25 / 88%) 58%, rgb(13 26 25 / 38%));
  }
}

@media (max-width: 520px) {
  .hero-actions {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    align-items: stretch;
    gap: .5rem;
  }

  .hero-actions .download-button,
  .hero-actions .hero-register {
    padding-inline: .5rem;
    font-size: .92rem;
  }

  .hero-actions .outline-link:last-child {
    justify-self: start;
  }

  .hero-roster,
  .hero-lineup {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 380px) {
  .sidebar-actions {
    gap: .3rem;
  }

  .sidebar-actions a {
    gap: .25rem;
    padding-inline: .25rem;
  }

  .sidebar-actions img {
    width: 14px;
    height: 14px;
  }
}
