* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', system-ui, -apple-system, 'Inter', sans-serif;
}

body {
    background: linear-gradient(145deg, #0b0c1a 0%, #11122b 100%);
    color: #f0f0f0;
    min-height: 100vh;
}

.header {
    background: rgba(10, 12, 27, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 3px solid #ff5e00;
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 2rem;
}

.logo a {
    font-size: 1.8rem;
    font-weight: 800;
    background: linear-gradient(135deg, #ffb347, #ff5e00);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-decoration: none;
}

.logo span {
    font-size: 1rem;
    color: #ffcc88;
}

.nav-links {
    display: flex;
    gap: 1.8rem;
    flex-wrap: wrap;
}

.nav-links a {
    color: #e2e2ff;
    text-decoration: none;
    font-weight: 600;
    transition: 0.2s;
    border-bottom: 2px solid transparent;
    padding-bottom: 5px;
}

.nav-links a:hover, .nav-links a.active {
    color: #ffaa44;
    border-bottom-color: #ff5e00;
}

.container {
    max-width: 1300px;
    margin: 2rem auto;
    padding: 0 1.5rem;
}

.hero {
    background: radial-gradient(circle at 20% 30%, #1f1e3a, #0a0a1a);
    border-radius: 3rem;
    padding: 2.5rem 2rem;
    margin-bottom: 3rem;
    text-align: center;
    border: 1px solid rgba(255,94,0,0.3);
}

.hero h1 {
    font-size: 2.5rem;
    background: linear-gradient(135deg,#fff8e7, #ffaa55);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.game-card {
    background: #13142e;
    border-radius: 1.8rem;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid rgba(255,94,0,0.2);
}

.game-card:hover {
    transform: translateY(-8px);
    border-color: #ff7b2c;
}

.game-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.card-img {
    width: 100%;
    height: 170px;
    background: #2a2b4a;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: #ffc285;
}

.card-content {
    padding: 1.2rem;
}

.game-title {
    font-size: 1.4rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    display: flex;
    justify-content: space-between;
}

.game-price {
    background: #ff5e00;
    padding: 0.2rem 0.7rem;
    border-radius: 40px;
    font-size: 0.85rem;
    font-weight: bold;
}

.game-desc {
    font-size: 0.9rem;
    color: #bcbcff;
    margin: 0.7rem 0;
    line-height: 1.3;
}

.game-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    margin-top: 0.8rem;
    border-top: 1px solid #2e2f55;
    padding-top: 0.7rem;
}

.rating {
    color: #ffcc44;
}

.submit-section {
    background: #0e0f26;
    border-radius: 2rem;
    padding: 2rem;
    margin: 3rem 0;
    border: 1px solid #ff7b2c60;
}

.form-group {
    margin-bottom: 1.2rem;
}

input, select, textarea, .selection-input {
    width: 100%;
    padding: 0.9rem;
    border-radius: 1.5rem;
    border: none;
    background: #1e1f3e;
    color: white;
    font-size: 1rem;
}

.form-row {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.form-row .form-group {
    flex: 1;
}

button, .selection-btn, .pager-link {
    background: linear-gradient(95deg, #ff5e00, #ff8c42);
    border: none;
    padding: 0.9rem 2rem;
    border-radius: 3rem;
    font-weight: bold;
    font-size: 1rem;
    color: white;
    cursor: pointer;
    text-decoration: none;
}

.selection-btn, .pager-link {
    padding: 0.65rem 1rem;
}

.footer {
    background: #060717;
    margin-top: 4rem;
    padding: 2rem 1.5rem;
    border-top: 1px solid #ff5e00;
}

.footer-content {
    max-width: 1300px;
    margin: auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 2rem;
}

.footer-links a {
    color: #ffaa88;
    text-decoration: none;
    margin-right: 1.5rem;
}

.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #0a0c1c;
    backdrop-filter: blur(12px);
    padding: 1rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    z-index: 1000;
    border-top: 2px solid #ff5e00;
}

.game-detail {
    background: #12132e;
    border-radius: 2rem;
    padding: 2rem;
    margin-top: 1rem;
}

.detail-img {
    font-size: 6rem;
    text-align: center;
}

.error-msg {
    color: #ffaa66;
    background: #2a1a0a;
    padding: 1rem;
    border-radius: 2rem;
    text-align: center;
}

.loading-spinner {
    text-align: center;
    padding: 3rem;
    color: #ffaa66;
}

.pagination-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.8rem;
    flex-wrap: wrap;
    margin: 1rem 0 2rem;
}

.pager-link.active {
    color: #fff8e7;
    box-shadow: 0 0 0 2px rgba(255,255,255,0.1) inset;
}

.selection-body {
    background: linear-gradient(145deg, #0b0c1a 0%, #11122b 100%);
    color: #f0f0f0;
}

.selection-shell {
    width: min(1280px, calc(100% - 24px));
    margin: 0 auto;
}

.selection-header {
    padding: 24px 0 18px;
}

.selection-toolbar {
    background: #13142e;
    border-radius: 1.8rem;
    border: 1px solid rgba(255,94,0,0.2);
    padding: 16px;
    display: grid;
    gap: 14px;
}

.selection-toolbar__row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
}

.selection-actions, .selection-filters {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

.selection-status {
    font-size: 0.95rem;
    color: #bcbcff;
}

.selection-grid {
    display: grid;
    gap: 14px;
    padding: 18px 0 36px;
}

.selection-card {
    background: #13142e;
    border: 1px solid rgba(255,94,0,0.2);
    border-radius: 1.8rem;
    overflow: hidden;
    display: grid;
    grid-template-columns: 110px 1fr;
}

.selection-card img {
    width: 110px;
    height: 110px;
    object-fit: cover;
}

.selection-card__body {
    padding: 14px;
    display: grid;
    gap: 10px;
}

.selection-card__top {
    display: flex;
    gap: 10px;
    justify-content: space-between;
    align-items: flex-start;
}

.selection-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 0.86rem;
    color: #bcbcff;
}

.selection-card__title {
    margin: 0;
    font-size: 1.1rem;
    line-height: 1.25;
}

.selection-card__desc {
    margin: 0;
    color: #bcbcff;
    line-height: 1.55;
}

.selection-card__controls {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.selection-pill {
    border-radius: 999px;
    padding: 6px 10px;
    font-size: 0.8rem;
    background: #1e1f3e;
    color: #e2e2ff;
}

.selection-card.is-published {
    border-color: #2ecc71;
}

.selection-card.is-exhausted {
    opacity: 0.72;
}

@media (max-width: 700px) {
    .nav-container { flex-direction: column; gap: 1rem; }
    .hero h1 { font-size: 1.8rem; }
    .selection-card { grid-template-columns: 1fr; }
    .selection-card img { width: 100%; height: 220px; }
}
