.deck-page{font-family:system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;padding:16px 24px 40px;background:#f3f4f6;color:#111827;min-height:100vh;box-sizing:border-box}.deck-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:20px}.deck-header__subtitle{margin-top:4px;font-size:.9rem;color:#6b7280}.btn{border:none;padding:8px 16px;border-radius:999px;cursor:pointer;background:#111827;color:#fff;font-weight:600;font-size:.85rem}.btn:hover{opacity:.94}.deck-layout{display:flex;align-items:flex-start;gap:32px;flex-wrap:wrap;margin-bottom:24px}.deck-section{position:relative;margin-bottom:16px}.deck-section h2{font-size:1rem;margin:0 0 10px}.deck-section:first-of-type{flex:1 1 800px}.deck-section--side{flex:0 0 260px;max-width:260px}.mtgo-main{display:flex;align-items:flex-start;gap:10px;overflow-x:auto;padding-bottom:8px}.mtgo-column{display:flex;flex-direction:column;width:160px}.mtgo-column__header{font-weight:700;font-size:.9rem;margin-bottom:6px}.mtgo-column__cards{display:flex;flex-direction:column;padding-top:6px}.mtgo-column__cards .card-slot:first-child{margin-top:0}.grid-side{display:flex;flex-direction:column;gap:0}.card-slot{position:relative;box-sizing:border-box;min-height:112px;background:#fefce8;border-radius:10px;padding:8px 8px 6px;border:1px solid #e5e7eb;box-shadow:0 1px 2px #0f172a14;display:flex;flex-direction:column;margin-top:6px;overflow:hidden}.card-slot--white{background:#fffbeb;border-color:#fde68a}.card-slot--blue{background:#dbeafe;border-color:#60a5fa}.card-slot--black{background:#d1d5db;border-color:#4b5563}.card-slot--red{background:#fee2e2;border-color:#fca5a5}.card-slot--green{background:#dcfce7;border-color:#86efac}.card-slot--multicolor{background:#f3e8ff;border-color:#d8b4fe}.card-slot--colorless{background:tan;border-color:#a0826d}.card-slot--land{background:#e9d5ff;border-color:#c084fc}.card-slot--compact{min-height:96px}.card-slot--stacked{margin-top:-80px}.card-slot--flex{border-color:#f97316;box-shadow:0 0 0 2px #f9731673;cursor:pointer}.card-slot--flex:hover{transform:translateY(-1px)}.card-slot__header{display:flex;justify-content:space-between;align-items:flex-start;gap:6px;margin-bottom:4px}.card-slot__name{font-size:.8rem;font-weight:600;line-height:1.2;word-break:break-word}.card-slot__mana{font-size:.75rem;font-weight:700;white-space:nowrap;text-align:right}.card-slot__type{font-size:.8rem;color:#4b5563;margin-top:auto;padding-top:4px;border-top:1px solid rgba(156,163,175,.45);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.card-slot__badge{position:absolute;bottom:6px;right:8px;font-size:.7rem;font-weight:700;padding:2px 6px;border-radius:999px;background:#fed7aa;color:#7c2d12;border:1px solid #fdba74}.hand-row{display:flex;flex-wrap:wrap;gap:10px}.muted{font-size:.9rem;color:#6b7280}.flex-modal-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;background:#0f172a8c;display:flex;align-items:center;justify-content:center;z-index:50}.flex-modal{background:#fff;border-radius:12px;padding:16px;width:100%;max-width:420px;box-shadow:0 18px 45px #0f172a73}.flex-modal h3{margin:0 0 6px;font-size:1rem}.flex-modal__options{display:grid;gap:8px;margin-top:8px}.flex-option{text-align:left;border-radius:8px;padding:8px 10px;border:1px solid #e5e7eb;background:#f9fafb;cursor:pointer}.flex-option:hover{background:#e0f2fe;border-color:#3b82f6}.flex-option__card-name{font-size:.9rem;font-weight:600}.flex-option__card-meta{font-size:.8rem;color:#4b5563}.flex-modal__footer{margin-top:12px;display:flex;justify-content:flex-end}@media (max-width: 1100px){.deck-layout{flex-direction:column}.deck-section--side{max-width:none}}@media (max-width: 640px){.deck-page{padding:12px 12px 28px}.mtgo-main{gap:16px}.mtgo-column{width:170px}}
