.ball-footer {
  --ink: #16324f;
  --muted: #3d5368;
  --footer-sky-top: #ffe08a;
  --footer-sky-mid: #fff1c4;
  --footer-sky-bottom: #fff9ea;
  --font-body: "Source Sans 3", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  display: flex;
  flex-direction: column;
  width: 100%;
  margin: 0;
  overflow: hidden;
  color: #000000;
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  background:
    linear-gradient(
      180deg,
      var(--footer-sky-top) 0%,
      var(--footer-sky-mid) 48%,
      var(--footer-sky-bottom) 100%
    );
}

.ball-footer,
.ball-footer * {
  box-sizing: border-box;
}

.ball-footer p {
  margin: 0;
}

.footer-info {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.8fr) minmax(0, 0.95fr) minmax(0, 1fr);
  align-items: stretch;
  column-gap: clamp(28px, 3vw, 56px);
  padding: 40px 40px 4px;
}

.footer-brand,
.footer-nav,
.footer-contact {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
  background: transparent;
}

.footer-brand {
  gap: 16px;
}

.footer-logo {
  display: block;
  width: 168px;
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

.footer-nav,
.footer-contact {
  position: relative;
  gap: 14px;
  padding-left: 28px;
}

.footer-nav::before,
.footer-contact::before {
  position: absolute;
  top: 10%;
  bottom: 10%;
  left: 0;
  width: 1px;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(120, 78, 0, 0) 0%,
    rgba(120, 78, 0, 0.16) 18%,
    rgba(120, 78, 0, 0.16) 82%,
    rgba(120, 78, 0, 0) 100%
  );
  content: "";
}

.footer-nav-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-nav a,
.footer-contact-list a {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.footer-item-icon,
.footer-contact-icon {
  display: block;
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  margin-top: 0.12em;
}

.footer-nav a {
  color: var(--ink);
  font-size: 0.98rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.3;
  text-decoration: none;
}

.footer-nav a:hover {
  color: #0f2740;
}

.footer-nav-title,
.footer-contact-title {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: clamp(1.1rem, 1.55vw, 1.28rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.footer-text {
  max-width: 36ch;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.55;
}

.footer-social {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  color: var(--ink);
  border-radius: 8px;
  transition: background-color 0.2s ease;
}

.footer-social-link svg {
  width: 22px;
  height: 22px;
}

.footer-social-link:hover {
  color: #0f2740;
  background: rgba(255, 194, 32, 0.28);
}

.footer-contact-list {
  display: grid;
  gap: 10px;
  font-style: normal;
}

.footer-contact-list p {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

.footer-contact-list a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  cursor: pointer;
}

.footer-contact-list a:hover {
  border-bottom-color: currentColor;
}

.footer-play {
  position: relative;
  width: 100%;
  height: 150px;
  overflow: hidden;
  background: transparent;
  touch-action: none;
  user-select: none;
  cursor: pointer;
}

.footer-play::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  z-index: 2;
  height: 1px;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    rgba(120, 78, 0, 0) 0%,
    rgba(120, 78, 0, 0.16) 8%,
    rgba(120, 78, 0, 0.16) 92%,
    rgba(120, 78, 0, 0) 100%
  );
  content: "";
}

.footer-play canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.footer-legal {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  padding: 14px 40px 16px;
  background: transparent;
  font-size: 0.78rem;
  line-height: 1.45;
  border-top: 1px solid rgba(120, 78, 0, 0.22);
}

.footer-legal p {
  margin: 0;
}

.footer-legal p:last-child {
  margin-left: auto;
}

.ball-footer,
.ball-footer *,
.ball-footer p,
.ball-footer a,
.ball-footer a:hover {
  color: #000000;
}

.footer-contact-icon {
  width: 18px;
  height: 18px;
  margin-top: 0.08em;
}

.footer-hours {
  padding-left: 26px;
}

@media (max-width: 900px) {
  .footer-info {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    column-gap: 0;
    row-gap: 0;
    padding: 8px 0 0;
  }

  .footer-brand,
  .footer-contact {
    grid-column: 1 / -1;
    width: 100%;
    padding: 20px 22px 18px;
  }

  .footer-nav {
    width: auto;
    min-width: 0;
    padding: 20px 12px 18px 22px;
  }

  .footer-nav + .footer-nav {
    padding: 20px 22px 18px 16px;
  }

  .footer-nav-title {
    white-space: nowrap;
  }

  .footer-nav-list {
    gap: 10px;
  }

  .footer-nav a {
    font-size: 0.92rem;
    font-weight: 600;
  }

  .footer-contact-list {
    gap: 14px;
  }

  .footer-nav:first-of-type::before,
  .footer-contact::before {
    top: 0;
    right: auto;
    bottom: auto;
    left: 22px;
    width: calc(200% - 44px);
    height: 1px;
    background: linear-gradient(
      90deg,
      rgba(120, 78, 0, 0) 0%,
      rgba(120, 78, 0, 0.16) 8%,
      rgba(120, 78, 0, 0.16) 92%,
      rgba(120, 78, 0, 0) 100%
    );
  }

  .footer-contact::before {
    width: calc(100% - 44px);
  }

  .footer-nav + .footer-nav::before {
    top: 14%;
    right: auto;
    bottom: 14%;
    left: 0;
    width: 1px;
    height: auto;
    background: linear-gradient(
      180deg,
      rgba(120, 78, 0, 0) 0%,
      rgba(120, 78, 0, 0.16) 18%,
      rgba(120, 78, 0, 0.16) 82%,
      rgba(120, 78, 0, 0) 100%
    );
  }

  .footer-play::before {
    right: 22px;
    left: 22px;
    background: rgba(22, 50, 79, 0.18);
  }

  .footer-legal {
    flex-direction: column;
    align-items: center;
    padding: 14px 22px 18px;
    text-align: center;
    gap: 2px;
  }

  .footer-legal p:last-child {
    margin-left: 0;
  }

  .footer-legal-rest {
    display: block;
  }
}

@media (max-width: 640px) {
  .footer-info {
    padding: 4px 0 0;
  }

  .footer-brand,
  .footer-contact {
    padding: 18px 20px 16px;
  }

  .footer-nav {
    padding: 18px 10px 16px 20px;
  }

  .footer-nav + .footer-nav {
    padding: 18px 20px 16px 14px;
  }

  .footer-nav:first-of-type::before {
    left: 20px;
    width: calc(200% - 40px);
  }

  .footer-contact::before {
    left: 20px;
    width: calc(100% - 40px);
  }

  .footer-logo {
    width: 158px;
  }
}
