/* Homepage feature cards and market gateway. */
.tw-hero-market-layout {
  --tw-market-border: rgba(167, 199, 178, .32);
  --tw-market-green: #a3d2b4;
  padding-bottom: clamp(10px, 1.5vw, 22px);
}
.tw-hero-market-layout .hb-hero[data-component-id] .hb-wrap {
  width: auto;
  max-width: none;
  margin-left: clamp(320px, 27.5vw, 760px);
  margin-right: clamp(24px, 2vw, 64px);
  padding: 0;
  grid-template-columns: minmax(0, 1fr) minmax(330px, min(27vw, 460px));
  gap: clamp(20px, 2vw, 38px);
  align-items: start;
  justify-items: stretch;
}
.tw-hero-market-layout .hb-hero[data-component-id] .hb-col.left { min-width: 0; width: 100%; }
.tw-hero-market-layout .hb-hero[data-component-id] .hb-title {
  font-size: clamp(34px, 2.8vw, 54px);
  line-height: 1.04;
  margin-top: 6px;
  margin-bottom: 12px;
}
.tw-hero-market-layout .hb-hero[data-component-id] .hb-sub2-main {
  font-size: clamp(14px, 1vw, 17px) !important;
  line-height: 1.45 !important;
  margin-bottom: 7px !important;
}
.tw-hero-market-layout .hb-hero[data-component-id] .hb-path-label {
  width: 100%;
  gap: 12px;
  margin: 10px 0 10px;
  font-size: 13px;
  letter-spacing: .1em;
  color: #edf3ee;
}
.tw-hero-market-layout .hb-hero[data-component-id] .hb-paths.tw-featured-products {
  width: min(100%, 640px);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  gap: 8px;
  margin: 0 0 14px;
}
.tw-hero-market-layout .tw-featured-product {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-width: 0;
  color: #fff;
  text-decoration: none;
  border: 1px solid rgba(175, 225, 195, .48);
  border-radius: 12px;
  background: linear-gradient(155deg, #afe1c32b, #18392833);
  box-shadow: inset 0 1px 0 #ffffff1a, 0 8px 22px #00000024;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.tw-hero-market-layout .tw-featured-product--perm {
  border-color: rgba(241, 190, 201, .48);
  background: linear-gradient(155deg, #f1bec92b, #421d2533);
}
.tw-hero-market-layout .tw-featured-product--nfa {
  border-color: #8ed0bd;
  background: linear-gradient(155deg, #20494de8, #112824e8);
}
.tw-hero-market-layout .tw-featured-product:hover { color: #fff; border-color: #afddc0; box-shadow: 0 10px 28px #0006; }
.tw-hero-market-layout .tw-featured-product--perm:hover { border-color: #e8a0aa; }
.tw-hero-market-layout .tw-featured-product--nfa:hover { border-color: #c0f0d6; }
.tw-hero-market-layout .tw-featured-product__media {
  display: block;
  box-sizing: border-box;
  width: 100%;
  height: clamp(100px, 9vw, 136px);
  padding: 9px 9px 0;
}
.tw-hero-market-layout .tw-featured-product__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  border-radius: 5px;
}
.tw-hero-market-layout .tw-featured-product--nfa .tw-featured-product__media {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  justify-items: center;
  gap: 5px;
}
.tw-hero-market-layout .tw-featured-product__badge {
  padding: 2px 6px;
  border: 1px solid #cda85e61;
  border-radius: 5px;
  background: #edbf5d20;
  color: #f8d381;
  font-size: clamp(8px, .8vw, 11px);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: .04em;
  text-transform: uppercase;
  white-space: nowrap;
}
.tw-hero-market-layout .tw-featured-product__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 10px 7px 11px;
}
.tw-hero-market-layout .tw-featured-product__name {
  display: block;
  color: #f7f8f6;
  font-size: clamp(16px, 1.2vw, 22px);
  font-weight: 900;
  line-height: 1.15;
  text-shadow: 0 2px 5px #000e;
  text-transform: uppercase;
  letter-spacing: -.025em;
}
.tw-hero-market-layout .tw-featured-product__name em { color: #a8d4ba; font-style: normal; }
.tw-hero-market-layout .tw-featured-product--perm .tw-featured-product__name em { color: #f48f9b; }
.tw-hero-market-layout .tw-featured-product__action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 36px;
  width: min(185px, 100%);
  box-sizing: border-box;
  margin-top: auto;
  padding: 7px 4px;
  border: 1px solid #ff8d8d5c;
  border-radius: 8px;
  background: linear-gradient(180deg, #ed5358, #bd242f);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
}
.tw-hero-market-layout .tw-market-portal {
  width: 100%;
  min-width: 0;
  position: relative;
  margin-top: -25px;
  text-align: center;
}
.tw-hero-market-layout .tw-market-portal__art {
  display: block;
  position: relative;
  z-index: 1;
  width: 100%;
  height: clamp(230px, 20vw, 335px);
  border-radius: 18px 18px 0 0;
  background: radial-gradient(ellipse at 50% 70%, #284e5b4d, transparent 70%);
}
.tw-hero-market-layout .tw-market-portal__art img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
}
.tw-hero-market-layout .tw-market-portal__body {
  position: relative;
  margin-top: -18px;
  padding: 22px 17px 17px;
  overflow: hidden;
  border: 1px solid var(--tw-market-border);
  border-radius: 15px;
  background: radial-gradient(ellipse at 50% 0%, #17492d6b, transparent 58%), linear-gradient(160deg, #0c1715f5, #080e0bf7);
  box-shadow: 0 14px 36px #0005, inset 0 1px 0 #d2e3d20d;
}
.tw-hero-market-layout .tw-market-portal__heading h2 {
  margin: 0;
  color: #f6f8f6;
  font-size: clamp(20px, 1.65vw, 30px);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -.035em;
  text-transform: uppercase;
}
.tw-hero-market-layout .tw-market-portal__heading h2 span { color: var(--tw-market-green); }
.tw-hero-market-layout .tw-market-portal__heading p { margin: 8px 0 16px; color: #c4d3ca; font-size: 13px; line-height: 1.4; }
.tw-hero-market-layout .tw-market-portal__games { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; }
.tw-hero-market-layout .tw-market-game {
  --game-glow: #7260a1;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 7px;
  min-width: 0;
  min-height: 88px;
  padding: 11px 6px 10px;
  border: 1px solid #b8c6bc5c;
  border-radius: 10px;
  background: radial-gradient(ellipse at 50% 15%, color-mix(in srgb, var(--game-glow) 28%, transparent), transparent 85%), #0d1112;
  color: #f3f5f3;
  text-decoration: none;
  transition: border-color .18s ease, background-color .18s ease;
}
.tw-hero-market-layout .tw-market-game--steam { --game-glow: #4e94c7; }
.tw-hero-market-layout .tw-market-game--cs2 { --game-glow: #c98d2d; }
.tw-hero-market-layout .tw-market-game--rust { --game-glow: #b44d35; }
.tw-hero-market-layout .tw-market-game--valorant { --game-glow: #b94559; }
.tw-hero-market-layout .tw-market-game--minecraft { --game-glow: #4fa34b; }
.tw-hero-market-layout .tw-market-game:hover { border-color: #c5e4cf; background-color: #18221b; color: #fff; }
.tw-hero-market-layout .tw-market-game img { display: block; width: clamp(40px, 3.25vw, 56px); height: clamp(40px, 3.25vw, 56px); object-fit: contain; }
.tw-hero-market-layout .tw-market-game > span { font-size: clamp(10px, .78vw, 13px); line-height: 1.15; font-weight: 800; text-transform: uppercase; }
.tw-hero-market-layout .tw-market-game--roblox { --game-glow: #a9464c; grid-column: 1 / -1; flex-direction: row; justify-content: flex-start; min-height: 52px; padding: 8px 14px; gap: 13px; }
.tw-hero-market-layout .tw-market-game--roblox img { width: 32px; height: 32px; }
.tw-hero-market-layout .tw-market-game--roblox .tw-market-game__arrow { margin-left: auto; font-size: 20px; }
.tw-hero-market-layout .tw-market-portal__browse {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 48px;
  margin-top: 14px;
  padding: 12px 14px;
  color: #fff;
  text-decoration: none;
  background: linear-gradient(180deg, #32894d, #165a31);
  border: 1px solid #92c99a8c;
  border-radius: 10px;
  box-shadow: inset 0 1px 0 #e1f5df29;
  font-size: clamp(16px, 1.25vw, 22px);
  line-height: 1.1;
  font-weight: 900;
}
.tw-hero-market-layout .tw-market-portal__browse:hover { color: #fff; background: linear-gradient(180deg, #3e9b5b, #206e3d); }
.tw-hero-market-layout .tw-market-portal__browse svg { width: 22px; height: 22px; flex: 0 0 22px; }
.tw-hero-market-layout .tw-featured-product:focus-visible,
.tw-hero-market-layout .tw-market-portal a:focus-visible { outline: 3px solid #d9f0df; outline-offset: 4px; }
html.tw-christmas .tw-hero-market-layout .hb-hero .tw-christmas-intro { padding: 14px 17px; gap: 12px; }
html.tw-christmas .tw-hero-market-layout .hb-hero .tw-christmas-intro h2 { font-size: clamp(19px, 1.3vw, 23px); }
.tw-hero-market-layout .tw-christmas-promo-trigger { flex-shrink: 0; }
@media (min-width: 1280px) and (max-width: 1599px) {
  .tw-hero-market-layout .hb-hero[data-component-id] .hb-wrap { margin-left: 26vw; margin-right: 20px; gap: 20px; grid-template-columns: minmax(0, 1fr) 320px; }
  .tw-hero-market-layout .hb-hero[data-component-id] .hb-title { font-size: clamp(31px, 2.8vw, 43px); }
  html.tw-christmas .tw-hero-market-layout .hb-hero .tw-christmas-intro { align-items: flex-start; flex-direction: column; }
  .tw-hero-market-layout .tw-market-portal__body { padding: 20px 12px 13px; }
  .tw-hero-market-layout .tw-market-portal__games { gap: 7px; }
}
@media (max-width: 1279px) {
  .tw-hero-market-layout .hb-hero[data-component-id] .hb-wrap { width: min(850px, calc(100% - 40px)); margin: 0 auto; grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .tw-hero-market-layout .hb-hero[data-component-id] .hb-title { font-size: clamp(34px, 4.5vw, 52px); }
  .tw-hero-market-layout .tw-featured-product__media { height: clamp(135px, 18vw, 190px); }
  .tw-hero-market-layout .tw-market-portal { margin: 0 auto; display: grid; grid-template-columns: .85fr 1.15fr; align-items: end; }
  .tw-hero-market-layout .tw-market-portal__art { height: 100%; min-height: 300px; }
  .tw-hero-market-layout .tw-market-portal__body { margin-top: 0; }
}
@media (max-width: 700px) {
  .tw-hero-market-layout .hb-hero[data-component-id] .hb-wrap { width: calc(100% - 28px); gap: 25px; }
  .tw-hero-market-layout .hb-hero[data-component-id] .hb-title { font-size: clamp(31px, 6.2vw, 42px); }
  .tw-hero-market-layout .tw-featured-product__media { height: clamp(67px, 20vw, 135px); padding: 6px 6px 0; }
  .tw-hero-market-layout .tw-featured-product__body { padding: 8px 4px; gap: 6px; }
  .tw-hero-market-layout .tw-featured-product__name { font-size: clamp(12px, 3.5vw, 18px); }
  .tw-hero-market-layout .tw-featured-product__action { min-height: 32px; font-size: clamp(9px, 2.6vw, 11px); }
  .tw-hero-market-layout .tw-market-portal { display: block; max-width: 460px; }
  .tw-hero-market-layout .tw-market-portal__art { height: auto; min-height: 0; aspect-ratio: 4 / 3; }
  .tw-hero-market-layout .tw-market-portal__body { margin-top: -18px; padding: 22px 13px 15px; }
  .tw-hero-market-layout .tw-market-portal__heading h2 { font-size: clamp(23px, 5vw, 28px); }
  .tw-hero-market-layout .tw-market-game img { width: 48px; height: 48px; }
  .tw-hero-market-layout .tw-market-game > span { font-size: 11px; }
  .tw-hero-market-layout .tw-market-game--roblox img { width: 34px; height: 34px; }
  .tw-hero-market-layout .tw-market-portal__browse { font-size: 21px; }
}
@media (prefers-reduced-motion: reduce) {
  .tw-hero-market-layout .tw-featured-product,
  .tw-hero-market-layout .tw-market-portal a { transition: none; }
}
