/* ── Top Bar ── */ .builder-topbar { display: flex; align-items: center; gap: 0.75rem; padding: 0.75rem 1.25rem; background: var(--bg-surface); border-bottom: 1px solid var(--border); flex-wrap: wrap; position: sticky; top: 0; z-index: 100; } .deck-name-input { flex: 1; min-width: 180px; max-width: 360px; font-weight: 600; } .season-input { width: 120px; } .save-btn { white-space: nowrap; } .validity-badge { display: inline-flex; align-items: center; gap: 0.35rem; font-size: 0.8rem; font-weight: 600; padding: 0.3rem 0.7rem; border-radius: 100px; white-space: nowrap; } .badge-valid { background: rgba(102, 187, 106, 0.15); color: #66bb6a; border: 1px solid rgba(102, 187, 106, 0.3); } .badge-invalid { background: rgba(255, 171, 64, 0.12); color: #ffab40; border: 1px solid rgba(255, 171, 64, 0.3); } .save-toast { font-size: 0.85rem; font-weight: 500; animation: fade-in 0.2s ease-out; } .save-ok { color: #66bb6a; } .save-error { color: #ef5350; } /* ── Main Layout ── */ .builder-layout { display: grid; grid-template-columns: 1fr 380px; height: calc(100vh - 110px); overflow: hidden; } /* ── Browser Panel ── */ .browser-panel { display: flex; flex-direction: column; overflow: hidden; border-right: 1px solid var(--border); } .browser-panel .category-tabs { display: flex; gap: 0.4rem; padding: 0.75rem 1rem 0; flex-wrap: wrap; } .browser-panel .filter-bar { padding: 0.5rem 1rem; display: flex; gap: 0.5rem; } .browser-grid { flex: 1; overflow-y: auto; padding: 0.5rem 1rem 1rem; display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 0.6rem; align-content: start; } .browser-card { cursor: pointer; border-radius: var(--radius); overflow: hidden; background: var(--bg-surface); border: 2px solid transparent; transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease; } .browser-card:hover { transform: translateY(-4px); box-shadow: 0 6px 20px rgba(108, 99, 255, 0.2); border-color: rgba(108, 99, 255, 0.25); } .browser-card.in-deck { border-color: rgba(108, 99, 255, 0.4); } .browser-card.maxed { opacity: 0.5; cursor: not-allowed; } .browser-card.maxed:hover { transform: none; box-shadow: none; } .browser-card-img { position: relative; width: 100%; aspect-ratio: 5 / 7; overflow: hidden; background: #111128; } .browser-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; } .in-deck-count { position: absolute; bottom: 0.3rem; right: 0.3rem; background: var(--accent); color: white; font-size: 0.7rem; font-weight: 700; width: 1.4rem; height: 1.4rem; border-radius: 50%; display: flex; align-items: center; justify-content: center; border: 1px solid rgba(255,255,255,0.2); } .maxed-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.45); display: flex; align-items: center; justify-content: center; font-size: 1.2rem; color: rgba(255,255,255,0.5); } .browser-card-name { font-size: 0.72rem; font-weight: 500; padding: 0.3rem 0.4rem; background: var(--bg-elevated); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--text-primary); } /* ── Deck Panel ── */ .deck-panel { display: flex; flex-direction: column; overflow-y: auto; background: var(--bg-surface); gap: 0; } .deck-status-bar { display: flex; align-items: center; padding: 0.6rem 1rem; border-bottom: 1px solid var(--border); background: var(--bg-elevated); position: sticky; top: 0; z-index: 10; } .card-count { font-size: 1.1rem; font-weight: 700; display: flex; align-items: baseline; gap: 0.15rem; } .count-denom { font-size: 0.8rem; font-weight: 400; color: var(--text-muted); } .count-ok { color: #66bb6a; } .count-over { color: #ef5350; } .count-under { color: var(--text-secondary); } /* ── Mana Curve ── */ .mana-curve { display: flex; align-items: flex-end; gap: 3px; padding: 0.75rem 1rem 0.5rem; border-bottom: 1px solid var(--border); height: 80px; } .curve-col { flex: 1; display: flex; flex-direction: column; align-items: center; height: 100%; } .curve-bar-wrap { flex: 1; width: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 2px; } .curve-count { font-size: 0.6rem; color: var(--text-muted); height: 0.8rem; line-height: 1; } .curve-bar { width: 100%; background: var(--accent); border-radius: 2px 2px 0 0; min-height: 2px; transition: height 0.2s ease; opacity: 0.8; } .curve-label { font-size: 0.6rem; color: var(--text-muted); margin-top: 2px; } /* ── Deck Card List ── */ .deck-card-list { flex: 1; padding: 0.5rem 0; } .deck-empty { display: flex; flex-direction: column; align-items: center; gap: 0.5rem; padding: 2rem; color: var(--text-muted); font-size: 0.9rem; } .deck-empty i { font-size: 2rem; } .deck-row { display: flex; align-items: center; gap: 0.5rem; padding: 0.3rem 1rem; border-bottom: 1px solid rgba(42, 42, 74, 0.5); transition: background 0.15s ease; } .deck-row:hover { background: var(--bg-hover); } .deck-row-img { width: 28px; height: 40px; object-fit: cover; border-radius: 3px; flex-shrink: 0; } .deck-row-name { flex: 1; font-size: 0.82rem; font-weight: 500; color: var(--text-primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; } .deck-row-cost { font-size: 0.75rem; color: var(--gold); font-weight: 600; flex-shrink: 0; } .deck-row-controls { display: flex; align-items: center; gap: 0.25rem; flex-shrink: 0; } .count-btn { width: 1.5rem; height: 1.5rem; border: 1px solid var(--border); background: var(--bg-elevated); color: var(--text-primary); border-radius: 4px; cursor: pointer; font-size: 0.9rem; display: flex; align-items: center; justify-content: center; transition: background 0.15s ease; padding: 0; } .count-btn:hover:not(:disabled) { background: var(--bg-hover); border-color: var(--accent); } .count-btn:disabled { opacity: 0.35; cursor: not-allowed; } .count-display { font-size: 0.85rem; font-weight: 700; width: 1.2rem; text-align: center; color: var(--accent); } /* ── Divers Section ── */ .section-header { display: flex; align-items: center; gap: 0.4rem; padding: 0.6rem 1rem 0.4rem; font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted); border-top: 1px solid var(--border); } .section-count { margin-left: auto; background: var(--bg-hover); padding: 0.1rem 0.5rem; border-radius: 100px; font-size: 0.75rem; } .divers-section { padding-bottom: 0.5rem; } .diver-slot { display: flex; align-items: center; gap: 0.6rem; margin: 0.25rem 1rem; padding: 0.5rem 0.75rem; border-radius: var(--radius-sm); border: 1px dashed var(--border); cursor: pointer; font-size: 0.85rem; transition: all 0.15s ease; color: var(--text-muted); } .diver-slot.empty:hover { border-color: var(--accent); color: var(--accent); background: rgba(108, 99, 255, 0.05); } .diver-slot.filled { border-style: solid; border-color: rgba(108, 99, 255, 0.3); color: var(--text-primary); background: var(--bg-elevated); } .diver-thumb { width: 28px; height: 40px; object-fit: cover; border-radius: 3px; flex-shrink: 0; } .diver-name { flex: 1; font-weight: 500; font-size: 0.85rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .diver-remove { background: none; border: none; color: var(--text-muted); cursor: pointer; padding: 0.2rem; display: flex; align-items: center; font-size: 0.9rem; flex-shrink: 0; } .diver-remove:hover { color: #ef5350; } /* ── Notes Section ── */ .notes-section { padding-bottom: 1rem; } .notes-input { margin: 0 1rem; width: calc(100% - 2rem); font-size: 0.85rem; resize: vertical; min-height: 80px; background: var(--bg-primary); border-color: var(--border); color: var(--text-primary); } /* ── Diver Picker Modal ── */ .diver-modal { position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%); z-index: 1050; background: var(--bg-surface); border: 1px solid var(--border); border-radius: 16px; padding: 1.25rem; width: 560px; max-width: 92vw; max-height: 80vh; display: flex; flex-direction: column; gap: 0.75rem; box-shadow: 0 20px 60px rgba(0,0,0,0.6); animation: detail-enter 0.2s ease-out; } .diver-modal-header { display: flex; align-items: center; justify-content: space-between; } .diver-modal-header h5 { margin: 0; font-size: 1rem; font-weight: 700; } .diver-picker-grid { overflow-y: auto; display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 0.5rem; flex: 1; } .diver-picker-card { cursor: pointer; border-radius: var(--radius-sm); overflow: hidden; background: var(--bg-elevated); border: 2px solid transparent; transition: border-color 0.15s ease, transform 0.15s ease; text-align: center; } .diver-picker-card:hover { border-color: var(--accent); transform: translateY(-2px); } .diver-picker-card img { width: 100%; aspect-ratio: 5 / 7; object-fit: cover; display: block; } .diver-picker-card span { display: block; font-size: 0.68rem; padding: 0.25rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--text-primary); background: var(--bg-elevated); } /* ── Responsive ── */ @media (max-width: 900px) { .builder-layout { grid-template-columns: 1fr; height: auto; overflow: visible; } .browser-panel { border-right: none; border-bottom: 1px solid var(--border); max-height: 70vh; } .deck-panel { max-height: none; } .builder-topbar { position: static; } }