*{margin:0;padding:0;box-sizing:border-box}body{font-family:Segoe UI,Tahoma,Geneva,Verdana,sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}#root{min-height:100vh}.game-board{min-height:100vh;background:linear-gradient(135deg,#1a1a2e,#16213e,#0f3460);color:#fff;font-family:Segoe UI,Tahoma,Geneva,Verdana,sans-serif}.game-header{display:flex;justify-content:space-between;align-items:center;padding:1rem 2rem;background:#0000004d;border-bottom:2px solid rgba(255,215,0,.3)}.game-header h1{margin:0;font-size:2rem;background:linear-gradient(90deg,gold,#fa0);-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text}.new-game-btn{padding:.75rem 1.5rem;background:linear-gradient(135deg,#e94560,#c23a4f);border:none;border-radius:8px;color:#fff;font-size:1rem;font-weight:700;cursor:pointer;transition:transform .2s,box-shadow .2s}.new-game-btn:hover{transform:translateY(-2px);box-shadow:0 4px 15px #e9456066}.message-bar{padding:1rem 2rem;background:#0003;text-align:center;font-size:1.1rem}.pending-effect{color:gold;font-weight:700;animation:pulse 1.5s infinite}@keyframes pulse{0%,to{opacity:1}50%{opacity:.7}}.main-area{display:grid;grid-template-columns:1fr 300px;gap:1rem;padding:1rem;min-height:400px}.supply-area{background:#ffffff0d;border-radius:12px;padding:1rem}.supply-area h3{margin:0 0 1rem;color:gold;border-bottom:1px solid rgba(255,215,0,.3);padding-bottom:.5rem}.supply-section{margin-bottom:1rem}.supply-section h4{margin:0 0 .5rem;font-size:.9rem;color:#aaa}.supply-row{display:flex;gap:.5rem;flex-wrap:wrap}.supply-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(90px,1fr));gap:.5rem}.supply-pile{position:relative;cursor:pointer;transition:transform .2s}.supply-pile:hover:not(.disabled):not(.empty){transform:translateY(-5px)}.supply-pile.empty{opacity:.3}.supply-pile.disabled{cursor:not-allowed}.pile-count{position:absolute;bottom:5px;right:5px;background:#000c;color:#fff;padding:2px 8px;border-radius:10px;font-size:.8rem;font-weight:700}.card{width:120px;height:170px;border-radius:10px;padding:8px;display:flex;flex-direction:column;align-items:center;cursor:pointer;transition:transform .2s,box-shadow .2s;position:relative;box-shadow:0 4px 8px #0000004d}.card.small{width:80px;height:110px;padding:4px}.card:hover:not(.disabled){transform:translateY(-5px);box-shadow:0 8px 20px #0006}.card.selected{transform:translateY(-10px);box-shadow:0 0 20px #ffd70099;border:3px solid #ffd700}.card.disabled{cursor:not-allowed;opacity:.7}.card.treasure{background:linear-gradient(180deg,gold,#b8860b);border:2px solid #ffd700;color:#000}.card.victory{background:linear-gradient(180deg,#228b22,#006400);border:2px solid #32cd32;color:#fff}.card.action{background:linear-gradient(180deg,#4169e1,#00008b);border:2px solid #6495ed;color:#fff}.card.attack{background:linear-gradient(180deg,#dc143c,#8b0000);border:2px solid #ff6347;color:#fff}.card.reaction{background:linear-gradient(180deg,#4169e1,#191970);border:2px solid #00bfff;color:#fff}.card.curse{background:linear-gradient(180deg,indigo,#2f0040);border:2px solid #9400d3;color:#fff}.card-image{font-size:2.5rem;margin-bottom:4px}.card.small .card-image{font-size:1.5rem}.card-name{font-size:.8rem;font-weight:700;text-align:center;margin-bottom:4px}.card.small .card-name{font-size:.6rem}.card-cost{position:absolute;top:5px;left:5px;background:#000000b3;color:gold;width:22px;height:22px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:.8rem;font-weight:700}.card.small .card-cost{width:18px;height:18px;font-size:.7rem}.card-description{font-size:.65rem;text-align:center;line-height:1.2;overflow:hidden;flex:1}.card.small .card-description{font-size:.5rem;display:none}.play-area{background:#ffffff0d;border-radius:12px;padding:1rem;display:flex;flex-direction:column}.opponent-info{text-align:center;padding-bottom:.5rem;border-bottom:1px solid rgba(255,255,255,.1)}.opponent-info h3{margin:0}.player-stats{font-size:.8rem;color:#aaa}.current-play{flex:1;margin:1rem 0}.current-play h4{margin:0 0 .5rem;font-size:.9rem;color:#aaa}.played-cards{display:flex;flex-wrap:wrap;gap:.25rem;min-height:60px}.turn-info{text-align:center;padding:.5rem;background:#0003;border-radius:8px;margin-bottom:.5rem}.resources{display:flex;justify-content:center;gap:1rem;margin-bottom:.5rem}.resource{font-size:1.2rem;padding:.25rem .5rem;border-radius:4px}.resource.actions{background:#4169e14d}.resource.buys{background:#32cd324d}.resource.coins{background:#ffd7004d}.phase-indicator{font-size:.9rem;color:#aaa}.action-buttons{display:flex;flex-direction:column;gap:.5rem}.action-buttons button{padding:.75rem;background:linear-gradient(135deg,#4169e1,#2c4a9e);border:none;border-radius:8px;color:#fff;font-size:.9rem;cursor:pointer;transition:transform .2s,background .2s}.action-buttons button:hover{background:linear-gradient(135deg,#5a7fe8,#3d5bb8);transform:translateY(-2px)}.hand-area{padding:1rem 2rem;background:#0000004d;border-top:2px solid rgba(255,215,0,.2)}.hand-area h3{margin:0 0 1rem;text-align:center}.hand{display:flex;justify-content:center;gap:.5rem;flex-wrap:wrap;min-height:180px}.deck-info{display:flex;justify-content:center;gap:2rem;margin-top:1rem;color:#aaa}.game-over-overlay{position:fixed;inset:0;background:#000c;display:flex;align-items:center;justify-content:center;z-index:1000}.game-over-modal{background:linear-gradient(135deg,#1a1a2e,#16213e);padding:3rem;border-radius:20px;text-align:center;border:2px solid #ffd700;box-shadow:0 0 50px #ffd7004d}.game-over-modal h2{margin:0 0 1rem;font-size:2rem;color:gold}.final-score{font-size:1.5rem;margin-bottom:2rem}.game-over-modal button{padding:1rem 2rem;background:linear-gradient(135deg,gold,#fa0);border:none;border-radius:10px;color:#000;font-size:1.2rem;font-weight:700;cursor:pointer;transition:transform .2s}.game-over-modal button:hover{transform:scale(1.05)}.loading{display:flex;align-items:center;justify-content:center;min-height:100vh;font-size:1.5rem;color:gold}@media(max-width:900px){.main-area{grid-template-columns:1fr}.card{width:100px;height:140px}.card.small{width:70px;height:95px}.supply-grid{grid-template-columns:repeat(auto-fill,minmax(75px,1fr))}}@media(max-width:600px){.game-header{padding:.5rem 1rem}.game-header h1{font-size:1.5rem}.card{width:80px;height:110px}.card-image{font-size:1.8rem}.card-name{font-size:.7rem}.hand-area{padding:1rem}}
