/* =========================================================
   STEAM PANEL MANUAL POSITION CONFIG
   ========================================================= */

:root {

  /* Bottom security message */
  --steam-security-left: 50%;
  --steam-security-top: 88%;
  --steam-security-width: 72%;
  --steam-security-size: 11px;

  /* Main panel */
  --steam-panel-width: 1050px;
  --steam-panel-shift-x: 0px;
  --steam-panel-shift-y: 0px;

  /* Steam logo / logged-in avatar */
  --steam-visual-left: 31.50%;
  --steam-visual-top: 41%;
  --steam-visual-size: 20.5%;

  /* Account text section */
  --steam-copy-left: 55%;
  --steam-copy-top: 13%;
  --steam-copy-width: 32%;

  /* Login/profile button section */
  --steam-actions-left: 55%;
  --steam-actions-top: 48%;
  --steam-actions-width: 32%;

  /* Buttons */
  --steam-action-height: 47px;
  --steam-action-gap: 9px;

  /* Text sizes */
  --steam-kicker-size: 12px;
  --steam-title-size: 27px;
  --steam-copy-size: 15px;
  --steam-button-size: 14px;
  --steam-status-size: 15px;
  --steam-id-size: 15px;

  /* Debug outlines */
  --steam-debug-outline: none;
}


/* =========================================================
   STEAM LOGIN PAGE
   ========================================================= */

.steam-page,
.steam-page * {
  box-sizing: border-box;
}

.steam-page {
  position: relative;
  isolation: isolate;
  overflow: hidden;

  min-height: calc(100vh - 108px);
  padding: 74px 0 110px;

  background-image:
    linear-gradient(
      180deg,
      rgba(2, 2, 3, 0.34) 0%,
      rgba(2, 2, 3, 0.72) 56%,
      #020203 100%
    ),
    url("../images/steam-login-background.webp");

  background-position:
    center,
    center -180px;

  background-size:
    cover,
    cover;

  background-repeat:
    no-repeat,
    no-repeat;
}

.steam-page::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;

  background:
    radial-gradient(
      circle at 50% 20%,
      rgba(255, 36, 44, 0.11),
      transparent 34rem
    ),
    linear-gradient(
      90deg,
      rgba(0, 0, 0, 0.48),
      transparent 28%,
      transparent 72%,
      rgba(0, 0, 0, 0.48)
    );
}

.steam-page-inner {
  position: relative;
  z-index: 1;
}


/* =========================================================
   PAGE HEADING
   ========================================================= */

.steam-page-heading {
  width: min(100%, 850px);
  margin: 0 auto 34px;
  text-align: center;
}

.steam-page-heading .eyebrow {
  margin: 0;

  color: #d8d8dc;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.34em;
  text-transform: uppercase;
}

.steam-page-heading .eyebrow span {
  color: var(--red);
}

.steam-page-heading h1 {
  margin: 12px 0 0;

  color: #f4f4f5;
  font-size: clamp(52px, 7vw, 92px);
  line-height: 0.92;
  font-weight: 900;
  letter-spacing: 0.045em;
  text-transform: uppercase;
}

.steam-page-heading > p:last-child {
  margin: 18px 0 0;

  color: rgba(255, 255, 255, 0.58);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}


/* =========================================================
   STEAM CONNECTION PANEL
   ========================================================= */

.steam-connect-panel {
  position: relative;
  isolation: isolate;

  width: min(
    calc(100% - 24px),
    var(--steam-panel-width)
  );

  aspect-ratio: 1392 / 678;
  min-height: 0;

  margin-inline: auto;

  transform: translate(
    var(--steam-panel-shift-x),
    var(--steam-panel-shift-y)
  );

  display: block;
  overflow: visible;

  background-image:
    url("../images/steam-login-panel.webp");

  background-position: center;
  background-size: 100% 100%;
  background-repeat: no-repeat;
  background-color: transparent;

  border: 0;
  border-radius: 0;
  clip-path: none;
  box-shadow: none;
}

.steam-connect-panel::before,
.steam-connect-panel::after {
  content: none;
  display: none;
}


/* =========================================================
   STEAM LOGO / LOGGED-IN AVATAR
   ========================================================= */

.steam-connect-visual {
  position: absolute;
  z-index: 3;

  left: var(--steam-visual-left);
  top: var(--steam-visual-top);

  width: var(--steam-visual-size);
  aspect-ratio: 1;

  transform: translate(-50%, -50%);

  display: grid;
  place-items: center;

  overflow: hidden;

  border: 0;
  border-radius: 50%;

  background: transparent;
  box-shadow: none;

  outline: var(--steam-debug-outline);
}

.steam-connect-visual::before,
.steam-connect-visual::after {
  content: none;
  display: none;
}

.steam-mark {
  display: none;
}

.steam-user-avatar {
  position: absolute;
  inset: 3%;

  width: 94%;
  height: 94%;

  display: block;
  object-fit: cover;

  border: 2px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;

  background: #080809;

  box-shadow:
    0 0 0 3px rgba(0, 0, 0, 0.72),
    0 0 16px rgba(255, 36, 44, 0.25);
}

.steam-avatar-fallback {
  width: 94%;
  height: 94%;

  display: grid;
  place-items: center;

  border: 2px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;

  background: #080809;

  color: #f5f5f5;
  font-size: clamp(32px, 4vw, 58px);
  line-height: 1;
  font-weight: 900;

  box-shadow:
    0 0 0 3px rgba(0, 0, 0, 0.72),
    0 0 16px rgba(255, 36, 44, 0.25);
}


/* =========================================================
   STEAM COPY / ACCOUNT DETAILS
   ========================================================= */

.steam-connect-copy {
  position: absolute;
  z-index: 4;

  left: var(--steam-copy-left);
  top: var(--steam-copy-top);

  width: var(--steam-copy-width);
  min-width: 0;

  outline: var(--steam-debug-outline);
}

.steam-connect-kicker {
  display: block;
  margin: 0 0 8px;

  color: var(--red);
  font-size: var(--steam-kicker-size) !important;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.steam-connect-copy h2 {
  margin: 0;

  color: #f5f5f5;
  font-size: var(--steam-title-size) !important;
  line-height: 1;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;

  overflow-wrap: anywhere;
}

.steam-connect-copy p {
  max-width: 100%;
  margin: 11px 0 0;

  color: rgba(255, 255, 255, 0.62);
  font-size: var(--steam-copy-size);
  line-height: 1.55;
  font-weight: 700;
  letter-spacing: 0.055em;
}


/* =========================================================
   CONNECTED ACCOUNT STATUS
   ========================================================= */

.steam-account-status {
  margin-top: 12px;

  display: inline-flex;
  align-items: center;
  gap: 8px;

  color: var(--green);
  font-size: var(--steam-status-size) !important;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.steam-account-status i {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;

  border-radius: 50%;
  background: var(--green);

  box-shadow:
    0 0 6px var(--green),
    0 0 13px rgba(57, 235, 105, 0.62);
}

.steam-connect-copy .steam-account-id {
  margin-top: 10px !important;

  color: rgba(255, 255, 255, 0.42) !important;
  font-size: var(--steam-id-size) !important;
  line-height: 1.4 !important;
  letter-spacing: 0.1em !important;

  white-space: nowrap;
  overflow-wrap: normal;
}


/* =========================================================
   STEAM ACTIONS
   ========================================================= */

.steam-connect-actions {
  position: absolute;
  z-index: 4;

  left: var(--steam-actions-left);
  top: var(--steam-actions-top);

  width: var(--steam-actions-width);

  display: grid;
  gap: var(--steam-action-gap);

  outline: var(--steam-debug-outline);
}

.steam-action {
  width: 100%;
  min-height: var(--steam-action-height);
  padding: 0 16px;

  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;

  border: 1px solid rgba(255, 36, 44, 0.78);
  border-radius: 2px;

  background:
    linear-gradient(
      180deg,
      rgba(255, 36, 44, 0.11),
      rgba(255, 36, 44, 0.025)
    );

  color: #f5f5f5;
  font-size: var(--steam-button-size);
  line-height: 1.2;
  font-weight: 900;
  letter-spacing: 0.11em;
  text-align: center;
  text-transform: uppercase;

  box-shadow:
    inset 0 0 18px rgba(255, 36, 44, 0.05);

  transition:
    background-color 0.18s ease,
    border-color 0.18s ease,
    color 0.18s ease,
    box-shadow 0.18s ease;
}

.steam-action:hover {
  color: #ffffff;
  border-color: var(--red);
  background: rgba(255, 36, 44, 0.16);

  box-shadow:
    0 0 12px rgba(255, 36, 44, 0.28),
    inset 0 0 20px rgba(255, 36, 44, 0.08);
}

.steam-action--secondary {
  border-color: rgba(255, 255, 255, 0.20);
  background: rgba(255, 255, 255, 0.018);
  color: #b9b9bd;
}

.steam-action--secondary:hover {
  border-color: rgba(255, 36, 44, 0.68);
  color: #ffffff;
}

.steam-action svg {
  display: none;
}


/* =========================================================
   SECURITY NOTE INSIDE PANEL
   ========================================================= */

.steam-security-note {
  position: absolute;
  z-index: 4;

  left: var(--steam-security-left);
  top: var(--steam-security-top);

  width: var(--steam-security-width);
  margin: 0;

  transform: translate(-50%, -50%);

  color: rgba(255, 255, 255, 0.46);
  font-size: var(--steam-security-size);
  line-height: 1.4;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-align: center;
  text-transform: uppercase;

  pointer-events: none;

  outline: var(--steam-debug-outline);
}


/* =========================================================
   TABLET POSITION CONFIG
   ========================================================= */

@media (max-width: 940px) {

  .steam-page {
    padding-top: 56px;

    --steam-panel-width: 760px;

    --steam-visual-left: 29.75%;
    --steam-visual-top: 50%;
    --steam-visual-size: 14.5%;

    --steam-copy-left: 53%;
    --steam-copy-top: 17%;
    --steam-copy-width: 35%;

    --steam-actions-left: 53%;
    --steam-actions-top: 58%;
    --steam-actions-width: 35%;

    --steam-action-height: 40px;
    --steam-action-gap: 7px;

    --steam-kicker-size: 7px;
    --steam-title-size: 25px;
    --steam-copy-size: 9px;
    --steam-button-size: 8px;

    --steam-status-size: 8px;
    --steam-id-size: 7px;
  }

  .steam-connect-copy p {
    margin-top: 7px;
    line-height: 1.4;
  }

  .steam-account-status {
    margin-top: 8px;
  }

  .steam-connect-copy .steam-account-id {
    margin-top: 5px !important;
  }
}


/* =========================================================
   MOBILE POSITION CONFIG
   ========================================================= */

@media (max-width: 600px) {

  .steam-page {
    min-height: calc(100vh - 86px);
    padding: 42px 0 74px;

    background-position:
      center,
      center top;

    background-size:
      cover,
      auto 100%;

    --steam-panel-width: 580px;

    --steam-visual-left: 29.75%;
    --steam-visual-top: 49%;
    --steam-visual-size: 15%;

    --steam-copy-left: 50%;
    --steam-copy-top: 15%;
    --steam-copy-width: 39%;

    --steam-actions-left: 50%;
    --steam-actions-top: 55%;
    --steam-actions-width: 39%;

    --steam-action-height: 34px;
    --steam-action-gap: 5px;

    --steam-kicker-size: 6.5px;
    --steam-title-size: 20px;
    --steam-copy-size: 7.5px;
    --steam-button-size: 7px;

    --steam-status-size: 6.5px;
    --steam-id-size: 5.5px;
  }

  .steam-page-heading {
    margin-bottom: 24px;
    padding-inline: 18px;
  }

  .steam-page-heading .eyebrow {
    font-size: 9px;
    letter-spacing: 0.24em;
  }

  .steam-page-heading h1 {
    font-size: clamp(40px, 13vw, 62px);
  }

  .steam-page-heading > p:last-child {
    font-size: 8px;
    line-height: 1.5;
  }

  .steam-connect-copy p {
    margin-top: 5px;
    line-height: 1.3;
  }

  .steam-account-status {
    margin-top: 6px;
    gap: 5px;
  }

  .steam-account-status i {
    width: 5px;
    height: 5px;
  }

  .steam-connect-copy .steam-account-id {
    margin-top: 4px !important;
  }

  .steam-action {
    padding-inline: 7px;
    letter-spacing: 0.07em;
  }

  .steam-security-note {
    padding-inline: 15px;
    font-size: 7px;
  }
}


/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media (max-width: 480px) {

  .steam-page {
    --steam-copy-left: 49%;
    --steam-copy-top: 14%;
    --steam-copy-width: 40%;

    --steam-actions-left: 49%;
    --steam-actions-top: 54%;
    --steam-actions-width: 40%;

    --steam-action-height: 29px;
    --steam-action-gap: 4px;

    --steam-title-size: 17px;
    --steam-button-size: 6.5px;
  }

  .steam-connect-copy > p:not(.steam-account-id) {
    display: none;
  }

  .steam-account-status {
    margin-top: 5px;
  }
}