:root {
    --gamy-dark-bg: #0d1a14;
    --gamy-card-bg: rgba(18, 38, 29, 0.75);
    --gamy-gold: #cfa85e;
    --gamy-gold-hover: #e5be73;
    --gamy-green-badge: #198754;
    --gamy-green-border: #1d4d35;
}

body.portal-body {
    background: radial-gradient(circle at center, #132a1e 0%, #08100c 100%);
    color: #f8f9fa;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.portal-header {
    text-align: center;
    padding-top: 2rem;
    padding-bottom: 1.5rem;
}

.portal-logo-container {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 0.5rem;
}

.portal-title {
    font-family: 'Times New Roman', Times, serif;
    font-size: 2.2rem;
    letter-spacing: 2px;
    font-weight: bold;
    color: #ffffff;
    text-transform: uppercase;
    text-shadow: 0 2px 4px rgba(0,0,0,0.6);
}

.portal-subtitle {
    font-family: 'Times New Roman', Times, serif;
    font-size: 1.4rem;
    letter-spacing: 3px;
    color: #ffffff;
    text-transform: uppercase;
    border-bottom: 1px solid rgba(207, 168, 94, 0.4);
    display: inline-block;
    padding-bottom: 0.35rem;
    margin-top: 0.5rem;
}

.module-card {
    text-align: center;
    padding: 1.2rem 0.8rem;
    transition: transform 0.25s ease, filter 0.25s ease;
    text-decoration: none;
    display: block;
    border-radius: 8px;
    background: transparent;
    border: 1px solid transparent;
}

.module-card:hover {
    transform: translateY(-5px);
    background: var(--gamy-card-bg);
    border-color: var(--gamy-green-border);
}

.icon-wrapper {
    position: relative;
    width: 86px;
    height: 86px;
    margin: 0 auto 1.2rem auto;
    background: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 14px rgba(0,0,0,0.5);
}

.icon-wrapper svg {
    width: 44px;
    height: 44px;
    fill: #1a1a1a;
}

.badge-number {
    position: absolute;
    bottom: -2px;
    right: -2px;
    background-color: var(--gamy-green-badge);
    color: #ffffff;
    font-weight: bold;
    font-size: 0.78rem;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #ffffff;
}

.badge-number.highlight {
    background-color: #d97706;
}

.module-title {
    color: var(--gamy-gold);
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.4rem;
    line-height: 1.25;
}

.module-card:hover .module-title {
    color: var(--gamy-gold-hover);
}

.module-desc {
    color: #b0bec5;
    font-size: 0.82rem;
    line-height: 1.35;
    margin: 0;
}

.portal-footer {
    margin-top: auto;
    padding: 1.2rem;
    background: rgba(5, 10, 8, 0.85);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}
