/* ============================================================
   GAMES.CSS - Learning Games & Sessions Styles
   Uses site CSS variables from style.css for theme consistency
   ============================================================ */

/* ---- Sessions Card Grid ---- */

section#sessions ul {
    list-style: none;
    margin-left: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-4);
}

section#sessions li {
    margin: 0;
    padding: 0;
}

section#sessions a {
    display: block;
    padding: var(--space-6);
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    transition: all var(--duration-base) var(--ease-out);
}

section#sessions a:hover {
    background: var(--bg-subtle);
    border-color: var(--accent);
    color: var(--text-primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

section#sessions strong {
    display: block;
    margin-bottom: var(--space-2);
    font-family: var(--font-display);
    font-size: 1.125rem;
}

/* ---- Shared Game Utilities ---- */

.game-container {
    max-width: 1400px;
    margin: 0 auto;
}

.game-section {
    background: var(--bg-surface);
    padding: var(--space-6);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-subtle);
    margin-bottom: var(--space-6);
}

.game-section h3 {
    color: var(--text-primary);
    font-family: var(--font-display);
    margin-bottom: var(--space-4);
}

.game-section p {
    color: var(--text-secondary);
    line-height: 1.8;
}

/* Shared button base */
.game-btn {
    padding: var(--space-3) var(--space-6);
    border: none;
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--duration-base) var(--ease-out);
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
}

.game-btn:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.game-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.game-btn--primary {
    background: var(--accent);
    color: var(--bg-base);
}

.game-btn--primary:hover:not(:disabled) {
    background: var(--accent-muted);
}

.game-btn--secondary {
    background: var(--bg-surface);
    color: var(--text-primary);
    border: 1px solid var(--border-default);
}

.game-btn--secondary:hover:not(:disabled) {
    background: var(--bg-subtle);
    border-color: var(--accent);
}

.game-btn--success {
    background: var(--success);
    color: var(--bg-base);
}

.game-btn--danger {
    background: var(--error);
    color: #fff;
}

.game-btn--accent-secondary {
    background: var(--accent-secondary);
    color: #fff;
}

/* Alert/info boxes */
.game-alert {
    padding: var(--space-5);
    border-radius: var(--radius-md);
    margin: var(--space-4) 0;
    display: none;
    line-height: 1.8;
}

.game-alert.show {
    display: block;
    animation: gameSlideIn 0.4s var(--ease-out);
}

.game-alert--danger {
    background: rgba(248, 113, 113, 0.1);
    border: 1px solid var(--error);
    border-left: 3px solid var(--error);
    color: var(--error);
}

.game-alert--warning {
    background: rgba(251, 191, 36, 0.1);
    border: 1px solid var(--warning);
    border-left: 3px solid var(--warning);
    color: var(--warning);
}

.game-alert--success {
    background: rgba(74, 222, 128, 0.1);
    border: 1px solid var(--success);
    border-left: 3px solid var(--success);
    color: var(--success);
}

.game-alert--info {
    background: var(--accent-subtle);
    border: 1px solid var(--accent);
    border-left: 3px solid var(--accent);
    color: var(--accent);
}

.game-info-panel {
    background: var(--bg-surface);
    border-left: 2px solid var(--accent);
    padding: var(--space-5);
    border-radius: var(--radius-md);
    margin: var(--space-4) 0;
    color: var(--text-secondary);
    line-height: 1.8;
}

.game-info-panel strong {
    color: var(--accent);
}

@keyframes gameSlideIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes gameShake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-6px); }
    75% { transform: translateX(6px); }
}

/* Form inputs */
.game-input {
    width: 100%;
    padding: var(--space-3);
    font-family: inherit;
    font-size: 1rem;
    color: var(--text-primary);
    background: var(--bg-surface);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-md);
    transition: all var(--duration-fast) var(--ease-out);
}

.game-input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-subtle);
}

.game-input::placeholder {
    color: var(--text-subtle);
}

/* ============================================================
   HASH CHAIN SIMULATOR
   ============================================================ */

/* Scenario selector */
.scenario-selector {
    background: var(--bg-surface);
    padding: var(--space-6);
    border-radius: var(--radius-lg);
    margin: var(--space-4) 0;
    border: 1px solid var(--border-subtle);
}

.scenario-selector h3 {
    color: var(--text-primary);
    margin-bottom: var(--space-4);
    font-size: 1.25rem;
    font-family: var(--font-display);
}

.scenario-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-4);
    margin: var(--space-4) 0;
}

.scenario-btn {
    padding: var(--space-5);
    background: var(--bg-elevated);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--duration-base) var(--ease-out);
    text-align: left;
    color: var(--text-secondary);
}

.scenario-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--accent);
    background: var(--bg-subtle);
}

.scenario-btn h4 {
    font-size: 1.1rem;
    margin-bottom: var(--space-2);
    color: var(--text-primary);
    font-family: var(--font-display);
}

.scenario-btn p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin: 0;
}

/* Custom blockchain form */
.custom-blockchain-form {
    background: var(--bg-surface);
    padding: var(--space-6);
    border-radius: var(--radius-lg);
    margin: var(--space-4) 0;
    border-left: 3px solid var(--accent);
    border: 1px solid var(--border-subtle);
    border-left: 3px solid var(--accent);
}

.custom-blockchain-form h4 {
    color: var(--accent);
    margin-bottom: var(--space-4);
    font-size: 1.2rem;
    font-family: var(--font-display);
}

.custom-blockchain-form p {
    color: var(--text-secondary);
}

.form-group {
    margin: var(--space-4) 0;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: var(--space-2);
    color: var(--text-primary);
    font-size: 0.9rem;
}

.form-group input {
    width: 100%;
    padding: var(--space-3);
    background: var(--bg-elevated);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: 1rem;
    color: var(--text-primary);
    transition: all var(--duration-fast) var(--ease-out);
}

.form-group input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-subtle);
}

.form-group input::placeholder {
    color: var(--text-subtle);
}

.create-btn {
    padding: var(--space-3) var(--space-8);
    background: var(--accent);
    color: var(--bg-base);
    border: none;
    border-radius: var(--radius-md);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    margin-top: var(--space-4);
    transition: all var(--duration-base) var(--ease-out);
}

.create-btn:hover {
    background: var(--accent-muted);
    transform: translateY(-1px);
}

/* Scenario description & challenge */
.scenario {
    background: var(--bg-surface);
    padding: var(--space-5);
    border-radius: var(--radius-md);
    border-left: 3px solid var(--accent-secondary);
    margin: var(--space-4) 0;
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-secondary);
}

.scenario strong {
    color: var(--text-primary);
}

.challenge {
    background: rgba(248, 113, 113, 0.1);
    padding: var(--space-5);
    border-radius: var(--radius-md);
    border-left: 3px solid var(--error);
    margin: var(--space-4) 0;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--error);
}

/* Blockchain display */
.blockchain {
    display: flex;
    gap: var(--space-4);
    overflow-x: auto;
    padding: var(--space-4) 0;
    margin: var(--space-6) 0;
}

.block {
    min-width: 280px;
    background: var(--bg-elevated);
    border-radius: var(--radius-lg);
    padding: var(--space-5);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--success);
    transition: all var(--duration-base) var(--ease-out);
    position: relative;
}

.block.modified {
    border-color: var(--warning);
    background: rgba(251, 191, 36, 0.05);
}

.block.invalid {
    border-color: var(--error);
    background: rgba(248, 113, 113, 0.05);
    animation: gameShake 0.5s;
}

.block-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-4);
    padding-bottom: var(--space-3);
    border-bottom: 1px solid var(--border-subtle);
}

.block-number {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
    font-family: var(--font-display);
}

.block-status {
    padding: var(--space-1) var(--space-3);
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    font-weight: 600;
}

.block-status.valid {
    background: rgba(74, 222, 128, 0.15);
    color: var(--success);
}

.block-status.modified {
    background: rgba(251, 191, 36, 0.15);
    color: var(--warning);
}

.block-status.invalid {
    background: rgba(248, 113, 113, 0.15);
    color: var(--error);
}

.edit-block-btn {
    position: absolute;
    top: var(--space-3);
    right: var(--space-3);
    padding: var(--space-2) var(--space-3);
    background: var(--accent-secondary);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 600;
    transition: all var(--duration-fast) var(--ease-out);
}

.edit-block-btn:hover {
    opacity: 0.85;
    transform: scale(1.05);
}

.block-field {
    margin: var(--space-3) 0;
}

.field-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: var(--space-1);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.field-value {
    padding: var(--space-3);
    background: var(--bg-surface);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    word-break: break-all;
    border: 1px solid var(--border-subtle);
    min-height: 36px;
    color: var(--text-secondary);
}

.field-value.hash {
    font-family: var(--font-mono);
    color: var(--accent-secondary);
    font-weight: 500;
    font-size: 0.72rem;
}

.field-value.hash.invalid {
    color: var(--error);
}

/* Controls */
.controls {
    background: var(--bg-elevated);
    padding: var(--space-6);
    border-radius: var(--radius-lg);
    margin: var(--space-6) 0;
    text-align: center;
    border: 1px solid var(--border-subtle);
}

.controls h3 {
    color: var(--text-primary);
    margin-bottom: var(--space-4);
    font-size: 1.3rem;
    font-family: var(--font-display);
}

.reset-btn,
.new-scenario-btn,
.mine-btn {
    padding: var(--space-3) var(--space-6);
    color: #fff;
    border: none;
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    margin: var(--space-2);
    transition: all var(--duration-base) var(--ease-out);
}

.reset-btn {
    background: var(--success);
    color: var(--bg-base);
}

.reset-btn:hover {
    opacity: 0.85;
    transform: translateY(-1px);
}

.new-scenario-btn {
    background: var(--accent-secondary);
}

.new-scenario-btn:hover {
    opacity: 0.85;
    transform: translateY(-1px);
}

.mine-btn {
    background: var(--accent);
    color: var(--bg-base);
}

.mine-btn:hover:not(:disabled) {
    background: var(--accent-muted);
    transform: translateY(-1px);
}

.mine-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none;
}

/* Network validation */
.network-validation {
    background: var(--bg-elevated);
    padding: var(--space-6);
    border-radius: var(--radius-lg);
    margin: var(--space-6) 0;
    display: none;
    border: 1px solid var(--border-subtle);
}

.network-validation.show {
    display: block;
}

.network-validation h3 {
    color: var(--text-primary);
    font-size: 1.5rem;
    margin-bottom: var(--space-4);
    font-family: var(--font-display);
}

.node {
    display: inline-block;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin: var(--space-1);
    text-align: center;
    line-height: 50px;
    font-weight: 600;
    font-size: 0.9rem;
}

.node.accept {
    background: rgba(74, 222, 128, 0.15);
    color: var(--success);
    border: 2px solid var(--success);
}

.node.reject {
    background: rgba(248, 113, 113, 0.15);
    color: var(--error);
    border: 2px solid var(--error);
}

/* Mining progress */
.mining-progress {
    background: var(--bg-elevated);
    padding: var(--space-6);
    border-radius: var(--radius-lg);
    margin: var(--space-4) 0;
    display: none;
    border: 1px solid var(--border-subtle);
}

.mining-progress.show {
    display: block;
}

.mining-progress h3 {
    color: var(--text-primary);
    font-family: var(--font-display);
}

.mining-progress p {
    color: var(--text-secondary);
}

.progress-bar {
    width: 100%;
    height: 24px;
    background: var(--bg-muted);
    border-radius: var(--radius-md);
    overflow: hidden;
    margin: var(--space-4) 0;
}

.progress-fill {
    height: 100%;
    background: var(--accent);
    width: 0%;
    transition: width var(--duration-base) var(--ease-out);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bg-base);
    font-weight: 600;
    font-size: 0.85rem;
}

/* Explanation box */
.explanation {
    background: var(--bg-surface);
    padding: var(--space-6);
    border-radius: var(--radius-lg);
    margin: var(--space-4) 0;
    border-left: 3px solid var(--accent-secondary);
}

.explanation h4 {
    color: var(--accent-secondary);
    font-size: 1.2rem;
    margin-bottom: var(--space-4);
    font-family: var(--font-display);
}

.explanation p {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-secondary);
}

.explanation strong {
    color: var(--text-primary);
}

.hidden {
    display: none;
}


/* ============================================================
   SYSTEM ANALYZER QUIZ
   ============================================================ */

.quiz-progress-bar {
    width: 100%;
    height: 6px;
    background: var(--bg-muted);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-6);
    overflow: hidden;
}

.quiz-progress-fill {
    height: 100%;
    background: var(--accent);
    width: 0%;
    transition: width var(--duration-base) var(--ease-out);
}

.question-card {
    background: var(--bg-surface);
    padding: var(--space-6);
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-4);
    border: 1px solid var(--border-subtle);
}

.system-name {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: var(--space-3);
    font-weight: 600;
    font-family: var(--font-display);
}

.system-description {
    color: var(--text-muted);
    margin-bottom: var(--space-6);
    font-size: 1rem;
    line-height: 1.6;
}

.question-group {
    margin-bottom: var(--space-5);
}

.question-label {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-3);
    font-size: 1rem;
}

.options {
    display: flex;
    gap: var(--space-3);
    flex-wrap: wrap;
}

.option-btn {
    padding: var(--space-3) var(--space-6);
    border: 1px solid var(--accent-secondary);
    background: var(--bg-elevated);
    color: var(--accent-secondary);
    border-radius: var(--radius-md);
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 600;
    transition: all var(--duration-base) var(--ease-out);
    font-family: inherit;
}

.option-btn:hover {
    background: var(--accent-secondary);
    color: #fff;
    transform: translateY(-1px);
}

.option-btn.selected {
    background: var(--accent-secondary);
    color: #fff;
}

.option-btn.correct {
    background: var(--success);
    border-color: var(--success);
    color: var(--bg-base);
}

.option-btn.incorrect {
    background: var(--error);
    border-color: var(--error);
    color: #fff;
}

.submit-btn {
    width: 100%;
    padding: var(--space-4);
    background: var(--accent);
    color: var(--bg-base);
    border: none;
    border-radius: var(--radius-md);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--duration-base) var(--ease-out);
    font-family: inherit;
}

.submit-btn:hover:not(:disabled) {
    background: var(--accent-muted);
    transform: translateY(-1px);
}

.submit-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.feedback {
    margin-top: var(--space-4);
    padding: var(--space-5);
    border-radius: var(--radius-md);
    display: none;
}

.feedback.show {
    display: block;
}

.feedback.correct {
    background: rgba(74, 222, 128, 0.1);
    border-left: 3px solid var(--success);
}

.feedback.incorrect {
    background: rgba(248, 113, 113, 0.1);
    border-left: 3px solid var(--error);
}

.feedback-title {
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: var(--space-3);
    color: var(--text-primary);
}

.feedback-text {
    line-height: 1.6;
    color: var(--text-secondary);
}

.feedback-text p {
    margin-bottom: var(--space-3);
}

.next-btn {
    margin-top: var(--space-4);
    padding: var(--space-3) var(--space-6);
    background: var(--accent-secondary);
    color: #fff;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: all var(--duration-base) var(--ease-out);
    font-family: inherit;
}

.next-btn:hover {
    opacity: 0.85;
    transform: translateY(-1px);
}

/* Score screen */
.score-screen {
    text-align: center;
    padding: var(--space-8);
    display: none;
}

.score-screen.show {
    display: block;
}

.score-screen h2 {
    color: var(--text-primary);
    font-family: var(--font-display);
}

.score-circle {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: var(--bg-surface);
    border: 3px solid var(--accent);
    color: var(--accent);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: var(--space-6) auto;
    font-size: 3rem;
    font-weight: 700;
    font-family: var(--font-display);
}

.score-label {
    font-size: 0.3em;
    margin-top: var(--space-2);
    color: var(--text-muted);
}

.literacy-level {
    font-size: 1.3rem;
    color: var(--accent);
    margin: var(--space-4) 0;
    font-weight: 600;
    font-family: var(--font-display);
}

.restart-btn {
    padding: var(--space-3) var(--space-8);
    background: var(--accent);
    color: var(--bg-base);
    border: none;
    border-radius: var(--radius-md);
    font-size: 1rem;
    cursor: pointer;
    margin-top: var(--space-4);
    font-weight: 600;
    transition: all var(--duration-base) var(--ease-out);
    font-family: inherit;
}

.restart-btn:hover {
    background: var(--accent-muted);
    transform: translateY(-1px);
}


/* ============================================================
   BANKING JOURNEY GAME
   ============================================================ */

.intro-screen {
    background: var(--bg-elevated);
    border-radius: var(--radius-lg);
    padding: var(--space-10);
    text-align: center;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-subtle);
}

.intro-screen h1 {
    font-size: 2.5rem;
    color: var(--text-primary);
    margin-bottom: var(--space-4);
    font-family: var(--font-display);
}

.intro-screen .scenario {
    font-size: 1.15rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin: var(--space-6) 0;
    padding: var(--space-6);
    background: var(--bg-surface);
    border-radius: var(--radius-md);
    border-left: 3px solid var(--accent);
    text-align: left;
}

.path-selector {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-6);
    margin-top: var(--space-8);
}

.path-card {
    background: var(--bg-elevated);
    padding: var(--space-8);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-default);
    cursor: pointer;
    transition: all var(--duration-base) var(--ease-out);
    text-align: left;
}

.path-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.path-card.centralized {
    border-color: var(--error);
}

.path-card.centralized:hover {
    border-color: var(--error);
    background: rgba(248, 113, 113, 0.05);
}

.path-card.decentralized {
    border-color: var(--success);
}

.path-card.decentralized:hover {
    border-color: var(--success);
    background: rgba(74, 222, 128, 0.05);
}

.path-card h2 {
    font-size: 1.75rem;
    margin-bottom: var(--space-3);
    font-family: var(--font-display);
}

.path-card.centralized h2 {
    color: var(--error);
}

.path-card.decentralized h2 {
    color: var(--success);
}

.path-card p {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.6;
}

/* Journey container */
.journey-container {
    display: none;
}

.journey-container.active {
    display: block;
}

.journey-header {
    background: var(--bg-elevated);
    padding: var(--space-6);
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-6);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid var(--border-subtle);
}

.journey-title {
    font-size: 1.75rem;
    font-weight: 600;
    font-family: var(--font-display);
}

.journey-title.centralized {
    color: var(--error);
}

.journey-title.decentralized {
    color: var(--success);
}

/* Step cards */
.step-card {
    background: var(--bg-elevated);
    border-radius: var(--radius-lg);
    padding: var(--space-8);
    margin-bottom: var(--space-6);
    opacity: 0;
    transform: translateY(20px);
    transition: all var(--duration-slow) var(--ease-out);
    border: 1px solid var(--border-subtle);
}

.step-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.step-number {
    display: inline-block;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--accent);
    color: var(--bg-base);
    font-size: 1.25rem;
    font-weight: 700;
    text-align: center;
    line-height: 44px;
    margin-bottom: var(--space-4);
}

.step-title {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: var(--space-3);
    font-weight: 600;
    font-family: var(--font-display);
}

.step-content {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: var(--space-4);
}

.step-info {
    background: var(--bg-surface);
    padding: var(--space-5);
    border-radius: var(--radius-md);
    border-left: 3px solid var(--accent);
    margin: var(--space-4) 0;
    color: var(--text-secondary);
    line-height: 1.6;
}

.step-info.warning {
    background: rgba(251, 191, 36, 0.08);
    border-left-color: var(--warning);
}

.step-info.danger {
    background: rgba(248, 113, 113, 0.08);
    border-left-color: var(--error);
}

.step-info.success {
    background: rgba(74, 222, 128, 0.08);
    border-left-color: var(--success);
}

.step-info.info {
    background: var(--accent-subtle);
    border-left-color: var(--accent);
}

.next-step-btn {
    padding: var(--space-3) var(--space-8);
    background: var(--accent);
    color: var(--bg-base);
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    margin-top: var(--space-4);
    transition: all var(--duration-base) var(--ease-out);
    font-family: inherit;
}

.next-step-btn:hover {
    background: var(--accent-muted);
    transform: translateY(-1px);
}

/* Comparison screen */
.comparison-screen {
    display: none;
    background: var(--bg-elevated);
    border-radius: var(--radius-lg);
    padding: var(--space-10);
    border: 1px solid var(--border-subtle);
}

.comparison-screen.active {
    display: block;
}

.comparison-screen h2 {
    font-size: 2rem;
    color: var(--text-primary);
    text-align: center;
    margin-bottom: var(--space-8);
    font-family: var(--font-display);
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    margin: var(--space-6) 0;
}

.comparison-table th,
.comparison-table td {
    padding: var(--space-4);
    text-align: left;
    border-bottom: 1px solid var(--border-subtle);
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.comparison-table th {
    background: var(--bg-surface);
    font-weight: 600;
    color: var(--text-primary);
}

.comparison-table td strong {
    color: var(--text-primary);
}

.comparison-table .centralized-col {
    background: rgba(248, 113, 113, 0.06);
}

.comparison-table .decentralized-col {
    background: rgba(74, 222, 128, 0.06);
}

.final-message {
    background: var(--bg-surface);
    border: 1px solid var(--accent);
    color: var(--text-secondary);
    padding: var(--space-8);
    border-radius: var(--radius-lg);
    text-align: center;
    margin-top: var(--space-8);
    font-size: 1.1rem;
    line-height: 1.8;
}

.final-message strong {
    color: var(--accent);
}


/* ============================================================
   RESPONSIVE - GAMES
   ============================================================ */

@media (max-width: 768px) {
    .blockchain {
        flex-direction: column;
    }

    .block {
        min-width: 100%;
    }

    .node {
        width: 40px;
        height: 40px;
        line-height: 40px;
        font-size: 0.8rem;
    }

    .scenario-buttons {
        grid-template-columns: 1fr;
    }

    .path-selector {
        grid-template-columns: 1fr;
    }

    .journey-header {
        flex-direction: column;
        gap: var(--space-4);
        text-align: center;
    }

    .intro-screen {
        padding: var(--space-6);
    }

    .step-card {
        padding: var(--space-5);
    }

    .comparison-table {
        font-size: 0.85rem;
    }

    .comparison-table th,
    .comparison-table td {
        padding: var(--space-3);
    }
}
