/* ===== DAY 2 STYLESHEET =====
   Shares design tokens from Day 1 but self-contained.
*/

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg: #0a0a0f;
    --bg-card: #13131a;
    --bg-card-hover: #1a1a24;
    --border: #2a2a3a;
    --text: #e4e4ef;
    --text-dim: #8888a0;
    --accent: #6c5ce7;
    --accent-glow: rgba(108, 92, 231, 0.3);
    --green: #00b894;
    --red: #fd7272;
    --orange: #fdcb6e;
    --blue: #74b9ff;
    --cyan: #81ecec;
    --pink: #fd79a8;
    --font: 'Inter', -apple-system, sans-serif;
    --mono: 'JetBrains Mono', monospace;
    --radius: 12px;
    --section-pad: 60px;
}

html {
    scroll-snap-type: y mandatory;
    scroll-behavior: smooth;
    overflow-y: scroll;
    scrollbar-width: thin;
    scrollbar-color: var(--accent) var(--bg);
}

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* ===== LAYOUT ===== */
.section {
    min-height: 100vh;
    scroll-snap-align: start;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--section-pad) 40px;
    position: relative;
}

.content {
    max-width: 1000px;
    width: 100%;
}

.section-wide .content {
    max-width: 1200px;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}

.section-desc {
    font-size: 1.1rem;
    color: var(--text-dim);
    margin-bottom: 40px;
    max-width: 650px;
}

/* ===== NAV DOTS ===== */
#nav-dots {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.nav-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--border);
    cursor: pointer;
    transition: all 0.3s;
    border: none;
    position: relative;
}

.nav-dot:hover {
    background: var(--text-dim);
    transform: scale(1.3);
}

.nav-dot.active {
    background: var(--accent);
    box-shadow: 0 0 10px var(--accent-glow);
    transform: scale(1.3);
}

.nav-dot .nav-tooltip {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.75rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
}

.nav-dot:hover .nav-tooltip {
    opacity: 1;
}

#section-counter {
    position: fixed;
    left: 20px;
    bottom: 20px;
    font-family: var(--mono);
    font-size: 0.8rem;
    color: var(--text-dim);
    z-index: 1000;
}

/* ===== HERO ===== */
.hero-content {
    text-align: center;
}

.hero-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--green), var(--cyan));
    color: var(--bg);
    padding: 6px 18px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 24px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 16px;
    letter-spacing: -0.03em;
}

.gradient-text {
    background: linear-gradient(135deg, var(--green), var(--cyan), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-dim);
    margin-bottom: 20px;
}

.hero-meta {
    font-size: 0.95rem;
    color: var(--text-dim);
    margin-bottom: 40px;
}

.hero-meta .dot {
    margin: 0 8px;
}

.hero-hint {
    font-size: 0.85rem;
    color: var(--text-dim);
    opacity: 0.6;
    animation: pulse 2s ease-in-out infinite;
}

kbd {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 2px 8px;
    border-radius: 4px;
    font-family: var(--mono);
    font-size: 0.8rem;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 0.4;
    }

    50% {
        opacity: 0.8;
    }
}

/* ===== BUTTONS & INPUTS ===== */
.btn {
    padding: 8px 20px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--bg-card);
    color: var(--text);
    font-family: var(--font);
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s;
}

.btn:hover {
    border-color: var(--text-dim);
    background: var(--bg-card-hover);
}

.btn-primary {
    background: var(--accent);
    border-color: var(--accent);
    color: white;
}

.btn-primary:hover {
    background: #5a4bd4;
}

.btn-accent {
    background: var(--green);
    border-color: var(--green);
    color: var(--bg);
    font-weight: 600;
}

.btn-accent:hover {
    background: #00a381;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

input[type="text"],
textarea {
    width: 100%;
    background: var(--bg);
    border: 1px solid var(--border);
    color: var(--text);
    padding: 10px 14px;
    font-family: var(--mono);
    font-size: 0.85rem;
    border-radius: 8px;
    outline: none;
}

input[type="text"]:focus,
textarea:focus {
    border-color: var(--accent);
}

textarea {
    resize: vertical;
}

input[type="file"] {
    display: none;
}

/* ===== RECAP CARDS (Section 2) ===== */
.recap-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.recap-mini {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 20px;
    border-radius: var(--radius);
    transition: border-color 0.2s;
}

.recap-mini:hover {
    border-color: var(--accent);
}

.recap-mini .rc-icon {
    font-size: 1.5rem;
}

.recap-mini h4 {
    margin: 8px 0 4px;
    font-size: 1rem;
}

.recap-mini p {
    font-size: 0.8rem;
    color: var(--text-dim);
}

/* ===== PROMPTING SHOWCASE (Section 3) ===== */
.prompting-showcase {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.showcase-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 24px;
    border-radius: var(--radius);
}

.showcase-card h3 {
    margin-bottom: 12px;
    font-size: 1.1rem;
}

.showcase-card ul {
    padding-left: 20px;
    color: var(--text-dim);
    font-size: 0.9rem;
}

.showcase-card li {
    margin-bottom: 4px;
}

.showcase-note {
    margin-top: 12px;
    font-size: 0.9rem;
    color: var(--text-dim);
    border-top: 1px solid var(--border);
    padding-top: 12px;
}

.stack-items {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.stack-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: var(--text-dim);
    padding: 8px 12px;
    background: rgba(108, 92, 231, 0.05);
    border-radius: 6px;
    border: 1px solid rgba(108, 92, 231, 0.1);
}

.stack-num {
    width: 24px;
    height: 24px;
    background: var(--accent);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    flex-shrink: 0;
}

/* ===== COT (Section 4) ===== */
.cot-demo {
    max-width: 100%;
}

.cot-puzzle-select {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.cot-btn {
    padding: 8px 16px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--bg-card);
    color: var(--text);
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.2s;
}

.cot-btn.active {
    border-color: var(--accent);
    background: rgba(108, 92, 231, 0.15);
}

.cot-btn:hover {
    border-color: var(--text-dim);
}

.cot-question {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 16px;
    border-radius: var(--radius);
    margin-bottom: 16px;
    font-size: 0.95rem;
    line-height: 1.6;
}

.cot-custom-area {
    margin-bottom: 16px;
}

#cot-run {
    margin-bottom: 20px;
}

.cot-panels {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.cot-panel {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 20px;
    border-radius: var(--radius);
}

.cot-panel h3 {
    font-size: 1rem;
    margin-bottom: 12px;
}

.cot-direct {
    border-color: rgba(253, 114, 114, 0.3);
}

.cot-direct h3 {
    color: var(--red);
}

.cot-chain {
    border-color: rgba(0, 184, 148, 0.3);
}

.cot-chain h3 {
    color: var(--green);
}

.cot-result {
    font-size: 0.85rem;
    line-height: 1.6;
    white-space: pre-wrap;
    max-height: 300px;
    overflow-y: auto;
}

.cot-placeholder {
    color: var(--text-dim);
    font-style: italic;
}

.cot-loading {
    color: var(--accent);
    animation: pulse 1.5s ease-in-out infinite;
}

/* ===== ROLE PROMPTING (Section 5) ===== */
.role-explainer {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 24px;
}

.role-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 24px;
    border-radius: var(--radius);
}

.role-card h3 {
    margin-bottom: 12px;
}

.role-question {
    font-family: var(--mono);
    font-size: 0.9rem;
    color: var(--accent);
    background: var(--bg);
    padding: 8px 12px;
    border-radius: 6px;
    margin-bottom: 12px;
}

.role-responses {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.role-resp {
    padding: 10px;
    background: rgba(108, 92, 231, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(108, 92, 231, 0.1);
}

.role-tag {
    font-size: 0.75rem;
    font-weight: 600;
}

.role-resp p {
    font-size: 0.8rem;
    color: var(--text-dim);
    margin-top: 4px;
}

.role-next {
    margin-top: 12px;
    color: var(--accent);
    font-weight: 500;
}

/* ===== CHARACTER CHAT (Section 6) ===== */
.char-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.char-setup {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.char-image-area {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.char-preview {
    width: 100%;
    min-height: 200px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.char-preview img {
    max-width: 100%;
    max-height: 300px;
    object-fit: contain;
}

.char-preview-placeholder {
    color: var(--text-dim);
    font-size: 0.85rem;
}

.char-url-input {
    display: flex;
    gap: 8px;
}

.char-url-input input {
    flex: 1;
}

.char-info {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 16px;
    border-radius: var(--radius);
}

.char-info h4 {
    color: var(--accent);
    margin-bottom: 4px;
}

.char-info p {
    font-size: 0.85rem;
    color: var(--text-dim);
}

.char-info-placeholder {
    color: var(--text-dim);
    font-style: italic;
    font-size: 0.85rem;
}

.char-sys-prompt {
    margin-top: 10px;
    font-family: var(--mono);
    font-size: 0.75rem;
    color: var(--text-dim);
    background: var(--bg);
    padding: 8px;
    border-radius: 6px;
    max-height: 100px;
    overflow-y: auto;
    white-space: pre-wrap;
}

.char-chat-area {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 16px;
    border-radius: var(--radius);
}

.char-messages {
    min-height: 200px;
    max-height: 350px;
    overflow-y: auto;
    margin-bottom: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.char-msg {
    padding: 10px 14px;
    border-radius: 12px;
    max-width: 80%;
    font-size: 0.85rem;
    line-height: 1.5;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

.char-msg.user {
    background: var(--accent);
    color: white;
    align-self: flex-end;
    border-bottom-right-radius: 4px;
}

.char-msg.character {
    background: rgba(0, 184, 148, 0.15);
    border: 1px solid rgba(0, 184, 148, 0.2);
    align-self: flex-start;
    border-bottom-left-radius: 4px;
}

.char-input-row {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
}

.char-input-row input {
    flex: 1;
}

/* ===== TOOL CALLING (Section 7) ===== */
.tool-diagram {
    max-width: 800px;
    margin: 0 auto;
}

.tool-flow {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.tool-node {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 16px;
    border-radius: var(--radius);
    text-align: center;
    min-width: 100px;
}

.tool-node span {
    font-size: 2rem;
    display: block;
    margin-bottom: 6px;
}

.tool-node p {
    font-size: 0.8rem;
    color: var(--text-dim);
}

.tool-arrow {
    font-size: 1.5rem;
    color: var(--accent);
}

.tool-llm {
    border-color: var(--accent);
}

.tool-func {
    border-color: var(--green);
}

.tool-examples {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 20px;
}

.tool-ex {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 10px;
    border-radius: 8px;
}

.tool-ex code {
    font-family: var(--mono);
    font-size: 0.8rem;
    color: var(--green);
}

.tool-ex p {
    font-size: 0.75rem;
    color: var(--text-dim);
    margin-top: 2px;
}

.tool-key-point {
    background: rgba(108, 92, 231, 0.05);
    border: 1px solid rgba(108, 92, 231, 0.2);
    padding: 16px;
    border-radius: var(--radius);
    font-size: 0.9rem;
    color: var(--text-dim);
    text-align: center;
}

/* ===== DUNGEON GAME (Section 8) ===== */
.game-container {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 20px;
}

.game-left {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.game-map {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 6px;
}

.map-room {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 12px 8px;
    border-radius: 8px;
    text-align: center;
    transition: all 0.3s;
    opacity: 0.4;
}

.map-room[data-visited="true"] {
    opacity: 0.7;
}

.map-room[data-active="true"] {
    opacity: 1;
    border-color: var(--accent);
    background: rgba(108, 92, 231, 0.1);
    box-shadow: 0 0 15px var(--accent-glow);
}

.map-room[data-locked="true"] span {
    filter: grayscale(1);
}

.map-room span {
    font-size: 1.5rem;
}

.map-room p {
    font-size: 0.7rem;
    color: var(--text-dim);
    margin-top: 2px;
}

.game-inventory,
.game-tools {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 12px;
    border-radius: 8px;
}

.game-inventory h4,
.game-tools h4 {
    font-size: 0.85rem;
    margin-bottom: 6px;
}

#game-inventory-list {
    font-size: 0.8rem;
    color: var(--text-dim);
}

.tool-log {
    font-family: var(--mono);
    font-size: 0.7rem;
    color: var(--text-dim);
    max-height: 150px;
    overflow-y: auto;
}

.tool-log-entry {
    padding: 3px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.tool-log-entry .tool-name {
    color: var(--green);
}

.game-right {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.game-narrative {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 16px;
    border-radius: var(--radius);
    min-height: 250px;
    max-height: 400px;
    overflow-y: auto;
    font-size: 0.9rem;
    line-height: 1.6;
}

.game-intro {
    margin-bottom: 8px;
}

.game-hint {
    color: var(--text-dim);
    font-size: 0.85rem;
    font-style: italic;
}

.game-msg {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid var(--border);
    animation: fadeIn 0.3s ease;
}

.game-msg.user-cmd {
    color: var(--accent);
    font-family: var(--mono);
    font-size: 0.85rem;
}

.game-msg.user-cmd::before {
    content: "> ";
}

.game-msg.narrative {
    color: var(--text);
}

.game-victory {
    color: var(--green);
    font-weight: 700;
    font-size: 1.1rem;
    text-align: center;
    padding: 20px;
}

.game-input-row {
    display: flex;
    gap: 8px;
}

.game-input-row input {
    flex: 1;
}

/* ===== WHY RAG (Section 9) ===== */
.rag-problems {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.rag-problem-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 20px;
    border-radius: var(--radius);
}

.rag-problem-card h3 {
    margin-bottom: 8px;
    font-size: 1rem;
}

.rag-problem-card p {
    font-size: 0.85rem;
    color: var(--text-dim);
    margin-bottom: 10px;
}

.rag-solution {
    background: rgba(0, 184, 148, 0.05);
    border: 1px solid rgba(0, 184, 148, 0.2);
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.8rem;
    color: var(--green);
}

.rag-equation {
    text-align: center;
    margin-top: 8px;
}

.rag-equation code {
    font-family: var(--mono);
    font-size: 1.2rem;
    color: var(--cyan);
    background: var(--bg-card);
    padding: 10px 24px;
    border-radius: 8px;
    border: 1px solid var(--border);
    display: inline-block;
}

.rag-equation p {
    font-size: 0.9rem;
    color: var(--text-dim);
    margin-top: 8px;
}

/* ===== RAG VISUALIZER (Section 10) ===== */
.rag-pipeline-stages {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.rag-stage {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 10px 14px;
    border-radius: 8px;
    text-align: center;
    min-width: 70px;
    transition: all 0.4s;
}

.rag-stage.active {
    border-color: var(--accent);
    background: rgba(108, 92, 231, 0.15);
    box-shadow: 0 0 15px var(--accent-glow);
}

.rag-stage.done {
    border-color: var(--green);
    background: rgba(0, 184, 148, 0.1);
}

.stage-icon {
    font-size: 1.3rem;
    display: block;
}

.stage-label {
    font-size: 0.7rem;
    color: var(--text-dim);
}

.rag-pipe-arrow {
    color: var(--text-dim);
    font-size: 1.2rem;
}

.rag-workspace {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.rag-left,
.rag-right {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.rag-upload-area,
.rag-query-area {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 16px;
    border-radius: var(--radius);
}

.rag-upload-area h4,
.rag-chunks-area h4,
.rag-query-area h4,
.rag-retrieved-area h4,
.rag-answer-area h4 {
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.rag-upload-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.rag-or {
    text-align: center;
    color: var(--text-dim);
    font-size: 0.8rem;
}

.rag-file-upload label {
    display: inline-block;
    cursor: pointer;
}

.rag-chunks-list,
.rag-retrieved-list {
    max-height: 250px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.rag-chunk-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-family: var(--mono);
    color: var(--text-dim);
    transition: all 0.3s;
}

.rag-chunk-card.highlighted {
    border-color: var(--accent);
    background: rgba(108, 92, 231, 0.1);
    color: var(--text);
}

.rag-chunk-card .chunk-id {
    color: var(--accent);
    font-weight: 600;
}

.rag-chunk-card .chunk-score {
    color: var(--green);
    float: right;
}

.rag-query-row {
    display: flex;
    gap: 8px;
}

.rag-query-row input {
    flex: 1;
}

.rag-answer {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 16px;
    min-height: 120px;
    max-height: 250px;
    overflow-y: auto;
    font-size: 0.85rem;
    line-height: 1.6;
    white-space: pre-wrap;
}

.rag-placeholder {
    color: var(--text-dim);
    font-style: italic;
}

.rag-loading {
    color: var(--accent);
    animation: pulse 1.5s ease-in-out infinite;
}

/* ===== RAG ARCHITECTURES (Section 11) ===== */
.arch-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.arch-tab {
    padding: 8px 18px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--bg-card);
    color: var(--text);
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.2s;
}

.arch-tab.active {
    border-color: var(--accent);
    background: rgba(108, 92, 231, 0.15);
}

.arch-tab:hover {
    border-color: var(--text-dim);
}

.arch-content {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 24px;
    border-radius: var(--radius);
    margin-bottom: 24px;
    min-height: 200px;
}

.arch-content h3 {
    color: var(--accent);
    margin-bottom: 8px;
}

.arch-content p {
    font-size: 0.9rem;
    color: var(--text-dim);
    margin-bottom: 10px;
    line-height: 1.5;
}

.arch-flow {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin: 16px 0;
}

.arch-node {
    background: rgba(108, 92, 231, 0.1);
    border: 1px solid rgba(108, 92, 231, 0.2);
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 500;
}

.arch-arrow {
    color: var(--text-dim);
}

.arch-content .arch-pros {
    margin-top: 12px;
}

.arch-content .arch-pros span {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
    margin: 2px;
}

.arch-pro {
    background: rgba(0, 184, 148, 0.1);
    color: var(--green);
    border: 1px solid rgba(0, 184, 148, 0.2);
}

.arch-con {
    background: rgba(253, 114, 114, 0.1);
    color: var(--red);
    border: 1px solid rgba(253, 114, 114, 0.2);
}

.consider-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 16px;
}

.consider-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 14px;
    border-radius: 8px;
}

.consider-card h4 {
    font-size: 0.85rem;
    color: var(--accent);
    margin-bottom: 4px;
}

.consider-card p {
    font-size: 0.8rem;
    color: var(--text-dim);
}

/* ===== RECAP (Section 12) ===== */
.recap-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 32px;
}

.recap-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 24px;
    border-radius: var(--radius);
}

.recap-card h3 {
    margin-bottom: 12px;
}

.recap-card ul {
    list-style: none;
    padding: 0;
}

.recap-card li {
    font-size: 0.9rem;
    color: var(--text-dim);
    padding: 4px 0;
}

.recap-card li::before {
    content: "→ ";
    color: var(--accent);
}

.recap-card a {
    color: var(--accent);
    text-decoration: none;
}

.recap-card a:hover {
    text-decoration: underline;
}

.recap-footer {
    text-align: center;
    padding: 24px;
}

/* ===== MARKDOWN RENDERED CONTENT ===== */
.cot-result,
.char-msg.character,
.game-msg.narrative,
.rag-answer {
    line-height: 1.7;
}

.cot-result h1,
.cot-result h2,
.cot-result h3,
.char-msg h1,
.char-msg h2,
.char-msg h3,
.game-msg h1,
.game-msg h2,
.game-msg h3,
.rag-answer h1,
.rag-answer h2,
.rag-answer h3 {
    font-size: 1em;
    font-weight: 700;
    margin: 8px 0 4px;
}

.cot-result p,
.char-msg.character p,
.game-msg.narrative p,
.rag-answer p {
    margin-bottom: 6px;
}

.cot-result ul,
.cot-result ol,
.char-msg.character ul,
.char-msg.character ol,
.game-msg.narrative ul,
.game-msg.narrative ol,
.rag-answer ul,
.rag-answer ol {
    padding-left: 20px;
    margin-bottom: 6px;
}

.cot-result li,
.char-msg.character li,
.game-msg.narrative li,
.rag-answer li {
    margin-bottom: 2px;
}

.cot-result code,
.char-msg.character code,
.game-msg.narrative code,
.rag-answer code {
    font-family: var(--mono);
    font-size: 0.85em;
    background: rgba(108, 92, 231, 0.1);
    padding: 1px 5px;
    border-radius: 3px;
    color: var(--cyan);
}

.cot-result pre,
.char-msg.character pre,
.game-msg.narrative pre,
.rag-answer pre {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 10px;
    overflow-x: auto;
    margin: 8px 0;
}

.cot-result pre code,
.char-msg.character pre code,
.game-msg.narrative pre code,
.rag-answer pre code {
    background: none;
    padding: 0;
    color: var(--text);
}

.cot-result blockquote,
.char-msg.character blockquote,
.game-msg.narrative blockquote,
.rag-answer blockquote {
    border-left: 3px solid var(--accent);
    padding-left: 12px;
    margin: 8px 0;
    color: var(--text-dim);
}

.cot-result strong,
.char-msg.character strong,
.game-msg.narrative strong,
.rag-answer strong {
    color: var(--text);
    font-weight: 600;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 800px) {

    .recap-cards,
    .prompting-showcase,
    .role-explainer,
    .rag-problems,
    .consider-grid,
    .recap-grid,
    .cot-panels,
    .tool-examples {
        grid-template-columns: 1fr;
    }

    .char-setup {
        grid-template-columns: 1fr;
    }

    .game-container {
        grid-template-columns: 1fr;
    }

    .rag-workspace {
        grid-template-columns: 1fr;
    }

    .section {
        padding: 40px 20px;
    }

    #nav-dots {
        display: none;
    }
}