@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/fonts/InterVariable.woff2') format('woff2');
}

@font-face {
  font-family: 'Inter';
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  src: url('/fonts/InterVariable-Italic.woff2') format('woff2');
}

/* ==============================
   GLOBAL THEME
============================== */
:root {
  /* Base Colors */
  --color-bg: black;
  --color-surface: rgba(0, 0, 0, 0.40);
  --color-surface-mid: rgba(0, 0, 0, 0.20);
  --color-surface-dark: rgba(0, 0, 0, 0.80);
  --color-surface-grey: rgba(255, 255, 255, 0.15); 
  --color-border: rgba(75, 70, 1, 0.404);

  /* Text Colors */
  --color-text: rgba(255, 255, 255, 0.85);
  --color-text-muted: rgba(255, 255, 255, 0.55);
  --color-text-faint: rgba(255, 255, 255, 0.3);

  /* Accent */
  --color-cyan: #00ff84;
  --color-yellow: #ffbe20;

  /* Shadows */
  --shadow-elevate: 0 2px 8px rgba(0, 0, 0, 0.3);

  /* Transitions */
  --transition: all 0.25s ease;

  /* Typography scale */
  --font-xs: 12px;
  --font-sm: 14px;
  --font-base: 16px;
  --font-lg: 18px;
  --font-xl: 24px;
}

/* ==============================
   BASE ELEMENTS
============================== */
html, body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
  scrollbar-width: thin;
  scrollbar-color: rgba(75,70,1,0.5) rgba(0,0,0,0.05);
}

body {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: var(--font-base);
  color: var(--color-text);
  background-color: var(--color-bg);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  overflow-x: hidden;
  font-display: swap;
  margin-top: 80px;
}

.main-body{
  max-width: 1200px;  
  margin: 0 auto 50px auto;
}

.title-box{
  display: flex;
  flex-direction: column;
  padding: 10px;
  text-align: center;
  justify-content: center;
  margin-bottom: 15px;
}

.title-box h1 {
  margin-bottom: 5px;  
}

.title-box p {
    margin: 0;
    line-height: 1.5;        
}

.toast {
  position: fixed;
  top: 80px;
  left: 50%;
  transform: translate(-50%, -30px);
  background: #333;
  color: #fff;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 14px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 9999;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

img, video, iframe {
  display: block;
  min-height: 1px;
  aspect-ratio: attr(width) / attr(height);
}

.separator {
  border: none;
  display: block;
  height: 1px;       
  background: var(--color-cyan);
  margin: 40px auto;
  width: 100%;   
}

/* ==============================
   TYPOGRAPHY
============================== */
h1, h2, h3, h4, h5, h6 {
  color: #fff;
  font-weight: 700;
  line-height: 1.2;
}

h1 { font-size: var(--font-xl); }
h2 { font-size: var(--font-lg); }
h3 { font-size: var(--font-base); }

p {
  font-size: var(--font-sm);
  color: var(--color-text-muted);
  line-height: 1.6;
}

.yellow-text{
  color: var(--color-yellow);
}

.cyan-text{
  color: var(--color-cyan);
}

label {
  font-size: var(--font-xs);
  color: var(--color-text-muted)
}

a, button, li {
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  transition: var(--transition);
}

a:hover, button:hover {
  color: var(--color-cyan);
}


/* ==============================
   HEADER / NAVBAR
============================== */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 2000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 5%;
  background-color: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  box-shadow: 0 1px 3px rgba(255, 230, 0, 0.2);
}
.logo {
  width: 40px;
  cursor: pointer;
}
.nav_links {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav_links li a {
  display: block;
  padding: 0.8em 1.2rem;
  text-decoration: none;
  color: inherit;
  transition: color 0.3s ease;
}
.nav_links li a:hover,
.nav_links li a:focus {
  color: var(--color-cyan);
}

/* ==============================
   MOBILE NAV
============================== */
.hamburger-menu {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 20px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
}
.hamburger-menu .bar {
  height: 3px;
  border-radius: 5px;
  background-color: var(--color-text);
  transition: transform 0.3s ease, opacity 0.3s ease, background-color 0.3s ease;
}
.hamburger-menu.active .bar:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
  background-color: var(--color-cyan);
}
.hamburger-menu.active .bar:nth-child(2) {
  opacity: 0;
}
.hamburger-menu.active .bar:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
  background-color: var(--color-cyan);
}
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  z-index: 999;
}
.overlay.active {
  opacity: 1;
  visibility: visible;
}

/* ==============================
   SUPPORT BAR
============================== */
.support-bar {
  width: 100%;
  background-color: var(--color-cyan);
  color: var(--color-bg);
  font-weight: 600;
  font-size: var(--font-sm);
  padding: 8px 5%;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4em;
  cursor: pointer;
  box-shadow: var(--shadow-elevate);
}

.support-bar:hover {
  color: black;
}

/* ==============================
   FOOTER
============================== */
footer {
  background-color: var(--color-bg);
  color: var(--color-text);
  padding: 40px 5%;
  text-align: center;
  margin-top: auto;
  box-shadow: 0 -1px 3px rgba(255, 230, 0, 0.2);
}

.footer-container {
  max-width: 1400px;
  margin: auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
}

.footer-container p {
  font-size: 13px;
  color: var(--color-text-muted);
}

.footer-logo img {
  width: 60px;
  margin-bottom: 10px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 20px;
}

.footer-links a {
  color: var(--color-text-muted);
  text-decoration: none;
  font-size: 13px;
  transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--color-cyan);
}

.footer-socials {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    margin-top: 15px;
}

.footer-socials a img {
    width: 30px;
    height: 30px;
    transition: transform 0.3s ease;
    filter: brightness(10000%);
}

.footer-socials a:hover img {
    transform: scale(1.1);
}

.footer-copyright {
    font-size: 13px;
    margin-bottom: 10px;
    color: var(--color-yellow);
}

.footer-aff{
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    margin-top: 10px;
    margin-bottom: 10px;
}

.pineapple {
    font-size: 13px;
    color: var(--color-cyan);
}

/* ==============================
   SEARCH
============================== */

.input-container {
  width: clamp(220px, 50%, 520px);  
  margin: 0 auto;
}

#tagForm { width: 100%; max-width: 640px; box-sizing: border-box; }
.intro { max-width: 720px; margin: 8px auto 0; padding: 0 6px; }
.search-toggle { justify-content: center; gap: 6px; flex-wrap: wrap; }

@media (max-width: 1100px) {
  .main-index-container { gap: clamp(12px, 4vw, 28px); }
  .main-index-box.center { flex: 2 1 360px; }
  .main-index-box.left,
  .main-index-box.right { max-width: 260px; }
}


@media (max-width: 700px) {
  .main-index-container {
    flex-wrap: wrap;
    align-items: center;
  }

  .main-index-box.left,
  .main-index-box.right {
    display: none;
  }

  .main-index-box.center {
    flex: 1 1 100%;
    max-width: 100%;
    padding: 10px 4px;
  }

  .logo-main img { width: clamp(180px, 60vw, 420px); }
  .input-container { width: 100%; max-width: 440px; }
}


#tagForm {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0;
  background: var(--color-surface-mid);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  box-shadow: var(--shadow-elevate);
  max-width: 380px;
  width: 100%;
  margin: auto;
  overflow: hidden;
  box-shadow: 0 0 30px 10px var(--color-border);
}

.search-toggle {
  display: flex;
  gap: 0;
}

.toggle-btn {
  flex: 1;
  padding: 0.35rem 0.5rem;
  background: var(--color-surface-mid);
  border: none;
  cursor: pointer;
  color: var(--color-text-muted);
  font-size: var(--font-sm);
  transition: var(--transition);
}

.toggle-btn:hover {
  background: var(--color-surface-grey);
  color: var(--color-text);
}

.toggle-btn.active {
  background: var(--color-cyan);
  color: black;
  font-weight: 600;
  border-color: var(--color-cyan);
}

.input-container {
  display: flex;
  align-items: center;
  background: var(--color-surface-mid);
  width: 100%;
  border-top: 1px solid var(--color-cyan);
}

.hash {
  color: var(--color-text-muted);
  font-size: var(--font-lg);
  padding-left: 10px;
}

#playerInput {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--color-text-muted);
  font-size: var(--font-base);
  padding: 10px 10px 8px 10px;
}

#playerInput::placeholder {
  color: var(--color-text-faint);
}

.stats-button {
  padding: 8px 8px;
  border: none;
  background-color: var(--color-surface-mid);
  cursor: pointer;
  font-size: var(--font-base);
  font-weight: 600;
  color: var(--color-cyan);
  transition: var(--transition);
}

.stats-button:hover{
  color: var(--color-yellow);
}

#playerInput:-webkit-autofill,
#playerInput:-webkit-autofill:hover,
#playerInput:-webkit-autofill:focus,
#playerInput:-webkit-autofill:active {
  -webkit-box-shadow: 0 0 0 1000px transparent inset !important;
  box-shadow: 0 0 0 1000px transparent inset !important;

  -webkit-text-fill-color: var(--color-text-muted) !important;
  font-size: var(--font-base) !important;
  color: var(--color-text-muted) !important;
  caret-color: var(--color-text-muted) !important;

  transition: background-color 5000s ease-in-out 0s !important;
}