/*
|--------------------------------------------------------------------------
| BARELY ALIVE — STEAM PAGE MOBILE LAYOUT
|--------------------------------------------------------------------------
|
| Load this file AFTER steam.css.
| Applies only to screens 760px wide and below.
|
| The desktop Steam panel artwork is removed on mobile:
| - steam-login-panel.webp
|
| The page background artwork remains in place.
|
*/

@media (max-width: 760px) {

  /* =========================================================
     MOBILE STEAM PAGE
     ========================================================= */

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

  .steam-page {
    min-height: calc(100vh - 86px);
    padding: 30px 0 52px;
    overflow: hidden;

    background-position:
      center,
      center top;

    background-size:
      cover,
      auto 560px;

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

  .steam-page::before {
    background:
      radial-gradient(
        circle at 50% 14%,
        rgba(255, 36, 44, 0.10),
        transparent 25rem
      ),
      linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.08),
        rgba(2, 2, 3, 0.44) 54%,
        #020203 100%
      );
  }

  .steam-page-inner {
    width: calc(100% - 24px);
    max-width: 560px;
    margin-inline: auto;
    text-align: center;
  }


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

  .steam-page-heading {
    width: 100%;
    max-width: 500px;
    margin: 0 auto 22px;
    padding: 0;
    text-align: center;
  }

  .steam-page-heading .eyebrow {
    margin: 0 auto;
    font-size: 9px;
    line-height: 1.5;
    letter-spacing: 0.23em;
    text-align: center;
  }

  .steam-page-heading h1 {
    margin: 10px auto 0;
    font-size: clamp(40px, 13vw, 64px);
    line-height: 0.92;
    letter-spacing: 0.025em;
    text-align: center;
  }

  .steam-page-heading > p:last-child {
    max-width: 340px;
    margin: 14px auto 0;
    font-size: 8px;
    line-height: 1.55;
    letter-spacing: 0.13em;
    text-align: center;
  }


  /* =========================================================
     MOBILE STEAM CONNECTION CARD
     CSS card only — no desktop panel image
     ========================================================= */

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

    width: 100%;
    max-width: 520px;
    min-height: 0;
    aspect-ratio: auto;

    margin: 0 auto;
    padding: 24px 16px 18px;

    transform: none;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 18px;

    overflow: hidden;

    background:
      linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.030),
        rgba(255, 255, 255, 0.008)
      ),
      #070709 !important;

    background-image: none !important;
    background-position: initial;
    background-size: initial;
    background-repeat: initial;

    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 18px;
    clip-path: none;

    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.038),
      0 18px 38px rgba(0, 0, 0, 0.44);
  }

  .steam-connect-panel::before {
    content: "";
    display: block;

    position: absolute;
    z-index: 1;
    top: -1px;
    left: 13%;
    right: 13%;

    height: 1px;

    background:
      linear-gradient(
        90deg,
        transparent,
        rgba(255, 36, 44, 0.82),
        transparent
      );

    box-shadow:
      0 0 10px rgba(255, 36, 44, 0.20);

    pointer-events: none;
  }

  .steam-connect-panel::after {
    content: "";
    display: block;

    position: absolute;
    z-index: -1;
    inset: 0;

    background:
      radial-gradient(
        circle at 50% 22%,
        rgba(255, 36, 44, 0.055),
        transparent 44%
      );

    pointer-events: none;
  }


  /* =========================================================
     MOBILE STEAM LOGO / AVATAR
     ========================================================= */

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

    left: auto;
    top: auto;

    width: 118px;
    height: 118px;
    aspect-ratio: 1;

    margin: 0 auto;

    transform: none;

    display: grid;
    place-items: center;

    overflow: hidden;

    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 50%;

    background:
      radial-gradient(
        circle at 50% 42%,
        rgba(255, 255, 255, 0.055),
        rgba(0, 0, 0, 0.18) 58%,
        #050506 100%
      );

    box-shadow:
      0 0 0 5px rgba(0, 0, 0, 0.30),
      0 0 24px rgba(255, 36, 44, 0.13);

    outline: none;
  }

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

  /*
   * The desktop artwork contains the logged-out Steam mark.
   * Show the real HTML mark on mobile because that artwork is disabled.
   */
  .steam-mark {
    width: 100%;
    height: 100%;

    display: grid;
    place-items: center;

    color: rgba(255, 255, 255, 0.92);
  }

  .steam-mark img,
  .steam-mark svg {
    display: block;
    width: 64%;
    height: 64%;
    object-fit: contain;
  }

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

    width: 90%;
    height: 90%;

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

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

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

    font-size: 42px;

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

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


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

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

    left: auto;
    top: auto;

    width: 100%;
    max-width: 410px;
    min-width: 0;

    margin: 0 auto;

    text-align: center;
    outline: none;
  }

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

    font-size: 9px !important;
    line-height: 1.35;
    letter-spacing: 0.18em;
    text-align: center;
  }

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

    font-size: clamp(23px, 7vw, 31px) !important;
    line-height: 1.05;
    letter-spacing: 0.035em;
    text-align: center;

    overflow-wrap: anywhere;
  }

  .steam-connect-copy p {
    max-width: 360px;
    margin: 10px auto 0;

    font-size: 10px !important;
    line-height: 1.55;
    letter-spacing: 0.045em;
    text-align: center;
  }


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

  .steam-account-status {
    margin: 12px auto 0;

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

    font-size: 9px !important;
    line-height: 1.35;
    letter-spacing: 0.12em;
    text-align: center;
  }

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

  .steam-connect-copy .steam-account-id {
    max-width: 100%;
    margin: 9px auto 0 !important;

    font-size: 9px !important;
    line-height: 1.45 !important;
    letter-spacing: 0.07em !important;
    text-align: center;

    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
  }


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

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

    left: auto;
    top: auto;

    width: 100%;
    max-width: 360px;

    margin: 0 auto;

    display: grid;
    gap: 9px;

    outline: none;
  }

  .steam-action {
    width: 100%;
    min-height: 48px;
    padding: 10px 14px;

    border-radius: 4px;

    font-size: 10px !important;
    line-height: 1.25;
    letter-spacing: 0.09em;
    text-align: center;
  }


  /* =========================================================
     MOBILE SECURITY NOTE
     ========================================================= */

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

    left: auto;
    top: auto;

    width: 100%;
    max-width: 400px;

    margin: 0 auto;
    padding: 14px 8px 0;

    transform: none;

    border-top: 1px solid rgba(255, 255, 255, 0.07);

    font-size: 8px !important;
    line-height: 1.55;
    letter-spacing: 0.09em;
    text-align: center;

    pointer-events: auto;
    outline: none;
  }
}


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

@media (max-width: 420px) {

  .steam-page {
    padding: 25px 0 42px;

    background-size:
      cover,
      auto 500px;
  }

  .steam-page-inner {
    width: calc(100% - 20px);
  }

  .steam-page-heading {
    margin-bottom: 19px;
  }

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

  .steam-page-heading h1 {
    font-size: 40px;
  }

  .steam-page-heading > p:last-child {
    max-width: 290px;
    font-size: 7px;
    letter-spacing: 0.10em;
  }

  .steam-connect-panel {
    padding: 21px 12px 16px;
    gap: 16px;
    border-radius: 15px;
  }

  .steam-connect-visual {
    width: 104px;
    height: 104px;
  }

  .steam-avatar-fallback {
    font-size: 37px;
  }

  .steam-connect-kicker {
    font-size: 8px !important;
  }

  .steam-connect-copy h2 {
    font-size: 23px !important;
  }

  .steam-connect-copy p {
    max-width: 300px;
    font-size: 9px !important;
  }

  .steam-account-status {
    font-size: 8px !important;
  }

  .steam-connect-copy .steam-account-id {
    font-size: 8px !important;
  }

  .steam-connect-actions {
    max-width: 100%;
    gap: 8px;
  }

  .steam-action {
    min-height: 46px;
    padding-inline: 10px;
    font-size: 9px !important;
  }

  .steam-security-note {
    font-size: 7px !important;
  }
}
