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

body {
    background-color: #0f0f0f;
    color: #c9c9c9;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 14px;
    line-height: 1.6;
}

header {
    text-align: center;
    padding: 32px 16px 24px;
    border-bottom: 1px solid #2a2a2a;
}

header h1 {
    font-size: 1.8rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    color: #e8c97a;
    text-transform: uppercase;
}

/* ── Persona card (inside each column) ── */
.persona-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    cursor: pointer;
}

.persona-card img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 6px;
    border: 2px solid #3a3a3a;
    filter: brightness(0.9);
    transition: border-color 0.3s, filter 0.3s;
}

.persona-card:hover img {
    border-color: #e8c97a;
    filter: brightness(1.05);
}

.persona-name {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #e8c97a;
    transition: color 0.3s;
}

/* ── Quest columns ── */
.quests {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0;
    padding: 40px 24px 60px;
}

.quest-column {
    padding: 0 16px;
    border-right: 1px solid #2a2a2a;
    position: relative;
}

.quest-column:last-child {
    border-right: none;
}

/* ── Dimmed state: overlay inside the column, border stays untouched ── */
.quest-column::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(15, 15, 15, 0);
    pointer-events: none;
    transition: background 0.35s ease;
}

.quests.has-selection .quest-column::after {
    background: rgba(15, 15, 15, 0.82);
}

.quests.has-selection .quest-column.active::after {
    background: rgba(15, 15, 15, 0);
}

/* ── Active column image glow ── */
.quests.has-selection .quest-column.active .persona-card img {
    border-color: #e8c97a;
    filter: brightness(1.1);
    box-shadow: 0 0 12px rgba(232, 201, 122, 0.4);
}

.quest-column h2 {
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #e8c97a;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid #2a2a2a;
}

.quest-column ol {
    list-style: none;
    counter-reset: quest-counter;
    padding: 0;
}

.quest-column ol li {
    counter-increment: quest-counter;
    padding: 4px 0 4px 28px;
    position: relative;
    border-bottom: 1px solid #1e1e1e;
    color: #b0b0b0;
    font-size: 0.8rem;
}

.quest-column ol li::before {
    content: counter(quest-counter);
    position: absolute;
    left: 0;
    color: #555;
    font-size: 0.7rem;
    min-width: 20px;
    text-align: right;
    top: 5px;
}

.quest-column ol li:hover {
    color: #e0e0e0;
    background-color: #1a1a1a;
}

li.choice {
    color: #9b8a5a;
}

.note {
    font-size: 0.7rem;
    color: #666;
    margin-left: 4px;
}

.wiki-link {
    display: inline-flex;
    align-items: center;
    margin-left: 5px;
    color: #555;
    text-decoration: none;
    vertical-align: middle;
    transition: color 0.2s;
}

.wiki-link svg {
    width: 13px;
    height: 13px;
}

.wiki-link:hover {
    color: #e8c97a;
}

/* ── Done quest ── */
.quest-column ol li {
    cursor: pointer;
}

.quests.has-selection .quest-column:not(.active) ol li {
    pointer-events: none;
}

.quest-column ol li.done {
    text-decoration: line-through;
    color: #3a3a3a;
}

.quest-column ol li.done::before {
    content: '✓';
    color: #4a7a4a;
}
