/* ScorchPvP artwork remains fitted to the viewport behind bounded page panels. */
:root body.sc-theme,
:root body.sc-landscape {
  --sc-page-width: 1180px;
  --sc-page-gutter: 32px;
  --sc-panel-padding: 32px;
  min-width: 0;
  isolation: isolate;
  background-color: #0b0d10;
}

:root body.sc-theme::before,
:root body.sc-landscape::before {
  content: "";
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  height: 100vh;
  height: 100lvh;
  z-index: -1;
  pointer-events: none;
  background-color: #0b0d10;
  background-image: linear-gradient(180deg, rgba(9, 11, 14, .32), rgba(9, 11, 14, .44)), url("scorchpvp-site-desktop-b91708f012e9.webp");
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

:root body.sc-theme > .pusher,
:root body.sc-theme.pushable > .pusher {
  background: transparent;
}

/* Actual padding contains backgrounds; no negative-inset decoration crosses sections. */
:root body.sc-theme #navbar.ui.secondary.menu,
:root body.sc-theme .sc-hero,
:root body.sc-theme .ui.masthead,
:root body.sc-theme #sc-main,
:root body.sc-theme #footer.ui.footer.segment {
  box-sizing: border-box;
  width: min(var(--sc-page-width), calc(100% - 2 * var(--sc-page-gutter)));
  margin-left: auto;
  margin-right: auto;
  border: 1px solid #37302d;
  border-radius: 12px;
}

:root body.sc-theme #navbar.ui.secondary.menu {
  margin-top: 20px;
  margin-bottom: 24px;
}

:root body.sc-theme #navbar > .ui.container,
:root body.sc-theme .sc-hero > .ui.container,
:root body.sc-theme .ui.masthead > .ui.container,
:root body.sc-theme #footer > .ui.container {
  width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

:root body.sc-theme #navbar > .ui.container {
  padding: 4px 20px;
  gap: 4px;
}

/* Reserve room for signed-in controls; a long display name can wrap inside its label. */
:root body.sc-theme #navbar > .ui.container > .item:not(.sc-menu-toggle) {
  padding-left: 10px;
  padding-right: 10px;
}

:root body.sc-theme #navbar .sc-wordmark {
  flex-shrink: 0;
  margin-right: 12px;
}

:root body.sc-theme #navbar .right.menu {
  min-width: 0;
  max-width: 100%;
  flex: 0 1 auto;
}

:root body.sc-theme #navbar .right.menu > .ui.button {
  flex: 0 0 auto;
}

:root body.sc-theme #navbar #button-account.ui.image.label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 1 auto;
  min-width: 0;
  max-width: 240px;
  margin: 0;
  padding: 7px 10px;
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
}

:root body.sc-theme #navbar #button-account > img {
  position: static;
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  max-height: none;
  margin: 0;
  border-radius: 3px;
  object-fit: cover;
}

:root body.sc-theme #navbar #button-account .sc-account-name {
  display: block;
  min-width: 0;
  line-height: 1.35;
  text-align: left;
  white-space: normal;
  overflow-wrap: anywhere;
}

:root body.sc-theme .sc-hero {
  background-color: transparent;
  background-image: linear-gradient(90deg, rgba(9, 11, 14, .87), rgba(9, 11, 14, .72) 52%, rgba(9, 11, 14, .12));
}

:root body.sc-theme .sc-hero > .ui.container {
  padding-left: var(--sc-panel-padding);
  padding-right: var(--sc-panel-padding);
}

:root body.sc-theme .ui.masthead {
  padding: 24px var(--sc-panel-padding);
  margin-top: 0;
  margin-bottom: 0;
  background: rgba(9, 11, 14, .9);
}

:root body.sc-theme #sc-main {
  position: relative;
  isolation: isolate;
  padding: var(--sc-panel-padding);
  margin-top: 24px;
  background: rgba(9, 11, 14, .94);
}

:root body.sc-theme #sc-main::before {
  content: none;
}

:root body.sc-theme #wrapper {
  margin-bottom: 24px;
}

:root body.sc-theme #footer.ui.footer.segment {
  padding: 28px var(--sc-panel-padding);
  margin-top: 0;
  margin-bottom: 24px;
}

:root body.sc-theme #sc-main .column,
:root body.sc-theme .sc-hero-content,
:root body.sc-theme .sc-section-heading > *,
:root body.sc-theme .sc-support-strip > * {
  min-width: 0;
  overflow-wrap: anywhere;
}

:root body.sc-theme .sc-section-heading {
  flex-wrap: wrap;
}

:root body.sc-theme #sc-main .ui.input {
  max-width: 100%;
}

:root body.sc-theme .forum_post {
  overflow-wrap: anywhere;
}

/* Widget values share a real two-column row instead of a fixed-width float. */
:root body.sc-theme #widget-statistics .item {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

:root body.sc-theme #widget-statistics .item > .text {
  width: auto !important;
  min-width: 0;
  flex: 1;
}

:root body.sc-theme #widget-statistics .item > .description {
  width: auto !important;
  min-width: 0;
  max-width: 55%;
  flex: 0 1 auto;
  float: none;
  overflow-wrap: anywhere;
  white-space: normal;
}

:root body.sc-theme #widget-statistics .description a {
  white-space: normal;
  overflow-wrap: anywhere;
}

/* Forum content stays visually quieter than the surrounding scenery. */
:root body.sc-theme#page-forum::before {
  background-image: linear-gradient(180deg, rgba(9, 11, 14, .56), rgba(9, 11, 14, .66)), url("scorchpvp-site-desktop-b91708f012e9.webp");
}

:root body.sc-theme#page-forum #sc-main {
  background: rgba(11, 13, 16, .96);
}

:root body.sc-theme#page-forum #forum-index > .row > .column > h2.ui.header,
:root body.sc-theme#page-forum #forum-view > .row > .column > h2.ui.header {
  font-size: 30px;
  line-height: 1.2;
}

/* One reading surface gives the download page consistent edges and real gaps. */
:root body.sc-landscape > .header,
:root body.sc-landscape > #main,
:root body.sc-landscape > .footer {
  box-sizing: border-box;
  width: min(var(--sc-page-width), calc(100% - 2 * var(--sc-page-gutter)));
  max-width: none;
  margin: 24px auto;
  padding: var(--sc-panel-padding);
  border: 1px solid #37302d;
  border-radius: 12px;
  background: rgba(9, 11, 14, .94);
  box-shadow: none;
}

:root body.sc-landscape > .header {
  height: auto;
  min-height: 98px;
  padding-top: 12px;
  padding-bottom: 12px;
}

:root body.sc-landscape > #main {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 40px;
}

:root body.sc-landscape #main > .wrap {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  background: transparent;
  box-shadow: none;
}

:root body.sc-landscape .hero::before {
  content: none;
}

:root body.sc-landscape #main > *,
:root body.sc-landscape .header > *,
:root body.sc-landscape .footer > *,
:root body.sc-landscape .install-grid > *,
:root body.sc-landscape .steps li > div,
:root body.sc-landscape .features article,
:root body.sc-landscape .closing > * {
  min-width: 0;
}

:root body.sc-landscape .section-heading {
  flex-wrap: wrap;
  gap: 12px 24px;
}

:root body.sc-landscape .button,
:root body.sc-landscape .steps p,
:root body.sc-landscape .faq p {
  max-width: 100%;
  overflow-wrap: anywhere;
}

:root body.sc-landscape kbd {
  display: inline-block;
  white-space: nowrap;
}

/* Borders belong to cards and never run beyond the page surface. */
:root body.sc-landscape .status-strip {
  width: min(960px, 100%);
  margin: 0 auto;
  border: 1px solid #4b3029;
  border-left: 3px solid #b75b34;
  border-radius: 8px;
  background: #101115;
}

:root body.sc-landscape .status-strip > .wrap {
  width: auto;
  margin: 0;
  padding: 14px 20px;
  gap: 18px;
}

:root body.sc-landscape .install-section {
  width: 100%;
  margin: 0;
  padding: 28px;
  border: 1px solid #332b2d;
  border-radius: 8px;
  background: #101013;
}

:root body.sc-landscape .install-section > .wrap {
  width: 100%;
  margin: 0;
}

:root body.sc-landscape .install-grid {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  gap: 48px;
}

:root body.sc-landscape .features {
  gap: 1px;
  background: var(--line);
}

:root body.sc-landscape .features article {
  border: 0;
}

:root body.sc-landscape .features article:last-child p {
  max-width: 78ch;
}

:root body.sc-landscape #main > .closing {
  padding: 28px;
  flex-wrap: wrap;
  background: linear-gradient(105deg, #261416, #111014);
}

:root body.sc-landscape #main > section.wrap > .intro {
  max-width: 78ch;
  margin: 0;
  font-size: 13px;
}

@media (min-width: 1001px) {
  :root body.sc-landscape .features article:last-child:nth-child(3n + 1) {
    grid-column: 1 / -1;
  }
}

/* Switch navigation before links and account controls can collide. */
@media (max-width: 1280px) {
  :root body.sc-theme #navbar > .ui.container > .item:not(.sc-menu-toggle) {
    display: none;
  }
  :root body.sc-theme #navbar .sc-wordmark {
    margin-right: auto;
  }
  :root body.sc-theme #navbar .sc-menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    min-height: 42px;
    border: 1px solid var(--sc-line);
  }
}

@media (orientation: portrait) {
  :root body.sc-theme::before,
  :root body.sc-landscape::before {
    background-image: linear-gradient(180deg, rgba(9, 11, 14, .32), rgba(9, 11, 14, .44)), url("scorchpvp-site-portrait-42890c0da943.webp");
  }
  :root body.sc-theme#page-forum::before {
    background-image: linear-gradient(180deg, rgba(9, 11, 14, .56), rgba(9, 11, 14, .66)), url("scorchpvp-site-portrait-42890c0da943.webp");
  }
}

@media (max-width: 768px) {
  :root body.sc-theme,
  :root body.sc-landscape {
    --sc-page-gutter: 16px;
    --sc-panel-padding: 20px;
  }
  :root body.sc-theme #sc-main {
    width: calc(100% - 32px) !important;
    margin-left: 16px !important;
    margin-right: 16px !important;
  }
  :root body.sc-theme .sc-hero {
    background-image: linear-gradient(180deg, rgba(9, 11, 14, .74), rgba(9, 11, 14, .66));
  }
  :root body.sc-theme #navbar > .ui.container {
    padding-left: 14px;
    padding-right: 14px;
  }
  :root body.sc-landscape > #main {
    gap: 32px;
  }
  :root body.sc-landscape .install-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }
  :root body.sc-landscape .install-section,
  :root body.sc-landscape #main > .closing {
    padding: 20px;
  }
}

@media (max-width: 720px) {
  :root body.sc-theme #navbar > .ui.container {
    flex-wrap: wrap;
  }
  :root body.sc-theme #navbar .right.menu {
    flex: 1 1 100%;
    justify-content: flex-end;
    margin-left: 0 !important;
    padding-bottom: 8px;
  }
  :root body.sc-landscape .status-strip > .wrap {
    display: grid;
    gap: 6px;
    padding: 14px 16px;
  }
  :root body.sc-landscape .status-strip p {
    margin: 0;
  }
  :root body.sc-landscape .header .brand {
    flex: 1;
  }
  :root body.sc-landscape .header nav {
    flex-shrink: 0;
  }
}

@media (max-width: 480px) {
  :root body.sc-theme,
  :root body.sc-landscape {
    --sc-panel-padding: 16px;
  }
  :root body.sc-theme #navbar .right.menu {
    flex-wrap: wrap;
    gap: 6px;
  }
  :root body.sc-landscape .showcase-bar {
    flex-wrap: wrap;
  }
  :root body.sc-landscape .hero .eyebrow {
    flex-wrap: wrap;
  }
  :root body.sc-landscape .steps li {
    gap: 12px;
  }
}
