#games-open{display:grid;place-items:center;width:40px;height:40px;padding:0;border:0!important;background:transparent!important;color:var(--purple)}#games-open svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
#games-window{position:absolute;z-index:30;display:flex;flex-direction:column;width:410px;height:580px;max-width:100%;max-height:100%;background:var(--zw-panel,#191823);color:var(--zw-text,#eee);border:1px solid var(--zw-border,#514365);border-radius:18px;box-shadow:0 15px 55px #0008;overflow:hidden;min-width:0}#games-window[hidden]{display:none}#chat{position:relative}
.games-titlebar{display:flex;align-items:center;gap:5px;padding:10px 12px;flex:none;cursor:move;touch-action:none}.games-titlebar strong{margin-right:auto}.games-titlebar button{border:0;background:transparent;padding:4px 8px;font-size:20px}.games-content{overflow:auto;padding:12px 22px;flex:1;min-height:0}.games-library{display:flex;gap:10px;margin-bottom:12px}.games-library button{color:var(--purple)}.game-scores{display:flex;justify-content:space-between;gap:10px;font-size:14px;margin:12px 0}.game-board{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;aspect-ratio:1;background:#242220;padding:9px;border-radius:14px;touch-action:none;user-select:none;outline-offset:3px}.game-tile{display:grid;place-items:center;border-radius:9px;background:#36322e;font-size:clamp(16px,3vw,30px);font-weight:700;color:#eee}.game-tile[data-filled=true]{background:#9d8050;color:#fffaf0}.game-buttons{display:flex;gap:8px;margin:16px 0;flex-wrap:wrap}.game-status{font-size:13px;color:var(--muted);min-height:2.5em}.games-resize{position:absolute;touch-action:none;z-index:2}.games-resize[data-edge=n],.games-resize[data-edge=s]{height:7px;left:12px;right:12px;cursor:ns-resize}.games-resize[data-edge=n]{top:0}.games-resize[data-edge=s]{bottom:0}.games-resize[data-edge=e],.games-resize[data-edge=w]{width:7px;top:12px;bottom:12px;cursor:ew-resize}.games-resize[data-edge=e]{right:0}.games-resize[data-edge=w]{left:0}.games-resize[data-edge=ne],.games-resize[data-edge=nw],.games-resize[data-edge=se],.games-resize[data-edge=sw]{width:12px;height:12px}.games-resize[data-edge^=n]{top:0}.games-resize[data-edge^=s]{bottom:0}.games-resize[data-edge$=e]{right:0}.games-resize[data-edge$=w]{left:0}.games-resize[data-edge=ne],.games-resize[data-edge=sw]{cursor:nesw-resize}.games-resize[data-edge=nw],.games-resize[data-edge=se]{cursor:nwse-resize}#games-window.minimized .games-content,#games-window.minimized .games-resize{display:none}
#emoji-picker{max-height:min(360px,55dvh);max-width:calc(100vw - 24px);overflow-y:auto;overscroll-behavior:contain;grid-template-columns:repeat(6,minmax(0,1fr));width:270px}
@media(max-width:760px){#games-window{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;border:0;border-radius:0}.games-content{padding:16px 20px}.game-board{max-width:450px;margin:auto}.games-titlebar{cursor:default}.games-resize,[data-game-action=min],[data-game-action=max]{display:none!important}.game-tile{font-size:28px}}

/* Liberty 2048 : tons chauds adoucis. */
.game-tile[data-value="2"]{background:#c9c1b3;color:#29251f}
.game-tile[data-value="4"]{background:#c7b697;color:#29251f}
.game-tile[data-value="8"]{background:#bd9470;color:#29251f}
.game-tile[data-value="16"]{background:#ba8565;color:#29251f}
.game-tile[data-value="32"]{background:#b57458;color:#241b16}
.game-tile[data-value="64"]{background:#ad634a;color:#fffaf0}
.game-tile[data-value="128"]{background:#b59c64;color:#29251f}
.game-tile[data-value="256"]{background:#ad9257;color:#29251f}
.game-tile[data-value="512"]{background:#a58949;color:#241e14}
.game-tile[data-value="1024"]{background:#96783a;color:#fffaf0}
.game-tile[data-value="2048"]{background:#876b31;color:#fffaf0}
