/* Steam-faithful showcase blocks (.smsc), rendered by steam-mockup.js for
   structured imports. Sizes, colours and spacing follow Steam's profilev2.css
   (DefaultTheme); widths are percentages of the 640px column like Steam's
   responsive profile, so the editor and the public page scale together. */
.smsc {
  --smsc-header: rgba(43, 45, 68, .93);
  --smsc-header-left: rgba(115, 173, 184, .247);
  --smsc-panel: rgba(34, 35, 48, .93);
  position: relative;
  margin: 0 0 12px;
  border-radius: 3px;
  background-color: rgba(0, 0, 0, .3);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  overflow: hidden;
  color: #acb2b8;
  font: 13px/1.4 "Motiva Sans", Arial, Helvetica, sans-serif;
  text-align: left;
}
.profile_main_content > .smsc:first-child { margin-top: 0; }
.smsc-header {
  padding: 5px 10px;
  background: linear-gradient(90deg, var(--smsc-header-left) 0%, var(--smsc-header) 90%);
  color: #fff;
  font-size: 16px;
  font-weight: 300;
  line-height: 30px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.smsc-block { position: relative; padding: 20px 10px 11px; overflow: hidden; }
.smsc--art .smsc-block { padding: 15px 10px 11px; }
.smsc-content {
  margin-bottom: 9px;
  padding: 8px;
  border-radius: 5px;
  background-color: rgba(0, 0, 0, .3);
  overflow: hidden;
}
.smsc-content:last-child { margin-bottom: 0; }
.smsc-bodylabel { margin-bottom: 8px; color: #898989; font-size: 13px; }

/* media slots: inherit Steam sizes, keep the editor's replace button */
.smsc .sm-media-slot { display: block; width: 100%; height: 100%; min-height: 0; padding: 0; border: 0; background: transparent; }
.smsc .sm-media-slot > img,
.smsc .sm-media-slot > video { display: block; width: 100%; height: auto; }
.smsc .sm-slot-empty { min-height: 60px; }

/* stats row: big thin numbers + small grey labels */
.smsc-stats { display: flex; flex-wrap: wrap; column-gap: 6%; row-gap: 6px; white-space: nowrap; font-size: 26px; }
.smsc-stats--trading { margin-bottom: 12px; }
.smsc-stats--trading:last-child { margin-bottom: 0; }
.smsc-stat__value { color: #fff; font-size: 1em; font-weight: 200; line-height: 1.15; }
.smsc-stat__label { color: #9b9b9b; font-size: .5em; line-height: 1.3; }

/* custom info box / notes with BBCode */
.smsc-notes { max-height: 600px; overflow: hidden auto; overflow-wrap: anywhere; color: #acb2b8; font-size: 13px; line-height: 18px; }
.smsc-notes .smsc-emoticon { display: inline !important; width: 18px !important; height: 18px !important; margin: 0 !important; vertical-align: text-bottom; }
.smsc-notes .smsc-inline-img { display: inline-block !important; max-width: 100%; height: auto; vertical-align: bottom; }
.smsc-notes hr { height: 1px; margin: 6px 0; border: 0; background: #666; }
.smsc-bb-link { color: #ebebeb; text-decoration: none; }
.smsc-bb-link:hover { text-decoration: underline; }
.smsc-bb-host { color: #898989; font-size: 11px; }
.smsc-bb-b { font-weight: 700; }
.smsc-bb-i { font-style: italic; }
.smsc-bb-u { text-decoration: underline; }
.smsc-bb-strike { text-decoration: line-through; }
.smsc-bb-spoiler { background: #000; color: #000; transition: color .2s; }
.smsc-bb-spoiler:hover { color: #fff; }
.smsc-bb-h1 { display: inline-block; width: 100%; margin: 4px 0; border-bottom: 1px dotted #666; color: #5aa9d6; font-size: 20px; line-height: 26px; }
.smsc-bb-h2 { color: #5aa9d6; font-size: 18px; line-height: 24px; }
.smsc-bb-h3 { color: #5aa9d6; font-size: 16px; line-height: 22px; }
.smsc-bb-quote { display: inline-block; margin: 4px 0; padding: 4px 8px; border: 1px solid #56707f; border-radius: 3px; background: rgba(0, 0, 0, .25); }

/* items up for trade / item showcase: 96px tiles with rarity borders */
.smsc-items { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 5px; margin-bottom: 10px; }
.smsc-items:last-child { margin-bottom: 0; }
.smsc-item { aspect-ratio: 1; border: 1px solid #3a3a3a; background: rgba(0, 0, 0, .2); overflow: hidden; }
.smsc-item .sm-media-slot > img { width: 100%; height: 100%; object-fit: contain; }

/* game collector: 4 capsules per row (148x56 on Steam) */
.smsc-games { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 7px; }
.smsc-game { aspect-ratio: 148 / 56; overflow: hidden; background: #000; }
.smsc-game .sm-media-slot > img { width: 100%; height: 100%; object-fit: cover; }

/* screenshot / artwork showcases: 506 + 100 columns, featured spans the row */
.smsc-shot-primary { float: left; width: 508px; max-width: calc(83% - 7px); margin-right: 7px; }
.smsc-shot-primary.is-single { float: none; width: 100%; max-width: 100%; margin-right: 0; }
.smsc-shot { display: block; overflow: hidden; border: 1px solid #000; transition: border-color .15s; }
.smsc-shot:hover { border-color: #97c0e3; }
.smsc-shot-primary .smsc-shot { margin-bottom: 4px; }
.smsc-shot-primary .sm-media-slot > img { max-width: 100%; margin: 0 auto; }
.smsc-shot-rightcol { width: 102px; max-width: 17%; overflow: hidden; text-align: center; }
.smsc-shot--small { margin-bottom: 11px; }
.smsc-shot-count { height: 57px; margin-bottom: 11px; background: #222223; color: #fff; font-size: 13px; line-height: 57px; }
.smsc-shot-name { overflow-wrap: anywhere; color: #fff; }
.smsc-shot-stats { color: #acb2b8; line-height: 24px; }
.smsc-fav { color: #fff; }
.smsc--featured .smsc-block::after, .smsc--artwork .smsc-block::after, .smsc--screenshots .smsc-block::after { content: ""; display: block; clear: both; }

/* workshop: author row + 5 columns of tiles (2px gutters) + stats */
.smsc-ws-head { display: flex; align-items: center; gap: 10px; margin: 10px; padding: 10px; color: #fff; font-size: 24px; font-weight: 200; line-height: 38px; }
.smsc-ws-head img { width: 32px; height: 32px; padding: 1px; border-radius: 0; background: linear-gradient(to bottom, #515151 5%, #474747 95%); }
.smsc--workshop .smsc-ws-head + .smsc-block { padding-top: 0; }
.smsc-ws-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; align-items: start; }
.smsc-ws-tile { overflow: hidden; }
.smsc-ws-stats { margin-top: 9px; }

/* favorite guide / workshop item */
.smsc-guide { display: flex; gap: 8px; min-height: 160px; }
.smsc-guide__img { flex: 0 0 160px; max-width: 40%; }
.smsc-guide__details { min-width: 0; flex: 1; }
.smsc-guide__title { max-height: 58px; padding-top: 10px; overflow: hidden; color: #fff; font-size: 24px; font-weight: 200; line-height: 29px; }
.smsc-guide__author { margin-bottom: 8px; color: #fff; }
.smsc-guide__app { display: flex; align-items: center; gap: 6px; margin-bottom: 8px; line-height: 32px; }
.smsc-guide__app span { overflow: hidden; color: #fff; white-space: nowrap; text-overflow: ellipsis; }
.smsc-guide__appicon { width: 32px; height: 32px; }
.smsc-guide__stars { order: 3; margin-left: auto; color: #898989; font-size: 11px; white-space: nowrap; }
.smsc-guide__stars img { vertical-align: middle; }
.smsc-guide__desc { max-height: 72px; overflow: hidden; line-height: 18px; }

/* achievements, badges and other grids */
.smsc-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; margin-bottom: 9px; }
.smsc-grid--badges { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.smsc-grid--favoritegame, .smsc-grid--group, .smsc-grid--review, .smsc-grid--completionist { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.smsc-grid__cell { overflow: hidden; }
.smsc-grid:last-child { margin-bottom: 0; }

@media (max-width: 560px) {
  .smsc-stats { font-size: 22px; }
  .smsc-items { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .smsc-games { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .smsc-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .smsc-ws-head { font-size: 18px; }
}

/* achievement showcase: 64px icons, 7 per row; badge collector: 80px, 6 per row */
.smsc-achs { display: grid; grid-template-columns: repeat(7, minmax(0, 64px)); justify-content: space-between; row-gap: 5px; padding-bottom: 3px; }
.smsc-badges { display: grid; grid-template-columns: repeat(6, minmax(0, 80px)); justify-content: space-between; row-gap: 9px; margin-bottom: 9px; }
.smsc-ach { aspect-ratio: 1; }
.smsc-ach .sm-media-slot > img { width: 100%; height: 100%; object-fit: contain; }
.smsc-ach--more { display: flex; align-items: center; justify-content: center; border: 1px solid #212121; background: #222223; box-shadow: 1px 1px 1px #353535; color: #fff; font-size: 12px; }
.smsc-item-count { display: flex; align-items: center; padding-left: 12px; }
.smsc-item-count .smsc-stats { font-size: 26px; }

/* screenshot showcase stats (up votes, comments) */
.smsc-shot-stat { margin-right: 12px; color: #acb2b8; }
.smsc-shot-stat img { display: inline !important; width: auto !important; height: 16px !important; vertical-align: text-bottom; }

/* favourite game + recent activity game cards */
.smsc-fg { position: relative; display: flex; gap: 16px; min-height: 69px; margin-bottom: 22px; }
.smsc-fg__cap { flex: 0 0 184px; max-width: 33%; }
.smsc-fg__cap img, .smsc-gi__cap img { display: block; width: 100%; height: auto; }
.smsc-block--activity { padding-top: 12px; }
.smsc-recent { margin-bottom: 21px; padding: 8px 10px; border-radius: 3px; background: rgba(0, 0, 0, .3); }
.smsc-recent:last-child { margin-bottom: 0; }
.smsc-gi { position: relative; min-height: 69px; }
.smsc-gi__cap { float: left; width: 184px; max-width: 33%; margin-right: 8px; }
.smsc-gi__name { padding-top: 10px; color: #fff; font-size: 14px; }
.smsc-gi__details { position: absolute; right: 0; bottom: 0; color: #8f98a0; font-size: 12px; line-height: 16px; text-align: right; }
.smsc-gi::after { content: ""; display: block; clear: both; }
.smsc-gi-stats { margin-top: 9px; padding: 9px 11px 10px; border-radius: 3px; background: var(--smsc-panel); }
.smsc-gi-ach { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; line-height: 32px; }
.smsc-gi-summary { display: flex; align-items: center; gap: 8px; white-space: nowrap; color: #8f98a0; font-size: 12px; }
.smsc-gi-summary__label { color: #fff; }
.smsc-gi-bar { display: inline-block; width: 145px; height: 8px; padding: 1px; border: 1px solid rgba(0, 0, 0, .5); border-radius: 5px; background: rgba(0, 0, 0, .3); box-shadow: 1px 1px 1px rgba(255, 255, 255, .1); }
.smsc-gi-bar span { display: block; height: 8px; border-radius: 4px; background: linear-gradient(180deg, rgba(255, 255, 255, .3) 0%, var(--smsc-header) 80%); }
.smsc-gi-icons { display: flex; align-items: center; gap: 4px; }
.smsc-gi-icon { display: block !important; width: 32px !important; height: 32px !important; }
.smsc-gi-more { width: 30px; height: 30px; border: 1px solid #212121; background: #222223; box-shadow: 1px 1px 1px #353535; color: #fff; font-size: 11px; line-height: 30px; text-align: center; }
.smsc-gi-rule { height: 1px; margin: 10px 0; border-top: 1px solid rgba(0, 0, 0, .5); background: rgba(255, 255, 255, .1); }
.smsc-gi-files span { margin-right: 12px; color: #acb2b8; font-size: 12px; line-height: 19px; white-space: nowrap; }
.smsc-header--split { display: flex; justify-content: space-between; gap: 12px; }
.smsc-header__aside { color: #fff; font-size: 13px; }

/* favourite group */
.smsc-group { position: relative; display: flex; gap: 9px; min-height: 157px; }
.smsc-group__avatar { flex: 0 0 157px; max-width: 30%; }
.smsc-group__avatar img { display: block; width: 100%; height: auto; }
.smsc-group__content { position: relative; flex: 1; min-width: 0; padding-bottom: 60px; }
.smsc-group__namerow { overflow: hidden; color: #828282; font-size: 16px; line-height: 32px; white-space: nowrap; text-overflow: ellipsis; }
.smsc-group__name { color: #fff; font-size: 24px; font-weight: 200; }
.smsc-group__desc { max-height: 58px; overflow: hidden; }
.smsc-stats--group { position: absolute; left: 0; right: 0; bottom: 0; column-gap: 22px; font-size: 26px; }
.smsc-stats--group .smsc-stat__value { font-size: .64em; }
.smsc-stat--ingame .smsc-stat__value { color: #8bc53f; }
.smsc-stat--online .smsc-stat__value { color: #62a7e3; }
.smsc-stat--inchat { padding: 0 12px; border-radius: 3px; background: var(--smsc-header); }

/* comments (first page) */
.smcm { margin: 0 0 12px; overflow: hidden; border-radius: 5px; font: 13px/1.4 "Motiva Sans", Arial, sans-serif; }
.smcm-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; padding: 6px 10px; background: linear-gradient(90deg, rgba(115, 173, 184, .247) 0%, rgba(43, 45, 68, .93) 90%); color: #fff; font-size: 16px; font-weight: 300; line-height: 26px; }
.smcm-all { color: #fff; font: 12px Arial, Helvetica, sans-serif; }
.smcm-list { margin-top: 9px; padding: 10px 10px 10px 0; border-radius: 5px; background: rgba(0, 0, 0, .3); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); }
.smcm-comment { display: flex; align-items: flex-start; gap: 12px; min-height: 40px; margin-bottom: 8px; padding: 8px 0 8px 11px; }
.smcm-body { flex: 1; min-width: 0; line-height: 16px; }
.smcm-comment:last-child { margin-bottom: 0; }
.smcm-avatar { flex: 0 0 34px; width: 34px; height: 34px; padding: 1px; box-sizing: border-box; background: #515151; }
.smcm-avatar--online { background: #57cbde; }
.smcm-avatar--in-game { background: #90ba3c; }
.smcm-avatar img { display: block; width: 32px; height: 32px; }
.smcm-name { color: #fff; font-size: 14px; }
.smcm-time { margin: 2px 0 4px; color: rgba(255, 255, 255, .5); font-size: 12px; }
.smcm-text { max-height: 400px; overflow-y: auto; color: #fff; font-size: 13px; line-height: 18px; overflow-wrap: anywhere; }
.smcm-text .smsc-emoticon { display: inline !important; width: 18px !important; height: 18px !important; vertical-align: text-bottom; }

/* right column (Steam .profile_rightcol) */
.smsb { margin-top: 13px; padding: 10px; border-radius: 3px; background: rgba(0, 0, 0, .3); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); color: #fff; font: 14px/1.3 "Motiva Sans", Arial, sans-serif; }
.smsb-status { margin-bottom: 32px; color: #898989; font-size: 20px; font-weight: 200; }
.smsb-status--online { color: #57cbde; }
.smsb-status--ingame { color: #90ba3c; }
.smsb-status__game { margin-top: 2px; font-size: 15px; }
.smsb-section { margin-bottom: 40px; }
.smsb-section:last-child { margin-bottom: 0; }
.smsb-count { min-height: 29px; margin-bottom: 4px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.smsb-count__total { color: #9b9b9b; font-size: 24px; font-weight: 200; }
.smsb-icons { display: flex; gap: 16px; }
.smsb-icons img { display: block !important; width: 54px !important; height: 54px !important; }
.smsb-icons .smsb-award { width: 50px !important; height: 50px !important; }
.smsb-group { position: relative; display: flex; align-items: flex-start; gap: 10px; min-height: 36px; margin-bottom: 4px; }
.smsb-group img, .smsb-group > span { flex: 0 0 32px; width: 32px; height: 32px; border-radius: 2px; box-shadow: 2px 2px 3px #0c0c0c; }
.smsb-group.is-primary { min-height: 60px; margin: 12px 0; }
.smsb-group.is-primary img, .smsb-group.is-primary > span { flex-basis: 64px; width: 64px; height: 64px; }
.smsb-group__text { display: flex; flex-direction: column; min-width: 0; padding-top: 1px; }
.smsb-group.is-primary .smsb-group__text { padding-top: 10px; }
.smsb-group__name { overflow: hidden; color: #fff; text-overflow: ellipsis; }
.smsb-group__members { color: #8f98a0; font-size: 12px; }
.smsb-friend { display: flex; align-items: center; gap: 7px; height: 36px; margin-bottom: 4px; padding: 4px 0 4px 4px; overflow: hidden; font-size: 11px; line-height: 13px; }
.smsb-friend:hover { background: #3a3a3a; }
.smsb-friend img, .smsb-friend > span:first-child { flex: 0 0 32px; width: 32px; height: 32px; padding: 1px; background: #515151; }
.smsb-friend--online img { background: #57cbde; }
.smsb-friend--in-game img { background: #90ba3c; }
.smsb-friend__text { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.smsb-friend__name { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; color: #fff; }
.smsb-friend__status { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; color: #898989; }
.smsb-friend--online .smsb-friend__name, .smsb-friend--online .smsb-friend__status { color: #57cbde; }
.smsb-friend--in-game .smsb-friend__name, .smsb-friend--in-game .smsb-friend__status { color: #90ba3c; }
.smsb-level { flex: 0 0 auto; min-width: 26px; height: 26px; margin-right: 4px; padding: 0 3px; border: 2px solid #9b9b9b; border-radius: 50%; color: #fff; font-size: 12px; line-height: 22px; text-align: center; box-sizing: border-box; }
@media (max-width: 560px) {
  .smsc-achs { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .smsc-badges { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .smsc-group__avatar { flex-basis: 92px; }
}
.smsc-quicklinks { margin-top: 12px; color: #8f98a0; font-size: 11px; text-align: right; }
.smsc-quicklinks span { color: #fff; }
.smsc-quicklinks i { margin: 0 6px; color: #8f98a0; font-style: normal; }

/* Profile header: name on top, the summary under it (an older rule laid them out in one row). */
.sm-stage .profile_up_items { display: flex !important; flex-direction: column; align-items: flex-start; gap: 4px; }
.sm-stage .profile_up_summary { margin-top: 2px; }
/* Public profile: the "open this user's works" link sits in the free band above the profile,
   right-aligned with it, instead of on top of the name. */
/* "View creator's works": sits in the profile header next to the name. */
.sm-stage .profile_up { display: flex; align-items: flex-start; }
.sm-stage .profile_up_items { flex: 1 1 auto; min-width: 0; }
.public-works-link { display: none; }
.public-works-link[hidden] { display: none !important; }
.sm-stage .profile_up > .public-works-link:not([hidden]) {
  position: static; flex: 0 0 auto; align-self: center; margin: 0 4px 0 auto;
  display: inline-flex; align-items: center; gap: 9px; min-height: 40px; padding: 0 16px 0 13px;
  border: 1px solid rgba(85, 217, 255, .45); border-radius: 12px;
  background: linear-gradient(135deg, rgba(85, 217, 255, .2), rgba(9, 18, 32, .82) 60%);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, .35), inset 0 1px rgba(255, 255, 255, .08);
  color: #eafbff; text-decoration: none; white-space: nowrap;
  font: 700 13px/1 Montserrat, "Segoe UI", Arial, sans-serif;
  transition: border-color .18s, background .18s, transform .18s, box-shadow .18s;
}
.sm-stage .profile_up > .public-works-link::before {
  content: ""; width: 16px; height: 16px; flex: none; background: #55d9ff;
  filter: drop-shadow(0 0 6px rgba(85, 217, 255, .6));
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='7' height='7' rx='1.5'/%3E%3Crect x='14' y='3' width='7' height='7' rx='1.5'/%3E%3Crect x='3' y='14' width='7' height='7' rx='1.5'/%3E%3Crect x='14' y='14' width='7' height='7' rx='1.5'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='7' height='7' rx='1.5'/%3E%3Crect x='14' y='3' width='7' height='7' rx='1.5'/%3E%3Crect x='3' y='14' width='7' height='7' rx='1.5'/%3E%3Crect x='14' y='14' width='7' height='7' rx='1.5'/%3E%3C/svg%3E") center / contain no-repeat;
}
.sm-stage .profile_up > .public-works-link:hover {
  border-color: #55d9ff; background: linear-gradient(135deg, rgba(85, 217, 255, .32), rgba(9, 18, 32, .86) 60%);
  box-shadow: 0 12px 30px rgba(0, 0, 0, .4), 0 0 18px rgba(85, 217, 255, .25); transform: translateY(-1px);
}
@media (max-width: 700px) {
  .sm-stage .profile_up { flex-wrap: wrap; }
  .sm-stage .profile_up > .public-works-link:not([hidden]) { order: 3; margin: 12px 0 0; width: 100%; justify-content: center; }
}
