/*
  Hyper Bunny Music — simple responsive layout

  The two images are intentionally independent:
    .signature controls only the signature image.
    .ears controls only the ears image.

  Adjust those classes directly; there are no shared image wrappers, masks,
  transforms or size calculations between them.
*/

:root {
  color-scheme: dark;
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #000;
  color: #f4f4f4;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  min-width: 320px;
  margin: 0;
  overflow: hidden;
  background: #000;
}

body {
  min-height: 100vh;
  min-height: 100svh;
}

a {
  -webkit-tap-highlight-color: transparent;
}

/* Full-screen black-glass glitter animation. */
.glitter {
  position: fixed;
  inset: 0;
  z-index: 2;
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
  mix-blend-mode: screen;
}

/* Main one-screen layout. */
.page {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  height: 100vh;
  height: 100svh;
  min-height: 0;
  padding: clamp(12px, 3vh, 28px) clamp(14px, 4vw, 40px) clamp(8px, 1.8vh, 18px);
}

/* -------------------------------------------------------------------------
   SIGNATURE IMAGE
   Resize: change width.
   Space below: change margin-bottom.
   ------------------------------------------------------------------------- */
.signature {
  display: block;
  flex: 0 0 auto;
  width: clamp(72px, 7vw, 110px);
  height: auto;
  margin: 0 0 clamp(4px, 1vh, 10px);
  opacity: 0.94;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}

/* -------------------------------------------------------------------------
   EARS IMAGE
   Resize: change width.
   Space below: change margin-bottom.

   The transparent PNG is rendered directly. No mask, wrapper, shadow,
   transform, crop or overlay is applied.
   ------------------------------------------------------------------------- */
.ears {
  display: block;
  flex: 0 0 auto;
  width: min(40vw, 44svh, 440px);
  max-width: 82vw;
  height: auto;
  margin: 0 0 clamp(8px, 1.8vh, 18px);
  user-select: none;
  -webkit-user-drag: none;
}

/* -------------------------------------------------------------------------
   CHANNEL LINKS
   Text size: change font-size in .channels a.
   Link spacing: change gap in .channels.
   ------------------------------------------------------------------------- */
.channels {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  width: min(100%, 900px);
  margin: 0;
  padding: 0;
  gap: clamp(22px, 3.4vw, 52px);
  text-align: center;
}

.channels a {
  color: #a7a7ae;
  font-size: clamp(12px, 0.9vw, 14px);
  font-weight: 500;
  letter-spacing: 0.15em;
  line-height: 1.5;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
  transition: color 120ms ease;
}

.channels a:hover,
.channels a:focus-visible {
  color: #fff;
}

.channels a:focus-visible {
  outline: 1px solid rgba(255, 255, 255, 0.8);
  outline-offset: 5px;
}

/* Footer stays at the bottom of the remaining viewport. */
.page-footer {
  flex: 0 0 auto;
  width: 100%;
  margin-top: auto;
  padding-top: clamp(8px, 1.8vh, 18px);
  color: #66686e;
  text-align: center;
}

.page-footer p {
  margin: 0;
  font-size: clamp(10px, 0.72vw, 12px);
  font-weight: 400;
  letter-spacing: 0.06em;
  line-height: 1.4;
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* Portrait mobile: vertical links and narrower independent image sizes. */
@media (max-width: 640px) and (orientation: portrait) {
  .page {
    padding: clamp(12px, 3vh, 24px) 14px clamp(8px, 1.5vh, 14px);
  }

  .signature {
    width: clamp(68px, 20vw, 90px);
    margin-bottom: clamp(5px, 1vh, 10px);
  }

  .ears {
    width: min(78vw, 42svh, 300px);
    max-width: 78vw;
    margin-bottom: clamp(8px, 1.6vh, 14px);
  }

  .channels {
    flex-direction: column;
    width: min(100%, 280px);
    gap: clamp(9px, 1.7vh, 14px);
  }

  .channels a {
    font-size: clamp(12px, 3vw, 13px);
  }
}

/* Short landscape: reduce each component independently so links stay visible. */
@media (orientation: landscape) and (max-height: 500px) {
  .page {
    padding: 6px clamp(12px, 3vw, 24px) 5px;
  }

  .signature {
    width: clamp(44px, 7vw, 58px);
    margin-bottom: 2px;
  }

  .ears {
    width: min(34vw, 48svh, 240px);
    max-width: 34vw;
    margin-bottom: 4px;
  }

  .channels {
    gap: clamp(14px, 3vw, 28px);
  }

  .channels a {
    font-size: clamp(10px, 1.6vw, 12px);
  }

  .page-footer {
    padding-top: 3px;
  }

  .page-footer p {
    font-size: 9px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .channels a {
    transition: none;
  }
}
