body.steam-panel-open .cursor-bee {
  z-index: 1400;
  opacity: 1 !important;
  background-image: url("./assets/pixel/spr_hand.png");
  filter:
    drop-shadow(2px 0 0 rgb(254, 118, 168))
    drop-shadow(-2px 0 0 rgba(0, 132, 255, 0.4))
    drop-shadow(3px 4px 0 rgba(54, 80, 0, 0.18));
}

.steam-overlay {
  --steam-ink: #121014;
  --steam-paper: #fffdf3;
  --steam-pink: #ff76a8;
  --steam-blue: #64a8cd;
  --steam-yellow: #ffd001;
  --steam-teal: #0ccabe;
  --steam-brown: #734f22;
  --steam-line: #0b090b;
  --steam-muted: rgba(18, 16, 20, 0.64);
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  place-items: center;
  padding: 20px;
  overflow: hidden;
  background:
    linear-gradient(45deg, rgba(255, 224, 118, 0.72) 25%, transparent 25%, transparent 75%, rgba(255, 224, 118, 0.72) 75%),
    linear-gradient(45deg, rgba(198, 222, 158, 0.58) 25%, transparent 25%, transparent 75%, rgba(198, 222, 158, 0.58) 75%),
    radial-gradient(circle at 18% 22%, rgba(255, 253, 243, 0.62), transparent 34%),
    radial-gradient(circle at 82% 76%, rgba(255, 188, 154, 0.46), transparent 34%),
    linear-gradient(135deg, #fff0ae 0%, #f1e6a1 48%, #dce8b6 100%);
  background-color: #fff0ae;
  background-position: 0 0, 72px 72px, 0 0, 0 0, 0 0;
  background-size: 144px 144px, 144px 144px, 100% 100%, 100% 100%, 100% 100%;
  color: var(--steam-ink);
  font-family: "Source Han Sans SC", "Noto Sans CJK SC", "Noto Sans SC", "Microsoft YaHei UI", "Microsoft YaHei", system-ui, sans-serif;
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
  image-rendering: auto;
  cursor: none !important;
  isolation: isolate;
  animation: steamOverlayDrift 9800ms ease-in-out infinite;
}

.steam-overlay::before {
  content: "";
  position: absolute;
  inset: 28px;
  z-index: 0;
  border: 12px solid var(--steam-line);
  border-radius: 46px;
  background: rgba(255, 253, 243, 0.1);
  pointer-events: none;
  box-shadow:
    8px 0 0 rgba(255, 118, 168, 0.5),
    -8px 0 0 rgba(100, 168, 205, 0.44),
    inset 0 0 0 2px rgba(255, 253, 243, 0.34),
    0 18px 0 rgba(0, 0, 0, 0.22);
}

.steam-overlay *,
.steam-overlay *::before,
.steam-overlay *::after {
  box-sizing: border-box;
}

.steam-overlay button,
.steam-overlay a,
.steam-overlay input {
  font: inherit;
  cursor: none !important;
}

.steam-panel-shell,
.steam-panel-shell * {
  cursor: none !important;
}

.steam-panel-shell button,
.steam-panel-shell a,
.steam-panel-shell input,
.steam-panel-shell label {
  cursor: none !important;
}

.steam-overlay.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.steam-panel-shell {
  z-index: 2;
  width: min(1640px, calc(100vw - clamp(180px, 14vw, 320px)));
  height: calc(100vh - clamp(42px, 5vh, 86px));
  max-width: none;
  max-height: none;
  overflow: visible;
  display: grid;
  position: relative;
  grid-template-rows: auto auto minmax(0, 1fr);
  border: 8px solid var(--steam-line);
  background:
    repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.03) 0 1px, transparent 1px 6px),
    var(--steam-paper);
  box-shadow:
    10px 0 0 var(--steam-pink),
    -10px 0 0 var(--steam-blue),
    0 20px 0 rgba(0, 0, 0, 0.25);
}

.steam-panel-topbar,
.steam-tabs {
  flex-shrink: 0;
}

.steam-panel-topbar {
  display: grid;
  grid-template-columns: minmax(360px, 1fr) minmax(300px, 460px) auto;
  align-items: center;
  gap: 20px;
  padding: 20px 26px;
  border-bottom: 6px solid var(--steam-line);
  background: var(--steam-yellow);
}

.steam-title-block {
  min-width: 0;
}

.steam-panel-topbar h1,
.steam-account-card h2,
.steam-section-heading h2 {
  margin: 0;
  line-height: 1.05;
  letter-spacing: 0;
}

.steam-panel-topbar h1 {
  font-size: clamp(34px, 4vw, 62px);
}

.steam-topbar-actions {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
}

.steam-panel-kicker,
.steam-control-label {
  display: block;
  margin-bottom: 6px;
  color: rgba(18, 16, 20, 0.62);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.steam-icon-button {
  width: 48px;
  height: 48px;
  border: 5px solid var(--steam-line);
  border-radius: 50%;
  background: var(--steam-paper);
  color: var(--steam-line);
  font-size: 34px;
  font-weight: 900;
  line-height: 1;
}

.steam-notice {
  margin: 14px 18px 0;
  padding: 12px 16px;
  border: 4px solid var(--steam-line);
  background: #e8fff9;
  color: #0c4c43;
  font-weight: 900;
}

.steam-notice.error {
  background: #ffe5ec;
  color: #8e1636;
}

.steam-notice.success {
  background: #f0ffc3;
  color: #355800;
}

.steam-account-card {
  position: relative;
  min-width: 0;
}

.steam-account-trigger {
  min-width: 190px;
  max-width: 260px;
  min-height: 54px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  padding: 4px 6px;
  border: 0;
  background:
    linear-gradient(90deg, rgba(11, 9, 11, 0.08), transparent 70%),
    transparent;
  color: var(--steam-ink);
  box-shadow: inset 0 -4px 0 rgba(11, 9, 11, 0.16);
  text-align: left;
}

.steam-account-trigger.is-open {
  transform: translateY(1px);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.24), rgba(255, 255, 255, 0.04)),
    transparent;
  box-shadow: inset 0 -4px 0 var(--steam-pink);
}

.steam-avatar-shell {
  width: 44px;
  height: 44px;
  overflow: hidden;
  display: grid;
  place-items: center;
  border: 4px solid var(--steam-line);
  border-radius: 8px;
  background: #121212;
  color: #fffdf3;
  font-size: 22px;
  font-weight: 900;
  box-shadow:
    3px 0 0 rgba(255, 126, 164, 0.82),
    -3px 0 0 rgba(100, 168, 205, 0.82);
}

.steam-avatar-shell img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.steam-account-copy {
  min-width: 0;
}

.steam-account-copy .steam-panel-kicker {
  margin-bottom: 2px;
  color: rgba(18, 16, 20, 0.52);
  font-size: 9px;
}

.steam-account-card h2 {
  overflow: hidden;
  max-width: 174px;
  color: rgba(18, 16, 20, 0.88);
  font-size: 20px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.steam-account-card p {
  overflow: hidden;
  margin: 2px 0 0;
  color: rgba(18, 16, 20, 0.58);
  font-size: 12px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.steam-account-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.steam-account-dropdown {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  z-index: 30;
  width: min(280px, 78vw);
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 5px solid var(--steam-line);
  background:
    repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.035) 0 1px, transparent 1px 6px),
    var(--steam-paper);
  box-shadow:
    7px 0 0 var(--steam-pink),
    -7px 0 0 var(--steam-blue),
    0 14px 0 rgba(11, 9, 11, 0.24);
}

.steam-account-dropdown[hidden] {
  display: none;
}

.steam-account-dropdown .steam-pixel-button {
  width: 100%;
  text-align: center;
}

.steam-pixel-button {
  min-height: 48px;
  padding: 10px 20px 12px;
  border: 5px solid var(--steam-line);
  border-radius: 999px;
  color: #6f5a00;
  background: var(--steam-yellow);
  font-weight: 900;
  line-height: 1;
  text-decoration: none;
}

.steam-pixel-button.steam-primary {
  background: var(--steam-yellow);
}

.steam-pixel-button.steam-teal {
  color: #fffdf3;
  background: var(--steam-teal);
}

.steam-pixel-button.steam-secondary {
  color: #7c6240;
  background: var(--steam-paper);
}

.steam-pixel-button:disabled {
  opacity: 0.55;
  cursor: progress;
}

.steam-tabs {
  position: absolute;
  left: -116px;
  top: clamp(156px, 17vh, 196px);
  z-index: 14;
  display: grid;
  gap: 10px;
  padding: 0;
}

.steam-tab-button,
.steam-pill-button {
  min-height: 42px;
  padding: 8px 16px 10px;
  border: 4px solid var(--steam-line);
  border-radius: 999px;
  color: var(--steam-brown);
  background: var(--steam-paper);
  font-weight: 900;
}

.steam-tab-button {
  position: relative;
  width: 98px;
  min-height: 64px;
  padding: 10px 16px 12px 12px;
  border-radius: 8px 2px 3px 8px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.82), rgba(255, 253, 243, 0.92)),
    #fffdf3;
  box-shadow: none;
  filter:
    drop-shadow(7px 0 0 rgba(11, 9, 11, 0.88))
    drop-shadow(0 7px 0 rgba(11, 9, 11, 0.22));
  clip-path: polygon(0 8px, calc(100% - 10px) 0, 100% 9px, 100% calc(100% - 10px), calc(100% - 12px) 100%, 0 calc(100% - 7px));
}

.steam-tab-button::after {
  content: "";
  position: absolute;
  top: 9px;
  right: 7px;
  bottom: 10px;
  width: 9px;
  border-left: 3px solid rgba(11, 9, 11, 0.18);
  background: rgba(187, 236, 59, 0.18);
}

.steam-tab-button.active,
.steam-pill-button.active {
  color: #151012;
  background: var(--steam-pink);
}

.steam-tab-button.active {
  transform: translateX(16px);
  box-shadow: none;
  filter:
    drop-shadow(6px 0 0 var(--steam-blue))
    drop-shadow(-4px 0 0 var(--steam-pink))
    drop-shadow(0 7px 0 rgba(11, 9, 11, 0.24));
}

.steam-tab-button.active::after {
  background: rgba(255, 255, 255, 0.28);
  border-left-color: rgba(11, 9, 11, 0.24);
}

.steam-tab-panel {
  min-height: 0;
  overflow: auto;
  display: none;
  grid-template-columns: 1fr;
  gap: 16px;
  padding: 14px 18px 18px;
}

.steam-tab-panel.active {
  display: grid;
}

.steam-surface {
  min-width: 0;
  padding: 18px;
  border: 5px solid var(--steam-line);
  background: var(--steam-paper);
}

.steam-section-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.steam-confidence-pill {
  padding: 7px 12px;
  border: 4px solid var(--steam-line);
  border-radius: 999px;
  background: #f0ffc3;
  font-weight: 900;
}

.steam-summary-text {
  margin: 0 0 16px;
  color: #473b31;
  font-size: 18px;
  font-weight: 850;
  line-height: 1.55;
}

.steam-metric-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}

.steam-metric-strip div {
  padding: 14px;
  border: 4px solid var(--steam-line);
  background: #fff4c8;
}

.steam-metric-strip span {
  display: block;
  color: var(--steam-muted);
  font-size: 13px;
  font-weight: 900;
}

.steam-metric-strip strong {
  display: block;
  margin-top: 4px;
  font-size: 22px;
}

.steam-two-column {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.steam-term-box {
  padding: 14px;
  border: 4px solid var(--steam-line);
  background: #f7ffe0;
}

.steam-term-box h3 {
  margin: 0 0 10px;
}

.steam-term-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.steam-term {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  padding: 7px 10px;
  border: 3px solid var(--steam-line);
  border-radius: 999px;
  background: #fff;
  font-weight: 900;
}

.steam-empty-mini {
  color: var(--steam-muted);
  font-weight: 900;
}

.steam-recommendation-list {
  display: grid;
  gap: 10px;
}

.steam-recommendation {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  padding: 14px;
  border: 4px solid var(--steam-line);
  background: #e8fff9;
}

.steam-recommendation h3,
.steam-recommendation p {
  margin: 0;
}

.steam-recommendation p {
  margin-top: 4px;
  color: var(--steam-muted);
  font-weight: 800;
}

.steam-empty-state {
  padding: 24px;
  color: var(--steam-muted);
  text-align: center;
}

.steam-empty-state h3 {
  margin: 0 0 6px;
  color: var(--steam-ink);
}

.steam-share-lab-shell {
  height: 100%;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(250px, 310px) minmax(0, 1fr);
  gap: 14px;
  padding: 12px;
}

#tab-share.steam-tab-panel.active {
  overflow: hidden;
}

.steam-share-sidebar {
  min-height: 0;
  max-height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 10px;
  border: 4px solid var(--steam-line);
  background: #fff8df;
}

.steam-share-control-block {
  display: grid;
  gap: 7px;
  padding: 10px;
  border: 4px solid var(--steam-line);
  background: #f7ffe0;
}

.steam-pill-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.steam-pill-button {
  position: relative;
  overflow: hidden;
}

.steam-pill-button[data-option-id="adult_romance"] {
  background:
    radial-gradient(circle at 16% 28%, rgba(255, 255, 255, 0.72) 0 9%, transparent 10%),
    linear-gradient(135deg, #fff4fb, #ff7fbc 58%, #ffcae4);
  color: #4c1834;
}

.steam-pill-button[data-option-id="adult_romance"]::before,
.steam-pill-button[data-option-id="adult_romance"]::after {
  content: "♥";
  position: absolute;
  pointer-events: none;
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  line-height: 1;
  animation: steamHeartFloat 1800ms ease-in-out infinite;
}

.steam-pill-button[data-option-id="adult_romance"]::before {
  left: 12px;
  bottom: 7px;
}

.steam-pill-button[data-option-id="adult_romance"]::after {
  right: 13px;
  top: 7px;
  animation-delay: -820ms;
}

.steam-pill-button[data-option-id="auteur_taste"] {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.65), transparent 32%, rgba(255, 255, 255, 0.46) 52%, transparent 70%) -140% 0 / 240% 100%,
    linear-gradient(135deg, #fffdf3, #e8fff9 50%, #f5ecff);
  color: #251743;
  animation: steamAuteurSweep 2600ms ease-in-out infinite;
}

.steam-pill-button[data-option-id="auteur_taste"].active {
  box-shadow:
    4px 0 0 var(--steam-blue),
    -4px 0 0 var(--steam-pink),
    0 5px 0 rgba(11, 9, 11, 0.22);
}

.steam-share-check {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border: 4px solid var(--steam-line);
  background: var(--steam-paper);
  font-weight: 900;
}

.steam-share-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.steam-share-actions .steam-pixel-button {
  flex: 1 1 130px;
}

.steam-share-preview-panel {
  position: relative;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  display: grid;
  padding: 10px;
  border: 4px solid var(--steam-line);
  background:
    linear-gradient(45deg, rgba(255, 255, 255, 0.35) 25%, transparent 25%, transparent 75%, rgba(255, 255, 255, 0.35) 75%),
    linear-gradient(45deg, rgba(255, 255, 255, 0.35) 25%, transparent 25%, transparent 75%, rgba(255, 255, 255, 0.35) 75%),
    #ded6ca;
  background-position: 0 0, 18px 18px;
  background-size: 36px 36px;
}

.steam-share-preview-panel[data-theme="adult_romance"] {
  background:
    radial-gradient(circle at 18% 18%, rgba(255, 118, 168, 0.22), transparent 24%),
    radial-gradient(circle at 82% 12%, rgba(255, 208, 232, 0.28), transparent 26%),
    linear-gradient(45deg, rgba(255, 255, 255, 0.35) 25%, transparent 25%, transparent 75%, rgba(255, 255, 255, 0.35) 75%),
    #ead7df;
  background-size: auto, auto, 36px 36px, auto;
}

.steam-share-preview-panel[data-theme="obscure_taste"],
.steam-share-preview-panel[data-theme="auteur_taste"] {
  background:
    radial-gradient(circle at 20% 78%, rgba(100, 168, 205, 0.2), transparent 24%),
    radial-gradient(circle at 84% 22%, rgba(187, 236, 59, 0.18), transparent 26%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.36) 25%, transparent 25%, transparent 75%, rgba(255, 255, 255, 0.36) 75%),
    #d9ded3;
  background-size: auto, auto, 34px 34px, auto;
}

.steam-share-preview-panel::before {
  content: "";
  position: absolute;
  inset: 10px;
  z-index: 0;
  pointer-events: none;
  opacity: 0;
  background:
    radial-gradient(circle at 22% 20%, rgba(255, 118, 168, 0.18), transparent 24%),
    radial-gradient(circle at 78% 18%, rgba(100, 168, 205, 0.18), transparent 26%),
    linear-gradient(115deg, transparent 0 38%, rgba(255, 255, 255, 0.48) 45%, transparent 52% 100%);
  transform: translateX(-18%);
}

.steam-share-preview-panel.is-theme-shifting::before {
  animation: steamThemeShift 680ms cubic-bezier(0.18, 0.86, 0.22, 1);
}

.steam-pet-commentary {
  position: relative;
  z-index: 1;
  max-width: none;
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  align-items: center;
  gap: 0;
  min-height: 86px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  pointer-events: auto;
  touch-action: none;
  user-select: none;
  transform: translate(var(--steam-comment-x, -42px), var(--steam-comment-y, 0));
  transition: filter 160ms ease, transform 160ms ease;
}

.steam-pet-commentary.is-dragging {
  filter: drop-shadow(0 10px 0 rgba(11, 9, 11, 0.18));
  transition: none;
}

.steam-panel-pet {
  z-index: 2;
  width: 86px;
  height: 86px;
  transform: translateX(8px) translateY(3px) rotate(-3deg);
  filter: drop-shadow(5px 6px 0 rgba(11, 9, 11, 0.2));
}

.steam-panel-pet .pixel-pet {
  width: 100%;
  height: 100%;
}

.steam-fallback-pet {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  border: 5px solid var(--steam-line);
  background: var(--steam-yellow);
  box-shadow:
    5px 0 0 var(--steam-pink),
    -5px 0 0 var(--steam-blue);
}

.steam-fallback-pet span {
  width: 36px;
  height: 36px;
  border: 5px solid var(--steam-line);
  border-radius: 50%;
  background: #fffdf3;
}

.steam-pet-speech {
  position: relative;
  min-width: 0;
  min-height: 70px;
  display: grid;
  align-content: center;
  padding: 10px 14px 12px 30px;
  border: 4px solid var(--steam-line);
  border-radius: 18px 8px 14px 8px;
  background:
    repeating-linear-gradient(0deg, rgba(11, 9, 11, 0.035) 0 1px, transparent 1px 6px),
    #fffdf3;
  box-shadow:
    6px 0 0 var(--steam-blue),
    0 7px 0 rgba(11, 9, 11, 0.22);
  transform: rotate(0.6deg);
}

.steam-pet-speech::before {
  content: "";
  position: absolute;
  left: -17px;
  top: 25px;
  width: 28px;
  height: 22px;
  border-left: 4px solid var(--steam-line);
  border-bottom: 4px solid var(--steam-line);
  background: #fffdf3;
  transform: rotate(38deg);
}

.steam-pet-speech .steam-panel-kicker {
  margin-bottom: 2px;
  color: rgba(18, 16, 20, 0.48);
  font-size: 10px;
}

.steam-pet-speech p {
  margin: 2px 0 0;
  color: var(--steam-ink);
  font-size: 13px;
  font-weight: 900;
  line-height: 1.28;
}

.steam-share-preview-viewport {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  display: block;
  isolation: isolate;
  padding: 16px 20px;
  overscroll-behavior-x: none;
  scrollbar-gutter: stable;
  border: 4px solid rgba(11, 9, 11, 0.82);
  background:
    repeating-linear-gradient(115deg, rgba(255, 255, 255, 0.13) 0 2px, transparent 2px 18px),
    repeating-linear-gradient(24deg, rgba(11, 9, 11, 0.035) 0 1px, transparent 1px 20px),
    rgba(238, 231, 220, 0.88);
}

.steam-share-preview-viewport::before,
.steam-share-preview-viewport::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.steam-share-preview-viewport::before {
  opacity: 0.42;
  background:
    repeating-linear-gradient(90deg, transparent 0 46px, rgba(100, 168, 205, 0.12) 46px 52px, transparent 52px 96px),
    repeating-linear-gradient(0deg, transparent 0 38px, rgba(255, 126, 164, 0.1) 38px 44px, transparent 44px 88px);
  background-size: 192px 176px;
  animation: steamPreviewDrift 18s linear infinite;
}

.steam-share-preview-viewport::after {
  opacity: 0.36;
  background:
    linear-gradient(120deg, transparent 0 38%, rgba(255, 253, 243, 0.55) 47%, transparent 56% 100%),
    repeating-linear-gradient(135deg, rgba(11, 9, 11, 0.035) 0 1px, transparent 1px 14px);
  transform: translateX(-18%);
  animation: steamPreviewSweep 7.5s ease-in-out infinite;
}

.steam-zoom-control {
  background: #fff4c8;
}

.steam-zoom-row {
  display: grid;
  grid-template-columns: auto minmax(96px, 1fr) auto auto;
  align-items: center;
  gap: 8px;
}

.steam-zoom-button {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 4px solid var(--steam-line);
  border-radius: 50%;
  background: var(--steam-paper);
  color: var(--steam-ink);
  font-size: 24px;
  font-weight: 900;
  line-height: 1;
}

.steam-zoom-row input[type="range"] {
  width: 100%;
  accent-color: var(--steam-pink);
}

.steam-zoom-value {
  min-width: 48px;
  color: var(--steam-brown);
  font-weight: 900;
  text-align: right;
}

.steam-share-empty {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 100%;
  min-height: 100%;
  padding: 28px;
  color: var(--steam-muted);
  text-align: center;
}

.poster-scale-frame {
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
  margin: 0 auto;
}

.poster-scale-frame > .share-poster {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%) scale(var(--poster-scale, 0.46));
  transform-origin: top center;
}

.steam-game-table {
  display: grid;
  gap: 8px;
}

.steam-game-row {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) auto auto auto;
  gap: 10px;
  align-items: center;
  padding: 12px;
  border: 4px solid var(--steam-line);
  background: #fff8df;
  font-weight: 900;
}

.steam-game-row span:first-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.steam-wip-surface {
  min-height: 100%;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: transparent;
}

.steam-wip-mark {
  color: rgba(115, 79, 34, 0.16);
  font-size: clamp(68px, 12vw, 176px);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1;
  transform: rotate(-4deg);
  text-shadow:
    1px 1px 0 rgba(255, 253, 243, 0.42),
    -1px -1px 0 rgba(11, 9, 11, 0.03);
  user-select: none;
}

/* Poster styles intentionally mirror the original Steam demo and are not Park-ified. */
.share-poster {
  position: relative;
  width: 1080px;
  min-height: 1460px;
  padding: 46px;
  border-radius: 8px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.92)),
    repeating-linear-gradient(
      0deg,
      rgba(25, 24, 22, 0.035) 0,
      rgba(25, 24, 22, 0.035) 1px,
      transparent 1px,
      transparent 7px
    );
  box-shadow: 0 18px 44px rgba(37, 33, 28, 0.18);
  color: #17202a;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  image-rendering: auto;
}

.share-poster * {
  image-rendering: auto;
}

.poster-grid,
.poster-footer,
.poster-disclaimer {
  position: relative;
  z-index: 1;
}

.poster-style-neon {
  background:
    radial-gradient(circle at 16% 10%, rgba(255, 52, 151, 0.42), transparent 28%),
    radial-gradient(circle at 92% 3%, rgba(35, 211, 255, 0.36), transparent 30%),
    linear-gradient(145deg, #181222 0%, #24152d 52%, #0f1728 100%);
  color: #fff7fb;
}

.poster-style-archive {
  background:
    linear-gradient(rgba(250, 244, 229, 0.94), rgba(250, 244, 229, 0.94)),
    repeating-linear-gradient(90deg, rgba(53, 46, 38, 0.06) 0, rgba(53, 46, 38, 0.06) 2px, transparent 2px, transparent 18px);
  color: #24201c;
}

.poster-style-pixel {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.08) 25%, transparent 25%) 0 0 / 24px 24px,
    linear-gradient(315deg, rgba(255, 255, 255, 0.08) 25%, transparent 25%) 0 0 / 24px 24px,
    linear-gradient(135deg, #15112d 0%, #111b3e 48%, #2e1141 100%);
  color: #fff;
}

.poster-style-graffiti {
  background:
    radial-gradient(circle at 14% 18%, rgba(255, 224, 67, 0.75), transparent 18%),
    radial-gradient(circle at 90% 12%, rgba(0, 202, 255, 0.58), transparent 20%),
    radial-gradient(circle at 76% 86%, rgba(255, 64, 129, 0.55), transparent 22%),
    linear-gradient(155deg, #f7efe0 0%, #fffdf7 44%, #e9f3ff 100%);
  color: #151515;
}

.poster-style-sweetheart {
  background:
    radial-gradient(circle at 15% 12%, rgba(255, 93, 177, 0.42), transparent 22%),
    radial-gradient(circle at 84% 16%, rgba(64, 218, 255, 0.44), transparent 20%),
    radial-gradient(circle at 50% 92%, rgba(255, 139, 204, 0.34), transparent 28%),
    linear-gradient(135deg, #eef8ff 0%, #fff4fb 46%, #f3f0ff 100%);
  color: #26223c;
}

.poster-style-sweetheart::before,
.poster-style-sweetheart::after {
  position: absolute;
  pointer-events: none;
  color: rgba(255, 69, 164, 0.16);
  font-size: 8rem;
  font-weight: 900;
  line-height: 1;
  content: "♥ ♥ ♥";
}

.poster-style-sweetheart::before {
  top: 18px;
  right: 42px;
}

.poster-style-sweetheart::after {
  bottom: 92px;
  left: 42px;
  color: rgba(43, 191, 255, 0.16);
}

.poster-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.poster-card {
  position: relative;
  height: 422px;
  overflow: hidden;
  border-radius: 8px;
  background: #e6ded2;
  box-shadow: 0 4px 13px rgba(28, 24, 20, 0.16);
}

.poster-style-neon .poster-card {
  border: 2px solid rgba(255, 255, 255, 0.16);
  background: #120d1b;
  box-shadow: 0 0 0 1px rgba(54, 237, 255, 0.18), 0 12px 34px rgba(255, 40, 140, 0.2);
}

.poster-style-archive .poster-card {
  border: 2px solid #2f2a23;
  background: #e9ddc5;
  box-shadow: 7px 7px 0 rgba(47, 42, 35, 0.16);
}

.poster-style-pixel .poster-card {
  border: 4px solid #5ef0ff;
  border-radius: 0;
  background: #070b1d;
  box-shadow: 8px 8px 0 #ff3bbd;
}

.poster-style-graffiti .poster-card {
  border: 3px solid #171717;
  border-radius: 18px 6px 20px 8px;
  background: #fff;
  box-shadow: 8px 10px 0 rgba(23, 23, 23, 0.22);
  transform: rotate(-0.4deg);
}

.poster-style-graffiti .poster-card:nth-child(even) {
  transform: rotate(0.5deg);
}

.poster-style-sweetheart .poster-card {
  border: 3px solid rgba(255, 93, 177, 0.62);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 14px 30px rgba(83, 143, 255, 0.18), 0 0 0 5px rgba(255, 255, 255, 0.72);
}

.poster-rank {
  position: absolute;
  z-index: 2;
  top: 12px;
  left: 12px;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(25, 24, 22, 0.72);
  color: #fff;
  font-size: 1.05rem;
  font-weight: 900;
}

.poster-style-neon .poster-rank {
  background: #ff2f96;
  box-shadow: 0 0 18px rgba(255, 47, 150, 0.75);
}

.poster-style-archive .poster-rank {
  border-radius: 50%;
  background: #2f2a23;
  color: #f7ead2;
}

.poster-style-pixel .poster-rank {
  border-radius: 0;
  background: #ffe84a;
  color: #15112d;
  box-shadow: 4px 4px 0 #ff3bbd;
}

.poster-style-graffiti .poster-rank {
  border: 2px solid #171717;
  border-radius: 999px;
  background: #ffe043;
  color: #171717;
  transform: rotate(-8deg);
}

.poster-style-sweetheart .poster-rank {
  border-radius: 999px;
  background: linear-gradient(135deg, #ff4cae, #49cfff);
  color: #fff;
}

.poster-image,
.poster-image-fallback {
  width: 100%;
  height: 100%;
}

.poster-image {
  display: block;
  object-fit: cover;
}

.poster-image-fallback {
  display: grid;
  place-items: center;
  color: #7d766e;
  background: #dcd2c5;
  font-weight: 900;
}

.poster-title {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  display: grid;
  gap: 4px;
  min-height: 68px;
  padding: 11px 14px;
  background: rgba(255, 255, 255, 0.9);
  text-align: center;
}

.poster-style-neon .poster-title {
  background: linear-gradient(90deg, rgba(18, 13, 27, 0.9), rgba(255, 47, 150, 0.72));
  color: #fff;
}

.poster-style-archive .poster-title {
  border-top: 2px solid #2f2a23;
  background: rgba(247, 234, 210, 0.92);
}

.poster-style-pixel .poster-title {
  border-top: 4px solid #5ef0ff;
  background: rgba(8, 11, 29, 0.92);
}

.poster-style-graffiti .poster-title {
  border-top: 3px solid #171717;
  background: #fff;
}

.poster-title strong {
  overflow: hidden;
  color: inherit;
  font-size: 1.02rem;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.poster-title span {
  color: currentColor;
  font-size: 0.88rem;
  font-weight: 800;
  opacity: 0.76;
}

.poster-footer {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 22px;
  margin-top: 34px;
  padding: 26px 28px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
}

.poster-style-neon .poster-footer,
.poster-style-pixel .poster-footer {
  background: rgba(0, 0, 0, 0.36);
}

.poster-footer p {
  margin: 0 0 6px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.poster-footer h3 {
  margin: 0 0 8px;
  font-size: 2.15rem;
  line-height: 1.05;
}

.poster-footer span {
  font-size: 1rem;
  font-weight: 800;
  opacity: 0.76;
}

.poster-brand-mark {
  position: absolute;
  right: 24px;
  bottom: 16px;
  width: max-content;
  max-width: 100%;
  display: inline-flex;
  align-items: center;
  padding: 6px 12px 7px;
  border: 1px solid currentColor;
  border-radius: 999px;
  color: currentColor;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  line-height: 1;
  opacity: 0.34;
}

.poster-summary-metric {
  min-width: 230px;
  padding: 16px 18px;
  border-radius: 8px;
  background: rgba(23, 32, 42, 0.08);
  text-align: right;
}

.poster-summary-metric span {
  display: block;
  font-size: 0.86rem;
  font-weight: 900;
}

.poster-summary-metric strong {
  display: block;
  margin-top: 4px;
  font-size: 1.55rem;
}

.poster-disclaimer {
  margin: 18px 4px 0;
  font-size: 0.9rem;
  font-weight: 800;
  opacity: 0.62;
}

@keyframes steamOverlayDrift {
  0%,
  100% {
    background-position: 0 0, 72px 72px, 0 0, 0 0, 0 0;
  }

  50% {
    background-position: 16px 0, 88px 72px, -2% 0, 2% 0, 0 0;
  }
}

@keyframes steamHeartFloat {
  0%,
  100% {
    opacity: 0.52;
    transform: translateY(0) scale(0.9) rotate(-8deg);
  }

  50% {
    opacity: 0.92;
    transform: translateY(-5px) scale(1.14) rotate(7deg);
  }
}

@keyframes steamAuteurSweep {
  0%,
  100% {
    background-position: -140% 0, 0 0;
  }

  48% {
    background-position: 120% 0, 0 0;
  }
}

@keyframes steamThemeShift {
  0% {
    opacity: 0;
    transform: translateX(-18%) scale(0.98);
  }

  34% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    transform: translateX(18%) scale(1.02);
  }
}

@keyframes steamPreviewDrift {
  0% {
    background-position: 0 0, 0 0;
  }

  100% {
    background-position: 192px 0, -96px 88px;
  }
}

@keyframes steamPreviewSweep {
  0%,
  22% {
    transform: translateX(-34%);
    opacity: 0.2;
  }

  48% {
    opacity: 0.44;
  }

  78%,
  100% {
    transform: translateX(34%);
    opacity: 0.22;
  }
}

@media (max-width: 860px) {
  .steam-overlay {
    padding: 10px;
  }

  .steam-panel-shell {
    width: calc(100vw - 18px);
    height: calc(100vh - 18px);
    grid-template-rows: auto auto auto minmax(0, 1fr);
  }

  .steam-account-card,
  .steam-share-lab-shell,
  .steam-two-column,
  .steam-metric-strip {
    grid-template-columns: 1fr;
  }

  .steam-account-actions {
    justify-content: flex-start;
  }

  .steam-panel-topbar {
    grid-template-columns: 1fr;
    align-items: flex-start;
    padding: 18px;
  }

  .steam-pet-commentary {
    transform: none;
  }

  .steam-topbar-actions {
    width: 100%;
    justify-content: space-between;
  }

  .steam-account-trigger {
    min-width: 0;
    width: min(300px, calc(100vw - 112px));
  }

  .steam-tabs {
    position: static;
    display: flex;
    flex-wrap: wrap;
    padding: 10px 14px 0;
  }

  .steam-tab-button {
    width: auto;
    min-width: 78px;
    min-height: 52px;
    clip-path: none;
    border-radius: 999px;
    filter: none;
    box-shadow: 0 7px 0 rgba(11, 9, 11, 0.22);
  }

  .steam-tab-button.active {
    transform: none;
  }

  .steam-tab-button::after {
    display: none;
  }

  .steam-pet-commentary {
    left: auto;
    right: auto;
    bottom: auto;
    max-width: none;
    grid-template-columns: 58px minmax(0, 1fr);
  }

  .steam-panel-pet {
    width: 58px;
    height: 58px;
  }

  .steam-panel-topbar h1 {
    font-size: 30px;
  }

  .steam-game-row {
    grid-template-columns: 1fr;
  }
}
