/* 올비전 v2 — 디스코드 화면 재현 (랜딩·가이드 공용) */

/* ─────────── 디스코드 화면 (실사 재현) ─────────── */
.dcx {
    --dc-rail: #1e1f22;
    --dc-side: #2b2d31;
    --dc-chat: #313338;
    --dc-sel: #404249;
    --dc-line: #3f4147;
    --dc-text: #dbdee1;
    --dc-strong: #f2f3f5;
    --dc-muted: #949ba4;
    --dc-faint: #80848e;
    --dc-red: #f23f43;
    --dc-green: #23a55a;
    --dc-yellow: #f0b232;
    --dc-blurple: #5865f2;
    color: var(--dc-text);
    font-size: 15px;
    line-height: 1.375;
    letter-spacing: 0;
    text-align: left;
}

.dcx .gauge span {
    color: var(--dc-muted);
}

.dcx .gauge span b {
    color: var(--dc-strong);
}

.dcx .bar {
    background: #1e1f22;
}

.dc-title {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: var(--dcw, 1120px);
    height: 30px;
    background: var(--dc-rail);
    font-size: 12.5px;
    font-weight: 600;
    color: var(--dc-muted);
}

.dc-nav,
.dc-win {
    position: absolute;
    top: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.dc-nav {
    left: 88px;
}

.dc-nav i {
    width: 7px;
    height: 7px;
    border-left: 2px solid var(--dc-faint);
    border-bottom: 2px solid var(--dc-faint);
    transform: rotate(45deg);
}

.dc-nav i + i {
    transform: rotate(-135deg);
    opacity: 0.5;
}

.dc-win {
    right: 14px;
    gap: 18px;
}

.dc-win i {
    width: 10px;
    height: 10px;
    border: 1.5px solid var(--dc-faint);
    border-radius: 1px;
}

.dc-win i:first-child {
    height: 0;
    border-width: 1.5px 0 0;
}

.dc-body {
    position: relative;
    display: flex;
    width: var(--dcw, 1120px);
    height: calc(100% - 30px);
}

/* 서버 목록 */
.dc-rail {
    position: relative;
    display: flex;
    flex: none;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    width: 72px;
    padding: 12px 0;
    background: var(--dc-rail);
}

.dc-guild {
    position: relative;
    display: grid;
    flex: none;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    font-size: 17px;
    font-weight: 600;
    color: #ffffff;
    transition:
        border-radius 0.25s,
        background 0.25s;
}

.dc-guild svg {
    width: 100%;
    height: 100%;
    border-radius: inherit;
}

.dc-guild::before {
    content: '';
    position: absolute;
    left: -12px;
    top: 50%;
    width: 4px;
    height: 0;
    border-radius: 0 4px 4px 0;
    background: #ffffff;
    transform: translateY(-50%);
    transition: height 0.25s;
}

.dc-guild:has(.dc-badge)::before {
    height: 8px;
}

.dc-guild.hover {
    border-radius: 16px;
}

.dc-guild.hover::before {
    height: 20px;
}

.dc-guild.sel {
    border-radius: 16px;
}

.dc-guild.sel::before {
    height: 40px;
}

.dc-home {
    background: var(--dc-chat);
}

.dc-home svg {
    width: 26px;
    height: 26px;
    fill: var(--dc-text);
}

.dc-home.sel {
    background: var(--dc-blurple);
}

.dc-home.sel svg {
    fill: #ffffff;
}

.dc-sep {
    flex: none;
    width: 32px;
    height: 2px;
    border-radius: 1px;
    background: var(--dc-line);
}

.dc-add {
    background: var(--dc-chat);
    font-size: 24px;
    font-weight: 400;
    color: var(--dc-green);
}

.g-sunset {
    background: linear-gradient(135deg, #ff9a5c, #e0436b);
}
.g-mint {
    background: linear-gradient(135deg, #3ecf8e, #1b8f7a);
}
.g-grape {
    background: linear-gradient(135deg, #9b6bff, #5b3bd6);
}
.g-night {
    background: linear-gradient(160deg, #3b4fb0, #0b1238);
}
.g-coral {
    background: linear-gradient(135deg, #ff7b7b, #c9366b);
}
.g-sky {
    background: linear-gradient(135deg, #6ec3ff, #2a6ff0);
}
.g-leaf {
    background: linear-gradient(135deg, #7ed957, #2f8f46);
}
.g-sand {
    background: linear-gradient(135deg, #f7c873, #d68a3a);
}
.g-ink {
    background: linear-gradient(135deg, #5c6070, #2b2d31);
}
.g-rose {
    background: linear-gradient(135deg, #ff8fc7, #c23b8a);
}

.dc-badge {
    position: absolute;
    right: -4px;
    bottom: -4px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: 8px;
    background: var(--dc-red);
    box-shadow: 0 0 0 3px var(--dc-rail);
    font-size: 11px;
    font-weight: 700;
    line-height: 16px;
    color: #ffffff;
    text-align: center;
}

.dc-badge-big {
    right: -8px;
}

.dc-badge.bump {
    animation: bump 0.3s;
}

.dc-tip {
    position: absolute;
    left: 70px;
    top: var(--tip-y, 200px);
    z-index: 4;
    padding: 7px 11px;
    border-radius: 6px;
    background: #111214;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    font-size: 14px;
    font-weight: 600;
    color: var(--dc-strong);
    white-space: nowrap;
    opacity: 0;
    transform: translateX(-6px);
    transition:
        opacity 0.2s,
        transform 0.2s;
}

.dc-tip::before {
    content: '';
    position: absolute;
    left: -5px;
    top: 50%;
    border: 5px solid transparent;
    border-left: 0;
    border-right-color: #111214;
    transform: translateY(-50%);
}

.dc-tip.on {
    opacity: 1;
    transform: none;
}

/* 채널 목록 */
.dc-side {
    display: flex;
    flex: none;
    flex-direction: column;
    width: 240px;
    background: var(--dc-side);
}

.dc-side-head {
    display: flex;
    flex: none;
    align-items: center;
    justify-content: space-between;
    height: 48px;
    padding: 0 16px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.3);
    font-size: 15px;
    color: var(--dc-strong);
}

.dc-side-head b {
    font-weight: 600;
}

.dc-chev {
    width: 7px;
    height: 7px;
    border-right: 2px solid var(--dc-text);
    border-bottom: 2px solid var(--dc-text);
    transform: rotate(45deg) translateY(-2px);
}

.dc-chans {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 2px;
    min-height: 0;
    padding: 4px 8px 8px;
    overflow: hidden;
}

.dc-cat {
    padding: 16px 8px 4px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: var(--dc-muted);
}

.dc-chan {
    position: relative;
    display: flex;
    flex: none;
    align-items: center;
    gap: 6px;
    height: 32px;
    padding: 0 8px;
    border-radius: 4px;
    font-size: 15px;
    font-weight: 500;
    color: var(--dc-muted);
    transition:
        background 0.2s,
        color 0.2s;
}

.dc-chan i {
    width: 20px;
    font-size: 20px;
    font-style: normal;
    font-weight: 400;
    color: var(--dc-faint);
    text-align: center;
}

.dc-chan.unread {
    font-weight: 600;
    color: var(--dc-strong);
}

.dc-chan.unread::before {
    content: '';
    position: absolute;
    left: -8px;
    top: 50%;
    width: 4px;
    height: 8px;
    border-radius: 0 4px 4px 0;
    background: #ffffff;
    transform: translateY(-50%);
}

.dc-chan.hover {
    background: #35373c;
}

.dc-chan.sel {
    background: var(--dc-sel);
    color: #ffffff;
}

.dc-chan .dc-badge {
    position: static;
    margin-left: auto;
    box-shadow: none;
}

.dc-vuser {
    display: flex;
    align-items: center;
    gap: 8px;
    height: 28px;
    padding-left: 36px;
    font-size: 13.5px;
    color: var(--dc-muted);
}

.dc-vuser em,
.dc-me em,
.dc-mem em {
    position: relative;
    display: grid;
    flex: none;
    place-items: center;
    border-radius: 50%;
    font-style: normal;
    font-weight: 600;
    color: #ffffff;
}

.dc-vuser em {
    width: 22px;
    height: 22px;
    font-size: 10px;
}

.dc-me {
    display: flex;
    flex: none;
    align-items: center;
    gap: 8px;
    height: 54px;
    padding: 0 10px;
    background: #232428;
}

.dc-me em {
    width: 32px;
    height: 32px;
    font-size: 13px;
}

.dc-me em::after,
.dc-mem em::after {
    content: '';
    position: absolute;
    right: -2px;
    bottom: -2px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--dc-green);
    box-shadow: 0 0 0 3px #232428;
}

.dc-me span {
    display: grid;
    line-height: 1.25;
}

.dc-me b {
    font-size: 14px;
    font-weight: 600;
    color: var(--dc-strong);
}

.dc-me small {
    font-size: 12px;
    color: var(--dc-muted);
}

/* 대화 영역 */
.dc-chat {
    position: relative;
    display: flex;
    flex: 1;
    flex-direction: column;
    min-width: 0;
    background: var(--dc-chat);
}

.dc-chat-head {
    display: flex;
    flex: none;
    align-items: center;
    gap: 8px;
    height: 48px;
    padding: 0 16px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.28);
    color: var(--dc-strong);
}

.dc-hash {
    font-size: 22px;
    font-style: normal;
    font-weight: 400;
    color: var(--dc-faint);
}

.dc-chat-head b {
    font-size: 15px;
    font-weight: 600;
    white-space: nowrap;
}

.dc-topic {
    min-width: 0;
    margin-left: 8px;
    padding-left: 12px;
    overflow: hidden;
    border-left: 1px solid var(--dc-line);
    font-size: 13.5px;
    color: var(--dc-muted);
    white-space: nowrap;
    text-overflow: ellipsis;
}

.dc-slow {
    display: none;
    flex: none;
    margin-left: auto;
    padding: 3px 9px;
    border: 1px solid rgba(240, 178, 50, 0.4);
    border-radius: 999px;
    background: rgba(240, 178, 50, 0.1);
    font-size: 12px;
    font-weight: 600;
    color: var(--dc-yellow);
}

.dc-slow.on {
    display: inline-block;
    animation: pop 0.4s cubic-bezier(0.3, 1.6, 0.5, 1);
}

.dc-newbar {
    position: absolute;
    top: 48px;
    left: 16px;
    right: 16px;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 26px;
    padding: 0 12px;
    border-radius: 0 0 8px 8px;
    background: var(--dc-blurple);
    font-size: 12.5px;
    font-weight: 600;
    color: #ffffff;
    opacity: 0;
    transform: translateY(-100%);
    transition:
        opacity 0.3s,
        transform 0.3s;
}

.dc-newbar.on {
    opacity: 1;
    transform: none;
}

.dc-msgs {
    display: flex;
    flex: 1;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 0;
    padding-bottom: 6px;
    overflow: hidden;
}

.dc-msg {
    position: relative;
    display: grid;
    flex: none;
    grid-template-columns: 40px minmax(0, 1fr);
    column-gap: 16px;
    margin-top: 14px;
    padding: 2px 16px;
}

.dc-msg.cont {
    grid-template-columns: minmax(0, 1fr);
    margin-top: 0;
    padding-left: 72px;
}

.dc-msg.mention {
    background: rgba(240, 178, 50, 0.08);
}

.dc-msg.mention::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--dc-yellow);
}

.dc-msg.new {
    animation: msgin 0.22s ease-out;
}

.dc-msg.del {
    overflow: hidden;
    animation: msgdel 0.45s ease-in forwards;
}

.dc-ava {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    overflow: hidden;
    border-radius: 50%;
    font-size: 15px;
    font-style: normal;
    font-weight: 600;
    color: #ffffff;
}

.dc-ava img,
.av-bot img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.dc-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 2px 8px;
}

.dc-name {
    font-size: 15px;
    font-weight: 500;
    color: var(--dc-strong);
}

.r-admin {
    color: #f47b67;
}

.r-bot {
    color: #8ec5ff;
}

.dc-time {
    font-size: 12px;
    color: var(--dc-muted);
}

.dc-txt {
    font-size: 15px;
    color: var(--dc-text);
    overflow-wrap: anywhere;
}

.dc-at {
    padding: 0 2px;
    border-radius: 3px;
    background: rgba(88, 101, 242, 0.3);
    font-weight: 500;
    color: #c9cdfb;
}

.dc-app {
    display: inline-flex;
    align-items: center;
    height: 16px;
    margin-left: -4px;
    padding: 0 5px;
    border-radius: 4px;
    background: var(--dc-blurple);
    font-size: 10.5px;
    font-weight: 600;
    color: #ffffff;
}

.dc-app::before {
    content: '✓';
    margin-right: 3px;
    font-size: 9px;
}

.dc-embed {
    display: grid;
    gap: 6px;
    max-width: 520px;
    margin-top: 4px;
    padding: 10px 16px 14px 12px;
    border-left: 4px solid var(--e, #4e5058);
    border-radius: 4px;
    background: var(--dc-side);
    transition: border-color 0.4s;
}

.e-red {
    --e: #f23f43;
}
.e-orange {
    --e: #f0b232;
}
.e-green {
    --e: #23a55a;
}
.e-blue {
    --e: #5865f2;
}

.dc-embed-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--dc-strong);
}

.dc-field {
    font-size: 13.5px;
    color: var(--dc-text);
}

.dc-field b {
    margin-right: 4px;
    font-weight: 600;
    color: var(--dc-strong);
}

.dc-quote {
    display: grid;
    gap: 2px;
    padding-left: 10px;
    border-left: 4px solid #4e5058;
}

.dc-quote small {
    font-size: 12px;
    color: var(--dc-muted);
}

.dc-code {
    justify-self: start;
    padding: 1px 5px;
    border-radius: 4px;
    background: #1e1f22;
    font-family: var(--f-mono);
    font-size: 12px;
}

.dc-codeblock {
    padding: 7px 10px;
    border: 1px solid #1e1f22;
    border-radius: 4px;
    background: #2b2d31;
    background: #1e1f22;
    font-family: var(--f-mono);
    font-size: 12.5px;
    color: var(--dc-text);
}

.x {
    color: var(--dc-red);
}

.o,
.ok-mark {
    color: var(--dc-green);
}

.dc-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.dc-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    height: 32px;
    padding: 0 16px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    color: #ffffff;
    white-space: nowrap;
    transition:
        filter 0.15s,
        transform 0.15s;
}

.dc-btn.grey {
    background: #4e5058;
}
.dc-btn.red {
    background: #da373c;
}
.dc-btn.green {
    background: #248046;
}

.dc-typing {
    display: flex;
    flex: none;
    align-items: center;
    gap: 6px;
    height: 22px;
    padding: 0 16px;
    font-size: 12.5px;
    color: var(--dc-text);
    opacity: 0;
    transition: opacity 0.3s;
}

.dc-typing.on {
    opacity: 1;
}

.dc-typing b {
    font-weight: 700;
}

.dc-dots {
    display: inline-flex;
    gap: 3px;
}

.dc-dots i {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--dc-text);
    animation: typing 1.2s infinite;
}

.dc-dots i:nth-child(2) {
    animation-delay: 0.15s;
}

.dc-dots i:nth-child(3) {
    animation-delay: 0.3s;
}

.dc-input {
    display: flex;
    flex: none;
    align-items: center;
    gap: 14px;
    height: 44px;
    margin: 0 16px 18px;
    padding: 0 16px;
    border-radius: 8px;
    background: #383a40;
    font-size: 15px;
    color: var(--dc-faint);
}

.dc-input span {
    display: grid;
    place-items: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #b5bac1;
    font-weight: 700;
    color: #383a40;
}

.dc-input em {
    overflow: hidden;
    font-style: normal;
    white-space: nowrap;
    text-overflow: ellipsis;
}

/* 멤버 목록 */
.dc-members {
    display: flex;
    flex: none;
    flex-direction: column;
    gap: 1px;
    width: 240px;
    padding: 4px 8px 0;
    overflow: hidden;
    background: var(--dc-side);
}

.dc-members .dc-cat {
    padding-top: 18px;
}

.dc-mem {
    display: flex;
    flex: none;
    align-items: center;
    gap: 10px;
    height: 42px;
    padding: 0 8px;
    border-radius: 4px;
    font-size: 15px;
}

.dc-mem em {
    width: 32px;
    height: 32px;
    font-size: 13px;
}

.dc-mem em::after {
    box-shadow: 0 0 0 3px var(--dc-side);
}

.dc-mem b {
    overflow: hidden;
    font-weight: 500;
    color: var(--dc-text);
    white-space: nowrap;
    text-overflow: ellipsis;
}

.dc-mem .dc-app {
    margin-left: 0;
}

.dc-mem.raider {
    animation: msgin 0.3s ease-out;
}

.dc-mem.timeout {
    opacity: 0.45;
}

.dc-mem.timeout em::after {
    background: var(--dc-faint);
}

.dc-mem .to {
    margin-left: auto;
    padding: 1px 6px;
    border-radius: 4px;
    background: rgba(242, 63, 67, 0.15);
    font-size: 11px;
    font-weight: 600;
    color: #ff8a8d;
}

/* 아바타 색 */
.av-a {
    background: linear-gradient(135deg, #6ec3ff, #2a6ff0);
}
.av-b {
    background: linear-gradient(135deg, #ffb86b, #e0673c);
}
.av-c {
    background: linear-gradient(135deg, #b18cff, #6d4bd8);
}
.av-d {
    background: linear-gradient(135deg, #8ee3a8, #2f9e6b);
}
.av-e {
    background: linear-gradient(135deg, #ffd36e, #d69a1f);
}
.av-g {
    background: linear-gradient(135deg, #9aa3b5, #5d6577);
}
.av-me {
    background: linear-gradient(135deg, #87ceeb, #2a6ff0);
}
.av-bot {
    overflow: visible;
    background: #02040c;
}
.av-r1 {
    background: #5865f2;
}
.av-r2 {
    background: #ed4245;
}
.av-r3 {
    background: #3ba55c;
}
.av-r4 {
    background: #faa61a;
}
.av-r5 {
    background: #eb459e;
}
.av-r6 {
    background: #747f8d;
}

/* 커서 */
.dc-cursor {
    position: absolute;
    left: 0;
    top: 0;
    z-index: 10;
    width: 24px;
    height: 24px;
    opacity: 0;
    transform: translate(var(--cx, 600px), var(--cy, 700px));
    transition:
        transform 0.75s cubic-bezier(0.3, 0.7, 0.2, 1),
        opacity 0.3s;
    filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.55));
}

.dc-cursor.on {
    opacity: 1;
}

.dc-cursor svg {
    width: 100%;
    height: 100%;
    fill: #ffffff;
    stroke: #111214;
    stroke-width: 1.3;
}

.dc-cursor::after {
    content: '';
    position: absolute;
    left: -10px;
    top: -10px;
    width: 26px;
    height: 26px;
    border: 2px solid rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    opacity: 0;
}

.dc-cursor.click::after {
    animation: ripple 0.55s ease-out;
}

/* 모바일: 서버 목록 + 채널 목록 → 채널을 누르면 대화가 밀려 들어온다 */
.dc.m .dc-title,
.dc.m .dc-members,
.dc.m .dc-tip {
    display: none;
}

.dc.m .dc-body {
    height: 100%;
}

.dc.m .dc-rail {
    width: 64px;
    gap: 7px;
}

.dc.m .dc-guild {
    width: 44px;
    height: 44px;
}

.dc.m .dc-side {
    flex: 1;
    width: auto;
}

.dc.m .dc-chat {
    position: absolute;
    inset: 0;
    z-index: 5;
    transform: translateX(102%);
    transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
    box-shadow: -20px 0 40px rgba(0, 0, 0, 0.4);
}

.dc.m.open .dc-chat {
    transform: none;
}

.dc.m .dc-msg {
    column-gap: 12px;
    padding: 2px 12px;
}

.dc.m .dc-msg.cont {
    padding-left: 64px;
}

.dc.m .dc-input {
    margin: 0 12px 12px;
}

@keyframes msgin {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
}

@keyframes msgdel {
    0% {
        max-height: 90px;
        background: rgba(242, 63, 67, 0.28);
    }

    45% {
        opacity: 1;
        transform: none;
    }

    100% {
        max-height: 0;
        margin-top: 0;
        padding-top: 0;
        padding-bottom: 0;
        opacity: 0;
        transform: translateX(-24px);
    }
}

@keyframes typing {
    0%,
    60%,
    100% {
        transform: none;
        opacity: 0.5;
    }

    30% {
        transform: translateY(-3px);
        opacity: 1;
    }
}

@keyframes ripple {
    from {
        opacity: 1;
        transform: scale(0.3);
    }

    to {
        opacity: 0;
        transform: scale(1.6);
    }
}

@keyframes pop {
    from {
        opacity: 0;
        transform: scale(0.6);
    }
}

@keyframes bump {
    50% {
        transform: scale(1.25);
    }
}
