:root{--bg:#0d1512;--felt:#12533c;--felt-edge:#0b3527;--gold:#d9b45a;--text:#f2efe6;--card:#fbf8f0;--ink:#17191c;--red:#c0262d;--hearts:#c8102e;--clubs:#137a2f;--diamonds:#1557c0;--spades:#111316;--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark}*{box-sizing:border-box}body{background:var(--bg);color:var(--text);margin:0;font-family:system-ui,sans-serif}main{min-height:100dvh;padding:max(8px, env(safe-area-inset-top)) max(8px, env(safe-area-inset-right)) max(8px, env(safe-area-inset-bottom)) max(8px, env(safe-area-inset-left));place-items:center;display:grid}.fullscreen{justify-self:center;padding:2px 10px;font-size:.85rem}input,select,button{font:inherit;color:inherit;background:#17251f;border:1px solid #3d5a4c;border-radius:8px;padding:8px 12px}button{cursor:pointer}button:disabled{cursor:default;opacity:.5}button.primary{background:var(--gold);border-color:var(--gold);color:var(--ink);font-weight:600}:focus-visible{outline:2px solid var(--gold);outline-offset:2px}h1{color:var(--gold);margin:0}label{gap:4px;font-size:.9rem;display:grid}.panel{gap:16px;width:min(440px,100%);display:grid}.row{flex-wrap:wrap;justify-content:center;align-items:end;gap:8px;display:flex}.players{gap:8px;margin:0;padding:0;list-style:none;display:grid}.error{background:var(--red);border-radius:8px;margin:0;padding:8px 16px;position:fixed;bottom:8px}.avatar{background:var(--gold);width:32px;height:32px;color:var(--ink);border-radius:50%;flex:none;place-items:center;font-weight:700;display:inline-grid}.game{gap:8px;width:min(1000px,100%);display:grid}.game header{color:var(--gold);flex-wrap:wrap;justify-content:space-between;gap:8px;display:flex}.felt{background:var(--felt);border:8px solid var(--felt-edge);border-radius:32px;height:clamp(260px,62dvh,520px);position:relative}.seat{white-space:nowrap;background:#0006;border:2px solid #0000;border-radius:24px;align-items:center;gap:8px;padding:4px 10px;display:flex;position:absolute}.seat small{opacity:.8;display:block}.seat.active{border-color:var(--gold)}.seat.bottom{bottom:6px;left:50%;translate:-50%}.seat.top{top:6px;left:50%;translate:-50%}.seat.left{top:50%;left:6px;translate:0 -50%}.seat.right{top:50%;right:6px;translate:0 -50%}.played{position:absolute;top:50%;left:50%;translate:-50% -50%}.played.bottom{margin-top:58px}.played.top{margin-top:-58px}.played.left{margin-left:-100px}.played.right{margin-left:100px}.played[class*=collect-]{animation-duration:.6s;animation-timing-function:ease-in;animation-delay:.8s;animation-fill-mode:forwards}.played.collect-bottom{animation-name:to-bottom}.played.collect-top{animation-name:to-top}.played.collect-left{animation-name:to-left}.played.collect-right{animation-name:to-right}@keyframes to-bottom{to{opacity:0;visibility:hidden;margin:0;top:calc(100% - 30px);scale:.5}}@keyframes to-top{to{opacity:0;visibility:hidden;margin:0;top:30px;scale:.5}}@keyframes to-left{to{opacity:0;visibility:hidden;margin:0;left:60px;scale:.5}}@keyframes to-right{to{opacity:0;visibility:hidden;margin:0;left:calc(100% - 60px);scale:.5}}.status.wait{animation:.2s 1.4s both appear}@keyframes appear{0%{opacity:0;visibility:hidden}}@media (prefers-reduced-motion:reduce){@keyframes to-bottom{to{opacity:0;visibility:hidden}}@keyframes to-top{to{opacity:0;visibility:hidden}}@keyframes to-left{to{opacity:0;visibility:hidden}}@keyframes to-right{to{opacity:0;visibility:hidden}}}.status{z-index:1;gap:2px;max-width:30%;display:grid;position:absolute;top:8px;left:12px}.status.center{text-align:center;justify-items:center;gap:4px;max-width:70%;top:50%;left:50%;translate:-50% -50%}.card{background:var(--card);width:52px;height:74px;color:var(--ink);border:1px solid #0004;border-radius:8px;place-content:center;justify-items:center;padding:0;font-size:1.1rem;line-height:1.1;display:grid;box-shadow:0 2px 6px #0006}.card span{font-size:1.5rem}.suit-H{color:var(--hearts)}.suit-C{color:var(--clubs)}.suit-D{color:var(--diamonds)}.suit-S{color:var(--spades)}.chip{background:var(--card);border-radius:6px;padding:0 8px}.card:disabled{opacity:1}.card.dimmed{filter:brightness(.45)}button.card:enabled:hover{translate:0 -8px}.hand{justify-content:center;min-height:82px;padding-top:8px;display:flex}.hand .card{flex:0 52px;min-width:26px}.hand .card+.card{margin-left:3px}.trumps button{background:var(--card);width:64px;font-size:1.8rem}@media (width<=640px){.card{width:40px;height:60px;font-size:.95rem}.card span{font-size:1.2rem}.seat{font-size:.75rem}.seat .avatar{display:none}}@media (width<=640px) and (orientation:portrait){.game:before{content:"Gira el teléfono para ver mejor la mesa.";text-align:center;font-size:.85rem}}@media (height<=500px){.felt{border-width:5px;height:max(180px,100dvh - 126px)}.game{gap:4px}.game header{align-items:center;font-size:.8rem}.card{width:44px;height:60px;font-size:.95rem}.card span{font-size:1.2rem}.hand{min-height:68px}.seat{font-size:.8rem}.played.bottom{margin-top:40px}.played.top{margin-top:-40px}}.game{grid-template-columns:minmax(0,1fr)}main:has(.game){grid-template-columns:minmax(0,1fr)}.hand,.hand .card{min-width:0}@media (width<=640px) and (orientation:portrait){.played.left{margin-left:-48px}.played.right{margin-left:48px}.seat.left,.seat.right{white-space:normal;max-width:calc(50% - 76px);line-height:1.2}}@media (height<=500px){main:has(.game){grid-template-rows:minmax(0,1fr);height:100dvh;min-height:0}.game{flex-direction:column;height:100%;min-height:0;display:flex}.game header .fullscreen{padding:0 8px}.felt{flex:1;height:auto;min-height:0}.hand{min-height:0;padding-top:4px}.hand .card{height:54px}.seat{padding:1px 10px;font-size:.75rem;line-height:1.15}.seat .avatar{display:none}.seat.bottom{bottom:2px}.seat.top{top:2px}.played .card{width:34px;height:44px;font-size:.8rem}.played .card span{font-size:1rem}.played.bottom{margin-top:26px}.played.top{margin-top:-26px}.played.left{margin-left:-60px}.played.right{margin-left:60px}.status{font-size:.85rem;top:4px}.trumps button{width:48px;padding:2px;font-size:1.3rem}}.summary{justify-items:center;gap:12px;width:min(720px,100%);min-width:0;display:grid}.summary h1{text-align:center;font-size:1.4rem}.summary table{table-layout:fixed;border-collapse:collapse;width:100%;font-size:.9rem}.summary th,.summary td{text-align:right;overflow-wrap:anywhere;border-bottom:1px solid #3d5a4c;padding:3px 4px}.summary th:first-child{text-align:left;width:34%;font-weight:400}.summary thead th,.summary tfoot td,.summary tfoot th:first-child{color:var(--gold);font-weight:700}.summary .mine{text-decoration:underline}@media (width<=640px){.summary table{font-size:.75rem}}@media (height<=500px){.summary{gap:4px}.summary h1{font-size:1.1rem}.summary table{font-size:.75rem;line-height:1.15}.summary th,.summary td{padding:1px 4px}.summary button{padding:2px 16px}}
