.container {
    max-width: 1320px;
}

#feedback {
    margin-bottom: 1.2rem;
}

.controls {
    background: none;
    padding: 20px 22px;
}

#gameTitle {
    font-size: 1.8rem;
    font-weight: 700;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}

#gameData {
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    background: #ffffff17;
}

#gameDataHeader {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 1rem;
}

.detail-header-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.detail-auth-container {
    justify-content: flex-end;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 0.4rem 0.8rem;
}

.back-link:hover {
    transform: translateX(-5px);
}

.game-detail-content {
    max-width: 980px;
    margin: 0 auto;
}

.loading-container {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-secondary);
}

.detail-section {
    background: rgba(24, 24, 33, 1.0);
    border-radius: 20px;
    padding: 0.9rem 2.1rem;
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
}

.detail-section h2 {
    color: var(--text-primary);
    font-size: 1.15rem;
    margin-bottom: 1rem;
    font-weight: 600;
    text-align: center;
    letter-spacing: 0.02em;
}

.performance-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.25rem;
}

.performance-card {
    background: rgba(20, 20, 30, 0.5);
    padding: 1.1rem;
    border-radius: 14px;
    border: 1px solid var(--glass-border);
}

.performance-card h3 {
    color: var(--text-primary);
    font-size: 1.08rem;
    margin-bottom: 1rem;
    font-weight: 500;
}

.performance-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    padding: 0.35rem 0;
}

.performance-item:last-child {
    margin-bottom: 0;
}

.performance-item .label {
    color: var(--text-secondary);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.performance-item .performance-badge {
    min-width: 100px;
    text-align: center;
}

.detail-performance-mode-list {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.detail-performance-mode-stack {
    width: 100%;
}

.detail-performance-mode-row {
    justify-content: space-between;
}

.detail-performance-mode-name {
    text-align: right;
}

.detail-performance-empty {
    align-self: flex-start;
}

.upgrade-info {
    display: flex;
    align-items: center;
    flex-direction: column;
}

.upgrade-info .upgrade-badge {
    font-size: 1.1rem;
    text-align: center;
}

.notes-content {
    color: var(--text-primary);
    line-height: 1.65;
    font-size: 0.96rem;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 0;
    border-bottom: 1px solid var(--border);
}

.info-item:last-child {
    border-bottom: none;
}

.info-item .label {
    color: var(--text-secondary);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.info-item span:not(.label) {
    color: var(--text-primary);
    font-weight: 500;
}

.action-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 1.25rem;
}

.btn-suggest {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

#gameFurtherDetailsContainer {
    display: flex;
    justify-content: space-between;
    gap: 26px;
}

#gameSec {
    display: flex;
    justify-content: space-between;
    gap: 26px;
}

#gameDataContainer {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

#gameDataContainer #upgradeStatus {
    width: unset;
}

#linksSection {
    grid-column: 2 / -1
}

#communitySentimentSection {
    grid-column: 1 / -1;
}

#communitySentimentSection h2 {
    margin-bottom: 0.3rem;
}

.res-badge, .fps-badge {
    width: unset;
}

.community-sentiment-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.sentiment-intro {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.sentiment-loading-copy,
.sentiment-intro-copy {
    color: var(--text-secondary);
    text-align: center;
}

.sentiment-intro-copy {
    max-width: 48rem;
    margin: 0 auto;
}

.sentiment-overview {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
}

.sentiment-overview-card,
.sentiment-overview-empty-card {
    min-height: 6.1rem;
}

.sentiment-overview-card {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    padding: 0.85rem;
    border-radius: 16px 16px 0 0;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background:
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.14), transparent 46%),
        linear-gradient(180deg, rgba(8, 12, 22, 0.78), rgba(18, 23, 35, 0.92));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.sentiment-overview-card.mostly_good {
    border-color: rgba(74, 222, 128, 0.25);
    background:
        radial-gradient(circle at top right, rgba(74, 222, 128, 0.22), transparent 44%),
        linear-gradient(180deg, rgba(12, 40, 26, 0.92), rgba(15, 22, 28, 0.96));
}

.sentiment-overview-card.mixed {
    border-color: rgba(255, 255, 255, 0.12);
    background:
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.18), transparent 44%),
        linear-gradient(180deg, rgba(25, 29, 39, 0.94), rgba(15, 19, 28, 0.98));
}

.sentiment-overview-card.mostly_bad {
    border-color: rgba(248, 113, 113, 0.25);
    background:
        radial-gradient(circle at top right, rgba(248, 113, 113, 0.2), transparent 44%),
        linear-gradient(180deg, rgba(53, 18, 24, 0.94), rgba(21, 20, 28, 0.97));
}

.sentiment-overview-card.not_enough_data {
    border-style: dashed;
    border-color: rgba(255, 255, 255, 0.12);
}

.sentiment-overview-kicker {
    display: flex;
    align-items: center;
    gap: 0.55rem;
}

.sentiment-overview-mode-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.8rem;
    height: 1.8rem;
    border-radius: 0.7rem;
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.sentiment-overview-kicker-label {
    color: var(--text-secondary);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.sentiment-overview-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
}

.sentiment-overview-title-block {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.sentiment-overview-mode {
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.1;
}

.sentiment-overview-trend {
    color: var(--text-secondary);
    font-size: 0.76rem;
    font-weight: 500;
}

.sentiment-overview-verdict {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 4.1rem;
    padding: 0.2rem 0.5rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.sentiment-overview-card.mostly_good .sentiment-overview-verdict {
    background: rgba(74, 222, 128, 0.18);
    color: #c4ffd9;
}

.sentiment-overview-card.mostly_bad .sentiment-overview-verdict {
    background: rgba(248, 113, 113, 0.18);
    color: #ffbbbb;
}

.sentiment-overview-meter-block {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.sentiment-overview-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.sentiment-overview-scale {
    color: var(--text-secondary);
    font-size: 0.74rem;
}

.sentiment-overview-count {
    display: inline-flex;
    justify-content: center;
    padding: 0.2rem 0.5rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-secondary);
    font-size: 0.76rem;
    font-weight: 700;
    white-space: nowrap;
}

.sentiment-overview-empty-card {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 0.85rem;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.035);
}

.sentiment-overview-empty-title {
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 700;
}

.sentiment-overview-empty {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.sentiment-mode-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.8rem;
}

.sentiment-mode-column {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.sentiment-mode-card {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-top: 0;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 0 0 16px 16px;
    padding: 0.95rem 1rem;
}

.sentiment-mode-card.mostly_good {
    border-color: rgba(74, 222, 128, 0.25);
    background: linear-gradient(180deg, rgba(21, 77, 48, 0.18), rgba(255, 255, 255, 0.02));
}

.sentiment-mode-card.mixed,
.sentiment-mode-card.not_enough_data {
    border-color: rgba(255, 255, 255, 0.12);
}

.sentiment-mode-card.mostly_bad {
    border-color: rgba(248, 113, 113, 0.25);
    background: linear-gradient(180deg, rgba(107, 30, 36, 0.2), rgba(255, 255, 255, 0.02));
}

.sentiment-mode-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.8rem;
    padding-bottom: 0.2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.sentiment-mode-heading {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    min-width: 0;
}

.sentiment-mode-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 0.72rem;
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
    font-size: 0.88rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    flex-shrink: 0;
}

.sentiment-mode-card.mostly_good .sentiment-mode-icon {
    background: rgba(34, 197, 94, 0.18);
    color: #c4ffd9;
}

.sentiment-mode-card.mostly_bad .sentiment-mode-icon {
    background: rgba(239, 68, 68, 0.18);
    color: #ffbbbb;
}

.sentiment-mode-title-block {
    display: flex;
    flex-direction: column;
    gap: 0.28rem;
    min-width: 0;
}

.sentiment-mode-eyebrow {
    display: inline-block;
    color: var(--text-secondary);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 0.35rem;
}

.sentiment-mode-card h3 {
    color: var(--text-primary);
    margin-bottom: 0;
    font-size: 1rem;
}

.sentiment-mode-description {
    color: var(--text-secondary);
    font-size: 0.82rem;
    margin: 0;
}

.sentiment-mode-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.45rem;
    min-width: max-content;
}

.sentiment-mode-summary-label {
    color: var(--text-secondary);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.sentiment-mode-stat-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.sentiment-mode-verdict {
    display: inline-flex;
    align-items: center;
    padding: 0.28rem 0.68rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-secondary);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.sentiment-mode-verdict.mostly_good {
    background: rgba(34, 197, 94, 0.18);
    color: #c4ffd9;
}

.sentiment-mode-verdict.mostly_bad {
    background: rgba(239, 68, 68, 0.18);
    color: #ffbbbb;
}

.sentiment-mode-summary-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.28rem 0.6rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: white;
    font-family: 'SF Mono', Monaco, 'Cascadia Code', monospace;
    font-size: 0.72rem;
    font-weight: 700;
    white-space: nowrap;
}

.sentiment-meter {
    position: relative;
    padding-top: 0.2rem;
}

.sentiment-meter-track {
    display: flex;
    height: 1.3rem;
    border-radius: 999px;
    overflow: visible;
    background: rgba(255, 255, 255, 0.08);
    box-shadow:
        inset 0 1px 2px rgba(0, 0, 0, 0.35),
        0 10px 24px rgba(2, 6, 23, 0.16);
}

.sentiment-meter-fill {
    position: relative;
    height: 100%;
    min-width: 0;
    transition:
        transform 180ms ease,
        filter 180ms ease,
        opacity 180ms ease,
        box-shadow 180ms ease;
}

.sentiment-meter-track:hover .sentiment-meter-fill:not(:hover) {
    opacity: 0.78;
}

.sentiment-meter-fill:hover {
    transform: translateY(-1px) scaleY(1.08);
    filter: saturate(1.18) brightness(1.08);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14);
    z-index: 2;
}

.sentiment-meter-fill.is-visible-start {
    border-radius: 999px 0 0 999px;
}

.sentiment-meter-fill.is-visible-end {
    border-radius: 0 999px 999px 0;
}

.sentiment-meter-fill.is-visible-start.is-visible-end {
    border-radius: 999px;
}

.sentiment-meter-fill::before,
.sentiment-meter-fill::after {
    position: absolute;
    left: 50%;
    opacity: 0;
    pointer-events: none;
    transition:
        opacity 180ms ease,
        transform 180ms ease;
}

.sentiment-meter-fill::before {
    content: attr(data-tooltip);
    bottom: calc(100% + 0.8rem);
    transform: translate(-50%, 0.35rem);
    width: max-content;
    max-width: min(24rem, 78vw);
    padding: 0.75rem 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    background:
        linear-gradient(180deg, rgba(15, 23, 42, 0.98), rgba(2, 6, 23, 0.96));
    box-shadow:
        0 20px 45px rgba(2, 6, 23, 0.38),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    font-size: 0.76rem;
    font-weight: 600;
    line-height: 1.45;
    text-align: center;
    white-space: normal;
    z-index: 4;
}

.sentiment-meter-fill::after {
    content: '';
    bottom: calc(100% + 0.35rem);
    width: 0.8rem;
    height: 0.8rem;
    background: rgba(7, 12, 23, 0.98);
    border-right: 1px solid rgba(255, 255, 255, 0.12);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    transform: translate(-50%, 0.35rem) rotate(45deg);
    z-index: 3;
}

.sentiment-meter-fill:hover::before {
    opacity: 1;
    transform: translate(-50%, 0);
}

.sentiment-meter-fill:hover::after {
    opacity: 1;
    transform: translate(-50%, 0) rotate(45deg);
}

.sentiment-meter-fill.is-good {
    background: linear-gradient(90deg, rgba(74, 222, 128, 0.85), rgba(34, 197, 94, 0.95));
}

.sentiment-meter-fill.is-acceptable {
    background: rgba(255, 255, 255, 0.32);
}

.sentiment-meter-fill.is-poor {
    background: linear-gradient(90deg, rgba(248, 113, 113, 0.9), rgba(239, 68, 68, 0.95));
}

.sentiment-mode-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.sentiment-category-card {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    padding: 0.8rem 0;
    background: transparent;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.sentiment-category-card:first-child {
    padding-top: 0;
    border-top: 0;
}

.sentiment-category-card:last-child {
    padding-bottom: 0;
}

.sentiment-category-card .sentiment-meter-track {
    height: 0.8rem;
}

.sentiment-category-top {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    align-items: flex-start;
}

.sentiment-category-heading {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.sentiment-category-label {
    display: block;
    color: var(--text-primary);
    font-weight: 600;
    line-height: 1.25;
}

.sentiment-category-verdict {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.58rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-secondary);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.sentiment-category-card.mostly_good .sentiment-category-verdict {
    background: rgba(34, 197, 94, 0.2);
    color: #c4ffd9;
}

.sentiment-category-card.mostly_bad .sentiment-category-verdict {
    background: rgba(239, 68, 68, 0.2);
    color: #ffbbbb;
}

.sentiment-vote-counts {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.sentiment-vote-count-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0;
    color: var(--text-secondary);
    font-size: 0.78rem;
    font-weight: 600;
}

.sentiment-vote-count-chip strong {
    color: var(--text-primary);
    font-family: 'SF Mono', Monaco, 'Cascadia Code', monospace;
    font-size: 0.82rem;
}

.sentiment-vote-count-chip.is-good strong {
    color: #9df2bc;
}

.sentiment-vote-count-chip.is-poor strong {
    color: #ff9a9a;
}

.sentiment-vote-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.community-sentiment-vote-btn {
    flex: 1 1 96px;
    min-width: 96px;
}

@media (max-width: 850px) {
    .detail-header-bar {
        flex-direction: column;
    }

    #gameDataContainer {
        display: flex;
        flex-direction: column;
        gap: 16px;
    }

    .controls {
        padding: 10px;

    }

    .performance-grid {
        grid-template-columns: 1fr;
    }

    .detail-section {
        padding: 1.15rem;
    }

    .performance-item, .upgrade-info, .info-item {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }

    #gameFurtherDetailsContainer {
        display: flex;
        justify-content: space-between;
        flex-direction: column;
    }

    .sentiment-mode-grid {
        grid-template-columns: 1fr;
    }

    .sentiment-overview {
        grid-template-columns: 1fr;
    }

    .sentiment-mode-card-header,
    .sentiment-category-top {
        flex-direction: column;
    }

    .sentiment-mode-heading {
        width: 100%;
    }

    .sentiment-mode-meta {
        align-items: flex-start;
        min-width: 0;
    }

    .sentiment-mode-summary-count,
    .sentiment-category-verdict,
    .sentiment-mode-stat-row {
        align-self: flex-start;
    }

    .sentiment-overview-top,
    .sentiment-overview-footer {
        flex-direction: column;
        align-items: flex-start;
    }
}
