@import url('https://fonts.googleapis.com/css2?family=Play:wght@400;700&display=swap');

:root { --orange:#ff5500; --bg:#181818; --header:#101010; --text:#f4f4f4; --muted:#b6b6b6; }
* { box-sizing:border-box; }
html { min-height:100%; background:var(--bg); }
body { margin:0; min-height:100vh; background:var(--bg); color:var(--text); font-family:Arial, sans-serif; }
.auth-header { height:66px; display:flex; align-items:center; justify-content:space-between; padding:0 32px; background:var(--header); border-bottom:1px solid #292929; }
.auth-logo img { display:block; width:165px; }
.auth-controls { display:flex; align-items:center; gap:8px; margin-left:auto; }
.auth-test-button { min-height:44px; padding:0 14px; border:1px solid #343438; border-radius:6px; background:#19191c; color:#f5f5f5; font:700 12px/1 Arial,sans-serif; letter-spacing:.08em; cursor:pointer; transition:background .2s,border-color .2s,color .2s; }
.auth-test-button:hover { background:#222225; border-color:#ff5500; color:#ff752f; }
.language { display:flex; align-items:center; gap:12px; font-size:16px; }
.language span { font-size:27px; line-height:1; }
.auth-main { width:min(510px, calc(100% - 32px)); margin:22px auto 40px; }
.timeline { list-style:none; margin:0 0 28px; padding:0; }
.timeline li { position:relative; display:grid; grid-template-columns:52px 1fr; gap:15px; min-height:96px; }
.timeline li:not(:last-child)::after { content:""; position:absolute; left:25px; top:55px; width:1px; height:35px; background:var(--orange); }
.number { width:52px; height:52px; display:grid; place-items:center; border:1px solid var(--orange); border-radius:50%; background:linear-gradient(135deg, rgba(255,85,0,.12), transparent); font-weight:700; }
.timeline h2 { margin:2px 0 7px; font-size:16px; line-height:1.2; }
.timeline p { margin:0; color:#fff; font-size:14px; line-height:1.28; }
.verification-card { text-align:center; }
.card-logo { width:220px; margin:0 auto 8px; }
.demo-code { width:200px; height:200px; margin:0 auto 26px; padding:13px; border-radius:7px; background:repeating-conic-gradient(#222 0 25%,#fff 0 50%) 0/22px 22px; border:12px solid #fff; display:grid; place-items:center; box-shadow:0 7px 18px rgba(0,0,0,.25); }
.demo-code span { padding:10px 14px; background:#fff; color:#111; font:700 18px Play, sans-serif; letter-spacing:.15em; }
.demo-code {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 0;
  background: #fff;
}
.demo-code::before {
  content: "";
  position: absolute;
  inset: 2px;
  z-index: -1;
  background: #fff url('../media/steam-qr-background.png') center / cover no-repeat;
  filter: blur(4px);
  transform: scale(1.08);
  opacity: .9;
}
.demo-code .qr-loading {
  width: 64px;
  height: 64px;
  padding: 0;
  display: grid;
  place-items: center;
  border-radius: 4px;
  background: rgba(22, 22, 24, .9);
  box-shadow: 0 4px 16px #0005;
}
.demo-code .qr-loading::after {
  content: "";
  width: 34px;
  height: 34px;
  border: 3px solid #777b80;
  border-top-color: #f1f1f1;
  border-radius: 50%;
  animation: qr-loading-spin .85s linear infinite;
}
@keyframes qr-loading-spin { to { transform: rotate(360deg); } }
.verification-card > p { margin:0 0 15px; font-size:16px; }
.steam-button { width:232px; min-height:50px; border:0; background:var(--orange); color:white; text-transform:uppercase; font-weight:700; font-size:14px; cursor:pointer; transition:filter .2s, transform .2s; display:inline-flex; align-items:center; justify-content:center; gap:11px; }
.steam-button:hover { filter:brightness(1.1); transform:translateY(-2px); }
.steam-icon { width:21px; height:21px; flex:0 0 21px; }
.verification-card .help { margin-top:30px; margin-bottom:12px; }
.support-link { color:#fff; font-weight:700; text-decoration:none; }
.support-link:hover { color:var(--orange); }
@media (max-width:600px) {
  .auth-header { height:60px; padding:0 18px; }
  .auth-logo img { width:130px; }
  .auth-test-button { min-height:40px; padding-inline:10px; font-size:11px; }
  .auth-main { margin-top:20px; }
  .timeline li { grid-template-columns:46px 1fr; gap:12px; min-height:112px; }
  .number { width:46px; height:46px; }
  .timeline li:not(:last-child)::after { left:22px; top:49px; height:55px; }
  .timeline h2 { font-size:15px; }
  .timeline p { font-size:13px; }
  .card-logo { width:190px; }
}

/* Match the dark information dialogs. */
:root { --bg:#0d0d0f; --header:#111113; --muted:#a9a9b0; }
body { background:radial-gradient(ellipse at 75% 20%, #ff55000a, transparent 48%), var(--bg); font-family:Arial, sans-serif; -webkit-font-smoothing:antialiased; }
.auth-header { height:80px; padding-inline:clamp(20px,5vw,80px); background:#111113e8; border-color:#ffffff0d; }
.auth-logo img { width:180px; }
.auth-main { width:min(1080px,calc(100% - 48px)); margin:64px auto; display:grid; grid-template-columns:minmax(0,1fr) minmax(0,440px); gap:64px; align-items:center; }
.timeline { margin:0; display:flex; flex-direction:column; gap:20px; }
.timeline li { grid-template-columns:44px minmax(0,1fr); gap:18px; min-height:0; padding:24px; border:1px solid #ffffff10; border-left:3px solid var(--orange); border-radius:10px; background:#19191b; }
.timeline li:not(:last-child)::after { display:none; }
.number { width:44px; height:44px; border-color:#ff550047; background:#ff550012; color:#ff752f; font:700 16px Play,Arial,sans-serif; }
.timeline h2 { margin:0 0 10px; color:#f5f5f7; font:700 19px/1.35 Play,Arial,sans-serif; letter-spacing:-.2px; overflow-wrap:break-word; }
.timeline p { color:#b8b8c0; font-size:14px; line-height:1.65; }
.verification-card { min-width:0; padding:36px 32px 30px; background:linear-gradient(155deg,#1e1e20,#141416); border:1px solid #ffffff17; border-top:2px solid #ff5500; border-radius:14px; box-shadow:0 24px 80px #0006; }
.card-logo { display:block; width:210px; max-width:80%; margin:0 auto 28px; }
.demo-code { margin-bottom:24px; }
.verification-card > p { font-size:15px; line-height:1.5; color:#b8b8c0; }
.steam-button { width:100%; min-height:48px; padding:14px 18px; border-radius:6px; font-family:Play,Arial,sans-serif; letter-spacing:.03em; }
.steam-button:hover { transform:none; background:#ff6a1f; filter:none; }
.verification-card .help { margin-top:28px; padding-top:24px; border-top:1px solid #ffffff10; font-size:13px; }
.support-link { display:inline-block; color:#ff752f; font-size:14px; line-height:1.5; text-underline-offset:4px; }
.support-link:hover { color:#ff945d; text-decoration:underline; }
a:focus-visible, button:focus-visible { outline:2px solid #ff752f; outline-offset:5px; }
@media (max-width:850px) {
  .auth-main { width:min(580px,calc(100% - 32px)); margin:32px auto 48px; grid-template-columns:1fr; gap:28px; }
  .timeline li { padding:20px; }
}
@media (max-width:420px) {
  .auth-header { height:66px; padding-inline:18px; }
  .auth-logo img { width:140px; }
  .timeline li { padding:18px 16px; gap:12px; grid-template-columns:36px minmax(0,1fr); }
  .number { width:36px; height:36px; }
  .timeline h2 { font-size:17px; }
  .verification-card { padding:28px 20px; }
}
@media (prefers-reduced-motion:reduce) { .steam-button { transition:none; } }
/* Compact light Steam button from the reference. */
.steam-button {
  width: auto;
  max-width: 100%;
  min-height: 32px;
  padding: 6px 26px;
  gap: 9px;
  border: 0;
  border-radius: 4px;
  background: #f2f2f2;
  color: #090909;
  font: 700 14px/20px Arial, sans-serif;
  letter-spacing: 0;
}
.steam-button .steam-icon { width: 20px; height: 20px; flex-basis: 20px; }
.steam-button:hover { background: #fff; color: #090909; transform: none; filter: none; }
.steam-button:active { background: #dedede; }
.steam-button {
  width: 100%;
  min-height: 48px;
  padding: 12px 24px;
  gap: 11px;
  font-size: 15px;
  line-height: 22px;
}
.steam-button .steam-icon { width: 24px; height: 24px; flex-basis: 24px; }
.verification-card .scan-instruction { margin: 0 0 20px; color: #dedee2; font-size: 15px; line-height: 1.5; }
.auth-divider { display: flex; align-items: center; gap: 14px; margin: 0 0 20px; color: #96969f; font-size: 13px; }
.auth-divider::before, .auth-divider::after { content: ""; height: 1px; flex: 1; background: #ffffff14; }
.login-help-trigger { padding:0; border:0; background:none; color:#b8b8c0; font:inherit; text-decoration:underline; text-underline-offset:4px; cursor:pointer; }
.login-help-trigger:hover { color:#ff752f; }
.steam-faq { border-radius:12px; background:#141414; }
.steam-faq .privacy-header form { margin:0; }
.steam-faq details { margin:0 0 10px; border:1px solid #ffffff14; border-radius:6px; background:#1c1c1c; }
.steam-faq summary { padding:15px 16px; cursor:pointer; color:#ededed; font-weight:700; line-height:1.5; }
.steam-faq details[open] summary { color:#ff752f; }
.steam-faq details p { margin:0; padding:0 16px 16px; font-weight:400; line-height:1.6; }
.faq-support { display:inline-block; margin-top:10px; color:#ff752f; text-underline-offset:4px; }
body.steam-faq-open { overflow:hidden; }
/* Soft ambient gradients around the authorization content. */
body {
  position: relative;
  isolation: isolate;
  background: #0b0b0d;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(ellipse 55% 65% at 85% 38%, rgba(255, 85, 0, .085), transparent 78%),
    radial-gradient(ellipse 60% 55% at 5% 0%, rgba(133, 93, 72, .075), transparent 80%),
    radial-gradient(ellipse 65% 55% at 15% 95%, rgba(73, 78, 95, .065), transparent 80%),
    linear-gradient(145deg, #111113 0%, #0c0c0e 50%, #101012 100%);
}
body::after { content: none; }
.auth-header { background: #101010e8; }
@media (max-width: 850px) {
  body::before {
    background:
      radial-gradient(ellipse 90% 50% at 95% 70%, rgba(255, 85, 0, .07), transparent 80%),
      radial-gradient(ellipse 100% 55% at 0% 0%, rgba(133, 93, 72, .065), transparent 80%),
      radial-gradient(ellipse 95% 45% at 0% 100%, rgba(73, 78, 95, .055), transparent 80%),
      linear-gradient(155deg, #111113, #0c0c0e 55%, #101012);
  }
}
