@import url("https://fonts.cdnfonts.com/css/minecraft-4");
@import url("https://fonts.cdnfonts.com/css/pixelcraft-2");

body {
  /* background-color: rgb(8, 8, 8); */
  background-image: radial-gradient(circle at center, rgba(255, 140, 0, 0.2) 0%, transparent 70%), url("assets/bg.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  margin: 0;
  padding: 0;
  color: white;
  font-family: "PixelCraft", sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  
  /* Hide scrollbar for Firefox */
  scrollbar-width: none;
  /* Hide scrollbar for IE, Edge */
  -ms-overflow-style: none;
}

/* Hide scrollbar for Chrome, Safari and Opera */
::-webkit-scrollbar {
  display: none;
}

.black {
  background-color: black;
  width: 100dvw;
  height: 100dvh;
  position: fixed;
  z-index: 500;
  pointer-events: none;
}

.black-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.join-label {
  display: flex;
  flex-direction: column;
  line-height: 20px;
  transform: translateY(-20px);
}

.playercount {
  font-family: "PixelCraft", sans-serif;
  font-size: 0.4em;
}

.center {
  min-height: 100dvh;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
  box-sizing: border-box;
}

.inner {
  width: 100%;
  max-width: 1200px;
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 16px;
  margin-bottom: 20px;
}

.logo-link {
  display: inline-flex;
  line-height: 0;
}

.logo {
  width: clamp(200px, 40vw, 400px);
  height: auto;
  transition: transform 0.2s ease;
}

.logo-link:hover .logo {
  transform: scale(1.03);
}

.copyable {
  cursor: pointer;
  transition: outline-color 0.15s ease, color 0.15s ease;
}

.copyable:hover,
.copyable:focus-visible,
.copyable.copied {
  outline-color: var(--green);
  color: var(--green);
  outline-offset: 0;
}

.copy-toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%) translateY(20px);
  background: var(--green);
  color: #06210f;
  font-family: "Inter", sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  padding: 12px 26px;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  opacity: 0;
  pointer-events: none;
  z-index: 1000;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.copy-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.text-box {
  padding: 15px 15px 30px 15px;
  background-color: black;
  line-height: 0.5;
  text-wrap: balance;
  outline: 2px solid white;
  font-size: clamp(0.9em, 2.5vw, 1.5em);
  white-space: nowrap;
}

.container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  width: 100%;
  gap: 20px;
}

.discord.block {
  --bg-image: url("assets/discord.png");
}
.join.block {
  --bg-image: url("assets/join.png");
}
.store.block {
  --bg-image: url("assets/store.png");
}

.block {
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0)),
    var(--bg-image);
  background-size: cover;
  background-position: center;
  display: flex;
  padding: clamp(16px, 3vw, 40px);
  align-items: flex-end;
  width: 100%;
  aspect-ratio: 1 / 1;
  box-sizing: border-box;
  font-family: "Minecraft", sans-serif;
  font-size: clamp(1em, 2.5vw, 2.8em);
  color: white;
  transition: 300ms cubic-bezier(0.08, 0.82, 0.17, 1);
  user-select: none;
}

.block:hover {
  opacity: 0.7;
  cursor: pointer;
}

a {
  text-decoration: none;
  color: inherit;
}

.ip-port {
  gap: 15px;
  display: flex;
}

@media (max-width: 700px) {
  .header-row {
    flex-direction: column;
  }

  .ip-port {
    gap: 15px;
    display: flex;
    flex-direction: row;
  }

  .logo {
    width: clamp(180px, 85vw, 900px);
  }

  .text-box {
    font-size: 0.9em;
    padding: 10px 10px 20px 10px;
  }

  .container {
    grid-template-columns: 1fr;
  }

  .block {
    aspect-ratio: 2 / 1;
    font-size: clamp(1.2em, 6vw, 2em);
    padding: 30px;
  }
}

:root {
  --bg-dark: transparent;
  --bg-card: #15151c;
  --text: #e5e5e5;
  --text-muted: #a3a3a3;
  --border: #2a2a36;
  --green: #4ade80;
}

.team-section {
  margin-top: 60px;
  width: 100%;
}

.team-heading {
  font-family: "Minecraft", sans-serif;
  font-size: clamp(1.7rem, 4vw, 2.6rem);
  letter-spacing: .04em;
  line-height: 1.1;
  margin-bottom: 40px;
  text-transform: uppercase;
  text-shadow: 3px 3px 0 rgba(0, 0, 0, .45);
}

.team-heading .green {
  color: #ff9d00;
  text-shadow: 3px 3px 0 rgba(0, 0, 0, .45);
}

.team-showcase {
  align-items: flex-start;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  display: flex;
  min-height: 420px;
  overflow: hidden;
  padding: 44px 48px 44px 56px;
  position: relative;
  box-sizing: border-box;
}

.team-info {
  flex: 1;
  max-width: 520px;
  padding-top: 8px;
  position: relative;
  z-index: 1;
  will-change: transform, opacity;
}

.team-name-row {
  align-items: center;
  display: flex;
  gap: 14px;
  margin-bottom: 20px;
}

.team-name {
  color: #fff;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1;
  margin: 0;
}

.team-role {
  align-self: center;
  border: 2px solid rgba(0,0,0,.45);
  clip-path: polygon(3px 0,calc(100% - 3px) 0,calc(100% - 3px) 3px,100% 3px,100% calc(100% - 3px),calc(100% - 3px) calc(100% - 3px),calc(100% - 3px) 100%,3px 100%,3px calc(100% - 3px),0 calc(100% - 3px),0 3px,3px 3px);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  filter: drop-shadow(2px 2px 0 rgba(0,0,0,.45));
  font-family: "Inter", sans-serif;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .14em;
  line-height: 1;
  padding: 8px 11px 8px 14px;
  text-transform: uppercase;
  white-space: nowrap;
  -webkit-font-smoothing: antialiased;
  /* nudge badge down to sit at the visual center of the name text */
  margin-top: 2px;
}

.team-desc {
  color: var(--text-muted);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.7;
  max-width: 460px;
  -webkit-font-smoothing: antialiased;
}

.team-skin {
  align-items: center;
  display: flex;
  justify-content: center;
  position: absolute;
  right: 60px;
  top: 58%;
  transform: translateY(-36%);
  z-index: 1;
}

.team-skin img {
  filter: drop-shadow(0 10px 40px rgba(0,0,0,.6));
  height: 616px;
  pointer-events: none;
}

.team-skin .glitch-wrap {
  position: relative;
  will-change: transform, opacity;
}

.team-skin .glitch-base {
  position: relative;
  z-index: 2;
}

.team-skin .glitch-layer {
  left: 0;
  mix-blend-mode: screen;
  opacity: .8;
  pointer-events: none;
  position: absolute;
  top: 0;
  z-index: 1;
}

.team-skin .glitch-r {
  animation: glitchR 3s ease-in-out infinite alternate;
}

.team-skin .glitch-b {
  animation: glitchB 3s ease-in-out infinite alternate-reverse;
}

@keyframes glitchR {
  0% { filter: hue-rotate(-30deg) saturate(3) brightness(1.3); opacity: .7; transform: translate(4px, 2px); }
  25% { opacity: .8; transform: translate(7px, -2px); }
  50% { filter: hue-rotate(-40deg) saturate(3.5) brightness(1.4); opacity: .6; transform: translate(3px, 4px); }
  75% { opacity: .75; transform: translate(8px, 0); }
  100% { filter: hue-rotate(-30deg) saturate(3) brightness(1.3); opacity: .7; transform: translate(4px, -2px); }
}

@keyframes glitchB {
  0% { filter: hue-rotate(150deg) saturate(3) brightness(1.3); opacity: .7; transform: translate(-4px, -2px); }
  25% { opacity: .8; transform: translate(-7px, 2px); }
  50% { filter: hue-rotate(160deg) saturate(3.5) brightness(1.4); opacity: .6; transform: translate(-3px, -4px); }
  75% { opacity: .75; transform: translate(-8px, 0); }
  100% { filter: hue-rotate(150deg) saturate(3) brightness(1.3); opacity: .7; transform: translate(-4px, 2px); }
}

.team-selector {
  gap: 12px;
  margin-top: 24px;
  align-items: center;
  display: flex;
}

.team-arrow {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-muted);
  cursor: pointer;
  font-family: "Inter", sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1;
  height: 36px;
  justify-content: center;
  align-items: center;
  display: flex;
  transition: border-color .15s, color .15s, background .15s;
  width: 36px;
}

.team-arrow:hover {
  border-color: #ff9d00;
  color: #ff9d00;
}

.team-heads {
  display: flex;
  gap: 6px;
}

.team-head-btn {
  background: var(--bg-card);
  border: 2px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  height: 44px;
  overflow: hidden;
  padding: 3px;
  transition: all .15s;
  width: 44px;
}

.team-head-btn img {
  border-radius: 6px;
  height: 100%;
  image-rendering: pixelated;
  pointer-events: auto;
  width: 100%;
}

.team-head-btn:hover {
  border-color: var(--text-muted);
}

.team-head-btn.active {
  border-color: #ff9d00;
}

@media (max-width: 900px) {
  .team-showcase {
    flex-direction: column;
    min-height: auto;
    padding: 36px 28px 0;
  }
  .team-info {
    text-align: center;
    max-width: 100%;
  }
  .team-name-row {
    justify-content: center;
  }
  .team-skin {
    height: 240px;
    margin-top: 24px;
    position: relative;
    right: auto;
    top: auto;
    transform: none;
    width: 200px;
    margin-left: auto;
    margin-right: auto;
  }
  .team-skin img {
    height: 220px;
  }
  .team-selector {
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }

  .team-skin .glitch-layer {
    display: none;
  }
}
