*{margin:0;padding:0;box-sizing:border-box}body{font-family:system-ui,sans-serif;background:#1a1a4e;color:#fff;min-height:100vh;display:flex;flex-direction:column;align-items:stretch;padding:2rem 2rem 5rem}#app{width:100%;display:flex;flex-direction:column;align-items:stretch}h1{text-align:center;margin-bottom:2rem;font-size:2rem}.cards-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:1.5rem;width:100%}.card{background:linear-gradient(145deg,#16213e,#0f3460);border:2px solid #e94560;border-radius:12px;padding:1.5rem;text-align:center;transition:transform .2s}.card:hover{transform:translateY(-4px)}.card-image{width:100%;height:150px;object-fit:cover;border-radius:8px;margin-bottom:.75rem}.card-image[data-ability]{cursor:pointer}.ability-tooltip{display:none;position:absolute;z-index:9999;width:220px;background:#0f3460;border:1px solid #e94560;border-radius:8px;padding:.6rem .75rem;box-shadow:0 4px 16px #0009;pointer-events:auto}.ability-tooltip.visible{display:block}.ability-tooltip-title{font-weight:700;font-size:.9rem;color:gold;margin-bottom:.3rem}.ability-tooltip-desc{font-size:.8rem;color:#cdd5e0;line-height:1.4}.card-era{font-size:.75rem;text-transform:uppercase;letter-spacing:.1em;color:#e94560;margin-bottom:.5rem}.card-name{font-size:1.25rem;font-weight:700;margin-bottom:1rem}.card-stats{display:flex;justify-content:space-around}.attack{color:#ff500f;font-weight:700}.defense{color:green;font-weight:700}nav{position:fixed;bottom:0;left:0;width:100%;background-color:#16213e;border-top:2px solid #e94560;z-index:100}nav ul{list-style:none;margin:0;padding:0;display:flex;width:100%}nav ul li{flex:1}nav ul li a{display:block;color:#aaa;text-align:center;padding:14px 8px;text-decoration:none;font-size:.85rem;transition:color .2s,background .2s}nav ul li a:hover{color:#fff;background-color:#e9456026}.auth-container{display:flex;justify-content:center;align-items:center;min-height:70vh;width:100%}.auth-box{background:linear-gradient(145deg,#16213e,#0f3460);border:2px solid #e94560;border-radius:16px;padding:2.5rem;width:100%;max-width:400px}.auth-tabs{display:flex;margin-bottom:2rem;border-bottom:2px solid #e94560}.auth-tab{flex:1;background:none;border:none;color:#aaa;font-size:1rem;padding:.75rem;cursor:pointer;transition:color .2s}.auth-tab.active{color:#fff;font-weight:700;border-bottom:3px solid #e94560;margin-bottom:-2px}.form-group{display:flex;flex-direction:column;gap:.4rem;margin-bottom:1.25rem}.form-group label{font-size:.9rem;color:#ccc}.form-group input{background:#0a0a2e;border:1px solid #333;border-radius:8px;color:#fff;font-size:1rem;padding:.65rem .9rem;outline:none;transition:border-color .2s}.form-group input:focus{border-color:#e94560}.btn-primary{width:100%;background:#e94560;border:none;border-radius:8px;color:#fff;cursor:pointer;font-size:1rem;font-weight:700;padding:.75rem;margin-top:.5rem;transition:opacity .2s}.btn-primary:hover{opacity:.85}.btn-primary:disabled{opacity:.5;cursor:not-allowed}.auth-error{color:#e94560;font-size:.875rem;min-height:1.25rem;margin-bottom:.5rem}.nav-logout-btn{background:none;border:none;color:#e94560;cursor:pointer;font-size:.85rem;padding:14px 8px;width:100%;transition:color .2s,background .2s}.nav-logout-btn:hover{color:#fff;background-color:#e9456026}.deck-page{display:flex;gap:2rem;width:100%;align-items:flex-start}.deck-left{flex:1}.deck-left h2,.deck-right h2{margin-bottom:1rem;font-size:1.25rem}.era-section{margin-bottom:2rem}.era-section-title{font-size:1rem;font-weight:700;text-transform:uppercase;letter-spacing:.08em;color:#e94560;padding:.35rem .75rem;border-left:3px solid #e94560;margin-bottom:.75rem;background:#e9456012}.era-cards-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(160px,1fr));gap:.75rem}.deck-right{width:280px;position:sticky;top:1rem;background:linear-gradient(145deg,#16213e,#0f3460);border:2px solid #e94560;border-radius:12px;padding:1.5rem}.deck-count{font-size:.9rem;color:#e94560;margin-left:.5rem}.deck-slots{display:flex;flex-direction:column;gap:.5rem}.deck-slot{display:flex;align-items:center;gap:.75rem;background:#0a0a2e;border-radius:8px;padding:.5rem}.deck-slot-img{width:40px;height:40px;object-fit:cover;border-radius:6px}.deck-slot-name{flex:1;font-size:.875rem}.deck-remove-btn{background:none;border:none;color:#e94560;cursor:pointer;font-size:1rem;padding:0 4px}.deck-empty{color:#888;font-size:.9rem;text-align:center;padding:1rem 0}.deck-error{color:#e94560;font-size:.85rem;min-height:1.25rem;margin-top:.75rem;text-align:center}.deck-card{background:linear-gradient(145deg,#16213e,#0f3460);border:2px solid #333;border-radius:12px;padding:1.5rem;text-align:center;transition:transform .2s,border-color .2s}.deck-card:hover{transform:translateY(-4px)}.deck-card.in-deck{border-color:#e94560}.deck-toggle-btn{margin-top:.75rem;background:none;border:1px solid #e94560;border-radius:6px;color:#e94560;cursor:pointer;font-size:.85rem;padding:4px 12px;transition:background .2s,color .2s;width:100%}.deck-toggle-btn:hover,.deck-card.in-deck .deck-toggle-btn{background:#e94560;color:#fff}.deck-card.in-deck .deck-toggle-btn:hover{background:none;color:#e94560}.battle-setup{display:flex;flex-direction:column;align-items:center;gap:1.25rem;width:100%}.battle-info{color:#aaa;text-align:center}.battle-info a{color:#e94560;text-decoration:underline}.opponent-list{background:linear-gradient(145deg,#16213e,#0f3460);border:2px solid #e94560;border-radius:12px;padding:1.25rem 1.5rem;width:100%;display:flex;flex-direction:column;gap:.75rem}.opponent-list>p{color:#ccc;font-size:.9rem;margin-bottom:.25rem}.opponent-option{display:flex;align-items:center;gap:.6rem;cursor:pointer;font-size:1rem;padding:.4rem .5rem;border-radius:6px;transition:background .15s}.opponent-option:hover{background:#e945601a}.opponent-option input[type=radio]{accent-color:#e94560;width:16px;height:16px}.battle-error{color:#e94560;font-size:.875rem;min-height:1.25rem;text-align:center}.battle-mode-selector{display:flex;gap:.75rem;width:100%}.mode-option{flex:1;display:flex;align-items:center;justify-content:center;gap:.5rem;padding:.75rem 1rem;border:2px solid #333;border-radius:10px;cursor:pointer;font-size:.95rem;transition:border-color .2s,background .2s;background:linear-gradient(145deg,#16213e,#0f3460)}.mode-option input[type=radio]{accent-color:#e94560}.mode-option.active{border-color:#e94560;background:#e945601a}.ai-options{background:linear-gradient(145deg,#16213e,#0f3460);border:2px solid #e94560;border-radius:12px;padding:1.25rem 1.5rem;width:100%;display:flex;flex-direction:column;gap:.75rem}.ai-difficulty-label{color:#ccc;font-size:.9rem}.difficulty-buttons{display:flex;flex-direction:column;gap:.6rem;width:100%}.difficulty-btn{width:100%;background:#ffffff0d;border:2px solid #555;border-radius:10px;color:#ddd;cursor:pointer;font-size:1rem;font-weight:600;padding:.75rem 1rem;transition:border-color .2s,color .2s,background .2s;text-align:left}.difficulty-btn.active{border-color:#e94560;color:#fff;background:#e9456033}.difficulty-btn:hover:not(.active):not(:disabled){border-color:#999;color:#fff;background:#ffffff14}.battle-arena{display:flex;flex-direction:column;align-items:center;gap:1.25rem;width:100%}.player-area{display:flex;flex-direction:column;gap:.75rem;width:100%}.player-area.opponent{opacity:.85}.player-info-row{display:flex;flex-direction:column;gap:.3rem}.hp-name{font-weight:700;font-size:.95rem}.you-label{font-weight:400;font-size:.8rem;color:#aaa}.hp-bar-wrap{background:#0a0a2e;border-radius:6px;height:10px;width:100%;overflow:hidden}.hp-bar{height:100%;border-radius:6px;transition:width .4s ease,background .4s ease}.hp-label{font-size:.8rem;color:#ccc}.battle-divider{display:flex;align-items:center;gap:.75rem;width:100%}.battle-divider:before,.battle-divider:after{content:"";flex:1;height:1px;background:#e9456059}.battle-round{font-size:1rem;font-weight:700;color:#e94560;white-space:nowrap}.opponent-cards{pointer-events:none}.card-back{background:linear-gradient(145deg,#0f3460,#16213e);border:2px solid #e94560;border-radius:12px;height:130px;display:flex;align-items:center;justify-content:center;-webkit-user-select:none;user-select:none}.card-back:after{content:"?";font-size:3rem;font-weight:700;color:#e945604d}.battle-hps{display:flex;align-items:center;justify-content:space-between;width:100%;gap:1rem}.battle-player-hp{display:flex;flex-direction:column;gap:.4rem;flex:1}.battle-player-hp.right{align-items:flex-end}.battle-player-hp.right .hp-label{text-align:right}.battle-pick-header{text-align:center}.battle-pick-header h2{margin-bottom:.25rem}.battle-cards-grid{display:grid;grid-template-columns:repeat(4,minmax(120px,1fr));gap:.6rem;width:100%}.battle-cards-grid .card-image{width:100%;aspect-ratio:4 / 3;object-fit:cover;border-radius:6px}.battle-card{background:linear-gradient(145deg,#16213e,#0f3460);border:2px solid #333;border-radius:12px;padding:.75rem;text-align:center;transition:transform .2s,border-color .2s;min-width:0}.battle-card.selectable{cursor:pointer}.battle-card.selectable:hover{transform:translateY(-4px);border-color:#e94560}.battle-card.selected{border-color:#e94560;box-shadow:0 0 12px #e9456080}.battle-pick-hint{color:#aaa;font-size:.9rem;text-align:center}.mana-display{font-size:.9rem;font-weight:700;color:#a78bfa;white-space:nowrap}.card-mana-cost{position:absolute;top:6px;right:6px;background:#4c1d95;color:#c4b5fd;border-radius:6px;font-size:.75rem;font-weight:700;padding:2px 6px;line-height:1.4}.battle-card{position:relative}.card-durability{font-size:.75rem;color:#fbbf24;margin-top:.4rem}.battle-card.unaffordable{opacity:.4;cursor:not-allowed;pointer-events:none}.battle-card.active-on-field{border-color:#fbbf24;box-shadow:0 0 10px #fbbf2466;position:relative}.durability-badge{background:#78350f;color:#fbbf24;border-radius:6px;font-size:.75rem;font-weight:700;padding:2px 8px;text-align:center;margin-bottom:.4rem}.durability-badge.active{background:#fbbf2426;border:1px solid #fbbf24;font-size:.85rem;padding:4px 10px;margin-top:.5rem}.active-card-zone{display:flex;flex-direction:column;align-items:center;gap:.5rem;width:100%}.active-label{color:#fbbf24;font-size:.85rem;font-weight:700;text-align:center}.active-card-wrap{display:flex;flex-direction:column;align-items:center}.card-active-status{font-size:.85rem;font-weight:700}.card-active-status.still-active{color:#fbbf24}.card-active-status.expired{color:#9ca3af}.battle-handoff{display:flex;flex-direction:column;align-items:center;gap:1.25rem;padding:3rem 1rem;text-align:center}.handoff-name{font-size:2rem;font-weight:700;color:#e94560}.battle-reveal{display:flex;align-items:flex-start;justify-content:center;gap:1.5rem;width:100%;flex-wrap:wrap}.reveal-player{display:flex;flex-direction:column;align-items:center;gap:.75rem;flex:1;min-width:180px}.reveal-player h3{font-size:1rem;color:#ccc}.reveal-damage{font-size:1.25rem;font-weight:700}.reveal-damage.took-damage{color:#e94560}.reveal-damage.no-damage{color:#4caf50}.reveal-vs{display:flex;flex-direction:column;align-items:center;gap:1rem;padding-top:2.5rem}.vs-badge{font-size:1.75rem;font-weight:700;color:#e94560;background:#0a0a2e;border:2px solid #e94560;border-radius:50%;width:52px;height:52px;display:flex;align-items:center;justify-content:center}.reveal-calc{background:#ffffff0d;border-radius:8px;padding:.75rem 1rem;font-size:.85rem;color:#ccc;text-align:center;line-height:1.6}.battle-gameover{display:flex;flex-direction:column;align-items:center;gap:2rem;padding:2rem 1rem;text-align:center}.winner-badge{font-size:2rem;font-weight:700;color:gold;background:linear-gradient(145deg,#16213e,#0f3460);border:2px solid #ffd700;border-radius:12px;padding:1rem 2rem}.winner-badge.draw{color:#aaa;border-color:#aaa}.final-hps{display:flex;flex-direction:column;gap:1rem;width:100%}.final-hp{display:flex;flex-direction:column;gap:.4rem}.final-hp>span{font-weight:700;font-size:.95rem}.card-ability{margin-top:.4rem;font-size:.7rem;font-weight:600;color:gold;background:#ffd7001f;border:1px solid rgba(255,215,0,.3);border-radius:6px;padding:.2rem .4rem;text-align:center;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ability-msg{font-size:.8rem;color:gold;font-style:italic;margin:.1rem 0}.guest-hero{display:flex;flex-direction:column;align-items:center;text-align:center;gap:1rem;padding:2.5rem 1rem 2rem;background:linear-gradient(145deg,#0f3460,#16213e);border:2px solid #e94560;border-radius:16px;width:100%;margin-bottom:2rem}.guest-hero h1{margin-bottom:0;font-size:2.5rem}.guest-subtitle{color:#ccc;font-size:1rem}.guest-play-btn{font-size:1.15rem;padding:.85rem 2.5rem;border-radius:10px;text-decoration:none;display:inline-block}.guest-login-hint{font-size:.85rem;color:#aaa;max-width:420px}.guest-login-hint a{color:#e94560;text-decoration:underline}.cards-section-title{text-align:center;font-size:1.2rem;color:#ccc;margin-bottom:1rem;font-weight:400}.guest-info-banner{background:#e945601a;border:1px solid rgba(233,69,96,.4);border-radius:10px;padding:.85rem 1.25rem;text-align:center;font-size:.9rem;color:#ddd;display:flex;flex-direction:column;gap:.35rem;max-width:400px}.guest-info-banner a{color:#e94560;text-decoration:underline}.difficulty-btn.locked{opacity:.45;cursor:not-allowed;position:relative;display:flex;flex-direction:column;align-items:center;gap:.2rem}.locked-label{font-size:.65rem;color:#f59e0b;font-weight:600}.nav-login-link{color:#e94560;font-weight:600;font-size:.9rem;text-decoration:none}.nav-login-link:hover{text-decoration:underline}.back-btn{align-self:flex-start;color:#aaa;font-size:.9rem;text-decoration:none;padding:.3rem .6rem;border-radius:6px;transition:color .2s,background .2s}.back-btn:hover{color:#fff;background:#ffffff14}.pioche-zone{width:100%;display:flex;justify-content:center;align-items:center;min-height:56px}.btn-pioche{background:linear-gradient(135deg,#1e1b4b,#312e81);border:2px solid #818cf8;border-radius:10px;color:#c7d2fe;cursor:pointer;font-size:.95rem;font-weight:600;padding:.6rem 1.4rem;display:flex;align-items:center;gap:.5rem;transition:border-color .2s,background .2s}.btn-pioche:hover{border-color:#a5b4fc;background:linear-gradient(135deg,#312e81,#4338ca);color:#fff}.effect-cost{background:#818cf833;border-radius:6px;padding:.1rem .4rem;font-size:.85rem}.pioche-unavailable{color:#6b7280;font-size:.85rem;font-style:italic}.effect-card{background:linear-gradient(135deg,#1e1b4b,#312e81);border:2px solid #818cf8;border-radius:12px;padding:.75rem 1.25rem;text-align:center;box-shadow:0 0 12px #818cf859;animation:effectAppear .3s ease}@keyframes effectAppear{0%{transform:scale(.85);opacity:0}to{transform:scale(1);opacity:1}}.effect-card-title{font-size:1rem;font-weight:700;color:#a5b4fc;margin-bottom:.25rem}.effect-card-desc{font-size:.85rem;color:#c7d2fe}.effects-reveal{display:flex;flex-direction:column;gap:.4rem;width:100%}.mana-bonus{font-size:.82rem;font-weight:600;margin-top:.35rem;text-align:center}.mana-bonus.bonus-gained{color:#a78bfa}.mana-bonus.bonus-none{color:#4ade80}.effect-used{background:#818cf81a;border:1px solid rgba(129,140,248,.35);border-radius:8px;padding:.5rem 1rem;font-size:.85rem;color:#c7d2fe;text-align:center}.pioche-zone-inner{display:flex;flex-direction:column;align-items:center;gap:.3rem}.pioche-separator{color:#6b7280;font-size:.85rem}.pioche-hint{color:#f59e0b;font-size:.75rem;font-style:italic}.effect-card--solo{border-color:#f59e0b;box-shadow:0 0 14px #f59e0b66}.effect-card-warning{margin-top:.5rem;font-size:.78rem;color:#f59e0b;font-weight:600}.ghost-card{background:#ffffff0a;border:2px dashed #555;border-radius:12px;padding:2rem 1.5rem;text-align:center;color:#9ca3af;font-size:1rem;min-width:140px}.ghost-card small{display:block;font-size:.75rem;margin-top:.3rem;color:#6b7280}@media(max-width:768px){body{padding:1rem .75rem 5rem}h1{font-size:1.5rem;margin-bottom:1.25rem}.cards-grid{grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:1rem}.deck-page{flex-direction:column;gap:1.25rem}.deck-right{width:100%;position:static;order:-1}.era-cards-grid{grid-template-columns:repeat(auto-fill,minmax(130px,1fr));gap:.6rem}.battle-cards-grid{grid-template-columns:repeat(2,1fr)}.battle-reveal{flex-direction:column;align-items:center;gap:1rem}.reveal-player{width:100%;min-width:unset;max-width:320px}.reveal-vs{padding-top:0;flex-direction:row;gap:.75rem}.battle-hps{gap:.5rem;flex-wrap:wrap}.battle-player-hp{min-width:120px}.battle-arena{gap:1rem}.hp-name{font-size:.85rem}.auth-box{padding:1.75rem}}@media(max-width:480px){body{padding:.75rem .5rem 5rem}h1{font-size:1.25rem}.cards-grid{grid-template-columns:repeat(2,1fr);gap:.75rem}.card{padding:1rem}.card-image{height:110px}.card-name{font-size:1rem}.era-cards-grid{grid-template-columns:repeat(2,1fr);gap:.5rem}.deck-card{padding:.75rem}.battle-cards-grid{grid-template-columns:repeat(2,1fr);gap:.4rem}.battle-card{padding:.5rem}.card-mana-cost{font-size:.65rem;padding:1px 4px}.card-ability{font-size:.62rem}.battle-divider{font-size:.85rem}.reveal-player{max-width:100%}.winner-badge{font-size:1.4rem;padding:.75rem 1.25rem}.handoff-name{font-size:1.5rem}.auth-box{padding:1.25rem}nav ul li a,.nav-logout-btn{font-size:.75rem;padding:12px 4px}.mode-option{font-size:.85rem;padding:.6rem .5rem}}
