﻿@charset 'UTF-8';

:root {
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
}

body {
  min-width: 320px;
  background: #111214;
  background: oklch(0.17 0.004 265);
  font-family: Arial, 'Noto Sans TC', 'Microsoft JhengHei', sans-serif;
}

#avaFooter {
  width: 100%;
  padding: 29px 24px 37px;
  background: #111214;
  background: oklch(0.17 0.004 265);
  color: #d3d3d5;
  color: oklch(0.86 0.004 265);
}

#avaFooter .footer-container {
  width: min(100%, 822px);
  margin-inline: auto;
}

#avaFooter .footer-brands {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 43px;
  min-height: 43px;
  margin-bottom: 24px;
  padding-right: 54px;
}

#avaFooter .footer-brands img,
#avaFooter .footer-rating img {
  display: block;
  height: auto;
  object-fit: contain;
}

#avaFooter .footer-brands__happytuk {
  width: 212px;
}

#avaFooter .footer-brands__neowiz {
  width: 209px;
}

#avaFooter .footer-info {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  align-items: center;
  column-gap: 24px;
}

#avaFooter p {
  margin: 0;
}

#avaFooter .footer-copyright {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.015em;
  color: #c8c8ca;
  color: oklch(0.82 0.004 265);
}

#avaFooter .footer-rating {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

#avaFooter .footer-rating img {
  flex: 0 0 51px;
  width: 51px;
  aspect-ratio: 1;
}

#avaFooter .footer-rating p {
  padding-top: 1px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: -0.025em;
  color: #9d9da0;
  color: oklch(0.66 0.004 265);
}

@media (max-width: 767px) {
  #avaFooter {
    padding: 30px clamp(18px, 6vw, 32px) 34px;
  }

  #avaFooter .footer-brands {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
    gap: clamp(20px, 7vw, 36px);
    min-height: auto;
    margin-bottom: 28px;
    padding-right: 0;
  }

  #avaFooter .footer-brands__happytuk {
    width: 100%;
    max-width: 190px;
    justify-self: end;
  }

  #avaFooter .footer-brands__neowiz {
    width: 100%;
    max-width: 170px;
    justify-self: start;
  }

  #avaFooter .footer-info {
    grid-template-columns: 1fr;
    row-gap: 24px;
  }

  #avaFooter .footer-copyright {
    text-align: center;
  }

  #avaFooter .footer-rating {
    justify-content: center;
  }

  #avaFooter .footer-rating p {
    max-width: 48ch;
  }
}

@media (max-width: 420px) {
  #avaFooter .footer-brands {
    gap: clamp(14px, 5vw, 18px);
  }

  #avaFooter .footer-copyright {
    font-size: 12px;
  }

  #avaFooter .footer-rating {
    gap: 12px;
  }

  #avaFooter .footer-rating img {
    flex-basis: 45px;
    width: 45px;
  }

  #avaFooter .footer-rating p {
    font-size: 11px;
    line-height: 1.55;
  }
}

/* PC: keep every footer item in the compact single-row layout. */
@media (min-width: 1200px) {
  #avaFooter {
    min-height: 59px;
    padding: 4px 24px;
    background: #000000;
    background: oklch(0 0 0);
  }

  #avaFooter .footer-container {
    display: grid;
    grid-template-columns: 471px 235px minmax(0, 1fr);
    align-items: center;
    column-gap: 7px;
    width: min(100%, 1152px);
    transform: translateY(-24px);
  }

  #avaFooter .footer-brands {
    justify-content: flex-start;
    gap: 6px;
    min-height: 0;
    margin: 0;
    padding: 0;
  }

  #avaFooter .footer-brands__happytuk {
    width: 256px;
  }

  #avaFooter .footer-brands__neowiz {
    width: 209px;
  }

  #avaFooter .footer-info {
    display: contents;
  }

  #avaFooter .footer-copyright {
    font-size: 11px;
    font-weight: 400;
    line-height: 18px;
    letter-spacing: 0;
    white-space: nowrap;
    color: #ffffff;
    color: oklch(1 0 0);
  }

  #avaFooter .footer-rating {
    gap: 6px;
  }

  #avaFooter .footer-rating img {
    flex-basis: 51px;
    width: 51px;
  }

  #avaFooter .footer-rating p {
    padding-top: 0;
    font-size: 11px;
    font-weight: 400;
    line-height: 18px;
    letter-spacing: 0;
    white-space: nowrap;
    color: #ffffff;
    color: oklch(1 0 0);
  }
}



