* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html, body {
    width: 100%;
    min-height: 100%;
    overflow-x: hidden;
    overflow: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    font-family: Arial, sans-serif;
}

body {
    /* min-height: 100vh; 
    display: flex; 
    flex-direction: column; */
    color: #f0f0f0;
    font-family: Consolas, 'Courier New', monospace;
    margin: 0;
}
h1, h2, h3, h4, h5, h6, th, strong {
    font-family: Impact, Charcoal, sans-serif;
    letter-spacing: 1px;
    color: #ffe066;
}
/* Non-bolded text white */
td, p, span, div, table, .meta {
    color: #fff !important;
    font-weight: normal;
}


html::-webkit-scrollbar,
body::-webkit-scrollbar {
  display: none;
}

/* Navbar styles */
nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(16, 37, 62, 0.97); 
    border-bottom: 3px solid #ffe066;
    color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1.5rem;
    z-index: 1000;
    box-shadow: 0 0 18px #0a1929;
    font-family: Impact, Charcoal, sans-serif;
    letter-spacing: 1px;
    text-transform: uppercase;
}

nav .greatsea {
    font-size: 1.3rem;
    font-weight: bold;
    color: #ffe066; /* highlight brand */
    text-shadow: 0 0 8px #ffe066;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 1.25rem;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    font-family: Consolas, 'Courier New', monospace; /* match body text */
    font-size: 1rem;
    padding: 0.4rem 0.75rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

nav ul li a:hover {
    background: rgba(255, 224, 102, 0.15);
    color: #ffe066;
    text-shadow: 0 0 6px #ffe066;
}

.plain-link {
    color: inherit;
    text-decoration: none;
    /* cursor: default; */
}

.plain-link:hover {
    color: inherit;
    text-decoration: none;
}

.content {
    position: relative;
    z-index: 10;
    padding-top: 5rem; /* space below navbar */
}

.flex-remaining-height {
    flex-grow: 1;
    flex-basis: 0;
    min-height: 0.0625rem;
}


#winnerText {
    text-shadow: 
    -1px -1px 0 white,  
        1px -1px 0 white,
    -1px  1px 0 white,
        1px  1px 0 white;
    font-weight: bold;
}
.rank-icon {
    border: none !important;
    box-shadow: 0 0 12px 2px #ffe06688, 0 0 4px 1px #fff2 !important;
    background: #222;
    border-radius: 8px;
    width: 32px;
    height: 32px;
    object-fit: cover;
    margin-top: 1.0rem;
    margin-bottom: 0.5rem;
    display: inline-block;
    vertical-align: middle;
}
.report-card {
    background: rgba(16, 37, 62, 0.90);
    border-radius: 1.5rem;
    box-shadow: 0 0 32px #0a1929;
    border: 3px solid #ffe066;
    color: #ffe066;
    max-width: 1000px;
    margin: 6px auto;
    padding: 2.5rem 2rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.buttons-bar {
        color: #ffe066;
        max-width: 1000px;
        padding: 20px;
        display: flex;
        flex-direction: column;
}
.glow-btn {
    color: #fff !important;
    font-weight: bold;
    box-shadow: 0 0 8px 2px var(--glow-color, #ffe066), 0 0 16px 4px var(--glow-color, #ffe066);
    border: none;
    outline: none;
    transition: box-shadow 0.2s, background 0.2s;
}
.glow-btn:hover, .glow-btn:focus {
    box-shadow: 0 0 16px 6px var(--glow-color, #ffe066), 0 0 32px 12px var(--glow-color, #ffe066);
    filter: brightness(1.1);
}
.map-header {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    gap: 1.5rem;
}
.map-header img {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 12px;
    border: 2px solid #ffe066;
    background: #222;
}
.map-header .meta {
    text-align: left;
}
.players-table, .kill-log-table {
    width: 100%;
    margin: 1.5rem 0;
    border-radius: 0.5rem;
    overflow: hidden;
}
.players-table th, .players-table td,
.kill-log-table th, .kill-log-table td {
    vertical-align: middle;
    background: transparent !important;
}
.players-table th, .kill-log-table th {
    background: #163d5c !important;
    color: #fff700;
    font-weight: bold;
    text-align: center;
}
.players-table td, .kill-log-table td {
    text-align: left;
}
.players-table td:last-child, .kill-log-table td:last-child {
    text-align: right;
}
.player-pfp {
    width: 40px;
    height: 40px;
    border-radius: 5px;
    object-fit: cover;
    border: 2px solid #ffe066;
    background: #163d5c;
    margin-right: 0.5rem;
}
.profile-player-card {
    background: rgba(16, 37, 62, 0.75);
    border-radius: 1.5rem;
    box-shadow: 0 0 32px #0a1929;
    border: 3px solid #ffe066;
    color: #ffe066;
    max-width: 1600px;
    margin: 6px auto;
    padding: 2.5rem 2rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.profile-player-header {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    gap: 2rem;
}
.profile-player-card img {
    border-radius: 5px;
    border: 2px solid white;
    width: 128px;
    height: 128px;
    object-fit: cover;
    background: #163d5c;
}
.profile-player-card .rank-icon {
    border-radius: 8px !important; /* Slightly rounded corners, or use 0 for sharp */
    border: 2px solid #ffe066;
    background: #222;
    width: 48px;
    height: 48px;
    object-fit: cover;
    margin-bottom: 0.5rem;
    display: inline-block;
}
.profile-player-info {
    text-align: left;
}
.profile-player-info h1 {
    margin-bottom: 0.5rem;
    font-size: 2.2rem;
}
.profile-player-info p {
    margin-bottom: 0.5rem;
    font-size: 1.15rem;
    color: #fff700;
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 1.5rem;
    width: 100%;
    margin-top: 1rem;
}

.stats-grid-two {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 1.5rem;
    width: 100%;
    margin-top: 1rem;
}

.stat-quadrant {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    border-radius: 1rem;
    border: 2px solid #fff;
    /* padding: 0 0 1rem 0; */
    min-height: 160px;
    color: #fff;
    position: relative;
    overflow: hidden;
    background: (16, 37, 62, 0.75); /* medium grey */
}
.stat-quadrant.full-width {
    width: 100%;
    min-height: 600px !important;
}
.stat-header {
    border-radius: 1rem 1rem 0 0;
    font-size: 1.2rem;
    font-weight: bold;
    letter-spacing: 1px;
    padding: 0.7rem 1rem 0.7rem 1rem;
    /* margin-bottom: 1rem; */
    text-align: left;
}

/* Achievement styling*/
.ach-name {
    font-weight: 700;
    font-size: 1.1rem;
}

/* Color themes based on stat_type */
.stat-none        { color: #cccccc  !important; }  
.stat-headshots    { color: #ff4d4d !important; }  
.stat-kills        { color: #ffaf00 !important; }  
.stat-roles        { color: #484bdb !important; }  
.stat-special     { color: #00e6a8  !important; }  
.stat-rounds       { color: #ff00ff !important; }  
.stat-survival    { color: #66ff66  !important; }  
.stat-damage      { color: #c93d5e  !important; }
.stat-rounds_played {color: #02a6cf !important; }
.stat-map_wins      {color: #a052ce !important; }

/* Innocents */
.stat-innocent       { color: rgb(5, 214, 12) !important; }
.stat-priest         { color: rgb(191, 255, 128) !important; }
.stat-survivalist    { color: rgb(34, 139, 34) !important; }
.stat-lycanthrope    { color: rgb(0, 100, 0) !important; }
.stat-spy            { color: rgb(255, 140, 0) !important; }
.stat-paranoid       { color: rgb(96, 200, 96) !important; }
.stat-wrath          { color: rgb(152, 255, 152) !important; }

/* Detectives */
.stat-detective      { color: rgb(49, 115, 255) !important; }
.stat-sheriff        { color: rgb(30, 100, 182) !important; }
.stat-deputy         { color: rgb(70, 130, 180) !important; }

/* Traitors */
.stat-traitor        { color: rgb(229, 57, 53) !important; }
.stat-mesmerist      { color: rgb(255, 77, 106) !important; }
.stat-thrall         { color: rgb(255, 102, 128) !important; }
.stat-defective      { color: rgb(128, 0, 128) !important; }

/* Neutrals */
.stat-serialkiller   { color: rgb(0, 184, 168) !important; }
.stat-necromancer    { color: rgb(143, 96, 190) !important; }
.stat-marker         { color: rgb(164, 136, 218) !important; }
.stat-jester         { color: rgb(255, 20, 147) !important; }
.stat-pirate_captain { color: rgb(205, 133, 63) !important; }
.stat-zombie         { color: rgb(87, 64, 124) !important; }

/* Teams */
.stat-team-innocents       { color: rgb(5, 214, 12) !important; }
.stat-team-traitors        { color: rgb(229, 57, 53) !important; }
.stat-team-neutrals        { color: #427796 !important; }
.stat-team-serialkillers   { color: rgb(0, 184, 168) !important; }
.stat-team-necromancers    { color: rgb(143, 96, 190) !important; }
.stat-team-markers         { color: rgb(164, 136, 218) !important; }
.stat-team-jesters         { color: rgb(255, 20, 147) !important; }
.stat-team-pirates         { color: rgb(205, 133, 63) !important; }

.ach-name.glow {
    text-shadow: 0 0 4px currentColor;
}

/* colored header variants (keeps your theme) */
.stat-cyan    { background: linear-gradient(90deg,#0ff 0%, #0cc 100%); color:#002 !important; }
.stat-magenta { background: linear-gradient(90deg,#ff66cc 0%, #ff33aa 100%); color:#201 !important; }
.stat-yellow  { background: linear-gradient(90deg,#ffe066 0%, #ffd24d 100%); color:#111 !important; }
.stat-black   { background: linear-gradient(90deg,#2b2b2b 0%, #111 100%); color:#fff !important; }
.stat-green   { background: linear-gradient(90deg,#8ee28e 0%, #55cc55 100%); color:#012 !important; }
.stat-blue    { background: linear-gradient(90deg,#66b3ff 0%, #3a8cff 100%); color:#012 !important; }

/* New card colors */
.stat-red    { background: linear-gradient(90deg,#ff6b6b 0%, #ff4d4d 100%); color: #111 !important; }
.stat-orange { background: linear-gradient(90deg,#ffb36b 0%, #ff9a33 100%); color: #111 !important; }
.stat-purple { background: linear-gradient(90deg,#a98cf0 0%, #8a59d6 100%); color: #111 !important; }
.stat-pink   { background: linear-gradient(90deg,#ff9ad6 0%, #ff66cc 100%); color: #111 !important; }

 /* Content area that will scroll when tall */
.stat-content {
    /* padding: 0.75rem; */
    display: block;
    min-height: 160px;
    max-height: 600px; 
    overflow-y: auto;
    scrollbar-width: thin;      
}

.stat-content table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
    color: #e7eef8;
    table-layout: fixed;
    word-break: break-word;
}

.stat-content thead th {
    text-align: left;
    font-size: 0.85rem;
    color: #cfe9ff;
    padding-bottom: 0.35rem;
    border-bottom: 1px dashed rgba(255,255,255,0.04);
}

.stat-content td, .stat-content th {
    padding: 0.45rem 0.4rem;
    vertical-align: middle;
}

.text-start  { text-align: left;  }
.text-end    { text-align: right; }

.stat-content .empty {
    color: #9fb5c9;
    text-align: center;
    padding: 1rem 0;
}

.stat-content tbody tr + tr td {
    border-top: 1px solid rgba(255,255,255,0.03);
}

.stat-content .muted {
    color: #b5cbdc;
    font-size: 0.85rem;
}

.map-stats-col .map-stats-icon {
    width: 64px;
    height: 64px;
    border-radius: 8px;
    object-fit: cover;
    box-shadow: 0 6px 18px rgba(0,0,0,0.5);
}

@media (max-width: 980px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    .profile-player-card { flex-direction: column; align-items: stretch; }
    .profile-player-card .meta { width: 100%; }
}

.reward-badge-easy {
    background: #4caf50;
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 0.8rem;
}

.reward-badge-medium {
    background: #b4a72b;
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 0.8rem;
}

.reward-badge-hard {
    background: #d35b5b;
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 0.8rem;
}

.reward-badge-legendary {
    background: #0fa9b4;
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 0.8rem;
}

.xp-bar-bg {
    width: 100%;
    height: 22px;
    background: #222;
    border-radius: 12px;
    margin-top: 0.5rem;
    overflow: hidden;
    border: 2px solid #fff;
    position: relative;
    display: flex;
    align-items: center;
}
.xp-bar-fill {
    position: absolute;
    inset: 0;
    border-radius: 12px 0 0 12px;
    transition: width 0.5s;
    overflow: hidden;
}

/* Animated shine gradient overlay */
.xp-bar-fill::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        rgba(255,255,255,0) 0%,
        rgba(255,255,255,0.35) 50%,
        rgba(255,255,255,0) 100%
    );
    background-size: 200% 100%;
    animation: xpShineSweep 2.8s linear infinite;
    pointer-events: none;
}

@keyframes xpShineSweep {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}
.xp-bar-label {
    width: 100%;
    text-align: center;
    color: #fff;
    font-size: 0.95rem;
    z-index: 2;
    font-family: Consolas, 'Courier New', monospace;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    pointer-events: none;
}

.tooltip-img {
    position: relative;
    cursor: pointer;
}

.tooltip-img::after {
    content: attr(data-title);
    position: absolute;
    top: -30px; /* adjust as needed */
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.8);
    color: #fff;
    padding: 2px 6px;
    border-radius: 4px;
    white-space: nowrap;
    font-size: 0.85rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.1s;
    z-index: 10;
}

.tooltip-img:hover::after {
    opacity: 1;
}

/* .role, .team {
  font-family: Impact, Charcoal, sans-serif;
  letter-spacing: 1px;
} */

.role,
.team {
  font-family: Impact, Charcoal, sans-serif;
  font-size: 16px !important;
  letter-spacing: 1px;

  /* text-shadow:
    -1px -1px 0 #fff,
     1px -1px 0 #fff,
    -1px  1px 0 #fff,
     1px  1px 0 #fff; */
}

/* Teams */
.team-innocents { color: rgb(5, 214, 12) !important; }
.team-traitors { color: rgb(229, 57, 53) !important; }
.team-neutrals { color: #427796 !important; }
.team-serialkillers { color: rgb(0, 184, 168) !important; }
.team-necromancers { color: rgb(88, 45, 130) !important; }
.team-markers { color: rgb(220, 140, 255) !important; }
.team-jesters { color: rgb(255, 20, 147) !important; }
.team-pirates { color: rgb(205, 133, 63) !important; }

/* Glow effect for text */
.team-innocents-glow { text-shadow: 0 0 6px rgb(5, 214, 12); }
.team-traitors-glow { text-shadow: 0 0 6px rgb(229, 57, 53); }
.team-neutrals-glow { text-shadow: 0 0 6px #427796; }
.team-serialkillers-glow { text-shadow: 0 0 6px rgb(0, 184, 168); }
.team-necromancers-glow {text-shadow: 0 0 6px rgb(88, 45, 130); }
.team-markers-glow { text-shadow: 0 0 6px rgb(220, 140, 255); }
.team-jesters-glow { text-shadow: 0 0 6px rgb(255, 20, 147); }
.team-pirates-glow { text-shadow: 0 0 6px rgb(205, 133, 63); }

.team-innocents-glow-img { filter: drop-shadow(0 0 6px rgb(5, 214, 12)); }
.team-traitors-glow-img { filter: drop-shadow(0 0 6px rgb(229, 57, 53)); }
.team-neutrals-glow-img { filter: drop-shadow(0 0 6px #427796); }
.team-serialkillers-glow-img { filter: drop-shadow(0 0 6px rgb(0, 184, 168)); }
.team-necromancers-glow-img { filter: drop-shadow(0 0 6px rgb(88, 45, 130)); }
.team-markers-glow-img { filter: drop-shadow(0 0 6px rgb(220, 140, 255)); }
.team-jesters-glow-img { filter: drop-shadow(0 0 6px rgb(255, 20, 147)); }
.team-pirates-glow-img { filter: drop-shadow(0 0 6px rgb(205, 133, 63)); }

/* Innocents */
.role-innocent { color: rgb(5, 214, 12) !important; }
.role-priest { color: rgb(191, 255, 128) !important; }
.role-survivalist { color: rgb(34, 139, 34) !important; }
.role-lycanthrope { color: rgb(0, 100, 0) !important; }
.role-spy { color: rgb(255, 140, 0) !important; }
.role-paranoid { color: rgb(96, 200, 96) !important; }
.role-wrath { color: rgb(152, 255, 152) !important; }

/* Detectives */
.role-detective { color: rgb(49, 115, 255) !important; }
.role-sheriff { color: rgb(30, 100, 182) !important; }
.role-deputy { color: rgb(70, 130, 180) !important; }

/* Traitors */
.role-traitor { color: rgb(229, 57, 53) !important; }
.role-mesmerist { color: rgb(248, 114, 148) !important; }
.role-thrall { color: rgb(248, 148, 165) !important; }
.role-defective { color: rgb(128, 0, 128) !important; }

/* Neutrals */
.role-serialkiller { color: rgb(0, 184, 168) !important; }
.role-necromancer { color: rgb(88, 45, 130) !important; }
.role-marker { color: rgb(220, 140, 255) !important; }
.role-jester { color: rgb(255, 20, 147) !important; }
.role-pirate_captain { color: rgb(205, 133, 63) !important; }
.role-zombie { color: rgb(87, 64, 124) !important; }

/* BACKGROUND */
/* Teams */
.team-innocents-bg { background: rgb(5, 214, 12) !important; }
.team-traitors-bg { background: rgb(229,57,53) !important; }
.team-neutrals-bg { background: #427796 !important; }
.team-serialkillers-bg { background: rgb(0, 184, 168) !important; }
.team-necromancers-bg { background: rgb(88, 45, 130) !important; }
.team-markers-bg { background: rgb(220, 140, 255) !important; }
.team-jesters-bg { background: rgb(255,20,147) !important; }
.team-pirates-bg { background: rgb(205,133,63) !important; }

/* Innocents */
.role-innocent-bg { background: rgb(5, 214, 12) !important; }
.role-priest-bg { background: rgb(191,255,128) !important; }
.role-survivalist-bg { background: rgb(34,139,34) !important; }
.role-lycanthrope-bg { background: rgb(0,100,0) !important; }
.role-spy-bg { background: rgb(255,140,0) !important; }
.role-paranoid-bg { background: rgb(96,200,96) !important; }
.role-wrath-bg { background: rgb(152,255,152) !important; }

/* Detectives */
.role-detective-bg { background: rgb(49, 115, 255) !important; }
.role-sheriff-bg { background: rgb(30, 100, 182) !important; }
.role-deputy-bg { background: rgb(70,130,180) !important; }

/* Traitors */
.role-traitor-bg { background: rgb(229,57,53) !important; }
.role-mesmerist-bg { background: rgb(248, 114, 148) !important; }
.role-thrall-bg { background: rgb(248, 148, 165) !important; }
.role-defective-bg { background: rgb(128,0,128) !important; }

/* Neutral */
.role-serialkiller-bg { background: rgb(0, 184, 168) !important; }
.role-necromancer-bg { background: rgb(88, 45, 130) !important; }
.role-marker-bg { background: rgb(220, 140, 255) !important; }
.role-jester-bg { background: rgb(255,20,147) !important; }
.role-pirate_captain-bg { background: rgb(205,133,63) !important; }
.role-zombie-bg { background: rgb(87, 64, 124) !important; }


/* server stats page */

.stat-accent-cyan    { color: cyan !important; }
.stat-accent-yellow  { color: #ffe066 !important; }
.stat-accent-red     { color: rgb(229,57,53) !important; }
.stat-accent-green   { color: rgb(5,214,12) !important; }
.stat-accent-purple  { color: rgb(143,96,190) !important; }
.stat-accent-blue    { color: rgb(66,179,255) !important; }

.server-stat-card {
    background: rgba(22, 50, 88, 0.97);
    border-radius: 1.25rem;
    border: 1.5px solid rgba(255, 224, 102, 0.55);
    box-shadow:
        0 6px 28px rgba(0, 0, 0, 0.65),
        0 0 18px rgba(255, 224, 102, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.07);
    padding: 1.4rem 1.2rem;
    height: 100%;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    position: relative;
    overflow: hidden;
}

.server-stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(255, 224, 102, 0.7), transparent);
    border-radius: 1.25rem 1.25rem 0 0;
}

.server-stat-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 224, 102, 0.9);
    box-shadow:
        0 12px 36px rgba(0, 0, 0, 0.7),
        0 0 32px rgba(255, 224, 102, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.server-stat-title {
    font-family: Impact, Charcoal, sans-serif;
    letter-spacing: 1.5px;
    font-size: 0.85rem;
    text-transform: uppercase;
    color: rgba(255, 224, 102, 0.75);
    margin-bottom: 0.3rem;
}

.server-stat-value {
    font-size: 2.3rem;
    font-weight: bold;
    line-height: 1.1;
    color: #fff;
    text-shadow: 0 0 14px rgba(255, 224, 102, 0.6), 0 2px 4px rgba(0,0,0,0.5);
}

.server-stat-sub {
    font-size: 0.85rem;
    color: #cfe9ff !important;
    opacity: 0.85;
}

/* ── Global tier system ─────────────────────────────────────────────────────── */
/* White text + metallic glow. Bronze = lowest, Diamond = highest (animated).   */
.tier-bronze,
.tier-silver,
.tier-gold,
.tier-platinum,
.tier-diamond {
    color: #fff !important;
    font-weight: bold;
}
.tier-bronze   { text-shadow: 0 0 5px #cd7f32, 0 0 10px #cd7f3266; }
.tier-silver   { text-shadow: 0 0 5px #c0c0c0, 0 0 10px #c0c0c066; }
.tier-gold     { text-shadow: 0 0 6px #ffd700, 0 0 12px #ffd70055; }
.tier-platinum { text-shadow: 0 0 5px #3d9e98, 0 0 11px #2d7872, 0 0 18px #2d787230; }
.tier-diamond  { animation: tier-diamond-glow 3s ease-in-out infinite; }

@keyframes tier-diamond-glow {
    0%,100% { text-shadow: 0 0 4px #dff6ff, 0 0 10px #8de8ff, 0 0 18px #8de8ff88, 0 0 26px #8de8ff22; }
    25%     { text-shadow: 0 0 4px #fff,     0 0 10px #d0f0ff, 0 0 18px #d0f0ffaa, 0 0 26px #d0f0ff33; }
    50%     { text-shadow: 0 0 4px #eeeaff, 0 0 10px #b0a8ff, 0 0 18px #b0a8ff66, 0 0 26px #b0a8ff18; }
    75%     { text-shadow: 0 0 4px #eafffa, 0 0 10px #90ffde, 0 0 18px #90ffde55, 0 0 26px #90ffde15; }
}

/* ── Stats Period bar (fixed below navbar) ─────────────────────────────── */
.stats-period-bar {
    position: fixed;
    top: 56px;
    left: 0;
    right: 0;
    z-index: 999;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.45rem 1.5rem;
    background: rgba(10, 20, 35, 0.97);
    border-bottom: 1px solid rgba(255, 224, 102, 0.2);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}
.stats-period-bar-label {
    font-family: Impact, Charcoal, sans-serif;
    font-size: 0.72rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: rgba(207, 233, 255, 0.45);
    white-space: nowrap;
}
.period-selector { display: flex; gap: 0.35rem; flex-wrap: wrap; }
.period-btn {
    padding: 0.25rem 0.75rem;
    border-radius: 0.35rem;
    border: 1px solid rgba(255, 224, 102, 0.25);
    background: rgba(255, 224, 102, 0.06);
    color: rgba(207, 233, 255, 0.55);
    font-size: 0.75rem;
    font-family: Impact, Charcoal, sans-serif;
    letter-spacing: 1px;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.period-btn:hover  { border-color: rgba(255, 224, 102, 0.5); color: #cfe9ff; background: rgba(255, 224, 102, 0.1); }
.period-btn.active { background: rgba(255, 224, 102, 0.18); border-color: #ffe066; color: #ffe066; }