html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

h1:focus {
    outline: none;
}

a, .btn-link {
    color: #0071c1;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

.content {
    padding-top: 1.1rem;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

#blazor-error-ui {
    color-scheme: light only;
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.loading-progress {
    position: absolute;
    display: block;
    width: 8rem;
    height: 8rem;
    inset: 20vh 0 auto 0;
    margin: 0 auto 0 auto;
}

    .loading-progress circle {
        fill: none;
        stroke: #e0e0e0;
        stroke-width: 0.6rem;
        transform-origin: 50% 50%;
        transform: rotate(-90deg);
    }

        .loading-progress circle:last-child {
            stroke: #1b6ec2;
            stroke-dasharray: calc(3.141 * var(--blazor-load-percentage, 0%) * 0.8), 500%;
            transition: stroke-dasharray 0.05s ease-in-out;
        }

.loading-progress-text {
    position: absolute;
    text-align: center;
    font-weight: bold;
    inset: calc(20vh + 3.25rem) 0 auto 0.2rem;
}

    .loading-progress-text:after {
        content: var(--blazor-load-percentage-text, "Loading");
    }

code {
    color: #c02d76;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}


:root {
    --dm-bg: #100B24;
    --dm-bg-soft: #17102F;
    --dm-panel: rgba(31, 22, 57, .88);
    --dm-panel-border: rgba(167, 112, 255, .28);
    --dm-purple: #8B2FE8;
    --dm-purple-light: #A34BFA;
    --dm-purple-deep: #6D35D4;
    --dm-yellow: #FFC928;
    --dm-text: #FFFFFF;
    --dm-muted: #C5BDD8;
    --dm-green: #45D6A0;
    --dm-danger: #FF7D91;
}

html, body {
    min-height: 100%;
    background: var(--dm-bg);
    color: var(--dm-text);
    font-family: Inter, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body {
    margin: 0;
    background:
        radial-gradient(ellipse at 12% 12%, rgba(107, 35, 177, .28), transparent 34rem),
        radial-gradient(ellipse at 88% 82%, rgba(85, 39, 157, .24), transparent 34rem),
        var(--dm-bg);
}

.content { padding-top: 0; }

.dm-page {
    min-height: 100vh;
    position: relative;
    overflow: hidden;
    padding: clamp(24px, 5vw, 64px) 16px 28px;
    isolation: isolate;
}

.dm-background-orb {
    position: absolute;
    z-index: -1;
    width: 360px;
    height: 360px;
    border-radius: 50%;
    filter: blur(90px);
    opacity: .22;
    pointer-events: none;
}
.dm-orb-one { background: #8B2FE8; top: -220px; left: -130px; }
.dm-orb-two { background: #5426B8; right: -180px; bottom: -220px; }

.dm-shell {
    width: min(100%, 760px);
    margin: 0 auto;
}

.dm-brand { text-align: center; margin: 0 auto 30px; }
.dm-logo {
    width: 76px;
    height: 66px;
    position: relative;
    margin: 0 auto 10px;
    color: var(--dm-yellow);
    font-size: 43px;
}
.dm-logo-back {
    position: absolute;
    left: 5px;
    top: 0;
    transform: rotate(-9deg);
    color: var(--dm-yellow);
    filter: drop-shadow(0 7px 12px rgba(255, 201, 40, .18));
}
.dm-logo-front {
    position: absolute;
    right: 2px;
    top: 17px;
    transform: rotate(8deg);
    color: #A34BFA;
    text-shadow: 0 7px 16px rgba(139, 47, 232, .35);
}
.dm-logo-spark { position: absolute; right: -3px; top: -8px; color: var(--dm-yellow); font-size: 20px; }
.dm-brand-name {
    color: #fff;
    font-size: clamp(2.5rem, 7vw, 3.65rem);
    line-height: 1;
    font-weight: 900;
    letter-spacing: -2.5px;
}
.dm-brand-name span { color: #A34BFA; }
.dm-tagline { color: var(--dm-muted); margin: 12px 0 0; font-size: clamp(.95rem, 2.5vw, 1.1rem); }

.dm-panel {
    position: relative;
    padding: clamp(22px, 5vw, 48px);
    border: 1px solid var(--dm-panel-border);
    border-radius: 28px;
    background: linear-gradient(145deg, rgba(34, 23, 62, .96), rgba(23, 15, 45, .96));
    box-shadow: 0 24px 80px rgba(0, 0, 0, .32), inset 0 1px 0 rgba(255,255,255,.05);
    backdrop-filter: blur(18px);
}

.dm-section-heading { text-align: center; margin-bottom: 30px; }
.dm-eyebrow {
    display: inline-block;
    color: var(--dm-yellow);
    font-size: .7rem;
    font-weight: 800;
    letter-spacing: 2px;
}
.dm-section-heading h1, .dm-game-action h2, .dm-result h2 {
    color: var(--dm-text);
    font-weight: 850;
    letter-spacing: -.8px;
    margin: 9px 0 7px;
}
.dm-section-heading h1 { font-size: clamp(1.8rem, 5vw, 2.25rem); }
.dm-section-heading p, .dm-muted { color: var(--dm-muted); margin-bottom: 0; }

.dm-form-group { margin-bottom: 22px; }
.dm-form-group label { display: block; color: #F5F0FF; font-size: .9rem; font-weight: 650; margin-bottom: 9px; }
.dm-input {
    min-height: 54px;
    border-radius: 14px;
    border: 1px solid rgba(177, 145, 222, .34);
    background: rgba(255,255,255,.07);
    color: #fff;
    padding: 13px 16px;
    box-shadow: none;
}
.dm-input::placeholder { color: #A99DBF; opacity: 1; }
.dm-input:focus {
    color: #fff;
    background: rgba(255,255,255,.09);
    border-color: #A34BFA;
    box-shadow: 0 0 0 3px rgba(163,75,250,.17);
}
.dm-input:disabled { background: rgba(255,255,255,.04); color: var(--dm-muted); }
.dm-button {
    min-height: 54px;
    border-radius: 14px;
    padding: 13px 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-weight: 750;
    font-size: 1rem;
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.dm-button:hover:not(:disabled) { transform: translateY(-2px); }
.dm-button:active:not(:disabled) { transform: translateY(0); }
.dm-button:focus-visible { outline: 3px solid var(--dm-yellow); outline-offset: 3px; }
.dm-button:disabled { opacity: .55; cursor: not-allowed; }
.dm-button-primary {
    color: #fff;
    border: 1px solid rgba(205, 164, 255, .35);
    background: linear-gradient(110deg, #9B35EF, #7025D5);
    box-shadow: 0 9px 25px rgba(117, 40, 214, .25), inset 0 1px 0 rgba(255,255,255,.2);
}
.dm-button-primary:hover:not(:disabled) { color: #fff; background: linear-gradient(110deg, #AA45FA, #7D31E2); box-shadow: 0 12px 30px rgba(117,40,214,.36); }
.dm-button-arrow { margin-left: auto; opacity: .75; }
.dm-button-secondary {
    color: #fff;
    border: 1px solid rgba(171, 117, 235, .7);
    background: rgba(116, 68, 172, .16);
    white-space: nowrap;
}
.dm-button-secondary:hover:not(:disabled) { color: #fff; background: rgba(139,47,232,.28); border-color: #A34BFA; }
.dm-divider {
    display: flex;
    align-items: center;
    gap: 14px;
    color: #A99DBF;
    font-size: .68rem;
    font-weight: 750;
    letter-spacing: 1.4px;
    margin: 27px 0;
}
.dm-divider::before, .dm-divider::after { content: ""; flex: 1; height: 1px; background: rgba(190,166,222,.17); }
.dm-join-control { display: flex; gap: 10px; }
.dm-code-input-wrap {
    flex: 1;
    min-width: 0;
    position: relative;
}
.dm-code-input-wrap > i { position: absolute; z-index: 1; left: 15px; top: 17px; color: var(--dm-yellow); font-size: 1.1rem; }
.dm-code-input { padding-left: 42px; }
.dm-field-hint { display: block; color: #9F95B4; margin: 8px 2px 0; }
.dm-footnote {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding-top: 20px;
    margin-top: 25px;
    border-top: 1px solid rgba(190,166,222,.13);
    color: #A99DBF;
    font-size: .8rem;
}
.dm-footnote i { color: var(--dm-yellow); font-size: 1rem; }

.dm-room-topline { display: flex; align-items: center; gap: 8px; color: var(--dm-green); font-size: .68rem; font-weight: 800; letter-spacing: 1.3px; margin-bottom: 30px; }
.dm-room-round { margin-left: auto; color: var(--dm-muted); }
.dm-live-indicator, .dm-connection-off { width: 8px; height: 8px; display: inline-block; border-radius: 50%; background: var(--dm-green); box-shadow: 0 0 12px rgba(69,214,160,.65); }
.dm-connection-off { background: var(--dm-yellow); box-shadow: none; }
.dm-room-code { color: var(--dm-yellow); font-size: clamp(2.4rem, 9vw, 3.4rem); font-weight: 900; letter-spacing: .22em; margin: 10px 0; }
.dm-players { display: grid; grid-template-columns: 1fr 38px 1fr; align-items: center; gap: 8px; margin: 28px 0; }
.dm-player-card {
    min-width: 0;
    text-align: center;
    padding: 18px 8px;
    border-radius: 18px;
    background: rgba(255,255,255,.045);
    border: 1px solid rgba(177,145,222,.17);
}
.dm-player-avatar {
    width: 48px; height: 48px; display: grid; place-items: center; margin: 0 auto 10px;
    border-radius: 15px; color: #F9D66C; background: rgba(255,201,40,.13); font-size: 1.5rem;
}
.dm-player-avatar-alt { color: #D2A4FF; background: rgba(163,75,250,.17); }
.dm-player-card strong { display: block; color: #fff; overflow-wrap: anywhere; }
.dm-player-card span { display: block; color: #9F95B4; font-size: .75rem; margin-top: 5px; }
.dm-player-card .dm-player-online { color: var(--dm-green); }
.dm-player-connector { color: var(--dm-yellow); text-align: center; font-size: 1.3rem; }
.dm-feedback {
    display: flex; align-items: center; gap: 12px; padding: 15px 16px;
    border-radius: 14px; font-size: .9rem;
}
.dm-feedback strong, .dm-feedback small { display: block; }
.dm-feedback small { margin-top: 3px; opacity: .8; }
.dm-feedback-wait { color: #E8DDF8; background: rgba(163,75,250,.1); border: 1px solid rgba(163,75,250,.2); }
.dm-feedback-wait .spinner-border { color: var(--dm-yellow); flex: 0 0 auto; }
.dm-feedback-info { color: #E8DDF8; background: rgba(83,116,219,.12); border: 1px solid rgba(112,139,238,.2); }
.dm-feedback-error { color: #FFD5DC; background: rgba(255,90,117,.1); border: 1px solid rgba(255,90,117,.25); }
.dm-game-action { text-align: center; margin-top: 30px; }
.dm-game-action h2 { font-size: clamp(1.45rem, 4vw, 1.9rem); margin-top: 13px; }
.dm-game-action > p { margin: 0 auto 20px; max-width: 430px; }
.dm-round-pill {
    display: inline-flex; align-items: center; gap: 7px; border-radius: 999px;
    padding: 7px 14px; color: var(--dm-yellow); background: rgba(255,201,40,.1);
    border: 1px solid rgba(255,201,40,.2); font-size: .72rem; font-weight: 850; letter-spacing: 1px;
}
.dm-word-input { text-align: center; min-height: 62px; font-size: 1.1rem; margin-bottom: 13px; }
.dm-result { text-align: center; padding: 18px 0 4px; }
.dm-result-icon {
    width: 82px; height: 82px; display: grid; place-items: center; margin: 0 auto 18px;
    color: var(--dm-yellow); font-size: 2.7rem; border-radius: 26px;
    background: linear-gradient(145deg, rgba(255,201,40,.2), rgba(163,75,250,.2));
    border: 1px solid rgba(255,201,40,.28);
}
.dm-result h2 { color: var(--dm-yellow); font-size: clamp(2.1rem, 7vw, 3rem); }
.dm-result > p { color: var(--dm-muted); margin-bottom: 22px; }
.dm-result-summary {
    display: flex; justify-content: space-between; align-items: center; gap: 12px;
    text-align: left; padding: 15px; margin-bottom: 18px; border-radius: 14px;
    background: rgba(255,255,255,.05); color: var(--dm-muted); font-size: .78rem;
}
.dm-result-summary strong { color: #fff; font-size: .9rem; }
.dm-history { margin-top: 34px; padding-top: 25px; border-top: 1px solid rgba(190,166,222,.15); }
.dm-history-heading { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.dm-history-heading h3 { color: #fff; font-size: 1.05rem; font-weight: 800; margin: 0; }
.dm-history-heading h3 i { color: var(--dm-yellow); margin-right: 7px; }
.dm-history-heading > span { color: var(--dm-muted); font-size: .75rem; }
.dm-history-match { margin-bottom: 20px; }
.dm-history-match h4 { color: var(--dm-muted); font-size: .8rem; font-weight: 700; margin-bottom: 9px; }
.dm-history-item { padding: 13px; margin-bottom: 8px; border-radius: 13px; background: rgba(255,255,255,.045); border: 1px solid rgba(177,145,222,.12); }
.dm-history-item-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; color: #fff; font-size: .82rem; }
.dm-history-item-top > span { font-size: .7rem; font-weight: 750; }
.dm-history-match-yes { color: var(--dm-green); }
.dm-history-match-no { color: #B7A9CC; }
.dm-history-words { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.dm-history-words small { display: block; color: #9F95B4; font-size: .7rem; }
.dm-history-words strong { display: block; color: #fff; overflow-wrap: anywhere; margin-top: 3px; }
.dm-footer { display: flex; justify-content: space-between; gap: 12px; color: #827795; font-size: .72rem; padding: 18px 5px 0; }
.dm-connection { display: inline-flex; align-items: center; gap: 7px; }

@media (max-width: 575.98px) {
    .dm-page { padding: 28px 12px 18px; }
    .dm-brand { margin-bottom: 22px; }
    .dm-logo { transform: scale(.88); margin-bottom: 4px; }
    .dm-panel { border-radius: 22px; padding: 24px 18px; }
    .dm-join-control { flex-direction: column; }
    .dm-button-secondary { width: 100%; }
    .dm-players { grid-template-columns: 1fr 24px 1fr; gap: 5px; }
    .dm-player-card { padding: 14px 5px; }
    .dm-player-avatar { width: 42px; height: 42px; }
    .dm-footer { flex-direction: column; align-items: center; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}


/* Lobby: sala de jogo e estados dos participantes */
.dm-lobby {
    margin-top: 30px;
    animation: dm-lobby-reveal .42s ease both;
}
.dm-lobby-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}
.dm-lobby-heading h2 {
    color: #fff;
    font-size: clamp(1.35rem, 4vw, 1.7rem);
    font-weight: 850;
    letter-spacing: -.6px;
    margin: 7px 0 4px;
}
.dm-lobby-heading p {
    color: var(--dm-muted);
    font-size: .85rem;
    margin: 0;
}
.dm-lobby-count {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 13px;
    color: var(--dm-yellow);
    background: rgba(255,201,40,.09);
    border: 1px solid rgba(255,201,40,.2);
    border-radius: 13px;
}
.dm-lobby-count strong { font-size: .9rem; }
.dm-players {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 42px minmax(0, 1fr);
    align-items: stretch;
    gap: 10px;
    margin: 22px 0;
}
.dm-player-card {
    min-width: 0;
    min-height: 190px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 16px 10px 14px;
    overflow: hidden;
    border-radius: 19px;
    background: linear-gradient(150deg, rgba(255,255,255,.065), rgba(255,255,255,.025));
    border: 1px solid rgba(177,145,222,.2);
    transition: border-color .25s ease, background .25s ease, transform .25s ease, box-shadow .25s ease;
}
.dm-player-card.is-connected {
    border-color: rgba(163,75,250,.55);
    background: linear-gradient(150deg, rgba(139,47,232,.16), rgba(255,255,255,.035));
}
.dm-player-card.is-ready {
    border-color: rgba(69,214,160,.55);
    background: linear-gradient(150deg, rgba(69,214,160,.12), rgba(255,255,255,.035));
    box-shadow: inset 0 0 24px rgba(69,214,160,.045);
}
.dm-player-card.is-waiting { opacity: .78; }
.dm-player-card-top {
    position: absolute;
    top: 12px;
    left: 12px;
    right: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 5px;
}
.dm-player-number {
    color: #9F95B4;
    font-size: .58rem;
    font-weight: 850;
    letter-spacing: 1px;
}
.dm-you-tag {
    color: var(--dm-yellow);
    background: rgba(255,201,40,.12);
    border: 1px solid rgba(255,201,40,.2);
    border-radius: 999px;
    padding: 3px 7px;
    font-size: .55rem;
    font-weight: 850;
    letter-spacing: .7px;
}
.dm-player-avatar {
    width: 58px;
    height: 58px;
    position: relative;
    display: grid;
    place-items: center;
    margin: 12px auto 10px;
    border-radius: 19px;
    color: #F9D66C;
    background: rgba(255,201,40,.13);
    font-size: 1.8rem;
}
.dm-player-avatar-alt {
    color: #D2A4FF;
    background: rgba(163,75,250,.18);
}
.dm-avatar-status {
    position: absolute;
    width: 12px;
    height: 12px;
    right: -3px;
    bottom: -3px;
    border-radius: 50%;
    background: #756B86;
    border: 2px solid #21183D;
}
.dm-player-card.is-connected .dm-avatar-status {
    background: var(--dm-purple-light);
    box-shadow: 0 0 10px rgba(163,75,250,.65);
}
.dm-player-card.is-ready .dm-avatar-status {
    background: var(--dm-green);
    box-shadow: 0 0 10px rgba(69,214,160,.65);
}
.dm-player-card > strong {
    display: block;
    max-width: 100%;
    color: #fff;
    font-size: .9rem;
    text-align: center;
    overflow-wrap: anywhere;
}
.dm-player-state {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 7px !important;
    color: #A99DBF !important;
    font-size: .69rem !important;
}
.dm-player-card.is-connected .dm-player-state { color: #D4B7F7 !important; }
.dm-player-card.is-ready .dm-player-state { color: var(--dm-green) !important; }
.dm-player-connector {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 7px;
    color: var(--dm-yellow);
    font-size: 1.2rem;
}
.dm-connector-line {
    width: 1px;
    flex: 1;
    min-height: 12px;
    background: linear-gradient(180deg, transparent, rgba(255,201,40,.35), transparent);
}
.dm-player-card-second.is-connected {
    animation: dm-player-join .55s cubic-bezier(.2,.8,.2,1) both;
}
.dm-lobby-waiting {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 15px;
    margin-top: 18px;
    border-radius: 15px;
    color: #E8DDF8;
    background: rgba(163,75,250,.09);
    border: 1px solid rgba(163,75,250,.2);
}
.dm-waiting-icon {
    width: 42px;
    height: 42px;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    border-radius: 13px;
    color: var(--dm-yellow);
    background: rgba(255,201,40,.12);
    font-size: 1.15rem;
}
.dm-lobby-waiting > div:nth-child(2) { flex: 1; min-width: 0; }
.dm-lobby-waiting strong { display: block; color: #fff; font-size: .87rem; }
.dm-lobby-waiting p { color: var(--dm-muted); font-size: .76rem; margin: 3px 0 0; overflow-wrap: anywhere; }
.dm-lobby-waiting b { color: var(--dm-yellow); letter-spacing: 1px; }
.dm-lobby-waiting .spinner-border { color: var(--dm-yellow); flex: 0 0 auto; }
.dm-ready-area {
    margin-top: 20px;
    padding: 18px;
    border-radius: 17px;
    background: rgba(255,255,255,.035);
    border: 1px solid rgba(177,145,222,.16);
    animation: dm-lobby-reveal .35s ease both;
}
.dm-ready-progress { margin-bottom: 17px; }
.dm-ready-progress-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-bottom: 9px;
    color: var(--dm-muted);
    font-size: .75rem;
}
.dm-ready-progress-label strong { color: #fff; white-space: nowrap; }
.dm-ready-track {
    height: 7px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255,255,255,.09);
}
.dm-ready-track span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #8B2FE8, #45D6A0);
    box-shadow: 0 0 14px rgba(69,214,160,.3);
    transition: width .35s ease;
}
.dm-ready-confirmed {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 12px 13px;
    margin-bottom: 14px;
    color: var(--dm-green);
    border-radius: 12px;
    background: rgba(69,214,160,.09);
    border: 1px solid rgba(69,214,160,.18);
    animation: dm-lobby-reveal .3s ease both;
}
.dm-ready-confirmed > i { font-size: 1.25rem; }
.dm-ready-confirmed strong, .dm-ready-confirmed span { display: block; }
.dm-ready-confirmed strong { color: #DFFFF2; font-size: .82rem; }
.dm-ready-confirmed span { color: #A9DCC8; font-size: .72rem; margin-top: 2px; }
.dm-ready-button { min-height: 58px; font-size: 1.03rem; }

@keyframes dm-player-join {
    0% { opacity: .45; transform: translateY(12px) scale(.96); }
    65% { transform: translateY(-3px) scale(1.015); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes dm-lobby-reveal {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 575.98px) {
    .dm-lobby { margin-top: 24px; }
    .dm-lobby-heading { align-items: flex-start; }
    .dm-lobby-heading p { max-width: 240px; }
    .dm-players { grid-template-columns: minmax(0, 1fr) 24px minmax(0, 1fr); gap: 5px; }
    .dm-player-card { min-height: 178px; padding: 15px 5px 12px; }
    .dm-player-card-top { left: 7px; right: 7px; top: 10px; }
    .dm-player-number { font-size: .51rem; letter-spacing: .5px; }
    .dm-you-tag { padding: 3px 5px; font-size: .49rem; }
    .dm-player-avatar { width: 48px; height: 48px; border-radius: 16px; font-size: 1.55rem; }
    .dm-player-card > strong { font-size: .78rem; }
    .dm-player-state { font-size: .62rem !important; }
    .dm-ready-area { padding: 14px; }
    .dm-ready-progress-label { font-size: .69rem; }
}


/* Código da sala: destaque enquanto aguarda, compacto após a entrada do segundo jogador */
.dm-room-topline {
    justify-content: space-between;
    margin-bottom: 22px;
}
.dm-room-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.dm-room-topline-right {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    margin-left: auto;
}
.dm-room-round { margin-left: 0; }
.dm-room-code-featured {
    text-align: center;
    padding: 22px 18px 20px;
    margin: 0 auto 26px;
    max-width: 460px;
    border-radius: 20px;
    border: 1px solid rgba(255,201,40,.2);
    background:
        radial-gradient(ellipse at 50% 0%, rgba(255,201,40,.09), transparent 72%),
        rgba(255,255,255,.025);
    animation: dm-code-expand .35s ease both;
}
.dm-room-code-featured-value {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 14px;
    margin: 8px 0 5px;
}
.dm-room-code-featured-value > strong {
    color: var(--dm-yellow);
    font-size: clamp(2.25rem, 8vw, 3.15rem);
    line-height: 1.1;
    font-weight: 900;
    letter-spacing: .2em;
    overflow-wrap: anywhere;
}
.dm-room-code-featured > p {
    color: var(--dm-muted);
    margin: 8px 0 2px;
    font-size: .85rem;
}
.dm-room-code-featured > small {
    color: #9F95B4;
    font-size: .73rem;
}
.dm-room-code-compact {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 5px 7px 5px 10px;
    border-radius: 10px;
    color: var(--dm-muted);
    background: rgba(255,255,255,.055);
    border: 1px solid rgba(177,145,222,.17);
    font-size: .65rem;
    letter-spacing: .6px;
    animation: dm-code-compact .35s ease both;
}
.dm-room-code-compact > strong {
    color: #fff;
    font-size: .72rem;
    letter-spacing: 1px;
}
.dm-copy-code-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 32px;
    min-height: 30px;
    padding: 5px 8px;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 8px;
    color: #D8C9ED;
    background: rgba(255,255,255,.07);
    font-size: .72rem;
    transition: color .18s ease, background .18s ease, border-color .18s ease;
}
.dm-copy-code-button:hover {
    color: var(--dm-yellow);
    background: rgba(255,201,40,.1);
    border-color: rgba(255,201,40,.3);
}
.dm-copy-code-featured {
    min-height: 38px;
    padding: 7px 11px;
    color: var(--dm-yellow);
    border-color: rgba(255,201,40,.24);
    background: rgba(255,201,40,.08);
    font-weight: 700;
}
.dm-copy-code-featured:hover {
    color: #FFE28A;
    background: rgba(255,201,40,.14);
}
@keyframes dm-code-expand {
    from { opacity: .5; transform: translateY(-7px) scale(.985); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes dm-code-compact {
    from { opacity: .5; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
}
@media (max-width: 575.98px) {
    .dm-room-topline { align-items: flex-start; }
    .dm-room-topline-right { gap: 7px; flex-wrap: wrap; justify-content: flex-end; }
    .dm-room-code-featured { padding: 19px 12px 17px; margin-bottom: 22px; }
    .dm-room-code-featured-value { gap: 9px; }
    .dm-room-code-featured-value > strong { letter-spacing: .13em; font-size: clamp(1.9rem, 8vw, 2.5rem); }
    .dm-room-code-compact { gap: 5px; padding-left: 7px; }
}


/* Pistas da partida: palavras recentes em primeiro plano */
.dm-clues-panel {
    margin: 28px 0 24px;
    padding: 19px;
    border-radius: 20px;
    border: 1px solid rgba(255,201,40,.22);
    background:
        radial-gradient(ellipse at 0% 0%, rgba(255,201,40,.075), transparent 55%),
        linear-gradient(145deg, rgba(39,28,65,.96), rgba(27,19,49,.96));
    box-shadow: 0 12px 30px rgba(0,0,0,.13), inset 0 1px 0 rgba(255,255,255,.035);
    animation: dm-lobby-reveal .35s ease both;
}
.dm-clues-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}
.dm-clues-title {
    display: flex;
    align-items: center;
    gap: 11px;
    min-width: 0;
}
.dm-clues-icon {
    width: 42px;
    height: 42px;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    border-radius: 13px;
    color: var(--dm-yellow);
    background: rgba(255,201,40,.12);
    border: 1px solid rgba(255,201,40,.18);
    font-size: 1.1rem;
}
.dm-clues-title h3 {
    margin: 0;
    color: #fff;
    font-size: 1rem;
    font-weight: 850;
    letter-spacing: -.2px;
}
.dm-clues-title p {
    margin: 3px 0 0;
    color: var(--dm-muted);
    font-size: .73rem;
}
.dm-clues-counter {
    flex: 0 0 auto;
    padding: 5px 9px;
    border-radius: 999px;
    color: var(--dm-yellow);
    background: rgba(255,201,40,.09);
    border: 1px solid rgba(255,201,40,.16);
    font-size: .68rem;
    font-weight: 800;
}
.dm-clues-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.dm-clue-round {
    padding: 13px;
    border-radius: 14px;
    background: rgba(9,6,23,.3);
    border: 1px solid rgba(177,145,222,.14);
    transition: border-color .2s ease, background .2s ease;
}
.dm-clue-round:first-child {
    border-color: rgba(255,201,40,.3);
    background: rgba(255,201,40,.045);
}
.dm-clue-round-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 11px;
}
.dm-clue-round-number {
    color: #B7A9CC;
    font-size: .65rem;
    font-weight: 850;
    letter-spacing: 1px;
}
.dm-clue-result {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: .66rem;
    font-weight: 800;
}
.dm-clue-result.is-match { color: var(--dm-green); }
.dm-clue-result.is-different { color: #C3B5D8; }
.dm-clue-words {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 9px;
}
.dm-clue-word {
    min-width: 0;
    padding: 10px 11px;
    border-radius: 11px;
    background: rgba(255,255,255,.055);
    border: 1px solid rgba(255,255,255,.055);
}
.dm-clue-word-one { border-left: 3px solid #FFC928; }
.dm-clue-word-two { border-left: 3px solid #A34BFA; }
.dm-clue-word small {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #A99DBF;
    font-size: .65rem;
    margin-bottom: 5px;
    overflow-wrap: anywhere;
}
.dm-clue-word strong {
    display: block;
    color: #fff;
    font-size: clamp(.9rem, 2.5vw, 1.08rem);
    font-weight: 850;
    line-height: 1.25;
    overflow-wrap: anywhere;
}
.dm-clues-empty {
    min-height: 112px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 18px 12px;
    border: 1px dashed rgba(177,145,222,.22);
    border-radius: 14px;
    color: #B8A9CC;
    text-align: center;
}
.dm-clues-empty > i {
    color: var(--dm-yellow);
    font-size: 1.25rem;
    margin-bottom: 2px;
}
.dm-clues-empty span { color: #E9E0F5; font-size: .8rem; font-weight: 700; }
.dm-clues-empty small { color: #9F95B4; font-size: .7rem; }
.dm-full-history {
    margin-top: 14px;
    border-top: 1px solid rgba(190,166,222,.13);
}
.dm-full-history summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 13px 2px 1px;
    color: #C8B9DD;
    font-size: .75rem;
    font-weight: 750;
    cursor: pointer;
    list-style: none;
}
.dm-full-history summary::-webkit-details-marker { display: none; }
.dm-full-history summary > span { display: inline-flex; align-items: center; gap: 8px; }
.dm-full-history summary > span i { color: var(--dm-yellow); }
.dm-history-chevron { transition: transform .2s ease; }
.dm-full-history[open] .dm-history-chevron { transform: rotate(180deg); }
.dm-full-history-content { padding-top: 14px; }
.dm-full-history-content .dm-history-match { margin-bottom: 16px; }
.dm-full-history-content .dm-history-match h4 { color: #B7A9CC; }
.dm-full-history-content .dm-history-item { background: rgba(255,255,255,.035); }

@media (max-width: 575.98px) {
    .dm-clues-panel { padding: 15px 12px; margin: 23px 0 20px; border-radius: 17px; }
    .dm-clues-heading { align-items: flex-start; }
    .dm-clues-title { gap: 9px; }
    .dm-clues-icon { width: 38px; height: 38px; border-radius: 11px; }
    .dm-clues-title h3 { font-size: .92rem; }
    .dm-clues-title p { max-width: 215px; font-size: .68rem; }
    .dm-clue-round { padding: 11px 9px; }
    .dm-clue-words { gap: 7px; }
    .dm-clue-word { padding: 9px 8px; }
    .dm-clue-word small { font-size: .59rem; }
    .dm-clue-word strong { font-size: .88rem; }
}


/* Identidade do PairGames: descrição das opções disponíveis no lobby */
.dm-game-option-description {
    margin: 0 0 16px;
    padding: 14px 16px;
    border: 1px solid rgba(177,145,222,.17);
    border-radius: 14px;
    background: rgba(255,255,255,.035);
    text-align: center;
}
.dm-game-option-description strong {
    display: block;
    color: var(--dm-yellow);
    font-size: 1rem;
    font-weight: 850;
}
.dm-game-option-description p {
    margin: 5px 0 0;
    color: var(--dm-muted);
    font-size: .8rem;
}
