/* Common styles for Jeet Hunter game - SPY THEME BASE */
/* Theme Variables */
:root {
    --tg-theme-bg-color: #0a0f18; /* Darker base */
    --tg-theme-text-color: #dde1e8;
    --tg-theme-hint-color: #7a89a0;
    --tg-theme-link-color: #5d9cec;
    --tg-theme-button-color: #5d9cec; /* Blue accent */
    --tg-theme-button-text-color: #ffffff;
    --tg-theme-secondary-bg-color: rgba(30, 40, 60, 0.85);

    /* Spy Theme Specific */
    --spy-font-family: 'Rajdhani', sans-serif;
    --spy-gold-accent: #FFD700;
    --spy-gold-glow: rgba(255, 215, 0, 0.4);
    --spy-blue-glow: rgba(93, 156, 236, 0.4);
    --spy-red-alert: #f04a4f;
}

/* Font imports */
@font-face {
    font-family: 'Neue Pixel Sans';
    /* Assuming fonts dir is at root level */
    src: url('./fonts/NeuePixelSans.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

/* Global styles */
* {
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
    box-sizing: border-box;
}

/* Base Body Styles */
body {
    margin: 0;
    font-family: var(--spy-font-family); /* <<< SET GLOBAL SPY FONT HERE */
    font-weight: 400;
    background-color: var(--tg-theme-secondary-bg-color, #1e283c);
    color: var(--tg-theme-text-color, #dde1e8);
    line-height: 1.6;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Background for non-index pages */
body:not(.index-page) {
    background-image: url('indexbg.png');
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-position: top center;
    background-size: cover;
    background-color: #0a0f18; /* Darker fallback */
}

.container {
    width: 100%;
    max-width: 600px;
    padding: 20px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    /* Base container styles should not interfere with index page layout */
}

/* Base Buttons - SPY Theme */
.button {
    display: inline-block; /* Allow inline-block behavior */
    padding: 10px 20px; /* Adjusted default padding */
    background-color: var(--tg-theme-button-color);
    color: var(--tg-theme-button-text-color);
    border: 1px solid transparent;
    border-radius: 6px; /* Sharper radius */
    font-family: inherit; /* Use body font */
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease-out; /* Standard transition */
    text-decoration: none;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.button:hover {
    filter: brightness(1.1);
}

.button:active {
    transform: scale(0.97);
    filter: brightness(0.95);
}

.button.secondary {
    background-color: var(--tg-theme-secondary-bg-color);
    color: var(--tg-theme-link-color);
    border: 1px solid var(--tg-theme-link-color);
}

.button.secondary:hover {
    background-color: rgba(93, 156, 236, 0.15); /* Link color transparent */
    filter: brightness(1);
}

/* Headers - SPY Theme */
.header {
    text-align: center;
    margin-bottom: 20px;
}

.header h1 {
    font-size: 24px;
    font-weight: 700; /* Bold */
    margin: 0;
    padding: 10px 0;
    color: var(--spy-gold-accent); /* Gold title */
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
    letter-spacing: 1px;
}

/* Loading indicator - SPY Theme */
.loading {
    text-align: center;
    font-size: 14px;
    padding: 30px 20px;
    color: var(--tg-theme-hint-color);
    font-weight: 600;
    letter-spacing: 0.5px;
}

.loading::after {
    content: ' 📡'; /* Radar emoji */
    display: inline-block;
    font-size: 18px;
    animation: pulse 1.5s ease-in-out infinite;
    margin-left: 5px;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 0.7; }
    50% { transform: scale(1.1); opacity: 1; }
    100% { transform: scale(1); opacity: 0.7; }
}

/* Wallet Address Specific Styles */
code {
    /* Style for wallet address displayed in code tags */
    color: white;
    background-color: rgba(255, 255, 255, 0.1);
    padding: 2px 5px;
    border-radius: 4px;
    font-family: monospace;
}

.wallet-input::placeholder {
    /* Style for wallet input placeholder text */
    color: rgba(255, 255, 255, 0.7); /* Lighter hint color */
}

/* Dark mode support (adjust if needed) */
@media (prefers-color-scheme: dark) {
    /* Base variables are already dark-themed */
}

/* Tournament specific styles can be added to separate sections */ 