/* COMPONENT WRAPPER */
.homepage-feature-campaign {
  --razer-green: #44D62C;
  --razer-green-dark: #2ea81e;
  --tile-w: 304px;
  --tile-h: 160px;
  --tile-gap: 24px;
  position: relative;
  width: 100%;
  max-width: 1920px;
  min-height: 920px;
  overflow: hidden;
  background: #000;
  margin: 0 auto;
  /* VIEWS */
  .campaign-view {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    padding: 0 1rem;
    transition: opacity 0.5s ease;
  }
  .campaign-view[inert] {
    opacity: 0;
    pointer-events: none;
  }
  .campaign-view:not([inert]) {
    opacity: 1;
    pointer-events: auto;
  }
  /* PICTURE / IMAGE */
  .campaign-picture {
    position: absolute;
    inset: 0;
    z-index: 0;
    height: 75vh;
    min-height: 920px;
  }
  .campaign-picture.campaign-picture--mobile-only{
    display: none;
  }
  .hfc__video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;    
  }
  .campaign-picture img {
    width: 100vw;
    max-width: 100%;
    height: 75vh;
    -o-object-fit: cover;
    object-fit: cover;
    -o-object-position: center bottom;
    object-position: center bottom;
     min-height: 920px;
     max-height: 920px;
  }
  /* OVERLAY GRADIENT */
  .campaign-overlay {
    position: absolute;
 	  top: 0;
	  left: 0;
	  right: 0;
	  height: 300px;
    background: linear-gradient(
      to bottom, 
      rgba(0, 0, 0, 0.8) 0%, 
      rgba(0, 0, 0, 0.5) 50%, 
      rgba(0, 0, 0, 0) 100%
    );
	  pointer-events: none;
	  z-index: 1;
  }
  /* Play / Pause Button */
  /* Anchored relative to the 1200 px inner container */
  .hfc__playback-wrap {
    position: absolute;
    bottom: 14rem;
    /* Right edge of the 1200 px container */
    right: max(calc((100% - 1200px) / 2), clamp(1rem, 4vw, 2.5rem));
    z-index: 3;
  }
  .hfc__playback-btn {
    width: clamp(2rem, 3.5vw, 2.75rem);
    height: clamp(2rem, 3.5vw, 2.75rem);
    border-radius: 50%;
    border: none;
    background: #44D62C;
    color: #000000;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
  }
  .hfc__playback-btn:hover {
    background: #73e161;
  }
  .hfc__playback-btn:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 3px;
  }
  .hfc__playback-btn:active { transform: scale(.97); }
  /* SVG icons inside the button */
  .hfc__playback-btn svg {
    width: 55%;
    height: 55%;
    fill: currentColor;
    flex-shrink: 0;
    min-width: 17px;
  }
  .hfc__playback-btn .icon-pause { display: block; }
  .hfc__playback-btn .icon-play { display: none; }
  .hfc__playback-btn[data-state="paused"] .icon-play  { display: block; }
  .hfc__playback-btn[data-state="paused"] .icon-pause { display: none; }
  /* Make the wrapper relative so the badge positions correctly */
  .hfc__playback-btn { position: relative; }
  /* FRONT VIEW CONTENT */
  .view-front .campaign-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    text-align: center;
    padding-top: 3rem;
    flex: 1;
    margin: 0 auto;
    max-width: 1200px;
  }
  .view-front .campaign-content.hfc-has-ribbon {
    margin-top: 1.5rem;
  }
  .hfc-ribbon {
    display: inline-flex;
    background: #ff9c07;
    color: #000000;
    font-size: .875rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 0 8px;
    margin-bottom: 1.125rem;
    height: 1.625rem;
    align-items: center;
  }
  .campaign-headline {
    font-family: RazerF5,Arial,Helvetica,sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: #FFFFFF;
    text-transform: uppercase;
    line-height: 1.05;
    padding-bottom: 5px;
  }
  .lowercase-exception { text-transform: lowercase; }
  .campaign-content.text-black {
    .campaign-headline, .campaign-body {
      color: #000000;
    }
  }
  .campaign-body {
    font-family: Roboto,Arial,Helvetica,sans-serif;
    font-size: 1.125rem;
    line-height: 1.5rem;
    font-weight: 400;
    max-width: 1140px;
    color: #BBBBBB;
    margin-bottom: 1.3rem;
  }
  .hfc__actions {
    display: flex;
    flex-wrap: wrap;
    gap: clamp(1rem, 1.5vw, 1.5rem);
    justify-content: center;
  }
  .campaign-cta {
    font-family: RazerF5,Arial,Helvetica,sans-serif;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 0 1rem;
    min-height: 44px;
    cursor: pointer;
    text-decoration: none;
    border-radius: 3px;
    min-width: 5rem;
    white-space: nowrap;
    text-decoration: none !important;
    outline-offset: 3px;
    transition: background-color 0.3s ease;
  }
  .campaign-cta-primary {
    background: #44D62C;
    color: #000000 !important;
    border-color: #44D62C;
  }
  .campaign-cta-secondary {
    background-color: rgba(0, 0, 0, 0.5);
    color: #44D62C;
    border: 2px solid #44D62C;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
  }
  .campaign-cta:hover, .campaign-cta:focus-visible { background: #73e161; }
  .campaign-cta-secondary:hover, .campaign-cta-secondary:focus-visible {
    background: #122f0d;
  }
  .campaign-cta:focus-visible, .campaign-cta-secondary:focus-visible {
    outline: 2px solid #44D62C;
  }
  .view-product > article { display: contents; }
  /* Bottom gradient scrim — separates background image from buttons/tiles */
  .view-product::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 300px;
    background: linear-gradient(to top, rgba(0,0,0,1) 0%, rgba(0,0,0,0.9) 35%, rgba(0,0,0,0.6) 65%, rgba(0,0,0,0) 100%);
    pointer-events: none;
    z-index: 1;
  }
  /* PRODUCT VIEW CONTENT */
  .view-product .campaign-content {
    transition: opacity 0.2s ease;
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    text-align: left;
    flex: 1;
    margin: 0 auto;
    width: 1200px;
    max-width: 100%;
    padding: 0 2.5rem 13rem;
    h3 {
      font: 500 2rem/1.2 RazerF5,Arial,Helvetica,sans-serif;
      color: #ffffff;
      text-transform: uppercase;
    }
  }
  /*
  .view-product .product-action-row .campaign-cta-primary {
    box-shadow: 0 0 0 2px #111;
  }*/
  @media (max-width: 768px) {
    .view-product .campaign-content {
      max-width: 80%;
      padding: 0 1.5rem 15rem;
      margin: 0 auto;
      .product-bodycopy {
        width: 100%;
      }
    }
    .view-product .campaign-content:not(.has-quote) {
      padding-left: 0;
      padding-right: 0;
    }
  } 
  .product-bodycopy {
    font-family: "Roboto";
    position: relative;;
    margin-bottom: 1.25rem;
    width: 50%;
    font-family: Roboto,Arial,Helvetica,sans-serif;
    font-size: 1.125rem;
    line-height: 1.5rem;
    font-weight: 400;
    color: #BBBBBB;
    padding-right: 2rem;
    blockquote {
      position: relative;
      font: 700 30px/32px RazerF5,Arial,Helvetica,sans-serif;
      text-transform: uppercase;
      color: #FFFFFF;
      text-align: left;
      unicode-bidi: normal;
    }
    blockquote::before, blockquote::after {
      content: " ";
      display: inline-block;
      background-size: contain;
      background-repeat: no-repeat;
      background-position-y: top;
    }
    blockquote::before {
      vertical-align: 0;
      margin: 0;
      position: absolute;
      height: 23px;
      width: 100%;
      max-width: 65px;
      left: -75px;
      top: 3px;
      background-position-x: right;
      background-image: url(https://razer-assets2.s3.us-west-1.amazonaws.com/images/common/esport-quote-open.png);
    }
    blockquote::after {
      height: 23px;
      width: 100%;
      bottom: 4px;
      position: absolute;
      max-width: 24px;
      line-height: 1;
      background-position-x: left;
      background-image: url(https://razer-assets2.s3.us-west-1.amazonaws.com/images/common/esport-quote-close.png);
      margin-left: 5px;
    }
  }
  .product-footnote {
    font-size: 1rem;
    font-weight: 400;
    margin-bottom: 0.25rem;
    color: #BBBBBB;
  }
  .product-footnote .footnote-author {
    font-size: 1.25rem;
    color: #44D62C;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 0.25rem;
    display: block;
  }
  .product-footnote .footnote-title {
    font-size: 0.75rem;
    color: #FFFFFF;
    text-transform: uppercase;
    font-weight: 400;
    margin-bottom: 1.5rem;
    display: block;
  }
  /* Badge */
  .product-icon img {
    width: 150px;
    height: auto;
    display: block;
  }
  /* Product view inline action buttons */
  .product-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
  }
  /* Back link */
  .back-link {
    position: absolute;
    z-index: 10;
    bottom: calc(var(--tile-h) + var(--tile-gap) + 3rem);
    left: max(calc((100% - 1200px) / 2), 2rem);
    color: #FFFFFF;
    font-size: 0.875rem;
    text-decoration: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.35em;
    transition: color 0.2s;
    background: none;
    border: none;
    outline-offset: 3px;
  }
  .back-link::before { content: '<'; font-size: 1rem; line-height: 1; color: #44D62C; }
  .back-link:hover { color: #fff; }
  .back-link:focus-visible { outline: 2px solid var(--razer-green); }
  /* Product view bottom-right action row */
  .product-action-row {
    position: absolute;
    z-index: 10;
    bottom: calc(var(--tile-h) + var(--tile-gap) + 3.125rem);
    right: max(calc((100% - 1200px) / 2), 2rem);
    display: flex;
    gap: 1.5rem;
  }
  /* PRODUCT TILES STRIP */
  .tiles-strip {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 10;
    padding: 0 0 1.875rem;
  }
  .tiles-track-wrapper {
    position: relative;
    overflow: hidden;
    padding: 10px 2rem;
    max-width: 1200px;
    margin: 0 auto;
  }
  .tiles-track {
    display: flex;
    gap: var(--tile-gap);
    transition: transform 0.35s cubic-bezier(.25,.46,.45,.94);
    cursor: grab;
    user-select: none;
    align-items: flex-start;
  }
  .tiles-track.is-dragging { cursor: grabbing; transition: none; }
  /* Center when all tiles fit */
  .tiles-track.tiles-centered { justify-content: center; }
  /* TILE */
  .tile-wrapper {
    flex: 0 0 var(--tile-w);
    height: var(--tile-h);
    position: relative;
    border-radius: 10px;
    transition: filter 0.15s ease;
  }
  .tile-wrapper:has([role="tab"][aria-selected="true"]) {
    filter: drop-shadow(0 0 5px rgba(68, 214, 44, 0.8));
  }
  .product-tile {
    width: 100%;
    height: 100%;
    background: #000000;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding-top: 0;
    vertical-align: top;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    clip-path: inset(0 round 10px);
    transform: translateZ(0);
    border: none;
    border-radius: 10px;
  }
  .product-tile:focus-visible { outline: none; }
  .tile-wrapper:has(.product-tile:focus-visible) {
    outline: auto;
    outline-offset: 3px;
    border-radius: 13px;
  }
  .tile-glow-border {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 10;
  }
  .tile-glow-border rect {
    x: 0;
    y: 0;
    width: 100%;
    height: 100%;
    rx: 10.5px;
    fill: none;
    stroke: #333333;
    stroke-width: 3;
    transition: stroke 0.3s ease;
  }
  .product-tile:hover .tile-glow-border rect {
    stroke: #ffffff;
  }
  .tile-wrapper a.product-tile:hover {
    text-decoration: none;
  }
  [role="tab"][aria-selected="true"] .tile-glow-border rect {
    stroke: var(--razer-green);
  }
  .tile-img {
    width: auto;
    height: 106px;
    margin: 0 auto;
    object-fit: contain;
    pointer-events: none;
    padding: 0 0.5rem 0rem;
    flex-shrink: 0;
  }
  .tile-name {	
		font-family: RazerF5;
    font-size: 1rem;
    font-weight: 400;
    text-transform: uppercase;
    text-align: center;
    color: #fff;
		line-height: 1.2;
    padding: 0.25rem 1rem 0.75rem;
    flex-grow: 1;
    width: 100%;
    display: grid;
    place-items: center;
    height: 54px;
  }
}
/* RESPONSIVE */
/*
@media (min-width: 1800px) {
  .product-bodycopy blockquote {
      font: 700 40px/45px RazerF5,Arial,Helvetica,sans-serif !important;
  }
}
*/
@media (max-width: 1400px) {
  .homepage-feature-campaign, .homepage-feature-campaign .campaign-picture img {
    min-height: 768px;
  }
  .homepage-feature-campaign .campaign-headline {
    font-size: 2rem;
  }
  .homepage-feature-campaign .campaign-body {
    font-size: 1rem;
    line-height: 1.25rem;
  }
}
@media (max-width: 1024px) {
  .homepage-feature-campaign {
     --tile-w: 304px;
     --tile-gap: 8px;
     --tile-h2: 160px;
     .tile-img { height: 106px; }
     .tiles-track-wrapper { padding-inline: 1rem !important; }
     .tiles-strip { padding-bottom: 0.875rem !important;}
     .view-product .product-bodycopy {
        width: 50%;
     }
     .product-action-row { 
        gap: 1rem; 
        bottom: 205px;
        right: 1rem !important;
     }
     .hfc__playback-wrap {
       bottom: 205px;
     }
     .back-link {
      left: 1rem;
     }
  } 
}
@media (max-width: 900px) {
  .homepage-feature-campaign {
    .view-front .campaign-picture img {
      object-position: center 80%;
      -o-object-position: center 80%;
    }
    .view-product .campaign-picture {
      height: auto;
      min-height: unset;
    }
    .view-product .campaign-picture img {
      min-height: unset;
      width: 100%;
      height: auto;
      -o-object-position: top;
      object-position: top;
    }
    .view-product .campaign-content {
      width: 100%;
      max-width: 100%;
      padding-top: var(--product-img-h, 21rem);
      justify-content: flex-start;
      padding-bottom: unset;
      padding-right: 0;
      .product-bodycopy {
          width: 100%;
          margin-bottom: 1rem;
          padding-right: 1.5rem;
      }
      .product-icon {
        display: none;
      }
    }
  }
}
@media (max-width: 768px) {
  .homepage-feature-campaign, .homepage-feature-campaign .campaign-picture img {
    min-height: 768px;
  }
  .homepage-feature-campaign .campaign-picture.campaign-picture--mobile-only{
      display: block;
  }
  .homepage-feature-campaign .hfc-video--desktop-only {
    display: none;
  }
  .homepage-feature-campaign { 
     --tile-w: 360px; 
     --tile-h: 200px; 
     .tile-img { height: 146px; }
     .product-action-row { 
        gap: 1rem; 
        bottom: 244px;
        right: 1rem !important;
     }
     .hfc__playback-wrap {
       bottom: 244px;
     }
  }
  .view-product .product-bodycopy {
    blockquote {
      font: 700 1.5rem/1.625rem RazerF5,Arial,Helvetica,sans-serif;
      margin-bottom: 0;
    }
    blockquote::before {
      display: inline-block;
      height: 17px;
      top: 1px;
      left: -70px;
    }
    blockquote::after {
      display: inline-block;
      height: 17px;
      bottom: 6px;
    }
  }
}
@media (max-width: 480px) {
  .homepage-feature-campaign {
     --tile-w: 248px; 
     --tile-h: 120px; 
    aspect-ratio: unset;
    min-height: 784px;
    .product-action-row {
        left: 1rem !important;
    }
    .back-link {
        left: unset !important;
        bottom: unset !important;
        top: 1rem;
        left: 1rem;
    }
    .tile-img { 
      height: 74px;
      transform: scale(1.5);
      transition: transform 0.2s ease-in-out;
      transform-origin: top;
    }
    .product-tile:hover .tile-img, [role="tab"][aria-selected="true"] .tile-img {
      transform: scale(1);
    }
    .tile-name { 
      opacity: 0;
      font-size: 0.875rem;
      transition: opacity 0.2s ease, visibility 0.2s ease;
    }
    .tiles-strip {
      padding-bottom: 0.5rem !important;
    }
    .product-tile:hover .tile-name, [role="tab"][aria-selected="true"] .tile-name {
      opacity: 1;
    }
    .product-action-row, .hfc__playback-wrap { 
        bottom: 154px;
    }
    .view-product .campaign-content h3 {
      font-size: 1.5rem;
    }
    .view-product .campaign-picture {
      height: 75%;
      min-height: unset;
    }
    .view-product .campaign-picture img {
      min-height: unset;
      width: 100%;
      height: 50%;
      -o-object-position: top;
      object-position: top;
    }
    :lang(ko-KR),:lang(ja-JP),:lang(zh-TW),:lang(zh-HK),:lang(zh-CN) {
      .view-product .product-bodycopy blockquote {
        line-height: 1.2 !important;
      }
    }
    .view-product .campaign-content {
      padding-top: var(--product-img-h, 19.5rem);
      padding-left: 1.5rem;
    }
    .view-product .campaign-content .product-bodycopy {
      padding-right: 0.5rem;
    }
  }
}
:lang(zh-CN), :lang(pt-BR), :lang(es-MX), :lang(ar-MENA), :lang(en-MENA) {
  .homepage-feature-campaign .campaign-cta-secondary {
    display: none;
  }
}
/* ── RTL (Arabic / ar-MENA) ─────────────────────────────────────────────── */
:lang(ar-MENA) .homepage-feature-campaign {
  .back-link {
    left: unset;
    right: max(calc((100% - 1200px) / 2), 2rem);
  }
  .product-action-row {
    right: unset;
    left: max(calc((100% - 1200px) / 2), 2rem);
  }
  .hfc__playback-wrap {
    right: unset;
    left: max(calc((100% - 1200px) / 2), clamp(1rem, 4vw, 2.5rem));
  }
  .view-product .campaign-content {
    text-align: right;
    align-items: flex-end;
  }
  .product-bodycopy {
    padding-right: 2rem;
    padding-left: 0;
    width: 45%;
  }
  .product-footnote {
    width: 45%;
    padding-right: 2rem;
  }
  .product-bodycopy blockquote {
    text-align: right;
    line-height: 1.2 !important;
  }
  .product-bodycopy blockquote::before {
    left: unset;
    right: -75px;
    background-position-x: left;
    background-image: url(https://razer-assets2.s3.us-west-1.amazonaws.com/images/common/esport-quote-close.png);
  }
  .product-bodycopy blockquote::after {
    margin-left: 0;
    margin-right: 5px;
    background-position-x: right;
    background-image: url(https://razer-assets2.s3.us-west-1.amazonaws.com/images/common/esport-quote-open.png);
  }
  .tile-name { text-align: right; }
}
@media (max-width: 1024px) {
  :lang(ar-MENA) .homepage-feature-campaign {
    .view-product .product-bodycopy {
      width: 50%;
    }
    .product-action-row {
      left: unset !important;
      right: 1rem !important;
    }
    .back-link {
      right: unset;
      left: 1rem;
    }
  }
}
@media (max-width: 900px) {
  :lang(ar-MENA) .homepage-feature-campaign {
    .view-product .campaign-content {
      width: 100%;
      max-width: 100%;
    }
    .view-product .product-bodycopy {
      width: 100%;
      padding-right: 1.5rem;
      padding-left: 0;
    }
    .product-footnote {
      width: 100%;
      padding-right: 0;
    }
  }
}
@media (max-width: 480px) {
  :lang(ar-MENA) .homepage-feature-campaign {
    .product-action-row {
      left: unset !important;
      right: 1rem !important;
    }
    .view-product .campaign-content {
      padding-left: unset;
      padding-right: 1.5rem;
    }
    .view-product .campaign-content .product-bodycopy {
      padding-left: 1rem;
      padding-right: 0;
    }
    .product-bodycopy blockquote::before {
      left: unset;
      right: -70px;
    }
  }
}
@media (min-width: 1200px) {
  .homepage-feature-campaign .tile-wrapper {
    flex: 0 1 var(--tile-w);
  }
}
@media (min-width: calc(1200px + 4rem)) {
  .homepage-feature-campaign .tiles-track-wrapper {
    padding-inline: 0;
  }
}