.game-card-guide h3,
.game-card-guide p {
    margin: 0;
}

.game-card-link-wrap {
    display: block;
    color: inherit;
}

.game-card-link-wrap h3 {
    margin-bottom: 0.45rem;
}

.game-card-minecraft .game-card-link-wrap:hover h3 {
    color: var(--primary);
}

.game-tags-interactive {
    margin-top: 1.15rem;
}

.tag-button {
    border: 0;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.tag-button:hover,
.tag-button:focus-visible {
    transform: translateY(-1px);
    box-shadow: 0 10px 18px rgba(23, 38, 60, 0.12);
    background: #e4eef8;
    outline: none;
}

.term-modal {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: none;
}

.term-modal.is-open {
    display: block;
}

.term-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(9, 17, 28, 0.56);
    backdrop-filter: blur(4px);
}

.term-modal-dialog {
    position: relative;
    width: min(880px, calc(100% - 1.25rem));
    max-height: calc(100vh - 2rem);
    overflow: auto;
    margin: 1rem auto;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbfe 100%);
    border: 1px solid rgba(215, 227, 239, 0.95);
    box-shadow: 0 28px 70px rgba(14, 26, 42, 0.28);
    border-radius: 28px;
    padding: 1.5rem;
}

.term-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 999px;
    background: #eaf2fb;
    color: var(--primary-dark);
    font-size: 1.5rem;
    font-weight: 700;
    cursor: pointer;
}

.term-modal-header {
    padding-right: 3.5rem;
    margin-bottom: 1rem;
}

.eyebrow-soft {
    background: #edf4fb;
}

.term-modal-definition {
    color: var(--muted);
    max-width: 700px;
}

.term-modal-content {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.term-modal-section {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 1rem;
}

.term-modal-section h3 {
    margin-bottom: 0.75rem;
}

.term-modal-list {
    margin: 0;
    padding-left: 1.15rem;
}

.term-modal-list li {
    margin-bottom: 0.55rem;
    color: var(--text);
}

.guide-page-title {
    margin-bottom: 0.9rem;
}

.guide-jump-card {
    margin: 1.5rem 0;
    padding: 1rem 1.1rem;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(215, 227, 239, 0.95);
    box-shadow: 0 10px 24px rgba(23, 38, 60, 0.05);
    border-radius: 18px;
}

.guide-jump-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-top: 0.75rem;
}

.guide-jump-links a {
    padding: 0.65rem 0.9rem;
    border-radius: 999px;
    background: var(--surface-soft);
    color: var(--primary-dark);
    font-weight: 700;
}

.guide-section-stack {
    display: grid;
    gap: 1rem;
}

.guide-section-card {
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(215, 227, 239, 0.95);
    box-shadow: 0 10px 24px rgba(23, 38, 60, 0.05);
    border-radius: 22px;
    padding: 1.35rem;
}

.guide-section-card p:last-child {
    margin-bottom: 0;
}

@media (max-width: 760px) {
    .term-modal-dialog {
        width: calc(100% - 0.75rem);
        margin: 0.375rem auto;
        max-height: calc(100vh - 0.75rem);
        border-radius: 22px;
        padding: 1rem;
    }

    .term-modal-content {
        grid-template-columns: 1fr;
    }
}
