* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: linear-gradient(135deg, #1a2a6c, #2a3c6c);
    color: #e0e0e0;
    overflow: hidden;
    height: 100vh;
    display: flex;
    flex-direction: column;
}

header {
    background-color: rgba(0, 0, 0, 0.7);
    padding: 15px;
    text-align: center;
    border-bottom: 2px solid #00b4d8;
}

h1 {
    color: #00b4d8;
    margin-bottom: 5px;
}

.subtitle {
    color: #90e0ef;
    font-size: 1.1rem;
}

.game-container {
    display: flex;
    flex: 1;
    overflow: hidden;
}

.game-ui {
    display: flex;
    width: 100%;
    height: 100%;
}

.game-area {
    flex: 3;
    position: relative;
    overflow: hidden;
    background-color: #0a192f;
}

.info-panel {
    flex: 1;
    background-color: rgba(10, 25, 47, 0.9);
    padding: 20px;
    border-left: 2px solid #00b4d8;
    overflow-y: auto;
    max-width: 350px;
}

.floor-map {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    transition: opacity 0.5s;
}

.character {
    position: absolute;
    width: 40px;
    height: 60px;
    background-color: #00b4d8;
    border-radius: 50% 50% 20% 20%;
    transition: all 0.2s;
    z-index: 10;
}

.character::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background-color: #ffb4a2;
    border-radius: 50%;
    top: 10px;
    left: 10px;
}

.npc {
    position: absolute;
    width: 40px;
    height: 60px;
    border-radius: 50% 50% 20% 20%;
    transition: all 0.3s;
    z-index: 9;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 12px;
    text-align: center;
    cursor: pointer;
}

.npc.interactable {
    transform: scale(1.1);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.8);
    cursor: pointer;
}

.npc:not(.interactable) {
    opacity: 0.7;
    cursor: not-allowed;
}

.controls {
    position: absolute;
    bottom: 30px;
    left: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    z-index: 20;
}

.control-row {
    display: flex;
    gap: 5px;
    justify-content: center;
}

.control-btn {
    width: 60px;
    height: 60px;
    background-color: rgba(0, 180, 216, 0.7);
    border: none;
    border-radius: 10px;
    color: white;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.control-btn:hover {
    background-color: rgba(0, 180, 216, 1);
    transform: scale(1.05);
}

.control-btn:active {
    transform: scale(0.95);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.floor-indicator {
    position: absolute;
    top: 20px;
    right: 20px;
    background-color: rgba(0, 0, 0, 0.7);
    padding: 10px 15px;
    border-radius: 5px;
    border: 1px solid #00b4d8;
    z-index: 15;
}

.dialog-box {
    position: absolute;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    background-color: rgba(0, 0, 0, 0.8);
    border: 2px solid #00b4d8;
    border-radius: 10px;
    padding: 20px;
    z-index: 25;
    display: none;
}

.dialog-title {
    color: #00b4d8;
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.dialog-content {
    line-height: 1.5;
}

.close-dialog {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    color: #00b4d8;
    font-size: 1.5rem;
    cursor: pointer;
}

.role-info {
    margin-bottom: 25px;
}

.role-title {
    color: #00b4d8;
    border-bottom: 1px solid #00b4d8;
    padding-bottom: 5px;
    margin-bottom: 10px;
}

.role-description {
    line-height: 1.5;
    margin-bottom: 10px;
}

.role-responsibilities {
    list-style-type: none;
}

.role-responsibilities li {
    margin-bottom: 8px;
    padding-left: 20px;
    position: relative;
}

.role-responsibilities li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: #00b4d8;
}

.floor-selector {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
    margin-bottom: 20px;
}

.floor-btn {
    padding: 8px 15px;
    background-color: rgba(0, 180, 216, 0.3);
    border: 1px solid #00b4d8;
    border-radius: 5px;
    color: #e0e0e0;
    cursor: pointer;
    transition: all 0.2s;
}

.floor-btn:hover {
    background-color: rgba(0, 180, 216, 0.5);
}

.floor-btn.active {
    background-color: #00b4d8;
    color: #0a192f;
}

.interaction-hint {
    position: absolute;
    top: 20px;
    left: 20px;
    background-color: rgba(0, 180, 216, 0.9);
    padding: 10px 15px;
    border-radius: 5px;
    color: #0a192f;
    font-weight: bold;
    z-index: 15;
    display: none;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.controls-help {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #00b4d8;
}

.controls-help h3 {
    color: #00b4d8;
    margin-bottom: 10px;
}

.controls-help ul {
    list-style-type: none;
    padding-left: 0;
}

.controls-help li {
    margin-bottom: 8px;
    padding-left: 0;
}

/* Roles Overview Button */
.roles-overview-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(135deg, #00b4d8, #0077b6);
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    z-index: 15;
    box-shadow: 0 4px 15px rgba(0, 180, 216, 0.4);
    transition: all 0.3s ease;
}

.roles-overview-btn:hover {
    transform: translate(-50%, -50%) scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 180, 216, 0.6);
}

.roles-overview-btn:active {
    transform: translate(-50%, -50%) scale(0.95);
}

/* Roles Overview Popup */
.roles-overview-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 100;
}

.popup-content {
    background: linear-gradient(135deg, #1a2a6c, #2a3c6c);
    padding: 30px;
    border-radius: 15px;
    max-width: 90%;
    max-height: 90%;
    overflow-y: auto;
    border: 3px solid #00b4d8;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.close-popup {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    color: #00b4d8;
    font-size: 2rem;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
}

.close-popup:hover {
    background-color: rgba(0, 180, 216, 0.2);
    transform: scale(1.1);
}

.popup-content h2 {
    color: #00b4d8;
    text-align: center;
    margin-bottom: 25px;
    font-size: 2rem;
}

.roles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 25px;
}

.role-category {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 10px;
    border-left: 4px solid #00b4d8;
}

.role-category h3 {
    color: #90e0ef;
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.role-category ul {
    list-style: none;
    padding: 0;
}

.role-category li {
    margin-bottom: 10px;
    padding-left: 0;
    line-height: 1.4;
}

.role-category strong {
    color: #00b4d8;
}

.career-path {
    background: rgba(0, 180, 216, 0.1);
    padding: 20px;
    border-radius: 10px;
    border: 1px solid #00b4d8;
}

.career-path h3 {
    color: #90e0ef;
    margin-bottom: 15px;
}

.career-path p {
    line-height: 1.6;
}

.career-path strong {
    color: #00b4d8;
}

/* Game area boundaries */
.game-area {
    position: relative;
    width: 100%;
    height: 100%;
}

/* Add to existing CSS */
.certifications {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #00b4d8;
}

.certifications h4 {
    color: #90e0ef;
    margin-bottom: 10px;
    font-size: 1rem;
}

.certification-list {
    list-style-type: none;
    padding-left: 0;
}

.certification-list li {
    margin-bottom: 8px;
    padding-left: 20px;
    position: relative;
    font-size: 0.9rem;
    line-height: 1.4;
}

.certification-list li::before {
    content: '🔗';
    position: absolute;
    left: 0;
    color: #4cc9f0;
    font-weight: bold;
}

.cert-link {
    color: #4cc9f0;
    text-decoration: none;
    border-bottom: 1px dashed #4cc9f0;
    transition: all 0.2s ease;
}

.cert-link:hover {
    color: #90e0ef;
    border-bottom: 1px solid #90e0ef;
    background-color: rgba(76, 201, 240, 0.1);
    padding: 2px 4px;
    border-radius: 3px;
}

/* Roles overview popup updates */
.roles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
    margin-bottom: 25px;
}

.role-category {
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 10px;
    border-left: 4px solid #00b4d8;
    transition: transform 0.2s ease;
}

.role-category:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.08);
}

.floor-badge {
    display: inline-block;
    background: #00b4d8;
    color: #0a192f;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: bold;
    margin-left: 8px;
}

.cert-count {
    display: inline-block;
    background: #4cc9f0;
    color: #0a192f;
    padding: 1px 6px;
    border-radius: 10px;
    font-size: 0.7rem;
    margin-left: 8px;
}