@import url('https://fonts.googleapis.com/css2?family=Jacquard+12&family=Pixelify+Sans:wght@400;700&display=swap');

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

body {
    background-color: #fff5fa;
    background-image: url('https://64.media.tumblr.com/b02536e804c11979d269d02b5e0e9588/tumblr_inline_mm1ahphf5I1qz4rgp.gif');
    font-family: 'Pixelify Sans', 'Courier New', Courier, monospace;
    color: #e08ab0;
    min-height: 100vh;
}

/* top nav bar */
.tw-topnav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 48px;
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 20px;
    background: rgba(255, 245, 250, 0.97);
    border-bottom: 2px solid #ffe0ef;
    backdrop-filter: blur(6px);
}

.tw-topnav-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.tw-logo { image-rendering: pixelated; height: 20px; }

.tw-sitename {
    font-family: 'Jacquard 12', system-ui;
    font-size: 22px;
    color: #f4aecf;
    letter-spacing: 1px;
}

.tw-navlink {
    color: #e08ab0;
    text-decoration: none;
    font-size: 13px;
    border: 2px solid #ffe0ef;
    padding: 3px 10px;
    background: #fff5fa;
    transition: background 0.15s, border-color 0.15s;
}

.tw-navlink:hover {
    background: #ffe8f3;
    border-color: #f4aecf;
}

/* page wrap */
.page-wrap {
    max-width: 1100px;
    margin: 0 auto;
    padding: 48px 16px 30px;
}

/* three column layout */
.tw-layout {
    display: grid;
    grid-template-columns: 220px 1fr 180px;
    gap: 0;
    align-items: flex-start;
    margin-top: 10px;
}

/* left sidebar */
.tw-sidebar {
    position: sticky;
    top: 48px;
    padding: 16px 12px;
    border-right: 2px solid #ffe0ef;
    min-height: calc(100vh - 56px);
}

.tw-sidebar-profile {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
    background: #fff0f7;
    border: 2px solid #ffe0ef;
    padding: 8px;
}

.tw-sidebar-pfp {
    width: 48px;
    height: 48px;
    border: 2px solid #f4aecf;
    object-fit: cover;
    image-rendering: pixelated;
    background: #ffe8f3;
}

.tw-sidebar-names {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.tw-display-name {
    font-size: 14px;
    font-weight: bold;
    color: #e08ab0;
}

.tw-handle {
    font-size: 12px;
    color: #d4a0bc;
}

.tw-divider {
    border: none;
    border-top: 1px solid #ffe0ef;
    margin: 10px 0;
}

.tw-sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.tw-navitem {
    padding: 8px 10px;
    font-size: 15px;
    color: #e08ab0;
    cursor: pointer;
    border-left: 3px solid transparent;
    background: #fff0f7;
    border: 2px solid #ffe0ef;
    margin-bottom: 4px;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.tw-navitem:hover {
    background: #ffe8f3;
    border-color: #f4aecf;
}

.tw-navitem.active-nav {
    color: #f4aecf;
    font-weight: bold;
    border-color: #f4aecf;
    background: #ffe8f3;
}

.tw-sidebar-stats {
    display: flex;
    gap: 14px;
    margin-top: 4px;
}

.tw-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.tw-stat-num {
    font-size: 18px;
    font-weight: bold;
    color: #e08ab0;
}

.tw-stat-label {
    font-size: 11px;
    color: #d4a0bc;
}

/* timeline */
.tw-timeline {
    border-right: 2px solid #ffe0ef;
    min-height: calc(100vh - 56px);
}

.tw-timeline-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-bottom: 2px solid #ffe0ef;
    position: sticky;
    top: 48px;
    background: rgba(255, 245, 250, 0.95);
    z-index: 50;
    backdrop-filter: blur(4px);
}

.tw-timeline-title {
    font-family: 'Jacquard 12', system-ui;
    font-size: 22px;
    color: #f4aecf;
}

.year-selector-inline select {
    border: 2px solid #ffe0ef;
    background: #fff5fa;
    font-family: 'Pixelify Sans', monospace;
    font-size: 13px;
    color: #e08ab0;
    padding: 3px 8px;
    outline: none;
    cursor: pointer;
}

/* year sections */
.year-section { display: none; }
.year-section.active { display: block; }

/* tweet card */
.tweet-card {
    display: flex;
    gap: 12px;
    padding: 14px 16px;
    border-bottom: 1px solid #ffe0ef;
    transition: background 0.15s;
    background: #fff8fc;
}

.tweet-card:hover { background: #fff0f7; }

.tweet-left {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
}

.tweet-pfp {
    width: 42px;
    height: 42px;
    border: 2px solid #f4aecf;
    object-fit: cover;
    image-rendering: pixelated;
    background: #ffe8f3;
    flex-shrink: 0;
}

.tweet-thread-line {
    width: 2px;
    flex: 1;
    background: #ffe0ef;
    margin-top: 6px;
    min-height: 20px;
}

.tweet-body { flex: 1; min-width: 0; }

.tweet-header {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 4px;
}

.tweet-display-name {
    font-size: 14px;
    font-weight: bold;
    color: #e08ab0;
}

.tweet-handle {
    font-size: 13px;
    color: #d4a0bc;
}

.tweet-dot {
    color: #d4a0bc;
    font-size: 13px;
}

.tweet-date {
    font-size: 12px;
    color: #d4a0bc;
}

.tweet-text {
    font-size: 14px;
    color: #e08ab0;
    margin-bottom: 4px;
    line-height: 1.5;
}

.tweet-tag {
    color: #f4aecf;
    font-weight: bold;
}

.tweet-desc {
    font-size: 12px;
    color: #d4a0bc;
    margin-bottom: 10px;
    font-style: italic;
}

/* tweet image */
.tweet-img-wrap {
    position: relative;
    overflow: hidden;
    border: 2px solid #ffe0ef;
    border-radius: 2px;
    cursor: pointer;
    max-width: 500px;
    margin-bottom: 10px;
    background: #fff0f7;
}

.tweet-img-wrap img {
    width: 100%;
    display: block;
    max-height: 400px;
    object-fit: cover;
    transition: transform 0.2s;
    image-rendering: pixelated;
}

.tweet-img-wrap:hover img { transform: scale(1.01); }

.tweet-img-overlay {
    position: absolute;
    inset: 0;
    background: rgba(255, 200, 225, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: bold;
    color: #fff0f7;
    opacity: 0;
    transition: opacity 0.2s;
}

.tweet-img-wrap:hover .tweet-img-overlay { opacity: 1; }

/* action buttons */
.tweet-actions {
    display: flex;
    gap: 24px;
    margin-top: 4px;
}

.tw-action {
    display: flex;
    align-items: center;
    gap: 5px;
    background: #fff0f7;
    border: 2px solid #ffe0ef;
    color: #d4a0bc;
    font-family: 'Pixelify Sans', monospace;
    font-size: 13px;
    cursor: pointer;
    padding: 3px 8px;
    transition: color 0.15s, background 0.15s, border-color 0.15s;
    margin: 0;
}

.tw-action:hover { color: #f4aecf; background: #ffe8f3; border-color: #f4aecf; }
.tw-action.liked { color: #ff8ab0; }
.tw-action.retweeted { color: #80d4b0; }
.tw-action.bookmarked { color: #f4aecf; }

.tw-action-icon { font-size: 14px; }
.tw-action-count { font-size: 12px; }

/* right sidebar */
.tw-rightsidebar {
    position: sticky;
    top: 48px;
    padding: 16px 12px;
}

.tw-trending {
    border: 2px solid #ffe0ef;
    background: #fff8fc;
    padding: 10px;
}

.tw-trending-title {
    font-family: 'Jacquard 12', system-ui;
    font-size: 18px;
    color: #f4aecf;
    margin-bottom: 8px;
    border-bottom: 1px solid #ffe0ef;
    padding-bottom: 6px;
}

.tw-trend-item {
    padding: 6px 4px;
    font-size: 13px;
    color: #f4aecf;
    border-bottom: 1px solid #ffe8f3;
    cursor: pointer;
    transition: background 0.1s;
}

.tw-trend-item:last-child { border-bottom: none; }
.tw-trend-item:hover { background: #fff0f7; }

/* lightbox */
#lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background-color: rgba(255, 252, 253, 0.92);
    z-index: 99999;
    align-items: center;
    justify-content: center;
}

#lightbox.active { display: flex; }

#lightbox-inner {
    max-width: 85vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

#lightbox-img {
    max-width: 80vw;
    max-height: 75vh;
    border: 3px solid #f4aecf;
    box-shadow: 0 0 30px rgba(244, 174, 207, 0.6);
    object-fit: contain;
    background-color: #231f21;
}

#lightbox-caption {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

#lightbox-title {
    font-size: 18px;
    font-weight: bold;
    color: #e08ab0;
}

#lightbox-desc {
    font-size: 13px;
    color: #d4a0bc;
}

#lightbox-close {
    position: fixed;
    top: 16px;
    right: 20px;
    background: #ffe8f3;
    border: 2px solid #f4aecf;
    color: #e08ab0;
    font-size: 20px;
    width: 36px;
    height: 36px;
    cursor: pointer;
    font-family: monospace;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin: 0;
}

#lightbox-close:hover { background: #f4aecf; color: #fff0f7; }

#lightbox-prev, #lightbox-next {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    background: #ffe8f3;
    border: 2px solid #f4aecf;
    color: #e08ab0;
    font-size: 28px;
    width: 40px;
    height: 60px;
    cursor: pointer;
    font-family: monospace;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin: 0;
}

#lightbox-prev { left: 12px; }
#lightbox-next { right: 12px; }
#lightbox-prev:hover, #lightbox-next:hover { background: #f4aecf; color: #fff0f7; }

/* footer */
.footer {
    text-align: center;
    padding: 20px 0;
    font-size: 12px;
    color: #f4aecf;
    border-top: 2px solid #ffe0ef;
    margin-top: 10px;
}

.footer p { margin-top: 6px; }

/* scrollbar */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: #fff5fa; }
::-webkit-scrollbar-thumb { background: #ffe0ef; }
::-webkit-scrollbar-thumb:hover { background: #f4aecf; }

/* mobile */
@media (max-width: 750px) {
    .tw-layout { grid-template-columns: 1fr; }
    .tw-sidebar, .tw-rightsidebar { display: none; }
    .tw-timeline { border: none; }
}

/* ── MULTI-IMAGE GRIDS ────────────────────────── */
.tweet-img-wrap { cursor: pointer; }

.img-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3px;
    height: 260px;
}
.img-grid-2 .img-cell { overflow: hidden; height: 100%; }
.img-grid-2 .img-cell img { width: 100%; height: 100%; object-fit: cover; }

.img-grid-3 {
    display: grid;
    grid-template-columns: 57% 43%;
    gap: 3px;
    height: 300px;
}
.img-cell-main { overflow: hidden; height: 100%; }
.img-cell-main img { width: 100%; height: 100%; object-fit: cover; }
.img-cell-stack { display: flex; flex-direction: column; gap: 3px; height: 100%; }
.img-cell-stack .img-cell { flex: 1; overflow: hidden; }
.img-cell-stack .img-cell img { width: 100%; height: 100%; object-fit: cover; }

.img-grid-4 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3px;
    height: 300px;
}
.img-grid-4 .img-cell { overflow: hidden; height: 150px; }
.img-grid-4 .img-cell img { width: 100%; height: 100%; object-fit: cover; }

.img-cell { cursor: pointer; transition: opacity 0.15s; }
.img-cell:hover { opacity: 0.88; }

/* single image — don't stretch tall */
.img-count-1 img { max-height: 460px; width: 100%; object-fit: cover; }

/* ── LIGHTBOX UPDATES ────────────────────────── */
#lightbox-title {
    max-width: 70vw;
    max-height: 15vh;
    overflow-y: auto;
    display: block;
    word-break: break-word;
    font-size: 13px;
    line-height: 1.5;
    color: #e08ab0;
    margin-top: 8px;
}
#lightbox-imgcount {
    font-size: 12px;
    color: #d4a0bc;
    margin-top: 3px;
    display: block;
}

/* ── BOUNCING PIXELS ─────────────────────────── */
#pixel-container {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}
.bounce-pixel {
    position: absolute;
    top: 0; left: 0;
    image-rendering: pixelated;
    will-change: transform;
    opacity: 0.7;
}

/* ── SIDEBAR POST BUTTON ─────────────────────── */
.tw-post-btn {
    width: 100%;
    padding: 10px;
    background: #f4aecf;
    border: 2px solid #e08ab0;
    color: #fff8fc;
    font-family: 'Pixelify Sans', monospace;
    font-size: 15px;
    font-weight: bold;
    cursor: pointer;
    letter-spacing: 1px;
    transition: background 0.15s, border-color 0.15s;
    margin-bottom: 2px;
}
.tw-post-btn:hover { background: #e08ab0; border-color: #d4a0bc; }

/* ── SIDEBAR EXTRA NAV ───────────────────────── */
.tw-sidebar-extra { display: flex; flex-direction: column; gap: 4px; }
.tw-extraitem {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    font-size: 14px;
    color: #e08ab0;
    cursor: pointer;
    background: #fff0f7;
    border: 2px solid #ffe0ef;
    transition: background 0.15s, border-color 0.15s;
    position: relative;
}
.tw-extraitem:hover { background: #ffe8f3; border-color: #f4aecf; }
.tw-extraitem.active-extra { background: #ffe8f3; border-color: #f4aecf; color: #f4aecf; font-weight: bold; }
.tw-extraitem-chat { }

.tw-extra-icon { font-size: 15px; }
.tw-coming-soon {
    font-size: 9px;
    background: #fbbfda;
    color: #fff;
    padding: 1px 4px;
    margin-left: auto;
}

/* ── TWEET COMPOSER ──────────────────────────── */
.tweet-composer {
    display: flex;
    gap: 12px;
    padding: 14px 16px;
    border-bottom: 2px solid #ffe0ef;
    background: #fff5fc;
}
.compose-pfp-inline {
    width: 42px;
    height: 42px;
    border: 2px solid #f4aecf;
    object-fit: cover;
    flex-shrink: 0;
    image-rendering: pixelated;
}
.composer-body { flex: 1; display: flex; flex-direction: column; gap: 8px; }
.composer-textarea {
    width: 100%;
    min-height: 70px;
    background: #fff0f7;
    border: 2px solid #ffe0ef;
    color: #e08ab0;
    font-family: 'Pixelify Sans', monospace;
    font-size: 14px;
    padding: 8px;
    resize: none;
    outline: none;
    line-height: 1.5;
}
.composer-textarea:focus { border-color: #f4aecf; }
.composer-textarea::placeholder { color: #d4a0bc; }
.composer-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
}
.composer-charcount { font-size: 12px; color: #d4a0bc; }
.composer-post-btn {
    background: #f4aecf;
    border: 2px solid #e08ab0;
    color: #fff8fc;
    font-family: 'Pixelify Sans', monospace;
    font-size: 13px;
    font-weight: bold;
    padding: 4px 16px;
    cursor: pointer;
    transition: background 0.15s;
}
.composer-post-btn:hover { background: #e08ab0; }

/* ── COMPOSE MODAL ───────────────────────────── */
#compose-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(255,245,252,0.88);
    z-index: 99998;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
}
#compose-modal.active { display: flex; }
#compose-inner {
    background: #fff8fc;
    border: 2px solid #f4aecf;
    width: min(520px, 92vw);
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    box-shadow: 0 0 24px rgba(244,174,207,0.3);
}
#compose-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: 'Jacquard 12', system-ui;
    font-size: 20px;
    color: #f4aecf;
}
#compose-close {
    background: #ffe8f3;
    border: 2px solid #f4aecf;
    color: #e08ab0;
    width: 30px; height: 30px;
    cursor: pointer;
    font-size: 16px;
    display: flex; align-items: center; justify-content: center;
}
#compose-close:hover { background: #f4aecf; color: #fff; }
#compose-body {
    display: flex;
    gap: 12px;
}
.compose-pfp {
    width: 48px; height: 48px;
    border: 2px solid #f4aecf;
    object-fit: cover;
    flex-shrink: 0;
    image-rendering: pixelated;
}
#compose-right { flex: 1; display: flex; flex-direction: column; gap: 8px; }
#compose-text {
    width: 100%;
    min-height: 100px;
    background: #fff0f7;
    border: 2px solid #ffe0ef;
    color: #e08ab0;
    font-family: 'Pixelify Sans', monospace;
    font-size: 14px;
    padding: 8px;
    resize: none;
    outline: none;
    line-height: 1.5;
}
#compose-text:focus { border-color: #f4aecf; }
#compose-text::placeholder { color: #d4a0bc; }
#compose-footer { display: flex; align-items: center; justify-content: flex-end; gap: 10px; }
#compose-charcount { font-size: 12px; color: #d4a0bc; }
#compose-submit {
    background: #f4aecf;
    border: 2px solid #e08ab0;
    color: #fff8fc;
    font-family: 'Pixelify Sans', monospace;
    font-size: 14px;
    font-weight: bold;
    padding: 6px 20px;
    cursor: pointer;
    transition: background 0.15s;
}
#compose-submit:hover { background: #e08ab0; }

/* ── USER POSTS ──────────────────────────────── */
.tweet-card.user-post { background: #fff5fc; border-left: 3px solid #f4aecf; }
.tw-user-badge {
    font-size: 10px;
    background: #f4aecf;
    color: #fff8fc;
    padding: 1px 5px;
    margin-left: 4px;
}

/* ── EXPLORE FLASH ───────────────────────────── */
@keyframes flash-highlight {
    0%   { box-shadow: 0 0 0 0 rgba(244,174,207,0.7); }
    50%  { box-shadow: 0 0 0 8px rgba(244,174,207,0.3); }
    100% { box-shadow: 0 0 0 0 rgba(244,174,207,0); }
}
.explore-flash { animation: flash-highlight 1.4s ease; }

/* ── ICON WRAP (swappable icons) ─────────────── */
.tw-icon-wrap { display: inline-flex; align-items: center; }
.tw-icon { width: 16px; height: 16px; object-fit: contain; vertical-align: middle; display: inline-block; }
.tw-icon.loaded { display: inline-block; }
.tw-icon.loaded + .tw-icon-fallback { display: none; }

/* ── TWEET ACTIONS SPACING FIX ───────────────── */
.tweet-actions { gap: 8px; flex-wrap: wrap; }
.tw-action { min-width: 44px; }



/* ═══════════════════════════════════════════════════
   DM CHAT MODAL
   ═══════════════════════════════════════════════════ */

#dm-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(255, 245, 252, 0.88);
    z-index: 99997;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(7px);
}
#dm-modal.active { display: flex; }

#dm-window {
    width: min(400px, 95vw);
    height: min(580px, 90vh);
    background: #fff8fc;
    border: 2px solid #f4aecf;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 0 40px rgba(244, 174, 207, 0.35);
}

/* ── header ── */
#dm-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    background: #fff0f7;
    border-bottom: 2px solid #ffe0ef;
    flex-shrink: 0;
    gap: 8px;
}

#dm-header-left {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

#dm-back {
    background: none;
    border: none;
    color: #d4a0bc;
    font-size: 22px;
    cursor: pointer;
    padding: 0 4px;
    line-height: 1;
    flex-shrink: 0;
    font-family: monospace;
}
#dm-back:hover { color: #f4aecf; }

#dm-header-pfp {
    width: 34px;
    height: 34px;
    border: 2px solid #f4aecf;
    object-fit: cover;
    image-rendering: pixelated;
    flex-shrink: 0;
}

#dm-header-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

#dm-header-name {
    font-size: 13px;
    font-weight: bold;
    color: #e08ab0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

#dm-header-handle {
    font-size: 10px;
    color: #d4a0bc;
    white-space: nowrap;
}

#dm-close {
    background: #ffe8f3;
    border: 2px solid #f4aecf;
    color: #e08ab0;
    width: 28px;
    height: 28px;
    cursor: pointer;
    font-size: 13px;
    font-family: monospace;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
#dm-close:hover { background: #f4aecf; color: #fff8fc; }

/* ── scrollable body ── */
#dm-body {
    flex: 1;
    overflow-y: auto;
    padding: 14px 14px 20px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    scroll-behavior: smooth;
}
#dm-body::-webkit-scrollbar       { width: 5px; }
#dm-body::-webkit-scrollbar-track { background: #fff5fa; }
#dm-body::-webkit-scrollbar-thumb { background: #ffe0ef; }
#dm-body::-webkit-scrollbar-thumb:hover { background: #f4aecf; }

/* ── date / scene divider ── */
.dm-divider {
    align-self: center;
    font-size: 10px;
    color: #d4a0bc;
    letter-spacing: 0.5px;
    margin: 12px 0 6px;
    padding: 3px 10px;
    border: 1px solid #ffe0ef;
    background: #fff8fc;
    text-align: center;
}

/* ── message row ── */
.dm-msg {
    display: flex;
    align-items: flex-end;
    gap: 7px;
    max-width: 82%;
    animation: dm-appear 0.2s ease;
}
.dm-msg.dm-left  { align-self: flex-start; }
.dm-msg.dm-right { align-self: flex-end; flex-direction: row-reverse; }

/* consecutive same-side: hide avatar so bubbles feel grouped */
.dm-msg.dm-stack .dm-avatar { visibility: hidden; }

/* ── avatar ── */
.dm-avatar {
    width: 26px;
    height: 26px;
    border: 2px solid #f4aecf;
    object-fit: cover;
    image-rendering: pixelated;
    flex-shrink: 0;
}

/* ── bubble wrap ── */
.dm-bubble-wrap {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}
.dm-right .dm-bubble-wrap { align-items: flex-end; }

/* ── bubble ── */
.dm-bubble {
    padding: 8px 11px;
    font-size: 13px;
    line-height: 1.6;
    word-break: break-word;
    white-space: pre-wrap;
    border: 2px solid transparent;
    max-width: 100%;
}
.dm-left  .dm-bubble {
    background: #fff0f7;
    color: #e08ab0;
    border-color: #ffe0ef;
}
.dm-right .dm-bubble {
    background: #f4aecf;
    color: #fff8fc;
    border-color: #e088b8;
}

/* ── timestamp ── */
.dm-time {
    font-size: 9px;
    color: #d4a0bc;
    padding: 0 3px;
}

/* ── typing indicator (bouncing dots bubble) ── */
.dm-bubble-dots {
    display: flex;
    gap: 5px;
    align-items: center;
    padding: 10px 14px;
    min-width: 52px;
}
.dm-dot {
    width: 6px;
    height: 6px;
    background: #d4a0bc;
    border-radius: 50%;
    animation: dm-bounce 1.1s infinite ease-in-out;
    flex-shrink: 0;
}
.dm-dot:nth-child(2) { animation-delay: 0.18s; }
.dm-dot:nth-child(3) { animation-delay: 0.36s; }

/* ── keyframes ── */
@keyframes dm-bounce {
    0%, 80%, 100% { transform: translateY(0);    opacity: 0.4; }
    40%            { transform: translateY(-5px); opacity: 1;   }
}
@keyframes dm-appear {
    from { opacity: 0; transform: translateY(5px); }
    to   { opacity: 1; transform: translateY(0);   }
}


/* ── icon assets ─────────────────────────── */
.tw-extra-icon-img {
    width: 18px;
    height: 18px;
    object-fit: contain;
    image-rendering: pixelated;
    flex-shrink: 0;
}
.nav-icon {
    width: 16px;
    height: 16px;
    object-fit: contain;
    image-rendering: pixelated;
    vertical-align: middle;
    margin-right: 2px;
}

/* ── typing bubble (right side letter-by-letter) ── */
.dm-bubble-typing {
    padding: 8px 11px;
    font-size: 13px;
    line-height: 1.6;
    word-break: break-word;
    white-space: pre-wrap;
    border: 2px solid transparent;
    max-width: 100%;
    background: #f4aecf;
    color: #fff8fc;
    border-color: #e088b8;
    min-width: 4px;
    min-height: 20px;
}

/* ── PHONE KEYBOARD ──────────────────────────── */
#dm-keyboard {
    flex-shrink: 0;
    background: #fff0f7;
    border-top: 2px solid #ffe0ef;
    padding: 6px 6px 10px;
    user-select: none;
}

.dm-kb-input-row {
    display: flex;
    gap: 6px;
    align-items: center;
    margin-bottom: 8px;
    padding: 0 2px;
}

.dm-kb-input-field {
    flex: 1;
    background: #fff8fc;
    border: 2px solid #ffe0ef;
    color: #d4a0bc;
    font-family: 'Pixelify Sans', monospace;
    font-size: 12px;
    padding: 6px 10px;
    border-radius: 20px;
    pointer-events: none;
}

.dm-kb-send {
    background: #f4aecf;
    border: 2px solid #e08ab0;
    color: #fff8fc;
    font-size: 13px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: monospace;
    flex-shrink: 0;
}
.dm-kb-send:hover { background: #e08ab0; }

.dm-kb-rows {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.dm-kb-row {
    display: flex;
    justify-content: center;
    gap: 4px;
}

.dm-kb-row-mid {
    padding: 0 12px;
}

.dm-kb-row-bottom {
    gap: 6px;
}

.dm-key {
    background: #fff8fc;
    border: 2px solid #ffe0ef;
    border-bottom: 3px solid #f4aecf;
    color: #e08ab0;
    font-family: 'Pixelify Sans', monospace;
    font-size: 12px;
    min-width: 28px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.08s, transform 0.08s;
    flex: 1;
    max-width: 34px;
    text-align: center;
}

.dm-key:hover {
    background: #ffe8f3;
    border-color: #f4aecf;
    border-bottom-color: #e08ab0;
}

.dm-key:active {
    transform: translateY(1px);
    border-bottom-width: 2px;
    background: #ffd6eb;
}

.dm-key-wide {
    min-width: 42px;
    max-width: 42px;
    font-size: 14px;
    flex: 0 0 42px;
    background: #ffe0ef;
    border-color: #f4aecf;
}

.dm-key-sym {
    min-width: 52px;
    max-width: 72px;
    max-width: none;
    flex: 0 0 60px;
    font-size: 10px;
    background: #ffe0ef;
    border-color: #f4aecf;
}

.dm-key-space {
    flex: 1;
    max-width: none;
    font-size: 11px;
    letter-spacing: 1px;
}

/* ── key pressed state ── */
.dm-key.dm-key-pressed,
.dm-kb-send.dm-key-pressed {
    transform: translateY(2px);
    background: #f4aecf !important;
    border-bottom-width: 1px !important;
    color: #fff8fc !important;
}

/* ── keyboard input active (user typing) ── */
.dm-kb-input-field.dm-kb-active {
    color: #e08ab0;
    border-color: #f4aecf;
    background: #fff0f7;
}

/* ── link colors ── */
a {
    color: #c4608e;
    text-decoration: none;
}
a:hover {
    color: #e08ab0;
    text-decoration: underline;
}
.tw-navlink {
    color: #e08ab0 !important;
    text-decoration: none !important;
}

/* ══════════════════════════════════════════════
   COMMENTS
   ══════════════════════════════════════════════ */
.tweet-comments {
    margin-top: 8px;
    border-top: 1px solid #ffe0ef;
    padding-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    animation: comment-slide 0.18s ease;
}
@keyframes comment-slide {
    from { opacity: 0; transform: translateY(-4px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* existing comments list */
.comment-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 260px;
    overflow-y: auto;
}
.comment-list::-webkit-scrollbar { width: 4px; }
.comment-list::-webkit-scrollbar-track { background: #fff5fa; }
.comment-list::-webkit-scrollbar-thumb { background: #ffe0ef; border-radius: 2px; }

.comment-item {
    display: flex;
    gap: 8px;
    align-items: flex-start;
    padding: 6px 8px;
    background: #fff5fc;
    border: 1px solid #ffe0ef;
    border-left: 3px solid #f4aecf;
}

.comment-pfp {
    width: 28px;
    height: 28px;
    border: 2px solid #f4aecf;
    object-fit: cover;
    image-rendering: pixelated;
    flex-shrink: 0;
}

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

.comment-meta {
    display: flex;
    align-items: center;
    gap: 5px;
    flex-wrap: wrap;
    margin-bottom: 2px;
}

.comment-name {
    font-size: 12px;
    font-weight: bold;
    color: #e08ab0;
}

.comment-handle {
    font-size: 11px;
    color: #d4a0bc;
}

.comment-date {
    font-size: 10px;
    color: #d4a0bc;
    margin-left: auto;
}

.comment-text {
    font-size: 13px;
    color: #e08ab0;
    line-height: 1.4;
    word-break: break-word;
}

/* comment compose area */
.comment-compose {
    display: flex;
    gap: 8px;
    align-items: flex-start;
    padding: 6px 0 2px;
    border-top: 1px dashed #ffe0ef;
}

.comment-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.comment-textarea {
    width: 100%;
    min-height: 52px;
    background: #fff0f7;
    border: 2px solid #ffe0ef;
    color: #e08ab0;
    font-family: 'Pixelify Sans', monospace;
    font-size: 13px;
    padding: 6px 8px;
    resize: none;
    outline: none;
    line-height: 1.4;
}
.comment-textarea:focus { border-color: #f4aecf; }
.comment-textarea::placeholder { color: #d4a0bc; }

.comment-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

.comment-charcount {
    font-size: 11px;
    color: #d4a0bc;
}

.comment-submit {
    background: #f4aecf;
    border: 2px solid #e08ab0;
    color: #fff8fc;
    font-family: 'Pixelify Sans', monospace;
    font-size: 12px;
    font-weight: bold;
    padding: 3px 12px;
    cursor: pointer;
    transition: background 0.15s;
}
.comment-submit:hover { background: #e08ab0; }

/* ── DM CHOICE TRAY (sits above keyboard, keyboard stays visible) ── */
#dm-choice-tray {
    padding: 8px 12px 4px;
}
.dm-choice-btn {
    display: block;
    width: 100%;
    margin-bottom: 6px;
    padding: 8px 14px;
    background: transparent;
    border: 1.5px solid #e0a0c0;
    color: #f4aecf;
    font-family: 'Pixelify Sans', monospace;
    font-size: 12px;
    text-align: left;
    cursor: pointer;
    border-radius: 4px;
    transition: background 0.15s, color 0.15s;
    letter-spacing: 0.03em;
}
.dm-choice-btn:hover  { background: #f4aecf; color: #fff8fc; }
.dm-choice-btn:active { background: #e08ab0; color: #fff8fc; }
