body {
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
    color: #f5f5f5;
}
/* Keep background visible even during rubber-band/overscroll on mobile */
html, body {
  height: 100%;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: url('background.jpg') no-repeat center center / cover;
  z-index: -1; /* sit behind all content */
}
  /* A container that holds everything in a centered box */
  .container {
    max-width: 900px;
    margin: 50px auto;
    padding: 20px;
  }
    
  h1, h2 {
    text-align: center;
    /*background-color: rgba(193, 194, 196, 0.8); /* Slight transparency */
    padding: 2px;
    border-radius: 8px;
    display: block; /* Ensure full width */
    width: fit-content; /* Fit the text width */
    margin: 0 auto; /* Center horizontally */
    color: #ffffff; /* Very WHite */
  }
  .skills-changes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px; /* space between the columns */
    align-items: start;
  }
    
  .player-changes {
    /* Same main background color as before */
    background-color: #6d4c41a6; 
    /* Rounded corners */
    border-radius: 8px;
    /* Subtle box shadow */
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
    
    /* ??? Adjust these to control spacing inside the box ??? */
    padding: 0px;  
    margin: 0;
    
    /* Add a thin border with a slightly different color */
    border: 1px solid #8d6e63; /* Example color, tweak as needed */
  }
  .player-changes ul {
  list-style-type: none;  /* remove the default bullet/circle */
  padding: 0;            /* remove left padding/indentation */
  margin: 0; 
  text-align: center;            /* remove top/bottom margin */
  }
  .player-changes h3 {
    text-align: center;
    /* Remove default margin so heading is tight against the box */
    margin: 0 0 0 0; 
    /* Slightly darker background for the heading area */
    background-color: #8d6e63;  
    /* Padding around text */
    padding: 3px;
    /* Rounded corners at top only (optional) */
    border-radius: 6px 6px 0 0; 
    /* Bold, bright text to stand out (optional) */
    color: #ffffff; 
    font-weight: 600;
  }
    
  p {
    text-align: center;
    font-size: 18px;
    /*background-color: rgba(193, 194, 196, 0.8); /* Same color as before, but only here */
  }
  table {
    border-collapse: collapse;
    margin-bottom: 2em;
    width: auto;
    min-width: 100%;
    border-collapse: collapse;
    background-color: rgba(161, 136, 127, 0.85); /* Light Wood Beige, semi-transparent */
    border-radius: 8px;
    padding: 10px;
    overflow: hidden;
  }
  th, td {
    border: 1px solid #5d4037; /* Mahogany border */
    padding: 6px 10px;
    text-align: left;
  }
  th {
    background-color: rgba(109, 76, 65, 0.9); /* Deep Brown, semi-transparent */
  }
  
  .intro-box {
  background: none !important;
  padding: 0 !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  text-align: center;
  margin-bottom: 20px;
}
  
  .category-box {
    padding: 0px 0px 0px 0px;
    border-radius: 8px;
    margin-bottom: 20px; /* Space between category boxes */
  }
  
  /* New styles for the framed picture */
  .framed-picture {
    text-align: center;
    margin: 20px 0;
  }
  .framed-picture img {
    border: 10px solid #6d4c41; /* Frame color */
    border-radius: 8px; /* Rounded corners */
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.3); /* Subtle shadow */
    max-width: 100%; /* Ensure the image is responsive */
    height: auto; /* Maintain aspect ratio */
  }
  .in-memoriam {
  background: linear-gradient(to bottom, #44484a 0%, #232526 100%);
  border-radius: 38px 38px 16px 16px / 60px 60px 16px 16px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.40), 0 2px 0 #222 inset;
  border: 3px solid #22282b;
  padding: 38px 26px 26px 26px;
  margin: 38px auto;
  max-width: 440px;
  text-align: center;
  font-family: 'Poppins', serif;
  color: #e0e0e0;
  position: relative;
  overflow: hidden;
  background-image:
    linear-gradient(to bottom, #44484a 0%, #232526 100%),
    url('https://www.transparenttextures.com/patterns/stone.png');
  background-blend-mode: multiply;
}
  
  .in-memoriam h2 {
  font-family: 'Poppins', serif;
  letter-spacing: 2px;
  font-weight: 600;
  margin-bottom: 8px;
  color: #e0e0e0;
  text-shadow: 0 1px 4px #222;
}
  
  .in-memoriam em {
  display: block;
  font-size: 1.1em;
  margin-bottom: 18px;
  color: #ccc;
  text-shadow: 0 1px 3px #222;
}
  
  .in-memoriam::before {
  content: "??";
  display: block;
  position: absolute;
  left: 50%;
  top: -28px;
  transform: translateX(-50%);
  width: 110px;
  height: 32px;
  background: #44484a;
  border-radius: 60px 60px 0 0;
  box-shadow: 0 4px 16px rgba(0,0,0,0.18);
  border: 3px solid #22282b;
}

/* Clean banner image (no borders, no shadows) */
.site-banner {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
  border: none;
  box-shadow: none;
}

/* If an <h1> title still exists in the intro box, hide it */
.intro-box h1 {
  display: none;
}

/* ---- Footer ---- */
.site-footer {
  text-align: center;
  font-size: 0.9rem;
  color: #e0e0e0;
  opacity: 0.9;
  padding: 12px 0 24px;
  border-top: 1px solid rgba(255,255,255,0.12);
  max-width: 900px;
  margin: 20px auto 0;
}
.site-footer a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px dotted rgba(255,255,255,0.35);
}
.site-footer a:hover {
  border-bottom-color: rgba(255,255,255,0.75);
}
.site-footer .sep {
  opacity: 0.5;
  margin: 0 6px;
}
.refresh-banner{
  background: rgba(161, 136, 127, 0.85);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 10px;
  padding: 8px 14px;
  margin: 10px auto 14px;
  max-width: 1000px;
  font-size: 0.95rem;
}
.refresh-banner strong{ font-weight: 600; }

/* --- Refresh pill (compact, centered) --- */
.refresh-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(161, 136, 127, 0.85);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(0,0,0,0.12);
  border-radius: 9999px; /* fully rounded */
  padding: 6px 12px;
  margin: 12px auto 16px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.18);
  font-size: 0.95rem;
  line-height: 1.3;
  width: fit-content;      /* shrink to content */
  max-width: 92vw;         /* safety on mobile */
}
.refresh-pill .dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.6;
  display: inline-block;
}
.refresh-pill .icon {
  margin-right: 2px;
  opacity: 0.9;
}

/* ===== Ranks column visibility (default hidden) ===== */
table th.col-rank,
table td.col-rank,
table th[data-col="rank"],
table td[data-col="rank"] {
  display: none;
}

/* When the user enables ranks, show the column */
body.show-ranks table th.col-rank,
body.show-ranks table td.col-rank,
body.show-ranks table th[data-col="rank"],
body.show-ranks table td[data-col="rank"] {
  display: table-cell;
}

/* Optional: on very wide screens you can still keep it user-controlled.
   If you'd rather auto-show on desktop, uncomment this:
@media (min-width: 1100px) {
  table th.col-rank,
  table td.col-rank,
  table th[data-col="rank"],
  table td[data-col="rank"] {
    display: table-cell;
  }
}
*/

/* ===== Rank toggle – themed leather/wood pill button ===== */
#rankToggle {
  appearance: none;
  cursor: pointer;
  font: inherit;
  line-height: 1.1;
  color: #fff;
  /* warm leather/wood gradient */
  background: linear-gradient(180deg, #8d6e63 0%, #6d4c41 100%);
  border: 1px solid rgba(34, 26, 21, 0.6);
  border-radius: 9999px;
  padding: 6px 14px 6px 12px; /* room for icon */

  /* subtle bevel & glow */
  box-shadow:
    0 10px 18px rgba(0,0,0,0.25),   /* outer drop */
    inset 0 1px 0 rgba(255,255,255,0.18), /* top highlight */
    inset 0 -1px 0 rgba(0,0,0,0.25);      /* bottom shade */

  transition: transform 90ms ease, box-shadow 160ms ease,
              background 180ms ease, filter 160ms ease;
  position: relative;
}

/* small badge icon inside the pill */
#rankToggle::before {
  /* Medal emoji U+1F3C5 via CSS escape */
  content: "\1F3C5";
  /* Prefer color-emoji fonts, then fall back */
  font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", Poppins, sans-serif;
  display: inline-block;
  margin-right: 8px;
  line-height: 1;
  filter: drop-shadow(0 1px 0 rgba(0,0,0,0.25));
}

/* hover: brighten and lift */
#rankToggle:hover {
  filter: brightness(1.05);
  box-shadow:
    0 12px 22px rgba(0,0,0,0.30),
    inset 0 1px 0 rgba(255,255,255,0.22),
    inset 0 -1px 0 rgba(0,0,0,0.28);
}

/* active: press down */
#rankToggle:active {
  transform: translateY(1px);
  box-shadow:
    0 6px 10px rgba(0,0,0,0.22),
    inset 0 1px 0 rgba(255,255,255,0.12),
    inset 0 -1px 0 rgba(0,0,0,0.35);
}

/* focus ring for keyboard users */
#rankToggle:focus-visible {
  outline: none;
  box-shadow:
    0 0 0 2px rgba(255,255,255,0.85),
    0 0 0 4px rgba(141,110,99,0.65),
    0 10px 18px rgba(0,0,0,0.25),
    inset 0 1px 0 rgba(255,255,255,0.18),
    inset 0 -1px 0 rgba(0,0,0,0.25);
}

/* when ranks are shown, make the pill slightly darker/richer */
body.show-ranks #rankToggle {
  background: linear-gradient(180deg, #5d4037 0%, #4e342e 100%);
  border-color: rgba(28, 22, 18, 0.75);
}