/* AI Street homepage — marketplace layout measured from coconala.com, 2026-08-29. */

body.market-home {
  --sm-ink: #202a2e;
  --sm-muted: #69777d;
  --sm-line: #e3e8ea;
  --sm-soft: #f5f7f8;
  --sm-blue: #076bc9;
  --sm-teal: #00796b;
  --sm-pink: #cf0f61;
  --sm-orange: #985100;
  min-width: 320px;
  overflow-x: hidden;
  background: #fff;
  color: var(--sm-ink);
  font-family: "Hiragino Kaku Gothic ProN", "Hiragino Kaku Gothic Pro", Meiryo, "Helvetica Neue", Arial, sans-serif;
  font-size: 14px;
  line-height: 1.6;
}

body.market-home::before { display: none; }
.market-home main { position: relative; z-index: 1; }
.market-home a { color: inherit; }
.market-home button,
.market-home input,
.market-home select { font-family: inherit; }

.market-home :where(a, button, input, select, textarea, summary):focus-visible {
  outline: 3px solid #086fd1;
  outline-offset: 2px;
}

.sm-icon {
  --icon: none;
  display: inline-block;
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  background: currentColor;
  -webkit-mask: var(--icon) center / contain no-repeat;
  mask: var(--icon) center / contain no-repeat;
}

.sm-icon--xs { width: 13px; height: 13px; }
.sm-mobile-only,
.sm-hero__mobile-actions,
.sm-hero__note { display: none; }

/* Header */
.sm-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: #fff;
  color: var(--sm-ink);
  box-shadow: 0 1px 5px rgba(32, 42, 46, 0.08);
}

.sm-header__primary { height: 60px; border-bottom: 1px solid var(--sm-line); }
.sm-header__inner {
  width: min(1232px, calc(100% - 32px));
  height: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 20px;
}

.sm-logo {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-width: max-content;
  color: #273037;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.035em;
  line-height: 1;
}

.sm-logo img { width: 28px; height: 28px; border-radius: 6px; }

.sm-search {
  width: 396px;
  height: 36px;
  display: grid;
  grid-template-columns: 97px 1fr 40px;
  overflow: hidden;
  border: 1px solid #aebbc0;
  border-radius: 6px;
  background: #fff;
}

.sm-search__scope { position: relative; border-right: 1px solid #cdd5d8; }
.sm-search__scope::after {
  content: "";
  position: absolute;
  right: 10px;
  top: 50%;
  width: 12px;
  height: 12px;
  transform: translateY(-50%);
  background: #506168;
  -webkit-mask: url("../assets/icons/chevron-down.svg") center / contain no-repeat;
  mask: url("../assets/icons/chevron-down.svg") center / contain no-repeat;
  pointer-events: none;
}

.sm-search select {
  width: 100%;
  height: 100%;
  padding: 0 26px 0 13px;
  appearance: none;
  color: #4b5c63;
  background: transparent;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.sm-search input {
  min-width: 0;
  width: 100%;
  height: 100%;
  padding: 0 11px;
  color: var(--sm-ink);
  background: #fff;
  font-size: 14px;
}

.sm-search input::placeholder { color: #8a989e; }
.sm-search input:focus { box-shadow: inset 0 0 0 2px rgba(9, 119, 229, 0.18); }
.sm-search button {
  display: grid;
  place-items: center;
  color: #30474f;
  cursor: pointer;
}

.sm-header__actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}

.sm-header__help {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  margin-right: 8px;
  color: #506168;
}

.sm-header__login,
.sm-header__register {
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 700;
}

.sm-header__login { min-width: 84px; color: var(--sm-teal); border: 1px solid var(--sm-teal); }
.sm-header__register { min-width: 84px; color: #fff !important; background: var(--sm-teal); }
.sm-mobile-search-button { display: none; }

.sm-header__nav { height: 48px; background: #fff; }
.sm-header__nav-inner {
  width: min(1232px, calc(100% - 32px));
  height: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 0;
}

.sm-header__nav a {
  height: 32px;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 0 13px;
  border-right: 1px solid transparent;
  color: #39454a;
  font-size: 13px;
  white-space: nowrap;
}

.sm-header__nav a:hover { color: var(--sm-blue); background: #f6f9fb; }
.sm-header__nav-spacer { flex: 1; }
.sm-mobile-search { border-top: 1px solid var(--sm-line); padding: 10px 12px; }
.sm-mobile-search form { display: flex; height: 42px; }
.sm-mobile-search input {
  min-width: 0;
  flex: 1;
  padding: 0 12px;
  border: 1px solid #aebbc0;
  border-right: 0;
  border-radius: 5px 0 0 5px;
  color: var(--sm-ink);
  background: #fff;
}
.sm-mobile-search button {
  width: 66px;
  color: #fff;
  border-radius: 0 5px 5px 0;
  background: var(--sm-teal);
  font-weight: 700;
}

.sm-promo-strip {
  position: relative;
  z-index: 2;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff !important;
  background: var(--sm-orange);
  font-size: 16px;
  font-weight: 700;
}

/* Hero */
.sm-hero { background: #fff; }
.sm-hero__visual {
  width: min(1280px, calc(100% - 32px));
  height: 316px;
  margin: 0 auto;
  padding-top: 20px;
  box-sizing: content-box;
  overflow: hidden;
}

.sm-hero__visual img {
  display: block;
  width: 100%;
  height: 316px;
  object-fit: cover;
  object-position: center 49%;
}

/* Main frame: 276px navigation + 964px market content. */
.sm-layout {
  width: min(1280px, calc(100% - 32px));
  margin: 61px auto 0;
  display: grid;
  grid-template-columns: 276px minmax(0, 964px);
  gap: 20px;
  align-items: start;
}

.sm-sidebar {
  min-width: 0;
  padding: 0 20px;
}

.sm-sidebar h2 {
  height: 23px;
  padding-bottom: 8px;
  border-bottom: 1px solid #b7c1c5;
  font-size: 13px;
  font-weight: 400;
}

.sm-sidebar ul { margin-top: 8px; }
.sm-sidebar li + li { margin-top: 1px; }
.sm-sidebar li a {
  min-height: 31px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: #243037;
  font-size: 14px;
  line-height: 1.35;
}
.sm-sidebar li a:hover { color: var(--sm-blue); }
.sm-sidebar li .sm-icon { width: 14px; height: 14px; color: #5b7179; }

.sm-sidebar-banner {
  position: relative;
  width: 100%;
  display: block;
  overflow: hidden;
  margin-top: 22px;
  border: 1px solid var(--sm-line);
}

.sm-sidebar-banner--visual { height: 144px; color: #fff !important; }
.sm-sidebar-banner--visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: brightness(0.64);
}
.sm-sidebar-banner--visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.36);
}
.sm-sidebar-banner--visual span {
  position: absolute;
  z-index: 1;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 14px;
}
.sm-sidebar-banner--visual strong { font-size: 21px; }

.sm-sidebar-banner--campaign {
  height: 144px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-top: 12px;
  color: #fff !important;
  background: var(--sm-teal);
}
.sm-sidebar-banner--campaign .sm-icon { width: 30px; height: 30px; margin-bottom: 7px; }
.sm-sidebar-banner--campaign b { font-size: 22px; }
.sm-sidebar-banner--campaign small { margin-top: 4px; font-size: 12px; }

.sm-content { min-width: 0; }
.sm-content h2 { color: var(--sm-ink); }

/* Category directory */
.sm-category-section { min-height: 408px; }
.sm-category-section > h2,
.sm-scenes > h2,
.sm-merits > h2 {
  font-size: 20px;
  font-weight: 700;
  line-height: 32px;
}

.sm-category-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  grid-auto-rows: 108px;
  gap: 20px 7px;
  margin-top: 16px;
}

.sm-category-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 7px;
  padding-top: 1px;
  color: #2e393e;
}

.sm-category-card__icon {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border: 1px solid #e0e6e8;
  border-radius: 50%;
  background: var(--category-bg, #f3f8fb);
  color: var(--category-color, #1768d2);
}

.sm-category-card__icon .sm-icon { width: 33px; height: 33px; }
.sm-category-card__label {
  display: -webkit-box;
  overflow: hidden;
  color: #3b474c;
  font-size: 13px;
  line-height: 1.25;
  text-align: center;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.sm-category-card:hover .sm-category-card__icon { border-color: var(--category-color, #1768d2); }
.sm-category-card:hover .sm-category-card__label { color: var(--sm-blue); }

/* Use scenes */
.sm-scenes { min-height: 316px; margin-top: 30px; }
.sm-scene-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}
.sm-scene-card {
  min-width: 0;
  height: 130px;
  overflow: hidden;
  border: 1px solid #d6dde0;
  border-radius: 4px;
  background: #fff;
}
.sm-scene-card__screen { height: 99px; overflow: hidden; }
.sm-scene-card__screen svg { width: 100%; height: 100%; }
.sm-scene-card__label {
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 7px;
  color: #273238;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  white-space: nowrap;
}

/* Merits */
.sm-merits { min-height: 184px; margin-top: 40px; }
.sm-merit-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 25px;
  margin-top: 14px;
}
.sm-merit {
  height: 138px;
  display: grid;
  grid-template-columns: 78px 1fr;
  gap: 18px;
  align-items: center;
}
.sm-merit__visual {
  width: 78px;
  height: 78px;
  display: grid;
  place-items: center;
  color: #1768d2;
  background: #eff7ff;
  border-radius: 18px;
}
.sm-merit__visual .sm-icon { width: 46px; height: 46px; }
.sm-point {
  display: inline-flex;
  height: 28px;
  align-items: center;
  padding: 0 12px;
  margin-bottom: 8px;
  color: #fff;
  border-radius: 4px;
  background: var(--sm-pink);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
}
.sm-merit h3 { margin-bottom: 5px; color: #283238; font-size: 18px; line-height: 1.35; }
.sm-merit p { color: #4c5a60; font-size: 13px; line-height: 1.55; }

/* Reusable section heading */
.sm-market-section { margin-top: 40px; }
.sm-creators { margin-top: 39px; }
.sm-requests { margin-top: 38px; }
.sm-section-heading {
  min-height: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}
.sm-section-heading h2 { min-width: 0; font-size: 20px; font-weight: 700; line-height: 32px; }
.sm-section-heading h2 span {
  display: inline-flex;
  height: 24px;
  align-items: center;
  padding: 0 8px;
  margin-left: 8px;
  color: #45545a;
  background: #f1f3f4;
  font-size: 12px;
  vertical-align: 2px;
}
.sm-section-heading > a { flex: 0 0 auto; color: var(--sm-blue); font-size: 14px; }

.sm-carousel { position: relative; min-width: 0; }
.sm-product-track,
.sm-creator-track,
.sm-request-track {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scrollbar-width: none;
  scroll-snap-type: x proximity;
}
.sm-product-track::-webkit-scrollbar,
.sm-creator-track::-webkit-scrollbar,
.sm-request-track::-webkit-scrollbar { display: none; }

.sm-carousel__arrow {
  position: absolute;
  top: 50%;
  z-index: 5;
  width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
  transform: translateY(-50%);
  color: #4d626a;
  border: 1px solid #aab7bc;
  background: rgba(255,255,255,0.96);
  cursor: pointer;
}
.sm-carousel__arrow .sm-icon { width: 17px; height: 17px; }
.sm-carousel__arrow--left { left: -1px; }
.sm-carousel__arrow--right { right: 4px; }
.sm-carousel__arrow[hidden] { display: none; }

/* Product card */
.sm-product-card {
  position: relative;
  flex: 0 0 152px;
  height: 221px;
  overflow: hidden;
  scroll-snap-align: start;
  border: 1px solid #dce2e4;
  background: #fff;
}
.sm-product-card:hover { border-color: #9ab5c0; }
.sm-product-card__screen { position: relative; height: 98px; overflow: hidden; background: #edf2f4; }
.sm-product-card__screen svg { width: 100%; height: 100%; }
.sm-product-card__type {
  position: absolute;
  top: 6px;
  right: 6px;
  max-width: calc(100% - 12px);
  overflow: hidden;
  padding: 2px 5px;
  color: #fff;
  border-radius: 2px;
  background: rgba(23, 42, 51, 0.82);
  font-size: 8px;
  font-weight: 700;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sm-product-card__rank {
  position: absolute;
  top: 5px;
  left: 5px;
  z-index: 2;
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  color: #fff;
  border-radius: 50%;
  background: #735a1a;
  font-size: 11px;
  font-weight: 700;
}
.sm-product-card__rank--2 { background: #50636c; }
.sm-product-card__rank--3 { background: #9d673d; }
.sm-product-card__rank--rest { color: #55656b; background: #e9edef; }
.sm-product-card__body { padding: 7px 6px 6px; }
.sm-product-card__name {
  overflow: hidden;
  color: #2a353a;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sm-product-card__tagline {
  min-height: 34px;
  display: -webkit-box;
  overflow: hidden;
  margin-top: 2px;
  color: #4d5c62;
  font-size: 11px;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.sm-product-card__rating {
  height: 18px;
  display: flex;
  align-items: center;
  gap: 3px;
  margin-top: 2px;
  color: var(--sm-orange);
  font-size: 11px;
}
.sm-product-card__rating .sm-icon { width: 12px; height: 12px; }
.sm-product-card__meta {
  height: 20px;
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 1px;
}
.sm-product-card__avatar,
.sm-creator-card__avatar,
.sm-request-card__avatar {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  color: #fff;
  border-radius: 50%;
  background: #37474f;
  box-shadow: inset 0 0 0 2px var(--avatar-color, #71868f);
  font-weight: 700;
}
.sm-product-card__avatar { width: 16px; height: 16px; font-size: 7px; }
.sm-product-card__developer {
  min-width: 0;
  overflow: hidden;
  color: #68777d;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sm-product-card__price {
  margin-left: auto;
  color: #273238;
  font-size: 11px;
  white-space: nowrap;
}

/* Creator cards */
.sm-creator-track { gap: 10px; }
.sm-creator-card {
  flex: 0 0 232px;
  height: 128px;
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 10px;
  padding: 14px 12px;
  scroll-snap-align: start;
  border: 1px solid #d7dfe2;
  background: #fff;
}
.sm-creator-card__avatar { width: 50px; height: 50px; font-size: 15px; }
.sm-creator-card__name {
  display: flex;
  align-items: center;
  gap: 4px;
  color: #273238;
  font-size: 13px;
  font-weight: 700;
}
.sm-creator-card__name .sm-icon { width: 14px; height: 14px; color: var(--sm-blue); }
.sm-creator-card__role {
  display: -webkit-box;
  overflow: hidden;
  margin-top: 3px;
  color: #56666c;
  font-size: 11px;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.sm-creator-card__stats {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 7px;
  color: var(--sm-orange);
  font-size: 11px;
}
.sm-creator-card__stats .sm-icon { width: 12px; height: 12px; }

/* Request cards */
.sm-request-track { gap: 10px; }
.sm-request-card {
  flex: 0 0 310px;
  height: 222px;
  padding: 15px 16px;
  scroll-snap-align: start;
  border: 1px solid #d7dfe2;
  background: #fff;
}
.sm-request-card__category { color: #5f6d72; font-size: 11px; }
.sm-request-card h3 {
  height: 46px;
  display: -webkit-box;
  overflow: hidden;
  margin-top: 4px;
  color: #273238;
  font-size: 15px;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.sm-request-card dl { margin-top: 12px; }
.sm-request-card dl > div {
  min-height: 29px;
  display: grid;
  grid-template-columns: 88px 1fr;
  align-items: center;
  border-bottom: 1px solid #edf0f1;
}
.sm-request-card dt { display: flex; align-items: center; gap: 5px; color: #68777d; font-size: 12px; }
.sm-request-card dt .sm-icon { width: 14px; height: 14px; color: #5f7881; }
.sm-request-card dd { color: #334047; font-size: 12px; font-weight: 700; }
.sm-request-card__author {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 10px;
  color: #607076;
  font-size: 10px;
}
.sm-request-card__avatar { width: 24px; height: 24px; font-size: 8px; }

/* Ranking shelves */
.sm-rankings { margin-top: 37px; }
.sm-rankings > h2 { font-size: 20px; line-height: 32px; }
.sm-rankings > h2 small { margin-left: 8px; font-size: 12px; font-weight: 400; }
.sm-shelf { min-height: 263px; margin-top: 10px; }
.sm-shelf__heading {
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.sm-shelf__heading h3 {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 7px;
  overflow: hidden;
  color: #2c383d;
  font-size: 16px;
  font-weight: 400;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sm-shelf__heading h3 .sm-icon { width: 18px; height: 18px; color: #435861; }
.sm-shelf__heading a { flex: 0 0 auto; color: var(--sm-blue); font-size: 14px; }

/* Articles, Q&A, news */
.sm-articles { margin-top: 31px; }
.sm-article-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.sm-article-card { min-width: 0; border: 1px solid #dce2e4; background: #fff; }
.sm-article-card__visual { height: 80px; overflow: hidden; }
.sm-article-card__visual svg { width: 100%; height: 100%; }
.sm-article-card__body { padding: 7px 8px 8px; }
.sm-article-card__label { color: var(--sm-blue); font-size: 10px; font-weight: 700; }
.sm-article-card h3 {
  display: -webkit-box;
  overflow: hidden;
  margin-top: 2px;
  color: #273238;
  font-size: 12px;
  line-height: 1.4;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.sm-article-card p { margin-top: 2px; color: #647277; font-size: 10px; }

.sm-qna { margin-top: 10px; }
.sm-qna-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.sm-qna-grid a {
  min-height: 128px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 14px;
  border: 1px solid #dce2e4;
  background: #fff;
}
.sm-qna-grid b { color: #2a363b; font-size: 13px; line-height: 1.45; }
.sm-qna-grid span {
  display: -webkit-box;
  overflow: hidden;
  color: #68777d;
  font-size: 11px;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
}

.sm-news { margin: 36px 0 38px; }
.sm-news h2 { margin-bottom: 12px; font-size: 16px; line-height: 26px; }
.sm-news li {
  min-height: 39px;
  display: grid;
  grid-template-columns: 105px 1fr;
  align-items: center;
  border-bottom: 1px solid #e9edef;
}
.sm-news time { color: #5f6d72; font-size: 11px; }
.sm-news a { color: #4b5a60; font-size: 12px; }

.sm-beginner-banner {
  min-height: 88px;
  display: grid;
  grid-template-columns: 84px 1fr 24px;
  align-items: center;
  gap: 18px;
  margin: 0 0 38px;
  padding: 15px 24px;
  color: #334147;
  border: 1px solid #dce2e4;
  background: #f6fafb;
}
.sm-beginner-banner__icons { display: flex; align-items: flex-end; justify-content: center; gap: 2px; color: var(--sm-teal); }
.sm-beginner-banner__icons .sm-icon:first-child { width: 34px; height: 34px; }
.sm-beginner-banner__icons .sm-icon:last-child { width: 43px; height: 43px; color: var(--sm-blue); }
.sm-beginner-banner small,
.sm-beginner-banner strong { display: block; }
.sm-beginner-banner small { color: #5f6d72; font-size: 11px; }
.sm-beginner-banner strong { margin-top: 3px; font-size: 16px; }
.sm-beginner-banner__arrow { width: 20px; height: 20px; color: #7d8b90; }

/* Footer */
.sm-footer { position: relative; z-index: 1; color: #d8dde0; background: #272b2d; }
.sm-footer__inner {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 245px;
  gap: 44px;
  padding: 40px 0 34px;
}
.sm-footer__groups { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 18px; }
.sm-footer__group summary {
  list-style: none;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  cursor: default;
}
.sm-footer__group summary::-webkit-details-marker { display: none; }
.sm-footer__group ul { margin-top: 12px; }
.sm-footer__group li + li { margin-top: 5px; }
.sm-footer__group a { color: #b1b9bc; font-size: 10px; line-height: 1.4; }
.sm-footer__group a:hover { color: #fff; }
.sm-footer__platforms { display: grid; gap: 8px; }
.sm-footer__platforms > span {
  min-height: 50px;
  display: grid;
  grid-template-columns: 34px 1fr;
  align-items: center;
  padding: 7px 10px;
  color: #dfe4e6;
  border: 1px solid #4c5356;
  border-radius: 5px;
  font-size: 9px;
  line-height: 1.25;
}
.sm-footer__platforms .sm-icon { grid-row: 1 / span 2; width: 25px; height: 25px; }
.sm-footer__platforms b { display: block; font-size: 12px; }
.sm-footer__contact { margin-top: 14px; padding: 14px; color: #445258; background: #fff; }
.sm-footer__contact h2 { color: #273238; font-size: 14px; }
.sm-footer__contact p { margin-top: 5px; font-size: 10px; line-height: 1.5; }
.sm-footer__contact a {
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 10px;
  color: var(--sm-teal);
  border: 1px solid var(--sm-teal);
  border-radius: 3px;
  font-size: 11px;
  font-weight: 700;
}
.sm-footer__feedback { margin-top: 14px; padding: 14px; color: #445258; background: #fff; }
.sm-footer__feedback h2 { color: #273238; font-size: 13px; }
.sm-footer__feedback p { margin-top: 5px; font-size: 10px; line-height: 1.5; }
.sm-footer__feedback label { display: block; margin-top: 10px; font-size: 10px; font-weight: 700; }
.sm-footer__feedback textarea {
  width: 100%;
  min-height: 68px;
  margin-top: 5px;
  padding: 8px;
  resize: vertical;
  border: 1px solid #ccd5d8;
  border-radius: 3px;
  color: #344248;
  background: #fff;
  font: inherit;
  font-size: 11px;
}
.sm-footer__feedback button {
  width: 100%;
  height: 32px;
  margin-top: 8px;
  border: 0;
  border-radius: 3px;
  color: #fff;
  background: var(--sm-teal);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}
.sm-footer__feedback button:disabled {
  color: #98a3a7;
  background: #e6eaec;
  cursor: not-allowed;
}
.sm-footer__bottom {
  width: min(1280px, calc(100% - 32px));
  min-height: 68px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 28px;
  border-top: 1px solid #404648;
  color: #939da1;
}
.sm-logo--footer { color: #fff !important; font-size: 15px; }
.sm-logo--footer img { width: 24px; height: 24px; }
.sm-footer__social { display: flex; align-items: center; gap: 13px; }
.sm-footer__social a { color: #d4dadd; }
.sm-footer__social .sm-icon { width: 18px; height: 18px; }
.sm-footer__legal { display: flex; gap: 18px; }
.sm-footer__legal a,
.sm-footer__bottom small { font-size: 10px; }
.sm-footer__bottom small { margin-left: auto; }

/* Mobile */
@media (max-width: 767px) {
  .sm-header__primary { height: 48px; }
  .sm-header__inner { width: 100%; padding: 0 12px; gap: 0; }
  .sm-logo { font-size: 16px; gap: 5px; letter-spacing: 0.02em; }
  .sm-logo img { width: 24px; height: 24px; }
  .sm-search--desktop,
  .sm-header__help,
  .sm-header__nav { display: none; }
  .sm-header__actions { gap: 7px; }
  .sm-mobile-search-button {
    width: 35px;
    height: 44px;
    display: grid;
    place-items: center;
    color: #26434d;
  }
  .sm-mobile-search-button .sm-icon { width: 23px; height: 23px; }
  .sm-header__login,
  .sm-header__register {
    min-width: 64px;
    height: 44px;
    padding: 0 8px;
    font-size: 12px;
  }

  .sm-promo-strip { height: 36px; font-size: 14px; }
  .sm-hero__visual {
    width: 100%;
    height: auto;
    padding: 0;
    border-bottom: 7px solid #6d28d9;
    box-sizing: border-box;
  }
  .sm-hero__visual picture { display: block; height: auto; }
  .sm-hero__visual img {
    width: 100%;
    height: auto;
    aspect-ratio: 13 / 10;
    object-fit: cover;
    object-position: center;
  }
  .sm-hero__note {
    min-height: 20px;
    display: block;
    margin: 8px 8px 0;
    color: #5f6f75;
    font-size: 8px;
    line-height: 1.45;
  }
  .sm-hero__mobile-actions {
    display: block;
    margin: 14px 20px 0;
  }
  .sm-primary-button {
    width: 100%;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #fff !important;
    border-radius: 8px;
    background: var(--sm-teal);
    box-shadow: 0 8px 18px rgba(0, 165, 143, 0.18);
    font-size: 16px;
    font-weight: 700;
  }
  .sm-primary-button .sm-icon { width: 20px; height: 20px; }

  .sm-layout {
    width: 100%;
    display: block;
    margin-top: 29px;
  }
  .sm-sidebar { display: none; }
  .sm-content { width: 100%; }
  .sm-category-section,
  .sm-merits { padding: 0 12px; }
  .sm-category-section { min-height: 548px; }
  .sm-category-section > h2,
  .sm-scenes > h2,
  .sm-merits > h2 {
    font-size: 16px;
    line-height: 26px;
  }
  .sm-category-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-auto-rows: 90px;
    gap: 14px 0;
    margin-top: 16px;
  }
  .sm-category-card { gap: 6px; padding: 0 2px; }
  .sm-category-card__icon { width: 60px; height: 60px; }
  .sm-category-card__icon .sm-icon { width: 31px; height: 31px; }
  .sm-category-card__label { font-size: 11px; line-height: 1.25; }

  .sm-scenes {
    min-height: 226px;
    margin-top: 24px;
    padding-left: 12px;
  }
  .sm-scenes > h2 { padding-right: 12px; }
  .sm-scene-grid {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    margin-top: 14px;
    padding-right: 12px;
    scrollbar-width: none;
    scroll-snap-type: x proximity;
  }
  .sm-scene-grid::-webkit-scrollbar { display: none; }
  .sm-scene-card { flex: 0 0 220px; height: 180px; scroll-snap-align: start; }
  .sm-scene-card__screen { height: 143px; }
  .sm-scene-card__label { height: 36px; font-size: 12px; }

  .sm-mobile-only { display: block; }
  .sm-register-panel {
    position: relative;
    height: 148px;
    margin-top: 40px;
    padding: 28px 24px 20px;
    background: #eef4fa;
  }
  .sm-register-panel h2 {
    margin-bottom: 8px;
    color: #273238;
    font-size: 16px;
    line-height: 24px;
    text-align: center;
  }
  .sm-register-panel .sm-primary-button { height: 52px; }

  .sm-merits { min-height: 413px; margin-top: 45px; }
  .sm-merit-grid { display: block; margin-top: 18px; }
  .sm-merit {
    height: 115px;
    grid-template-columns: 74px 1fr;
    gap: 20px;
  }
  .sm-merit + .sm-merit { margin-top: 8px; }
  .sm-merit__visual { width: 68px; height: 68px; border-radius: 15px; }
  .sm-merit__visual .sm-icon { width: 40px; height: 40px; }
  .sm-point { height: 28px; margin-bottom: 6px; padding: 0 10px; font-size: 11px; }
  .sm-merit h3 { margin-bottom: 3px; font-size: 16px; }
  .sm-merit p {
    display: -webkit-box;
    overflow: hidden;
    font-size: 12px;
    line-height: 1.5;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
  }

  .sm-market-section { margin-top: 40px; }
  .sm-creators { margin-top: 28px; }
  .sm-requests { margin-top: 36px; }
  .sm-market-section,
  .sm-creators,
  .sm-requests,
  .sm-rankings,
  .sm-articles,
  .sm-qna,
  .sm-news { padding-left: 12px; }
  .sm-section-heading {
    min-height: 26px;
    margin-bottom: 10px;
    padding-right: 12px;
  }
  .sm-section-heading h2 { font-size: 16px; line-height: 26px; }
  .sm-section-heading h2 span { height: 22px; margin-left: 5px; font-size: 11px; vertical-align: 1px; }
  .sm-section-heading > a { font-size: 13px; }

  .sm-product-track,
  .sm-creator-track,
  .sm-request-track { padding-right: 12px; }
  .sm-carousel__arrow { display: none; }
  .sm-product-card { flex-basis: 137px; height: 202px; }
  .sm-product-card__screen { height: 91px; }
  .sm-product-card__body { padding: 6px 5px; }
  .sm-product-card__name { font-size: 11px; }
  .sm-product-card__tagline { min-height: 31px; font-size: 10px; }
  .sm-product-card__rating { font-size: 10px; }
  .sm-product-card__developer,
  .sm-product-card__price { font-size: 9px; }

  .sm-creator-card { flex-basis: 230px; height: 128px; }
  .sm-request-card { flex-basis: 310px; height: 220px; }
  .sm-requests + .sm-register-panel { margin-top: 40px; margin-left: -12px; }

  .sm-rankings { margin-top: 40px; }
  .sm-rankings > h2 {
    padding-right: 12px;
    font-size: 16px;
    line-height: 26px;
  }
  .sm-rankings > h2 small { margin-left: 5px; font-size: 11px; }
  .sm-shelf { min-height: 243px; margin-top: 2px; }
  .sm-shelf__heading {
    height: 28px;
    margin-bottom: 7px;
    padding-right: 12px;
  }
  .sm-shelf__heading h3 { font-size: 14px; font-weight: 700; }
  .sm-shelf__heading h3 .sm-icon { width: 16px; height: 16px; }
  .sm-shelf__heading a { font-size: 13px; }

  .sm-articles { margin-top: 20px; }
  .sm-article-grid {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-right: 12px;
    scrollbar-width: none;
  }
  .sm-article-grid::-webkit-scrollbar { display: none; }
  .sm-article-card { flex: 0 0 220px; }

  .sm-qna { margin-top: 10px; }
  .sm-qna-grid {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-right: 12px;
    scrollbar-width: none;
  }
  .sm-qna-grid::-webkit-scrollbar { display: none; }
  .sm-qna-grid a { min-height: 160px; flex: 0 0 230px; }
  .sm-qna + .sm-register-panel { margin-left: -12px; }

  .sm-mobile-directory {
    margin: 32px 0 0 -12px;
    border-top: 1px solid #e3e8ea;
    background: #fff;
  }
  .sm-mobile-directory li { border-bottom: 1px solid #e3e8ea; }
  .sm-mobile-directory a {
    min-height: 44px;
    display: grid;
    grid-template-columns: 27px 1fr 16px;
    align-items: center;
    gap: 9px;
    padding: 0 14px 0 16px;
    color: #45545a;
    font-size: 12px;
  }
  .sm-mobile-directory .sm-icon:first-child { width: 19px; height: 19px; color: #6f7f85; }
  .sm-mobile-directory .sm-icon:last-child { width: 14px; height: 14px; color: #97a3a8; }

  .sm-news { margin: 44px 0 34px; padding-right: 12px; }
  .sm-news h2 { font-size: 14px; line-height: 22px; }
  .sm-news li {
    min-height: 56px;
    grid-template-columns: 82px 1fr;
    align-items: start;
    padding: 9px 0;
  }
  .sm-news time { padding-top: 2px; }
  .sm-news a { line-height: 1.55; }

  .sm-beginner-banner {
    min-height: 96px;
    grid-template-columns: 72px 1fr 18px;
    gap: 10px;
    margin: 0 12px 32px;
    padding: 14px 12px;
  }
  .sm-beginner-banner__icons .sm-icon:first-child { width: 29px; height: 29px; }
  .sm-beginner-banner__icons .sm-icon:last-child { width: 37px; height: 37px; }
  .sm-beginner-banner strong { font-size: 14px; line-height: 1.45; }

  .sm-footer__inner {
    width: 100%;
    display: block;
    padding: 0;
  }
  .sm-footer__groups { display: block; }
  .sm-footer__group { border-bottom: 1px solid #414749; }
  .sm-footer__group summary {
    position: relative;
    height: 48px;
    display: flex;
    align-items: center;
    padding: 0 16px;
    cursor: pointer;
    font-size: 12px;
  }
  .sm-footer__group summary::after {
    content: "";
    position: absolute;
    right: 16px;
    width: 15px;
    height: 15px;
    background: #b8c0c3;
    -webkit-mask: url("../assets/icons/chevron-down.svg") center / contain no-repeat;
    mask: url("../assets/icons/chevron-down.svg") center / contain no-repeat;
    transition: transform 0.2s ease;
  }
  .sm-footer__group[open] summary::after { transform: rotate(180deg); }
  .sm-footer__group ul { margin: 0; padding: 0 16px 14px; }
  .sm-footer__group li + li { margin-top: 8px; }
  .sm-footer__group a { font-size: 11px; }
  .sm-footer__side { padding: 22px 16px 26px; }
  .sm-footer__platforms { grid-template-columns: 1fr 1fr; }
  .sm-footer__contact { margin-top: 14px; }
  .sm-footer__feedback { margin-top: 14px; padding: 16px; }
  .sm-footer__feedback textarea { min-height: 92px; }
  .sm-footer__bottom {
    width: 100%;
    min-height: 188px;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px 18px;
    padding: 24px 16px 30px;
  }
  .sm-logo--footer { width: 100%; justify-content: center; }
  .sm-footer__social { width: 100%; justify-content: center; gap: 24px; }
  .sm-footer__social .sm-icon { width: 20px; height: 20px; }
  .sm-footer__legal { flex-wrap: wrap; justify-content: center; row-gap: 8px; }
  .sm-footer__bottom small { width: 100%; margin: 0; text-align: center; }
}

@media (min-width: 768px) and (max-width: 1100px) {
  .sm-header__inner,
  .sm-header__nav-inner { width: calc(100% - 24px); }
  .sm-search { width: 330px; }
  .sm-header__nav a:nth-child(4),
  .sm-header__nav a:nth-child(5),
  .sm-header__nav a:nth-child(6) { display: none; }
  .sm-layout {
    width: calc(100% - 32px);
    grid-template-columns: 220px minmax(0, 1fr);
  }
  .sm-sidebar { padding: 0 12px; }
  .sm-category-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .sm-scene-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sm-scene-card:nth-child(n+7) { display: none; }
  .sm-merit-grid { gap: 12px; }
  .sm-merit { grid-template-columns: 58px 1fr; gap: 10px; }
  .sm-merit__visual { width: 58px; height: 58px; }
  .sm-merit__visual .sm-icon { width: 34px; height: 34px; }
  .sm-merit h3 { font-size: 15px; }
  .sm-merit p { font-size: 11px; }
}

@media (prefers-reduced-motion: reduce) {
  .sm-footer__group summary::after { transition: none; }
}
