/* Game lobby and room surfaces use the same mint palette as the member site. */
#meme-community-ui {
    --play-blue: #087a65;
    --play-gold: #98e5bc;
    --play-navy: #104b43;
}
#meme-community-ui .play-heading { margin: 6px 0 15px; }
#meme-community-ui [data-view=play] .play-heading h1 { font-size: 29px; font-weight: 800; line-height: 1.2; }
#meme-community-ui .play-heading p { font-size: 12px; line-height: 1.5; margin-top: 6px; color: var(--ec-muted); }

#meme-community-ui .play-room-modes { display: grid; gap: 10px; }
#meme-community-ui .play-entry {
    display: flex; align-items: center; position: relative; isolation: isolate; overflow: hidden;
    min-height: 112px; width: 100%; padding: 13px 100px 13px 15px;
    text-align: left; color: var(--ec-ink); border: 1px solid var(--ec-line); border-radius: 15px;
    background: linear-gradient(95deg,#e3f8f1 30%,#e3f8f1d9 52%,#dcf9f375),
        #e3f8f1 url("mint-park.webp?v=20261128-01") right 62% / cover no-repeat;
}
#meme-community-ui .play-entry-points {
    background: linear-gradient(95deg,#e4f5fc 24%,#e4f5fcd9 54%,#d1eee784),
        #e4f5fc url("mint-park.webp?v=20261128-01") right 45% / cover no-repeat;
}
#meme-community-ui .play-entry > span { display: grid; gap: 6px; }
#meme-community-ui .play-entry b { font-size: 22px; font-weight: 825; line-height: 1.15; }
#meme-community-ui .play-entry small { font-size: 12px; line-height: 1.45; color: var(--ec-muted); }
#meme-community-ui .play-entry .mint-pet {
    position: absolute; right: 11px; bottom: -2px; width: 87px; pointer-events: none;
    filter: drop-shadow(0 4px 4px #1a6c542b);
}
#meme-community-ui .play-match { width: 100%; min-height: 51px; margin: 12px 0 9px; font-size: 16px; }
#meme-community-ui .play-room-links { margin-bottom: 0; }
#meme-community-ui .play-preview-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; }

#meme-community-ui .play-art {
    background-image: url("play-icons.webp?v=20261124-01");
    background-size: 400% 100%;
    background-repeat: no-repeat;
}
#meme-community-ui .play-art-friends { background-position: 0 50%; }
#meme-community-ui .play-art-season { background-position: 33.333% 50%; }
#meme-community-ui .play-art-fruit { background-position: 66.667% 50%; }
#meme-community-ui .play-art-zombie { background-position: 100% 50%; }
#meme-community-ui .play-catalog { margin: 19px 0 0; }
#meme-community-ui .play-catalog h2 { font-size: 17px; margin-bottom: 10px; }
#meme-community-ui .play-preview-card {
    min-width: 0;
    display: grid;
    text-align: left;
    font: inherit;
    border-radius: 13px;
    border: 1px solid var(--ec-line);
    background: var(--ec-surface);
    color: var(--ec-ink);
    overflow: hidden;
    padding: 0;
}
#meme-community-ui .play-preview-art, #meme-community-ui .play-preview-card img {
    height: 88px;
    width: 100%;
    display: grid;
    place-items: center;
    object-fit: cover;
}
#meme-community-ui .play-preview-fruit { background: #ffefdb; }
#meme-community-ui .play-preview-zombie { background: #e4f4e8; }
#meme-community-ui .play-preview-art .play-art { width: 87px; height: 75px; }
#meme-community-ui .play-preview-card > span:last-child { display: grid; gap: 4px; padding: 9px 10px 11px; }
#meme-community-ui .play-preview-card b { font-size: 12px; }
#meme-community-ui .play-preview-card small { font-size: 10px; color: var(--ec-muted); }
#meme-community-ui .play-more-games { margin: 9px 0 0; }
#meme-community-ui .play-more-games summary {
    display: list-item;
    min-height: 44px;
    padding: 12px 5px;
    font-size: 12px;
    color: var(--ec-link);
    cursor: pointer;
}
#meme-community-ui .play-more-games .play-preview-grid { padding-top: 5px; }
#meme-community-ui .play-preview-dialog { border-radius: 13px; overflow: hidden; }
#meme-community-ui .play-preview-dialog > :is(img,.play-preview-art) {
    display: grid;
    width: 100%;
    height: 136px;
    object-fit: cover;
}
#meme-community-ui .play-preview-dialog .play-art { width: 135px; height: 119px; }
#meme-community-ui .play-friend-options { display: grid; gap: 10px; }
#meme-community-ui .play-friend-options .ec-button { width: 100%; }
#meme-community-ui .live-current-card:has([data-action=live-resume]) { border-color: var(--ec-link); }

#meme-community-ui .ec-phone.is-game-room.is-live-game > .ec-main { background: var(--play-navy); }
#meme-community-ui .is-live-game .gd-lobby-head {
    min-height: 44px;
    gap: 7px;
    border-bottom-color: #80c4b473;
}
#meme-community-ui .is-live-game .gd-lobby-head [data-action=room-leave] {
    flex: none;
    padding: 0 9px;
    color: #edfdf7;
    font-size: 12px;
}
#meme-community-ui .is-live-game .gd-lobby-head [data-room-title] { font-size: 14px; color: #fff; }
#meme-community-ui .is-live-game .gd-lobby-head [data-room-id] { color: #cdece4; font-variant-numeric: tabular-nums; }
#meme-community-ui .is-live-game .gd-lobby-body {
    grid-template-columns: minmax(0,1.35fr) minmax(0,1fr);
    gap: clamp(10px,2cqw,18px);
    padding: 9px 0 4px;
}
#meme-community-ui .is-live-game .gd-seating {
    border-radius: 16px;
    border: 1px solid #a5e8d88c;
    background: linear-gradient(#12675d32,#0a544c78),#166e5b url("mint-park.webp?v=20261128-01") center / cover no-repeat;
    box-shadow: inset 0 0 14px #0a4a3d66;
}
#meme-community-ui .is-live-game .gd-lobby-felt {
    inset: 50% auto auto 50%;
    transform: translate(-50%,-50%);
    background: none;
    border: 0;
    box-shadow: none;
    gap: 5px;
    white-space: nowrap;
}
#meme-community-ui .is-live-game .gd-lobby-felt img { width: 35px; height: 35px; border: 1px solid #bcf0e2; }
#meme-community-ui .is-live-game .gd-lobby-felt b { color: #103e36; background: #ecfff7eb; padding: 2px 6px; border-radius: 6px; font-size: 10px; }
#meme-community-ui .is-live-game .gd-seat {
    display: flex;
    flex-direction: row;
    gap: 5px;
    padding: 4px 6px 4px 4px;
    border: 1px solid #93dbc98c;
    border-radius: 10px;
    background: #15574c;
    box-shadow: 0 3px 9px #0a403866;
    max-width: 44%;
}
#meme-community-ui .is-live-game .gd-seat-top { top: 9px; }
#meme-community-ui .is-live-game .gd-seat-bottom { bottom: 9px; }
#meme-community-ui .is-live-game .gd-seat-left { left: 6px; max-width: 35%; }
#meme-community-ui .is-live-game .gd-seat-right { right: 6px; max-width: 35%; }
#meme-community-ui .is-live-game .gd-seat-copy { display: grid; gap: 2px; min-width: 0; }
#meme-community-ui .is-live-game .gd-seat-copy b {
    font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #fff;
}
#meme-community-ui .is-live-game .gd-seat-copy b small { margin-left: 4px; color: #ffe295; }
#meme-community-ui .is-live-game .gd-seat-copy > span { font-size: 9px; color: #d5f4eb; white-space: nowrap; }
#meme-community-ui .is-live-game .gd-seat.is-ready { border-color: #87d7b4; }
#meme-community-ui .is-live-game .gd-seat.is-ready .gd-seat-copy > span { color: #a6efd0; }
#meme-community-ui .is-live-game .gd-seat.is-empty { border-style: dashed; background: #185e53e8; box-shadow: none; }
#meme-community-ui .is-live-game .gd-seat.is-offline { border-color: #edc071; }
#meme-community-ui .is-live-game .gd-seat.is-offline .room-portrait { opacity: .63; }
#meme-community-ui .is-live-game :is(.gd-seat-bottom,.gd-self-portrait) { --seat-art: 0%; --seat-bg: #b5dcff; }
#meme-community-ui .is-live-game .gd-seat-right, #meme-community-ui .is-live-game .ag-player-right { --seat-art: 33.333%; --seat-bg: #ffd9a8; }
#meme-community-ui .is-live-game .gd-seat-top, #meme-community-ui .is-live-game .ag-player-top { --seat-art: 66.667%; --seat-bg: #b7eddf; }
#meme-community-ui .is-live-game .gd-seat-left, #meme-community-ui .is-live-game .ag-player-left { --seat-art: 100%; --seat-bg: #dcd4ff; }
#meme-community-ui .is-live-game :is(.room-portrait,.ag-player .ec-face) {
    background: var(--seat-bg) url("room-portraits.webp?v=20261124-01") var(--seat-art) 92% / 400% 126% no-repeat;
    border: 1px solid #e2f9ef;
    border-radius: 10px;
    box-shadow: none;
}
#meme-community-ui .is-live-game .room-portrait { width: clamp(27px,5.5cqw,43px); aspect-ratio: 1; flex: none; }
#meme-community-ui .is-live-game .gd-seat.is-empty .room-portrait {
    display: grid; place-items: center; border-style: dashed; border-color: #9bcfc1; background: #2d7568; color: #dff9ef;
}
#meme-community-ui .is-live-game .gd-seat.is-empty .room-portrait::before { content: "＋"; font: 700 17px/1 system-ui,sans-serif; }
#meme-community-ui .is-live-game .gd-room-info {
    justify-content: flex-start;
    min-width: 0;
    padding: clamp(9px,1.8cqw,16px);
    border-radius: 16px;
    border: 1px solid #c8def9;
    background: #f5f8ff;
    color: #243a5f;
}
#meme-community-ui .is-live-game .gd-room-details {
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    display: grid;
    align-content: start;
    gap: 6px;
}
#meme-community-ui .is-live-game .gd-room-kind {
    justify-self: start; border-radius: 7px; padding: 3px 6px;
    background: #e2edff; color: #24508e; font-size: 10px; line-height: 1.3; font-weight: 700;
}
#meme-community-ui .is-live-game .gd-room-details h1 { font-size: clamp(17px,3cqw,23px); color: var(--ec-ink); }
#meme-community-ui .is-live-game [data-room-mode] { font-size: 11px; color: var(--ec-muted); font-variant-numeric: tabular-nums; }
#meme-community-ui .is-live-game [data-room-ready] {
    appearance: none; display: block; width: 100%; height: 7px;
    border: 0; border-radius: 10px; overflow: hidden; background: var(--ec-soft); margin: 3px 0;
}
#meme-community-ui .is-live-game [data-room-ready]::-webkit-progress-bar { background: var(--ec-soft); }
#meme-community-ui .is-live-game [data-room-ready]::-webkit-progress-value { background: var(--play-blue); border-radius: 10px; }
#meme-community-ui .is-live-game [data-room-ready]::-moz-progress-bar { background: var(--play-blue); border-radius: 10px; }
#meme-community-ui .is-live-game .gd-room-tip { font-size: 10px; line-height: 1.45; color: var(--ec-muted); }
#meme-community-ui .is-live-game .gd-room-share { margin-top: auto; gap: 4px; }
#meme-community-ui .is-live-game .gd-room-share :is(.ec-button,.ec-text-button),
#meme-community-ui .is-live-game .gd-room-info [data-live-cancelled] {
    min-height: 36px;
    min-width: 0;
    width: auto;
    flex: 1 1 auto;
    justify-content: center;
    text-align: center;
    padding: 4px 7px;
    border-radius: 8px;
    border: 1px solid var(--ec-line);
    color: var(--ec-link);
    background: var(--ec-soft);
    font-size: 11px;
    box-shadow: none;
}
#meme-community-ui .is-live-game .gd-room-share [data-action=live-party-match] { flex-basis: 100%; }
#meme-community-ui .is-live-game .gd-room-info > [data-action=ready] { flex: none; border-radius: 10px; box-shadow: 0 2px 0 #14634d; }

#meme-community-ui .is-game-room.is-live-game .ag-table-page::before {
    inset: 0;
    border: 0;
    outline: 0;
    border-radius: 12px;
    box-shadow: none;
    background: linear-gradient(#133f37de 0,#133f37a6 34px,#2a807b15 83px),
        #a4dedd url("mint-park.webp?v=20261128-01") center 28% / cover no-repeat;
}
#meme-community-ui .is-game-room.is-live-game .ag-table-page::after {
    inset: clamp(43px,15cqh,92px) 0 0;
    border-radius: 42% 42% 13px 13px / 18% 18% 13px 13px;
    border: 2px solid #8fe3cac7;
    background: radial-gradient(ellipse at 48% 0,#56c7aa58,transparent 79%),
        repeating-linear-gradient(120deg,#b2f7e50c 0 1px,transparent 1px 4px),
        linear-gradient(160deg,#238a75,#116856 66%,#0c544c);
    box-shadow: inset 0 0 0 3px #104d437d,0 -2px 6px #1d766251;
}
#meme-community-ui .is-live-game .ag-player .ec-face i, #meme-community-ui .is-live-game .ag-player .ec-face::before,
#meme-community-ui .is-live-game .ag-player .ec-face::after { display: none; }
#meme-community-ui .is-live-game :is(.ag-player-left,.ag-player-right) {
    flex-direction: row;
    max-width: min(23cqw,144px);
    padding: 3px 5px 3px 3px;
    border-radius: 11px;
    background: #104b41ef;
    border: 1px solid #8fc9b58c;
}
#meme-community-ui .is-live-game .ag-player.is-current-turn { border-color: #a8f3cb; }
#meme-community-ui .is-live-game :is(.ag-player-left,.ag-player-right) > div { gap: 2px; min-width: 0; overflow: hidden; }
#meme-community-ui .is-live-game .gd-hand-toolbar .gd-self-portrait { width: 16px; height: 16px; border-radius: 5px; }
#meme-community-ui .is-live-game .ag-table-top :is(.ag-table-back,.ag-emote-button,.ec-text-button),
#meme-community-ui .is-live-game :is(.gd-lobby-head,.ag-table-top) .room-toggle:is(.room-settings,[aria-pressed=false]),
#meme-community-ui .is-live-game .ag-player-top, #meme-community-ui .is-live-game .ag-player > div > span,
#meme-community-ui .is-live-game .ag-turn-label:not(.is-mine), #meme-community-ui .is-live-game .gd-selection.has-selection,
#meme-community-ui .is-live-game [data-hand-count] { background: #154d43; border-color: #9bd7c260; color: #eafbf4; }
#meme-community-ui .is-live-game [data-action=table-sound][data-audio-state=ready] { background: #287d6a; border-color: #99d7c3; }
#meme-community-ui .is-live-game .ag-player.is-low-hand > div > span { background: #60452a; color: #ffe1a0; }
#meme-community-ui .is-live-game .gd-room-info .ec-primary:enabled {
    background: var(--ec-brand);
    border-color: #14816b;
    color: var(--ec-primary-ink);
}
#meme-community-ui .is-live-game .ag-table-top :is(.ag-table-back,.ag-emote-button,.ec-text-button,.room-toggle):not([aria-pressed=true],[data-audio-state=waiting],[data-audio-state=blocked]) {
    background: linear-gradient(#2c7567,#1b5348); border-color: #a3dec178;
    box-shadow: inset 0 1px 0 #c7f5e135;
}
#meme-community-ui .is-live-game .live-advice {
    background: #154d43;
    border-color: #9bd7c260;
}
#meme-community-ui .is-live-game .ag-center-play:not(.is-exchange) > [data-last-player]:not(:empty) {
    padding-inline: 4px;
    border-radius: 5px;
    background: #114a40e8;
}
#meme-community-ui .ec-sheet:has([data-live-result]) .live-result-lead:not(.is-win),
#meme-community-ui .ec-sheet:has([data-live-result]) .live-score-detail {
    background: var(--ec-soft);
    border-color: var(--ec-line);
    color: var(--ec-ink);
}
@media (max-width: 350px) {
    #meme-community-ui .play-entry { min-height: 101px; padding-right: 83px; }
    #meme-community-ui .play-entry .mint-pet { width: 73px; right: 6px; }
}

