* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #2DD4BF;
    --primary-dark: #22B8A5;
    --primary-glow: rgba(45, 212, 191, 0.12);
    --primary-border: rgba(45, 212, 191, 0.3);
    --accent: #1a1a2e;
    --accent-light: #16213e;
    --success: #10b981;
    --success-bg: rgba(16, 185, 129, 0.1);
    --warning: #fbbf24;
    --warning-bg: rgba(245, 158, 11, 0.1);
    --danger: #ef4444;
    --bg: #2a2a44;
    --bg-card: #343458;
    --bg-card-hover: #3e3e64;
    --bg-input: #38385a;
    --text: #f4f4fa;
    --text-secondary: #cccce0;
    --text-muted: #9898b4;
    --border: #46466a;
    --border-light: #56568a;
    --gold: #fbbf24;
    --silver: #9ca3af;
    --bronze: #b45309;
    --radius: 12px;
    --radius-sm: 8px;
    --radius-lg: 16px;
    --shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.6);
}

body {
    font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

html {
    overflow-x: hidden;
}

.screen {
    display: none;
    min-height: 100vh;
}

.screen.active {
    display: flex;
    flex-direction: column;
}

.container {
    max-width: 680px;
    margin: 0 auto;
    padding: 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

/* ===== START SCREEN ===== */
#screen-start .container {
    padding-top: 1rem;
}

#screen-start {
    position: relative;
    background:
        radial-gradient(ellipse 600px 400px at 50% 30%, rgba(45, 212, 191, 0.08) 0%, transparent 70%),
        var(--bg);
}

.diamond-hero {
    position: relative;
    width: 80px;
    height: 80px;
    margin-bottom: 1.25rem;
}

.diamond-shape {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #2DD4BF 0%, #14B8A6 50%, #0D9488 100%);
    clip-path: polygon(50% 0%, 100% 38%, 80% 100%, 20% 100%, 0% 38%);
    filter: drop-shadow(0 0 20px rgba(45, 212, 191, 0.4));
    animation: diamondPulse 3s ease-in-out infinite;
}

@keyframes diamondPulse {
    0%, 100% { filter: drop-shadow(0 0 20px rgba(45, 212, 191, 0.3)); }
    50% { filter: drop-shadow(0 0 35px rgba(45, 212, 191, 0.5)); }
}

.book-badge {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--primary);
    background: var(--primary-glow);
    border: 1px solid var(--primary-border);
    padding: 0.3rem 1rem;
    border-radius: 2rem;
    margin-bottom: 1.25rem;
}

.title {
    font-size: 3.4rem;
    font-weight: 900;
    line-height: 1.05;
    color: var(--text);
    margin-bottom: 0.5rem;
    letter-spacing: -0.03em;
    text-transform: uppercase;
}

.title-accent {
    color: var(--primary);
    text-shadow: 0 0 40px rgba(45, 212, 191, 0.3);
}

.title-ai {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: none;
    letter-spacing: 0.05em;
}

.subtitle {
    font-size: 0.95rem;
    color: var(--text-muted);
    font-weight: 500;
    letter-spacing: 0.04em;
    margin-bottom: 0.25rem;
}

.author {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1.25rem;
    font-style: italic;
    opacity: 0.7;
}

.description {
    color: var(--text-muted);
    max-width: 440px;
    margin-bottom: 2rem;
    font-size: 0.88rem;
    line-height: 1.7;
}

/* ===== BRANCH SELECTION ===== */
.branch-label {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

.branch-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0.5rem;
    width: 100%;
    max-width: 560px;
    margin-bottom: 1.75rem;
}

.branch-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    padding: 0.75rem 0.4rem;
    background: var(--bg-card);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
    color: var(--text-muted);
}

.branch-card:hover {
    border-color: var(--border-light);
    background: var(--bg-card-hover);
    color: var(--text-secondary);
}

.branch-card.selected {
    border-color: var(--primary);
    background: var(--primary-glow);
    color: var(--text);
    box-shadow: 0 0 16px rgba(45, 212, 191, 0.15);
}

.branch-icon {
    font-size: 1.4rem;
    line-height: 1;
}

.branch-name {
    font-size: 0.68rem;
    font-weight: 700;
    text-align: center;
    line-height: 1.2;
}

.branch-desc {
    display: none;
}

.branch-grid.shake {
    animation: shakeGrid 0.5s ease;
}

@keyframes shakeGrid {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-6px); }
    40%, 80% { transform: translateX(6px); }
}

.start-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    width: 100%;
    max-width: 320px;
}

#player-name {
    padding: 0.8rem 1.25rem;
    border-radius: var(--radius-sm);
    border: 1.5px solid var(--border);
    background: var(--bg-input);
    color: var(--text);
    font-size: 0.95rem;
    font-family: inherit;
    text-align: center;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

#player-name:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-glow);
}

#player-name::placeholder {
    color: var(--text-muted);
}

/* ===== BUTTONS ===== */
.btn {
    padding: 0.8rem 1.75rem;
    border-radius: var(--radius-sm);
    border: none;
    font-size: 0.9rem;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    letter-spacing: 0.02em;
}

.btn-primary {
    background: linear-gradient(135deg, #2DD4BF, #14B8A6);
    color: #0a0a0f;
    box-shadow: 0 2px 16px rgba(45, 212, 191, 0.25);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #5EEAD4, #2DD4BF);
    transform: translateY(-1px);
    box-shadow: 0 4px 24px rgba(45, 212, 191, 0.35);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background: var(--bg-card);
    color: var(--text-muted);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-light);
    color: var(--text-secondary);
}

/* ===== GAME HEADER ===== */
.game-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1.5rem;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    gap: 1rem;
}

.header-left {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.header-center {
    flex: 1;
    text-align: center;
}

.scenario-label {
    background: var(--primary);
    color: #0a0a0f;
    padding: 0.2rem 0.7rem;
    border-radius: 2rem;
    font-size: 0.75rem;
    font-weight: 700;
    white-space: nowrap;
}

.step-label {
    color: var(--text-muted);
    font-size: 0.78rem;
    white-space: nowrap;
}

.book-ref {
    font-size: 0.72rem;
    color: var(--text-muted);
    font-style: italic;
    opacity: 0.6;
}

.score-label {
    font-size: 0.9rem;
    color: var(--text-muted);
    white-space: nowrap;
}

.score-label strong {
    color: var(--primary);
    font-weight: 800;
}

/* ===== GAME CONTAINER ===== */
.game-container {
    max-width: 700px;
    margin: 0 auto;
    padding: 1.5rem;
    flex: 1;
    width: 100%;
}

.scenario-context {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem 1.5rem;
    margin-bottom: 1.5rem;
    border-left: 3px solid var(--primary);
}

.scenario-context h3 {
    color: var(--primary);
    margin-bottom: 0.5rem;
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: -0.01em;
}

.scenario-context p {
    color: var(--text-secondary);
    font-size: 0.88rem;
    line-height: 1.6;
}

.scenario-context .company-info {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border);
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.scenario-context .company-info strong {
    color: var(--text-secondary);
}

/* ===== DIALOGUE ===== */
.dialogue-area {
    margin-bottom: 1.5rem;
}

.dialogue-bubble {
    padding: 1rem 1.25rem;
    border-radius: var(--radius);
    margin-bottom: 0.6rem;
    max-width: 85%;
    animation: fadeSlideIn 0.35s ease;
}

@keyframes fadeSlideIn {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

.dialogue-bubble.customer {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-bottom-left-radius: 4px;
    margin-right: auto;
}

.dialogue-bubble.player {
    background: linear-gradient(135deg, #2DD4BF, #14B8A6);
    color: #0a0a0f;
    border-bottom-right-radius: 4px;
    margin-left: auto;
}

.dialogue-speaker {
    font-weight: 700;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.3rem;
    opacity: 0.5;
}

.dialogue-text {
    font-size: 0.9rem;
    line-height: 1.6;
}

/* ===== INTERACTION AREA ===== */
.interaction-area {
    margin-top: 1rem;
}

.interaction-area h4 {
    margin-bottom: 1rem;
    color: var(--text);
    font-size: 0.92rem;
    font-weight: 600;
    line-height: 1.5;
}

/* ===== CHOICES ===== */
.choice-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.choice-btn {
    padding: 1rem 1.25rem;
    background: var(--bg-card);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    text-align: left;
    cursor: pointer;
    font-size: 0.88rem;
    font-family: inherit;
    transition: all 0.2s ease;
    line-height: 1.5;
}

.choice-btn:hover {
    border-color: var(--primary);
    background: var(--primary-glow);
    color: var(--text);
    transform: translateX(4px);
}

.choice-btn:active {
    transform: translateX(2px);
}

/* ===== FREE TEXT ===== */
.freetext-area {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.freetext-area textarea {
    width: 100%;
    min-height: 130px;
    padding: 1rem 1.25rem;
    border-radius: var(--radius-sm);
    border: 1.5px solid var(--border);
    background: var(--bg-input);
    color: var(--text);
    font-size: 0.9rem;
    font-family: inherit;
    line-height: 1.6;
    resize: vertical;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.freetext-area textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-glow);
}

.freetext-area textarea::placeholder {
    color: var(--text-muted);
}

.freetext-hint {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.5;
    background: var(--bg-card);
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
    border-left: 3px solid var(--primary);
}

.submit-row {
    display: flex;
    justify-content: flex-end;
}

/* ===== FEEDBACK SCREEN ===== */
.feedback-container {
    gap: 1rem;
}

.feedback-icon {
    font-size: 3.5rem;
    margin-bottom: 0.25rem;
}

#feedback-title {
    font-size: 1.5rem;
    font-weight: 800;
}

#feedback-text {
    color: var(--text-secondary);
    font-size: 0.9rem;
    max-width: 500px;
    line-height: 1.6;
}

.feedback-points {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
    margin: 0.25rem 0;
}

.feedback-tip {
    background: var(--bg-card);
    border-left: 3px solid var(--primary);
    padding: 1rem 1.25rem;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    text-align: left;
    color: var(--text-muted);
    font-size: 0.85rem;
    max-width: 520px;
    line-height: 1.6;
}

.feedback-tip strong {
    color: var(--primary);
}

/* ===== SCENARIO COMPLETE ===== */
.scenario-summary {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 1.5rem;
    margin: 1.5rem 0;
    width: 100%;
    max-width: 500px;
    border: 1px solid var(--border);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.6rem 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.summary-row:last-child {
    border-bottom: none;
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--primary);
    padding-top: 0.75rem;
}

/* ===== GAME OVER ===== */
.gameover-title {
    font-size: 2rem;
    font-weight: 900;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: -0.02em;
}

.final-summary {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 2rem;
    margin: 1.5rem 0;
    width: 100%;
    max-width: 500px;
    border: 1px solid var(--border);
}

.final-total {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--primary);
    margin-bottom: 0.25rem;
}

.final-grade {
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

.final-rank {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 1.25rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--border);
}

.final-breakdown {
    text-align: left;
    width: 100%;
}

.final-breakdown .summary-row {
    font-size: 0.88rem;
}

/* ===== READING RECOMMENDATION ===== */
.reading-recommendation {
    margin-top: 1rem;
    padding: 1rem 1.25rem;
    background: var(--primary-glow);
    border-left: 3px solid var(--primary);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.6;
    text-align: left;
}

.reading-recommendation strong {
    color: var(--primary);
}

/* ===== SHARE SECTION ===== */
.share-section {
    margin: 1rem 0 0.5rem;
    text-align: center;
}

.share-label {
    font-size: 0.72rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-weight: 700;
    margin-bottom: 0.6rem;
}

.share-buttons {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
}

.btn-share {
    padding: 0.55rem 1.25rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    font-size: 0.82rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-linkedin {
    background: #0a66c2;
    color: white;
    border-color: #0a66c2;
}

.btn-linkedin:hover {
    background: #004182;
    transform: translateY(-1px);
}

.btn-download {
    background: var(--bg-card);
    color: var(--text-muted);
}

.btn-download:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-light);
    color: var(--text-secondary);
}

/* ===== LEADERBOARD ===== */
.leaderboard-list {
    width: 100%;
    max-width: 500px;
    margin: 1.5rem 0;
}

.leaderboard-entry {
    display: flex;
    align-items: center;
    padding: 0.85rem 1.25rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    margin-bottom: 0.5rem;
    gap: 1rem;
    transition: background 0.2s;
}

.leaderboard-entry:hover {
    background: var(--bg-card-hover);
}

.leaderboard-rank {
    font-size: 1.1rem;
    font-weight: 800;
    min-width: 2rem;
    color: var(--text-muted);
}

.leaderboard-entry:nth-child(1) .leaderboard-rank { color: var(--gold); }
.leaderboard-entry:nth-child(2) .leaderboard-rank { color: var(--silver); }
.leaderboard-entry:nth-child(3) .leaderboard-rank { color: var(--bronze); }

.leaderboard-entry:nth-child(1) {
    border-color: rgba(251, 191, 36, 0.3);
    background: rgba(251, 191, 36, 0.05);
}

.leaderboard-name {
    flex: 1;
    font-weight: 600;
    color: var(--text);
}

.leaderboard-score {
    font-weight: 700;
    color: var(--primary);
}

.leaderboard-date {
    font-size: 0.72rem;
    color: var(--text-muted);
}

/* ===== CAREER LEADERBOARD ===== */
.career-lb-entry {
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
}
.career-lb-main {
    flex: 1;
    min-width: 120px;
}
.career-lb-name {
    font-weight: 600;
    color: var(--text);
}
.career-lb-meta {
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-top: 0.15rem;
}
.career-lb-stats {
    text-align: right;
}
.career-lb-score {
    font-weight: 700;
    color: var(--primary);
}
.career-lb-pct {
    font-weight: 400;
    font-size: 0.8rem;
    color: var(--text-muted);
}
.career-lb-details {
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-top: 0.15rem;
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
}

/* ===== RANK BADGES ===== */
.rank-badge {
    display: inline-block;
    padding: 0.25rem 0.65rem;
    border-radius: 2rem;
    font-size: 0.75rem;
    font-weight: 700;
}

.rank-badge.rank-a { background: var(--success-bg); color: var(--success); }
.rank-badge.rank-b { background: var(--primary-glow); color: var(--primary); }
.rank-badge.rank-c { background: var(--warning-bg); color: var(--warning); }
.rank-badge.rank-d { background: rgba(239, 68, 68, 0.1); color: var(--danger); }

/* ===== PROGRESS BAR ===== */
.progress-bar {
    width: 100%;
    height: 4px;
    background: var(--border);
    border-radius: 2px;
    overflow: hidden;
    margin-top: 0.5rem;
}

.progress-fill {
    height: 100%;
    background: var(--primary);
    border-radius: 2px;
    transition: width 0.4s ease;
}

/* ===== AVATAR ===== */
.avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #0a0a0f;
    font-size: 0.75rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    letter-spacing: 0.02em;
}

.avatar-lg {
    width: 48px;
    height: 48px;
    font-size: 0.9rem;
}

/* ===== CONTEXT HEADER ===== */
.context-header {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.context-icon {
    font-size: 1.6rem;
    line-height: 1;
    flex-shrink: 0;
    margin-top: 0.1rem;
}

.context-title-group h3 {
    margin-bottom: 0.2rem;
}

.context-desc {
    color: var(--text-muted);
    font-size: 0.85rem;
    line-height: 1.5;
}

/* ===== CONTEXT CUSTOMER ===== */
.context-customer {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: rgba(0, 0, 0, 0.15);
    border-radius: var(--radius-sm);
    margin-bottom: 1rem;
}

.customer-details {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.customer-name {
    font-weight: 700;
    font-size: 0.92rem;
    color: var(--text);
}

.customer-role {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.customer-info {
    font-size: 0.78rem;
    color: var(--text-muted);
    opacity: 0.7;
    margin-top: 0.15rem;
}

/* ===== STEP PROGRESS BAR ===== */
.step-progress {
    width: 100%;
    height: 4px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 2px;
    overflow: hidden;
}

.step-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), #5EEAD4);
    border-radius: 2px;
    transition: width 0.5s ease;
}

/* ===== BUBBLE WITH AVATAR ===== */
.bubble-with-avatar {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
}

.bubble-content {
    flex: 1;
    min-width: 0;
}

/* ===== TYPING INDICATOR ===== */
.typing-bubble {
    padding: 0.75rem 1.25rem;
}

.typing-dots {
    display: flex;
    gap: 4px;
    padding: 0.25rem 0;
}

.typing-dots span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--text-muted);
    animation: typingBounce 1.2s ease-in-out infinite;
}

.typing-dots span:nth-child(2) {
    animation-delay: 0.15s;
}

.typing-dots span:nth-child(3) {
    animation-delay: 0.3s;
}

@keyframes typingBounce {
    0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
    30% { transform: translateY(-6px); opacity: 1; }
}

/* ===== CHOICE ENTER ANIMATION ===== */
.choice-enter {
    animation: choiceSlideIn 0.35s ease both;
}

@keyframes choiceSlideIn {
    from {
        opacity: 0;
        transform: translateX(-16px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ===== CAREER MODE BUTTON ===== */
.btn-career {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #0a0a0f;
    font-weight: 800;
    box-shadow: 0 2px 16px rgba(245, 158, 11, 0.25);
    border: none;
    padding: 0.8rem 1.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s ease;
    letter-spacing: 0.02em;
}

.btn-career:hover {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    transform: translateY(-1px);
    box-shadow: 0 4px 24px rgba(245, 158, 11, 0.35);
}

/* ===== CAREER CONTAINER ===== */
.career-container {
    max-width: 700px;
    margin: 0 auto;
    padding: 1.5rem;
    min-height: 100vh;
}

/* ===== CAREER PLAYER CARD ===== */
.career-player-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem;
    margin-bottom: 1.5rem;
}

.career-player-info {
    flex: 1;
}

.career-player-name {
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--text);
}

.career-player-title {
    font-size: 0.85rem;
    color: var(--primary);
    font-weight: 600;
}

.career-player-week {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-top: 0.15rem;
}

.career-total-score {
    text-align: center;
}

.career-score-number {
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--primary);
    line-height: 1;
}

.career-score-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* ===== CAREER SECTIONS ===== */
.career-section {
    margin-bottom: 1.5rem;
}

.career-section-title {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

/* ===== PIPELINE ===== */
.pipeline-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.pipeline-stages {
    display: flex;
    gap: 0.35rem;
    min-width: min-content;
}

.pipeline-stage {
    flex: 1;
    min-width: 110px;
}

.pipeline-stage-label {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--text-muted);
    padding: 0.4rem 0.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm) var(--radius-sm) 0 0;
    text-align: center;
    white-space: nowrap;
}

.pipeline-stage-deals {
    min-height: 60px;
    background: rgba(0, 0, 0, 0.15);
    border: 1px solid var(--border);
    border-top: none;
    border-radius: 0 0 var(--radius-sm) var(--radius-sm);
    padding: 0.4rem;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.pipeline-deal-card {
    background: var(--primary-glow);
    border: 1px solid var(--primary-border);
    border-radius: 4px;
    padding: 0.35rem 0.5rem;
    animation: fadeSlideIn 0.3s ease;
}

.pipeline-deal-company {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--text);
    line-height: 1.2;
}

.pipeline-deal-value {
    font-size: 0.65rem;
    color: var(--primary);
    font-weight: 600;
}

/* ===== WEEK ACTIVITIES LIST ===== */
.career-week-activities {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.career-activity-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    transition: all 0.2s;
}

.career-activity-item.current {
    border-color: var(--primary);
    background: var(--primary-glow);
}

.career-activity-item.completed {
    opacity: 0.5;
}

.career-activity-icon {
    font-size: 1.1rem;
    flex-shrink: 0;
}

.career-activity-title {
    flex: 1;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.career-activity-score {
    font-size: 0.8rem;
    color: var(--success);
    font-weight: 700;
}

/* ===== CAREER INBOX ===== */
.career-inbox {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.career-message {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
}

.career-message-content {
    flex: 1;
    min-width: 0;
}

.career-message-sender {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.2rem;
}

.career-message-text {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.career-dashboard-actions {
    display: flex;
    justify-content: center;
    padding: 1rem 0 2rem;
}

/* ===== EMAIL COMPOSER ===== */
.email-composer,
.proposal-editor,
.result-email-preview {
    background: #1e1e38;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.email-chrome,
.proposal-chrome {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1rem;
    background: rgba(0, 0, 0, 0.25);
    border-bottom: 1px solid var(--border);
}

.email-dots {
    display: flex;
    gap: 5px;
}

.email-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--border);
}

.email-dots span:first-child { background: #ef4444; }
.email-dots span:nth-child(2) { background: #f59e0b; }
.email-dots span:nth-child(3) { background: #10b981; }

.email-chrome-title {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 600;
}

.email-fields {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border);
}

.email-field {
    display: flex;
    gap: 0.5rem;
    padding: 0.25rem 0;
    font-size: 0.82rem;
}

.email-field-label {
    color: var(--text-muted);
    font-weight: 600;
    min-width: 50px;
}

.email-field-value {
    color: var(--text-secondary);
}

.email-placeholder {
    color: var(--text-muted);
    opacity: 0.5;
    font-style: italic;
}

.email-body-area {
    padding: 1rem;
    min-height: 80px;
}

.email-body-text {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 0.75rem;
    animation: fadeSlideIn 0.3s ease;
}

.email-body-placeholder {
    font-size: 0.82rem;
    color: var(--text-muted);
    opacity: 0.4;
    font-style: italic;
}

/* ===== PROPOSAL EDITOR ===== */
.proposal-body {
    padding: 1rem;
    min-height: 80px;
}

.proposal-section-filled {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
    animation: fadeSlideIn 0.3s ease;
}

.proposal-section-filled:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

/* ===== CAREER ACTIVITY HEADER ===== */
.career-activity-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
}

.career-activity-badge {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 0.4rem 0.85rem;
    border-radius: 2rem;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text);
}

.career-step-counter {
    font-size: 0.78rem;
    color: var(--text-muted);
}

.career-choices-section {
    margin-top: 1.25rem;
}

.career-choices-section h4 {
    margin-bottom: 1rem;
    color: var(--text);
    font-size: 0.92rem;
    font-weight: 600;
    line-height: 1.5;
}

.career-dialogue-area {
    margin-bottom: 0.5rem;
}

.career-feedback-text {
    color: var(--text-secondary);
    font-size: 0.9rem;
    max-width: 500px;
    line-height: 1.6;
}

/* ===== CAREER RESULT ===== */
.career-result-header {
    text-align: center;
    margin-bottom: 1rem;
}

.career-result-emoji {
    font-size: 3rem;
    display: block;
    margin-bottom: 0.5rem;
}

.career-result-score {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.career-result-points {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--primary);
}

.career-result-max {
    font-size: 1rem;
    color: var(--text-muted);
}

/* ===== CAREER REVIEW ===== */
.career-review-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.career-review-score {
    font-size: 1.1rem;
    color: var(--primary);
    font-weight: 700;
    margin-top: 0.25rem;
}

.career-review-message {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.career-review-bubble {
    flex: 1;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1rem 1.25rem;
}

.career-review-sender {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.career-review-bubble p {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.career-review-stats {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
}

/* ===== PROMOTION ===== */
.promotion-celebration {
    text-align: center;
    padding: 2rem 0;
}

.promotion-icon {
    font-size: 4rem;
    margin-bottom: 0.5rem;
    animation: promotionBounce 0.6s ease;
}

@keyframes promotionBounce {
    0% { transform: scale(0); }
    50% { transform: scale(1.3); }
    100% { transform: scale(1); }
}

.promotion-transition {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin: 1.5rem 0;
    font-size: 1.1rem;
    font-weight: 700;
}

.promotion-old {
    color: var(--text-muted);
    opacity: 0.6;
}

.promotion-arrow {
    color: var(--primary);
    font-size: 1.5rem;
}

.promotion-new {
    color: var(--primary);
}

.promotion-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.25rem;
}

.promotion-desc {
    font-size: 0.88rem;
    color: var(--text-muted);
}

.promotion-stats {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1rem 1.25rem;
    margin: 1.5rem 0;
    max-width: 400px;
    width: 100%;
}

/* ===== CAREER COMPLETE ===== */
.career-complete-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
    margin: 1.5rem 0;
    width: 100%;
    max-width: 500px;
    text-align: center;
}

.career-complete-level {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 1rem;
}

.career-pipeline-final {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
    text-align: left;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 640px) {
    .title { font-size: 2.4rem; }
    .title-accent { font-size: inherit; }
    .branch-grid { grid-template-columns: repeat(3, 1fr); max-width: 100%; gap: 0.4rem; }
    .branch-card { padding: 0.6rem 0.3rem; }
    .branch-name { font-size: 0.62rem; }
    .game-container { padding: 1rem; }
    .game-header { padding: 0.65rem 1rem; flex-wrap: wrap; }
    .header-center { display: none; }
    .dialogue-bubble { max-width: 95%; font-size: 0.9rem; }
    .container { padding: 1.5rem 1rem; }
    .choice-btn { padding: 0.85rem 1rem; font-size: 0.86rem; }
    .scenario-context { padding: 1rem; }
    .feedback-tip { max-width: 100%; }
    .final-summary { padding: 1.25rem; }
    .career-container { padding: 0.75rem; }
    .career-player-card { flex-wrap: wrap; gap: 0.75rem; padding: 1rem; }
    .pipeline-stages { gap: 0.2rem; }
    .pipeline-stage { min-width: 62px; flex: 1; }
    .pipeline-stage-label { font-size: 0.58rem; padding: 0.3rem 0.25rem; }
    .pipeline-deal-company { font-size: 0.6rem; }
    .pipeline-deal-value { font-size: 0.55rem; }
    .pipeline-stage-deals { min-height: 45px; padding: 0.25rem; }
    .relationship-trust { min-width: 70px; }
    .trust-bar { width: 55px; }
    .trust-label { font-size: 0.6rem; }
    .relationship-card { padding: 0.5rem 0.6rem; gap: 0.5rem; }
    .relationship-name { font-size: 0.78rem; }
    .relationship-role { font-size: 0.65rem; }
    .career-complete-card { padding: 1.25rem; }
    .career-section-title { font-size: 0.65rem; }
    .career-message { font-size: 0.85rem; }
    .career-message-sender { font-size: 0.72rem; }
    .description { font-size: 0.88rem; padding: 0 0.5rem; }
    .subtitle { font-size: 0.9rem; }
    .btn { font-size: 0.85rem; padding: 0.75rem 1.25rem; }
    .modal-content { margin: 0.5rem; padding: 1.5rem; }
    .paywall-card { padding: 0.85rem 1rem; }
    .paywall-card h3 { font-size: 0.9rem; }
}

/* ===== CONSEQUENCES ===== */
.consequence-warning {
    margin: 1rem 0;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 0.9rem;
    animation: shake-warning 0.4s ease;
}
.consequence-deal-lost {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.4);
    color: #fca5a5;
}
.consequence-meeting-lost {
    background: rgba(251, 191, 36, 0.15);
    border: 1px solid rgba(251, 191, 36, 0.4);
    color: #fde68a;
}
@keyframes shake-warning {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-6px); }
    40% { transform: translateX(6px); }
    60% { transform: translateX(-4px); }
    80% { transform: translateX(4px); }
}

.choice-risky {
    border-color: rgba(239, 68, 68, 0.25) !important;
}
.choice-reference {
    border-color: rgba(45, 212, 191, 0.4) !important;
    position: relative;
}
.choice-ref-badge {
    font-size: 0.7rem;
    background: rgba(45, 212, 191, 0.2);
    color: var(--primary);
    padding: 0.1rem 0.4rem;
    border-radius: 0.25rem;
    margin-right: 0.3rem;
    font-weight: 700;
}

/* ===== LOST DEALS ===== */
.pipeline-lost {
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.pipeline-lost-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #ef4444;
    margin-bottom: 0.3rem;
    font-weight: 600;
}
.pipeline-deal-lost {
    opacity: 0.5;
    text-decoration: line-through;
    border-color: rgba(239, 68, 68, 0.3) !important;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.pipeline-lost-icon {
    font-size: 0.8rem;
}

/* ===== REFERENCES ===== */
.career-references {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}
.career-reference-card {
    background: rgba(45, 212, 191, 0.08);
    border: 1px solid rgba(45, 212, 191, 0.2);
    border-radius: 0.5rem;
    padding: 0.5rem 0.75rem;
    font-size: 0.85rem;
    color: var(--text);
}

/* ===== COACHING ===== */
.career-coaching {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 0.75rem;
    padding: 1rem;
    margin: 1rem 0;
}
.career-coaching-title {
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
    color: var(--text);
}
.career-coaching-item {
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem;
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
}
.career-coaching-item strong {
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-bottom: 0.25rem;
}
.career-coaching-item p {
    margin: 0;
    color: var(--text-muted);
    line-height: 1.4;
}
.career-coaching-strong {
    background: rgba(45, 212, 191, 0.08);
    border-left: 3px solid var(--primary);
}
.career-coaching-strong strong { color: var(--primary); }
.career-coaching-weak {
    background: rgba(251, 191, 36, 0.08);
    border-left: 3px solid #fbbf24;
}
.career-coaching-weak strong { color: #fbbf24; }

/* ===== LOST DEALS SUMMARY ===== */
.career-lost-summary {
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: 0.5rem;
    padding: 0.5rem 0.75rem;
    font-size: 0.85rem;
    color: #fca5a5;
    margin: 0.5rem 0;
}

/* ===== CHAPTER TRAINING ===== */

.btn-chapter {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    color: #fff;
    font-weight: 800;
    box-shadow: 0 2px 16px rgba(139, 92, 246, 0.25);
    border: none;
    padding: 0.8rem 1.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s ease;
    letter-spacing: 0.02em;
}

.btn-chapter:hover {
    background: linear-gradient(135deg, #a78bfa, #8b5cf6);
    transform: translateY(-1px);
    box-shadow: 0 4px 24px rgba(139, 92, 246, 0.35);
}

.chapter-select-title {
    font-size: 2rem;
    font-weight: 900;
    margin-bottom: 0.25rem;
}

.chapter-select-subtitle {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.chapter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.chapter-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem;
    text-align: left;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    font-family: inherit;
    color: var(--text);
}

.chapter-card:hover {
    border-color: #8b5cf6;
    background: var(--bg-card-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.15);
}

.chapter-card.chapter-completed {
    border-color: rgba(139, 92, 246, 0.3);
}

.chapter-card-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.25rem;
}

.chapter-icon {
    font-size: 1.5rem;
}

.chapter-number {
    font-size: 0.75rem;
    font-weight: 700;
    color: #a78bfa;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.chapter-card-title {
    font-size: 1.1rem;
    font-weight: 800;
    margin: 0;
}

.chapter-card-subtitle {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-style: italic;
    margin: 0;
}

.chapter-card-desc {
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.4;
    margin: 0.25rem 0;
}

.chapter-card-score {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid var(--border);
}

.chapter-pct {
    font-weight: 800;
    font-size: 1.2rem;
    color: #a78bfa;
}

.chapter-pts {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.chapter-card-badge {
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid var(--border);
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Chapter Intro */
.chapter-intro {
    text-align: center;
    padding: 2rem 0;
}

.chapter-intro-icon {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.chapter-intro-number {
    font-size: 0.85rem;
    color: #a78bfa;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.chapter-intro-title {
    font-size: 2rem;
    font-weight: 900;
    margin: 0.25rem 0;
}

.chapter-intro-subtitle {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: 1rem;
}

.chapter-key-takeaway {
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: var(--radius);
    padding: 1rem 1.25rem;
    margin: 1rem auto;
    max-width: 500px;
    text-align: left;
}

.chapter-takeaway-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: #a78bfa;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.chapter-exercise-count {
    color: var(--text-muted);
    margin: 1rem 0;
}

/* Chapter Exercise */
.chapter-exercise {
    padding: 1rem 0;
}

.chapter-exercise-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.chapter-exercise-label {
    font-size: 0.8rem;
    color: #a78bfa;
    font-weight: 700;
}

.chapter-exercise-progress {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.chapter-exercise-title {
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 0.25rem;
}

.chapter-exercise-desc {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.chapter-book-quote {
    background: rgba(139, 92, 246, 0.08);
    border-left: 3px solid #8b5cf6;
    padding: 0.75rem 1rem;
    margin: 1rem 0;
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-style: italic;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.quote-icon {
    margin-right: 0.25rem;
    font-style: normal;
}

.chapter-prompt {
    font-size: 1.05rem;
    font-weight: 600;
    margin: 1rem 0;
    line-height: 1.5;
}

.chapter-choices {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.chapter-choice-btn {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1rem 1.25rem;
    text-align: left;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
    font-size: 0.9rem;
    color: var(--text);
    line-height: 1.5;
}

.chapter-choice-btn:hover {
    border-color: #8b5cf6;
    background: var(--bg-card-hover);
    transform: translateX(4px);
}

/* Chapter Feedback */
.chapter-feedback {
    text-align: center;
    padding: 1rem 0;
}

.chapter-feedback-points {
    font-size: 1.5rem;
    font-weight: 900;
    margin: 0.5rem 0;
}

.chapter-feedback-points.good { color: var(--success); }
.chapter-feedback-points.ok { color: var(--warning); }
.chapter-feedback-points.bad { color: var(--danger); }

.chapter-feedback-text {
    color: var(--text-secondary);
    line-height: 1.6;
    max-width: 500px;
    margin: 1rem auto;
    text-align: left;
}

/* Chapter Exercise Result */
.chapter-exercise-result,
.chapter-complete {
    text-align: center;
    padding: 1.5rem 0;
}

.chapter-result-icon,
.chapter-complete-icon {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.chapter-result-score,
.chapter-complete-score {
    font-size: 1.5rem;
    font-weight: 900;
    color: #a78bfa;
    margin: 0.5rem 0;
}

.chapter-result-message {
    color: var(--text-secondary);
    margin: 0.5rem 0 1.5rem;
}

.chapter-complete-grade {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0.5rem 0 1rem;
    color: var(--text);
}

.chapter-complete-takeaway {
    color: var(--text-secondary);
    max-width: 500px;
    margin: 0.5rem auto 1.5rem;
    line-height: 1.5;
}

.chapter-exercise-breakdown {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1rem;
    margin: 1rem auto;
    max-width: 450px;
    text-align: left;
}

.chapter-exercise-breakdown h3 {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

.chapter-breakdown-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border);
}

.chapter-breakdown-row:last-child { border-bottom: none; }

.chapter-breakdown-title {
    font-size: 0.85rem;
    color: var(--text);
}

.chapter-breakdown-score {
    font-weight: 700;
    font-size: 0.85rem;
}

.chapter-breakdown-score.good { color: var(--success); }
.chapter-breakdown-score.ok { color: var(--warning); }
.chapter-breakdown-score.bad { color: var(--danger); }

.chapter-complete-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-width: 300px;
    margin: 1.5rem auto 0;
}

/* ===== RELATIONSHIPS ===== */
.career-relationships {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.relationship-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 0.6rem 0.8rem;
}

.relationship-icon {
    font-size: 1.2rem;
}

.relationship-info {
    flex: 1;
    min-width: 0;
}

.relationship-name {
    font-weight: 600;
    font-size: 0.85rem;
}

.relationship-role {
    font-size: 0.72rem;
    color: var(--text-muted);
}

.relationship-trust {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.2rem;
    min-width: 90px;
}

.trust-bar {
    width: 80px;
    height: 6px;
    background: rgba(255,255,255,0.08);
    border-radius: 3px;
    overflow: hidden;
}

.trust-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 0.5s ease;
}

.trust-label {
    font-size: 0.68rem;
    font-weight: 600;
}

/* ===== RELATIONSHIP CHANGES IN FEEDBACK ===== */
.relationship-changes {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin: 0.75rem 0;
}

.rel-change {
    font-size: 0.8rem;
    padding: 0.25rem 0.6rem;
    border-radius: 12px;
    font-weight: 600;
}

.rel-up {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
}

.rel-down {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
}

/* ===== SIDE MISSIONS ===== */
.side-mission-card {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1), rgba(45, 212, 191, 0.05));
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: var(--radius);
    padding: 1rem;
}

.side-mission-header {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    margin-bottom: 0.75rem;
}

.side-mission-icon {
    font-size: 1.5rem;
}

.side-mission-title {
    font-weight: 700;
    font-size: 0.95rem;
    color: #c4b5fd;
}

.side-mission-desc {
    font-size: 0.82rem;
    color: var(--text-secondary);
    margin-top: 0.2rem;
}

.side-mission-reward {
    font-size: 0.8rem;
    color: #fbbf24;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.btn-side-mission {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    color: white;
    border: none;
    padding: 0.5rem 1.2rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    cursor: pointer;
    font-size: 0.85rem;
    transition: transform 0.15s;
}

.btn-side-mission:hover {
    transform: translateY(-1px);
}

@media (max-width: 400px) {
    .title { font-size: 2rem; }
    .branch-grid { grid-template-columns: repeat(2, 1fr); }
    .start-buttons { max-width: 100%; }
    .chapter-grid { grid-template-columns: 1fr; }
    .auth-header { padding: 0.4rem 0.75rem; }
    .access-badge { font-size: 0.55rem; padding: 0.1rem 0.4rem; }
    .btn-auth-link { font-size: 0.68rem; padding: 0.25rem 0.5rem; }
    .container { padding: 1.25rem 0.75rem; }
    .branch-card { padding: 0.5rem 0.2rem; }
    .branch-icon { font-size: 1.2rem; }
    .branch-name { font-size: 0.58rem; }
    .modal-content { padding: 1.25rem; }
    .diamond-hero { margin-bottom: 0.5rem; }
    .diamond-shape { width: 60px; height: 60px; }
    .pipeline-stage { min-width: 56px; }
    .pipeline-stage-label { font-size: 0.52rem; letter-spacing: 0; }
    .relationship-trust { min-width: 60px; }
    .trust-bar { width: 48px; }
}

/* ===== BACK BUTTON (in-game) ===== */
.btn-back-small {
    background: none;
    border: 1px solid var(--border);
    color: var(--text-muted);
    padding: 0.25rem 0.6rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-back-small:hover {
    border-color: var(--primary-border);
    color: var(--primary);
}

/* ===== AUTH HEADER ===== */
.auth-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1.25rem;
    width: 100%;
    flex-shrink: 0;
}

.auth-header * {
    cursor: pointer;
}

.auth-user-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.auth-avatar {
    width: 32px;
    height: 32px;
    font-size: 0.65rem;
}

.auth-user-name {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-secondary);
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.auth-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.btn-auth-link {
    background: none;
    border: 1px solid var(--border);
    color: var(--text-muted);
    padding: 0.3rem 0.75rem;
    border-radius: 2rem;
    font-size: 0.75rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-auth-link:hover {
    border-color: var(--primary-border);
    color: var(--primary);
    background: var(--primary-glow);
}

/* ===== ACCESS BADGES ===== */
.access-badge {
    display: inline-block;
    padding: 0.15rem 0.55rem;
    border-radius: 2rem;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.badge-free {
    background: rgba(152, 152, 180, 0.15);
    color: var(--text-muted);
    border: 1px solid rgba(152, 152, 180, 0.3);
}

.badge-book {
    background: rgba(45, 212, 191, 0.12);
    color: var(--primary);
    border: 1px solid var(--primary-border);
}

.badge-training {
    background: rgba(251, 191, 36, 0.12);
    color: #fbbf24;
    border: 1px solid rgba(251, 191, 36, 0.3);
}

.badge-premium {
    background: rgba(139, 92, 246, 0.12);
    color: #a78bfa;
    border: 1px solid rgba(139, 92, 246, 0.3);
}

/* ===== MODAL OVERLAY ===== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 1rem;
}

.modal-content {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    max-width: 440px;
    width: 100%;
    position: relative;
    box-shadow: var(--shadow-lg);
    animation: modalFadeIn 0.25s ease;
    max-height: 90vh;
    overflow-y: auto;
}

@keyframes modalFadeIn {
    from { opacity: 0; transform: translateY(16px) scale(0.97); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-close {
    position: absolute;
    top: 0.75rem;
    right: 1rem;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    line-height: 1;
    padding: 0.25rem;
    transition: color 0.15s;
}

.modal-close:hover {
    color: var(--text);
}

.modal-title {
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--text);
}

/* ===== AUTH TABS ===== */
.auth-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 1.25rem;
    border-bottom: 2px solid var(--border);
}

.auth-tab {
    flex: 1;
    background: none;
    border: none;
    padding: 0.6rem 0.75rem;
    font-size: 0.85rem;
    font-weight: 600;
    font-family: inherit;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
}

.auth-tab:hover {
    color: var(--text-secondary);
}

.auth-tab.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

.auth-tab-content {
    display: none;
}

.auth-tab-content.active {
    display: block;
}

.auth-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
    line-height: 1.5;
}

/* ===== AUTH FORM INPUTS ===== */
.auth-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
    border: 1.5px solid var(--border);
    background: var(--bg-input);
    color: var(--text);
    font-size: 0.9rem;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    margin-bottom: 0.75rem;
}

.auth-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-glow);
}

.auth-input::placeholder {
    color: var(--text-muted);
}

.auth-input:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.auth-submit {
    width: 100%;
}

/* ===== AUTH MESSAGES ===== */
.auth-message {
    margin-top: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    line-height: 1.5;
    display: none;
}

.auth-message:not(:empty) {
    display: block;
}

.auth-message-success {
    background: var(--success-bg);
    color: var(--success);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.auth-message-error {
    background: rgba(239, 68, 68, 0.1);
    color: #fca5a5;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

/* ===== PAYWALL ===== */
.paywall-header {
    text-align: center;
    margin-bottom: 0.5rem;
}

.paywall-icon {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 0.5rem;
}

.paywall-reason {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.88rem;
    margin-bottom: 1.25rem;
    line-height: 1.5;
}

.paywall-options {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    margin-bottom: 1rem;
}

.paywall-card {
    background: var(--bg-input);
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    padding: 1rem 1.25rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.paywall-card:hover {
    border-color: var(--primary-border);
    background: var(--primary-glow);
    transform: translateX(3px);
}

.paywall-card-disabled {
    opacity: 0.45;
    cursor: not-allowed;
    pointer-events: none;
}

.paywall-card-icon {
    font-size: 1.6rem;
    flex-shrink: 0;
}

.paywall-card h3 {
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--text);
    margin: 0;
}

.paywall-card p {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin: 0.1rem 0 0;
}

.paywall-login-hint {
    text-align: center;
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
}

.paywall-login-hint a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.paywall-login-hint a:hover {
    text-decoration: underline;
}

/* ===== LOCK ICON ON BUTTONS ===== */
.lock-icon {
    margin-left: 0.35rem;
    font-size: 0.85em;
}

/* ===== CHAPTER LOCK OVERLAY ===== */
.chapter-card-locked {
    position: relative;
    opacity: 0.6;
}

.chapter-card-locked::after {
    content: '🔒';
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    font-size: 1.1rem;
}

/* ===== AUTH RESPONSIVE ===== */
@media (max-width: 640px) {
    .auth-header {
        padding: 0.5rem 0.75rem;
    }
    .auth-user-name {
        display: none;
    }
}
