/* TRUCO-LAYOUT-V5-2026-07-15 */
:root {
    --bg: #06120c;
    --bg-soft: #0a1e14;
    --panel: #10291c;
    --panel-2: #0d2117;
    --line: #28533a;
    --line-soft: rgba(255, 255, 255, 0.08);
    --text: #f5fff8;
    --muted: #9cb7a5;
    --green: #20c568;
    --green-dark: #148541;
    --gold: #f5b51b;
    --gold-dark: #d87a04;
    --danger: #db4d4d;
    --header-height: 64px;
    --page-width: 1080px;
}

*, *::before, *::after {
    box-sizing: border-box;
}

html {
    width: 100%;
    min-width: 0;
    overflow-x: hidden;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    width: 100%;
    min-width: 0;
    min-height: 100vh;
    min-height: 100dvh;
    margin: 0;
    overflow-x: hidden;
    color: var(--text);
    background:
        radial-gradient(circle at 50% -120px, rgba(35, 145, 79, 0.22), transparent 430px),
        var(--bg);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.45;
}

button, input, select, textarea {
    max-width: 100%;
    font: inherit;
}

button, a {
    -webkit-tap-highlight-color: transparent;
}

img, svg, video, canvas {
    display: block;
    max-width: 100%;
}

a {
    color: #b7ed7a;
    text-decoration: none;
}

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

form {
    min-width: 0;
    margin: 0;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    padding-top: env(safe-area-inset-top);
    border-bottom: 1px solid var(--line-soft);
    background: rgba(5, 18, 12, 0.96);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
}

.topbar-inner {
    width: min(100%, var(--page-width));
    min-height: var(--header-height);
    margin: 0 auto;
    padding: 0 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.brand {
    min-width: 0;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: white;
    font-weight: 900;
    white-space: nowrap;
}

.brand-mark {
    color: var(--gold);
    font-size: 22px;
}

.brand-name {
    font-size: 18px;
    letter-spacing: 0.9px;
}

.brand-online {
    padding: 3px 6px;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.08);
    color: var(--muted);
    font-size: 9px;
    letter-spacing: 1px;
}

.menu-button {
    display: none;
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    padding: 10px;
    border: 1px solid var(--line-soft);
    border-radius: 11px;
    background: rgba(255, 255, 255, 0.06);
    cursor: pointer;
}

.menu-button span {
    display: block;
    width: 100%;
    height: 2px;
    margin: 4px 0;
    border-radius: 4px;
    background: white;
    transition: transform 0.2s, opacity 0.2s;
}

.menu-button.is-open span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.menu-button.is-open span:nth-child(2) {
    opacity: 0;
}

.menu-button.is-open span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

.main-menu {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 14px;
}

.menu-link {
    color: #d9eadf;
    font-size: 14px;
    font-weight: 700;
}

.menu-cta,
.logout-button {
    min-height: 38px;
    padding: 8px 14px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #173a28;
    color: white;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
}

.logout-button {
    color: #ffc2c2;
    border-color: #633737;
    background: #321d1d;
}

.player-chip {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 9px;
}

.player-avatar {
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: #1b1706;
    background: var(--gold);
    font-size: 13px;
    font-weight: 900;
}

.player-text {
    min-width: 0;
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.player-text small {
    color: var(--muted);
    font-size: 9px;
}

.player-text strong {
    max-width: 160px;
    overflow: hidden;
    color: white;
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.page-shell {
    width: min(100%, var(--page-width));
    margin: 0 auto;
    padding: 26px 18px 42px;
}

.alert {
    width: 100%;
    margin-bottom: 14px;
    padding: 12px 14px;
    border-radius: 12px;
    font-size: 13px;
    overflow-wrap: anywhere;
}

.alert-success {
    border: 1px solid #2f9557;
    background: #123824;
}

.alert-error {
    border: 1px solid #a64b4b;
    background: #421f1f;
}

.eyebrow {
    display: block;
    color: #a9e66b;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 1.5px;
}

.welcome-card {
    min-width: 0;
    margin-bottom: 18px;
    padding: 24px 26px;
    border: 1px solid var(--line);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    overflow: hidden;
    background:
        linear-gradient(120deg, rgba(20, 84, 49, 0.9), rgba(10, 35, 23, 0.98)),
        var(--panel);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
}

.welcome-copy {
    min-width: 0;
}

.welcome-card h1 {
    margin: 5px 0 7px;
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.04;
    letter-spacing: -1px;
}

.welcome-card p {
    max-width: 580px;
    margin: 0;
    color: #c7d9cc;
    font-size: 14px;
}

.welcome-suits {
    flex: 0 0 auto;
    display: grid;
    grid-template-columns: repeat(2, 54px);
    gap: 8px;
    color: rgba(255, 255, 255, 0.18);
    font-size: 38px;
    line-height: 1;
}

.welcome-suits span {
    width: 54px;
    height: 54px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: rgba(0, 0, 0, 0.12);
}

.action-grid {
    min-width: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.panel {
    width: 100%;
    min-width: 0;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: linear-gradient(145deg, var(--panel), var(--panel-2));
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.18);
}

.panel h2 {
    margin-bottom: 14px;
    font-size: 20px;
}

.panel-heading {
    min-width: 0;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.panel-heading > div {
    min-width: 0;
}

.panel-heading h2 {
    margin: 0 0 2px;
    font-size: 19px;
}

.panel-heading p {
    margin: 0;
    color: var(--muted);
    font-size: 12px;
}

.panel-icon {
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    color: #b8ed7b;
    background: rgba(163, 230, 53, 0.1);
    font-size: 21px;
    font-weight: 900;
}

.field-row {
    min-width: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.field {
    min-width: 0;
    display: block;
    margin: 12px 0;
}

.field > span {
    display: block;
    margin-bottom: 6px;
    color: #d4e7d9;
    font-size: 12px;
    font-weight: 800;
}

.field small {
    color: var(--muted);
    font-weight: 500;
}

input,
select {
    display: block;
    width: 100%;
    min-width: 0;
    height: 46px;
    margin: 0;
    padding: 0 13px;
    border: 1px solid #315f43;
    border-radius: 11px;
    outline: none;
    color: white;
    background-color: #071b11;
    font-size: 16px;
}

select {
    padding-right: 36px;
    -webkit-appearance: none;
    appearance: none;
    background-image:
        linear-gradient(45deg, transparent 50%, #b7cdbc 50%),
        linear-gradient(135deg, #b7cdbc 50%, transparent 50%);
    background-position:
        calc(100% - 18px) 20px,
        calc(100% - 13px) 20px;
    background-repeat: no-repeat;
    background-size: 5px 5px, 5px 5px;
}

input:focus,
select:focus {
    border-color: #82cf69;
    box-shadow: 0 0 0 3px rgba(130, 207, 105, 0.13);
}

.code-input {
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 4px;
    font-size: 19px;
    font-weight: 900;
}

.button {
    min-height: 44px;
    max-width: 100%;
    padding: 10px 15px;
    border: 1px solid #3a684a;
    border-radius: 11px;
    color: white;
    background: #1b3a29;
    font-size: 14px;
    font-weight: 900;
    cursor: pointer;
    touch-action: manipulation;
}

.button-full {
    width: 100%;
}

.button-green {
    border-color: #41d27c;
    background: linear-gradient(135deg, var(--green), var(--green-dark));
}

.button-gold {
    border-color: #ffd45e;
    color: #281800;
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
}

.button-danger {
    margin-top: 10px;
    border-color: #7a3d3d;
    color: #ffd0d0;
    background: #3b2020;
}

.button-small {
    min-height: 38px;
    padding: 8px 13px;
    font-size: 12px;
}

.button:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.helper-box,
.empty-state {
    margin-top: 12px;
    padding: 12px;
    border: 1px dashed #386149;
    border-radius: 11px;
    color: var(--muted);
    text-align: center;
    font-size: 12px;
}

.rooms-section {
    margin-top: 22px;
}

.section-heading {
    min-width: 0;
    margin-bottom: 11px;
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 12px;
}

.section-heading h2 {
    margin: 2px 0 0;
    font-size: 21px;
}

.count-badge {
    flex: 0 0 auto;
    min-width: 32px;
    height: 32px;
    padding: 0 10px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    color: #dcffe7;
    background: #173c29;
    font-size: 12px;
    font-weight: 900;
}

.room-list {
    display: grid;
    gap: 9px;
}

.room-row {
    min-width: 0;
    padding: 13px 14px;
    border: 1px solid var(--line);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: rgba(16, 41, 28, 0.85);
}

.room-row-info {
    min-width: 0;
    flex: 1 1 auto;
}

.room-row h3 {
    margin: 0 0 3px;
    overflow: hidden;
    font-size: 14px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.room-row p {
    margin: 0;
    color: var(--muted);
    font-size: 11px;
    overflow-wrap: anywhere;
}

.room-row form {
    flex: 0 0 auto;
}

.auth-layout {
    min-width: 0;
    max-width: 900px;
    min-height: calc(100vh - 180px);
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1fr);
    align-items: center;
    gap: 30px;
}

.auth-intro {
    min-width: 0;
}

.auth-intro h1 {
    margin: 6px 0 8px;
    font-size: clamp(30px, 5vw, 46px);
    line-height: 1.04;
}

.auth-intro p {
    max-width: 430px;
    margin: 0;
    color: var(--muted);
}

.suit-line {
    margin-bottom: 16px;
    color: var(--gold);
    font-size: 30px;
    letter-spacing: 9px;
}

.auth-panel {
    max-width: 480px;
    justify-self: end;
}

.checkbox-field {
    margin: 12px 0 16px;
    display: flex;
    align-items: center;
    gap: 9px;
    color: #d4e7d9;
    font-size: 13px;
}

.checkbox-field input {
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    padding: 0;
}

.form-footer {
    margin: 14px 0 0;
    color: var(--muted);
    text-align: center;
    font-size: 12px;
}

.room-header {
    min-width: 0;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.room-header-copy {
    min-width: 0;
}

.room-header h1 {
    margin: 3px 0 3px;
    font-size: clamp(24px, 4vw, 34px);
    line-height: 1.05;
    overflow-wrap: anywhere;
}

.room-header p {
    margin: 0;
    color: var(--muted);
    font-size: 12px;
}

.room-code-card {
    flex: 0 0 205px;
    padding: 11px 14px;
    border-radius: 14px;
    color: #102016;
    text-align: center;
    background: white;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
}

.room-code-card small {
    display: block;
    font-size: 9px;
    font-weight: 900;
}

.room-code-card strong {
    display: block;
    font-size: 24px;
    letter-spacing: 4px;
}

.room-code-card button {
    padding: 3px 5px;
    border: 0;
    color: #176a39;
    background: transparent;
    font-size: 11px;
    font-weight: 900;
    cursor: pointer;
}

.table-frame {
    width: 100%;
    min-width: 0;
    padding: 12px;
    border: 5px solid #85502e;
    border-radius: 38px;
    overflow: hidden;
    background: #59351f;
    box-shadow: inset 0 0 0 3px #382014, 0 18px 42px rgba(0, 0, 0, 0.3);
}

.table-felt {
    position: relative;
    width: 100%;
    min-height: 390px;
    overflow: hidden;
    border: 2px solid #2b8050;
    border-radius: 29px;
    background: radial-gradient(circle, #197a43, #0d4a2a);
}

.table-brand {
    position: absolute;
    inset: 0;
    display: grid;
    place-content: center;
    color: rgba(255, 255, 255, 0.11);
    text-align: center;
    font-size: 28px;
    font-weight: 1000;
    line-height: 0.9;
    transform: rotate(-7deg);
}

.table-brand span {
    display: block;
    margin-top: 8px;
    font-size: 11px;
    letter-spacing: 4px;
}

.table-seats {
    position: absolute;
    inset: 0;
}

.table-seat {
    position: absolute;
    z-index: 2;
    width: 120px;
    max-width: 29%;
    min-width: 0;
    color: white;
    text-align: center;
    font-size: 11px;
}

.table-seat-1 {
    bottom: 9px;
    left: 50%;
    transform: translateX(-50%);
}

.table-seat-2 {
    top: 50%;
    right: 3px;
    transform: translateY(-50%);
}

.table-seat-3 {
    top: 9px;
    left: 50%;
    transform: translateX(-50%);
}

.table-seat-4 {
    top: 50%;
    left: 3px;
    transform: translateY(-50%);
}

.seat-avatar {
    width: 48px;
    height: 48px;
    margin: 0 auto;
    border: 2px solid white;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: #211b06;
    background: var(--gold);
    font-size: 17px;
    font-weight: 900;
}

.seat-empty {
    border-style: dashed;
    color: #9ac8a9;
    background: #174c30;
}

.table-seat b,
.table-seat small,
.ready-status {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    text-shadow: 0 2px 3px #000;
    white-space: nowrap;
}

.table-seat b {
    margin-top: 3px;
}

.table-seat small {
    color: #cee6d5;
    font-size: 9px;
}

.ready-status {
    margin-top: 2px;
    color: #ffc4c4;
    font-size: 8px;
    font-weight: 900;
}

.ready-status.is-ready {
    color: #c8ff95;
}

.room-controls-grid {
    min-width: 0;
    margin-top: 14px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.panel-note {
    margin: 10px 0 0;
    color: var(--muted);
    font-size: 12px;
}

.site-footer {
    padding: 18px 14px calc(20px + env(safe-area-inset-bottom));
    color: #688575;
    text-align: center;
    font-size: 10px;
}

@media (max-width: 799px) {
    :root {
        --header-height: 58px;
    }

    .topbar-inner {
        padding-right: max(12px, env(safe-area-inset-right));
        padding-left: max(12px, env(safe-area-inset-left));
    }

    .brand-name {
        font-size: 16px;
    }

    .brand-online {
        display: none;
    }

    .menu-button {
        display: block;
    }

    .main-menu {
        position: fixed;
        top: calc(var(--header-height) + env(safe-area-inset-top) + 8px);
        right: max(10px, env(safe-area-inset-right));
        left: max(10px, env(safe-area-inset-left));
        width: auto;
        max-height: calc(100dvh - 90px);
        padding: 10px;
        border: 1px solid var(--line);
        border-radius: 15px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        overflow-y: auto;
        background: #0a281b;
        box-shadow: 0 22px 55px rgba(0, 0, 0, 0.52);
    }

    .main-menu.is-open {
        display: flex;
    }

    .menu-link,
    .menu-cta,
    .logout-button,
    .player-chip {
        width: 100%;
        min-height: 44px;
        padding: 10px 12px;
        border: 1px solid rgba(255, 255, 255, 0.07);
        border-radius: 10px;
        justify-content: flex-start;
        background: rgba(255, 255, 255, 0.05);
    }

    .player-text strong {
        max-width: calc(100vw - 115px);
    }

    .page-shell {
        padding: 14px max(10px, env(safe-area-inset-right)) 30px max(10px, env(safe-area-inset-left));
    }

    .welcome-card {
        padding: 17px;
        border-radius: 16px;
    }

    .welcome-card h1 {
        font-size: 29px;
        letter-spacing: -0.5px;
    }

    .welcome-card p {
        font-size: 13px;
    }

    .welcome-suits {
        display: none;
    }

    .action-grid,
    .room-controls-grid,
    .auth-layout {
        grid-template-columns: 1fr;
    }

    .auth-layout {
        min-height: 0;
        gap: 16px;
    }

    .auth-intro {
        padding: 4px 2px;
    }

    .auth-intro h1 {
        font-size: 30px;
    }

    .auth-panel {
        max-width: none;
        justify-self: stretch;
    }

    .room-header {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .room-code-card {
        flex-basis: auto;
        width: 100%;
    }

    .table-frame {
        padding: 8px;
        border-width: 4px;
        border-radius: 27px;
    }

    .table-felt {
        min-height: 340px;
        border-radius: 21px;
    }

    .table-seat {
        width: 92px;
        font-size: 10px;
    }

    .seat-avatar {
        width: 40px;
        height: 40px;
        font-size: 14px;
    }
}

@media (max-width: 520px) {
    .panel {
        padding: 15px;
        border-radius: 15px;
    }

    .panel-heading h2 {
        font-size: 17px;
    }

    .field-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

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

    .room-row form,
    .room-row .button {
        width: 100%;
    }

    .table-felt {
        min-height: 315px;
    }

    .table-seat {
        width: 78px;
        max-width: 30%;
    }

    .table-seat small {
        font-size: 8px;
    }

    .seat-avatar {
        width: 36px;
        height: 36px;
        font-size: 13px;
    }
}

@media (max-width: 360px) {
    .page-shell {
        padding-right: 8px;
        padding-left: 8px;
    }

    .welcome-card {
        padding: 14px;
    }

    .welcome-card h1 {
        font-size: 26px;
    }

    .panel {
        padding: 13px;
    }

    .code-input {
        letter-spacing: 2px;
        font-size: 17px;
    }

    .table-felt {
        min-height: 292px;
    }

    .table-seat {
        width: 72px;
    }
}

/* TRUCO-EXPERIENCIA-V2-2026-07-17 */
.topbar-auth .topbar-inner{justify-content:center}.topbar-auth .brand{margin:0 auto}.main-menu form{margin:0}.menu-link-button{min-height:38px;padding:8px 12px;border:0;background:transparent;color:#d9eadf;font-size:14px;font-weight:800;cursor:pointer;text-align:left}.menu-home-button{color:#fff}.welcome-compact{padding-block:20px}.home-tools{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-bottom:24px}.tool-accordion{min-width:0;border:1px solid var(--line);border-radius:16px;background:linear-gradient(145deg,var(--panel),var(--panel-2));overflow:hidden}.tool-accordion summary{min-height:72px;padding:14px 16px;display:grid;grid-template-columns:42px minmax(0,1fr) 24px;align-items:center;gap:11px;cursor:pointer;list-style:none}.tool-accordion summary::-webkit-details-marker{display:none}.tool-accordion summary>span:nth-child(2){min-width:0;display:flex;flex-direction:column}.tool-accordion summary b{font-size:15px}.tool-accordion summary small{color:var(--muted);font-size:11px}.tool-accordion summary>i{font-style:normal;text-align:center;transition:transform .2s}.tool-accordion[open] summary>i{transform:rotate(180deg)}.accordion-body{padding:0 16px 16px;border-top:1px solid rgba(255,255,255,.06)}.field-help{margin:-2px 0 12px;color:var(--muted);font-size:11px}.room-browser-list{display:grid;gap:10px}.room-browser-card{min-width:0;padding:14px;border:1px solid var(--line);border-radius:15px;background:rgba(16,41,28,.88)}.room-browser-top{display:flex;align-items:center;justify-content:space-between;gap:12px}.room-browser-title{min-width:0}.room-browser-title h3{margin:6px 0 2px;font-size:15px;overflow-wrap:anywhere}.room-browser-title p{margin:0;color:var(--muted);font-size:11px}.room-badges{display:flex;flex-wrap:wrap;gap:5px}.status-pill{display:inline-flex;align-items:center;min-height:21px;padding:3px 7px;border:1px solid rgba(255,255,255,.09);border-radius:999px;color:#cde3d4;background:rgba(255,255,255,.05);font-size:8px;font-weight:900;letter-spacing:.06em}.status-live{color:#fff0b0;border-color:#9f7e1f;background:#59450e}.status-waiting{color:#c7ffdc;border-color:#277d4c;background:#123c25}.status-private{color:#d6d2ff;border-color:#55508b;background:#252344}.room-browser-action{flex:0 0 auto}.room-action-note{display:inline-flex;padding:7px 9px;border-radius:9px;color:var(--muted);background:rgba(255,255,255,.05);font-size:10px}.occupants-row{display:flex;flex-wrap:wrap;gap:6px;margin-top:11px;padding-top:10px;border-top:1px solid rgba(255,255,255,.06)}.occupant-chip{max-width:180px;display:inline-flex;align-items:center;gap:6px;padding:5px 8px;border-radius:999px;color:#dfeee3;background:rgba(255,255,255,.05);font-size:10px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.occupant-chip>span{flex:0 0 21px;width:21px;height:21px;border-radius:50%;display:grid;place-items:center;background:var(--gold);color:#201700;font-size:9px;font-weight:900}.page-heading-compact{margin-bottom:14px}.page-heading-compact h1{margin:3px 0;font-size:clamp(28px,5vw,40px)}.page-heading-compact p{margin:0;color:var(--muted);font-size:13px}.friend-search-form{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:10px}.friend-search-form .field{margin:0}.friend-results{display:grid;gap:8px;margin-top:12px}.friend-row{min-width:0;display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px;border:1px solid rgba(255,255,255,.07);border-radius:12px;background:rgba(255,255,255,.035)}.friend-person{min-width:0;display:flex;align-items:center;gap:9px}.friend-person>span{flex:0 0 34px;width:34px;height:34px;border-radius:50%;display:grid;place-items:center;color:#201700;background:var(--gold);font-size:12px;font-weight:900}.friend-person>div{min-width:0}.friend-person b,.friend-person small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.friend-person b{font-size:12px}.friend-person small{color:var(--muted);font-size:10px}.friend-actions{display:flex;gap:5px}.friend-status{display:inline-flex;padding:6px 9px;border-radius:999px;color:#f4d694;background:#4b3b14;font-size:10px;font-weight:800}.friend-ok{color:#bfffd6;background:#17452a}.friends-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin-top:14px}.outgoing-panel{margin-top:14px}.compact-results{grid-template-columns:repeat(2,minmax(0,1fr))}.room-header-clean{align-items:flex-start}.room-code-inline{flex:0 0 auto;padding:8px 11px;border:1px solid var(--line);border-radius:11px;text-align:center;background:rgba(255,255,255,.05)}.room-code-inline small,.room-code-inline strong{display:block}.room-code-inline small{color:var(--muted);font-size:8px;font-weight:900}.room-code-inline strong{font-size:17px;letter-spacing:3px}.room-table-clean{max-width:850px;margin:0 auto}.room-primary-action{max-width:460px;margin:12px auto 0;padding:12px;border:1px solid var(--line);border-radius:14px;background:rgba(16,41,28,.88)}.room-primary-action p{margin:8px 0 0;color:var(--muted);text-align:center;font-size:10px}.seat-name-link{display:block;margin-top:3px;color:#fff;font-size:11px;font-weight:800;text-shadow:0 2px 3px #000;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.button{display:inline-flex;align-items:center;justify-content:center;text-decoration:none}.site-footer{margin-top:auto}
@media(max-width:799px){.main-menu form,.main-menu .menu-link-button{width:100%}.menu-link-button{min-height:44px;padding:10px 12px;border:1px solid rgba(255,255,255,.07);border-radius:10px;background:rgba(255,255,255,.05)}.home-tools,.friends-grid{grid-template-columns:1fr}.welcome-compact{margin-bottom:12px}.room-browser-top{align-items:stretch;flex-direction:column}.room-browser-action,.room-browser-action form,.room-browser-action .button{width:100%}.compact-results{grid-template-columns:1fr}.friend-search-form{grid-template-columns:1fr}.friend-search-form .button{width:100%}.room-header-clean{flex-direction:row;align-items:flex-start}.room-code-inline{max-width:130px}.topbar-auth .topbar-inner{min-height:56px}}
@media(max-width:520px){.tool-accordion summary{min-height:64px;padding:11px 12px;grid-template-columns:38px minmax(0,1fr) 20px}.tool-accordion .panel-icon{width:38px;height:38px;flex-basis:38px}.accordion-body{padding:0 12px 12px}.room-browser-card{padding:12px}.friend-row{align-items:stretch;flex-direction:column}.friend-row>form,.friend-row>div:last-child:not(.friend-person),.friend-actions{width:100%}.friend-row .button{width:100%}.friend-actions{display:grid;grid-template-columns:1fr 1fr}.room-header-clean{flex-direction:column}.room-code-inline{width:100%;max-width:none;display:flex;align-items:center;justify-content:center;gap:10px}.room-code-inline strong{font-size:15px}.room-table-clean .table-felt{min-height:300px}}

/* REALTIME-V3 */
.room-realtime-status{margin:7px 0 9px;text-align:center;color:#f2c657;font-size:11px;font-weight:800}.room-realtime-status.is-connected{color:#62e796}

/* V5: sala de espera sem assentos absolutos, compatível com telas pequenas */
.room-table-clean .table-felt{min-height:260px;padding:54px 18px 22px;display:flex;align-items:center;justify-content:center}
.room-table-clean .table-brand{pointer-events:none}
.room-table-clean .table-seats{position:relative;inset:auto;width:min(650px,100%);display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:stretch;gap:14px}
.room-table-clean .table-seat{position:relative;inset:auto!important;width:auto;max-width:none;min-height:82px;padding:9px;border:1px solid rgba(255,255,255,.12);border-radius:14px;display:flex;flex-direction:column;align-items:center;justify-content:center;background:rgba(3,31,18,.72);transform:none!important;box-shadow:0 7px 18px rgba(0,0,0,.2)}
.room-table-clean .seat-avatar{width:40px;height:40px}
@media(max-width:520px){.room-table-clean .table-felt{min-height:285px;padding:48px 10px 16px}.room-table-clean .table-seats{gap:8px}.room-table-clean .table-seat{min-height:92px;padding:7px}.room-table-clean .seat-name-link{max-width:100%;font-size:10px}}

/* Ajustes V6: autenticação e menu exclusivo */
.auth-page .page-shell{padding-top:18px}.auth-panel form{position:relative;z-index:2}.auth-panel input{min-height:46px}.auth-panel button[type="submit"]{touch-action:manipulation}.auth-panel button[disabled],.logout-form button[disabled]{opacity:.65;cursor:wait}.main-menu.main-menu-exclusive{justify-content:flex-end}.main-menu.main-menu-exclusive .menu-link-button{min-width:170px;text-align:center}
@media(max-width:799px){.main-menu.main-menu-exclusive{min-width:min(280px,calc(100vw - 24px))}.main-menu.main-menu-exclusive .menu-link-button{min-width:0}}
