/* ================================================
   DIXIT — STORYTELLING CARD GAME
   ================================================ */

:root {
    --di-accent:    #9b59b6;
    --di-accent-dk: #7d3c98;
    --di-accent-lt: #c39bd3;
    --di-bg:        #0f0820;
    --di-surface:   #2a1a4a;
    --di-border:    #3d2b5f;
    --di-text:      #f0e6ff;
    --di-muted:     #9d8fb5;
}

/* ---- layout ---- */
.di-container {
    height: calc(100dvh - var(--header-h));
    overflow-y: auto;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.6rem 1rem 0.75rem;
    gap: 0.5rem;
    max-width: 700px;
    margin: 0 auto;
}

@media (max-width: 480px) {
    .di-container {
        padding: 0.4rem 0.5rem 0.5rem;
        gap: 0.4rem;
    }
}

.di-clue-phase,
.di-selection-phase,
.di-voting-phase,
.di-reveal-phase {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.di-phase-title {
    font-family: 'Cabin Sketch', cursive;
    font-size: 28px;
    color: var(--di-accent);
    text-align: center;
    margin-bottom: 8px;
}

/* ---- lobby ---- */
.di-heading {
    font-family: 'Cabin Sketch', cursive;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--di-accent);
    margin: 0 0 0.5rem;
    text-align: center;
    text-shadow: 0 0 20px rgba(155, 89, 182, 0.25);
}

.di-room-code {
    font-size: 0.9rem;
    color: var(--di-muted);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 16px;
}

.di-room-code .code {
    font-family: 'Cabin Sketch', cursive;
    font-size: 1.4rem;
    color: var(--di-accent);
    letter-spacing: 2px;
}

.di-copy-btn {
    background: none;
    border: 1px solid var(--di-border);
    color: var(--di-muted);
    border-radius: 20px;
    padding: 0.4rem 1rem;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s;
}

.di-copy-btn:hover {
    background: var(--di-surface);
    color: var(--di-text);
}

.di-section {
    width: 100%;
}

.di-section-title {
    font-family: 'Cabin Sketch', cursive;
    font-size: 1.2rem;
    color: var(--di-accent);
    margin: 0 0 0.5rem;
    text-align: center;
}

.di-player-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
    margin-bottom: 24px;
}

.di-lobby-player {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    background: rgba(42, 26, 74, 0.55);
    border: 1px solid var(--gn-border-glass);
    border-radius: 12px;
    border-left: 3px solid var(--di-accent);
}

.di-lobby-player-name {
    flex: 1;
    color: var(--di-text);
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.di-host-badge, .di-you-badge {
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 8px;
    margin-left: 0.3rem;
}

.di-host-badge {
    background: rgba(155, 89, 182, 0.2);
    border: 1px solid rgba(155, 89, 182, 0.4);
    color: var(--di-accent-lt);
}

.di-you-badge {
    background: rgba(78, 205, 196, 0.15);
    border: 1px solid rgba(78, 205, 196, 0.3);
    color: #4ecdc4;
}

.di-kick-btn {
    background: none;
    border: 1px solid rgba(231, 76, 60, 0.3);
    color: #e74c3c;
    font-size: 12px;
    padding: 2px 10px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
}

.di-kick-btn:hover {
    background: rgba(231, 76, 60, 0.15);
}

.di-info-box {
    width: 100%;
    padding: 1rem;
    background: var(--di-surface);
    border-left: 3px solid var(--di-accent);
    border-radius: 8px;
    color: var(--di-text);
    text-align: center;
    font-size: 0.95rem;
    margin-bottom: 16px;
}

.di-waiting-msg {
    text-align: center;
    padding: 16px;
    color: var(--di-muted);
    font-size: 15px;
}

/* ---- role cards ---- */
.di-role-card {
    width: 100%;
    padding: 1rem;
    background: var(--di-surface);
    border-radius: 12px;
    text-align: center;
    margin-bottom: 16px;
    border: 1px solid var(--di-border);
}

.di-role-card h3 {
    font-family: 'Cabin Sketch', cursive;
    font-size: 1.3rem;
    color: var(--di-accent);
    margin: 0 0 0.3rem;
}

.di-role-card.di-role-storyteller {
    border-color: var(--di-accent);
    background: rgba(155, 89, 182, 0.1);
}

.di-role-hint {
    color: var(--di-muted);
    font-size: 0.9rem;
    margin: 0;
}

.di-waiting-text {
    color: var(--di-muted);
    font-size: 0.95rem;
    margin: 0 0 0.3rem;
}

.di-storyteller-name {
    font-family: 'Cabin Sketch', cursive;
    font-size: 1.2rem;
    color: var(--di-accent);
    margin: 0;
}

/* ---- clue display ---- */
.di-clue-display {
    background: var(--di-surface);
    border: 2px solid var(--di-accent);
    border-radius: 16px;
    padding: 16px 24px;
    text-align: center;
    margin-bottom: 24px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.di-clue-label-tag {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--di-muted);
}

.di-clue-value {
    font-family: 'Cabin Sketch', cursive;
    font-size: 24px;
    color: var(--di-accent-lt);
}

/* ---- clue input ---- */
.di-clue-form {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 16px;
    flex-shrink: 0;
}

.di-clue-label {
    font-size: 13px;
    color: var(--di-muted);
    margin-bottom: 8px;
}

.di-clue-input-row {
    display: flex;
    gap: 0.5rem;
    width: 100%;
}

.di-clue-input {
    flex: 1;
    padding: 12px 16px;
    background: var(--di-surface);
    border: 1px solid var(--di-border);
    border-radius: 12px;
    color: var(--di-text);
    font-family: 'Quicksand', sans-serif;
    font-size: 16px;
    outline: none;
    transition: border-color 0.3s;
}

.di-clue-input:focus {
    border-color: var(--di-accent);
}

/* ---- hand section ---- */
.di-hand-section {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 16px;
}

.di-hand-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    width: 100%;
    max-width: 700px;
    margin-bottom: 24px;
}

.di-hand-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    border: 3px solid transparent;
    cursor: pointer;
    transition: all 0.3s;
    aspect-ratio: 1;
    background: var(--di-surface);
}

.di-hand-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    position: relative;
    z-index: 1;
}

/* ── GP-04: Holographic shimmer via ::before (::after used by di-card-selected checkmark) ── */
.di-hand-card::before,
.di-table-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        115deg,
        transparent 20%,
        rgba(255, 255, 255, 0.05) 40%,
        rgba(255, 255, 255, 0.10) 50%,
        rgba(255, 255, 255, 0.05) 60%,
        transparent 80%
    );
    background-size: 200% 100%;
    animation: gn-card-shimmer 3.5s ease-in-out infinite;
    pointer-events: none;
    border-radius: inherit;
    z-index: 0;
}

@media (prefers-reduced-motion: reduce) {
    .di-hand-card::before,
    .di-table-card::before {
        animation: none;
    }
}

.di-hand-card:hover {
    border-color: var(--di-accent);
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(155, 89, 182, 0.3);
}

.di-hand-card.di-card-selected {
    border-color: var(--di-accent);
    box-shadow: 0 0 20px rgba(155, 89, 182, 0.5);
    transform: translateY(-6px);
}

.di-hand-card.di-card-selected::after {
    content: '\2713';
    position: absolute;
    top: 8px;
    right: 8px;
    width: 24px;
    height: 24px;
    background: var(--di-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: white;
}

/* ---- discard selection ---- */
.di-hand-card.di-card-discard {
    border-color: #e74c3c;
    box-shadow: 0 0 20px rgba(231, 76, 60, 0.5);
    transform: translateY(-6px);
}

.di-hand-card.di-card-discard::after {
    content: '\2717';
    position: absolute;
    top: 8px;
    right: 8px;
    width: 24px;
    height: 24px;
    background: #e74c3c;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: white;
}

.di-discard-hint {
    text-align: center;
    font-size: 13px;
    color: var(--di-muted);
    margin: 0 0 12px;
}

/* ---- submitted message ---- */
.di-submitted-msg {
    text-align: center;
    padding: 16px;
    color: var(--di-accent);
    font-weight: 600;
    font-size: 15px;
    margin-bottom: 8px;
}

/* ---- table cards (voting / reveal) ---- */
.di-table-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 180px));
    justify-content: center;
    gap: 16px;
    width: 100%;
    max-width: 700px;
    margin-bottom: 24px;
}

.di-table-card {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    border: 3px solid var(--di-border);
    cursor: pointer;
    transition: all 0.3s;
    aspect-ratio: 1;
    background: var(--di-surface);
}

.di-table-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    position: relative;
    z-index: 1;
}

.di-table-card:hover:not(.di-card-own):not(.di-card-voted) {
    border-color: var(--di-accent);
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(155, 89, 182, 0.3);
}

.di-table-card.di-card-voted {
    border-color: var(--di-accent);
    box-shadow: 0 0 20px rgba(155, 89, 182, 0.5);
}

.di-table-card.di-card-own {
    opacity: 0.5;
    cursor: not-allowed;
}

.di-table-card.di-card-storyteller {
    border-color: var(--di-accent);
    box-shadow: 0 0 20px rgba(155, 89, 182, 0.4);
}

.di-card-number {
    position: absolute;
    top: 8px;
    left: 8px;
    width: 28px;
    height: 28px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Cabin Sketch', cursive;
    font-size: 16px;
    color: white;
    z-index: 1;
}

.di-vote-btn {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--di-accent), var(--di-accent-dk));
    color: white;
    border: none;
    padding: 6px 16px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
    z-index: 1;
}

.di-vote-btn:hover {
    opacity: 0.9;
    transform: translateX(-50%) translateY(-1px);
}

/* ---- card info (reveal phase) ---- */
.di-card-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 8px;
    background: rgba(0, 0, 0, 0.75);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.di-card-submitter {
    font-size: 13px;
    color: var(--di-text);
}

.di-vote-count {
    font-family: 'Cabin Sketch', cursive;
    font-size: 14px;
    color: var(--di-accent);
}

.di-voter-names {
    font-size: 11px;
    color: var(--di-muted);
}

.di-storyteller-badge {
    background: var(--di-accent);
    color: white;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ---- result banner (reveal) ---- */
.di-result-banner {
    width: 100%;
    padding: 12px 16px;
    border-radius: 12px;
    text-align: center;
    font-weight: 600;
    font-size: 15px;
    margin-bottom: 16px;
}

.di-result-all-guessed {
    background: rgba(231, 76, 60, 0.1);
    border: 1px solid rgba(231, 76, 60, 0.3);
    color: #e74c3c;
}

.di-result-nobody {
    background: rgba(231, 76, 60, 0.1);
    border: 1px solid rgba(231, 76, 60, 0.3);
    color: #e74c3c;
}

.di-result-storyteller {
    background: rgba(155, 89, 182, 0.1);
    border: 1px solid rgba(155, 89, 182, 0.3);
    color: var(--di-accent-lt);
}

/* ---- progress bar ---- */
.di-vote-progress {
    width: 100%;
    text-align: center;
    margin-bottom: 16px;
    color: var(--di-muted);
    font-size: 14px;
}

.di-progress-bar {
    width: 100%;
    height: 8px;
    background: var(--di-surface);
    border-radius: 4px;
    border: 1px solid var(--di-border);
    margin-top: 6px;
    overflow: hidden;
}

.di-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--di-accent-dk), var(--di-accent));
    border-radius: 4px;
    transition: width 0.5s ease;
}

/* ---- player status list ---- */
.di-player-status {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 16px;
}

.di-status-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: rgba(42, 26, 74, 0.55);
    border-radius: 12px;
    border: 1px solid var(--gn-border-glass);
}

/* ── GP-03: Pulsing glow for active storyteller ── */
.di-status-item.di-is-storyteller {
    --tile-glow-color: rgba(155, 89, 182, 0.6);
    border-color: rgba(155, 89, 182, 0.7);
    animation: gn-tile-glow-pulse 1.8s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
    .di-status-item.di-is-storyteller {
        animation: none;
        box-shadow: 0 0 0 2px rgba(155, 89, 182, 0.6);
    }
}

.di-status-item.di-status-done {
    border-color: rgba(46, 204, 113, 0.3);
}

.di-status-name {
    color: var(--di-text);
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.di-status-check {
    color: #2ecc71;
    font-weight: 700;
}

/* ---- scores section (reveal) ---- */
.di-scores-section {
    width: 100%;
    margin-bottom: 16px;
}

.di-score-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.di-score-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    border-bottom: 1px solid var(--di-border);
}

.di-score-item:last-child { border-bottom: none; }

.di-score-item.di-scored {
    background: rgba(155, 89, 182, 0.05);
}

.di-score-name {
    color: var(--di-text);
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 1;
}

.di-score-pts {
    font-family: 'Cabin Sketch', cursive;
    font-size: 20px;
    color: var(--di-accent);
    min-width: 50px;
    text-align: center;
}

.di-score-total {
    font-family: 'Cabin Sketch', cursive;
    font-size: 18px;
    color: var(--di-muted);
    min-width: 50px;
    text-align: right;
}

/* ---- storyteller badge inline ---- */
.di-storyteller-tag {
    display: inline-block;
    background: rgba(155, 89, 182, 0.2);
    border: 1px solid rgba(155, 89, 182, 0.4);
    color: var(--di-accent-lt);
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 8px;
    margin-left: 6px;
}

/* ---- deck info ---- */
.di-deck-info {
    font-size: 13px;
    color: var(--di-muted);
    text-align: center;
    margin-bottom: 16px;
}

/* ---- buttons ---- */
.di-btn-primary {
    background: linear-gradient(135deg, var(--di-accent), var(--di-accent-dk));
    color: white;
    border: none;
    padding: 14px 32px;
    border-radius: 12px;
    font-family: 'Cabin Sketch', cursive;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s;
}

.di-btn-primary:hover:not(:disabled) {
    opacity: 0.9;
    transform: translateY(-1px);
}

.di-btn-primary:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    transform: none;
}

.di-btn-secondary {
    background: transparent;
    border: 1px solid var(--di-border);
    color: var(--di-text);
    padding: 12px 24px;
    border-radius: 12px;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s;
}

.di-btn-secondary:hover {
    border-color: var(--di-accent);
    color: var(--di-accent-lt);
}

.di-action-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}

/* ---- game over ---- */
.di-gameover {
    text-align: center;
    margin-bottom: 1rem;
}

.di-gameover-title {
    font-family: 'Cabin Sketch', cursive;
    font-size: 2rem;
    color: var(--di-accent);
    margin: 0;
}

.di-winner-banner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(155, 89, 182, 0.15), rgba(155, 89, 182, 0.05));
    border-radius: 12px;
    margin-top: 1rem;
}

.di-winner-icon {
    font-size: 3rem;
}

.di-winner-name {
    font-family: 'Cabin Sketch', cursive;
    font-size: 1.8rem;
    color: var(--di-accent);
}

.di-winner-subtitle {
    color: var(--di-muted);
    font-size: 0.9rem;
}

/* ---- leaderboard ---- */
.di-leaderboard {
    width: 100%;
    margin-bottom: 24px;
}

.di-lb-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--di-surface);
    border-radius: 8px;
    overflow: hidden;
}

.di-lb-table thead {
    background: rgba(155, 89, 182, 0.1);
}

.di-lb-table th {
    padding: 10px 14px;
    text-align: left;
    color: var(--di-accent);
    font-weight: 700;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid var(--di-border);
}

.di-lb-table td {
    padding: 10px 14px;
    border-bottom: 1px solid var(--di-border);
    color: var(--di-text);
}

.di-lb-first {
    background: rgba(155, 89, 182, 0.08);
}

.di-score-cell {
    text-align: center;
    font-family: 'Cabin Sketch', cursive;
    font-size: 18px;
    color: var(--di-accent);
}

/* ---- expand / zoom ---- */
.di-expand-btn {
    position: absolute;
    width: 28px;
    height: 28px;
    background: rgba(0, 0, 0, 0.6);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2;
    opacity: 0;
    transition: opacity 0.2s, background 0.2s;
    padding: 0;
}

.di-expand-btn svg {
    width: 14px;
    height: 14px;
    color: white;
}

.di-expand-btn:hover {
    background: rgba(0, 0, 0, 0.85);
}

.di-hand-card:hover .di-expand-btn,
.di-table-card:hover .di-expand-btn {
    opacity: 1;
}

/* Hand cards: top-left (top-right has selection checkmark) */
.di-hand-card .di-expand-btn {
    top: 8px;
    left: 8px;
}

/* Table cards: top-right (top-left has card number) */
.di-table-card .di-expand-btn {
    top: 8px;
    right: 8px;
}

.di-zoom-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.di-zoom-image {
    max-height: 90vh;
    max-width: 90vw;
    border-radius: 16px;
    box-shadow: 0 0 40px rgba(155, 89, 182, 0.3);
    object-fit: contain;
}

.di-zoom-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: white;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s;
    z-index: 1001;
}

.di-zoom-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* ---- placeholder cards (dev/test) ---- */
.di-placeholder-card {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    text-align: center;
    padding: 8px;
}

/* ---- responsive ---- */
@media (max-width: 600px) {
    /* GP-06: Compact pill chips */
    .di-lobby-player,
    .di-status-item {
        padding: 0.35rem 0.55rem;
        border-radius: 20px;
        font-size: 0.78rem;
        gap: 0.3rem;
    }

    .di-host-badge, .di-you-badge { display: none; }

    .di-expand-btn {
        opacity: 1;
    }

    .di-hand-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    /* Narrator clue phase: 3-col grid keeps cards smaller so input stays visible */
    .di-clue-phase .di-hand-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 6px;
    }

    .di-clue-phase .di-hand-card {
        aspect-ratio: 4 / 3;
    }

    /* Reduce spacing in clue phase to free vertical space for the input row */
    .di-clue-phase .di-hand-section {
        margin-bottom: 8px;
    }

    .di-table-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .di-phase-title { font-size: 22px; }
    .di-clue-value { font-size: 20px; }
    .di-heading { font-size: 2rem; }

    .di-action-row {
        flex-direction: column;
        align-items: stretch;
    }

    .di-action-row .di-btn-primary,
    .di-action-row .di-btn-secondary {
        text-align: center;
    }

    /* Touch targets — kick button */
    .di-kick-btn {
        min-width: 44px;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 0.85rem;
        padding: 0.5rem 0.75rem;
    }

    /* Action buttons — 44px minimum height */
    .di-btn-primary,
    .di-btn-secondary {
        min-height: 44px;
    }

    /* Clue input — no iOS zoom */
    .di-clue-input {
        font-size: 16px;
    }

    /* Clue input row — stack on very narrow screens */
    .di-clue-input-row {
        flex-direction: column;
        width: 100%;
    }
}

/* ── Event Log Accordion (GP-05) ── */
.di-log-section {
    width: 100%;
    margin-top: 0.5rem;
}

.di-log-toggle {
    display: none;
    width: 100%;
    background: rgba(42, 26, 74, 0.55);
    border: 1px solid var(--gn-border-glass);
    border-radius: 12px;
    padding: 0.5rem 0.75rem;
    color: var(--gn-muted);
    font-family: 'Quicksand', sans-serif;
    font-size: 0.8rem;
    text-align: left;
    cursor: pointer;
    gap: 0.5rem;
    align-items: center;
    justify-content: space-between;
}

.di-log-preview {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.di-log-arrow {
    transition: transform 0.2s ease;
    font-size: 0.65rem;
}

.di-log-arrow.expanded {
    transform: rotate(180deg);
}

.di-log-entries {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding-top: 0.25rem;
}

.di-log-entry {
    font-size: 0.78rem;
    color: var(--gn-muted);
    padding: 0.2rem 0.4rem;
    border-left: 2px solid var(--di-accent);
    opacity: 0.75;
}

@media (max-width: 600px) {
    .di-log-toggle {
        display: flex;
    }

    .di-log-entries {
        display: none;
    }

    .di-log-entries.expanded {
        display: flex;
    }
}
