/**
 * Lucki MC theme: Minecraft text + safe icons + clean blue UI.
 */
@font-face {
  font-family: 'Minecraft';
  src: url('/assets/fonts/PressStart2P.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --lk-bg: #070b12;
  --lk-panel: #121a26;
  --lk-panel-2: #182233;
  --lk-line: rgba(123, 176, 255, 0.16);
  --lk-line-strong: rgba(59, 158, 255, 0.45);
  --lk-blue: #3b9eff;
  --lk-blue-bright: #6bb6ff;
  --lk-blue-soft: #dcebff;
  --lk-discord: #5865f2;
  --lk-discord-soft: #7289da;
  --lk-wipe: #2f9bff;
  --lk-white: #f5f9ff;
  --lk-muted: #9db0c7;
  --lk-radius: 18px;
  --lk-font: 'Minecraft', monospace;
  --lk-shadow: 0 14px 40px rgba(0, 0, 0, 0.32);
  --lk-max: 1100px;
  --lk-nav-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
}

html, body.lk-body {
  margin: 0;
  min-height: 100%;
  font-family: var(--lk-font);
  font-weight: 400;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: geometricPrecision;
  color: var(--lk-white);
  letter-spacing: 0.02em;
  line-height: 1.45;
  background:
    radial-gradient(ellipse 70% 45% at 12% -8%, rgba(59, 158, 255, 0.2), transparent 55%),
    radial-gradient(ellipse 50% 35% at 95% 10%, rgba(88, 101, 242, 0.12), transparent 50%),
    var(--lk-bg);
}

img, svg, video, canvas {
  max-width: 100%;
  height: auto;
}

img {
  display: block;
}

button, input, select, textarea, a, p, h1, h2, h3, h4, span, label, td, th, li {
  font-family: inherit;
  font-weight: 400;
  font-synthesis: none;
}

/* Icons must never inherit Minecraft (breaks FA glyphs into ?) */
.fa,
.fas,
.far,
.fa-solid,
.fa-regular,
i.fas,
i.far,
i.fa-solid,
i.fa-regular {
  font-family: "Font Awesome 6 Free" !important;
  font-weight: 900 !important;
  font-style: normal !important;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: auto;
  letter-spacing: normal;
  line-height: 1;
}

.fa::before,
.fas::before,
.far::before,
.fa-solid::before,
.fa-regular::before {
  font-family: "Font Awesome 6 Free" !important;
  font-weight: 900 !important;
}

.fab,
.fa-brands,
i.fab,
i.fa-brands {
  font-family: "Font Awesome 6 Brands" !important;
  font-weight: 400 !important;
  font-style: normal !important;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: auto;
  letter-spacing: normal;
  line-height: 1;
}

.fab::before,
.fa-brands::before,
i.fab::before,
i.fa-brands::before {
  font-family: "Font Awesome 6 Brands" !important;
  font-weight: 400 !important;
}

a { color: var(--lk-blue-bright); text-decoration: none; }
a:hover { color: #fff; }

.lk-shell {
  width: min(var(--lk-max), calc(100% - 1.25rem));
  margin: 0 auto;
}

.lk-wipe {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  background: linear-gradient(180deg, #5ec0ff 0%, #2f9bff 42%, #1a78e0 100%);
  transform: translate3d(0, -105%, 0);
  opacity: 0;
  will-change: transform;
}

.lk-wipe.is-idle {
  transform: translate3d(0, -105%, 0);
  opacity: 0;
}

.lk-wipe.is-held {
  transform: translate3d(0, 0, 0);
  opacity: 1;
}

.lk-wipe.is-covering {
  opacity: 1;
  animation: lkWipeDown 0.48s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.lk-wipe.is-revealing {
  opacity: 1;
  animation: lkWipeUp 0.55s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes lkWipeDown {
  from { transform: translate3d(0, -105%, 0); }
  to { transform: translate3d(0, 0, 0); }
}

@keyframes lkWipeUp {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(0, -105%, 0); }
}

body.lk-body:not(.lk-ready) .lk-wipe.is-held {
  opacity: 1;
}

.lk-nav {
  width: min(var(--lk-max), calc(100% - 1.25rem));
  min-height: var(--lk-nav-h);
  margin: 0.75rem auto 0;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.75rem;
  padding: 0.55rem 0.85rem;
  border-radius: 16px;
  background: rgba(14, 20, 30, 0.92);
  border: 1px solid var(--lk-line);
  backdrop-filter: blur(14px);
  position: sticky;
  top: 0.55rem;
  z-index: 50;
}

.lk-nav__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: inherit;
  font-size: 0.68rem;
  white-space: nowrap;
}

.lk-nav__brand img {
  width: 30px;
  height: 30px;
  object-fit: contain;
  border-radius: 8px;
  flex: 0 0 auto;
}

.lk-nav__links {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.15rem;
  align-items: center;
  justify-content: center;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.lk-nav__links::-webkit-scrollbar { display: none; }

.lk-nav__links a {
  color: var(--lk-muted);
  font-size: 0.58rem;
  padding: 0.5rem 0.62rem;
  border-radius: 999px;
  white-space: nowrap;
  line-height: 1.35;
  transition: background 0.15s ease, color 0.15s ease;
}

.lk-nav__links a:hover,
.lk-nav__links a.is-active {
  color: #fff;
  background: rgba(59, 158, 255, 0.16);
}

.lk-nav__play {
  background: var(--lk-blue) !important;
  color: #fff !important;
  letter-spacing: 0.06em;
  padding: 0.5rem 0.9rem !important;
  box-shadow: 0 6px 18px rgba(29, 127, 224, 0.28);
  animation: lkPlayPulse 2.4s ease-in-out infinite;
}

.lk-nav__play:hover {
  filter: brightness(1.06);
  color: #fff !important;
}

@keyframes lkPlayPulse {
  0%, 100% { box-shadow: 0 6px 18px rgba(29, 127, 224, 0.28); }
  50% { box-shadow: 0 6px 18px rgba(29, 127, 224, 0.28), 0 0 0 8px rgba(59, 158, 255, 0); }
}

.lk-nav__ip {
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border-radius: 999px;
  padding: 0.48rem 0.72rem;
  background: rgba(255, 255, 255, 0.06);
  color: var(--lk-white);
  border: 1px solid var(--lk-line);
  font: inherit;
  font-size: 0.52rem;
  letter-spacing: 0.04em;
  white-space: nowrap;
  justify-self: end;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.lk-nav__ip i {
  font-size: 0.75rem;
}

.lk-nav__ip:hover { border-color: var(--lk-line-strong); color: #fff; }

.lk-panel {
  background: rgba(18, 26, 38, 0.94);
  border: 1px solid var(--lk-line);
  border-radius: var(--lk-radius);
  box-shadow: var(--lk-shadow);
}

.lk-title {
  margin: 0;
  font-size: clamp(1rem, 2.8vw, 1.35rem);
  line-height: 1.35;
  letter-spacing: 0.03em;
}

.lk-lead {
  margin: 0.65rem 0 0;
  color: var(--lk-muted);
  line-height: 1.6;
  max-width: 42rem;
  font-size: 0.62rem;
}

.lk-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  border-radius: 12px;
  padding: 0.75rem 1rem;
  border: 1px solid transparent;
  font: inherit;
  font-size: 0.62rem;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.12s ease, filter 0.12s ease, background 0.12s ease;
}

.lk-btn:active { transform: translateY(1px); }

.lk-btn--primary {
  background: var(--lk-blue);
  color: #fff;
  box-shadow: 0 8px 22px rgba(29, 127, 224, 0.3);
}

.lk-btn--primary:hover { filter: brightness(1.06); color: #fff; }

.lk-btn--ghost {
  background: transparent;
  border-color: var(--lk-line-strong);
  color: var(--lk-white);
}

.lk-btn--ghost:hover {
  background: rgba(59, 158, 255, 0.12);
  color: #fff;
}

@media (max-width: 760px) {
  .lk-nav {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "brand ip"
      "links links";
    row-gap: 0.45rem;
    padding: 0.65rem 0.7rem;
  }
  .lk-nav__brand { grid-area: brand; font-size: 0.62rem; }
  .lk-nav__ip { grid-area: ip; font-size: 0.48rem; padding: 0.42rem 0.55rem; }
  .lk-nav__links {
    grid-area: links;
    justify-content: flex-start;
    gap: 0.1rem;
  }
  .lk-nav__links a {
    font-size: 0.52rem;
    padding: 0.45rem 0.55rem;
  }
}
