:root{--primary-color:#3498db;--secondary-color:#e74c3c;--text-color:#333;--bg-color:#f9f9f9}body{text-align:center;background:var(--party-background,var(--bg-color,#f9f9f9));color:var(--text-color,#333);margin:0;padding:.1rem;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica,Arial,sans-serif}h1{color:var(--primary-color,#2c3e50);margin-bottom:1.5rem}.party-form{background:#fff;border-radius:8px;flex-direction:column;align-items:center;gap:1rem;padding:2rem;display:inline-flex;box-shadow:0 4px 6px rgba(0,0,0,.1)}.party-form label{font-weight:600}.party-form input{border:1px solid #ccc;border-radius:4px;width:250px;max-width:100%;padding:.5rem 1rem;font-size:1rem}.party-form input:invalid{border-color:var(--secondary-color,#e74c3c)}.party-form button{background:var(--button-bg,var(--party-background,var(--primary-color,#3498db)));color:var(--button-text,var(--text-color,white));cursor:pointer;border:none;border-radius:4px;padding:.5rem 1.5rem;font-size:1rem;transition:background-color .2s,filter .2s}.party-form button:hover{filter:brightness(.9)saturate(1.2)}.party-container,.error-container{background:#fff;border-radius:8px;margin-top:2rem;padding:2rem;display:inline-block;box-shadow:0 4px 6px rgba(0,0,0,.1)}.party-container h2,.error-container h2{color:var(--secondary-color,#e74c3c)}.party-container a,.error-container a{color:var(--primary-color,#3498db);margin-top:1.5rem;font-weight:600;text-decoration:none;display:inline-block}.party-container a:hover,.error-container a:hover{text-decoration:underline}.party-page{text-align:left;z-index:1;background:var(--party-background,transparent);grid-template-columns:1fr;min-height:100vh;display:grid;position:relative}.backdrop-overlay{z-index:-1;background-position:50%;background-size:cover;position:absolute;inset:0}.backdrop-overlay:after{content:"";background:var(--party-background,var(--bg-color));opacity:.85;position:absolute;inset:0}.menu-toggle{background:var(--button-bg,var(--party-background,var(--primary-color,#3498db)));color:var(--button-text,var(--text-color,white));cursor:pointer;border:none;border-radius:4px;width:max-content;margin:1rem 1rem 0;padding:.5rem 1rem;transition:filter .2s;display:block}.menu-toggle:hover{filter:brightness(.9)saturate(1.2)}.close-sidebar{background-color:var(--secondary-color,#e74c3c);color:#fff;cursor:pointer;border:none;border-radius:4px;margin-bottom:1rem;padding:.5rem 1rem;transition:filter .2s;display:block}.close-sidebar:hover{filter:brightness(.9)saturate(1.2)}.party-sidebar{background-color:#fff;border-right:1px solid #ccc;padding:1rem;display:none}.party-sidebar.open{z-index:1000;width:280px;display:block;position:fixed;top:0;bottom:0;left:0;box-shadow:2px 0 10px rgba(0,0,0,.2)}.party-sidebar h3{color:#2c3e50;margin-top:0;font-size:1.2rem}.party-sidebar hr{border:0;border-top:1px solid #eee;margin:1.5rem 0}.party-sidebar a{color:var(--primary-color,#3498db);font-weight:600;text-decoration:none}.party-sidebar a:hover{text-decoration:underline}@media (width>=1024px){.party-page{grid-template-columns:300px 1fr}.menu-toggle,.close-sidebar{display:none}.party-sidebar{width:auto;box-shadow:none;position:static;display:block!important}}.join-party-form{margin-bottom:1rem}.join-party-form div{margin-bottom:.5rem}.join-party-form div label{margin-bottom:.25rem;font-weight:600;display:block}.join-party-form div input{box-sizing:border-box;border:1px solid #ccc;border-radius:4px;width:100%;padding:.5rem;font-size:1rem}.join-party-form div input:focus{border-color:var(--primary-color,#3498db);outline:none}.join-party-form button{background:var(--button-bg,var(--party-background,var(--primary-color,#3498db)));width:100%;color:var(--button-text,var(--text-color,white));cursor:pointer;border:none;border-radius:4px;padding:.5rem;font-size:1rem;transition:background-color .2s,filter .2s}.join-party-form button:hover{filter:brightness(.9)saturate(1.2)}.join-party-form button:disabled{filter:none;cursor:not-allowed;background-color:#bdc3c7}.join-party-form .success{color:#27ae60;margin-top:.5rem;font-size:.9rem}.join-party-form .error{color:var(--secondary-color,#e74c3c);margin-top:.5rem;font-size:.9rem}.player-list ul{margin:0;padding:0;list-style:none}.player-list ul li{color:#34495e;border-bottom:1px solid #eee;padding:.5rem}.player-list ul li:last-child{border-bottom:none}.player-list .no-players{color:#7f8c8d;font-style:italic}.party-content{padding:0 2rem 2rem}.sidebar-backdrop{z-index:999;cursor:pointer;background:rgba(0,0,0,.4);animation:.2s ease-out fadeIn;position:fixed;inset:0}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}.voting-interface{max-width:800px;margin:0 auto}.vote-item-view{outline:none}.vote-item-view .progress{color:#7f8c8d;margin-bottom:1rem;font-size:.9rem;font-weight:600}.vote-item-view .item-card{background:var(--vote-item-bg,white);color:var(--vote-item-text,inherit);border-radius:8px;margin-bottom:2rem;padding:1.5rem;box-shadow:0 4px 6px rgba(0,0,0,.1)}.vote-item-view .item-card .item-image{object-fit:cover;border-radius:4px;width:100%;max-width:100%;height:auto;max-height:300px;margin-bottom:1rem}.vote-item-view .item-card h2{color:var(--vote-item-text,#2c3e50);margin-top:0}.vote-item-view .item-card .description{color:var(--vote-item-text,#34495e);line-height:1.5}.vote-item-view .vote-options{grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:1rem;margin-bottom:2rem;display:grid}.vote-item-view .vote-btn{background:var(--button-bg,white);border:2px solid var(--primary-color,#3498db);color:var(--button-text,var(--primary-color,#3498db));cursor:pointer;border-radius:8px;justify-content:center;align-items:center;gap:.75rem;padding:1rem;font-size:1.1rem;font-weight:600;transition:all .2s;display:flex}.vote-item-view .vote-btn:hover:not(:disabled){background-color:color-mix(in srgb,var(--primary-color,#3498db),transparent 92%)}.vote-item-view .vote-btn.selected{background:var(--button-bg,var(--party-background,var(--primary-color,#3498db)));color:var(--button-text,var(--text-color,white))}.vote-item-view .vote-btn.selected:hover:not(:disabled){background:var(--button-bg,var(--party-background,var(--primary-color,#3498db)));filter:brightness(.9)saturate(1.2)}.vote-item-view .vote-btn:disabled{opacity:.6;cursor:not-allowed}.vote-item-view .vote-btn .key-hint{background:rgba(0,0,0,.1);border-radius:3px;min-width:1.2rem;padding:.1rem .4rem;font-size:.8rem;display:inline-block}.vote-item-view .vote-actions{justify-content:space-between;align-items:center;gap:1rem;margin:1.5rem 0;display:flex}.vote-item-view .vote-actions button{cursor:pointer;border-radius:4px;padding:.5rem 1rem;font-weight:600;transition:all .2s}.vote-item-view .vote-actions .prev-btn{color:#7f8c8d;background:#ecf0f1;border:1px solid #bdc3c7}.vote-item-view .vote-actions .prev-btn:disabled{opacity:.5;cursor:not-allowed}.vote-item-view .vote-actions .prev-btn:hover:not(:disabled){filter:brightness(.9)}.vote-item-view .vote-actions .skip-btn{color:#7f8c8d;background:0 0;border:1px solid transparent}.vote-item-view .vote-actions .skip-btn:hover{color:#2c3e50;text-decoration:underline}.vote-item-view .vote-actions .next-btn{background:var(--button-bg,var(--party-background,var(--primary-color,#3498db)));color:var(--button-text,var(--text-color,white));border:none}.vote-item-view .vote-actions .next-btn:hover{filter:brightness(.9)saturate(1.2)}.vote-results .review-btn{border:1px solid var(--primary-color,#3498db);color:var(--primary-color,#3498db);cursor:pointer;background:0 0;border-radius:4px;margin-top:2rem;padding:.5rem 1.5rem}.vote-results .review-btn:hover{background-color:color-mix(in srgb,var(--primary-color,#3498db),transparent 92%)}.results-table{border-collapse:collapse;background:#fff;border-radius:8px;width:100%;margin-top:1rem;overflow:hidden;box-shadow:0 4px 6px rgba(0,0,0,.1)}.results-table th,.results-table td{text-align:left;border-bottom:1px solid #eee;padding:1rem}.results-table th{color:#2c3e50;background-color:#f4f6f8;font-weight:600}.results-table tr:last-child td{border-bottom:none}@media (width<=767px){.results-table{box-shadow:none;background:0 0;display:block}.results-table thead{display:none}.results-table tbody{display:block}.results-table tr{background:#fff;border-radius:8px;margin-bottom:1rem;padding:1rem;display:block;box-shadow:0 2px 4px rgba(0,0,0,.1)}.results-table td{border-bottom:1px solid #eee;justify-content:space-between;align-items:center;padding:.5rem 0;display:flex}.results-table td:last-child{border-bottom:none}.results-table td:before{content:attr(data-label);color:#7f8c8d;margin-right:1rem;font-weight:600}}.chat-interface{background:var(--chat-bg,white);color:var(--chat-text,inherit);border-radius:8px;flex-direction:column;max-width:600px;margin-top:1rem;margin-left:auto;margin-right:auto;display:flex;overflow:hidden;box-shadow:0 4px 6px rgba(0,0,0,.1)}.chat-history{flex-direction:column;flex:1;gap:.5rem;min-height:150px;max-height:300px;padding:1rem;display:flex;overflow-y:auto}.chat-history .chat-empty{color:var(--chat-text,#7f8c8d);text-align:center;margin-top:2rem;font-style:italic}.chat-message{word-break:break-word;background:#f1f0f0;border-radius:12px 12px 12px 0;align-self:flex-start;max-width:85%;padding:.5rem .75rem}.chat-message.own{background:var(--button-bg,var(--party-background,var(--primary-color,#3498db)));color:var(--button-text,var(--text-color,white));border-radius:12px 12px 0;align-self:flex-end}.chat-message.own .sender{color:rgba(255,255,255,.8)}.chat-message .sender{color:#7f8c8d;margin-bottom:.1rem;font-size:.75rem;font-weight:600;display:block}.chat-message .text{font-size:.9rem;line-height:1.4}.chat-input-form{border-top:1px solid #eee;flex-direction:column;gap:.5rem;padding:.75rem;display:flex}.chat-input-form input{box-sizing:border-box;border:1px solid #ccc;border-radius:4px;width:100%;padding:.5rem .75rem;font-size:.9rem}.chat-input-form input:focus{border-color:var(--primary-color,#3498db);outline:none}.chat-input-form input:disabled{cursor:not-allowed;background:#f9f9f9}.chat-input-form .input-controls{justify-content:space-between;align-items:center;display:flex}.chat-input-form .input-controls .char-counter{color:var(--chat-text,#7f8c8d);font-size:.75rem}.chat-input-form .input-controls .char-counter.near-limit{color:var(--secondary-color,#e74c3c);font-weight:700}.chat-input-form .input-controls button{background:var(--button-bg,var(--party-background,var(--primary-color,#3498db)));color:var(--button-text,var(--text-color,white));cursor:pointer;border:none;border-radius:4px;padding:.3rem 1rem;font-weight:600;transition:all .2s}.chat-input-form .input-controls button:hover:not(:disabled){filter:brightness(.9)saturate(1.2)}.chat-input-form .input-controls button:disabled{filter:none;cursor:not-allowed;background:#bdc3c7}