/* Steam page custom layer. Keep platform-specific polish out of global CSS. */
.steam-fonts-page {
  --steam-panel: #1b2838;
  --steam-panel-2: #22384d;
  --steam-panel-3: #0f1a24;
  --steam-line: #66c0f4;
  --steam-line-soft: rgba(102, 192, 244, .18);
  --steam-ok: #9ad65c;
  --steam-muted: rgba(199, 213, 224, .78);
}

.steam-profile-preview {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 14px;
  border: 3px solid #000;
  border-radius: 18px;
  background:
    linear-gradient(145deg, rgba(102, 192, 244, .22), transparent 46%),
    linear-gradient(180deg, var(--steam-panel-2), var(--steam-panel));
  box-shadow: var(--shadow-hard);
}

.steam-profile-preview::before,
.steam-fonts-page .font-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 28px 28px;
  opacity: .45;
  pointer-events: none;
}

.steam-window-bar,
.steam-profile-card,
.steam-mini-showcase {
  position: relative;
  z-index: 1;
}

.steam-window-bar {
  display: flex;
  gap: 6px;
  margin-bottom: 12px;
}

.steam-window-bar span {
  width: 10px;
  height: 10px;
  border: 2px solid #000;
  border-radius: 50%;
  background: var(--steam-line);
}

.steam-window-bar span:nth-child(2) {
  background: var(--brand-color);
}

.steam-window-bar span:nth-child(3) {
  background: var(--accent-2);
}

.steam-profile-card {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 14px;
  border: 2px solid rgba(255,255,255,.16);
  border-radius: 12px;
  background: rgba(0,0,0,.26);
}

.steam-avatar {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  border: 3px solid #000;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--steam-line), #d7f2ff);
  color: #0b0d13;
  font-family: "Luckiest Guy", cursive;
  font-size: 2.6rem;
  box-shadow: 0 6px 0 rgba(0,0,0,.28);
}

.steam-profile-copy {
  min-width: 0;
}

.steam-preview-name {
  margin: 0;
  color: #fff;
  font-family: "Luckiest Guy", cursive;
  font-size: clamp(1.45rem, 3vw, 2.1rem);
  letter-spacing: 1px;
  line-height: 1;
  text-shadow: 2px 2px 0 #000;
}

.steam-preview-status {
  margin: 8px 0 10px;
  color: var(--steam-ok);
  font-weight: 900;
}

.steam-preview-chip {
  display: inline-flex;
  max-width: 100%;
  padding: 6px 9px;
  border: 2px solid rgba(255,255,255,.16);
  border-radius: 999px;
  background: rgba(102,192,244,.14);
  color: rgba(255,255,255,.86);
  font-size: .85rem;
  font-weight: 900;
}

.steam-preview-lines {
  display: grid;
  gap: 8px;
  margin: 16px 0;
}

.steam-preview-lines span {
  display: block;
  height: 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.18);
}

.steam-preview-lines span:nth-child(1) {
  width: 86%;
}

.steam-preview-lines span:nth-child(2) {
  width: 68%;
}

.steam-preview-lines span:nth-child(3) {
  width: 76%;
}

.steam-mini-showcase {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.steam-mini-showcase span {
  min-width: 0;
  padding: 10px 8px;
  border: 2px solid rgba(255,255,255,.16);
  border-radius: 10px;
  background: rgba(0,0,0,.22);
  color: rgba(255,255,255,.86);
  font-size: .78rem;
  font-weight: 950;
  text-align: center;
}

.steam-profile-preview {
  padding: 12px;
  border-radius: 16px;
}

.steam-window-bar {
  margin-bottom: 9px;
}

.steam-window-bar span {
  width: 8px;
  height: 8px;
}

.steam-profile-card {
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 11px;
  padding: 11px;
}

.steam-avatar {
  width: 58px;
  height: 58px;
  border-radius: 13px;
  font-size: 2rem;
}

.steam-preview-name {
  font-size: clamp(1.12rem, 2vw, 1.48rem);
}

.steam-preview-status {
  margin: 6px 0 7px;
  font-size: .78rem;
}

.steam-preview-chip {
  padding: 5px 7px;
  font-size: .72rem;
}

.steam-preview-lines {
  gap: 6px;
  margin: 11px 0;
}

.steam-preview-lines span {
  height: 8px;
}

.steam-mini-showcase {
  gap: 6px;
}

.steam-mini-showcase span {
  padding: 8px 6px;
  font-size: .7rem;
}

.steam-fonts-page .generator-wrapper {
  --g-bg: rgba(8, 14, 20, .62);
  --g-surface: var(--steam-panel);
  --g-surface2: var(--steam-panel-2);
  --g-text: rgba(255,255,255,.94);
  --g-muted: var(--steam-muted);
  --g-brand: var(--steam-line);
  --g-ok: var(--steam-ok);
  --g-shadow: 0 7px 0 rgba(0,0,0,.35), 0 16px 32px rgba(0,0,0,.22);
}

.steam-fonts-page .sticky-input-container {
  background:
    linear-gradient(135deg, rgba(102,192,244,.18), transparent 42%),
    linear-gradient(180deg, var(--steam-panel-2), var(--steam-panel));
}

.steam-fonts-page #mainTextInput {
  background: rgba(0,0,0,.28);
  color: #fff;
}

.steam-fonts-page #mainTextInput::placeholder {
  color: rgba(199, 213, 224, .82);
}

.steam-fonts-page .results-grid {
  gap: 18px;
  align-items: stretch;
}

.steam-fonts-page .font-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  grid-template-rows: auto minmax(82px, 1fr) auto;
  min-height: 194px;
  padding: 0;
  border: 3px solid #000;
  border-radius: 18px;
  background:
    linear-gradient(145deg, rgba(102,192,244,.18), transparent 46%),
    linear-gradient(180deg, var(--steam-panel-2), var(--steam-panel));
  box-shadow: 0 7px 0 rgba(0,0,0,.35), 0 14px 26px rgba(0,0,0,.18);
  color: #fff;
  transform: translateY(0);
  transition: transform .14s ease, box-shadow .14s ease, border-color .14s ease, background .2s ease;
}

.steam-fonts-page .font-card:hover {
  border-color: var(--steam-line);
  transform: translateY(-3px);
  box-shadow: 0 10px 0 rgba(0,0,0,.35), 0 18px 30px rgba(0,0,0,.24);
}

.steam-fonts-page .font-card.is-pressed {
  transform: translateY(2px) scale(.985) !important;
  box-shadow: 0 4px 0 rgba(0,0,0,.38), 0 10px 20px rgba(0,0,0,.2);
}

.steam-fonts-page .font-card.copied {
  border-color: var(--steam-ok);
  background:
    linear-gradient(145deg, rgba(154,214,92,.22), transparent 46%),
    linear-gradient(180deg, #254a35, var(--steam-panel));
}

.steam-fonts-page .font-name {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 0;
  padding: 11px 13px 9px;
  border-bottom: 2px solid rgba(255,255,255,.14);
  background: rgba(0,0,0,.24);
  color: rgba(255,255,255,.92);
  font-family: "Segoe UI", system-ui, sans-serif;
  font-size: .82rem;
  font-weight: 950;
  letter-spacing: .04em;
  line-height: 1.1;
  text-transform: uppercase;
}

.steam-fonts-page .font-name::after {
  content: "PROFILE";
  flex: 0 0 auto;
  padding: 4px 7px;
  border: 1px solid rgba(102,192,244,.45);
  border-radius: 999px;
  background: var(--steam-line-soft);
  color: var(--steam-line);
  font-size: .66rem;
  font-weight: 950;
}

.steam-fonts-page .font-preview {
  position: relative;
  display: block;
  min-height: 82px;
  max-height: calc((1.35em * 2) + 41px);
  margin: 13px;
  padding: 28px 12px 13px;
  border: 2px solid rgba(255,255,255,.16);
  border-radius: 12px;
  background: rgba(0,0,0,.26);
  box-shadow: inset 0 0 0 1px rgba(102,192,244,.08);
  color: #fff;
  font-size: clamp(1.03rem, 1.2vw, 1.22rem);
  font-weight: 900;
  line-height: 1.35;
  overflow: hidden;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.steam-fonts-page .font-preview::before {
  content: "Steam name preview";
  position: absolute;
  top: 8px;
  left: 12px;
  color: rgba(199, 213, 224, .72);
  font-family: "Segoe UI", system-ui, sans-serif;
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .02em;
}

.steam-fonts-page .copy-hint {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 13px 13px;
  color: rgba(255,255,255,.88);
  font-size: .92rem;
  font-weight: 950;
}

.steam-fonts-page .font-card .copy-hint::before {
  content: "COPY";
  display: inline-grid;
  place-items: center;
  width: auto;
  min-width: 46px;
  height: auto;
  padding: 4px 7px;
  border: 2px solid #000;
  border-radius: 8px;
  background: var(--steam-line);
  color: #0b0d13;
  box-shadow: 0 3px 0 rgba(0,0,0,.22);
  font-family: "Segoe UI", system-ui, sans-serif;
  font-size: .68rem;
  font-weight: 950;
  line-height: 1;
}

.steam-fonts-page .font-card.copied .copy-hint::before {
  content: "DONE";
  background: var(--steam-ok);
}

body.light-theme.steam-fonts-page .steam-profile-preview,
body.light-theme.steam-fonts-page .font-card {
  box-shadow: 0 10px 0 rgba(0,0,0,.18), 0 18px 32px rgba(0,0,0,.18);
}

body.light-theme.steam-fonts-page .generator-wrapper {
  --g-bg: rgba(8, 14, 20, .62);
  --g-surface: var(--steam-panel);
  --g-text: rgba(255,255,255,.94);
  --g-muted: var(--steam-muted);
  --g-brand: var(--steam-line);
}

body.light-theme.steam-fonts-page .seo-tool-generator > h2 {
  color: #111318;
  text-shadow: none;
}

.steam-fonts-page .seo-content-section,
.steam-fonts-page .seo-faq-section {
  position: relative;
  width: min(1100px, calc(100% - 24px));
}

.steam-fonts-page .seo-content-section {
  margin-top: 18px;
  padding: clamp(20px, 3vw, 30px);
  border: 3px solid #000;
  border-radius: 22px;
  background:
    radial-gradient(circle at 12% 0%, rgba(102,192,244,.22), transparent 30%),
    radial-gradient(circle at 90% 10%, rgba(154,214,92,.12), transparent 32%),
    linear-gradient(180deg, rgba(34,56,77,.96), rgba(15,26,36,.96));
  box-shadow: var(--shadow-hard);
  color: #fff;
  overflow: hidden;
}

.steam-fonts-page .seo-content-section::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(90deg, rgba(102,192,244,.10) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255,255,255,.055) 1px, transparent 1px);
  background-size: 30px 30px;
  opacity: .72;
}

.steam-fonts-page .seo-content-section::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255,255,255,.06), transparent 42%);
}

.steam-fonts-page .seo-section-header,
.steam-fonts-page .seo-style-grid,
.steam-fonts-page .seo-info-grid,
.steam-fonts-page .seo-tip-list,
.steam-fonts-page .seo-guide-link {
  position: relative;
  z-index: 1;
}

.steam-fonts-page .seo-section-header {
  max-width: 850px;
  display: grid;
  gap: 8px;
}

.steam-fonts-page .seo-section-header::before {
  display: inline-flex;
  width: fit-content;
  padding: 5px 10px;
  border: 1px solid rgba(102,192,244,.42);
  border-radius: 6px;
  background: rgba(102,192,244,.14);
  color: #9edbff;
  font-family: "Segoe UI", system-ui, sans-serif;
  font-size: .72rem;
  font-weight: 950;
  letter-spacing: .09em;
  line-height: 1;
  text-transform: uppercase;
}

.steam-fonts-page .seo-style-section .seo-section-header::before {
  content: "profile styles";
}

.steam-fonts-page .seo-use-section .seo-section-header::before {
  content: "profile zones";
}

.steam-fonts-page .seo-compatibility-section .seo-section-header::before {
  content: "steam limits";
}

.steam-fonts-page .seo-recommend-section .seo-section-header::before {
  content: "gaming picks";
}

.steam-fonts-page .seo-readable .seo-section-header::before {
  content: "before saving";
}

.steam-fonts-page .seo-section-header h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(1.45rem, 2.7vw, 2.2rem);
  text-shadow: 3px 3px 0 rgba(0,0,0,.62);
}

.steam-fonts-page .seo-section-header p,
.steam-fonts-page .seo-content-section article p,
.steam-fonts-page .seo-content-section li,
.steam-fonts-page .seo-guide-link {
  color: rgba(199,213,224,.82);
  font-weight: 760;
}

.steam-fonts-page .seo-style-grid,
.steam-fonts-page .seo-info-grid {
  gap: 14px;
}

.steam-fonts-page .seo-style-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.steam-fonts-page .seo-info-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.steam-fonts-page .seo-style-card,
.steam-fonts-page .seo-info-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border: 2px solid rgba(102,192,244,.20);
  border-radius: 14px;
  background:
    linear-gradient(145deg, rgba(102,192,244,.12), transparent 48%),
    rgba(0,0,0,.26);
  box-shadow: 0 7px 0 rgba(0,0,0,.30), 0 14px 26px rgba(0,0,0,.18);
}

.steam-fonts-page .seo-style-card::before,
.steam-fonts-page .seo-info-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(102,192,244,.18) 0 4px, transparent 4px),
    linear-gradient(180deg, rgba(255,255,255,.05), transparent 48%);
}

.steam-fonts-page .seo-style-card h3,
.steam-fonts-page .seo-info-card h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  color: #fff;
  font-family: "Segoe UI", system-ui, sans-serif;
  font-size: .88rem;
  font-weight: 950;
  letter-spacing: .04em;
  line-height: 1.2;
  text-shadow: none;
  text-transform: uppercase;
}

.steam-fonts-page .seo-style-card h3::before,
.steam-fonts-page .seo-info-card h3::before {
  content: "";
  flex: 0 0 auto;
  width: 11px;
  height: 11px;
  border: 1px solid rgba(255,255,255,.32);
  border-radius: 3px;
  background: var(--steam-line);
  box-shadow: 0 0 12px rgba(102,192,244,.34);
}

.steam-fonts-page .seo-style-preview {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  min-height: 56px;
  max-height: 76px;
  border: 2px solid rgba(102,192,244,.18);
  border-radius: 10px;
  background: rgba(0,0,0,.28);
  box-shadow: inset 0 0 0 1px rgba(102,192,244,.08);
  color: #fff;
  font-size: 1.03rem;
  line-height: 1.35;
  overflow: hidden;
}

.steam-fonts-page .seo-limit-meta {
  border-color: rgba(0,0,0,.62);
  border-radius: 6px;
  background: var(--steam-line);
  color: #0b1720;
  box-shadow: 0 4px 0 rgba(0,0,0,.24);
}

.steam-fonts-page .seo-compatibility-section {
  background:
    radial-gradient(circle at 10% 0%, rgba(154,214,92,.18), transparent 28%),
    linear-gradient(180deg, rgba(34,56,77,.96), rgba(15,26,36,.96));
}

.steam-fonts-page .seo-compatibility-section .seo-info-card:first-child {
  border-color: rgba(154,214,92,.42);
}

.steam-fonts-page .seo-compatibility-section .seo-info-card:first-child h3::before {
  background: var(--steam-ok);
  box-shadow: 0 0 14px rgba(154,214,92,.32);
}

.steam-fonts-page .seo-recommend-section .seo-info-grid--recommendations {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.steam-fonts-page .seo-recommend-section .seo-info-card {
  padding-top: 58px;
}

.steam-fonts-page .seo-recommend-section .seo-info-card::after {
  position: absolute;
  top: 14px;
  left: 16px;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 2px solid #000;
  border-radius: 8px;
  background: var(--steam-line);
  color: #0b1720;
  font-weight: 950;
  box-shadow: 0 5px 0 rgba(0,0,0,.24);
}

.steam-fonts-page .seo-recommend-section .seo-info-card:nth-child(1)::after {
  content: "RPG";
  font-size: .62rem;
}

.steam-fonts-page .seo-recommend-section .seo-info-card:nth-child(2)::after {
  content: "MOD";
  font-size: .62rem;
}

.steam-fonts-page .seo-recommend-section .seo-info-card:nth-child(3)::after {
  content: "FPS";
  font-size: .62rem;
  background: var(--steam-ok);
}

.steam-fonts-page .seo-recommend-section .seo-info-card:nth-child(4)::after {
  content: "!";
  background: #d84b4b;
  color: #fff;
}

.steam-fonts-page .seo-tip-list {
  display: grid;
  gap: 12px;
  margin: 18px 0;
  padding: 0;
  list-style: none;
  counter-reset: steamTip;
}

.steam-fonts-page .seo-tip-list li {
  counter-increment: steamTip;
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 12px;
  align-items: start;
  padding: 14px;
  border: 2px solid rgba(102,192,244,.18);
  border-radius: 12px;
  background: rgba(0,0,0,.22);
}

.steam-fonts-page .seo-tip-list li::before {
  content: counter(steamTip);
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 2px solid #000;
  border-radius: 8px;
  background: var(--steam-line);
  color: #0b1720;
  font-weight: 950;
  box-shadow: 0 4px 0 rgba(0,0,0,.22);
}

.steam-fonts-page .seo-guide-link {
  padding: 14px 16px;
  border: 2px solid rgba(102,192,244,.18);
  border-radius: 12px;
  background: rgba(102,192,244,.10);
}

.steam-fonts-page .seo-guide-link a {
  color: #d7f2ff;
  text-decoration-color: rgba(215,242,255,.5);
}

.steam-fonts-page .seo-faq-section {
  max-width: 920px;
  background:
    radial-gradient(circle at 10% 0%, rgba(102,192,244,.16), transparent 28%),
    var(--steam-panel);
  color: #fff;
}

.steam-fonts-page .seo-faq-section .faq-title {
  color: #fff;
}

body.light-theme.steam-fonts-page .seo-content-section,
body.light-theme.steam-fonts-page .seo-faq-section {
  background:
    radial-gradient(circle at 12% 0%, rgba(102,192,244,.16), transparent 30%),
    radial-gradient(circle at 90% 10%, rgba(154,214,92,.12), transparent 32%),
    linear-gradient(180deg, #edf7ff, #dceaf5);
  color: #111318;
  box-shadow: 0 10px 0 rgba(0,0,0,.14), 0 18px 32px rgba(0,0,0,.14);
}

body.light-theme.steam-fonts-page .seo-section-header h2,
body.light-theme.steam-fonts-page .seo-style-card h3,
body.light-theme.steam-fonts-page .seo-info-card h3,
body.light-theme.steam-fonts-page .seo-faq-section .faq-title {
  color: #111318;
  text-shadow: none;
}

body.light-theme.steam-fonts-page .seo-section-header p,
body.light-theme.steam-fonts-page .seo-content-section article p,
body.light-theme.steam-fonts-page .seo-content-section li,
body.light-theme.steam-fonts-page .seo-guide-link {
  color: rgba(17,19,24,.74);
}

body.light-theme.steam-fonts-page .seo-style-card,
body.light-theme.steam-fonts-page .seo-info-card {
  border-color: rgba(0,0,0,.14);
  background:
    linear-gradient(145deg, rgba(102,192,244,.14), transparent 48%),
    rgba(255,255,255,.70);
  box-shadow: 0 7px 0 rgba(0,0,0,.14), 0 14px 26px rgba(0,0,0,.10);
}

body.light-theme.steam-fonts-page .seo-style-preview,
body.light-theme.steam-fonts-page .seo-tip-list li,
body.light-theme.steam-fonts-page .seo-guide-link {
  border-color: rgba(0,0,0,.14);
  background: rgba(255,255,255,.62);
  color: #111318;
}

body.light-theme.steam-fonts-page .seo-guide-link a {
  color: #0b65a6;
}

@media (max-width: 980px) {
  .steam-fonts-page .seo-style-grid,
  .steam-fonts-page .seo-info-grid,
  .steam-fonts-page .seo-recommend-section .seo-info-grid--recommendations {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .steam-profile-card {
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 10px;
    padding: 12px;
  }

  .steam-avatar {
    width: 58px;
    height: 58px;
    border-radius: 14px;
    font-size: 2rem;
  }

  .steam-fonts-page .font-card {
    min-height: 176px;
  }

  .steam-fonts-page .font-preview {
    min-height: 74px;
  }

  .steam-fonts-page .seo-content-section,
  .steam-fonts-page .seo-faq-section {
    width: min(100%, calc(100vw - 28px));
    padding: 18px;
    border-radius: 18px;
  }

  .steam-fonts-page .seo-style-grid,
  .steam-fonts-page .seo-info-grid,
  .steam-fonts-page .seo-recommend-section .seo-info-grid--recommendations {
    grid-template-columns: 1fr;
  }

  .steam-fonts-page .seo-section-header h2 {
    font-size: 1.4rem;
  }

  .steam-fonts-page .seo-tip-list li {
    grid-template-columns: 34px 1fr;
    padding: 12px;
  }
}
