/* --- Font and Scrollbar --- */
@font-face {
    font-family: 'Minecraft';
    src: local('Arial');
    font-weight: normal;
    font-style: normal;
}

.minecraft-font {
    font-family: 'Minecraft', 'Inter', sans-serif;
    letter-spacing: 3px;
    color: #ffffff;
    text-shadow: 0 0 20px rgba(255, 153, 64, 0.3);
}

::-webkit-scrollbar { width: 12px; }
::-webkit-scrollbar-track { background: #0A0E14; }
::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #FF9940, #E67600);
    border-radius: 10px;
    border: 3px solid #0A0E14;
}
::-webkit-scrollbar-thumb:hover { 
    background: linear-gradient(180deg, #FFB366, #FF9940);
}

/* --- Global Styles & Background --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    height: 100%;
}

body {
    --htx-bg: #0A0E14;
    --htx-text: #B3B1AD;
    --htx-accent: #FF9940;
    --htx-accent-dark: #E67600;
    --htx-card-bg: rgba(26, 31, 41, 0.8);
    --htx-border: rgba(255, 153, 64, 0.15);
    --htx-success: #4CAF50;
    --htx-error: #F44336;
    --htx-warning: #FFC107;
    --htx-glass: rgba(255, 255, 255, 0.05);
    --rank-owner: #fffc49;
    --rank-headadmin: #edc721;
    --rank-developer: #2d8baa;
    --rank-admin: #810505;
    --rank-srmod: #810505;
    --rank-mod: #cf4d4d;
    --rank-trial: #006002;
    --rank-united: #1d10ac;
    --rank-builder: #00AA00;
    --rank-spider: #a3a3a3;
    --rank-htx: #d344ff;
    --rank-youtuber: #700794;
    --rank-emerald: #46ff2d;
    --rank-diamond: #3af7ff;
    --rank-gold: #ffc14e;
    --rank-member: #4248f6;

    background-color: var(--htx-bg);
    color: var(--htx-text);
    font-family: 'Inter', Arial, sans-serif;
    min-height: 100%;
    overflow-x: hidden;
}

/* --- Animated Background Particles --- */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
     background: 
        radial-gradient(circle at 20% 50%, rgba(255, 153, 64, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(76, 175, 80, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(244, 67, 54, 0.06) 0%, transparent 50%),
        linear-gradient(135deg, #0A0E14 0%, #1a1f29 100%);
    background-attachment: fixed;
}

.particle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: var(--htx-accent);
    border-radius: 50%;
    opacity: 0.6;
    animation: float 15s infinite linear;
}

@keyframes float {
    0% { transform: translateY(100vh) rotate(0deg); opacity: 0; }
    10% { opacity: 0.6; }
    90% { opacity: 0.6; }
    100% { transform: translateY(-100px) rotate(360deg); opacity: 0; }
}

/* --- Page Structure --- */
.page-wrapper {
    position: relative; 
    width: 100%;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 8rem 20px 40px 20px; /* Adjusted padding-top for header */
    min-height: 100vh;
}

/* --- Header & Navigation --- */
.header-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(10, 14, 20, 0.85);
    backdrop-filter: blur(10px);
    z-index: 50;
    border-bottom: 1px solid var(--htx-border);
}
.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 5rem;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}
.nav-logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--htx-accent);
    text-decoration: none;
    transition: color 0.3s ease;
}
.nav-logo:hover {
    color: #FFB366;
}
.nav-links-desktop {
    display: none;
}
@media (min-width: 768px) {
    .nav-links-desktop {
        display: flex;
        gap: 2rem;
    }
}
.nav-link {
    color: var(--htx-text);
    text-decoration: none;
    transition: color 0.3s ease;
    position: relative;
    padding: 0.5rem 0;
}
.nav-link:hover {
    color: var(--htx-accent);
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--htx-accent);
    transition: width 0.3s ease;
}
.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}
.nav-link.active {
    color: var(--htx-accent);
}
.menu-toggle-btn {
    display: block;
    background: none;
    border: none;
    color: var(--htx-text);
    font-size: 1.5rem;
    cursor: pointer;
}
@media (min-width: 768px) {
    .menu-toggle-btn {
        display: none;
    }
}
.mobile-menu {
    display: none;
    background: rgba(10, 14, 20, 0.98);
    border-top: 1px solid var(--htx-border);
    padding: 1rem;
    animation: slide-down 0.3s ease-out;
}
.mobile-menu.active {
    display: block;
}
.mobile-link {
    display: block;
    text-align: center;
    padding: 0.75rem;
    color: var(--htx-text);
    text-decoration: none;
    border-radius: 8px;
    transition: background-color 0.3s, color 0.3s;
}
.mobile-link:hover, .mobile-link.active {
    background: var(--htx-accent);
    color: var(--htx-bg);
}
@keyframes slide-down {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Page Title Header --- */
.header-container {
    margin-bottom: 20px; /* Reduced margin */
    position: relative;
    text-align: center;
}

.main-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 15px;
    background: linear-gradient(135deg, #FF9940, #FFB366, #E67600);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: titleGlow 3s ease-in-out infinite alternate;
}

@keyframes titleGlow {
    from { filter: drop-shadow(0 0 20px rgba(255, 153, 64, 0.3)); }
    to { filter: drop-shadow(0 0 40px rgba(255, 153, 64, 0.6)); }
}

.subtitle {
    font-size: 1.2rem;
    color: var(--htx-text);
    font-weight: 300;
    opacity: 0.8;
}

/* --- Search Container --- */
.search-container {
    margin: 30px 0 50px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    width: 100%;
    max-width: 600px;
    position: relative;
}

.input-wrapper {
    position: relative;
    flex: 1;
    max-width: 400px;
}

input[type="text"] {
    padding: 20px 25px;
    font-size: 18px;
    border-radius: 15px;
    border: 2px solid transparent;
    background: var(--htx-glass);
    backdrop-filter: blur(20px);
    color: #fff;
    width: 100%;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 500;
    letter-spacing: 0.5px;
}

input[type="text"]::placeholder {
    color: rgba(255, 255, 255, 0.5);
    font-weight: 400;
}

input[type="text"]:focus {
    outline: none;
    border-color: var(--htx-accent);
    background: rgba(255, 153, 64, 0.1);
    box-shadow: 
        0 0 30px rgba(255, 153, 64, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.search-btn {
    padding: 20px 35px;
    font-size: 18px;
    border-radius: 15px;
    border: none;
    background: linear-gradient(135deg, var(--htx-accent), var(--htx-accent-dark));
    color: white;
    cursor: pointer;
    font-weight: 700;
    letter-spacing: 1px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(255, 153, 64, 0.3);
}

.search-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s;
}

.search-btn:hover::before {
    left: 100%;
}

.search-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 40px rgba(255, 153, 64, 0.5);
    filter: brightness(1.1);
}

.search-btn:active {
    transform: translateY(-1px);
}

.search-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* --- Loading Spinner --- */
.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 153, 64, 0.3);
    border-radius: 50%;
    border-top-color: var(--htx-accent);
    animation: spin 1s ease-in-out infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* --- Player Card & Stats --- */
#result-container {
    perspective: 1200px;
    width: 100%;
    max-width: 650px;
}

/* --- Game Stats Container --- */
#game-stats-container {
    position: relative;
    z-index: 1;
}

.loading-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    padding: 40px;
    color: var(--htx-text);
}

.game-stats-header {
    text-align: center;
    margin-bottom: 25px;
}

.game-stats-header h3 {
    font-size: 24px;
    color: var(--htx-accent);
    font-weight: 700;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin: 0;
    text-shadow: 0 0 15px rgba(255, 153, 64, 0.4);
}

.game-stats-header h3 i {
    font-size: 20px;
    opacity: 0.8;
}

/* --- Game Stats Grid --- */
.game-stats-grid {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(2, 1fr);
    justify-items: stretch;
    align-items: stretch;
}

/* Center the last card when odd number (like 5th card) */
.game-stats-grid .stat-card:nth-child(odd):last-child {
    grid-column: 1 / -1;
    max-width: 50%;
    margin: 0 auto;
}

/* Enhanced stat cards for games */
.game-stats-grid .stat-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--htx-border);
    border-radius: 15px;
    padding: 24px 20px;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.game-stats-grid .stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 153, 64, 0.1), transparent);
    transition: left 0.6s ease;
}

.game-stats-grid .stat-card:hover::before {
    left: 100%;
}

.game-stats-grid .stat-card:hover {
    background: rgba(255, 153, 64, 0.08);
    border-color: var(--htx-accent);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 
        0 10px 25px rgba(0, 0, 0, 0.3),
        0 0 20px rgba(255, 153, 64, 0.2);
}

.game-stats-grid .stat-card .label {
    font-size: 13px;
    color: var(--htx-text);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 600;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
    z-index: 1;
}

.game-stats-grid .stat-card .label .fa-icon {
    opacity: 0.7;
    font-size: 14px;
    color: var(--htx-accent);
}

.game-stats-grid .stat-card .value {
    font-weight: 700;
    color: var(--htx-accent);
    text-shadow: 0 0 15px rgba(255, 153, 64, 0.4);
    margin: 0;
    line-height: 1.2;
    font-family: 'JetBrains Mono', monospace;
    word-break: break-word;
    position: relative;
    z-index: 1;
}

.game-stats-grid .stat-card .value-stat {
    font-size: 22px;
    font-weight: 800;
}

/* Special styling for calculated stats */
.game-stats-grid .stat-card:has(.value-calculated) {
    background: rgba(76, 175, 80, 0.05);
    border-color: rgba(76, 175, 80, 0.3);
}

.game-stats-grid .stat-card:has(.value-calculated):hover {
    background: rgba(76, 175, 80, 0.1);
    border-color: var(--htx-success);
}

.game-stats-grid .stat-card:has(.value-calculated) .value {
    color: var(--htx-success);
    text-shadow: 0 0 15px rgba(76, 175, 80, 0.4);
}

.player-card {
    background: var(--htx-glass);
    backdrop-filter: blur(20px);
    border: 1px solid var(--htx-border);
    padding: 40px;
    border-radius: 25px;
    opacity: 0;
    transform: translateY(50px) rotateX(-15deg) scale(0.9);
    transition: all 0.8s cubic-bezier(0.19, 1, 0.22, 1);
    box-shadow: 
        0 25px 60px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    text-align: left;
    position: relative;
    overflow: hidden;
}

.player-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg, transparent, rgba(255, 153, 64, 0.1), transparent, rgba(76, 175, 80, 0.05), transparent);
    transition: opacity 0.8s ease;
    opacity: 0;
    z-index: 0;
    animation: rotateGlow 20s linear infinite;
}

.player-card:hover::before {
    opacity: 1;
}

@keyframes rotateGlow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.player-card.visible {
    opacity: 1;
    transform: translateY(0) rotateX(0deg) scale(1);
}

.player-header {
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--htx-border);
    padding-bottom: 25px;
    margin-bottom: 25px;
    position: relative;
    z-index: 1;
}

.player-skin {
    width: 110px;
    height: 110px;
    margin-right: 25px;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.3);
    image-rendering: pixelated;
    border: 3px solid var(--htx-border);
    transition: all 0.4s ease;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    flex-shrink: 0;
}

.player-skin:hover {
    transform: scale(1.05) rotate(2deg);
    border-color: var(--htx-accent);
    box-shadow: 0 15px 35px rgba(255, 153, 64, 0.3);
}

.player-info {
    flex-grow: 1;
    min-width: 0;
}

.player-info .name {
    margin: 0 0 10px 0;
    color: #ffffff;
    font-size: 32px;
    font-weight: 800;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
    letter-spacing: 1px;
    word-break: break-all;
}

.player-uuid-container {
     display: flex;
     align-items: center;
     gap: 10px;
     margin-bottom: 12px;
}

.player-uuid {
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    color: var(--htx-text);
    opacity: 0.7;
    letter-spacing: 0.5px;
    word-break: break-all;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.copy-icon {
    cursor: pointer;
    color: var(--htx-text);
    transition: all 0.2s ease;
    font-size: 14px;
}
.copy-icon:hover {
    color: var(--htx-accent);
    transform: scale(1.1);
}

.status-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.status {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.status .indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 10px;
    position: relative;
}

.status.online { 
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.3), rgba(129, 199, 132, 0.2)); 
    color: #81C784; 
    border: 1px solid rgba(76, 175, 80, 0.3);
}
.status.online .indicator { 
    background-color: var(--htx-success); 
    animation: pulse 2s infinite;
    box-shadow: 0 0 10px rgba(76, 175, 80, 0.5);
}
.status.offline { 
    background: linear-gradient(135deg, rgba(244, 67, 54, 0.3), rgba(229, 115, 115, 0.2)); 
    color: #E57373; 
    border: 1px solid rgba(244, 67, 54, 0.3);
}
.status.offline .indicator { 
    background-color: var(--htx-error); 
    animation: none; 
}

.status.afk {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.3), rgba(255, 204, 51, 0.2));
    color: #FFD54F;
    border: 1px solid rgba(255, 193, 7, 0.3);
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(76, 175, 80, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(76, 175, 80, 0); }
    100% { box-shadow: 0 0 0 0 rgba(76, 175, 80, 0); }
}

.player-data {
    text-align: center;
    position: relative;
    z-index: 1;
}

.stats-row {
    display: grid;
    gap: 20px;
    margin-bottom: 20px;
}

.stats-row-top {
     grid-template-columns: repeat(3, 1fr);
}

.stats-row-mid {
     grid-template-columns: repeat(2, 1fr);
     max-width: 67%;
     margin-left: auto;
     margin-right: auto;
     margin-bottom: 25px;
}

.stat-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--htx-border);
    border-radius: 15px;
    padding: 20px;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.stat-card:hover {
    background: rgba(255, 153, 64, 0.05);
    border-color: var(--htx-accent);
    transform: translateY(-2px);
}

.stat-card .label {
    font-size: 13px;
    color: var(--htx-text);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 600;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.stat-card .label .fa-icon {
     opacity: 0.6;
}

.stat-card .value {
    font-weight: 700;
    color: var(--htx-accent);
    text-shadow: 0 0 15px rgba(255, 153, 64, 0.4);
    margin: 0;
    line-height: 1.2;
    font-family: 'JetBrains Mono', monospace;
    word-break: break-word;
}

.stat-card .value-main {
     font-size: 28px;
}

.stat-card .value.rank-owner { color: var(--rank-owner); text-shadow: 0 0 15px var(--rank-owner); }
.stat-card .value.rank-headadmin { color: var(--rank-headadmin); text-shadow: 0 0 15px var(--rank-headadmin); }
.stat-card .value.rank-developer { color: var(--rank-developer); text-shadow: 0 0 15px var(--rank-developer); }
.stat-card .value.rank-admin { color: var(--rank-admin); text-shadow: 0 0 15px var(--rank-admin); }
.stat-card .value.rank-srmod { color: var(--rank-srmod); text-shadow: 0 0 15px var(--rank-srmod); }
.stat-card .value.rank-mod { color: var(--rank-mod); text-shadow: 0 0 15px var(--rank-mod); }
.stat-card .value.rank-trial { color: var(--rank-trial); text-shadow: 0 0 15px var(--rank-trial); }
.stat-card .value.rank-united { color: var(--rank-united); text-shadow: 0 0 15px var(--rank-united); }
.stat-card .value.rank-builder { color: var(--rank-builder); text-shadow: 0 0 15px var(--rank-builder); }
.stat-card .value.rank-spider { color: var(--rank-spider); text-shadow: 0 0 15px var(--rank-spider); }
.stat-card .value.rank-htx { color: var(--rank-htx); text-shadow: 0 0 15px var(--rank-htx); }
.stat-card .value.rank-youtuber { color: var(--rank-youtuber); text-shadow: 0 0 15px var(--rank-youtuber); }
.stat-card .value.rank-emerald { color: var(--rank-emerald); text-shadow: 0 0 15px var(--rank-emerald); }
.stat-card .value.rank-diamond { color: var(--rank-diamond); text-shadow: 0 0 15px var(--rank-diamond); }
.stat-card .value.rank-gold { color: var(--rank-gold); text-shadow: 0 0 15px var(--rank-gold); }
.stat-card .value.rank-member {color: var(--rank-member); text-shadow: 0 0 15px var(--rank-member)}

.stat-card .value-small {
    font-size: 16px;
}

/* --- Time Details Card --- */
.time-details-container {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--htx-border);
    border-radius: 15px;
    padding: 25px;
}

.time-entry {
    display: flex;
    align-items: center;
    gap: 15px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 14px;
}

.time-entry:not(:last-child) {
    margin-bottom: 15px;
}

.time-entry .fa-icon {
    font-size: 16px;
    color: var(--htx-accent);
    opacity: 0.8;
    width: 20px;
    text-align: center;
}

.time-entry .label {
    font-weight: 600;
    color: white;
    flex-basis: 110px;
    flex-shrink: 0;
}

.time-entry .value {
    color: var(--htx-text);
}


/* --- Status Messages --- */
.status-message {
    margin-top: 30px;
    font-size: 18px;
    background: var(--htx-glass);
    backdrop-filter: blur(20px);
    padding: 30px;
    border-radius: 20px;
    max-width: 500px;
    border: 1px solid var(--htx-border);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    margin-left: auto;
    margin-right: auto;
}

.status-message.loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.status-message.error {
    border-color: var(--htx-error);
    background: rgba(244, 67, 54, 0.1);
    color: #ffcdd2;
}

/* --- Recent Searches --- */
.recent-searches {
    margin-top: 40px;
    width: 100%;
    max-width: 650px;
}

.recent-title {
    font-size: 18px;
    color: var(--htx-text);
    margin-bottom: 15px;
    font-weight: 600;
}

.recent-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.recent-item {
    background: var(--htx-glass);
    backdrop-filter: blur(10px);
    border: 1px solid var(--htx-border);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--htx-text);
}

.recent-item:hover {
    background: rgba(255, 153, 64, 0.1);
    border-color: var(--htx-accent);
    color: var(--htx-accent);
    transform: translateY(-2px);
}

/* --- Tooltip for Copy --- */
.copy-tooltip {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--htx-success);
    color: white;
    padding: 10px 20px;
    border-radius: 10px;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease, bottom 0.3s ease;
    pointer-events: none;
}

.copy-tooltip.show {
    opacity: 1;
    bottom: 40px;
}

/* --- Game Selector --- */
.game-selector {
    position: fixed;
    top: 30px;
    right: 20px;
    z-index: 9999;
}

#game-select {
    background-color: var(--htx-card-bg);
    color: var(--htx-text);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    padding: 10px 16px;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 140px;
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%23ff9940' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 12px center;
    background-repeat: no-repeat;
    background-size: 16px;
    padding-right: 40px;
}

#game-select:hover {
    background-color: rgba(255, 153, 64, 0.1);
    border-color: var(--htx-accent);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

#game-select:focus {
    outline: none;
    border-color: var(--htx-accent);
    box-shadow: 0 0 0 3px rgba(255, 153, 64, 0.2);
}

#game-select option {
    background-color: var(--htx-bg);
    color: var(--htx-text);
    padding: 12px;
    border: none;
}

/* Legacy select styling for backwards compatibility */
.select {
    background-color: var(--htx-card-bg);
    color: var(--htx-text);
    border: 1px solid var(--htx-border);
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
}

.select:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: var(--htx-accent);
}

.select:focus {
    outline: none;
    border-color: var(--htx-accent);
    box-shadow: 0 0 0 3px var(--htx-border);
}

.select option {
    background-color: var(--htx-bg);
    color: var(--htx-text);
    padding: 8px;
}

/* --- Responsive Design --- */
@media (max-width: 768px) {
    .nav-container {
        padding: 0 1rem;
    }
    .page-wrapper {
        padding: 6rem 1rem 2rem 1rem;
    }
    .search-container {
        flex-direction: column;
        gap: 20px;
    }

    .input-wrapper {
        max-width: 100%;
    }

    .search-btn {
        width: 100%;
        max-width: 300px;
    }

    .player-card {
        padding: 30px 25px;
    }

    .player-header {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    .player-skin {
        margin: 0 auto 15px auto;
    }
    .player-uuid-container {
        justify-content: center;
    }

    .status-wrapper {
        justify-content: center;
    }

    .player-info .name {
        font-size: 28px;
    }
    
    /* Game stats responsive */
    .game-stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .game-stats-grid .stat-card {
        padding: 20px 16px;
    }
    
    .game-stats-grid .stat-card .value-stat {
        font-size: 20px;
    }
}

@media (max-width: 650px) {
    .stats-row-top, .stats-row-mid {
        grid-template-columns: 1fr 1fr;
        max-width: 100%;
    }
    
    .game-stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }
}

@media (max-width: 480px) {
    .page-wrapper {
        padding: 5rem 1rem 1rem 1rem;
    }
    
    .main-title {
        font-size: 2.2rem;
    }

    .player-card {
        padding: 25px 20px;
    }
    
    .stats-row-top, .stats-row-mid {
        grid-template-columns: 1fr;
    }
    
    .game-stats-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .game-stats-grid .stat-card {
        padding: 18px 16px;
    }
    
    .game-stats-grid .stat-card .value-stat {
        font-size: 18px;
    }

    .stat-card .value-main {
        font-size: 24px;
    }
    .stat-card .value-small {
        font-size: 14px;
    }
    .time-entry {
        font-size: 12px;
        gap: 10px;
    }
    .time-entry .label {
        flex-basis: 90px;
    }
}