h1 {
    font-size: 2em;
}
h2 {
    font-size: 1.5em;
}

h1, h2, h3, h4, h5, h6 {
    font-family: Comfortaa, Avenir, "Avenir Next", "Helvetica Neue", "Segoe UI", Helvetica, Arial, sans-serif;
    font-weight: 400;
}
.navbar .navbar-brand,
.navbar .nav-link,
.navbar .navbar-text {
    font-family: Comfortaa, Avenir, "Avenir Next", "Helvetica Neue", "Segoe UI", Helvetica, Arial, sans-serif;
    font-weight: 300;
}
.empty-state-text {
    font-family: Comfortaa, Avenir, "Avenir Next", "Helvetica Neue", "Segoe UI", Helvetica, Arial, sans-serif;
    font-weight: 300;
    font-size: 1.2em;
}
body {
    font-family: Raleway, Avenir, "Avenir Next", "Helvetica Neue", "Segoe UI", Helvetica, Arial, sans-serif;
    font-weight: 300;
    min-height: 100vh;
    background:
        radial-gradient(circle at 12% 8%, rgba(255, 52, 157, .14), transparent 28rem),
        radial-gradient(circle at 88% 16%, rgba(0, 229, 255, .13), transparent 30rem),
        #080912;
    color: #eef0ff;
}
body::before {
    content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 9999; opacity: .045;
    background: repeating-linear-gradient(to bottom, transparent 0, transparent 3px, #fff 4px);
}
.page-shell { max-width: 1320px; padding-bottom: 4rem; }
#navbar {
    background: rgba(8, 9, 18, .78) !important;
    border-bottom: 1px solid rgba(91, 245, 255, .16);
    backdrop-filter: blur(18px); position: sticky; top: 0; z-index: 50;
}
.navbar-brand { display: inline-flex; align-items: center; gap: .65rem; font-weight: 700 !important; letter-spacing: .04em; }
.brand-pixel {
    display: grid; place-items: center; width: 34px; height: 34px; color: #080912;
    background: #5bf5ff; border-radius: 4px; font-weight: 800; box-shadow: 4px 4px 0 #ff349d;
}
.navbar .nav-link { color: #aeb3cb; }
.navbar .nav-link:hover { color: #5bf5ff; }
.library-hero { display: flex; justify-content: space-between; align-items: end; gap: 2rem; padding: 3.5rem 0 2rem; }
.library-hero h1 { margin: .25rem 0 .4rem; font-size: clamp(2.4rem, 6vw, 5.5rem); font-weight: 700; letter-spacing: -.06em; }
.eyebrow { color: #5bf5ff; font: 700 .72rem/1 Comfortaa, sans-serif; letter-spacing: .22em; }
.library-subtitle { color: #9ba1ba; max-width: 620px; margin: 0; font-size: 1.05rem; }
.library-count { display: flex; flex-direction: column; align-items: end; color: #8f95ad; white-space: nowrap; }
.library-count strong { font: 700 2.5rem/1 Comfortaa, sans-serif; color: #ff349d; }
.library-toolbar { padding: .75rem; border: 1px solid rgba(255,255,255,.09); background: rgba(20,22,38,.72); border-radius: 14px; }
.library-toolbar .form-control, .library-toolbar .input-group-text, .library-toolbar .form-select {
    min-height: 46px; background-color: #101220; border-color: #2a2e45; color: #f4f5ff;
}
.library-toolbar .form-control::placeholder { color: #777e9b; }
.btn-primary { background: #5bf5ff; border-color: #5bf5ff; color: #070812; font-weight: 700; }
.btn-primary:hover, .btn-primary:focus { background: #9af9ff; border-color: #9af9ff; color: #070812; box-shadow: 0 0 0 .25rem rgba(91,245,255,.14); }
.game-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1.15rem; }
.game-card { min-width: 0; display: flex; flex-direction: column; overflow: hidden; background: #111320; border: 1px solid #262a3e; border-radius: 14px; transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease; }
.game-card:hover { transform: translateY(-5px); border-color: rgba(91,245,255,.58); box-shadow: 0 18px 45px rgba(0,0,0,.3), 0 0 24px rgba(91,245,255,.08); }
.game-cover-link { display: block; text-decoration: none; }
.game-cover-wrap { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: #0a0b13; }
.game-cover { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease, filter .25s ease; }
.game-card:hover .game-cover { transform: scale(1.035); filter: saturate(1.08); }
.game-cover-placeholder { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .75rem; color: #596079; background: linear-gradient(145deg, #15182a, #0c0e18); }
.game-cover-placeholder i { font-size: 4rem; color: #333851; }
.game-cover-placeholder span { font: 700 .65rem Comfortaa, sans-serif; letter-spacing: .2em; }
.game-play-badge { position: absolute; right: .85rem; bottom: .85rem; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; color: #080912; background: #5bf5ff; font-size: 1.35rem; box-shadow: 0 8px 24px rgba(0,0,0,.38); opacity: 0; transform: translateY(8px); transition: .18s ease; }
.game-card:hover .game-play-badge { opacity: 1; transform: translateY(0); }
.game-card-body { display: flex; flex-direction: column; flex: 1; padding: 1rem; }
.game-title-row { display: flex; align-items: flex-start; justify-content: space-between; gap: .5rem; }
.game-title-copy { min-width: 0; }
.game-title { font-family: Comfortaa, sans-serif; font-weight: 700; line-height: 1.3; }
.game-name { display: inline-block; overflow: hidden; max-width: 100%; color: #f5f6ff !important; text-overflow: ellipsis; text-decoration: none !important; }
.game-name:hover { color: #5bf5ff !important; }
.game-card-menu .btn { border: 0; color: #8e94ab; }
.game-tags { display: flex; flex-wrap: wrap; gap: .35rem; }
.game-tags .game-tag { opacity: 1; background: #20243a; border: 1px solid #343a58; color: #b8bdd3; font-weight: 500; }
.game-tags .game-tag:first-child { border-color: rgba(255,52,157,.48); color: #ff72bc; }
.game-description { color: #858ba2 !important; font-size: .9rem; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.card, .list-group-item, .modal-content, .dropdown-menu { background-color: #131522; border-color: #2a2e43; color: #eef0ff; }
.dropdown-item { color: #c6cadb; }
.dropdown-item:hover { background: #20243a; color: #5bf5ff; }
.upload-review .list-group-item { padding: 1rem 0; }
@media (max-width: 575.98px) {
    .page-shell { padding-inline: 1rem; }
    .library-hero { padding-top: 2rem; align-items: flex-start; }
    .library-count { display: none; }
    .library-subtitle { font-size: .92rem; }
    .game-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
    .game-card-body { padding: .75rem; }
    .game-title { font-size: .86rem; }
    .game-cover-wrap { aspect-ratio: 3 / 4; }
    .game-play-badge { opacity: 1; transform: none; width: 36px; height: 36px; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}

.player-link { color: #d8dbea; text-decoration: none; }
.player-link:hover { color: #5bf5ff; }
.home-hero { min-height: 470px; display: grid; grid-template-columns: minmax(0,1fr) 360px; align-items: center; gap: 4rem; padding: 4rem 0 3rem; }
.home-hero h1 { font-size: clamp(2.8rem,6vw,5.8rem); font-weight: 700; line-height: .98; letter-spacing: -.07em; margin: .65rem 0 1.2rem; }
.home-hero h1 span { color: #5bf5ff; }
.home-hero p { max-width: 690px; color: #a1a7bf; font-size: 1.12rem; }
.hero-console { position: relative; aspect-ratio: 1; display: grid; place-items: center; border: 2px solid #373d5a; border-radius: 32%; color: #5bf5ff; background: linear-gradient(145deg,#1b1f35,#0b0d17); box-shadow: 20px 24px 0 #ff349d, 0 30px 80px rgba(0,0,0,.45); transform: rotate(5deg); }
.hero-console i { font-size: 10rem; filter: drop-shadow(0 0 24px rgba(91,245,255,.3)); }
.hero-console span { position:absolute; bottom: 3.1rem; font:700 .7rem Comfortaa; letter-spacing:.3em; }
.dashboard-stats { display:grid; grid-template-columns:repeat(4,1fr); background:rgba(19,21,34,.8); border:1px solid #292e46; border-radius:18px; overflow:hidden; }
.dashboard-stats>div { display:flex; flex-direction:column; padding:1.4rem 1.6rem; border-right:1px solid #292e46; }
.dashboard-stats>div:last-child { border:0; }.dashboard-stats strong { color:#f6f7ff; font:700 1.8rem Comfortaa; }.dashboard-stats span { color:#858ca8; font-size:.85rem; }
.dashboard-section { margin-top:4.5rem; }.section-heading { display:flex; justify-content:space-between; align-items:end; gap:1rem; margin-bottom:1.4rem; }.section-heading h2 { font-weight:700; margin:.35rem 0 0; }.section-heading>a { color:#5bf5ff; text-decoration:none; }
.home-game-strip { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:1rem; }.home-game-card { min-width:0; display:grid; grid-template-columns:92px minmax(0,1fr); background:#121522; border:1px solid #292e45; border-radius:13px; overflow:hidden; }.home-game-cover { aspect-ratio:3/4; background:#0c0e18; }.home-game-cover img { width:100%;height:100%;object-fit:cover; }.home-game-cover span { display:grid;place-items:center;width:100%;height:100%;color:#414863;font-size:2rem; }.home-game-card>div { min-width:0; display:flex;flex-direction:column;justify-content:center;padding:.75rem; }.home-game-card small,.home-game-card span { color:#747c98;font-size:.72rem; }.home-game-card>div>a { color:#f1f3ff;text-decoration:none;font-weight:600;overflow:hidden;text-overflow:ellipsis; }.home-game-card>div>a:hover { color:#5bf5ff; }
.room-mini-grid { display:grid;grid-template-columns:repeat(3,1fr);gap:.8rem; }.room-mini { display:flex;align-items:center;gap:.9rem;padding:1rem;background:#121522;border:1px solid #293049;border-radius:12px;color:#e9ebf8;text-decoration:none; }.room-mini>i:first-child { color:#ff349d;font-size:1.4rem; }.room-mini span { flex:1;display:flex;flex-direction:column;min-width:0; }.room-mini small { color:#7e869f; }.room-mini:hover { border-color:#5bf5ff;color:#5bf5ff; }
.advanced-filters { display:grid;grid-template-columns:1.2fr 1fr 1fr 1.2fr auto auto;gap:.65rem;padding:.75rem;background:rgba(19,21,34,.62);border:1px solid #292e45;border-radius:14px; }.advanced-filters .form-control,.advanced-filters .form-select { background:#101220;border-color:#2a2e45;color:#eef0ff; }.filter-favorite { display:flex;align-items:center;gap:.45rem;white-space:nowrap;padding:0 .5rem; }
.game-detail { display:grid;grid-template-columns:minmax(260px,380px) minmax(0,1fr);gap:clamp(2rem,6vw,6rem);align-items:center;padding:4rem 0 2rem; }.game-detail-cover { aspect-ratio:3/4;border-radius:20px;overflow:hidden;background:#10121e;box-shadow:0 25px 70px rgba(0,0,0,.45); }.game-detail-cover>img { width:100%;height:100%;object-fit:cover; }.game-detail-cover .game-cover-placeholder { width:100%;height:100%; }.game-detail-copy h1 { font-size:clamp(2.6rem,6vw,5.5rem);font-weight:700;line-height:1;letter-spacing:-.06em;margin:.6rem 0 1rem; }.game-meta-row { display:flex;gap:1.2rem;flex-wrap:wrap;color:#b5bad0; }.game-detail-description { color:#a1a8bf;font-size:1.08rem;line-height:1.75;margin-top:1.5rem; }.game-detail-actions { display:flex;flex-wrap:wrap;gap:.7rem;margin:2rem 0 1.2rem; }.detail-links { display:flex;gap:1.2rem; }.detail-links a { color:#8891ac; }
.retro-score { color:#ff72bc;font-family:Comfortaa; }.feature-note { padding:1rem 1.2rem;background:#15182a;border:1px solid #303651;border-radius:12px;color:#aeb5ce; }.achievement-grid { display:grid;grid-template-columns:repeat(2,1fr);gap:.8rem; }.achievement-card { display:grid;grid-template-columns:72px 1fr;gap:1rem;padding:1rem;background:#10121e;border:1px solid #262b42;border-radius:12px;opacity:.5;filter:grayscale(.8); }.achievement-card.earned { opacity:1;filter:none;border-color:rgba(91,245,255,.35); }.achievement-card img { width:72px;height:72px;border-radius:8px; }.achievement-card p { color:#8189a4;font-size:.85rem;margin:.3rem 0; }.achievement-card span { color:#5bf5ff;font-size:.75rem; }
.profile-hero { display:flex;align-items:center;gap:2rem;padding:4rem 0 2rem; }.profile-avatar { display:grid;place-items:center;width:120px;height:120px;border-radius:24px;background:#5bf5ff;color:#080912;font:700 3.5rem Comfortaa;box-shadow:10px 10px 0 #ff349d; }.profile-hero h1 { font-size:clamp(2.4rem,6vw,4.8rem);font-weight:700;margin:.4rem 0; }.profile-hero p { color:#838ba7; }.profile-bio { max-width:650px;color:#bdc2d6; }.profile-settings-card { padding:1.5rem;margin:2rem 0;background:#121522;border:1px solid #292e45;border-radius:16px; }
.health-grid { display:grid;grid-template-columns:1fr 1fr;gap:1rem;margin-bottom:1rem; }.health-card { display:flex;gap:1.2rem;align-items:center;padding:1.4rem;background:#121522;border:1px solid #292e45;border-radius:16px; }.health-card>i { font-size:2.5rem; }.health-card.ok>i { color:#55f59a; }.health-card.fail>i { color:#ff557f; }.health-card h2 { margin:.25rem 0;font-weight:700; }.health-card code { color:#8991aa;overflow-wrap:anywhere; }
.netplay-code-card { max-width:620px;margin:8vh auto;padding:clamp(1.5rem,5vw,3.5rem);text-align:center;background:#121522;border:1px solid #303650;border-radius:22px;box-shadow:0 30px 90px rgba(0,0,0,.4); }.netplay-code-card>i { display:block;color:#ff349d;font-size:4rem;margin-bottom:1rem; }.netplay-code-card h1 { font-size:clamp(2rem,6vw,3.8rem);font-weight:700;margin:.7rem 0; }.netplay-code-card p { color:#949bb4;margin-bottom:2rem; }
@media (max-width: 991.98px) { .home-hero { grid-template-columns:1fr;min-height:0; }.hero-console { display:none; }.home-game-strip { grid-template-columns:repeat(2,1fr); }.room-mini-grid { grid-template-columns:1fr; }.advanced-filters { grid-template-columns:repeat(2,1fr); }.game-detail { grid-template-columns:220px minmax(0,1fr);gap:2rem; }.achievement-grid { grid-template-columns:1fr; } }
@media (max-width: 575.98px) { .home-hero { padding:2.5rem 0 1.5rem; }.dashboard-stats { grid-template-columns:repeat(2,1fr); }.dashboard-stats>div:nth-child(2) { border-right:0; }.dashboard-stats>div:nth-child(-n+2) { border-bottom:1px solid #292e46; }.home-game-strip { grid-template-columns:1fr; }.advanced-filters { grid-template-columns:1fr; }.game-detail { grid-template-columns:1fr;padding-top:2rem; }.game-detail-cover { max-width:280px;margin:auto; }.game-detail-copy h1 { font-size:2.7rem; }.health-grid { grid-template-columns:1fr; }.profile-hero { align-items:flex-start; }.profile-avatar { width:74px;height:74px;font-size:2rem;border-radius:16px; } }

.feature-dock { display:grid;grid-template-columns:repeat(6,1fr);gap:.7rem;margin-top:1rem; }.feature-dock a { display:flex;align-items:center;gap:.6rem;padding:.8rem 1rem;color:#aeb5cc;text-decoration:none;background:#10131f;border:1px solid #292e45;border-radius:10px; }.feature-dock a:hover,.feature-dock a:focus { color:#5bf5ff;border-color:#5bf5ff; }.feature-dock i { font-size:1.2rem; }
.tv-hero { padding:3rem 0 2rem; }.tv-hero h1 { font-size:clamp(3rem,8vw,7rem);font-weight:700;letter-spacing:-.07em;margin:.4rem 0; }.tv-hero p { color:#969db7; }.tv-grid { display:grid;grid-template-columns:repeat(auto-fill,minmax(190px,1fr));gap:1.2rem; }.tv-card { display:flex;flex-direction:column;color:#f0f2ff;text-decoration:none;outline:0;transition:.16s ease; }.tv-card img,.tv-card>div { width:100%;aspect-ratio:3/4;object-fit:cover;background:#121522;border:3px solid transparent;border-radius:18px; }.tv-card>div { display:grid;place-items:center;color:#434b68;font-size:4rem; }.tv-card strong { margin-top:.7rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap; }.tv-card span { color:#7e869f;font-size:.8rem; }.tv-card:focus,.tv-card:hover { color:#5bf5ff;transform:scale(1.045); }.tv-card:focus img,.tv-card:focus>div { border-color:#5bf5ff;box-shadow:0 0 35px rgba(91,245,255,.25); }.tv-actions { position:sticky;bottom:1rem;display:flex;justify-content:center;margin:2rem; }
.screenshot-strip { display:grid;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:.8rem; }.screenshot-strip a { position:relative;aspect-ratio:16/10;overflow:hidden;border-radius:12px;background:#0b0d15; }.screenshot-strip img { width:100%;height:100%;object-fit:cover; }.screenshot-strip span { position:absolute;left:0;right:0;bottom:0;padding:.55rem;color:white;background:linear-gradient(transparent,rgba(0,0,0,.85));font-size:.75rem; }
.stat-list,.achievement-game-grid,.job-list { display:grid;gap:.7rem; }.stat-list>a,.achievement-game-grid>a,.job-list article { display:grid;grid-template-columns:2fr 1fr 2fr auto;align-items:center;gap:1rem;padding:1rem;background:#121522;border:1px solid #292e45;border-radius:12px;color:#eef0ff;text-decoration:none; }.stat-list div,.achievement-game-grid div { height:7px;background:#242940;border-radius:8px;overflow:hidden; }.stat-list i,.achievement-game-grid i { display:block;width:70%;height:100%;background:#5bf5ff; }.achievement-game-grid i { background:#ff349d; }.event-grid { display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:1rem; }.event-grid article { padding:1.4rem;background:#121522;border:1px solid #292e45;border-radius:15px; }.event-grid article>i { color:#ff349d;font-size:2rem; }.event-grid h2 { font-weight:700;margin:.7rem 0; }.event-grid p { color:#9299b2;min-height:3rem; }.theme-picks { display:flex;flex-wrap:wrap;gap:.6rem; }
html[data-arcade-style="nes"] body { background:#111;color:#f5f5f5; } html[data-arcade-style="nes"] .brand-pixel,html[data-arcade-style="nes"] .btn-primary { background:#e53935;border-color:#e53935;color:white;box-shadow:4px 4px 0 #eee; } html[data-arcade-style="nes"] .eyebrow { color:#ef5350; }
html[data-arcade-style="sega"] body { background:radial-gradient(circle at 50% 0,rgba(20,72,180,.35),transparent 40rem),#070b18; } html[data-arcade-style="sega"] .brand-pixel,html[data-arcade-style="sega"] .btn-primary { background:#1d6fff;border-color:#1d6fff;color:white;box-shadow:4px 4px 0 #fff; } html[data-arcade-style="sega"] .eyebrow { color:#65a1ff; }
html[data-arcade-style="psx"] body { background:linear-gradient(135deg,#111,#282828); } html[data-arcade-style="psx"] .brand-pixel { background:#eee;box-shadow:4px 4px 0 #e94848; } html[data-arcade-style="psx"] .eyebrow { color:#f0c541; }
@media(max-width:991px){.feature-dock{grid-template-columns:repeat(3,1fr)}.stat-list>a,.achievement-game-grid>a{grid-template-columns:1fr}.feature-dock span{display:none}}

/*****************************************************************************/

html[data-bs-theme="dark"] .list-group-hover .list-group-item:hover {
    background-color: rgba(255, 255, 255, .05);
}
.list-group-hover .list-group-item:hover {
    background-color: rgba(0, 0, 0, .05);
}

/*****************************************************************************/

.card .card-body .card-body-collapse {
    padding: 0 !important;
}

.input-group .form-control.dropdown {
    border-top-right-radius: var(--bs-border-radius) !important;
    border-bottom-right-radius: var(--bs-border-radius) !important;
}

/*****************************************************************************/

#header-decoration {
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
}

#header-decoration div {
    width: 5px;
    height: 19px;
}
#header-decoration.play div {
    width: 5px;
    height: 16px;
}

#header-decoration .decor-red {
    background-color: #dc3545;
}
#header-decoration .decor-green {
    background-color: #198754;
}
#header-decoration .decor-blue {
    background-color: #0d6efd;
}

/*****************************************************************************/

#drop-overlay {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    z-index: 100 !important;
}
.drop-overlay-caption {
    margin-top: 45vh;
}
.drop-overlay-caption i {
    font-size: 5em;
}
.drop-overlay-caption p {
    font-size: 1.5em;
}

/*****************************************************************************/

#keyboard-control-focus {
    text-transform: uppercase;
}
#modal-keyboard-control:focus #keyboard-control-focus {
    visibility: hidden;
}
#modal-keyboard-control #keyboard-control-focus {
    visibility: visible;
}

#keyboard-control-button, #gamepad-control-button {
    font-size: 1.5em;
}

/*****************************************************************************/

a.game-name {
    color: var(--bs-heading-color);
    text-decoration: none;
}
a.game-name:hover {
    text-decoration: underline;
}

button#theme, button#localization {
    color: var(--bs-heading-color);
    text-decoration: none;
}

.game-description div {
    text-justify: auto;
}

.game-tags .game-tag {
    opacity: .5;
}
.game-tags:hover .game-tag {
    opacity: 1;
}

.room-card {
    overflow: hidden;
    border: 1px solid color-mix(in srgb, var(--bs-border-color) 75%, transparent);
    transition: transform .18s ease, box-shadow .18s ease;
}
.room-card:hover {
    transform: translateY(-3px);
}
.room-cover {
    width: 100%;
    height: 220px;
    object-fit: cover;
    background: var(--bs-tertiary-bg);
}
.room-cover-empty {
    display: grid;
    place-items: center;
    font-size: 4rem;
    color: var(--bs-secondary-color);
}
.room-description {
    min-height: 3rem;
}
