/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700;900&family=Inter:wght@300;400;500;600;700&display=swap');

/* CSS Variables - Кроваво-неоновая схема */
:root {
    --primary: #ff0033;
    --secondary: #00ff88;
    --accent: #ff6600;
    --dark: #0a0a0a;
    --darker: #1a1a1a;
    --light: #ffffff;
    --gray: #333333;
    --gray-light: #666666;
    --gray-lighter: #999999;
    
    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(255, 0, 51, 0.1);
    --shadow-md: 0 4px 8px rgba(255, 0, 51, 0.2);
    --shadow-lg: 0 8px 16px rgba(255, 0, 51, 0.3);
    --shadow-neon: 0 0 20px rgba(255, 0, 51, 0.5);
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    /* Border radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    --radius-xl: 24px;
}

/* Reset and base styles */
* {
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    -webkit-tap-highlight-color: transparent;
}

html {
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

body {
    background: var(--dark);
    color: var(--light);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    overflow-x: hidden;
}



/* Header */
.site-header {
    padding: 20px 0;
    text-align: center;
    background: var(--dark);
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    position: relative;
}

.main-title {
    font-family: 'Orbitron', monospace;
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 900;
    color: var(--primary);
    text-align: center;
    text-transform: uppercase;
    margin-bottom: 30px;
    text-shadow: 0 0 20px rgba(255, 0, 51, 0.5);
    letter-spacing: 2px;
}

.logo-bg {
    background: var(--dark);
    padding: 20px;
    margin: 0 auto;
    max-width: 600px;
    transition: var(--transition-normal);
}



.logo-main {
    max-width: 100%;
    height: auto;
    display: block;
    transition: var(--transition-normal);
}

/* Logo block */
.logo-block {
    background: #000000;
    padding: 30px;
    margin: 20px auto;
    border-radius: var(--radius-lg);
    border: 1px solid transparent;
    backdrop-filter: blur(10px);
    transition: var(--transition-normal);
    max-width: 1450px;
    text-align: center;
}

.logo-block:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-neon);
    transform: translateY(-2px);
}

.logo-block-img {
    display: inline-block;
    transition: var(--transition-normal);
    max-width: 100%;
    height: auto;
}

/* Main content */
main {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 20px;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
}

/* Sections */
.description-section,
.donation-section,
.games-section,
.top-sponsors-section {
    margin-bottom: 40px;
    padding: 0;
}

.description {
    background: linear-gradient(135deg, rgba(255, 0, 51, 0.1) 0%, rgba(0, 255, 136, 0.05) 100%);
    padding: 30px;
    border-radius: var(--radius-lg);
    border: 1px solid transparent;
    backdrop-filter: blur(10px);
    transition: var(--transition-normal);
    max-width: 1450px;
    margin: 0 auto;
}

.description:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-neon);
    transform: translateY(-2px);
}

.description p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--light);
}



.top-sponsors-container {
    max-width: 1450px;
    margin: 0 auto;
    padding: 30px;
    background: linear-gradient(135deg, rgba(255, 0, 51, 0.15) 0%, rgba(0, 255, 136, 0.1) 100%);
    border-radius: var(--radius-lg);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    transition: var(--transition-normal);
}

.top-sponsors-container:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-neon);
    transform: translateY(-2px);
}

.top-sponsors-container::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('image111.jpg') center/cover;
    opacity: 0.1;
    z-index: -1;
}

.top-sponsors-container h2 {
    color: var(--primary);
    text-align: center;
    margin-bottom: 20px;
    font-family: 'Orbitron', monospace;
    font-size: 2rem;
    text-shadow: 0 0 5px rgba(255, 0, 51, 0.3), 0 0 10px rgba(255, 0, 51, 0.25), 0 0 15px rgba(255, 0, 51, 0.2), 0 0 20px rgba(255, 0, 51, 0.15), 0 0 25px rgba(255, 0, 51, 0.1), 0 0 30px rgba(255, 0, 51, 0.08), 0 0 35px rgba(255, 0, 51, 0.06), 0 0 40px rgba(255, 0, 51, 0.04), 0 0 45px rgba(255, 0, 51, 0.03);
}

.sponsors-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

/* Donation section */
.donation-links {
    background: linear-gradient(135deg, rgba(255, 0, 51, 0.15) 0%, rgba(0, 255, 136, 0.1) 100%);
    padding: 30px;
    border-radius: var(--radius-lg);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    transition: var(--transition-normal);
    max-width: 1450px;
    margin: 0 auto;
}

.donation-links:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-neon);
    transform: translateY(-2px);
}

.donation-links::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('image111.jpg') center/cover;
    opacity: 0.1;
    z-index: -1;
}

.donation-links h2 {
    color: var(--primary);
    text-align: center;
    margin-bottom: 20px;
    font-family: 'Orbitron', monospace;
    font-size: 2rem;
    text-shadow: 0 0 5px rgba(255, 0, 51, 0.3), 0 0 10px rgba(255, 0, 51, 0.25), 0 0 15px rgba(255, 0, 51, 0.2), 0 0 20px rgba(255, 0, 51, 0.15), 0 0 25px rgba(255, 0, 51, 0.1), 0 0 30px rgba(255, 0, 51, 0.08), 0 0 35px rgba(255, 0, 51, 0.06), 0 0 40px rgba(255, 0, 51, 0.04), 0 0 45px rgba(255, 0, 51, 0.03);
}

.donation-links ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.top-sponsors-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 20px;
    margin-top: -10px;
}

.donation-content {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 0;
}

.top-sponsors-left {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: auto;
}

.top-sponsors-right {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: auto;
}

.sponsor {
    display: flex;
    flex-direction: column;
    padding: 15px 20px;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: var(--transition-normal);
    backdrop-filter: blur(10px);
    min-width: 200px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    position: relative;
    cursor: pointer;
}

.sponsor-main {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sponsor:hover {
    transform: translateX(5px);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.1);
}

/* Специальные эффекты свечения для каждого спонсора */
.sponsor-gold:hover {
    box-shadow: 0 0 25px rgba(255, 215, 0, 0.6), 0 0 50px rgba(255, 215, 0, 0.3);
    border-color: #FFD700;
    background: rgba(255, 215, 0, 0.1);
}

.sponsor-silver:hover {
    box-shadow: 0 0 25px rgba(192, 192, 192, 0.6), 0 0 50px rgba(192, 192, 192, 0.3);
    border-color: #C0C0C0;
    background: rgba(192, 192, 192, 0.1);
}

.sponsor-bronze:hover {
    box-shadow: 0 0 25px rgba(205, 127, 50, 0.6), 0 0 50px rgba(205, 127, 50, 0.3);
    border-color: #CD7F32;
    background: rgba(205, 127, 50, 0.1);
}

.crown {
    font-size: 2rem;
    filter: drop-shadow(0 0 5px currentColor);
}

.crown-gold {
    color: #FFD700;
    filter: drop-shadow(0 0 8px #FFD700);
    transition: var(--transition-normal);
}

.crown-silver {
    color: #C0C0C0;
    filter: drop-shadow(0 0 8px #C0C0C0);
    transition: var(--transition-normal);
}

.crown-bronze {
    color: #CD7F32;
    filter: drop-shadow(0 0 8px #CD7F32);
    transition: var(--transition-normal);
}

/* Усиленное свечение корон при наведении на спонсора */
.sponsor-gold:hover .crown-gold {
    filter: drop-shadow(0 0 15px #FFD700) drop-shadow(0 0 25px #FFD700);
    transform: scale(1.1);
}

.sponsor-silver:hover .crown-silver {
    filter: drop-shadow(0 0 15px #C0C0C0) drop-shadow(0 0 25px #C0C0C0);
    transform: scale(1.1);
}

.sponsor-bronze:hover .crown-bronze {
    filter: drop-shadow(0 0 15px #CD7F32) drop-shadow(0 0 25px #CD7F32);
    transform: scale(1.1);
}

.sponsor-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.sponsor-name {
    font-weight: 700;
    color: var(--light);
    font-size: 1.1rem;
}

.sponsor-rank {
    font-size: 0.9rem;
    color: var(--gray-lighter);
    font-weight: 600;
}

/* Стили для заказов спонсоров */
.sponsor-orders {
    display: none;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 2px solid rgba(255, 255, 255, 0.2);
}

.sponsor.active .sponsor-orders {
    display: block;
}

.orders-title {
    color: var(--primary);
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 10px;
    text-align: center;
    text-shadow: 0 0 10px rgba(255, 0, 51, 0.5);
}

.order-item {
    color: var(--light);
    font-size: 0.85rem;
    margin-bottom: 6px;
    padding: 3px 0;
    transition: var(--transition-fast);
    text-align: center;
}

.order-item:last-child {
    margin-bottom: 0;
}

.order-item:hover {
    color: var(--primary);
    transform: translateX(3px);
}

.donation-buttons {
    flex: 1;
    display: flex;
    justify-content: center;
}

.donation-buttons ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.donation-links li a {
    color: var(--light);
    text-decoration: none;
    font-size: 1.1rem;
    padding: 12px 24px;
    border: 2px solid var(--secondary);
    border-radius: var(--radius-md);
    background: rgba(0, 255, 136, 0.1);
    transition: var(--transition-normal);
    display: inline-block;
    font-weight: 500;
}

.donation-links li a:hover {
    background: var(--secondary);
    color: var(--dark);
    transform: translateY(-2px);
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.5);
}

/* Permanent Services Section */
.permanent-services-section {
    margin-bottom: 40px;
}

.permanent-services {
    background: linear-gradient(135deg, rgba(255, 0, 51, 0.15) 0%, rgba(0, 255, 136, 0.1) 100%);
    padding: 30px;
    border-radius: var(--radius-lg);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    transition: var(--transition-normal);
    max-width: 1450px;
    margin: 0 auto;
}

.permanent-services:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-neon);
    transform: translateY(-2px);
}

.permanent-services::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('image111.jpg') center/cover;
    opacity: 0.1;
    z-index: -1;
}

.permanent-services h2 {
    color: var(--primary);
    text-align: center;
    margin-bottom: 30px;
    font-family: 'Orbitron', monospace;
    font-size: 2rem;
    text-shadow: 0 0 5px rgba(255, 0, 51, 0.3), 0 0 10px rgba(255, 0, 51, 0.25), 0 0 15px rgba(255, 0, 51, 0.2), 0 0 20px rgba(255, 0, 51, 0.15), 0 0 25px rgba(255, 0, 51, 0.1), 0 0 30px rgba(255, 0, 51, 0.08), 0 0 35px rgba(255, 0, 51, 0.06), 0 0 40px rgba(255, 0, 51, 0.04), 0 0 45px rgba(255, 0, 51, 0.03);
}





/* Вариант 2: Карточки */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

.service-card {
    background: rgba(255, 255, 255, 0.08);
    border: 2px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-lg);
    padding: 25px;
    transition: var(--transition-normal);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 20px;
}

.service-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 0, 51, 0.1) 0%, rgba(0, 255, 136, 0.05) 100%);
    opacity: 0;
    transition: var(--transition-normal);
    z-index: -1;
}

.service-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 10px 30px rgba(255, 0, 51, 0.3);
}

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

.service-card .service-icon {
    font-size: 3rem;
    min-width: 60px;
    text-align: center;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.3));
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-icon-img {
    width: 48px;
    height: 48px;
    object-fit: contain;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.3));
}

.service-content {
    flex: 1;
}

.service-content h3 {
    color: var(--light);
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 10px 0;
    line-height: 1.3;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.2);
}

.service-content .service-price {
    color: var(--secondary);
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0px 0;
    text-shadow: 0 0 10px rgba(0, 255, 136, 0.5);
}





/* Special hover effects for each service card */
.service-movies:hover {
    border-color: #ff6b6b;
    box-shadow: 0 10px 30px rgba(255, 107, 107, 0.4);
}

.service-series:hover {
    border-color: #4ecdc4;
    box-shadow: 0 10px 30px rgba(78, 205, 196, 0.4);
}

.service-tank:hover {
    border-color: #45b7d1;
    box-shadow: 0 10px 30px rgba(69, 183, 209, 0.4);
}

/* Games section */
.table-section-wrapper {
    background-image: url('image111.jpg');
    background-size: 600px 400px;
    background-position: center top;
    background-repeat: repeat;
    padding: 30px;
    border-radius: var(--radius-lg);
    border: 1px solid transparent;
    backdrop-filter: blur(10px);
    transition: var(--transition-normal);
    position: relative;
    max-width: 1450px;
    margin: 0 auto;
}

/* Убираем горизонтальные границы между строками таблицы */
#game-table {
    border-collapse: collapse;
}

#game-table td {
    border: none;
}

#game-table tr {
    border: none;
}

.table-section-wrapper:hover {
    border-color: rgba(255, 0, 51, 0.3);
    box-shadow: var(--shadow-neon);
    transform: translateY(-2px);
}

.table-section-wrapper::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    border-radius: var(--radius-lg);
    z-index: 1;
}

.table-section-wrapper > * {
    position: relative;
    z-index: 2;
}

.table-section-wrapper h2 {
    color: var(--primary);
    text-align: center;
    margin-bottom: 30px;
    font-family: 'Orbitron', monospace;
    font-size: 2.5rem;
    text-shadow: 0 0 5px rgba(255, 0, 51, 0.3), 0 0 10px rgba(255, 0, 51, 0.25), 0 0 15px rgba(255, 0, 51, 0.2), 0 0 20px rgba(255, 0, 51, 0.15), 0 0 25px rgba(255, 0, 51, 0.1), 0 0 30px rgba(255, 0, 51, 0.08), 0 0 35px rgba(255, 0, 51, 0.06), 0 0 40px rgba(255, 0, 51, 0.04), 0 0 45px rgba(255, 0, 51, 0.03), 0 0 50px rgba(255, 0, 51, 0.02);
}







/* History Separator */
.history-separator {
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.1) 0%, rgba(255, 0, 51, 0.05) 100%);
    border-top: 2px solid var(--secondary);
    border-bottom: 2px solid var(--secondary);
    outline: 4px solid #00FF7F;
    outline-offset: 4px;
    border-radius: 12px;
}

.history-separator-content {
    text-align: center;
    padding: 20px;
}

.history-separator-content h3 {
    color: var(--secondary);
    font-family: 'Orbitron', monospace;
    font-size: 1.8rem;
    margin: 0;
    text-shadow: 0 0 5px rgba(0, 255, 136, 0.3), 0 0 10px rgba(0, 255, 136, 0.25);
}

/* Ordered Games */
.ordered-game {
    border: 2px solid var(--secondary);
}

.ordered-game:hover {
    border-color: var(--accent);
}

/* Mobile History Separator */
.history-separator-mobile {
    text-align: center;
    padding: 30px 20px;
    margin: 20px 0;
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.1) 0%, rgba(255, 0, 51, 0.05) 100%);
    border-radius: var(--radius-md);
    border: 2px solid var(--secondary);
    outline: 4px solid #00FF7F;
    outline-offset: 4px;
}

.history-separator-mobile h3 {
    color: var(--secondary);
    font-family: 'Orbitron', monospace;
    font-size: 1.5rem;
    margin: 0;
    text-shadow: 0 0 5px rgba(0, 255, 136, 0.3), 0 0 10px rgba(0, 255, 136, 0.25);
}

/* Mobile Ordered Games */
.ordered-game-mobile {
    border: 2px solid var(--secondary);
}

/* Customer Name Styles */
.customer-name {
    text-align: center;
    padding: 10px;
}

.customer-nickname {
    color: var(--secondary);
    font-family: 'Orbitron', monospace;
    font-size: 1.1rem;
    font-weight: bold;
    text-shadow: 0 0 5px rgba(0, 255, 136, 0.3);
}

.game-card-mobile-customer {
    text-align: center;
    padding: 10px;
    border-top: 1px solid var(--gray);
}

.game-card-mobile-customer .customer-nickname {
    color: var(--secondary);
    font-family: 'Orbitron', monospace;
    font-size: 1rem;
    font-weight: bold;
    text-shadow: 0 0 5px rgba(0, 255, 136, 0.3);
}

/* Controls */
.controls-wrapper {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    flex-wrap: wrap;
    justify-content: center;
}

.search-container {
    position: relative;
    flex: 1;
    min-width: 300px;
    max-width: 500px;
}

.search-input {
    width: 100%;
    padding: 15px 45px 15px 20px;
    border: 2px solid var(--gray);
    border-radius: var(--radius-md);
    background: var(--darker);
    color: var(--light);
    font-size: 1rem;
    transition: var(--transition-normal);
}

.search-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 15px rgba(255, 0, 51, 0.3);
}

.clear-search-btn {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--gray-lighter);
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transition-fast);
}

.clear-search-btn:hover {
    color: var(--primary);
}

.filter-container {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.filter-select {
    padding: 15px 20px;
    border: 2px solid var(--gray);
    border-radius: var(--radius-md);
    background: var(--darker);
    color: var(--light);
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition-normal);
    min-width: 150px;
}

.filter-select:focus {
    outline: none;
    border-color: var(--secondary);
    box-shadow: 0 0 15px rgba(0, 255, 136, 0.3);
}

/* Sort buttons */
.sort-buttons-outer {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
}

.sort-buttons-wrapper {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
}

.sort-button {
    background: linear-gradient(135deg, var(--gray) 0%, var(--gray-light) 100%);
    color: var(--light);
    font-size: 1rem;
    font-weight: 600;
    border: 2px solid transparent;
    border-radius: var(--radius-md);
    padding: 15px 25px;
    cursor: pointer;
    transition: var(--transition-normal);
    font-family: 'Inter', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.sort-button:hover {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    transform: translateY(-2px);
    box-shadow: var(--shadow-neon);
}

.sort-button.active {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    border-color: var(--secondary);
    box-shadow: var(--shadow-neon);
}



/* Table styles */
table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-md);
    overflow: hidden;
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-md);
}

th, td {
    padding: 15px;
    text-align: center;
    border-bottom: 1px solid rgba(255, 0, 51, 0.2);
}

/* Выравнивание по центру для колонки "Доп. информация" */
td:nth-child(3) { /* Доп. информация */
    text-align: center;
}

/* Выравнивание по левому краю для колонки "Цена" */
td:nth-child(6) { /* Цена */
    text-align: left;
}

td:nth-child(7), th:nth-child(7) { /* Статус */
    min-width: 200px;
    max-width: 250px;
    width: auto;
    white-space: pre-line;
    word-break: break-word;
}

td:nth-child(6), th:nth-child(6) { /* Цена */
    min-width: 220px;
    max-width: 300px;
}

th {
    background: linear-gradient(to bottom, var(--primary) 0%, var(--accent) 100%);
    color: var(--light);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: 'Orbitron', monospace;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

th:last-child {
    border-right: none;
}

td {
    color: var(--light);
    vertical-align: middle;
}

tbody tr {
    transition: var(--transition-fast);
}

tbody tr:hover {
    background: rgba(255, 0, 51, 0.1);
    transform: scale(1.01);
}

td img {
    max-width: 80px;
    height: auto;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-fast);
}

td img:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-md);
}

/* Donate buttons */
.donate-buttons {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.donate-button {
    display: inline-block;
    padding: 8px 16px;
    margin: 2px;
    color: var(--light);
    text-decoration: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition-fast);
    font-size: 0.9rem;
    font-weight: 600;
    border: 1px solid transparent;
}

.donate-button:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.button-da {
    background: linear-gradient(135deg, #ff8f00 0%, #ff6600 100%);
}

.button-dp {
    background: linear-gradient(135deg, #4caf50 0%, #45a049 100%);
}

.button-dt {
    background: linear-gradient(135deg, #9c27b0 0%, #7b1fa2 100%);
}

#game-cards-mobile {
    display: none;
}

.game-card-mobile {
    background: linear-gradient(135deg, rgba(255, 0, 51, 0.1) 0%, rgba(0, 255, 136, 0.05) 100%);
    border: 1px solid transparent;
    border-radius: var(--radius-lg);
    padding: 20px;
    margin-bottom: 20px;
    backdrop-filter: blur(10px);
    transition: var(--transition-normal);
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    will-change: transform;
}

.game-card-mobile:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-neon);
    transform: translateY(-2px);
}

.game-card-mobile-poster {
    width: 100px;
    height: 150px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    margin-bottom: 15px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.game-card-mobile-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 10px;
    text-align: center;
}

.game-card-mobile-info,
.game-card-mobile-date,
.game-card-mobile-lang,
.game-card-mobile-price,
.game-card-mobile-status {
    margin-bottom: 8px;
    font-size: 0.9rem;
    line-height: 1.4;
}

.game-card-mobile-donate {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    flex-wrap: wrap;
    justify-content: center;
}

.game-card-mobile-donate .donate-button {
    flex: 1;
    min-width: 120px;
    text-align: center;
    padding: 12px;
    font-size: 1rem;
}



/* Back to top button */
.back-to-top-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: var(--light);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5rem;
    box-shadow: var(--shadow-neon);
    transition: var(--transition-normal);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
}

.back-to-top-btn.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 30px rgba(255, 0, 51, 0.7);
}

/* Loading overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 1;
    visibility: visible;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.loading-overlay.hidden {
    opacity: 0;
    visibility: hidden;
}

.loading-spinner {
    display: flex;
    justify-content: center;
    align-items: center;
}

.ap {
    width: 6em;
    height: 12em;
}

.ap__ring {
    stroke: hsla(223, 10%, 10%, 0.15);
    transition: stroke 0.3s;
}

.ap__worm1,
.ap__worm2 {
    animation-duration: 3s;
    animation-iteration-count: infinite;
}

.ap__worm1 {
    animation-name: worm1;
}

.ap__worm2 {
    animation-name: worm2;
    visibility: hidden;
}

/* Animations */
@keyframes worm1 {
    from {
        animation-timing-function: ease-in-out;
        stroke-dashoffset: -87.96;
    }
    20% {
        animation-timing-function: ease-in;
        stroke-dashoffset: 0;
    }
    60% {
        stroke-dashoffset: -791.68;
        visibility: visible;
    }
    60.1%,
    to {
        stroke-dashoffset: -791.68;
        visibility: hidden;
    }
}

@keyframes worm2 {
    from,
    60% {
        stroke-dashoffset: -87.96;
        visibility: hidden;
    }
    60.1% {
        animation-timing-function: cubic-bezier(0, 0, 0.5, 0.75);
        stroke-dashoffset: -87.96;
        visibility: visible;
    }
    77% {
        animation-timing-function: cubic-bezier(0.5, 0.25, 0.5, 0.88);
        stroke-dashoffset: -340;
        visibility: visible;
    }
    to {
        stroke-dashoffset: -669.92;
        visibility: visible;
    }
}








/* Responsive design */
@media (max-width: 1200px) {
    main {
        padding: 0 15px;
    }
    
    .controls-wrapper {
        flex-direction: column;
        align-items: center;
    }
    
    .search-container {
        min-width: 100%;
        max-width: 100%;
    }
}

@media (max-width: 900px) {
    .table-section-wrapper {
        padding: 20px;
    }
    
    table {
        font-size: 0.9rem;
    }
    
    th, td {
        padding: 10px;
    }
    
    .donation-links ul {
        flex-direction: column;
        align-items: center;
    }
    
    .donation-links li a {
        width: 100%;
        text-align: center;
        max-width: 300px;
    }
    
    .donation-content {
        flex-direction: column;
        gap: 15px;
    }
    
    .top-sponsors-left,
    .top-sponsors-right {
        flex-direction: row;
        justify-content: center;
        gap: 8px;
        flex-wrap: wrap;
    }
    
    .sponsor {
        flex-direction: row;
        text-align: left;
        min-width: auto;
        padding: 6px 10px;
    }
    
    .crown {
        font-size: 1.6rem;
    }
    
    .sponsor-name {
        font-size: 0.8rem;
    }
    
    .sponsor-rank {
        font-size: 0.7rem;
    }
}

@media (max-width: 700px) {
    .table-section-wrapper {
        padding: 15px 10px;
        border-radius: 10px;
        margin: 10px 5px;
    }
    
    #game-table {
        display: none !important;
    }
    
    #game-cards-mobile {
        display: block !important;
    }
    
    .game-card-mobile {
        margin-bottom: 15px;
        padding: 15px 10px;
        border-radius: 10px;
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
    }
    
    .sort-buttons-wrapper {
        flex-direction: column;
        width: 100%;
        gap: 10px;
    }
    
    .sort-button {
        width: 100%;
        padding: 12px;
        font-size: 14px;
    }
    
    .filter-container {
        flex-direction: column;
        width: 100%;
    }
    
    .filter-select {
        width: 100%;
        padding: 12px;
        font-size: 16px;
    }
    
    .back-to-top-btn {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 1.3rem;
        border-radius: 50%;
    }
    
    .description {
        padding: 20px 15px;
        margin: 10px 5px;
        border-radius: 10px;
    }
    
    .top-sponsors-container {
        padding: 20px 15px;
        margin: 10px 5px;
        border-radius: 10px;
    }
    
    .donation-links {
        padding: 20px 15px;
        margin: 10px 5px;
        border-radius: 10px;
    }
    
    .logo-block {
        padding: 20px 15px;
        margin: 10px 5px;
        border-radius: 10px;
    }
    
    .logo-block-img {
        max-width: 75%;
        height: auto;
    }
}

@media (max-width: 480px) {
    main {
        padding: 0 5px;
        -webkit-overflow-scrolling: touch;
    }
    
    .description,
    .donation-links,
    .table-section-wrapper {
        padding: 15px 10px;
        margin: 10px 5px;
        border-radius: 10px;
    }
    
    .main-title {
        font-size: 1.8rem;
    }
    
    .logo-bg {
        padding: 10px;
    }
    
    .logo-block {
        padding: 15px 10px;
        margin: 10px 5px;
        border-radius: 10px;
    }
    
    .logo-block-img {
        max-width: 70%;
        height: auto;
    }
    
    .game-card-mobile {
        padding: 15px 10px;
        margin: 10px 5px;
        border-radius: 10px;
        will-change: transform;
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
    }
    
    .game-card-mobile-donate {
        flex-direction: column;
        gap: 8px;
    }
    
    /* Мобильные кнопки доната */
@media (max-width: 480px) {
    .game-card-mobile-donate .donate-button {
        width: 100%;
        padding: 10px;
        font-size: 0.9rem;
    }
}
    
    .top-sponsors-container {
        padding: 20px 15px;
        margin: 10px 5px;
        border-radius: 10px;
    }
    
    .sponsors-grid {
        flex-direction: column;
        gap: 15px;
    }
    
    .sponsor {
        width: 100%;
        padding: 15px;
        border-radius: 10px;
    }
    
    .crown {
        font-size: 2rem;
    }
    
    .sponsor-name {
        font-size: 1.1rem;
    }
    
    .sponsor-rank {
        font-size: 0.9rem;
    }
    
    .description p {
        font-size: 1rem;
        line-height: 1.6;
    }
    
    .search-input {
        font-size: 16px;
        padding: 12px;
    }
    
    .filter-select {
        font-size: 16px;
        padding: 12px;
    }
    
    .sort-button {
        font-size: 14px;
        padding: 10px 15px;
    }
    
    * {
        -webkit-tap-highlight-color: transparent;
    }
}



/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Smooth transitions for interactive elements */
.game-card-mobile,
.service-card,
.sponsor,
.game-table tbody tr,
.donate-button,
.queue-btn,
.back-to-top-btn {
    transition: all 0.3s ease;
}

/* Hover effects */
.game-card-mobile:hover,
.service-card:hover,
.sponsor:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Poster sizes */
.game-card-mobile img {
    width: 100px;
    height: 150px;
}

td[data-label="Постер"] img {
    width: 80px;
    height: 120px;
}

/* Smooth appearance animations */
.game-card-mobile,
.service-card,
.sponsor {
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
}



@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Accessibility: respect user's motion preferences */
@media (prefers-reduced-motion: reduce) {
    .game-card-mobile,
    .service-card,
    .sponsor {
        animation: none;
        transition: none;
    }
}

.donate-button:hover,
.queue-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(255, 0, 51, 0.3);
}

.back-to-top-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 30px rgba(255, 0, 51, 0.7);
}

/* Print styles */
@media print {
    .back-to-top-btn,
    .loading-overlay,
    .sort-buttons-wrapper,
    .controls-wrapper,
    .pagination {
        display: none !important;
    }
    
    body {
        background: white;
        color: black;
    }
    
    .description,
    .donation-links,
    .table-section-wrapper {
        background: white;
        border: 1px solid #ccc;
        box-shadow: none;
    }
}

.sponsor-extra {
    display: none;
    flex-direction: column;
    align-items: flex-start;
    margin-top: 2px;
    margin-bottom: 2px;
}
.sponsor-amount {
    font-size: 1.1em;
    color: #3cff7a;
    font-weight: bold;
    line-height: 1.1;
}
.sponsor-orders-label {
    font-size: 0.75em;
    color: #aaa;
    margin-top: 1px;
    margin-bottom: 2px;
    line-height: 1;
}
.sponsor.active .sponsor-extra {
    display: flex;
}
.sponsor:not(.active) .sponsor-extra {
    display: none;
}

.queue-btn {
    margin-left: 20px;
    padding: 10px 22px;
    background: linear-gradient(90deg, #ff2a2a 0%, #ffb347 100%);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(255,0,51,0.15);
    transition: background 0.2s, box-shadow 0.2s;
}
.queue-btn:hover {
    background: linear-gradient(90deg, #ffb347 0%, #ff2a2a 100%);
    box-shadow: 0 4px 20px rgba(255,0,51,0.25);
}

.queue-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0; top: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.65);
    justify-content: center;
    align-items: center;
}
.queue-modal.open {
    display: flex;
}
.queue-modal-content {
    background: #181818;
    border-radius: 14px;
    padding: 32px 28px 24px 28px;
    min-width: 400px;
    max-width: 98vw;
    box-shadow: 0 8px 32px rgba(0,0,0,0.45);
    position: relative;
    color: #fff;
    text-align: center;
}
.queue-modal-close {
    position: absolute;
    top: 12px;
    right: 18px;
    font-size: 2rem;
    color: #ff2a2a;
    cursor: pointer;
    font-weight: bold;
    transition: color 0.2s;
}
.queue-modal-close:hover {
    color: #ffb347;
}
#queue-list {
    margin: 18px 0 0 0;
    padding: 0;
    list-style: none;
    text-align: left;
    max-height: 350px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #222 #181818;
}
#queue-list::-webkit-scrollbar {
    width: 6px;
    background: #181818;
}
#queue-list::-webkit-scrollbar-thumb {
    background: #222;
    border-radius: 4px;
}
#queue-list li {
    padding: 7px 0;
    border-bottom: 1px solid #333;
    font-size: 1.08em;
    color: #fff;
    background: none;
}
#queue-list li:last-child {
    border-bottom: none;
}
#queue-list .queue-game-title {
    color: #fff;
    font-weight: 700;
    font-size: 1.08em;
    text-shadow: 0 1px 4px #222, 0 0 2px #000;
}
.queue-playlist-link {
    color: #00e676;
    font-weight: 700;
    text-decoration: underline;
    margin-right: 8px;
    transition: color 0.2s;
}
.queue-playlist-link:hover {
    color: #ffb347;
}
.queue-wait {
    color: #888;
    font-style: italic;
    margin-right: 8px;
}
.queue-sponsor {
    color: #ffb347;
    font-size: 1em;
    margin-left: 4px;
    font-weight: 600;
}
.queue-modal-content h3 {
    background: none;
    color: #fff;
    font-size: 1.45em;
    font-weight: 800;
    padding: 14px 0 12px 0;
    border-radius: 10px;
    margin-bottom: 18px;
    letter-spacing: 0.5px;
    border: 2px solid #a94444;
    box-shadow: none;
}
.queue-sep {
    display: inline-block;
    vertical-align: middle;
    margin: 0 6px 0 6px;
    color: #aaa;
    opacity: 0.7;
    font-size: 1.1em;
    font-weight: 400;
}
.queue-row-flex {
    display: flex;
    flex-direction: row;
    align-items: baseline;
    gap: 0.5em;
    margin-top: 2px;
}
.queue-row-flex .queue-playlist-link,
.queue-row-flex .queue-wait {
    min-width: 0;
}
.queue-row-flex .queue-sep {
    margin-left: 4px;
    margin-right: 0;
}
.queue-row-flex .queue-sep,
.queue-row-flex .queue-sponsor {
    white-space: nowrap;
}


