* {
    margin: 0;
    padding: 0;
    text-decoration: none;
    box-sizing: border-box;
    position: relative;
    outline: none;
}

body {
    color: #d0d0d0;
    font-family: sans-serif;
}

body {
    background: linear-gradient(
            135deg,
            #0a0a1a 0%,
            #12122e 30%,
            #1e1e3a 60%,
            #12122e 80%,
            #0a0a1a 100%
    );
    animation: bgPulse 12s ease-in-out infinite alternate;
}

@keyframes bgPulse {
    0% {
        background-position: 0 50%;
    }
    100% {
        background-position: 100% 50%;
    }
}


.content input {
    padding: 9pt 12pt;
    background: #252525;
    border: 1px solid #2c5791;
    color: #e0e0e0;
    font-size: 16pt;
    border-radius: 6pt;
    transition-duration: 200ms;
}

.content input:focus {
    background: #252525;
    border-color: #57c7ff;
    color: #ffffff;
}

.content input[disabled] {
    border-color: #555555;
    background: #252525;
}

.content textarea {
    padding: 9pt 12pt;
    background: #252525;
    border: 1px solid #2c5791;
    color: #e0e0e0;
    font-size: 16pt;
    border-radius: 6pt;
    resize: none;
    transition-duration: 200ms;
}

.content textarea:focus {
    background: #252525;
    border-color: #57c7ff;
    color: #ffffff;
}

.content textarea[disabled] {
    border-color: #555555;
    background: #303030;
}

.content button, .content .button {
    background: rgba(87, 199, 255, 0.15);
    border: 1px solid rgba(87, 199, 255, 0.4);
    color: #57c7ff;
    font-size: 15px;
    font-weight: 500;
    padding: 10px 20px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow:
            0 4px 16px rgba(87, 199, 255, 0.15),
            inset 0 0 0 1px rgba(255, 255, 255, 0.05);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    letter-spacing: 0.5px;
}

.content button:hover, .content .button:hover {
    background: rgba(87, 199, 255, 0.3);
    border-color: rgba(87, 199, 255, 0.7);
    box-shadow:
            0 8px 24px rgba(87, 199, 255, 0.3),
            inset 0 0 0 1px rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.content button:active, .content .button:active {
    transform: translateY(0);
    box-shadow:
            0 2px 8px rgba(87, 199, 255, 0.2),
            inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}


.content button.selected, .content .button.selected {
    background: rgba(111, 255, 100, 0.15);
    border: 1px solid rgba(160, 255, 100, 0.4);
    color: #8dff69;
}

.content a {
    color: #57c7ff;
    font-weight: bold;
}

.content a:hover {
    color: #a0e0ff;
}

.right {
    text-align: right;
}

.center {
    text-align: center;
}

table {
    width: 100%;
}

table tr td {
    padding: 5pt;
    vertical-align: top;
    border-bottom: 1px solid #2c5791;
}

table tr td:first-child {
    padding-right: 15pt;
}

header {
    padding: 10pt;
}

.header {
    position: fixed;
    top: 8pt;
    left: 8pt;
    right: 8pt;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #c0daff;
    border-radius: 12pt;
    overflow: hidden;
    background: rgba(18, 18, 30, 0.6);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    transition: background 0.3s ease;
}

header h1 {
    font-size: 25pt;
    padding-left: 20pt;
    cursor: pointer;
    color: #e0e0e0;
    transition-duration: 200ms;
}

header h1:hover {
    color: #8adeff;
}

header .search {
    flex: 1;
    text-align: center;
    padding: 0 125pt 0 145pt;
}

header .search .search-line {
    background: #0b1124;
    display: block;
    width: 100%;
    padding: 6pt;
    min-height: 25pt;
    border: 1px solid #323232;
    border-radius: 6pt;
    transition-duration: 200ms;
    color: #5d758c;
}

header .search .search-line:focus {
    background: #111111;
    border-color: #818181;
    color: white;
}

header .menu {
    display: flex;
    align-items: center;
    justify-content: center;
}

header .menu a {
    color: #ffffff;
    font-size: 16pt;
    font-weight: bold;
    padding: 20pt 25pt;
    transition-duration: 200ms;
}

header .menu a:hover {
    color: #a0e0ff;
}

.app {
    min-height: 60vh;
    display: flex;
    flex-direction: row;
}

.app .menu {
    margin-top: 60pt;
    width: 260pt;
    min-width: 260pt;
    color: #c0daff;
    padding: 10pt;
}

.app .menu a {
    color: #ffffff;
    font-size: 14pt;
    padding: 10pt 15pt;
    display: block;
    transition-duration: 200ms;
    border-radius: 12pt;
}

.app .menu a:hover {
    color: #ffc572;
    background: #162a3e;
}

.app .menu a.selected{
    color: #ffc572;
    background: #162a3e;
}

.app .content {
    flex: 1;
    padding: 10pt 20pt;
}

.app .content h2 {
    padding-bottom: 15pt;
}

.app .content {
    font-size: 16pt;
}

.app .content .input {
    padding-bottom: 12pt;
}

footer {
    text-align: center;
    display: flex;
    align-items: center;
    justify-items: center;
}

footer .text {
    text-align: center;
    flex: 1;
}


footer a {
    font-weight: bold;
    color: #ffffff;
    font-size: 14pt;
    padding: 15pt 25pt;
    transition-duration: 200ms;
}

footer a:hover {
    color: #3bc5ff;
}

.menu-item b {
    display: block;
    padding-top: 10pt;
}

.menu-item {
    background: rgba(30, 30, 58, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    padding: 20px;
    box-shadow:
            0 8px 32px rgba(0, 0, 0, 0.4),
            inset 0 1px 0 rgba(255, 255, 255, 0.03);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    text-align: center;
    color: #e0e0e0;
    min-height: 100px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.menu-item:hover {
    transform: translateY(-4px);
    background: rgba(52, 52, 88, 0.9);
    box-shadow:
            0 16px 48px rgba(0, 0, 0, 0.5),
            inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.menu-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(
            to right,
            transparent,
            rgba(255, 255, 255, 0.1),
            transparent
    );
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.wow {
    top: 8pt;
    right: 8pt;
    position: absolute;
    background: rgba(255, 98, 31, 0.9);
    border: 1px solid #ffa532;
    color: #333;
    font-weight: bold;
    font-size: 6pt;
    padding: 6pt;
    border-radius: 50%;
    box-shadow: 0 1pt 3pt rgba(0,0,0,0.1);
    z-index: 2;
}

.block {
    margin: 15pt 0;
    background: rgba(27, 39, 75, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #e0e0e0;
    font-size: 14pt;
    font-weight: 400;
    padding: 12pt 22pt;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow:
            0 6px 20px rgba(0, 0, 0, 0.4),
            inset 0 0 0 1px rgba(255, 255, 255, 0.03);
    white-space: nowrap;
    z-index: 1001;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    min-width: 120px;
    cursor: pointer;
}

.block:hover {
    color: white;
    background: rgba(34, 43, 95, 0.9);
}

.menu-item.warn {
    background: #5b1c1f;
}

.menu-item.warn:hover {
    background: #822b30;
}

.menu-item.green {
    background: #285028;
}

.menu-item.green:hover {
    background: #346834;
}

.flex_h {
    display: flex;
}

.flexfill {
    flex: 1;
}

.note {
    margin: 15pt 0;
    background: rgba(75, 46, 30, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #e0e0e0;
    font-size: 13pt;
    font-weight: 400;
    padding: 12pt 22pt;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow:
            0 6px 20px rgba(0, 0, 0, 0.4),
            inset 0 0 0 1px rgba(255, 255, 255, 0.03);
    white-space: nowrap;
    z-index: 1001;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    min-width: 120px;
}

button.back {
    background: rgba(146, 13, 25, 0.35);
    border: 1px solid rgba(255, 48, 94, 0.4);
    color: #ff9387;
}

button.back:hover {
    background: rgba(202, 13, 34, 0.35);
    border: 1px solid rgba(255, 135, 157, 0.4);
    color: #ffacb0;
}

button.reject {
    background: #8d0007;
    border-color: #7b001c;
}

button.reject:hover {
    background: #680007;
}

button.approve {
    background: #4b8d44;
    border-color: #5da74c;
}

button.approve:hover {
    background: #387138;
}

button.small {
    margin: 3pt;
    font-size: 12pt;
    padding: 5pt 10pt !important;
    min-width: auto;
    min-height: auto;
}

.status {
    font-size: 13pt;
    padding: 5pt 12pt;
    border-radius: 6pt;
    display: inline-block;
}

.status-pending {
    background: #52391a;
    font-weight: bold;
    border: 1px solid #986a3c;
    color: #d1d1d1;
}

.status-rejected {
    background: #4e0e27;
    font-weight: bold;
    border: 1px solid #af0022;
    color: #d1d1d1;
}

.status-approved {
    background: #254e27;
    font-weight: bold;
    border: 1px solid #579d4f;
    color: #d0e6d0;
}

.status-draft {
    background: #535353;
    font-weight: bold;
    border: 1px solid #979797;
    color: #cacaca;
}

.counter {
    background: #26374e;
    font-weight: bold;
    border: 1px solid transparent;
    color: #d1d1d1;
    padding: 5pt 12pt;
    display: inline-block;
    border-radius: 6pt;
}

.title {
    font-weight: bold;
    color: white;
    border: 1px solid transparent;
    padding: 5pt 8pt;
    display: inline-block;
    border-radius: 6pt;
}

.game-card {
    cursor: pointer;
    position: relative;
    display: inline-flex;
    flex-direction: column;
    width: 210pt;
    height: 210pt;
    border-radius: 12pt;
    overflow: hidden;
    transition-duration: 200ms;
    margin: 18pt;
}

.game-card:hover {
    color: #ffc572;
    background: #162a3e;
}

.game-card .logo {
    flex: 1;
    background-position: center;
}

.game-card .title {
    opacity: 0;
    position: absolute;
    border: 1px solid #3b3b3b;
    color: #333;
    font-weight: bold;
    font-size: 12pt;
    padding: 4pt 8pt;
    border-radius: 12pt;
    box-shadow: 0 1pt 3pt rgba(0,0,0,0.1);
    z-index: 2;
    bottom: 8px;
    left: 2%;
    width: 96%;
    text-align: center;
    height: 50pt;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    word-wrap: break-word;
    line-height: 1.3;
    transition-duration: 200ms;
}

.game-card:hover .title {
    opacity: 1;
    background: #040e17;
    color: white;
}

.game-card .likes, .game-card .age {
    position: absolute;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid #797979;
    color: #333;
    font-weight: bold;
    font-size: 12pt;
    padding: 4pt 8pt;
    border-radius: 4pt;
    box-shadow: 0 1pt 3pt rgba(0,0,0,0.1);
    z-index: 2;
}

.game-card .likes {
    top: 8px;
    left: 8px;
}

.game-card .age {
    top: 8px;
    right: 8px;
    background: #0e0e0e; /* красный фон для возраста */
    color: white;
}

.game-card .rating {
    opacity: 0;
    position: absolute;
    top: 8px;                    /* Отступ сверху */
    left: 50%;                   /* Центрируем по горизонтали */
    transform: translateX(-50%); /* Сдвигаем на половину своей ширины — идеальный центр */
    background: rgba(44, 88, 44, 0.9);
    color: #ffffff;
    font-weight: bold;
    font-size: 14pt;
    padding: 4pt 8pt;
    border-radius: 4pt;
    box-shadow: 0 1pt 3pt rgba(0,0,0,0.1);
    z-index: 3;                  /* выше, чем likes/age — чтобы не перекрывались */
    display: flex;
    align-items: center;
    gap: 4px;                    /* Расстояние между звёздой и цифрой */
    border: 1px solid #535353;
    transition-duration: 200ms;
}

.game-card:hover .rating {
    opacity: 1;
}

.flexgrid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    grid-auto-rows: min-content; /* Высота по содержимому */
    grid-gap: 20px; /* Отступы между карточками */
    grid-auto-flow: dense; /* ⬅️ КЛЮЧЕВОЙ ФЛАГ! */
    padding: 20px;
    text-align: center;
}

.flexgrid>div {
    opacity: 0;
    animation: fadeInUp 0.6s ease-out forwards;
}

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





