:root{--bg: #0f0d1a;--bg-elev: #1a1628;--bg-elev-2: #221c35;--border: #2d2645;--text: #ece8ff;--text-muted: #a89fc9;--accent: #d4af37;--accent-soft: #e8c86a;--tutorial: #3b82f6;--tutorial-soft: #60a5fa;--inspiration: #9b1d3a;--inspiration-soft: #c2334f;--danger: #dc2626;--success: #16a34a;--shadow: 0 10px 40px -10px rgba(0, 0, 0, .6)}*{box-sizing:border-box}html,body,#root{margin:0;padding:0;height:100%;background:radial-gradient(ellipse at top,#1e1937 0%,var(--bg) 50%,#070510 100%);color:var(--text);font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,sans-serif;font-size:16px;line-height:1.5}button{font-family:inherit;font-size:1rem;cursor:pointer;border:none;border-radius:10px;padding:.75rem 1.25rem;transition:all .15s ease;color:inherit;background:transparent}button:disabled{opacity:.5;cursor:not-allowed}button.primary{background:linear-gradient(135deg,var(--accent),var(--accent-soft));color:#1a1410;font-weight:600;box-shadow:0 4px 20px -4px #d4af3766}button.primary:hover:not(:disabled){transform:translateY(-1px);box-shadow:0 6px 24px -4px #d4af3780}button.danger{background:#dc262626;color:#fca5a5;border:1px solid rgba(220,38,38,.4)}button.danger:hover:not(:disabled){background:#dc262640}button.ghost{color:var(--text-muted);padding:.5rem .75rem}button.ghost:hover{color:var(--text);background:#ffffff0d}button.ghost.danger{color:#f87171}button.ghost.danger:hover{color:#fca5a5;background:#dc262626}button.big{font-size:1.25rem;padding:1rem 2rem;min-width:8rem}input,select{font-family:inherit;font-size:1rem;background:var(--bg-elev);border:1px solid var(--border);border-radius:10px;padding:.75rem 1rem;color:var(--text);transition:border-color .15s ease;width:100%}input:focus{outline:none;border-color:var(--accent)}.home{min-height:100vh;display:flex;align-items:center;justify-content:center;padding:2rem 1rem}.home-card{width:100%;max-width:480px;background:var(--bg-elev);border:1px solid var(--border);border-radius:20px;padding:2.5rem;box-shadow:var(--shadow)}.title{font-family:Cormorant Garamond,Georgia,serif;font-size:2.5rem;font-weight:600;margin:0 0 .5rem;background:linear-gradient(135deg,var(--accent-soft),var(--accent));-webkit-background-clip:text;background-clip:text;color:transparent;text-align:center;letter-spacing:.01em}.subtitle{text-align:center;color:var(--text-muted);margin:0 0 2rem}.tabs{display:flex;background:var(--bg-elev-2);border-radius:10px;padding:4px;margin-bottom:1.5rem}.tab{flex:1;background:transparent;color:var(--text-muted);padding:.6rem 1rem;border-radius:8px;font-weight:500}.tab.active{background:var(--bg);color:var(--text)}.form{display:flex;flex-direction:column;gap:1.25rem}.field{display:flex;flex-direction:column;gap:.4rem}.field>span,.field>legend{font-size:.875rem;font-weight:500;color:var(--text-muted)}.field.duration{border:none;padding:0;margin:0}.duration{display:flex;flex-direction:column;gap:.5rem}.duration>legend{margin-bottom:.5rem}.pill{display:flex;flex-direction:column;padding:.75rem 1rem;background:var(--bg-elev-2);border:1px solid var(--border);border-radius:10px;cursor:pointer;transition:all .15s ease}.pill:hover{border-color:var(--accent)}.pill.active{border-color:var(--accent);background:#d4af3714}.pill>input[type=radio]{display:none}.pill>span{font-weight:600}.pill>small{color:var(--text-muted);font-size:.8rem}.code-input{text-transform:uppercase;letter-spacing:.25em;text-align:center;font-size:1.25rem;font-weight:600}.error{color:#fca5a5;margin:0;font-size:.9rem}.hint{color:var(--text-muted);margin:0}.hint.small{font-size:.85rem}.room{min-height:100vh;display:flex;flex-direction:column;padding:1rem 1.5rem 2rem;max-width:1200px;margin:0 auto;width:100%}.room-header{display:flex;justify-content:space-between;align-items:center;padding:.5rem 0 1rem}.room-meta{display:flex;gap:1rem;align-items:center}.phase{background:var(--bg-elev-2);padding:.3rem .8rem;border-radius:999px;font-size:.85rem;font-weight:600;border:1px solid var(--border)}.remaining{color:var(--text-muted);font-size:.85rem}.share-bar{display:flex;flex-wrap:wrap;gap:1.5rem;padding:1rem 1.25rem;background:var(--bg-elev);border:1px solid var(--border);border-radius:14px;align-items:center;margin-bottom:1.5rem}.share-bar .label{display:block;font-size:.75rem;color:var(--text-muted);text-transform:uppercase;letter-spacing:.1em;margin-bottom:.2rem}.code-pill{background:var(--bg-elev-2);border:1px solid var(--border);padding:.5rem 1rem;font-family:JetBrains Mono,Courier New,monospace;font-weight:700;letter-spacing:.25em;font-size:1.1rem;color:var(--accent-soft);border-radius:8px}.code-pill:hover{border-color:var(--accent)}.link-pill{background:var(--bg-elev-2);border:1px solid var(--border);padding:.5rem 1rem;border-radius:8px;color:var(--text-muted);font-size:.9rem;max-width:28rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.link-pill:hover{border-color:var(--accent);color:var(--text)}.copied{color:var(--success);font-size:.85rem}.room-main{display:grid;grid-template-columns:1fr 280px;gap:1.5rem;flex:1;min-height:0}@media (max-width: 840px){.room-main{grid-template-columns:1fr}}.stage{display:flex;flex-direction:column;gap:1.5rem;align-items:stretch}.card-display{position:relative;background:linear-gradient(180deg,var(--bg-elev),var(--bg-elev-2));border:1px solid var(--border);border-radius:20px;padding:3rem 2rem;min-height:280px;display:flex;flex-direction:column;justify-content:center;box-shadow:var(--shadow)}.card-display.tutorial{border-color:var(--tutorial);background:linear-gradient(180deg,rgba(59,130,246,.08),var(--bg-elev-2))}.card-display.inspiration{border-color:var(--inspiration);background:linear-gradient(180deg,rgba(155,29,58,.12),var(--bg-elev-2))}.card-display.empty{border-style:dashed;justify-content:center;align-items:center;min-height:220px}.card-display.xed:after{content:"";position:absolute;top:0;right:0;bottom:0;left:0;background:repeating-linear-gradient(45deg,rgba(220,38,38,.1),rgba(220,38,38,.1) 10px,transparent 10px,transparent 20px);border-radius:inherit;pointer-events:none}.xed-badge{position:absolute;top:1rem;right:1rem;background:var(--danger);color:#fff;width:2rem;height:2rem;display:flex;align-items:center;justify-content:center;border-radius:50%;font-weight:700}.card-kicker{font-size:.75rem;text-transform:uppercase;letter-spacing:.15em;color:var(--text-muted);margin-bottom:1rem}.card-title{font-family:Cormorant Garamond,Georgia,serif;font-size:2rem;margin:0 0 1rem;font-weight:600;color:var(--accent-soft)}.card-content{font-size:1.25rem;line-height:1.6;margin:0}.card-footer{margin-top:1.5rem;font-size:.85rem;color:var(--text-muted);font-style:italic}.placeholder{color:var(--text-muted);font-style:italic}.actions{display:flex;flex-wrap:wrap;gap:.75rem;align-items:center}.lobby{background:var(--bg-elev);border:1px solid var(--border);border-radius:20px;padding:2rem;text-align:center}.lobby h2{margin-top:0;font-family:Cormorant Garamond,Georgia,serif;font-weight:600}.player-list{background:var(--bg-elev);border:1px solid var(--border);border-radius:20px;padding:1.25rem;height:fit-content}.player-list h3{margin:0 0 1rem;font-size:.9rem;text-transform:uppercase;letter-spacing:.1em;color:var(--text-muted)}.player-list ul{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:.5rem}.player{display:flex;align-items:center;gap:.6rem;padding:.6rem .75rem;border-radius:10px;background:var(--bg-elev-2);font-size:.95rem;flex-wrap:wrap}.player.current{background:#d4af371f;border:1px solid rgba(212,175,55,.4)}.player.offline{opacity:.6}.player .dot{width:8px;height:8px;border-radius:50%;background:var(--success);flex-shrink:0}.player.offline .dot{background:var(--text-muted)}.player .name{flex:1;font-weight:500}.player .you{color:var(--text-muted);font-weight:400}.badges{display:flex;gap:.3rem;flex-wrap:wrap}.badge{font-size:.7rem;padding:.15rem .5rem;border-radius:999px;text-transform:uppercase;letter-spacing:.05em;font-weight:600}.badge.host{background:#d4af3733;color:var(--accent-soft)}.badge.turn{background:var(--accent);color:#1a1410}.badge.voted{background:#16a34a33;color:#86efac}.badge.offline{background:#ffffff14;color:var(--text-muted)}.badge.danger{background:var(--danger);color:#fff}.vote-panel{background:linear-gradient(180deg,rgba(155,29,58,.18),var(--bg-elev-2));border:1px solid var(--inspiration);border-radius:20px;padding:2.5rem 2rem;text-align:center;box-shadow:var(--shadow)}.vote-question h2{font-family:Cormorant Garamond,Georgia,serif;font-size:2.25rem;margin:0 0 .5rem;color:var(--accent-soft)}.vote-question p{font-size:1.5rem;margin:0 0 2rem}.vote-buttons{display:flex;gap:1rem;justify-content:center;margin-bottom:1rem}.vote-results .tallies{display:flex;gap:2rem;justify-content:center;margin:1.5rem 0}.tally{background:var(--bg-elev);border:1px solid var(--border);border-radius:14px;padding:1.5rem 2rem;min-width:8rem}.tally.yes{border-color:var(--success)}.tally.no{border-color:var(--danger)}.tally .count{display:block;font-size:3rem;font-weight:700;font-family:Cormorant Garamond,Georgia,serif}.tally .label{display:block;color:var(--text-muted);text-transform:uppercase;letter-spacing:.1em;font-size:.85rem}.votes-list{list-style:none;padding:0;max-width:24rem;margin:1.5rem auto 0;display:flex;flex-direction:column;gap:.4rem}.votes-list li{display:flex;justify-content:space-between;align-items:center;padding:.5rem .75rem;background:var(--bg-elev);border-radius:8px}.chip{padding:.2rem .6rem;border-radius:999px;font-size:.8rem;font-weight:600}.chip.yes{background:#16a34a33;color:#86efac}.chip.no{background:#dc262633;color:#fca5a5}.history{margin-top:1.5rem}.history-toggle{background:var(--bg-elev);border:1px solid var(--border);color:var(--text-muted);width:100%;text-align:left;padding:.75rem 1rem}.history-toggle:hover{color:var(--text);border-color:var(--accent)}.history-list{list-style:none;margin:1rem 0 0;padding:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:.75rem}.history-list li{background:var(--bg-elev);border:1px solid var(--border);border-radius:12px;padding:.75rem 1rem;font-size:.9rem}.history-list li.xed{opacity:.6;text-decoration:line-through}.hist-meta{display:flex;justify-content:space-between;align-items:center;gap:.5rem;margin-bottom:.4rem;font-size:.75rem;color:var(--text-muted);text-transform:uppercase;letter-spacing:.05em}.hist-title{font-weight:600;margin-bottom:.2rem}.hist-content{color:var(--text-muted);font-size:.85rem}.history-list li.empty{grid-column:1 / -1;text-align:center;color:var(--text-muted);text-decoration:none}
