*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }

  html, body {
    height: 100%;
  }

  :root {
    --font-family: 'Roboto', sans-serif;
    --font-size-base: 18px;
    --font-size-heading: 52px;
    --font-size-highlight: 26px;
    --font-size-footer: 14px;
    --font-size-heading-mobile: 36px;
    --font-weight-normal: 500;
    --font-weight-bold: 700;
    --font-weight-black: 900;
    --line-height-base: 1.5;
    --line-height-heading: 1.1;
    --primary-color: #2c1e1a;
    --accent-color: #8e381e;
    --background-color: #fff;
    --logo-shadow: rgba(142, 56, 30, 0.25);
    --logo-hover-bg: #c5b5a2;
    --button-shadow: rgba(0, 0, 0, 0.25);
    --button-bg: #000;
    --button-bg-hover: #333;
    --tab-max-width: 410px;
    --highlight-color: #000;
    --footer-bg: #111;
    --footer-color: #969696;
    --container-padding: 40px 20px;
    --container-padding-mobile: 20px 16px;
    --footer-link-color:#da6827;
    --footer-link-hover-color:#fff;
  }

  body {
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-normal);
    color: var(--primary-color);
    background-color: var(--background-color);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }

  .background {
    position: relative;
    background: url("img/bg-desktop.jpg") no-repeat top center;
    background-size: cover;
    min-height: calc(100vh - 50px);
  }

  .container {
    max-width: 1080px;
    margin: 0 auto;
    padding: var(--container-padding);
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: relative;
  }

  .fixed-rider {
    position: fixed;
    right: calc(40% - 28vw);
    bottom: 0;
    width: 43%;
    max-height: 100vh;
    object-fit: contain;
    z-index: 1;
    pointer-events: none;
  }

  .content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    max-width: var(--tab-max-width);
  }

  .content img {
    width: 100%;
    height: auto;
    display: block;
  }

  .content img[alt="www.xplr.hu"] {
    max-width: 260px;
  }

  .content img[src*="hl.png"] {
    max-width: 500px;
  }

  h1 {
    font-size: var(--font-size-heading);
    font-weight: var(--font-weight-black);
    line-height: var(--line-height-heading);
  }

  .highlight {
    font-size: var(--font-size-highlight);
    font-weight: var(--font-weight-black);
    font-style: italic;
    color: var(--highlight-color);
    margin-top: 130px;
  }

  .content p:not(.highlight) {
    font-size: var(--font-size-base);
    line-height: var(--line-height-base);
  }

  .logos {
    display: flex;
    gap: 16px;
    flex-wrap: nowrap;
  }

  .logo-button {
    background: #e2ddda;
    padding: 10px 16px;
    box-shadow: 4px 6px 0 var(--logo-shadow);
    transition: background 0.3s ease, transform 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
  }

  .logo-button img {
    width: 100%;
    transition: transform 0.3s ease;
  }

  .logo-button:hover,
  .logo-button.active {
    background: var(--logo-hover-bg);
  }

  .logo-button:hover img {
    transform: scale(1.1);
  }

  .tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    max-width: var(--tab-max-width);
  }

  .tab-content {
    display: none;
    flex: 1 1 100%;
    padding-top: 20px;
  }

  .tab-content.active {
    display: block;
  }

  .tab-content p {
    font-weight: 600;
    margin-bottom: 1.5em;
  }

  .tab-content .button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
    background: var(--button-bg);
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    padding: 20px 24px;
    box-shadow: 6px 6px 6px var(--button-shadow);
    transition: background 0.3s ease, transform 0.2s ease;
  }

  .tab-content .button img {
    height: 14px;
    width: auto;
    transition: transform 0.2s ease;
  }

  .tab-content .button:hover {
    background: var(--button-bg-hover);
  }

  .tab-content .button:hover img {
    transform: translateX(5px);
  }

  footer {
    position: relative;
    z-index: 100;
    background: var(--footer-bg);
    color: var(--footer-color);
    padding: 15px;
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: var(--font-size-footer);
    gap:10px;
  }
  footer a:link,
  footer a:visited {
      color: var(--footer-color);
      text-decoration: none;
  }
  #footer-legal a:link,
  #footer-legal a:visited {
    color: var(--footer-link-color);
  }

  #footer-legal a:hover {
    color: var(--footer-link-hover-color);
  }

  .mobile-header {
      display: none !important;
  }

  @media (max-width: 1920px) {
    .background {
      background-size: auto;
    }
  }

  .mobile-rider-outer  {
      display: none !important;
  }
  @media (max-width: 768px) {
    .container {
      padding: 0;
    }
    .content {
      max-width: 100%;
      padding: var(--container-padding-mobile);
      text-align: center;
        align-items: center;
    }
    .rider-outer, /* MOD */
    .content img[alt="www.xplr.hu"],
    .content img[src*="hl.png"] {
      display: none  !important;
    }
    .highlight {
      margin-top: 0;
    }
    .background {
      background-image: url("img/bg-mobile.jpg") !important;
      background-size: 100%;
      background-repeat: repeat;
    }
    .mobile-header {
      display: block !important;
      width: 100%;
      height: auto;
    }

    .mobile-rider-outer {
      display: block !important;
      width: 100%;
      height: auto;
      pointer-events: none;
      z-index: 10;
    }
    
    .mobile-rider-container {
      display: block !important;
      position: relative;
      width: 100%;
      pointer-events: auto;
    }

    .mobile-overlay-wrapper {
      display: block !important;
      position: absolute;
      top: 0; left: 0;      
      width: 100%;
      height: 100%;
      pointer-events: auto;
      z-index: 99;
    } 
    h1 {
      font-size: var(--font-size-heading-mobile);
    }
    footer {
        flex-direction: column;
    }
    .content .highlight {
        font-size:24px;

    }
    .content p:not(.highlight),
    .tab-content .button  {
        font-size: 16px;
      }

  }
  
  .background.legal {
    background:url(img/bg-legal.jpg) repeat center center;
    background-size:100% auto;
  }
  .legal .content * {
    font-size:14px;
    line-height:16px;
    color:#000;
  }
  .legal .highlight{
    margin-top:0;
  }
  .legal .content {
    max-width: 100%;
  }
  .legal ul {
    padding-left:1em;
  }
  


    .rider-outer {
    position: fixed;
    left: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    pointer-events: none;
    z-index: 10;
  }

  .rider-container {
    right: calc(40% - 28vw);
    width: 43vw;
    max-height: 100vh;
    aspect-ratio: 1290 / 1603;
    position: relative;
    pointer-events: auto;
    display: block;
  }

  .fixed-rider {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    pointer-events: none;
  }

  .overlay-wrapper {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    pointer-events: auto;
    z-index: 99;
  }

  .lottie {
    position: absolute;
    width: 8%;  /* scales with wrapper */
    aspect-ratio: 1 / 1;
    pointer-events: auto;
    cursor: pointer;
    z-index: 3;
  }

  
  #lottie1 { top: 4%; left: 44%; }
  #lottie2 { top: 35%; left: 42%; }
  #lottie3 { top: 52%; left: 84%; }
  #lottie4 { top: 49%; left: 7%; }
  #lottie5 { top: 59%; left: 15%; }
  #lottie6 { top: 76%; left: 36%; }

  #lottie1m { top: 2%; left: 69%; }
  #lottie2m { top: 29%; left: 62%; }
  #lottie3m { top: 49%; left: 86%; }
  #lottie4m { top: 36%; left: 37%; }
  #lottie5m { top: 46%; left: 41%; }
  #lottie6m { top: 64%; left: 52%; }