/* Shared gold treatment for game discovery and the main navigation entry. */
.menuTab .nav-link.dnd-games-tab,
.custom-navbar .nav-link.rpg-games-nav {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    border: 1px solid #c99a3b;
    border-radius: 0.6rem;
    background: linear-gradient(135deg, #2a2113, #151f25 55%, #2a2113);
    color: #f6e3b0;
    font-weight: 600;
    box-shadow: 0 0 14px rgb(232 185 84 / 25%), inset 0 0 12px rgb(232 185 84 / 10%);
}

.menuTab .nav-link.dnd-games-tab {
    margin-left: 0.35rem;
}

.custom-navbar .main-navbar-nav .rpg-games-nav {
    max-width: none;
    margin: 0.2rem;
    padding: 0.6rem 0.35rem;
}

.menuTab .nav-link.dnd-games-tab:hover,
.menuTab .nav-link.dnd-games-tab.active,
.custom-navbar .nav-link.rpg-games-nav:hover,
.custom-navbar .nav-link.rpg-games-nav:focus-visible {
    background: linear-gradient(135deg, #f6d77a, #e0b453 50%, #f6d77a);
    color: #2a1d08;
    box-shadow: 0 0 22px rgb(246 215 122 / 45%);
}

.game-beta-badge {
    padding: 0.15rem 0.55rem;
    border-radius: 999px;
    background: linear-gradient(135deg, #f6d77a, #c99a3b);
    color: #2a1d08;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.dnd-games-tab.active .game-beta-badge,
.dnd-games-tab:hover .game-beta-badge,
.rpg-games-nav:hover .game-beta-badge,
.rpg-games-nav:focus-visible .game-beta-badge {
    background: #2a1d08;
    color: #f6d77a;
}

.game-sparkles {
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
}

.game-sparkles span {
    position: absolute;
    width: 8px;
    height: 8px;
    background: radial-gradient(circle, #fffbe6, #f6d77a 35%, transparent 70%);
    clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%);
    opacity: 0.65;
    animation: game-discovery-twinkle 2.4s ease-in-out infinite;
}

.game-sparkles span:nth-child(1) { top: 18%; left: 8%; }
.game-sparkles span:nth-child(2) { top: 62%; left: 30%; animation-delay: 0.4s; }
.game-sparkles span:nth-child(3) { top: 22%; left: 52%; animation-delay: 0.8s; }
.game-sparkles span:nth-child(4) { top: 66%; left: 70%; animation-delay: 1.2s; }
.game-sparkles span:nth-child(5) { top: 14%; left: 84%; animation-delay: 1.6s; }
.game-sparkles span:nth-child(6) { top: 48%; left: 93%; animation-delay: 2s; }

@keyframes game-discovery-twinkle {
    0%, 100% { opacity: 0.15; transform: scale(0.4) rotate(0deg); }
    50% { opacity: 1; transform: scale(1.15) rotate(45deg); }
}

.game-device-notice {
    display: none;
    border: 1px solid #c99a3b;
    background-color: #151f25;
    color: #f6e3b0;
}

.game-gallery-search {
    background-color: #161f26;
    color: #e7bc8b;
}

.game-gallery-search::placeholder {
    color: #e7bc8b;
    opacity: 0.7;
}

.game-gallery-status {
    color: #e7bc8b;
}

.rpg-games-content {
    padding-top: 1.75rem;
}

.game-create-card {
    width: 100%;
    min-height: 300px;
    text-align: center;
    cursor: pointer;
}

.game-create-card .card-body {
    width: 100%;
}

.game-create-card .bi {
    font-size: 3rem;
}

.game-create-card .card-title {
    font-size: 1.25rem;
}

.game-create-card:focus-visible {
    outline: 2px solid #f6d77a;
    outline-offset: 4px;
}

/* Coarse pointers cover tablets even when their viewport is desktop-sized. */
@media (max-width: 1199.98px), (hover: none) and (pointer: coarse) {
    .game-device-notice { display: block; }
}

@media (prefers-reduced-motion: reduce) {
    .game-sparkles span { animation: none; }
}
