:root {
    --bg: #f4f5f7;
    --surface: #ffffff;
    --surface-soft: #f8fafc;
    --text: #172033;
    --muted: #667085;
    --line: #d8dee8;
    --primary: #2f5bea;
    --primary-dark: #2348c5;
    --danger: #c93642;
    --danger-dark: #a92430;
    --success: #18794e;
    --warning-bg: #fff8e8;
    --shadow: 0 12px 32px rgba(26, 34, 56, .08);
    --radius: 16px;
}

* { box-sizing: border-box; }

html { color-scheme: light; }

body {
    margin: 0;
    min-height: 100vh;
    background: var(--bg);
    color: var(--text);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button, input, select { font: inherit; }

h1, h2, h3, p { margin-top: 0; }

h1 { margin-bottom: 0; font-size: clamp(1.5rem, 3vw, 2.1rem); }
h2 { margin-bottom: .8rem; font-size: 1.25rem; }

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem max(1rem, calc((100vw - 1360px) / 2));
    background: #101828;
    color: #fff;
    box-shadow: 0 4px 18px rgba(0, 0, 0, .18);
}

.topbar .eyebrow { color: #b8c4dc; }
.user-area { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: .65rem; font-size: .92rem; }
.user-area form { margin: 0; }

.user-color-dot,
.turn-color {
    flex: 0 0 auto;
    width: 13px;
    height: 13px;
    border: 2px solid rgba(17, 24, 39, .45);
    border-radius: 999px;
    background: var(--user-color, var(--turn-color, #64748b));
    box-shadow: 0 0 0 1px rgba(255, 255, 255, .55);
}

.page-shell { width: min(1360px, calc(100% - 2rem)); margin: 1.5rem auto 3rem; }

.layout-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 310px;
    gap: 1.25rem;
    align-items: start;
}

.main-column, .side-column { display: grid; gap: 1.25rem; }

.card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.25rem;
    box-shadow: var(--shadow);
}

.eyebrow {
    margin-bottom: .28rem;
    color: var(--muted);
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .11em;
    text-transform: uppercase;
}

.muted { color: var(--muted); }

.status-grid {
    display: grid;
    grid-template-columns: 1fr 2fr 1.25fr 1fr;
    gap: .9rem;
    margin-bottom: 1.25rem;
}

.status-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 84px;
    padding: .85rem 1.1rem;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 13px;
    box-shadow: var(--shadow);
}

.status-card span { color: var(--muted); font-size: .78rem; font-weight: 700; text-transform: uppercase; }
.status-card strong { margin-top: .2rem; font-size: 1.55rem; }

.map-card { padding: .7rem; overflow: visible; }

.map-stage {
    position: relative;
    width: 100%;
    isolation: isolate;
}

.map-stage > img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 11px;
    background: #0b2940;
}

.army-marker {
    position: absolute;
    z-index: 2;
    display: grid;
    place-items: center;
    width: clamp(23px, 2.5vw, 35px);
    aspect-ratio: 1;
    transform: translate(-50%, -50%);
    border: 3px solid #fff;
    border-radius: 999px;
    background: var(--marker-color);
    color: var(--marker-text);
    box-shadow:
        0 0 0 2px rgba(15, 23, 42, .8),
        0 4px 10px rgba(0, 0, 0, .48);
    cursor: help;
    font-size: clamp(.72rem, 1.2vw, 1rem);
    font-weight: 950;
    line-height: 1;
    text-shadow: 0 1px 2px rgba(0, 0, 0, .45);
}

.army-marker.is-mine {
    box-shadow:
        0 0 0 2px rgba(15, 23, 42, .9),
        0 0 0 5px rgba(255, 255, 255, .72),
        0 4px 10px rgba(0, 0, 0, .5);
}

.army-marker:focus { outline: 3px solid #60a5fa; outline-offset: 4px; }

.marker-tooltip {
    position: absolute;
    left: 50%;
    bottom: calc(100% + 10px);
    z-index: 20;
    display: none;
    width: max-content;
    max-width: 220px;
    padding: .45rem .58rem;
    transform: translateX(-50%);
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 8px;
    background: rgba(15, 23, 42, .96);
    color: #fff;
    box-shadow: 0 8px 20px rgba(0, 0, 0, .35);
    text-align: left;
    text-shadow: none;
    pointer-events: none;
}

.marker-tooltip strong,
.marker-tooltip small { display: block; }
.marker-tooltip strong { margin-bottom: .16rem; font-size: .78rem; }
.marker-tooltip small { color: #cbd5e1; font-size: .7rem; font-weight: 600; }

.army-marker:hover .marker-tooltip,
.army-marker:focus .marker-tooltip { display: block; }

.map-legend {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .65rem;
    padding: .8rem .25rem .1rem;
}

.legend-player {
    display: flex;
    align-items: center;
    min-width: 0;
    gap: .55rem;
    padding: .48rem .58rem;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--surface-soft);
}

.legend-swatch {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 31px;
    height: 31px;
    border: 2px solid #fff;
    border-radius: 999px;
    background: var(--legend-color);
    color: var(--legend-text);
    box-shadow: 0 0 0 1px rgba(15, 23, 42, .65);
    font-size: .75rem;
    font-weight: 900;
}

.legend-player div { min-width: 0; }
.legend-player strong,
.legend-player small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.legend-player strong { font-size: .82rem; }
.legend-player small { margin-top: .08rem; color: var(--muted); font-size: .68rem; }

.card-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.card-heading h2 { margin-bottom: 0; }
.simple-heading { align-items: center; margin-bottom: 1.2rem; }
.single-die-note { padding: .45rem .75rem; border: 1px solid var(--line); border-radius: 999px; font-weight: 800; }

.die-result {
    display: flex;
    align-items: center;
    gap: .5rem;
    min-width: 108px;
    padding: .5rem .7rem;
    border: 2px solid #111827;
    border-radius: 13px;
    background: #fff;
}

.die-result span { font-size: 2.5rem; line-height: 1; }
.die-result strong { font-size: 1.65rem; }

.battle-line {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: .8rem;
    margin: 1.25rem 0;
    padding: 1rem;
    background: var(--surface-soft);
    border: 1px solid var(--line);
    border-radius: 12px;
}

.battle-line > div:last-child { text-align: right; }
.battle-line small { display: block; margin-top: .2rem; color: var(--muted); }
.battle-label { display: block; margin-bottom: .15rem; color: var(--muted); font-size: .74rem; font-weight: 800; text-transform: uppercase; }
.battle-arrow { font-size: 1.8rem; font-weight: 900; }

.defense-callout {
    padding: 1rem;
    border: 1px solid #f0b8bd;
    border-radius: 12px;
    background: #fff4f5;
}
.defense-callout p { margin-bottom: .8rem; }
.waiting-message { margin-bottom: 0; padding: 1rem; background: var(--warning-bg); border-radius: 12px; }

label { display: block; margin: 0 0 .4rem; font-weight: 750; }
input, select {
    width: 100%;
    min-height: 46px;
    padding: .65rem .75rem;
    border: 1px solid #b9c2d0;
    border-radius: 9px;
    background: #fff;
    color: var(--text);
}

select:disabled {
    background: #f1f5f9;
    color: #94a3b8;
    cursor: not-allowed;
}

input:focus, select:focus { outline: 3px solid rgba(47, 91, 234, .17); border-color: var(--primary); }

.attack-form { display: grid; gap: 1rem; }
.form-two-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

.rules-inline { display: flex; flex-wrap: wrap; gap: .45rem; }
.rules-inline span { padding: .35rem .62rem; border-radius: 999px; background: #eef2ff; color: #3446a8; font-size: .78rem; font-weight: 700; }

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: .65rem 1rem;
    border: 0;
    border-radius: 9px;
    cursor: pointer;
    font-weight: 800;
    text-decoration: none;
    transition: transform .08s ease, background .15s ease;
}
.button:hover { transform: translateY(-1px); }
.button:active { transform: translateY(0); }
.button-primary { background: var(--primary); color: #fff; }
.button-primary:hover { background: var(--primary-dark); }
.button-danger { background: var(--danger); color: #fff; }
.button-danger:hover { background: var(--danger-dark); }
.button-skip { background: #e5e7eb; color: #374151; border: 1px solid #c7cdd6; }
.button-skip:hover { background: #d6dae1; }
.button-ghost { background: rgba(255, 255, 255, .11); color: #fff; border: 1px solid rgba(255, 255, 255, .22); }
.button-small { min-height: 36px; padding: .4rem .7rem; font-size: .86rem; }
.button-full { width: 100%; }

.skip-turn-form { margin-top: .85rem; }

.flash { margin-bottom: 1rem; padding: .8rem 1rem; border-radius: 10px; font-weight: 650; }
.flash-success { background: #eaf8f1; color: var(--success); border: 1px solid #a9ddc5; }
.flash-error { background: #fff0f1; color: #9f2330; border: 1px solid #efb7bd; }
.flash-info { background: #eef4ff; color: #294ca8; border: 1px solid #b6c9f5; }

.waiting-turn-card { text-align: center; padding: 2rem 1.25rem; }
.waiting-turn-card p { margin-bottom: 0; color: var(--muted); }
.waiting-die { font-size: 4rem; line-height: 1; margin-bottom: .7rem; }

.section-title-row { display: flex; justify-content: space-between; gap: 1rem; align-items: flex-start; margin-bottom: .8rem; }
.section-title-row h2 { margin-bottom: 0; }
.history-count { color: var(--muted); font-size: .85rem; white-space: nowrap; }
.empty-state { margin: 0; padding: 1.2rem; text-align: center; color: var(--muted); background: var(--surface-soft); border-radius: 10px; }

.history-list { display: grid; gap: .8rem; }
.history-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 1rem;
    align-items: center;
    padding: 1rem;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--surface-soft);
}
.history-meta { margin-bottom: .3rem; color: var(--muted); font-size: .75rem; }
.history-item h3 { margin-bottom: .4rem; font-size: 1rem; }
.history-item h3 span { color: var(--muted); font-weight: 500; }
.winner-line { font-size: .86rem; font-weight: 800; }
.attacker-win { color: #8f2b19; }
.defender-win { color: var(--success); }

.map-event {
    margin-top: .55rem;
    padding: .5rem .62rem;
    border-left: 4px solid #64748b;
    border-radius: 6px;
    background: #fff;
    color: #475569;
    font-size: .8rem;
}

.conquest-event {
    border-left-color: #b7791f;
    background: #fff9e8;
    color: #744210;
    font-weight: 700;
}

.dice-comparison { display: flex; align-items: center; gap: .65rem; }
.dice-comparison > div { min-width: 62px; padding: .45rem; text-align: center; background: #fff; border: 1px solid var(--line); border-radius: 9px; }
.dice-comparison span { display: block; color: var(--muted); font-size: .64rem; font-weight: 900; }
.dice-comparison strong { display: block; margin-top: .15rem; font-size: 1.1rem; white-space: nowrap; }

.turn-order { margin: .8rem 0 0; padding-left: 1.4rem; }
.turn-order li {
    display: flex;
    align-items: center;
    gap: .38rem;
    margin: .38rem 0;
    padding: .42rem .5rem;
    border-radius: 8px;
}
.turn-order li.is-current { background: #eef2ff; color: #273caa; font-weight: 850; }
.turn-order li.is-me > span:not(.turn-color) { text-decoration: underline; text-decoration-thickness: 2px; }
.turn-order em, .turn-order small { margin-left: .05rem; color: var(--muted); font-size: .72rem; font-style: normal; }
.turn-color { --user-color: var(--turn-color); width: 12px; height: 12px; box-shadow: none; }

.compact-rules ul { margin: .7rem 0 0; padding-left: 1.15rem; color: var(--muted); }
.compact-rules li { margin: .48rem 0; }

.login-page { display: grid; place-items: center; padding: 1rem; background: radial-gradient(circle at top, #e7ecff 0, var(--bg) 48%); }
.login-shell { width: min(430px, 100%); }
.login-card { padding: 1.6rem; }
.login-card form { display: grid; gap: .75rem; }
.login-card .button { margin-top: .45rem; }
.brand-mark { font-size: 3.2rem; line-height: 1; margin-bottom: .6rem; }

@media (max-width: 1050px) {
    .layout-grid { grid-template-columns: 1fr; }
    .side-column { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
    .map-legend { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 650px) {
    .topbar { align-items: flex-start; flex-direction: column; }
    .user-area { width: 100%; justify-content: space-between; }
    .status-grid { grid-template-columns: 1fr 1fr; }
    .status-card-wide { grid-column: 1 / -1; grid-row: 1; }
    .form-two-columns { grid-template-columns: 1fr; }
    .side-column { grid-template-columns: 1fr; }
    .history-item { grid-template-columns: 1fr; }
    .dice-comparison { justify-content: flex-start; }
    .card-heading { align-items: stretch; }
    .die-result { min-width: auto; }
    .map-card { padding: .35rem; }
    .map-legend { gap: .35rem; padding-top: .5rem; }
    .legend-player { padding: .38rem .4rem; gap: .42rem; }
    .legend-swatch { width: 27px; height: 27px; }
}


/* Fasi del turno, rinforzi, spostamento e Gettone Meme */
.phase-value { font-size: 1.2rem !important; }

.meme-status {
    padding: .28rem .5rem;
    border: 1px solid rgba(255, 255, 255, .24);
    border-radius: 999px;
    font-size: .72rem;
    font-weight: 800;
}
.meme-status.is-available { background: rgba(250, 204, 21, .18); color: #fde68a; }
.meme-status.is-used { opacity: .58; text-decoration: line-through; }

.game-over-banner {
    margin-bottom: 1rem;
    padding: .9rem 1rem;
    border: 1px solid #e5bd54;
    border-radius: 12px;
    background: #fff8d8;
    color: #714d00;
    box-shadow: var(--shadow);
}

.pending-dice { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .6rem; }
.die-result { position: relative; flex-wrap: wrap; }
.die-result > small { color: var(--muted); font-size: .62rem; font-weight: 950; }
.die-result > em {
    flex-basis: 100%;
    color: #8a5a00;
    font-size: .64rem;
    font-style: normal;
    font-weight: 800;
    text-align: center;
}
.defense-die { border-color: var(--danger); }

.meme-callout {
    padding: 1rem;
    border: 1px solid #e6bf54;
    border-radius: 12px;
    background: #fff9dc;
}
.meme-callout p { margin-bottom: .8rem; }
.defense-meme-callout { border-color: #e5a9af; background: #fff3f4; }
.action-pair { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; }
.action-pair form { margin: 0; }
.button-meme { background: #f4c430; color: #312200; border: 1px solid #c99a00; }
.button-meme:hover { background: #e2b21c; }

.reinforcement-counter {
    display: grid;
    min-width: 105px;
    padding: .55rem .8rem;
    border: 1px solid #a9c5ff;
    border-radius: 12px;
    background: #eef4ff;
    text-align: center;
}
.reinforcement-counter strong { color: var(--primary); font-size: 1.8rem; line-height: 1; }
.reinforcement-counter span { margin-top: .2rem; color: var(--muted); font-size: .68rem; font-weight: 800; text-transform: uppercase; }
.reinforcement-breakdown {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: .65rem;
    margin-bottom: 1rem;
}
.reinforcement-breakdown > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .5rem;
    padding: .7rem;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--surface-soft);
}
.reinforcement-breakdown span { color: var(--muted); font-size: .75rem; font-weight: 700; }
.reinforcement-breakdown strong { font-size: 1.08rem; }
.controlled-continents { display: flex; flex-wrap: wrap; gap: .45rem; margin-bottom: 1rem; }
.controlled-continents > strong { width: 100%; font-size: .82rem; }
.controlled-continents span { padding: .32rem .55rem; border-radius: 999px; background: #e9f8ef; color: var(--success); font-size: .76rem; font-weight: 800; }
.reinforcement-form, .fortification-form { display: grid; gap: 1rem; }

.continent-list { display: grid; gap: .48rem; }
.continent-list > div { display: flex; justify-content: space-between; gap: .7rem; padding: .52rem .6rem; border-radius: 8px; background: var(--surface-soft); }
.continent-list span { font-size: .84rem; }
.continent-list strong { color: var(--primary); }

.legend-player.is-eliminated,
.turn-order li.is-eliminated { opacity: .38; filter: grayscale(1); }
.turn-order li.is-eliminated > span:not(.turn-color):not(.mini-meme) { text-decoration: line-through; }
.mini-meme {
    display: inline-grid;
    place-items: center;
    margin-left: auto;
    width: 24px;
    height: 24px;
    border: 1px solid #d4a800;
    border-radius: 999px;
    background: #ffe36e;
    color: #4c3900;
    font-size: .62rem;
    font-weight: 950;
}
.mini-meme.is-used { border-color: #cbd5e1; background: #e2e8f0; color: #64748b; text-decoration: line-through; }

.dice-comparison small { display: block; margin-top: .25rem; color: #8a5a00; font-size: .62rem; line-height: 1.25; }

.elimination-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: grid;
    place-items: center;
    padding: 1rem;
    background: rgba(15, 23, 42, .78);
    backdrop-filter: blur(5px) grayscale(.75);
}
.elimination-modal {
    width: min(430px, 100%);
    padding: 1.7rem;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 24px 70px rgba(0, 0, 0, .42);
    text-align: center;
}
.elimination-modal h2 { margin-bottom: .55rem; font-size: 2rem; }
.elimination-modal p { margin-bottom: 1.2rem; color: var(--muted); }
.elimination-icon { margin-bottom: .35rem; font-size: 4rem; line-height: 1; }

@media (max-width: 900px) {
    .status-grid { grid-template-columns: 1fr 1fr; }
    .status-card-wide { grid-column: auto; grid-row: auto; }
}

@media (max-width: 650px) {
    .action-pair,
    .reinforcement-breakdown { grid-template-columns: 1fr; }
    .pending-dice { justify-content: flex-start; }
    .meme-status { order: 4; }
}

/* Versione 1.6: Master, chat partecipanti e modalità ospite */
button, input, select, textarea { font: inherit; }
textarea { resize: vertical; }

.button-guest {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #475467;
    color: #fff;
    text-decoration: none;
}
.button-guest:hover { background: #344054; }
.login-divider {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 1.15rem 0;
    color: var(--muted);
    font-size: .75rem;
    text-transform: uppercase;
}
.login-divider::before,
.login-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--line);
}
.login-divider span { padding: 0 .7rem; }
.login-note { margin: .65rem 0 0; color: var(--muted); font-size: .78rem; text-align: center; }
.text-link { display: block; margin-top: 1rem; color: var(--primary); text-align: center; }

.user-color-dot.is-master { box-shadow: 0 0 0 2px rgba(245, 158, 11, .35); }
.master-actor-form {
    display: flex;
    align-items: center;
    gap: .42rem;
    padding: .3rem .45rem;
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 9px;
    background: rgba(255, 255, 255, .08);
}
.master-actor-form label { color: #dbe4f3; font-size: .72rem; font-weight: 800; text-transform: uppercase; }
.master-actor-form select {
    min-height: 32px;
    padding: .25rem 1.8rem .25rem .45rem;
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 7px;
    background: #fff;
    color: #101828;
    font-size: .82rem;
    font-weight: 800;
}
.master-banner {
    margin-bottom: 1rem;
    padding: .8rem 1rem;
    border: 1px solid #f7c65c;
    border-radius: 12px;
    background: #fff8db;
    color: #6b4b00;
    box-shadow: var(--shadow);
}

.chat-card { min-width: 0; }
.chat-messages {
    display: grid;
    gap: .55rem;
    max-height: 330px;
    overflow-y: auto;
    margin-bottom: .85rem;
    padding-right: .2rem;
    scrollbar-width: thin;
}
.chat-message {
    padding: .62rem .7rem;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--surface-soft);
}
.chat-message-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: .6rem;
    margin-bottom: .28rem;
}
.chat-message-head strong { overflow: hidden; text-overflow: ellipsis; font-size: .79rem; }
.chat-message-head time { flex: 0 0 auto; color: var(--muted); font-size: .61rem; }
.chat-message p { margin: 0; overflow-wrap: anywhere; font-size: .82rem; line-height: 1.4; }
.chat-empty,
.chat-readonly { color: var(--muted); font-size: .82rem; }
.chat-readonly { margin: .7rem 0 0; }
.chat-form { display: grid; gap: .55rem; }
.chat-form label { font-size: .75rem; font-weight: 800; }
.chat-form textarea {
    width: 100%;
    min-height: 76px;
    padding: .65rem .72rem;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: #fff;
    color: var(--text);
}
.chat-form textarea:focus { outline: 3px solid rgba(47, 91, 234, .16); border-color: var(--primary); }
.chat-form-meta { display: flex; justify-content: space-between; gap: .5rem; color: var(--muted); font-size: .67rem; }

.guest-badge {
    padding: .28rem .52rem;
    border: 1px solid rgba(255,255,255,.24);
    border-radius: 999px;
    background: rgba(255,255,255,.1);
    font-size: .72rem;
    font-weight: 900;
    text-transform: uppercase;
}
.guest-shell { width: min(1580px, calc(100% - 2rem)); }
.guest-status-grid { grid-template-columns: .75fr 1.7fr 1fr .9fr; }
.guest-map-card { margin-bottom: 1.25rem; }
.guest-content-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 1.25rem;
    align-items: start;
}
.guest-main-column,
.guest-chat-column { display: grid; gap: 1.25rem; }
.guest-chat-column { position: sticky; top: 1rem; }
.guest-chat-reader { max-height: 270px; }
.activity-list { display: grid; gap: .65rem; }
.activity-item {
    display: grid;
    grid-template-columns: 13px minmax(0, 1fr);
    gap: .65rem;
    padding: .72rem;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--surface-soft);
}
.activity-dot {
    width: 11px;
    height: 11px;
    margin-top: .25rem;
    border: 2px solid #fff;
    border-radius: 999px;
    background: var(--activity-color, #64748b);
    box-shadow: 0 0 0 1px rgba(15,23,42,.45);
}
.activity-item strong { font-size: .82rem; }
.activity-item time { margin-left: .45rem; color: var(--muted); font-size: .65rem; }
.activity-item p { margin: .28rem 0 0; font-size: .84rem; line-height: 1.45; }

@media (max-width: 1100px) {
    .guest-content-grid { grid-template-columns: 1fr; }
    .guest-chat-column { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
    .topbar { align-items: flex-start; flex-direction: column; }
    .user-area { justify-content: flex-start; }
    .master-actor-form { width: 100%; justify-content: space-between; }
    .guest-status-grid { grid-template-columns: 1fr 1fr; }
    .guest-chat-column { grid-template-columns: 1fr; }
}
